]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update entries for Foils, Slides and Reports in Chapter 3 Document classes and do...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
3 \begin_document
4 \begin_header
5 \save_transient_properties true
6 \origin /systemlyxdir/doc/
7 \textclass scrbook
8 \begin_preamble
9 % DO NOT ALTER THIS PREAMBLE!!!
10 %
11 % This preamble is designed to ensure that the manual prints
12 % out as advertised. If you mess with this preamble,
13 % parts of the manual may not print out as expected.  If you
14 % have problems LaTeXing this file, please contact 
15 % the documentation team
16 % email: lyx-docs@lists.lyx.org
17
18 % the pages of the TOC are numbered roman
19 % and a PDF-bookmark for the TOC is added
20 \pagenumbering{roman}
21 \let\myTOC\tableofcontents
22 \renewcommand{\tableofcontents}{%
23  \pdfbookmark[1]{\contentsname}{}
24  \myTOC
25  \cleardoublepage
26  \pagenumbering{arabic}}
27
28 % extra space for tables
29 \newcommand{\extratablespace}[1]{\noalign{\vskip#1}}
30 \end_preamble
31 \options bibliography=totoc,index=totoc,BCOR7.5mm,titlepage,captions=tableheading
32 \use_default_options false
33 \begin_modules
34 logicalmkup
35 theorems-ams
36 theorems-ams-extended
37 multicol
38 shapepar
39 graphicboxes
40 enumitem
41 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_minted 0
109 \use_lineno 0
110 \notefontcolor #0000ff
111 \index Index
112 \shortcut idx
113 \color #008000
114 \end_index
115 \secnumdepth 3
116 \tocdepth 3
117 \paragraph_separation indent
118 \paragraph_indentation default
119 \is_math_indent 1
120 \math_indentation default
121 \math_numbering_side default
122 \quotes_style english
123 \dynamic_quotes 0
124 \papercolumns 1
125 \papersides 2
126 \paperpagestyle headings
127 \tablestyle default
128 \tracking_changes true
129 \output_changes false
130 \change_bars false
131 \postpone_fragile_content false
132 \html_math_output 0
133 \html_css_as_file 0
134 \html_be_strict true
135 \docbook_table_output 0
136 \docbook_mathml_prefix 1
137 \author -712698321 "Jürgen Spitzmüller"
138 \author 177693 "x"
139 \author 5863208 "ab"
140 \author 244031559 "Yuriy"
141 \author 564990737 "John Lyx"
142 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
143 \author 1075283030 "Thibaut"
144 \author 1119979965 "Joel A. Kulesza"
145 \end_header
146
147 \begin_body
148
149 \begin_layout Title
150 Additional \SpecialChar LyX
151  Features
152 \end_layout
153
154 \begin_layout Subtitle
155 Version 2.
156 \change_deleted 630872221 1622909155
157 3
158 \change_inserted 630872221 1622909155
159 4
160 \change_unchanged
161 .x
162 \end_layout
163
164 \begin_layout Author
165 by the \SpecialChar LyX
166  Team
167 \begin_inset Foot
168 status collapsed
169
170 \begin_layout Plain Layout
171 \noindent
172 Principal maintainer of this file is
173 \noun on
174  Richard Kimberly Heck
175 \noun default
176 .
177  If you have comments or error corrections, please send them to the \SpecialChar LyX
178  Documentati
179 on mailing list, 
180 \begin_inset Flex Code
181 status collapsed
182
183 \begin_layout Plain Layout
184 <lyx-docs@lists.lyx.org>
185 \end_layout
186
187 \end_inset
188
189 .
190 \end_layout
191
192 \end_inset
193
194
195 \end_layout
196
197 \begin_layout Standard
198 \begin_inset CommandInset toc
199 LatexCommand tableofcontents
200
201 \end_inset
202
203
204 \end_layout
205
206 \begin_layout Chapter
207 Introduction
208 \end_layout
209
210 \begin_layout Standard
211 This manual is essentially Part II of the 
212 \emph on
213 User's Guide\SpecialChar endofsentence
214
215 \emph default
216  The reason for separating the two documents is simple: the 
217 \emph on
218 User's Guide
219 \emph default
220  is already quite lengthy, and it contains information on all of the basic
221  features one needs to know in order to prepare most documents.
222  However, the \SpecialChar LyX
223  Team has worked to make \SpecialChar LyX
224  extensible through various configuration
225  files and external packages.
226  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
227  package, you can
228  create a layout file (or module) for it without having to alter \SpecialChar LyX
229  itself.
230  We've already had contributions of several new features this way, and some
231  of them are documented here.
232  There are also some more `advanced' features, such as how to control the
233  presentation of bibliographies and how to work with multi-part documents,
234  that are not covered in the 
235 \emph on
236 User's Guide
237 \emph default
238  and are discussed here.
239 \end_layout
240
241 \begin_layout Standard
242 This manual also documents some special features, like fax support
243 \change_deleted 244031559 1603802929
244 ,
245 \change_inserted 244031559 1603802931
246  and
247 \change_unchanged
248  version control
249 \change_deleted 244031559 1603802954
250 , and SGML support
251 \change_unchanged
252 , which require additional software to work properly.
253  There is also a chapter on \SpecialChar LyX
254 's support for HTML.
255  And lastly, there's a chapter of \SpecialChar LaTeX
256  tools and tips, things you can use to
257  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
258 .
259  After all, \SpecialChar LyX
260  
261 \emph on
262 is
263 \emph default
264  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
265  features.
266 \end_layout
267
268 \begin_layout Standard
269 If you haven't read the 
270 \emph on
271 Introduction
272 \emph default
273  yet, you are definitely in the wrong manual.
274  The 
275 \emph on
276 Introduction
277 \emph default
278  is the first place to go, since it describes the notation and format of
279  all of the manuals.
280  You should also be thoroughly familiar with the 
281 \emph on
282 User's Guide
283 \emph default
284  and all of the basic features of \SpecialChar LyX
285  before attempting to read this one.
286 \end_layout
287
288 \begin_layout Standard
289 Since many of the topics in this manual depend heavily on \SpecialChar LyX
290 's interaction
291  with \SpecialChar LaTeX
292 , this first chapter covers the inner workings of \SpecialChar LyX
293  and how to direct
294  \SpecialChar LyX
295  to generate exactly the \SpecialChar LaTeX
296  code you want.
297  It is obviously for more seasoned \SpecialChar LyX
298  users.
299 \end_layout
300
301 \begin_layout Chapter
302 \SpecialChar LyX
303  and \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Section
308 How \SpecialChar LyX
309  Uses \SpecialChar LaTeX
310
311 \end_layout
312
313 \begin_layout Standard
314 This chapter is for both \SpecialChar TeX
315 -nicians and the \SpecialChar LaTeX
316 -curious.
317  In it, we'll explain how \SpecialChar LyX
318  and \SpecialChar LaTeX
319  work together to produce printable output.
320  This is the only place in any of the manuals where we assume you know something
321  about \SpecialChar LaTeX
322 .
323 \end_layout
324
325 \begin_layout Standard
326 At one time, \SpecialChar LyX
327  was called a 
328 \begin_inset Quotes eld
329 \end_inset
330
331 WYSIWYM frontend to \SpecialChar LaTeX
332 ,
333 \begin_inset Quotes erd
334 \end_inset
335
336  but that's no longer true.
337  There are frontends to \SpecialChar LaTeX
338  out there.
339 \begin_inset Foot
340 status collapsed
341
342 \begin_layout Plain Layout
343 Some familar ones are \SpecialChar TeX
344 maker and kile, on Linux, and \SpecialChar TeX
345 shop, OSX.
346  There are also the \SpecialChar LaTeX
347  modes for vi and emacs, of course.
348 \end_layout
349
350 \end_inset
351
352  These are basically text editors with the ability to run \SpecialChar LaTeX
353  and mark any
354  errors in the file you're editing.
355  Although \SpecialChar LyX
356  
357 \emph on
358 is
359 \emph default
360  an editor, and it 
361 \emph on
362 does
363 \emph default
364  run \SpecialChar LaTeX
365 , and it also indicates errors in the file, it also does much, much
366  more.
367  For one thing, you don't need to know \SpecialChar LaTeX
368  to use \SpecialChar LyX
369  effectively.
370  And \SpecialChar LyX
371  has added its own extensions to \SpecialChar LaTeX
372 .
373  Try the following sometime: select 
374 \begin_inset Flex Noun
375 status collapsed
376
377 \begin_layout Plain Layout
378 Export\SpecialChar menuseparator
379 LaTeX
380 \end_layout
381
382 \end_inset
383
384  from the 
385 \begin_inset Flex Noun
386 status collapsed
387
388 \begin_layout Plain Layout
389 File
390 \end_layout
391
392 \end_inset
393
394  menu (or 
395 \begin_inset Flex Noun
396 status collapsed
397
398 \begin_layout Plain Layout
399 View\SpecialChar menuseparator
400 Source
401 \begin_inset space ~
402 \end_inset
403
404 Pane
405 \end_layout
406
407 \end_inset
408
409 ), then look at the preamble of the resulting 
410 \begin_inset Flex Code
411 status collapsed
412
413 \begin_layout Plain Layout
414 .tex
415 \end_layout
416
417 \end_inset
418
419  file.
420  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
421 .
422  These macros are defined automatically, according to the features you use
423  in the document.
424 \end_layout
425
426 \begin_layout Standard
427 There are several commands that automatically invoke \SpecialChar LaTeX
428 .
429  They are:
430 \end_layout
431
432 \begin_layout Itemize
433 \begin_inset Flex Noun
434 status collapsed
435
436 \begin_layout Plain Layout
437 Document\SpecialChar menuseparator
438 View
439 \end_layout
440
441 \end_inset
442
443
444 \end_layout
445
446 \begin_layout Itemize
447 \begin_inset Flex Noun
448 status collapsed
449
450 \begin_layout Plain Layout
451 Document\SpecialChar menuseparator
452 Update
453 \end_layout
454
455 \end_inset
456
457
458 \end_layout
459
460 \begin_layout Standard
461 They will only invoke \SpecialChar LaTeX
462  if the file has changed since the last time \SpecialChar LaTeX
463  was
464  run.
465  
466 \end_layout
467
468 \begin_layout Standard
469 When \SpecialChar LyX
470  runs \SpecialChar LaTeX
471  on the file you're editing, it performs these steps:
472 \end_layout
473
474 \begin_layout Enumerate
475 Convert the document to \SpecialChar LaTeX
476  and save to a file with the extension 
477 \begin_inset Flex Code
478 status collapsed
479
480 \begin_layout Plain Layout
481 .tex
482 \end_layout
483
484 \end_inset
485
486  in place of 
487 \begin_inset Flex Code
488 status collapsed
489
490 \begin_layout Plain Layout
491 .lyx
492 \end_layout
493
494 \end_inset
495
496 .
497 \end_layout
498
499 \begin_layout Enumerate
500 Run \SpecialChar LaTeX
501  on the 
502 \begin_inset Flex Code
503 status collapsed
504
505 \begin_layout Plain Layout
506 .tex
507 \end_layout
508
509 \end_inset
510
511  file (maybe several times), and run any other commands (such as 
512 \begin_inset Flex Code
513 status collapsed
514
515 \begin_layout Plain Layout
516 bibtex
517 \end_layout
518
519 \end_inset
520
521  or 
522 \begin_inset Flex Code
523 status collapsed
524
525 \begin_layout Plain Layout
526 makeindex
527 \end_layout
528
529 \end_inset
530
531 ) needed to compile the \SpecialChar LaTeX
532  file.
533 \end_layout
534
535 \begin_layout Enumerate
536 If there are any errors, show the error log.
537 \end_layout
538
539 \begin_layout Standard
540 If you have run \SpecialChar LaTeX
541  using 
542 \begin_inset Flex Noun
543 status collapsed
544
545 \begin_layout Plain Layout
546 View\SpecialChar menuseparator
547 DVI
548 \end_layout
549
550 \end_inset
551
552 , \SpecialChar LyX
553  then runs a DVI viewer to display the DVI-file.
554  If you have used 
555 \begin_inset Flex Noun
556 status collapsed
557
558 \begin_layout Plain Layout
559 View\SpecialChar menuseparator
560 PostScript
561 \end_layout
562
563 \end_inset
564
565 , \SpecialChar LyX
566  performs further steps:
567 \end_layout
568
569 \begin_layout Enumerate
570 Run 
571 \begin_inset Flex Code
572 status collapsed
573
574 \begin_layout Plain Layout
575 dvips
576 \end_layout
577
578 \end_inset
579
580  to convert the DVI file to PostScript.
581 \end_layout
582
583 \begin_layout Enumerate
584 Run a PostScript viewer, such as 
585 \begin_inset Flex Code
586 status collapsed
587
588 \begin_layout Plain Layout
589 ghostview
590 \end_layout
591
592 \end_inset
593
594 , to display the PostScript file.
595 \end_layout
596
597 \begin_layout Standard
598 \SpecialChar LyX
599  does similar things when viewing, or exporting, other formats.
600 \end_layout
601
602 \begin_layout Section
603 Translating \SpecialChar LaTeX
604  files into \SpecialChar LyX
605
606 \end_layout
607
608 \begin_layout Standard
609 You can import a \SpecialChar LaTeX
610  file into \SpecialChar LyX
611  by using the 
612 \begin_inset Flex Noun
613 status collapsed
614
615 \begin_layout Plain Layout
616 File\SpecialChar menuseparator
617 Import\SpecialChar menuseparator
618 LaTeX
619 \end_layout
620
621 \end_inset
622
623  command in \SpecialChar LyX
624 .
625  This will call a program named 
626 \begin_inset Flex Code
627 status collapsed
628
629 \begin_layout Plain Layout
630 tex2lyx
631 \end_layout
632
633 \end_inset
634
635  which will create a file 
636 \begin_inset Flex Code
637 status collapsed
638
639 \begin_layout Plain Layout
640 foo.lyx
641 \end_layout
642
643 \end_inset
644
645  from the file 
646 \begin_inset Flex Code
647 status collapsed
648
649 \begin_layout Plain Layout
650 foo.tex
651 \end_layout
652
653 \end_inset
654
655 .
656  \SpecialChar LyX
657  will then open that file.
658 \begin_inset Foot
659 status collapsed
660
661 \begin_layout Plain Layout
662 \begin_inset Flex Code
663 status collapsed
664
665 \begin_layout Plain Layout
666 tex2lyx
667 \end_layout
668
669 \end_inset
670
671  can also be run from the command line, of course.
672 \end_layout
673
674 \end_inset
675
676
677 \end_layout
678
679 \begin_layout Standard
680 \begin_inset Flex Code
681 status collapsed
682
683 \begin_layout Plain Layout
684 tex2lyx
685 \end_layout
686
687 \end_inset
688
689  will translate most legal \SpecialChar LaTeX
690 , but not everything.
691  It will put things it doesn't understand into \SpecialChar TeX
692  code, so after translating
693  a file with 
694 \begin_inset Flex Code
695 status collapsed
696
697 \begin_layout Plain Layout
698 tex2lyx
699 \end_layout
700
701 \end_inset
702
703 , you can look for \SpecialChar TeX
704  code and hand-edit it until it looks right.
705 \end_layout
706
707 \begin_layout Standard
708 If you don't know what \SpecialChar TeX
709  code is, read the next section.
710 \end_layout
711
712 \begin_layout Section
713 \begin_inset CommandInset label
714 LatexCommand label
715 name "sec:Inserting-TeX-Code"
716
717 \end_inset
718
719 Inserting \SpecialChar TeX
720  Code into \SpecialChar LyX
721  Documents 
722 \end_layout
723
724 \begin_layout Standard
725 Anything you can do in \SpecialChar LaTeX
726  you can do in \SpecialChar LyX
727 , for a very simple reason: You can
728  always insert \SpecialChar TeX
729  code into any \SpecialChar LyX
730  document.
731  \SpecialChar LyX
732  cannot, and will never be able to, display every possible \SpecialChar LaTeX
733  construct.
734  If ever you need to insert \SpecialChar LaTeX
735  commands into your \SpecialChar LyX
736  document, you can use the
737  
738 \begin_inset Flex Code
739 status collapsed
740
741 \begin_layout Plain Layout
742 \SpecialChar TeX
743  Code
744 \end_layout
745
746 \end_inset
747
748  box, which you can insert into your document with 
749 \begin_inset Flex Noun
750 status collapsed
751
752 \begin_layout Plain Layout
753 Insert\SpecialChar menuseparator
754
755 \family sans
756 TeX
757 \family default
758  Code
759 \end_layout
760
761 \end_inset
762
763  or the keyboard shortcut 
764 \begin_inset Info
765 type  "shortcut"
766 arg   "ert-insert"
767 \end_inset
768
769 .
770 \end_layout
771
772 \begin_layout Standard
773 Here's an example of inserting \SpecialChar LaTeX
774  commands in a \SpecialChar LyX
775  document.
776  The code looks like this:
777 \end_layout
778
779 \begin_layout LyX-Code
780
781 \backslash
782 begin{tabular}{ll}
783 \begin_inset Newline newline
784 \end_inset
785
786
787 \backslash
788 begin{minipage}{5cm}
789 \begin_inset Newline newline
790 \end_inset
791
792 This is an example of a minipage environment.
793  You 
794 \begin_inset Newline newline
795 \end_inset
796
797 can put nearly everything in it, even (non-floating) 
798 \begin_inset Newline newline
799 \end_inset
800
801 figures and tables.
802  
803 \begin_inset Newline newline
804 \end_inset
805
806
807 \backslash
808 end{minipage}
809 \begin_inset Newline newline
810 \end_inset
811
812 &
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{minipage}{5cm}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{verbatim}
825 \begin_inset Newline newline
826 \end_inset
827
828
829 \backslash
830 begin{minipage}{5cm}
831 \begin_inset Newline newline
832 \end_inset
833
834 This ...
835  
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{minipage}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{verbatim}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{minipage}
854 \begin_inset Newline newline
855 \end_inset
856
857
858 \backslash
859 end{tabular}
860 \end_layout
861
862 \begin_layout LyX-Code
863
864 \end_layout
865
866 \begin_layout Standard
867 The 
868 \begin_inset Flex Code
869 status collapsed
870
871 \begin_layout Plain Layout
872 \SpecialChar TeX
873  Code
874 \end_layout
875
876 \end_inset
877
878  box containing this text is directly after this paragraph.
879  Those of you reading the manual in \SpecialChar LyX
880  will only see the \SpecialChar TeX
881  code inset.
882  Those reading a printed version of the manuals will see the actual results:
883 \begin_inset VSpace bigskip
884 \end_inset
885
886
887 \end_layout
888
889 \begin_layout Standard
890 \begin_inset ERT
891 status open
892
893 \begin_layout Plain Layout
894
895
896 \backslash
897 begin{tabular}{ll}
898 \end_layout
899
900 \begin_layout Plain Layout
901
902
903 \backslash
904 begin{minipage}{5cm}
905 \end_layout
906
907 \begin_layout Plain Layout
908
909 This is an example of a minipage environment.
910  You can put nearly everything in it, even (non-floating) figures and tables.
911  
912 \end_layout
913
914 \begin_layout Plain Layout
915
916
917 \backslash
918 end{minipage}
919 \end_layout
920
921 \begin_layout Plain Layout
922
923 &
924 \end_layout
925
926 \begin_layout Plain Layout
927
928
929 \backslash
930 begin{minipage}{5cm}
931 \end_layout
932
933 \begin_layout Plain Layout
934
935
936 \backslash
937 begin{verbatim}
938 \end_layout
939
940 \begin_layout Plain Layout
941
942
943 \backslash
944 begin{minipage}{5cm}
945 \end_layout
946
947 \begin_layout Plain Layout
948
949 This ...
950  
951 \end_layout
952
953 \begin_layout Plain Layout
954
955
956 \backslash
957 end{minipage}
958 \end_layout
959
960 \begin_layout Plain Layout
961
962
963 \backslash
964 end{verbatim}
965 \end_layout
966
967 \begin_layout Plain Layout
968
969
970 \backslash
971 end{minipage}
972 \end_layout
973
974 \begin_layout Plain Layout
975
976
977 \backslash
978 end{tabular}
979 \end_layout
980
981 \end_inset
982
983
984 \begin_inset VSpace bigskip
985 \end_inset
986
987
988 \end_layout
989
990 \begin_layout Standard
991 In addition to using \SpecialChar TeX
992  code, you can also create a separate file containing
993  some complex \SpecialChar LaTeX
994  structure and then use 
995 \begin_inset Flex Noun
996 status collapsed
997
998 \begin_layout Plain Layout
999 Insert\SpecialChar menuseparator
1000 Child
1001 \begin_inset space ~
1002 \end_inset
1003
1004 Document
1005 \end_layout
1006
1007 \end_inset
1008
1009  to include your file (you should select the type 
1010 \begin_inset Flex Code
1011 status collapsed
1012
1013 \begin_layout Plain Layout
1014 Input
1015 \end_layout
1016
1017 \end_inset
1018
1019 ).
1020  We recommend that you only do this if you have a 
1021 \begin_inset Flex Code
1022 status collapsed
1023
1024 \begin_layout Plain Layout
1025 .tex
1026 \end_layout
1027
1028 \end_inset
1029
1030  file which you 
1031 \emph on
1032 know
1033 \emph default
1034  works already.
1035  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1036  errors.
1037 \end_layout
1038
1039 \begin_layout Standard
1040 There are a few last points to emphasize:
1041 \end_layout
1042
1043 \begin_layout Itemize
1044 \SpecialChar LyX
1045  
1046 \emph on
1047 does not
1048 \emph default
1049  check if your \SpecialChar LaTeX
1050  code is correct.
1051 \end_layout
1052
1053 \begin_layout Itemize
1054 Beware of reinventing the wheel.
1055 \end_layout
1056
1057 \begin_layout Standard
1058 On that last point, \SpecialChar LyX
1059  does have quite a few features tucked into it, and
1060  more are coming.
1061  Be sure to check the manuals to make sure that \SpecialChar LyX
1062  doesn't have such-and-such
1063  feature before you decide you have to do it by hand.
1064  Moreover, there are numerous \SpecialChar LaTeX
1065  packages out there to do all sorts of things,
1066  from labels to envelopes to fancy multipage tables.
1067  Check out 
1068 \change_inserted 244031559 1603815732
1069
1070 \begin_inset CommandInset href
1071 LatexCommand href
1072 name "CTAN"
1073 target "https://www.ctan.org/"
1074 literal "false"
1075
1076 \end_inset
1077
1078
1079 \change_deleted 244031559 1603815732
1080
1081 \begin_inset CommandInset href
1082 LatexCommand href
1083 name "CTAN"
1084 target "http://www.ctan.org/"
1085 literal "false"
1086
1087 \end_inset
1088
1089
1090 \change_unchanged
1091  for details.
1092 \end_layout
1093
1094 \begin_layout Standard
1095 If you do need to do some wild and fancy things within your document, be
1096  sure to check out a good \SpecialChar LaTeX
1097  book for assistance.
1098  There are a number of them listed in the bibliography of the 
1099 \emph on
1100 User's Guide
1101 \emph default
1102 .
1103 \end_layout
1104
1105 \begin_layout Section
1106 \SpecialChar LyX
1107  and the \SpecialChar LaTeX
1108  Preamble
1109 \end_layout
1110
1111 \begin_layout Subsection
1112 About the \SpecialChar LaTeX
1113  Preamble
1114 \end_layout
1115
1116 \begin_layout Standard
1117 If you already know \SpecialChar LaTeX
1118 , there is no need to explain here what the preamble
1119  is good for.
1120  If you don't, the following will give you some ideas—we recommend again
1121  that you consult a \SpecialChar LaTeX
1122  book for further information.
1123  In any case, you should read the points below, because they explain what
1124  you can do and what you don't need to do in the \SpecialChar LaTeX
1125  preamble of a \SpecialChar LyX
1126  document.
1127 \end_layout
1128
1129 \begin_layout Standard
1130 The \SpecialChar LaTeX
1131  preamble comes at the very beginning of a document, 
1132 \emph on
1133 before
1134 \emph default
1135  the text.
1136  It serves to:
1137 \end_layout
1138
1139 \begin_layout Itemize
1140 Declare the document class.
1141  
1142 \begin_inset Newline newline
1143 \end_inset
1144
1145 \SpecialChar LyX
1146  already does this for you.
1147  If you're a seasoned \SpecialChar LaTeX
1148 -nician, and you have a custom document class you
1149  want to use, check out the 
1150 \emph on
1151 Customization Manual
1152 \emph default
1153  for information on how to make \SpecialChar LyX
1154  interface to it.
1155 \end_layout
1156
1157 \begin_layout Itemize
1158 Declare the usage of packages.
1159  
1160 \begin_inset Newline newline
1161 \end_inset
1162
1163 \SpecialChar LaTeX
1164  packages provide special commands, which are only available within a document
1165  when the package has been declared in the preamble.
1166  In addition to providing special commands, the inclusion of a package can
1167  change the document.
1168  For example, the package 
1169 \begin_inset Flex Code
1170 status collapsed
1171
1172 \begin_layout Plain Layout
1173 indentfirst
1174 \end_layout
1175
1176 \end_inset
1177
1178  forces all paragraphs to be indented.
1179  There are other packages for labels, envelopes, margins, etc.
1180  
1181 \end_layout
1182
1183 \begin_layout Itemize
1184 Set counters, variables, lengths and widths.
1185  
1186 \begin_inset Newline newline
1187 \end_inset
1188
1189 There are several \SpecialChar LaTeX
1190  counters and variables that 
1191 \emph on
1192 must
1193 \emph default
1194  be set globally from within the preamble in order to have the desired effect.
1195  (There are variables that you can set and reset inside the document, too.)
1196  Margins are a good example of something that must be set in the preamble.
1197  Another example is the label format for lists.
1198  You can actually set these just about anywhere, but it's best to do it
1199  just once, inside the preamble.
1200 \end_layout
1201
1202 \begin_layout Itemize
1203 Declare user defined commands (with 
1204 \begin_inset Flex Code
1205 status collapsed
1206
1207 \begin_layout Plain Layout
1208
1209 \backslash
1210 newcommand
1211 \end_layout
1212
1213 \end_inset
1214
1215  or 
1216 \begin_inset Flex Code
1217 status collapsed
1218
1219 \begin_layout Plain Layout
1220
1221 \backslash
1222 renewcommand
1223 \end_layout
1224
1225 \end_inset
1226
1227 ).
1228 \begin_inset Newline newline
1229 \end_inset
1230
1231 These are abbreviations for \SpecialChar LaTeX
1232  commands which appear very often inside a document.
1233  Although the preamble is a good place to declare such commands, they 
1234 \emph on
1235 can
1236 \emph default
1237  be declared anywhere (before they are used for the first time, of course).
1238  This can be useful if there is a lot of raw \SpecialChar LaTeX
1239  code in your document, which
1240  normally should not be the case.
1241 \end_layout
1242
1243 \begin_layout Standard
1244 \SpecialChar LyX
1245  adds its own set of definitions to the preamble of the 
1246 \begin_inset Flex Code
1247 status collapsed
1248
1249 \begin_layout Plain Layout
1250 .tex
1251 \end_layout
1252
1253 \end_inset
1254
1255  file it produces.
1256  This makes \SpecialChar LaTeX
1257  files generated by \SpecialChar LyX
1258  portable.
1259 \end_layout
1260
1261 \begin_layout Subsection
1262 Changing the Preamble
1263 \end_layout
1264
1265 \begin_layout Standard
1266 The commands which \SpecialChar LyX
1267  adds to the preamble of a \SpecialChar LaTeX
1268  file are fixed; you can't
1269  change them without patching \SpecialChar LyX
1270  itself.
1271  You can, however, add your own stuff to the preamble by selecting 
1272 \begin_inset Flex Noun
1273 status collapsed
1274
1275 \begin_layout Plain Layout
1276 \SpecialChar LaTeX
1277
1278 \begin_inset space ~
1279 \end_inset
1280
1281 Preamble
1282 \end_layout
1283
1284 \end_inset
1285
1286  in the 
1287 \begin_inset Flex Noun
1288 status collapsed
1289
1290 \begin_layout Plain Layout
1291 Document\SpecialChar menuseparator
1292 Settings
1293 \end_layout
1294
1295 \end_inset
1296
1297  dialog.
1298  \SpecialChar LyX
1299  adds anything in the 
1300 \begin_inset Flex Noun
1301 status collapsed
1302
1303 \begin_layout Plain Layout
1304 Preamble
1305 \end_layout
1306
1307 \end_inset
1308
1309  dialog to its own built-in preamble.
1310  Before adding your own declarations in the preamble, you should make sure
1311  that \SpecialChar LyX
1312  doesn't already support what you want to do.
1313  (Remember what we said about reinventing the wheel?) Also, 
1314 \emph on
1315 make sure your preamble code is correct
1316 \emph default
1317 .
1318  \SpecialChar LyX
1319  doesn't check it for you.
1320  If there is an error, you're likely to get an error like 
1321 \begin_inset Quotes eld
1322 \end_inset
1323
1324
1325 \begin_inset Flex Code
1326 status collapsed
1327
1328 \begin_layout Plain Layout
1329 Missing 
1330 \backslash
1331 begin{document}
1332 \end_layout
1333
1334 \end_inset
1335
1336
1337 \begin_inset Quotes erd
1338 \end_inset
1339
1340 .
1341  If you see this error, check your preamble.
1342 \end_layout
1343
1344 \begin_layout Subsection
1345 Examples
1346 \end_layout
1347
1348 \begin_layout Standard
1349 Here are some examples of what you can add to a preamble, and what they
1350  do.
1351 \end_layout
1352
1353 \begin_layout Subsubsection
1354 Example #1: Offsets
1355 \end_layout
1356
1357 \begin_layout Standard
1358 There are two variables under \SpecialChar LaTeX
1359  that control page position: 
1360 \begin_inset Flex Code
1361 status collapsed
1362
1363 \begin_layout Plain Layout
1364
1365 \backslash
1366 hoffset
1367 \end_layout
1368
1369 \end_inset
1370
1371  and 
1372 \begin_inset Flex Code
1373 status collapsed
1374
1375 \begin_layout Plain Layout
1376
1377 \backslash
1378 voffset
1379 \end_layout
1380
1381 \end_inset
1382
1383 .
1384  Their names should be self-explanatory.
1385  These variables are useful if you think for a moment about computer labels.
1386  Sometimes, the size of a print medium and the area of the medium that you
1387  can actually print on aren't the same.
1388  This is where 
1389 \begin_inset Flex Code
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393
1394 \backslash
1395 hoffset
1396 \end_layout
1397
1398 \end_inset
1399
1400  and 
1401 \begin_inset Flex Code
1402 status collapsed
1403
1404 \begin_layout Plain Layout
1405
1406 \backslash
1407 voffset
1408 \end_layout
1409
1410 \end_inset
1411
1412  come in.
1413 \end_layout
1414
1415 \begin_layout Standard
1416 The default values for 
1417 \begin_inset Flex Code
1418 status collapsed
1419
1420 \begin_layout Plain Layout
1421
1422 \backslash
1423 hoffset
1424 \end_layout
1425
1426 \end_inset
1427
1428  and 
1429 \begin_inset Flex Code
1430 status collapsed
1431
1432 \begin_layout Plain Layout
1433
1434 \backslash
1435 voffset
1436 \end_layout
1437
1438 \end_inset
1439
1440  are both 0
1441 \begin_inset space \thinspace{}
1442 \end_inset
1443
1444 points, i.
1445 \begin_inset space \thinspace{}
1446 \end_inset
1447
1448 e.
1449 \begin_inset space \space{}
1450 \end_inset
1451
1452 the page isn't shifted.
1453  Unfortunately, some DVI drivers always seem to shift the page.
1454  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1455  If you're using \SpecialChar LyX
1456  on a system that you don't personally maintain, and your
1457  sysadmin is a doofus, 
1458 \begin_inset Flex Code
1459 status collapsed
1460
1461 \begin_layout Plain Layout
1462
1463 \backslash
1464 hoffset
1465 \end_layout
1466
1467 \end_inset
1468
1469  and 
1470 \begin_inset Flex Code
1471 status collapsed
1472
1473 \begin_layout Plain Layout
1474
1475 \backslash
1476 voffset
1477 \end_layout
1478
1479 \end_inset
1480
1481  can save the day.
1482  Suppose your left and top margins are always 0.5
1483 \begin_inset space \thinspace{}
1484 \end_inset
1485
1486 inches too big.
1487  You can add this to the preamble:
1488 \end_layout
1489
1490 \begin_layout LyX-Code
1491
1492 \backslash
1493 setlength{
1494 \backslash
1495 hoffset}{-0.5 in}
1496 \end_layout
1497
1498 \begin_layout LyX-Code
1499
1500 \backslash
1501 setlength{
1502 \backslash
1503 voffset}{-0.5 in}
1504 \end_layout
1505
1506 \begin_layout Standard
1507 and your margins should now be correct.
1508 \end_layout
1509
1510 \begin_layout Subsubsection
1511 Example #2: Labels
1512 \end_layout
1513
1514 \begin_layout Standard
1515 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1516  There's a rather nice package, available at your nearest CTAN archive,
1517  for printing sheets of labels: 
1518 \begin_inset Flex Code
1519 status collapsed
1520
1521 \begin_layout Plain Layout
1522 labels.sty
1523 \end_layout
1524
1525 \end_inset
1526
1527 .
1528  Now, your system may not have this package installed by default.
1529  We leave that up to you to check.
1530  You'll also want to read the documentation for it; we're not going to do
1531  that for you.
1532  Since this is an example, however, we'll give you an example of how you
1533  use this package.
1534 \end_layout
1535
1536 \begin_layout Standard
1537 First, make sure you're using the 
1538 \begin_inset Flex Code
1539 status collapsed
1540
1541 \begin_layout Plain Layout
1542 article
1543 \end_layout
1544
1545 \end_inset
1546
1547  document class.
1548  Next, you need to put the following in your preamble:
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 usepackage{labels}
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelCols=3
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LabelRows=7
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 LeftBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 RightBorder=8mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 TopBorder=9mm
1585 \end_layout
1586
1587 \begin_layout LyX-Code
1588
1589 \backslash
1590 BottomBorder=2mm
1591 \end_layout
1592
1593 \begin_layout Standard
1594 This sets things up for Avery label sheets, stock #5360.
1595  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1596  code, placing
1597  the commands 
1598 \begin_inset Flex Code
1599 status collapsed
1600
1601 \begin_layout Plain Layout
1602
1603 \backslash
1604 begin{labels}
1605 \end_layout
1606
1607 \end_inset
1608
1609  and 
1610 \begin_inset Flex Code
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614
1615 \backslash
1616 end{labels}
1617 \end_layout
1618
1619 \end_inset
1620
1621  around each label text.
1622  This and other special features of 
1623 \begin_inset Flex Code
1624 status collapsed
1625
1626 \begin_layout Plain Layout
1627 labels.sty
1628 \end_layout
1629
1630 \end_inset
1631
1632  are explained in its documentation.
1633 \end_layout
1634
1635 \begin_layout Standard
1636 Someday, someone may write a \SpecialChar LyX
1637  layout file to support this package directly.
1638  Maybe that someone is you.
1639 \end_layout
1640
1641 \begin_layout Subsubsection
1642 Example #3: Paragraph Indentation
1643 \end_layout
1644
1645 \begin_layout Standard
1646 Americans are trained to indent the first line of 
1647 \emph on
1648 every
1649 \emph default
1650  paragraph.
1651  As with all of their other weird quirks, most Americans will whine and
1652  moan until they can have their way and indent the first line of all paragraphs.
1653  (Yes, we're joking.
1654  (We are?) 
1655 \emph on
1656 Yeah
1657 \emph default
1658 , we are.)
1659 \end_layout
1660
1661 \begin_layout Standard
1662 Of course, this behavior isn't standard typography.
1663  In books, you typically only indent the first line of a paragraph 
1664 \emph on
1665 if
1666 \emph default
1667  it follows another one.
1668  The idea behind indenting the first line of a paragraph is to distinguish
1669  neighboring paragraphs from one another.
1670  If there is no previous paragraph—for example, if it follows a figure or
1671  is the first paragraph in a section—then there is no need for indentation.
1672  
1673 \end_layout
1674
1675 \begin_layout Standard
1676 If you're a typical American (we're still joking!), though, you don't care
1677  about such esoteric things; you want your indentation! Add this to the
1678  preamble:
1679 \end_layout
1680
1681 \begin_layout LyX-Code
1682
1683 \backslash
1684 usepackage{indentfirst}
1685 \end_layout
1686
1687 \begin_layout Standard
1688 If your \SpecialChar TeX
1689  distribution isn't braindead, you'll have this package, and all
1690  of your paragraphs will get the indentation the Founding Fathers intended
1691  they should have.
1692 \end_layout
1693
1694 \begin_layout Subsubsection
1695 Example #4: This Document
1696 \end_layout
1697
1698 \begin_layout Standard
1699 You can also check out the preamble of this document to get an idea of some
1700  of the advanced things you can do.
1701 \end_layout
1702
1703 \begin_layout Section
1704 \SpecialChar LyX
1705  and \SpecialChar LaTeX
1706  Errors
1707 \end_layout
1708
1709 \begin_layout Standard
1710 When \SpecialChar LyX
1711  calls \SpecialChar LaTeX
1712 , it tells \SpecialChar LaTeX
1713  to blithely ignore any errors and keep going.
1714  It then uses the logfile from the \SpecialChar LaTeX
1715  run to do a post-mortem.
1716  After analyzing the logfile, \SpecialChar LyX
1717  displays a dialog listing the errors.
1718  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1719  file
1720  where the error occurred.
1721 \begin_inset Foot
1722 status collapsed
1723
1724 \begin_layout Plain Layout
1725 Well, usually.
1726  Analyzing the logfile is a tough job, and \SpecialChar LyX
1727  doesn't always go to the right
1728  line.
1729  There are also cases where \SpecialChar LaTeX
1730  reports the error on one line, but the actual
1731  error is earlier.
1732  This is not unlike forgetting a closing brace in a program: You'll get
1733  an error, but only later.
1734 \end_layout
1735
1736 \end_inset
1737
1738
1739 \end_layout
1740
1741 \begin_layout Standard
1742 Some folks also like to look at the log file directly: It is available from
1743  
1744 \begin_inset Flex Noun
1745 status collapsed
1746
1747 \begin_layout Plain Layout
1748 Document\SpecialChar menuseparator
1749 LaTeX
1750 \begin_inset space ~
1751 \end_inset
1752
1753 Log
1754 \end_layout
1755
1756 \end_inset
1757
1758 .
1759  There are some fairly common error messages and warnings.
1760  We'll cover those here.
1761  You should look at a good \SpecialChar LaTeX
1762  book for a complete listing.
1763 \end_layout
1764
1765 \begin_layout Itemize
1766 \begin_inset Flex Code
1767 status collapsed
1768
1769 \begin_layout Plain Layout
1770 LaTeX Warning
1771 \end_layout
1772
1773 \end_inset
1774
1775
1776 \begin_inset Newline newline
1777 \end_inset
1778
1779 Anything beginning with these words is a warning message for the purpose
1780  of 
1781 \begin_inset Quotes eld
1782 \end_inset
1783
1784 debugging
1785 \begin_inset Quotes erd
1786 \end_inset
1787
1788  the \SpecialChar LaTeX
1789  code itself.
1790  You'll get messages like this if you added or changed cross-references
1791  or bibliography entries, in which case, \SpecialChar LaTeX
1792  is trying to tell you that you
1793  need to make another run.
1794  You can by-and-large ignore these.
1795 \end_layout
1796
1797 \begin_layout Itemize
1798 \begin_inset Flex Code
1799 status collapsed
1800
1801 \begin_layout Plain Layout
1802 LaTeX Font Warning
1803 \end_layout
1804
1805 \end_inset
1806
1807
1808 \begin_inset Newline newline
1809 \end_inset
1810
1811 Another warning message, this time about fonts which \SpecialChar LaTeX
1812  couldn't find.
1813  The rest of the message will often say something about a replacement font
1814  that \SpecialChar LaTeX
1815  used.
1816  You can safely ignore these, too.
1817 \end_layout
1818
1819 \begin_layout Itemize
1820 \begin_inset Flex Code
1821 status collapsed
1822
1823 \begin_layout Plain Layout
1824 Overfull 
1825 \backslash
1826 hbox
1827 \end_layout
1828
1829 \end_inset
1830
1831
1832 \begin_inset Newline newline
1833 \end_inset
1834
1835 \SpecialChar LaTeX
1836  absolutely 
1837 \emph on
1838 loves
1839 \emph default
1840  to spew these out.
1841  It seems to generate at least one of these messages for just about any
1842  document you write.
1843  They are warnings about lines that were too long and run past the right
1844  margin.
1845  This happens if \SpecialChar LaTeX
1846  does not find a reasonable way to break the lines (notoriously
1847  often with typewriter font, since this does not allow for automatic break
1848  points).
1849  In many cases, this is unnoticeable in the final output.
1850  (It can be just a point or two.) Sometimes, however, the lines run rather
1851  visibly into the margin; something you will not want to have in your final
1852  print.
1853  
1854 \begin_inset Newline newline
1855 \end_inset
1856
1857 There are several global ways to try to minimize the overfull lines.
1858  Clicking 
1859 \family sans
1860 Enable micro-typographic extensions
1861 \family default
1862  in 
1863 \family sans
1864 Document\SpecialChar menuseparator
1865 Settings\SpecialChar menuseparator
1866 Fonts
1867 \family default
1868  might already improve things a lot.
1869  Furthermore, \SpecialChar LaTeX
1870  code such as the following in 
1871 \family sans
1872 Document\SpecialChar menuseparator
1873 Settings\SpecialChar menuseparator
1874 Preamble
1875 \family default
1876  usually reduces the overfull lines drastically (we use this in the preamble
1877  of this document):
1878 \end_layout
1879
1880 \begin_deeper
1881 \begin_layout LyX-Code
1882
1883 \backslash
1884 tolerance 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 hbadness 1414
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 emergencystretch 1.5em
1897 \begin_inset Newline newline
1898 \end_inset
1899
1900
1901 \backslash
1902 hfuzz 0.3pt
1903 \end_layout
1904
1905 \begin_layout Standard
1906 In some cases, however, you eventually have to rewrite the text to get the
1907  line breaking right.
1908 \begin_inset Foot
1909 status collapsed
1910
1911 \begin_layout Plain Layout
1912 For more information, see 
1913 \begin_inset Flex URL
1914 status open
1915
1916 \begin_layout Plain Layout
1917
1918 http://www.tex.ac.uk/FAQ-overfull.html
1919 \end_layout
1920
1921 \end_inset
1922
1923
1924 \end_layout
1925
1926 \end_inset
1927
1928
1929 \end_layout
1930
1931 \begin_layout Standard
1932 In any case, you should check the respective lines, at least for the final
1933  version of your document.
1934  Your eyes will tell you if there's a problem with something that's too
1935  wide.
1936 \begin_inset Foot
1937 status collapsed
1938
1939 \begin_layout Plain Layout
1940 You can also enable the `draft' option in 
1941 \begin_inset Flex Noun
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 Document\SpecialChar menuseparator
1946 Settings
1947 \end_layout
1948
1949 \end_inset
1950
1951 , and then \SpecialChar LaTeX
1952  will draw a black box in the margin of lines that are overfull.
1953 \end_layout
1954
1955 \end_inset
1956
1957  
1958 \end_layout
1959
1960 \end_deeper
1961 \begin_layout Itemize
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966 Underfull 
1967 \backslash
1968 hbox
1969 \end_layout
1970
1971 \end_inset
1972
1973
1974 \begin_inset Newline newline
1975 \end_inset
1976
1977 Not quite as common as its cousin.
1978  This happens again if \SpecialChar LaTeX
1979  does not find a reasonable break point and consequently
1980  generates too loose lines.
1981  As with the overfull lines, you should check if this is a visible problem.
1982 \end_layout
1983
1984 \begin_layout Itemize
1985 \begin_inset Flex Code
1986 status collapsed
1987
1988 \begin_layout Plain Layout
1989 Overfull 
1990 \backslash
1991 vbox
1992 \end_layout
1993
1994 \end_inset
1995
1996  and 
1997 \begin_inset Flex Code
1998 status collapsed
1999
2000 \begin_layout Plain Layout
2001 Underfull 
2002 \backslash
2003 vbox
2004 \end_layout
2005
2006 \end_inset
2007
2008
2009 \begin_inset Newline newline
2010 \end_inset
2011
2012 Warnings about troubles breaking the page.
2013  Once again, just look at the output.
2014  Your eyes will tell you where something has gone wrong.
2015 \end_layout
2016
2017 \begin_layout Itemize
2018 \begin_inset Flex Code
2019 status collapsed
2020
2021 \begin_layout Plain Layout
2022 LaTeX Error: File 
2023 \begin_inset Quotes els
2024 \end_inset
2025
2026 Xxxx
2027 \begin_inset Quotes ers
2028 \end_inset
2029
2030  not found
2031 \end_layout
2032
2033 \end_inset
2034
2035
2036 \begin_inset Newline newline
2037 \end_inset
2038
2039 The file 
2040 \begin_inset Quotes eld
2041 \end_inset
2042
2043 Xxxx
2044 \begin_inset Quotes erd
2045 \end_inset
2046
2047  isn't installed on this system.
2048  This usually appears because some package your document needs isn't installed.
2049  If you didn't touch the preamble or didn't use the 
2050 \begin_inset Flex Code
2051 status collapsed
2052
2053 \begin_layout Plain Layout
2054
2055 \backslash
2056 usepackage{}
2057 \end_layout
2058
2059 \end_inset
2060
2061  command, then one of the packages \SpecialChar LyX
2062  tried to load is missing.
2063  Use 
2064 \begin_inset Flex Noun
2065 status collapsed
2066
2067 \begin_layout Plain Layout
2068 Help\SpecialChar menuseparator
2069 \SpecialChar LaTeX
2070  Configuration
2071 \end_layout
2072
2073 \end_inset
2074
2075  to get a list of packages that \SpecialChar LyX
2076  knows about.
2077  This file is updated whenever you reconfigure \SpecialChar LyX
2078  (using 
2079 \begin_inset Flex Noun
2080 status collapsed
2081
2082 \begin_layout Plain Layout
2083 Tools\SpecialChar menuseparator
2084 Reconfigure
2085 \end_layout
2086
2087 \end_inset
2088
2089 ) and tells you which packages have been detected and what they do.
2090 \begin_inset Newline newline
2091 \end_inset
2092
2093 If you did use the 
2094 \begin_inset Flex Code
2095 status collapsed
2096
2097 \begin_layout Plain Layout
2098
2099 \backslash
2100 usepackage{}
2101 \end_layout
2102
2103 \end_inset
2104
2105  command and the package in question isn't installed, then you'll need to
2106  install it yourself.
2107 \end_layout
2108
2109 \begin_layout Itemize
2110 \begin_inset Flex Code
2111 status collapsed
2112
2113 \begin_layout Plain Layout
2114 LaTeX Error: Unknown option
2115 \end_layout
2116
2117 \end_inset
2118
2119
2120 \begin_inset Newline newline
2121 \end_inset
2122
2123 Error messages beginning with this are trying to tell you that you specified
2124  a bad or undefined option to a package.
2125  Check the package's documentation.
2126 \end_layout
2127
2128 \begin_layout Itemize
2129 \begin_inset Flex Code
2130 status collapsed
2131
2132 \begin_layout Plain Layout
2133 Undefined control sequence
2134 \end_layout
2135
2136 \end_inset
2137
2138
2139 \begin_inset Newline newline
2140 \end_inset
2141
2142 If you've inserted \SpecialChar LaTeX
2143  code into your document, but made a typo, you'll get
2144  one of these.
2145  You may have forgotten to load a package.
2146  In any case, this error message usually means that you used an undefined
2147  command.
2148  
2149 \end_layout
2150
2151 \begin_layout Standard
2152 There are other error and warning messages.
2153  Some are self-explanatory.
2154  These are usually \SpecialChar LaTeX
2155  messages.
2156  Others are downright cryptic.
2157  These are usually \SpecialChar TeX
2158  error messages, and we really have 
2159 \emph on
2160 no clue
2161 \emph default
2162  what they mean or how to decipher them.
2163  No-one does.
2164 \end_layout
2165
2166 \begin_layout Standard
2167 There's a general sequence you should follow if you get error messages:
2168 \end_layout
2169
2170 \begin_layout Enumerate
2171 Look at the \SpecialChar LaTeX
2172  code you inserted for typos.
2173 \end_layout
2174
2175 \begin_layout Enumerate
2176 If there are no typos, check that you used the command(s) correctly.
2177 \end_layout
2178
2179 \begin_layout Enumerate
2180 If you get a bunch of error boxes piled up at the very top of the document—and
2181  especially if you see a 
2182 \begin_inset Quotes eld
2183 \end_inset
2184
2185
2186 \begin_inset Flex Code
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 Missing 
2191 \backslash
2192 begin{document}
2193 \end_layout
2194
2195 \end_inset
2196
2197
2198 \begin_inset Quotes erd
2199 \end_inset
2200
2201  error—it means that there are errors in the preamble.
2202  Start debugging your preamble.
2203 \end_layout
2204
2205 \begin_layout Enumerate
2206 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2207  code to the
2208  document, the first suspect is your \SpecialChar LaTeX
2209  distribution itself.
2210  Check for missing packages and install them.
2211 \end_layout
2212
2213 \begin_layout Enumerate
2214 Okay, so there are no missing packages.
2215  Did you use any of the fine-tuning options in \SpecialChar LyX
2216 ? Specifically, did you 
2217 \emph on
2218 misuse
2219 \emph default
2220  any of them, like trying to manually insert lots of 
2221 \begin_inset Flex Code
2222 status collapsed
2223
2224 \begin_layout Plain Layout
2225
2226 \change_deleted 177693 1654669036
2227 Protected
2228 \change_inserted 177693 1654669038
2229 Non-Breaking
2230 \change_unchanged
2231
2232 \begin_inset space ~
2233 \end_inset
2234
2235
2236 \change_deleted 177693 1654669040
2237 Blanks
2238 \change_inserted 177693 1654669041
2239 Spaces
2240 \change_unchanged
2241
2242 \end_layout
2243
2244 \end_inset
2245
2246
2247 \begin_inset Flex Code
2248 status collapsed
2249
2250 \begin_layout Plain Layout
2251 Linebreaks
2252 \end_layout
2253
2254 \end_inset
2255
2256 , or 
2257 \begin_inset Flex Code
2258 status collapsed
2259
2260 \begin_layout Plain Layout
2261 Pagebreaks
2262 \end_layout
2263
2264 \end_inset
2265
2266 ? Did you try to kludge something together with these instead of using the
2267  appropriate paragraph environment?
2268 \end_layout
2269
2270 \begin_layout Enumerate
2271 All right, you didn't use any of the fine-tuning options, you played by
2272  the rules.
2273  Did you try to pull a fancy maneuver? Did you do something funky inside
2274  a table or an equation, like inserting a graphic into a table cell?
2275 \end_layout
2276
2277 \begin_layout Enumerate
2278 Do you have long sections of text where \SpecialChar LaTeX
2279  cannot find a place to break a
2280  line? By default, \SpecialChar LaTeX
2281  is rather strict about how much extra inter-word spacing
2282  it will add in order to break a line.
2283  Preferably, you should rework the paragraph to avoid the problem.
2284 \end_layout
2285
2286 \begin_layout Enumerate
2287 Did you go overboard with the nesting? \SpecialChar LyX
2288  (currently) doesn't check to make
2289  sure you're in the limits for nesting environments.
2290  If you nested a bunch of environments to the 
2291 \begin_inset Formula $17^{\mathrm{th}}$
2292 \end_inset
2293
2294  level, that's the problem.
2295  (The limit in \SpecialChar LaTeX
2296  is five.)
2297 \end_layout
2298
2299 \begin_layout Enumerate
2300 Okay, you didn't get any error messages, but your output looks awful.
2301  If you have a table or figure that's too wide or long for the page, you
2302  need to:
2303 \end_layout
2304
2305 \begin_deeper
2306 \begin_layout Enumerate
2307 rescale the figure so it fits.
2308 \end_layout
2309
2310 \begin_layout Enumerate
2311 trim down the table so it fits.
2312 \end_layout
2313
2314 \end_deeper
2315 \begin_layout Enumerate
2316 If something else is wrong with the output, and you didn't try to pull anything
2317  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2318 \end_layout
2319
2320 \begin_layout Standard
2321 If all this doesn't help—well, then 
2322 \emph on
2323 perhaps
2324 \emph default
2325  you might have found a bug in \SpecialChar LyX
2326 \SpecialChar ldots
2327 .
2328 \end_layout
2329
2330 \begin_layout Chapter
2331
2332 \change_inserted 564990737 1672345271
2333 Document classes
2334 \end_layout
2335
2336 \begin_layout Standard
2337
2338 \change_inserted 564990737 1672345272
2339
2340 \lang american
2341 As explained in the 
2342 \emph on
2343 User's Guide
2344 \emph default
2345 , \SpecialChar LaTeX
2346  originally offered four standard document classes, article, report, book
2347  and letter, but individuals and organizations, most notably the American
2348  Mathematical Society in the early days, have made many contributions to
2349  extending the range of document classes.
2350  In this chapter we summarize the main externally maintained classes, some
2351  of which are marked “Unavailable:” in the pull-down 
2352 \family sans
2353 Document
2354 \begin_inset space ~
2355 \end_inset
2356
2357
2358 \bar under
2359 c
2360 \bar default
2361 lass
2362 \family default
2363  list in the 
2364 \family sans
2365 \bar under
2366 D
2367 \bar default
2368 ocument\SpecialChar menuseparator
2369
2370 \bar under
2371 S
2372 \bar default
2373 ettings\SpecialChar menuseparator
2374 Document
2375 \begin_inset space ~
2376 \end_inset
2377
2378 class
2379 \family default
2380  dialog and which you will need to install as described in the 
2381 \emph on
2382 Installing New Document Classes
2383 \emph default
2384  chapter of the 
2385 \emph on
2386 Customization
2387 \emph default
2388  manual if you want to use them.
2389  
2390 \end_layout
2391
2392 \begin_layout Section
2393
2394 \change_inserted 564990737 1670439533
2395 \begin_inset CommandInset label
2396 LatexCommand label
2397 name "sec:Collections"
2398
2399 \end_inset
2400
2401 Collections
2402 \end_layout
2403
2404 \begin_layout Subsection
2405
2406 \change_inserted 564990737 1672345298
2407
2408 \lang american
2409 \begin_inset CommandInset label
2410 LatexCommand label
2411 name "subsec:AMS-LaTeX-(American-Mathematical"
2412
2413 \end_inset
2414
2415 AMS-\SpecialChar LaTeX
2416  (American Mathematical Society)
2417 \end_layout
2418
2419 \begin_layout Standard
2420
2421 \change_inserted 564990737 1672345298
2422
2423 \lang american
2424 The \SpecialChar LyX
2425  supported document classes 
2426 \family sans
2427 article (AMS)
2428 \family default
2429  and 
2430 \family sans
2431 book (AMS)
2432 \family default
2433  are maintained by the Society; use of their features is described in the
2434  Math manual and on their website 
2435 \begin_inset Flex URL
2436 status collapsed
2437
2438 \begin_layout Plain Layout
2439
2440 \change_inserted 564990737 1672345298
2441
2442 http://www.ams.org/publications/authors/tex/amslatex
2443 \change_unchanged
2444
2445 \end_layout
2446
2447 \end_inset
2448
2449 .
2450  The following summary was originally provided by 
2451 \noun on
2452 David Johnson
2453 \noun default
2454  and updated by 
2455 \noun on
2456 Richard Heck
2457 \noun default
2458  and the \SpecialChar LyX
2459  Team
2460 \noun on
2461 .
2462 \change_deleted 564990737 1672345297
2463
2464 \noun default
2465 \lang english
2466 AMS \SpecialChar LaTeX
2467
2468 \end_layout
2469
2470 \begin_layout Standard
2471
2472 \change_deleted 564990737 1672345297
2473 by 
2474 \noun on
2475 David Johnson
2476 \noun default
2477 ; updated by 
2478 \noun on
2479 Richard Kimberly Heck
2480 \change_unchanged
2481
2482 \end_layout
2483
2484 \begin_layout Standard
2485 \begin_inset VSpace bigskip
2486 \end_inset
2487
2488
2489 \end_layout
2490
2491 \begin_layout Standard
2492 \noindent
2493 The AMS \SpecialChar LaTeX
2494  layouts are set up to conform to suggested styles for mathematical
2495  papers to be submitted to American Mathematical Society publications.
2496  The layouts are not tailored to a specific journal, but easily can be.
2497  You should refer to the AMS documentation for specific instructions for
2498  each journal (usually it will entail only changing a single line in the
2499  \SpecialChar TeX
2500  output).
2501  That documentation is available on the Web at 
2502 \begin_inset Flex URL
2503 status open
2504
2505 \begin_layout Plain Layout
2506
2507 http://www.ams.org
2508 \end_layout
2509
2510 \end_inset
2511
2512  or by ftp at 
2513 \begin_inset Flex URL
2514 status open
2515
2516 \begin_layout Plain Layout
2517
2518 ftp://ftp.ams.org/pub/tex/amslatex/
2519 \end_layout
2520
2521 \end_inset
2522
2523 .
2524  These layouts are appropriate, and useful, for any mathematical writing.
2525  
2526 \end_layout
2527
2528 \begin_layout Standard
2529 There are two basic AMS \SpecialChar LaTeX
2530  layouts: 
2531 \end_layout
2532
2533 \begin_layout Itemize
2534 amsart: The standard AMS article format
2535 \change_inserted 564990737 1672345333
2536
2537 \lang american
2538 ; see 
2539 \family sans
2540 File\SpecialChar menuseparator
2541 Open Example\SpecialChar menuseparator
2542 Articles\SpecialChar menuseparator
2543 American Mathematical Society (AMS)
2544 \change_unchanged
2545
2546 \family default
2547 \lang english
2548 .
2549 \end_layout
2550
2551 \begin_layout Itemize
2552 amsbook: the standard AMS book (really, monograph) format
2553 \change_inserted 564990737 1672345366
2554
2555 \lang american
2556 ; see 
2557 \family sans
2558 File\SpecialChar menuseparator
2559 Open Example\SpecialChar menuseparator
2560 Books\SpecialChar menuseparator
2561 American Mathematical Society (AMS)
2562 \change_unchanged
2563
2564 \family default
2565 \lang english
2566 .
2567 \change_inserted 564990737 1672345369
2568
2569 \end_layout
2570
2571 \begin_layout Itemize
2572
2573 \change_inserted 564990737 1672345383
2574
2575 \family sans
2576 \lang american
2577 amsproc
2578 \family default
2579 : the standard AMS proceedings format.
2580 \end_layout
2581
2582 \begin_layout Standard
2583
2584 \change_inserted 564990737 1672345383
2585
2586 \lang american
2587 \SpecialChar LyX
2588  only supports the first two natively; see the 
2589 \emph on
2590 Installing New Document Classes
2591 \emph default
2592  chapter of the 
2593 \emph on
2594 Customization
2595 \emph default
2596  manual if you want to use 
2597 \family sans
2598 amsproc
2599 \family default
2600 .
2601 \end_layout
2602
2603 \begin_layout Standard
2604 The layouts themselves contain only the minimum necessary to use the AMS
2605  classes.
2606  They do not, in particular, contain any of the `theorem' environments used
2607  for setting theorems, lemmas, and the like.
2608  These are contained, instead, in the 
2609 \change_deleted 564990737 1672345416
2610
2611 \begin_inset Flex Code
2612 status collapsed
2613
2614 \begin_layout Plain Layout
2615 Theorems (AMS)
2616 \end_layout
2617
2618 \end_inset
2619
2620
2621 \change_inserted 564990737 1672345416
2622
2623 \family sans
2624 \lang american
2625 AMS Theorems
2626 \change_unchanged
2627
2628 \family default
2629 \lang english
2630  module, which is loaded by default when you select one of the AMS classes.
2631  (It can also be used with other classes and can be removed, if you would
2632  rather use something else.) Less commonly used environments are in the 
2633 \change_deleted 564990737 1672345436
2634
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 Theorems (AMS-Extended)
2640 \end_layout
2641
2642 \end_inset
2643
2644
2645 \change_inserted 564990737 1672345436
2646
2647 \lang american
2648  
2649 \family sans
2650 AMS Theorems (Extended)
2651 \change_unchanged
2652
2653 \family default
2654 \lang english
2655  module, which must be loaded manually.
2656 \end_layout
2657
2658 \begin_layout Standard
2659 By default, theorems and the like are numbered consecutively throughout
2660  the document, but this may be modified by loading the module 
2661 \change_deleted 564990737 1672345461
2662
2663 \begin_inset Flex Code
2664 status collapsed
2665
2666 \begin_layout Plain Layout
2667 Theorems (Order by Section)
2668 \end_layout
2669
2670 \end_inset
2671
2672
2673 \change_inserted 564990737 1672345461
2674
2675 \family sans
2676 \lang american
2677 Standard Theorems (Numbered by Section)
2678 \change_unchanged
2679
2680 \family default
2681 \lang english
2682  or, if you are using 
2683 \begin_inset Flex Code
2684 status collapsed
2685
2686 \begin_layout Plain Layout
2687 book (AMS)
2688 \end_layout
2689
2690 \end_inset
2691
2692 , the module 
2693 \change_deleted 564990737 1672345479
2694
2695 \begin_inset Flex Code
2696 status collapsed
2697
2698 \begin_layout Plain Layout
2699 Theorems (Order by Chapter)
2700 \end_layout
2701
2702 \end_inset
2703
2704
2705 \change_inserted 564990737 1672345480
2706
2707 \family sans
2708 \lang american
2709 Standard Theorems (Numbered by Chapter)
2710 \change_unchanged
2711
2712 \family default
2713 \lang english
2714 .
2715  These will number the results as 
2716 \begin_inset Formula $n.m$
2717 \end_inset
2718
2719 , where the first number refers to the section (or chapter) and the second
2720  refers to the total number of results so far in that section (or chapter).
2721  Many environments are also available unnumbered.
2722  These are indicated by an asterisk at the end.
2723  If you happen to want 
2724 \emph on
2725 only
2726 \emph default
2727  unnumbered results, the module 
2728 \change_deleted 564990737 1672345498
2729
2730 \begin_inset Flex Code
2731 status collapsed
2732
2733 \begin_layout Plain Layout
2734 Theorems (Starred)
2735 \end_layout
2736
2737 \end_inset
2738
2739
2740 \change_inserted 564990737 1672345498
2741
2742 \family sans
2743 \lang american
2744 Standard Theorems (Unnumbered)
2745 \change_unchanged
2746
2747 \family default
2748 \lang english
2749  provides that option.
2750 \end_layout
2751
2752 \begin_layout Standard
2753 Note that these modules do not 
2754 \emph on
2755 have
2756 \emph default
2757  to be used with the AMS classes.
2758  It is perfectly possible to use the 
2759 \change_deleted 564990737 1672345520
2760
2761 \begin_inset Flex Code
2762 status collapsed
2763
2764 \begin_layout Plain Layout
2765 Theorems (AMS)
2766 \end_layout
2767
2768 \end_inset
2769
2770
2771 \change_inserted 564990737 1672345520
2772
2773 \family sans
2774 \lang american
2775 AMS Theorems
2776 \change_unchanged
2777
2778 \family default
2779 \lang english
2780  module, and the others mentioned, with other classes, such as 
2781 \begin_inset Flex Code
2782 status collapsed
2783
2784 \begin_layout Plain Layout
2785 article
2786 \end_layout
2787
2788 \end_inset
2789
2790
2791 \begin_inset Flex Code
2792 status collapsed
2793
2794 \begin_layout Plain Layout
2795 report
2796 \end_layout
2797
2798 \end_inset
2799
2800
2801 \begin_inset Flex Code
2802 status collapsed
2803
2804 \begin_layout Plain Layout
2805 book (KOMA-script)
2806 \end_layout
2807
2808 \end_inset
2809
2810 , and so forth.
2811 \end_layout
2812
2813 \begin_layout Subsubsection
2814 What these layouts provide
2815 \end_layout
2816
2817 \begin_layout Standard
2818 There is a long list of included environments provided by these layouts.
2819  In AMS-\SpecialChar LaTeX
2820 , there is, in fact, an opportunity to define an unlimited variety
2821  of `theorem' environments.
2822  However, the AMS recommends the environments that are available in \SpecialChar LyX
2823 .
2824  
2825 \end_layout
2826
2827 \begin_layout Standard
2828 The following environments—as well as the standard environments, such as
2829  
2830 \begin_inset Flex Noun
2831 status collapsed
2832
2833 \begin_layout Plain Layout
2834 section
2835 \end_layout
2836
2837 \end_inset
2838
2839
2840 \begin_inset Flex Noun
2841 status collapsed
2842
2843 \begin_layout Plain Layout
2844 bibliography
2845 \end_layout
2846
2847 \end_inset
2848
2849
2850 \begin_inset Flex Noun
2851 status collapsed
2852
2853 \begin_layout Plain Layout
2854 title
2855 \end_layout
2856
2857 \end_inset
2858
2859
2860 \begin_inset Flex Noun
2861 status collapsed
2862
2863 \begin_layout Plain Layout
2864 author
2865 \end_layout
2866
2867 \end_inset
2868
2869 , and 
2870 \begin_inset Flex Noun
2871 status collapsed
2872
2873 \begin_layout Plain Layout
2874 date
2875 \end_layout
2876
2877 \end_inset
2878
2879 —are provided by 
2880 \begin_inset Flex Code
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884 article (AMS)
2885 \end_layout
2886
2887 \end_inset
2888
2889  and 
2890 \begin_inset Flex Code
2891 status collapsed
2892
2893 \begin_layout Plain Layout
2894 book (AMS)
2895 \end_layout
2896
2897 \end_inset
2898
2899 :
2900 \end_layout
2901
2902 \begin_layout Description
2903 Address This should be the author's permanent address.
2904 \end_layout
2905
2906 \begin_layout Description
2907 Current
2908 \begin_inset space ~
2909 \end_inset
2910
2911 Address This should be the author's temporary address at the time of submission,
2912  if different from the Address.
2913 \end_layout
2914
2915 \begin_layout Description
2916 Email Author's e-mail address
2917 \end_layout
2918
2919 \begin_layout Description
2920 URL Author's Web address, if desired.
2921 \end_layout
2922
2923 \begin_layout Description
2924 Keywords Key words or phrases used to identify specific topics discussed
2925  in the paper.
2926 \end_layout
2927
2928 \begin_layout Description
2929 Subjectclass These refer to the AMS Subject Classifications, published and
2930  described in 
2931 \emph on
2932 Mathematical Reviews
2933 \emph default
2934 .
2935  These are also available online at the AMS cites listed above.
2936 \end_layout
2937
2938 \begin_layout Description
2939 Thanks
2940 \end_layout
2941
2942 \begin_layout Description
2943 Dedicatory
2944 \end_layout
2945
2946 \begin_layout Description
2947 Translator
2948 \end_layout
2949
2950 \begin_layout Standard
2951 The following environments are provided by both the 
2952 \change_deleted 564990737 1672345566
2953
2954 \begin_inset Flex Code
2955 status collapsed
2956
2957 \begin_layout Plain Layout
2958 Theorems
2959 \end_layout
2960
2961 \end_inset
2962
2963
2964 \change_inserted 564990737 1672345566
2965
2966 \family sans
2967 \lang american
2968 Standard Theorems
2969 \change_unchanged
2970
2971 \family default
2972 \lang english
2973  and 
2974 \change_deleted 564990737 1672345580
2975
2976 \begin_inset Flex Code
2977 status collapsed
2978
2979 \begin_layout Plain Layout
2980 Theorems (AMS)
2981 \end_layout
2982
2983 \end_inset
2984
2985
2986 \change_inserted 564990737 1672345580
2987
2988 \family sans
2989 \lang american
2990 AMS Theorems
2991 \change_unchanged
2992
2993 \family default
2994 \lang english
2995  modules, in the latter case in both starred (unnumbered) and unstarred
2996  (numbered) versions.
2997  These same environments are provided only in the starred versions by the
2998  
2999 \change_deleted 564990737 1672345596
3000
3001 \begin_inset Flex Code
3002 status collapsed
3003
3004 \begin_layout Plain Layout
3005 Theorems (Starred)
3006 \end_layout
3007
3008 \end_inset
3009
3010
3011 \change_inserted 564990737 1672345596
3012
3013 \family sans
3014 \lang american
3015 Standard Theorems
3016 \change_unchanged
3017
3018 \family default
3019 \lang english
3020  module:
3021 \end_layout
3022
3023 \begin_layout Theorem
3024 This is typically used for the statements of major results.
3025  
3026 \end_layout
3027
3028 \begin_layout Corollary*
3029 This is used for statements which follow fairly directly from previous statement
3030 s.
3031  Again, these can be major results.
3032  
3033 \end_layout
3034
3035 \begin_layout Lemma
3036 These are smaller results needed to prove other statements.
3037 \end_layout
3038
3039 \begin_layout Proposition
3040 These are less major results which (hopefully) add to the general theory
3041  being discussed.
3042 \end_layout
3043
3044 \begin_layout Conjecture
3045 These are statements provided without justification, which the author does
3046  not know how to prove, but which seem to be true (to the author, at least).
3047 \end_layout
3048
3049 \begin_layout Definition*
3050 Guess what this is for.
3051  The font is different for this environment than for the previous ones.
3052  
3053 \end_layout
3054
3055 \begin_layout Example*
3056 Used for examples illustrating proven results.
3057 \end_layout
3058
3059 \begin_layout Problem
3060 It's not really known what this is for.
3061  You should figure it out.
3062 \end_layout
3063
3064 \begin_layout Exercise*
3065 Write a description for this one.
3066 \end_layout
3067
3068 \begin_layout Remark
3069 This environment is also a type of theorem, usually a lesser sort of observation.
3070 \end_layout
3071
3072 \begin_layout Claim*
3073 Often used in the course of giving a proof of a larger result.
3074 \end_layout
3075
3076 \begin_layout Case
3077 Generally, these are used to break up long arguments, using specific instances
3078  of some condition.
3079  
3080 \end_layout
3081
3082 \begin_layout Case
3083 The numbering scheme for cases is on its own, not together with other numbered
3084  statements.
3085  
3086 \end_layout
3087
3088 \begin_layout Proof
3089 At the end of this environment, a QED symbol (usually a square, but it can
3090  vary with different styles) is placed.
3091  If you want to have other environments within this one—for example, Case
3092  environments—and have the QED symbol appear only after them, then the other
3093  environments need to be nested within the proof environment.
3094  See the section 
3095 \emph on
3096 Nesting Environments
3097 \emph default
3098  of the 
3099 \emph on
3100 User's Guide
3101 \emph default
3102  for information on nesting.
3103 \end_layout
3104
3105 \begin_layout Fact
3106
3107 \change_inserted 564990737 1672345651
3108 Used in a way similar to Proposition, though perhaps lower on the scale.
3109 \end_layout
3110
3111 \begin_layout Standard
3112 And these environments are provided by 
3113 \change_deleted 564990737 1672345684
3114
3115 \begin_inset Flex Code
3116 status collapsed
3117
3118 \begin_layout Plain Layout
3119 Theorems (AMS-Extended)
3120 \end_layout
3121
3122 \end_inset
3123
3124
3125 \change_inserted 564990737 1672345689
3126
3127 \family sans
3128 \lang american
3129 AMS Theorems (Extended
3130 \family default
3131 \lang english
3132 )
3133 \change_unchanged
3134 :
3135 \end_layout
3136
3137 \begin_layout Criterion*
3138 A required condition.
3139 \end_layout
3140
3141 \begin_layout Algorithm*
3142 A general procedure to be used.
3143 \end_layout
3144
3145 \begin_layout Axiom*
3146 This is a property or statement taken as true within the system being discussed.
3147 \end_layout
3148
3149 \begin_layout Condition*
3150 Sometimes used to state a condition assumed within the present context of
3151  discussion.
3152 \end_layout
3153
3154 \begin_layout Note*
3155 Similar to a Remark.
3156 \end_layout
3157
3158 \begin_layout Notation*
3159 Used for the explanation of, yes, notation.
3160 \end_layout
3161
3162 \begin_layout Summary
3163 Do we really need to tell you? 
3164 \end_layout
3165
3166 \begin_layout Acknowledgement*
3167 Acknowledgement.
3168 \end_layout
3169
3170 \begin_layout Conclusion*
3171 Sometimes used at the end of a long train of argument.
3172 \change_deleted 564990737 1672345729
3173
3174 \end_layout
3175
3176 \begin_layout Fact
3177
3178 \change_deleted 564990737 1672345638
3179 Used in a way similar to Proposition, though perhaps lower on the scale.
3180 \change_inserted 564990737 1672345720
3181
3182 \end_layout
3183
3184 \begin_layout Assumption*
3185
3186 \change_inserted 564990737 1672345721
3187
3188 \lang american
3189 Assumption
3190 \end_layout
3191
3192 \begin_layout Question*
3193
3194 \change_inserted 564990737 1672345721
3195
3196 \lang american
3197 Question
3198 \end_layout
3199
3200 \begin_layout Standard
3201
3202 \change_inserted 564990737 1672345721
3203
3204 \lang american
3205 There are ten more Maths modules available including several offering options
3206  ordered on 
3207 \family sans
3208 (Numbered by Type \SpecialChar ldots
3209 )
3210 \family default
3211 .
3212 \change_unchanged
3213
3214 \end_layout
3215
3216 \begin_layout Standard
3217 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
3218  and AMS fonts
3219  packages.
3220  They need to be available on your system in order to use these environments.
3221 \end_layout
3222
3223 \begin_layout Subsection
3224
3225 \change_inserted 564990737 1671383236
3226
3227 \lang american
3228 \begin_inset CommandInset label
3229 LatexCommand label
3230 name "subsec:Extra-font-sizes"
3231
3232 \end_inset
3233
3234 Extra font sizes
3235 \end_layout
3236
3237 \begin_layout Standard
3238
3239 \change_inserted 564990737 1671383236
3240
3241 \lang american
3242 The “Extra font sizes” collection provides the document classes 
3243 \family sans
3244 article
3245 \begin_inset space \thinspace{}
3246 \end_inset
3247
3248 (with extra font sizes)
3249 \family default
3250
3251 \family sans
3252 book
3253 \begin_inset space \thinspace{}
3254 \end_inset
3255
3256 (with extra font sizes)
3257 \family default
3258
3259 \family sans
3260 letter
3261 \begin_inset space \thinspace{}
3262 \end_inset
3263
3264 (with extra font sizes)
3265 \family default
3266  and 
3267 \family sans
3268 report
3269 \begin_inset space \thinspace{}
3270 \end_inset
3271
3272 (with extra font sizes)
3273 \family default
3274  which use the 
3275 \family typewriter
3276 article.cls
3277 \family default
3278
3279 \family typewriter
3280 book.cls
3281 \family default
3282
3283 \family typewriter
3284 letter.cls
3285 \family default
3286  and 
3287 \family typewriter
3288 report.cls
3289 \family default
3290  document classes respectively but offer the additional 
3291 \family sans
3292 \bar under
3293 B
3294 \bar default
3295 ase
3296 \begin_inset space ~
3297 \end_inset
3298
3299 Size
3300 \family default
3301  options 8, 9, 14, 17 and 20 in the 
3302 \family sans
3303 \bar under
3304 D
3305 \bar default
3306 ocument\SpecialChar menuseparator
3307
3308 \bar under
3309 S
3310 \bar default
3311 ettings\SpecialChar menuseparator
3312 Fonts
3313 \family default
3314  dialog.
3315 \end_layout
3316
3317 \begin_layout Subsection
3318
3319 \change_inserted 564990737 1671383236
3320
3321 \lang american
3322 Hebrew
3323 \end_layout
3324
3325 \begin_layout Standard
3326
3327 \change_inserted 564990737 1671383236
3328
3329 \lang american
3330 The document classes 
3331 \family sans
3332 article
3333 \begin_inset space \thinspace{}
3334 \end_inset
3335
3336 (Hebrew)
3337 \family default
3338  and 
3339 \family sans
3340 letter
3341 \begin_inset space \thinspace{}
3342 \end_inset
3343
3344 (Hebrew)
3345 \family default
3346  use the 
3347 \family typewriter
3348 article.cl
3349 \family sans
3350 s
3351 \family default
3352  and 
3353 \family typewriter
3354 letter.cls
3355 \family default
3356  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3357 .
3358 \end_layout
3359
3360 \begin_layout Subsection
3361
3362 \change_inserted 564990737 1671383236
3363
3364 \lang american
3365 \begin_inset CommandInset label
3366 LatexCommand label
3367 name "subsec:Japanese"
3368
3369 \end_inset
3370
3371 Japanese
3372 \end_layout
3373
3374 \begin_layout Standard
3375
3376 \change_inserted 564990737 1671383236
3377
3378 \lang american
3379 The document classes 
3380 \family sans
3381 article
3382 \begin_inset space \thinspace{}
3383 \end_inset
3384
3385 (Japanese JS Class)
3386 \family default
3387 ,
3388 \family sans
3389  article
3390 \begin_inset space \thinspace{}
3391 \end_inset
3392
3393 (Japanese Standard Class Vertical Writing)
3394 \family default
3395
3396 \family sans
3397 article
3398 \begin_inset space \thinspace{}
3399 \end_inset
3400
3401 (Japanese Standard Class)
3402 \family default
3403
3404 \family sans
3405 book
3406 \begin_inset space \thinspace{}
3407 \end_inset
3408
3409 (Japanese JS Class)
3410 \family default
3411 ,
3412 \family sans
3413  book
3414 \begin_inset space \thinspace{}
3415 \end_inset
3416
3417 (Japanese Standard Class Vertical Writing)
3418 \family default
3419
3420 \family sans
3421 book
3422 \begin_inset space \thinspace{}
3423 \end_inset
3424
3425 (Japanese Standard Class)
3426 \family default
3427
3428 \family sans
3429 report
3430 \begin_inset space \thinspace{}
3431 \end_inset
3432
3433 (Japanese Vertical Writing)
3434 \family default
3435  and 
3436 \family sans
3437 report
3438 \begin_inset space \thinspace{}
3439 \end_inset
3440
3441 (Japanese Standard Class)
3442 \family default
3443  provide document classes for the Japanese language.
3444 \end_layout
3445
3446 \begin_layout Subsection
3447
3448 \change_inserted 564990737 1672429136
3449
3450 \lang american
3451 \begin_inset CommandInset label
3452 LatexCommand label
3453 name "subsec:KOMA-Script"
3454
3455 \end_inset
3456
3457 KOMA-Script
3458 \end_layout
3459
3460 \begin_layout Standard
3461
3462 \change_inserted 564990737 1672429136
3463
3464 \lang american
3465 Original by 
3466 \noun on
3467 Bernd Rellermeyer
3468 \noun default
3469 ; updated by 
3470 \noun on
3471 Jürgen Spitzmüller
3472 \noun default
3473  and the \SpecialChar LyX
3474  Team
3475 \change_deleted 564990737 1672429136
3476
3477 \lang english
3478 Koma-Script
3479 \end_layout
3480
3481 \begin_layout Standard
3482
3483 \change_deleted 564990737 1672429136
3484 by 
3485 \noun on
3486 Bernd Rellermeyer
3487 \change_unchanged
3488
3489 \end_layout
3490
3491 \begin_layout Subsubsection
3492 Overview
3493 \change_inserted 564990737 1672429161
3494
3495 \end_layout
3496
3497 \begin_layout Standard
3498
3499 \change_inserted 564990737 1672429162
3500
3501 \lang american
3502 The KOMA-Script collection of document classes is a development of the Script
3503  classes created by Frank Neukam in the early 1990s; it was formally launched
3504  with the addition of a letter class in 1994.
3505  Since then, a second letter class has been added.
3506  Frank Neukam's classes were inspired by the principles of typography and
3507  this has been fully integrated into the design of the KOMA-Script classes.
3508  
3509 \change_unchanged
3510
3511 \end_layout
3512
3513 \begin_layout Standard
3514 The \SpecialChar LyX
3515  document classes 
3516 \emph on
3517 article (koma-script)
3518 \emph default
3519
3520 \emph on
3521 report (koma-script)
3522 \emph default
3523
3524 \emph on
3525 book
3526 \emph default
3527  
3528 \emph on
3529 (koma-script)
3530 \emph default
3531 , and 
3532 \emph on
3533 letter
3534 \emph default
3535  
3536 \emph on
3537 (koma-script)
3538 \emph default
3539  correspond to the \SpecialChar LaTeX
3540  document classes 
3541 \family typewriter
3542 scrartcl.cls
3543 \family default
3544
3545 \family typewriter
3546 scrreprt.cls
3547 \family default
3548
3549 \family typewriter
3550 scrbook.cls
3551 \family default
3552 , and 
3553 \family typewriter
3554 scrlettr.cls
3555 \family default
3556 , resp.
3557 \begin_inset space ~
3558 \end_inset
3559
3560 of the Koma-Script family.
3561  They are replacements for the standard document classes 
3562 \family typewriter
3563 article.cls
3564 \family default
3565
3566 \family typewriter
3567 report.cls
3568 \family default
3569
3570 \family typewriter
3571 book.cls
3572 \family default
3573  and 
3574 \family typewriter
3575 letter.cls
3576 \family default
3577 , resp., and fit better to European typography conventions in a number of
3578  points.
3579 \end_layout
3580
3581 \begin_layout Itemize
3582
3583 \change_deleted 564990737 1672429262
3584 Standard character size is
3585 \change_inserted 564990737 1672429263
3586
3587 \lang american
3588 The base character sizes when you select a KOMA-Script class are
3589 \change_unchanged
3590
3591 \lang english
3592  11pt in 
3593 \emph on
3594 article (koma-script)
3595 \emph default
3596
3597 \emph on
3598 report (koma-script)
3599 \emph default
3600 , and 
3601 \emph on
3602 book (koma-script)
3603 \change_deleted 564990737 1672429267
3604
3605 \emph default
3606 ,
3607 \change_unchanged
3608  and 12pt in 
3609 \emph on
3610 letter (koma-script)
3611 \emph default
3612 .
3613 \end_layout
3614
3615 \begin_layout Itemize
3616 Headings, labels of the description environment, and a number of elements
3617  of the 
3618 \emph on
3619 letter (koma-script)
3620 \emph default
3621  document class are set in a bold sans serif font.
3622 \begin_inset Foot
3623 status collapsed
3624
3625 \begin_layout Plain Layout
3626 There is a big difference between the bold sans serif old cm fonts and new
3627  ec fonts, especially in the appearance of headings.
3628  In comparison, the ec bold sans serif fonts look a bit thin.
3629  Here the \SpecialChar LaTeX
3630  package 
3631 \family typewriter
3632 cmsd.sty by
3633 \family default
3634  
3635 \shape smallcaps
3636 Walter Schmidt
3637 \shape default
3638  helps to produce the 
3639 \begin_inset Quotes eld
3640 \end_inset
3641
3642 usual
3643 \begin_inset Quotes erd
3644 \end_inset
3645
3646  appearance when using the ec fonts.
3647 \end_layout
3648
3649 \end_inset
3650
3651  The numbering of chapter headings is made in the same way as the numbering
3652  of section headings, that is without the extra line 
3653 \begin_inset Quotes eld
3654 \end_inset
3655
3656 Chapter\SpecialChar ldots
3657
3658 \begin_inset Quotes erd
3659 \end_inset
3660
3661 .
3662  In addition, the appearance of the headings can be modified by using a
3663  number of options (in \SpecialChar LyX
3664  to be entered in the field 
3665 \family sans
3666 Extra
3667 \begin_inset space ~
3668 \end_inset
3669
3670 Options
3671 \family default
3672  of the dialog 
3673 \family sans
3674 Layout\SpecialChar menuseparator
3675 Document
3676 \family default
3677 ).
3678  
3679 \end_layout
3680
3681 \begin_layout Itemize
3682
3683 \change_deleted 564990737 1672429310
3684 The main means in the Koma-Script document classes to design the type area
3685  are the options 
3686 \family sans
3687 BCOR
3688 \family default
3689  and 
3690 \family sans
3691 DIV
3692 \family default
3693  (in \SpecialChar LyX
3694  to be entered in the extra class options field in the dialog 
3695 \family sans
3696 Document\SpecialChar menuseparator
3697 Settings
3698 \family default
3699 ).
3700  They make a clearer modification of page margins possible as do the options
3701  of the dialog 
3702 \family sans
3703 Document\SpecialChar menuseparator
3704 Settings
3705 \family default
3706 .
3707  
3708 \change_inserted 564990737 1672429310
3709
3710 \lang american
3711 The layout of a KOMA-Script page follows one of two traditional typesetting
3712  conventions based on dividing the page into strips or drawing a circle.
3713  The default is to imagine that a page is divided horizontally and vertically
3714  into strips and allocate strips to the margins leaving the unused strips
3715  for the text area.
3716  You can change the sizes of the margins by changing the factor by which
3717  the page is divided into strips; the default for an A4 page is 9 and increasing
3718  this factor will produce increasingly narrower strips and therefore narrower
3719  margins.
3720  
3721 \end_layout
3722
3723 \begin_deeper
3724 \begin_layout Standard
3725
3726 \change_inserted 564990737 1672429310
3727
3728 \lang american
3729 Whatever the factor, two strips are allocated to the outer and bottom margins
3730  of a two-sided document and one strip to the inner and top margins, leaving
3731  a text area occupying around half the page.
3732  Since most two-sided documents have a binding, this can make the inner
3733  margins appear too narrow; so you can apply a binding correction to the
3734  page which is deducted before the size of the strips is calculated.
3735  
3736 \end_layout
3737
3738 \begin_layout Standard
3739
3740 \change_inserted 564990737 1672429310
3741
3742 \lang american
3743 The main means in the Koma-Script document classes to design the type area
3744  are the options 
3745 \family sans
3746 BCOR
3747 \family default
3748  and 
3749 \family sans
3750 DIV
3751 \family default
3752  entered in 
3753 \family sans
3754 Document\SpecialChar menuseparator
3755 Settings\SpecialChar menuseparator
3756 Document Class\SpecialChar menuseparator
3757 Class Options\SpecialChar menuseparator
3758 Custom
3759 \family default
3760 .
3761  
3762 \end_layout
3763
3764 \begin_layout Standard
3765
3766 \change_inserted 564990737 1672429310
3767
3768 \lang american
3769 In this document, the binding correction is 7.5mm which is added in the form
3770  
3771 \family typewriter
3772 BCOR7.5mm
3773 \family default
3774  to 
3775 \family sans
3776 Class
3777 \begin_inset space ~
3778 \end_inset
3779
3780 options\SpecialChar menuseparator
3781 Cus
3782 \bar under
3783 t
3784 \bar default
3785 om
3786 \family default
3787  dialog.
3788  To change the factor to 11, for example, add the entry 
3789 \family typewriter
3790 DIV=11
3791 \family default
3792  to the comma separated list of entries in the 
3793 \family sans
3794 Cus
3795 \bar under
3796 t
3797 \bar default
3798 om
3799 \family default
3800  
3801 \family sans
3802 Class
3803 \begin_inset space ~
3804 \end_inset
3805
3806 options
3807 \family default
3808 .
3809  If you want the default value of this factor for a page size other than
3810  A4, add the entry 
3811 \family typewriter
3812 DIV=calc
3813 \family default
3814 .
3815 \end_layout
3816
3817 \begin_layout Standard
3818
3819 \change_inserted 564990737 1672429310
3820
3821 \lang american
3822 To use the circle method of calculating the page layout, use 
3823 \family typewriter
3824 DIV=classic
3825 \family default
3826  instead.
3827 \change_unchanged
3828
3829 \end_layout
3830
3831 \end_deeper
3832 \begin_layout Itemize
3833 The \SpecialChar LaTeX
3834  document classes of the Koma-Script family define a number of additional
3835  commands.
3836  Those part of it which makes sense in \SpecialChar LyX
3837  is implemented in corresponding
3838  paragraph types.
3839 \end_layout
3840
3841 \begin_layout Standard
3842 Detailed descriptions of the \SpecialChar LaTeX
3843  document classes of the Koma-Script family
3844  can be found in the Koma-Script documentation 
3845 \emph on
3846 scrguide
3847 \emph default
3848  (German) and 
3849 \emph on
3850 scrguien
3851 \emph default
3852  (English).
3853 \end_layout
3854
3855 \begin_layout Subsubsection
3856
3857 \change_inserted 564990737 1672429358
3858
3859 \series bold
3860 \lang american
3861 \begin_inset CommandInset label
3862 LatexCommand label
3863 name "subsec:article-(KOMA-Script),-report"
3864
3865 \end_inset
3866
3867
3868 \series default
3869 article (KOMA-Script), report (KOMA-Script), and book (KOMA-Script)
3870 \change_deleted 564990737 1672429367
3871
3872 \lang english
3873 article (koma-script), report (koma-script), and book (koma-script)
3874 \change_unchanged
3875
3876 \end_layout
3877
3878 \begin_layout Standard
3879 The document classes 
3880 \emph on
3881 article (koma-script)
3882 \emph default
3883
3884 \emph on
3885 report (koma-script)
3886 \emph default
3887 , and 
3888 \emph on
3889 book
3890 \emph default
3891  
3892 \emph on
3893 (koma-script)
3894 \emph default
3895  are implemented in the layout files 
3896 \family typewriter
3897 scrartcl.layout
3898 \family default
3899
3900 \family typewriter
3901 scrreprt.layout
3902 \family default
3903 , and 
3904 \family typewriter
3905 scrbook.layout
3906 \family default
3907 , resp.
3908  They contain all the paragraph types of the corresponding standard document
3909  classes 
3910 \emph on
3911 article
3912 \emph default
3913
3914 \emph on
3915 report
3916 \emph default
3917 , and 
3918 \emph on
3919 book
3920 \emph default
3921 , resp., partly modified, with the exception of the \SpecialChar LyX
3922  specific 
3923 \family sans
3924 List
3925 \family default
3926 -type, which is replaced by the new 
3927 \family sans
3928 Labeling
3929 \family default
3930 -type having the same functionality.
3931  Beside the 
3932 \family sans
3933 Labeling
3934 \family default
3935 -Type there is a number of new paragraph types added.
3936  They are 
3937 \emph on
3938 not
3939 \emph default
3940  part of 
3941 \emph on
3942 letter (koma-script)
3943 \emph default
3944 .
3945 \end_layout
3946
3947 \begin_layout Itemize
3948
3949 \family sans
3950 Addpart, Addchap
3951 \family default
3952
3953 \family sans
3954 Addsec
3955 \family default
3956 : are equivalents to 
3957 \family sans
3958 Part*, Chapter*
3959 \family default
3960  and 
3961 \family sans
3962 Section*
3963 \family default
3964 , resp., additionally inserting an entry in the table of contents.
3965  
3966 \family sans
3967 Addpart
3968 \family default
3969  and 
3970 \family sans
3971 Addchap
3972 \family default
3973  are not contained in 
3974 \emph on
3975 article (koma-script)
3976 \emph default
3977 .
3978 \end_layout
3979
3980 \begin_layout Itemize
3981
3982 \family sans
3983 Addchap*
3984 \family default
3985
3986 \family sans
3987 Addsec*
3988 \family default
3989 : behave exactly as 
3990 \family sans
3991 Addchap
3992 \family default
3993  and 
3994 \family sans
3995 Addsec
3996 \family default
3997 , resp., additionally clearing running heads.
3998  
3999 \family sans
4000 Addchap*
4001 \family default
4002  is not contained in 
4003 \emph on
4004 article (koma-script)
4005 \emph default
4006 .
4007 \begin_inset Foot
4008 status collapsed
4009
4010 \begin_layout Plain Layout
4011 There is also an 
4012 \family typewriter
4013
4014 \backslash
4015 addpart*
4016 \family default
4017  command in 
4018 \emph on
4019 book (koma-script)
4020 \emph default
4021  and in 
4022 \emph on
4023 report (koma-script)
4024 \emph default
4025 , but since this is identical to 
4026 \family sans
4027 Part*
4028 \family default
4029 , is has not been implemented in \SpecialChar LyX
4030 .
4031 \end_layout
4032
4033 \end_inset
4034
4035
4036 \end_layout
4037
4038 \begin_layout Itemize
4039
4040 \family sans
4041 Minisec
4042 \family default
4043 : generates a heading directly above the following paragraph in the standard
4044  character size without affecting the structure of the document.
4045 \end_layout
4046
4047 \begin_layout Itemize
4048
4049 \family sans
4050 Captionabove
4051 \family default
4052  and 
4053 \family sans
4054 Captionbelow
4055 \family default
4056  are special captions which respect the different space settings needed
4057  for captions placed above or below an element (if you follow strict typographic
4058  rules, you might want to place table captions always above the table).
4059  You can also use the class option 
4060 \family typewriter
4061 tablecaptionsabove
4062 \family default
4063 , which will switch 
4064 \family sans
4065 caption
4066 \family default
4067  to 
4068 \family sans
4069 captionabove
4070 \family default
4071  for tables and 
4072 \family sans
4073 captionbelow
4074 \family default
4075  for figures.
4076  You need at least Koma-Script version 2.8q to use this.
4077 \end_layout
4078
4079 \begin_layout Itemize
4080
4081 \family sans
4082 Dictum
4083 \family default
4084 : can be used to set a bonmot, e.
4085 \begin_inset space \thinspace{}
4086 \end_inset
4087
4088 g.
4089 \begin_inset space \space{}
4090 \end_inset
4091
4092 at the beginning of a chapter.
4093  If you use the optional argument (
4094 \family sans
4095 Insert\SpecialChar menuseparator
4096 Dictum
4097 \begin_inset space ~
4098 \end_inset
4099
4100 Author
4101 \family default
4102 ), you can insert the dictum's author there.
4103  Dictum and author are separated by a line.
4104  You need at least Koma-Script version 2.8q to use this.
4105  
4106 \family sans
4107 Dictum
4108 \family default
4109  is not contained in 
4110 \emph on
4111 article (koma-script)
4112 \emph default
4113 .
4114 \end_layout
4115
4116 \begin_layout Standard
4117 The following types, together with the standard types 
4118 \family sans
4119 Title
4120 \family default
4121
4122 \family sans
4123 Author
4124 \family default
4125 , and 
4126 \family sans
4127 Date
4128 \family default
4129 , form the title area of the document.
4130  They must be entered ahead of the first 
4131 \begin_inset Quotes eld
4132 \end_inset
4133
4134 ordinary
4135 \begin_inset Quotes erd
4136 \end_inset
4137
4138  paragraph.
4139 \begin_inset Foot
4140 status collapsed
4141
4142 \begin_layout Plain Layout
4143 The corresponding \SpecialChar LaTeX
4144  commands must appear before the 
4145 \family typewriter
4146
4147 \backslash
4148 maketitle
4149 \family default
4150  command.
4151 \end_layout
4152
4153 \end_inset
4154
4155  When such a type is used more than once, the latter usage overwrites the
4156  former one, that means, for every type only the latest usage is valid.
4157  The order of the different types however has, like 
4158 \family sans
4159 Title
4160 \family default
4161
4162 \family sans
4163 Author
4164 \family default
4165 , and 
4166 \family sans
4167 Date
4168 \family default
4169 , no effect on the appearance of the produced document.
4170 \end_layout
4171
4172 \begin_layout Itemize
4173
4174 \family sans
4175 Subject
4176 \family default
4177 : produces a centered paragraph above the ordinary title (
4178 \family sans
4179 Title
4180 \family default
4181
4182 \family sans
4183 Author
4184 \family default
4185
4186 \family sans
4187 Date
4188 \family default
4189 ) for the subject of the document.
4190 \end_layout
4191
4192 \begin_layout Itemize
4193
4194 \family sans
4195 Publishers
4196 \family default
4197 : produces a centered paragraph below the ordinary title (
4198 \family sans
4199 Title
4200 \family default
4201
4202 \family sans
4203 Author
4204 \family default
4205
4206 \family sans
4207 Date
4208 \family default
4209 ) for the publishers' name.
4210 \end_layout
4211
4212 \begin_layout Itemize
4213
4214 \family sans
4215 Dedication
4216 \family default
4217 : in 
4218 \emph on
4219 report (koma-script)
4220 \emph default
4221  and 
4222 \emph on
4223 book (koma-script)
4224 \emph default
4225  produces a centered paragraph on its own page behind the title page, or
4226  in 
4227 \emph on
4228 article (koma-script)
4229 \emph default
4230  produces a centered paragraph below the ordinary title (
4231 \family sans
4232 Title
4233 \family default
4234
4235 \family sans
4236 Author
4237 \family default
4238
4239 \family sans
4240 Date
4241 \family default
4242
4243 \family sans
4244 Publishers
4245 \family default
4246 ) for a dedication.
4247 \end_layout
4248
4249 \begin_layout Itemize
4250
4251 \family sans
4252 Titlehead
4253 \family default
4254 : produces a left aligned paragraph above the ordinary title (
4255 \family sans
4256 Title
4257 \family default
4258
4259 \family sans
4260 Author
4261 \family default
4262
4263 \family sans
4264 Date
4265 \family default
4266
4267 \family sans
4268 Subject
4269 \family default
4270 ) for a document`s head.
4271 \end_layout
4272
4273 \begin_layout Itemize
4274
4275 \family sans
4276 Uppertitleback
4277 \family default
4278 : produces in a double-sided print in 
4279 \emph on
4280 report (koma-script)
4281 \emph default
4282  and 
4283 \emph on
4284 book (koma-script)
4285 \emph default
4286  a left-aligned paragraph at the top of the title page`s back or has no
4287  effect in a single-sided print or in 
4288 \emph on
4289 article (koma-script)
4290 \emph default
4291 .
4292 \end_layout
4293
4294 \begin_layout Itemize
4295
4296 \family sans
4297 Lowertitleback
4298 \family default
4299 : produces in a double-sided print in 
4300 \emph on
4301 report (koma-script)
4302 \emph default
4303  and 
4304 \emph on
4305 book (koma-script)
4306 \emph default
4307  a left-aligned paragraph at the bottom of the title page`s back or has
4308  no effect in a single-sided print or in 
4309 \emph on
4310 article (koma-script)
4311 \emph default
4312 .
4313 \end_layout
4314
4315 \begin_layout Itemize
4316
4317 \family sans
4318 Extratitle
4319 \family default
4320 : produces a special 
4321 \begin_inset Quotes eld
4322 \end_inset
4323
4324 dirty
4325 \begin_inset Quotes erd
4326 \end_inset
4327
4328  page ahead of the actual document containing a paragraph without special
4329  formatting.
4330 \end_layout
4331
4332 \begin_layout Standard
4333
4334 \change_inserted 564990737 1672429680
4335
4336 \lang american
4337 KOMA-Script offers a wide range of 
4338 \family sans
4339 Cus
4340 \bar under
4341 t
4342 \bar default
4343 om Class
4344 \begin_inset space ~
4345 \end_inset
4346
4347 options
4348 \family default
4349  for the 
4350 \family sans
4351 \bar under
4352 D
4353 \bar default
4354 ocument\SpecialChar menuseparator
4355
4356 \bar under
4357 S
4358 \bar default
4359 ettings\SpecialChar menuseparator
4360 Document
4361 \begin_inset space ~
4362 \end_inset
4363
4364 class
4365 \family default
4366  dialog which you can apply to the whole document, among them
4367 \end_layout
4368
4369 \begin_layout Description
4370
4371 \change_inserted 564990737 1672429680
4372
4373 \family typewriter
4374 \series medium
4375 \lang american
4376 draft=true
4377 \family default
4378 \series default
4379  which produces a PDF with a small black box at the end any line in which
4380  a formatting error occurs; the default setting is 
4381 \family typewriter
4382 false
4383 \end_layout
4384
4385 \begin_layout Description
4386
4387 \change_inserted 564990737 1672429680
4388
4389 \family typewriter
4390 \series medium
4391 \lang american
4392 headings=
4393 \family default
4394 \series default
4395  which may take the values 
4396 \family typewriter
4397 big
4398 \family default
4399
4400 \family typewriter
4401 normal
4402 \family default
4403  or 
4404 \family typewriter
4405 small
4406 \family default
4407 ; the first and last adjust the sizes of the headings to take account of
4408  page sizes where the default values may not be suitable
4409 \end_layout
4410
4411 \begin_layout Description
4412
4413 \change_inserted 564990737 1672429680
4414
4415 \family typewriter
4416 \series medium
4417 \lang american
4418 numbers=
4419 \family default
4420 \series default
4421  which may take the values 
4422 \family typewriter
4423 auto
4424 \family default
4425  (the default), 
4426 \family typewriter
4427 enddot
4428 \family default
4429  or 
4430 \family typewriter
4431 noenddot
4432 \family default
4433 ; the first leaves it up to KOMA-Script to add periods after chapter, section
4434  numbers, etc.; the second forces the addition of periods and third suppresses
4435  them
4436 \end_layout
4437
4438 \begin_layout Standard
4439
4440 \change_inserted 564990737 1672429680
4441
4442 \lang american
4443 and the math options:
4444 \end_layout
4445
4446 \begin_layout Description
4447
4448 \change_inserted 564990737 1672429680
4449
4450 \family typewriter
4451 \series medium
4452 \lang american
4453 leqno
4454 \family default
4455 \series default
4456  which causes equations to be numbered on the left rather than on the right,
4457  and
4458 \end_layout
4459
4460 \begin_layout Description
4461
4462 \change_inserted 564990737 1672429680
4463
4464 \family typewriter
4465 \series medium
4466 \lang american
4467 fleqn
4468 \family default
4469 \series default
4470  which causes equations to be left justified rather than centered.
4471 \end_layout
4472
4473 \begin_layout Standard
4474
4475 \change_inserted 564990737 1672429680
4476
4477 \lang american
4478 It also provides commands to affect the output of the document independently
4479  of the standard \SpecialChar LaTeX
4480  commands and packages; for example, if you want your captions
4481  in bold add
4482 \end_layout
4483
4484 \begin_layout Standard
4485
4486 \change_inserted 564990737 1672429680
4487
4488 \family typewriter
4489 \lang american
4490
4491 \backslash
4492 setkomafont{captionlabel}{
4493 \backslash
4494 bfseries}
4495 \end_layout
4496
4497 \begin_layout Standard
4498
4499 \change_inserted 564990737 1672429680
4500
4501 \lang american
4502 to 
4503 \family sans
4504 \bar under
4505 D
4506 \bar default
4507 ocument\SpecialChar menuseparator
4508
4509 \bar under
4510 S
4511 \bar default
4512 ettings
4513 \family default
4514 \SpecialChar menuseparator
4515
4516 \family sans
4517 \SpecialChar LaTeX
4518
4519 \begin_inset space ~
4520 \end_inset
4521
4522 Preamble
4523 \family default
4524 ) and the problem is solved.
4525 \end_layout
4526
4527 \begin_layout Standard
4528
4529 \change_inserted 564990737 1672429680
4530
4531 \lang american
4532 If you are writing a book, it is normal to have the preliminary pages numbered
4533  in Roman numerals and the Chapters in this part unnumbered.
4534  If you use the Chapter* environment, your Foreword and Preface will not
4535  appear in the Table of Contents; to make them to appear in the Table of
4536  contents, you need to use Chapter environments and add the \SpecialChar TeX
4537  code
4538 \end_layout
4539
4540 \begin_layout Standard
4541
4542 \change_inserted 564990737 1672429680
4543
4544 \family typewriter
4545 \lang american
4546
4547 \backslash
4548 frontmatter
4549 \end_layout
4550
4551 \begin_layout Standard
4552
4553 \change_inserted 564990737 1672429680
4554
4555 \lang american
4556 at the very start of the book (not in the \SpecialChar LaTeX
4557  Preamble) and
4558 \end_layout
4559
4560 \begin_layout Standard
4561
4562 \change_inserted 564990737 1672429680
4563
4564 \family typewriter
4565 \lang american
4566
4567 \backslash
4568 mainmatter
4569 \end_layout
4570
4571 \begin_layout Standard
4572
4573 \change_inserted 564990737 1672429680
4574
4575 \lang american
4576 before the first chapter of the body of the text.
4577  You may also want to have some unnumbered Chapter environments at the end
4578  of the book after the Appendices, if any.
4579 \begin_inset Foot
4580 status open
4581
4582 \begin_layout Plain Layout
4583
4584 \change_inserted 564990737 1672429680
4585
4586 \lang american
4587 Appendices are normally “numbered” with letters.
4588 \end_layout
4589
4590 \end_inset
4591
4592  If you use the Chapter* environment, they will not appear in the Table
4593  of Contents; so add the \SpecialChar TeX
4594  code
4595 \end_layout
4596
4597 \begin_layout Standard
4598
4599 \change_inserted 564990737 1672429680
4600
4601 \family typewriter
4602 \lang american
4603
4604 \backslash
4605 backmatter
4606 \end_layout
4607
4608 \begin_layout Standard
4609
4610 \change_inserted 564990737 1672429682
4611
4612 \lang american
4613 before the first of these headings and use the Chapter environment.
4614  These commands will have no effect on the numbering in \SpecialChar LyX
4615 , only on the PDF
4616  output where the headings will be unnumbered and appear in the Table of
4617  Contents.
4618 \end_layout
4619
4620 \begin_layout Standard
4621 The layout files for the document classes 
4622 \emph on
4623 article (koma-script)
4624 \emph default
4625
4626 \emph on
4627 report (koma-script)
4628 \emph default
4629 , and 
4630 \emph on
4631 book (koma-script)
4632 \emph default
4633  do include the file 
4634 \family typewriter
4635 scrmacros.inc
4636 \family default
4637 .
4638  This is thought of as a place to define your own types.
4639  Copy scrmacros
4640 \family typewriter
4641 .inc
4642 \family default
4643  in your personal layout directory and edit the file!
4644 \change_deleted 564990737 1672430255
4645
4646 \end_layout
4647
4648 \begin_layout Standard
4649
4650 \change_deleted 564990737 1672430255
4651 letter (koma-script)
4652 \end_layout
4653
4654 \begin_layout Description
4655
4656 \change_deleted 564990737 1672429749
4657 Note: This section discusses the obsolete 
4658 \family sans
4659 KOMA-Script-Letter (v.
4660 \begin_inset space ~
4661 \end_inset
4662
4663 1)
4664 \family default
4665 , which is not even included anymore in recent KOMA releases.
4666  Please refer to the next section for the current KOMA-Script-Letter class
4667  (v.
4668 \begin_inset space ~
4669 \end_inset
4670
4671 2)!
4672 \end_layout
4673
4674 \begin_layout Standard
4675 \noindent
4676
4677 \change_deleted 564990737 1672429749
4678 The document class 
4679 \emph on
4680 letter (koma-script)
4681 \emph default
4682  is implemented in the layout file 
4683 \family typewriter
4684 scrlettr.layout
4685 \family default
4686 .
4687  It contains all the paragraph types of the corresponding standard document
4688  class 
4689 \emph on
4690 letter
4691 \emph default
4692 , partly modified, with the exception of the \SpecialChar LyX
4693  specific types 
4694 \family sans
4695 \SpecialChar LyX
4696 -Code
4697 \family default
4698  and 
4699 \family sans
4700 Comment
4701 \family default
4702  and the 
4703 \family sans
4704 List
4705 \family default
4706  type, which is replaced by the new 
4707 \family sans
4708 Labeling
4709 \family default
4710  type.
4711  In addition, it contains, in contrast to the standard document class, the
4712  standard types 
4713 \family sans
4714 \SpecialChar LaTeX
4715
4716 \family default
4717
4718 \family sans
4719 Quotation
4720 \family default
4721
4722 \family sans
4723 Quote
4724 \family default
4725 , and 
4726 \family sans
4727 Verse
4728 \family default
4729 .
4730  Furthermore, there are a number of new letter specific types.
4731 \end_layout
4732
4733 \begin_layout Standard
4734
4735 \change_deleted 564990737 1672429749
4736 The appearance of the letter produced by this document class can be controlled
4737  by a number of \SpecialChar LaTeX
4738  commands, which you can put in the \SpecialChar LaTeX
4739  preamble.
4740 \begin_inset Foot
4741 status collapsed
4742
4743 \begin_layout Plain Layout
4744 For example, the standard appearance of the letter`s heading, consisting
4745  of name and address, is quite self-willed.
4746  An 
4747 \begin_inset Quotes eld
4748 \end_inset
4749
4750 ordinary
4751 \begin_inset Quotes erd
4752 \end_inset
4753
4754  heading is produced by the following \SpecialChar LaTeX
4755  commands in the preamble:
4756 \end_layout
4757
4758 \begin_layout LyX-Code
4759
4760 \backslash
4761 firsthead{
4762 \backslash
4763 parbox[b]{
4764 \backslash
4765 textwidth}
4766 \end_layout
4767
4768 \begin_layout LyX-Code
4769   {
4770 \backslash
4771 ignorespaces 
4772 \backslash
4773 fromname
4774 \backslash
4775
4776 \backslash
4777  
4778 \backslash
4779 ignorespaces 
4780 \backslash
4781 fromaddress}} 
4782 \end_layout
4783
4784 \begin_layout LyX-Code
4785
4786 \backslash
4787 nexthead{
4788 \backslash
4789 parbox[b]{
4790 \backslash
4791 textwidth}
4792 \end_layout
4793
4794 \begin_layout LyX-Code
4795   {
4796 \backslash
4797 ignorespaces 
4798 \backslash
4799 fromname 
4800 \backslash
4801 hfill 
4802 \backslash
4803 ignorespaces 
4804 \backslash
4805 pagename
4806 \backslash
4807  
4808 \backslash
4809 thepage}}
4810 \end_layout
4811
4812 \end_inset
4813
4814  A detailed German description of such \SpecialChar LaTeX
4815  commands can be found in the Koma-Script
4816  documentation 
4817 \emph on
4818 scrguide
4819 \emph default
4820 .
4821  With it, the letter's author can produce his personal letter layout.
4822 \end_layout
4823
4824 \begin_layout Standard
4825
4826 \change_deleted 564990737 1672429749
4827 The types 
4828 \family sans
4829 Letter
4830 \family default
4831  and 
4832 \family sans
4833 Opening
4834 \family default
4835  define the beginning of the letter and must be used in every letter.
4836  To emphasize them in the \SpecialChar LyX
4837  document class, they are marked with the letter
4838  
4839 \shape italic
4840 L
4841 \shape default
4842  or 
4843 \shape italic
4844 O
4845 \shape default
4846 , resp.
4847 \begin_inset space ~
4848 \end_inset
4849
4850 in the left margin.
4851  It is possible to write any number of letters in one file.
4852  An 
4853 \family sans
4854 Opening
4855 \family default
4856  type produces a new letter using the same addressee and a 
4857 \family sans
4858 Letter
4859 \family default
4860  type produces a new addressee.
4861  The types 
4862 \family sans
4863 Closing
4864 \family default
4865
4866 \family sans
4867 PS
4868 \family default
4869
4870 \family sans
4871 CC
4872 \family default
4873 , and 
4874 \family sans
4875 Encl
4876 \family default
4877  are ordinary paragraph types and can also be used several times in one
4878  and the same letter.
4879 \end_layout
4880
4881 \begin_layout Itemize
4882
4883 \change_deleted 564990737 1672429749
4884
4885 \family sans
4886 Letter
4887 \family default
4888 : produces a paragraph for the addressee and implicitly defines the beginning
4889  of the letter.
4890 \end_layout
4891
4892 \begin_layout Itemize
4893
4894 \change_deleted 564990737 1672429749
4895
4896 \family sans
4897 Opening
4898 \family default
4899 : produces a paragraph for the form of address and implicitly produces a
4900  new letter.
4901 \end_layout
4902
4903 \begin_layout Itemize
4904
4905 \change_deleted 564990737 1672429749
4906
4907 \family sans
4908 Closing
4909 \family default
4910 : produces a paragraph for a close.
4911 \end_layout
4912
4913 \begin_layout Itemize
4914
4915 \change_deleted 564990737 1672429749
4916
4917 \family sans
4918 PS
4919 \family default
4920 : produces a paragraph for a postscript.
4921 \end_layout
4922
4923 \begin_layout Itemize
4924
4925 \change_deleted 564990737 1672429749
4926
4927 \family sans
4928 CC
4929 \family default
4930 : produces a paragraph for a distribution list.
4931 \end_layout
4932
4933 \begin_layout Itemize
4934
4935 \change_deleted 564990737 1672429749
4936
4937 \family sans
4938 Encl
4939 \family default
4940 : produces a paragraph for enclosures.
4941 \end_layout
4942
4943 \begin_layout Standard
4944
4945 \change_deleted 564990737 1672429749
4946 The types 
4947 \family sans
4948 Name
4949 \family default
4950
4951 \family sans
4952 Signature
4953 \family default
4954
4955 \family sans
4956 Address
4957 \family default
4958
4959 \family sans
4960 Telephone
4961 \family default
4962
4963 \family sans
4964 Place
4965 \family default
4966
4967 \family sans
4968 Backaddress
4969 \family default
4970
4971 \family sans
4972 Specialmail
4973 \family default
4974
4975 \family sans
4976 Location
4977 \family default
4978
4979 \family sans
4980 Title
4981 \family default
4982 , and 
4983 \family sans
4984 Subject
4985 \family default
4986  are input types provided with a label to enter information, which will
4987  be processed by the document class.
4988 \begin_inset Foot
4989 status collapsed
4990
4991 \begin_layout Plain Layout
4992 It could be seen as a matter of inconsequence, that the types 
4993 \family sans
4994 Letter
4995 \family default
4996  and 
4997 \family sans
4998 Opening
4999 \family default
5000  described above are not such input types as well.
5001  Because of the special meaning of those types, however, I have implemented
5002  them as ordinary paragraph types with a one letter mark in the left margin.
5003  Moreover, it would affect my feeling of symmetry, if the 
5004 \family sans
5005 Opening
5006 \family default
5007  type and the 
5008 \family sans
5009 Closing
5010 \family default
5011  type had such a serious different appearance.
5012 \end_layout
5013
5014 \end_inset
5015
5016  The types must be used ahead of the corresponding 
5017 \family sans
5018 Opening
5019 \family default
5020  type.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_deleted 564990737 1672429749
5026 An implementation of these types in a WYSIWYG fashion does not seem to make
5027  sense, because the real appearance of the produced letter does not only
5028  depend on the usage of the particular type, but also on other factors.
5029  For example, a signature entered in the 
5030 \family sans
5031 Signature
5032 \family default
5033  type will in the standard behavior appear in the produced letter only,
5034  when in the same letter also a 
5035 \family sans
5036 Closing
5037 \family default
5038  type is used.
5039  The entered value of the 
5040 \family sans
5041 Telephone
5042 \family default
5043  type will in the standard behavior not appear in the produced letter at
5044  all.
5045  The possibility to design the letter`s heading freely is already indicated
5046  in a footnote above.
5047 \end_layout
5048
5049 \begin_layout Standard
5050
5051 \change_deleted 564990737 1672429749
5052 The input types can also be used as empty paragraphs.
5053  This makes sense e.
5054 \begin_inset space \thinspace{}
5055 \end_inset
5056
5057 g.
5058 \begin_inset space \space{}
5059 \end_inset
5060
5061 for the 
5062 \family sans
5063 Signature
5064 \family default
5065  type.
5066  If the 
5067 \family sans
5068 Signature
5069 \family default
5070  type is not used at all, in the standard behavior the value of the 
5071 \family sans
5072 Name
5073 \family default
5074  type is used as signature, whereas if an empty 
5075 \family sans
5076 Signature
5077 \family default
5078  type is used, no signature value is defined.
5079 \end_layout
5080
5081 \begin_layout Standard
5082
5083 \change_deleted 564990737 1672429749
5084 By using the input types it is possible to write a letter template, containing
5085  filled input types with your personal dates (name, address, etc.) and empty
5086  input types for other dates you want to enter.
5087 \end_layout
5088
5089 \begin_layout Itemize
5090
5091 \change_deleted 564990737 1672429749
5092
5093 \family sans
5094 Name
5095 \family default
5096 : sender's name, in the standard behavior appears as a centered paragraph
5097  in small caps in the letter`s heading.
5098 \end_layout
5099
5100 \begin_layout Itemize
5101
5102 \change_deleted 564990737 1672429749
5103
5104 \family sans
5105 Signature
5106 \family default
5107 : sender's signature, in the standard behavior appears below the 
5108 \family sans
5109 Closing
5110 \family default
5111  type.
5112  If no 
5113 \family sans
5114 Signature
5115 \family default
5116  type is used, the value of the 
5117 \family sans
5118 Name
5119 \family default
5120  type appears instead.
5121 \end_layout
5122
5123 \begin_layout Itemize
5124
5125 \change_deleted 564990737 1672429749
5126
5127 \family sans
5128 Address
5129 \family default
5130 : sender's address, in the standard behavior appears in a centered paragraph
5131  in the letter`s heading below the sender's name.
5132 \end_layout
5133
5134 \begin_layout Itemize
5135
5136 \change_deleted 564990737 1672429749
5137
5138 \family sans
5139 Telephone
5140 \family default
5141 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
5142  variable
5143  
5144 \family typewriter
5145
5146 \backslash
5147 telephonenum
5148 \family default
5149 .
5150 \end_layout
5151
5152 \begin_layout Itemize
5153
5154 \change_deleted 564990737 1672429749
5155
5156 \family sans
5157 Place
5158 \family default
5159 : place of the letter`s making.
5160 \end_layout
5161
5162 \begin_layout Itemize
5163
5164 \change_deleted 564990737 1672429749
5165
5166 \family sans
5167 Date
5168 \family default
5169 : date of the letter`s making.
5170  
5171 \family sans
5172 Place
5173 \family default
5174  and 
5175 \family sans
5176 Date
5177 \family default
5178 , in the standard behavior, produce the place and the date in a right-aligned
5179  line below the addressee's field.
5180  If an empty 
5181 \family sans
5182 Date
5183 \family default
5184  type is used, neither place nor date appear, independent of the value of
5185  the 
5186 \family sans
5187 Place
5188 \family default
5189  type.
5190  If no 
5191 \family sans
5192 Date
5193 \family default
5194  type is used, the date of the letter `s production is used.
5195 \end_layout
5196
5197 \begin_layout Itemize
5198
5199 \change_deleted 564990737 1672429749
5200
5201 \family sans
5202 Backaddress
5203 \family default
5204 : sender`s back address, in the standard behavior appears above the addressee's
5205  field in a small sans serif font.
5206 \end_layout
5207
5208 \begin_layout Itemize
5209
5210 \change_deleted 564990737 1672429749
5211
5212 \family sans
5213 Specialmail
5214 \family default
5215 : special mail information, in the standard behavior appears underlined
5216  above the addressee's field below the back address.
5217 \end_layout
5218
5219 \begin_layout Itemize
5220
5221 \change_deleted 564990737 1672429749
5222
5223 \family sans
5224 Location
5225 \family default
5226 : additional information, in the standard behavior appears on right side
5227  below the addressee`s field.
5228 \end_layout
5229
5230 \begin_layout Itemize
5231
5232 \change_deleted 564990737 1672429749
5233
5234 \family sans
5235 Title
5236 \family default
5237 : the letter's title, in the standard behavior appears in a big, bold, sans
5238  serif font above the subject.
5239 \end_layout
5240
5241 \begin_layout Itemize
5242
5243 \change_deleted 564990737 1672429749
5244
5245 \family sans
5246 Subject
5247 \family default
5248 : the letter's subject, in the standard behavior appears in a bold font
5249  above the 
5250 \family sans
5251 Opening
5252 \family default
5253  paragraph.
5254 \end_layout
5255
5256 \begin_layout Standard
5257
5258 \change_deleted 564990737 1672429749
5259 The types 
5260 \family sans
5261 Yourref
5262 \family default
5263
5264 \family sans
5265 Yourmail
5266 \family default
5267
5268 \family sans
5269 Myref
5270 \family default
5271
5272 \family sans
5273 Customer
5274 \family default
5275 , and 
5276 \family sans
5277 Invoice
5278 \family default
5279  produce a business letter like line above the 
5280 \family sans
5281 Title
5282 \family default
5283  line containing the fields 
5284 \begin_inset Quotes eld
5285 \end_inset
5286
5287 Your ref.
5288 \begin_inset Quotes erd
5289 \end_inset
5290
5291
5292 \begin_inset Quotes eld
5293 \end_inset
5294
5295 Your letter of
5296 \begin_inset Quotes erd
5297 \end_inset
5298
5299
5300 \begin_inset Quotes eld
5301 \end_inset
5302
5303 Our ref.
5304 \begin_inset Quotes erd
5305 \end_inset
5306
5307
5308 \begin_inset Quotes eld
5309 \end_inset
5310
5311 Customer no.
5312 \begin_inset Quotes erd
5313 \end_inset
5314
5315
5316 \begin_inset Quotes eld
5317 \end_inset
5318
5319 Invoice no.
5320 \begin_inset Quotes erd
5321 \end_inset
5322
5323 , and 
5324 \begin_inset Quotes eld
5325 \end_inset
5326
5327 Date
5328 \begin_inset Quotes erd
5329 \end_inset
5330
5331 .
5332  For the date field, the value of the 
5333 \family sans
5334 Date
5335 \family default
5336  type is used.
5337  If one of these 
5338 \begin_inset Quotes eld
5339 \end_inset
5340
5341 business letter types
5342 \begin_inset Quotes erd
5343 \end_inset
5344
5345  is used, the value of the 
5346 \family sans
5347 Place
5348 \family default
5349  type however does not appear, but only the \SpecialChar LaTeX
5350  variable 
5351 \family typewriter
5352
5353 \backslash
5354 fromplace
5355 \family default
5356  is set.
5357  The ordinary output of place and date in a right-aligned line below the
5358  addressee`s field is suppressed.
5359  The types are implemented as input types provided with a label and must
5360  be used ahead of the corresponding 
5361 \family sans
5362 Opening
5363 \family default
5364  type.
5365 \end_layout
5366
5367 \begin_layout Itemize
5368
5369 \change_deleted 564990737 1672429749
5370
5371 \family sans
5372 Yourref
5373 \family default
5374 : Your ref.
5375 \end_layout
5376
5377 \begin_layout Itemize
5378
5379 \change_deleted 564990737 1672429749
5380
5381 \family sans
5382 Yourmail
5383 \family default
5384 : Your letter of.
5385 \end_layout
5386
5387 \begin_layout Itemize
5388
5389 \change_deleted 564990737 1672429749
5390
5391 \family sans
5392 Myref
5393 \family default
5394 : Our ref.
5395 \end_layout
5396
5397 \begin_layout Itemize
5398
5399 \change_deleted 564990737 1672429749
5400
5401 \family sans
5402 Customer
5403 \family default
5404 : Customer no.
5405 \end_layout
5406
5407 \begin_layout Itemize
5408
5409 \change_deleted 564990737 1672429749
5410
5411 \family sans
5412 Invoice
5413 \family default
5414 : Invoice no.
5415 \change_unchanged
5416
5417 \end_layout
5418
5419 \begin_layout Subsubsection
5420
5421 \change_deleted 564990737 1672429773
5422 The new letter class: letter (koma-script v.2)
5423 \change_inserted 564990737 1672429774
5424
5425 \lang american
5426
5427 \begin_inset CommandInset label
5428 LatexCommand label
5429 name "subsec:The-new-letter"
5430
5431 \end_inset
5432
5433 The new letter class: letter (KOMA-Script v.2)
5434 \change_unchanged
5435
5436 \end_layout
5437
5438 \begin_layout Standard
5439 by 
5440 \noun on
5441 Jürgen Spitzmüller
5442 \end_layout
5443
5444 \begin_layout Standard
5445 \begin_inset VSpace medskip
5446 \end_inset
5447
5448
5449 \end_layout
5450
5451 \begin_layout Standard
5452 \noindent
5453 Koma-Script version 2.8 has introduced a new letter class 
5454 \family typewriter
5455 scrlttr2
5456 \family default
5457  which supersedes the now unsupported 
5458 \family typewriter
5459 scrlettr
5460 \family default
5461 .
5462  It has — on the \SpecialChar LaTeX
5463  side — a completely new interface and is not compatible
5464  with the old class.
5465  Therefore, \SpecialChar LyX
5466  supports both, though it is recommended you use the new class.
5467 \end_layout
5468
5469 \begin_layout Standard
5470 This class covers the same functionality as 
5471 \emph on
5472 letter (koma-script),
5473 \emph default
5474  and a few more.
5475  The basic items are 
5476 \family sans
5477 Address
5478 \family default
5479  (receiver's address, same as 
5480 \family sans
5481 Letter
5482 \family default
5483  in the old layout), 
5484 \family sans
5485 Opening
5486 \family default
5487 , and 
5488 \family sans
5489 Closing
5490 \family default
5491 .
5492  
5493 \family sans
5494 NextAddress
5495 \family default
5496  will start a new letter (i.
5497 \begin_inset space \thinspace{}
5498 \end_inset
5499
5500 e.
5501 \begin_inset space \space{}
5502 \end_inset
5503
5504 you can write several letters per document).
5505  New elements are sender's 
5506 \family sans
5507 E-Mail
5508 \family default
5509
5510 \family sans
5511 URL
5512 \family default
5513
5514 \family sans
5515 Fax
5516 \family default
5517
5518 \family sans
5519 Bank
5520 \family default
5521  and the possibility to use a 
5522 \family sans
5523 Logo
5524 \family default
5525  (via 
5526 \family sans
5527 Insert\SpecialChar menuseparator
5528 Graphics
5529 \family default
5530 ) in the header.
5531 \end_layout
5532
5533 \begin_layout Standard
5534 The biggest improvement is, though, that the letter's layout is configurable
5535  to meet almost any needs.
5536  This can be done via the preamble or with a special style file (Letter
5537  Class Option, extension 
5538 \family typewriter
5539 *.lco
5540 \family default
5541 ), that will be read in as a class option.
5542 \begin_inset Foot
5543 status collapsed
5544
5545 \begin_layout Plain Layout
5546 The KOMA package comes with some default 
5547 \family typewriter
5548 *.lco
5549 \family default
5550  files.
5551  There is, for instance, a 
5552 \family typewriter
5553 DIN.lco
5554 \family default
5555  file that follows german typesetting rules, or a 
5556 \family typewriter
5557 KOMAold.lco
5558 \family default
5559  that provides the default layout of the old 
5560 \family typewriter
5561 scrlettr
5562 \family default
5563  class.
5564  The latter can be loaded with the class option 
5565 \family typewriter
5566 KOMAold
5567 \family default
5568 , inserted via the 
5569 \family sans
5570 Layout\SpecialChar menuseparator
5571 Document\SpecialChar menuseparator
5572 Extra Options
5573 \family default
5574  field.
5575 \end_layout
5576
5577 \end_inset
5578
5579  Have a look at the
5580 \change_deleted 564990737 1671617922
5581  
5582 \emph on
5583 koma-letter2
5584 \change_unchanged
5585
5586 \emph default
5587  template 
5588 \change_deleted 564990737 1671617938
5589 that is included in \SpecialChar LyX
5590  for examples
5591 \change_inserted 564990737 1671617997
5592  in 
5593 \family sans
5594 \bar under
5595 \lang american
5596 F
5597 \bar default
5598 ile\SpecialChar menuseparator
5599 New
5600 \begin_inset space ~
5601 \end_inset
5602
5603 fro
5604 \bar under
5605 m
5606 \bar default
5607
5608 \begin_inset space ~
5609 \end_inset
5610
5611 Template\SpecialChar menuseparator
5612 Letters
5613 \lang english
5614 \SpecialChar menuseparator
5615 KOMA-Script Letter (V.2)
5616 \change_unchanged
5617
5618 \family default
5619 .
5620  A detailed description is to be found in the Koma-Script documentation
5621  (
5622 \emph on
5623 scrguide
5624 \emph default
5625 ).
5626 \end_layout
5627
5628 \begin_layout Subsubsection
5629 Problems
5630 \end_layout
5631
5632 \begin_layout Standard
5633 Visualizing the Koma-Script document classes in \SpecialChar LyX
5634 , the \SpecialChar LyX
5635  internals cause some
5636  problems.
5637 \end_layout
5638
5639 \begin_layout Itemize
5640 The chapter number of a 
5641 \family sans
5642 Chapter
5643 \family default
5644  type appears on a line of its own above the chapter heading instead of
5645  appearing in the same line ahead of it.
5646  The cause for that is the \SpecialChar LyX
5647  internal behavior for the labeltype 
5648 \family sans
5649 Counter_Chapter
5650 \family default
5651  in the layout file.
5652 \end_layout
5653
5654 \begin_layout Itemize
5655 The headings of the types 
5656 \family sans
5657 Addchap
5658 \family default
5659  and 
5660 \family sans
5661 Addsec
5662 \family default
5663  are only put in the 
5664 \begin_inset Quotes eld
5665 \end_inset
5666
5667 true
5668 \begin_inset Quotes erd
5669 \end_inset
5670
5671  \SpecialChar LaTeX
5672  table of contents, but not in the \SpecialChar LyX
5673  table of contents (
5674 \family sans
5675 Document\SpecialChar menuseparator
5676 Table
5677 \begin_inset space ~
5678 \end_inset
5679
5680 of
5681 \begin_inset space ~
5682 \end_inset
5683
5684 Contents
5685 \family default
5686 ).
5687 \end_layout
5688
5689 \begin_layout Itemize
5690 The paragraphs in a 
5691 \emph on
5692 letter
5693 \emph default
5694  document class appear in a skip separation mode, not indented.
5695  This is the standard behavior, no special \SpecialChar LaTeX
5696  commands are needed for that.
5697  But in the 
5698 \family sans
5699 Document\SpecialChar menuseparator
5700 Settings
5701 \family default
5702  dialog the corresponding radio button indicates 
5703 \family sans
5704 Indent
5705 \family default
5706 .
5707  A 
5708 \family sans
5709 Skip
5710 \family default
5711  value always has the effect that extra \SpecialChar LaTeX
5712  commands are inserted in the document
5713  to produce the gap, which is not what is wanted in this case.
5714 \end_layout
5715
5716 \begin_layout Subsection
5717
5718 \change_inserted 564990737 1672743555
5719 \begin_inset CommandInset label
5720 LatexCommand label
5721 name "subsec:Polish-M.W.collection"
5722
5723 \end_inset
5724
5725 Polish M.
5726 \begin_inset space \thinspace{}
5727 \end_inset
5728
5729 W.
5730 \begin_inset space \space{}
5731 \end_inset
5732
5733 collection
5734 \change_deleted 564990737 1670924933
5735 Article (mwart), book (mwbk) and report (mwrep)
5736 \begin_inset Argument status
5737 status collapsed
5738
5739 \begin_layout Plain Layout
5740 The 
5741 \family typewriter
5742 mw
5743 \family default
5744  Classes
5745 \end_layout
5746
5747 \end_inset
5748
5749
5750 \change_unchanged
5751
5752 \end_layout
5753
5754 \begin_layout Standard
5755 by 
5756 \noun on
5757 Tomasz Luczak
5758 \end_layout
5759
5760 \begin_layout Standard
5761 The \SpecialChar LyX
5762  document classes 
5763 \emph on
5764 article (mwart)
5765 \emph default
5766
5767 \emph on
5768 report (mwrep)
5769 \emph default
5770  and 
5771 \emph on
5772 book
5773 \emph default
5774  
5775 \emph on
5776 (mwbk)
5777 \emph default
5778  correspond to the \SpecialChar LaTeX
5779  document classes 
5780 \family typewriter
5781 mwart.cls
5782 \family default
5783
5784 \family typewriter
5785 mwrep.cls
5786 \family default
5787  and 
5788 \family typewriter
5789 mwbk.cls
5790 \family default
5791 , resp.
5792  They are replacements for the standard document classes 
5793 \family typewriter
5794 article.cls
5795 \family default
5796
5797 \family typewriter
5798 report.cls
5799 \family default
5800  and 
5801 \family typewriter
5802 book.cls
5803 \family default
5804 , resp., and fit better to Polish typography conventions in a number of points.
5805  
5806 \end_layout
5807
5808 \begin_layout Standard
5809 Basic differences:
5810 \end_layout
5811
5812 \begin_layout Itemize
5813 Unnumbered titles (with star, e.
5814 \begin_inset space \thinspace{}
5815 \end_inset
5816
5817 g.
5818 \begin_inset space \space{}
5819 \end_inset
5820
5821
5822 \family sans
5823 Section*
5824 \family default
5825 ) are added into table of contents,
5826 \end_layout
5827
5828 \begin_layout Itemize
5829 Additional page styles:
5830 \end_layout
5831
5832 \begin_deeper
5833 \begin_layout Description
5834 uheadings header with separated lines,
5835 \end_layout
5836
5837 \begin_layout Description
5838 myheadings custom header, contents headers via commands: 
5839 \family typewriter
5840
5841 \backslash
5842 markright
5843 \family default
5844  and 
5845 \family typewriter
5846
5847 \backslash
5848 markboth
5849 \family default
5850 ,
5851 \end_layout
5852
5853 \begin_layout Description
5854 myuheadings custom header with separated lines,
5855 \end_layout
5856
5857 \begin_layout Description
5858 outer page number is placed on outer side of page
5859 \end_layout
5860
5861 \end_deeper
5862 \begin_layout Itemize
5863 Options 
5864 \end_layout
5865
5866 \begin_deeper
5867 \begin_layout Description
5868 rmheadings serif titles — default,
5869 \end_layout
5870
5871 \begin_layout Description
5872 sfheadings sansserif titles,
5873 \end_layout
5874
5875 \begin_layout Description
5876 authortitle on title page first placed is author next title — default,
5877 \end_layout
5878
5879 \begin_layout Description
5880 titleauthor on title page first placed is title next author,
5881 \end_layout
5882
5883 \begin_layout Description
5884 withmarginpar reserve place on page for margins.
5885 \end_layout
5886
5887 \end_deeper
5888 \begin_layout Subsection
5889
5890 \change_inserted 564990737 1672652245
5891
5892 \lang american
5893 Tufte Collection
5894 \end_layout
5895
5896 \begin_layout Standard
5897
5898 \change_inserted 564990737 1672652245
5899
5900 \lang american
5901 The document classes 
5902 \family sans
5903 book
5904 \begin_inset space \thinspace{}
5905 \end_inset
5906
5907 (Tufte)
5908 \family default
5909  and 
5910 \family sans
5911 handout
5912 \begin_inset space \thinspace{}
5913 \end_inset
5914
5915 (Tufte)
5916 \family default
5917  use the 
5918 \family typewriter
5919 tufte-book.cls
5920 \family default
5921  and 
5922 \family typewriter
5923 tufte-handout.cls
5924 \family default
5925  document classes.
5926  Detailed information about these document classes can be found in 
5927 \family sans
5928 File\SpecialChar menuseparator
5929 Open Example\SpecialChar menuseparator
5930 Books\SpecialChar menuseparator
5931 Tufte Book
5932 \family default
5933  and 
5934 \family sans
5935 File\SpecialChar menuseparator
5936 Open Example\SpecialChar menuseparator
5937 Handouts\SpecialChar menuseparator
5938 Tufte Handout
5939 \family default
5940 .
5941 \end_layout
5942
5943 \begin_layout Section
5944
5945 \change_inserted 564990737 1670439534
5946 Articles
5947 \end_layout
5948
5949 \begin_layout Standard
5950
5951 \change_inserted 564990737 1670794710
5952 See also the document classes in the Collections (section
5953 \begin_inset space ~
5954 \end_inset
5955
5956
5957 \begin_inset CommandInset ref
5958 LatexCommand ref
5959 reference "sec:Collections"
5960
5961 \end_inset
5962
5963 ).
5964 \end_layout
5965
5966 \begin_layout Subsection
5967
5968 \change_inserted 564990737 1670794716
5969
5970 \lang american
5971 A&A Paper
5972 \end_layout
5973
5974 \begin_layout Standard
5975
5976 \change_inserted 564990737 1670794716
5977
5978 \lang american
5979 Original by 
5980 \noun on
5981 Peter Sütterlin
5982 \noun default
5983 ; updated by the \SpecialChar LyX
5984  Team
5985 \end_layout
5986
5987 \begin_layout Subsubsection
5988
5989 \change_inserted 564990737 1670794716
5990
5991 \lang american
5992 Introduction
5993 \end_layout
5994
5995 \begin_layout Standard
5996
5997 \change_inserted 564990737 1670794716
5998
5999 \lang american
6000 This section describes how \SpecialChar LyX
6001  can be used to write articles for submission
6002  to the scientific journal 
6003 \emph on
6004 Astronomy and Astrophysics
6005 \emph default
6006  (
6007 \begin_inset CommandInset href
6008 LatexCommand href
6009 name "aa-package"
6010 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6011 literal "false"
6012
6013 \end_inset
6014
6015 ) using Version 9.1 of the document class 
6016 \family typewriter
6017 aa.cls
6018 \family default
6019 ; information about it is available at 
6020 \begin_inset Flex URL
6021 status collapsed
6022
6023 \begin_layout Plain Layout
6024
6025 \change_inserted 564990737 1670794716
6026
6027 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
6028 \change_unchanged
6029
6030 \end_layout
6031
6032 \end_inset
6033
6034 .
6035 \end_layout
6036
6037 \begin_layout Standard
6038
6039 \change_inserted 564990737 1670794716
6040
6041 \lang american
6042 A manual comes together with the package and should be consulted before
6043  installing this document class as described in the 
6044 \emph on
6045 Installing New Document Classe
6046 \emph default
6047 s section of the 
6048 \emph on
6049 Customization
6050 \emph default
6051  manual.
6052  
6053 \end_layout
6054
6055 \begin_layout Standard
6056
6057 \change_inserted 564990737 1670794716
6058
6059 \lang american
6060 \begin_inset Note Greyedout
6061 status open
6062
6063 \begin_layout Plain Layout
6064
6065 \change_inserted 564990737 1670794716
6066
6067 \lang american
6068 Please note that the publisher of the journal was changed from Springer
6069  to EDP Sciences starting January 1, 2001.
6070  That change also involved some slight changes to the style files, namely
6071  the removal of the thesaurus command.
6072  If you have an older version installed, please upgrade.
6073  For information about compatibility with the old (version 4) layout, please
6074  refer to the comments in 
6075 \family typewriter
6076 \SpecialChar LyX
6077 Dir/layouts/aapaper.layout
6078 \family default
6079 .
6080 \end_layout
6081
6082 \end_inset
6083
6084
6085 \end_layout
6086
6087 \begin_layout Subsubsection
6088
6089 \change_inserted 564990737 1670794716
6090
6091 \lang american
6092 Getting started
6093 \end_layout
6094
6095 \begin_layout Standard
6096
6097 \change_inserted 564990737 1671617129
6098
6099 \lang american
6100 It is recommended you start from the template in the menu 
6101 \family sans
6102 \bar under
6103 F
6104 \bar default
6105 ile\SpecialChar menuseparator
6106 New
6107 \begin_inset space ~
6108 \end_inset
6109
6110 fro
6111 \bar under
6112 m
6113 \bar default
6114
6115 \begin_inset space ~
6116 \end_inset
6117
6118 Template
6119 \lang english
6120 \SpecialChar menuseparator
6121 Articles\SpecialChar menuseparator
6122 Astronomy & Astrophysics
6123 \family default
6124 \lang american
6125 .
6126  If you are not using the template, note the following settings:
6127 \end_layout
6128
6129 \begin_layout Itemize
6130
6131 \change_inserted 564990737 1670794716
6132
6133 \lang american
6134 Select 
6135 \family sans
6136 article (A&A)
6137 \family default
6138  in the 
6139 \family sans
6140 \bar under
6141 D
6142 \bar default
6143 ocument\SpecialChar menuseparator
6144
6145 \bar under
6146 S
6147 \bar default
6148 ettings\SpecialChar menuseparator
6149 Document
6150 \begin_inset space ~
6151 \end_inset
6152
6153 Class
6154 \family default
6155  dialog (OK, that one was obvious).
6156 \end_layout
6157
6158 \begin_layout Itemize
6159
6160 \change_inserted 564990737 1670794716
6161
6162 \lang american
6163 Don't change the 
6164 \family sans
6165 Headings
6166 \begin_inset space ~
6167 \end_inset
6168
6169
6170 \bar under
6171 s
6172 \bar default
6173 tyle
6174 \family default
6175  in the 
6176 \family sans
6177 Page
6178 \begin_inset space ~
6179 \end_inset
6180
6181 Layout
6182 \family default
6183  dialog: leave it set to 
6184 \family sans
6185 Default
6186 \family default
6187 .
6188  The whole layout is done by the macros, you shouldn't change anything.
6189 \end_layout
6190
6191 \begin_layout Subsubsection
6192
6193 \change_inserted 564990737 1670794716
6194
6195 \lang american
6196 The header block
6197 \end_layout
6198
6199 \begin_layout Standard
6200
6201 \change_inserted 564990737 1670794716
6202
6203 \lang american
6204 First thing to enter is the header information.
6205  It consists of five entries, of which one is optional.
6206  They are
6207 \end_layout
6208
6209 \begin_layout Itemize
6210
6211 \change_inserted 564990737 1670794716
6212
6213 \family sans
6214 \lang american
6215 Title
6216 \family default
6217 : [required] 
6218 \end_layout
6219
6220 \begin_layout Itemize
6221
6222 \change_inserted 564990737 1670794716
6223
6224 \family sans
6225 \lang american
6226 Subtitle
6227 \family default
6228 : [optional] 
6229 \end_layout
6230
6231 \begin_layout Itemize
6232
6233 \change_inserted 564990737 1670794716
6234
6235 \family sans
6236 \lang american
6237 Author
6238 \family default
6239 : [required]
6240 \end_layout
6241
6242 \begin_layout Itemize
6243
6244 \change_inserted 564990737 1670794716
6245
6246 \family typewriter
6247 \lang american
6248 Institute
6249 \family default
6250 : [required]
6251 \end_layout
6252
6253 \begin_layout Itemize
6254
6255 \change_inserted 564990737 1670794716
6256
6257 \family sans
6258 \lang american
6259 Date
6260 \family default
6261 : [required].
6262  Suggested format is 
6263 \family typewriter
6264 Received: <date>; Accepted <date> 
6265 \end_layout
6266
6267 \begin_layout Standard
6268
6269 \change_inserted 564990737 1670794716
6270
6271 \lang american
6272 Although the order of the single header entries doesn't matter it is advised
6273  to keep the above sequence, just to get the best optics and meets the layout
6274  of the real document.
6275 \end_layout
6276
6277 \begin_layout Standard
6278
6279 \change_inserted 564990737 1670794716
6280
6281 \lang american
6282 If you want to place footnotes in the header block, e.
6283 \begin_inset space \thinspace{}
6284 \end_inset
6285
6286 g.
6287 \begin_inset space \space{}
6288 \end_inset
6289
6290 to state your present address, just use the standard footnote via the menu
6291  
6292 \family sans
6293 \bar under
6294 I
6295 \bar default
6296 nsert\SpecialChar menuseparator
6297
6298 \bar under
6299 F
6300 \bar default
6301 ootnote.
6302
6303 \family default
6304  \SpecialChar LyX
6305  will automagically use the term 
6306 \family typewriter
6307
6308 \backslash
6309 thanks{}
6310 \family default
6311  in that case.
6312 \end_layout
6313
6314 \begin_layout Standard
6315
6316 \change_inserted 564990737 1670794716
6317
6318 \lang american
6319 In addition to these topics, the macros use three additional \SpecialChar LaTeX
6320  commands that
6321  have no counterpart in \SpecialChar LyX
6322 :
6323 \end_layout
6324
6325 \begin_layout Itemize
6326
6327 \change_inserted 564990737 1670794716
6328
6329 \family typewriter
6330 \lang american
6331
6332 \backslash
6333 and
6334 \family default
6335  to separate different names for more than one author and institute, respectivel
6336 y.
6337 \end_layout
6338
6339 \begin_layout Itemize
6340
6341 \change_inserted 564990737 1670794716
6342
6343 \family typewriter
6344 \lang american
6345
6346 \backslash
6347 inst{<nr>}
6348 \family default
6349  to mark corresponding author/institute pairs.
6350  The institutes are numbered sequentially as they appear in the 
6351 \family sans
6352 Institute
6353 \family default
6354  field, so you have to put a marker to each author.
6355 \end_layout
6356
6357 \begin_layout Itemize
6358
6359 \change_inserted 564990737 1670794716
6360
6361 \family typewriter
6362 \lang american
6363
6364 \backslash
6365 email{address}
6366 \family default
6367  to supply an email address for fast contact.
6368 \end_layout
6369
6370 \begin_layout Standard
6371
6372 \change_inserted 564990737 1671642374
6373
6374 \lang american
6375 In all cases, the appropriate command has to be entered as \SpecialChar TeX
6376  code in \SpecialChar LyX
6377 .
6378  See the examples in the template and in 
6379 \family sans
6380 \lang british
6381 File\SpecialChar menuseparator
6382 Open Example\SpecialChar menuseparator
6383 Articles\SpecialChar menuseparator
6384 Astronomy & Astrophysics
6385 \family default
6386 \lang american
6387 .
6388 \change_unchanged
6389
6390 \end_layout
6391
6392 \begin_layout Subsubsection
6393
6394 \change_inserted 564990737 1670794716
6395
6396 \lang american
6397 The abstract
6398 \end_layout
6399
6400 \begin_layout Standard
6401
6402 \change_inserted 564990737 1670794716
6403
6404 \lang american
6405 The abstract should immediately follow the header block and must contain
6406  five tokens: 
6407 \family typewriter
6408
6409 \backslash
6410 abstract{}{}{}{}{}
6411 \family default
6412  
6413 \end_layout
6414
6415 \begin_layout Enumerate
6416
6417 \change_inserted 564990737 1670794716
6418
6419 \family typewriter
6420 \lang american
6421 context heading
6422 \family default
6423  (optional) {} leave it empty if necessary 
6424 \end_layout
6425
6426 \begin_layout Enumerate
6427
6428 \change_inserted 564990737 1670794716
6429
6430 \family typewriter
6431 \lang american
6432 aims heading
6433 \family default
6434  (mandatory) {} 
6435 \end_layout
6436
6437 \begin_layout Enumerate
6438
6439 \change_inserted 564990737 1670794716
6440
6441 \family typewriter
6442 \lang american
6443 methods heading
6444 \family default
6445  (mandatory) {} 
6446 \end_layout
6447
6448 \begin_layout Enumerate
6449
6450 \change_inserted 564990737 1670794716
6451
6452 \family typewriter
6453 \lang american
6454 results heading
6455 \family default
6456  (mandatory) {} 
6457 \end_layout
6458
6459 \begin_layout Enumerate
6460
6461 \change_inserted 564990737 1670794716
6462
6463 \family typewriter
6464 \lang american
6465 conclusions heading
6466 \family default
6467  (optional) {} leave it empty if necessary 
6468 \end_layout
6469
6470 \begin_layout Standard
6471
6472 \change_inserted 564990737 1670794716
6473
6474 \lang american
6475 (NB.
6476  This structure not shown in 
6477 \emph on
6478 aa_sample.lyx.
6479 \emph default
6480 )
6481 \end_layout
6482
6483 \begin_layout Subsubsection
6484
6485 \change_inserted 564990737 1670794716
6486
6487 \lang american
6488 Supported environments
6489 \end_layout
6490
6491 \begin_layout Standard
6492
6493 \change_inserted 564990737 1670794716
6494
6495 \lang american
6496 The A&A paper layout supports the following environments for structuring
6497  your text:
6498 \end_layout
6499
6500 \begin_layout Itemize
6501
6502 \change_inserted 564990737 1670794716
6503
6504 \family sans
6505 \lang american
6506 Standard
6507 \end_layout
6508
6509 \begin_layout Itemize
6510
6511 \change_inserted 564990737 1670794716
6512
6513 \family sans
6514 \lang american
6515 Section
6516 \end_layout
6517
6518 \begin_layout Itemize
6519
6520 \change_inserted 564990737 1670794716
6521
6522 \family sans
6523 \lang american
6524 Subsection
6525 \end_layout
6526
6527 \begin_layout Itemize
6528
6529 \change_inserted 564990737 1670794716
6530
6531 \family sans
6532 \lang american
6533 Subsubsection
6534 \end_layout
6535
6536 \begin_layout Itemize
6537
6538 \change_inserted 564990737 1670794716
6539
6540 \family sans
6541 \lang american
6542 Itemize
6543 \end_layout
6544
6545 \begin_layout Itemize
6546
6547 \change_inserted 564990737 1670794716
6548
6549 \family sans
6550 \lang american
6551 Enumerate
6552 \end_layout
6553
6554 \begin_layout Itemize
6555
6556 \change_inserted 564990737 1670794716
6557
6558 \family sans
6559 \lang american
6560 Description
6561 \end_layout
6562
6563 \begin_layout Itemize
6564
6565 \change_inserted 564990737 1670794716
6566
6567 \family sans
6568 \lang american
6569 Caption
6570 \end_layout
6571
6572 \begin_layout Itemize
6573
6574 \change_inserted 564990737 1670794716
6575
6576 \family sans
6577 \lang american
6578 Abstract
6579 \end_layout
6580
6581 \begin_layout Itemize
6582
6583 \change_inserted 564990737 1670794716
6584
6585 \family sans
6586 \lang american
6587 Acknowledgment
6588 \end_layout
6589
6590 \begin_layout Itemize
6591
6592 \change_inserted 564990737 1670794716
6593
6594 \family sans
6595 \lang american
6596 Bibliography
6597 \end_layout
6598
6599 \begin_layout Itemize
6600
6601 \change_inserted 564990737 1670794716
6602
6603 \family sans
6604 \lang american
6605 \SpecialChar LaTeX
6606
6607 \end_layout
6608
6609 \begin_layout Subsubsection
6610
6611 \change_inserted 564990737 1670794716
6612
6613 \lang american
6614 Commands not supported by \SpecialChar LyX
6615
6616 \end_layout
6617
6618 \begin_layout Standard
6619
6620 \change_inserted 564990737 1670794716
6621
6622 \lang american
6623 Some commands are not yet supported by the 
6624 \family sans
6625 paper (A&A)
6626 \family default
6627  layout for \SpecialChar LyX
6628 .
6629  Some have already been mentioned.
6630  For the sake of completeness, they are listed all together here:
6631 \end_layout
6632
6633 \begin_layout Itemize
6634
6635 \change_inserted 564990737 1670794716
6636
6637 \family typewriter
6638 \lang american
6639
6640 \backslash
6641 and
6642 \end_layout
6643
6644 \begin_layout Itemize
6645
6646 \change_inserted 564990737 1670794716
6647
6648 \family typewriter
6649 \lang american
6650
6651 \backslash
6652 email
6653 \end_layout
6654
6655 \begin_layout Itemize
6656
6657 \change_inserted 564990737 1670794716
6658
6659 \family typewriter
6660 \lang american
6661
6662 \backslash
6663 inst{}
6664 \end_layout
6665
6666 \begin_layout Itemize
6667
6668 \change_inserted 564990737 1670794716
6669
6670 \family typewriter
6671 \lang american
6672
6673 \backslash
6674 keywords{}
6675 \end_layout
6676
6677 \begin_layout Itemize
6678
6679 \change_inserted 564990737 1670794716
6680
6681 \family typewriter
6682 \lang american
6683
6684 \backslash
6685 object{}
6686 \end_layout
6687
6688 \begin_layout Standard
6689
6690 \change_inserted 564990737 1670794716
6691
6692 \lang american
6693 If you want to use any of these commands, you have to enter them yourself.
6694  
6695 \family typewriter
6696 Do not forget to use
6697 \family sans
6698  
6699 \bar under
6700 I
6701 \bar default
6702 nsert\SpecialChar menuseparator
6703 \SpecialChar TeX
6704
6705 \begin_inset space ~
6706 \end_inset
6707
6708 Code
6709 \family default
6710 \series bold
6711 !
6712 \end_layout
6713
6714 \begin_layout Subsubsection
6715
6716 \change_inserted 564990737 1670794716
6717
6718 \lang american
6719 Figure and Table Floats
6720 \end_layout
6721
6722 \begin_layout Standard
6723
6724 \change_inserted 564990737 1670794716
6725
6726 \lang american
6727 \SpecialChar LyX
6728  provides support for the necessary float environments 
6729 \family sans
6730 figure, figure*, table
6731 \family default
6732  and 
6733 \family sans
6734 table*
6735 \family default
6736 , therefore we won't tell much about it here.
6737  Refer to the 
6738 \emph on
6739 User's
6740 \begin_inset space ~
6741 \end_inset
6742
6743 Guide
6744 \emph default
6745 .
6746  Just remember that tables should be left-aligned.
6747  For that, select the table and change the alignment in 
6748 \family sans
6749 \bar under
6750 E
6751 \bar default
6752 dit\SpecialChar menuseparator
6753
6754 \bar under
6755 P
6756 \bar default
6757 aragraph
6758 \begin_inset space ~
6759 \end_inset
6760
6761 Settings.
6762 \end_layout
6763
6764 \begin_layout Standard
6765
6766 \change_inserted 564990737 1670794716
6767
6768 \lang american
6769 There is only one special thing: the figures with a caption beside the figure.
6770  To create such a figure, you have to do the following:
6771 \end_layout
6772
6773 \begin_layout Enumerate
6774
6775 \change_inserted 564990737 1670794716
6776
6777 \lang american
6778 Create a wide figure float: 
6779 \family sans
6780 \bar under
6781 I
6782 \bar default
6783 nsert\SpecialChar menuseparator
6784 Flo
6785 \bar under
6786 a
6787 \bar default
6788 t\SpecialChar menuseparator
6789 Figure
6790 \family default
6791 , then, from within the float, use the menu 
6792 \family sans
6793 \bar under
6794 E
6795 \bar default
6796 dit\SpecialChar menuseparator
6797 Flo
6798 \bar under
6799 a
6800 \bar default
6801 t
6802 \begin_inset space ~
6803 \end_inset
6804
6805 Settings
6806 \family default
6807  and check 
6808 \family sans
6809 \bar under
6810 S
6811 \bar default
6812 pan
6813 \begin_inset space ~
6814 \end_inset
6815
6816 columns
6817 \family default
6818  in the 
6819 \family sans
6820 float
6821 \family default
6822  dialog.
6823 \end_layout
6824
6825 \begin_layout Enumerate
6826
6827 \change_inserted 564990737 1670794716
6828
6829 \lang american
6830 Enter your caption text.
6831 \end_layout
6832
6833 \begin_layout Enumerate
6834
6835 \change_inserted 564990737 1670794716
6836
6837 \lang american
6838 Press 
6839 \family sans
6840 Return
6841 \family default
6842  to move the cursor above the caption.
6843 \end_layout
6844
6845 \begin_layout Enumerate
6846
6847 \change_inserted 564990737 1670794716
6848
6849 \lang american
6850 Insert your figure
6851 \end_layout
6852
6853 \begin_layout Enumerate
6854
6855 \change_inserted 564990737 1670794716
6856
6857 \lang american
6858 Position the cursor after the figure and insert a horizontal fill by using
6859  the menu: 
6860 \family sans
6861 \bar under
6862 I
6863 \bar default
6864 nsert\SpecialChar menuseparator
6865 F
6866 \bar under
6867 o
6868 \bar default
6869 rmatting\SpecialChar menuseparator
6870 H
6871 \bar under
6872 o
6873 \bar default
6874 rizontal
6875 \begin_inset space ~
6876 \end_inset
6877
6878 Space
6879 \family default
6880  to open the 
6881 \family sans
6882 space
6883 \family default
6884  dialog and select the 
6885 \family sans
6886 Horizontal fill
6887 \family default
6888  option from the 
6889 \family sans
6890 \bar under
6891 S
6892 \bar default
6893 pacing
6894 \family default
6895  pull-down menu.
6896 \end_layout
6897
6898 \begin_layout Enumerate
6899
6900 \change_inserted 564990737 1670794716
6901
6902 \lang american
6903 Switch to \SpecialChar LaTeX
6904  mode: 
6905 \family sans
6906 M-c
6907 \begin_inset space ~
6908 \end_inset
6909
6910 t
6911 \family default
6912 .
6913 \end_layout
6914
6915 \begin_layout Enumerate
6916
6917 \change_inserted 564990737 1670794716
6918
6919 \lang american
6920 Enter 
6921 \family typewriter
6922
6923 \backslash
6924 parbox[b]{55mm}{
6925 \family default
6926  
6927 \emph on
6928 Do not close the brace!
6929 \end_layout
6930
6931 \begin_layout Enumerate
6932
6933 \change_inserted 564990737 1670794716
6934
6935 \lang american
6936 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
6937  mode and insert
6938  the closing brace: 
6939 \family sans
6940 M-c
6941 \begin_inset space ~
6942 \end_inset
6943
6944 t
6945 \family default
6946  
6947 \family typewriter
6948 }
6949 \family default
6950 .
6951 \end_layout
6952
6953 \begin_layout Standard
6954
6955 \change_inserted 564990737 1671642458
6956
6957 \lang american
6958 Also, refer to the figures in the file in 
6959 \family sans
6960 \lang british
6961 File\SpecialChar menuseparator
6962 Open Example\SpecialChar menuseparator
6963 Articles\SpecialChar menuseparator
6964 Astronomy & Astrophysics
6965 \family default
6966 \lang american
6967 .
6968 \end_layout
6969
6970 \begin_layout Subsubsection
6971
6972 \change_inserted 564990737 1670794716
6973
6974 \lang american
6975 Referee layout
6976 \end_layout
6977
6978 \begin_layout Standard
6979
6980 \change_inserted 564990737 1670794716
6981
6982 \lang american
6983 For submission, the paper has to be formatted in a special double-spacing
6984  layout.
6985  For this purpose, you have to add the option 
6986 \family typewriter
6987 referee
6988 \family default
6989  to the 
6990 \family sans
6991 Cus
6992 \bar under
6993 t
6994 \bar default
6995 om Class
6996 \begin_inset space ~
6997 \end_inset
6998
6999 options
7000 \family default
7001  in the 
7002 \family sans
7003 \bar under
7004 D
7005 \bar default
7006 ocument\SpecialChar menuseparator
7007
7008 \bar under
7009 S
7010 \bar default
7011 ettings\SpecialChar menuseparator
7012 Document
7013 \begin_inset space ~
7014 \end_inset
7015
7016 Class
7017 \family default
7018  dialog.
7019  
7020 \end_layout
7021
7022 \begin_layout Subsubsection
7023
7024 \change_inserted 564990737 1670794716
7025
7026 \lang american
7027 The example paper
7028 \end_layout
7029
7030 \begin_layout Standard
7031
7032 \change_inserted 564990737 1671642520
7033
7034 \lang american
7035 The example in 
7036 \family sans
7037 \lang british
7038 File\SpecialChar menuseparator
7039 Open Example\SpecialChar menuseparator
7040 Articles\SpecialChar menuseparator
7041 Astronomy & Astrophysics
7042 \family default
7043 \lang american
7044  was written with \SpecialChar LyX
7045 .
7046  It is the example paper from the original macro package, 
7047 \family typewriter
7048 aa.dem
7049 \family default
7050  in the 
7051 \begin_inset CommandInset href
7052 LatexCommand href
7053 name "aa-package"
7054 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
7055 literal "false"
7056
7057 \end_inset
7058
7059 , but translated to \SpecialChar LyX
7060  using the older unstructured abstract type.
7061  Use it for inspiration, and compare the \SpecialChar LaTeX
7062  code in 
7063 \family typewriter
7064 aa.dem
7065 \family default
7066  with the \SpecialChar LyX
7067  way of writing.
7068 \end_layout
7069
7070 \begin_layout Subsection
7071 AAS\SpecialChar TeX
7072
7073 \end_layout
7074
7075 \begin_layout Standard
7076 by 
7077 \noun on
7078 Mike Ressler
7079 \end_layout
7080
7081 \begin_layout Subsubsection
7082 Introduction
7083 \end_layout
7084
7085 \begin_layout Standard
7086 AAS\SpecialChar TeX
7087  is a set of macros produced by the American Astronomical Society to
7088  facilitate electronic manuscript submission to the three journals they
7089  publish: the Astrophysical Journal (including the Letters and Supplement),
7090  the Astronomical Journal, and the Publications of the Astronomical Society
7091  of the Pacific.
7092  \SpecialChar LyX
7093  has proven to be an excellent tool for generating these documents, especially
7094  given its equation, citation, and figure handling capabilities.
7095  \SpecialChar LyX
7096  requires version 5.0 (or higher) of these macros; preferably 6.0, which
7097  is the version described here, or higher.
7098  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
7099 2.09 and are fundamentally
7100  incompatible with \SpecialChar LyX
7101 .
7102  The AAS\SpecialChar TeX
7103  package may be downloaded from the AAS\SpecialChar TeX
7104  Web site
7105 \end_layout
7106
7107 \begin_layout Standard
7108 \begin_inset VSpace medskip
7109 \end_inset
7110
7111
7112 \end_layout
7113
7114 \begin_layout Standard
7115 \align center
7116 \begin_inset Flex URL
7117 status collapsed
7118
7119 \begin_layout Plain Layout
7120
7121 https://aas.org/aastex/aastex-downloads
7122 \end_layout
7123
7124 \end_inset
7125
7126
7127 \end_layout
7128
7129 \begin_layout Standard
7130 \begin_inset VSpace medskip
7131 \end_inset
7132
7133
7134 \end_layout
7135
7136 \begin_layout Standard
7137 A complete user guide is contained in that package and you should familiarize
7138  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
7139 .
7140  \SpecialChar LyX
7141  will not reduce the need to figure out all the AAS\SpecialChar TeX
7142  commands, it will only
7143  reduce the drudgery of typing everything in.
7144  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
7145  document conforms
7146  completely to the requirements of the journal to which you are submitting
7147  your paper.
7148 \end_layout
7149
7150 \begin_layout Subsubsection
7151 Starting a New Paper
7152 \end_layout
7153
7154 \begin_layout Standard
7155 I strongly suggest that you start with the AAS\SpecialChar TeX
7156  template file.
7157  Click on 
7158 \family sans
7159 File\SpecialChar menuseparator
7160 New from
7161 \family default
7162  
7163 \family sans
7164 Template
7165 \change_inserted 564990737 1671617265
7166 \SpecialChar menuseparator
7167 Articles\SpecialChar menuseparator
7168 American Astronomical Society
7169 \change_deleted 564990737 1671617310
7170
7171 \family default
7172 , enter the new file name, then choose the 
7173 \family typewriter
7174 aastex6.lyx
7175 \family default
7176  template
7177 \change_unchanged
7178 .
7179  This will show the most common fields found in a manuscript.
7180  Simply overwrite the existing text (including the brackets, 
7181 \family typewriter
7182 <>
7183 \family default
7184 ) with the correct information.
7185  Many of the AAS\SpecialChar TeX
7186  commands and environments can be implemented directly in
7187  \SpecialChar LyX
7188 , but some cannot.
7189  For commands such as these, the \SpecialChar LaTeX
7190  code must be entered directly and marked
7191  as such.
7192  Such commands are referred to as \SpecialChar TeX
7193  code, or Evil Red Text.
7194  I tried to minimize the amount of \SpecialChar TeX
7195  code needed in an AAS\SpecialChar TeX
7196  document.
7197 \end_layout
7198
7199 \begin_layout Subsubsection
7200 Finishing Your Paper
7201 \end_layout
7202
7203 \begin_layout Standard
7204 When the paper is finished to your satisfaction and previews/prints correctly,
7205  there are a few 
7206 \begin_inset Quotes eld
7207 \end_inset
7208
7209 postprocessing
7210 \begin_inset Quotes erd
7211 \end_inset
7212
7213  actions which need to be done before you submit it to the journals.
7214  
7215 \end_layout
7216
7217 \begin_layout Enumerate
7218 Export your paper as a \SpecialChar LaTeX
7219  file (
7220 \family sans
7221 File\SpecialChar menuseparator
7222 Export\SpecialChar menuseparator
7223 \SpecialChar LaTeX
7224
7225 \family default
7226 ).
7227  
7228 \end_layout
7229
7230 \begin_layout Enumerate
7231 Edit the resulting 
7232 \family typewriter
7233 .tex
7234 \family default
7235  file with your favorite text editor
7236 \end_layout
7237
7238 \begin_deeper
7239 \begin_layout Enumerate
7240 remove the comment lines before the 
7241 \family typewriter
7242
7243 \backslash
7244 documentclass
7245 \family default
7246  command
7247 \end_layout
7248
7249 \begin_layout Enumerate
7250 remove the 
7251 \family typewriter
7252
7253 \backslash
7254 usepackage...{fontenc}
7255 \family default
7256  line if it appears (usually just after 
7257 \family typewriter
7258
7259 \backslash
7260 documentclass
7261 \family default
7262 }; also remove the 
7263 \family typewriter
7264
7265 \backslash
7266 secnumdepth
7267 \family default
7268  line if it appears.
7269 \end_layout
7270
7271 \begin_layout Enumerate
7272 remove everything between (and including) the 
7273 \family typewriter
7274
7275 \backslash
7276 makeatletter
7277 \family default
7278  and 
7279 \family typewriter
7280
7281 \backslash
7282 makeatother
7283 \family default
7284  commands, except for any commands you specifically put into the \SpecialChar LaTeX
7285  preamble
7286  (which should appear immediately after the 
7287 \begin_inset Quotes eld
7288 \end_inset
7289
7290 User specified \SpecialChar LaTeX
7291  commands
7292 \begin_inset Quotes erd
7293 \end_inset
7294
7295  comment in the 
7296 \family typewriter
7297 .tex
7298 \family default
7299  file).
7300 \end_layout
7301
7302 \end_deeper
7303 \begin_layout Enumerate
7304 Run the resulting file through \SpecialChar LaTeX
7305  to make sure it still processes correctly.
7306 \end_layout
7307
7308 \begin_layout Enumerate
7309 Reread the journal requirements to make sure your filenames and formats
7310  are correct.
7311 \end_layout
7312
7313 \begin_layout Enumerate
7314 Submit it.
7315 \end_layout
7316
7317 \begin_layout Subsubsection
7318 Comments On Specific Commands
7319 \end_layout
7320
7321 \begin_layout Standard
7322 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
7323  commands: the
7324  AAS\SpecialChar TeX
7325  User Guide (
7326 \family typewriter
7327 aasguide.tex
7328 \family default
7329 ) gives a good description of each.
7330  Thus it's probably easiest for me to go down the list as found in the guide
7331  and offer comments where necessary.
7332  So let's begin \SpecialChar ldots
7333
7334 \end_layout
7335
7336 \begin_layout Paragraph
7337 Things that work as expected
7338 \end_layout
7339
7340 \begin_layout Standard
7341 Because they work as you might expect, I simply list them and the section
7342  they are found in: 
7343 \family typewriter
7344
7345 \backslash
7346 documentclass
7347 \family default
7348  (2.1.1), 
7349 \family typewriter
7350
7351 \backslash
7352 begin{document}
7353 \family default
7354  (2.2), 
7355 \family typewriter
7356
7357 \backslash
7358 title
7359 \family default
7360  (2.3), 
7361 \family typewriter
7362
7363 \backslash
7364 author
7365 \family default
7366  (2.3), 
7367 \family typewriter
7368
7369 \backslash
7370 affil
7371 \family default
7372  (2.3), 
7373 \family typewriter
7374
7375 \backslash
7376 abstract
7377 \family default
7378  (2.4), 
7379 \family typewriter
7380
7381 \backslash
7382 keywords
7383 \family default
7384  (2.5), 
7385 \family typewriter
7386
7387 \backslash
7388 section
7389 \family default
7390  (2.7), 
7391 \family typewriter
7392
7393 \backslash
7394 subsection
7395 \family default
7396  (2.7), 
7397 \family typewriter
7398
7399 \backslash
7400 subsubsection
7401 \family default
7402  (2.7), 
7403 \family typewriter
7404
7405 \backslash
7406 paragraph
7407 \family default
7408  (2.7), 
7409 \family typewriter
7410
7411 \backslash
7412 facility
7413 \family default
7414  (2.10), 
7415 \family typewriter
7416
7417 \backslash
7418 begin{displaymath}
7419 \family default
7420  (2.12), 
7421 \family typewriter
7422
7423 \backslash
7424 begin{equation}
7425 \family default
7426  (2.12), 
7427 \family typewriter
7428
7429 \backslash
7430 begin{eqnarray}
7431 \family default
7432  (2.12), 
7433 \family typewriter
7434
7435 \backslash
7436 begin{mathletters}
7437 \family default
7438  (2.12), 
7439 \family typewriter
7440
7441 \backslash
7442 begin{thebibliography}
7443 \family default
7444  (2.13.1), 
7445 \family typewriter
7446
7447 \backslash
7448 bibitem
7449 \family default
7450  (2.13.2), all the cite commands and their variations (2.13.2), the generic
7451  graphicx figure commands (2.14.1), 
7452 \family typewriter
7453
7454 \backslash
7455 begin{table}
7456 \family default
7457  (2.15.4), 
7458 \family typewriter
7459
7460 \backslash
7461 begin{tabular}
7462 \family default
7463  (2.15.4), 
7464 \family typewriter
7465
7466 \backslash
7467 caption
7468 \family default
7469  (2.15.4), 
7470 \family typewriter
7471
7472 \backslash
7473 label
7474 \family default
7475  (2.15.4, amongst other places), 
7476 \family typewriter
7477
7478 \backslash
7479 tablerefs
7480 \family default
7481  (2.15.5), 
7482 \family typewriter
7483
7484 \backslash
7485 tablecomments
7486 \family default
7487  (2.15.5), 
7488 \family typewriter
7489
7490 \backslash
7491 url
7492 \family default
7493  (2.17.4), 
7494 \family typewriter
7495
7496 \backslash
7497 end{document}
7498 \family default
7499  (2.18).
7500 \end_layout
7501
7502 \begin_layout Standard
7503 The following style options also work correctly: 
7504 \family typewriter
7505 longabstract
7506 \family default
7507  (2.4), 
7508 \family typewriter
7509 preprint
7510 \family default
7511  (3.2.1), 
7512 \family typewriter
7513 preprint2
7514 \family default
7515  (3.2.2), 
7516 \family typewriter
7517 eqsecnum
7518 \family default
7519  (3.3), 
7520 \family typewriter
7521 flushrt
7522 \family default
7523  (3.4).
7524  Simply put them in the 
7525 \family sans
7526 Options
7527 \family default
7528  box in 
7529 \family sans
7530 Layout\SpecialChar menuseparator
7531 Document
7532 \family default
7533 .
7534 \end_layout
7535
7536 \begin_layout Paragraph
7537 Things that work, but require more comment
7538 \end_layout
7539
7540 \begin_layout Standard
7541 The following items work, but require a little more discussion:
7542 \end_layout
7543
7544 \begin_layout Itemize
7545 These items are reserved for use by the journal editors, but you can put
7546  them into the \SpecialChar LaTeX
7547  preamble if you feel compelled to do so: 
7548 \family typewriter
7549
7550 \backslash
7551 received
7552 \family default
7553
7554 \family typewriter
7555
7556 \backslash
7557 revised
7558 \family default
7559
7560 \family typewriter
7561
7562 \backslash
7563 accepted
7564 \family default
7565
7566 \family typewriter
7567
7568 \backslash
7569 ccc
7570 \family default
7571
7572 \family typewriter
7573
7574 \backslash
7575 cpright
7576 \family default
7577  (all from 2.1.3)
7578 \end_layout
7579
7580 \begin_layout Itemize
7581 These items may be placed in the \SpecialChar LaTeX
7582  preamble, and are included as blanks in
7583  the template file: 
7584 \family typewriter
7585
7586 \backslash
7587 slugcomment
7588 \family default
7589  (2.1.4), 
7590 \family typewriter
7591
7592 \backslash
7593 shorttitle
7594 \family default
7595  (2.1.5), 
7596 \family typewriter
7597
7598 \backslash
7599 shortauthors
7600 \family default
7601  (2.1.5)
7602 \end_layout
7603
7604 \begin_layout Itemize
7605
7606 \family typewriter
7607
7608 \backslash
7609 email
7610 \family default
7611  (2.3) – can only be used 
7612 \begin_inset Quotes eld
7613 \end_inset
7614
7615 standalone
7616 \begin_inset Quotes erd
7617 \end_inset
7618
7619 , not in the middle of a paragraph.
7620  Use \SpecialChar TeX
7621  code if you need to embed it.
7622 \end_layout
7623
7624 \begin_layout Itemize
7625
7626 \family typewriter
7627
7628 \backslash
7629 and
7630 \family default
7631  (2.3) – will have extra {} after it.
7632  This should not cause an error.
7633 \end_layout
7634
7635 \begin_layout Itemize
7636
7637 \family typewriter
7638
7639 \backslash
7640 notetoeditor
7641 \family default
7642  (2.6) – can only be used 
7643 \begin_inset Quotes eld
7644 \end_inset
7645
7646 standalone
7647 \begin_inset Quotes erd
7648 \end_inset
7649
7650 , not in the middle of a paragraph.
7651  Use \SpecialChar TeX
7652  code if you need to embed it.
7653 \end_layout
7654
7655 \begin_layout Itemize
7656
7657 \family typewriter
7658
7659 \backslash
7660 placetable
7661 \family default
7662  (2.8) – can't insert a cross-reference tag, you must type the tag name by
7663  hand
7664 \end_layout
7665
7666 \begin_layout Itemize
7667
7668 \family typewriter
7669
7670 \backslash
7671 placefigure
7672 \family default
7673  (2.8) – same as for 
7674 \family typewriter
7675
7676 \backslash
7677 placetable
7678 \end_layout
7679
7680 \begin_layout Itemize
7681
7682 \family typewriter
7683
7684 \backslash
7685 acknowledgements
7686 \family default
7687  (2.9) – will have extra {} after it.
7688  This should not cause an error.
7689 \end_layout
7690
7691 \begin_layout Itemize
7692
7693 \family typewriter
7694
7695 \backslash
7696 appendix
7697 \family default
7698  (2.11) – will have extra {} after it.
7699  This should not cause an error.
7700 \end_layout
7701
7702 \begin_layout Itemize
7703
7704 \family typewriter
7705
7706 \backslash
7707 figcaption
7708 \family default
7709  (2.14.2) – you can insert an optional filename argument by placing the cursor
7710  at the beginning of the text and selecting 
7711 \family sans
7712 Insert\SpecialChar menuseparator
7713 Short Title
7714 \family default
7715 .
7716  
7717 \begin_inset Quotes eld
7718 \end_inset
7719
7720 Short Title
7721 \begin_inset Quotes erd
7722 \end_inset
7723
7724  inserts an optional argument of the type needed by 
7725 \family typewriter
7726
7727 \backslash
7728 figcaption
7729 \family default
7730 .
7731  Hopefully it will be renamed someday.
7732 \end_layout
7733
7734 \begin_layout Itemize
7735
7736 \family typewriter
7737
7738 \backslash
7739 objectname
7740 \family default
7741  (2.17.1) – same as 
7742 \family typewriter
7743
7744 \backslash
7745 figcaption
7746 \family default
7747  for the catalog ID optional parameter
7748 \end_layout
7749
7750 \begin_layout Itemize
7751
7752 \family typewriter
7753
7754 \backslash
7755 dataset
7756 \family default
7757  (2.17.1) – same as 
7758 \family typewriter
7759
7760 \backslash
7761 figcaption
7762 \family default
7763  for the catalog ID optional parameter
7764 \end_layout
7765
7766 \begin_layout Paragraph
7767 Things not implemented, use \SpecialChar TeX
7768  code
7769 \end_layout
7770
7771 \begin_layout Standard
7772
7773 \family typewriter
7774
7775 \backslash
7776 eqnum
7777 \family default
7778  (2.12), 
7779 \family typewriter
7780
7781 \backslash
7782 setcounter{equation}
7783 \family default
7784  (2.12), Journal name abbreviations (2.13.4), 
7785 \family typewriter
7786
7787 \backslash
7788 figurenum
7789 \family default
7790  (2.14.1), 
7791 \family typewriter
7792
7793 \backslash
7794 epsscale
7795 \family default
7796  (2.14.1), 
7797 \family typewriter
7798
7799 \backslash
7800 plotone
7801 \family default
7802  (2.14.1), 
7803 \family typewriter
7804
7805 \backslash
7806 plottwo
7807 \family default
7808  (2.14.1), 
7809 \family typewriter
7810
7811 \backslash
7812 tablenum
7813 \family default
7814  (2.15.4), 
7815 \family typewriter
7816
7817 \backslash
7818 tableline
7819 \family default
7820  (2.15.4, insert it as the first element in the lefthand cell after where
7821  you want it.
7822  Don't use any of \SpecialChar LyX
7823 's rules in the table), 
7824 \family typewriter
7825
7826 \backslash
7827 tablenotemark
7828 \family default
7829  (2.15.5), 
7830 \family typewriter
7831
7832 \backslash
7833 tablenotetext
7834 \family default
7835  (2.15.5), much of Misc (2.17, except 
7836 \family typewriter
7837
7838 \backslash
7839 objectname
7840 \family default
7841
7842 \family typewriter
7843
7844 \backslash
7845 dataset
7846 \family default
7847
7848 \family typewriter
7849
7850 \backslash
7851 url
7852 \family default
7853 , and 
7854 \family typewriter
7855
7856 \backslash
7857 email
7858 \family default
7859 ; see above), 
7860 \family typewriter
7861
7862 \backslash
7863 singlespace
7864 \family default
7865  (3.1), 
7866 \family typewriter
7867
7868 \backslash
7869 doublespace
7870 \family default
7871  (3.1), 
7872 \family typewriter
7873
7874 \backslash
7875 onecolumn
7876 \family default
7877  (3.2), 
7878 \family typewriter
7879
7880 \backslash
7881 twocolumn
7882 \family default
7883  (3.2)
7884 \end_layout
7885
7886 \begin_layout Paragraph
7887 Things that cannot be implemented
7888 \end_layout
7889
7890 \begin_layout Standard
7891 \SpecialChar ldots
7892  at least in any meaningful sort of way, so I suggest ignoring them.
7893  They are the references environment (2.13.3), and the deluxetable environment
7894  (2.15).
7895  If you really, really need to use deluxetable, I suggest editing it in
7896  a separate file with a text editor, then using 
7897 \family sans
7898 Insert\SpecialChar menuseparator
7899 Child
7900 \begin_inset space ~
7901 \end_inset
7902
7903 Document
7904 \family default
7905  to include it in your \SpecialChar LyX
7906  document.
7907  See 
7908 \change_deleted 564990737 1671642564
7909 the 
7910 \family typewriter
7911 aas_sample.lyx
7912 \family default
7913  file to see
7914 \change_inserted 564990737 1671642618
7915
7916 \family sans
7917 \lang british
7918 File\SpecialChar menuseparator
7919 Open Example\SpecialChar menuseparator
7920 Articles\SpecialChar menuseparator
7921 American Astronomical Society
7922 \change_unchanged
7923
7924 \family default
7925 \lang english
7926  
7927 \change_inserted 564990737 1671642621
7928 for 
7929 \change_unchanged
7930 an example of this.
7931 \end_layout
7932
7933 \begin_layout Subsubsection
7934 FAQs, Tips, Tricks, and Other Ruminations
7935 \end_layout
7936
7937 \begin_layout Paragraph
7938 Getting \SpecialChar LyX
7939  and AAS\SpecialChar TeX
7940  to cooperate
7941 \end_layout
7942
7943 \begin_layout Standard
7944 It can be a bit tricky to get \SpecialChar LyX
7945  to recognize a new layout and document class.
7946  When all else fails, do this:
7947 \end_layout
7948
7949 \begin_layout Enumerate
7950 Make certain that \SpecialChar LaTeX
7951  can find AAS\SpecialChar TeX
7952 .
7953  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
7954  distribution into a
7955  directory completely unrelated to \SpecialChar LaTeX
7956  or AAS\SpecialChar TeX
7957  and run \SpecialChar LaTeX
7958  on 
7959 \family typewriter
7960 sample.tex
7961 \family default
7962 .
7963 \end_layout
7964
7965 \begin_layout Enumerate
7966 Make certain that 
7967 \family typewriter
7968 aastex.layout
7969 \family default
7970  appears in \SpecialChar LyX
7971 's 
7972 \family typewriter
7973 layouts
7974 \family default
7975  folder
7976 \end_layout
7977
7978 \begin_layout Enumerate
7979 Rerun 
7980 \family sans
7981 Tools\SpecialChar menuseparator
7982 Reconfigure
7983 \family default
7984  in \SpecialChar LyX
7985 , then restart \SpecialChar LyX
7986 .
7987 \end_layout
7988
7989 \begin_layout Enumerate
7990 Open a regular new file, not from a template.
7991  Does AAS\SpecialChar TeX
7992  appear in the class list in 
7993 \family sans
7994 Document\SpecialChar menuseparator
7995 Settings
7996 \family default
7997 ?
7998 \end_layout
7999
8000 \begin_layout Standard
8001 If you get a warning from an existing AAS\SpecialChar TeX
8002  document about not being able
8003  to find the AAS\SpecialChar TeX
8004  layout or a message about 
8005 \begin_inset Quotes eld
8006 \end_inset
8007
8008 You should not mix title layouts with normal ones
8009 \begin_inset Quotes erd
8010 \end_inset
8011
8012 , things haven't been installed correctly.
8013 \end_layout
8014
8015 \begin_layout Paragraph
8016 \SpecialChar LaTeX
8017  error processing a table 
8018 \end_layout
8019
8020 \begin_layout Standard
8021 \SpecialChar LyX
8022 , by default, attempts to center the table caption/title.
8023  This seems to produce a bad interaction in AAS\SpecialChar TeX
8024  so you should click somewhere
8025  in the caption/title, then select 
8026 \family sans
8027 Edit\SpecialChar menuseparator
8028 Paragraph
8029 \begin_inset space ~
8030 \end_inset
8031
8032 Settings
8033 \family default
8034 , then set the 
8035 \family sans
8036 Alignment
8037 \family default
8038  to 
8039 \family sans
8040 Block
8041 \family default
8042 .
8043  This took care of it for me.
8044 \end_layout
8045
8046 \begin_layout Paragraph
8047 References
8048 \end_layout
8049
8050 \begin_layout Standard
8051 A couple of things: 1) I have noticed some funny spacing in the reference
8052  entries in the text.
8053  When you enter the bibliography item data, make sure their is 
8054 \emph on
8055 no
8056 \emph default
8057  space between the last author and the parenthesis setting off the year;
8058  
8059 \emph on
8060 e.
8061 \begin_inset space \thinspace{}
8062 \end_inset
8063
8064 g.
8065 \begin_inset space \space{}
8066 \end_inset
8067
8068
8069 \emph default
8070 type 
8071 \family typewriter
8072 Ressler(1992)
8073 \family default
8074 , not 
8075 \family typewriter
8076 Ressler (1992)
8077 \family default
8078 .
8079  2) Entering the references at all is not obvious.
8080  The easiest thing is to start typing your first reference at the end of
8081  the document, then mark it as type 
8082 \family sans
8083 References
8084 \family default
8085 .
8086  That will put a small gray box in front of what you just typed.
8087  Click on the box to fill in the rest of the information.
8088  For new references, go to the end of an existing reference and press return.
8089  That will create a new line with its own box, etc.
8090 \end_layout
8091
8092 \begin_layout Paragraph
8093 Including EPS files
8094 \end_layout
8095
8096 \begin_layout Standard
8097 Even though AAS\SpecialChar TeX
8098  provides its own figure commands (
8099 \family typewriter
8100
8101 \backslash
8102 plotone
8103 \family default
8104 , for example), I much prefer \SpecialChar LaTeX
8105 's standard figure commands (with the default
8106  graphicx).
8107  You can insert the 
8108 \family typewriter
8109
8110 \backslash
8111 plotone
8112 \family default
8113 , etc.
8114 \begin_inset space ~
8115 \end_inset
8116
8117 commands as \SpecialChar TeX
8118  code into a Figure Float box if you desire, but I never have
8119  much luck getting the layout right.
8120  With the standard graphics, \SpecialChar LyX
8121  will insert a 
8122 \family typewriter
8123
8124 \backslash
8125 usepackage{graphicx}
8126 \family default
8127  command into the \SpecialChar LaTeX
8128  preamble and handle the figures in the standard \SpecialChar LaTeX2e
8129  way,
8130  interspersing the figures in the text.
8131  I believe ApJ accepts figures exactly this way now; AJ might still use
8132  the 
8133 \begin_inset Quotes eld
8134 \end_inset
8135
8136 stack everything at the end
8137 \begin_inset Quotes erd
8138 \end_inset
8139
8140  technique.
8141 \end_layout
8142
8143 \begin_layout Paragraph
8144 Things I could have done, but didn't
8145 \end_layout
8146
8147 \begin_layout Standard
8148 There are a few 
8149 \begin_inset Quotes eld
8150 \end_inset
8151
8152 pretty
8153 \begin_inset Quotes erd
8154 \end_inset
8155
8156  things I could have implemented, but chose not to.
8157  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
8158  window,
8159  even though it is double-spaced in the paper manuscript.
8160  Also, I chose not to make separate layouts for the preprint and preprint2
8161  styles.
8162  Since I assume you will spend most of your time in the plain manuscript
8163  mode anyway, I decided not to chew up more disk space with this.
8164  
8165 \end_layout
8166
8167 \begin_layout Subsubsection
8168 Final Caveat
8169 \end_layout
8170
8171 \begin_layout Standard
8172 Your mileage may vary.
8173  I've now had papers published by both ApJ and AJ that have had 98% of the
8174  effort done in \SpecialChar LyX
8175 ; the last 2% was the \SpecialChar LaTeX
8176  post-processing and a few cleanups.
8177  I have had no trouble with the submission process, and I'm sure the journals
8178  were never aware that there might be a difference.
8179  So, go forth and publish!
8180 \end_layout
8181
8182 \begin_layout Subsection
8183
8184 \change_inserted 564990737 1671442131
8185
8186 \lang american
8187 Chess
8188 \end_layout
8189
8190 \begin_layout Standard
8191
8192 \change_inserted 564990737 1671642768
8193
8194 \lang american
8195 The document class 
8196 \family sans
8197 article
8198 \begin_inset space \thinspace{}
8199 \end_inset
8200
8201 (Chess)
8202 \family default
8203  uses the 
8204 \family typewriter
8205 article.cls
8206 \family default
8207  document class together with the style 
8208 \family sans
8209 lyxskak.sty
8210 \family default
8211  to facilitate the description of chess games.
8212  See 
8213 \family sans
8214 \lang british
8215 File\SpecialChar menuseparator
8216 Open Example
8217 \lang english
8218 \SpecialChar menuseparator
8219 Articles\SpecialChar menuseparator
8220 Chess
8221 \family default
8222 \lang american
8223  where you will find 
8224 \family sans
8225 \lang english
8226 Game 1
8227 \family default
8228 \lang american
8229  and 
8230 \family sans
8231 \lang english
8232 Game 2
8233 \family default
8234 \lang american
8235 .
8236 \end_layout
8237
8238 \begin_layout Subsection
8239
8240 \change_inserted 564990737 1671042028
8241
8242 \lang american
8243 Elsevier
8244 \end_layout
8245
8246 \begin_layout Standard
8247
8248 \change_inserted 564990737 1671617396
8249
8250 \lang american
8251 The document class 
8252 \family sans
8253 article
8254 \begin_inset space \thinspace{}
8255 \end_inset
8256
8257 (Elsevier)
8258 \family default
8259  provides the 
8260 \family typewriter
8261 elsarticle.cls
8262 \family default
8263  document class.
8264  This provides the following additional environments: 
8265 \family sans
8266 Title
8267 \begin_inset space ~
8268 \end_inset
8269
8270 footnote
8271 \family default
8272
8273 \family sans
8274 Author
8275 \begin_inset space ~
8276 \end_inset
8277
8278 footnote
8279 \family default
8280
8281 \family sans
8282 Corresponding
8283 \begin_inset space ~
8284 \end_inset
8285
8286 author
8287 \family default
8288
8289 \family sans
8290 Address
8291 \family default
8292
8293 \family sans
8294 Email
8295 \family default
8296  and 
8297 \family sans
8298 Keywords
8299 \family default
8300 .
8301  A template is available in the menu 
8302 \family sans
8303 \bar under
8304 F
8305 \bar default
8306 ile\SpecialChar menuseparator
8307 New
8308 \begin_inset space ~
8309 \end_inset
8310
8311 fro
8312 \bar under
8313 m
8314 \bar default
8315
8316 \begin_inset space ~
8317 \end_inset
8318
8319 Template
8320 \lang english
8321 \SpecialChar menuseparator
8322 Articles\SpecialChar menuseparator
8323 Elsevier
8324 \family default
8325 \lang american
8326 .
8327  It has been customized with further environments and contains all the informati
8328 on you may need.
8329  However, the documentation is also available from 
8330 \begin_inset CommandInset href
8331 LatexCommand href
8332 name "CTAN"
8333 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
8334 literal "false"
8335
8336 \end_inset
8337
8338 .
8339 \end_layout
8340
8341 \begin_layout Subsection
8342
8343 \change_inserted 564990737 1671042046
8344
8345 \lang american
8346 Paper
8347 \end_layout
8348
8349 \begin_layout Standard
8350
8351 \change_inserted 564990737 1671042046
8352
8353 \lang american
8354 The document class 
8355 \family sans
8356 article
8357 \begin_inset space \thinspace{}
8358 \end_inset
8359
8360 (paper)
8361 \family default
8362  provides an alternative to the 
8363 \family typewriter
8364 article.cls
8365 \family default
8366  document class.
8367  It provides similar functionality, but you might prefer this layout with
8368  sans serif sections, headings, and more.
8369 \end_layout
8370
8371 \begin_layout Subsection
8372 Rev\SpecialChar TeX
8373 4
8374 \end_layout
8375
8376 \begin_layout Standard
8377 by 
8378 \noun on
8379 Amir Karger
8380 \end_layout
8381
8382 \begin_layout Standard
8383 \begin_inset VSpace bigskip
8384 \end_inset
8385
8386
8387 \end_layout
8388
8389 \begin_layout Standard
8390 \noindent
8391 The 
8392 \family sans
8393 Revtex
8394 \begin_inset space ~
8395 \end_inset
8396
8397 4
8398 \family default
8399  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
8400  4.0 (the 
8401 \begin_inset Formula $\beta$
8402 \end_inset
8403
8404  release of May, 1999) class.
8405 \end_layout
8406
8407 \begin_layout Standard
8408 \SpecialChar LyX
8409  has a 
8410 \family sans
8411 Revtex
8412 \family default
8413  textclass, which works with Rev\SpecialChar TeX
8414  3.1.
8415  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
8416  2.09.
8417  That means that it doesn't interact very well with \SpecialChar LyX
8418 , which requires \SpecialChar LaTeX2e
8419 , although
8420  it has been kludged to work.
8421  Since Rev\SpecialChar TeX
8422  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
8423 , \SpecialChar LyX
8424  with the
8425  
8426 \family sans
8427 Rev\SpecialChar TeX
8428
8429 \begin_inset space ~
8430 \end_inset
8431
8432 4
8433 \family default
8434  textclass should also be pretty easy to use.
8435 \end_layout
8436
8437 \begin_layout Standard
8438 These documents are supposed to be used in 
8439 \emph on
8440 addition
8441 \emph default
8442  to the Rev\SpecialChar TeX
8443  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
8444  macros,
8445  and assume you'll know what to put in the preamble if necessary.
8446 \end_layout
8447
8448 \begin_layout Subsubsection
8449 Installation
8450 \end_layout
8451
8452 \begin_layout Standard
8453 All you need to do is install Rev\SpecialChar TeX
8454  4, as described in the package's README
8455  file.
8456  The package can be found at The Rev\SpecialChar TeX
8457  4 Web Site 
8458 \begin_inset Flex URL
8459 status collapsed
8460
8461 \begin_layout Plain Layout
8462
8463 http://publish.aps.org/revtex4/
8464 \end_layout
8465
8466 \end_inset
8467
8468 .
8469  Install it somewhere that \SpecialChar LaTeX
8470  can see it.
8471  Test it by trying to \SpecialChar LaTeX
8472  a short Rev\SpecialChar TeX
8473  4 document in some random directory (i.
8474 \begin_inset space \thinspace{}
8475 \end_inset
8476
8477 e.
8478 \begin_inset space \space{}
8479 \end_inset
8480
8481 not the directory where you installed the class file.) Then, if you reconfigure
8482  \SpecialChar LyX
8483 , it will find the class file and let you use the Rev\SpecialChar TeX
8484 4 textclass.
8485 \end_layout
8486
8487 \begin_layout Standard
8488 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
8489  4 document
8490  using 
8491 \family typewriter
8492 tex2lyx
8493 \family default
8494 , or to use the 
8495 \family sans
8496 Revtex
8497 \begin_inset space ~
8498 \end_inset
8499
8500 4
8501 \family default
8502  template, found in the templates directory.
8503 \end_layout
8504
8505 \begin_layout Subsubsection
8506 Preamble Matter
8507 \end_layout
8508
8509 \begin_layout Standard
8510 Optional arguments to 
8511 \family typewriter
8512
8513 \backslash
8514 documentclass
8515 \family default
8516 , like 
8517 \begin_inset Quotes eld
8518 \end_inset
8519
8520 preprint
8521 \begin_inset Quotes erd
8522 \end_inset
8523
8524  and 
8525 \begin_inset Quotes eld
8526 \end_inset
8527
8528 aps
8529 \begin_inset Quotes erd
8530 \end_inset
8531
8532 , go in the 
8533 \family sans
8534 Extra
8535 \begin_inset space ~
8536 \end_inset
8537
8538 Options
8539 \family default
8540  field in the 
8541 \family sans
8542 Document
8543 \begin_inset space ~
8544 \end_inset
8545
8546 Layout
8547 \family default
8548  dialog, as usual.
8549  Remember that in Rev\SpecialChar TeX
8550 , at least one optional argument is required! 
8551 \end_layout
8552
8553 \begin_layout Standard
8554 Other preamble matter, like 
8555 \family typewriter
8556
8557 \backslash
8558 draft
8559 \family default
8560  etc.
8561 \begin_inset space ~
8562 \end_inset
8563
8564 goes in the 
8565 \family sans
8566 \SpecialChar LaTeX
8567
8568 \begin_inset space ~
8569 \end_inset
8570
8571 Preamble
8572 \family default
8573  dialog, also as usual.
8574 \end_layout
8575
8576 \begin_layout Subsubsection
8577 Layouts
8578 \end_layout
8579
8580 \begin_layout Standard
8581 The layouts basically correspond to the commands in Rev\SpecialChar TeX
8582 4.0.
8583  For example, the Email layout corresponds to 
8584 \family typewriter
8585
8586 \backslash
8587 email{}
8588 \family default
8589 .
8590  Note that (at least as of Rev\SpecialChar TeX
8591  4.0 Beta), the 
8592 \family sans
8593 Address
8594 \family default
8595  and 
8596 \family sans
8597 Affiliation
8598 \family default
8599  layouts are exactly equivalent, so you shouldn't need to use both.
8600 \begin_inset Foot
8601 status collapsed
8602
8603 \begin_layout Plain Layout
8604 In case you're curious, both were included so that 
8605 \family typewriter
8606 tex2lyx
8607 \family default
8608  would be able to translate both 
8609 \family typewriter
8610
8611 \backslash
8612 address
8613 \family default
8614  and 
8615 \family typewriter
8616
8617 \backslash
8618 affiliation
8619 \family default
8620 .
8621 \end_layout
8622
8623 \end_inset
8624
8625
8626 \end_layout
8627
8628 \begin_layout Subsubsection
8629 Important Notes
8630 \end_layout
8631
8632 \begin_layout Standard
8633 There are a couple of important unique aspects of Rev\SpecialChar TeX
8634  4 which might cause
8635  bugs that will be even more confusing in \SpecialChar LyX
8636 .
8637 \end_layout
8638
8639 \begin_layout Standard
8640 In Rev\SpecialChar TeX
8641 , the 
8642 \family typewriter
8643
8644 \backslash
8645 thanks
8646 \family default
8647  command goes 
8648 \emph on
8649 outside
8650 \emph default
8651  the 
8652 \family typewriter
8653
8654 \backslash
8655 author
8656 \family default
8657  command.
8658  The \SpecialChar LyX
8659  equivalent is that there is a separate Thanks layout.
8660  Do 
8661 \emph on
8662 not
8663 \emph default
8664  write footnotes in the 
8665 \family sans
8666 Author
8667 \family default
8668  layout, or weird things may happen.
8669  See the Rev\SpecialChar TeX
8670  4 documentation for more details.
8671 \end_layout
8672
8673 \begin_layout Standard
8674 Also, the 
8675 \family sans
8676 Author
8677 \begin_inset space ~
8678 \end_inset
8679
8680 Email
8681 \family default
8682
8683 \family sans
8684 Author
8685 \begin_inset space ~
8686 \end_inset
8687
8688 URL
8689 \family default
8690 , and 
8691 \family sans
8692 Thanks
8693 \family default
8694  layouts must be placed 
8695 \emph on
8696 in between
8697 \emph default
8698  the 
8699 \family sans
8700 Author
8701 \family default
8702  layout and the corresponding 
8703 \family sans
8704 Address
8705 \family default
8706  (or equivalent 
8707 \family sans
8708 Affiliation
8709 \family default
8710 ) layout.
8711  If you put the 
8712 \family sans
8713 Thanks
8714 \family default
8715  after the 
8716 \family sans
8717 Address
8718 \family default
8719 , the \SpecialChar LaTeX
8720  won't compile.
8721 \end_layout
8722
8723 \begin_layout Subsection
8724
8725 \change_inserted 564990737 1671042072
8726
8727 \lang american
8728 Springer Journals
8729 \end_layout
8730
8731 \begin_layout Standard
8732
8733 \change_inserted 564990737 1671042072
8734
8735 \lang american
8736 All the 
8737 \family sans
8738 svj*
8739 \family default
8740  classes were replaced in 2013 with a completely new 
8741 \family sans
8742 sr-vorl.cls
8743 \family default
8744 .
8745  This package provides a \SpecialChar LaTeX
8746  class and templates for books to be published
8747  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
8748  Research, Springer VS Research, or Springer VS Forschung.
8749  The documentation is available in German from 
8750 \begin_inset CommandInset href
8751 LatexCommand href
8752 name "CTAN"
8753 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
8754 literal "false"
8755
8756 \end_inset
8757
8758 .
8759 \end_layout
8760
8761 \begin_layout Section
8762
8763 \change_inserted 564990737 1670439560
8764 Books
8765 \end_layout
8766
8767 \begin_layout Standard
8768
8769 \change_inserted 564990737 1670439581
8770 See also the document classes in the Collections (section
8771 \begin_inset space ~
8772 \end_inset
8773
8774
8775 \begin_inset CommandInset ref
8776 LatexCommand ref
8777 reference "sec:Collections"
8778
8779 \end_inset
8780
8781 ).
8782 \end_layout
8783
8784 \begin_layout Subsection
8785 Memoir
8786 \end_layout
8787
8788 \begin_layout Standard
8789 By 
8790 \noun on
8791 Jürgen Spitzmüller
8792 \end_layout
8793
8794 \begin_layout Subsubsection
8795 Overview
8796 \end_layout
8797
8798 \begin_layout Standard
8799 Memoir is a very powerful and constantly evolving class.
8800  It has been designed with regard to fictional and non-fictional literature.
8801  Its aim is to let the user have maximum control over the typesetting of
8802  his document.
8803  Memoir is based on the standard book class, but it can also emulate the
8804  article class (see below).
8805 \end_layout
8806
8807 \begin_layout Standard
8808 Peter Wilson, the developer of Memoir, is known as the author of lots of
8809  useful packages in the \SpecialChar LaTeX
8810  world.
8811  Most of them have been merged with Memoir.
8812  Therefore, it is much easier to layout the table of contents, appendices,
8813  chapter designs and such.
8814  \SpecialChar LyX
8815 , though, does not support all of these goodies natively.
8816  Some of them might be added to forthcoming releases
8817 \begin_inset Foot
8818 status collapsed
8819
8820 \begin_layout Plain Layout
8821 You are invited to send suggestions to 
8822 \begin_inset Flex URL
8823 status collapsed
8824
8825 \begin_layout Plain Layout
8826
8827 lyx-devel@lists.lyx.org
8828 \end_layout
8829
8830 \end_inset
8831
8832 .
8833 \end_layout
8834
8835 \end_inset
8836
8837 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
8838 's framework.
8839  Of course you can still use all features with the help of some native \SpecialChar LaTeX
8840
8841  commands (\SpecialChar TeX
8842  code
8843 \begin_inset Foot
8844 status collapsed
8845
8846 \begin_layout Plain Layout
8847 Cf.
8848 \begin_inset ERT
8849 status collapsed
8850
8851 \begin_layout Plain Layout
8852
8853
8854 \backslash
8855  
8856 \end_layout
8857
8858 \end_inset
8859
8860 section
8861 \begin_inset space ~
8862 \end_inset
8863
8864
8865 \begin_inset CommandInset ref
8866 LatexCommand ref
8867 reference "sec:Inserting-TeX-Code"
8868
8869 \end_inset
8870
8871  for details.
8872 \end_layout
8873
8874 \end_inset
8875
8876 ).
8877  In this section, we can only list those features that are natively supported
8878  by \SpecialChar LyX
8879 .
8880  For detailed descriptions (and for the rest of features) we recommend you
8881  have a look at the detailed manual of the Memoir class
8882 \begin_inset Foot
8883 status collapsed
8884
8885 \begin_layout Plain Layout
8886 Cf.
8887 \begin_inset ERT
8888 status collapsed
8889
8890 \begin_layout Plain Layout
8891
8892
8893 \backslash
8894  
8895 \end_layout
8896
8897 \end_inset
8898
8899
8900 \begin_inset Flex URL
8901 status collapsed
8902
8903 \begin_layout Plain Layout
8904
8905 CTAN:/macros/latex/memoir/memman.pdf
8906 \end_layout
8907
8908 \end_inset
8909
8910 .
8911 \end_layout
8912
8913 \end_inset
8914
8915 , which is not only a user guide for the class, but also both a comprehensive
8916  description on good typesetting and a superb example for good typesetting
8917  itself.
8918 \end_layout
8919
8920 \begin_layout Subsubsection
8921 Basic features and restrictions
8922 \end_layout
8923
8924 \begin_layout Standard
8925 Memoir supports basically all features of the standard book classes.
8926  There are, however, some differences, as follows:
8927 \end_layout
8928
8929 \begin_layout Description
8930 Font
8931 \begin_inset space ~
8932 \end_inset
8933
8934 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
8935 \end_layout
8936
8937 \begin_layout Description
8938 Page
8939 \begin_inset space ~
8940 \end_inset
8941
8942 style: The fancy page style is not supported, due to a command clash between
8943  Memoir and the fancyhdr package (they both define a command with the same
8944  name, which confuses \SpecialChar LaTeX
8945 ).
8946  Instead, Memoir comes with a number of its own page styles (see 
8947 \family sans
8948 Document\SpecialChar menuseparator
8949 Settings\SpecialChar menuseparator
8950 Page
8951 \begin_inset space ~
8952 \end_inset
8953
8954 Style
8955 \family default
8956 ).
8957  If you want to use these for the chapter pages, you have to use the command
8958  
8959 \family typewriter
8960
8961 \backslash
8962 chapterstyle
8963 \family default
8964  in the main text or in preamble (e.
8965 \begin_inset space \thinspace{}
8966 \end_inset
8967
8968 g.
8969 \begin_inset space \space{}
8970 \end_inset
8971
8972
8973 \family typewriter
8974
8975 \backslash
8976 chapterstyle{companion}
8977 \family default
8978 ).
8979 \end_layout
8980
8981 \begin_layout Description
8982 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
8983  optional argument in the standard classes.
8984  With this, you can specify an alternative version of the title for the
8985  table of contents and the headers (for instance, if the title is too long).
8986  In \SpecialChar LyX
8987 , you can do this via 
8988 \family sans
8989 Insert\SpecialChar menuseparator
8990 Short
8991 \begin_inset space ~
8992 \end_inset
8993
8994 Title
8995 \family default
8996  at the beginning of a chapter/section.
8997  Memoir features a second optional argument and thus separates the table
8998  of contents from the header.
8999  You can define three variants of a title with this: one for the main text,
9000  one for the table of contents, and one for the headers.
9001  \SpecialChar LyX
9002  makes these available in form of specific 
9003 \family sans
9004 Short Title
9005 \family default
9006  variants in the 
9007 \family sans
9008 Insert
9009 \family default
9010  menu.
9011 \end_layout
9012
9013 \begin_layout Description
9014 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
9015  of contents, the list of figures and the list of table start a new page
9016  automatically.
9017  Memoir does not follow this route.
9018  You have to insert a page break yourself, if you want to have one.
9019 \end_layout
9020
9021 \begin_layout Description
9022 Titlepage: For some unknown reason, Memoir uses pagination on the title
9023  page (in the standard classes, title pages are 
9024 \begin_inset Quotes eld
9025 \end_inset
9026
9027 empty
9028 \begin_inset Quotes erd
9029 \end_inset
9030
9031 ).
9032  If you want an empty title page, type 
9033 \family typewriter
9034
9035 \backslash
9036 aliaspagestyle{title}{empty}
9037 \family default
9038  in the preamble.
9039 \end_layout
9040
9041 \begin_layout Description
9042 Article: With the class option 
9043 \emph on
9044 article
9045 \emph default
9046  (to be inserted in 
9047 \family sans
9048 Document\SpecialChar menuseparator
9049 Settings\SpecialChar menuseparator
9050 Class Settings\SpecialChar menuseparator
9051 Custom
9052 \begin_inset space ~
9053 \end_inset
9054
9055 Options
9056 \family default
9057 ), you can emulate article style.
9058  That is, counters (footnotes, figures, tables etc.) will not be reset on
9059  new chapters, chapters don't start a new page (but are—in contrary to 
9060 \begin_inset Quotes eld
9061 \end_inset
9062
9063 real
9064 \begin_inset Quotes erd
9065 \end_inset
9066
9067  article classes—still allowed), parts, though, use their own page, as in
9068  book.
9069 \end_layout
9070
9071 \begin_layout Description
9072 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
9073  font commands, which have been used in the old \SpecialChar LaTeX
9074  version 2.09 (e.
9075 \begin_inset space \thinspace{}
9076 \end_inset
9077
9078 g.
9079 \begin_inset space \space{}
9080 \end_inset
9081
9082
9083 \family typewriter
9084
9085 \backslash
9086 rm
9087 \family default
9088
9089 \family typewriter
9090
9091 \backslash
9092 it
9093 \family default
9094 ).
9095  It produces an error and stops \SpecialChar LaTeX
9096  whenever such a command appears.
9097  The class option 
9098 \emph on
9099 oldfontcommands
9100 \emph default
9101  reallows the commands and spits out warnings instead (which does at least
9102  not stop \SpecialChar LaTeX
9103 ).
9104  Since a lot of packages and particularly Bib\SpecialChar TeX
9105  style files are still using
9106  those commands, we have decided to use this option by default.
9107 \end_layout
9108
9109 \begin_layout Subsubsection
9110 Extra features
9111 \end_layout
9112
9113 \begin_layout Standard
9114 We will only describe the features supported by \SpecialChar LyX
9115  (which is not much currently).
9116  Please consult the Memoir manual
9117 \begin_inset Foot
9118 status collapsed
9119
9120 \begin_layout Plain Layout
9121 Cf.
9122 \begin_inset ERT
9123 status collapsed
9124
9125 \begin_layout Plain Layout
9126
9127
9128 \backslash
9129  
9130 \end_layout
9131
9132 \end_inset
9133
9134
9135 \begin_inset Flex URL
9136 status collapsed
9137
9138 \begin_layout Plain Layout
9139
9140 CTAN:/macros/latex/memoir/memman.pdf
9141 \end_layout
9142
9143 \end_inset
9144
9145 .
9146 \end_layout
9147
9148 \end_inset
9149
9150  for details.
9151 \end_layout
9152
9153 \begin_layout Description
9154 Abstract: You may wonder why an abstract is an extra feature.
9155  Well, it is in book class.
9156  Usually books don't have abstracts.
9157  Memoir, however, has.
9158  You can use it wherever and how often you like.
9159 \end_layout
9160
9161 \begin_layout Description
9162 Chapterprecis: You may know this older typesetting style: The contents of
9163  a chapter are summarized below the title and also in the table of contents
9164  (e.
9165 \begin_inset space \thinspace{}
9166 \end_inset
9167
9168 g.
9169 \begin_inset space \space{}
9170 \end_inset
9171
9172
9173 \emph on
9174 Our hero arrives in Troia; he loses some friends; he finds others
9175 \emph default
9176 ).
9177  Chapterprecis does exactly this.
9178  It is therefore only sensible below a chapter.
9179 \end_layout
9180
9181 \begin_layout Description
9182 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
9183  The epigraph environment provides an elegant way of typesetting such a
9184  motto.
9185  The motto itself (text) and its (optional) author (source) are divided
9186  by a short line.
9187  The author (source) can be inserted via 
9188 \family sans
9189 Insert\SpecialChar menuseparator
9190 Epigraph Source
9191 \family default
9192 \emph on
9193 .
9194 \end_layout
9195
9196 \begin_layout Description
9197 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
9198  complex figurative poems).
9199  \SpecialChar LyX
9200  can only support a few of them.
9201  One is poemtitle, which is a centered title for poems, which will also
9202  be added to the table of contents (verse is the standard environment for
9203  poems.
9204  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
9205  code,
9206  because they have to be nested inside regular verse environments, which
9207  is not possible with \SpecialChar LyX
9208 ).
9209 \end_layout
9210
9211 \begin_layout Description
9212 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
9213 \end_layout
9214
9215 \begin_layout Subsection
9216
9217 \change_inserted 564990737 1671442175
9218
9219 \lang american
9220 Recipe Book
9221 \end_layout
9222
9223 \begin_layout Standard
9224
9225 \change_inserted 564990737 1671442175
9226
9227 \lang american
9228 The document class 
9229 \family typewriter
9230 RecipeBook.cls
9231 \family default
9232  uses the 
9233 \family sans
9234 book
9235 \begin_inset space \thinspace{}
9236 \end_inset
9237
9238 (KOMA-Script)
9239 \family default
9240  document class but adds two environments:
9241 \end_layout
9242
9243 \begin_layout Description
9244
9245 \change_inserted 564990737 1671442175
9246
9247 \lang american
9248 Recipe a numbered section environment at the 
9249 \family typewriter
9250 Subsubsection
9251 \family default
9252  level which generates a bold centered heading above a double horizontal
9253  rule
9254 \end_layout
9255
9256 \begin_layout Description
9257
9258 \change_inserted 564990737 1671442175
9259
9260 \lang american
9261 Ingredients a 
9262 \family typewriter
9263 Description
9264 \family default
9265  environment where 
9266 \series bold
9267 \emph on
9268 Ingredients
9269 \series default
9270 \emph default
9271  are what are being described and the environment ends with a horizontal
9272  rule.
9273 \end_layout
9274
9275 \begin_layout Standard
9276
9277 \change_inserted 564990737 1671642866
9278
9279 \family sans
9280 \lang british
9281 File\SpecialChar menuseparator
9282 Open Example\SpecialChar menuseparator
9283 Books\SpecialChar menuseparator
9284 Recipe Book
9285 \family default
9286 \lang american
9287  illustrates its use.
9288 \end_layout
9289
9290 \begin_layout Standard
9291
9292 \change_inserted 564990737 1671442175
9293
9294 \lang american
9295 It is designed for typesetting one or two recipes per page, with dimensions
9296  of 5.5
9297 \begin_inset Quotes qrd
9298 \end_inset
9299
9300  x 8.5
9301 \begin_inset Quotes qrd
9302 \end_inset
9303
9304 .
9305  The hyperlinked table of contents (ToC) and page numbers make browsing
9306  recipes convenient, and the pages can be joined together or printed 2 per
9307  page to normal letterpaper easily.
9308  The size was chosen to work in half-page 3-ring binder cover sheets, because
9309  un-laminated paper just doesn't last in the kitchen.
9310 \end_layout
9311
9312 \begin_layout Standard
9313
9314 \change_inserted 564990737 1671442175
9315
9316 \lang american
9317 The half-letter pages can be printed two per page using your printer driver,
9318  or bound together using 
9319 \family typewriter
9320 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
9321 \family default
9322  
9323 \family typewriter
9324 Recipes.pdf
9325 \family default
9326  where 
9327 \family typewriter
9328 Recipes.pdf
9329 \family default
9330  is the compiled version of your recipes.
9331 \end_layout
9332
9333 \begin_layout Section
9334
9335 \change_inserted 564990737 1671442207
9336 Curricula vitarum
9337 \end_layout
9338
9339 \begin_layout Subsection
9340
9341 \change_inserted 564990737 1671442208
9342
9343 \lang american
9344 Europass
9345 \end_layout
9346
9347 \begin_layout Standard
9348
9349 \change_inserted 564990737 1671642942
9350
9351 \lang american
9352 The document class 
9353 \family sans
9354 curriculum
9355 \begin_inset space \space{}
9356 \end_inset
9357
9358 vitae
9359 \begin_inset space \thinspace{}
9360 \end_inset
9361
9362 (Europass)
9363 \family default
9364  provides the 
9365 \family typewriter
9366 europasscv.cls
9367 \family default
9368  document class, an unofficial implementation of the ‘Europass CV’ recommended
9369  by the European Commission in 2013.
9370  
9371 \family sans
9372 \lang british
9373 File\SpecialChar menuseparator
9374 Open Example\SpecialChar menuseparator
9375 Curricula Vitae\SpecialChar menuseparator
9376 Europass CV (2013)
9377 \family default
9378 \lang american
9379  offers guidance on its use.
9380  Its documentation is available from 
9381 \begin_inset CommandInset href
9382 LatexCommand href
9383 name "CTAN"
9384 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
9385 literal "false"
9386
9387 \end_inset
9388
9389 .
9390 \end_layout
9391
9392 \begin_layout Subsection
9393
9394 \change_inserted 564990737 1671442208
9395
9396 \lang american
9397 European
9398 \end_layout
9399
9400 \begin_layout Standard
9401
9402 \change_inserted 564990737 1671642984
9403
9404 \lang american
9405 The document class 
9406 \family sans
9407 curriculum
9408 \begin_inset space \space{}
9409 \end_inset
9410
9411 vitae
9412 \begin_inset space \thinspace{}
9413 \end_inset
9414
9415 (Europe)
9416 \family default
9417  provides the 
9418 \family typewriter
9419 europecv.cls
9420 \family default
9421  document class, an unofficial implementation of the “Europass CV” recommended
9422  by the European Commission in 2002.
9423  
9424 \family sans
9425 \lang british
9426 File\SpecialChar menuseparator
9427 Open Example\SpecialChar menuseparator
9428 Curricula Vitae\SpecialChar menuseparator
9429 Europe CV
9430 \family default
9431 \lang american
9432  offers guidance on its use.
9433  Its documentation is available from 
9434 \begin_inset CommandInset href
9435 LatexCommand href
9436 name "CTAN"
9437 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
9438 literal "false"
9439
9440 \end_inset
9441
9442 .
9443 \end_layout
9444
9445 \begin_layout Subsection
9446
9447 \change_inserted 564990737 1671442208
9448
9449 \lang american
9450 Modern
9451 \end_layout
9452
9453 \begin_layout Standard
9454
9455 \change_inserted 564990737 1671643003
9456
9457 \lang american
9458 The document class 
9459 \family sans
9460 curriculum
9461 \begin_inset space \space{}
9462 \end_inset
9463
9464 vitae
9465 \begin_inset space \thinspace{}
9466 \end_inset
9467
9468 (modern)
9469 \family default
9470  provides the 
9471 \family typewriter
9472 moderncv.cls
9473 \family default
9474  document class.
9475  This allows the creation of customizable CVs.
9476  
9477 \family sans
9478 \lang british
9479 File\SpecialChar menuseparator
9480 Open Example\SpecialChar menuseparator
9481 Curricula Vitae\SpecialChar menuseparator
9482 Modern CV
9483 \family default
9484 \lang american
9485  offers guidance on its use.
9486  Its documentation is available from 
9487 \begin_inset CommandInset href
9488 LatexCommand href
9489 name "CTAN"
9490 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
9491 literal "false"
9492
9493 \end_inset
9494
9495 .
9496 \end_layout
9497
9498 \begin_layout Subsection
9499
9500 \change_inserted 564990737 1671442208
9501
9502 \lang american
9503 Simple
9504 \end_layout
9505
9506 \begin_layout Standard
9507
9508 \change_inserted 564990737 1671643024
9509
9510 \lang american
9511 The document class 
9512 \family sans
9513 curriculum
9514 \begin_inset space \space{}
9515 \end_inset
9516
9517 vitae
9518 \begin_inset space \thinspace{}
9519 \end_inset
9520
9521 (simple)
9522 \family default
9523  provides the 
9524 \family typewriter
9525 simplecv.cls
9526 \family default
9527  document class, originally developed for use with \SpecialChar LyX
9528 .
9529  
9530 \family sans
9531 \lang british
9532 File\SpecialChar menuseparator
9533 Open Example\SpecialChar menuseparator
9534 Curricula Vitae\SpecialChar menuseparator
9535 Simple CV
9536 \family default
9537 \lang american
9538  offers guidance on its use.
9539  Its documentation is available from 
9540 \begin_inset CommandInset href
9541 LatexCommand href
9542 name "CTAN"
9543 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
9544 literal "false"
9545
9546 \end_inset
9547
9548
9549 \end_layout
9550
9551 \begin_layout Section
9552
9553 \change_inserted 564990737 1672652454
9554 Letters
9555 \end_layout
9556
9557 \begin_layout Standard
9558
9559 \change_inserted 564990737 1672652455
9560
9561 \lang american
9562 See also the 
9563 \family typewriter
9564 letter
9565 \begin_inset space \space{}
9566 \end_inset
9567
9568 (KOMA-Script v.2)
9569 \family default
9570  (section
9571 \begin_inset space ~
9572 \end_inset
9573
9574
9575 \begin_inset CommandInset ref
9576 LatexCommand ref
9577 reference "subsec:The-new-letter"
9578
9579 \end_inset
9580
9581 ) and 
9582 \family typewriter
9583 letter
9584 \begin_inset space \space{}
9585 \end_inset
9586
9587 (with extra font sizes)
9588 \family default
9589  (section
9590 \begin_inset space ~
9591 \end_inset
9592
9593
9594 \begin_inset CommandInset ref
9595 LatexCommand ref
9596 reference "subsec:Extra-font-sizes"
9597
9598 \end_inset
9599
9600 ) document classes .
9601 \end_layout
9602
9603 \begin_layout Subsection
9604
9605 \change_inserted 564990737 1671041970
9606
9607 \lang american
9608 Din-Brief
9609 \end_layout
9610
9611 \begin_layout Standard
9612
9613 \change_inserted 564990737 1671617528
9614
9615 \lang american
9616 The document class 
9617 \family sans
9618 Din-Brief
9619 \family default
9620  provides the 
9621 \family typewriter
9622 dinbrief.cls
9623 \family default
9624  document class for writing letters according to the 
9625 \emph on
9626 Deutsches Institut für Normung
9627 \emph default
9628  conventions.
9629  The file in the menu 
9630 \family sans
9631 \bar under
9632 F
9633 \bar default
9634 ile\SpecialChar menuseparator
9635 New
9636 \begin_inset space ~
9637 \end_inset
9638
9639 fro
9640 \bar under
9641 m
9642 \bar default
9643
9644 \begin_inset space ~
9645 \end_inset
9646
9647 Template\SpecialChar menuseparator
9648 Letters\SpecialChar menuseparator
9649 DIN-Brief
9650 \family default
9651  offers guidance on its use.
9652  The documentation is available from 
9653 \begin_inset CommandInset href
9654 LatexCommand href
9655 name "CTAN"
9656 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
9657 literal "false"
9658
9659 \end_inset
9660
9661 .
9662 \end_layout
9663
9664 \begin_layout Subsection
9665
9666 \change_inserted 564990737 1672652499
9667
9668 \lang american
9669 frletter
9670 \end_layout
9671
9672 \begin_layout Standard
9673
9674 \change_inserted 564990737 1672652499
9675
9676 \lang american
9677 The document class 
9678 \family sans
9679 French letter
9680 \begin_inset space \space{}
9681 \end_inset
9682
9683 (frletter)
9684 \family default
9685  provides the 
9686 \family typewriter
9687 frletter.cls
9688 \family default
9689  document class for writing letters according to French conventions.
9690  The file in the menu 
9691 \family sans
9692 \bar under
9693 F
9694 \bar default
9695 ile\SpecialChar menuseparator
9696 New
9697 \begin_inset space ~
9698 \end_inset
9699
9700 fro
9701 \bar under
9702 m
9703 \bar default
9704
9705 \begin_inset space ~
9706 \end_inset
9707
9708 Template\SpecialChar menuseparator
9709 Letters\SpecialChar menuseparator
9710 French letter
9711 \begin_inset space \space{}
9712 \end_inset
9713
9714 (frletter)
9715 \family default
9716  offers guidance on its use.
9717 \end_layout
9718
9719 \begin_layout Subsection
9720
9721 \change_inserted 564990737 1672652499
9722
9723 \lang american
9724 G-Brief
9725 \end_layout
9726
9727 \begin_layout Standard
9728
9729 \change_inserted 564990737 1672652499
9730
9731 \lang american
9732 The document class 
9733 \family sans
9734 G-Brief (V.
9735 \begin_inset space \thinspace{}
9736 \end_inset
9737
9738 2)
9739 \family default
9740  provides the newer 
9741 \family typewriter
9742 g-brief2.cls
9743 \family default
9744  document class for writing letters in German.
9745  The file in the menu 
9746 \family sans
9747 \bar under
9748 F
9749 \bar default
9750 ile\SpecialChar menuseparator
9751 New
9752 \begin_inset space ~
9753 \end_inset
9754
9755 fro
9756 \bar under
9757 m
9758 \bar default
9759
9760 \begin_inset space ~
9761 \end_inset
9762
9763 Template\SpecialChar menuseparator
9764 Letters\SpecialChar menuseparator
9765 G-Brief (V.
9766 \begin_inset space \thinspace{}
9767 \end_inset
9768
9769 2)
9770 \family default
9771  offers guidance on its use.
9772  The documentation is available from 
9773 \begin_inset CommandInset href
9774 LatexCommand href
9775 name "CTAN"
9776 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
9777 literal "false"
9778
9779 \end_inset
9780
9781 .
9782 \end_layout
9783
9784 \begin_layout Subsection
9785
9786 \change_inserted 564990737 1671458835
9787
9788 \lang american
9789 letter
9790 \end_layout
9791
9792 \begin_layout Standard
9793
9794 \change_inserted 564990737 1671617591
9795
9796 \lang american
9797 The document class 
9798 \family sans
9799 letter
9800 \family default
9801  provides the 
9802 \family sans
9803 letter.cls
9804 \family default
9805  document class for English letters and to create mailing labels.
9806  The file in the menu 
9807 \family sans
9808 \bar under
9809 F
9810 \bar default
9811 ile\SpecialChar menuseparator
9812 New
9813 \begin_inset space ~
9814 \end_inset
9815
9816 fro
9817 \bar under
9818 m
9819 \bar default
9820
9821 \begin_inset space ~
9822 \end_inset
9823
9824 Template\SpecialChar menuseparator
9825 Letters\SpecialChar menuseparator
9826 Letter (Standard Class)
9827 \family default
9828  offers guidance on its use.
9829 \end_layout
9830
9831 \begin_layout Subsection
9832
9833 \change_inserted 564990737 1672652527
9834
9835 \lang american
9836 lettre
9837 \end_layout
9838
9839 \begin_layout Standard
9840
9841 \change_inserted 564990737 1672652527
9842
9843 \lang american
9844 The document class 
9845 \family sans
9846 French letter
9847 \begin_inset space \space{}
9848 \end_inset
9849
9850 (lettre)
9851 \family default
9852  provides the 
9853 \family typewriter
9854 lettre.cls
9855 \family default
9856  document class for writing letters, faxes and envelopes in French.
9857  The file in the menu 
9858 \family sans
9859 \bar under
9860 F
9861 \bar default
9862 ile\SpecialChar menuseparator
9863 New
9864 \begin_inset space ~
9865 \end_inset
9866
9867 fro
9868 \bar under
9869 m
9870 \bar default
9871
9872 \begin_inset space ~
9873 \end_inset
9874
9875 Template\SpecialChar menuseparator
9876 Letters\SpecialChar menuseparator
9877 French letter
9878 \begin_inset space \space{}
9879 \end_inset
9880
9881 (lettre)
9882 \family default
9883  offers guidance on its use.
9884  The documentation is available from 
9885 \begin_inset CommandInset href
9886 LatexCommand href
9887 name "CTAN"
9888 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
9889 literal "false"
9890
9891 \end_inset
9892
9893 .
9894 \end_layout
9895
9896 \begin_layout Section
9897
9898 \change_inserted 564990737 1670439660
9899 Presentations
9900 \end_layout
9901
9902 \begin_layout Subsection
9903
9904 \change_inserted 564990737 1671458922
9905
9906 \lang american
9907 Beamer
9908 \end_layout
9909
9910 \begin_layout Standard
9911
9912 \change_inserted 564990737 1671617655
9913
9914 \lang american
9915 The document class 
9916 \family sans
9917 presentation
9918 \begin_inset space \thinspace{}
9919 \end_inset
9920
9921 (beamer)
9922 \family default
9923  uses the 
9924 \family typewriter
9925 beamer.cls
9926 \family default
9927  document class for creating presentations.
9928  The file in the menu 
9929 \family sans
9930 \bar under
9931 F
9932 \bar default
9933 ile\SpecialChar menuseparator
9934 New
9935 \begin_inset space ~
9936 \end_inset
9937
9938 fro
9939 \bar under
9940 m
9941 \bar default
9942
9943 \begin_inset space ~
9944 \end_inset
9945
9946 Template\SpecialChar menuseparator
9947 Presentations\SpecialChar menuseparator
9948 Beamer
9949 \family default
9950  offers guidance on its use.
9951  The documentation is available from 
9952 \begin_inset CommandInset href
9953 LatexCommand href
9954 name "CTAN"
9955 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
9956 literal "false"
9957
9958 \end_inset
9959
9960 .
9961 \end_layout
9962
9963 \begin_layout Subsection
9964 Foils [aka 
9965 \family sans
9966 Foil\SpecialChar TeX
9967
9968 \family default
9969 ]
9970 \begin_inset CommandInset label
9971 LatexCommand label
9972 name "sec:foiltex"
9973
9974 \end_inset
9975
9976
9977 \end_layout
9978
9979 \begin_layout Standard
9980
9981 \change_inserted 564990737 1672743383
9982
9983 \lang american
9984 Original by 
9985 \noun on
9986 Allan Rae
9987 \noun default
9988 ; updated by the \SpecialChar LyX
9989  Team
9990 \end_layout
9991
9992 \begin_layout Subsubsection
9993
9994 \change_inserted 564990737 1672743383
9995
9996 \lang american
9997 Introduction
9998 \end_layout
9999
10000 \begin_layout Standard
10001
10002 \change_inserted 564990737 1672743396
10003
10004 \lang american
10005 The document class 
10006 \family sans
10007 presentation
10008 \begin_inset space \thinspace{}
10009 \end_inset
10010
10011 (Foil\SpecialChar TeX
10012 )
10013 \family default
10014  uses the 
10015 \family typewriter
10016 foils.cls
10017 \family default
10018  document class to make slides for overhead projectors.
10019  There are two document classes that can do this: the 
10020 \family sans
10021 presentations
10022 \begin_inset space \thinspace{}
10023 \end_inset
10024
10025 (slides)
10026 \family default
10027  document class (section
10028 \begin_inset space ~
10029 \end_inset
10030
10031
10032 \begin_inset CommandInset ref
10033 LatexCommand ref
10034 reference "sec:slitex"
10035 plural "false"
10036 caps "false"
10037 noprefix "false"
10038
10039 \end_inset
10040
10041 ) and the 
10042 \family sans
10043 Foil\SpecialChar TeX
10044
10045 \family default
10046  slides class.
10047  As of 2023 the former has continued to be maintained whereas 
10048 \family sans
10049 Foil\SpecialChar TeX
10050
10051 \family default
10052  has not been maintained since 2008.
10053  This section documents the latter.
10054  If your machine doesn’t have the 
10055 \family sans
10056 presentation
10057 \begin_inset space \thinspace{}
10058 \end_inset
10059
10060 (Foil\SpecialChar TeX
10061 )
10062 \family default
10063  document class installed, you’ll probably have to use the 
10064 \family sans
10065 presentations
10066 \begin_inset space \thinspace{}
10067 \end_inset
10068
10069 (slides)
10070 \family default
10071  document class.
10072  If you want to install the 
10073 \family typewriter
10074 foils.cls
10075 \family default
10076  document class, it is available from 
10077 \begin_inset CommandInset href
10078 LatexCommand href
10079 name "CTAN"
10080 target "https://www.ctan.org/pkg/foiltex"
10081 literal "false"
10082
10083 \end_inset
10084
10085 .
10086  You should also read the 
10087 \emph on
10088 Installing New Document Classes
10089 \emph default
10090  chapter of the 
10091 \emph on
10092 Customization
10093 \emph default
10094  manual.
10095 \change_deleted 564990737 1672743436
10096
10097 \lang english
10098 by 
10099 \noun on
10100 Allan Rae
10101 \end_layout
10102
10103 \begin_layout Standard
10104
10105 \change_deleted 564990737 1672743383
10106 Introduction
10107 \end_layout
10108
10109 \begin_layout Standard
10110
10111 \change_deleted 564990737 1672743383
10112 This section describes how to use \SpecialChar LyX
10113  to make slides for overhead projectors.
10114  There are two document classes that can do this: the default slides class
10115  and the 
10116 \family sans
10117 Foil\SpecialChar TeX
10118
10119 \family default
10120  slides class.
10121  This section documents the latter.
10122 \end_layout
10123
10124 \begin_layout Standard
10125
10126 \change_deleted 564990737 1672743383
10127 I'm going to say this again, nice and clear, so that there's no misunderstanding
10128 :
10129 \end_layout
10130
10131 \begin_layout Standard
10132
10133 \change_deleted 564990737 1672743383
10134 \begin_inset VSpace bigskip
10135 \end_inset
10136
10137
10138 \end_layout
10139
10140 \begin_layout Standard
10141 \align center
10142
10143 \change_deleted 564990737 1672743383
10144
10145 \size large
10146 This section documents the class 
10147 \begin_inset Quotes eld
10148 \end_inset
10149
10150
10151 \family sans
10152 FoilTeX
10153 \family default
10154
10155 \begin_inset Quotes erd
10156 \end_inset
10157
10158  
10159 \emph on
10160 only.
10161 \end_layout
10162
10163 \begin_layout Standard
10164
10165 \change_deleted 564990737 1672743383
10166 \begin_inset VSpace bigskip
10167 \end_inset
10168
10169
10170 \end_layout
10171
10172 \begin_layout Standard
10173
10174 \change_deleted 564990737 1672743383
10175 If you're looking for the documentation for 
10176 \begin_inset Quotes eld
10177 \end_inset
10178
10179
10180 \family sans
10181 slides (default)
10182 \family default
10183
10184 \begin_inset Quotes erd
10185 \end_inset
10186
10187 , check out section
10188 \begin_inset space ~
10189 \end_inset
10190
10191
10192 \begin_inset CommandInset ref
10193 LatexCommand ref
10194 reference "sec:slitex"
10195
10196 \end_inset
10197
10198 .
10199  If your machine doesn't have the 
10200 \family sans
10201 foils
10202 \family default
10203  class 
10204 \family sans
10205 FoilTeX
10206 \family default
10207  installed, you'll probably have to use the default 
10208 \family sans
10209 slides
10210 \family default
10211  class, which isn't quite as good as 
10212 \family sans
10213 foils.
10214 \end_layout
10215
10216 \begin_layout Standard
10217
10218 \change_deleted 564990737 1672743383
10219 The 
10220 \family sans
10221 foils
10222 \family default
10223  class is designed for use with version
10224 \begin_inset space ~
10225 \end_inset
10226
10227 2.1 of the 
10228 \family sans
10229 foils.cls
10230 \family default
10231  \SpecialChar LaTeX
10232  class file which is now an integral part of \SpecialChar LaTeX2e
10233 .
10234 \change_unchanged
10235
10236 \end_layout
10237
10238 \begin_layout Subsubsection
10239 Getting Started
10240 \end_layout
10241
10242 \begin_layout Standard
10243 Obviously, to use this document class, you need to select 
10244 \family sans
10245 FoilTeX
10246 \family default
10247  from the 
10248 \family sans
10249 Class
10250 \family default
10251  entry in the 
10252 \family sans
10253 Document
10254 \begin_inset space ~
10255 \end_inset
10256
10257 Layout
10258 \family default
10259  dialog.
10260  There are some settings in the 
10261 \family sans
10262 Document
10263 \begin_inset space ~
10264 \end_inset
10265
10266 Layout
10267 \family default
10268  dialog that you should know about that are specific to this class:
10269 \end_layout
10270
10271 \begin_layout Itemize
10272 Don't change the options 
10273 \family sans
10274 Sides
10275 \family default
10276  and 
10277 \family sans
10278 Columns
10279 \family default
10280  on the 
10281 \family sans
10282 Document
10283 \begin_inset space ~
10284 \end_inset
10285
10286 Layout
10287 \family default
10288  dialog.
10289  They're ignored by the 
10290 \family sans
10291 foils
10292 \family default
10293  class.
10294 \end_layout
10295
10296 \begin_layout Itemize
10297 The default font size is 20
10298 \begin_inset space \thinspace{}
10299 \end_inset
10300
10301 pt with the other options being 17
10302 \begin_inset space \thinspace{}
10303 \end_inset
10304
10305 pt, 25
10306 \begin_inset space \thinspace{}
10307 \end_inset
10308
10309 pt and 30
10310 \begin_inset space \thinspace{}
10311 \end_inset
10312
10313 pt.
10314 \end_layout
10315
10316 \begin_layout Itemize
10317 The default font is 
10318 \family sans
10319 sans
10320 \family default
10321  
10322 \family sans
10323 serif
10324 \family default
10325  but all math equations are still typeset in the usual roman font.
10326 \end_layout
10327
10328 \begin_layout Itemize
10329
10330 \family sans
10331 Foil\SpecialChar TeX
10332
10333 \family default
10334  supports A4 and Letter paper sizes as well as a special size for working
10335  with 35
10336 \begin_inset space \thinspace{}
10337 \end_inset
10338
10339 mm slides.
10340  It doesn't support A5, B5, legal or executive paper sizes.
10341 \end_layout
10342
10343 \begin_layout Itemize
10344 Don't bother changing the 
10345 \family sans
10346 Float Placement
10347 \family default
10348  settings because they are ignored anyway.
10349  All floats appear where they are defined in the text.
10350 \end_layout
10351
10352 \begin_layout Itemize
10353 The 
10354 \family sans
10355 Pagestyle
10356 \family default
10357  setting behaves a bit differently for this class.
10358  
10359 \family sans
10360 Foil\SpecialChar TeX
10361
10362 \family default
10363  provides extensive footer and header capabilities including a user-defined
10364  logo.
10365  See section
10366 \begin_inset space ~
10367 \end_inset
10368
10369
10370 \begin_inset CommandInset ref
10371 LatexCommand ref
10372 reference "sec:foilfoot"
10373
10374 \end_inset
10375
10376  for more details.
10377  The title page is treated differently to all other pages in the document
10378  and is 
10379 \emph on
10380 always
10381 \emph default
10382  unnumbered and 
10383 \emph on
10384 always
10385 \emph default
10386  has the logo centered at the bottom of the page (if one is defined).
10387  The possible page style choices and what they do are as follows:
10388 \end_layout
10389
10390 \begin_deeper
10391 \begin_layout Labeling
10392 \labelwidthstring MMMMMMM
10393
10394 \family sans
10395 \series bold
10396 empty
10397 \family default
10398 \series default
10399  The final output contains no page numbers, or other headers or footers
10400  (except footnotes of course).
10401  
10402 \end_layout
10403
10404 \begin_layout Labeling
10405 \labelwidthstring MMMMMMM
10406
10407 \family sans
10408 \series bold
10409 plain
10410 \family default
10411 \series default
10412  The final output contains page numbers centered at the bottom of the page.
10413  No other headings or footers (other than footnotes).
10414 \end_layout
10415
10416 \begin_layout Labeling
10417 \labelwidthstring MMMMMMM
10418
10419 \series bold
10420 foilheadings
10421 \series default
10422  Page numbers in lower right corner.
10423  Additional headers and footers are also shown.
10424  This is also the default.
10425 \end_layout
10426
10427 \begin_layout Labeling
10428 \labelwidthstring MMMMMMM
10429
10430 \series bold
10431 fancy
10432 \series default
10433  Gives you access to the 
10434 \family sans
10435 fancyheadings
10436 \family default
10437  package although its use with 
10438 \family sans
10439 Foil\SpecialChar TeX
10440
10441 \family default
10442  is discouraged by the writer of the 
10443 \family sans
10444 Foil\SpecialChar TeX
10445
10446 \family default
10447  package because of some potential page layout clashes.
10448 \end_layout
10449
10450 \end_deeper
10451 \begin_layout Paragraph
10452 Extra Options
10453 \end_layout
10454
10455 \begin_layout Standard
10456 The following options may be used in the extra class options in the 
10457 \family sans
10458 Document\SpecialChar menuseparator
10459 Settings
10460 \family default
10461  dialog.
10462 \end_layout
10463
10464 \begin_layout Labeling
10465 \labelwidthstring MMMMMMx
10466
10467 \series bold
10468 35mmSlide
10469 \series default
10470  This sets up the page layout for 7.33
10471 \begin_inset space \thinspace{}
10472 \end_inset
10473
10474 in by 11
10475 \begin_inset space \thinspace{}
10476 \end_inset
10477
10478 in paper, which is about the same aspect ratio as a 35
10479 \begin_inset space \thinspace{}
10480 \end_inset
10481
10482 mm slide, making it a bit easier to work with this medium.
10483 \end_layout
10484
10485 \begin_layout Labeling
10486 \labelwidthstring MMMMMMx
10487
10488 \series bold
10489 headrule
10490 \series default
10491  Places a rule across the page below the header on every page except the
10492  title page.
10493 \end_layout
10494
10495 \begin_layout Labeling
10496 \labelwidthstring MMMMMMx
10497
10498 \series bold
10499 footrule
10500 \series default
10501  Places a rule across the page above the footer on every page except the
10502  title page.
10503 \end_layout
10504
10505 \begin_layout Labeling
10506 \labelwidthstring MMMMMMx
10507
10508 \series bold
10509 dvips
10510 \series default
10511  This is automatically set each time you create a new 
10512 \family sans
10513 foils
10514 \family default
10515  document.
10516  This option tells 
10517 \family sans
10518 Foil\SpecialChar TeX
10519
10520 \family default
10521  to use the dvips driver to rotate those pages that are set as landscape
10522  foils.
10523 \end_layout
10524
10525 \begin_layout Labeling
10526 \labelwidthstring MMMMMMx
10527
10528 \series bold
10529 landscape
10530 \series default
10531  Simply changes the page dimensions to those of a landscape page but doesn't
10532  do any rotation.
10533  Thus if you use this option you need to use an external program to rotate
10534  each page or feed your paper through your printer as landscape.
10535  Note that this option effectively reverses the roles of the 
10536 \family sans
10537 Foilhead
10538 \family default
10539  and 
10540 \family sans
10541 Rotatefoilhead
10542 \family default
10543  environments (don't worry these are described in the next section).
10544 \end_layout
10545
10546 \begin_layout Labeling
10547 \labelwidthstring MMMMMMx
10548
10549 \series bold
10550 leqno
10551 \series default
10552  Equation numbers on the left.
10553 \end_layout
10554
10555 \begin_layout Labeling
10556 \labelwidthstring MMMMMMx
10557
10558 \series bold
10559 fleqn
10560 \series default
10561  Flush-left equations.
10562 \end_layout
10563
10564 \begin_layout Subsubsection
10565 Supported Environments
10566 \end_layout
10567
10568 \begin_layout Standard
10569 Most of the environments commonly supported in other classes are also supported
10570  by the 
10571 \family sans
10572 foils
10573 \family default
10574  class.
10575  There are several additional environments provided by 
10576 \family sans
10577 Foil\SpecialChar TeX
10578
10579 \family default
10580  as well as a couple added by \SpecialChar LyX
10581 .
10582  The following environments are shared with other classes:
10583 \end_layout
10584
10585 \begin_layout Standard
10586 \begin_inset Flex Multiple Columns
10587 status open
10588
10589 \begin_layout Itemize
10590
10591 \family sans
10592 Standard
10593 \end_layout
10594
10595 \begin_layout Itemize
10596
10597 \family sans
10598 Itemize
10599 \end_layout
10600
10601 \begin_layout Itemize
10602
10603 \family sans
10604 Enumerate
10605 \end_layout
10606
10607 \begin_layout Itemize
10608
10609 \family sans
10610 Description
10611 \end_layout
10612
10613 \begin_layout Itemize
10614
10615 \family sans
10616 List
10617 \end_layout
10618
10619 \begin_layout Itemize
10620
10621 \family sans
10622 \SpecialChar LyX
10623 -Code
10624 \end_layout
10625
10626 \begin_layout Itemize
10627
10628 \family sans
10629 Verse
10630 \end_layout
10631
10632 \begin_layout Itemize
10633
10634 \family sans
10635 Quote
10636 \end_layout
10637
10638 \begin_layout Itemize
10639
10640 \family sans
10641 Quotation
10642 \end_layout
10643
10644 \begin_layout Itemize
10645
10646 \family sans
10647 TitleAuthor
10648 \end_layout
10649
10650 \begin_layout Itemize
10651
10652 \family sans
10653 Date
10654 \end_layout
10655
10656 \begin_layout Itemize
10657
10658 \family sans
10659 Abstract
10660 \end_layout
10661
10662 \begin_layout Itemize
10663
10664 \family sans
10665 Bibliography
10666 \end_layout
10667
10668 \begin_layout Itemize
10669
10670 \family sans
10671 Address
10672 \end_layout
10673
10674 \begin_layout Itemize
10675
10676 \family sans
10677 RightAddress
10678 \end_layout
10679
10680 \end_inset
10681
10682
10683 \end_layout
10684
10685 \begin_layout Standard
10686 That is, all the major environments apart from the sectioning environments.
10687  Since foils are essentially self-contained sections, with a title and body,
10688  
10689 \family sans
10690 Foil\SpecialChar TeX
10691
10692 \family default
10693  provides specific commands for starting new foils and these are:
10694 \end_layout
10695
10696 \begin_layout Itemize
10697
10698 \family sans
10699 Foilhead
10700 \end_layout
10701
10702 \begin_layout Itemize
10703
10704 \family sans
10705 Rotatefoilhead
10706 \end_layout
10707
10708 \begin_layout Standard
10709 \SpecialChar LyX
10710  also provides slightly modified versions of these two environments called:
10711 \end_layout
10712
10713 \begin_layout Itemize
10714
10715 \family sans
10716 ShortFoilhead
10717 \end_layout
10718
10719 \begin_layout Itemize
10720
10721 \family sans
10722 ShortRotatefoilhead
10723 \end_layout
10724
10725 \begin_layout Standard
10726 and the differences will be explained in the next section.
10727 \end_layout
10728
10729 \begin_layout Standard
10730 Since foils are often used in presenting ideas or new theorems and such
10731  
10732 \family sans
10733 Foil\SpecialChar TeX
10734
10735 \family default
10736  also provides a comprehensive box of goodies for presenting them:
10737 \end_layout
10738
10739 \begin_layout Standard
10740 \begin_inset Flex Multiple Columns
10741 status open
10742
10743 \begin_layout Itemize
10744
10745 \family sans
10746 Theorem
10747 \end_layout
10748
10749 \begin_layout Itemize
10750
10751 \family sans
10752 Lemma
10753 \end_layout
10754
10755 \begin_layout Itemize
10756
10757 \family sans
10758 Corollary
10759 \end_layout
10760
10761 \begin_layout Itemize
10762
10763 \family sans
10764 Proposition
10765 \end_layout
10766
10767 \begin_layout Itemize
10768
10769 \family sans
10770 Definition
10771 \end_layout
10772
10773 \begin_layout Itemize
10774
10775 \family sans
10776 Proof
10777 \end_layout
10778
10779 \begin_layout Itemize
10780
10781 \family sans
10782 Theorem*
10783 \end_layout
10784
10785 \begin_layout Itemize
10786
10787 \family sans
10788 Lemma*
10789 \end_layout
10790
10791 \begin_layout Itemize
10792
10793 \family sans
10794 Corollary*
10795 \end_layout
10796
10797 \begin_layout Itemize
10798
10799 \family sans
10800 Proposition*
10801 \end_layout
10802
10803 \begin_layout Itemize
10804
10805 \family sans
10806 Definition*
10807 \end_layout
10808
10809 \end_inset
10810
10811
10812 \end_layout
10813
10814 \begin_layout Standard
10815 The starred versions are unnumbered while the unstarred versions are numbered.
10816  There are also two list environments added by \SpecialChar LyX
10817  and these are:
10818 \end_layout
10819
10820 \begin_layout Itemize
10821
10822 \family sans
10823 TickList
10824 \end_layout
10825
10826 \begin_layout Itemize
10827
10828 \family sans
10829 CrossList
10830 \end_layout
10831
10832 \begin_layout Standard
10833
10834 \family sans
10835 Foil\SpecialChar TeX
10836
10837 \family default
10838  provides some powerful header and footer capabilities that are best set
10839  in the preamble although they may be set at any point in a document.
10840  If you want to change these settings in your document the best place to
10841  do so is at the very top of a foil, i.
10842 \begin_inset space \thinspace{}
10843 \end_inset
10844
10845 e.
10846 \emph on
10847
10848 \begin_inset space \space{}
10849 \end_inset
10850
10851
10852 \emph default
10853 straight after the foilhead.
10854 \end_layout
10855
10856 \begin_layout Standard
10857 For this purpose, the following command styles are provided [
10858 \shape smallcaps
10859 Martin Vermeer
10860 \shape default
10861 ]:
10862 \end_layout
10863
10864 \begin_layout Standard
10865 \begin_inset Flex Multiple Columns
10866 status open
10867
10868 \begin_layout Itemize
10869
10870 \family sans
10871 My
10872 \begin_inset space ~
10873 \end_inset
10874
10875 Logo
10876 \end_layout
10877
10878 \begin_layout Itemize
10879
10880 \family sans
10881 Restriction
10882 \end_layout
10883
10884 \begin_layout Itemize
10885
10886 \family sans
10887 Right
10888 \begin_inset space ~
10889 \end_inset
10890
10891 Footer
10892 \end_layout
10893
10894 \begin_layout Itemize
10895
10896 \family sans
10897 Right
10898 \begin_inset space ~
10899 \end_inset
10900
10901 Header
10902 \end_layout
10903
10904 \begin_layout Itemize
10905
10906 \family sans
10907 Left
10908 \begin_inset space ~
10909 \end_inset
10910
10911 Header
10912 \end_layout
10913
10914 \begin_deeper
10915 \begin_layout Plain Layout
10916 \begin_inset space ~
10917 \end_inset
10918
10919
10920 \end_layout
10921
10922 \end_deeper
10923 \end_inset
10924
10925
10926 \end_layout
10927
10928 \begin_layout Standard
10929 There are also a few commands provided by 
10930 \family sans
10931 Foil\SpecialChar TeX
10932
10933 \family default
10934  that aren't directly supported by \SpecialChar LyX
10935  but I'll tell you what they do and how
10936  to use them in section
10937 \begin_inset space ~
10938 \end_inset
10939
10940
10941 \begin_inset CommandInset ref
10942 LatexCommand ref
10943 reference "sec:unsuppfoils"
10944
10945 \end_inset
10946
10947 .
10948 \end_layout
10949
10950 \begin_layout Subsubsection
10951 Building a Set of Foils
10952 \end_layout
10953
10954 \begin_layout Standard
10955 This section will give a simple introduction to using the different environments
10956  to build a set of foils.
10957  If you want to see an example set of foils, take a look at 
10958 \change_deleted 564990737 1671643085
10959 the 
10960 \family typewriter
10961 Foils.lyx
10962 \family default
10963  file you find in \SpecialChar LyX
10964 's 
10965 \family typewriter
10966 examples
10967 \family default
10968  folder
10969 \change_inserted 564990737 1671643099
10970
10971 \family sans
10972 \lang british
10973 File\SpecialChar menuseparator
10974 Open Example
10975 \lang english
10976 \SpecialChar menuseparator
10977 Presentations\SpecialChar menuseparator
10978 Foils
10979 \change_unchanged
10980
10981 \family default
10982 .
10983 \end_layout
10984
10985 \begin_layout Paragraph
10986 Give It a Title Page
10987 \end_layout
10988
10989 \begin_layout Standard
10990 Unlike other classes that provide 
10991 \family sans
10992 Title
10993 \family default
10994
10995 \family sans
10996 Author
10997 \family default
10998
10999 \family sans
11000 Date
11001 \family default
11002  and 
11003 \family sans
11004 Abstract
11005 \family default
11006  environments, 
11007 \family sans
11008 foils
11009 \family default
11010  creates the title on a page of its own.
11011  If you leave out the 
11012 \family sans
11013 Date
11014 \family default
11015  environment \SpecialChar LaTeX
11016  will substitute the current date (every time you regenerate
11017  the output).
11018 \end_layout
11019
11020 \begin_layout Paragraph
11021 Start a New Foil
11022 \end_layout
11023
11024 \begin_layout Standard
11025 As I mentioned earlier, there are four ways of starting a new foil.
11026  For portrait foils you should use 
11027 \family sans
11028 Foilhead
11029 \family default
11030  or 
11031 \family sans
11032 ShortFoilhead.
11033
11034 \family default
11035  The difference between these two environments is the amount of space between
11036  the title of the foil (the foilhead) and the body of the foil.
11037 \end_layout
11038
11039 \begin_layout Standard
11040 Landscape foils are generated using the 
11041 \family sans
11042 Rotatefoilhead
11043 \family default
11044  and 
11045 \family sans
11046 ShortRotatefoilhead
11047 \family default
11048  environments.
11049  Again the only difference is the spacing between foilhead and body.
11050  Both of the short versions have 0.5
11051 \begin_inset space ~
11052 \end_inset
11053
11054 inches less separation between the foilhead and the body.
11055  
11056 \end_layout
11057
11058 \begin_layout Standard
11059 One problem with the support for landscape foils is the requirement that
11060  you have to use the 
11061 \family typewriter
11062 dvips
11063 \family default
11064  driver to generate the PostScript output otherwise the foils won't be rotated.
11065  It is possible to get landscape foils even if you haven't got the 
11066 \family typewriter
11067 dvips
11068 \family default
11069  driver provided you can feed your foils sideways through your printer ;-)
11070 \end_layout
11071
11072 \begin_layout Paragraph
11073 Theorems, Lemmas, Proofs and more
11074 \end_layout
11075
11076 \begin_layout Standard
11077 You can't have two of the same type of these environments directly following
11078  each other.
11079  If you use a normal paragraph break, , you will just be extending the previous
11080  environment as if you had merged the two environments together.
11081  Rather than that, you need to insert a so-called separator.
11082  Please refer to the section entitled 
11083 \emph on
11084 Separate Nestings
11085 \emph default
11086  in the 
11087 \emph on
11088 User's Guide
11089 \emph default
11090 .
11091 \end_layout
11092
11093 \begin_layout Paragraph
11094 Lists
11095 \end_layout
11096
11097 \begin_layout Standard
11098 You get all the commonly supported list styles found in other classes as
11099  well as two new ones.
11100  I'll only describe the new ones here.
11101  If you want to find out more about the other list environments check out
11102  the 
11103 \emph on
11104 User's Guide.
11105
11106 \emph default
11107  If you intend to use itemized lists you might also want to read about the
11108  
11109 \family sans
11110 Itemize
11111 \begin_inset space ~
11112 \end_inset
11113
11114 Bullet
11115 \begin_inset space ~
11116 \end_inset
11117
11118 Selection
11119 \family default
11120  dialog described above in section
11121 \begin_inset space ~
11122 \end_inset
11123
11124
11125 \change_inserted 564990737 1671355684
11126
11127 \begin_inset CommandInset ref
11128 LatexCommand ref
11129 reference "chap:bullets"
11130
11131 \end_inset
11132
11133
11134 \change_deleted 564990737 1671355684
11135
11136 \begin_inset CommandInset ref
11137 LatexCommand ref
11138 reference "sec:bullet"
11139
11140 \end_inset
11141
11142
11143 \change_unchanged
11144 .
11145 \end_layout
11146
11147 \begin_layout Standard
11148 The two new list styles, 
11149 \family sans
11150 TickList
11151 \family default
11152  and 
11153 \family sans
11154 CrossList
11155 \family default
11156 , are designed to make it easier for you to create lists of do's and don'ts
11157  or right and wrong by providing dedicated environments that use a tick
11158  or a cross as the label of the list.
11159  These lists are in fact dedicated variants of the 
11160 \family sans
11161 Itemize
11162 \family default
11163  environment.
11164  They do however require that you have the 
11165 \family typewriter
11166 psnfss
11167 \family default
11168  packages installed.
11169 \end_layout
11170
11171 \begin_layout Paragraph
11172 Figures and Tables
11173 \end_layout
11174
11175 \begin_layout Standard
11176
11177 \family sans
11178 Foil\SpecialChar TeX
11179
11180 \family default
11181  redefines the floating tables and figures so that they appear exactly where
11182  they are in the text rather than pushing them to the top of the page or
11183  to some user specified location.
11184  In fact if you change the float placement settings they are simply ignored.
11185 \end_layout
11186
11187 \begin_layout Paragraph
11188 Page Headers and Footers
11189 \begin_inset CommandInset label
11190 LatexCommand label
11191 name "sec:foilfoot"
11192
11193 \end_inset
11194
11195
11196 \end_layout
11197
11198 \begin_layout Standard
11199
11200 \family sans
11201 My
11202 \begin_inset space ~
11203 \end_inset
11204
11205 Logo
11206 \family default
11207  and 
11208 \family sans
11209 Restriction
11210 \family default
11211  are two commands used to control the left-footer text string.
11212  The first is meant to allow you to include a graphic logo on your foils
11213  and defaults to 
11214 \begin_inset Quotes eld
11215 \end_inset
11216
11217 -Typeset by 
11218 \family sans
11219 Foil\SpecialChar TeX
11220
11221 \family default
11222 -
11223 \begin_inset Quotes erd
11224 \end_inset
11225
11226 .
11227  While the second is meant to provide a classification for the audience,
11228  
11229 \emph on
11230 e.
11231 \begin_inset space \thinspace{}
11232 \end_inset
11233
11234 g.
11235 \emph default
11236
11237 \begin_inset space \space{}
11238 \end_inset
11239
11240 Confidential.
11241  It is empty by default.
11242 \end_layout
11243
11244 \begin_layout Standard
11245 The remaining page corners can be filled by 
11246 \family sans
11247 Right
11248 \begin_inset space ~
11249 \end_inset
11250
11251 Footer
11252 \family default
11253  (which defaults to page numbers), 
11254 \family sans
11255 Right
11256 \begin_inset space ~
11257 \end_inset
11258
11259 Header
11260 \family default
11261  (top right) and 
11262 \family sans
11263 Left
11264 \begin_inset space ~
11265 \end_inset
11266
11267 Header
11268 \family default
11269  (top left).
11270 \end_layout
11271
11272 \begin_layout Subsubsection
11273 Unsupported 
11274 \family sans
11275 Foil\SpecialChar TeX
11276
11277 \family default
11278  Goodies
11279 \begin_inset CommandInset label
11280 LatexCommand label
11281 name "sec:unsuppfoils"
11282
11283 \end_inset
11284
11285
11286 \end_layout
11287
11288 \begin_layout Standard
11289 All the commands mentioned below need to be set in a 
11290 \family sans
11291 \SpecialChar LaTeX
11292
11293 \family default
11294  environment or as 
11295 \family sans
11296 \SpecialChar TeX
11297
11298 \family default
11299  within another environment.
11300 \end_layout
11301
11302 \begin_layout Paragraph
11303 Lengths
11304 \end_layout
11305
11306 \begin_layout Standard
11307 All lengths are adjusted using the 
11308 \family typewriter
11309
11310 \backslash
11311 setlength{
11312 \family default
11313 \emph on
11314 lengthname
11315 \family typewriter
11316 \emph default
11317 }{
11318 \family default
11319 \emph on
11320 newlength
11321 \family typewriter
11322 \emph default
11323 }
11324 \family default
11325  command.
11326  Where 
11327 \emph on
11328 lengthname
11329 \emph default
11330  should be replaced by the name given to the length you want to change and
11331  
11332 \emph on
11333 newlength
11334 \emph default
11335  is the length value.
11336  All lengths should be specified in units of length such as inches (
11337 \family typewriter
11338 in
11339 \family default
11340 ), millimeters (
11341 \family typewriter
11342 mm
11343 \family default
11344 ) or points (
11345 \family typewriter
11346 pt
11347 \family default
11348 ) or relative to some document or font-based length such as 
11349 \family typewriter
11350
11351 \backslash
11352 textwidth
11353 \family default
11354 .
11355  
11356 \end_layout
11357
11358 \begin_layout Standard
11359 It's possible to change the spacing between a foilhead and the body of the
11360  foil by adjusting the length specified by 
11361 \family typewriter
11362
11363 \backslash
11364 foilheadskip
11365 \family default
11366 .
11367  For example, to make 
11368 \emph on
11369 all
11370 \emph default
11371  foilheads 0.5
11372 \begin_inset space \space{}
11373 \end_inset
11374
11375 in closer to their bodies put the following in the preamble: 
11376 \family typewriter
11377
11378 \backslash
11379 setlength{
11380 \backslash
11381 foilheadskip}{-0.5in}
11382 \end_layout
11383
11384 \begin_layout Standard
11385 The spacings around floats can be adjusted by setting these lengths:
11386 \end_layout
11387
11388 \begin_layout Labeling
11389 \labelwidthstring MMMMMMMMMMM
11390
11391 \family typewriter
11392
11393 \backslash
11394 abovefloatskip
11395 \family default
11396  Separation between the text and the top of the float
11397 \end_layout
11398
11399 \begin_layout Labeling
11400 \labelwidthstring MMMMMMMMMMM
11401
11402 \family typewriter
11403
11404 \backslash
11405 abovecaptionskip
11406 \family default
11407  Separation between the float and the caption
11408 \end_layout
11409
11410 \begin_layout Labeling
11411 \labelwidthstring MMMMMMMMMMM
11412
11413 \family typewriter
11414
11415 \backslash
11416 belowcaptionskip
11417 \family default
11418  Separation between the caption and the following text
11419 \end_layout
11420
11421 \begin_layout Labeling
11422 \labelwidthstring MMMMMMMMMMM
11423
11424 \family typewriter
11425
11426 \backslash
11427 captionwidth
11428 \family default
11429  You can make the captions narrower than the surrounding text by adjusting
11430  this length.
11431  Best done relative to 
11432 \family typewriter
11433
11434 \backslash
11435 textwidth
11436 \family default
11437 .
11438 \end_layout
11439
11440 \begin_layout Standard
11441 There are also several title page related lengths that you may find useful
11442  if you have a long title or several authors:
11443 \end_layout
11444
11445 \begin_layout Labeling
11446 \labelwidthstring MMMMMMMMMMM
11447
11448 \family typewriter
11449
11450 \backslash
11451 abovetitleskip
11452 \family default
11453  Separation from headers to 
11454 \family sans
11455 Title
11456 \end_layout
11457
11458 \begin_layout Labeling
11459 \labelwidthstring MMMMMMMMMMM
11460
11461 \family typewriter
11462
11463 \backslash
11464 titleauthorskip
11465 \family default
11466  between 
11467 \family sans
11468 Title
11469 \family default
11470  and 
11471 \family sans
11472 Author
11473 \family default
11474  environments
11475 \end_layout
11476
11477 \begin_layout Labeling
11478 \labelwidthstring MMMMMMMMMMM
11479
11480 \family typewriter
11481
11482 \backslash
11483 authorauthorskip
11484 \family default
11485  between multiple 
11486 \family sans
11487 Author
11488 \family default
11489  lines
11490 \end_layout
11491
11492 \begin_layout Labeling
11493 \labelwidthstring MMMMMMMMMMM
11494
11495 \family typewriter
11496
11497 \backslash
11498 authordateskip
11499 \family default
11500  between the 
11501 \family sans
11502 Author
11503 \family default
11504  and the 
11505 \family sans
11506 Date
11507 \end_layout
11508
11509 \begin_layout Labeling
11510 \labelwidthstring MMMMMMMMMMM
11511
11512 \family typewriter
11513
11514 \backslash
11515 dateabstractskip
11516 \family default
11517  between the 
11518 \family sans
11519 Date
11520 \family default
11521  and the 
11522 \family sans
11523 Abstract
11524 \end_layout
11525
11526 \begin_layout Standard
11527 The last length related command affects all the list environments.
11528  If you place 
11529 \family typewriter
11530
11531 \backslash
11532 zerolistvertdimens
11533 \family default
11534  
11535 \emph on
11536 inside
11537 \emph default
11538  a list environment then all the vertical spacing between the list items
11539  is removed.
11540  Note that this is a command not a length so it doesn't require 
11541 \family typewriter
11542
11543 \backslash
11544 setlength
11545 \family default
11546  like the stuff mentioned above.
11547 \end_layout
11548
11549 \begin_layout Paragraph
11550 Headers and Footers
11551 \end_layout
11552
11553 \begin_layout Standard
11554 The 
11555 \family typewriter
11556
11557 \backslash
11558 LogoOn
11559 \family default
11560  and 
11561 \family typewriter
11562
11563 \backslash
11564 LogoOff
11565 \family default
11566  commands control whether the logo in the 
11567 \family sans
11568 MyLogo
11569 \family default
11570  definition appear on a given page.
11571  If you put 
11572 \family typewriter
11573
11574 \backslash
11575 LogoOff
11576 \family default
11577  in the preamble then none of the foils will have the logo on them.
11578  If you don't want the logo on a particular page place the 
11579 \family typewriter
11580
11581 \backslash
11582 LogoOff
11583 \family default
11584  directly after the foilhead of that page and the 
11585 \family typewriter
11586
11587 \backslash
11588 LogoOn
11589 \family default
11590  directly after the next foilhead.
11591 \end_layout
11592
11593 \begin_layout Standard
11594 If you decide to use the 
11595 \family sans
11596 fancy
11597 \family default
11598  page style setting in the 
11599 \family sans
11600 Document
11601 \begin_inset space ~
11602 \end_inset
11603
11604 Layout
11605 \family default
11606  dialog you should probably add 
11607 \family typewriter
11608
11609 \backslash
11610 let
11611 \backslash
11612 headwidth
11613 \backslash
11614 textwidth
11615 \family default
11616  to your preamble so headers and footers on landscape pages are correctly
11617  placed when rotated.
11618  This is due to some clashes between the page layouts provided by the 
11619 \family sans
11620 fancyheadings
11621 \family default
11622  package and the 
11623 \family sans
11624 foils
11625 \family default
11626  class.
11627 \end_layout
11628
11629 \begin_layout Subsection
11630
11631 \change_inserted 564990737 1671459032
11632
11633 \lang american
11634 Powerdot
11635 \end_layout
11636
11637 \begin_layout Standard
11638
11639 \change_inserted 564990737 1671643165
11640
11641 \lang american
11642 The document class 
11643 \family sans
11644 presentation
11645 \begin_inset space \thinspace{}
11646 \end_inset
11647
11648 (powerdot)
11649 \family default
11650  uses the 
11651 \family typewriter
11652 powerdot.cls
11653 \family default
11654  document class for creating presentations.
11655  
11656 \family sans
11657 \lang british
11658 File\SpecialChar menuseparator
11659 Open Example\SpecialChar menuseparator
11660 Presentations\SpecialChar menuseparator
11661 Powerdot
11662 \family default
11663 \lang american
11664  offers guidance on its use.
11665  The documentation is available from 
11666 \begin_inset CommandInset href
11667 LatexCommand href
11668 name "CTAN"
11669 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
11670 literal "false"
11671
11672 \end_inset
11673
11674 .
11675 \end_layout
11676
11677 \begin_layout Subsection
11678
11679 \change_inserted 564990737 1671459032
11680
11681 \lang american
11682 \begin_inset CommandInset label
11683 LatexCommand label
11684 name "subsec:Seminar"
11685
11686 \end_inset
11687
11688
11689 \family sans
11690 Seminar
11691 \end_layout
11692
11693 \begin_layout Standard
11694
11695 \change_inserted 564990737 1671643194
11696
11697 \lang american
11698 The document class 
11699 \family sans
11700 presentations
11701 \begin_inset space \thinspace{}
11702 \end_inset
11703
11704 (seminar)
11705 \family default
11706  uses the 
11707 \family typewriter
11708 seminar.cls
11709 \family default
11710  document class for creating presentations.
11711  
11712 \family sans
11713 \lang british
11714 File\SpecialChar menuseparator
11715 Open Example\SpecialChar menuseparator
11716 Presentations\SpecialChar menuseparator
11717 Seminar
11718 \family default
11719 \lang american
11720  offers guidance on its use.
11721  The documentation is available from 
11722 \begin_inset CommandInset href
11723 LatexCommand href
11724 name "CTAN"
11725 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
11726 literal "false"
11727
11728 \end_inset
11729
11730 .
11731 \end_layout
11732
11733 \begin_layout Subsection
11734 Slides [aka 
11735 \noun on
11736 Sli\SpecialChar TeX
11737
11738 \noun default
11739 ]
11740 \begin_inset CommandInset label
11741 LatexCommand label
11742 name "sec:slitex"
11743
11744 \end_inset
11745
11746
11747 \end_layout
11748
11749 \begin_layout Standard
11750
11751 \change_inserted 564990737 1672743492
11752
11753 \lang american
11754 Original by 
11755 \noun on
11756 John Weiss
11757 \noun default
11758 ; updated by the \SpecialChar LyX
11759  Team
11760 \end_layout
11761
11762 \begin_layout Subsubsection
11763
11764 \change_inserted 564990737 1672743492
11765
11766 \lang american
11767 Introduction
11768 \end_layout
11769
11770 \begin_layout Standard
11771
11772 \change_inserted 564990737 1672743492
11773
11774 \lang american
11775 This section describes how to use \SpecialChar LyX
11776  to make slides for overhead projectors.
11777  There are two document classes that can do this: the 
11778 \family typewriter
11779 presentations
11780 \begin_inset space \thinspace{}
11781 \end_inset
11782
11783 (slides)
11784 \family default
11785  document class and the 
11786 \family sans
11787 presentation
11788 \begin_inset space \thinspace{}
11789 \end_inset
11790
11791 (Foil\SpecialChar TeX
11792 )
11793 \family default
11794  document class.
11795  This section documents the former.
11796  If you’re looking for the documentation for 
11797 \family sans
11798 presentation
11799 \begin_inset space \thinspace{}
11800 \end_inset
11801
11802 (Foil\SpecialChar TeX
11803 )
11804 \family default
11805 , check out section
11806 \begin_inset space ~
11807 \end_inset
11808
11809
11810 \begin_inset CommandInset ref
11811 LatexCommand ref
11812 reference "sec:Foiltex"
11813
11814 \end_inset
11815
11816 .
11817  As of 2023 the former has continued to be maintained whereas 
11818 \family sans
11819 Foil\SpecialChar TeX
11820
11821 \family default
11822  has not been maintained since 2008.
11823  
11824 \change_deleted 564990737 1672743492
11825
11826 \lang english
11827 by 
11828 \noun on
11829 John Weiss
11830 \noun default
11831  
11832 \end_layout
11833
11834 \begin_layout Standard
11835
11836 \change_deleted 564990737 1672743492
11837 Introduction
11838 \end_layout
11839
11840 \begin_layout Standard
11841
11842 \change_deleted 564990737 1672743492
11843 This section describes how to use \SpecialChar LyX
11844  to make slides for overhead projectors.
11845  There are two document classes that can do this: the default slides class
11846  and the 
11847 \family sans
11848 Foil\SpecialChar TeX
11849
11850 \family default
11851  slides class.
11852  This section documents the former.
11853 \end_layout
11854
11855 \begin_layout Standard
11856
11857 \change_deleted 564990737 1672743492
11858 I'm going to say this again, nice and clear, so that there's no misunderstanding
11859 :
11860 \end_layout
11861
11862 \begin_layout Standard
11863
11864 \change_deleted 564990737 1672743492
11865 \begin_inset VSpace bigskip
11866 \end_inset
11867
11868
11869 \end_layout
11870
11871 \begin_layout Standard
11872 \align center
11873
11874 \change_deleted 564990737 1672743492
11875
11876 \size large
11877 This section documents the class 
11878 \begin_inset Quotes eld
11879 \end_inset
11880
11881
11882 \family sans
11883 slides (default)
11884 \family default
11885
11886 \begin_inset Quotes erd
11887 \end_inset
11888
11889  
11890 \emph on
11891 only.
11892 \end_layout
11893
11894 \begin_layout Standard
11895
11896 \change_deleted 564990737 1672743492
11897 \begin_inset VSpace bigskip
11898 \end_inset
11899
11900
11901 \end_layout
11902
11903 \begin_layout Standard
11904
11905 \change_deleted 564990737 1672743492
11906 If you're looking for the documentation for 
11907 \begin_inset Quotes eld
11908 \end_inset
11909
11910
11911 \family sans
11912 slides (Foil\SpecialChar TeX
11913 )
11914 \family default
11915
11916 \begin_inset Quotes erd
11917 \end_inset
11918
11919 , check out section
11920 \begin_inset space ~
11921 \end_inset
11922
11923
11924 \begin_inset CommandInset ref
11925 LatexCommand ref
11926 reference "sec:foiltex"
11927
11928 \end_inset
11929
11930 .
11931  The 
11932 \family sans
11933 foils
11934 \family default
11935  class [
11936 \begin_inset Quotes eld
11937 \end_inset
11938
11939
11940 \family sans
11941 slides (Foil\SpecialChar TeX
11942 )
11943 \family default
11944
11945 \begin_inset Quotes erd
11946 \end_inset
11947
11948 ] is actually somewhat better than the default 
11949 \family sans
11950 slides
11951 \family default
11952  class,
11953 \begin_inset Foot
11954 status collapsed
11955
11956 \begin_layout Plain Layout
11957 \SpecialChar ldots
11958 or so I've been told repeatedly by its advocates.
11959  Having never used it, I have no idea if this claim is true or not.
11960 \end_layout
11961
11962 \end_inset
11963
11964  which this section documents.
11965 \end_layout
11966
11967 \begin_layout Standard
11968
11969 \change_deleted 564990737 1672743492
11970 This class is the \SpecialChar LaTeX2e
11971  improvement of the old 
11972 \noun on
11973 Sli\SpecialChar TeX
11974
11975 \noun default
11976  package.
11977  Every \SpecialChar LaTeX2e
11978  distribution includes this class [which I'll just refer to as 
11979 \begin_inset Quotes eld
11980 \end_inset
11981
11982
11983 \family sans
11984 slides
11985 \family default
11986
11987 \begin_inset Quotes erd
11988 \end_inset
11989
11990  from now on], so you're bound to have it.
11991  As I noted earlier, there are other classes, such as 
11992 \family sans
11993 foils
11994 \family default
11995 , which also produce slides for overhead projectors and do a better job
11996  at it.
11997  However, there are some things which 
11998 \family sans
11999 slides
12000 \family default
12001  can do which the others can't, such as generate overlays.
12002  Read on to learn more!
12003 \change_unchanged
12004
12005 \end_layout
12006
12007 \begin_layout Subsubsection
12008 Getting Started
12009 \begin_inset CommandInset label
12010 LatexCommand label
12011 name "sec:slidesetup"
12012
12013 \end_inset
12014
12015
12016 \end_layout
12017
12018 \begin_layout Standard
12019 Obviously, to use this document class, you need to select 
12020 \begin_inset Quotes eld
12021 \end_inset
12022
12023
12024 \family sans
12025 slides (default)
12026 \family default
12027
12028 \begin_inset Quotes erd
12029 \end_inset
12030
12031  from the class list in the 
12032 \family sans
12033 Document\SpecialChar menuseparator
12034 Settings
12035 \family default
12036  dialog.
12037  There are some other special things you should know about this class:
12038 \end_layout
12039
12040 \begin_layout Itemize
12041 Don't bother changing the options 
12042 \family sans
12043 Sides and Columns
12044 \family default
12045 .
12046  They're not supported by the 
12047 \family sans
12048 slides
12049 \family default
12050  class, anyways.
12051 \end_layout
12052
12053 \begin_layout Itemize
12054 The option 
12055 \family sans
12056 Page
12057 \begin_inset space ~
12058 \end_inset
12059
12060 style
12061 \family default
12062  behaves a bit differently for this class.
12063  The possible choices and what they do are as follows:
12064 \end_layout
12065
12066 \begin_deeper
12067 \begin_layout Description
12068
12069 \family sans
12070 plain
12071 \family default
12072  The final output contains page numbers in the lower right corner.
12073 \end_layout
12074
12075 \begin_layout Description
12076
12077 \family sans
12078 headings
12079 \family default
12080  Like 
12081 \family sans
12082 plain
12083 \family default
12084 , but also prints out any time markers you've put in.
12085  This is the default.
12086 \end_layout
12087
12088 \begin_layout Description
12089
12090 \family sans
12091 empty
12092 \family default
12093  The final output contains no page numbers, time markers, or alignment markers.
12094 \end_layout
12095
12096 \end_deeper
12097 \begin_layout Itemize
12098 The 
12099 \family sans
12100 slides
12101 \family default
12102  class has an extra option: 
12103 \family typewriter
12104 clock
12105 \family default
12106 .
12107  To use it, put 
12108 \begin_inset Quotes eld
12109 \end_inset
12110
12111
12112 \family typewriter
12113 clock
12114 \family default
12115
12116 \begin_inset Quotes erd
12117 \end_inset
12118
12119  in the extra class options.
12120 \end_layout
12121
12122 \begin_deeper
12123 \begin_layout Standard
12124 Using this options allows you to add time markers to 
12125 \family sans
12126 Note
12127 \family default
12128 s.
12129  See section
12130 \begin_inset space ~
12131 \end_inset
12132
12133
12134 \begin_inset CommandInset ref
12135 LatexCommand ref
12136 reference "sec:slideNote"
12137
12138 \end_inset
12139
12140  for more details.
12141 \end_layout
12142
12143 \end_deeper
12144 \begin_layout Standard
12145 You can also use the template file
12146 \change_deleted 564990737 1671617694
12147  
12148 \begin_inset Quotes eld
12149 \end_inset
12150
12151
12152 \family typewriter
12153 slides.lyx
12154 \family default
12155
12156 \begin_inset Quotes erd
12157 \end_inset
12158
12159
12160 \change_unchanged
12161  to automatically set up a document to use the 
12162 \family sans
12163 slides
12164 \family default
12165  class 
12166 \change_deleted 564990737 1671617699
12167 [
12168 \change_unchanged
12169 using 
12170 \family sans
12171 File\SpecialChar menuseparator
12172 New
12173 \begin_inset space ~
12174 \end_inset
12175
12176 from
12177 \begin_inset space ~
12178 \end_inset
12179
12180 Template
12181 \change_inserted 564990737 1671617723
12182 \SpecialChar menuseparator
12183 Presentations\SpecialChar menuseparator
12184 Slides
12185 \change_unchanged
12186
12187 \family default
12188  to open your new document
12189 \change_deleted 564990737 1671617728
12190 ]
12191 \change_unchanged
12192 .
12193  The template file also contains some examples of the special paragraph
12194  environments used by this class.
12195  I'll describe those next.
12196 \end_layout
12197
12198 \begin_layout Subsubsection
12199 Paragraph Environments
12200 \end_layout
12201
12202 \begin_layout Paragraph
12203 Supported Environments
12204 \end_layout
12205
12206 \begin_layout Standard
12207 The first thing you'll notice when you start up a new 
12208 \family sans
12209 slides
12210 \family default
12211  document is the font size and type: it's the equivalent of the size 
12212 \begin_inset Quotes eld
12213 \end_inset
12214
12215
12216 \family sans
12217 Largest
12218 \family default
12219
12220 \begin_inset Quotes erd
12221 \end_inset
12222
12223  in the 
12224 \family sans
12225 Sans
12226 \begin_inset space ~
12227 \end_inset
12228
12229 Serif
12230 \family default
12231  font.
12232  This is also what's used in the output.
12233  Think of this as a 
12234 \begin_inset Quotes eld
12235 \end_inset
12236
12237 visual cue
12238 \begin_inset Quotes erd
12239 \end_inset
12240
12241  to remind you that this is a slide.
12242  Your final slides will use a larger font; ergo, you'll have less space.
12243  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
12244 \end_layout
12245
12246 \begin_layout Standard
12247 The next thing that becomes obvious is the changes to the paragraph environment
12248  pull-down box [at the far-left end of the toolbar].
12249  Most of the paragraph environments you're used to seeing are missing.
12250  There are also five new ones.
12251  That's because the 
12252 \family sans
12253 slides
12254 \family default
12255  class itself only supports certain paragraph environments:
12256 \end_layout
12257
12258 \begin_layout Itemize
12259
12260 \family sans
12261 Standard
12262 \end_layout
12263
12264 \begin_layout Itemize
12265
12266 \family sans
12267 Itemize
12268 \end_layout
12269
12270 \begin_layout Itemize
12271
12272 \family sans
12273 Enumerate
12274 \end_layout
12275
12276 \begin_layout Itemize
12277
12278 \family sans
12279 Description
12280 \end_layout
12281
12282 \begin_layout Itemize
12283
12284 \family sans
12285 List
12286 \end_layout
12287
12288 \begin_layout Itemize
12289
12290 \family sans
12291 Quotation
12292 \end_layout
12293
12294 \begin_layout Itemize
12295
12296 \family sans
12297 Quote
12298 \end_layout
12299
12300 \begin_layout Itemize
12301
12302 \family sans
12303 Verse
12304 \end_layout
12305
12306 \begin_layout Itemize
12307
12308 \family sans
12309 Caption
12310 \end_layout
12311
12312 \begin_layout Itemize
12313
12314 \family sans
12315 \SpecialChar LyX
12316 -Code
12317 \end_layout
12318
12319 \begin_layout Standard
12320 All of the other standard environments, including the section-heading environmen
12321 ts, aren't used in the 
12322 \family sans
12323 slides
12324 \family default
12325  class.
12326 \end_layout
12327
12328 \begin_layout Standard
12329 On the other hand, you'll notice the following new environments:
12330 \end_layout
12331
12332 \begin_layout Itemize
12333
12334 \family sans
12335 Slide
12336 \end_layout
12337
12338 \begin_layout Itemize
12339
12340 \family sans
12341 Overlay
12342 \end_layout
12343
12344 \begin_layout Itemize
12345
12346 \family sans
12347 Note
12348 \end_layout
12349
12350 \begin_layout Itemize
12351
12352 \family sans
12353 InvisibleText
12354 \end_layout
12355
12356 \begin_layout Itemize
12357
12358 \family sans
12359 VisibleText
12360 \end_layout
12361
12362 \begin_layout Standard
12363 These five are kind of quirky, due to a 
12364 \begin_inset Quotes eld
12365 \end_inset
12366
12367 feature
12368 \begin_inset Quotes erd
12369 \end_inset
12370
12371  in \SpecialChar LyX
12372 .
12373  You see, \SpecialChar LyX
12374  doesn't permit you to nest any other paragraph environment into
12375  an empty environment.
12376  Now, that's fine and dandy, but it means that you wouldn't be able to start
12377  a slide with anything except plain text.
12378  To deal with this, I've performed a little 
12379 \begin_inset Quotes eld
12380 \end_inset
12381
12382 \SpecialChar LaTeX
12383  magic.
12384 \begin_inset Quotes erd
12385 \end_inset
12386
12387  
12388 \end_layout
12389
12390 \begin_layout Paragraph
12391 Quirks of the New Environments
12392 \begin_inset CommandInset label
12393 LatexCommand label
12394 name "sec:slideQuirk"
12395
12396 \end_inset
12397
12398
12399 \end_layout
12400
12401 \begin_layout Standard
12402 All five of the new paragraph environments are somewhat quirky due to inherent
12403  limitiations in the current version of \SpecialChar LyX
12404 .
12405  As I just mentioned, \SpecialChar LyX
12406  forbids environments that begin with another environment.
12407  To get around this, the 
12408 \family sans
12409 Slide
12410 \family default
12411  environment isn't a paragraph environment as described in the 
12412 \emph on
12413 User's Guide
12414 \emph default
12415 .
12416  
12417 \end_layout
12418
12419 \begin_layout Standard
12420 You should consider 
12421 \family sans
12422 Slide
12423 \family default
12424
12425 \family sans
12426 Overlay
12427 \family default
12428 , and 
12429 \family sans
12430 Note
12431 \family default
12432  to be 
12433 \begin_inset Quotes eld
12434 \end_inset
12435
12436 pseudo-environments.
12437 \begin_inset Quotes erd
12438 \end_inset
12439
12440  They look like a section heading or a 
12441 \begin_inset Quotes eld
12442 \end_inset
12443
12444
12445 \family sans
12446 Caption
12447 \family default
12448 ,
12449 \begin_inset Quotes erd
12450 \end_inset
12451
12452  but really begin a [and, if necessary, end the previous] paragraph environment.
12453  Likewise, treat 
12454 \family sans
12455 InvisibleText
12456 \family default
12457  and 
12458 \family sans
12459 VisibleText
12460 \family default
12461  as 
12462 \begin_inset Quotes eld
12463 \end_inset
12464
12465 pseudo-commands.
12466 \begin_inset Quotes erd
12467 \end_inset
12468
12469  These two perform some action.
12470 \end_layout
12471
12472 \begin_layout Standard
12473 A common feature of all five environments, 
12474 \family sans
12475 Slide
12476 \family default
12477
12478 \family sans
12479 Overlay
12480 \family default
12481
12482 \family sans
12483 Note
12484 \family default
12485
12486 \family sans
12487 InvisibleText
12488 \family default
12489  and 
12490 \family sans
12491 VisibleText
12492 \family default
12493 , is a rather long-ish label.
12494  The text following this label — ordinarily the contents of the paragraph
12495  environment — is utterly irrelevant for 
12496 \family sans
12497 Slide
12498 \family default
12499
12500 \family sans
12501 Overlay
12502 \family default
12503
12504 \family sans
12505 Note
12506 \family default
12507
12508 \family sans
12509 InvisibleText
12510 \family default
12511  and 
12512 \family sans
12513 VisibleText
12514 \family default
12515 .
12516  \SpecialChar LyX
12517  completely ignores it.
12518  In fact, you can leave these five environments completely empty.
12519  
12520 \end_layout
12521
12522 \begin_layout Standard
12523 While you don't 
12524 \emph on
12525 have
12526 \emph default
12527  to put any text after the rather long-ish label, you might want to.
12528  This could be a short description of the contents of the 
12529 \family sans
12530 Slide
12531 \family default
12532 , for example.
12533  In that case, enter your descriptive comment and hit 
12534 \family sans
12535 Return
12536 \family default
12537  as you normally would.
12538 \end_layout
12539
12540 \begin_layout Standard
12541 If, on the other hand, you don't want to enter any descriptive text, you'll
12542  hit another \SpecialChar LyX
12543  quirk.
12544  \SpecialChar LyX
12545 , like nature, abhors a vacuum, and will not let you start a new paragraph
12546  environment until you put something in the old one.
12547  So, do this:
12548 \end_layout
12549
12550 \begin_layout Itemize
12551 Start entering the text that will 
12552 \emph on
12553 follow
12554 \emph default
12555  the new 
12556 \family sans
12557 Slide
12558 \family default
12559
12560 \family sans
12561 Overlay
12562 \family default
12563
12564 \family sans
12565 Note
12566 \family default
12567
12568 \family sans
12569 InvisibleText
12570 \family default
12571  or 
12572 \family sans
12573 VisibleText
12574 \family default
12575 .
12576  
12577 \end_layout
12578
12579 \begin_layout Itemize
12580 Now move to the beginning of that paragraph.
12581  
12582 \end_layout
12583
12584 \begin_layout Itemize
12585 Next, hit 
12586 \family sans
12587 Return
12588 \family default
12589 .
12590  
12591 \end_layout
12592
12593 \begin_layout Itemize
12594 Finally, change this new, empty paragraph to a 
12595 \family sans
12596 Slide
12597 \family default
12598
12599 \family sans
12600 Overlay
12601 \family default
12602
12603 \family sans
12604 Note
12605 \family default
12606
12607 \family sans
12608 InvisibleText
12609 \family default
12610  or 
12611 \family sans
12612 VisibleText
12613 \family default
12614 .
12615  
12616 \end_layout
12617
12618 \begin_layout Standard
12619 Some future version of \SpecialChar LyX
12620  will, hopefully, resolve this quirkiness\SpecialChar ldots
12621
12622 \end_layout
12623
12624 \begin_layout Subsubsection
12625 Making a Presentation with 
12626 \family sans
12627 Slide
12628 \family default
12629
12630 \family sans
12631 Overlay
12632 \family default
12633  and 
12634 \family sans
12635 Note
12636 \end_layout
12637
12638 \begin_layout Paragraph
12639 Using the 
12640 \family sans
12641 Slide
12642 \family default
12643  Environment
12644 \end_layout
12645
12646 \begin_layout Standard
12647 If you're expecting this section to teach you how to actually make a presentatio
12648 n, you'll be sorely disappointed.
12649  Naturally, I'll describe all of the ways the 
12650 \family sans
12651 slides
12652 \family default
12653  class can assist you in preparing the materials for a presentation.
12654  Filling in the contents, however, is up to you.
12655  [Then again, that 
12656 \emph on
12657 is
12658 \emph default
12659  the \SpecialChar LyX
12660  philosophy.]
12661 \end_layout
12662
12663 \begin_layout Standard
12664 Choosing the 
12665 \family sans
12666 Slide
12667 \family default
12668  environment [in the manner described in section
12669 \begin_inset space ~
12670 \end_inset
12671
12672
12673 \begin_inset CommandInset ref
12674 LatexCommand ref
12675 reference "sec:slideQuirk"
12676
12677 \end_inset
12678
12679 ] tells \SpecialChar LyX
12680  to begin a new slide [duh].
12681  The label for this environment/
12682 \begin_inset Quotes erd
12683 \end_inset
12684
12685 pseudo-command
12686 \begin_inset Quotes erd
12687 \end_inset
12688
12689  is an 
12690 \begin_inset Quotes eld
12691 \end_inset
12692
12693 ASCII line,
12694 \begin_inset Quotes erd
12695 \end_inset
12696
12697  in cool blue, followed by the label, 
12698 \begin_inset Quotes eld
12699 \end_inset
12700
12701 NewSlide:
12702 \begin_inset Quotes erd
12703 \end_inset
12704
12705 .
12706  Any text or paragraph environments that follow this one go on the new slide.
12707  It's that simple.
12708 \end_layout
12709
12710 \begin_layout Standard
12711 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
12712
12713  (this can be specified in the 
12714 \family sans
12715 Paragraph Layout
12716 \family default
12717  dialog).
12718  In fact, you'll want to, once you finish entering the contents of one slide.
12719  If you've entered more text than can physically fit on a slide, the extra
12720  overflows onto a new slide.
12721  I don't recommend doing this, however, since the overflow slide won't have
12722  any page number on it.
12723  Furthermore, it may interfere with any 
12724 \family sans
12725 Overlay
12726 \family default
12727  you've made to accompany the oversized 
12728 \family sans
12729 Slide
12730 \family default
12731 .
12732 \end_layout
12733
12734 \begin_layout Standard
12735 The 
12736 \family sans
12737 Overlay
12738 \family default
12739  and 
12740 \family sans
12741 Note
12742 \family default
12743  environments work the same way as the 
12744 \family sans
12745 Slide
12746 \family default
12747  environment.
12748  They both create an 
12749 \begin_inset Quotes eld
12750 \end_inset
12751
12752 ASCII line
12753 \begin_inset Quotes erd
12754 \end_inset
12755
12756  followed by a label [
12757 \begin_inset Quotes eld
12758 \end_inset
12759
12760 NewOverlay:
12761 \begin_inset Quotes erd
12762 \end_inset
12763
12764  and 
12765 \begin_inset Quotes eld
12766 \end_inset
12767
12768 NewNote:
12769 \begin_inset Quotes erd
12770 \end_inset
12771
12772 , respectively].
12773  The color is a stunning magenta instead of blue, and the 
12774 \begin_inset Quotes eld
12775 \end_inset
12776
12777 ASCII line
12778 \begin_inset Quotes erd
12779 \end_inset
12780
12781  will look different, in style and in length.
12782  The label fonts of all three also differ from one another.
12783 \end_layout
12784
12785 \begin_layout Standard
12786 As with a 
12787 \family sans
12788 Slide
12789 \family default
12790 , if the contents of a 
12791 \family sans
12792 Note
12793 \family default
12794  or 
12795 \family sans
12796 Overlay
12797 \family default
12798  exceed the physical size of a slide or sheet of paper, the extra will overflow
12799  onto a new sheet.
12800  Again, you should avoid this.
12801  It defeats the whole purpose of 
12802 \family sans
12803 Note
12804 \family default
12805 s and 
12806 \family sans
12807 Overlay
12808 \family default
12809 s.
12810 \end_layout
12811
12812 \begin_layout Paragraph
12813 Using 
12814 \family sans
12815 Overlay
12816 \family default
12817  with 
12818 \family sans
12819 Slide
12820 \end_layout
12821
12822 \begin_layout Standard
12823 The idea behind an 
12824 \family sans
12825 Overlay
12826 \family default
12827  is a slide that sits atop another slide.
12828  Perhaps you wish to discuss a figure on the main 
12829 \family sans
12830 Slide
12831 \family default
12832  before displaying the text associated with it.
12833  One way to accomplish this is tape a flap of dark paper over the part of
12834  the 
12835 \family sans
12836 Slide
12837 \family default
12838  you want to display later.
12839  This method fails, however, if you wish to overlap one graph with another,
12840  for example.
12841  You would then have to fumble while speaking to align the two separate,
12842  overlapping 
12843 \family sans
12844 Slide
12845 \family default
12846 s to align the two graphs.
12847  The use of an 
12848 \family sans
12849 Overlay
12850 \family default
12851  environment in both cases makes life much easier.
12852 \end_layout
12853
12854 \begin_layout Standard
12855 Each 
12856 \family sans
12857 Overlay
12858 \family default
12859  receives the page number of its 
12860 \begin_inset Quotes eld
12861 \end_inset
12862
12863 parent
12864 \begin_inset Quotes erd
12865 \end_inset
12866
12867  
12868 \family sans
12869 Slide
12870 \family default
12871 , appended by 
12872 \begin_inset Quotes eld
12873 \end_inset
12874
12875
12876 \family typewriter
12877 -a
12878 \family default
12879
12880 \begin_inset Quotes erd
12881 \end_inset
12882
12883 .
12884 \begin_inset Foot
12885 status collapsed
12886
12887 \begin_layout Plain Layout
12888 Presumably, mutliple 
12889 \family sans
12890 Overlay
12891 \family default
12892 s would have 
12893 \begin_inset Quotes eld
12894 \end_inset
12895
12896
12897 \family typewriter
12898 -a
12899 \family default
12900
12901 \begin_inset Quotes erd
12902 \end_inset
12903
12904
12905 \begin_inset Quotes eld
12906 \end_inset
12907
12908
12909 \family typewriter
12910 -b
12911 \family default
12912
12913 \begin_inset Quotes erd
12914 \end_inset
12915
12916
12917 \begin_inset Quotes eld
12918 \end_inset
12919
12920
12921 \family typewriter
12922 -c
12923 \family default
12924
12925 \begin_inset Quotes erd
12926 \end_inset
12927
12928 , etc.
12929 \begin_inset space ~
12930 \end_inset
12931
12932 appended to the page number of the parent 
12933 \family sans
12934 Slide
12935 \family default
12936 .
12937  
12938 \end_layout
12939
12940 \end_inset
12941
12942  Clearly, you want the contents of both the 
12943 \family sans
12944 Slide
12945 \family default
12946  and the 
12947 \family sans
12948 Overlay
12949 \family default
12950  to each fit on a single physical slide! You should probably consider an
12951  
12952 \family sans
12953 Overlay
12954 \family default
12955  as 
12956 \begin_inset Quotes eld
12957 \end_inset
12958
12959 part of
12960 \begin_inset Quotes erd
12961 \end_inset
12962
12963  a 
12964 \family sans
12965 Slide
12966 \family default
12967 .
12968  Indeed, the \SpecialChar LyX
12969  
12970 \family sans
12971 slides
12972 \family default
12973  class provides a visual cue for this: the label at the start of an 
12974 \family sans
12975 Overlay
12976 \family default
12977  is shorter than that at the start of a 
12978 \family sans
12979 Slide
12980 \family default
12981 .
12982  Lastly, when you generate printable output, you'll find alignment markers
12983  in all four corners of both the 
12984 \family sans
12985 Overlay
12986 \family default
12987  page and its parent 
12988 \family sans
12989 Slide
12990 \family default
12991 .
12992  These will assist you in lining up the two physical slides.
12993 \end_layout
12994
12995 \begin_layout Standard
12996 The major problem in overlaying two slides is aligning the contents of the
12997  two transparencies.
12998  How much space should you leave for that graph on the second slide? Worse
12999  still, what if you want a graph and a sentence on second slide, but there
13000  is text on the main transparency that goes in between them? You could try
13001  and insert vertical space of the right size.
13002  The better way is to use 
13003 \family sans
13004 InvisibleText
13005 \family default
13006  and 
13007 \family sans
13008 VisibleText
13009 \family default
13010 .
13011 \end_layout
13012
13013 \begin_layout Standard
13014 As their names imply, 
13015 \family sans
13016 InvisibleText
13017 \family default
13018  and 
13019 \family sans
13020 VisibleText
13021 \family default
13022  are two command-like paragraph environments that make all subsequent text
13023  invisible and visible, respectively.
13024  Note from section
13025 \begin_inset space ~
13026 \end_inset
13027
13028
13029 \begin_inset CommandInset ref
13030 LatexCommand ref
13031 reference "sec:slideQuirk"
13032
13033 \end_inset
13034
13035  that you don't place anything 
13036 \emph on
13037 into
13038 \emph default
13039  these two environments, however.
13040  When you create an 
13041 \family sans
13042 InvisibleText
13043 \family default
13044 , it inserts a centered, sky-blue label into the page reading 
13045 \begin_inset Quotes eld
13046 \end_inset
13047
13048 <Invisible Text Follows>
13049 \begin_inset Quotes erd
13050 \end_inset
13051
13052 .
13053  For paragraphs following this label, the parts of the 
13054 \family sans
13055 Slide
13056 \family default
13057  [or 
13058 \family sans
13059 Overlay
13060 \family default
13061 ; it doesn't matter which] where they would be contain instead blank space.
13062  
13063 \end_layout
13064
13065 \begin_layout Standard
13066 For 
13067 \family sans
13068 VisibleText
13069 \family default
13070 , the corresponding centered label is 
13071 \begin_inset Quotes eld
13072 \end_inset
13073
13074 <Visible Text Follows>
13075 \begin_inset Quotes erd
13076 \end_inset
13077
13078  in blazing green.
13079  Paragraphs following this label behave normally.
13080  Note that the beginning of a new 
13081 \family sans
13082 Slide
13083 \family default
13084
13085 \family sans
13086 Overlay
13087 \family default
13088 , or 
13089 \family sans
13090 Note
13091 \family default
13092  automatically shuts off an 
13093 \family sans
13094 InvisibleText
13095 \family default
13096 .
13097  It's therefore not necessary to use 
13098 \family sans
13099 VisibleText
13100 \family default
13101  at the end of a 
13102 \family sans
13103 Slide
13104 \family default
13105 .
13106 \end_layout
13107
13108 \begin_layout Standard
13109 By now, it should be obvious how to create overlay transparencies using
13110  the proper combination of 
13111 \family sans
13112 InvisibleText
13113 \family default
13114  and 
13115 \family sans
13116 VisibleText
13117 \family default
13118  on a 
13119 \family sans
13120 Slide
13121 \family default
13122  and 
13123 \family sans
13124 Overlay
13125 \family default
13126 :
13127 \end_layout
13128
13129 \begin_layout Enumerate
13130 Create a 
13131 \family sans
13132 Slide
13133 \family default
13134 , including everything that will appear on it, whether on the main slide
13135  or on the 
13136 \family sans
13137 Overlay
13138 \family default
13139 .
13140 \end_layout
13141
13142 \begin_layout Enumerate
13143 Before each figure or paragraph that will appear only on the 
13144 \family sans
13145 Overlay
13146 \family default
13147 , insert an 
13148 \family sans
13149 InvisibleText
13150 \family default
13151  environment.
13152  If necessary, insert a 
13153 \family sans
13154 VisibleText
13155 \family default
13156  environment after the 
13157 \family sans
13158 Overlay
13159 \family default
13160 -only text.
13161 \end_layout
13162
13163 \begin_layout Enumerate
13164 Start an 
13165 \family sans
13166 Overlay
13167 \family default
13168  immediately following the 
13169 \family sans
13170 Slide
13171 \family default
13172 .
13173 \end_layout
13174
13175 \begin_layout Enumerate
13176 Copy the contents of this 
13177 \family sans
13178 Slide
13179 \family default
13180  into the 
13181 \family sans
13182 Overlay
13183 \family default
13184 .
13185 \end_layout
13186
13187 \begin_layout Enumerate
13188 Within the 
13189 \family sans
13190 Overlay
13191 \family default
13192 , change all of the 
13193 \family sans
13194 InvisibleText
13195 \family default
13196  lines to 
13197 \family sans
13198 VisibleText
13199 \family default
13200  and vice-versa.
13201 \end_layout
13202
13203 \begin_layout Standard
13204 That's it.
13205  You've just made an 
13206 \family sans
13207 Overlay
13208 \family default
13209 .
13210 \end_layout
13211
13212 \begin_layout Standard
13213 There's one problem with the way I've designed the \SpecialChar LyX
13214  
13215 \family sans
13216 slides
13217 \family default
13218  class: you can't make text in the middle of a paragraph invisible, nor
13219  make text in the middle of an invisible paragraph visible again.
13220  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
13221  codes.
13222 \begin_inset Foot
13223 status collapsed
13224
13225 \begin_layout Plain Layout
13226 The commands of interest are: 
13227 \end_layout
13228
13229 \begin_layout Itemize
13230
13231 \family typewriter
13232 {
13233 \backslash
13234 invisible \SpecialChar ldots
13235  }
13236 \end_layout
13237
13238 \begin_layout Itemize
13239
13240 \family typewriter
13241 {
13242 \backslash
13243 visible \SpecialChar ldots
13244  }
13245 \end_layout
13246
13247 \begin_layout Plain Layout
13248 \SpecialChar ldots
13249 and need to be marked as \SpecialChar TeX
13250 .
13251  The text whose 
13252 \begin_inset Quotes eld
13253 \end_inset
13254
13255 visibility
13256 \begin_inset Quotes erd
13257 \end_inset
13258
13259  you wish to change goes in between the brackets [and after the 
13260 \family typewriter
13261
13262 \backslash
13263 invisible
13264 \family default
13265  or 
13266 \family typewriter
13267
13268 \backslash
13269 visible
13270 \family default
13271  command].
13272  If you don't know how to mark text as \SpecialChar TeX
13273 , see the appropriate section of
13274  the 
13275 \emph on
13276 User's Guide
13277 \emph default
13278 .
13279 \end_layout
13280
13281 \end_inset
13282
13283
13284 \end_layout
13285
13286 \begin_layout Paragraph
13287 Using 
13288 \family sans
13289 Note
13290 \family default
13291  with 
13292 \family sans
13293 Slide
13294 \family default
13295
13296 \begin_inset CommandInset label
13297 LatexCommand label
13298 name "sec:slideNote"
13299
13300 \end_inset
13301
13302
13303 \end_layout
13304
13305 \begin_layout Standard
13306 Like an 
13307 \family sans
13308 Overlay
13309 \family default
13310 , a 
13311 \family sans
13312 Note
13313 \family default
13314  is associated with a 
13315 \begin_inset Quotes eld
13316 \end_inset
13317
13318 parent
13319 \begin_inset Quotes erd
13320 \end_inset
13321
13322  
13323 \family sans
13324 Slide
13325 \family default
13326 .
13327  Here, too, the \SpecialChar LyX
13328  
13329 \family sans
13330 slides
13331 \family default
13332  class provides visual cues.
13333  The label for a 
13334 \family sans
13335 Note
13336 \family default
13337  is shorter than that of a 
13338 \family sans
13339 Slide
13340 \family default
13341  [yet longer than that of an 
13342 \family sans
13343 Overlay
13344 \family default
13345 ] and, like the label of an 
13346 \family sans
13347 Overlay
13348 \family default
13349  is shockingly magenta.
13350  Additionally, the printed 
13351 \family sans
13352 Note
13353 \family default
13354  has the page number of its 
13355 \begin_inset Quotes eld
13356 \end_inset
13357
13358 parent
13359 \begin_inset Quotes erd
13360 \end_inset
13361
13362  
13363 \family sans
13364 Slide
13365 \family default
13366 , appended by 
13367 \begin_inset Quotes eld
13368 \end_inset
13369
13370
13371 \family typewriter
13372 -
13373 \family default
13374 1
13375 \begin_inset Quotes erd
13376 \end_inset
13377
13378
13379 \begin_inset Quotes eld
13380 \end_inset
13381
13382
13383 \family typewriter
13384 -
13385 \family default
13386 2
13387 \begin_inset Quotes erd
13388 \end_inset
13389
13390
13391 \begin_inset Quotes eld
13392 \end_inset
13393
13394
13395 \family typewriter
13396 -
13397 \family default
13398 3
13399 \begin_inset Quotes erd
13400 \end_inset
13401
13402 , etc.
13403  You can have multiple 
13404 \family sans
13405 Note
13406 \family default
13407 s associated with a single 
13408 \family sans
13409 Slide
13410 \family default
13411 , and, as with 
13412 \family sans
13413 Slide
13414 \family default
13415  and 
13416 \family sans
13417 Overlay
13418 \family default
13419 , you'll probably want to break up long 
13420 \family sans
13421 Note
13422 \family default
13423 s so that they fit on a single sheet of paper.
13424 \end_layout
13425
13426 \begin_layout Standard
13427 The purpose of a 
13428 \family sans
13429 Note
13430 \family default
13431  is obvious: it contains anything additional you might want to say about
13432  a 
13433 \family sans
13434 Slide
13435 \family default
13436 .
13437  It could also be used as a sheet of reminders for a particular 
13438 \family sans
13439 Slide
13440 \family default
13441 .
13442  In the case of the latter, you might want to make use of time markers.
13443  Currently, the \SpecialChar LyX
13444  
13445 \family sans
13446 slides
13447 \family default
13448  class has no 
13449 \begin_inset Quotes eld
13450 \end_inset
13451
13452 native
13453 \begin_inset Quotes erd
13454 \end_inset
13455
13456  support for time markers, a 
13457 \noun on
13458 Sli\SpecialChar TeX
13459
13460 \noun default
13461  feature.
13462  So, you'll have to resort to using the \SpecialChar LaTeX
13463  codes.
13464 \end_layout
13465
13466 \begin_layout Standard
13467 To use time markers, you'll need to specify the extra class option 
13468 \begin_inset Quotes eld
13469 \end_inset
13470
13471
13472 \family typewriter
13473 clock
13474 \family default
13475
13476 \begin_inset Quotes erd
13477 \end_inset
13478
13479  [see section
13480 \begin_inset space ~
13481 \end_inset
13482
13483
13484 \begin_inset CommandInset ref
13485 LatexCommand ref
13486 reference "sec:slidesetup"
13487
13488 \end_inset
13489
13490 ].
13491  This option turns on timing marks, which will appear in the lower-left-hand
13492  corner of every 
13493 \family sans
13494 Note
13495 \family default
13496  you generate.
13497  To set what appears in the time marker, you use the \SpecialChar LaTeX
13498  commands 
13499 \begin_inset Quotes eld
13500 \end_inset
13501
13502
13503 \family typewriter
13504
13505 \backslash
13506 settime{}
13507 \family default
13508
13509 \begin_inset Quotes erd
13510 \end_inset
13511
13512  and 
13513 \begin_inset Quotes eld
13514 \end_inset
13515
13516
13517 \family typewriter
13518
13519 \backslash
13520 addtime{}
13521 \family default
13522
13523 \begin_inset Quotes erd
13524 \end_inset
13525
13526 .
13527  The arguments of both commands are time measured in seconds.
13528  
13529 \begin_inset Quotes eld
13530 \end_inset
13531
13532
13533 \family typewriter
13534
13535 \backslash
13536 settime{}
13537 \family default
13538
13539 \begin_inset Quotes erd
13540 \end_inset
13541
13542  sets the time marker to a given time.
13543  
13544 \begin_inset Quotes eld
13545 \end_inset
13546
13547
13548 \family typewriter
13549
13550 \backslash
13551 addtime{}
13552 \family default
13553
13554 \begin_inset Quotes erd
13555 \end_inset
13556
13557  increments the time marker by the specified amount.
13558  Using time markers and 
13559 \family sans
13560 Note
13561 \family default
13562 s in this fashion, you can remind yourself how much time to spend on a particula
13563
13564 \family sans
13565 Slide
13566 \family default
13567 .
13568 \end_layout
13569
13570 \begin_layout Standard
13571 There's one last feature to describe.
13572  Clearly, you'd like to print out all of your 
13573 \family sans
13574 Slide
13575 \family default
13576 s and 
13577 \family sans
13578 Overlay
13579 \family default
13580 s on transparencies while printing all of your 
13581 \family sans
13582 Note
13583 \family default
13584 s on plain paper.
13585  However, a 
13586 \family sans
13587 Note
13588 \family default
13589  
13590 \emph on
13591 must
13592 \emph default
13593  follow the 
13594 \family sans
13595 Slide
13596 \family default
13597  with which it is associated.
13598  What's a person to do?
13599 \end_layout
13600
13601 \begin_layout Standard
13602 Luckily, there are two \SpecialChar LaTeX
13603  commands that allow you to select what to print
13604  out.
13605  Both must be placed into the preamble of your document.
13606  The command 
13607 \begin_inset Quotes eld
13608 \end_inset
13609
13610
13611 \family typewriter
13612
13613 \backslash
13614 onlyslides{
13615 \backslash
13616 slides}
13617 \family default
13618
13619 \begin_inset Quotes erd
13620 \end_inset
13621
13622  will cause the output to contain only the 
13623 \family sans
13624 Slide
13625 \family default
13626 s and 
13627 \family sans
13628 Overlay
13629 \family default
13630 s.
13631  Correspondingly, the command 
13632 \begin_inset Quotes eld
13633 \end_inset
13634
13635
13636 \family typewriter
13637
13638 \backslash
13639 onlynotes{
13640 \backslash
13641 notes}
13642 \family default
13643
13644 \begin_inset Quotes erd
13645 \end_inset
13646
13647  prevents the output of anything but 
13648 \family sans
13649 Note
13650 \family default
13651 s.
13652  I'd advise placing both commands in the preamble and initially comment
13653  both out.
13654  You can then preview your entire presentation as you write.
13655  When you're done writing, you can then uncomment one of the two to select
13656  what you want to print.
13657  I like to uncomment 
13658 \begin_inset Quotes eld
13659 \end_inset
13660
13661
13662 \family typewriter
13663
13664 \backslash
13665 onlyslides{
13666 \backslash
13667 slides}
13668 \family default
13669
13670 \begin_inset Quotes erd
13671 \end_inset
13672
13673  , print to a file with 
13674 \begin_inset Quotes eld
13675 \end_inset
13676
13677
13678 \family typewriter
13679 -slides
13680 \family default
13681
13682 \begin_inset Quotes erd
13683 \end_inset
13684
13685  in its name, comment it back out, then uncomment 
13686 \begin_inset Quotes eld
13687 \end_inset
13688
13689
13690 \family typewriter
13691
13692 \backslash
13693 onlynotes{
13694 \backslash
13695 notes}
13696 \family default
13697
13698 \begin_inset Quotes erd
13699 \end_inset
13700
13701  and print to a 
13702 \begin_inset Quotes eld
13703 \end_inset
13704
13705
13706 \family typewriter
13707 *-notes.ps
13708 \family default
13709
13710 \begin_inset Quotes erd
13711 \end_inset
13712
13713  file.
13714  I can then send either file to a printer, loading transparencies or plain
13715  paper as appropriate.
13716 \end_layout
13717
13718 \begin_layout Standard
13719 You can also provide other arguments to the 
13720 \begin_inset Quotes eld
13721 \end_inset
13722
13723
13724 \family typewriter
13725
13726 \backslash
13727 onlyslides{}
13728 \family default
13729
13730 \begin_inset Quotes erd
13731 \end_inset
13732
13733  and 
13734 \begin_inset Quotes eld
13735 \end_inset
13736
13737
13738 \family typewriter
13739
13740 \backslash
13741 onlynotes{}
13742 \family default
13743
13744 \begin_inset Quotes erd
13745 \end_inset
13746
13747  commands.
13748  See a good \SpecialChar LaTeX
13749  book for details.
13750 \end_layout
13751
13752 \begin_layout Subsubsection
13753 The 
13754 \family sans
13755 slides
13756 \family default
13757  Class Template File
13758 \end_layout
13759
13760 \begin_layout Standard
13761 I have also provided a template file
13762 \change_deleted 564990737 1671617750
13763
13764 \begin_inset Quotes eld
13765 \end_inset
13766
13767
13768 \family typewriter
13769 slides.lyx
13770 \family default
13771
13772 \begin_inset Quotes erd
13773 \end_inset
13774
13775 ,
13776 \change_unchanged
13777  with the 
13778 \family sans
13779 slides
13780 \family default
13781  class.
13782  To use it, begin your new presentation with 
13783 \family sans
13784 File\SpecialChar menuseparator
13785 New
13786 \begin_inset space ~
13787 \end_inset
13788
13789 from
13790 \begin_inset space ~
13791 \end_inset
13792
13793 Template
13794 \change_inserted 564990737 1671616988
13795 \SpecialChar menuseparator
13796 Presentations\SpecialChar menuseparator
13797 Slides
13798 \change_unchanged
13799
13800 \family default
13801 .
13802  Your new \SpecialChar LyX
13803  presentation file will contain an example 
13804 \family sans
13805 Slide
13806 \family default
13807  – 
13808 \family sans
13809 Overlay
13810 \family default
13811  – 
13812 \family sans
13813 Note
13814 \family default
13815  triplet.
13816  The 
13817 \family sans
13818 Slide
13819 \family default
13820  and 
13821 \family sans
13822 Overlay
13823 \family default
13824  additionally contain an example of the use of 
13825 \family sans
13826 InvisibleText
13827 \family default
13828  and 
13829 \family sans
13830 VisibleText
13831 \family default
13832 .
13833  Lastly, the preamble will contain:
13834 \end_layout
13835
13836 \begin_layout LyX-Code
13837 % Uncomment to print out only slides and overlays
13838 \end_layout
13839
13840 \begin_layout LyX-Code
13841 %
13842 \end_layout
13843
13844 \begin_layout LyX-Code
13845 %
13846 \backslash
13847 onlyslides{
13848 \backslash
13849 slides}
13850 \begin_inset Newline newline
13851 \end_inset
13852
13853  
13854 \end_layout
13855
13856 \begin_layout LyX-Code
13857 % Uncomment to print out only notes
13858 \end_layout
13859
13860 \begin_layout LyX-Code
13861 %
13862 \end_layout
13863
13864 \begin_layout LyX-Code
13865 %
13866 \backslash
13867 onlynotes{
13868 \backslash
13869 notes}
13870 \end_layout
13871
13872 \begin_layout Standard
13873 One final thing: I created this class to support the \SpecialChar LaTeX2e
13874  
13875 \begin_inset Quotes eld
13876 \end_inset
13877
13878
13879 \noun on
13880 Sli\SpecialChar TeX
13881
13882 \noun default
13883  emulation
13884 \begin_inset Quotes erd
13885 \end_inset
13886
13887  class, one of the built-in \SpecialChar LaTeX2e
13888  classes.
13889  Neither I nor the rest of the \SpecialChar LyX
13890  Team endorse or oppose the use of this built-in
13891  slide class.
13892  It's here if you want it or need it.
13893  There exist other \SpecialChar LaTeX2e
13894  classes for creating presentations, such as the 
13895 \family sans
13896 Foils
13897 \family default
13898  class [see section
13899 \begin_inset space ~
13900 \end_inset
13901
13902
13903 \begin_inset CommandInset ref
13904 LatexCommand ref
13905 reference "sec:foiltex"
13906
13907 \end_inset
13908
13909 ] or the 
13910 \begin_inset Quotes eld
13911 \end_inset
13912
13913
13914 \family typewriter
13915 seminar
13916 \family default
13917
13918 \begin_inset Quotes erd
13919 \end_inset
13920
13921  package [present on some \SpecialChar TeX
13922  distributions].
13923  The latter is not yet supported under \SpecialChar LyX
13924 .
13925 \begin_inset Foot
13926 status collapsed
13927
13928 \begin_layout Plain Layout
13929 Perhaps you can take on the task\SpecialChar ldots
13930
13931 \end_layout
13932
13933 \end_inset
13934
13935  I know nothing about these other classes.
13936  Try them out to see what sort of alternative they provide.
13937 \end_layout
13938
13939 \begin_layout Section
13940
13941 \change_inserted 564990737 1670439661
13942 Reports
13943 \end_layout
13944
13945 \begin_layout Subsection
13946
13947 \change_inserted 564990737 1670439661
13948 report
13949 \end_layout
13950
13951 \begin_layout Standard
13952
13953 \change_inserted 564990737 1670439661
13954 The document class 
13955 \family sans
13956 report
13957 \family default
13958  provides the 
13959 \family sans
13960 report.cls
13961 \family default
13962  document class for preparing reports.
13963  Like the 
13964 \family sans
13965 book
13966 \family default
13967  document class, this provides parts, chapters and sections but does not
13968  provide the paragraph styles needed for a book; like the 
13969 \family sans
13970 article
13971 \family default
13972  document class, it provides the abstract paragraph style.
13973  In two-sided mode, it does not start a new chapter on the right hand page.
13974 \end_layout
13975
13976 \begin_layout Standard
13977
13978 \change_inserted 564990737 1672743528
13979 The remaining 
13980 \family sans
13981 report
13982 \family default
13983  document classes are described in the Collections (section
13984 \begin_inset space ~
13985 \end_inset
13986
13987
13988 \begin_inset CommandInset ref
13989 LatexCommand ref
13990 reference "sec:Collections"
13991
13992 \end_inset
13993
13994 ).
13995 \end_layout
13996
13997 \begin_layout Standard
13998
13999 \change_inserted 564990737 1672743530
14000
14001 \lang american
14002 For 
14003 \family sans
14004 report
14005 \begin_inset space \thinspace{}
14006 \end_inset
14007
14008 (Japanese in vertical writing)
14009 \family default
14010  and 
14011 \family sans
14012 report
14013 \begin_inset space \thinspace{}
14014 \end_inset
14015
14016 (Japanese)
14017 \family default
14018 , see section
14019 \begin_inset space ~
14020 \end_inset
14021
14022
14023 \begin_inset CommandInset ref
14024 LatexCommand ref
14025 reference "subsec:Japanese"
14026
14027 \end_inset
14028
14029 .
14030 \end_layout
14031
14032 \begin_layout Standard
14033
14034 \change_inserted 564990737 1672743530
14035
14036 \lang american
14037 For 
14038 \family sans
14039 report
14040 \begin_inset space \thinspace{}
14041 \end_inset
14042
14043 (KOMA-Script)
14044 \family default
14045 , see section
14046 \begin_inset space ~
14047 \end_inset
14048
14049
14050 \begin_inset CommandInset ref
14051 LatexCommand ref
14052 reference "subsec:KOMA-Script"
14053
14054 \end_inset
14055
14056 .
14057 \end_layout
14058
14059 \begin_layout Standard
14060
14061 \change_inserted 564990737 1672743530
14062
14063 \lang american
14064 For 
14065 \family sans
14066 report
14067 \begin_inset space \thinspace{}
14068 \end_inset
14069
14070 (with extra font sizes)
14071 \family default
14072 , see section
14073 \begin_inset space ~
14074 \end_inset
14075
14076
14077 \begin_inset CommandInset ref
14078 LatexCommand ref
14079 reference "subsec:Extra-font-sizes"
14080
14081 \end_inset
14082
14083 .
14084 \end_layout
14085
14086 \begin_layout Standard
14087
14088 \change_inserted 564990737 1672743569
14089
14090 \lang american
14091 For 
14092 \family sans
14093 report
14094 \begin_inset space \thinspace{}
14095 \end_inset
14096
14097 (Polish version by M.
14098 \begin_inset space \thinspace{}
14099 \end_inset
14100
14101 W.)
14102 \family default
14103 , see section
14104 \begin_inset space ~
14105 \end_inset
14106
14107
14108 \begin_inset CommandInset ref
14109 LatexCommand ref
14110 reference "subsec:Polish-M.W.collection"
14111 plural "false"
14112 caps "false"
14113 noprefix "false"
14114
14115 \end_inset
14116
14117 .
14118 \end_layout
14119
14120 \begin_layout Section
14121
14122 \change_inserted 564990737 1670439674
14123 Scripts (drama)
14124 \end_layout
14125
14126 \begin_layout Subsection
14127 Broadway
14128 \end_layout
14129
14130 \begin_layout Standard
14131 by 
14132 \shape smallcaps
14133 Garst Reese
14134 \end_layout
14135
14136 \begin_layout Subsubsection
14137 Introduction
14138 \end_layout
14139
14140 \begin_layout Standard
14141 Broadway is for writing plays.
14142  The format is more decorative than Hollywood, and much less standardized.
14143  This format should be suitable for workshops.
14144 \end_layout
14145
14146 \begin_layout Subsubsection
14147 Special problems
14148 \end_layout
14149
14150 \begin_layout Standard
14151 The same as in Hollywood.
14152 \end_layout
14153
14154 \begin_layout Subsubsection
14155 Special features
14156 \end_layout
14157
14158 \begin_layout Standard
14159 Insert the 
14160 \family sans
14161 Speaker
14162 \family default
14163  names as labels then cross-reference the label to insert the name.
14164  The cross-reference dialog will show the current cast of characters.
14165 \end_layout
14166
14167 \begin_layout Subsubsection
14168 Paper size and Margins
14169 \end_layout
14170
14171 \begin_layout Standard
14172 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
14173 \end_layout
14174
14175 \begin_layout Subsubsection
14176 Environments
14177 \end_layout
14178
14179 \begin_layout Standard
14180 The following environments are available.
14181  You can use broadway.bind to get the bind keys shown at the right.
14182 \end_layout
14183
14184 \begin_layout Itemize
14185
14186 \family sans
14187 Standard
14188 \begin_inset Newline newline
14189 \end_inset
14190
14191
14192 \family default
14193 You should not have to use this, but it is here for anything that does not
14194  fit otherwise.
14195 \end_layout
14196
14197 \begin_layout Itemize
14198
14199 \family sans
14200 Narrative
14201 \begin_inset space \hfill{}
14202 \end_inset
14203
14204 M-z n
14205 \begin_inset Newline newline
14206 \end_inset
14207
14208
14209 \family default
14210 Used to describe stage setting and the action.
14211  First use of speaker names in all CAPs.
14212 \end_layout
14213
14214 \begin_layout Itemize
14215
14216 \family sans
14217 ACT
14218 \begin_inset space \hfill{}
14219 \end_inset
14220
14221 M-z a
14222 \begin_inset Newline newline
14223 \end_inset
14224
14225
14226 \family default
14227 Automatically numbered.
14228  On screen it will be arabic, but will print as Roman.
14229 \end_layout
14230
14231 \begin_layout Itemize
14232
14233 \family sans
14234 ACT*
14235 \begin_inset space \hfill{}
14236 \end_inset
14237
14238 M-z S at
14239 \begin_inset Newline newline
14240 \end_inset
14241
14242
14243 \family default
14244 Subtitle for 
14245 \family sans
14246 ACT.
14247
14248 \family default
14249  It is just centered text.
14250 \end_layout
14251
14252 \begin_layout Itemize
14253
14254 \family sans
14255 SCENE
14256 \begin_inset space \hfill{}
14257 \end_inset
14258
14259 M-z S-S
14260 \begin_inset Newline newline
14261 \end_inset
14262
14263
14264 \family default
14265 Not automatically numbered.
14266  You supply the number.
14267  This is because I couldn't figure out how.
14268 \end_layout
14269
14270 \begin_layout Itemize
14271
14272 \family sans
14273 AT_RISE:
14274 \begin_inset space \hfill{}
14275 \end_inset
14276
14277 M-z S-R
14278 \begin_inset Newline newline
14279 \end_inset
14280
14281
14282 \family default
14283 A special case of Narrative to describe the setting and action as the curtain
14284  rises.
14285 \end_layout
14286
14287 \begin_layout Itemize
14288
14289 \family sans
14290 Speaker
14291 \begin_inset space \hfill{}
14292 \end_inset
14293
14294 M-z s
14295 \begin_inset Newline newline
14296 \end_inset
14297
14298
14299 \family default
14300 The speaker's (actor's) title, centered in all CAPS.
14301 \end_layout
14302
14303 \begin_layout Itemize
14304
14305 \family sans
14306 Parenthetical
14307 \begin_inset space \hfill{}
14308 \end_inset
14309
14310 M-z p
14311 \begin_inset Newline newline
14312 \end_inset
14313
14314
14315 \family default
14316 Instructions to the speaker.
14317  The parentheses are automatically inserted.
14318  The ( will appear on screen, but both will be in the printed play.
14319  This environment is only used within 
14320 \family sans
14321 Dialogue
14322 \family default
14323 .
14324 \end_layout
14325
14326 \begin_layout Itemize
14327
14328 \family sans
14329 Dialogue
14330 \begin_inset space \hfill{}
14331 \end_inset
14332
14333 M-z d
14334 \begin_inset Newline newline
14335 \end_inset
14336
14337
14338 \family default
14339 What the Speaker says.
14340 \end_layout
14341
14342 \begin_layout Itemize
14343
14344 \family sans
14345 CURTAIN
14346 \begin_inset space \hfill{}
14347 \end_inset
14348
14349 M-z S-C
14350 \begin_inset Newline newline
14351 \end_inset
14352
14353
14354 \family default
14355 The curtain comes down.
14356 \end_layout
14357
14358 \begin_layout Itemize
14359
14360 \family sans
14361 Title
14362 \begin_inset space \hfill{}
14363 \end_inset
14364
14365 M-z S-T
14366 \end_layout
14367
14368 \begin_layout Itemize
14369
14370 \family sans
14371 Author
14372 \begin_inset space \hfill{}
14373 \end_inset
14374
14375 M-z S-A
14376 \end_layout
14377
14378 \begin_layout Itemize
14379
14380 \family sans
14381 Right_Address
14382 \begin_inset space \hfill{}
14383 \end_inset
14384
14385 M-z r
14386 \end_layout
14387
14388 \begin_layout Standard
14389 Hello there.
14390 \end_layout
14391
14392 \begin_layout Subsection
14393 Hollywood (Hollywood spec scripts)
14394 \end_layout
14395
14396 \begin_layout Standard
14397 by 
14398 \shape smallcaps
14399 Garst Reese
14400 \end_layout
14401
14402 \begin_layout Subsubsection
14403 Introduction
14404 \end_layout
14405
14406 \begin_layout Standard
14407 Getting the format of a Hollywood script right is a 
14408 \begin_inset Quotes eld
14409 \end_inset
14410
14411 rite of passage.
14412 \begin_inset Quotes erd
14413 \end_inset
14414
14415  It is designed to make the readers focus on content and to be easy and
14416  familiar for the actors to read.
14417  Each page of a script should be one minute of film.
14418  Nothing goes in a script that you cannot see or hear on screen.
14419  The courier 12 pt font should be used throughout.
14420  No italics.
14421 \end_layout
14422
14423 \begin_layout Subsubsection
14424 Special problems
14425 \end_layout
14426
14427 \begin_layout Standard
14428 Speakers' lines should NEVER break in mid-sentence.
14429  If a speaker's lines continue over a page break, repeat the 
14430 \family sans
14431 Speaker
14432 \family default
14433  title followed by (Cont'd).
14434 \end_layout
14435
14436 \begin_layout Subsubsection
14437 Special features
14438 \end_layout
14439
14440 \begin_layout Standard
14441 Insert the 
14442 \family sans
14443 Speaker
14444 \family default
14445  names as labels then cross-reference the label to insert the name.
14446  The cross-reference dialog will show the current cast of characters.
14447  You can use this to insert the speaker name in narratives also.
14448 \end_layout
14449
14450 \begin_layout Subsubsection
14451 Paper size and Margins
14452 \end_layout
14453
14454 \begin_layout Standard
14455 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
14456 \end_layout
14457
14458 \begin_layout Subsubsection
14459 Environments
14460 \end_layout
14461
14462 \begin_layout Standard
14463 The following environments are available.
14464  You can use hollywood.bind to get the bind keys shown at the right.
14465 \end_layout
14466
14467 \begin_layout Itemize
14468
14469 \family sans
14470 Standard
14471 \begin_inset Newline newline
14472 \end_inset
14473
14474
14475 \family default
14476 Used where nothing else works.
14477  Try to avoid it.
14478 \end_layout
14479
14480 \begin_layout Itemize
14481
14482 \family sans
14483 FADE_IN
14484 \family default
14485 :
14486 \begin_inset space \hfill{}
14487 \end_inset
14488
14489
14490 \family sans
14491 M-z S-I
14492 \family default
14493
14494 \begin_inset Newline newline
14495 \end_inset
14496
14497 Usually followed by something like 
14498 \begin_inset Quotes eld
14499 \end_inset
14500
14501 on Sally waking up.
14502 \begin_inset Quotes erd
14503 \end_inset
14504
14505
14506 \end_layout
14507
14508 \begin_layout Itemize
14509
14510 \family sans
14511 INT:
14512 \begin_inset space \hfill{}
14513 \end_inset
14514
14515 M-z i
14516 \begin_inset Newline newline
14517 \end_inset
14518
14519
14520 \family default
14521 Introduces a new INTERIOR camera set-up.
14522  Always followed by DAY or NIGHT, or something similar to define the lighting
14523  required.
14524  Everthing on this line in CAPS.
14525 \end_layout
14526
14527 \begin_layout Itemize
14528
14529 \family sans
14530 EXT:
14531 \begin_inset space \hfill{}
14532 \end_inset
14533
14534 M-z e
14535 \begin_inset Newline newline
14536 \end_inset
14537
14538
14539 \family default
14540 Introduces a new EXTERIOR camera set-up.
14541  Everthing on this line in CAPS.
14542 \end_layout
14543
14544 \begin_layout Itemize
14545
14546 \family sans
14547 Speaker
14548 \begin_inset space \hfill{}
14549 \end_inset
14550
14551 M-z s
14552 \begin_inset Newline newline
14553 \end_inset
14554
14555
14556 \family default
14557 The character speaking.
14558 \end_layout
14559
14560 \begin_layout Itemize
14561
14562 \family sans
14563 Parenthetical
14564 \begin_inset space \hfill{}
14565 \end_inset
14566
14567 M-z p
14568 \begin_inset Newline newline
14569 \end_inset
14570
14571
14572 \family default
14573 Instructions to the speaker.
14574  The () are automatically inserted.
14575 \end_layout
14576
14577 \begin_layout Itemize
14578
14579 \family sans
14580 Dialogue
14581 \begin_inset space \hfill{}
14582 \end_inset
14583
14584 M-z d
14585 \begin_inset Newline newline
14586 \end_inset
14587
14588
14589 \family default
14590 What the 
14591 \family sans
14592 Speaker
14593 \family default
14594  says.
14595 \end_layout
14596
14597 \begin_layout Itemize
14598
14599 \family sans
14600 Transition
14601 \begin_inset space \hfill{}
14602 \end_inset
14603
14604 M-z t
14605 \begin_inset Newline newline
14606 \end_inset
14607
14608
14609 \family default
14610 Camera movement instruction.
14611  e.
14612 \begin_inset space \thinspace{}
14613 \end_inset
14614
14615 g.
14616 \begin_inset space \space{}
14617 \end_inset
14618
14619 CUT TO:
14620 \end_layout
14621
14622 \begin_layout Itemize
14623
14624 \family sans
14625 FADE OUT:
14626 \begin_inset space \hfill{}
14627 \end_inset
14628
14629 M-z S-I
14630 \end_layout
14631
14632 \begin_layout Itemize
14633
14634 \family sans
14635 Author
14636 \begin_inset space \hfill{}
14637 \end_inset
14638
14639 M-z S-A
14640 \end_layout
14641
14642 \begin_layout Itemize
14643
14644 \family sans
14645 Title
14646 \begin_inset space \hfill{}
14647 \end_inset
14648
14649 M-z S-T
14650 \end_layout
14651
14652 \begin_layout Itemize
14653
14654 \family sans
14655 Right_Address
14656 \begin_inset space \hfill{}
14657 \end_inset
14658
14659 M-z r
14660 \end_layout
14661
14662 \begin_layout Subsubsection
14663 Script jargon
14664 \end_layout
14665
14666 \begin_layout Itemize
14667 (O.S) — off screen
14668 \end_layout
14669
14670 \begin_layout Itemize
14671 (V.0) — voice over
14672 \end_layout
14673
14674 \begin_layout Itemize
14675 b.
14676 \begin_inset space \thinspace{}
14677 \end_inset
14678
14679 g.
14680  — background
14681 \end_layout
14682
14683 \begin_layout Itemize
14684 C.U.
14685  — close-up
14686 \end_layout
14687
14688 \begin_layout Itemize
14689 PAN — camera movement
14690 \end_layout
14691
14692 \begin_layout Itemize
14693 INSERT — cut to close-up of
14694 \end_layout
14695
14696 \begin_layout Chapter
14697
14698 \change_inserted 564990737 1671185876
14699 Modules
14700 \end_layout
14701
14702 \begin_layout Section
14703
14704 \change_inserted 564990737 1671716212
14705
14706 \lang american
14707 Academic Field Specifics
14708 \end_layout
14709
14710 \begin_layout Subsection
14711
14712 \change_inserted 564990737 1671716212
14713
14714 \lang american
14715 Chemistry: Hazard and Precautionary Statements 
14716 \end_layout
14717
14718 \begin_layout Standard
14719
14720 \change_inserted 564990737 1671716212
14721
14722 \lang american
14723 This module provides two insets to typeset numbers and phrases of chemical
14724  hazard and precautionary statements.
14725  For a description see 
14726 \family sans
14727 \lang british
14728 File\SpecialChar menuseparator
14729 Open Example\SpecialChar menuseparator
14730 Modules\SpecialChar menuseparator
14731 Hazard and Precautionary Statements
14732 \family default
14733  and 
14734 \family sans
14735 Help\SpecialChar menuseparator
14736 Specific Manuals\SpecialChar menuseparator
14737 Hazard and Precautionary Statements
14738 \family default
14739 \lang american
14740 .
14741 \end_layout
14742
14743 \begin_layout Subsection
14744
14745 \change_inserted 564990737 1671716212
14746
14747 \series bold
14748 \lang american
14749 Chemistry: Risk and Safety Statements
14750 \end_layout
14751
14752 \begin_layout Standard
14753
14754 \change_inserted 564990737 1671716212
14755
14756 \lang american
14757 This module provides two insets, 
14758 \family sans
14759 R-S number
14760 \family default
14761  and 
14762 \family sans
14763 R-S phrase
14764 \family default
14765 , accessible via the menu 
14766 \family sans
14767 \bar under
14768 I
14769 \bar default
14770 nsert\SpecialChar menuseparator
14771 Custom
14772 \begin_inset space ~
14773 \end_inset
14774
14775 Insets
14776 \family default
14777  and an environment to typeset numbers and phrases of chemical risk and
14778  safety statements.
14779 \end_layout
14780
14781 \begin_layout Subsection
14782
14783 \change_inserted 564990737 1671716212
14784
14785 \lang american
14786 Linguistics
14787 \end_layout
14788
14789 \begin_layout Standard
14790
14791 \change_inserted 564990737 1671716212
14792
14793 \lang american
14794 This module uses the 
14795 \family sans
14796 covington.sty
14797 \family default
14798  package to add environments useful for linguistics (numbered examples,
14799  glosses, semantic markup, tableau floats).
14800  You can obtain information about this module in 
14801 \family sans
14802 \bar under
14803 H
14804 \bar default
14805 elp\SpecialChar menuseparator
14806 S
14807 \bar under
14808 p
14809 \bar default
14810 ecific
14811 \begin_inset space ~
14812 \end_inset
14813
14814 Manuals\SpecialChar menuseparator
14815
14816 \bar under
14817 L
14818 \bar default
14819 inguistics
14820 \family default
14821  and 
14822 \family sans
14823 \lang british
14824 File\SpecialChar menuseparator
14825 Open Example\SpecialChar menuseparator
14826
14827 \lang american
14828 Modules\SpecialChar menuseparator
14829 Linguistics
14830 \family default
14831 .
14832 \end_layout
14833
14834 \begin_layout Section
14835
14836 \change_inserted 564990737 1671788778
14837
14838 \lang american
14839 Accessibility
14840 \end_layout
14841
14842 \begin_layout Subsection
14843
14844 \change_inserted 564990737 1671788778
14845
14846 \lang american
14847 Braille
14848 \end_layout
14849
14850 \begin_layout Standard
14851
14852 \change_inserted 564990737 1671788778
14853
14854 \lang american
14855 This module supports the Braille writing system.
14856  It requires the \SpecialChar LaTeX
14857  package 
14858 \family typewriter
14859 braille.sty
14860 \family default
14861 .
14862  This and its documentation can be obtained from 
14863 \begin_inset CommandInset href
14864 LatexCommand href
14865 name "CTAN"
14866 target "https://www.ctan.org/pkg/braille"
14867 literal "false"
14868
14869 \end_inset
14870
14871 .
14872  You do not have to reconfigure your system after installing it.
14873  See 
14874 \family sans
14875 \bar under
14876 H
14877 \bar default
14878 elp\SpecialChar menuseparator
14879 S
14880 \bar under
14881 p
14882 \bar default
14883 ecific
14884 \begin_inset space ~
14885 \end_inset
14886
14887 Manuals\SpecialChar menuseparator
14888
14889 \bar under
14890 B
14891 \bar default
14892 raille
14893 \family default
14894  and 
14895 \family sans
14896 File\SpecialChar menuseparator
14897 Open Example\SpecialChar menuseparator
14898 Modules\SpecialChar menuseparator
14899 Braille
14900 \family default
14901 .
14902 \end_layout
14903
14904 \begin_layout Section
14905
14906 \change_inserted 564990737 1671788778
14907
14908 \lang american
14909 Annotation & Revision
14910 \end_layout
14911
14912 \begin_layout Subsection
14913
14914 \change_inserted 564990737 1671788778
14915
14916 \lang american
14917 FiXme Notes
14918 \end_layout
14919
14920 \begin_layout Standard
14921
14922 \change_inserted 564990737 1671788778
14923
14924 \lang american
14925 This module provides “FiXme” (marginal) annotations for document revision
14926  purposes.
14927  A list of annotations can be produced by using the “List of FIXMEs” paragraph
14928  style.
14929  The annotations are customizable via the LaTeX preamble.
14930  See the FiXme documentation which can be obtained from 
14931 \begin_inset CommandInset href
14932 LatexCommand href
14933 name "CTAN"
14934 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
14935 literal "false"
14936
14937 \end_inset
14938
14939 .
14940  
14941 \end_layout
14942
14943 \begin_layout Paragraph
14944
14945 \change_inserted 564990737 1671788778
14946
14947 \lang american
14948 Note:
14949 \end_layout
14950
14951 \begin_layout Standard
14952
14953 \change_inserted 564990737 1671788778
14954
14955 \lang american
14956 by default, the notes are only displayed in “draft” mode (if the option
14957  “draft” has been inserted in 
14958 \family sans
14959 Document\SpecialChar menuseparator
14960 Settings\SpecialChar menuseparator
14961 Document Class\SpecialChar menuseparator
14962 Class Options\SpecialChar menuseparator
14963 Custom
14964 \family default
14965 ).
14966  To display them always, insert 
14967 \family typewriter
14968
14969 \backslash
14970 fxsetup{draft}
14971 \family default
14972  in 
14973 \family sans
14974 Document\SpecialChar menuseparator
14975 Settings\SpecialChar menuseparator
14976 \SpecialChar LaTeX
14977  Preamble
14978 \family default
14979 .
14980  
14981 \end_layout
14982
14983 \begin_layout Subsection
14984
14985 \change_inserted 564990737 1671788778
14986
14987 \lang american
14988 PDF Comments
14989 \end_layout
14990
14991 \begin_layout Standard
14992
14993 \change_inserted 564990737 1671788778
14994
14995 \lang american
14996 This module provides various kinds of annotations for PDF output.
14997  See 
14998 \family sans
14999 Help\SpecialChar menuseparator
15000 Specific Manuals\SpecialChar menuseparator
15001 PDF comments and File\SpecialChar menuseparator
15002 Open Example\SpecialChar menuseparator
15003 Modules\SpecialChar menuseparator
15004 PDF Comments
15005 \family default
15006 .
15007 \end_layout
15008
15009 \begin_layout Subsection
15010
15011 \change_inserted 564990737 1671788778
15012
15013 \series bold
15014 \lang american
15015 PDF Form
15016 \end_layout
15017
15018 \begin_layout Standard
15019
15020 \change_inserted 564990737 1671788778
15021
15022 \lang american
15023 This module provides fields and buttons for PDF forms.
15024  See the 
15025 \begin_inset CommandInset href
15026 LatexCommand href
15027 name "hyperref documentation"
15028 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
15029 literal "false"
15030
15031 \end_inset
15032
15033
15034 \family sans
15035 Help\SpecialChar menuseparator
15036 Specific Manuals\SpecialChar menuseparator
15037 PDF forms and File\SpecialChar menuseparator
15038 Open Example\SpecialChar menuseparator
15039 Modules\SpecialChar menuseparator
15040 PDF Form
15041 \family default
15042 .
15043 \end_layout
15044
15045 \begin_layout Subsection
15046
15047 \change_inserted 564990737 1671788778
15048
15049 \series bold
15050 \lang american
15051 Ruby (Furigana)
15052 \end_layout
15053
15054 \begin_layout Standard
15055
15056 \change_inserted 564990737 1671788778
15057
15058 \lang american
15059 This module defines an inset to typeset reading aids (ruby, furigana) to
15060  Chinese characters.
15061  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
15062  the TeX engine) or a fallback definition.
15063  
15064 \end_layout
15065
15066 \begin_layout Subsection
15067
15068 \change_inserted 564990737 1671788778
15069
15070 \series bold
15071 \lang american
15072 TODO notes
15073 \end_layout
15074
15075 \begin_layout Standard
15076
15077 \change_inserted 564990737 1671788778
15078
15079 \lang american
15080 This module provides custom insets to insert TODO items in your document.
15081  In order to generate a “List of TODOs,” the module provides a paragraph
15082  style.
15083  Inserting “final” in 
15084 \family sans
15085 Document\SpecialChar menuseparator
15086 Settings\SpecialChar menuseparator
15087 Document Class\SpecialChar menuseparator
15088 Class Options\SpecialChar menuseparator
15089 Custom
15090 \family default
15091 ) suppresses the output of TODO notes.
15092  See the 
15093 \begin_inset CommandInset href
15094 LatexCommand href
15095 name "todonotes documentation"
15096 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
15097 literal "false"
15098
15099 \end_inset
15100
15101 .
15102 \end_layout
15103
15104 \begin_layout Section
15105
15106 \change_inserted 564990737 1671829045
15107
15108 \lang american
15109 Bibliography 
15110 \end_layout
15111
15112 \begin_layout Subsection
15113
15114 \change_inserted 564990737 1671829045
15115
15116 \lang american
15117 APA Style with NatBib
15118 \end_layout
15119
15120 \begin_layout Standard
15121
15122 \change_inserted 564990737 1671829045
15123
15124 \lang american
15125 This module adds support for using natbib together with apacite (the bibliograph
15126 y style need not be apacite — it could be apacite, apacitex, or any bibliography
15127  that works with both the natbib and apacite packages.) 
15128 \end_layout
15129
15130 \begin_layout Section
15131
15132 \change_inserted 564990737 1671829045
15133
15134 \lang american
15135 Boxes
15136 \end_layout
15137
15138 \begin_layout Subsection
15139
15140 \change_inserted 564990737 1671829045
15141
15142 \lang american
15143 Fancy Colored Boxes
15144 \end_layout
15145
15146 \begin_layout Standard
15147
15148 \change_inserted 564990737 1671829045
15149
15150 \lang american
15151 This module adds ten custom insets that support colored boxes via the tcolorbox
15152  package.
15153  See 
15154 \family sans
15155 Help\SpecialChar menuseparator
15156 Specific Manuals\SpecialChar menuseparator
15157 Colored boxes
15158 \family default
15159
15160 \family sans
15161 File\SpecialChar menuseparator
15162 Open Example\SpecialChar menuseparator
15163 Modules\SpecialChar menuseparator
15164 Fancy Color Boxes
15165 \family default
15166  the 
15167 \begin_inset CommandInset href
15168 LatexCommand href
15169 name "tcolorbox documentation"
15170 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
15171 literal "false"
15172
15173 \end_inset
15174
15175  for details.
15176  
15177 \end_layout
15178
15179 \begin_layout Subsection
15180
15181 \change_inserted 564990737 1671829045
15182
15183 \lang american
15184 Graphic boxes
15185 \end_layout
15186
15187 \begin_layout Standard
15188
15189 \change_inserted 564990737 1671829045
15190
15191 \lang american
15192 This provides the custom insets 
15193 \family sans
15194 Reflectbox
15195 \family default
15196
15197 \family sans
15198 Resizebox
15199 \family default
15200
15201 \family sans
15202 Rotatebox
15203 \family default
15204  and 
15205 \family sans
15206 Scalebox
15207 \family default
15208  to scale and rotate its content.
15209 \end_layout
15210
15211 \begin_layout Standard
15212
15213 \change_inserted 564990737 1671829045
15214
15215 \family sans
15216 \lang american
15217 Reflectbox
15218 \family default
15219  is a simple way of reversing text without any other enhancement:
15220 \end_layout
15221
15222 \begin_layout Standard
15223
15224 \change_inserted 564990737 1671829045
15225
15226 \lang american
15227 \begin_inset Flex Reflectbox
15228 status open
15229
15230 \begin_layout Plain Layout
15231
15232 \change_inserted 564990737 1671829045
15233
15234 \lang american
15235 Great Western Railway
15236 \change_unchanged
15237
15238 \end_layout
15239
15240 \end_inset
15241
15242
15243 \end_layout
15244
15245 \begin_layout Standard
15246
15247 \change_inserted 564990737 1671829045
15248
15249 \lang american
15250 (You will need to use Ctrl-R to see any of these examples.)
15251 \end_layout
15252
15253 \begin_layout Standard
15254
15255 \change_inserted 564990737 1671829045
15256
15257 \family sans
15258 \lang american
15259 Resizebox
15260 \family default
15261  allows you to specify the dimensions of the text or image; permissible
15262  units are em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; if you
15263  enter 
15264 \family typewriter
15265 !
15266 \family default
15267  for 
15268 \family typewriter
15269 Height
15270 \family default
15271  it scales by the width factor:
15272 \end_layout
15273
15274 \begin_layout Standard
15275
15276 \change_inserted 564990737 1671829045
15277
15278 \lang american
15279 \begin_inset Flex Resizebox
15280 status open
15281
15282 \begin_layout Plain Layout
15283
15284 \change_inserted 564990737 1671829045
15285
15286 \lang american
15287 \begin_inset Argument 1
15288 status open
15289
15290 \begin_layout Plain Layout
15291
15292 \change_inserted 564990737 1671829045
15293
15294 \lang american
15295 48mm
15296 \change_unchanged
15297
15298 \end_layout
15299
15300 \end_inset
15301
15302
15303 \begin_inset Argument 2
15304 status open
15305
15306 \begin_layout Plain Layout
15307
15308 \change_inserted 564990737 1671829045
15309
15310 \lang american
15311 !
15312 \change_unchanged
15313
15314 \end_layout
15315
15316 \end_inset
15317
15318 Great Western Railway
15319 \change_unchanged
15320
15321 \end_layout
15322
15323 \end_inset
15324
15325
15326 \end_layout
15327
15328 \begin_layout Standard
15329
15330 \change_inserted 564990737 1671829045
15331
15332 \family sans
15333 \lang american
15334 Rotatebox
15335 \family default
15336  allows you to rotate text around the reference point of the box.
15337  If you wish to rotate the box around a different origin, place the cursor
15338  inside the box and select Insert\SpecialChar menuseparator
15339 Origin; o
15340 \family typewriter
15341 rigin
15342 \family default
15343  is specified as 
15344 \family typewriter
15345 c
15346 \family default
15347 ,
15348 \family typewriter
15349  l
15350 \family default
15351 ,
15352 \family typewriter
15353  r
15354 \family default
15355 ,
15356 \family typewriter
15357  b
15358 \family default
15359 ,
15360 \family typewriter
15361  t
15362 \family default
15363  or meaningful combinations of these and the counterclockwise rotation angle
15364  is expressed in degrees.
15365  For example:
15366 \end_layout
15367
15368 \begin_layout Standard
15369
15370 \change_inserted 564990737 1671829045
15371
15372 \lang american
15373 \begin_inset Flex Rotatebox
15374 status open
15375
15376 \begin_layout Plain Layout
15377
15378 \change_inserted 564990737 1671829045
15379
15380 \lang american
15381 \begin_inset Argument 1
15382 status open
15383
15384 \begin_layout Plain Layout
15385
15386 \change_inserted 564990737 1671829045
15387
15388 \lang british
15389 =c
15390 \change_unchanged
15391
15392 \end_layout
15393
15394 \end_inset
15395
15396
15397 \begin_inset Argument 2
15398 status open
15399
15400 \begin_layout Plain Layout
15401
15402 \change_inserted 564990737 1671829045
15403
15404 \lang british
15405 30
15406 \change_unchanged
15407
15408 \end_layout
15409
15410 \end_inset
15411
15412 Great Western Railway
15413 \change_unchanged
15414
15415 \end_layout
15416
15417 \end_inset
15418
15419
15420 \end_layout
15421
15422 \begin_layout Standard
15423
15424 \change_inserted 564990737 1671829045
15425
15426 \lang american
15427 You can combine boxes as in:
15428 \end_layout
15429
15430 \begin_layout Standard
15431
15432 \change_inserted 564990737 1671829045
15433
15434 \lang british
15435 \begin_inset Flex Rotatebox
15436 status open
15437
15438 \begin_layout Plain Layout
15439
15440 \change_inserted 564990737 1671829045
15441
15442 \lang british
15443 \begin_inset Argument 1
15444 status open
15445
15446 \begin_layout Plain Layout
15447
15448 \change_inserted 564990737 1671829045
15449
15450 \lang british
15451 =c
15452 \change_unchanged
15453
15454 \end_layout
15455
15456 \end_inset
15457
15458
15459 \begin_inset Argument 2
15460 status open
15461
15462 \begin_layout Plain Layout
15463
15464 \change_inserted 564990737 1671829045
15465
15466 \lang british
15467 -15
15468 \change_unchanged
15469
15470 \end_layout
15471
15472 \end_inset
15473
15474
15475 \begin_inset Flex Resizebox
15476 status open
15477
15478 \begin_layout Plain Layout
15479
15480 \change_inserted 564990737 1671829045
15481
15482 \lang british
15483 \begin_inset Argument 1
15484 status open
15485
15486 \begin_layout Plain Layout
15487
15488 \change_inserted 564990737 1671829045
15489
15490 \lang british
15491 48mm
15492 \change_unchanged
15493
15494 \end_layout
15495
15496 \end_inset
15497
15498
15499 \begin_inset Argument 2
15500 status open
15501
15502 \begin_layout Plain Layout
15503
15504 \change_inserted 564990737 1671829045
15505
15506 \lang british
15507 !
15508 \change_unchanged
15509
15510 \end_layout
15511
15512 \end_inset
15513
15514
15515 \begin_inset Flex Reflectbox
15516 status open
15517
15518 \begin_layout Plain Layout
15519
15520 \change_inserted 564990737 1671829045
15521
15522 \lang british
15523 Great Western Railway
15524 \change_unchanged
15525
15526 \end_layout
15527
15528 \end_inset
15529
15530
15531 \change_unchanged
15532
15533 \end_layout
15534
15535 \end_inset
15536
15537
15538 \change_unchanged
15539
15540 \end_layout
15541
15542 \end_inset
15543
15544
15545 \end_layout
15546
15547 \begin_layout Standard
15548
15549 \change_inserted 564990737 1671829045
15550
15551 \family sans
15552 \lang american
15553 Scalebox
15554 \family default
15555  scales text; select Insert\SpecialChar menuseparator
15556 V-Factor to add a vertical factor.
15557  If the vertical factor is omitted, the horizontal is used.
15558  Adding different horizontal and vertical values creates distortion as in
15559  
15560 \end_layout
15561
15562 \begin_layout Standard
15563
15564 \change_inserted 564990737 1671829045
15565
15566 \family typewriter
15567 \lang american
15568 \begin_inset Flex Scalebox
15569 status open
15570
15571 \begin_layout Plain Layout
15572
15573 \change_inserted 564990737 1671829045
15574
15575 \lang american
15576 \begin_inset Argument 1
15577 status open
15578
15579 \begin_layout Plain Layout
15580
15581 \change_inserted 564990737 1671829045
15582
15583 \lang american
15584 2
15585 \change_unchanged
15586
15587 \end_layout
15588
15589 \end_inset
15590
15591
15592 \begin_inset Argument 2
15593 status open
15594
15595 \begin_layout Plain Layout
15596
15597 \change_inserted 564990737 1671829045
15598
15599 \lang american
15600 1.5
15601 \change_unchanged
15602
15603 \end_layout
15604
15605 \end_inset
15606
15607
15608 \family roman
15609 Great Western Railway
15610 \change_unchanged
15611
15612 \end_layout
15613
15614 \end_inset
15615
15616 .
15617 \end_layout
15618
15619 \begin_layout Standard
15620
15621 \change_inserted 564990737 1671829045
15622
15623 \lang american
15624 A negative horizontal value reverses the text and a negative vertical value
15625  inverts it so that you get 
15626 \end_layout
15627
15628 \begin_layout Standard
15629
15630 \change_inserted 564990737 1671829045
15631
15632 \lang american
15633 \begin_inset Flex Scalebox
15634 status open
15635
15636 \begin_layout Plain Layout
15637
15638 \change_inserted 564990737 1671829045
15639
15640 \lang american
15641 \begin_inset Argument 1
15642 status open
15643
15644 \begin_layout Plain Layout
15645
15646 \change_inserted 564990737 1671829045
15647
15648 \lang british
15649 -1
15650 \change_unchanged
15651
15652 \end_layout
15653
15654 \end_inset
15655
15656
15657 \begin_inset Argument 2
15658 status open
15659
15660 \begin_layout Plain Layout
15661
15662 \change_inserted 564990737 1671829045
15663
15664 \lang british
15665 1
15666 \change_unchanged
15667
15668 \end_layout
15669
15670 \end_inset
15671
15672 Great Western Railway
15673 \change_unchanged
15674
15675 \end_layout
15676
15677 \end_inset
15678
15679  and 
15680 \begin_inset Flex Scalebox
15681 status open
15682
15683 \begin_layout Plain Layout
15684
15685 \change_inserted 564990737 1671829045
15686
15687 \lang american
15688 \begin_inset Argument 1
15689 status open
15690
15691 \begin_layout Plain Layout
15692
15693 \change_inserted 564990737 1671829045
15694
15695 \lang british
15696 1
15697 \change_unchanged
15698
15699 \end_layout
15700
15701 \end_inset
15702
15703
15704 \begin_inset Argument 2
15705 status open
15706
15707 \begin_layout Plain Layout
15708
15709 \change_inserted 564990737 1671829045
15710
15711 \lang british
15712 -1
15713 \change_unchanged
15714
15715 \end_layout
15716
15717 \end_inset
15718
15719 Great Western Railway
15720 \change_unchanged
15721
15722 \end_layout
15723
15724 \end_inset
15725
15726 .
15727 \end_layout
15728
15729 \begin_layout Subsection
15730
15731 \change_inserted 564990737 1671884699
15732
15733 \lang american
15734 Section Boxes
15735 \end_layout
15736
15737 \begin_layout Standard
15738
15739 \change_inserted 564990737 1671884699
15740
15741 \lang american
15742 This module defines Boxes with section header.
15743  It is mainly intended for the SciPoster Document class.
15744  
15745 \end_layout
15746
15747 \begin_layout Subsection
15748
15749 \change_inserted 564990737 1671884699
15750
15751 \lang american
15752 Variable-width Minipages
15753 \end_layout
15754
15755 \begin_layout Standard
15756
15757 \change_inserted 564990737 1671884699
15758
15759 \lang american
15760 This module adds a 
15761 \family sans
15762 Minipage (Var.
15763 \begin_inset space \thinspace{}
15764 \end_inset
15765
15766 Width)
15767 \family default
15768  inset to 
15769 \family sans
15770 Insert\SpecialChar menuseparator
15771 Custom Inset
15772 \family default
15773  using the 
15774 \family sans
15775 varwidth
15776 \family default
15777  LaTeX package.
15778  The 
15779 \family sans
15780 varwidth
15781 \family default
15782  package provides a variable-width minipage, whose resulting width is the
15783  width of its contents (if this does not exceed the specified maximum width).
15784  The inset has two optional arguments which can be added by placing the
15785  cursor inside the minipage and entering 
15786 \family sans
15787 Insert\SpecialChar menuseparator
15788 Vert.
15789 \begin_inset space \thinspace{}
15790 \end_inset
15791
15792 Adjustment
15793 \family default
15794  (
15795 \family typewriter
15796 c|t|b
15797 \family default
15798 ) or 
15799 \family sans
15800 Insert\SpecialChar menuseparator
15801 Max.
15802 \begin_inset space \thinspace{}
15803 \end_inset
15804
15805 Width
15806 \family default
15807  (defaults to 
15808 \family typewriter
15809
15810 \backslash
15811 linewidth
15812 \family default
15813 ).
15814  See 
15815 \family sans
15816 File\SpecialChar menuseparator
15817 Open Example\SpecialChar menuseparator
15818 Variable-width Minipages
15819 \family default
15820 .
15821  
15822 \end_layout
15823
15824 \begin_layout Section
15825
15826 \change_inserted 564990737 1671884699
15827
15828 \lang american
15829 Fixes & Hacks
15830 \end_layout
15831
15832 \begin_layout Subsection
15833
15834 \change_inserted 564990737 1671884699
15835
15836 \lang american
15837 Fix Computer Modern Fonts
15838 \end_layout
15839
15840 \begin_layout Standard
15841
15842 \change_inserted 564990737 1671884699
15843
15844 \lang american
15845 This module uses the 
15846 \family sans
15847 fix-cm
15848 \family default
15849  package to improve the appearance of Computer Modern fonts and make them
15850  available with arbitrary sizes.
15851  See the 
15852 \begin_inset CommandInset href
15853 LatexCommand href
15854 name "fix-cm documentation"
15855 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
15856 literal "false"
15857
15858 \end_inset
15859
15860 .
15861  
15862 \end_layout
15863
15864 \begin_layout Subsection
15865
15866 \change_inserted 564990737 1671884699
15867
15868 \lang american
15869 \SpecialChar LaTeX
15870  Kernel Fixes (Obsolete)
15871 \end_layout
15872
15873 \begin_layout Standard
15874
15875 \change_inserted 564990737 1671884699
15876
15877 \lang american
15878 This module loads the \SpecialChar LaTeX
15879  package 
15880 \family sans
15881 fixltx2e
15882 \family default
15883  which contains some bug fixes for \SpecialChar LaTeX
15884 .
15885  If you use this module your typeset document may look different when you
15886  process it, depending on the respective version of 
15887 \family sans
15888 fixltx2e
15889 \family default
15890 .
15891  
15892 \end_layout
15893
15894 \begin_layout Paragraph
15895
15896 \change_inserted 564990737 1671884699
15897
15898 \lang american
15899 Note:
15900 \end_layout
15901
15902 \begin_layout Standard
15903
15904 \change_inserted 564990737 1671884699
15905
15906 \lang american
15907 recent \SpecialChar LaTeX
15908  kernels (as of 2015/01/01) include the functionality of 
15909 \family sans
15910 fixltx2e
15911 \family default
15912 , so the 
15913 \family sans
15914 fixltx2e
15915 \family default
15916  module is obsolete with newer \SpecialChar LaTeX
15917  distributions.
15918  
15919 \end_layout
15920
15921 \begin_layout Subsection
15922
15923 \change_inserted 564990737 1671884699
15924
15925 \lang american
15926 Minimalistic Insets
15927 \end_layout
15928
15929 \begin_layout Standard
15930
15931 \change_inserted 564990737 1671884699
15932
15933 \lang american
15934 This module redefines several insets (Index, Branch, URL) as being Minimalistic.
15935 \end_layout
15936
15937 \begin_layout Subsection
15938
15939 \change_inserted 564990737 1671884699
15940
15941 \lang american
15942 Title and Preamble Hacks
15943 \end_layout
15944
15945 \begin_layout Standard
15946
15947 \change_inserted 564990737 1671884699
15948
15949 \lang american
15950 This module provides two new paragraph styles: 
15951 \end_layout
15952
15953 \begin_layout Enumerate
15954
15955 \change_inserted 564990737 1671884699
15956
15957 \family sans
15958 \lang american
15959 In Preamble
15960 \family default
15961  which puts whatever is entered into it into the preamble.
15962  This can be used, if one wishes, to include preamble code in the body of
15963  a LyX document.
15964  
15965 \end_layout
15966
15967 \begin_layout Enumerate
15968
15969 \change_inserted 564990737 1671884699
15970
15971 \family sans
15972 \lang american
15973 In Title
15974 \family default
15975  which that will put its contents into the body of the LaTeX document, but
15976  before 
15977 \family typewriter
15978
15979 \backslash
15980 maketitle
15981 \family default
15982  is issued.
15983  This is useful for making branches and notes in title-related material.
15984  (However, if you put these in a Standard layout, this signals to LyX to
15985  output 
15986 \family typewriter
15987
15988 \backslash
15989 maketitle
15990 \family default
15991 , which may then come too early.)
15992 \end_layout
15993
15994 \begin_layout Section
15995
15996 \change_inserted 564990737 1672081439
15997
15998 \lang american
15999 Floats & captions
16000 \end_layout
16001
16002 \begin_layout Subsection
16003
16004 \change_inserted 564990737 1672081439
16005
16006 \lang american
16007 Algorithm2e Float
16008 \end_layout
16009
16010 \begin_layout Standard
16011
16012 \change_inserted 564990737 1672081439
16013
16014 \lang american
16015 This module uses the 
16016 \family sans
16017 algorithm2e
16018 \family default
16019  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
16020  Use the Algorithm paragraph style to enter and indent the algorithm.
16021  See the 
16022 \begin_inset CommandInset href
16023 LatexCommand href
16024 name "algorithm2e documentation"
16025 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
16026 literal "false"
16027
16028 \end_inset
16029
16030 .
16031 \end_layout
16032
16033 \begin_layout Subsection
16034
16035 \change_inserted 564990737 1672081439
16036
16037 \lang american
16038 Bilingual Captions AKA Multilingual Captions
16039 \end_layout
16040
16041 \begin_layout Standard
16042
16043 \change_inserted 564990737 1672081439
16044
16045 \lang american
16046 This module provides the paragraph style 
16047 \family sans
16048 Caption
16049 \begin_inset space ~
16050 \end_inset
16051
16052 setup
16053 \family default
16054  with which to typeset multilingual captions.
16055  Within this paragraph style 
16056 \family sans
16057 Insert\SpecialChar menuseparator
16058 Language
16059 \family default
16060  allows you to enter the desired language using one of the babel names.
16061  See 
16062 \family sans
16063 File\SpecialChar menuseparator
16064 Open Example\SpecialChar menuseparator
16065 Multilingual Captions
16066 \family default
16067  and 
16068 \family sans
16069 Help\SpecialChar menuseparator
16070 Specific Manuals\SpecialChar menuseparator
16071 Multilingual Captions
16072 \family default
16073  further information on its use.
16074 \end_layout
16075
16076 \begin_layout Subsection
16077
16078 \change_inserted 564990737 1672081439
16079
16080 \lang american
16081 Number Figures by Section
16082 \end_layout
16083
16084 \begin_layout Standard
16085
16086 \change_inserted 564990737 1672081439
16087
16088 \lang american
16089 This module resets the figure number at section start and prepends the section
16090  number to the figure number, as in “Figure 2.1.” (By default book and report
16091  document classes number by Chapter and article document classes have a
16092  single sequence.) 
16093 \end_layout
16094
16095 \begin_layout Subsection
16096
16097 \change_inserted 564990737 1672081439
16098
16099 \lang american
16100 Number Tables by Section
16101 \end_layout
16102
16103 \begin_layout Standard
16104
16105 \change_inserted 564990737 1672081439
16106
16107 \lang american
16108 This module resets the table number at section start and prepends the section
16109  number to the table number, as in “Table 2.1.” (By default book and report
16110  document classes number by Chapter and article document classes have a
16111  single sequence.) 
16112 \end_layout
16113
16114 \begin_layout Section
16115
16116 \change_inserted 564990737 1672081439
16117
16118 \lang american
16119 Foot- and Endnotes
16120 \end_layout
16121
16122 \begin_layout Subsection
16123
16124 \change_inserted 564990737 1672081439
16125
16126 \lang american
16127 Endnotes (Basic)
16128 \end_layout
16129
16130 \begin_layout Standard
16131
16132 \change_inserted 564990737 1672081439
16133
16134 \lang american
16135 This module adds an endnote inset, in addition to footnotes.
16136  This uses the 
16137 \family sans
16138 endnotes
16139 \family default
16140  package, which has some limitations but works with older LaTeX distributions
16141  as well.
16142  Use 
16143 \family sans
16144 Insert\SpecialChar menuseparator
16145 Custom Inset\SpecialChar menuseparator
16146 Endnote
16147 \family default
16148  to insert an endnote and 
16149 \family sans
16150 Insert\SpecialChar menuseparator
16151 List/Contents/References\SpecialChar menuseparator
16152 Endnotes
16153 \family default
16154  to insert the endnotes list where you want the endnotes to appear.
16155  See also 
16156 \family sans
16157 Help\SpecialChar menuseparator
16158 Embedded\SpecialChar menuseparator
16159  Objects\SpecialChar menuseparator
16160 Notes\SpecialChar menuseparator
16161 Footnotes
16162 \family default
16163 .
16164 \end_layout
16165
16166 \begin_layout Subsection
16167
16168 \change_inserted 564990737 1672081439
16169
16170 \lang american
16171 Endnotes (Extended)
16172 \end_layout
16173
16174 \begin_layout Standard
16175
16176 \change_inserted 564990737 1672081439
16177
16178 \lang american
16179 This module adds an endnote inset, in addition to footnotes.
16180  This uses the 
16181 \family sans
16182 enotez
16183 \family default
16184  package which is more powerful and customizable than the 
16185 \family sans
16186 endnotes
16187 \family default
16188  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
16189  Use 
16190 \family sans
16191 Insert\SpecialChar menuseparator
16192 Custom Inset\SpecialChar menuseparator
16193 Endnote
16194 \family default
16195  to insert an endnote and 
16196 \family sans
16197 Insert\SpecialChar menuseparator
16198 List/Contents/References\SpecialChar menuseparator
16199 Endnotes
16200 \family default
16201  to insert the endnotes list where you want the endnotes to appear.
16202  See also 
16203 \family sans
16204 Help\SpecialChar menuseparator
16205 Embedded\SpecialChar menuseparator
16206  Objects\SpecialChar menuseparator
16207 Notes\SpecialChar menuseparator
16208 Footnotes
16209 \family default
16210 .
16211 \end_layout
16212
16213 \begin_layout Subsection
16214
16215 \change_inserted 564990737 1672081439
16216
16217 \lang american
16218 Footnotes as Endnotes (Basic)
16219 \end_layout
16220
16221 \begin_layout Standard
16222
16223 \change_inserted 564990737 1672081439
16224
16225 \lang american
16226 This module sets all footnotes as endnotes.
16227  This uses the 
16228 \family sans
16229 endnotes
16230 \family default
16231  package, which has some limitations but works with older LaTeX distributions
16232  as well.
16233  Use 
16234 \family sans
16235 Insert\SpecialChar menuseparator
16236 List/Contents/References\SpecialChar menuseparator
16237 Endnotes
16238 \family default
16239  to insert the endnotes list where you want the endnotes to appear.
16240  See also 
16241 \family sans
16242 Help\SpecialChar menuseparator
16243 Embedded\SpecialChar menuseparator
16244  Objects\SpecialChar menuseparator
16245 Notes\SpecialChar menuseparator
16246 Footnotes
16247 \family default
16248 .
16249 \end_layout
16250
16251 \begin_layout Subsection
16252
16253 \change_inserted 564990737 1672081439
16254
16255 \lang american
16256 Footnotes as Endnotes (Extended)
16257 \end_layout
16258
16259 \begin_layout Standard
16260
16261 \change_inserted 564990737 1672081439
16262
16263 \lang american
16264 This module sets all footnotes as endnotes.
16265  This uses the 
16266 \family sans
16267 enotez
16268 \family default
16269  package which is more powerful and customizable than then 
16270 \family sans
16271 endnotes
16272 \family default
16273  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
16274  Use 
16275 \family sans
16276 Insert\SpecialChar menuseparator
16277 List/Contents/References\SpecialChar menuseparator
16278 Endnotes
16279 \family default
16280  to insert the endnotes list where you want the endnotes to appear.
16281  See also 
16282 \family sans
16283 Help\SpecialChar menuseparator
16284 Embedded\SpecialChar menuseparator
16285  Objects\SpecialChar menuseparator
16286 Notes\SpecialChar menuseparator
16287 Footnotes
16288 \family default
16289 .
16290 \end_layout
16291
16292 \begin_layout Section
16293
16294 \change_inserted 564990737 1672081439
16295
16296 \lang american
16297 Leisure, Sports and Music
16298 \end_layout
16299
16300 \begin_layout Subsection
16301
16302 \change_inserted 564990737 1672081439
16303
16304 \lang american
16305 Chess Board
16306 \end_layout
16307
16308 \begin_layout Standard
16309
16310 \change_inserted 564990737 1672081439
16311
16312 \lang american
16313 This module provides support for the 
16314 \family sans
16315 chessboard
16316 \family default
16317  package to print chess games.
16318  See 
16319 \family sans
16320 File\SpecialChar menuseparator
16321 Open Example\SpecialChar menuseparator
16322 Articles\SpecialChar menuseparator
16323 Chess
16324 \family default
16325  where you will find 
16326 \family sans
16327 Game 1
16328 \family default
16329  and 
16330 \family sans
16331 Game 2
16332 \family default
16333  and the 
16334 \begin_inset CommandInset href
16335 LatexCommand href
16336 name "chessboard documentation"
16337 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
16338 literal "false"
16339
16340 \end_inset
16341
16342 .
16343 \end_layout
16344
16345 \begin_layout Subsection
16346
16347 \change_inserted 564990737 1672081439
16348
16349 \lang american
16350 Lilypond Music Notation
16351 \end_layout
16352
16353 \begin_layout Standard
16354
16355 \change_inserted 564990737 1672081439
16356
16357 \lang american
16358 This module provides an inset via 
16359 \family sans
16360 \bar under
16361 I
16362 \bar default
16363 nsert\SpecialChar menuseparator
16364 Custom Inset\SpecialChar menuseparator
16365 Lilypond
16366 \family default
16367  in which to enter code for the LilyPond music editor.
16368  It will then be processed in the output.
16369  See 
16370 \family sans
16371 Help\SpecialChar menuseparator
16372 Specific Manuals\SpecialChar menuseparator
16373 Lilypond
16374 \family default
16375  and 
16376 \family sans
16377 File\SpecialChar menuseparator
16378 Open Example\SpecialChar menuseparator
16379 Modules\SpecialChar menuseparator
16380 Lilypond Book
16381 \family default
16382 .
16383  It cannot be used if the modules 
16384 \family sans
16385 Rnw
16386 \begin_inset space \thinspace{}
16387 \end_inset
16388
16389 (knitr) or Sweave
16390 \family default
16391  have been loaded.
16392 \end_layout
16393
16394 \begin_layout Section
16395
16396 \change_inserted 564990737 1672138150
16397
16398 \lang american
16399 List enhancements
16400 \end_layout
16401
16402 \begin_layout Subsection
16403
16404 \change_inserted 564990737 1672138150
16405
16406 \lang american
16407 Customizable Lists
16408 \begin_inset CommandInset label
16409 LatexCommand label
16410 name "subsec:Customizable-Lists"
16411
16412 \end_inset
16413
16414
16415 \end_layout
16416
16417 \begin_layout Standard
16418
16419 \change_inserted 564990737 1672138150
16420
16421 \lang american
16422 This module uses the
16423 \family sans
16424  enumitem
16425 \family default
16426  package to enable the customization of various list environments.
16427 \end_layout
16428
16429 \begin_layout Subsubsection
16430
16431 \change_inserted 564990737 1672138150
16432
16433 \lang american
16434 Custom Enumerate Lists
16435 \end_layout
16436
16437 \begin_layout Standard
16438 \noindent
16439
16440 \change_inserted 564990737 1672138150
16441
16442 \lang american
16443 The default numbering of numbered lists can be changed by adding an optional
16444  argument (menu 
16445 \family sans
16446 \bar under
16447 I
16448 \bar default
16449 nsert\SpecialChar menuseparator
16450
16451 \bar under
16452 S
16453 \bar default
16454 hort Title
16455 \family default
16456 ) to the first item of each level in the list.
16457  There you add the command
16458 \end_layout
16459
16460 \begin_layout Standard
16461
16462 \change_inserted 564990737 1672138150
16463
16464 \family sans
16465 \lang american
16466 label=
16467 \backslash
16468 roman{enumi}
16469 \end_layout
16470
16471 \begin_layout Standard
16472
16473 \change_inserted 564990737 1672138150
16474
16475 \lang american
16476 in \SpecialChar TeX
16477  Code (shortcut 
16478 \begin_inset Info
16479 type  "shortcut"
16480 arg   "ert-insert"
16481 \end_inset
16482
16483 ).
16484 \end_layout
16485
16486 \begin_layout Standard
16487
16488 \change_inserted 564990737 1672138150
16489
16490 \family sans
16491 \lang american
16492 enumi
16493 \family default
16494  is the first level counter of the enumeration.
16495  To change the numbering for the list sublevels, replace the “
16496 \family sans
16497 i
16498 \family default
16499 ” in the command by the small Roman numeral of the level (
16500 \family sans
16501 enumi
16502 \family default
16503
16504 \family sans
16505 enumii
16506 \family default
16507
16508 \family sans
16509 enumiii
16510 \family default
16511
16512 \family sans
16513 enumiv
16514 \family default
16515 ).
16516 \end_layout
16517
16518 \begin_layout Standard
16519
16520 \change_inserted 564990737 1672138150
16521
16522 \lang american
16523 The command 
16524 \family sans
16525
16526 \backslash
16527 roman
16528 \family default
16529  outputs the counter as a small Roman numeral.
16530  For capital Roman numerals replace 
16531 \family sans
16532
16533 \backslash
16534 roman
16535 \family default
16536  with 
16537 \family sans
16538
16539 \backslash
16540 Roman
16541 \family default
16542  in the command above.
16543  For Arabic numerals use 
16544 \family sans
16545
16546 \backslash
16547 arabic
16548 \family default
16549 .
16550  To 
16551 \begin_inset Quotes eld
16552 \end_inset
16553
16554 number
16555 \begin_inset Quotes erd
16556 \end_inset
16557
16558  items with capital or small Latin letters use 
16559 \family sans
16560
16561 \backslash
16562 Alph
16563 \family default
16564  or 
16565 \family sans
16566
16567 \backslash
16568 alph
16569 \family default
16570 , respectively.
16571 \end_layout
16572
16573 \begin_layout Standard
16574 \noindent
16575
16576 \change_inserted 564990737 1672138150
16577
16578 \lang american
16579 \begin_inset Note Greyedout
16580 status collapsed
16581
16582 \begin_layout Plain Layout
16583
16584 \change_inserted 564990737 1672138150
16585
16586 \series bold
16587 \lang american
16588 Note:
16589 \series default
16590  You can only number 26
16591 \begin_inset space ~
16592 \end_inset
16593
16594 items with Latin letters, because this numbering is limited to single letters.
16595 \end_layout
16596
16597 \end_inset
16598
16599
16600 \end_layout
16601
16602 \begin_layout Standard
16603
16604 \change_inserted 564990737 1672138150
16605
16606 \lang american
16607 Here is a list with custom numbering:
16608 \end_layout
16609
16610 \begin_layout Enumerate
16611
16612 \change_inserted 564990737 1672138150
16613
16614 \lang american
16615 \begin_inset Argument 1
16616 status collapsed
16617
16618 \begin_layout Plain Layout
16619
16620 \change_inserted 564990737 1672138150
16621
16622 \lang american
16623 \begin_inset ERT
16624 status collapsed
16625
16626 \begin_layout Plain Layout
16627
16628 \change_inserted 564990737 1672138150
16629
16630 label=
16631 \backslash
16632 #
16633 \backslash
16634 Alph{enumi}
16635 \backslash
16636 #
16637 \end_layout
16638
16639 \end_inset
16640
16641
16642 \change_unchanged
16643
16644 \end_layout
16645
16646 \end_inset
16647
16648 Level 1
16649 \begin_inset Separator latexpar
16650 \end_inset
16651
16652
16653 \end_layout
16654
16655 \begin_deeper
16656 \begin_layout Enumerate
16657
16658 \change_inserted 564990737 1672138150
16659
16660 \lang american
16661 \begin_inset Argument 1
16662 status collapsed
16663
16664 \begin_layout Plain Layout
16665
16666 \change_inserted 564990737 1672138150
16667
16668 \lang american
16669 \begin_inset ERT
16670 status collapsed
16671
16672 \begin_layout Plain Layout
16673
16674 \change_inserted 564990737 1672138150
16675
16676 label=
16677 \backslash
16678 Alph{enumi}.
16679 \backslash
16680 arabic{enumii}
16681 \end_layout
16682
16683 \end_inset
16684
16685
16686 \change_unchanged
16687
16688 \end_layout
16689
16690 \end_inset
16691
16692 Level 2
16693 \end_layout
16694
16695 \begin_layout Enumerate
16696
16697 \change_inserted 564990737 1672138150
16698
16699 \lang american
16700 Level 2
16701 \begin_inset Separator latexpar
16702 \end_inset
16703
16704
16705 \end_layout
16706
16707 \begin_deeper
16708 \begin_layout Enumerate
16709
16710 \change_inserted 564990737 1672138150
16711
16712 \lang american
16713 \begin_inset Argument 1
16714 status collapsed
16715
16716 \begin_layout Plain Layout
16717
16718 \change_inserted 564990737 1672138150
16719
16720 \lang american
16721 \begin_inset ERT
16722 status collapsed
16723
16724 \begin_layout Plain Layout
16725
16726 \change_inserted 564990737 1672138150
16727
16728 label=
16729 \backslash
16730 bf{
16731 \backslash
16732 arabic{enumiii}}
16733 \end_layout
16734
16735 \end_inset
16736
16737
16738 \change_unchanged
16739
16740 \end_layout
16741
16742 \end_inset
16743
16744 Level 3
16745 \begin_inset Separator latexpar
16746 \end_inset
16747
16748
16749 \end_layout
16750
16751 \begin_deeper
16752 \begin_layout Enumerate
16753
16754 \change_inserted 564990737 1672138150
16755
16756 \lang american
16757 \begin_inset Argument 1
16758 status collapsed
16759
16760 \begin_layout Plain Layout
16761
16762 \change_inserted 564990737 1672138150
16763
16764 \lang american
16765 \begin_inset ERT
16766 status collapsed
16767
16768 \begin_layout Plain Layout
16769
16770 \change_inserted 564990737 1672138150
16771
16772 label=
16773 \backslash
16774 emph{
16775 \backslash
16776 roman{enumiv})}
16777 \end_layout
16778
16779 \end_inset
16780
16781
16782 \change_unchanged
16783
16784 \end_layout
16785
16786 \end_inset
16787
16788 Level 4
16789 \end_layout
16790
16791 \end_deeper
16792 \end_deeper
16793 \end_deeper
16794 \begin_layout Standard
16795
16796 \change_inserted 564990737 1672138150
16797
16798 \lang american
16799 For this list these commands were used:
16800 \end_layout
16801
16802 \begin_layout Standard
16803 \noindent
16804
16805 \change_inserted 564990737 1672138150
16806
16807 \family sans
16808 \lang american
16809 label=
16810 \backslash
16811 #
16812 \backslash
16813 Alph{enumi}
16814 \backslash
16815 #
16816 \begin_inset Newline newline
16817 \end_inset
16818
16819 label=
16820 \backslash
16821 Alph{enumi}.
16822 \backslash
16823 arabic{enumii}
16824 \begin_inset Newline newline
16825 \end_inset
16826
16827 label=
16828 \backslash
16829 bf{
16830 \backslash
16831 arabic{enumiii}}
16832 \begin_inset Newline newline
16833 \end_inset
16834
16835 label=
16836 \backslash
16837 emph{
16838 \backslash
16839 roman{enumiv})}
16840 \end_layout
16841
16842 \begin_layout Standard
16843
16844 \change_inserted 564990737 1672138150
16845
16846 \lang american
16847 where the command 
16848 \family sans
16849
16850 \backslash
16851 emph{}
16852 \family default
16853  makes the label emphasized and 
16854 \family sans
16855
16856 \backslash
16857 bf{}
16858 \family default
16859  makes it bold.
16860 \end_layout
16861
16862 \begin_layout Standard
16863
16864 \change_inserted 564990737 1672138150
16865
16866 \lang american
16867 \begin_inset Note Greyedout
16868 status collapsed
16869
16870 \begin_layout Plain Layout
16871
16872 \change_inserted 564990737 1672138150
16873
16874 \series bold
16875 \lang american
16876 Note:
16877 \series default
16878  When you change the label of a list level, it will be used for all following
16879  lists until you change the definition.
16880 \end_layout
16881
16882 \end_inset
16883
16884
16885 \end_layout
16886
16887 \begin_layout Standard
16888
16889 \change_inserted 564990737 1672138150
16890
16891 \lang british
16892 \begin_inset ERT
16893 status open
16894
16895 \begin_layout Plain Layout
16896
16897 \change_inserted 564990737 1672138150
16898
16899
16900 \backslash
16901 renewcommand{
16902 \backslash
16903 labelenumi}{
16904 \backslash
16905 thesection.
16906 \backslash
16907 arabic{enumi}}
16908 \end_layout
16909
16910 \end_inset
16911
16912
16913 \end_layout
16914
16915 \begin_layout Subsubsection
16916
16917 \change_inserted 564990737 1672138150
16918
16919 \lang american
16920 Numbered Paragraphs in Reports
16921 \end_layout
16922
16923 \begin_layout Enumerate
16924
16925 \change_inserted 564990737 1672138213
16926
16927 \lang american
16928 Official reports often include numbered paragraphs; you can achieve this
16929  with a variation on the approach outlined in the footnote
16930 \begin_inset space ~
16931 \end_inset
16932
16933
16934 \begin_inset CommandInset ref
16935 LatexCommand ref
16936 reference "fn:If-you-really"
16937 plural "false"
16938 caps "false"
16939 noprefix "false"
16940
16941 \end_inset
16942
16943 .
16944  Replace 
16945 \family sans
16946 item
16947 \family default
16948  in each command with 
16949 \family sans
16950 enum
16951 \family default
16952 .
16953 \end_layout
16954
16955 \begin_layout Enumerate
16956
16957 \change_inserted 564990737 1672138150
16958
16959 \lang american
16960 These numbered paragraphs were generated by inserting the \SpecialChar TeX
16961  Code
16962 \begin_inset Separator latexpar
16963 \end_inset
16964
16965
16966 \end_layout
16967
16968 \begin_deeper
16969 \begin_layout Standard
16970
16971 \change_inserted 564990737 1672138150
16972
16973 \family sans
16974 \lang american
16975
16976 \backslash
16977 renewcommand{
16978 \backslash
16979 labelenumi}{
16980 \backslash
16981 thesection.
16982 \backslash
16983 arabic{enumi}}
16984 \end_layout
16985
16986 \begin_layout Standard
16987
16988 \change_inserted 564990737 1672138150
16989
16990 \lang american
16991 before the start of the section; 
16992 \family sans
16993
16994 \backslash
16995 thesection
16996 \family default
16997  uses the \SpecialChar LaTeX
16998  section counter to generate the first part of the number.
16999 \end_layout
17000
17001 \end_deeper
17002 \begin_layout Enumerate
17003
17004 \change_inserted 564990737 1672138150
17005
17006 \lang american
17007 I have ignored the subsection heading in this example because, with paragraphs
17008  numbered in this way, subsections are less likely to be used.
17009 \end_layout
17010
17011 \begin_layout Subsubsection
17012
17013 \change_inserted 564990737 1672138150
17014
17015 \lang american
17016 Resumed Enumeration
17017 \end_layout
17018
17019 \begin_layout Standard
17020
17021 \change_inserted 564990737 1672138150
17022
17023 \lang british
17024 \begin_inset ERT
17025 status open
17026
17027 \begin_layout Plain Layout
17028
17029 \change_inserted 564990737 1672138150
17030
17031
17032 \backslash
17033 renewcommand{
17034 \backslash
17035 labelenumi}{
17036 \backslash
17037 arabic{enumi}}
17038 \end_layout
17039
17040 \end_inset
17041
17042
17043 \end_layout
17044
17045 \begin_layout Standard
17046
17047 \change_inserted 564990737 1672138150
17048
17049 \lang american
17050 Enumerations can be resumed after intermediate paragraphs:
17051 \end_layout
17052
17053 \begin_layout Enumerate
17054
17055 \change_inserted 564990737 1672138150
17056
17057 \lang american
17058 \begin_inset Argument 1
17059 status collapsed
17060
17061 \begin_layout Plain Layout
17062
17063 \change_inserted 564990737 1672138150
17064
17065 \lang american
17066 \begin_inset ERT
17067 status collapsed
17068
17069 \begin_layout Plain Layout
17070
17071 \change_inserted 564990737 1672138150
17072
17073 label=
17074 \backslash
17075 arabic{enumi}.
17076 \end_layout
17077
17078 \end_inset
17079
17080
17081 \change_unchanged
17082
17083 \end_layout
17084
17085 \end_inset
17086
17087 first
17088 \begin_inset Note Note
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092
17093 \change_inserted 564990737 1672138150
17094
17095 \lang american
17096 goes back to default numbering
17097 \end_layout
17098
17099 \end_inset
17100
17101
17102 \end_layout
17103
17104 \begin_layout Enumerate
17105
17106 \change_inserted 564990737 1672138150
17107
17108 \lang american
17109 second
17110 \end_layout
17111
17112 \begin_layout Standard
17113
17114 \change_inserted 564990737 1672138150
17115
17116 \lang american
17117 regular text
17118 \end_layout
17119
17120 \begin_layout Enumerate-Resume
17121
17122 \change_inserted 564990737 1672138150
17123
17124 \lang american
17125 resumed
17126 \end_layout
17127
17128 \begin_layout Standard
17129
17130 \change_inserted 564990737 1672138150
17131
17132 \lang american
17133 To resume an enumeration, use the style 
17134 \family sans
17135 Enumerate-Resume
17136 \family default
17137 .
17138  Its numbering appears in blue within \SpecialChar LyX
17139  to indicate that it is a resumed
17140  list and that the numbering will not be correct in \SpecialChar LyX
17141 , but in the output.
17142 \end_layout
17143
17144 \begin_layout Standard
17145
17146 \change_inserted 564990737 1672138150
17147
17148 \lang american
17149 \begin_inset Note Greyedout
17150 status collapsed
17151
17152 \begin_layout Plain Layout
17153
17154 \change_inserted 564990737 1672138150
17155
17156 \series bold
17157 \lang american
17158 Note:
17159 \series default
17160  If there is no previous enumeration to resume, you will get a \SpecialChar LaTeX
17161  error.
17162 \end_layout
17163
17164 \end_inset
17165
17166
17167 \end_layout
17168
17169 \begin_layout Standard
17170
17171 \change_inserted 564990737 1672138150
17172
17173 \lang american
17174 Perhaps you might want to resume the list with a different number from the
17175  next one.
17176  Or you want to start a new enumeration with a defined number.
17177  This is possible by adding an optional argument to the first list item
17178  of a normal enumeration.
17179  There, insert the command
17180 \end_layout
17181
17182 \begin_layout Standard
17183
17184 \change_inserted 564990737 1672138150
17185
17186 \family sans
17187 \lang american
17188 start=number
17189 \end_layout
17190
17191 \begin_layout Standard
17192
17193 \change_inserted 564990737 1672138150
17194
17195 \lang american
17196 where 
17197 \family sans
17198 number
17199 \family default
17200  is the number with which you want to resume the list.
17201  An example:
17202 \end_layout
17203
17204 \begin_layout Enumerate
17205
17206 \change_inserted 564990737 1672138150
17207
17208 \lang american
17209 first item
17210 \end_layout
17211
17212 \begin_layout Enumerate
17213
17214 \change_inserted 564990737 1672138150
17215
17216 \lang american
17217 second item
17218 \end_layout
17219
17220 \begin_layout Standard
17221
17222 \change_inserted 564990737 1672138150
17223
17224 \lang american
17225 Enumeration starting at a given value:
17226 \end_layout
17227
17228 \begin_layout Enumerate
17229
17230 \change_inserted 564990737 1672138150
17231
17232 \lang american
17233 \begin_inset Argument 1
17234 status open
17235
17236 \begin_layout Plain Layout
17237
17238 \change_inserted 564990737 1672138150
17239
17240 \lang american
17241 \begin_inset ERT
17242 status collapsed
17243
17244 \begin_layout Plain Layout
17245
17246 \change_inserted 564990737 1672138150
17247
17248 start=4
17249 \end_layout
17250
17251 \end_inset
17252
17253
17254 \change_unchanged
17255
17256 \end_layout
17257
17258 \end_inset
17259
17260 This enumeration starts at 4
17261 \end_layout
17262
17263 \begin_layout Subsubsection
17264
17265 \change_inserted 564990737 1672138150
17266
17267 \lang american
17268 List Spacing
17269 \begin_inset Index idx
17270 range none
17271 pageformat default
17272 status collapsed
17273
17274 \begin_layout Plain Layout
17275
17276 \change_inserted 564990737 1672138150
17277
17278 \lang american
17279 Lists ! Spacing
17280 \change_unchanged
17281
17282 \end_layout
17283
17284 \end_inset
17285
17286
17287 \end_layout
17288
17289 \begin_layout Standard
17290
17291 \change_inserted 564990737 1672138150
17292
17293 \lang american
17294 In some cases you might want less or more vertical space between the items
17295  of a list.
17296  For example if the default space is too much in your opinion in this case:
17297 \end_layout
17298
17299 \begin_layout Itemize
17300
17301 \change_inserted 564990737 1672138150
17302
17303 \lang american
17304 A bullet list
17305 \end_layout
17306
17307 \begin_layout Itemize
17308
17309 \change_inserted 564990737 1672138150
17310
17311 \lang american
17312 with standard spacing 
17313 \end_layout
17314
17315 \begin_layout Standard
17316
17317 \change_inserted 564990737 1672138150
17318
17319 \lang american
17320 You can decrease the space by adding an optional argument to the first item
17321  of the list.
17322  Add there the command 
17323 \family sans
17324 nolistsep
17325 \family default
17326  to get no additional list space like in this example:
17327 \end_layout
17328
17329 \begin_layout Itemize
17330
17331 \change_inserted 564990737 1672138150
17332
17333 \lang american
17334 \begin_inset Argument 1
17335 status open
17336
17337 \begin_layout Plain Layout
17338
17339 \change_inserted 564990737 1672138150
17340
17341 \lang american
17342 \begin_inset ERT
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346
17347 \change_inserted 564990737 1672138150
17348
17349 nolistsep
17350 \end_layout
17351
17352 \end_inset
17353
17354
17355 \change_unchanged
17356
17357 \end_layout
17358
17359 \end_inset
17360
17361 A bullet list
17362 \end_layout
17363
17364 \begin_layout Itemize
17365
17366 \change_inserted 564990737 1672138150
17367
17368 \lang american
17369 without additional
17370 \end_layout
17371
17372 \begin_layout Itemize
17373
17374 \change_inserted 564990737 1672138150
17375
17376 \lang american
17377 vertical space
17378 \end_layout
17379
17380 \begin_layout Standard
17381
17382 \change_inserted 564990737 1672138150
17383
17384 \lang american
17385 To add space you can use several other commands provided by the 
17386 \family sans
17387 enumitem
17388 \family default
17389
17390 \begin_inset Index idx
17391 range none
17392 pageformat default
17393 status collapsed
17394
17395 \begin_layout Plain Layout
17396
17397 \change_inserted 564990737 1672138150
17398
17399 \lang american
17400 \SpecialChar LaTeX
17401 -packages ! enumitem
17402 \change_unchanged
17403
17404 \end_layout
17405
17406 \end_inset
17407
17408  package.
17409  For more information see the 
17410 \begin_inset CommandInset href
17411 LatexCommand href
17412 name "enumitem documentation"
17413 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
17414 literal "false"
17415
17416 \end_inset
17417
17418 .
17419 \end_layout
17420
17421 \begin_layout Standard
17422
17423 \change_inserted 564990737 1672138150
17424
17425 \lang american
17426 There are also many commands available to change the horizontal spacing
17427  and indentation.
17428  Here is an example where the indentation was changed to that of the paragraphs
17429  in the document and the label separation was set to 2
17430 \begin_inset space \thinspace{}
17431 \end_inset
17432
17433 cm so that the number is in the page margin:
17434 \end_layout
17435
17436 \begin_layout Enumerate
17437
17438 \change_inserted 564990737 1672138150
17439
17440 \lang american
17441 \begin_inset Argument 1
17442 status open
17443
17444 \begin_layout Plain Layout
17445
17446 \change_inserted 564990737 1672138150
17447
17448 \lang american
17449 \begin_inset ERT
17450 status collapsed
17451
17452 \begin_layout Plain Layout
17453
17454 \change_inserted 564990737 1672138150
17455
17456 labelindent=
17457 \backslash
17458 parindent, labelsep=2cm
17459 \end_layout
17460
17461 \end_inset
17462
17463
17464 \change_unchanged
17465
17466 \end_layout
17467
17468 \end_inset
17469
17470 An enumeration
17471 \end_layout
17472
17473 \begin_layout Enumerate
17474
17475 \change_inserted 564990737 1672138150
17476
17477 \lang american
17478 with negative indentation
17479 \end_layout
17480
17481 \begin_layout Subsubsection
17482
17483 \change_inserted 564990737 1672138150
17484
17485 \lang american
17486 Further Customization
17487 \begin_inset Index idx
17488 range none
17489 pageformat default
17490 status collapsed
17491
17492 \begin_layout Plain Layout
17493
17494 \change_inserted 564990737 1672138150
17495
17496 \lang american
17497 Lists ! Customization
17498 \change_unchanged
17499
17500 \end_layout
17501
17502 \end_inset
17503
17504
17505 \end_layout
17506
17507 \begin_layout Standard
17508
17509 \change_inserted 564990737 1672138150
17510
17511 \lang american
17512 You can also change the style of description lists.
17513  The command
17514 \end_layout
17515
17516 \begin_layout Standard
17517
17518 \change_inserted 564990737 1672138150
17519
17520 \family sans
17521 \lang american
17522 font=definition
17523 \end_layout
17524
17525 \begin_layout Standard
17526
17527 \change_inserted 564990737 1672138150
17528
17529 \lang american
17530 changes the description label font, the command
17531 \end_layout
17532
17533 \begin_layout Standard
17534
17535 \change_inserted 564990737 1672138150
17536
17537 \family sans
17538 \lang american
17539 style=definitio
17540 \family default
17541 \series bold
17542 n
17543 \end_layout
17544
17545 \begin_layout Standard
17546
17547 \change_inserted 564990737 1672138150
17548
17549 \lang american
17550 sets the list style.
17551 \end_layout
17552
17553 \begin_layout Standard
17554
17555 \change_inserted 564990737 1672138150
17556
17557 \lang american
17558 An example where the command
17559 \end_layout
17560
17561 \begin_layout Standard
17562
17563 \change_inserted 564990737 1672138150
17564
17565 \family sans
17566 \lang american
17567 font=
17568 \backslash
17569 itshape, style=nextline
17570 \end_layout
17571
17572 \begin_layout Standard
17573
17574 \change_inserted 564990737 1672138150
17575
17576 \lang american
17577 is used:
17578 \end_layout
17579
17580 \begin_layout Description
17581
17582 \change_inserted 564990737 1672138150
17583
17584 \lang american
17585 Ionizing
17586 \begin_inset space ~
17587 \end_inset
17588
17589 radiation: 
17590 \begin_inset Argument 1
17591 status collapsed
17592
17593 \begin_layout Plain Layout
17594
17595 \change_inserted 564990737 1672138150
17596
17597 \lang american
17598 \begin_inset ERT
17599 status collapsed
17600
17601 \begin_layout Plain Layout
17602
17603 \change_inserted 564990737 1672138150
17604
17605 labelindent=0pt, labelsep=1cm, font=
17606 \backslash
17607 itshape, style=nextline
17608 \end_layout
17609
17610 \end_inset
17611
17612
17613 \change_unchanged
17614
17615 \end_layout
17616
17617 \end_inset
17618
17619 Ionizing radiation consists of particles or electromagnetic waves that are
17620  energetic enough to detach electrons from atoms or molecules, therefore
17621  ionizing them.
17622 \end_layout
17623
17624 \begin_layout Description
17625
17626 \change_inserted 564990737 1672138150
17627
17628 \lang american
17629 Reference
17630 \begin_inset space ~
17631 \end_inset
17632
17633 counting: In computer science, reference counting is a technique of storing
17634  the number of references, pointers, or handles to a resource such as an
17635  object, block of memory, disk space or other resource.
17636 \end_layout
17637
17638 \begin_layout Standard
17639
17640 \change_inserted 564990737 1672138150
17641
17642 \lang american
17643 There are many more commands and features provided by the 
17644 \family sans
17645 enumitem
17646 \family default
17647
17648 \begin_inset Index idx
17649 range none
17650 pageformat default
17651 status collapsed
17652
17653 \begin_layout Plain Layout
17654
17655 \change_inserted 564990737 1672138150
17656
17657 \lang american
17658 \SpecialChar LaTeX
17659 -packages ! enumitem
17660 \change_unchanged
17661
17662 \end_layout
17663
17664 \end_inset
17665
17666  package.
17667  For more information see the 
17668 \begin_inset CommandInset href
17669 LatexCommand href
17670 name "enumitem documentation"
17671 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
17672 literal "false"
17673
17674 \end_inset
17675
17676 .
17677 \end_layout
17678
17679 \begin_layout Subsection
17680
17681 \change_inserted 564990737 1672138150
17682
17683 \series bold
17684 \lang american
17685 Paragraph Lists
17686 \end_layout
17687
17688 \begin_layout Standard
17689
17690 \change_inserted 564990737 1672138150
17691
17692 \lang american
17693 This module uses the package 
17694 \family sans
17695 paralist
17696 \family default
17697  to provide nine new list environments.
17698  Itemized and enumerated lists can be typeset within paragraphs, as paragraphs
17699  and in a compact version.
17700  Most environments have optional arguments to format the labels.
17701  Additionally, the \SpecialChar LaTeX
17702  list environments itemize and enumerate are extended
17703  to use a similar optional argument.
17704  For further details see 
17705 \family sans
17706 File\SpecialChar menuseparator
17707 Open Example\SpecialChar menuseparator
17708 Modules\SpecialChar menuseparator
17709 Paragraph Lists (paralist)
17710 \family default
17711
17712 \family sans
17713 Help\SpecialChar menuseparator
17714 Specific Manuals\SpecialChar menuseparator
17715 Paralist
17716 \family default
17717  and the 
17718 \begin_inset CommandInset href
17719 LatexCommand href
17720 name "paralist documentation"
17721 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
17722 literal "false"
17723
17724 \end_inset
17725
17726 .
17727 \end_layout
17728
17729 \begin_layout Section
17730
17731 \change_inserted 564990737 1672161542
17732
17733 \lang american
17734 Literate Programming 
17735 \end_layout
17736
17737 \begin_layout Subsection
17738
17739 \change_inserted 564990737 1672161542
17740
17741 \lang american
17742 Noweb
17743 \end_layout
17744
17745 \begin_layout Standard
17746
17747 \change_inserted 564990737 1672161542
17748
17749 \lang american
17750 This module allows the use of Noweb as a literate programming tool.
17751  The files and the documentation for Noweb can be obtained from 
17752 \begin_inset CommandInset href
17753 LatexCommand href
17754 name "CTAN"
17755 target "https://www.ctan.org/pkg/noweb"
17756 literal "false"
17757
17758 \end_inset
17759
17760 .
17761  Literate programming is described in section
17762 \begin_inset space ~
17763 \end_inset
17764
17765
17766 \begin_inset CommandInset ref
17767 LatexCommand ref
17768 reference "sec:Literate-Programming"
17769
17770 \end_inset
17771
17772  and there are three example files: 
17773 \family sans
17774 File\SpecialChar menuseparator
17775 Open Example\SpecialChar menuseparator
17776 Modules\SpecialChar menuseparator
17777 Noweb
17778 \family default
17779
17780 \family sans
17781 File\SpecialChar menuseparator
17782 Open Example\SpecialChar menuseparator
17783 Modules\SpecialChar menuseparator
17784 Noweb Listerrors
17785 \family default
17786  and 
17787 \family sans
17788 File\SpecialChar menuseparator
17789 Open Example\SpecialChar menuseparator
17790 Modules\SpecialChar menuseparator
17791 Noweb2\SpecialChar LyX
17792
17793 \family default
17794 .
17795 \end_layout
17796
17797 \begin_layout Subsection
17798
17799 \change_inserted 564990737 1672161542
17800
17801 \lang american
17802 Rnw (knitr)
17803 \end_layout
17804
17805 \begin_layout Standard
17806
17807 \change_inserted 564990737 1672161542
17808
17809 \lang american
17810 This module uses the 
17811 \family typewriter
17812 knitr
17813 \family default
17814  and 
17815 \family sans
17816 includernw
17817 \family default
17818  packages.
17819  The
17820 \begin_inset Flex Code
17821 status collapsed
17822
17823 \begin_layout Plain Layout
17824
17825 \change_inserted 564990737 1672161542
17826
17827 \lang american
17828 knitr
17829 \change_unchanged
17830
17831 \end_layout
17832
17833 \end_inset
17834
17835  package in R for dynamic report generation has to be installed for this
17836  module to work: 
17837 \begin_inset Flex Code
17838 status collapsed
17839
17840 \begin_layout Plain Layout
17841
17842 \change_inserted 564990737 1672161542
17843
17844 \lang american
17845 install.packages(“knitr”)
17846 \change_unchanged
17847
17848 \end_layout
17849
17850 \end_inset
17851
17852 .
17853  
17854 \end_layout
17855
17856 \begin_layout Paragraph
17857
17858 \change_inserted 564990737 1672161542
17859
17860 \lang american
17861 Note 
17862 \end_layout
17863
17864 \begin_layout Standard
17865
17866 \change_inserted 564990737 1672161542
17867
17868 \lang american
17869 it depends on R >= 2.14.1.
17870  For more info see 
17871 \begin_inset Flex URL
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875
17876 \change_inserted 564990737 1672161542
17877
17878 http://yihui.name/knitr
17879 \change_unchanged
17880
17881 \end_layout
17882
17883 \end_inset
17884
17885 .
17886  
17887 \end_layout
17888
17889 \begin_layout Standard
17890
17891 \change_inserted 564990737 1672161542
17892
17893 \lang american
17894 The package 
17895 \family sans
17896 includernw
17897 \family default
17898  also has to be installed.
17899  It cannot be used if the modules 
17900 \family sans
17901 LilyPond
17902 \begin_inset space ~
17903 \end_inset
17904
17905 Book
17906 \family default
17907  or 
17908 \family sans
17909 Sweave
17910 \family default
17911  are loaded.
17912  See 
17913 \family sans
17914 Help\SpecialChar menuseparator
17915 Specific Manuals\SpecialChar menuseparator
17916 Knitr
17917 \family default
17918
17919 \family sans
17920 File\SpecialChar menuseparator
17921 Open Example\SpecialChar menuseparator
17922 Modules\SpecialChar menuseparator
17923 Rnw (knitr)
17924 \family default
17925  and section
17926 \begin_inset space ~
17927 \end_inset
17928
17929
17930 \begin_inset CommandInset ref
17931 LatexCommand ref
17932 reference "sec:Literate-Programming"
17933
17934 \end_inset
17935
17936  for information about literate programming.
17937 \end_layout
17938
17939 \begin_layout Subsection
17940
17941 \change_inserted 564990737 1672161542
17942
17943 \lang american
17944 Sweave
17945 \end_layout
17946
17947 \begin_layout Standard
17948
17949 \change_inserted 564990737 1672161542
17950
17951 \lang american
17952 This module allows the use of the statistical language S/R as a literate
17953  programming tool.
17954  It requires the 
17955 \family sans
17956 includernw
17957 \family default
17958  and 
17959 \family sans
17960 fancyvrb
17961 \family default
17962  packages.
17963  Both 
17964 \begin_inset CommandInset href
17965 LatexCommand href
17966 name "includernw"
17967 target "https://www.ctan.org/pkg/includernw"
17968 literal "false"
17969
17970 \end_inset
17971
17972  and 
17973 \begin_inset CommandInset href
17974 LatexCommand href
17975 name "fancyvrb"
17976 target "https://www.ctan.org/pkg/fancyvrb"
17977 literal "false"
17978
17979 \end_inset
17980
17981  are available from CTAN.
17982  It cannot be used if the module 
17983 \family sans
17984 LilyPond
17985 \begin_inset space ~
17986 \end_inset
17987
17988 Book
17989 \family default
17990  has been loaded.
17991  See 
17992 \family sans
17993 Help\SpecialChar menuseparator
17994 Specific Manuals\SpecialChar menuseparator
17995 Sweave,
17996 \family default
17997  
17998 \family sans
17999 File\SpecialChar menuseparator
18000 Open Example\SpecialChar menuseparator
18001 Modules\SpecialChar menuseparator
18002 Sweave
18003 \family default
18004  and section
18005 \begin_inset space ~
18006 \end_inset
18007
18008
18009 \begin_inset CommandInset ref
18010 LatexCommand ref
18011 reference "sec:Literate-Programming"
18012
18013 \end_inset
18014
18015  for information about literate programming.
18016 \end_layout
18017
18018 \begin_layout Section
18019
18020 \change_inserted 564990737 1672224959
18021
18022 \lang american
18023 Maths
18024 \end_layout
18025
18026 \begin_layout Subsection
18027
18028 \change_inserted 564990737 1672224959
18029
18030 \lang american
18031 AMS Theorems
18032 \end_layout
18033
18034 \begin_layout Standard
18035
18036 \change_inserted 564990737 1672224959
18037
18038 \lang american
18039 This modules defines theorem environments and the proof environment using
18040  the extended AMS machinery.
18041  Both numbered and unnumbered types are provided.
18042  By default, the theorems are numbered consecutively throughout the document.
18043  This can be changed by loading one of the 
18044 \family sans
18045 AMS Theorems (Numbered by \SpecialChar ldots
18046 )
18047 \family default
18048  modules.
18049  It cannot be used if the modules 
18050 \family sans
18051 Standard Theorems
18052 \family default
18053  or 
18054 \family sans
18055 Standard Theorems (Unnumbered)
18056 \family default
18057  have been loaded.
18058 \end_layout
18059
18060 \begin_layout Subsection
18061
18062 \change_inserted 564990737 1672224959
18063
18064 \lang american
18065 AMS Theorems (Extended)
18066 \end_layout
18067
18068 \begin_layout Standard
18069
18070 \change_inserted 564990737 1672224959
18071
18072 \lang american
18073 This module defines some additional theorem environments for use with the
18074  
18075 \family sans
18076 AMS Theorems
18077 \family default
18078  package (which must be loaded).
18079  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
18080  Acknowledgement, Conclusion, Fact, Assumption, Case and Question in both
18081  numbered and unnumbered forms.
18082 \end_layout
18083
18084 \begin_layout Subsection
18085
18086 \change_inserted 564990737 1672224959
18087
18088 \lang american
18089 AMS Theorems (Extended, Numbered by Type within Chapters)
18090 \end_layout
18091
18092 \begin_layout Standard
18093
18094 \change_inserted 564990737 1672224959
18095
18096 \lang american
18097 This module defines some additional theorem environments for use with the
18098  
18099 \family sans
18100 AMS Theorems (Numbered by Type within Chapters)
18101 \family default
18102  package (which must be loaded).
18103  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
18104  Acknowledgement, Conclusion, Assumption and Case in both numbered and unnumbere
18105 d forms.
18106  Unlike the 
18107 \family sans
18108 AMS Theorems (Extended)
18109 \family default
18110  module, the different theorem types provided here each have a separate
18111  counter, restarted with each new chapter (e.g., criterion 1.1, criterion 1.2,
18112  axiom 1.1, assumption 1.1, criterion 2.1, criterion 2.2, axiom 2.1\SpecialChar ldots
18113 , as opposed
18114  to criterion 1, criterion 2, axiom 3, assumption 4...).
18115 \end_layout
18116
18117 \begin_layout Subsection
18118
18119 \change_inserted 564990737 1672224959
18120
18121 \lang american
18122 AMS Theorems (Extended, Numbered by Type)
18123 \end_layout
18124
18125 \begin_layout Standard
18126
18127 \change_inserted 564990737 1672224959
18128
18129 \lang american
18130 This module defines some additional theorem environments for use with the
18131  
18132 \family sans
18133 AMS Theorems (Numbered by Type)
18134 \family default
18135  package (which must be loaded).
18136  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
18137  Acknowledgement, Conclusion, Assumption and Case in both numbered and unnumbere
18138 d forms.
18139  Unlike the 
18140 \family sans
18141 AMS Theorems (Extended)
18142 \family default
18143  module, the different theorem types provided here each have a separate
18144  counter (e.g., criterion 1, criterion 2, axiom 1, assumption 1, criterion
18145  3, \SpecialChar ldots
18146 , as opposed to criterion 1, criterion 2, axiom 3, assumption 4, \SpecialChar ldots
18147 ).
18148 \end_layout
18149
18150 \begin_layout Subsection
18151
18152 \change_inserted 564990737 1672224959
18153
18154 \lang american
18155 AMS Theorems (Numbered by Type within Chapters) 
18156 \end_layout
18157
18158 \begin_layout Standard
18159
18160 \change_inserted 564990737 1672224959
18161
18162 \lang american
18163 This module defines theorem environments and the proof environment using
18164  the extended AMS machinery.
18165  Both numbered and unnumbered types are provided.
18166  Unlike the 
18167 \family sans
18168 AMS Theorems
18169 \family default
18170  module, the different theorem types provided here each have a separate
18171  counter (e.g., theorem 1.1, theorem 1.2, lemma 1.1, proposition 1.1, theorem
18172  1.3, lemma 1.2, \SpecialChar ldots
18173 , as opposed to theorem 1, theorem 2, lemma 3, proposition
18174  4, \SpecialChar ldots
18175 ).
18176  The numbering restarts for each chapter: theorem 1.1, theorem 2.1, \SpecialChar ldots
18177  It cannot
18178  be used if the modules 
18179 \family sans
18180 AMS Theorems
18181 \family default
18182
18183 \family sans
18184 Standard Theorems
18185 \family default
18186 ,
18187 \family sans
18188  Standard Theorems (Numbered by Type)
18189 \family default
18190  or
18191 \family sans
18192  Standard Theorems (Unnumbered)
18193 \family default
18194  have been loaded.
18195 \end_layout
18196
18197 \begin_layout Subsection
18198
18199 \change_inserted 564990737 1672224959
18200
18201 \lang american
18202 AMS Theorems (Numbered by Type)
18203 \end_layout
18204
18205 \begin_layout Standard
18206
18207 \change_inserted 564990737 1672224959
18208
18209 \lang american
18210 This module defines theorem environments and the proof environment using
18211  the extended AMS machinery.
18212  Both numbered and unnumbered types are provided.
18213  Unlike the 
18214 \family sans
18215 AMS Theorems
18216 \family default
18217  module, the different theorem types provided here each have a separate
18218  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
18219  2, \SpecialChar ldots
18220 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
18221 ).
18222  The numbering’s scope is the whole document.
18223  For chapter- and section-wide numbering, use one of the ‘within Sections’/‘with
18224 in Chapters’ modules, respectively.
18225  It cannot be used if the modules 
18226 \family sans
18227 AMS Theorems
18228 \family default
18229
18230 \family sans
18231 Standard Theorems
18232 \family default
18233 ,
18234 \family sans
18235  Standard Theorems (Numbered by Type)
18236 \family default
18237  or
18238 \family sans
18239  Standard Theorems (Unnumbered)
18240 \family default
18241  have been loaded.
18242 \end_layout
18243
18244 \begin_layout Subsection
18245
18246 \change_inserted 564990737 1672224959
18247
18248 \lang american
18249 Number Equations by Section
18250 \end_layout
18251
18252 \begin_layout Standard
18253
18254 \change_inserted 564990737 1672224959
18255
18256 \lang american
18257 This module resets the equation number at section start and prepends the
18258  section number to the equation number, as in “(2.1).” 
18259 \end_layout
18260
18261 \begin_layout Subsection
18262
18263 \change_inserted 564990737 1672224959
18264
18265 \lang american
18266 Standard Theorems
18267 \end_layout
18268
18269 \begin_layout Standard
18270
18271 \change_inserted 564990737 1672224959
18272
18273 \lang american
18274 This module defines some theorem environments for use with non-AMS classes.
18275  By default, the theorems are numbered consecutively throughout the document.
18276  This can be changed by loading one of the 
18277 \family sans
18278 Standard Theorems (Numbered by \SpecialChar ldots
18279 )
18280 \family default
18281  modules.
18282  It cannot be used if the modules 
18283 \family sans
18284 AMS Theorems
18285 \family default
18286  or
18287 \family sans
18288  Standard Theorems (Unnumbered)
18289 \family default
18290  have been loaded.
18291  
18292 \end_layout
18293
18294 \begin_layout Subsection
18295
18296 \change_inserted 564990737 1672224959
18297
18298 \lang american
18299 Standard Theorems (Nameable)
18300 \end_layout
18301
18302 \begin_layout Standard
18303
18304 \change_inserted 564990737 1672224959
18305
18306 \lang american
18307 This module facilitates the use of named theorems.
18308  The name of the theorem goes into the “Additional Theorem Text” argument.
18309  
18310 \end_layout
18311
18312 \begin_layout Subsection
18313
18314 \change_inserted 564990737 1672224959
18315
18316 \lang american
18317 Standard Theorems (Numbered by Chapter)
18318 \end_layout
18319
18320 \begin_layout Standard
18321
18322 \change_inserted 564990737 1672224959
18323
18324 \lang american
18325 This module numbers theorems and the like by chapter (i.e., the counter is
18326  reset at each chapter start).
18327  Use this module only with document classes that provide a chapter environment.
18328  One of the modules 
18329 \family sans
18330 AMS Theorems
18331 \family default
18332  or 
18333 \family sans
18334 Standard Theorems
18335 \family default
18336  must be loaded.
18337  It cannot be used if the module
18338 \family sans
18339  Standard Theorems (Numbered by Section)
18340 \family default
18341  has been loaded.
18342 \end_layout
18343
18344 \begin_layout Subsection
18345
18346 \change_inserted 564990737 1672224959
18347
18348 \lang american
18349 Standard Theorems (Numbered by Section)
18350 \end_layout
18351
18352 \begin_layout Standard
18353
18354 \change_inserted 564990737 1672224959
18355
18356 \lang american
18357 This module numbers theorems and the like by section (i.e., the counter is
18358  reset at each section start).
18359  One of the modules 
18360 \family sans
18361 AMS Theorems
18362 \family default
18363  or 
18364 \family sans
18365 Standard Theorems
18366 \family default
18367  must be loaded.
18368  It cannot be used if the module
18369 \family sans
18370  Standard Theorems (Numbered by Chapter)
18371 \family default
18372  has been loaded.
18373 \end_layout
18374
18375 \begin_layout Subsection
18376
18377 \change_inserted 564990737 1672224959
18378
18379 \lang american
18380 Standard Theorems (Numbered by Type within Chapters) 
18381 \end_layout
18382
18383 \begin_layout Standard
18384
18385 \change_inserted 564990737 1672224959
18386
18387 \lang american
18388 This module defines some theorem environments for use with non-AMS classes.
18389  Unlike the
18390 \family sans
18391  AMS Theorems
18392 \family default
18393  and 
18394 \family sans
18395 Standard Theorems
18396 \family default
18397  modules, the different theorem types provided here each have a separate
18398  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
18399  2, \SpecialChar ldots
18400 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
18401 ).
18402  The numbering is reset at each chapter start.
18403  One of the modules 
18404 \family sans
18405 AMS Theorems (Numbered by Type)
18406 \family default
18407  or 
18408 \family sans
18409 Standard Theorems (Numbered by Type)
18410 \family default
18411  must be loaded.
18412  It cannot be used if any of the modules
18413 \family sans
18414  AMS Theorems
18415 \family default
18416
18417 \family sans
18418 Standard Theorems
18419 \family default
18420
18421 \family sans
18422 Standard Theorems (Unnumbered)
18423 \family default
18424 ,
18425 \family sans
18426  Standard Theorems (Numbered by Sections)
18427 \family default
18428  or 
18429 \family sans
18430 Standard Theorems (Numbered by Type within Sections)
18431 \family default
18432  have been loaded.
18433 \end_layout
18434
18435 \begin_layout Subsection
18436
18437 \change_inserted 564990737 1672224959
18438
18439 \lang american
18440 Standard Theorems (Numbered by Type within Sections) 
18441 \end_layout
18442
18443 \begin_layout Standard
18444
18445 \change_inserted 564990737 1672224959
18446
18447 \lang american
18448 This module defines some theorem environments for use with non-AMS classes.
18449  Unlike the
18450 \family sans
18451  AMS Theorems
18452 \family default
18453  and 
18454 \family sans
18455 Standard Theorems
18456 \family default
18457  modules, the different theorem types provided here each have a separate
18458  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
18459  2, \SpecialChar ldots
18460 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
18461 ).
18462  The numbering is reset at each section start.
18463  One of the modules 
18464 \family sans
18465 AMS Theorems (Numbered by Type)
18466 \family default
18467  or 
18468 \family sans
18469 Standard Theorems (Numbered by Type)
18470 \family default
18471  must be loaded.
18472  It cannot be used if any of the modules
18473 \family sans
18474  AMS Theorems
18475 \family default
18476
18477 \family sans
18478 Standard Theorems
18479 \family default
18480
18481 \family sans
18482 Standard Theorems (Unnumbered)
18483 \family default
18484 ,
18485 \family sans
18486  Standard Theorems (Numbered by Chapters)
18487 \family default
18488  or 
18489 \family sans
18490 Standard Theorems (Numbered by Type within Chapters)
18491 \family default
18492  have been loaded.
18493 \end_layout
18494
18495 \begin_layout Subsection
18496
18497 \change_inserted 564990737 1672224959
18498
18499 \lang american
18500 Standard Theorems (Numbered by Type)
18501 \end_layout
18502
18503 \begin_layout Standard
18504
18505 \change_inserted 564990737 1672224959
18506
18507 \lang american
18508 This module defines some theorem environments for use with non-AMS classes.
18509  Unlike the 
18510 \family sans
18511 AMS Theorems
18512 \family default
18513  and 
18514 \family sans
18515 Standard Theorems
18516 \family default
18517  modules, the different theorem types provided here each have a separate
18518  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
18519  2, \SpecialChar ldots
18520 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
18521 ).
18522  The numbering’s scope is the whole document.
18523  For chapter- and section-wide numbering, use one of the “within Chapters”/“with
18524 in Sections” modules, respectively.
18525  It cannot be used if any of the modules
18526 \family sans
18527  AMS Theorems
18528 \family default
18529
18530 \family sans
18531 Standard Theorems
18532 \family default
18533
18534 \family sans
18535 Standard Theorems (Unnumbered)
18536 \family default
18537  or
18538 \family sans
18539  AMS Theorems (Numbered by Type)
18540 \family default
18541  have been loaded.
18542 \end_layout
18543
18544 \begin_layout Subsection
18545
18546 \change_inserted 564990737 1672224959
18547
18548 \lang american
18549 Standard Theorems (Unnumbered)
18550 \end_layout
18551
18552 \begin_layout Standard
18553
18554 \change_inserted 564990737 1672224959
18555
18556 \lang american
18557 This module defines only unnumbered theorem environments and the proof environme
18558 nt, using the extended AMS machinery.
18559  It cannot be used if either of the modules
18560 \family sans
18561  AMS Theorems
18562 \family default
18563  or
18564 \family sans
18565  Standard Theorems
18566 \family default
18567  have been loaded.
18568 \end_layout
18569
18570 \begin_layout Subsection
18571
18572 \change_inserted 564990737 1672224959
18573
18574 \lang american
18575 Subequations
18576 \end_layout
18577
18578 \begin_layout Standard
18579
18580 \change_inserted 564990737 1672224959
18581
18582 \lang american
18583 This module provides a straightforward way to segregate subequations in
18584  LyX.
18585  See 
18586 \family sans
18587 Help\SpecialChar menuseparator
18588 Math\SpecialChar menuseparator
18589 Subnumbering
18590 \family default
18591 .
18592  
18593 \end_layout
18594
18595 \begin_layout Section
18596
18597 \change_inserted 564990737 1672236008
18598
18599 \lang american
18600 Page Layout
18601 \end_layout
18602
18603 \begin_layout Subsection
18604
18605 \change_inserted 564990737 1672236008
18606
18607 \lang american
18608 Custom Header/Footer Text
18609 \end_layout
18610
18611 \begin_layout Standard
18612
18613 \change_inserted 564990737 1672236008
18614
18615 \lang american
18616 This module requires the 
18617 \family sans
18618 Page
18619 \begin_inset space ~
18620 \end_inset
18621
18622
18623 \bar under
18624 s
18625 \bar default
18626 tyle
18627 \family default
18628  option in the 
18629 \family sans
18630 \bar under
18631 D
18632 \bar default
18633 ocument\SpecialChar menuseparator
18634
18635 \bar under
18636 S
18637 \bar default
18638 ettings\SpecialChar menuseparator
18639 Page
18640 \begin_inset space ~
18641 \end_inset
18642
18643 Layout
18644 \family default
18645  dialog to be set to 
18646 \family typewriter
18647 fancy
18648 \family default
18649 .
18650  It adds six environments to document classes which support the 
18651 \family typewriter
18652 fancyhdr
18653 \family default
18654  package:
18655 \end_layout
18656
18657 \begin_layout Itemize
18658
18659 \change_inserted 564990737 1672236008
18660
18661 \family sans
18662 \lang american
18663 Left Header
18664 \end_layout
18665
18666 \begin_layout Itemize
18667
18668 \change_inserted 564990737 1672236008
18669
18670 \family sans
18671 \lang american
18672 Center Header
18673 \end_layout
18674
18675 \begin_layout Itemize
18676
18677 \change_inserted 564990737 1672236008
18678
18679 \family sans
18680 \lang american
18681 Right Header
18682 \end_layout
18683
18684 \begin_layout Itemize
18685
18686 \change_inserted 564990737 1672236008
18687
18688 \family sans
18689 \lang american
18690 Left Footer
18691 \end_layout
18692
18693 \begin_layout Itemize
18694
18695 \change_inserted 564990737 1672236008
18696
18697 \family sans
18698 \lang american
18699 Center Footer
18700 \end_layout
18701
18702 \begin_layout Itemize
18703
18704 \change_inserted 564990737 1672236008
18705
18706 \family sans
18707 \lang american
18708 Right Footer
18709 \end_layout
18710
18711 \begin_layout Subsubsection
18712
18713 \change_inserted 564990737 1672236008
18714
18715 \lang american
18716 Fancy Headers and Footers
18717 \end_layout
18718
18719 \begin_layout Standard
18720
18721 \change_inserted 564990737 1672236008
18722
18723 \lang american
18724 The default page layout is rather plain; for an 
18725 \begin_inset Flex Code
18726 status collapsed
18727
18728 \begin_layout Plain Layout
18729
18730 \change_inserted 564990737 1672236008
18731
18732 \lang american
18733 article
18734 \change_unchanged
18735
18736 \end_layout
18737
18738 \end_inset
18739
18740  document class, all you get is a centered page number at the bottom of
18741  the page.
18742  This document uses KOMA-script’s book class; so it appears to be a bit
18743  fancier.
18744  Once the 
18745 \family sans
18746 Page
18747 \begin_inset space ~
18748 \end_inset
18749
18750
18751 \bar under
18752 s
18753 \bar default
18754 tyle
18755 \family default
18756  in 
18757 \family sans
18758 \bar under
18759 D
18760 \bar default
18761 ocument\SpecialChar menuseparator
18762
18763 \bar under
18764 S
18765 \bar default
18766 ettings\SpecialChar menuseparator
18767 Page Layout
18768 \family default
18769  is set to 
18770 \begin_inset Quotes eld
18771 \end_inset
18772
18773 fancy
18774 \begin_inset Quotes erd
18775 \end_inset
18776
18777 , you will find that the page header is divided into three fields, not surprisin
18778 gly labeled 
18779 \begin_inset Quotes eld
18780 \end_inset
18781
18782 left
18783 \begin_inset Quotes erd
18784 \end_inset
18785
18786
18787 \begin_inset Quotes eld
18788 \end_inset
18789
18790 center
18791 \begin_inset Quotes erd
18792 \end_inset
18793
18794 , and 
18795 \begin_inset Quotes eld
18796 \end_inset
18797
18798 right
18799 \begin_inset Quotes erd
18800 \end_inset
18801
18802 .
18803  The footer is also divided into these three fields.
18804  The \SpecialChar LaTeX
18805  commands to set these fields in the simplest manner are 
18806 \family sans
18807
18808 \backslash
18809 lhead
18810 \family default
18811
18812 \family sans
18813
18814 \backslash
18815 chead
18816 \family default
18817
18818 \family sans
18819
18820 \backslash
18821 rhead
18822 \family default
18823
18824 \family sans
18825
18826 \backslash
18827 lfoot
18828 \family default
18829 , etc.
18830  Suppose you wish to put your name in the upper left hand corner of each
18831  page.
18832  Simply insert the following command in the preamble: 
18833 \end_layout
18834
18835 \begin_layout Standard
18836
18837 \change_inserted 564990737 1672236008
18838
18839 \family sans
18840 \lang american
18841
18842 \backslash
18843 lhead
18844 \family default
18845 \series bold
18846 {
18847 \series default
18848 John Q.
18849  DocWriter
18850 \series bold
18851 }
18852 \end_layout
18853
18854 \begin_layout Standard
18855
18856 \change_inserted 564990737 1672236008
18857
18858 \lang american
18859 You will now see your name in the upper left.
18860  If a field has a default entry that you would like to get rid of (often
18861  the page number appears in the central footer) simply include a command
18862  with a blank argument, e.
18863 \begin_inset space \thinspace{}
18864 \end_inset
18865
18866 g.:
18867 \end_layout
18868
18869 \begin_layout Standard
18870
18871 \change_inserted 564990737 1672236008
18872
18873 \family sans
18874 \lang american
18875
18876 \backslash
18877 cfoot{}
18878 \end_layout
18879
18880 \begin_layout Standard
18881
18882 \change_inserted 564990737 1672236008
18883
18884 \lang american
18885 There is, however, an easier way to make simple changes.
18886  If you load the 
18887 \family sans
18888 \bar under
18889 D
18890 \bar default
18891 ocument\SpecialChar menuseparator
18892
18893 \bar under
18894 S
18895 \bar default
18896 ettings\SpecialChar menuseparator
18897 Modules\SpecialChar menuseparator
18898 Page Layout\SpecialChar menuseparator
18899 Custom Header/Footer Text
18900 \family default
18901  module, you will find you have six new environments corresponding to the
18902  six fields described above.
18903 \end_layout
18904
18905 \begin_layout Standard
18906
18907 \change_inserted 564990737 1672236008
18908
18909 \lang american
18910 Let's get really fancy: lets put the section number with the word 
18911 \begin_inset Quotes eld
18912 \end_inset
18913
18914 Section
18915 \begin_inset Quotes erd
18916 \end_inset
18917
18918  (e.
18919 \begin_inset space \thinspace{}
18920 \end_inset
18921
18922 g.
18923 \begin_inset space \space{}
18924 \end_inset
18925
18926 Section 3) in the upper left, the page number (e.
18927 \begin_inset space \thinspace{}
18928 \end_inset
18929
18930 g.
18931 \begin_inset space \space{}
18932 \end_inset
18933
18934 Page 4) in the upper right, your name in the lower left, and the date in
18935  the lower right.
18936  Use your newly enabled environments to add these entries:
18937 \end_layout
18938
18939 \begin_layout Standard
18940
18941 \change_inserted 564990737 1672236008
18942
18943 \lang american
18944 \begin_inset VSpace defskip
18945 \end_inset
18946
18947
18948 \end_layout
18949
18950 \begin_layout Standard
18951
18952 \change_inserted 564990737 1672236008
18953
18954 \color green
18955 \lang american
18956 Left
18957 \begin_inset space ~
18958 \end_inset
18959
18960 header:
18961 \series bold
18962 \color inherit
18963  
18964 \series default
18965 Section
18966 \family typewriter
18967  
18968 \family sans
18969
18970 \backslash
18971 thesection
18972 \end_layout
18973
18974 \begin_layout Standard
18975
18976 \change_inserted 564990737 1672236008
18977
18978 \color green
18979 \lang american
18980 Center header:
18981 \end_layout
18982
18983 \begin_layout Standard
18984
18985 \change_inserted 564990737 1672236008
18986
18987 \color green
18988 \lang american
18989 Right header:
18990 \color inherit
18991  Page
18992 \family typewriter
18993  
18994 \family sans
18995
18996 \backslash
18997 thepage
18998 \end_layout
18999
19000 \begin_layout Standard
19001
19002 \change_inserted 564990737 1672236008
19003
19004 \color green
19005 \lang american
19006 Left footer:
19007 \color inherit
19008  John Q.
19009  DocWriter
19010 \end_layout
19011
19012 \begin_layout Standard
19013
19014 \change_inserted 564990737 1672236008
19015
19016 \color green
19017 \lang american
19018 Center footer:
19019 \end_layout
19020
19021 \begin_layout Standard
19022
19023 \change_inserted 564990737 1672236008
19024
19025 \color green
19026 \lang american
19027 Right footer:
19028 \series bold
19029 \color inherit
19030  
19031 \family sans
19032 \series default
19033
19034 \backslash
19035 today
19036 \end_layout
19037
19038 \begin_layout Standard
19039
19040 \change_inserted 564990737 1672236008
19041
19042 \lang american
19043 \begin_inset VSpace defskip
19044 \end_inset
19045
19046
19047 \end_layout
19048
19049 \begin_layout Standard
19050
19051 \change_inserted 564990737 1672236008
19052
19053 \lang american
19054 Make sure you enter the commands 
19055 \family sans
19056
19057 \backslash
19058 thesection
19059 \family default
19060
19061 \family sans
19062
19063 \backslash
19064 thepage
19065 \family default
19066  and 
19067 \family sans
19068
19069 \backslash
19070 today
19071 \family default
19072  as \SpecialChar TeX
19073  Code commands
19074 \series bold
19075 .
19076
19077 \series default
19078  The commands 
19079 \family sans
19080
19081 \backslash
19082 thesection
19083 \family default
19084  and 
19085 \family sans
19086
19087 \backslash
19088 thepage
19089 \family default
19090  access \SpecialChar LaTeX
19091 ’s section and page counters, and so print out the current section
19092  and page numbers.
19093  
19094 \family sans
19095
19096 \backslash
19097 today
19098 \family default
19099  simply prints out today’s date.
19100 \end_layout
19101
19102 \begin_layout Standard
19103
19104 \change_inserted 564990737 1672236008
19105
19106 \lang american
19107 The thicknesses of the horizontal rules drawn beneath the header and above
19108  the footer can also be modified.
19109  If you don't want one of the rules, set its thickness to 0.
19110  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
19111  For this you will need to use \SpecialChar TeX
19112  Code commands like 
19113 \end_layout
19114
19115 \begin_layout Standard
19116
19117 \change_inserted 564990737 1672236008
19118
19119 \family sans
19120 \lang american
19121
19122 \backslash
19123 renewcommand{
19124 \backslash
19125 headrulewidth}{0.4pt}
19126 \family default
19127  and 
19128 \end_layout
19129
19130 \begin_layout Standard
19131
19132 \change_inserted 564990737 1672236008
19133
19134 \family sans
19135 \lang american
19136
19137 \backslash
19138 renewcommand{
19139 \backslash
19140 footrulewidth}{0.4pt}
19141 \family default
19142  to set the thicknesses.
19143 \end_layout
19144
19145 \begin_layout Standard
19146
19147 \change_inserted 564990737 1672236008
19148
19149 \lang american
19150 You can switch the header/footer settings on and off for individual pages
19151  using \SpecialChar TeX
19152  Code commands like 
19153 \family sans
19154
19155 \backslash
19156 thispagestyle{empty}
19157 \family default
19158
19159 \family sans
19160
19161 \backslash
19162 thispagestyle{plain}
19163 \family default
19164 , and 
19165 \family sans
19166
19167 \backslash
19168 thispagestyle{fancy}
19169 \family default
19170 .
19171  Simply insert them in the text on the page you want changed and mark them
19172  as \SpecialChar TeX
19173  code.
19174  In fact, title pages are marked as plain by default, while following pages
19175  are marked fancy when using the global fancy setting.
19176  
19177 \end_layout
19178
19179 \begin_layout Standard
19180
19181 \change_inserted 564990737 1672236008
19182
19183 \lang american
19184 If you want a header or footer to be on the outer side of a two sided document,
19185  you need to use something like:
19186 \end_layout
19187
19188 \begin_layout Standard
19189
19190 \change_inserted 564990737 1672236008
19191
19192 \family sans
19193 \lang american
19194 \begin_inset Flex Strong
19195 status collapsed
19196
19197 \begin_layout Plain Layout
19198
19199 \change_inserted 564990737 1672236008
19200
19201 \family sans
19202 \series medium
19203 \lang american
19204
19205 \backslash
19206 fancyfoot{}
19207 \change_unchanged
19208
19209 \end_layout
19210
19211 \end_inset
19212
19213
19214 \end_layout
19215
19216 \begin_layout Standard
19217
19218 \change_inserted 564990737 1672236008
19219
19220 \family sans
19221 \lang american
19222 \begin_inset Flex Strong
19223 status collapsed
19224
19225 \begin_layout Plain Layout
19226
19227 \change_inserted 564990737 1672236008
19228
19229 \family sans
19230 \series medium
19231 \lang american
19232
19233 \backslash
19234 fancyfoot[LE,RO]{
19235 \backslash
19236 thepage}
19237 \change_unchanged
19238
19239 \end_layout
19240
19241 \end_inset
19242
19243
19244 \end_layout
19245
19246 \begin_layout Standard
19247
19248 \change_inserted 564990737 1672236008
19249
19250 \lang american
19251 The first command clears all existing footers avoiding any conflicts with
19252  your new command.
19253 \end_layout
19254
19255 \begin_layout Standard
19256
19257 \change_inserted 564990737 1672236008
19258
19259 \lang american
19260 You can enter any of these commands, the simpler ones in any of your new
19261  environments, the more complex ones as \SpecialChar TeX
19262  Code commands, at any point in
19263  your document and they will take effect on the next page.
19264 \end_layout
19265
19266 \begin_layout Standard
19267
19268 \change_inserted 564990737 1672236008
19269
19270 \lang american
19271 As a final example, it is possible to include an image in the header or
19272  footer.
19273  Suppose you want to put a company logo in the upper left hand corner.
19274  You might try something like
19275 \end_layout
19276
19277 \begin_layout Standard
19278
19279 \change_inserted 564990737 1672236008
19280
19281 \family sans
19282 \lang american
19283
19284 \backslash
19285 lhead{
19286 \backslash
19287 resizebox{1in}{!}{
19288 \backslash
19289 includegraphics{logo.eps}}}
19290 \end_layout
19291
19292 \begin_layout Standard
19293 \noindent
19294
19295 \change_inserted 564990737 1672236008
19296
19297 \lang american
19298 (you may need to preface this with 
19299 \family sans
19300
19301 \backslash
19302 usepackage{graphics}
19303 \family default
19304  if you don't include graphics elsewhere in your document).
19305 \end_layout
19306
19307 \begin_layout Standard
19308
19309 \change_inserted 564990737 1672236008
19310
19311 \lang american
19312 For more information on fancy headers, you can get the 
19313 \begin_inset Flex Code
19314 status collapsed
19315
19316 \begin_layout Plain Layout
19317
19318 \change_inserted 564990737 1672236008
19319
19320 \lang american
19321 fancyhdr
19322 \change_unchanged
19323
19324 \end_layout
19325
19326 \end_inset
19327
19328  documentation from 
19329 \begin_inset CommandInset href
19330 LatexCommand href
19331 name "CTAN"
19332 target "http://www.ctan.org/pkg/fancyhdr"
19333 literal "false"
19334
19335 \end_inset
19336
19337 .
19338  
19339 \end_layout
19340
19341 \begin_layout Subsection
19342
19343 \change_inserted 564990737 1672236008
19344
19345 \lang american
19346 Landscape Document Parts
19347 \end_layout
19348
19349 \begin_layout Standard
19350
19351 \change_inserted 564990737 1672236008
19352
19353 \lang american
19354 This module outputs parts of the document in landscape mode using 
19355 \family sans
19356 Insert\SpecialChar menuseparator
19357 Custom Insets\SpecialChar menuseparator
19358 Landscape
19359 \family default
19360  or 
19361 \family sans
19362 Insert\SpecialChar menuseparator
19363 Custom Insets\SpecialChar menuseparator
19364 Landscape (Floating)
19365 \family default
19366 .
19367 \end_layout
19368
19369 \begin_layout Subsection
19370
19371 \change_inserted 564990737 1672236008
19372
19373 \lang american
19374 \begin_inset CommandInset label
19375 LatexCommand label
19376 name "sec:Multiple-Columns"
19377
19378 \end_inset
19379
19380 Multiple Columns
19381 \end_layout
19382
19383 \begin_layout Standard
19384
19385 \change_inserted 564990737 1672236008
19386
19387 \lang american
19388 This module uses the 
19389 \family sans
19390 multicol
19391 \family default
19392
19393 \begin_inset Index idx
19394 range none
19395 pageformat default
19396 status collapsed
19397
19398 \begin_layout Plain Layout
19399
19400 \change_inserted 564990737 1672236008
19401
19402 \lang american
19403 \SpecialChar LaTeX
19404 -packages ! multicol
19405 \change_unchanged
19406
19407 \end_layout
19408
19409 \end_inset
19410
19411  package and is independent of the option 
19412 \family sans
19413 Two-
19414 \bar under
19415 c
19416 \bar default
19417 olumn document
19418 \family default
19419  in the 
19420 \family sans
19421 \bar under
19422 D
19423 \bar default
19424 ocument\SpecialChar menuseparator
19425
19426 \bar under
19427 S
19428 \bar default
19429 ettings\SpecialChar menuseparator
19430 Text
19431 \begin_inset space ~
19432 \end_inset
19433
19434 Layout
19435 \family default
19436  dialog.
19437  If you want to have two columns for the whole document, you are recommended
19438  to use the 
19439 \family sans
19440 Two-
19441 \bar under
19442 c
19443 \bar default
19444 olumn document
19445 \family default
19446  option.
19447  For all other cases use this module.
19448 \change_deleted 564990737 1672236008
19449
19450 \lang english
19451 Multiple Text Columns
19452 \end_layout
19453
19454 \begin_layout Standard
19455
19456 \change_deleted 564990737 1672236008
19457 This feature is independent of the option 
19458 \family sans
19459 Two-column document
19460 \family default
19461  in the document settings under 
19462 \family sans
19463 Text Layout
19464 \family default
19465 .
19466  If you want to have 2
19467 \begin_inset space ~
19468 \end_inset
19469
19470 columns for the whole document, it is recommended to use the 
19471 \family sans
19472 Two-column document
19473 \family default
19474  option.
19475  For all other cases use this feature.
19476 \end_layout
19477
19478 \begin_layout Standard
19479
19480 \change_deleted 564990737 1672236008
19481 To use multiple text columns in your document, you have to load the module
19482  
19483 \family sans
19484 Multiple Columns
19485 \family default
19486  (menu 
19487 \family sans
19488 Document\SpecialChar menuseparator
19489 Settings\SpecialChar menuseparator
19490 Modules
19491 \family default
19492 ) and must have the \SpecialChar LaTeX
19493 -package 
19494 \begin_inset Flex Code
19495 status collapsed
19496
19497 \begin_layout Plain Layout
19498 multicol
19499 \end_layout
19500
19501 \end_inset
19502
19503  installed.
19504 \change_unchanged
19505
19506 \end_layout
19507
19508 \begin_layout Standard
19509 Footnotes within multiple columns will be placed at the bottom of the page
19510  and not under each column.
19511  Within the different columns you can use everything, with the limitation
19512  that for floats you need to 
19513 \change_deleted 564990737 1672236179
19514 use the float option 
19515 \family sans
19516 Span columns
19517 \change_inserted 564990737 1672236179
19518
19519 \family default
19520 \lang american
19521 check the option 
19522 \family sans
19523 \bar under
19524 S
19525 \bar default
19526 pan
19527 \begin_inset space ~
19528 \end_inset
19529
19530 columns
19531 \family default
19532  in 
19533 \family sans
19534 \bar under
19535 E
19536 \bar default
19537 dit\SpecialChar menuseparator
19538 Flo
19539 \bar under
19540 a
19541 \bar default
19542 t
19543 \begin_inset space ~
19544 \end_inset
19545
19546 Settings
19547 \change_unchanged
19548
19549 \family default
19550 \lang english
19551 .
19552 \end_layout
19553
19554 \begin_layout Subsubsection
19555 Basics
19556 \end_layout
19557
19558 \begin_layout Standard
19559 If you want to have 2
19560 \begin_inset space ~
19561 \end_inset
19562
19563 columns in your text, insert a multicolumn inset via the menu 
19564 \family sans
19565 Insert\SpecialChar menuseparator
19566 Custom
19567 \begin_inset space ~
19568 \end_inset
19569
19570 Insets\SpecialChar menuseparator
19571 Multiple
19572 \begin_inset space ~
19573 \end_inset
19574
19575 Columns
19576 \family default
19577  where the columns should start.
19578  Write all text that should be printed in 2
19579 \begin_inset space ~
19580 \end_inset
19581
19582 columns into this inset.
19583 \end_layout
19584
19585 \begin_layout Standard
19586 Here is an example:
19587 \end_layout
19588
19589 \begin_layout Standard
19590 \noindent
19591 \begin_inset Flex Multiple Columns
19592 status open
19593
19594 \begin_layout Plain Layout
19595 \noindent
19596
19597 \series bold
19598 \size small
19599 The Adventure of the Empty House
19600 \series default
19601
19602 \begin_inset Newline newline
19603 \end_inset
19604
19605 by Sir Arthur Conan Doyle
19606 \end_layout
19607
19608 \begin_layout Plain Layout
19609
19610 \size small
19611 It was in the spring of the year 1894 that all London was interested, and
19612  the fashionable world dismayed, by the murder of the Honourable Ronald
19613  Adair under most unusual and inexplicable circumstances.
19614  The public has already learned those particulars of the crime which came
19615  out in the police investigation, but a good deal was suppressed upon that
19616  occasion, since the case for the prosecution was so overwhelmingly strong
19617  that it was not necessary to bring forward all the facts.
19618  Only now, at the end of nearly ten years, am I allowed to supply those
19619  missing links which make up the whole of that remarkable chain.
19620  The crime was of interest in itself, but that interest was as nothing to
19621  me compared to the inconceivable sequel, which afforded me the greatest
19622  shock and surprise of any event in my adventurous life.
19623  Even now, after this long interval, I find myself thrilling as I think
19624  of it, and feeling once more that sudden flood of joy, amazement, and increduli
19625 ty which utterly submerged my mind.
19626  Let me say to that public, which has shown some interest in those glimpses
19627  which I have occasionally given them of the thoughts and actions of a very
19628  remarkable man, that they are not to blame me if I have not shared my knowledge
19629  with them, for I should have considered it my first duty to do so, had
19630  I not been barred by a positive prohibition from his own lips, which was
19631  only withdrawn upon the third of last month.
19632 \end_layout
19633
19634 \end_inset
19635
19636
19637 \end_layout
19638
19639 \begin_layout Standard
19640 To get 3 or more columns, set the cursor into the multicolumn inset and
19641  use the menu 
19642 \family sans
19643 Insert\SpecialChar menuseparator
19644 Number
19645 \begin_inset space ~
19646 \end_inset
19647
19648 of
19649 \begin_inset space ~
19650 \end_inset
19651
19652 Columns
19653 \family default
19654 .
19655  The number of the desired columns is written into that inset (for 3
19656 \begin_inset space ~
19657 \end_inset
19658
19659 columns write 
19660 \begin_inset Quotes eld
19661 \end_inset
19662
19663 3
19664 \begin_inset Quotes erd
19665 \end_inset
19666
19667 ).
19668 \begin_inset Newline newline
19669 \end_inset
19670
19671 Here is an example with 3
19672 \begin_inset space ~
19673 \end_inset
19674
19675 columns:
19676 \end_layout
19677
19678 \begin_layout Standard
19679 \begin_inset Flex Multiple Columns
19680 status open
19681
19682 \begin_layout Plain Layout
19683
19684 \size footnotesize
19685 \begin_inset Argument 1
19686 status open
19687
19688 \begin_layout Plain Layout
19689
19690 3
19691 \end_layout
19692
19693 \end_inset
19694
19695 It can be imagined that my close intimacy with Sherlock Holmes had interested
19696  me deeply in crime, and that after his disappearance I never failed to
19697  read with care the various problems which came before the public.
19698  And I even attempted, more than once, for my own private satisfaction,
19699  to employ his methods in their solution, though with indifferent success.
19700  There was none, however, which appealed to me like this tragedy of Ronald
19701  Adair.
19702  As I read the evidence at the inquest, which led up to a verdict of willful
19703  murder against some person or persons unknown, I realized more clearly
19704  than I had ever done the loss which the community had sustained by the
19705  death of Sherlock Holmes.
19706  There were points about this strange business which would, I was sure,
19707  have specially appealed to him, and the efforts of the police would have
19708  been supplemented, or more probably anticipated, by the trained observation
19709  and the alert mind of the first criminal agent in Europe.
19710  All day, as I drove upon my round, I turned over the case in my mind and
19711  found no explanation which appeared to me to be adequate.
19712  At the risk of telling a twice-told tale, I will recapitulate the facts
19713  as they were known to the public at the conclusion of the inquest.
19714 \end_layout
19715
19716 \end_inset
19717
19718
19719 \end_layout
19720
19721 \begin_layout Standard
19722 You can have up to 10
19723 \begin_inset space ~
19724 \end_inset
19725
19726 columns if you want to, but that might not be very pleasant for the readers
19727  of your document.
19728 \end_layout
19729
19730 \begin_layout Standard
19731
19732 \change_deleted 564990737 1672236245
19733 \begin_inset Newpage newpage
19734 \end_inset
19735
19736
19737 \change_unchanged
19738
19739 \end_layout
19740
19741 \begin_layout Subsubsection
19742 Columns inside Columns
19743 \end_layout
19744
19745 \begin_layout Standard
19746 You can also have columns inside columns:
19747 \end_layout
19748
19749 \begin_layout Standard
19750 \begin_inset Flex Multiple Columns
19751 status open
19752
19753 \begin_layout Plain Layout
19754
19755 \size footnotesize
19756 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
19757  at that time governor of one of the Australian colonies.
19758  Adair's mother had returned from Australia to undergo the operation for
19759  cataract, and she, her son Ronald, and her daughter Hilda were living together
19760  at 427 Park Lane.
19761 \end_layout
19762
19763 \begin_layout Plain Layout
19764 \begin_inset Flex Multiple Columns
19765 status open
19766
19767 \begin_layout Plain Layout
19768
19769 \size footnotesize
19770 The youth moved in the best society
19771 \begin_inset space ~
19772 \end_inset
19773
19774 – had, so far as was known, no enemies and no particular vices.
19775  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
19776  had been broken off by mutual consent some months before, and there was
19777  no sign that it had left any very profound feeling behind it.
19778  For the rest {sic} the man's life moved in a narrow and conventional circle,
19779  for his habits were quiet and his nature unemotional.
19780  Yet it was upon this easy-going young aristocrat that death came, in most
19781  strange and unexpected form, between the hours of ten and eleven-twenty
19782  on the night of March 30, 1894.
19783 \end_layout
19784
19785 \end_inset
19786
19787
19788 \end_layout
19789
19790 \begin_layout Plain Layout
19791
19792 \size footnotesize
19793 Ronald Adair was fond of cards
19794 \begin_inset space ~
19795 \end_inset
19796
19797 – playing continually, but never for such stakes as would hurt him.
19798  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
19799  It was shown that, after dinner on the day of his death, he had played
19800  a rubber of whist at the latter club.
19801  He had also played there in the afternoon.
19802
19803 \size default
19804  
19805 \size footnotesize
19806 The evidence of those who had played with him
19807 \begin_inset space ~
19808 \end_inset
19809
19810 – Mr.
19811  Murray, Sir John Hardy, and Colonel Moran
19812 \begin_inset space ~
19813 \end_inset
19814
19815 – showed that the game was whist, and that there was a fairly equal fall
19816  of the cards.
19817  Adair might have lost five pounds, but not more.
19818  His fortune was a considerable one, and such a loss could not in any way
19819  affect him.
19820  He had played nearly every day at one club or other, but he was a cautious
19821  player, and usually rose a winner.
19822  It came out in evidence that, in partnership with Colonel Moran, he had
19823  actually won as much as four hundred and twenty pounds in a sitting, some
19824  weeks before, from Godfrey Milner and Lord Balmoral.
19825  So much for his recent history as it came out at the inquest.
19826 \end_layout
19827
19828 \end_inset
19829
19830
19831 \end_layout
19832
19833 \begin_layout Subsubsection
19834 Advanced Examples
19835 \end_layout
19836
19837 \begin_layout Standard
19838 The examples in this section show some more special features of multiple
19839  columns.
19840 \end_layout
19841
19842 \begin_layout Standard
19843 For more features of multiple columns, have a look at the 
19844 \begin_inset CommandInset href
19845 LatexCommand href
19846 name "documentation"
19847 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
19848 literal "false"
19849
19850 \end_inset
19851
19852  of the \SpecialChar LaTeX
19853 -package 
19854 \begin_inset Flex Code
19855 status collapsed
19856
19857 \begin_layout Plain Layout
19858 multicol
19859 \end_layout
19860
19861 \end_inset
19862
19863 .
19864 \end_layout
19865
19866 \begin_layout Paragraph
19867 Preface
19868 \end_layout
19869
19870 \begin_layout Standard
19871 To add a preface text for multiple columns, set the cursor into the multicolumn
19872  inset and use the menu 
19873 \family sans
19874 Insert\SpecialChar menuseparator
19875 Preface
19876 \family default
19877 .
19878  Write your preface text into that inset.
19879 \begin_inset Newline newline
19880 \end_inset
19881
19882 This is an example with some preface text:
19883 \end_layout
19884
19885 \begin_layout Standard
19886 \begin_inset VSpace bigskip
19887 \end_inset
19888
19889
19890 \end_layout
19891
19892 \begin_layout Standard
19893 \begin_inset Flex Multiple Columns
19894 status open
19895
19896 \begin_layout Plain Layout
19897 \begin_inset Argument 2
19898 status open
19899
19900 \begin_layout Plain Layout
19901 And the story continues and continues and continues and continues\SpecialChar ldots
19902
19903 \end_layout
19904
19905 \end_inset
19906
19907
19908 \size small
19909 On the evening of the crime, he returned from the club exactly at ten.
19910  His mother and sister were out spending the evening with a relation.
19911  The servant deposed that she heard him enter the front room on the second
19912  floor, generally used as his sitting-room.
19913  She had lit a fire there, and as it smoked she had opened the window.
19914  No sound was heard from the room until eleven-twenty, the hour of the return
19915  of Lady Maynooth and her daughter.
19916  Desiring to say good-night, she attempted to enter her son's room.
19917  The door was locked on the inside, and no answer could be got to their
19918  cries and knocking.
19919  Help was obtained, and the door forced.
19920  The unfortunate young man was found lying near the table.
19921  His head had been horribly mutilated by an expanding revolver bullet, but
19922  no weapon of any sort was to be found in the room.
19923 \end_layout
19924
19925 \end_inset
19926
19927
19928 \end_layout
19929
19930 \begin_layout Standard
19931 You can also use a section heading as the preface if you use a section command
19932  as \SpecialChar TeX
19933  Code.
19934  For example the command
19935 \end_layout
19936
19937 \begin_layout LyX-Code
19938
19939 \backslash
19940 subsection{subsection title}
19941 \end_layout
19942
19943 \begin_layout Standard
19944 creates a subsection.
19945  In this example the preface is a subsubsection:
19946 \end_layout
19947
19948 \begin_layout Standard
19949 \begin_inset Flex Multiple Columns
19950 status open
19951
19952 \begin_layout Plain Layout
19953 \begin_inset Argument 2
19954 status open
19955
19956 \begin_layout Plain Layout
19957 \begin_inset ERT
19958 status collapsed
19959
19960 \begin_layout Plain Layout
19961
19962
19963 \backslash
19964 subsubsection{
19965 \end_layout
19966
19967 \end_inset
19968
19969 This is a subsubsection heading as a preface
19970 \begin_inset ERT
19971 status collapsed
19972
19973 \begin_layout Plain Layout
19974
19975 }
19976 \end_layout
19977
19978 \end_inset
19979
19980
19981 \end_layout
19982
19983 \end_inset
19984
19985
19986 \size small
19987 A minute examination of the circumstances served only to make the case more
19988  complex.
19989  In the first place, no reason could be given why the young man should have
19990  fastened the door upon the inside.
19991  There was the possibility that the murderer had done this, and had afterwards
19992  escaped by the window.
19993  The drop was at least twenty feet, however, and a bed of crocuses in full
19994  bloom lay beneath.
19995  Neither the flowers nor the earth showed any sign of having been disturbed,
19996  nor were there any marks upon the narrow strip of grass which separated
19997  the house from the road.
19998  Apparently, therefore, it was the young man himself who had fastened the
19999  door.
20000  But how did he come by his death? No one could have climbed up to the window
20001  without leaving traces.
20002  Suppose a man had fired through the window, he would indeed be a remarkable
20003  shot who could with a revolver inflict so deadly a wound.
20004  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
20005  a hundred yards of the house.
20006  No one had heard a shot.
20007 \end_layout
20008
20009 \end_inset
20010
20011
20012 \end_layout
20013
20014 \begin_layout Standard
20015 If there is less vertical space than 6
20016 \begin_inset space ~
20017 \end_inset
20018
20019 text lines is left on the page at the beginning of the multiple columns,
20020  a page break will be inserted before the multiple columns.
20021  Depending on the number of lines of the preface text, you might want to
20022  change this space.
20023  This is done by setting the cursor into the mulitcolumn inset behind the
20024  preface (if there is any) and using the menu 
20025 \family sans
20026 Insert\SpecialChar menuseparator
20027 Space
20028 \begin_inset space ~
20029 \end_inset
20030
20031 Before
20032 \begin_inset space ~
20033 \end_inset
20034
20035 Page
20036 \begin_inset space ~
20037 \end_inset
20038
20039 Break
20040 \family default
20041 .
20042  Insert into that inset the amount of space like e.
20043 \begin_inset space \thinspace{}
20044 \end_inset
20045
20046 g.
20047 \begin_inset space \space{}
20048 \end_inset
20049
20050
20051 \begin_inset Quotes eld
20052 \end_inset
20053
20054 5cm
20055 \begin_inset Quotes erd
20056 \end_inset
20057
20058 .
20059 \begin_inset Newline newline
20060 \end_inset
20061
20062 In this example the space is set to 7
20063 \begin_inset space ~
20064 \end_inset
20065
20066 text lines by using 
20067 \begin_inset Flex Code
20068 status collapsed
20069
20070 \begin_layout Plain Layout
20071 7
20072 \backslash
20073 baselineskip
20074 \end_layout
20075
20076 \end_inset
20077
20078  (where the command 
20079 \begin_inset Flex Code
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083
20084 \backslash
20085 baselineskip
20086 \end_layout
20087
20088 \end_inset
20089
20090  needs to be inserted as \SpecialChar TeX
20091  code):
20092 \end_layout
20093
20094 \begin_layout Standard
20095 \begin_inset Flex Multiple Columns
20096 status open
20097
20098 \begin_layout Plain Layout
20099 \begin_inset Argument 3
20100 status open
20101
20102 \begin_layout Plain Layout
20103 7
20104 \begin_inset ERT
20105 status collapsed
20106
20107 \begin_layout Plain Layout
20108
20109
20110 \backslash
20111 baselineskip
20112 \end_layout
20113
20114 \end_inset
20115
20116
20117 \end_layout
20118
20119 \end_inset
20120
20121
20122 \size small
20123 On the evening of the crime, he returned from the club exactly at ten.
20124  His mother and sister were out spending the evening with a relation.
20125  The servant deposed that she heard him enter the front room on the second
20126  floor, generally used as his sitting-room.
20127  She had lit a fire there, and as it smoked she had opened the window.
20128  No sound was heard from the room until eleven-twenty, the hour of the return
20129  of Lady Maynooth and her daughter.
20130  Desiring to say good-night, she attempted to enter her son's room.
20131  The door was locked on the inside, and no answer could be got to their
20132  cries and knocking.
20133  Help was obtained, and the door forced.
20134  The unfortunate young man was found lying near the table.
20135  His head had been horribly mutilated by an expanding revolver bullet, but
20136  no weapon of any sort was to be found in the room.
20137 \end_layout
20138
20139 \end_inset
20140
20141
20142 \end_layout
20143
20144 \begin_layout Paragraph
20145 Surrounding Space
20146 \end_layout
20147
20148 \begin_layout Standard
20149 The amount of space before and after multiple columns can be changed by
20150  changing the length 
20151 \begin_inset Flex Code
20152 status collapsed
20153
20154 \begin_layout Plain Layout
20155
20156 \backslash
20157 multicolsep
20158 \end_layout
20159
20160 \end_inset
20161
20162 .
20163  For example the command
20164 \end_layout
20165
20166 \begin_layout LyX-Code
20167
20168 \backslash
20169 setlength{
20170 \backslash
20171 multicolsep}{3cm}
20172 \end_layout
20173
20174 \begin_layout Standard
20175 in \SpecialChar TeX
20176  Code changes its value to 3
20177 \begin_inset space \thinspace{}
20178 \end_inset
20179
20180 cm.
20181  The change must be made before the multiple columns' start.
20182  The predefined value is 13
20183 \begin_inset space \thinspace{}
20184 \end_inset
20185
20186 pt.
20187 \end_layout
20188
20189 \begin_layout Standard
20190 For this example 
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195
20196 \backslash
20197 multicolsep
20198 \end_layout
20199
20200 \end_inset
20201
20202  was set to 2.5
20203 \begin_inset space \thinspace{}
20204 \end_inset
20205
20206 cm:
20207 \end_layout
20208
20209 \begin_layout Standard
20210 \begin_inset ERT
20211 status open
20212
20213 \begin_layout Plain Layout
20214
20215
20216 \backslash
20217 setlength{
20218 \backslash
20219 multicolsep}{2.5cm}
20220 \end_layout
20221
20222 \end_inset
20223
20224
20225 \end_layout
20226
20227 \begin_layout Standard
20228 \begin_inset Flex Multiple Columns
20229 status open
20230
20231 \begin_layout Plain Layout
20232
20233 \size small
20234 All day I turned these facts over in my mind, endeavouring to hit upon some
20235  theory which could reconcile them all, and to find that line of least resistanc
20236 e which my poor friend had declared to be the starting-point of every investigat
20237 ion.
20238  I confess that I made little progress.
20239  In the evening I strolled across the Park, and found myself about six o'clock
20240  at the Oxford Street end of Park Lane.
20241  A group of loafers upon the pavements, all staring up at a particular window,
20242  directed me to the house which I had come to see.
20243  A tall, thin man with coloured glasses, whom I strongly suspected of being
20244  a plain-clothes detective, was pointing out some theory of his own, while
20245  the others crowded round to listen to what he said.
20246  I got as near him as I could, but his observations seemed to me to be absurd,
20247  so I withdrew again in some disgust.
20248  As I did so I struck against an elderly, deformed man, who had been behind
20249  me, and I knocked down several books which he was carrying.
20250 \end_layout
20251
20252 \end_inset
20253
20254
20255 \end_layout
20256
20257 \begin_layout Standard
20258 \begin_inset Note Greyedout
20259 status open
20260
20261 \begin_layout Plain Layout
20262
20263 \series bold
20264 Note:
20265 \series default
20266  The values you set with 
20267 \begin_inset Flex Code
20268 status collapsed
20269
20270 \begin_layout Plain Layout
20271
20272 \backslash
20273 setlength
20274 \end_layout
20275
20276 \end_inset
20277
20278  will be used for all following multiple columns until you change them again.
20279 \end_layout
20280
20281 \end_inset
20282
20283
20284 \end_layout
20285
20286 \begin_layout Standard
20287 \begin_inset ERT
20288 status collapsed
20289
20290 \begin_layout Plain Layout
20291
20292
20293 \backslash
20294 setlength{
20295 \backslash
20296 multicolsep}{13pt}
20297 \end_layout
20298
20299 \end_inset
20300
20301
20302 \begin_inset Note Note
20303 status collapsed
20304
20305 \begin_layout Plain Layout
20306 go back to the default
20307 \end_layout
20308
20309 \end_inset
20310
20311
20312 \end_layout
20313
20314 \begin_layout Standard
20315
20316 \change_deleted 564990737 1672236355
20317 \begin_inset Newpage newpage
20318 \end_inset
20319
20320
20321 \change_unchanged
20322
20323 \end_layout
20324
20325 \begin_layout Paragraph
20326 Column Breaks
20327 \end_layout
20328
20329 \begin_layout Standard
20330 A column break can be forced by inserting the command 
20331 \begin_inset Flex Code
20332 status collapsed
20333
20334 \begin_layout Plain Layout
20335
20336 \backslash
20337 columnbreak{}
20338 \end_layout
20339
20340 \end_inset
20341
20342  as \SpecialChar TeX
20343  Code to that position in the text where the column should be broken.
20344  Note that this leads in most cases to whitespace in the text.
20345 \begin_inset Newline newline
20346 \end_inset
20347
20348 Here is an example:
20349 \end_layout
20350
20351 \begin_layout Standard
20352 \begin_inset Flex Multiple Columns
20353 status open
20354
20355 \begin_layout Plain Layout
20356
20357 \size small
20358 \begin_inset Quotes eld
20359 \end_inset
20360
20361 You're surprised to see me, sir,
20362 \begin_inset Quotes erd
20363 \end_inset
20364
20365  said he, in a strange, croaking voice.
20366 \end_layout
20367
20368 \begin_layout Plain Layout
20369
20370 \size small
20371 I acknowledged that I was.
20372 \end_layout
20373
20374 \begin_layout Plain Layout
20375
20376 \size small
20377 \begin_inset Quotes eld
20378 \end_inset
20379
20380 Well, I've a conscience, sir, and when I chanced to see you go into this
20381  house, as I came hobbling after you, I thought to myself, I'll just step
20382  in and see that kind gentleman, and tell him that if I was a bit gruff
20383  in my manner there was not any harm meant, and that I am much obliged to
20384  him for picking up my books.
20385 \begin_inset Quotes erd
20386 \end_inset
20387
20388
20389 \end_layout
20390
20391 \begin_layout Plain Layout
20392
20393 \size small
20394 \begin_inset Quotes eld
20395 \end_inset
20396
20397 You make too much of a trifle,
20398 \begin_inset Quotes erd
20399 \end_inset
20400
20401  said I.
20402  
20403 \begin_inset Quotes eld
20404 \end_inset
20405
20406 May I ask how you knew who I was?
20407 \begin_inset Quotes erd
20408 \end_inset
20409
20410  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
20411 \begin_inset ERT
20412 status collapsed
20413
20414 \begin_layout Plain Layout
20415
20416
20417 \backslash
20418 columnbreak{}
20419 \end_layout
20420
20421 \end_inset
20422
20423
20424 \end_layout
20425
20426 \begin_layout Plain Layout
20427
20428 \size small
20429 \begin_inset Quotes eld
20430 \end_inset
20431
20432 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
20433  you'll find my little bookshop at the corner of Church Street, and very
20434  happy to see you, I am sure.
20435  Maybe you collect yourself, sir.
20436  Here's 
20437 \noun on
20438 British
20439 \begin_inset space ~
20440 \end_inset
20441
20442 Birds
20443 \noun default
20444 , and 
20445 \noun on
20446 Catullus
20447 \noun default
20448 , and 
20449 \noun on
20450 The Holy War
20451 \noun default
20452
20453 \begin_inset space ~
20454 \end_inset
20455
20456 – a bargain, every one of them.
20457  With five volumes you could just fill that gap on that second shelf.
20458  It looks untidy, does it not, sir?
20459 \begin_inset Quotes erd
20460 \end_inset
20461
20462
20463 \end_layout
20464
20465 \end_inset
20466
20467
20468 \end_layout
20469
20470 \begin_layout Paragraph
20471 Column Separation
20472 \end_layout
20473
20474 \begin_layout Standard
20475 The width of the columns is automatically calculated, but you can modify
20476  the space between the columns.
20477  This is done by changing the length 
20478 \begin_inset Flex Code
20479 status collapsed
20480
20481 \begin_layout Plain Layout
20482
20483 \backslash
20484 columnsep
20485 \end_layout
20486
20487 \end_inset
20488
20489 .
20490  Its predefined value is 10
20491 \begin_inset space \thinspace{}
20492 \end_inset
20493
20494 pt.
20495  Here is an example where 
20496 \begin_inset Flex Code
20497 status collapsed
20498
20499 \begin_layout Plain Layout
20500
20501 \backslash
20502 columnsep
20503 \end_layout
20504
20505 \end_inset
20506
20507  is set to 3
20508 \begin_inset space \thinspace{}
20509 \end_inset
20510
20511 cm:
20512 \end_layout
20513
20514 \begin_layout Standard
20515 \begin_inset ERT
20516 status open
20517
20518 \begin_layout Plain Layout
20519
20520
20521 \backslash
20522 setlength{
20523 \backslash
20524 columnsep}{3cm}
20525 \end_layout
20526
20527 \end_inset
20528
20529
20530 \end_layout
20531
20532 \begin_layout Standard
20533 \begin_inset Flex Multiple Columns
20534 status open
20535
20536 \begin_layout Plain Layout
20537
20538 \size small
20539 My observations of No.
20540 \begin_inset space \space{}
20541 \end_inset
20542
20543 427 Park Lane did little to clear up the problem in which I was interested.
20544  The house was separated from the street by a low wall and railing, the
20545  whole not more than five feet high.
20546  It was perfectly easy, therefore, for anyone to get into the garden, but
20547  the window was entirely inaccessible, since there was no water pipe or
20548  anything which could help the most active man to climb it.
20549  More puzzled than ever, I retraced my steps to Kensington.
20550  I had not been in my study five minutes when the maid entered to say that
20551  a person desired to see me.
20552  To my astonishment it was none other than my strange old book collector,
20553  his sharp, wizened face peering out from a frame of white hair, and his
20554  precious volumes, a dozen of them at least, wedged under his right arm.
20555 \end_layout
20556
20557 \end_inset
20558
20559
20560 \end_layout
20561
20562 \begin_layout Standard
20563 \begin_inset ERT
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567
20568
20569 \backslash
20570 setlength{
20571 \backslash
20572 columnsep}{10pt}
20573 \end_layout
20574
20575 \end_inset
20576
20577
20578 \begin_inset Note Note
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582 go back to the default
20583 \end_layout
20584
20585 \end_inset
20586
20587
20588 \end_layout
20589
20590 \begin_layout Paragraph
20591 Vertical Lines
20592 \end_layout
20593
20594 \begin_layout Standard
20595 Between the columns a rule with a width of the length 
20596 \begin_inset Flex Code
20597 status collapsed
20598
20599 \begin_layout Plain Layout
20600
20601 \backslash
20602 columnseprule
20603 \end_layout
20604
20605 \end_inset
20606
20607  is placed.
20608  If this rule width is set to 0
20609 \begin_inset space \thinspace{}
20610 \end_inset
20611
20612 pt (this is the default), the rule is suppressed.
20613  In the following example the rule is 2
20614 \begin_inset space \thinspace{}
20615 \end_inset
20616
20617 pt wide:
20618 \end_layout
20619
20620 \begin_layout Standard
20621 \begin_inset ERT
20622 status open
20623
20624 \begin_layout Plain Layout
20625
20626
20627 \backslash
20628 setlength{
20629 \backslash
20630 columnseprule}{2pt}
20631 \end_layout
20632
20633 \end_inset
20634
20635
20636 \end_layout
20637
20638 \begin_layout Standard
20639 \begin_inset Flex Multiple Columns
20640 status open
20641
20642 \begin_layout Plain Layout
20643
20644 \size small
20645 \begin_inset Quotes eld
20646 \end_inset
20647
20648 You're surprised to see me, sir,
20649 \begin_inset Quotes erd
20650 \end_inset
20651
20652  said he, in a strange, croaking voice.
20653 \end_layout
20654
20655 \begin_layout Plain Layout
20656
20657 \size small
20658 I acknowledged that I was.
20659 \end_layout
20660
20661 \begin_layout Plain Layout
20662
20663 \size small
20664 \begin_inset Quotes eld
20665 \end_inset
20666
20667 Well, I've a conscience, sir, and when I chanced to see you go into this
20668  house, as I came hobbling after you, I thought to myself, I'll just step
20669  in and see that kind gentleman, and tell him that if I was a bit gruff
20670  in my manner there was not any harm meant, and that I am much obliged to
20671  him for picking up my books.
20672 \begin_inset Quotes erd
20673 \end_inset
20674
20675
20676 \end_layout
20677
20678 \begin_layout Plain Layout
20679
20680 \size small
20681 \begin_inset Quotes eld
20682 \end_inset
20683
20684 You make too much of a trifle,
20685 \begin_inset Quotes erd
20686 \end_inset
20687
20688  said I.
20689  
20690 \begin_inset Quotes eld
20691 \end_inset
20692
20693 May I ask how you knew who I was?
20694 \begin_inset Quotes erd
20695 \end_inset
20696
20697
20698 \end_layout
20699
20700 \begin_layout Plain Layout
20701
20702 \size small
20703 \begin_inset Quotes eld
20704 \end_inset
20705
20706 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
20707  you'll find my little bookshop at the corner of Church Street, and very
20708  happy to see you, I am sure.
20709  Maybe you collect yourself, sir.
20710  Here's 
20711 \noun on
20712 British
20713 \begin_inset space ~
20714 \end_inset
20715
20716 Birds
20717 \noun default
20718 , and 
20719 \noun on
20720 Catullus
20721 \noun default
20722 , and 
20723 \noun on
20724 The Holy War
20725 \noun default
20726
20727 \begin_inset space ~
20728 \end_inset
20729
20730 – a bargain, every one of them.
20731  With five volumes you could just fill that gap on that second shelf.
20732  It looks untidy, does it not, sir?
20733 \begin_inset Quotes erd
20734 \end_inset
20735
20736
20737 \end_layout
20738
20739 \end_inset
20740
20741
20742 \end_layout
20743
20744 \begin_layout Standard
20745 \begin_inset VSpace defskip
20746 \end_inset
20747
20748
20749 \end_layout
20750
20751 \begin_layout Standard
20752 The rule can be colored by redefining the command 
20753 \begin_inset Flex Code
20754 status collapsed
20755
20756 \begin_layout Plain Layout
20757
20758 \backslash
20759 columnseprulecolor
20760 \end_layout
20761
20762 \end_inset
20763
20764 .
20765  This is done by inserting the command
20766 \end_layout
20767
20768 \begin_layout LyX-Code
20769
20770 \backslash
20771 renewcommand{
20772 \backslash
20773 columnseprulecolor}{
20774 \backslash
20775 color{red}}
20776 \end_layout
20777
20778 \begin_layout Standard
20779 as \SpecialChar TeX
20780  Code before the multicolumn inset.
20781  Replace 
20782 \begin_inset Flex Code
20783 status collapsed
20784
20785 \begin_layout Plain Layout
20786 red
20787 \end_layout
20788
20789 \end_inset
20790
20791  in this command by a color of your choice.
20792  You can use all pre- and self-defined colors.
20793  See the 
20794 \emph on
20795 EmbeddedObjects
20796 \emph default
20797  manual, section 
20798 \emph on
20799 Colored
20800 \begin_inset space ~
20801 \end_inset
20802
20803 Tables
20804 \emph default
20805  for more information about pre- and self-defined colors.
20806  To go back to the default color insert the command
20807 \end_layout
20808
20809 \begin_layout LyX-Code
20810
20811 \backslash
20812 renewcommand{
20813 \backslash
20814 columnseprulecolor}{
20815 \backslash
20816 normalcolor}
20817 \end_layout
20818
20819 \begin_layout Standard
20820 Here is the example with a cyan rule and 1
20821 \begin_inset space \thinspace{}
20822 \end_inset
20823
20824 cm column separation:
20825 \end_layout
20826
20827 \begin_layout Standard
20828 \begin_inset ERT
20829 status open
20830
20831 \begin_layout Plain Layout
20832
20833
20834 \backslash
20835 setlength{
20836 \backslash
20837 columnsep}{1cm}
20838 \end_layout
20839
20840 \begin_layout Plain Layout
20841
20842
20843 \backslash
20844 renewcommand{
20845 \backslash
20846 columnseprulecolor}{
20847 \backslash
20848 color{cyan}}
20849 \end_layout
20850
20851 \end_inset
20852
20853
20854 \end_layout
20855
20856 \begin_layout Standard
20857 \begin_inset Flex Multiple Columns
20858 status open
20859
20860 \begin_layout Plain Layout
20861
20862 \size small
20863 \begin_inset Quotes eld
20864 \end_inset
20865
20866 You're surprised to see me, sir,
20867 \begin_inset Quotes erd
20868 \end_inset
20869
20870  said he, in a strange, croaking voice.
20871 \end_layout
20872
20873 \begin_layout Plain Layout
20874
20875 \size small
20876 I acknowledged that I was.
20877 \end_layout
20878
20879 \begin_layout Plain Layout
20880
20881 \size small
20882 \begin_inset Quotes eld
20883 \end_inset
20884
20885 Well, I've a conscience, sir, and when I chanced to see you go into this
20886  house, as I came hobbling after you, I thought to myself, I'll just step
20887  in and see that kind gentleman, and tell him that if I was a bit gruff
20888  in my manner there was not any harm meant, and that I am much obliged to
20889  him for picking up my books.
20890 \begin_inset Quotes erd
20891 \end_inset
20892
20893
20894 \end_layout
20895
20896 \begin_layout Plain Layout
20897
20898 \size small
20899 \begin_inset Quotes eld
20900 \end_inset
20901
20902 You make too much of a trifle,
20903 \begin_inset Quotes erd
20904 \end_inset
20905
20906  said I.
20907  
20908 \begin_inset Quotes eld
20909 \end_inset
20910
20911 May I ask how you knew who I was?
20912 \begin_inset Quotes erd
20913 \end_inset
20914
20915
20916 \end_layout
20917
20918 \begin_layout Plain Layout
20919
20920 \size small
20921 \begin_inset Quotes eld
20922 \end_inset
20923
20924 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
20925  you'll find my little bookshop at the corner of Church Street, and very
20926  happy to see you, I am sure.
20927  Maybe you collect yourself, sir.
20928  Here's 
20929 \noun on
20930 British
20931 \begin_inset space ~
20932 \end_inset
20933
20934 Birds
20935 \noun default
20936 , and 
20937 \noun on
20938 Catullus
20939 \noun default
20940 , and 
20941 \noun on
20942 The Holy War
20943 \noun default
20944
20945 \begin_inset space ~
20946 \end_inset
20947
20948 – a bargain, every one of them.
20949  With five volumes you could just fill that gap on that second shelf.
20950  It looks untidy, does it not, sir?
20951 \begin_inset Quotes erd
20952 \end_inset
20953
20954
20955 \end_layout
20956
20957 \end_inset
20958
20959
20960 \end_layout
20961
20962 \begin_layout Standard
20963 \begin_inset ERT
20964 status collapsed
20965
20966 \begin_layout Plain Layout
20967
20968
20969 \backslash
20970 setlength{
20971 \backslash
20972 columnseprule}{0pt}
20973 \end_layout
20974
20975 \begin_layout Plain Layout
20976
20977
20978 \backslash
20979 renewcommand{
20980 \backslash
20981 columnseprulecolor}{
20982 \backslash
20983 normalcolor}
20984 \end_layout
20985
20986 \end_inset
20987
20988
20989 \begin_inset Note Note
20990 status collapsed
20991
20992 \begin_layout Plain Layout
20993 go back to the default
20994 \end_layout
20995
20996 \end_inset
20997
20998
20999 \end_layout
21000
21001 \begin_layout Section
21002
21003 \change_inserted 564990737 1671270380
21004 Paragraph Styles
21005 \end_layout
21006
21007 \begin_layout Subsection
21008
21009 \change_inserted 564990737 1671270398
21010 Custom
21011 \change_deleted 564990737 1671270396
21012 Non-standard
21013 \change_unchanged
21014  Paragraph Shapes
21015 \end_layout
21016
21017 \begin_layout Standard
21018 \noindent
21019 \SpecialChar LaTeX
21020  as well as any other text processor uses by default rectangular paragraphs.
21021  For special cases like for example posters, invitation cards or poems you
21022  can modify the paragraph shape to one of your choice.
21023  
21024 \change_deleted 564990737 1672311802
21025 This can be done by using the \SpecialChar LaTeX
21026 -package 
21027 \begin_inset Flex Code
21028 status collapsed
21029
21030 \begin_layout Plain Layout
21031 shapepar
21032 \end_layout
21033
21034 \end_inset
21035
21036  which is loaded by using in the document settings the module 
21037 \family sans
21038 Custom paragraph shapes
21039 \family default
21040 .
21041 \change_inserted 564990737 1672311802
21042
21043 \lang american
21044 This module uses the 
21045 \family sans
21046 shapepar
21047 \family default
21048  package to provide over a dozen paragraph shapes as well as commands to
21049  define custom shapes.
21050  
21051 \change_unchanged
21052
21053 \end_layout
21054
21055 \begin_layout Subsubsection
21056 Predefined shapes
21057 \end_layout
21058
21059 \begin_layout Standard
21060
21061 \series bold
21062 shapepar
21063 \series default
21064  provides the following shapes:
21065 \end_layout
21066
21067 \begin_layout Standard
21068 \begin_inset Tabular
21069 <lyxtabular version="3" rows="13" columns="3">
21070 <features booktabs="true" islongtable="true" longtabularalignment="center">
21071 <column alignment="left" valignment="middle" width="16col%">
21072 <column alignment="left" valignment="middle" width="40col%">
21073 <column alignment="left" valignment="middle" width="35col%">
21074 <row endhead="true">
21075 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21076 \begin_inset Text
21077
21078 \begin_layout Plain Layout
21079
21080 \series bold
21081 \size small
21082 Name
21083 \end_layout
21084
21085 \end_inset
21086 </cell>
21087 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21088 \begin_inset Text
21089
21090 \begin_layout Plain Layout
21091
21092 \series bold
21093 \size small
21094 Description
21095 \end_layout
21096
21097 \end_inset
21098 </cell>
21099 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21100 \begin_inset Text
21101
21102 \begin_layout Plain Layout
21103
21104 \series bold
21105 \size small
21106 Annotation
21107 \end_layout
21108
21109 \end_inset
21110 </cell>
21111 </row>
21112 <row interlinespace="default">
21113 <cell alignment="left" valignment="top" usebox="none">
21114 \begin_inset Text
21115
21116 \begin_layout Plain Layout
21117
21118 \size small
21119 CDlabel
21120 \end_layout
21121
21122 \end_inset
21123 </cell>
21124 <cell alignment="left" valignment="top" usebox="none">
21125 \begin_inset Text
21126
21127 \begin_layout Plain Layout
21128
21129 \size small
21130 Circle with circular hole (in the size of a CD/DVD)
21131 \end_layout
21132
21133 \end_inset
21134 </cell>
21135 <cell alignment="left" valignment="top" usebox="none">
21136 \begin_inset Text
21137
21138 \begin_layout Plain Layout
21139
21140 \size small
21141 Cannot be scaled, take care there is not too much text
21142 \end_layout
21143
21144 \end_inset
21145 </cell>
21146 </row>
21147 <row interlinespace="default">
21148 <cell alignment="left" valignment="top" usebox="none">
21149 \begin_inset Text
21150
21151 \begin_layout Plain Layout
21152
21153 \size small
21154 Circle
21155 \end_layout
21156
21157 \end_inset
21158 </cell>
21159 <cell alignment="left" valignment="top" usebox="none">
21160 \begin_inset Text
21161
21162 \begin_layout Plain Layout
21163
21164 \size small
21165 Circle
21166 \end_layout
21167
21168 \end_inset
21169 </cell>
21170 <cell alignment="left" valignment="top" usebox="none">
21171 \begin_inset Text
21172
21173 \begin_layout Plain Layout
21174
21175 \size small
21176 Fragile, calculation might fail
21177 \end_layout
21178
21179 \end_inset
21180 </cell>
21181 </row>
21182 <row interlinespace="default">
21183 <cell alignment="left" valignment="top" usebox="none">
21184 \begin_inset Text
21185
21186 \begin_layout Plain Layout
21187
21188 \size small
21189 Diamond
21190 \end_layout
21191
21192 \end_inset
21193 </cell>
21194 <cell alignment="left" valignment="top" usebox="none">
21195 \begin_inset Text
21196
21197 \begin_layout Plain Layout
21198
21199 \size small
21200 Rhomboid (symbolizing a 
21201 \begin_inset Quotes eld
21202 \end_inset
21203
21204 diamond
21205 \begin_inset Quotes erd
21206 \end_inset
21207
21208 )
21209 \end_layout
21210
21211 \end_inset
21212 </cell>
21213 <cell alignment="left" valignment="top" usebox="none">
21214 \begin_inset Text
21215
21216 \begin_layout Plain Layout
21217
21218 \size small
21219 -
21220 \end_layout
21221
21222 \end_inset
21223 </cell>
21224 </row>
21225 <row interlinespace="default">
21226 <cell alignment="left" valignment="top" usebox="none">
21227 \begin_inset Text
21228
21229 \begin_layout Plain Layout
21230
21231 \size small
21232 Heart
21233 \end_layout
21234
21235 \end_inset
21236 </cell>
21237 <cell alignment="left" valignment="top" usebox="none">
21238 \begin_inset Text
21239
21240 \begin_layout Plain Layout
21241
21242 \size small
21243 Heart-like shape
21244 \end_layout
21245
21246 \end_inset
21247 </cell>
21248 <cell alignment="left" valignment="top" usebox="none">
21249 \begin_inset Text
21250
21251 \begin_layout Plain Layout
21252
21253 \size small
21254 -
21255 \end_layout
21256
21257 \end_inset
21258 </cell>
21259 </row>
21260 <row interlinespace="default">
21261 <cell alignment="left" valignment="top" usebox="none">
21262 \begin_inset Text
21263
21264 \begin_layout Plain Layout
21265
21266 \size small
21267 Hexagon
21268 \end_layout
21269
21270 \end_inset
21271 </cell>
21272 <cell alignment="left" valignment="top" usebox="none">
21273 \begin_inset Text
21274
21275 \begin_layout Plain Layout
21276
21277 \size small
21278 Hexagon
21279 \end_layout
21280
21281 \end_inset
21282 </cell>
21283 <cell alignment="left" valignment="top" usebox="none">
21284 \begin_inset Text
21285
21286 \begin_layout Plain Layout
21287
21288 \size small
21289 -
21290 \end_layout
21291
21292 \end_inset
21293 </cell>
21294 </row>
21295 <row interlinespace="default">
21296 <cell alignment="left" valignment="top" usebox="none">
21297 \begin_inset Text
21298
21299 \begin_layout Plain Layout
21300
21301 \size small
21302 Nut
21303 \end_layout
21304
21305 \end_inset
21306 </cell>
21307 <cell alignment="left" valignment="top" usebox="none">
21308 \begin_inset Text
21309
21310 \begin_layout Plain Layout
21311
21312 \size small
21313 Nut for bolt (hexagon with circular hole)
21314 \end_layout
21315
21316 \end_inset
21317 </cell>
21318 <cell alignment="left" valignment="top" usebox="none">
21319 \begin_inset Text
21320
21321 \begin_layout Plain Layout
21322
21323 \size small
21324 -
21325 \end_layout
21326
21327 \end_inset
21328 </cell>
21329 </row>
21330 <row interlinespace="default">
21331 <cell alignment="left" valignment="top" usebox="none">
21332 \begin_inset Text
21333
21334 \begin_layout Plain Layout
21335
21336 \size small
21337 Square
21338 \end_layout
21339
21340 \end_inset
21341 </cell>
21342 <cell alignment="left" valignment="top" usebox="none">
21343 \begin_inset Text
21344
21345 \begin_layout Plain Layout
21346
21347 \size small
21348 Square
21349 \end_layout
21350
21351 \end_inset
21352 </cell>
21353 <cell alignment="left" valignment="top" usebox="none">
21354 \begin_inset Text
21355
21356 \begin_layout Plain Layout
21357
21358 \size small
21359 -
21360 \end_layout
21361
21362 \end_inset
21363 </cell>
21364 </row>
21365 <row interlinespace="default">
21366 <cell alignment="left" valignment="top" usebox="none">
21367 \begin_inset Text
21368
21369 \begin_layout Plain Layout
21370
21371 \size small
21372 Star
21373 \end_layout
21374
21375 \end_inset
21376 </cell>
21377 <cell alignment="left" valignment="top" usebox="none">
21378 \begin_inset Text
21379
21380 \begin_layout Plain Layout
21381
21382 \size small
21383 Five-point star
21384 \end_layout
21385
21386 \end_inset
21387 </cell>
21388 <cell alignment="left" valignment="top" usebox="none">
21389 \begin_inset Text
21390
21391 \begin_layout Plain Layout
21392
21393 \size small
21394 -
21395 \end_layout
21396
21397 \end_inset
21398 </cell>
21399 </row>
21400 <row interlinespace="default">
21401 <cell alignment="left" valignment="top" usebox="none">
21402 \begin_inset Text
21403
21404 \begin_layout Plain Layout
21405
21406 \size small
21407 Candle
21408 \end_layout
21409
21410 \end_inset
21411 </cell>
21412 <cell alignment="left" valignment="top" usebox="none">
21413 \begin_inset Text
21414
21415 \begin_layout Plain Layout
21416
21417 \size small
21418 Burning candle
21419 \end_layout
21420
21421 \end_inset
21422 </cell>
21423 <cell alignment="left" valignment="top" usebox="none">
21424 \begin_inset Text
21425
21426 \begin_layout Plain Layout
21427
21428 \size small
21429 -
21430 \end_layout
21431
21432 \end_inset
21433 </cell>
21434 </row>
21435 <row interlinespace="default">
21436 <cell alignment="left" valignment="top" usebox="none">
21437 \begin_inset Text
21438
21439 \begin_layout Plain Layout
21440
21441 \size small
21442 Drop down/up
21443 \end_layout
21444
21445 \end_inset
21446 </cell>
21447 <cell alignment="left" valignment="top" usebox="none">
21448 \begin_inset Text
21449
21450 \begin_layout Plain Layout
21451
21452 \size small
21453 Normal/reversed rain drop
21454 \end_layout
21455
21456 \end_inset
21457 </cell>
21458 <cell alignment="left" valignment="top" usebox="none">
21459 \begin_inset Text
21460
21461 \begin_layout Plain Layout
21462
21463 \size small
21464 Fragile, calculation might fail
21465 \end_layout
21466
21467 \end_inset
21468 </cell>
21469 </row>
21470 <row interlinespace="default">
21471 <cell alignment="left" valignment="top" usebox="none">
21472 \begin_inset Text
21473
21474 \begin_layout Plain Layout
21475
21476 \size small
21477 \SpecialChar TeX
21478
21479 \end_layout
21480
21481 \end_inset
21482 </cell>
21483 <cell alignment="left" valignment="top" usebox="none">
21484 \begin_inset Text
21485
21486 \begin_layout Plain Layout
21487
21488 \size small
21489 The \SpecialChar TeX
21490  logo
21491 \end_layout
21492
21493 \end_inset
21494 </cell>
21495 <cell alignment="left" valignment="top" usebox="none">
21496 \begin_inset Text
21497
21498 \begin_layout Plain Layout
21499
21500 \size small
21501 -
21502 \end_layout
21503
21504 \end_inset
21505 </cell>
21506 </row>
21507 <row interlinespace="default">
21508 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21509 \begin_inset Text
21510
21511 \begin_layout Plain Layout
21512
21513 \size small
21514 Triangle up/down/
21515 \begin_inset Newline newline
21516 \end_inset
21517
21518 left/right
21519 \end_layout
21520
21521 \end_inset
21522 </cell>
21523 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21524 \begin_inset Text
21525
21526 \begin_layout Plain Layout
21527
21528 \size small
21529 Triangles in different orientations
21530 \end_layout
21531
21532 \end_inset
21533 </cell>
21534 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21535 \begin_inset Text
21536
21537 \begin_layout Plain Layout
21538
21539 \size small
21540 -
21541 \end_layout
21542
21543 \end_inset
21544 </cell>
21545 </row>
21546 </lyxtabular>
21547
21548 \end_inset
21549
21550
21551 \end_layout
21552
21553 \begin_layout Standard
21554 To use a shape for your paragraph, simply select it in \SpecialChar LyX
21555 's pull-down box
21556  for environments in the toolbar.
21557 \end_layout
21558
21559 \begin_layout Standard
21560 \begin_inset Newpage newpage
21561 \end_inset
21562
21563
21564 \end_layout
21565
21566 \begin_layout Standard
21567 Here is an example paragraph in the shape of a nut:
21568 \end_layout
21569
21570 \begin_layout Standard
21571 \begin_inset VSpace bigskip
21572 \end_inset
21573
21574
21575 \end_layout
21576
21577 \begin_layout Nut
21578
21579 \lang latin
21580 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21581  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21582  voluptua.
21583  At vero eos et accusam et justo duo dolores et ea rebum.
21584  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
21585  sit amet.
21586  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21587  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21588  voluptua.
21589 \end_layout
21590
21591 \begin_layout Standard
21592 \begin_inset VSpace bigskip
21593 \end_inset
21594
21595
21596 \end_layout
21597
21598 \begin_layout Standard
21599 \begin_inset Note Greyedout
21600 status open
21601
21602 \begin_layout Plain Layout
21603
21604 \series bold
21605 Note
21606 \series default
21607
21608 \family sans
21609 shapepar
21610 \family default
21611  paragraphs cannot run over a page break.
21612 \end_layout
21613
21614 \end_inset
21615
21616
21617 \end_layout
21618
21619 \begin_layout Standard
21620 \begin_inset VSpace bigskip
21621 \end_inset
21622
21623
21624 \end_layout
21625
21626 \begin_layout Standard
21627 The package 
21628 \begin_inset Flex Code
21629 status collapsed
21630
21631 \begin_layout Plain Layout
21632 shapepar
21633 \end_layout
21634
21635 \end_inset
21636
21637  takes care that the shape will always be preserved, no matter how much
21638  text is in the paragraph.
21639  Therefore the paragraph size changes with the amount of contained text.
21640  This can lead to paragraph sizes exceeding the page margins.
21641  To demonstrate the size scaling, here is the same example paragraph but
21642  with twice as much text:
21643 \end_layout
21644
21645 \begin_layout Standard
21646 \begin_inset Newpage newpage
21647 \end_inset
21648
21649
21650 \end_layout
21651
21652 \begin_layout Nut
21653
21654 \lang latin
21655 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21656  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21657  voluptua.
21658  At vero eos et accusam et justo duo dolores et ea rebum.
21659  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
21660  sit amet.
21661  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21662  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21663  voluptua.
21664  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21665  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21666  voluptua.
21667  At vero eos et accusam et justo duo dolores et ea rebum.
21668  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
21669  sit amet.
21670  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21671  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21672  voluptua.
21673 \end_layout
21674
21675 \begin_layout Standard
21676 \begin_inset VSpace bigskip
21677 \end_inset
21678
21679
21680 \end_layout
21681
21682 \begin_layout Standard
21683 An exception is the shape 
21684 \family sans
21685 CDlabel
21686 \family default
21687 .
21688  It cannot be scaled because it must fit the size of a CD/DVD.
21689  Therefore the amount of text that fits into the shape is limited.
21690 \begin_inset Newline newline
21691 \end_inset
21692
21693 The 
21694 \family sans
21695 drop
21696 \family default
21697  shapes and the 
21698 \family sans
21699 circle
21700 \family default
21701  shape are fragile, meaning that the calculation of their size can fail,
21702  depending on the amount of text.
21703  You will then get the \SpecialChar LaTeX
21704  error 
21705 \begin_inset Quotes eld
21706 \end_inset
21707
21708 Arithmetic overflow
21709 \begin_inset Quotes erd
21710 \end_inset
21711
21712 .
21713  In this case one can try to remove or add some text; if nothing works one
21714  has to use another shape.
21715 \end_layout
21716
21717 \begin_layout Standard
21718 \begin_inset VSpace bigskip
21719 \end_inset
21720
21721
21722 \end_layout
21723
21724 \begin_layout Standard
21725 For shapes with tips you will maybe see that \SpecialChar LaTeX
21726 's hyphenation routine fails
21727  for text in the tips.
21728  Therefore it is often necessary to add hyphenation points 
21729 \family sans
21730 (
21731 \begin_inset Info
21732 type  "shortcut"
21733 arg   "specialchar-insert hyphenation"
21734 \end_inset
21735
21736
21737 \family default
21738 ) to the corresponding text parts.
21739 \end_layout
21740
21741 \begin_layout Standard
21742 \begin_inset VSpace bigskip
21743 \end_inset
21744
21745
21746 \end_layout
21747
21748 \begin_layout Standard
21749 Shapepar paragraphs are either always centered or placed on the page so
21750  that their left border touches the left page margin.
21751  You can therefore not use the paragraph dialog to align such paragraphs.
21752  A solution is to put the paragraph into a minipage or parbox and align
21753  the box.
21754  The problem is hereby to find the right width for the box.
21755  Because if it is too wide and you center the box, the paragraph is not
21756  centered too because it sticks at the left side of the box.
21757  So you might have to play a bit with the width until it fits.
21758  Here are two heart-shaped paragraphs, the first one is not aligned, the
21759  second one is right-aligned:
21760 \end_layout
21761
21762 \begin_layout Standard
21763 \begin_inset Newpage newpage
21764 \end_inset
21765
21766
21767 \end_layout
21768
21769 \begin_layout Heart
21770 \noindent
21771
21772 \lang latin
21773 Lo\SpecialChar softhyphen
21774 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21775  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21776  voluptua.
21777  At vero eos et accusam et justo duo dolores et ea rebum.
21778  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
21779  sit amet.
21780 \end_layout
21781
21782 \begin_layout Standard
21783 \begin_inset VSpace bigskip
21784 \end_inset
21785
21786
21787 \end_layout
21788
21789 \begin_layout Standard
21790 \noindent
21791 \align right
21792 \begin_inset Box Frameless
21793 position "t"
21794 hor_pos "c"
21795 has_inner_box 1
21796 inner_pos "t"
21797 use_parbox 1
21798 use_makebox 0
21799 width "42col%"
21800 special "none"
21801 height "1in"
21802 height_special "totalheight"
21803 thickness "0.4pt"
21804 separation "3pt"
21805 shadowsize "4pt"
21806 framecolor "black"
21807 backgroundcolor "none"
21808 status open
21809
21810 \begin_layout Heart
21811 \noindent
21812
21813 \lang latin
21814 Lo\SpecialChar softhyphen
21815 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21816  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21817  voluptua.
21818  At vero eos et accusam et justo duo dolores et ea rebum.
21819  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
21820  sit amet.
21821 \end_layout
21822
21823 \end_inset
21824
21825
21826 \end_layout
21827
21828 \begin_layout Subsubsection
21829 Custom shapes
21830 \end_layout
21831
21832 \begin_layout Standard
21833 You can define any shape you want.
21834  Doing this manually is a lot of work because every coordinate must be specified.
21835  But there is a way to let the computer calculate the coordinates:
21836 \end_layout
21837
21838 \begin_layout Enumerate
21839 Install the program 
21840 \begin_inset CommandInset href
21841 LatexCommand href
21842 name "Jpgfdraw"
21843 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
21844 literal "false"
21845
21846 \end_inset
21847
21848 .
21849 \end_layout
21850
21851 \begin_layout Enumerate
21852 In 
21853 \family sans
21854 Jpgfdraw
21855 \family default
21856  go to the menu 
21857 \family sans
21858 TeX/LaTeX\SpecialChar menuseparator
21859 Settings\SpecialChar menuseparator
21860 Set Normal Size
21861 \family default
21862  and select the font size you are using in your document.
21863  For example this document uses the size 12
21864 \begin_inset space \thinspace{}
21865 \end_inset
21866
21867 pt.
21868 \end_layout
21869
21870 \begin_layout Enumerate
21871 Draw a shape.
21872 \end_layout
21873
21874 \begin_layout Enumerate
21875 Use the menu 
21876 \family sans
21877 TeX/LaTeX\SpecialChar menuseparator
21878 Shapepar
21879 \family default
21880  to export the shape to coordinates.
21881  In the appearing dialog use either the outline of your shape for the coordinate
21882 s or the path itself.
21883 \begin_inset Foot
21884 status collapsed
21885
21886 \begin_layout Plain Layout
21887 For more information see 
21888 \begin_inset CommandInset href
21889 LatexCommand href
21890 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
21891 literal "false"
21892
21893 \end_inset
21894
21895
21896 \end_layout
21897
21898 \end_inset
21899
21900
21901 \end_layout
21902
21903 \begin_layout Standard
21904 The coordinates are written into a \SpecialChar TeX
21905  file.
21906  To use it for your \SpecialChar LyX
21907  document
21908 \end_layout
21909
21910 \begin_layout Enumerate
21911 Place the cursor before the first character of your paragraph (or into a
21912  new empty one).
21913 \end_layout
21914
21915 \begin_layout Enumerate
21916 Open in \SpecialChar LyX
21917  the menu 
21918 \family sans
21919 Insert\SpecialChar menuseparator
21920 File\SpecialChar menuseparator
21921 Child
21922 \begin_inset space ~
21923 \end_inset
21924
21925 Document
21926 \family default
21927 , select the file and use 
21928 \family sans
21929 Input
21930 \family default
21931  as 
21932 \family sans
21933 Include Type.
21934 \end_layout
21935
21936 \begin_layout Standard
21937 \begin_inset VSpace defskip
21938 \end_inset
21939
21940
21941 \end_layout
21942
21943 \begin_layout Standard
21944 \begin_inset Note Greyedout
21945 status open
21946
21947 \begin_layout Plain Layout
21948
21949 \series bold
21950 Note
21951 \series default
21952 : The changed shape only applies to the current paragraph; everything is
21953  reset to normal for the next paragraph.
21954  Therefore the shape definition file must be input into every paragraph
21955  with the desired shape.
21956 \end_layout
21957
21958 \end_inset
21959
21960
21961 \end_layout
21962
21963 \begin_layout Standard
21964 \begin_inset VSpace bigskip
21965 \end_inset
21966
21967
21968 \end_layout
21969
21970 \begin_layout Standard
21971 Here is an example:
21972 \end_layout
21973
21974 \begin_layout Standard
21975 \begin_inset VSpace bigskip
21976 \end_inset
21977
21978
21979 \end_layout
21980
21981 \begin_layout Standard
21982 \begin_inset CommandInset include
21983 LatexCommand input
21984 filename "SpecialParagraphShape.tex"
21985 literal "true"
21986
21987 \end_inset
21988
21989
21990 \lang latin
21991 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21992  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21993  voluptua.
21994  At vero eos et accusam et justo duo dolores et ea rebum.
21995  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
21996  sit amet.
21997  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
21998  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
21999  voluptua.
22000 \end_layout
22001
22002 \begin_layout Standard
22003 \begin_inset VSpace bigskip
22004 \end_inset
22005
22006
22007 \end_layout
22008
22009 \begin_layout Standard
22010
22011 \series bold
22012 A tip:
22013 \series default
22014  to draw complexer shapes in 
22015 \family sans
22016 Jpgfdraw
22017 \family default
22018  you can draw the shape in a program of your choice and import the resulting
22019  image to 
22020 \family sans
22021 Jpgfdraw
22022 \family default
22023 .
22024  Then you only need to draw a line or spline along the outline of the image.
22025 \end_layout
22026
22027 \begin_layout Standard
22028 \begin_inset VSpace bigskip
22029 \end_inset
22030
22031
22032 \end_layout
22033
22034 \begin_layout Standard
22035 The module 
22036 \family sans
22037 Custom paragraph shapes
22038 \family default
22039  also provides the two commands 
22040 \family sans
22041 shapepar
22042 \family default
22043  and 
22044 \family sans
22045 Shapepar
22046 \family default
22047  which can be used to define custom shapes coordinate by coordinate.
22048 \begin_inset Foot
22049 status collapsed
22050
22051 \begin_layout Plain Layout
22052 These commands are internally used for all shapes described here.
22053 \end_layout
22054
22055 \end_inset
22056
22057  For information how these styles are used and about further customization
22058  possibilities, have a look at the 
22059 \begin_inset CommandInset href
22060 LatexCommand href
22061 name "documentation"
22062 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
22063 literal "false"
22064
22065 \end_inset
22066
22067  of the package 
22068 \begin_inset Flex Code
22069 status collapsed
22070
22071 \begin_layout Plain Layout
22072 shapepar
22073 \end_layout
22074
22075 \end_inset
22076
22077 .
22078 \end_layout
22079
22080 \begin_layout Subsection
22081
22082 \change_inserted 564990737 1672311925
22083
22084 \lang american
22085 Hanging Paragraphs
22086 \end_layout
22087
22088 \begin_layout Hanging
22089
22090 \change_inserted 564990737 1672311925
22091
22092 \lang american
22093 This module adds the 
22094 \family sans
22095 Hanging
22096 \family default
22097  paragraph style, that is, one where all but the first line of the paragraph
22098  is indented.
22099  This may not appear in your \SpecialChar LyX
22100  document but will appear in the final output.
22101 \end_layout
22102
22103 \begin_layout Subsection
22104
22105 \change_inserted 564990737 1672311925
22106
22107 \lang american
22108 \begin_inset CommandInset label
22109 LatexCommand label
22110 name "subsec:Initials"
22111
22112 \end_inset
22113
22114 Initials (Drop Caps)
22115 \end_layout
22116
22117 \begin_layout Initial
22118
22119 \change_inserted 564990737 1672311925
22120
22121 \lang american
22122 \begin_inset Argument 2
22123 status open
22124
22125 \begin_layout Plain Layout
22126
22127 \change_inserted 564990737 1672311925
22128
22129 \lang british
22130 T
22131 \change_unchanged
22132
22133 \end_layout
22134
22135 \end_inset
22136
22137
22138 \begin_inset Argument 3
22139 status open
22140
22141 \begin_layout Plain Layout
22142
22143 \change_inserted 564990737 1672311925
22144
22145 \lang american
22146 his
22147 \change_unchanged
22148
22149 \end_layout
22150
22151 \end_inset
22152
22153  module adds a drop capitals paragraph style 
22154 \family sans
22155 Initials
22156 \family default
22157  for paragraph environments which you can use wherever you want to have
22158  drop capitals.
22159  You then have three more items in the 
22160 \family sans
22161 Insert
22162 \family default
22163  menu:
22164 \end_layout
22165
22166 \begin_layout Itemize
22167
22168 \change_inserted 564990737 1672311925
22169
22170 \family sans
22171 \lang american
22172 Initial
22173 \family default
22174  which creates an inset for the drop capital
22175 \end_layout
22176
22177 \begin_layout Itemize
22178
22179 \change_inserted 564990737 1672311925
22180
22181 \family sans
22182 \lang american
22183 Rest of initial
22184 \family default
22185  which creates an inset for the rest of the word
22186 \end_layout
22187
22188 \begin_layout Itemize
22189
22190 \change_inserted 564990737 1672311925
22191
22192 \family sans
22193 \lang american
22194 Options
22195 \family default
22196  which allow you configure the formatting of the drop capital.
22197 \end_layout
22198
22199 \begin_layout Standard
22200
22201 \change_inserted 564990737 1672311925
22202
22203 \lang american
22204 To customize the appearance of the style, see 
22205 \family sans
22206 Help\SpecialChar menuseparator
22207 Embedded Objects\SpecialChar menuseparator
22208 Objects Surrounded by Text\SpecialChar menuseparator
22209 Initials
22210 \family default
22211 .
22212 \end_layout
22213
22214 \begin_layout Section
22215
22216 \change_inserted 564990737 1672312011
22217
22218 \lang american
22219 Text Markup
22220 \end_layout
22221
22222 \begin_layout Subsection
22223
22224 \change_inserted 564990737 1672312011
22225
22226 \lang american
22227 Hyphenatable Text Markup
22228 \end_layout
22229
22230 \begin_layout Standard
22231
22232 \change_inserted 564990737 1672312011
22233
22234 \lang american
22235 This package defines text styles to highlight, space-out, strike-through,
22236  underline and capitalize/small-cap text by means of the 
22237 \family sans
22238 soul
22239 \family default
22240  package.
22241  As opposed to the markup provided by the Text Properties dialog, words
22242  marked-up with 
22243 \family sans
22244 soul
22245 \family default
22246  are hyphenated.
22247  See the 
22248 \begin_inset CommandInset href
22249 LatexCommand href
22250 name "soul documentation"
22251 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
22252 literal "false"
22253
22254 \end_inset
22255
22256 .
22257 \end_layout
22258
22259 \begin_layout Subsection
22260
22261 \change_inserted 564990737 1672312011
22262
22263 \lang american
22264 Logical Markup
22265 \end_layout
22266
22267 \begin_layout Standard
22268
22269 \change_inserted 564990737 1672312011
22270
22271 \lang american
22272 This module defines some character styles for logical markup: 
22273 \noun on
22274
22275 \begin_inset Flex Noun
22276 status collapsed
22277
22278 \begin_layout Plain Layout
22279
22280 \change_inserted 564990737 1672312011
22281
22282 \noun on
22283 \lang american
22284 noun
22285 \change_unchanged
22286
22287 \end_layout
22288
22289 \end_inset
22290
22291
22292 \noun default
22293
22294 \emph on
22295
22296 \begin_inset Flex Emph
22297 status collapsed
22298
22299 \begin_layout Plain Layout
22300
22301 \change_inserted 564990737 1672312011
22302
22303 \emph on
22304 \lang american
22305 emph
22306 \change_unchanged
22307
22308 \end_layout
22309
22310 \end_inset
22311
22312
22313 \emph default
22314
22315 \begin_inset Flex Strong
22316 status collapsed
22317
22318 \begin_layout Plain Layout
22319
22320 \change_inserted 564990737 1672312011
22321
22322 \lang american
22323 strong
22324 \change_unchanged
22325
22326 \end_layout
22327
22328 \end_inset
22329
22330 , and 
22331 \begin_inset Flex Code
22332 status collapsed
22333
22334 \begin_layout Plain Layout
22335
22336 \change_inserted 564990737 1672312011
22337
22338 \lang american
22339 code
22340 \change_unchanged
22341
22342 \end_layout
22343
22344 \end_inset
22345
22346  which are accessed via the 
22347 \family sans
22348 \bar under
22349 E
22350 \bar default
22351 dit\SpecialChar menuseparator
22352 Custom
22353 \begin_inset space ~
22354 \end_inset
22355
22356 Text
22357 \begin_inset space ~
22358 \end_inset
22359
22360
22361 \bar under
22362 S
22363 \bar default
22364 tyles
22365 \family default
22366  menu.
22367 \end_layout
22368
22369 \begin_layout Chapter
22370
22371 \change_deleted 564990737 1671304317
22372 Customizing 
22373 \change_unchanged
22374 Bibliograph
22375 \change_inserted 564990737 1671304322
22376 y
22377 \change_deleted 564990737 1671304331
22378 ies with Bib\SpecialChar TeX
22379  or Biblatex
22380 \change_unchanged
22381
22382 \end_layout
22383
22384 \begin_layout Standard
22385 The most basic information about how to use Bib\SpecialChar TeX
22386  or 
22387 \family sans
22388 Biblatex
22389 \family default
22390  with \SpecialChar LyX
22391  is contained in the section 
22392 \emph on
22393 Bibliography databases
22394 \emph default
22395  of the 
22396 \emph on
22397 User's Guide
22398 \emph default
22399 .
22400  The following subsections explain special bibliography features supported
22401  by \SpecialChar LyX
22402 .
22403 \end_layout
22404
22405 \begin_layout Section
22406 Alternative Citation Styles
22407 \end_layout
22408
22409 \begin_layout Standard
22410 Standard Bib\SpecialChar TeX
22411  uses numbers (e.
22412 \begin_inset space \thinspace{}
22413 \end_inset
22414
22415 g.
22416 \begin_inset space \space{}
22417 \end_inset
22418
22419
22420 \begin_inset Quotes eld
22421 \end_inset
22422
22423 [12]
22424 \begin_inset Quotes erd
22425 \end_inset
22426
22427 ) to refer to a cited work.
22428  However, in many scientific disciplines, other citation styles are in use.
22429  The most common one is the author-year style (e.
22430 \begin_inset space \thinspace{}
22431 \end_inset
22432
22433 g.
22434 \begin_inset space \space{}
22435 \end_inset
22436
22437
22438 \begin_inset Quotes eld
22439 \end_inset
22440
22441 Knuth 1984a
22442 \begin_inset Quotes erd
22443 \end_inset
22444
22445 ).
22446  \SpecialChar LyX
22447  supports three packages that provide this style, 
22448 \begin_inset Flex Code
22449 status collapsed
22450
22451 \begin_layout Plain Layout
22452 biblatex
22453 \end_layout
22454
22455 \end_inset
22456
22457
22458 \begin_inset Flex Code
22459 status collapsed
22460
22461 \begin_layout Plain Layout
22462 natbib
22463 \end_layout
22464
22465 \end_inset
22466
22467 , and 
22468 \begin_inset Flex Code
22469 status collapsed
22470
22471 \begin_layout Plain Layout
22472 jurabib
22473 \end_layout
22474
22475 \end_inset
22476
22477 .
22478  Each of these packages has their pros and cons, which cannot be listed
22479  in detail.
22480  If you only want to have simple author-year (or author-numerical) style,
22481  or if you want to use one of the countless style files for 
22482 \begin_inset Flex Code
22483 status collapsed
22484
22485 \begin_layout Plain Layout
22486 natbib
22487 \end_layout
22488
22489 \end_inset
22490
22491 , then the established 
22492 \begin_inset Flex Code
22493 status collapsed
22494
22495 \begin_layout Plain Layout
22496 natbib
22497 \end_layout
22498
22499 \end_inset
22500
22501  package is probably your choice.
22502  If you look for specific citation styles common in law studies, you might
22503  consider the 
22504 \begin_inset Flex Code
22505 status collapsed
22506
22507 \begin_layout Plain Layout
22508 jurabib
22509 \end_layout
22510
22511 \end_inset
22512
22513  package.
22514  If you want to have full control over the formatting or look for advanced
22515  features such as ibidem, footnote citations, full title citations, advanced
22516  date formats (such as 400 BC) or full localization to other languages than
22517  English, you should definitely consider 
22518 \begin_inset Flex Code
22519 status collapsed
22520
22521 \begin_layout Plain Layout
22522 biblatex
22523 \end_layout
22524
22525 \end_inset
22526
22527 , which exceeds all other packages in terms of features, but is also quite
22528  heavy and more resource-hungry.
22529 \end_layout
22530
22531 \begin_layout Standard
22532 The handling of these packages in \SpecialChar LyX
22533  is basically the same.
22534  Go to 
22535 \begin_inset Flex Noun
22536 status collapsed
22537
22538 \begin_layout Plain Layout
22539 Document\SpecialChar menuseparator
22540 Settings
22541 \end_layout
22542
22543 \end_inset
22544
22545  and select under 
22546 \begin_inset Flex Noun
22547 status collapsed
22548
22549 \begin_layout Plain Layout
22550 Bibliography
22551 \end_layout
22552
22553 \end_inset
22554
22555  the 
22556 \begin_inset Flex Noun
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 Style Format
22561 \end_layout
22562
22563 \end_inset
22564
22565  
22566 \begin_inset Flex Noun
22567 status collapsed
22568
22569 \begin_layout Plain Layout
22570 Basic (BibTeX)
22571 \end_layout
22572
22573 \end_inset
22574
22575
22576 \begin_inset Flex Noun
22577 status collapsed
22578
22579 \begin_layout Plain Layout
22580 Biblatex
22581 \end_layout
22582
22583 \end_inset
22584
22585
22586 \begin_inset Flex Noun
22587 status collapsed
22588
22589 \begin_layout Plain Layout
22590 Biblatex (Natbib mode)
22591 \end_layout
22592
22593 \end_inset
22594
22595
22596 \begin_inset Flex Noun
22597 status collapsed
22598
22599 \begin_layout Plain Layout
22600 Natbib (BibTeX)
22601 \end_layout
22602
22603 \end_inset
22604
22605  or 
22606 \begin_inset Flex Noun
22607 status collapsed
22608
22609 \begin_layout Plain Layout
22610 Jurabib (BibTeX)
22611 \end_layout
22612
22613 \end_inset
22614
22615  (see sec.
22616 \begin_inset space ~
22617 \end_inset
22618
22619 6.5.3 in the User's Guide for more information on these choices).
22620  With all these packages, you will get some extra features in the citation
22621  dialog and you can select the style of the reference (
22622 \begin_inset Quotes eld
22623 \end_inset
22624
22625 Knuth 1984
22626 \begin_inset Quotes erd
22627 \end_inset
22628
22629
22630 \begin_inset Quotes eld
22631 \end_inset
22632
22633 Knuth (1984)
22634 \begin_inset Quotes erd
22635 \end_inset
22636
22637
22638 \begin_inset Quotes eld
22639 \end_inset
22640
22641 Knuth, 1984
22642 \begin_inset Quotes erd
22643 \end_inset
22644
22645
22646 \begin_inset Quotes eld
22647 \end_inset
22648
22649 1984
22650 \begin_inset Quotes erd
22651 \end_inset
22652
22653  etc.).
22654  Note that either package needs specifically designed style files.
22655  They all ship their own, but there are lots of additional style files,
22656  and there is even an interactive style file builder
22657 \begin_inset Foot
22658 status collapsed
22659
22660 \begin_layout Plain Layout
22661 See 
22662 \begin_inset Flex URL
22663 status open
22664
22665 \begin_layout Plain Layout
22666
22667 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
22668 \end_layout
22669
22670 \end_inset
22671
22672
22673 \end_layout
22674
22675 \end_inset
22676
22677  for 
22678 \begin_inset Flex Code
22679 status collapsed
22680
22681 \begin_layout Plain Layout
22682 natbib
22683 \end_layout
22684
22685 \end_inset
22686
22687 .
22688 \end_layout
22689
22690 \begin_layout Section
22691 Subdivided Bibliographies
22692 \end_layout
22693
22694 \begin_layout Standard
22695 Sometimes you might need to divide your bibliography into several sections.
22696  If you are for instance a historian, the possibility to separate sources
22697  and scientific works is most likely a 
22698 \begin_inset Quotes eld
22699 \end_inset
22700
22701 must have
22702 \begin_inset Quotes erd
22703 \end_inset
22704
22705 .
22706  Unfortunately, Bib\SpecialChar TeX
22707  itself does not allow you to do this.
22708  But with the help of some \SpecialChar LaTeX
22709  packages, Bib\SpecialChar TeX
22710  can be extended to fit your needs.
22711 \end_layout
22712
22713 \begin_layout Standard
22714 \SpecialChar LyX
22715  provides native support for one of these packages, 
22716 \family typewriter
22717 bibtopic
22718 \family default
22719 .
22720 \begin_inset Foot
22721 status collapsed
22722
22723 \begin_layout Plain Layout
22724 Available from 
22725 \begin_inset Flex URL
22726 status open
22727
22728 \begin_layout Plain Layout
22729
22730 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
22731 \end_layout
22732
22733 \end_inset
22734
22735
22736 \end_layout
22737
22738 \end_inset
22739
22740  The advantage of this package (compared to other packages such as 
22741 \family typewriter
22742 multibib
22743 \family default
22744 ) is that you don't need to define new citation commands.
22745  Instead, you need to prepare different bibliographic databases which include
22746  the entries for the different sections of the bibliography.
22747  For example: If you want to divide your bibliography into the sections
22748  
22749 \begin_inset Quotes eld
22750 \end_inset
22751
22752 Sources
22753 \begin_inset Quotes erd
22754 \end_inset
22755
22756  and 
22757 \begin_inset Quotes eld
22758 \end_inset
22759
22760 Scientific works
22761 \begin_inset Quotes erd
22762 \end_inset
22763
22764 , you first need to create two bibliographic databases, e.
22765 \begin_inset space \thinspace{}
22766 \end_inset
22767
22768 g.
22769 \begin_inset space \space{}
22770 \end_inset
22771
22772
22773 \begin_inset Flex Code
22774 status collapsed
22775
22776 \begin_layout Plain Layout
22777 sources.bib
22778 \end_layout
22779
22780 \end_inset
22781
22782  and 
22783 \begin_inset Flex Code
22784 status collapsed
22785
22786 \begin_layout Plain Layout
22787 scientific.bib
22788 \end_layout
22789
22790 \end_inset
22791
22792 .
22793  
22794 \end_layout
22795
22796 \begin_layout Standard
22797 Go to 
22798 \begin_inset Flex Noun
22799 status collapsed
22800
22801 \begin_layout Plain Layout
22802 Document\SpecialChar menuseparator
22803 Settings
22804 \end_layout
22805
22806 \end_inset
22807
22808  and check under 
22809 \begin_inset Flex Noun
22810 status collapsed
22811
22812 \begin_layout Plain Layout
22813 Bibliography
22814 \end_layout
22815
22816 \end_inset
22817
22818  the option 
22819 \begin_inset Flex Noun
22820 status collapsed
22821
22822 \begin_layout Plain Layout
22823 Subdivided bibliography
22824 \end_layout
22825
22826 \end_inset
22827
22828 .
22829  Now you can insert multiple Bib\SpecialChar TeX
22830  bibliographies, one for each section of
22831  your bibliography.
22832  Returning to our example: Insert the Bib\SpecialChar TeX
22833  bibliography 
22834 \begin_inset Flex Code
22835 status collapsed
22836
22837 \begin_layout Plain Layout
22838 sources.bib
22839 \end_layout
22840
22841 \end_inset
22842
22843  and a second one for the database 
22844 \begin_inset Flex Code
22845 status collapsed
22846
22847 \begin_layout Plain Layout
22848 scientific.bib
22849 \end_layout
22850
22851 \end_inset
22852
22853 .
22854  You are free to use the same or different styles for each section.
22855  Additionally, you can choose if the bibliography section should contain
22856  
22857 \begin_inset Quotes eld
22858 \end_inset
22859
22860 all cited references
22861 \begin_inset Quotes erd
22862 \end_inset
22863
22864  of the specified database(s) (which is the default), 
22865 \begin_inset Quotes eld
22866 \end_inset
22867
22868 all uncited references
22869 \begin_inset Quotes erd
22870 \end_inset
22871
22872  or even 
22873 \begin_inset Quotes eld
22874 \end_inset
22875
22876 all references
22877 \begin_inset Quotes erd
22878 \end_inset
22879
22880 .
22881  This might be useful if you would like to separate your bibliography into
22882  three sections: 
22883 \begin_inset Quotes eld
22884 \end_inset
22885
22886 Cited sources
22887 \begin_inset Quotes erd
22888 \end_inset
22889
22890
22891 \begin_inset Quotes eld
22892 \end_inset
22893
22894 Uncited sources
22895 \begin_inset Quotes erd
22896 \end_inset
22897
22898 , and 
22899 \begin_inset Quotes eld
22900 \end_inset
22901
22902 Scientific works
22903 \begin_inset Quotes erd
22904 \end_inset
22905
22906 .
22907  The titles for the sections can be added as ordinary sections or subsections.
22908  Since 
22909 \begin_inset Flex Code
22910 status collapsed
22911
22912 \begin_layout Plain Layout
22913 bibtopic
22914 \end_layout
22915
22916 \end_inset
22917
22918  removes the bibliography title, you have to manually re-add that, too (as
22919  a chapter* or section*, for instance).
22920 \end_layout
22921
22922 \begin_layout Standard
22923 With 
22924 \family sans
22925 Biblatex
22926 \family default
22927 , the procedure is a bit different.
22928  Since 
22929 \family typewriter
22930 bibtopic
22931 \family default
22932  does not work with 
22933 \family sans
22934 Biblatex
22935 \family default
22936 , the aforementioned 
22937 \begin_inset Flex Noun
22938 status collapsed
22939
22940 \begin_layout Plain Layout
22941 Subdivided bibliography
22942 \end_layout
22943
22944 \end_inset
22945
22946  option is disabled if you use 
22947 \family sans
22948 Biblatex
22949 \family default
22950 .
22951  However, 
22952 \family sans
22953 Biblatex
22954 \family default
22955  provides its own means to generate subdivided bibliographies.
22956  You can either add keywords to bibliography entries via the 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 keywords
22962 \end_layout
22963
22964 \end_inset
22965
22966  entry option and then filter bibliography sections by keyword (by adding
22967  
22968 \begin_inset Flex Code
22969 status collapsed
22970
22971 \begin_layout Plain Layout
22972 keyword=mykeyword
22973 \end_layout
22974
22975 \end_inset
22976
22977  to the 
22978 \begin_inset Flex Noun
22979 status collapsed
22980
22981 \begin_layout Plain Layout
22982 Options
22983 \end_layout
22984
22985 \end_inset
22986
22987  field of the dialog that opens if you left-click on the 
22988 \begin_inset Flex Noun
22989 status collapsed
22990
22991 \begin_layout Plain Layout
22992 Biblatex Generated Bibliography
22993 \end_layout
22994
22995 \end_inset
22996
22997  button), or you can filter by entry types (such as 
22998 \emph on
22999 book
23000 \emph default
23001  or 
23002 \emph on
23003 article
23004 \emph default
23005 ) by entering e.
23006 \begin_inset space \thinspace{}
23007 \end_inset
23008
23009 g.
23010  
23011 \begin_inset Flex Code
23012 status collapsed
23013
23014 \begin_layout Plain Layout
23015 type=book
23016 \end_layout
23017
23018 \end_inset
23019
23020  or 
23021 \begin_inset Flex Code
23022 status collapsed
23023
23024 \begin_layout Plain Layout
23025 nottype=collection
23026 \end_layout
23027
23028 \end_inset
23029
23030  to the mentioned 
23031 \begin_inset Flex Noun
23032 status collapsed
23033
23034 \begin_layout Plain Layout
23035 Options
23036 \end_layout
23037
23038 \end_inset
23039
23040  field, or you can create so-called 
23041 \begin_inset Quotes eld
23042 \end_inset
23043
23044 Bibliography Categories
23045 \begin_inset Quotes erd
23046 \end_inset
23047
23048  to which you can assign individual entries.
23049  Please refer to the Biblatex manual, section 
23050 \emph on
23051 Subdivided Bibliographies
23052 \emph default
23053 , for details.
23054 \end_layout
23055
23056 \begin_layout Section
23057 Multiple Bibliographies
23058 \begin_inset CommandInset label
23059 LatexCommand label
23060 name "subsec:Multiple-Bibliographies"
23061
23062 \end_inset
23063
23064
23065 \end_layout
23066
23067 \begin_layout Standard
23068 Multiple bibliographies, e.
23069 \begin_inset space \thinspace{}
23070 \end_inset
23071
23072 g.
23073 \begin_inset space \space{}
23074 \end_inset
23075
23076 a bibliography for each part, chapter, section, subsection or child (sub-documen
23077 t) of the document, are also supported by \SpecialChar LyX
23078 .
23079  In order to enable it, go to 
23080 \begin_inset Flex Noun
23081 status collapsed
23082
23083 \begin_layout Plain Layout
23084 Document\SpecialChar menuseparator
23085 Settings\SpecialChar menuseparator
23086 Bibliography
23087 \end_layout
23088
23089 \end_inset
23090
23091  and select the relevant unit (e.
23092 \begin_inset space \thinspace{}
23093 \end_inset
23094
23095 g., 
23096 \begin_inset Quotes eld
23097 \end_inset
23098
23099 per section
23100 \begin_inset Quotes erd
23101 \end_inset
23102
23103 ) in the 
23104 \begin_inset Flex Noun
23105 status collapsed
23106
23107 \begin_layout Plain Layout
23108 Multiple Bibliographies
23109 \end_layout
23110
23111 \end_inset
23112
23113  combo box.
23114  Then add a Bib(la)\SpecialChar TeX
23115  bibliography to each unit (e.
23116 \begin_inset space \thinspace{}
23117 \end_inset
23118
23119 g., section) of your document.
23120  In the output, a separate bibliography, containing only the references
23121  done in the current unit is generated.
23122 \end_layout
23123
23124 \begin_layout Standard
23125 If you use Bib\SpecialChar TeX
23126 , either the 
23127 \begin_inset Flex Code
23128 status collapsed
23129
23130 \begin_layout Plain Layout
23131 chapterbib
23132 \end_layout
23133
23134 \end_inset
23135
23136  or the 
23137 \begin_inset Flex Code
23138 status collapsed
23139
23140 \begin_layout Plain Layout
23141 bibtopic
23142 \end_layout
23143
23144 \end_inset
23145
23146  package is used to create multiple bibliographies.
23147  The former package is used if you select 
23148 \begin_inset Quotes eld
23149 \end_inset
23150
23151 per child document
23152 \begin_inset Quotes erd
23153 \end_inset
23154
23155  and do 
23156 \emph on
23157 not
23158 \emph default
23159  check 
23160 \begin_inset Flex Noun
23161 status collapsed
23162
23163 \begin_layout Plain Layout
23164 Sectioned Bibliography
23165 \end_layout
23166
23167 \end_inset
23168
23169 .
23170  In all other cases, 
23171 \begin_inset Flex Code
23172 status collapsed
23173
23174 \begin_layout Plain Layout
23175 bibtopic
23176 \end_layout
23177
23178 \end_inset
23179
23180  is used.
23181 \begin_inset Foot
23182 status collapsed
23183
23184 \begin_layout Plain Layout
23185 An alternative approach, if you are willing to use some 
23186 \begin_inset Flex Noun
23187 status collapsed
23188
23189 \begin_layout Plain Layout
23190 \SpecialChar TeX
23191  Code
23192 \end_layout
23193
23194 \end_inset
23195
23196  (see section
23197 \begin_inset space ~
23198 \end_inset
23199
23200
23201 \begin_inset CommandInset ref
23202 LatexCommand ref
23203 reference "sec:Inserting-TeX-Code"
23204
23205 \end_inset
23206
23207 ), is to use the 
23208 \begin_inset Flex Code
23209 status collapsed
23210
23211 \begin_layout Plain Layout
23212 bibunits
23213 \end_layout
23214
23215 \end_inset
23216
23217  package.
23218 \end_layout
23219
23220 \end_inset
23221
23222  If 
23223 \begin_inset Flex Code
23224 status collapsed
23225
23226 \begin_layout Plain Layout
23227 bibtopic
23228 \end_layout
23229
23230 \end_inset
23231
23232  is used, \SpecialChar LyX
23233  encloses the specified units in 
23234 \begin_inset Flex Code
23235 status collapsed
23236
23237 \begin_layout Plain Layout
23238 bibtopic
23239 \end_layout
23240
23241 \end_inset
23242
23243 's 
23244 \begin_inset Flex Code
23245 status collapsed
23246
23247 \begin_layout Plain Layout
23248
23249 \backslash
23250 begin{btUnit}
23251 \end_layout
23252
23253 \end_inset
23254
23255  and 
23256 \begin_inset Flex Code
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260
23261 \backslash
23262 end{btUnit}
23263 \end_layout
23264
23265 \end_inset
23266
23267  in order to create the units.
23268  Note that this approach has some limitations.
23269  First, every citation reference has to be inside some 
23270 \begin_inset Flex Code
23271 status collapsed
23272
23273 \begin_layout Plain Layout
23274 btUnit
23275 \end_layout
23276
23277 \end_inset
23278
23279 .
23280  So citations outside a defined unit (e.
23281 \begin_inset space \thinspace{}
23282 \end_inset
23283
23284 g., before the first section if you use 
23285 \begin_inset Quotes eld
23286 \end_inset
23287
23288 by section
23289 \begin_inset Quotes erd
23290 \end_inset
23291
23292 ) will appear as 
23293 \begin_inset Quotes eld
23294 \end_inset
23295
23296 ???
23297 \begin_inset Quotes erd
23298 \end_inset
23299
23300 .
23301  You can also create your own units by entering 
23302 \begin_inset Flex Code
23303 status collapsed
23304
23305 \begin_layout Plain Layout
23306
23307 \backslash
23308 begin{btUnit}
23309 \end_layout
23310
23311 \end_inset
23312
23313  and 
23314 \begin_inset Flex Code
23315 status collapsed
23316
23317 \begin_layout Plain Layout
23318
23319 \backslash
23320 end{btUnit}
23321 \end_layout
23322
23323 \end_inset
23324
23325  as \SpecialChar TeX
23326  code (for instance to work around the mentioned limitation).
23327  Note, though, that 
23328 \begin_inset Flex Code
23329 status collapsed
23330
23331 \begin_layout Plain Layout
23332 btUnit
23333 \end_layout
23334
23335 \end_inset
23336
23337 s cannot be nested.
23338  A second limitation is that 
23339 \begin_inset Flex Code
23340 status collapsed
23341
23342 \begin_layout Plain Layout
23343 bibtopic
23344 \end_layout
23345
23346 \end_inset
23347
23348  always processes all references of a bibliography database, even if they
23349  are not cited.
23350  This can result in odd labels (e.
23351 \begin_inset space \thinspace{}
23352 \end_inset
23353
23354 g.
23355  
23356 \begin_inset Quotes eld
23357 \end_inset
23358
23359 Miller 2014b
23360 \begin_inset Quotes erd
23361 \end_inset
23362
23363  if two works of this author from 2014 are in the database, even if only
23364  one is cited).
23365 \end_layout
23366
23367 \begin_layout Standard
23368 If you use 
23369 \family sans
23370 Biblatex
23371 \family default
23372 , the 
23373 \begin_inset Flex Code
23374 status collapsed
23375
23376 \begin_layout Plain Layout
23377 refsection
23378 \end_layout
23379
23380 \end_inset
23381
23382  option is used instead.
23383  If you need specific units, you can start them with the \SpecialChar TeX
23384  code 
23385 \begin_inset Flex Code
23386 status collapsed
23387
23388 \begin_layout Plain Layout
23389
23390 \backslash
23391 newrefsection
23392 \end_layout
23393
23394 \end_inset
23395
23396  or 
23397 \begin_inset Flex Code
23398 status collapsed
23399
23400 \begin_layout Plain Layout
23401
23402 \backslash
23403 newrefsegment
23404 \end_layout
23405
23406 \end_inset
23407
23408 , respectively.
23409  If you also want to control the end of the unit, use the environment 
23410 \begin_inset Flex Code
23411 status collapsed
23412
23413 \begin_layout Plain Layout
23414
23415 \backslash
23416 begin{refsection}
23417 \end_layout
23418
23419 \end_inset
23420
23421  \SpecialChar ldots
23422  
23423 \begin_inset Flex Code
23424 status collapsed
23425
23426 \begin_layout Plain Layout
23427
23428 \backslash
23429 end{refsection}
23430 \end_layout
23431
23432 \end_inset
23433
23434  instead.
23435  Note, though, that 
23436 \begin_inset Flex Code
23437 status collapsed
23438
23439 \begin_layout Plain Layout
23440 refsection
23441 \end_layout
23442
23443 \end_inset
23444
23445 s cannot be nested.
23446  In addition to the individual bibliography of the current unit, 
23447 \family sans
23448 Biblatex
23449 \family default
23450  also provides an easy way to output all bibliographies, subsequently, at
23451  one place (e.
23452 \begin_inset space \thinspace{}
23453 \end_inset
23454
23455 g., at the end of the document).
23456  Select 
23457 \begin_inset Quotes eld
23458 \end_inset
23459
23460 all reference units
23461 \begin_inset Quotes erd
23462 \end_inset
23463
23464  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
23465  this.
23466  Please refer to the 
23467 \family sans
23468 Biblatex
23469 \family default
23470  manual for more information on this topic.
23471 \end_layout
23472
23473 \begin_layout Chapter
23474
23475 \change_deleted 564990737 1671355654
23476 Itemize 
23477 \change_unchanged
23478 Bullet
23479 \change_inserted 564990737 1671355667
23480 s
23481 \change_deleted 564990737 1671355661
23482  Selection
23483 \change_inserted 564990737 1671355684
23484
23485 \begin_inset CommandInset label
23486 LatexCommand label
23487 name "chap:bullets"
23488
23489 \end_inset
23490
23491
23492 \change_deleted 564990737 1671355684
23493
23494 \begin_inset CommandInset label
23495 LatexCommand label
23496 name "sec:bullet"
23497
23498 \end_inset
23499
23500
23501 \change_unchanged
23502
23503 \end_layout
23504
23505 \begin_layout Standard
23506 by
23507 \noun on
23508  Allan Rae
23509 \end_layout
23510
23511 \begin_layout Section
23512 Introduction
23513 \end_layout
23514
23515 \begin_layout Standard
23516 \SpecialChar LyX
23517  provides 216 bullet shapes that can be accessed from a simple dialog.
23518  Using this dialog you can easily specify what bullet shape to use at each
23519  level of an itemized list.
23520  These settings are document-wide so you won't be able to specify different
23521  sets of bullets for different paragraphs.
23522 \begin_inset Foot
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526 Well, actually you can but you'll have to do it by hand.
23527 \end_layout
23528
23529 \end_inset
23530
23531
23532 \end_layout
23533
23534 \begin_layout Section
23535 How it looks
23536 \end_layout
23537
23538 \begin_layout Standard
23539 Open the dialog by selecting the 
23540 \begin_inset Flex Noun
23541 status collapsed
23542
23543 \begin_layout Plain Layout
23544 Document\SpecialChar menuseparator
23545 Settings
23546 \end_layout
23547
23548 \end_inset
23549
23550  menu item and then select the 
23551 \begin_inset Flex Noun
23552 status collapsed
23553
23554 \begin_layout Plain Layout
23555 Bullets
23556 \end_layout
23557
23558 \end_inset
23559
23560  tab.
23561 \end_layout
23562
23563 \begin_layout Standard
23564 The dialog provides you with a table of bullet shapes.
23565  A column of buttons on the left of the table provides access to the six
23566  different panels of bullet shapes.
23567  The row of buttons across the top is used to select which bullet depth
23568  you are changing.
23569
23570 \change_deleted 244031559 1603875981
23571  A text entry under the table shows the currently selected bullet shape's
23572  \SpecialChar LaTeX
23573  equivalent and this can be edited if desired.
23574  If you do modify the text you will also need to specify any needed packages
23575  in the \SpecialChar LaTeX
23576  preamble.
23577 \change_unchanged
23578
23579 \end_layout
23580
23581 \begin_layout Standard
23582 The six panels are divided up by the packages they require.
23583  The following table shows the mappings from button name to \SpecialChar LaTeX
23584  package.
23585 \end_layout
23586
23587 \begin_layout Standard
23588 \align center
23589 \begin_inset Tabular
23590 <lyxtabular version="3" rows="7" columns="2">
23591 <features tabularvalignment="middle">
23592 <column alignment="center" valignment="top" width="0pt">
23593 <column alignment="center" valignment="top" width="0pt">
23594 <row>
23595 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23596 \begin_inset Text
23597
23598 \begin_layout Plain Layout
23599
23600 \family roman
23601 \series medium
23602 \shape up
23603 \size normal
23604 \emph off
23605 \bar no
23606 \noun off
23607 \color none
23608 Button
23609 \end_layout
23610
23611 \end_inset
23612 </cell>
23613 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23614 \begin_inset Text
23615
23616 \begin_layout Plain Layout
23617
23618 \family roman
23619 \series medium
23620 \shape up
23621 \size normal
23622 \emph off
23623 \bar no
23624 \noun off
23625 \color none
23626 Packages Required
23627 \end_layout
23628
23629 \end_inset
23630 </cell>
23631 </row>
23632 <row>
23633 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23634 \begin_inset Text
23635
23636 \begin_layout Plain Layout
23637
23638 \family sans
23639 \series medium
23640 \shape up
23641 \size normal
23642 \emph off
23643 \bar no
23644 \noun off
23645 \color none
23646 Standard
23647 \end_layout
23648
23649 \end_inset
23650 </cell>
23651 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23652 \begin_inset Text
23653
23654 \begin_layout Plain Layout
23655
23656 \series medium
23657 \shape up
23658 \size normal
23659 \emph off
23660 \bar no
23661 \noun off
23662 \color none
23663 base \SpecialChar LaTeX
23664
23665 \end_layout
23666
23667 \end_inset
23668 </cell>
23669 </row>
23670 <row>
23671 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23672 \begin_inset Text
23673
23674 \begin_layout Plain Layout
23675
23676 \family sans
23677 \series medium
23678 \shape up
23679 \size normal
23680 \emph off
23681 \bar no
23682 \noun off
23683 \color none
23684 Maths
23685 \end_layout
23686
23687 \end_inset
23688 </cell>
23689 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23690 \begin_inset Text
23691
23692 \begin_layout Plain Layout
23693
23694 \family typewriter
23695 \series medium
23696 \shape up
23697 \size normal
23698 \emph off
23699 \bar no
23700 \noun off
23701 \color none
23702 amssymb.sty
23703 \end_layout
23704
23705 \end_inset
23706 </cell>
23707 </row>
23708 <row>
23709 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23710 \begin_inset Text
23711
23712 \begin_layout Plain Layout
23713
23714 \family sans
23715 \series medium
23716 \shape up
23717 \size normal
23718 \emph off
23719 \bar no
23720 \noun off
23721 \color none
23722 Ding1
23723 \end_layout
23724
23725 \end_inset
23726 </cell>
23727 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23728 \begin_inset Text
23729
23730 \begin_layout Plain Layout
23731
23732 \family typewriter
23733 \series medium
23734 \shape up
23735 \size normal
23736 \emph off
23737 \bar no
23738 \noun off
23739 \color none
23740 pifont.sty
23741 \end_layout
23742
23743 \end_inset
23744 </cell>
23745 </row>
23746 <row>
23747 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23748 \begin_inset Text
23749
23750 \begin_layout Plain Layout
23751
23752 \family sans
23753 \series medium
23754 \shape up
23755 \size normal
23756 \emph off
23757 \bar no
23758 \noun off
23759 \color none
23760 Ding2
23761 \end_layout
23762
23763 \end_inset
23764 </cell>
23765 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23766 \begin_inset Text
23767
23768 \begin_layout Plain Layout
23769
23770 \family typewriter
23771 \series medium
23772 \shape up
23773 \size normal
23774 \emph off
23775 \bar no
23776 \noun off
23777 \color none
23778 pifont.sty
23779 \end_layout
23780
23781 \end_inset
23782 </cell>
23783 </row>
23784 <row>
23785 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
23786 \begin_inset Text
23787
23788 \begin_layout Plain Layout
23789
23790 \family sans
23791 \series medium
23792 \shape up
23793 \size normal
23794 \emph off
23795 \bar no
23796 \noun off
23797 \color none
23798 Ding3
23799 \end_layout
23800
23801 \end_inset
23802 </cell>
23803 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
23804 \begin_inset Text
23805
23806 \begin_layout Plain Layout
23807
23808 \family typewriter
23809 \series medium
23810 \shape up
23811 \size normal
23812 \emph off
23813 \bar no
23814 \noun off
23815 \color none
23816 pifont.sty
23817 \end_layout
23818
23819 \end_inset
23820 </cell>
23821 </row>
23822 <row>
23823 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
23824 \begin_inset Text
23825
23826 \begin_layout Plain Layout
23827
23828 \family sans
23829 \series medium
23830 \shape up
23831 \size normal
23832 \emph off
23833 \bar no
23834 \noun off
23835 \color none
23836 Ding4
23837 \end_layout
23838
23839 \end_inset
23840 </cell>
23841 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
23842 \begin_inset Text
23843
23844 \begin_layout Plain Layout
23845
23846 \family typewriter
23847 \series medium
23848 \shape up
23849 \size normal
23850 \emph off
23851 \bar no
23852 \noun off
23853 \color none
23854 pifont.sty
23855 \end_layout
23856
23857 \end_inset
23858 </cell>
23859 </row>
23860 </lyxtabular>
23861
23862 \end_inset
23863
23864
23865 \end_layout
23866
23867 \begin_layout Standard
23868 \SpecialChar LyX
23869  doesn't stop you using bullets from packages you don't have.
23870  If you get errors from \SpecialChar LaTeX
23871  when you try to view or print the file, then it
23872  is likely you are missing a package.
23873 \begin_inset Foot
23874 status collapsed
23875
23876 \begin_layout Plain Layout
23877 \SpecialChar LyX
23878  doesn't restrict your use since you may be editing locally and exporting
23879  elsewhere.
23880 \end_layout
23881
23882 \end_inset
23883
23884
23885 \end_layout
23886
23887 \begin_layout Section
23888 How to use it
23889 \end_layout
23890
23891 \begin_layout Standard
23892 Select which bullet depth you want to change then select the bullet shape
23893  and size.
23894  Any changes will not be visible in \SpecialChar LyX
23895 , but are visible when viewing the document.
23896 \end_layout
23897
23898 \begin_layout Standard
23899 You can reset a bullet shape to the default simply by clicking your right
23900  mouse button on the appropriate bullet depth button.
23901 \begin_inset Foot
23902 status open
23903
23904 \begin_layout Plain Layout
23905
23906 \change_inserted 564990737 1672138075
23907 \begin_inset CommandInset label
23908 LatexCommand label
23909 name "fn:If-you-really"
23910
23911 \end_inset
23912
23913
23914 \change_unchanged
23915 If you 
23916 \emph on
23917 really
23918 \emph default
23919  want to have multiple sets of paragraphs with different sets of bullets
23920  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
23921  code.
23922  The bullet selection dialog can help though because it provides you with
23923  the \SpecialChar LaTeX
23924  code for a wide range of bullet shapes.
23925  To make your own custom paragraphs you have the following options:
23926 \end_layout
23927
23928 \begin_layout Plain Layout
23929 \begin_inset ERT
23930 status open
23931
23932 \begin_layout Plain Layout
23933
23934
23935 \backslash
23936 let
23937 \backslash
23938 savelabelitemi=
23939 \backslash
23940 labelitemi
23941 \end_layout
23942
23943 \end_inset
23944
23945
23946 \end_layout
23947
23948 \begin_layout Plain Layout
23949 \begin_inset ERT
23950 status open
23951
23952 \begin_layout Plain Layout
23953
23954
23955 \backslash
23956 renewcommand
23957 \backslash
23958 labelitemi[0]{
23959 \backslash
23960 small
23961 \backslash
23962 (
23963 \backslash
23964 sharp
23965 \backslash
23966 )}
23967 \end_layout
23968
23969 \end_inset
23970
23971
23972 \end_layout
23973
23974 \begin_layout Itemize
23975 Use the \SpecialChar LaTeX
23976  command 
23977 \begin_inset Flex Code
23978 status collapsed
23979
23980 \begin_layout Plain Layout
23981
23982 \backslash
23983 renewcommand{}{}
23984 \end_layout
23985
23986 \end_inset
23987
23988  to specify a new bullet shape for a given depth.
23989  You'll also need to save the current bullet shape so you can restore it
23990  again afterwards.
23991  In this itemized list the following \SpecialChar LaTeX
23992  code was used to change the bullet
23993  used for the first depth.
23994 \end_layout
23995
23996 \begin_deeper
23997 \begin_layout LyX-Code
23998
23999 \backslash
24000 let
24001 \backslash
24002 savelabelitemi=
24003 \backslash
24004 labelitemi 
24005 \end_layout
24006
24007 \begin_layout LyX-Code
24008
24009 \backslash
24010 renewcommand
24011 \backslash
24012 labelitemi[0]{
24013 \backslash
24014 small
24015 \backslash
24016 (
24017 \backslash
24018 sharp
24019 \backslash
24020 )}
24021 \end_layout
24022
24023 \end_deeper
24024 \begin_layout Itemize
24025 Note that the itemize depth is specified in Roman numerals as part of the
24026  
24027 \family typewriter
24028
24029 \backslash
24030 labelitem
24031 \family default
24032  command.
24033 \end_layout
24034
24035 \begin_layout Itemize
24036 \begin_inset Argument item:1
24037 status open
24038
24039 \begin_layout Plain Layout
24040 \begin_inset ERT
24041 status open
24042
24043 \begin_layout Plain Layout
24044
24045
24046 \backslash
24047 (
24048 \backslash
24049 star
24050 \backslash
24051 )
24052 \end_layout
24053
24054 \end_inset
24055
24056
24057 \end_layout
24058
24059 \end_inset
24060
24061  Specify each individual entry by starting each item with the bullet shape
24062  enclosed in a 
24063 \begin_inset Quotes eld
24064 \end_inset
24065
24066 Custom Item
24067 \begin_inset Quotes erd
24068 \end_inset
24069
24070  inset (available at 
24071 \family sans
24072 Insert\SpecialChar menuseparator
24073 Custom Item
24074 \family default
24075 ) and set as 
24076 \begin_inset Flex Noun
24077 status collapsed
24078
24079 \begin_layout Plain Layout
24080 \SpecialChar TeX
24081  Code
24082 \end_layout
24083
24084 \end_inset
24085
24086 .
24087  For example, this item was started with 
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092
24093 \backslash
24094 (
24095 \backslash
24096 star
24097 \backslash
24098 )
24099 \end_layout
24100
24101 \end_inset
24102
24103 .
24104 \end_layout
24105
24106 \begin_layout Plain Layout
24107 \begin_inset ERT
24108 status open
24109
24110 \begin_layout Plain Layout
24111
24112
24113 \backslash
24114 renewcommand
24115 \backslash
24116 labelitemi[0]{
24117 \backslash
24118 savelabelitemi}
24119 \end_layout
24120
24121 \end_inset
24122
24123
24124 \end_layout
24125
24126 \begin_layout Plain Layout
24127 You'll also need to revert the labelitem back to its previous setting for
24128  the global bullet shape settings to remain in effect.
24129  The way used here was:
24130 \end_layout
24131
24132 \begin_layout LyX-Code
24133
24134 \backslash
24135 renewcommand
24136 \backslash
24137 labelitemi[0]{
24138 \backslash
24139 savelabelitemi}
24140 \end_layout
24141
24142 \end_inset
24143
24144
24145 \end_layout
24146
24147 \begin_layout Chapter
24148 Supplemental Tools
24149 \end_layout
24150
24151 \begin_layout Section
24152 Multipart Documents
24153 \end_layout
24154
24155 \begin_layout Subsection
24156 General Operation
24157 \end_layout
24158
24159 \begin_layout Standard
24160 When you are working on a large file with many sections, it is often convenient
24161  to break up the document into several files, or perhaps you have something
24162  where a table may change from time to time, but the preceding text does
24163  not.
24164  In these cases, you should seriously consider using multipart documents.
24165  For example, scientific papers often have five major sections: the introduction
24166 , observations, results, discussion, and conclusion.
24167  Each of these could be its own separate \SpecialChar LyX
24168  file, with one 
24169 \begin_inset Quotes eld
24170 \end_inset
24171
24172 master
24173 \begin_inset Quotes erd
24174 \end_inset
24175
24176  file which contains the title, authors, abstract, references, etc., plus
24177  the five included files.
24178  It is important to note that each of these files is a full \SpecialChar LyX
24179  file which
24180  can be formatted and printed on its own, as well as included in a master
24181  file.
24182  Each of these files must have the same document class, however—don't attempt
24183  to mix book classes with article classes.
24184  You may also include \SpecialChar LaTeX
24185  files; however, these files must not have their own
24186  preamble (i.
24187 \begin_inset space \thinspace{}
24188 \end_inset
24189
24190 e.
24191 \begin_inset space \space{}
24192 \end_inset
24193
24194 everything up to and including the 
24195 \begin_inset Flex Code
24196 status collapsed
24197
24198 \begin_layout Plain Layout
24199
24200 \backslash
24201 begin{document}
24202 \end_layout
24203
24204 \end_inset
24205
24206  line as well as the 
24207 \begin_inset Flex Code
24208 status collapsed
24209
24210 \begin_layout Plain Layout
24211
24212 \backslash
24213 end{document}
24214 \end_layout
24215
24216 \end_inset
24217
24218  line must be deleted) or else errors will be generated when you try to
24219  make a DVI file.
24220 \end_layout
24221
24222 \begin_layout Standard
24223 \SpecialChar LyX
24224  allows you to include files quite easily with 
24225 \begin_inset Flex Noun
24226 status collapsed
24227
24228 \begin_layout Plain Layout
24229 Insert\SpecialChar menuseparator
24230 Child
24231 \begin_inset space ~
24232 \end_inset
24233
24234 Document
24235 \end_layout
24236
24237 \end_inset
24238
24239 .
24240  When you click on this selection a small box is inserted into the file
24241  at the current cursor location.
24242  Clicking on the box raises a dialog which allows you to select the file
24243  to be included, and the method of its inclusion.
24244  
24245 \end_layout
24246
24247 \begin_layout Standard
24248 The file selection box should by now be obvious.
24249  The three inclusion methods are 
24250 \begin_inset Quotes eld
24251 \end_inset
24252
24253 include
24254 \begin_inset Quotes erd
24255 \end_inset
24256
24257
24258 \begin_inset Quotes eld
24259 \end_inset
24260
24261 input
24262 \begin_inset Quotes erd
24263 \end_inset
24264
24265 , and 
24266 \begin_inset Quotes eld
24267 \end_inset
24268
24269 verbatim
24270 \begin_inset Quotes erd
24271 \end_inset
24272
24273 .
24274  The methods 
24275 \begin_inset Quotes eld
24276 \end_inset
24277
24278 include
24279 \begin_inset Quotes erd
24280 \end_inset
24281
24282  and 
24283 \begin_inset Quotes eld
24284 \end_inset
24285
24286 input
24287 \begin_inset Quotes erd
24288 \end_inset
24289
24290  are similar in many ways, but there are also some notable differences:
24291 \end_layout
24292
24293 \begin_layout Enumerate
24294 Files that are 
24295 \begin_inset Quotes eld
24296 \end_inset
24297
24298 included
24299 \begin_inset Quotes erd
24300 \end_inset
24301
24302  are typeset beginning on a new page, while files that are 
24303 \begin_inset Quotes eld
24304 \end_inset
24305
24306 inputted
24307 \begin_inset Quotes erd
24308 \end_inset
24309
24310  are typeset starting on the current page.
24311 \end_layout
24312
24313 \begin_layout Enumerate
24314 \begin_inset Quotes eld
24315 \end_inset
24316
24317 Included
24318 \begin_inset Quotes erd
24319 \end_inset
24320
24321  files cannot themselves 
24322 \begin_inset Quotes eld
24323 \end_inset
24324
24325 include
24326 \begin_inset Quotes erd
24327 \end_inset
24328
24329  further files (
24330 \begin_inset Quotes eld
24331 \end_inset
24332
24333 grandchilds
24334 \begin_inset Quotes erd
24335 \end_inset
24336
24337 ).
24338  With 
24339 \begin_inset Quotes eld
24340 \end_inset
24341
24342 input
24343 \begin_inset Quotes erd
24344 \end_inset
24345
24346 , on the other hand, infinite sub-inputting is possible.
24347 \end_layout
24348
24349 \begin_layout Enumerate
24350 \begin_inset Quotes eld
24351 \end_inset
24352
24353 Include
24354 \begin_inset Quotes erd
24355 \end_inset
24356
24357  allow for the output of only selected 
24358 \begin_inset Quotes eld
24359 \end_inset
24360
24361 included
24362 \begin_inset Quotes erd
24363 \end_inset
24364
24365  files, while maintaining the actual counters (pagination etc.) and references
24366  (please refer to the section 
24367 \emph on
24368 Child
24369 \begin_inset space ~
24370 \end_inset
24371
24372 Documents
24373 \emph default
24374  of the 
24375 \emph on
24376 Embedded
24377 \begin_inset space ~
24378 \end_inset
24379
24380 Objects
24381 \emph default
24382  manual for details).
24383 \end_layout
24384
24385 \begin_layout Standard
24386 Hence, 
24387 \begin_inset Quotes eld
24388 \end_inset
24389
24390 include
24391 \begin_inset Quotes erd
24392 \end_inset
24393
24394  is the preferred method for chapters that are outsourced to child documents,
24395  while 
24396 \begin_inset Quotes eld
24397 \end_inset
24398
24399 input
24400 \begin_inset Quotes erd
24401 \end_inset
24402
24403  is more suitable for arbitrary file inheritance.
24404 \end_layout
24405
24406 \begin_layout Standard
24407
24408 \begin_inset Quotes eld
24409 \end_inset
24410
24411 verbatim
24412 \begin_inset Quotes erd
24413 \end_inset
24414
24415  included file allows you to include a file typeset exactly as it appears
24416  in the file, i.
24417 \begin_inset space \thinspace{}
24418 \end_inset
24419
24420 e.
24421 \begin_inset space \space{}
24422 \end_inset
24423
24424 in 
24425 \begin_inset Flex Code
24426 status collapsed
24427
24428 \begin_layout Plain Layout
24429 verbatim
24430 \end_layout
24431
24432 \end_inset
24433
24434  mode, with the characters set in a fixed-width typewriter font.
24435  Normally, spaces in this file are invisible, though two consecutive spaces
24436  are conserved, unlike \SpecialChar LyX
24437 's normal treatment of spaces.
24438  However, setting the 
24439 \begin_inset Flex Noun
24440 status collapsed
24441
24442 \begin_layout Plain Layout
24443 Mark
24444 \begin_inset space ~
24445 \end_inset
24446
24447 spaces
24448 \begin_inset space ~
24449 \end_inset
24450
24451 in
24452 \begin_inset space ~
24453 \end_inset
24454
24455 output
24456 \end_layout
24457
24458 \end_inset
24459
24460  checkbox typesets a mark to unambiguously define the presence of a space.
24461  
24462 \end_layout
24463
24464 \begin_layout Standard
24465 Generally, the master file is converted into a full \SpecialChar LaTeX
24466  file before typesetting,
24467  while the included files are converted to \SpecialChar LaTeX
24468  files that do not have all the
24469  preamble information.
24470 \end_layout
24471
24472 \begin_layout Subsection
24473 Cross-References Between Files
24474 \end_layout
24475
24476 \begin_layout Standard
24477 \begin_inset Box Shadowbox
24478 position "t"
24479 hor_pos "c"
24480 has_inner_box 1
24481 inner_pos "t"
24482 use_parbox 0
24483 use_makebox 0
24484 width "100col%"
24485 special "none"
24486 height "1in"
24487 height_special "totalheight"
24488 thickness "0.4pt"
24489 separation "3pt"
24490 shadowsize "4pt"
24491 framecolor "black"
24492 backgroundcolor "none"
24493 status open
24494
24495 \begin_layout Plain Layout
24496 This section is somewhat out of date.
24497  Need to describe default master documents and how children are opened when
24498  the master is.
24499  [[FIXME]]
24500 \end_layout
24501
24502 \end_inset
24503
24504
24505 \end_layout
24506
24507 \begin_layout Standard
24508 It is possible to set up cross-references between the different files.
24509  First, open all the files in question: let's call them A and B in a two
24510  file example, where B is included in A.
24511  Let's say you insert a label in A, then want to reference it in B.
24512  Open the cross-reference dialog whilst in document B, and you can select
24513  the 
24514 \begin_inset Quotes eld
24515 \end_inset
24516
24517 buffer
24518 \begin_inset Quotes erd
24519 \end_inset
24520
24521  to use.
24522 \end_layout
24523
24524 \begin_layout Subsection
24525 Bibliography Lists in all Subdocuments
24526 \end_layout
24527
24528 \begin_layout Standard
24529 If you work with child documents, you might want to have only one main bibliogra
24530 phy at the end, but still be able to have a selected bibliography for the
24531  child if you output it on its own.
24532  Here is how to achieve this.
24533 \end_layout
24534
24535 \begin_layout Standard
24536 For the main document, you just insert a bibliography inset at the place
24537  where the main bibliography has to appear (within the master file or within
24538  a child).
24539  If the bibliography inset is in the master file, the references will be
24540  inherited by all children, so they are available in the citation dialog
24541  within each child.
24542 \end_layout
24543
24544 \begin_layout Standard
24545 For child-specific bibliographies, insert bibliography insets within the
24546  child documents, at the place where the bibliography should appear when
24547  the child is compiled separately.
24548  However, the trick is to insert them into a branch (
24549 \family sans
24550 Insert\SpecialChar menuseparator
24551 Branch\SpecialChar menuseparator
24552 Insert New Branch...
24553 \family default
24554 ), e.
24555 \begin_inset space \thinspace{}
24556 \end_inset
24557
24558 g.
24559  called 
24560 \begin_inset Quotes eld
24561 \end_inset
24562
24563 Childonly
24564 \begin_inset Quotes erd
24565 \end_inset
24566
24567 .
24568  Within the children, activate the branch (
24569 \family sans
24570 Document\SpecialChar menuseparator
24571 Settings...\SpecialChar menuseparator
24572 Branches
24573 \family default
24574 ).
24575  Within the master, deactivate the branch (
24576 \family sans
24577 Document\SpecialChar menuseparator
24578 Settings...\SpecialChar menuseparator
24579 Branches
24580 \family default
24581 ).
24582  Now the child's bibliography will be ignored by the master, but considered
24583  by the child.
24584 \end_layout
24585
24586 \begin_layout Standard
24587 If you need multiple bibliographies (e.
24588 \begin_inset space \thinspace{}
24589 \end_inset
24590
24591 g., one per child in the 
24592 \emph on
24593 main document
24594 \emph default
24595 ), please refer to sec.
24596 \begin_inset space ~
24597 \end_inset
24598
24599
24600 \begin_inset CommandInset ref
24601 LatexCommand ref
24602 reference "subsec:Multiple-Bibliographies"
24603
24604 \end_inset
24605
24606 .
24607 \end_layout
24608
24609 \begin_layout Section
24610 \SpecialChar LyX
24611  Archives
24612 \end_layout
24613
24614 \begin_layout Standard
24615 Users sometimes need to be able to 
24616 \begin_inset Quotes eld
24617 \end_inset
24618
24619 bundle
24620 \begin_inset Quotes erd
24621 \end_inset
24622
24623  a \SpecialChar LyX
24624  file together with all the images (and other files) on which it depends,
24625  either for sending to a publisher or for sharing with a co-author.
24626  \SpecialChar LyX
24627  includes a Python script (
24628 \begin_inset Flex Code
24629 status collapsed
24630
24631 \begin_layout Plain Layout
24632 lyxpak.py
24633 \end_layout
24634
24635 \end_inset
24636
24637 ) that automates this process.
24638  To use it, you must have either the 
24639 \begin_inset Flex Code
24640 status collapsed
24641
24642 \begin_layout Plain Layout
24643 zipfile
24644 \end_layout
24645
24646 \end_inset
24647
24648  or 
24649 \begin_inset Flex Code
24650 status collapsed
24651
24652 \begin_layout Plain Layout
24653 tarfile
24654 \end_layout
24655
24656 \end_inset
24657
24658  python modules installed on your system.
24659  By default, the script prefers the 
24660 \begin_inset Flex Code
24661 status collapsed
24662
24663 \begin_layout Plain Layout
24664 gzip
24665 \end_layout
24666
24667 \end_inset
24668
24669 -compressed 
24670 \begin_inset Flex Code
24671 status collapsed
24672
24673 \begin_layout Plain Layout
24674 tar
24675 \end_layout
24676
24677 \end_inset
24678
24679  format on Unix-like systems and the 
24680 \begin_inset Flex Code
24681 status collapsed
24682
24683 \begin_layout Plain Layout
24684 zip
24685 \end_layout
24686
24687 \end_inset
24688
24689  format on Windows.
24690 \end_layout
24691
24692 \begin_layout Standard
24693 \SpecialChar LyX
24694 's configuration process will set the script up to export a `\SpecialChar LyX
24695  Archive',
24696  and this format will then be available under 
24697 \begin_inset Flex Code
24698 status collapsed
24699
24700 \begin_layout Plain Layout
24701 File\SpecialChar menuseparator
24702 Export
24703 \end_layout
24704
24705 \end_inset
24706
24707 .
24708 \end_layout
24709
24710 \begin_layout Standard
24711 Independently of the platform, the generation of a particular archive format
24712  can be forced by adding either the 
24713 \begin_inset Flex Code
24714 status collapsed
24715
24716 \begin_layout Plain Layout
24717 -t
24718 \end_layout
24719
24720 \end_inset
24721
24722  (for the 
24723 \begin_inset Flex Code
24724 status collapsed
24725
24726 \begin_layout Plain Layout
24727 tar
24728 \end_layout
24729
24730 \end_inset
24731
24732  format) or 
24733 \begin_inset Flex Code
24734 status collapsed
24735
24736 \begin_layout Plain Layout
24737 -z
24738 \end_layout
24739
24740 \end_inset
24741
24742  (for the 
24743 \begin_inset Flex Code
24744 status collapsed
24745
24746 \begin_layout Plain Layout
24747 zip
24748 \end_layout
24749
24750 \end_inset
24751
24752  format) switch to the 
24753 \begin_inset Flex Code
24754 status collapsed
24755
24756 \begin_layout Plain Layout
24757 \SpecialChar LyX
24758 \SpecialChar menuseparator
24759 \SpecialChar LyX
24760  Archive
24761 \end_layout
24762
24763 \end_inset
24764
24765  converter in 
24766 \begin_inset Flex Code
24767 status collapsed
24768
24769 \begin_layout Plain Layout
24770 Tools\SpecialChar menuseparator
24771 Preferences\SpecialChar menuseparator
24772 File Handling\SpecialChar menuseparator
24773 Converters
24774 \end_layout
24775
24776 \end_inset
24777
24778 .
24779  (Make sure you add the switch after the script name, not before it.)
24780 \end_layout
24781
24782 \begin_layout Section
24783 Fancy Headers and Footers
24784 \end_layout
24785
24786 \begin_layout Standard
24787 The default page layout is rather plain; for an 
24788 \begin_inset Flex Code
24789 status collapsed
24790
24791 \begin_layout Plain Layout
24792 article
24793 \end_layout
24794
24795 \end_inset
24796
24797  document class, all you get is a centered page number at the bottom of
24798  the page.
24799  This document uses KOMA-script's book class, so it appears to be a bit
24800  fancier.
24801  But to really put on a show, you need to set the document page style to
24802  
24803 \begin_inset Quotes eld
24804 \end_inset
24805
24806 fancy
24807 \begin_inset Quotes erd
24808 \end_inset
24809
24810 , as mentioned in the 
24811 \emph on
24812 User Guide
24813 \emph default
24814 .
24815  This section describes the \SpecialChar LaTeX
24816  code you need to insert in your \SpecialChar LaTeX
24817  preamble in
24818  order to get the desired effects.
24819 \end_layout
24820
24821 \begin_layout Standard
24822 For more information on fancy headers, see the 
24823 \begin_inset Flex Code
24824 status collapsed
24825
24826 \begin_layout Plain Layout
24827 fancyhdr
24828 \end_layout
24829
24830 \end_inset
24831
24832  package documentation.
24833  (
24834 \begin_inset Flex URL
24835 status collapsed
24836
24837 \begin_layout Plain Layout
24838
24839 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
24840 \end_layout
24841
24842 \end_inset
24843
24844 )
24845 \end_layout
24846
24847 \begin_layout Standard
24848 The page header is divided into three fields, not surprisingly labeled 
24849 \begin_inset Quotes eld
24850 \end_inset
24851
24852 left
24853 \begin_inset Quotes erd
24854 \end_inset
24855
24856
24857 \begin_inset Quotes eld
24858 \end_inset
24859
24860 center
24861 \begin_inset Quotes erd
24862 \end_inset
24863
24864 , and 
24865 \begin_inset Quotes eld
24866 \end_inset
24867
24868 right
24869 \begin_inset Quotes erd
24870 \end_inset
24871
24872 .
24873  The footer is also divided into these three fields.
24874  The \SpecialChar LaTeX
24875  commands to set these fields in the simplest manner are 
24876 \begin_inset Flex Code
24877 status collapsed
24878
24879 \begin_layout Plain Layout
24880
24881 \backslash
24882 lhead
24883 \end_layout
24884
24885 \end_inset
24886
24887
24888 \begin_inset Flex Code
24889 status collapsed
24890
24891 \begin_layout Plain Layout
24892
24893 \backslash
24894 chead
24895 \end_layout
24896
24897 \end_inset
24898
24899
24900 \begin_inset Flex Code
24901 status collapsed
24902
24903 \begin_layout Plain Layout
24904
24905 \backslash
24906 rhead
24907 \end_layout
24908
24909 \end_inset
24910
24911
24912 \begin_inset Flex Code
24913 status collapsed
24914
24915 \begin_layout Plain Layout
24916
24917 \backslash
24918 lfoot
24919 \end_layout
24920
24921 \end_inset
24922
24923 , etc.
24924  Suppose you wish to put your name in the upper left hand corner of each
24925  page.
24926  Simply insert the following command in the preamble: 
24927 \end_layout
24928
24929 \begin_layout Standard
24930
24931 \family typewriter
24932
24933 \backslash
24934 lhead{John Q.
24935  DocWriter}
24936 \end_layout
24937
24938 \begin_layout Standard
24939 You will now see your name in the upper left.
24940  If a field has a default entry that you would like to get rid of (often
24941  the page number appears in the central footer) simply include a command
24942  with a blank argument, e.
24943 \begin_inset space \thinspace{}
24944 \end_inset
24945
24946 g.:
24947 \end_layout
24948
24949 \begin_layout Standard
24950
24951 \family typewriter
24952
24953 \backslash
24954 cfoot{}
24955 \end_layout
24956
24957 \begin_layout Standard
24958 Let's get really fancy: lets put the section number with the word 
24959 \begin_inset Quotes eld
24960 \end_inset
24961
24962 Section
24963 \begin_inset Quotes erd
24964 \end_inset
24965
24966  (e.
24967 \begin_inset space \thinspace{}
24968 \end_inset
24969
24970 g.
24971 \begin_inset space \space{}
24972 \end_inset
24973
24974 Section 3) in the upper left, the page number (e.
24975 \begin_inset space \thinspace{}
24976 \end_inset
24977
24978 g.
24979 \begin_inset space \space{}
24980 \end_inset
24981
24982 Page 4) in the upper right, your name in the lower left, and the date in
24983  the lower right.
24984  The following commands should now appear in the preamble:
24985 \end_layout
24986
24987 \begin_layout Standard
24988
24989 \family typewriter
24990
24991 \backslash
24992 lhead{Section 
24993 \backslash
24994 thesection}
24995 \end_layout
24996
24997 \begin_layout Standard
24998
24999 \family typewriter
25000
25001 \backslash
25002 chead{}
25003 \end_layout
25004
25005 \begin_layout Standard
25006
25007 \family typewriter
25008
25009 \backslash
25010 rhead{Page 
25011 \backslash
25012 thepage}
25013 \end_layout
25014
25015 \begin_layout Standard
25016
25017 \family typewriter
25018
25019 \backslash
25020 lfoot{John Q.
25021  DocWriter}
25022 \end_layout
25023
25024 \begin_layout Standard
25025
25026 \family typewriter
25027
25028 \backslash
25029 cfoot{}
25030 \end_layout
25031
25032 \begin_layout Standard
25033
25034 \family typewriter
25035
25036 \backslash
25037 rfoot{
25038 \backslash
25039 today}
25040 \end_layout
25041
25042 \begin_layout Standard
25043 The commands 
25044 \begin_inset Flex Code
25045 status collapsed
25046
25047 \begin_layout Plain Layout
25048
25049 \backslash
25050 thesection
25051 \end_layout
25052
25053 \end_inset
25054
25055  and 
25056 \begin_inset Flex Code
25057 status collapsed
25058
25059 \begin_layout Plain Layout
25060
25061 \backslash
25062 thepage
25063 \end_layout
25064
25065 \end_inset
25066
25067  access \SpecialChar LaTeX
25068 's section and page counters, and so print out the current section
25069  and page number.
25070  
25071 \begin_inset Flex Code
25072 status collapsed
25073
25074 \begin_layout Plain Layout
25075
25076 \backslash
25077 today
25078 \end_layout
25079
25080 \end_inset
25081
25082  simply prints out today's date.
25083 \end_layout
25084
25085 \begin_layout Standard
25086 The thicknesses of the horizontal rules drawn beneath the header and above
25087  the footer can also be modified.
25088  If you don't want one of the rules, set its thickness to 0.
25089  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
25090  Use commands
25091 \family typewriter
25092  
25093 \family default
25094 like 
25095 \begin_inset Flex Code
25096 status collapsed
25097
25098 \begin_layout Plain Layout
25099
25100 \backslash
25101 renewcommand{
25102 \backslash
25103 headrulewidth}{0.4pt}
25104 \end_layout
25105
25106 \end_inset
25107
25108  and 
25109 \begin_inset Flex Code
25110 status collapsed
25111
25112 \begin_layout Plain Layout
25113
25114 \backslash
25115 renewcommand{
25116 \backslash
25117 footrulewidth}{0.4pt}
25118 \end_layout
25119
25120 \end_inset
25121
25122  to set the thicknesses.
25123 \end_layout
25124
25125 \begin_layout Standard
25126 You can switch the header/footer settings on and off for individual pages
25127  using commands like 
25128 \begin_inset Flex Code
25129 status collapsed
25130
25131 \begin_layout Plain Layout
25132
25133 \backslash
25134 thispagestyle{empty}
25135 \end_layout
25136
25137 \end_inset
25138
25139
25140 \begin_inset Flex Code
25141 status collapsed
25142
25143 \begin_layout Plain Layout
25144
25145 \backslash
25146 thispagestyle{plain}
25147 \end_layout
25148
25149 \end_inset
25150
25151 , and 
25152 \begin_inset Flex Code
25153 status collapsed
25154
25155 \begin_layout Plain Layout
25156
25157 \backslash
25158 thispagestyle{fancy}
25159 \end_layout
25160
25161 \end_inset
25162
25163 .
25164  Simply insert them in the text on the page you want changed and mark them
25165  as \SpecialChar TeX
25166  code.
25167  In fact, title pages are marked as plain by default, while following pages
25168  are marked fancy when using the global fancy setting.
25169 \end_layout
25170
25171 \begin_layout Standard
25172 As a final example, it is possible to include an image in the header or
25173  footer.
25174  Suppose you want to put a company logo in the upper lefthand corner.
25175  You might try something like
25176 \end_layout
25177
25178 \begin_layout Standard
25179
25180 \family typewriter
25181
25182 \backslash
25183 lhead{
25184 \backslash
25185 resizebox{1in}{!}{
25186 \backslash
25187 includegraphics{logo.eps}}}
25188 \end_layout
25189
25190 \begin_layout Standard
25191 \noindent
25192 (you may need to preface this with 
25193 \begin_inset Flex Code
25194 status collapsed
25195
25196 \begin_layout Plain Layout
25197
25198 \backslash
25199 usepackage{graphics}
25200 \end_layout
25201
25202 \end_inset
25203
25204  if you don't include graphics elsewhere in your document).
25205 \end_layout
25206
25207 \begin_layout Chapter
25208 \SpecialChar LyX
25209  and the World Wide Web
25210 \end_layout
25211
25212 \begin_layout Standard
25213 \SpecialChar LyX
25214  has long supported the export of documents to various web-friendly formats,
25215  such as HTML.
25216  Before version 2.0, however, HTML export was always accomplished by the
25217  use of external converters.
25218 \begin_inset Foot
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222 For details on the use of external converters with \SpecialChar LyX
25223 , see the 
25224 \emph on
25225 Converters
25226 \emph default
25227  section of the Customization manual.
25228 \end_layout
25229
25230 \end_inset
25231
25232  These fall into two large groups: there are converters that use \SpecialChar LaTeX
25233  as an
25234  intermediate format, such as 
25235 \begin_inset Flex Code
25236 status collapsed
25237
25238 \begin_layout Plain Layout
25239 htlatex
25240 \end_layout
25241
25242 \end_inset
25243
25244
25245 \begin_inset Flex Code
25246 status collapsed
25247
25248 \begin_layout Plain Layout
25249 html2latex
25250 \end_layout
25251
25252 \end_inset
25253
25254 , and 
25255 \begin_inset Flex Code
25256 status collapsed
25257
25258 \begin_layout Plain Layout
25259 plastex
25260 \end_layout
25261
25262 \end_inset
25263
25264 , relying upon \SpecialChar LyX
25265  to produce the \SpecialChar LaTeX
25266 ; and there is a converter that works directly
25267  on \SpecialChar LyX
25268  files, 
25269 \begin_inset Flex Code
25270 status collapsed
25271
25272 \begin_layout Plain Layout
25273 e\SpecialChar LyX
25274 er
25275 \end_layout
25276
25277 \end_inset
25278
25279 .
25280  All of these have different advantages and disadvantages.
25281  
25282 \end_layout
25283
25284 \begin_layout Standard
25285 The \SpecialChar LaTeX
25286 -based converters have the advantage that, in principle, they know everythin
25287 g about the exported document that \SpecialChar LaTeX
25288  does.
25289  Such converters do not care, for example, if a certain block of code was
25290  produced by \SpecialChar LyX
25291  or was Evil Red Text.
25292  These converters know about 
25293 \begin_inset Flex Code
25294 status collapsed
25295
25296 \begin_layout Plain Layout
25297 aux
25298 \end_layout
25299
25300 \end_inset
25301
25302  files, counters, and references, and can often make use of the 
25303 \begin_inset Flex Code
25304 status collapsed
25305
25306 \begin_layout Plain Layout
25307 bbl
25308 \end_layout
25309
25310 \end_inset
25311
25312  files generated by Bib\SpecialChar TeX
25313 .
25314  On the other hand, \SpecialChar LaTeX
25315  is a very hard language to parse—it is sometimes said
25316  that only \SpecialChar TeX
25317  itself understands \SpecialChar TeX
25318 —and \SpecialChar LaTeX
25319 -based converters will often choke on
25320  what seem to be quite simple constructs; complex ones can throw them completely
25321 , and as of this writing, for example, the 
25322 \emph on
25323 Embedded Objects
25324 \emph default
25325  manual will not export with 
25326 \begin_inset Flex Code
25327 status collapsed
25328
25329 \begin_layout Plain Layout
25330 htlatex
25331 \end_layout
25332
25333 \end_inset
25334
25335 , though the others will.
25336  The other issue concerns how math is handled.
25337  These converters typically convert the formulae into little pictures that
25338  are then linked from the HTML document.
25339  Since these are actually generated by \SpecialChar LaTeX
25340 , they are accurate.
25341  But they do not scale well, and just getting them to look as if they are
25342  actually meant to be in your document—so that the font sizes seem to be
25343  roughly the same—can be a challenge.
25344 \end_layout
25345
25346 \begin_layout Standard
25347 Alex Fernandez's 
25348 \begin_inset Flex Code
25349 status collapsed
25350
25351 \begin_layout Plain Layout
25352 e\SpecialChar LyX
25353 er
25354 \end_layout
25355
25356 \end_inset
25357
25358  (
25359 \begin_inset CommandInset href
25360 LatexCommand href
25361 name "http://pinchito.es/elyxer/"
25362 target "http://pinchito.es/elyxer/"
25363 literal "false"
25364
25365 \end_inset
25366
25367 ) solves some of these problems.
25368  In particular, the formulae it produces scale perfectly, since it renders
25369  math using a combination of HTML and CSS rather than converting the formulae
25370  to images.
25371  But even moderately complex formula are rendered less well than with 
25372 \begin_inset Flex Code
25373 status collapsed
25374
25375 \begin_layout Plain Layout
25376 htlatex
25377 \end_layout
25378
25379 \end_inset
25380
25381 ; this reflects the limitations of HTML.
25382 \begin_inset Foot
25383 status collapsed
25384
25385 \begin_layout Plain Layout
25386 That said, 
25387 \begin_inset Flex Code
25388 status collapsed
25389
25390 \begin_layout Plain Layout
25391 e\SpecialChar LyX
25392 er
25393 \end_layout
25394
25395 \end_inset
25396
25397  can also use jsMath and MathJax for equations, but this setting is only
25398  available globally and requires one to have access to a server that runs
25399  the backend.
25400 \end_layout
25401
25402 \end_inset
25403
25404  More importantly (as of version 1.1.1, at least), 
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409 e\SpecialChar LyX
25410 er
25411 \end_layout
25412
25413 \end_inset
25414
25415  has limited support for math macros and no support for user-defined paragraph
25416  or character styles.
25417  These limitations make 
25418 \begin_inset Flex Code
25419 status collapsed
25420
25421 \begin_layout Plain Layout
25422 e\SpecialChar LyX
25423 er
25424 \end_layout
25425
25426 \end_inset
25427
25428  unsuitable for many of the documents \SpecialChar LyX
25429  users produce.
25430  In principle, of course, these problems could be solved, but the \SpecialChar LyX
25431  developers
25432  have decided to follow a different path and have made \SpecialChar LyX
25433  itself capable of
25434  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
25435 , DocBook, and plaintext.
25436 \end_layout
25437
25438 \begin_layout Standard
25439 As of this writing, XHTML output remains under development and should probably
25440  be regarded as 
25441 \begin_inset Quotes eld
25442 \end_inset
25443
25444 experimental
25445 \begin_inset Quotes erd
25446 \end_inset
25447
25448 .
25449 \begin_inset Foot
25450 status collapsed
25451
25452 \begin_layout Plain Layout
25453 The file 
25454 \begin_inset Flex Code
25455 status collapsed
25456
25457 \begin_layout Plain Layout
25458 development/HTML/HTML.notes
25459 \end_layout
25460
25461 \end_inset
25462
25463 , which can be found in the \SpecialChar LyX
25464  source tree or 
25465 \begin_inset CommandInset href
25466 LatexCommand href
25467 name "accessed online"
25468 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
25469 literal "false"
25470
25471 \end_inset
25472
25473 , usually contains up-to-date information about the state of XHTML output.
25474  See also the list of XHTML bugs on 
25475 \begin_inset CommandInset href
25476 LatexCommand href
25477 name "the bug tracker"
25478 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"
25479 literal "false"
25480
25481 \end_inset
25482
25483 .
25484 \end_layout
25485
25486 \end_inset
25487
25488  Still, the developers have chosen this approach because it has several
25489  potential advantages over the other two.
25490 \end_layout
25491
25492 \begin_layout Standard
25493 These advantages are primarily due to the fact that the XHTML output routines,
25494  since they are part of \SpecialChar LyX
25495 , know everything \SpecialChar LyX
25496  knows about the document being
25497  exported.
25498 \begin_inset Foot
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 Another advantage is that, since these routines are internal to \SpecialChar LyX
25503 , they are
25504  immune to changes in \SpecialChar LyX
25505 's file format, or to changes in the semantics of
25506  existing insets.
25507 \end_layout
25508
25509 \end_inset
25510
25511  So they know about the table of contents (as displayed in the outline),
25512  about the counters associated with different paragraph styles, and about
25513  user-defined styles.
25514  The XHTML output routines know what \SpecialChar LyX
25515  knows about internationalization,
25516  too, so they will output 
25517 \begin_inset Quotes eld
25518 \end_inset
25519
25520 Chapter 1
25521 \begin_inset Quotes erd
25522 \end_inset
25523
25524  or 
25525 \begin_inset Quotes eld
25526 \end_inset
25527
25528
25529 \lang ngerman
25530 Kapitel
25531 \lang english
25532  1
25533 \begin_inset Quotes erd
25534 \end_inset
25535
25536 , depending upon the language in effect at the time.
25537  
25538 \end_layout
25539
25540 \begin_layout Standard
25541 Quite generally, the output routines know what \SpecialChar LyX
25542  knows about document layout,
25543  that is, about how the document is to be rendered on screen.
25544  We use this information when we output the document as XHTML.
25545  In particular, \SpecialChar LyX
25546  
25547 \emph on
25548 automatically
25549 \emph default
25550  generates CSS style information corresponding to the layout information
25551  it uses to render the document on screen: if section headings are supposed
25552  to be sans-serif and bold as seen in \SpecialChar LyX
25553 , then (by default) they will be sans-seri
25554 f and bold when viewed in a web browser, too.
25555  And this is true not just for pre-defined styles, like Section, but for
25556  any style, including user-defined styles.
25557  Indeed, the XHTML output routines make no distinction between user-defined
25558  paragraph and 
25559 \change_deleted 244031559 1603876931
25560 character
25561 \change_inserted 244031559 1603876940
25562 text
25563 \change_unchanged
25564  styles and \SpecialChar LyX
25565 's own pre-defined styles: in each case, everything \SpecialChar LyX
25566  knows about
25567  the styles is contained in the layout files.
25568  And much the same is true as regards pre-defined textual insets, such as
25569  footnotes, and various custom insets.
25570  
25571 \end_layout
25572
25573 \begin_layout Standard
25574 The result is that XHTML output can be customized and extended in exactly
25575  the same way \SpecialChar LaTeX
25576  output can be customized and extended: through layout files
25577  and modules.
25578  See chapter five of the 
25579 \emph on
25580 Customization 
25581 \emph default
25582 manual for the details.
25583 \end_layout
25584
25585 \begin_layout Standard
25586 The remainder of this chapter contains more detailed information on XHTML
25587  output, its limitations, and ways to work around those limitations.
25588 \end_layout
25589
25590 \begin_layout Section
25591 Math Output in XHTML
25592 \end_layout
25593
25594 \begin_layout Standard
25595 \SpecialChar LyX
25596  offers four choices for how math is rendered.
25597  These have various advantages and disadvantages:
25598 \end_layout
25599
25600 \begin_layout Itemize
25601 MathML
25602 \begin_inset Newline newline
25603 \end_inset
25604
25605 MathML is a dialect of XML designed specifically for mathematics on the
25606  web, and it typically renders very well in browsers that support it.
25607  The disadvantage is that not all browsers support MathML, and support is
25608  not complete even in the Gecko-based browsers, such as Firefox.
25609 \begin_inset Newline newline
25610 \end_inset
25611
25612 If \SpecialChar LyX
25613  is unable to render a formula as MathML—for example, if the formula
25614  uses the 
25615 \begin_inset Flex Code
25616 status collapsed
25617
25618 \begin_layout Plain Layout
25619 xymatrix
25620 \end_layout
25621
25622 \end_inset
25623
25624  package or ERT—then it will instead output the formula as an image.
25625  
25626 \end_layout
25627
25628 \begin_layout Itemize
25629 HTML
25630 \begin_inset Newline newline
25631 \end_inset
25632
25633 As mentioned above, 
25634 \begin_inset Flex Code
25635 status collapsed
25636
25637 \begin_layout Plain Layout
25638 elyxer
25639 \end_layout
25640
25641 \end_inset
25642
25643  outputs math as HTML, styled by CSS.
25644 \begin_inset Foot
25645 status collapsed
25646
25647 \begin_layout Plain Layout
25648 \SpecialChar LyX
25649  has borrowed some of the CSS for its HTML output from 
25650 \begin_inset Flex Code
25651 status collapsed
25652
25653 \begin_layout Plain Layout
25654 elyxer
25655 \end_layout
25656
25657 \end_inset
25658
25659 .
25660 \end_layout
25661
25662 \end_inset
25663
25664  For simple formulae, this can work quite well, though with more complicated
25665  formulae it tends to break down.
25666  Still, this method has the advantage that it is very widely supported and
25667  so it may be appropriate for documents that contain only a little, fairly
25668  simple math.
25669 \begin_inset Newline newline
25670 \end_inset
25671
25672 If Lyx is unable to render a formula as HTML—for example, if the formula
25673  uses the 
25674 \begin_inset Flex Code
25675 status collapsed
25676
25677 \begin_layout Plain Layout
25678 xymatrix
25679 \end_layout
25680
25681 \end_inset
25682
25683  package or ERT—then it will instead output the formula as an image.
25684  
25685 \end_layout
25686
25687 \begin_layout Itemize
25688 Images
25689 \begin_inset Newline newline
25690 \end_inset
25691
25692 Like 
25693 \begin_inset Flex Code
25694 status collapsed
25695
25696 \begin_layout Plain Layout
25697 htlatex
25698 \end_layout
25699
25700 \end_inset
25701
25702 , \SpecialChar LyX
25703  will output formulae as images, the very same images, in fact, that are
25704  used for instant preview.
25705 \begin_inset Foot
25706 status collapsed
25707
25708 \begin_layout Plain Layout
25709 Instant preview does 
25710 \emph on
25711 not 
25712 \emph default
25713 have to be on for images to be output, however.
25714 \end_layout
25715
25716 \end_inset
25717
25718  The advantage to this method is that the images are simply generated by
25719  \SpecialChar LaTeX
25720 , so they are very accurate.
25721  The disadvantage, as mentioned earlier, is that these are bitmapped images,
25722  so they do not scale terribly well, and one cannot copy them, etc.
25723 \begin_inset Newline newline
25724 \end_inset
25725
25726 The size of the images can be controlled by setting the 
25727 \begin_inset Quotes eld
25728 \end_inset
25729
25730 Math Images Scaling
25731 \begin_inset Quotes erd
25732 \end_inset
25733
25734  parameter under 
25735 \begin_inset Flex Noun
25736 status collapsed
25737
25738 \begin_layout Plain Layout
25739 Document\SpecialChar menuseparator
25740 Settings\SpecialChar menuseparator
25741 Formats
25742 \end_layout
25743
25744 \end_inset
25745
25746 .
25747 \begin_inset Foot
25748 status collapsed
25749
25750 \begin_layout Plain Layout
25751 For those who want to know, this controls the resolution of the image in
25752  dots per inch and is based upon a default of 75 dpi.
25753 \end_layout
25754
25755 \end_inset
25756
25757
25758 \begin_inset Newline newline
25759 \end_inset
25760
25761 If \SpecialChar LyX
25762  for some reason fails to create an image for a formula (e.g., if a required
25763  \SpecialChar LaTeX
25764  package is not installed), then it will fall back to outputing the raw
25765  \SpecialChar LaTeX
25766 .
25767 \end_layout
25768
25769 \begin_layout Itemize
25770 \SpecialChar LaTeX
25771
25772 \begin_inset Newline newline
25773 \end_inset
25774
25775 Finally, \SpecialChar LyX
25776  will happily output math as \SpecialChar LaTeX
25777 .
25778  As well as being the output of last resort, this method can be used with
25779  such tools as 
25780 \begin_inset CommandInset href
25781 LatexCommand href
25782 name "jsMath"
25783 target "http://www.math.union.edu/~dpvc/jsMath/"
25784 literal "false"
25785
25786 \end_inset
25787
25788 , which uses JavaScript to render \SpecialChar LaTeX
25789  embedded in HTML documents.
25790  \SpecialChar LyX
25791  wraps the \SpecialChar LaTeX
25792  in either a 
25793 \begin_inset Flex Code
25794 status collapsed
25795
25796 \begin_layout Plain Layout
25797 span
25798 \end_layout
25799
25800 \end_inset
25801
25802  (for inline formulas) or 
25803 \begin_inset Flex Code
25804 status collapsed
25805
25806 \begin_layout Plain Layout
25807 div
25808 \end_layout
25809
25810 \end_inset
25811
25812  (for displayed formulas) with 
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 class='math'
25818 \end_layout
25819
25820 \end_inset
25821
25822 , as is required for jsMath.
25823 \end_layout
25824
25825 \begin_layout Standard
25826 One of these output methods must be selected under 
25827 \begin_inset Flex Noun
25828 status collapsed
25829
25830 \begin_layout Plain Layout
25831 Document\SpecialChar menuseparator
25832 Settings\SpecialChar menuseparator
25833 Formats
25834 \end_layout
25835
25836 \end_inset
25837
25838 .
25839  By default, \SpecialChar LyX
25840  outputs MathML.
25841  This is a document-wide setting, therefore.
25842 \end_layout
25843
25844 \begin_layout Standard
25845 Eventually, \SpecialChar LyX
25846  will offer the user the option to select an alternate output
25847  method for a particular inset, say, one that isn't being rendered very
25848  well by MathML.
25849 \begin_inset Foot
25850 status collapsed
25851
25852 \begin_layout Plain Layout
25853 That said, since \SpecialChar LyX
25854  falls back to images if the inset contains ERT, then one
25855  can force output as an image by putting some harmless ERT into the math,
25856  for example: 
25857 \begin_inset Formula $a=b\relax$
25858 \end_inset
25859
25860 .
25861 \end_layout
25862
25863 \end_inset
25864
25865
25866 \end_layout
25867
25868 \begin_layout Section
25869 Bibliography and Citations
25870 \end_layout
25871
25872 \begin_layout Standard
25873 XHTML output fully supports bibliographies and citations.
25874  
25875 \end_layout
25876
25877 \begin_layout Standard
25878 Citation labels are generated by the same machinery that generates \SpecialChar LyX
25879 's on-screen
25880  labels, so the labels will look in the output much as they do in \SpecialChar LyX
25881 , though
25882  better.
25883  If you are using numerical citations, then \SpecialChar LyX
25884  will output numerical labels,
25885  such as [1] or [17], rather than simply showing the citation key in square
25886  brackets, as it does on-screen.
25887  If you are using author-year citations, then \SpecialChar LyX
25888  will add lowercase letters
25889  to the years, just as Bib\SpecialChar TeX
25890  does, if it finds more than one citation for
25891  a given author-year combination.
25892  The labels will be printed with the bibliography entries.
25893  Note that there is, at present, no way to customize the appearance of the
25894  labels, for example, to choose between square brackets and parentheses.
25895 \end_layout
25896
25897 \begin_layout Standard
25898 Bibliography output is handled by the same machinery that handles the presentati
25899 on of reference information in the citation dialog, so you will see in the
25900  XHTML output pretty much what you would see if you were to look at a given
25901  entry in the citation dialog.
25902  The formatting can be customized in your layout file or, preferably, in
25903  a module.
25904  See the 
25905 \emph on
25906 Customization
25907 \emph default
25908  manual for the details.
25909 \end_layout
25910
25911 \begin_layout Standard
25912 The main defect at present is that cross-referenced information is printed
25913  with every entry with which it is associated.
25914  So you can see things like this:
25915 \end_layout
25916
25917 \begin_layout Quote
25918 Jason Stanley, 
25919 \begin_inset Quotes eld
25920 \end_inset
25921
25922 Context and Logical Form
25923 \begin_inset Quotes erd
25924 \end_inset
25925
25926 , in 
25927 \emph on
25928 Language in Context: Selected Essays
25929 \emph default
25930  (Oxford: Oxford University Press, 2007), pp.
25931  30–68.
25932 \end_layout
25933
25934 \begin_layout Quote
25935 Jason Stanley, 
25936 \begin_inset Quotes eld
25937 \end_inset
25938
25939 Semantics in Context
25940 \begin_inset Quotes erd
25941 \end_inset
25942
25943 , in 
25944 \emph on
25945 Language in Context: Selected Essays
25946 \emph default
25947  (Oxford: Oxford University Press, 2007), pp.
25948  201–30.
25949 \end_layout
25950
25951 \begin_layout Standard
25952 This should be fixed before long.
25953 \end_layout
25954
25955 \begin_layout Standard
25956 There is no support at present for sectioned bibliographies.
25957  If you have multiple bibliographies, then \SpecialChar LyX
25958  will print the same bibliography
25959  over and over.
25960 \end_layout
25961
25962 \begin_layout Section
25963 Indexes
25964 \end_layout
25965
25966 \begin_layout Standard
25967 \SpecialChar LyX
25968  will happily export indexes as XHTML, but with certain limitations at the
25969  moment.
25970 \end_layout
25971
25972 \begin_layout Standard
25973 Index export will be most reliable when you do not attempt to use the fancy
25974  constructs that are described in the section on indexes in the 
25975 \emph on
25976 User's Guide
25977 \emph default
25978 .
25979 \begin_inset Foot
25980 status collapsed
25981
25982 \begin_layout Plain Layout
25983 The main issue here is that \SpecialChar LyX
25984  itself does not really handle these.
25985  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
25986 .
25987 \end_layout
25988
25989 \end_inset
25990
25991  We'll describe how they are handled using the subsection headings from
25992  that section.
25993 \end_layout
25994
25995 \begin_layout Itemize
25996 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
25997  makes an effort to support these,
25998  but the entries must be separated by 
25999 \begin_inset Quotes eld
26000 \end_inset
26001
26002  ! 
26003 \begin_inset Quotes erd
26004 \end_inset
26005
26006 , that is, there must be spaces around the exclamation point.
26007  This is because it is otherwise too difficult to check for escaped exclamation
26008  points, ones in math, and so forth.
26009 \end_layout
26010
26011 \begin_layout Itemize
26012 Page Ranges: There is no support at all for page ranges, since these make
26013  no sense with XHMTL.
26014  Instead, you will just get two index entries, one at either end.
26015 \end_layout
26016
26017 \begin_layout Itemize
26018 Cross-referencing: There is no support for cross-referencing.
26019  If \SpecialChar LyX
26020  finds an entry containing the 
26021 \begin_inset Quotes eld
26022 \end_inset
26023
26024 |see\SpecialChar ldots
26025
26026 \begin_inset Quotes erd
26027 \end_inset
26028
26029  construct, it is just dropped, and the rest is treated as an ordinary index
26030  entry.
26031 \end_layout
26032
26033 \begin_layout Itemize
26034 Index Entry Order: \SpecialChar LyX
26035  does support attempts to fix the sorting order.
26036  It will take what is before the first `@' it finds and use that for sorting,
26037  taking what follows the first `@' to be the actual entry.
26038  At present, \SpecialChar LyX
26039  does not check for escaped `@', so do not try to index email
26040  addresses.
26041 \end_layout
26042
26043 \begin_layout Itemize
26044 Index Entry Layout: You can format entries by using the text style dialog,
26045  or by using any other method available within \SpecialChar LyX
26046  itself.
26047  There is no support for constructs like: 
26048 \begin_inset Quotes eld
26049 \end_inset
26050
26051 entry|textbf
26052 \begin_inset Quotes erd
26053 \end_inset
26054
26055 .
26056  Indeed, if \SpecialChar LyX
26057  finds a pipe symbol, `|', in an entry, it will delete it and
26058  everything that follows it.
26059 \end_layout
26060
26061 \begin_layout Itemize
26062 Multiple Indexes: There is no support for multiple indexes.
26063  Rather, all index entries will be printed as one large index.
26064  To avoid our printing several versions of the index, we print only the
26065  main index, so make sure you have one.
26066 \end_layout
26067
26068 \begin_layout Section
26069 Nomenclature and Glossary
26070 \end_layout
26071
26072 \begin_layout Standard
26073 There is at present no support for glossaries.
26074  Adding it would be fairly trivial, and welcome.
26075 \end_layout
26076
26077 \begin_layout Chapter
26078
26079 \change_inserted 1075283030 1616534180
26080 DocBook Output
26081 \end_layout
26082
26083 \begin_layout Standard
26084
26085 \change_inserted 1075283030 1616534386
26086 Apart from HTML, \SpecialChar LyX
26087  can generate documents in the DocBook XML vocabulary.
26088  With versions 2.3 and before, only select templates could be used to generate
26089  DocBook documents (only version 4).
26090  Starting with \SpecialChar LyX
26091  2.4, most \SpecialChar LyX
26092  layouts can generate valid DocBook documents (only
26093  version 5).
26094  This feature is built into \SpecialChar LyX
26095  and does not require the use of external tools.
26096 \end_layout
26097
26098 \begin_layout Standard
26099
26100 \change_inserted 1075283030 1616534437
26101 The result is that the DocBook output can be customized and extended in
26102  exactly the same way \SpecialChar LaTeX
26103  output can be customized and extended: through layout
26104  files and modules.
26105  See chapter five of the 
26106 \emph on
26107 Customization 
26108 \emph default
26109 manual for the details.
26110 \end_layout
26111
26112 \begin_layout Standard
26113
26114 \change_inserted 1075283030 1616534475
26115 Most \SpecialChar LyX
26116  features are supported with DocBook, like math output.
26117 \end_layout
26118
26119 \begin_layout Itemize
26120
26121 \change_inserted 1075283030 1616534741
26122 Math output is performed mostly in MathML (the major exception being constructio
26123 ns not supported by \SpecialChar LyX
26124 , i.e.
26125  ERTs).
26126  All formulae are also available in raw \SpecialChar TeX
26127  in the DocBook output for further
26128  processing.
26129 \end_layout
26130
26131 \begin_layout Itemize
26132
26133 \change_inserted 1075283030 1616534852
26134 Bibliographies and citations are implemented, including with an external
26135  BibTeX file.
26136  Bibliography entries are not prerendered when the detailed information
26137  are available, but rather output with the standard DocBook constructs.
26138  The external DocBook processor is expected to handle the rendering of entries.
26139 \end_layout
26140
26141 \begin_layout Itemize
26142
26143 \change_inserted 1075283030 1616534863
26144 Indexes are supported, including multiple indices.
26145  Grouping (with 
26146 \family typewriter
26147 !
26148 \family default
26149 ), page ranges, and cross-references (
26150 \family typewriter
26151 |see
26152 \family default
26153 ) are supported, with the exception of the same symbols escaped.
26154  Entry order (
26155 \family typewriter
26156 @
26157 \family default
26158 ) and layout (
26159 \family typewriter
26160 |mathbf
26161 \family default
26162 ) are not supported.
26163  There is no support for escaping of index entries.
26164 \end_layout
26165
26166 \begin_layout Itemize
26167
26168 \change_inserted 1075283030 1616534884
26169 Glossaries are implemented.
26170 \end_layout
26171
26172 \begin_layout Standard
26173
26174 \change_inserted 1075283030 1616534894
26175 Two major parameters can be set at the document level.
26176 \end_layout
26177
26178 \begin_layout Itemize
26179
26180 \change_inserted 1075283030 1616534948
26181 Format for tables: \SpecialChar LyX
26182  can generate tables either as HTML (default value) or
26183  CALS, depending on the user's requirements.
26184  Most DocBook processors accept both formats.
26185 \end_layout
26186
26187 \begin_layout Itemize
26188
26189 \change_inserted 1075283030 1616535006
26190 MathML prefix: in DocBook, MathML is included within its own name space,
26191  unlike HTML.
26192  The implication is that there must be an indication of the tags belonging
26193  to the MathML standard.
26194  Three choices are offered: 
26195 \end_layout
26196
26197 \begin_deeper
26198 \begin_layout Itemize
26199
26200 \change_inserted 1075283030 1616535044
26201 Inline: the MathML name space is defined for each formula (using the 
26202 \family typewriter
26203 xmlns
26204 \family default
26205  attribute on each formula)
26206 \end_layout
26207
26208 \begin_layout Itemize
26209
26210 \change_inserted 1075283030 1616535090
26211 With the 
26212 \family typewriter
26213 m
26214 \family default
26215  prefix (default): the MathML name space is defined at the document level
26216  (using the 
26217 \family typewriter
26218 xmlns:m
26219 \family default
26220  attribute on the root element).
26221  Each MathML is prefixed with 
26222 \family typewriter
26223 m
26224 \family default
26225 : for instance, 
26226 \family typewriter
26227 m:math
26228 \end_layout
26229
26230 \begin_layout Itemize
26231
26232 \change_inserted 1075283030 1616620405
26233 With the 
26234 \family typewriter
26235 mml
26236 \family default
26237  prefix: similar to the 
26238 \family typewriter
26239 m
26240 \family default
26241  option, but with 
26242 \family typewriter
26243 mml
26244 \end_layout
26245
26246 \begin_layout Standard
26247
26248 \change_inserted 1075283030 1616620470
26249 This option is especially useful if you want \SpecialChar LyX
26250  to match your personal style
26251  or to work with buggy software that only accepts one prefix for MathML.
26252 \change_unchanged
26253
26254 \end_layout
26255
26256 \end_deeper
26257 \begin_layout Chapter
26258 The \SpecialChar LyX
26259  Server
26260 \end_layout
26261
26262 \begin_layout Section
26263 Introduction
26264 \end_layout
26265
26266 \begin_layout Standard
26267 The `\SpecialChar LyX
26268  server' allows other programs to talk to \SpecialChar LyX
26269 , invoke \SpecialChar LyX
26270  commands, and retrieve
26271  information about the \SpecialChar LyX
26272  internal state.
26273  This is only intended for advanced users, but they should find it useful.
26274  It is by writing to the \SpecialChar LyX
26275  server, for example, that bibliography managers,
26276  such as JabRef, are able to 
26277 \begin_inset Quotes eld
26278 \end_inset
26279
26280 push
26281 \begin_inset Quotes erd
26282 \end_inset
26283
26284  citations to \SpecialChar LyX
26285 .
26286 \end_layout
26287
26288 \begin_layout Section
26289 Starting the \SpecialChar LyX
26290  Server
26291 \begin_inset CommandInset label
26292 LatexCommand label
26293 name "sec:Starting-the-Server"
26294
26295 \end_inset
26296
26297
26298 \end_layout
26299
26300 \begin_layout Standard
26301 The \SpecialChar LyX
26302  server works through the use of a pair of named pipes.
26303  These are usually located in 
26304 \begin_inset Flex Code
26305 status collapsed
26306
26307 \begin_layout Plain Layout
26308 UserDir
26309 \end_layout
26310
26311 \end_inset
26312
26313 , (except on Windows, where 
26314 \emph on
26315 local
26316 \emph default
26317  named pipes are special objects located in 
26318 \begin_inset Flex Code
26319 status collapsed
26320
26321 \begin_layout Plain Layout
26322
26323 \backslash
26324
26325 \backslash
26326 .
26327 \backslash
26328 pipe
26329 \end_layout
26330
26331 \end_inset
26332
26333 ) and have the names 
26334 \begin_inset Quotes eld
26335 \end_inset
26336
26337
26338 \begin_inset Flex Code
26339 status collapsed
26340
26341 \begin_layout Plain Layout
26342 lyxpipe.in
26343 \end_layout
26344
26345 \end_inset
26346
26347
26348 \begin_inset Quotes erd
26349 \end_inset
26350
26351  and 
26352 \begin_inset Quotes eld
26353 \end_inset
26354
26355
26356 \begin_inset Flex Code
26357 status collapsed
26358
26359 \begin_layout Plain Layout
26360 lyxpipe.out
26361 \end_layout
26362
26363 \end_inset
26364
26365
26366 \begin_inset Quotes erd
26367 \end_inset
26368
26369 .
26370  External programs write into 
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375 lyxpipe.in
26376 \end_layout
26377
26378 \end_inset
26379
26380  and read back data from 
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 lyxpipe.out
26386 \end_layout
26387
26388 \end_inset
26389
26390 .
26391  The stem of the pipe names can be defined in the 
26392 \begin_inset Flex Noun
26393 status collapsed
26394
26395 \begin_layout Plain Layout
26396 Tools\SpecialChar menuseparator
26397 Preferences
26398 \end_layout
26399
26400 \end_inset
26401
26402  dialog, for example 
26403 \begin_inset Flex Code
26404 status collapsed
26405
26406 \begin_layout Plain Layout
26407 "/home/myhome/lyxpipe"
26408 \end_layout
26409
26410 \end_inset
26411
26412 , or 
26413 \begin_inset Flex Code
26414 status collapsed
26415
26416 \begin_layout Plain Layout
26417 "
26418 \backslash
26419
26420 \backslash
26421 .
26422 \backslash
26423 pipe
26424 \backslash
26425 lyxpipe"
26426 \end_layout
26427
26428 \end_inset
26429
26430  on Windows (where any working path instead of lyxpipe can be used, for
26431  example 
26432 \begin_inset Flex Code
26433 status collapsed
26434
26435 \begin_layout Plain Layout
26436 "
26437 \backslash
26438
26439 \backslash
26440 .
26441 \backslash
26442 pipe
26443 \backslash
26444 my
26445 \backslash
26446 lyx
26447 \backslash
26448 pipe"
26449 \end_layout
26450
26451 \end_inset
26452
26453  would also work).
26454  You 
26455 \emph on
26456 must
26457 \emph default
26458  configure this manually in order for the server to start.
26459 \end_layout
26460
26461 \begin_layout Standard
26462 \SpecialChar LyX
26463  will add the '
26464 \begin_inset Flex Code
26465 status collapsed
26466
26467 \begin_layout Plain Layout
26468 .in
26469 \end_layout
26470
26471 \end_inset
26472
26473 ' and '
26474 \begin_inset Flex Code
26475 status collapsed
26476
26477 \begin_layout Plain Layout
26478 .out
26479 \end_layout
26480
26481 \end_inset
26482
26483 ' to create the pipes.
26484  If one of the pipes already exists, \SpecialChar LyX
26485  will assume that another \SpecialChar LyX
26486  process
26487  is already running and will not start the server.
26488  On POSIX (Unix like) systems, if for some other reason, an unused 
26489 \begin_inset Quotes eld
26490 \end_inset
26491
26492 stale
26493 \begin_inset Quotes erd
26494 \end_inset
26495
26496  pipe is left in existence when \SpecialChar LyX
26497  closes, then \SpecialChar LyX
26498  will try to delete it.
26499  If this fails for some reason, you will need to delete the pipes manually
26500  and then restart \SpecialChar LyX
26501 .
26502  On Windows, pipes are deleted by the OS on program termination or crash,
26503  so 
26504 \begin_inset Quotes eld
26505 \end_inset
26506
26507 stale
26508 \begin_inset Quotes erd
26509 \end_inset
26510
26511  pipes should not be possible.
26512 \end_layout
26513
26514 \begin_layout Standard
26515 To have several \SpecialChar LyX
26516  processes with servers at the same time, you have to use
26517  different configurations, perhaps by using separate user directories, each
26518  with its own 
26519 \begin_inset Flex Code
26520 status collapsed
26521
26522 \begin_layout Plain Layout
26523 preferences
26524 \end_layout
26525
26526 \end_inset
26527
26528  file, for each process.
26529 \end_layout
26530
26531 \begin_layout Standard
26532 If you are developing a client program, you might find it useful to enable
26533  debugging information from the \SpecialChar LyX
26534  server.
26535  Do this by starting \SpecialChar LyX
26536  as 
26537 \begin_inset Flex Code
26538 status collapsed
26539
26540 \begin_layout Plain Layout
26541 lyx -dbg lyxserver
26542 \end_layout
26543
26544 \end_inset
26545
26546 .
26547 \end_layout
26548
26549 \begin_layout Standard
26550 You can find a complete example client written in C++ in the source distribution
26551  as 
26552 \begin_inset Flex Code
26553 status collapsed
26554
26555 \begin_layout Plain Layout
26556 development/lyxserver/server_monitor.cpp
26557 \end_layout
26558
26559 \end_inset
26560
26561 .
26562 \end_layout
26563
26564 \begin_layout Standard
26565 Another useful tool is the command-line based client found in 
26566 \begin_inset Flex Code
26567 status collapsed
26568
26569 \begin_layout Plain Layout
26570 src/client/lyxclient
26571 \end_layout
26572
26573 \end_inset
26574
26575 .
26576 \end_layout
26577
26578 \begin_layout Section
26579 Normal communication
26580 \end_layout
26581
26582 \begin_layout Standard
26583 To issue a \SpecialChar LyX
26584  call, the client writes a line of ASCII text into the input
26585  pipe.
26586  This line has the following format:
26587 \end_layout
26588
26589 \begin_layout Quote
26590 LYXCMD:
26591 \emph on
26592 clientname
26593 \emph default
26594 :
26595 \emph on
26596 function
26597 \emph default
26598 :
26599 \emph on
26600 argument
26601 \end_layout
26602
26603 \begin_layout Description
26604 clientname is a name that the client can choose arbitrarily.
26605  Its only use is that \SpecialChar LyX
26606  will echo it if it sends an answer—so a client can
26607  dispatch results from different requesters.
26608 \end_layout
26609
26610 \begin_layout Description
26611 function is the function you want \SpecialChar LyX
26612  to perform.
26613  It is the same as the commands you'd use in the minibuffer.
26614 \end_layout
26615
26616 \begin_layout Description
26617 argument is an optional argument which is meaningful only to some functions
26618  (for instance, the 
26619 \begin_inset Quotes eld
26620 \end_inset
26621
26622 self-insert
26623 \begin_inset Quotes erd
26624 \end_inset
26625
26626  LFUN will insert the argument as text at the cursor position).
26627 \end_layout
26628
26629 \begin_layout Standard
26630 The answer from \SpecialChar LyX
26631  will arrive in the output pipe and be of the form
26632 \end_layout
26633
26634 \begin_layout Quote
26635 INFO:
26636 \emph on
26637 clientname
26638 \emph default
26639 :
26640 \emph on
26641 function
26642 \emph default
26643 :
26644 \emph on
26645 data
26646 \end_layout
26647
26648 \begin_layout Standard
26649 where 
26650 \emph on
26651 clientname
26652 \emph default
26653  and 
26654 \emph on
26655 function
26656 \emph default
26657  are just echoed from the command request, while 
26658 \emph on
26659 data
26660 \emph default
26661  is more or less useful information filled according to how the command
26662  execution worked out.
26663  Some commands, such as 
26664 \begin_inset Quotes eld
26665 \end_inset
26666
26667 font-state
26668 \begin_inset Quotes erd
26669 \end_inset
26670
26671 , will return information about the internal state of \SpecialChar LyX
26672 , while other will
26673  return an empty data-response.
26674  This means that the command execution went fine.
26675 \end_layout
26676
26677 \begin_layout Standard
26678 In case of errors, the response from \SpecialChar LyX
26679  will have this form
26680 \end_layout
26681
26682 \begin_layout Quote
26683 ERROR:
26684 \emph on
26685 clientname
26686 \emph default
26687 :
26688 \emph on
26689 function
26690 \emph default
26691 :
26692 \emph on
26693 error message
26694 \end_layout
26695
26696 \begin_layout Standard
26697 where the 
26698 \emph on
26699 error message
26700 \emph default
26701  should contain an explanation of why the command failed.
26702 \end_layout
26703
26704 \begin_layout Standard
26705 Examples:
26706 \end_layout
26707
26708 \begin_layout LyX-Code
26709 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
26710 \begin_inset Newline newline
26711 \end_inset
26712
26713 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
26714 \begin_inset Newline newline
26715 \end_inset
26716
26717 read a <~/.lyxpipe.out
26718 \begin_inset Newline newline
26719 \end_inset
26720
26721 echo $a
26722 \end_layout
26723
26724 \begin_layout Subsection
26725 AppleScript (Mac OS X)
26726 \end_layout
26727
26728 \begin_layout Standard
26729 Since \SpecialChar LyX
26730  2.1, \SpecialChar LyX
26731  supports basic interactions with AppleScript for normal communicatio
26732 n through the command run.
26733  This command takes a direct argument (the 
26734 \series bold
26735 function
26736 \series default
26737  to perform) and an optional argument.
26738  It either returns the output of the function or triggers an error with
26739  the error message and code.
26740 \end_layout
26741
26742 \begin_layout Standard
26743 Example:
26744 \end_layout
26745
26746 \begin_layout LyX-Code
26747 tell application "\SpecialChar LyX
26748 "
26749 \end_layout
26750
26751 \begin_layout LyX-Code
26752   try
26753 \end_layout
26754
26755 \begin_layout LyX-Code
26756     -- Stores the current file name into f
26757 \end_layout
26758
26759 \begin_layout LyX-Code
26760     set f to (run "server-get-filename" with argument "")
26761 \end_layout
26762
26763 \begin_layout LyX-Code
26764     on error the error_message number the error_number
26765 \end_layout
26766
26767 \begin_layout LyX-Code
26768       display dialog "Error: " & the error_number & ".
26769  " ¬
26770 \end_layout
26771
26772 \begin_layout LyX-Code
26773               & the error_message buttons {"OK"} default button 1
26774 \end_layout
26775
26776 \begin_layout LyX-Code
26777   end try
26778 \end_layout
26779
26780 \begin_layout LyX-Code
26781 end tell
26782 \end_layout
26783
26784 \begin_layout Section
26785 Notification
26786 \end_layout
26787
26788 \begin_layout Standard
26789 \SpecialChar LyX
26790  can notify clients of events going on asynchronously.
26791  Currently it will only do this if the user binds a key sequence with the
26792  function 
26793 \begin_inset Quotes eld
26794 \end_inset
26795
26796 notify
26797 \begin_inset Quotes erd
26798 \end_inset
26799
26800 .
26801  The format of the string \SpecialChar LyX
26802  sends is as follows:
26803 \end_layout
26804
26805 \begin_layout Quote
26806 \begin_inset Flex Code
26807 status collapsed
26808
26809 \begin_layout Plain Layout
26810 NOTIFY:
26811 \end_layout
26812
26813 \end_inset
26814
26815
26816 \emph on
26817 key-sequence
26818 \end_layout
26819
26820 \begin_layout Standard
26821 where 
26822 \emph on
26823 key-sequence
26824 \emph default
26825  is the printed representation of the key sequence that was actually typed
26826  by the user.
26827 \end_layout
26828
26829 \begin_layout Standard
26830 This mechanism can be used to extend \SpecialChar LyX
26831 's command set and implement macros.
26832  Bind some key sequence to 
26833 \begin_inset Quotes eld
26834 \end_inset
26835
26836 notify
26837 \begin_inset Quotes erd
26838 \end_inset
26839
26840 .
26841  Then start a client that listens on the output pipe, dispatches the command
26842  according to the sequence, and starts a function that may use \SpecialChar LyX
26843  calls and
26844  \SpecialChar LyX
26845  requests to issue a command or a series of commands to \SpecialChar LyX
26846 .
26847 \end_layout
26848
26849 \begin_layout Section
26850 The simple \SpecialChar LyX
26851  Server Protocol
26852 \end_layout
26853
26854 \begin_layout Standard
26855 \SpecialChar LyX
26856  implements a simple protocol that can be used for session management.
26857  All messages are of the form
26858 \end_layout
26859
26860 \begin_layout Quote
26861 LYXSRV:
26862 \emph on
26863 clientname
26864 \emph default
26865 :
26866 \emph on
26867 protocol message
26868 \end_layout
26869
26870 \begin_layout Standard
26871 where 
26872 \emph on
26873 protocol message
26874 \emph default
26875  can be 
26876 \begin_inset Quotes eld
26877 \end_inset
26878
26879 hello
26880 \begin_inset Quotes erd
26881 \end_inset
26882
26883  or 
26884 \begin_inset Quotes eld
26885 \end_inset
26886
26887 bye
26888 \begin_inset Quotes erd
26889 \end_inset
26890
26891 .
26892  If 
26893 \begin_inset Quotes eld
26894 \end_inset
26895
26896 hello
26897 \begin_inset Quotes erd
26898 \end_inset
26899
26900  is received from a client, \SpecialChar LyX
26901  will report back to inform the client that
26902  it's listening to it's messages, while 
26903 \begin_inset Quotes eld
26904 \end_inset
26905
26906 bye
26907 \begin_inset Quotes erd
26908 \end_inset
26909
26910  sent from \SpecialChar LyX
26911  will inform clients that \SpecialChar LyX
26912  is closing.
26913 \end_layout
26914
26915 \begin_layout Section
26916 Reverse DVI/PDF search
26917 \end_layout
26918
26919 \begin_layout Standard
26920 Some DVI/PDF viewers
26921 \begin_inset Foot
26922 status collapsed
26923
26924 \begin_layout Plain Layout
26925 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
26926  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
26927 \end_layout
26928
26929 \end_inset
26930
26931  provide 
26932 \emph on
26933 reverse search
26934 \emph default
26935  facility (also called 
26936 \emph on
26937 inverse search
26938 \emph default
26939 ).
26940  This means that you can tell \SpecialChar LyX
26941  to put the cursor to a specific line in the
26942  document by clicking at the respective position in the DVI/PDF output.
26943  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
26944 .
26945  This is done via the \SpecialChar LyX
26946  server either by using the named pipe (
26947 \emph on
26948 lyxpipe
26949 \emph default
26950 ), or the UNIX domain socket (
26951 \emph on
26952 lyxsocket
26953 \emph default
26954 ) that \SpecialChar LyX
26955  creates in its temporary directory (this is the way the 
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960 lyxclient
26961 \end_layout
26962
26963 \end_inset
26964
26965  program communicates with \SpecialChar LyX
26966 ).
26967  In some cases, you need a helper script that mediates between the viewer
26968  and \SpecialChar LyX
26969 , in others, the viewer can communicate with \SpecialChar LyX
26970  directly.
26971  This depends on the selected viewer and on your operating system.
26972  The same applies to the way viewers need to be configured and the way the
26973  reverse search is actually performed.
26974  In what follows, we will thus describe how to setup reverse search for
26975  specific viewers.
26976  Before we turn to this, though, we will explain what needs to be done generally
26977  to enable reverse search in the DVI/PDF output.
26978 \end_layout
26979
26980 \begin_layout Subsection
26981 Automatic setup
26982 \begin_inset CommandInset label
26983 LatexCommand label
26984 name "subsec:rev-search"
26985
26986 \end_inset
26987
26988
26989 \end_layout
26990
26991 \begin_layout Standard
26992 In most cases \SpecialChar LyX
26993  will do the work for you by pressing the following button
26994  in the toolbar: 
26995 \begin_inset Info
26996 type  "icon"
26997 arg   "buffer-toggle-output-sync"
26998 \end_inset
26999
27000 .
27001  Alternatively, you can also enable the feature by checking 
27002 \family sans
27003 Synchronize with Output
27004 \family default
27005  in 
27006 \begin_inset Flex Noun
27007 status collapsed
27008
27009 \begin_layout Plain Layout
27010 Document\SpecialChar menuseparator
27011 Settings\SpecialChar menuseparator
27012 Formats
27013 \end_layout
27014
27015 \end_inset
27016
27017 .
27018  In such a case \SpecialChar LyX
27019  will automatically insert the necessary Sync\SpecialChar TeX
27020  macro (for
27021  PDF) or load the srcltx package (for DVI) respectively.
27022  This option can be easily reached also on 
27023 \begin_inset Flex Code
27024 status collapsed
27025
27026 \begin_layout Plain Layout
27027 View/Update
27028 \end_layout
27029
27030 \end_inset
27031
27032  Toolbar.
27033 \end_layout
27034
27035 \begin_layout Standard
27036 If you need a different setting, you can select or input a custom macro
27037  from the drop down box just below 
27038 \begin_inset Flex Noun
27039 status collapsed
27040
27041 \begin_layout Plain Layout
27042 Document\SpecialChar menuseparator
27043 Settings\SpecialChar menuseparator
27044 Output\SpecialChar menuseparator
27045 Synchronize with Output
27046 \end_layout
27047
27048 \end_inset
27049
27050 .
27051 \end_layout
27052
27053 \begin_layout Standard
27054 Note that the method 
27055 \begin_inset Flex Code
27056 status collapsed
27057
27058 \begin_layout Plain Layout
27059
27060 \backslash
27061 synctex=1
27062 \end_layout
27063
27064 \end_inset
27065
27066  enables gzip compression.
27067  If your viewer does not support it, you should instead use 
27068 \begin_inset Flex Code
27069 status collapsed
27070
27071 \begin_layout Plain Layout
27072
27073 \backslash
27074 synctex=-1
27075 \end_layout
27076
27077 \end_inset
27078
27079 .
27080 \end_layout
27081
27082 \begin_layout Standard
27083 Please also note that including the 
27084 \begin_inset Flex Code
27085 status collapsed
27086
27087 \begin_layout Plain Layout
27088 srcltx
27089 \end_layout
27090
27091 \end_inset
27092
27093  package or 
27094 \begin_inset Flex Code
27095 status collapsed
27096
27097 \begin_layout Plain Layout
27098 src-specials
27099 \end_layout
27100
27101 \end_inset
27102
27103  sometimes has an undesired impact on the typesetting.
27104  Thus, you should switch output synchronization off for the final typesetting
27105  if you use the 
27106 \begin_inset Flex Code
27107 status collapsed
27108
27109 \begin_layout Plain Layout
27110 srcltx
27111 \end_layout
27112
27113 \end_inset
27114
27115  package or 
27116 \begin_inset Flex Code
27117 status collapsed
27118
27119 \begin_layout Plain Layout
27120 src-specials
27121 \end_layout
27122
27123 \end_inset
27124
27125 .
27126  
27127 \end_layout
27128
27129 \begin_layout Standard
27130 In case you need some more special settings that are not covered by the
27131  automatic settings, read the next section about how to set up output synchroniz
27132 ation manually.
27133  If the automatic setup suits your needs, you can readily jump to section
27134 \begin_inset space ~
27135 \end_inset
27136
27137
27138 \begin_inset CommandInset ref
27139 LatexCommand ref
27140 reference "subsec:configuring-viewers"
27141
27142 \end_inset
27143
27144 , where the necessary configuration steps in your viewer – needed both with
27145  the automatic and the manual setup – are described.
27146 \end_layout
27147
27148 \begin_layout Subsection
27149 Manual setup
27150 \end_layout
27151
27152 \begin_layout Standard
27153 \SpecialChar LaTeX
27154  provides several different methods for reverse search.
27155  Some are built-in in the 
27156 \begin_inset Flex Code
27157 status collapsed
27158
27159 \begin_layout Plain Layout
27160 latex/pdflatex
27161 \end_layout
27162
27163 \end_inset
27164
27165  program, some are provided by external packages.
27166  Your choice depends on whether your \SpecialChar LaTeX
27167  distribution already provides a given
27168  method (the built-in methods are rather new) and whether your viewer can
27169  cope with it.
27170  The available methods are described in the following.
27171 \end_layout
27172
27173 \begin_layout Subsubsection*
27174 Built-in DVI-search via src-specials (DVI only) 
27175 \end_layout
27176
27177 \begin_layout Standard
27178 This method provides the DVI file with the necessary information for reverse
27179  search.
27180  It is available in \SpecialChar LaTeX
27181  since quite some time (any somewhat recent \SpecialChar LaTeX
27182  distribution
27183  should include it), and it works reliably.
27184  To enable it, change the 
27185 \begin_inset Flex Noun
27186 status collapsed
27187
27188 \begin_layout Plain Layout
27189 La
27190 \family sans
27191 TeX
27192 \family default
27193  (plain)->DVI
27194 \end_layout
27195
27196 \end_inset
27197
27198  or 
27199 \begin_inset Flex Noun
27200 status collapsed
27201
27202 \begin_layout Plain Layout
27203 La
27204 \family sans
27205 TeX
27206 \family default
27207  (plain)->DraftDVI
27208 \end_layout
27209
27210 \end_inset
27211
27212  converter in 
27213 \begin_inset Flex Noun
27214 status collapsed
27215
27216 \begin_layout Plain Layout
27217 Preferences\SpecialChar menuseparator
27218 File Handling\SpecialChar menuseparator
27219 Converters
27220 \end_layout
27221
27222 \end_inset
27223
27224  to 
27225 \begin_inset Flex Code
27226 status collapsed
27227
27228 \begin_layout Plain Layout
27229 latex -src-specials $$i
27230 \end_layout
27231
27232 \end_inset
27233
27234 .
27235  If this doesn't work, check if your \SpecialChar TeX
27236  engine needs different options (the
27237  syntax might differ in some distributions).
27238 \end_layout
27239
27240 \begin_layout Subsubsection*
27241 External Packages (PDFSync and scrltx) 
27242 \end_layout
27243
27244 \begin_layout Standard
27245 The packages 
27246 \emph on
27247 pdfsync
27248 \emph default
27249  and 
27250 \emph on
27251 scrltx
27252 \emph default
27253  provide reverse search facility for PDF output (via pdflatex) and DVI output,
27254  respectively.
27255  In order to enable it, load the packages in the \SpecialChar LyX
27256  preamble: 
27257 \end_layout
27258
27259 \begin_layout Itemize
27260 \begin_inset Flex Code
27261 status collapsed
27262
27263 \begin_layout Plain Layout
27264
27265 \backslash
27266 usepackage{pdfsync}
27267 \end_layout
27268
27269 \end_inset
27270
27271  for reverse PDF search,
27272 \end_layout
27273
27274 \begin_layout Itemize
27275 \begin_inset Flex Code
27276 status collapsed
27277
27278 \begin_layout Plain Layout
27279
27280 \backslash
27281 usepackage[active]{srcltx}
27282 \end_layout
27283
27284 \end_inset
27285
27286  for reverse DVI search.
27287 \end_layout
27288
27289 \begin_layout Standard
27290 If you want to be able to perform both DVI and PDF reverse searches, you
27291  can also insert in the preamble the following lines
27292 \end_layout
27293
27294 \begin_layout LyX-Code
27295
27296 \backslash
27297 usepackage{ifpdf}
27298 \begin_inset Newline newline
27299 \end_inset
27300
27301
27302 \backslash
27303 ifpdf
27304 \begin_inset Newline newline
27305 \end_inset
27306
27307   
27308 \backslash
27309 usepackage{pdfsync}
27310 \begin_inset Newline newline
27311 \end_inset
27312
27313
27314 \backslash
27315 else
27316 \begin_inset Newline newline
27317 \end_inset
27318
27319   
27320 \backslash
27321 usepackage[active]{srcltx}
27322 \begin_inset Newline newline
27323 \end_inset
27324
27325
27326 \backslash
27327 fi
27328 \end_layout
27329
27330 \begin_layout Standard
27331 This way, you can preview the file as either DVI or PDF (pdflatex) and the
27332  right package will be used.
27333 \end_layout
27334
27335 \begin_layout Standard
27336 Note that PDFSync might affect the output layout of your document.
27337  It is therefore advised to disable PDFsync for final documents.
27338 \end_layout
27339
27340 \begin_layout Subsubsection*
27341 Built-in reverse search via Sync\SpecialChar TeX
27342  (DVI and PDF) 
27343 \end_layout
27344
27345 \begin_layout Standard
27346 Recent versions of 
27347 \begin_inset Flex Code
27348 status collapsed
27349
27350 \begin_layout Plain Layout
27351 (pdf)latex
27352 \end_layout
27353
27354 \end_inset
27355
27356  have built-in support for both PDF and DVI reverse search.
27357  This so-called 
27358 \emph on
27359 Sync\SpecialChar TeX
27360
27361 \emph default
27362  facility is basically the result of the integration of the PDFSync package
27363  to the pdftex program and its merge with the 
27364 \emph on
27365 scr-specials
27366 \emph default
27367  approach.
27368  You need at least \SpecialChar TeX
27369 Live 2008 or a recent Mik\SpecialChar TeX
27370  distribution in order to use
27371  it.
27372 \begin_inset Foot
27373 status collapsed
27374
27375 \begin_layout Plain Layout
27376 For some reason, Mik\SpecialChar TeX
27377  does not understand/obey the command \SpecialChar LyX
27378  inserts into
27379  the preamble when you check the "Enable Forward/Reverse Search" button
27380  in the toolbar and does not generate the necessary info.
27381 \end_layout
27382
27383 \begin_layout Plain Layout
27384 The generation of the required info can be forced by changing the converter
27385  "\SpecialChar LaTeX
27386  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
27387  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
27388  the -synctex=1 switch).
27389 \end_layout
27390
27391 \end_inset
27392
27393  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
27394  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
27395  already provide Sync\SpecialChar TeX
27396  support.
27397 \end_layout
27398
27399 \begin_layout Standard
27400 To enable Sync\SpecialChar TeX
27401  for DVI output, change the 
27402 \begin_inset Flex Noun
27403 status collapsed
27404
27405 \begin_layout Plain Layout
27406 La
27407 \family sans
27408 TeX
27409 \family default
27410  (plain) -> DVI
27411 \end_layout
27412
27413 \end_inset
27414
27415  or 
27416 \begin_inset Flex Noun
27417 status collapsed
27418
27419 \begin_layout Plain Layout
27420 La
27421 \family sans
27422 TeX
27423 \family default
27424  (plain) -> DraftDVI
27425 \end_layout
27426
27427 \end_inset
27428
27429  converter in 
27430 \begin_inset Flex Noun
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 Preferences\SpecialChar menuseparator
27435 File Handling\SpecialChar menuseparator
27436 Converters
27437 \end_layout
27438
27439 \end_inset
27440
27441  to 
27442 \begin_inset Flex Code
27443 status collapsed
27444
27445 \begin_layout Plain Layout
27446 latex -synctex=1 $$i
27447 \end_layout
27448
27449 \end_inset
27450
27451 , and for PDF output, change the 
27452 \begin_inset Flex Noun
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456 La
27457 \family sans
27458 TeX
27459 \family default
27460  (pdflatex) -> PDF (pdflatex)
27461 \end_layout
27462
27463 \end_inset
27464
27465  converter to 
27466 \begin_inset Flex Code
27467 status collapsed
27468
27469 \begin_layout Plain Layout
27470 pdflatex -synctex=1 $$i
27471 \end_layout
27472
27473 \end_inset
27474
27475 .
27476  Should your viewer not be considered in the following description, or in
27477  case of missing success, please check the documentation of your viewer
27478  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
27479 .
27480 \begin_inset Foot
27481 status collapsed
27482
27483 \begin_layout Plain Layout
27484 Note that the option 
27485 \begin_inset Flex Code
27486 status collapsed
27487
27488 \begin_layout Plain Layout
27489 -synctex=1
27490 \end_layout
27491
27492 \end_inset
27493
27494  option enables gzip compression.
27495  If your viewer does not support it, you should instead use 
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 -synctex=-1
27501 \end_layout
27502
27503 \end_inset
27504
27505 .
27506 \end_layout
27507
27508 \end_inset
27509
27510
27511 \end_layout
27512
27513 \begin_layout Subsection
27514 Configuring and using specific viewers
27515 \begin_inset CommandInset label
27516 LatexCommand label
27517 name "subsec:configuring-viewers"
27518
27519 \end_inset
27520
27521
27522 \end_layout
27523
27524 \begin_layout Subsubsection*
27525 Xdvi (all platforms)
27526 \end_layout
27527
27528 \begin_layout Standard
27529 If you use 
27530 \begin_inset Flex Code
27531 status collapsed
27532
27533 \begin_layout Plain Layout
27534 xdvi
27535 \end_layout
27536
27537 \end_inset
27538
27539 , you don't need to do anything else for performing a reverse DVI search,
27540  as \SpecialChar LyX
27541  already provides the necessary hooks for automatically using the 
27542 \begin_inset Flex Code
27543 status collapsed
27544
27545 \begin_layout Plain Layout
27546 lyxclient
27547 \end_layout
27548
27549 \end_inset
27550
27551  program.
27552  Just setup your document as described above (reverse search is triggered
27553  by Ctrl-click or Alt-click on Mac OSX, respectively).
27554 \end_layout
27555
27556 \begin_layout Standard
27557 However, if for whatever reason you want to use the named pipe instead of
27558  the socket for communicating with \SpecialChar LyX
27559 , simply change the DVI viewer in 
27560 \begin_inset Flex Noun
27561 status collapsed
27562
27563 \begin_layout Plain Layout
27564 Preferences\SpecialChar menuseparator
27565 File Handling\SpecialChar menuseparator
27566 File formats
27567 \end_layout
27568
27569 \end_inset
27570
27571  to
27572 \begin_inset Foot
27573 status collapsed
27574
27575 \begin_layout Plain Layout
27576 On Mac OSX you have to use 
27577 \begin_inset Flex Code
27578 status collapsed
27579
27580 \begin_layout Plain Layout
27581 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
27582 \end_layout
27583
27584 \end_inset
27585
27586
27587 \end_layout
27588
27589 \end_inset
27590
27591  
27592 \begin_inset Flex Code
27593 status collapsed
27594
27595 \begin_layout Plain Layout
27596 xdvi -editor "lyxeditor.sh %f %l"
27597 \end_layout
27598
27599 \end_inset
27600
27601 , where 
27602 \begin_inset Flex Code
27603 status collapsed
27604
27605 \begin_layout Plain Layout
27606 lyxeditor.sh
27607 \end_layout
27608
27609 \end_inset
27610
27611  is a suitable script.
27612  For example, a minimal shell script is the following one:
27613 \end_layout
27614
27615 \begin_layout LyX-Code
27616 #!/bin/sh
27617 \begin_inset Newline newline
27618 \end_inset
27619
27620 LYXPIPE="/path/to/lyxpipe"
27621 \begin_inset Newline newline
27622 \end_inset
27623
27624 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
27625 \begin_inset Newline newline
27626 \end_inset
27627
27628 echo "$COMMAND" > "${LYXPIPE}".in || exit
27629 \begin_inset Newline newline
27630 \end_inset
27631
27632 read TMP < "${LYXPIPE}".out || exit
27633 \end_layout
27634
27635 \begin_layout Standard
27636 where 
27637 \begin_inset Flex Code
27638 status collapsed
27639
27640 \begin_layout Plain Layout
27641 /path/to/lyxpipe
27642 \end_layout
27643
27644 \end_inset
27645
27646  is the LyXServer pipe path specified in 
27647 \begin_inset Flex Noun
27648 status collapsed
27649
27650 \begin_layout Plain Layout
27651 Preferences\SpecialChar menuseparator
27652 Paths
27653 \end_layout
27654
27655 \end_inset
27656
27657 .
27658 \begin_inset Foot
27659 status collapsed
27660
27661 \begin_layout Plain Layout
27662 In the 
27663 \begin_inset Flex Code
27664 status collapsed
27665
27666 \begin_layout Plain Layout
27667 development/tools
27668 \end_layout
27669
27670 \end_inset
27671
27672  folder of a source distribution you can find a 
27673 \begin_inset Flex Code
27674 status collapsed
27675
27676 \begin_layout Plain Layout
27677 lyxeditor
27678 \end_layout
27679
27680 \end_inset
27681
27682  script which is able to locate the 
27683 \emph on
27684 lyxpipe
27685 \emph default
27686  based on your preferences.
27687 \end_layout
27688
27689 \end_inset
27690
27691
27692 \end_layout
27693
27694 \begin_layout Subsubsection*
27695 MacDviX (Mac OSX)
27696 \end_layout
27697
27698 \begin_layout Standard
27699 At the end of 
27700 \begin_inset Flex Code
27701 status collapsed
27702
27703 \begin_layout Plain Layout
27704 /Applications/MacDviX_Folder/calleditor.script
27705 \end_layout
27706
27707 \end_inset
27708
27709 , add the following lines:
27710 \end_layout
27711
27712 \begin_layout LyX-Code
27713 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
27714 \begin_inset Newline newline
27715 \end_inset
27716
27717 exit 1
27718 \end_layout
27719
27720 \begin_layout Standard
27721 Modify the lines accordingly if you install \SpecialChar LyX
27722  somewhere else than in the
27723  Applications folder.
27724 \end_layout
27725
27726 \begin_layout Standard
27727 Reverse search is triggered by Alt-click (OPTION-click).
27728 \end_layout
27729
27730 \begin_layout Subsubsection*
27731 Skim (Mac OSX)
27732 \end_layout
27733
27734 \begin_layout Standard
27735 Enter 
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740 open -a Skim.app $$i
27741 \end_layout
27742
27743 \end_inset
27744
27745  to the viewer setting in 
27746 \begin_inset Flex Noun
27747 status collapsed
27748
27749 \begin_layout Plain Layout
27750 Preferences\SpecialChar menuseparator
27751 File Handling\SpecialChar menuseparator
27752 File formats\SpecialChar menuseparator
27753 PDF (pdflatex)
27754 \end_layout
27755
27756 \end_inset
27757
27758 , and then in 
27759 \begin_inset Flex Noun
27760 status collapsed
27761
27762 \begin_layout Plain Layout
27763 Skim\SpecialChar menuseparator
27764 Preferences\SpecialChar menuseparator
27765 Sync
27766 \end_layout
27767
27768 \end_inset
27769
27770  choose 
27771 \begin_inset Flex Noun
27772 status collapsed
27773
27774 \begin_layout Plain Layout
27775 custom
27776 \end_layout
27777
27778 \end_inset
27779
27780  preset and enter command 
27781 \begin_inset Flex Noun
27782 status collapsed
27783
27784 \begin_layout Plain Layout
27785 /Applications/\SpecialChar LyX
27786 .app/Contents/MacOS/lyxeditor
27787 \end_layout
27788
27789 \end_inset
27790
27791 .
27792 \end_layout
27793
27794 \begin_layout Standard
27795 Reverse search is triggered by COMMAND-SHIFT-click
27796 \end_layout
27797
27798 \begin_layout Subsubsection*
27799 Evince (GNOME)
27800 \end_layout
27801
27802 \begin_layout Standard
27803 Reverse search with evince does not work out of the box, but it can be achieved
27804  by means of some third party helper scripts.
27805  Please refer to 
27806 \begin_inset CommandInset href
27807 LatexCommand href
27808 target "https://wiki.lyx.org/LyX/SyncTeX"
27809 literal "false"
27810
27811 \end_inset
27812
27813  for details.
27814 \end_layout
27815
27816 \begin_layout Subsubsection*
27817 Okular (KDE)
27818 \end_layout
27819
27820 \begin_layout Standard
27821 Go to 
27822 \begin_inset Flex Noun
27823 status collapsed
27824
27825 \begin_layout Plain Layout
27826 Settings\SpecialChar menuseparator
27827 Configure Okular\SpecialChar menuseparator
27828 Editor
27829 \end_layout
27830
27831 \end_inset
27832
27833  and select LyX
27834 \begin_inset Quotes erd
27835 \end_inset
27836
27837  as editor.
27838  This inserts the appropriate command (
27839 \begin_inset Flex Code
27840 status collapsed
27841
27842 \begin_layout Plain Layout
27843 lyxclient -g %f %l
27844 \end_layout
27845
27846 \end_inset
27847
27848 ).
27849 \end_layout
27850
27851 \begin_layout Standard
27852 Reverse search is triggered by SHIFT-click.
27853
27854 \change_inserted -712698321 1578211026
27855  Note that this only works if Okular is in 
27856 \begin_inset Quotes eld
27857 \end_inset
27858
27859 Browse
27860 \begin_inset Quotes erd
27861 \end_inset
27862
27863  mode (i.
27864 \begin_inset space \thinspace{}
27865 \end_inset
27866
27867 e., the hand symbol is clicked).
27868 \change_unchanged
27869
27870 \end_layout
27871
27872 \begin_layout Subsubsection*
27873 Qpdfview (Unix)
27874 \end_layout
27875
27876 \begin_layout Standard
27877 Qpdfview supports Sync\SpecialChar TeX
27878  since version 0.3.5.
27879  Go to 
27880 \begin_inset Flex Noun
27881 status collapsed
27882
27883 \begin_layout Plain Layout
27884 Edit\SpecialChar menuseparator
27885 Settings\SpecialChar menuseparator
27886 Behavior
27887 \end_layout
27888
27889 \end_inset
27890
27891 , click on the input field of the 
27892 \begin_inset Quotes eld
27893 \end_inset
27894
27895 Source editor
27896 \begin_inset Quotes erd
27897 \end_inset
27898
27899  item and add the command 
27900 \begin_inset Flex Code
27901 status collapsed
27902
27903 \begin_layout Plain Layout
27904 lyxclient -g %1 %2
27905 \end_layout
27906
27907 \end_inset
27908
27909 .
27910 \end_layout
27911
27912 \begin_layout Standard
27913 Reverse search is triggered by double-click or, in more recent versions,
27914  by context menu.
27915 \end_layout
27916
27917 \begin_layout Subsubsection*
27918 YAP (Windows)
27919 \end_layout
27920
27921 \begin_layout Standard
27922 Launch yap, choose its 
27923 \begin_inset Flex Noun
27924 status collapsed
27925
27926 \begin_layout Plain Layout
27927 View\SpecialChar menuseparator
27928 Options
27929 \end_layout
27930
27931 \end_inset
27932
27933  menu and select the 
27934 \begin_inset Quotes eld
27935 \end_inset
27936
27937 Inverse DVI Search
27938 \begin_inset Quotes erd
27939 \end_inset
27940
27941  tab.
27942  Click on the 
27943 \begin_inset Quotes eld
27944 \end_inset
27945
27946 New\SpecialChar ldots
27947
27948 \begin_inset Quotes erd
27949 \end_inset
27950
27951  button and, in the window that opens, enter 
27952 \begin_inset Quotes eld
27953 \end_inset
27954
27955 \SpecialChar LyX
27956  Editor
27957 \begin_inset Quotes erd
27958 \end_inset
27959
27960  (or any other name you like) in the 
27961 \begin_inset Quotes eld
27962 \end_inset
27963
27964 Name:
27965 \begin_inset Quotes erd
27966 \end_inset
27967
27968  field.
27969  Now click on the button labeled 
27970 \begin_inset Quotes eld
27971 \end_inset
27972
27973 \SpecialChar ldots
27974
27975 \begin_inset Quotes erd
27976 \end_inset
27977
27978  to open a file dialog and navigate to the directory containing the batch
27979  file 
27980 \begin_inset Flex Code
27981 status collapsed
27982
27983 \begin_layout Plain Layout
27984 lyxeditor.bat
27985 \end_layout
27986
27987 \end_inset
27988
27989  (see below).
27990  Select 
27991 \begin_inset Flex Code
27992 status collapsed
27993
27994 \begin_layout Plain Layout
27995 lyxeditor.bat
27996 \end_layout
27997
27998 \end_inset
27999
28000  and then specify the program arguments as 
28001 \begin_inset Flex Code
28002 status collapsed
28003
28004 \begin_layout Plain Layout
28005 %f %l
28006 \end_layout
28007
28008 \end_inset
28009
28010 .
28011  The 
28012 \begin_inset Flex Code
28013 status collapsed
28014
28015 \begin_layout Plain Layout
28016 lyxeditor.bat
28017 \end_layout
28018
28019 \end_inset
28020
28021  wrapper is used for communicating with \SpecialChar LyX
28022  through the 
28023 \emph on
28024 lyxpipe
28025 \emph default
28026  and is as follows:
28027 \end_layout
28028
28029 \begin_layout LyX-Code
28030 @echo off
28031 \begin_inset Newline newline
28032 \end_inset
28033
28034 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
28035 \backslash
28036
28037 \backslash
28038 .
28039 \backslash
28040 pipe
28041 \backslash
28042 lyxpipe.in
28043 \begin_inset Newline newline
28044 \end_inset
28045
28046 type 
28047 \backslash
28048
28049 \backslash
28050 .
28051 \backslash
28052 pipe
28053 \backslash
28054 lyxpipe.out
28055 \end_layout
28056
28057 \begin_layout Standard
28058 Make sure that the \SpecialChar LyX
28059 Server pipe path you specified in \SpecialChar LyX
28060  is 
28061 \begin_inset Flex Code
28062 status collapsed
28063
28064 \begin_layout Plain Layout
28065
28066 \backslash
28067
28068 \backslash
28069 .
28070 \backslash
28071 pipe
28072 \backslash
28073 lyxpipe
28074 \end_layout
28075
28076 \end_inset
28077
28078 , otherwise change the 
28079 \begin_inset Flex Code
28080 status collapsed
28081
28082 \begin_layout Plain Layout
28083 lyxeditor.bat
28084 \end_layout
28085
28086 \end_inset
28087
28088  wrapper accordingly.
28089 \end_layout
28090
28091 \begin_layout Standard
28092 In yap, reverse search is triggered by double-click.
28093 \end_layout
28094
28095 \begin_layout Subsubsection*
28096 SumatraPDF (Windows)
28097 \end_layout
28098
28099 \begin_layout Standard
28100 In order to use SumatraPDF for inverse search, enter 
28101 \begin_inset Flex Code
28102 status collapsed
28103
28104 \begin_layout Plain Layout
28105 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
28106 \end_layout
28107
28108 \end_inset
28109
28110  in the viewer setting in 
28111 \begin_inset Flex Noun
28112 status collapsed
28113
28114 \begin_layout Plain Layout
28115 Preferences\SpecialChar menuseparator
28116 File Handling\SpecialChar menuseparator
28117 File formats\SpecialChar menuseparator
28118 PDF (pdflatex)
28119 \end_layout
28120
28121 \end_inset
28122
28123 , where 
28124 \begin_inset Flex Code
28125 status collapsed
28126
28127 \begin_layout Plain Layout
28128 lyxeditor.bat
28129 \end_layout
28130
28131 \end_inset
28132
28133  is the previous wrapper.
28134  If SumatraPDF.exe is not in your command PATH, use its full file name.
28135 \end_layout
28136
28137 \begin_layout Standard
28138 Reverse search is triggered by double-click.
28139 \end_layout
28140
28141 \begin_layout Subsubsection*
28142 YAP (Cygwin)
28143 \end_layout
28144
28145 \begin_layout Standard
28146 First of all, make sure that yap is your default DVI viewer in the Windows
28147  environment, then launch it, choose its 
28148 \begin_inset Flex Noun
28149 status collapsed
28150
28151 \begin_layout Plain Layout
28152 View\SpecialChar menuseparator
28153 Options
28154 \end_layout
28155
28156 \end_inset
28157
28158  menu and select the 
28159 \begin_inset Quotes eld
28160 \end_inset
28161
28162 Inverse DVI Search
28163 \begin_inset Quotes erd
28164 \end_inset
28165
28166  tab.
28167  Click on the 
28168 \begin_inset Quotes eld
28169 \end_inset
28170
28171 New\SpecialChar ldots
28172
28173 \begin_inset Quotes erd
28174 \end_inset
28175
28176  button and, in the window that opens, enter 
28177 \begin_inset Quotes eld
28178 \end_inset
28179
28180 \SpecialChar LyX
28181  Editor
28182 \begin_inset Quotes erd
28183 \end_inset
28184
28185  (or any other name you like) in the 
28186 \begin_inset Quotes eld
28187 \end_inset
28188
28189 Name:
28190 \begin_inset Quotes erd
28191 \end_inset
28192
28193  field.
28194  Now click on the button labeled 
28195 \begin_inset Quotes eld
28196 \end_inset
28197
28198 \SpecialChar ldots
28199
28200 \begin_inset Quotes erd
28201 \end_inset
28202
28203  to open a file dialog and navigate to the directory containing the 
28204 \begin_inset Flex Code
28205 status collapsed
28206
28207 \begin_layout Plain Layout
28208 lyxeditor.exe
28209 \end_layout
28210
28211 \end_inset
28212
28213  program (which is installed by default on Cygwin along with the \SpecialChar LyX
28214  executable).
28215  Select 
28216 \begin_inset Flex Code
28217 status collapsed
28218
28219 \begin_layout Plain Layout
28220 lyxeditor.exe
28221 \end_layout
28222
28223 \end_inset
28224
28225  and then specify the program arguments as 
28226 \begin_inset Flex Code
28227 status collapsed
28228
28229 \begin_layout Plain Layout
28230 -g %f %l
28231 \end_layout
28232
28233 \end_inset
28234
28235 .
28236  In this way, you will be using the 
28237 \emph on
28238 lyxsocket
28239 \emph default
28240  for communicating with \SpecialChar LyX
28241 .
28242  If, for whatever reason, you want to use the 
28243 \emph on
28244 lyxpipe
28245 \emph default
28246 , omit the 
28247 \begin_inset Flex Code
28248 status collapsed
28249
28250 \begin_layout Plain Layout
28251 -g
28252 \end_layout
28253
28254 \end_inset
28255
28256  option and be sure to specify the \SpecialChar LyX
28257 Server pipe path in the \SpecialChar LyX
28258  preferences.
28259 \end_layout
28260
28261 \begin_layout Standard
28262 In yap, reverse search is triggered by double-click.
28263 \end_layout
28264
28265 \begin_layout Subsubsection*
28266 SumatraPDF (Cygwin)
28267 \end_layout
28268
28269 \begin_layout Standard
28270 In order to use SumatraPDF for inverse search, enter 
28271 \begin_inset Flex Code
28272 status collapsed
28273
28274 \begin_layout Plain Layout
28275 SumatraPDF -inverse-search "lyxeditor -g %f %l"
28276 \end_layout
28277
28278 \end_inset
28279
28280  in the viewer setting in 
28281 \begin_inset Flex Noun
28282 status collapsed
28283
28284 \begin_layout Plain Layout
28285 Preferences\SpecialChar menuseparator
28286 File Handling\SpecialChar menuseparator
28287 File formats\SpecialChar menuseparator
28288 PDF (pdflatex)
28289 \end_layout
28290
28291 \end_inset
28292
28293 .
28294  If SumatraPDF.exe is not in your command PATH, use its full posix path.
28295  The 
28296 \begin_inset Flex Code
28297 status collapsed
28298
28299 \begin_layout Plain Layout
28300 -g
28301 \end_layout
28302
28303 \end_inset
28304
28305  enables communication via the 
28306 \emph on
28307 lyxsocket
28308 \emph default
28309 .
28310  Again, omit the 
28311 \begin_inset Flex Code
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 -g
28316 \end_layout
28317
28318 \end_inset
28319
28320  option if you want to use the 
28321 \emph on
28322 lyxpipe
28323 \emph default
28324 , and be sure to specify the \SpecialChar LyX
28325 Server pipe path in the \SpecialChar LyX
28326  preferences.
28327 \end_layout
28328
28329 \begin_layout Standard
28330 Reverse search is triggered by double-click.
28331 \end_layout
28332
28333 \begin_layout Section
28334 Forward search
28335 \end_layout
28336
28337 \begin_layout Standard
28338 Forward search is, as the name implies, in a sense the 
28339 \begin_inset Quotes eld
28340 \end_inset
28341
28342 opposite
28343 \begin_inset Quotes erd
28344 \end_inset
28345
28346  of reverse search.
28347  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
28348 .
28349  If forward search is set up (as described in what follows), you can put
28350  the cursor anywhere in your \SpecialChar LyX
28351  document, and hit 
28352 \begin_inset Flex Noun
28353 status collapsed
28354
28355 \begin_layout Plain Layout
28356 Navigate\SpecialChar menuseparator
28357 Forward search
28358 \end_layout
28359
28360 \end_inset
28361
28362  (or select 
28363 \begin_inset Flex Noun
28364 status collapsed
28365
28366 \begin_layout Plain Layout
28367 Forward search
28368 \end_layout
28369
28370 \end_inset
28371
28372  in the context menu via right mouse click), and then the viewer will jump
28373  to that position as well.
28374  This implies, of course, that your viewer supports this function.
28375 \end_layout
28376
28377 \begin_layout Standard
28378 To make forward search possible, you first need to provide the generated
28379  output PDF/DVI file with additional information about the \SpecialChar TeX
28380  sources.
28381  This can be done via the methods described in the section 
28382 \begin_inset CommandInset ref
28383 LatexCommand ref
28384 reference "subsec:rev-search"
28385
28386 \end_inset
28387
28388 .
28389 \end_layout
28390
28391 \begin_layout Standard
28392 Additionally, you need to configure \SpecialChar LyX
28393  for using your viewers in 
28394 \begin_inset Flex Noun
28395 status collapsed
28396
28397 \begin_layout Plain Layout
28398 Tools\SpecialChar menuseparator
28399 Preferences\SpecialChar menuseparator
28400 Output\SpecialChar menuseparator
28401 General
28402 \end_layout
28403
28404 \end_inset
28405
28406 .
28407  We provide a range of tested configurations for some viewers, which you
28408  can select from the drop down list.
28409  If none of these configurations suits you, you have to find out and enter
28410  a suitable configuration yourself.
28411  The definition syntax uses the following placeholders:
28412 \end_layout
28413
28414 \begin_layout Itemize
28415 \noindent
28416 \begin_inset Flex Code
28417 status collapsed
28418
28419 \begin_layout Plain Layout
28420 $$n
28421 \end_layout
28422
28423 \end_inset
28424
28425 : row number
28426 \end_layout
28427
28428 \begin_layout Itemize
28429 \noindent
28430 \begin_inset Flex Code
28431 status collapsed
28432
28433 \begin_layout Plain Layout
28434 $$t
28435 \end_layout
28436
28437 \end_inset
28438
28439 : name of the (temporary) exported .tex file (without path)
28440 \end_layout
28441
28442 \begin_layout Itemize
28443 \noindent
28444 \begin_inset Flex Code
28445 status collapsed
28446
28447 \begin_layout Plain Layout
28448 $$f
28449 \end_layout
28450
28451 \end_inset
28452
28453 : name of the (temporary) exported .tex file (including path)
28454 \end_layout
28455
28456 \begin_layout Itemize
28457 \noindent
28458 \begin_inset Flex Code
28459 status collapsed
28460
28461 \begin_layout Plain Layout
28462 $$o
28463 \end_layout
28464
28465 \end_inset
28466
28467 : name of the exported output file (either dvi or pdf, depending on which
28468  one exists in the temporary directory)
28469 \end_layout
28470
28471 \begin_layout Standard
28472 Note that only some of the viewers provide full and usable forward search
28473  functionality out of the box, among them yap, xdvi, okular
28474 \begin_inset Foot
28475 status collapsed
28476
28477 \begin_layout Plain Layout
28478 You might want to set 
28479 \begin_inset Flex Code
28480 status collapsed
28481
28482 \begin_layout Plain Layout
28483 okular --unique
28484 \end_layout
28485
28486 \end_inset
28487
28488  in 
28489 \begin_inset Flex Noun
28490 status collapsed
28491
28492 \begin_layout Plain Layout
28493 Tools\SpecialChar menuseparator
28494 Preferences\SpecialChar menuseparator
28495 File Handling\SpecialChar menuseparator
28496 File
28497 \begin_inset space ~
28498 \end_inset
28499
28500 Formats
28501 \end_layout
28502
28503 \end_inset
28504
28505
28506 \end_layout
28507
28508 \end_inset
28509
28510 , qpdfview, and SumatraPDF
28511 \begin_inset Foot
28512 status collapsed
28513
28514 \begin_layout Plain Layout
28515 SumatraPDF can also use DDE commands through the external program CMCDDE
28516  — downloadable from 
28517 \begin_inset CommandInset href
28518 LatexCommand href
28519 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
28520 literal "false"
28521
28522 \end_inset
28523
28524
28525 \end_layout
28526
28527 \end_inset
28528
28529 .
28530  Others, such as evince
28531 \begin_inset Foot
28532 status collapsed
28533
28534 \begin_layout Plain Layout
28535 Forward search with evince can be achieved by means of third party helper
28536  scripts.
28537  Please refer to 
28538 \begin_inset CommandInset href
28539 LatexCommand href
28540 target "https://wiki.lyx.org/LyX/SyncTeX"
28541 literal "false"
28542
28543 \end_inset
28544
28545  for details.
28546 \end_layout
28547
28548 \end_inset
28549
28550 , require some extra tools in order to use forward search.
28551  While many of the widespread PDF viewers (most notably Adobe Reader) do
28552  not support forward search at all, some other viewers – e.
28553 \begin_inset space \thinspace{}
28554 \end_inset
28555
28556 g.
28557  xpdf – allow at least to reload the document and jump to a specific page
28558  of the file, so you can at least navigate 
28559 \begin_inset Quotes eld
28560 \end_inset
28561
28562 near
28563 \begin_inset Quotes erd
28564 \end_inset
28565
28566 .
28567  This latter functionality is provided by an external call of synctex (see
28568  the predefined example configurations).
28569  
28570 \end_layout
28571
28572 \begin_layout Standard
28573 Forward search works both with DVI and PDF output.
28574  \SpecialChar LyX
28575  simply checks which preview format you have used before (i.
28576 \begin_inset space \thinspace{}
28577 \end_inset
28578
28579 e., which format is already there in the temporary directory) and chooses
28580  the appropriate configuration for the respective format.
28581 \change_deleted 564990737 1672743015
28582
28583 \end_layout
28584
28585 \begin_layout Standard
28586
28587 \change_deleted 564990737 1672743015
28588 Special Document Classes
28589 \end_layout
28590
28591 \begin_layout Standard
28592
28593 \change_deleted 564990737 1669742044
28594 A&A Paper
28595 \end_layout
28596
28597 \begin_layout Standard
28598
28599 \change_deleted 564990737 1669742044
28600 by 
28601 \noun on
28602 Peter Sütterlin
28603 \end_layout
28604
28605 \begin_layout Standard
28606
28607 \change_deleted 564990737 1669742044
28608 Introduction
28609 \end_layout
28610
28611 \begin_layout Standard
28612
28613 \change_deleted 564990737 1669742044
28614 This section describes how \SpecialChar LyX
28615  can be used to write articles for submission
28616  to the scientific journal 
28617 \emph on
28618 Astronomy and Astrophysics
28619 \emph default
28620  (
28621 \begin_inset Flex URL
28622 status collapsed
28623
28624 \begin_layout Plain Layout
28625
28626 https://www.aanda.org/
28627 \end_layout
28628
28629 \end_inset
28630
28631 ) using Version 5.01 of the document class 
28632 \family typewriter
28633 aa.cls
28634 \family default
28635 .
28636  This package can be downloaded from the ftp site
28637 \end_layout
28638
28639 \begin_layout Standard
28640
28641 \change_deleted 564990737 1669742044
28642 \begin_inset VSpace medskip
28643 \end_inset
28644
28645
28646 \end_layout
28647
28648 \begin_layout Standard
28649 \align center
28650
28651 \change_deleted 564990737 1669742044
28652 \begin_inset Flex URL
28653 status collapsed
28654
28655 \begin_layout Plain Layout
28656
28657 ftp://ftp.edpsciences.org/pub/aa/readme.html
28658 \end_layout
28659
28660 \end_inset
28661
28662
28663 \end_layout
28664
28665 \begin_layout Standard
28666
28667 \change_deleted 564990737 1669742044
28668 \begin_inset VSpace medskip
28669 \end_inset
28670
28671
28672 \end_layout
28673
28674 \begin_layout Standard
28675
28676 \change_deleted 564990737 1669742044
28677 A manual comes together with that package, and this text is not meant to
28678  replace the original manual but is merely a short guide in how to realize
28679  the correct form of your paper.
28680  
28681 \end_layout
28682
28683 \begin_layout Standard
28684
28685 \change_deleted 564990737 1669742044
28686 Please note that the publisher of the journal was changed from Springer
28687  to EDP Sciences starting January 1, 2001.
28688  That change involved also some slight changes to the style files, namely
28689  the removal of the thesaurus command.
28690  The \SpecialChar LyX
28691  class aa supports the newest version of these style files, V 5.01.
28692  If you have an older version installed, please upgrade.
28693  For compatibility, the old (version 4) layout has been kept as 
28694 \family sans
28695 article (A&A V4)
28696 \family default
28697 .
28698  Please refer to the comments in 
28699 \family typewriter
28700 \SpecialChar LyX
28701 Dir/layouts/aapaper.layout
28702 \family default
28703 .
28704 \end_layout
28705
28706 \begin_layout Standard
28707
28708 \change_deleted 564990737 1669742044
28709 Getting started
28710 \end_layout
28711
28712 \begin_layout Standard
28713
28714 \change_deleted 564990737 1669742044
28715 It is recommended you start from the example template distributed with \SpecialChar LyX
28716 .
28717  If you are not using a template, note the following settings:
28718 \end_layout
28719
28720 \begin_layout Itemize
28721
28722 \change_deleted 564990737 1669742044
28723 Select 
28724 \family sans
28725 article (A&A)
28726 \family default
28727  in the 
28728 \family sans
28729 Document\SpecialChar menuseparator
28730 Settings
28731 \family default
28732  dialog (OK, that one was obvious).
28733 \end_layout
28734
28735 \begin_layout Itemize
28736
28737 \change_deleted 564990737 1669742044
28738 Don't change the option 
28739 \family sans
28740 Page
28741 \begin_inset space ~
28742 \end_inset
28743
28744 style
28745 \family default
28746 : Leave it set to 
28747 \family sans
28748 default
28749 \family default
28750 .
28751  The whole layout is done by the macros, you shouldn't change anything.
28752 \end_layout
28753
28754 \begin_layout Standard
28755
28756 \change_deleted 564990737 1669742044
28757 The header block
28758 \end_layout
28759
28760 \begin_layout Standard
28761
28762 \change_deleted 564990737 1669742044
28763 First thing to enter is the header information.
28764  It consists of seven entries, of which some are optional.
28765  They are
28766 \end_layout
28767
28768 \begin_layout Itemize
28769
28770 \change_deleted 564990737 1669742044
28771
28772 \family sans
28773 Title
28774 \family default
28775 : [required] 
28776 \end_layout
28777
28778 \begin_layout Itemize
28779
28780 \change_deleted 564990737 1669742044
28781
28782 \family sans
28783 Subtitle
28784 \family default
28785 : [optional] 
28786 \end_layout
28787
28788 \begin_layout Itemize
28789
28790 \change_deleted 564990737 1669742044
28791
28792 \family sans
28793 Author
28794 \family default
28795 : [required]
28796 \end_layout
28797
28798 \begin_layout Itemize
28799
28800 \change_deleted 564990737 1669742044
28801
28802 \family sans
28803 Address
28804 \family default
28805 : [required]
28806 \end_layout
28807
28808 \begin_layout Itemize
28809
28810 \change_deleted 564990737 1669742044
28811
28812 \family sans
28813 Offprints
28814 \family default
28815 : [optional] if more than one author: whom to contact for offprint requests.
28816 \end_layout
28817
28818 \begin_layout Itemize
28819
28820 \change_deleted 564990737 1669742044
28821
28822 \family sans
28823 Mail
28824 \family default
28825 : [optional] mail address for contacts.
28826 \end_layout
28827
28828 \begin_layout Itemize
28829
28830 \change_deleted 564990737 1669742044
28831
28832 \family sans
28833 Date
28834 \family default
28835 : [required].
28836  Suggested format is 
28837 \family typewriter
28838 Received: <date>; Accepted <date> 
28839 \end_layout
28840
28841 \begin_layout Standard
28842
28843 \change_deleted 564990737 1669742044
28844 There is no need to issue the 
28845 \family typewriter
28846
28847 \backslash
28848 maketitle
28849 \family default
28850  command, this is done automatically by \SpecialChar LyX
28851  when the header is finished.
28852  Although the order of the single header entries doesn't matter it is advised
28853  to keep the above sequence, just to get the best optics and meets the layout
28854  of the real document.
28855 \end_layout
28856
28857 \begin_layout Standard
28858
28859 \change_deleted 564990737 1669742044
28860 If you want to place footnotes in the header block, e.
28861 \begin_inset space \thinspace{}
28862 \end_inset
28863
28864 g.
28865 \begin_inset space \space{}
28866 \end_inset
28867
28868 to state your present address, just use the standard footnote via the menu
28869  
28870 \family sans
28871 Insert\SpecialChar menuseparator
28872 Footnote.
28873
28874 \family default
28875  \SpecialChar LyX
28876  will automagically use the term 
28877 \family typewriter
28878
28879 \backslash
28880 thanks{}
28881 \family default
28882  in that case.
28883 \end_layout
28884
28885 \begin_layout Standard
28886
28887 \change_deleted 564990737 1669742044
28888 Under 
28889 \family sans
28890 Edit\SpecialChar menuseparator
28891 Text Style
28892 \family default
28893 , you'll find two insets which are relevant for the titling:
28894 \end_layout
28895
28896 \begin_layout Itemize
28897
28898 \change_deleted 564990737 1669742044
28899
28900 \family sans
28901 Institute
28902 \family typewriter
28903  
28904 \family default
28905 to mark corresponding author\SpecialChar breakableslash
28906 institute pairs.
28907  The institutes are numbered sequentially as they appear in the 
28908 \family sans
28909 Address
28910 \family default
28911  field, so you have to put a marker to each author.
28912 \end_layout
28913
28914 \begin_layout Itemize
28915
28916 \change_deleted 564990737 1669742044
28917
28918 \family sans
28919 Email
28920 \family default
28921  to supply an email address for fast contact.
28922 \end_layout
28923
28924 \begin_layout Standard
28925
28926 \change_deleted 564990737 1669742044
28927 In addition to these topics, the macros use one additional \SpecialChar LaTeX
28928  command that
28929  has no counterpart in \SpecialChar LyX
28930 :
28931 \end_layout
28932
28933 \begin_layout Itemize
28934
28935 \change_deleted 564990737 1669742044
28936
28937 \family typewriter
28938
28939 \backslash
28940 and
28941 \family default
28942  to separate different names for more than one author and institute, respectivel
28943 y.
28944 \end_layout
28945
28946 \begin_layout Standard
28947
28948 \change_deleted 564990737 1669742044
28949 The appropriate command has to be entered in \SpecialChar LyX
28950  and marked as \SpecialChar LaTeX
28951  code.
28952  See the examples.
28953  
28954 \end_layout
28955
28956 \begin_layout Standard
28957
28958 \change_deleted 564990737 1669742044
28959 The abstract
28960 \end_layout
28961
28962 \begin_layout Standard
28963
28964 \change_deleted 564990737 1669742044
28965 The abstract should immediately follow the header block.
28966  With version 5 the abstract environment was changed to a command, and there
28967  is now a restriction to only one paragraph.
28968  In addition, it should contain an entry with the keywords.
28969  This is done via the paragraph style 
28970 \family sans
28971 Keywords
28972 \family default
28973 .
28974  Refer to the example paper.
28975 \end_layout
28976
28977 \begin_layout Standard
28978
28979 \change_deleted 564990737 1669742044
28980 Supported environments
28981 \end_layout
28982
28983 \begin_layout Standard
28984
28985 \change_deleted 564990737 1669742044
28986 The A&A paper layout supports the following environments for structuring
28987  your text:
28988 \end_layout
28989
28990 \begin_layout Itemize
28991
28992 \change_deleted 564990737 1669742044
28993
28994 \family sans
28995 Standard
28996 \end_layout
28997
28998 \begin_layout Itemize
28999
29000 \change_deleted 564990737 1669742044
29001
29002 \family sans
29003 Section
29004 \end_layout
29005
29006 \begin_layout Itemize
29007
29008 \change_deleted 564990737 1669742044
29009
29010 \family sans
29011 Subsection
29012 \end_layout
29013
29014 \begin_layout Itemize
29015
29016 \change_deleted 564990737 1669742044
29017
29018 \family sans
29019 Subsubsection
29020 \end_layout
29021
29022 \begin_layout Itemize
29023
29024 \change_deleted 564990737 1669742044
29025
29026 \family sans
29027 Itemize
29028 \end_layout
29029
29030 \begin_layout Itemize
29031
29032 \change_deleted 564990737 1669742044
29033
29034 \family sans
29035 Enumerate
29036 \end_layout
29037
29038 \begin_layout Itemize
29039
29040 \change_deleted 564990737 1669742044
29041
29042 \family sans
29043 Description
29044 \end_layout
29045
29046 \begin_layout Itemize
29047
29048 \change_deleted 564990737 1669742044
29049
29050 \family sans
29051 Caption
29052 \end_layout
29053
29054 \begin_layout Itemize
29055
29056 \change_deleted 564990737 1669742044
29057
29058 \family sans
29059 Abstract
29060 \end_layout
29061
29062 \begin_layout Itemize
29063
29064 \change_deleted 564990737 1669742044
29065
29066 \family sans
29067 Acknowledgment
29068 \end_layout
29069
29070 \begin_layout Itemize
29071
29072 \change_deleted 564990737 1669742044
29073
29074 \family sans
29075 Bibliography
29076 \end_layout
29077
29078 \begin_layout Itemize
29079
29080 \change_deleted 564990737 1669742044
29081
29082 \family sans
29083 \SpecialChar LaTeX
29084
29085 \end_layout
29086
29087 \begin_layout Standard
29088
29089 \change_deleted 564990737 1669742044
29090 Commands not supported by \SpecialChar LyX
29091
29092 \end_layout
29093
29094 \begin_layout Standard
29095
29096 \change_deleted 564990737 1669742044
29097 Some commands are not yet supported by the 
29098 \family sans
29099 paper (A&A)
29100 \family default
29101  layout for \SpecialChar LyX
29102 .
29103  Some have already been mentioned.
29104  For the sake of completeness, they are listed all together here:
29105 \end_layout
29106
29107 \begin_layout Itemize
29108
29109 \change_deleted 564990737 1669742044
29110
29111 \family typewriter
29112
29113 \backslash
29114 and
29115 \end_layout
29116
29117 \begin_layout Itemize
29118
29119 \change_deleted 564990737 1669742044
29120
29121 \family typewriter
29122
29123 \backslash
29124 authorrunning
29125 \end_layout
29126
29127 \begin_layout Itemize
29128
29129 \change_deleted 564990737 1669742044
29130
29131 \family typewriter
29132
29133 \backslash
29134 object{}
29135 \end_layout
29136
29137 \begin_layout Itemize
29138
29139 \change_deleted 564990737 1669742044
29140
29141 \family typewriter
29142
29143 \backslash
29144 titlerunning{}
29145 \end_layout
29146
29147 \begin_layout Standard
29148
29149 \change_deleted 564990737 1669742044
29150 If you want to use any of these commands, you have to enter them yourself.
29151  
29152 \series bold
29153 Do not forget to mark them as \SpecialChar LaTeX
29154  code!
29155 \end_layout
29156
29157 \begin_layout Standard
29158
29159 \change_deleted 564990737 1669742044
29160 Figure and Table Floats
29161 \end_layout
29162
29163 \begin_layout Standard
29164
29165 \change_deleted 564990737 1669742044
29166 \SpecialChar LyX
29167  provides support for the necessary float environments 
29168 \family sans
29169 figure, figure*, table
29170 \family default
29171  and 
29172 \family sans
29173 table*
29174 \family default
29175 , therefore we won't tell much about it here.
29176  Refer to the 
29177 \emph on
29178 User's
29179 \begin_inset space ~
29180 \end_inset
29181
29182 Guide
29183 \emph default
29184 .
29185  Just remember that tables should be left-aligned.
29186  For that, select the table and change the alignment in 
29187 \family sans
29188 Edit\SpecialChar menuseparator
29189 Paragraph
29190 \begin_inset space ~
29191 \end_inset
29192
29193 Settings.
29194 \end_layout
29195
29196 \begin_layout Standard
29197
29198 \change_deleted 564990737 1669742044
29199 There is only one special thing: the figures with caption besides the figure.
29200  To create such a figure, you have to do the following:
29201 \end_layout
29202
29203 \begin_layout Enumerate
29204
29205 \change_deleted 564990737 1669742044
29206 Create a wide figure float: 
29207 \family sans
29208 Insert\SpecialChar menuseparator
29209 Float\SpecialChar menuseparator
29210 Figure
29211 \family default
29212 , then right click in the figure and select 
29213 \family sans
29214 Span
29215 \begin_inset space ~
29216 \end_inset
29217
29218 columns
29219 \family default
29220 .
29221 \end_layout
29222
29223 \begin_layout Enumerate
29224
29225 \change_deleted 564990737 1669742044
29226 Enter your caption text.
29227 \end_layout
29228
29229 \begin_layout Enumerate
29230
29231 \change_deleted 564990737 1669742044
29232 Press 
29233 \family sans
29234 Return
29235 \family default
29236  to move the cursor above the caption.
29237 \end_layout
29238
29239 \begin_layout Enumerate
29240
29241 \change_deleted 564990737 1669742044
29242 Insert your figure
29243 \end_layout
29244
29245 \begin_layout Enumerate
29246
29247 \change_deleted 564990737 1669742044
29248 Position the cursor behind the figure and insert a horizontal fill: 
29249 \family sans
29250 Insert\SpecialChar menuseparator
29251 Special
29252 \begin_inset space ~
29253 \end_inset
29254
29255 Character\SpecialChar menuseparator
29256 Horizontal
29257 \begin_inset space ~
29258 \end_inset
29259
29260 Fill
29261 \family default
29262 .
29263 \end_layout
29264
29265 \begin_layout Enumerate
29266
29267 \change_deleted 564990737 1669742044
29268 Switch to \SpecialChar LaTeX
29269  mode: 
29270 \family sans
29271 M-c
29272 \begin_inset space ~
29273 \end_inset
29274
29275 t
29276 \family default
29277 .
29278 \end_layout
29279
29280 \begin_layout Enumerate
29281
29282 \change_deleted 564990737 1669742044
29283 Enter 
29284 \family typewriter
29285
29286 \backslash
29287 parbox[b]{55mm}{
29288 \family default
29289 .
29290  
29291 \series bold
29292 Do not close the brace!
29293 \end_layout
29294
29295 \begin_layout Enumerate
29296
29297 \change_deleted 564990737 1669742044
29298 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
29299  mode and insert
29300  the closing brace: 
29301 \family sans
29302 M-c
29303 \begin_inset space ~
29304 \end_inset
29305
29306 t
29307 \family default
29308  
29309 \family typewriter
29310 }
29311 \family default
29312 .
29313 \end_layout
29314
29315 \begin_layout Standard
29316
29317 \change_deleted 564990737 1669742044
29318 Also, refer to the figures in the example paper.
29319 \end_layout
29320
29321 \begin_layout Standard
29322
29323 \change_deleted 564990737 1669742044
29324 Referee layout
29325 \end_layout
29326
29327 \begin_layout Standard
29328
29329 \change_deleted 564990737 1669742044
29330 For submission, the paper has to be formated in a special double-spacing
29331  layout.
29332  For this purpose, you have to give the option 
29333 \family typewriter
29334 referee
29335 \family default
29336  to the document class.
29337  This must be done using the custom class options field in the 
29338 \family sans
29339 Document\SpecialChar menuseparator
29340 Settings
29341 \family default
29342  dialog.
29343  Just enter the string 
29344 \family typewriter
29345 referee
29346 \family default
29347  there.
29348 \end_layout
29349
29350 \begin_layout Standard
29351
29352 \change_deleted 564990737 1669742044
29353 The example paper
29354 \end_layout
29355
29356 \begin_layout Standard
29357
29358 \change_deleted 564990737 1669742044
29359 The 
29360 \family sans
29361 Examples
29362 \family default
29363  directory contains an example paper written with \SpecialChar LyX
29364 .
29365  It is the example paper from the original macro package, translated to
29366  \SpecialChar LyX
29367 .
29368  Use it for inspiration, and compare the original \SpecialChar LaTeX
29369  code with \SpecialChar LyX
29370  way of writing.
29371 \end_layout
29372
29373 \begin_layout Standard
29374
29375 \change_deleted 564990737 1671097429
29376 Dinbrief
29377 \end_layout
29378
29379 \begin_layout Standard
29380
29381 \change_deleted 564990737 1671097429
29382 The document class 
29383 \family sans
29384 dinbrief
29385 \family default
29386  can be used to type letters according to German conventions.
29387  A template file is included in 
29388 \family typewriter
29389 .../lyx/share/templates
29390 \family default
29391  for you to use as a starting point.
29392 \end_layout
29393
29394 \begin_layout Standard
29395
29396 \change_deleted 564990737 1671097429
29397 Elsevier Journals
29398 \end_layout
29399
29400 \begin_layout Standard
29401
29402 \change_deleted 564990737 1671097429
29403 See the \SpecialChar LyX
29404  template file 
29405 \family typewriter
29406 elsarticle.lyx
29407 \family default
29408 .
29409  It contains all infos you need.
29410 \end_layout
29411
29412 \begin_layout Standard
29413
29414 \change_deleted 564990737 1669755802
29415 ijmpc and ijmpd
29416 \end_layout
29417
29418 \begin_layout Standard
29419
29420 \change_deleted 564990737 1669755802
29421 by 
29422 \noun on
29423 Panayotis Papasotiriou
29424 \end_layout
29425
29426 \begin_layout Standard
29427
29428 \change_deleted 564990737 1669755802
29429 Overview
29430 \end_layout
29431
29432 \begin_layout Standard
29433
29434 \change_deleted 564990737 1669755802
29435 The ijmpc package is a set of macros that facilitates electronic manuscript
29436  submission to the 
29437 \emph on
29438 International Journal of Modern Physics C
29439 \emph default
29440 .
29441  Similarly, the ijmpd package is for creating manuscripts to be submitted
29442  to the 
29443 \emph on
29444 International Journal of Modern Physics D
29445 \emph default
29446 .
29447  Both journals are published by World Scientific.
29448  The corresponding document classes are named 
29449 \family typewriter
29450 ws-ijmpc.cls
29451 \family default
29452  and 
29453 \family typewriter
29454 ws-ijmpd.cls
29455 \family default
29456 , respectively.
29457  These files, together with instructions for the authors, can be downloaded
29458  from the sites 
29459 \begin_inset Flex URL
29460 status collapsed
29461
29462 \begin_layout Plain Layout
29463
29464 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
29465 \end_layout
29466
29467 \end_inset
29468
29469  and 
29470 \begin_inset Flex URL
29471 status collapsed
29472
29473 \begin_layout Plain Layout
29474
29475 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
29476 \end_layout
29477
29478 \end_inset
29479
29480 .
29481  Both packages are modified versions of the standard 
29482 \begin_inset Quotes eld
29483 \end_inset
29484
29485 article
29486 \begin_inset Quotes erd
29487 \end_inset
29488
29489  package, and they are almost (but not exactly) identical.
29490  Most of their features are supported by \SpecialChar LyX
29491 .
29492  I have used \SpecialChar LyX
29493  successfully to write articles submitted to both journals
29494  without any problem.
29495 \end_layout
29496
29497 \begin_layout Standard
29498
29499 \change_deleted 564990737 1669755802
29500 Writing a paper
29501 \end_layout
29502
29503 \begin_layout Standard
29504
29505 \change_deleted 564990737 1669755802
29506 As usual, the easiest way to write a paper is to start with a template.
29507  Click on 
29508 \family sans
29509 File\SpecialChar menuseparator
29510 New from
29511 \family default
29512  
29513 \family sans
29514 Template
29515 \family default
29516 , then choose the 
29517 \family typewriter
29518 ijmpc.lyx
29519 \family default
29520  or 
29521 \family typewriter
29522 ijmpd.lyx
29523 \family default
29524  template.
29525  This will give an (almost) empty document that includes the most common
29526  fields found in a manuscript.
29527  Simply overwrite the existing text (including the brackets, 
29528 \family typewriter
29529 <>
29530 \family default
29531 ) with your text.
29532  You should keep in mind the following remarks.
29533 \end_layout
29534
29535 \begin_layout Enumerate
29536
29537 \change_deleted 564990737 1669755802
29538 \SpecialChar LyX
29539  won't let you change the font size and the page style of the document,
29540  because such modifications are not allowed by both packages.
29541 \end_layout
29542
29543 \begin_layout Enumerate
29544
29545 \change_deleted 564990737 1669755802
29546 The language of the document should not be changed.
29547  Before previewing your paper, be sure that the babel package is not used.
29548  To do this, click on 
29549 \begin_inset Info
29550 type  "menu"
29551 arg   "dialog-show document"
29552 \end_inset
29553
29554  
29555 \family sans
29556 \SpecialChar menuseparator
29557 Language
29558 \family default
29559 , and select 
29560 \begin_inset Quotes eld
29561 \end_inset
29562
29563 None
29564 \begin_inset Quotes erd
29565 \end_inset
29566
29567  as 
29568 \family sans
29569 Language Package
29570 \family default
29571 .
29572 \end_layout
29573
29574 \begin_layout Enumerate
29575
29576 \change_deleted 564990737 1669755802
29577 The 
29578 \begin_inset Quotes eld
29579 \end_inset
29580
29581 Keywords
29582 \begin_inset Quotes erd
29583 \end_inset
29584
29585  style must be used to define keywords.
29586 \end_layout
29587
29588 \begin_layout Enumerate
29589
29590 \change_deleted 564990737 1669755802
29591 The ijmpc package provides a style named 
29592 \begin_inset Quotes eld
29593 \end_inset
29594
29595 Classification Codes
29596 \begin_inset Quotes erd
29597 \end_inset
29598
29599 , which can be used to define classification codes, such as PACS numbers.
29600  Note that this facility is not supported by the ijmpd package.
29601 \end_layout
29602
29603 \begin_layout Enumerate
29604
29605 \change_deleted 564990737 1669755802
29606 Several new environments are available: 
29607 \begin_inset Quotes eld
29608 \end_inset
29609
29610 Definition
29611 \begin_inset Quotes erd
29612 \end_inset
29613
29614
29615 \begin_inset Quotes eld
29616 \end_inset
29617
29618 Step
29619 \begin_inset Quotes erd
29620 \end_inset
29621
29622
29623 \begin_inset Quotes eld
29624 \end_inset
29625
29626 Example
29627 \begin_inset Quotes erd
29628 \end_inset
29629
29630
29631 \begin_inset Quotes eld
29632 \end_inset
29633
29634 Remark
29635 \begin_inset Quotes erd
29636 \end_inset
29637
29638
29639 \begin_inset Quotes eld
29640 \end_inset
29641
29642 Notation
29643 \begin_inset Quotes erd
29644 \end_inset
29645
29646
29647 \begin_inset Quotes eld
29648 \end_inset
29649
29650 Theorem
29651 \begin_inset Quotes erd
29652 \end_inset
29653
29654
29655 \begin_inset Quotes eld
29656 \end_inset
29657
29658 Proof
29659 \begin_inset Quotes erd
29660 \end_inset
29661
29662
29663 \begin_inset Quotes eld
29664 \end_inset
29665
29666 Corollary
29667 \begin_inset Quotes erd
29668 \end_inset
29669
29670
29671 \begin_inset Quotes eld
29672 \end_inset
29673
29674 Lemma
29675 \begin_inset Quotes erd
29676 \end_inset
29677
29678
29679 \begin_inset Quotes eld
29680 \end_inset
29681
29682 Proposition
29683 \begin_inset Quotes erd
29684 \end_inset
29685
29686
29687 \begin_inset Quotes eld
29688 \end_inset
29689
29690 Prop
29691 \begin_inset Quotes erd
29692 \end_inset
29693
29694
29695 \begin_inset Quotes eld
29696 \end_inset
29697
29698 Question
29699 \begin_inset Quotes erd
29700 \end_inset
29701
29702
29703 \begin_inset Quotes eld
29704 \end_inset
29705
29706 Claim
29707 \begin_inset Quotes erd
29708 \end_inset
29709
29710 , and 
29711 \begin_inset Quotes eld
29712 \end_inset
29713
29714 Conjecture
29715 \begin_inset Quotes erd
29716 \end_inset
29717
29718 .
29719  Their use is more or less obvious.
29720  \SpecialChar LyX
29721  supports all these environments; it will use the proper label, text style,
29722  and numbering scheme for each of them.
29723 \end_layout
29724
29725 \begin_layout Enumerate
29726
29727 \change_deleted 564990737 1669755802
29728 Both packages use basic citations; the natbib package should not be used.
29729  In \SpecialChar LyX
29730 , citation references are shown as usual; in the output, citations are
29731  shown as superscripts.
29732  If you want to use a citation as normal text, you should use the 
29733 \family typewriter
29734 refcite
29735 \family default
29736  command, e.
29737 \begin_inset space \thinspace{}
29738 \end_inset
29739
29740 g.
29741 \begin_inset space \space{}
29742 \end_inset
29743
29744
29745 \begin_inset Quotes eld
29746 \end_inset
29747
29748 See Ref.
29749 \begin_inset space \space{}
29750 \end_inset
29751
29752
29753 \family typewriter
29754
29755 \backslash
29756 refcite{key}
29757 \family default
29758
29759 \begin_inset Quotes erd
29760 \end_inset
29761
29762 .
29763 \end_layout
29764
29765 \begin_layout Enumerate
29766
29767 \change_deleted 564990737 1669755802
29768 There is no 
29769 \begin_inset Quotes eld
29770 \end_inset
29771
29772 Acknowledgments
29773 \begin_inset Quotes erd
29774 \end_inset
29775
29776  section in both packages.
29777  To put acknowledgments, just use the 
29778 \begin_inset Quotes eld
29779 \end_inset
29780
29781 Section*
29782 \begin_inset Quotes erd
29783 \end_inset
29784
29785  environment.
29786 \end_layout
29787
29788 \begin_layout Enumerate
29789
29790 \change_deleted 564990737 1669755802
29791 Appendices may be added to the paper, 
29792 \emph on
29793 after
29794 \emph default
29795  the Acknowledgments and 
29796 \shape italic
29797 before
29798 \shape default
29799  the References.
29800  \SpecialChar LyX
29801  provides a special environment, called 
29802 \begin_inset Quotes eld
29803 \end_inset
29804
29805 Appendices Section
29806 \begin_inset Quotes erd
29807 \end_inset
29808
29809  which marks the beginning of the appendices.
29810  This environment should be left blank; it just sends a \SpecialChar LaTeX
29811  command, but nothing
29812  is really printed.
29813  In \SpecialChar LyX
29814 , the word 
29815 \begin_inset Quotes eld
29816 \end_inset
29817
29818 Appendix
29819 \begin_inset Quotes erd
29820 \end_inset
29821
29822  is printed with blue letters, as a signal that all sections after that
29823  point are appendices.
29824  To write an appendix, use the 
29825 \begin_inset Quotes eld
29826 \end_inset
29827
29828 Appendix
29829 \begin_inset Quotes erd
29830 \end_inset
29831
29832  environment.
29833  \SpecialChar LyX
29834  will number each appendix with capital letters, as required by both journals.
29835  Note that 
29836 \begin_inset Quotes eld
29837 \end_inset
29838
29839 Appendices Section
29840 \begin_inset Quotes erd
29841 \end_inset
29842
29843  
29844 \emph on
29845 must
29846 \emph default
29847  be present before the first appendix; if not, all appendices will be numbered
29848  as normal sections in the output.
29849 \end_layout
29850
29851 \begin_layout Enumerate
29852
29853 \change_deleted 564990737 1669755802
29854 The ijmpc and the ijmpd packages use the 
29855 \family typewriter
29856 tbl
29857 \family default
29858  command to implement table captions.
29859  As a result, a table created by \SpecialChar LyX
29860  is printed correctly, but its caption
29861  is ignored.
29862  However, you can use some \SpecialChar TeX
29863  code to overcome this problem, so that captions
29864  are printed as expected.
29865  To do so, create a float table as usual, remove the caption, and replace
29866  it with the \SpecialChar TeX
29867  code 
29868 \family typewriter
29869
29870 \backslash
29871 tbl{
29872 \emph on
29873 your table caption
29874 \emph default
29875 }{
29876 \family default
29877  (sic); you must also the \SpecialChar TeX
29878  code 
29879 \family typewriter
29880 }
29881 \family default
29882  immediately after the tabular material.
29883  Study the example table included in the template files to see how this
29884  trick is implemented.
29885  Alternatively, If you need table captions, you should implement the whole
29886  table float in a 
29887 \family typewriter
29888 .tex
29889 \family default
29890  file, then include this file to the \SpecialChar LyX
29891  document (
29892 \family sans
29893 Insert\SpecialChar menuseparator
29894 File\SpecialChar menuseparator
29895 Child
29896 \begin_inset space ~
29897 \end_inset
29898
29899 Document
29900 \family default
29901 ).
29902  Details on how to create a table float can be found in the files 
29903 \family typewriter
29904 ws-ijmpc.tex
29905 \family default
29906  and 
29907 \family typewriter
29908 ws-ijmpd.tex
29909 \family default
29910 , included in the corresponding packages.
29911 \end_layout
29912
29913 \begin_layout Standard
29914
29915 \change_deleted 564990737 1669755802
29916 Preparing a paper for submission
29917 \end_layout
29918
29919 \begin_layout Standard
29920
29921 \change_deleted 564990737 1669755802
29922 Before you submit your paper you must export the \SpecialChar LyX
29923  document as a \SpecialChar LaTeX
29924  file (
29925 \family sans
29926 File\SpecialChar menuseparator
29927 Export\SpecialChar menuseparator
29928 \SpecialChar LaTeX
29929
29930 \family default
29931 )
29932 \begin_inset Foot
29933 status open
29934
29935 \begin_layout Plain Layout
29936 Actually you have the choice between \SpecialChar LaTeX
29937  (plain) and pdflatex.
29938  If you intend to use pdflatex to prepare the paper, you should use the
29939  pdflatex option so that included graphics are converted to PDF format,
29940  ready for use by pdflatex.
29941 \end_layout
29942
29943 \end_inset
29944
29945 , then make the following changes to the resulting 
29946 \family typewriter
29947 .tex
29948 \family default
29949  file.
29950 \end_layout
29951
29952 \begin_layout Enumerate
29953
29954 \change_deleted 564990737 1669755802
29955 Remove the comment lines before the 
29956 \family typewriter
29957
29958 \backslash
29959 documentclass
29960 \family default
29961  command.
29962 \end_layout
29963
29964 \begin_layout Enumerate
29965
29966 \change_deleted 564990737 1669755802
29967 Remove everything between (and including) the 
29968 \family typewriter
29969
29970 \backslash
29971 makeatletter
29972 \family default
29973  and 
29974 \family typewriter
29975
29976 \backslash
29977 makeatother
29978 \family default
29979  commands, except for any commands you specifically put into the \SpecialChar LaTeX
29980  preamble.
29981 \end_layout
29982
29983 \begin_layout Standard
29984
29985 \change_deleted 564990737 1672743015
29986 The modified 
29987 \family typewriter
29988 .tex
29989 \family default
29990  file should be saved and processed through \SpecialChar LaTeX
29991  as many times as necessary.
29992  You may also want to check the resulting 
29993 \family typewriter
29994 .dvi
29995 \family default
29996  document.
29997 \end_layout
29998
29999 \begin_layout Standard
30000
30001 \change_deleted 564990737 1669801478
30002 iopart
30003 \end_layout
30004
30005 \begin_layout Standard
30006
30007 \change_deleted 564990737 1669801478
30008 by 
30009 \noun on
30010 Uwe Stöhr
30011 \end_layout
30012
30013 \begin_layout Standard
30014
30015 \change_deleted 564990737 1669801478
30016 Overview
30017 \end_layout
30018
30019 \begin_layout Standard
30020
30021 \change_deleted 564990737 1669801478
30022 The iopart package provides a document class to create electronic manuscript
30023  submission to the journals published by the Institute of Physics.
30024  Instructions for the authors how to create a paper using the iopart class
30025  can be downloaded together with the iopart package from the site 
30026 \begin_inset Flex URL
30027 status collapsed
30028
30029 \begin_layout Plain Layout
30030
30031 ftp://ftp.iop.org/pub/journals/latex2e
30032 \end_layout
30033
30034 \end_inset
30035
30036 .
30037 \end_layout
30038
30039 \begin_layout Standard
30040
30041 \change_deleted 564990737 1669801478
30042 Writing a paper
30043 \end_layout
30044
30045 \begin_layout Standard
30046
30047 \change_deleted 564990737 1669801478
30048 The easiest way to write a paper is to start with the template 
30049 \emph on
30050 IOP-article.lyx
30051 \emph default
30052  that is available via 
30053 \family sans
30054 File\SpecialChar menuseparator
30055 New From Template
30056 \family default
30057  The template explains how to use the special text environments.
30058  Here are the most important advices:
30059 \end_layout
30060
30061 \begin_layout Itemize
30062
30063 \change_deleted 564990737 1669801478
30064 To be able to compile your document to a PDF, PS, or DVI, ensure that the
30065  no AMS packages are loaded in 
30066 \family sans
30067 Document\SpecialChar menuseparator
30068 Settings\SpecialChar menuseparator
30069 Math Options
30070 \family default
30071 !
30072 \end_layout
30073
30074 \begin_layout Itemize
30075
30076 \change_deleted 564990737 1669801478
30077
30078 \size normal
30079 The title environment defines the kind of your paper.
30080  So use one of the following environments for the title:
30081 \end_layout
30082
30083 \begin_deeper
30084 \begin_layout Itemize
30085
30086 \change_deleted 564990737 1669801478
30087
30088 \family sans
30089 \size normal
30090 Title
30091 \family default
30092  for a Paper
30093 \end_layout
30094
30095 \begin_layout Itemize
30096
30097 \change_deleted 564990737 1669801478
30098
30099 \family sans
30100 \size normal
30101 Review
30102 \family default
30103  for a Review
30104 \end_layout
30105
30106 \begin_layout Itemize
30107
30108 \change_deleted 564990737 1669801478
30109
30110 \family sans
30111 \size normal
30112 Topical
30113 \family default
30114  for a Topical review
30115 \end_layout
30116
30117 \begin_layout Itemize
30118
30119 \change_deleted 564990737 1669801478
30120
30121 \family sans
30122 \size normal
30123 Comment
30124 \family default
30125  for a Comment
30126 \end_layout
30127
30128 \begin_layout Itemize
30129
30130 \change_deleted 564990737 1669801478
30131
30132 \family sans
30133 \size normal
30134 Note
30135 \family default
30136  for a Note
30137 \end_layout
30138
30139 \begin_layout Itemize
30140
30141 \change_deleted 564990737 1669801478
30142
30143 \family sans
30144 \size normal
30145 Paper
30146 \family default
30147  for a Paper (same as Title)
30148 \end_layout
30149
30150 \begin_layout Itemize
30151
30152 \change_deleted 564990737 1669801478
30153
30154 \family sans
30155 \size normal
30156 Prelim
30157 \family default
30158  for a Preliminary communication
30159 \end_layout
30160
30161 \begin_layout Itemize
30162
30163 \change_deleted 564990737 1669801478
30164
30165 \family sans
30166 \size normal
30167 Rapid
30168 \family default
30169  for a Rapid communication
30170 \end_layout
30171
30172 \begin_layout Itemize
30173
30174 \change_deleted 564990737 1669801478
30175
30176 \family sans
30177 \size normal
30178 Letter
30179 \family default
30180  for a Letter to the editor
30181 \end_layout
30182
30183 \end_deeper
30184 \begin_layout Itemize
30185
30186 \change_deleted 564990737 1669801478
30187
30188 \size normal
30189 All title environments except of 
30190 \family sans
30191 Letter
30192 \family default
30193  can have an optional short title.
30194 \end_layout
30195
30196 \begin_layout Itemize
30197
30198 \change_deleted 564990737 1669801478
30199 There is a general title environment 
30200 \family sans
30201 Article
30202 \family default
30203  which is not directly supported by \SpecialChar LyX
30204 .
30205  This can be used as \SpecialChar TeX
30206  code when your document doesn't fit into one of the
30207  other title types.
30208 \end_layout
30209
30210 \begin_layout Standard
30211
30212 \change_deleted 564990737 1672743015
30213 For more informations like hints for special table and formula formatting,
30214  look at the IOP author guidelines.
30215 \end_layout
30216
30217 \begin_layout Standard
30218
30219 \change_deleted 564990737 1670317155
30220 Kluwer
30221 \end_layout
30222
30223 \begin_layout Standard
30224
30225 \change_deleted 564990737 1670317155
30226 by 
30227 \noun on
30228 Panayotis Papasotiriou
30229 \end_layout
30230
30231 \begin_layout Standard
30232
30233 \change_deleted 564990737 1670317155
30234 Overview
30235 \end_layout
30236
30237 \begin_layout Standard
30238
30239 \change_deleted 564990737 1670317155
30240 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
30241  that facilitates electronic manuscript submission to the journals they
30242  publish.
30243  Most known of them (at least in my domain of interest) are 
30244 \emph on
30245 Astrophysics and Space Science
30246 \emph default
30247  and 
30248 \emph on
30249 Solar Physics
30250 \emph default
30251 , but there are many others (see a complete list at 
30252 \begin_inset Flex URL
30253 status collapsed
30254
30255 \begin_layout Plain Layout
30256
30257 http://www.wkap.nl/jrnllist.htm/JRNLHOME
30258 \end_layout
30259
30260 \end_inset
30261
30262 ).
30263  The Kluwer package may be downloaded from the site 
30264 \begin_inset Flex URL
30265 status collapsed
30266
30267 \begin_layout Plain Layout
30268
30269 http://www.wkap.nl/kaphtml.htm/STYLEFILES
30270 \end_layout
30271
30272 \end_inset
30273
30274 .
30275  A complete user guide is contained in that package (but it can also be
30276  downloaded separately).
30277 \end_layout
30278
30279 \begin_layout Standard
30280
30281 \change_deleted 564990737 1670317155
30282 \SpecialChar LyX
30283  supports many features of the package but not everything.
30284  However, the \SpecialChar TeX
30285  code needed is reduced to some 
30286 \begin_inset Quotes eld
30287 \end_inset
30288
30289 peculiar
30290 \begin_inset Quotes erd
30291 \end_inset
30292
30293  commands of the package (see
30294 \begin_inset space ~
30295 \end_inset
30296
30297
30298 \begin_inset CommandInset ref
30299 LatexCommand ref
30300 reference "subsec:kluwer_peculiarities"
30301
30302 \end_inset
30303
30304 ).
30305  I have recently used \SpecialChar LyX
30306  to write an article submitted to the 
30307 \emph on
30308 Astrophysics and Space Science
30309 \emph default
30310  without any problem.
30311 \end_layout
30312
30313 \begin_layout Standard
30314
30315 \change_deleted 564990737 1670317155
30316 Writing a paper
30317 \end_layout
30318
30319 \begin_layout Standard
30320
30321 \change_deleted 564990737 1670317155
30322 The easiest way to write a paper is to start with the Kluwer template file.
30323  Click on 
30324 \family sans
30325 File\SpecialChar menuseparator
30326 New from
30327 \family default
30328  
30329 \family sans
30330 Template
30331 \family default
30332 , then choose the 
30333 \family typewriter
30334 kluwer.lyx
30335 \family default
30336  template.
30337  This will give an (almost) empty document that includes the most common
30338  fields found in a manuscript and a short description of their use.
30339  As in most templates, simply overwrite the existing text (including the
30340  brackets, 
30341 \family typewriter
30342 <>
30343 \family default
30344 ) with the correct information.
30345 \end_layout
30346
30347 \begin_layout Standard
30348
30349 \change_deleted 564990737 1670317155
30350 Preparing a paper for submission
30351 \end_layout
30352
30353 \begin_layout Standard
30354
30355 \change_deleted 564990737 1670317155
30356 As in the AAS\SpecialChar TeX
30357  package, before you submit your paper to a journal you must
30358  
30359 \begin_inset Quotes eld
30360 \end_inset
30361
30362 postprocess
30363 \begin_inset Quotes erd
30364 \end_inset
30365
30366  it as follows.
30367 \end_layout
30368
30369 \begin_layout Enumerate
30370
30371 \change_deleted 564990737 1670317155
30372 Export your paper as a \SpecialChar LaTeX
30373  file.
30374  To do this, click on 
30375 \family sans
30376 File\SpecialChar menuseparator
30377 Export\SpecialChar menuseparator
30378 \SpecialChar LaTeX
30379
30380 \family default
30381 .
30382  
30383 \end_layout
30384
30385 \begin_layout Enumerate
30386
30387 \change_deleted 564990737 1670317155
30388 Edit the resulting 
30389 \family typewriter
30390 .tex
30391 \family default
30392  file with a text editor and make the following changes
30393 \end_layout
30394
30395 \begin_deeper
30396 \begin_layout Enumerate
30397
30398 \change_deleted 564990737 1670317155
30399 remove the comment lines before the 
30400 \family typewriter
30401
30402 \backslash
30403 documentclass
30404 \family default
30405  command,
30406 \end_layout
30407
30408 \begin_layout Enumerate
30409
30410 \change_deleted 564990737 1670317155
30411 remove everything between (and including) the 
30412 \family typewriter
30413
30414 \backslash
30415 makeatletter
30416 \family default
30417  and 
30418 \family typewriter
30419
30420 \backslash
30421 makeatother
30422 \family default
30423  commands, except for any commands you specifically put into the \SpecialChar LaTeX
30424  preamble.
30425 \end_layout
30426
30427 \begin_layout Standard
30428
30429 \change_deleted 564990737 1670317155
30430 Save the resulting 
30431 \family typewriter
30432 .tex
30433 \family default
30434  file.
30435 \end_layout
30436
30437 \end_deeper
30438 \begin_layout Enumerate
30439
30440 \change_deleted 564990737 1670317155
30441 Run the 
30442 \family typewriter
30443 .tex
30444 \family default
30445  file through \SpecialChar LaTeX
30446  as many times as necessary (usually up to three).
30447 \end_layout
30448
30449 \begin_layout Enumerate
30450
30451 \change_deleted 564990737 1670317155
30452 View the resulting 
30453 \family typewriter
30454 .dvi
30455 \family default
30456  document using, e.
30457 \begin_inset space \thinspace{}
30458 \end_inset
30459
30460 g.
30461 \begin_inset space \space{}
30462 \end_inset
30463
30464
30465 \family sans
30466 xdvi
30467 \family default
30468 , and check if everything is OK (it should, if you didn't make any mistake).
30469 \end_layout
30470
30471 \begin_layout Standard
30472
30473 \change_deleted 564990737 1670317155
30474 \begin_inset Quotes eld
30475 \end_inset
30476
30477 Peculiarities
30478 \begin_inset Quotes erd
30479 \end_inset
30480
30481  of the Kluwer package
30482 \begin_inset CommandInset label
30483 LatexCommand label
30484 name "subsec:kluwer_peculiarities"
30485
30486 \end_inset
30487
30488
30489 \end_layout
30490
30491 \begin_layout Standard
30492
30493 \change_deleted 564990737 1670317155
30494 The Kluwer package has the following 
30495 \begin_inset Quotes eld
30496 \end_inset
30497
30498 peculiarities
30499 \begin_inset Quotes erd
30500 \end_inset
30501
30502 .
30503 \end_layout
30504
30505 \begin_layout Enumerate
30506
30507 \change_deleted 564990737 1670317155
30508 It is possible to write multiple articles in the same \SpecialChar LaTeX
30509  file
30510 \begin_inset Foot
30511 status collapsed
30512
30513 \begin_layout Plain Layout
30514 I can't imagine any good reason to do this.
30515 \end_layout
30516
30517 \end_inset
30518
30519 .
30520  Each article must be included in the environment 
30521 \begin_inset Quotes eld
30522 \end_inset
30523
30524 article
30525 \begin_inset Quotes erd
30526 \end_inset
30527
30528 .
30529  Unfortunately, this environment cannot be omitted, even if you write just
30530  one article.
30531  Therefore, each article starts with the command 
30532 \family typewriter
30533
30534 \backslash
30535 begin{article}
30536 \family default
30537  and, obviously, ends with the command 
30538 \family typewriter
30539
30540 \backslash
30541 end{article}
30542 \family default
30543 .
30544  Although this can be implemented in \SpecialChar LyX
30545 , I didn't included it, since it looks
30546  ugly and can confuse the novice user.
30547  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
30548  code (the
30549  well-known 
30550 \begin_inset Quotes eld
30551 \end_inset
30552
30553 \SpecialChar TeX
30554  code
30555 \begin_inset Quotes erd
30556 \end_inset
30557
30558 ).
30559 \end_layout
30560
30561 \begin_layout Enumerate
30562
30563 \change_deleted 564990737 1670317155
30564 Information given at the beginning of the article (i.
30565 \begin_inset space \thinspace{}
30566 \end_inset
30567
30568 e.
30569 \begin_inset space \space{}
30570 \end_inset
30571
30572 title, subtitle, author, institution, running title, running author, abstract
30573  and keywords) must be included in an environment called 
30574 \begin_inset Quotes eld
30575 \end_inset
30576
30577 opening
30578 \begin_inset Quotes erd
30579 \end_inset
30580
30581 .
30582  This is not implemented in \SpecialChar LyX
30583 , so you must enter title, subtitle etc.
30584 \begin_inset space ~
30585 \end_inset
30586
30587 between two \SpecialChar TeX
30588  code lines (
30589 \family typewriter
30590
30591 \backslash
30592 begin{opening}
30593 \family default
30594  and 
30595 \family typewriter
30596
30597 \backslash
30598 end{opening}
30599 \family default
30600 ).
30601 \end_layout
30602
30603 \begin_layout Enumerate
30604
30605 \change_deleted 564990737 1670317155
30606 According to the user manual, the label of each bibliography item must be
30607  written as 
30608 \family typewriter
30609
30610 \backslash
30611 protect
30612 \backslash
30613 citeauthoryear{
30614 \family default
30615 \emph on
30616 author(s)
30617 \family typewriter
30618 \emph default
30619 }{
30620 \family default
30621 \emph on
30622 year
30623 \family typewriter
30624 \emph default
30625 }
30626 \family default
30627 .
30628 \end_layout
30629
30630 \begin_layout Standard
30631
30632 \change_deleted 564990737 1670317155
30633 The 
30634 \family typewriter
30635 kluwer.lyx
30636 \family default
30637  template takes care of all these 
30638 \begin_inset Quotes eld
30639 \end_inset
30640
30641 peculiarities
30642 \begin_inset Quotes erd
30643 \end_inset
30644
30645 .
30646  If you start a new paper using this template you don't need to do anything
30647  special.
30648  Just 
30649 \end_layout
30650
30651 \begin_layout Enumerate
30652
30653 \change_deleted 564990737 1670317155
30654 don't delete the \SpecialChar TeX
30655  code included in the template, and
30656 \end_layout
30657
30658 \begin_layout Enumerate
30659
30660 \change_deleted 564990737 1670317155
30661 copy the example bibliography item included in the template and modify it
30662  as necessary to enter new bibliography items.
30663 \end_layout
30664
30665 \begin_layout Standard
30666
30667 \change_deleted 564990737 1671097446
30668 Paper
30669 \end_layout
30670
30671 \begin_layout Standard
30672
30673 \change_deleted 564990737 1671097446
30674 The document class 
30675 \family sans
30676 paper
30677 \family default
30678  provides an alternative to the standard 
30679 \family sans
30680 article
30681 \family default
30682  class.
30683  It provides similar functionality, but you might prefer this layout with
30684  sans serif sections, headings, and more.
30685 \end_layout
30686
30687 \begin_layout Standard
30688
30689 \change_deleted 564990737 1671097446
30690 Springer Journals (
30691 \family sans
30692 svjour
30693 \family default
30694 )
30695 \end_layout
30696
30697 \begin_layout Standard
30698
30699 \change_deleted 564990737 1671097446
30700 by 
30701 \noun on
30702 Martin Vermeer
30703 \end_layout
30704
30705 \begin_layout Standard
30706
30707 \change_deleted 564990737 1671097446
30708 Description
30709 \end_layout
30710
30711 \begin_layout Standard
30712
30713 \change_deleted 564990737 1671097446
30714 These are the layout files for some of the journal formats used by Springer
30715  Verlag and listed on 
30716 \begin_inset Flex URL
30717 status collapsed
30718
30719 \begin_layout Plain Layout
30720
30721 http://www.springer.de/author/tex/help-journals.html
30722 \end_layout
30723
30724 \end_inset
30725
30726 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
30727  now!).
30728  It is a modular system: the things common to all journals are implemented
30729  in 
30730 \family typewriter
30731 svjour.inc
30732 \family default
30733 , which journal-specific layout files (such as, e.
30734 \begin_inset space \thinspace{}
30735 \end_inset
30736
30737 g.
30738 \begin_inset space \space{}
30739 \end_inset
30740
30741
30742 \family typewriter
30743 svjog.layout
30744 \family default
30745  for Journal of Geodesy) can include.
30746 \end_layout
30747
30748 \begin_layout Standard
30749
30750 \change_deleted 564990737 1671097446
30751 This means that implementing support for any other Springer journal on this
30752  list is as simple as writing your own 
30753 \family typewriter
30754 sv
30755 \family default
30756 <myjournal>
30757 \family typewriter
30758 .layout
30759 \family default
30760  file following the outline given in 
30761 \family typewriter
30762 svjog.layout
30763 \family default
30764 .
30765  
30766 \end_layout
30767
30768 \begin_layout Standard
30769
30770 \change_deleted 564990737 1671097446
30771 It is reasonably well tested only for the Journal of Geodesy.
30772  
30773 \family typewriter
30774 svjour
30775 \family default
30776  and 
30777 \family typewriter
30778 svjog
30779 \family default
30780  come with the standard \SpecialChar LyX
30781  distribution.
30782  Install the relevant class file (downloaded from Springer) in a proper
30783  directory, reconfigure \SpecialChar LaTeX
30784  (in the te\SpecialChar TeX
30785  case by running 
30786 \family typewriter
30787 texhash
30788 \family default
30789 , as root if necessary — doesn't \SpecialChar LyX
30790  take care of this?), reconfigure \SpecialChar LyX
30791  and
30792  it should work.
30793 \end_layout
30794
30795 \begin_layout Standard
30796
30797 \change_deleted 564990737 1671097446
30798 New styles
30799 \end_layout
30800
30801 \begin_layout Standard
30802
30803 \change_deleted 564990737 1671097446
30804 A large number of theorem-like styles — 
30805 \family sans
30806 Claim, Conjecture,
30807 \family default
30808  
30809 \family sans
30810 \SpecialChar ldots
30811 Theorem
30812 \family default
30813 .
30814 \end_layout
30815
30816 \begin_layout Standard
30817
30818 \change_deleted 564990737 1671097446
30819
30820 \family sans
30821 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
30822 _Title, Author_Running, Institute,
30823  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
30824 \family default
30825 .
30826  See the Springer class file documentation for details.
30827 \end_layout
30828
30829 \begin_layout Standard
30830
30831 \change_deleted 564990737 1671097446
30832 Supported journals
30833 \end_layout
30834
30835 \begin_layout Itemize
30836
30837 \change_deleted 564990737 1671097446
30838
30839 \emph on
30840 Journal of Geodesy
30841 \emph default
30842
30843 \family typewriter
30844 svjog.layout
30845 \family default
30846  — Martin Vermeer
30847 \end_layout
30848
30849 \begin_layout Itemize
30850
30851 \change_deleted 564990737 1671097446
30852
30853 \emph on
30854 Probability Theory and Related Fields
30855 \emph default
30856
30857 \family typewriter
30858 svprobth.layout
30859 \family default
30860  — Jean-Marc Lasgouttes
30861 \end_layout
30862
30863 \begin_layout Standard
30864
30865 \change_deleted 564990737 1671097446
30866 Add your own, it isn't so hard!
30867 \end_layout
30868
30869 \begin_layout Standard
30870
30871 \change_deleted 564990737 1671097446
30872 Credits
30873 \end_layout
30874
30875 \begin_layout Standard
30876
30877 \change_deleted 564990737 1671097446
30878 These files are partly based on the older 
30879 \family typewriter
30880 ejour2.layout
30881 \family default
30882 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
30883  2.09 style
30884  file from Springer.
30885  All this, and the 
30886 \family typewriter
30887 ejour2
30888 \family default
30889  layout, are now defunct.
30890  Jean-Marc Lasgouttes helped out big in making me find my way around the
30891  \SpecialChar LyX
30892  layout file mechanism.
30893 \end_layout
30894
30895 \begin_layout Standard
30896
30897 \change_deleted 564990737 1671097446
30898 Bugs
30899 \end_layout
30900
30901 \begin_layout Standard
30902
30903 \change_deleted 564990737 1671097446
30904 Probably.
30905  But probably less than in the old hacked-\SpecialChar LaTeX
30906  
30907 \family typewriter
30908 ejour2
30909 \family default
30910 .
30911 \end_layout
30912
30913 \begin_layout Chapter
30914 \SpecialChar LyX
30915  Features needing Extra Software
30916 \end_layout
30917
30918 \begin_layout Section
30919 Checking \SpecialChar TeX
30920
30921 \end_layout
30922
30923 \begin_layout Standard
30924 by 
30925 \noun on
30926 Asger Alstrup
30927 \end_layout
30928
30929 \begin_layout Subsection
30930 Introduction
30931 \end_layout
30932
30933 \begin_layout Standard
30934 If you have the 
30935 \family typewriter
30936 chktex
30937 \family default
30938  program installed
30939 \begin_inset Foot
30940 status collapsed
30941
30942 \begin_layout Plain Layout
30943
30944 \family typewriter
30945 chktex
30946 \family default
30947  is not yet available when you are using the \SpecialChar LaTeX
30948  distribution MiK\SpecialChar TeX
30949 .
30950 \end_layout
30951
30952 \end_inset
30953
30954 , you'll find in the 
30955 \family sans
30956 Tools
30957 \family default
30958  menu the entry: 
30959 \family sans
30960 Check
30961 \begin_inset space ~
30962 \end_inset
30963
30964 TeX
30965 \family default
30966 .
30967  You can get 
30968 \family typewriter
30969 chktex
30970 \family default
30971  from CTAN,
30972 \begin_inset Newline newline
30973 \end_inset
30974
30975
30976 \begin_inset CommandInset href
30977 LatexCommand href
30978 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
30979 literal "false"
30980
30981 \end_inset
30982
30983 .
30984 \end_layout
30985
30986 \begin_layout Standard
30987 The 
30988 \family sans
30989 Chk\SpecialChar TeX
30990
30991 \family default
30992  package is a program that was written by 
30993 \begin_inset Flex Noun
30994 status collapsed
30995
30996 \begin_layout Plain Layout
30997 Jens T.
30998 \begin_inset space ~
30999 \end_inset
31000
31001 Berger Thielemann
31002 \end_layout
31003
31004 \end_inset
31005
31006  in frustration because some constructs in \SpecialChar LaTeX
31007  are sometimes non-intuitive,
31008  and easy to forget.
31009  The program runs over your \SpecialChar LaTeX
31010  file, checks the integrity of the file, and
31011  flags some common errors.
31012  In other technical words, it is 
31013 \family typewriter
31014 lint
31015 \family default
31016  for \SpecialChar LaTeX
31017 .
31018 \end_layout
31019
31020 \begin_layout Standard
31021 Well, what is a syntax checker doing in \SpecialChar LyX
31022  which is supposed to produce correct
31023  \SpecialChar LaTeX
31024  anyways? The answer is simple: Just as 
31025 \family typewriter
31026 Lint
31027 \family default
31028  not only checks the 
31029 \emph on
31030 syntax
31031 \emph default
31032  of C programs, but also does 
31033 \emph on
31034 semantic
31035 \emph default
31036  checks for type-errors, 
31037 \family sans
31038 Chk\SpecialChar TeX
31039
31040 \family default
31041  catches some common 
31042 \emph on
31043 typographic
31044 \emph default
31045  errors, in addition to the syntactical ones.
31046  Specifically, 
31047 \family sans
31048 Chk\SpecialChar TeX
31049
31050 \family default
31051  is capable of detecting several common errors, such as
31052 \end_layout
31053
31054 \begin_layout Itemize
31055 Ellipsis detection:
31056 \begin_inset Newline newline
31057 \end_inset
31058
31059 Use \SpecialChar ldots
31060  instead of ...
31061 \end_layout
31062
31063 \begin_layout Itemize
31064 No space in front of/after parenthesis:
31065 \begin_inset Newline newline
31066 \end_inset
31067
31068 ( wrong spacing )
31069 \end_layout
31070
31071 \begin_layout Itemize
31072 Enforcement of normal space after common abbreviations:
31073 \begin_inset Newline newline
31074 \end_inset
31075
31076 e.
31077 \begin_inset space \thinspace{}
31078 \end_inset
31079
31080 g.
31081 \begin_inset space \space{}
31082 \end_inset
31083
31084 is too wide spacing.
31085 \end_layout
31086
31087 \begin_layout Itemize
31088 Enforcement of end-of-sentence space when the last sentence ends with a
31089  capital letter:
31090 \begin_inset Newline newline
31091 \end_inset
31092
31093 This is a TEST.
31094  And this is wrong spacing.
31095 \end_layout
31096
31097 \begin_layout Itemize
31098 Space in front of labels and similar commands:
31099 \begin_inset Newline newline
31100 \end_inset
31101
31102 The label should stick right up to the text to avoid falling to a wrong
31103  page.
31104  
31105 \begin_inset CommandInset label
31106 LatexCommand label
31107 name "sec:chktex"
31108
31109 \end_inset
31110
31111  
31112 \begin_inset Foot
31113 status collapsed
31114
31115 \begin_layout Plain Layout
31116 This footnote is in danger of falling off to a wrong page
31117 \end_layout
31118
31119 \end_inset
31120
31121  The label is separated too much.
31122 \end_layout
31123
31124 \begin_layout Itemize
31125 Space in front of references, instead of hard spaces:
31126 \begin_inset Newline newline
31127 \end_inset
31128
31129 If you have bad luck, the text will break right between the referenced text
31130  and reference number, and that's a pity.
31131  See section 
31132 \begin_inset CommandInset ref
31133 LatexCommand ref
31134 reference "sec:chktex"
31135
31136 \end_inset
31137
31138 .
31139 \end_layout
31140
31141 \begin_layout Itemize
31142 Use of 
31143 \begin_inset Quotes eld
31144 \end_inset
31145
31146 x
31147 \begin_inset Quotes erd
31148 \end_inset
31149
31150  instead of 
31151 \begin_inset Formula $\times$
31152 \end_inset
31153
31154  between numbers:
31155 \begin_inset Newline newline
31156 \end_inset
31157
31158 2x2 looks cheap compared to 
31159 \begin_inset Formula $2\times2$
31160 \end_inset
31161
31162 .
31163 \end_layout
31164
31165 \begin_layout Standard
31166 and more \SpecialChar ldots
31167  It is an invaluable tool when you are 
31168 \begin_inset Quotes eld
31169 \end_inset
31170
31171 finishing up
31172 \begin_inset Quotes erd
31173 \end_inset
31174
31175  your document before printing, and you should run it right after the obligatory
31176  spelling check, and before you go fine tuning the typesetting.
31177 \end_layout
31178
31179 \begin_layout Subsection
31180 How to use it
31181 \end_layout
31182
31183 \begin_layout Standard
31184 If you have the program installed, usage is as simple as choosing 
31185 \family sans
31186 Tools\SpecialChar menuseparator
31187 Check
31188 \begin_inset space ~
31189 \end_inset
31190
31191 TeX
31192 \family default
31193 .
31194  This will make \SpecialChar LyX
31195  generate a \SpecialChar LaTeX
31196  file of your document, start 
31197 \family sans
31198 Chk\SpecialChar TeX
31199
31200 \family default
31201  to check it, and then make \SpecialChar LyX
31202  insert 
31203 \begin_inset Quotes eld
31204 \end_inset
31205
31206 error boxes
31207 \begin_inset Quotes erd
31208 \end_inset
31209
31210  with the warnings from 
31211 \family sans
31212 Chk\SpecialChar TeX
31213
31214 \family default
31215 , if there were any.
31216  The warnings will be placed close to the point of the mistake, and you
31217  can quickly find them by using the 
31218 \family sans
31219 Navigate\SpecialChar menuseparator
31220 Error
31221 \family default
31222  menu item, or the shortcut key 
31223 \family sans
31224 C-g
31225 \family default
31226  from the default 
31227 \family typewriter
31228 cua
31229 \family default
31230  bind file.
31231  Open the error boxes by clicking on them with the mouse, or use the shortcut
31232  key 
31233 \family sans
31234 C-i
31235 \family default
31236  from 
31237 \family typewriter
31238 cua
31239 \family default
31240  bindings, or the corresponding 
31241 \family sans
31242 C-o
31243 \family default
31244  for the alternate 
31245 \family typewriter
31246 emacs
31247 \family default
31248  bind file.
31249  Read the warning and correct the mistake, if it is a mistake.
31250  If you have trouble understanding what the warning is about, you can safely
31251  ignore it.
31252  Remember that there is a hidden layer between the document on screen and
31253  the technical details in invoking 
31254 \family sans
31255 Chk\SpecialChar TeX
31256
31257 \family default
31258 , and this gap can make some warnings seem arcane or just plain silly.
31259 \end_layout
31260
31261 \begin_layout Standard
31262 This document is an excellent testing bed for the feature, and it should
31263  provide quite a few warnings for you to fiddle with.
31264  Since computers are only so smart, expect most of the warnings to be false
31265  alarms, though.
31266 \end_layout
31267
31268 \begin_layout Subsection
31269 How to fine tune it
31270 \end_layout
31271
31272 \begin_layout Standard
31273 Sometimes, you'll find that 
31274 \family sans
31275 Chk\SpecialChar TeX
31276
31277 \family default
31278  makes more noise than suits your mood.
31279  Then you can choose not to use it, wait until your mood changes, or try
31280  to customize 
31281 \family sans
31282 Chk\SpecialChar TeX
31283
31284 \family default
31285  to get better along with you.
31286 \end_layout
31287
31288 \begin_layout Standard
31289 Although 
31290 \family sans
31291 Chk\SpecialChar TeX
31292
31293 \family default
31294  
31295 \emph on
31296 is
31297 \emph default
31298  very configurable and extensible, you should not expect to solve all problems
31299  with 
31300 \family sans
31301 Chk\SpecialChar TeX
31302
31303 \family default
31304  in \SpecialChar LyX
31305  this way.
31306  Since \SpecialChar LyX
31307  has to generate a somewhat special \SpecialChar LaTeX
31308  file to be able to match the
31309  line numbers from the 
31310 \family sans
31311 Chk\SpecialChar TeX
31312
31313 \family default
31314  output
31315 \begin_inset Foot
31316 status collapsed
31317
31318 \begin_layout Plain Layout
31319 You can inspect the specific output from 
31320 \family sans
31321 chktex
31322 \family default
31323  by using 
31324 \family sans
31325 Document\SpecialChar menuseparator
31326 \SpecialChar LaTeX
31327
31328 \begin_inset space ~
31329 \end_inset
31330
31331 Log
31332 \family default
31333  right after a 
31334 \family sans
31335 chktex
31336 \family default
31337  run.
31338 \end_layout
31339
31340 \end_inset
31341
31342  to the internal document structure, some of the warnings will not appear
31343  correctly.
31344  There are two things you can do about this:
31345 \end_layout
31346
31347 \begin_layout Itemize
31348 Fine tune the 
31349 \family sans
31350 Chk\SpecialChar TeX
31351
31352 \family default
31353  invocation command line in 
31354 \begin_inset Flex Noun
31355 status collapsed
31356
31357 \begin_layout Plain Layout
31358 Tools\SpecialChar menuseparator
31359 Preferences\SpecialChar menuseparator
31360 Output\SpecialChar menuseparator
31361 LaTeX\SpecialChar menuseparator
31362 CheckTeX command
31363 \end_layout
31364
31365 \end_inset
31366
31367 , or the global 
31368 \family sans
31369 Chk\SpecialChar TeX
31370
31371 \family default
31372  installation configuration file (usually with the file 
31373 \family typewriter
31374 chktexrc
31375 \family default
31376 ).
31377  See below to learn what warnings can be enabled and disabled on the command
31378  line.
31379 \end_layout
31380
31381 \begin_layout Itemize
31382 Export your document as a raw \SpecialChar LaTeX
31383  file using 
31384 \family sans
31385 File\SpecialChar menuseparator
31386 Export\SpecialChar menuseparator
31387 \SpecialChar LaTeX
31388
31389 \family default
31390  and run 
31391 \family typewriter
31392 chktex
31393 \family default
31394  manually on that.
31395  Invoked in this way, it can be a hassle to find the corresponding place
31396  in the document inside \SpecialChar LyX
31397 , but with a little patience, you should be able
31398  to do it.
31399 \end_layout
31400
31401 \begin_layout Standard
31402 Here follows the warning messages that can be enabled and disabled in 
31403 \family sans
31404 Preferences
31405 \family default
31406 .
31407  Use 
31408 \family typewriter
31409 -n#
31410 \family default
31411  to disable a warning, and 
31412 \family typewriter
31413 -w#
31414 \family default
31415  to enable a warning.
31416  The emphasized entries are disabled by default, because the default is
31417  "
31418 \family typewriter
31419 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
31420 \family default
31421 ".
31422 \end_layout
31423
31424 \begin_layout Standard
31425 Notice that you should only use the options that enable and disable warnings,
31426  because \SpecialChar LyX
31427  relies on some of the other command line parameters to be set
31428  in a specific way to have a chance to communicate with 
31429 \family typewriter
31430 chktex
31431 \family default
31432 .
31433 \end_layout
31434
31435 \begin_layout Enumerate
31436
31437 \size small
31438 \emph on
31439 Command terminated with space.
31440 \end_layout
31441
31442 \begin_layout Enumerate
31443
31444 \size small
31445 Non-breaking space (
31446 \begin_inset Quotes eld
31447 \end_inset
31448
31449
31450 \family typewriter
31451 ~
31452 \family default
31453
31454 \begin_inset Quotes erd
31455 \end_inset
31456
31457 ) should have been used.
31458 \end_layout
31459
31460 \begin_layout Enumerate
31461
31462 \size small
31463 \emph on
31464 You should enclose the previous parenthesis with 
31465 \begin_inset Quotes eld
31466 \end_inset
31467
31468
31469 \family typewriter
31470 {}
31471 \family default
31472
31473 \begin_inset Quotes erd
31474 \end_inset
31475
31476 .
31477 \end_layout
31478
31479 \begin_layout Enumerate
31480
31481 \size small
31482 Italic correction (
31483 \begin_inset Quotes eld
31484 \end_inset
31485
31486
31487 \family typewriter
31488
31489 \backslash
31490 /
31491 \family default
31492
31493 \begin_inset Quotes erd
31494 \end_inset
31495
31496 ) found in non-italic buffer.
31497 \end_layout
31498
31499 \begin_layout Enumerate
31500
31501 \size small
31502 Italic correction (
31503 \begin_inset Quotes eld
31504 \end_inset
31505
31506
31507 \family typewriter
31508
31509 \backslash
31510 /
31511 \family default
31512
31513 \begin_inset Quotes erd
31514 \end_inset
31515
31516 ) found more than once.
31517 \end_layout
31518
31519 \begin_layout Enumerate
31520
31521 \size small
31522 \emph on
31523 No italic correction (
31524 \begin_inset Quotes eld
31525 \end_inset
31526
31527
31528 \family typewriter
31529
31530 \backslash
31531 /
31532 \family default
31533
31534 \begin_inset Quotes erd
31535 \end_inset
31536
31537 ) found.
31538 \end_layout
31539
31540 \begin_layout Enumerate
31541
31542 \size small
31543 Accent command 
31544 \begin_inset Quotes eld
31545 \end_inset
31546
31547
31548 \family typewriter
31549 cmd
31550 \family default
31551
31552 \begin_inset Quotes erd
31553 \end_inset
31554
31555  needs use of 
31556 \begin_inset Quotes eld
31557 \end_inset
31558
31559
31560 \family typewriter
31561 cmd
31562 \family default
31563
31564 \begin_inset Quotes erd
31565 \end_inset
31566
31567 .
31568 \end_layout
31569
31570 \begin_layout Enumerate
31571
31572 \size small
31573 Wrong length of dash may have been used.
31574 \end_layout
31575
31576 \begin_layout Enumerate
31577
31578 \size small
31579 \emph on
31580 \begin_inset Quotes eld
31581 \end_inset
31582
31583
31584 \family typewriter
31585 %s
31586 \family default
31587
31588 \begin_inset Quotes erd
31589 \end_inset
31590
31591  expected, found 
31592 \begin_inset Quotes eld
31593 \end_inset
31594
31595
31596 \family typewriter
31597 %s
31598 \family default
31599
31600 \begin_inset Quotes erd
31601 \end_inset
31602
31603 .
31604 \end_layout
31605
31606 \begin_layout Enumerate
31607
31608 \size small
31609 Solo 
31610 \begin_inset Quotes eld
31611 \end_inset
31612
31613
31614 \family typewriter
31615 %s
31616 \family default
31617
31618 \begin_inset Quotes erd
31619 \end_inset
31620
31621  found.
31622 \end_layout
31623
31624 \begin_layout Enumerate
31625
31626 \size small
31627 You should use 
31628 \begin_inset Quotes eld
31629 \end_inset
31630
31631
31632 \family typewriter
31633 %s
31634 \family default
31635
31636 \begin_inset Quotes erd
31637 \end_inset
31638
31639  to achieve an ellipsis.
31640 \end_layout
31641
31642 \begin_layout Enumerate
31643
31644 \size small
31645 Inter-word spacing (
31646 \begin_inset Quotes eld
31647 \end_inset
31648
31649
31650 \family typewriter
31651
31652 \backslash
31653
31654 \family default
31655  
31656 \begin_inset Quotes eld
31657 \end_inset
31658
31659 ) should perhaps be used.
31660 \end_layout
31661
31662 \begin_layout Enumerate
31663
31664 \size small
31665 Inter-sentence spacing (
31666 \begin_inset Quotes eld
31667 \end_inset
31668
31669
31670 \family typewriter
31671
31672 \backslash
31673 @
31674 \family default
31675
31676 \begin_inset Quotes erd
31677 \end_inset
31678
31679 ) should perhaps be used.
31680 \end_layout
31681
31682 \begin_layout Enumerate
31683
31684 \size small
31685 Could not find argument for command.
31686 \end_layout
31687
31688 \begin_layout Enumerate
31689
31690 \size small
31691 No match found for 
31692 \begin_inset Quotes eld
31693 \end_inset
31694
31695
31696 \family typewriter
31697 %s
31698 \family default
31699
31700 \begin_inset Quotes erd
31701 \end_inset
31702
31703 .
31704 \end_layout
31705
31706 \begin_layout Enumerate
31707
31708 \size small
31709 Math mode still on at end of \SpecialChar LaTeX
31710  file.
31711 \end_layout
31712
31713 \begin_layout Enumerate
31714
31715 \size small
31716 Number of 
31717 \begin_inset Quotes eld
31718 \end_inset
31719
31720
31721 \family typewriter
31722 char
31723 \family default
31724
31725 \begin_inset Quotes erd
31726 \end_inset
31727
31728  doesn't match the number of 
31729 \begin_inset Quotes eld
31730 \end_inset
31731
31732
31733 \family typewriter
31734 char
31735 \family default
31736
31737 \begin_inset Quotes erd
31738 \end_inset
31739
31740 .
31741 \end_layout
31742
31743 \begin_layout Enumerate
31744
31745 \size small
31746 You should use either 
31747 \family typewriter
31748
31749 \begin_inset Quotes eld
31750 \end_inset
31751
31752
31753 \family default
31754  or 
31755 \family typewriter
31756
31757 \begin_inset Quotes erd
31758 \end_inset
31759
31760
31761 \family default
31762  as an alternative to 
31763 \begin_inset Quotes eld
31764 \end_inset
31765
31766
31767 \family typewriter
31768 "
31769 \family default
31770
31771 \begin_inset Quotes erd
31772 \end_inset
31773
31774 .
31775 \end_layout
31776
31777 \begin_layout Enumerate
31778
31779 \size small
31780 You should use "
31781 \family typewriter
31782 '
31783 \family default
31784 " (ASCII 39) instead of "
31785 \family typewriter
31786 ´
31787 \family default
31788 " (ASCII 180).
31789 \end_layout
31790
31791 \begin_layout Enumerate
31792
31793 \size small
31794 User-specified pattern found.
31795 \end_layout
31796
31797 \begin_layout Enumerate
31798
31799 \size small
31800 This command might not be intended.
31801 \end_layout
31802
31803 \begin_layout Enumerate
31804
31805 \size small
31806 \emph on
31807 Comment displayed.
31808 \end_layout
31809
31810 \begin_layout Enumerate
31811
31812 \size small
31813 Either 
31814 \family typewriter
31815 ''
31816 \backslash
31817 ,'
31818 \family default
31819  or 
31820 \family typewriter
31821 '
31822 \backslash
31823 ,''
31824 \family default
31825  will look better.
31826 \end_layout
31827
31828 \begin_layout Enumerate
31829
31830 \size small
31831 Delete this space to maintain correct page references.
31832 \end_layout
31833
31834 \begin_layout Enumerate
31835
31836 \size small
31837 \emph on
31838 You might wish to put this between a pair of 
31839 \begin_inset Quotes eld
31840 \end_inset
31841
31842
31843 \family typewriter
31844 {}
31845 \family default
31846
31847 \begin_inset Quotes erd
31848 \end_inset
31849
31850 .
31851 \end_layout
31852
31853 \begin_layout Enumerate
31854
31855 \size small
31856 You ought to remove spaces in front of punctuation.
31857 \end_layout
31858
31859 \begin_layout Enumerate
31860
31861 \size small
31862 Could not execute \SpecialChar LaTeX
31863  command.
31864 \end_layout
31865
31866 \begin_layout Enumerate
31867
31868 \size small
31869 Don't use 
31870 \family typewriter
31871
31872 \backslash
31873 /
31874 \family default
31875  in front of small punctuation.
31876 \end_layout
31877
31878 \begin_layout Enumerate
31879
31880 \family typewriter
31881 \size small
31882 $
31883 \backslash
31884 times$
31885 \family default
31886  may look prettier here.
31887 \end_layout
31888
31889 \begin_layout Enumerate
31890
31891 \size small
31892 \emph on
31893 Multiple spaces detected in output.
31894 \end_layout
31895
31896 \begin_layout Enumerate
31897
31898 \size small
31899 This text may be ignored.
31900 \end_layout
31901
31902 \begin_layout Enumerate
31903
31904 \size small
31905 Use 
31906 \family typewriter
31907
31908 \begin_inset Quotes eld
31909 \end_inset
31910
31911
31912 \family default
31913  to begin quotation, not 
31914 \family typewriter
31915 '
31916 \family default
31917 .
31918 \end_layout
31919
31920 \begin_layout Enumerate
31921
31922 \size small
31923 Use 
31924 \family typewriter
31925 '
31926 \family default
31927  to end quotation, not 
31928 \family typewriter
31929
31930 \begin_inset Quotes eld
31931 \end_inset
31932
31933
31934 \family default
31935 .
31936 \end_layout
31937
31938 \begin_layout Enumerate
31939
31940 \size small
31941 Don't mix quotes.
31942 \end_layout
31943
31944 \begin_layout Enumerate
31945
31946 \size small
31947 You should perhaps use 
31948 \begin_inset Quotes eld
31949 \end_inset
31950
31951
31952 \family typewriter
31953 cmd
31954 \family default
31955
31956 \begin_inset Quotes erd
31957 \end_inset
31958
31959  instead.
31960 \end_layout
31961
31962 \begin_layout Enumerate
31963
31964 \size small
31965 You should put a space in front of/after parenthesis.
31966 \end_layout
31967
31968 \begin_layout Enumerate
31969
31970 \size small
31971 You should avoid spaces in front of/after parenthesis.
31972 \end_layout
31973
31974 \begin_layout Enumerate
31975
31976 \size small
31977 \emph on
31978 You should not use punctuation in front of/after quotes.
31979 \end_layout
31980
31981 \begin_layout Enumerate
31982
31983 \size small
31984 Double space found.
31985 \end_layout
31986
31987 \begin_layout Enumerate
31988
31989 \size small
31990 You should put punctuation outside inner/inside display math mode.
31991 \end_layout
31992
31993 \begin_layout Enumerate
31994
31995 \size small
31996 You ought to not use primitive \SpecialChar TeX
31997  in \SpecialChar LaTeX
31998  code.
31999 \end_layout
32000
32001 \begin_layout Enumerate
32002
32003 \size small
32004 You should remove spaces in front of 
32005 \begin_inset Quotes eld
32006 \end_inset
32007
32008
32009 \family typewriter
32010 %s
32011 \family default
32012
32013 \begin_inset Quotes erd
32014 \end_inset
32015
32016
32017 \end_layout
32018
32019 \begin_layout Enumerate
32020
32021 \size small
32022 \begin_inset Quotes eld
32023 \end_inset
32024
32025
32026 \family typewriter
32027 %s
32028 \family default
32029
32030 \begin_inset Quotes erd
32031 \end_inset
32032
32033  is normally not followed by 
32034 \begin_inset Quotes eld
32035 \end_inset
32036
32037
32038 \family typewriter
32039 %c
32040 \family default
32041
32042 \begin_inset Quotes erd
32043 \end_inset
32044
32045 .
32046 \end_layout
32047
32048 \begin_layout Standard
32049 In later versions of \SpecialChar LyX
32050 , we hope to provide a more complete interface to this
32051  tool (and it's smaller cousin 
32052 \family typewriter
32053 lacheck
32054 \family default
32055 ) to exploit the full power of it.
32056  But it's not exactly useless as it is now: go try it on one of your existing
32057  documents of a certain length and be surprised.
32058 \end_layout
32059
32060 \begin_layout Section
32061 Version Control in \SpecialChar LyX
32062
32063 \end_layout
32064
32065 \begin_layout Standard
32066 by
32067 \noun on
32068  Lars Gullik Bjønnes 
32069 \noun default
32070 and 
32071 \noun on
32072 Pavel Sanda
32073 \end_layout
32074
32075 \begin_layout Subsection
32076 Introduction
32077 \end_layout
32078
32079 \begin_layout Standard
32080 \SpecialChar LyX
32081  supports some of the most basic RCS/CVS/SVN/GIT commands.
32082  If you need something a bit more sophisticated you will have to do that
32083  manually in a terminal.
32084 \end_layout
32085
32086 \begin_layout Standard
32087 Also note that CVS support is not as good as subversion support, so we advise
32088  using SVN instead.
32089  A good place to start learning Subversion is the SVN Book
32090 \begin_inset Foot
32091 status collapsed
32092
32093 \begin_layout Plain Layout
32094 \begin_inset CommandInset href
32095 LatexCommand href
32096 target "http://svnbook.red-bean.com/"
32097 literal "false"
32098
32099 \end_inset
32100
32101
32102 \end_layout
32103
32104 \end_inset
32105
32106 .
32107  In the case of RCS you should read 
32108 \begin_inset Quotes eld
32109 \end_inset
32110
32111 rcsintro
32112 \begin_inset Quotes erd
32113 \end_inset
32114
32115  (a man file, read it with 
32116 \family typewriter
32117 man rcsintro
32118 \family default
32119 ).
32120  This file describes all the basic features of RCS.
32121  You should especially notice the comment about a RCS directory, and the
32122  notion of a master RCS file (the file ending in 
32123 \family typewriter
32124 ,v
32125 \family default
32126 ).
32127 \end_layout
32128
32129 \begin_layout Standard
32130 Before you begin to use the version control features in \SpecialChar LyX
32131 , you should be
32132  familiar with RCS/CVS/SVN/GIT usage.
32133  The implementation in \SpecialChar LyX
32134  assumes a recent version of the GNU RCS or CVS/SVN
32135  package — no guarantees are made for older versions.
32136  Most of the log messages are not currently displayed after operations —
32137  you can check them in the Messages pane if you are unsure.
32138  Regular users of version control will appreciate the VC toolbar, which
32139  can be enabled via 
32140 \family sans
32141 View\SpecialChar menuseparator
32142 Toolbars\SpecialChar menuseparator
32143 Version
32144 \begin_inset space ~
32145 \end_inset
32146
32147 Control
32148 \family default
32149 .
32150 \end_layout
32151
32152 \begin_layout Standard
32153 For introducing your own external commands consult 
32154 \begin_inset Flex Code
32155 status collapsed
32156
32157 \begin_layout Plain Layout
32158 vc-command
32159 \end_layout
32160
32161 \end_inset
32162
32163  in the manual 
32164 \emph on
32165 \SpecialChar LyX
32166  Functions
32167 \emph default
32168 .
32169 \end_layout
32170
32171 \begin_layout Standard
32172 It is strongly recommended to store documents in uncompressed format if
32173  using version control (uncheck 
32174 \family sans
32175 Document\SpecialChar menuseparator
32176 Compressed
32177 \family default
32178  if it is checked): Uncompressed LyX documents are text files and therefore
32179  for merging two different versions by version control systems.
32180  Compressed LyX documents are binary files, which cannot be merged by version
32181  control systems.
32182 \end_layout
32183
32184 \begin_layout Subsection
32185 RCS commands in \SpecialChar LyX
32186
32187 \end_layout
32188
32189 \begin_layout Standard
32190 The following sections describe the RCS commands supported by \SpecialChar LyX
32191 .
32192  You can find them in the 
32193 \family sans
32194 File\SpecialChar menuseparator
32195 Version
32196 \begin_inset space ~
32197 \end_inset
32198
32199 Control
32200 \family default
32201  submenu.
32202  \SpecialChar LyX
32203  was tested against RCS 5.7/5.8.
32204 \end_layout
32205
32206 \begin_layout Subsubsection
32207
32208 \family sans
32209 Register
32210 \end_layout
32211
32212 \begin_layout Standard
32213 If your document is not under revision control, this is the only item shown
32214  in the menu.
32215  And if it is under revision control, the 
32216 \family sans
32217 Register
32218 \family default
32219  item is not visible.
32220  
32221 \end_layout
32222
32223 \begin_layout Standard
32224 This command registers your document with RCS (unless you are under the
32225  directory managed by CVS)\SpecialChar endofsentence
32226  You are asked interactively to supply an initial
32227  description of the document.
32228  The document is now set in Read-Only mode and you have to 
32229 \family sans
32230 Check
32231 \begin_inset space ~
32232 \end_inset
32233
32234 Out
32235 \begin_inset space ~
32236 \end_inset
32237
32238 For
32239 \begin_inset space ~
32240 \end_inset
32241
32242 Edit
32243 \family default
32244 , before making any changes to it.
32245  A document under revision control has a 
32246 \begin_inset Quotes eld
32247 \end_inset
32248
32249 [RCS:<version> <locker>]
32250 \begin_inset Quotes erd
32251 \end_inset
32252
32253  item tagged to the filename in the minibuffer.
32254 \end_layout
32255
32256 \begin_layout Standard
32257 RCS command that is run:
32258 \end_layout
32259
32260 \begin_layout LyX-Code
32261
32262 \family typewriter
32263 ci -q -u -i -t-"<initial description>" <file-name>
32264 \end_layout
32265
32266 \begin_layout Standard
32267 Read 
32268 \family typewriter
32269 man ci
32270 \family default
32271  to understand the switches.
32272  
32273 \end_layout
32274
32275 \begin_layout Subsubsection
32276
32277 \family sans
32278 Check In Changes
32279 \end_layout
32280
32281 \begin_layout Standard
32282 When you are finished editing a file, you check in your changes.
32283  When you do this, you are asked for a description of the changes.
32284  This is stored in the history log.
32285  The version number is bumped, your changes are applied to the master RCS
32286  file, the document is unlocked and set to Read-Only mode.
32287 \end_layout
32288
32289 \begin_layout Itemize
32290 RCS command: 
32291 \family typewriter
32292 ci -q -u -m"<description>" <file-name>
32293 \end_layout
32294
32295 \begin_layout Subsubsection
32296
32297 \family sans
32298 Check Out For Edit
32299 \end_layout
32300
32301 \begin_layout Standard
32302 By doing this you lock the document so that only you can edit it.
32303  This will also make the document Read-Write only for you.
32304  You will usually continue editing for a while and when you are finished
32305  you check in your changes.
32306  The status line is changed to reflect that you have locked the file.
32307 \end_layout
32308
32309 \begin_layout Itemize
32310 RCS command: 
32311 \family typewriter
32312 co -q -l <file-name>
32313 \end_layout
32314
32315 \begin_layout Subsubsection
32316
32317 \family sans
32318 Revert To Repository Version
32319 \end_layout
32320
32321 \begin_layout Standard
32322 This will discard all changes made to the document since the last check
32323  in.
32324  You get a warning before changes are discarded.
32325 \end_layout
32326
32327 \begin_layout Itemize
32328 RCS command: 
32329 \family typewriter
32330 co -f -u<version> <file-name>
32331 \end_layout
32332
32333 \begin_layout Subsubsection
32334
32335 \family sans
32336 Copy
32337 \end_layout
32338
32339 \begin_layout Standard
32340 This will create a copy of the current document.
32341  Since RCS does not support copy operations natively, the version history
32342  is not preserved, and the copy is added as a new file.
32343  It requires a clean document without any changes since the last checkin.
32344  You are asked for a file name and a description of the copy operation.
32345  After that the copy is created, both locally and in the repository.
32346  If the parent directories of the copied and original document differ, all
32347  relative paths of included files of the copy are adjusted (like in 
32348 \family sans
32349 File\SpecialChar menuseparator
32350 Save As
32351 \family default
32352 \SpecialChar ldots
32353 ).
32354  Finally, the copy is loaded instead of the original document.
32355 \end_layout
32356
32357 \begin_layout Labeling
32358 \labelwidthstring 00.00.0000
32359 RCS
32360 \begin_inset space ~
32361 \end_inset
32362
32363 commands: 
32364 \begin_inset space ~
32365 \end_inset
32366
32367
32368 \begin_inset Newline newline
32369 \end_inset
32370
32371 Copy 
32372 \begin_inset Flex Code
32373 status collapsed
32374
32375 \begin_layout Plain Layout
32376
32377 \family typewriter
32378 \begin_inset Quotes qld
32379 \end_inset
32380
32381 <file-name>
32382 \begin_inset Quotes qld
32383 \end_inset
32384
32385
32386 \end_layout
32387
32388 \end_inset
32389
32390  to 
32391 \begin_inset Flex Code
32392 status collapsed
32393
32394 \begin_layout Plain Layout
32395
32396 \family typewriter
32397 \begin_inset Quotes qld
32398 \end_inset
32399
32400 <new-file-name>
32401 \begin_inset Quotes qld
32402 \end_inset
32403
32404
32405 \end_layout
32406
32407 \end_inset
32408
32409
32410 \begin_inset Newline newline
32411 \end_inset
32412
32413
32414 \begin_inset Flex Code
32415 status collapsed
32416
32417 \begin_layout Plain Layout
32418 ci -q -u 
32419 \family typewriter
32420 -i 
32421 \begin_inset Quotes qld
32422 \end_inset
32423
32424 <new-file-name>
32425 \begin_inset Quotes qld
32426 \end_inset
32427
32428
32429 \end_layout
32430
32431 \end_inset
32432
32433
32434 \end_layout
32435
32436 \begin_layout Subsubsection
32437
32438 \family sans
32439 Undo Last Checkin
32440 \end_layout
32441
32442 \begin_layout Standard
32443 This makes as if the last check in never happened.
32444  No changes are made to the document loaded into \SpecialChar LyX
32445 , but the last version
32446  is removed from the master RCS file.
32447 \end_layout
32448
32449 \begin_layout Itemize
32450 RCS command: 
32451 \family typewriter
32452 rcs -o<version> <file-name>
32453 \end_layout
32454
32455 \begin_layout Subsubsection
32456
32457 \family sans
32458 Show History
32459 \end_layout
32460
32461 \begin_layout Standard
32462 This shows the complete history of the RCS document.
32463  The output of 
32464 \family typewriter
32465 rlog <file-name>
32466 \family default
32467  is shown in a browser.
32468  See 
32469 \family typewriter
32470 man rlog
32471 \family default
32472  for more info.
32473 \end_layout
32474
32475 \begin_layout Subsubsection
32476 Revision info
32477 \end_layout
32478
32479 \begin_layout Standard
32480 \SpecialChar LyX
32481  supports RCS version number, author name, date and time of last commit.
32482  All those are extracted from 
32483 \family typewriter
32484 rlog -r <file-name>
32485 \family default
32486 .
32487  See 
32488 \begin_inset CommandInset ref
32489 LatexCommand ref
32490 reference "subsec:VCS-Revision-Information"
32491
32492 \end_inset
32493
32494  for details.
32495 \end_layout
32496
32497 \begin_layout Subsection
32498 CVS commands in \SpecialChar LyX
32499
32500 \end_layout
32501
32502 \begin_layout Standard
32503 A subset of CVS operations is supported by \SpecialChar LyX
32504 .
32505  You can find the commands in the 
32506 \family sans
32507 File\SpecialChar menuseparator
32508 Version
32509 \begin_inset space ~
32510 \end_inset
32511
32512 Control
32513 \family default
32514  submenu.
32515  The version control system SVN is more powerful, so please use it instead
32516  of CVS if possible.
32517 \end_layout
32518
32519 \begin_layout Subsubsection
32520
32521 \family sans
32522 General CVS usage
32523 \end_layout
32524
32525 \begin_layout Standard
32526 If you start from scratch with CVS you have to create your repository and
32527  checkout the working copy with external tools.
32528  If you're using a client-server setup you may need to login before doing
32529  the first repository checkout.
32530 \end_layout
32531
32532 \begin_layout Standard
32533 If your documents are under revision control and others are using the same
32534  repository problems arise when different changes to the same document at
32535  the same location happen.
32536  Standard CVS repositories don't operate with a file locking mechanism.
32537  This may be surprising, but conflicts only occur if people disagree on
32538  the proper content of the same part of a document.
32539  So, if co-workers are used to communicate regularly, these conflicts occur
32540  rarely.
32541  If they don't communicate they have a fundamental problem anyway.
32542  Nevertheless some people like to work with so called 
32543 \begin_inset Quotes eld
32544 \end_inset
32545
32546 reserved checkouts
32547 \begin_inset Quotes erd
32548 \end_inset
32549
32550 .
32551  If they do so the working copy of all files is readonly when checked out
32552  first and the user starts editing after using a special command to make
32553  the working copy writable.
32554  When the changes are checked in the working copy returns to readonly state.
32555  With \SpecialChar LyX
32556  one has to edit the 
32557 \begin_inset Flex Code
32558 status collapsed
32559
32560 \begin_layout Plain Layout
32561 .cvsrc
32562 \end_layout
32563
32564 \end_inset
32565
32566  file and add the line 
32567 \begin_inset Flex Code
32568 status collapsed
32569
32570 \begin_layout Plain Layout
32571 cvs -r
32572 \end_layout
32573
32574 \end_inset
32575
32576  to work with reserved checkouts.
32577  The benefit is the possibility to see who is using a writable copy of some
32578  document.
32579  It's not guaranteed only one user makes a copy writable.
32580 \end_layout
32581
32582 \begin_layout Standard
32583 \SpecialChar LyX
32584  tries to guess if you're using reserved or non-reserved checkouts.
32585  If your working copy is readonly or it is writable and an additional copy
32586  of your document exists in the CVS/Base sub-directory a reserved otherwise
32587  a non-reserved checkout is assumed.
32588  When a reserved checkout is detected you have to use 
32589 \begin_inset Flex Noun
32590 status collapsed
32591
32592 \begin_layout Plain Layout
32593 Check Out
32594 \end_layout
32595
32596 \end_inset
32597
32598  to make your working copy writable if it's readonly.
32599  After doing so the 
32600 \begin_inset Flex Noun
32601 status collapsed
32602
32603 \begin_layout Plain Layout
32604 Check In
32605 \end_layout
32606
32607 \end_inset
32608
32609  operation is possible and that makes your working copy readonly again after
32610  transferring your changes to the repository.
32611 \end_layout
32612
32613 \begin_layout Standard
32614 More information about CVS can be found here 
32615 \begin_inset Flex URL
32616 status collapsed
32617
32618 \begin_layout Plain Layout
32619
32620 http://www.nongnu.org/cvs
32621 \end_layout
32622
32623 \end_inset
32624
32625  and here 
32626 \begin_inset Flex URL
32627 status collapsed
32628
32629 \begin_layout Plain Layout
32630
32631 http://ximbiot.com/cvs
32632 \end_layout
32633
32634 \end_inset
32635
32636 .
32637 \end_layout
32638
32639 \begin_layout Standard
32640 Read 
32641 \family typewriter
32642 man cvs
32643 \family default
32644  to understand the sub-commands and the switches mentioned below.
32645 \end_layout
32646
32647 \begin_layout Subsubsection
32648
32649 \family sans
32650 Register
32651 \end_layout
32652
32653 \begin_layout Standard
32654 If your document is not under revision control, this is the only item shown
32655  in the menu.
32656  And if it is under revision control, the 
32657 \family sans
32658 Register
32659 \family default
32660  item is not visible.
32661  
32662 \end_layout
32663
32664 \begin_layout Standard
32665 This command registers in CVS your document 
32666 \begin_inset Flex Strong
32667 status collapsed
32668
32669 \begin_layout Plain Layout
32670
32671 \emph on
32672 only
32673 \end_layout
32674
32675 \end_inset
32676
32677  in the case you have already the documents directory under CVS control
32678  (in particular 
32679 \family typewriter
32680 CVS/Entries
32681 \family default
32682  file exists).
32683  This means you have to create or checkout the archive by yourself using
32684  external tools.
32685  (In case you forget that step \SpecialChar LyX
32686  registers the document with RCS.)
32687 \end_layout
32688
32689 \begin_layout Standard
32690 Then you are asked interactively to supply an initial description of the
32691  document.
32692  Don't forget that registered file is not yet checked in.
32693 \end_layout
32694
32695 \begin_layout Standard
32696 CVS command that is run: 
32697 \family typewriter
32698 cvs -q add -m"<entered message>" "<file-name>"
32699 \end_layout
32700
32701 \begin_layout Standard
32702 The term 
32703 \family typewriter
32704 "<file-name>"
32705 \family default
32706  above and for all other CVS commands is an abbreviation for 
32707 \begin_inset Quotes eld
32708 \end_inset
32709
32710 change the current working directory to file location and use the file name
32711  without path component as argument
32712 \begin_inset Quotes erd
32713 \end_inset
32714
32715 .
32716 \end_layout
32717
32718 \begin_layout Subsubsection
32719
32720 \family sans
32721 Check In Changes
32722 \end_layout
32723
32724 \begin_layout Standard
32725 When you are finished editing a file, you commit your changes.
32726  When you do this and you had changed the document, you are asked for a
32727  description of the changes.
32728  After that changes are written to the repository.
32729  In case you didn't change the document and a reserved checkout is detected
32730  the reservation made on 
32731 \begin_inset Flex Noun
32732 status collapsed
32733
32734 \begin_layout Plain Layout
32735 Check Out
32736 \end_layout
32737
32738 \end_inset
32739
32740  is undone.
32741 \end_layout
32742
32743 \begin_layout Labeling
32744 \labelwidthstring 00.00.0000
32745 CVS
32746 \begin_inset space ~
32747 \end_inset
32748
32749 command: 
32750 \begin_inset space ~
32751 \end_inset
32752
32753
32754 \begin_inset Newline newline
32755 \end_inset
32756
32757
32758 \begin_inset Flex Code
32759 status collapsed
32760
32761 \begin_layout Plain Layout
32762 cvs 
32763 \family typewriter
32764 -q commit -m"<description>" "<file-name>"
32765 \end_layout
32766
32767 \end_inset
32768
32769  or
32770 \begin_inset Newline newline
32771 \end_inset
32772
32773
32774 \begin_inset Flex Code
32775 status collapsed
32776
32777 \begin_layout Plain Layout
32778 cvs -q unedit 
32779 \family typewriter
32780 "<file-name>"
32781 \end_layout
32782
32783 \end_inset
32784
32785
32786 \end_layout
32787
32788 \begin_layout Subsubsection
32789
32790 \family sans
32791 Check Out Changes
32792 \end_layout
32793
32794 \begin_layout Standard
32795 When you are sharing a repository with others, you may have to incorporate
32796  their changes into your working copy.
32797 \end_layout
32798
32799 \begin_layout Standard
32800 CVS command: 
32801 \family typewriter
32802 cvs -q update "<file-name>"
32803 \end_layout
32804
32805 \begin_layout Standard
32806 If a readonly checkout is detected the working copy is made writable and
32807  reserved.
32808 \end_layout
32809
32810 \begin_layout Standard
32811 CVS command: 
32812 \family typewriter
32813 cvs -q edit "<file-name>"
32814 \end_layout
32815
32816 \begin_layout Subsubsection
32817
32818 \family sans
32819 Revert To Repository Version
32820 \end_layout
32821
32822 \begin_layout Standard
32823 This will discard all changes made to the document since the last check
32824  in.
32825  You get a warning before changes are discarded.
32826  Firstly the file is deleted, secondly CVS update command is run.
32827 \end_layout
32828
32829 \begin_layout Standard
32830 CVS command: 
32831 \family typewriter
32832 cvs -q update "<file-name>"
32833 \end_layout
32834
32835 \begin_layout Standard
32836 If a reserved checkout is detected and the working copy has no changes only
32837  the reservation is undone.
32838 \end_layout
32839
32840 \begin_layout Standard
32841 CVS command: 
32842 \family typewriter
32843 cvs -q unedit "<file-name>"
32844 \end_layout
32845
32846 \begin_layout Subsubsection
32847
32848 \family sans
32849 Copy
32850 \end_layout
32851
32852 \begin_layout Standard
32853 This will create a copy of the current document.
32854  Since CVS does not support copy operations natively, the version history
32855  is not preserved, and the copy is added as a new file.
32856  It requires a clean document without any changes since the last checkin.
32857  You are asked for a file name and a description of the copy operation.
32858  After that the copy is created, both locally and in the repository.
32859  If the parent directories of the copied and original document differ, all
32860  relative paths of included files of the copy are adjusted (like in 
32861 \family sans
32862 File\SpecialChar menuseparator
32863 Save As
32864 \family default
32865 \SpecialChar ldots
32866 ).
32867  Finally, the copy is loaded instead of the original document.
32868 \end_layout
32869
32870 \begin_layout Labeling
32871 \labelwidthstring 00.00.0000
32872 CVS
32873 \begin_inset space ~
32874 \end_inset
32875
32876 commands: 
32877 \begin_inset space ~
32878 \end_inset
32879
32880
32881 \begin_inset Newline newline
32882 \end_inset
32883
32884 Copy 
32885 \begin_inset Flex Code
32886 status collapsed
32887
32888 \begin_layout Plain Layout
32889 "<file-name>"
32890 \end_layout
32891
32892 \end_inset
32893
32894  to 
32895 \begin_inset Flex Code
32896 status collapsed
32897
32898 \begin_layout Plain Layout
32899 "<new-file-name>"
32900 \end_layout
32901
32902 \end_inset
32903
32904
32905 \begin_inset Newline newline
32906 \end_inset
32907
32908
32909 \begin_inset Flex Code
32910 status collapsed
32911
32912 \begin_layout Plain Layout
32913 cvs -q add "<new-file-name>"
32914 \end_layout
32915
32916 \end_inset
32917
32918
32919 \end_layout
32920
32921 \begin_layout Subsubsection
32922
32923 \family sans
32924 Rename
32925 \end_layout
32926
32927 \begin_layout Standard
32928 This will rename the current document.
32929  Since CVS does not support rename operations natively, the version history
32930  is not preserved, the renamed document is added as a new file, and the
32931  original document is deleted.
32932  It requires a clean document without any changes since the last checkin.
32933  You are asked for a file name and a description of the rename operation.
32934  After that the document is renamed, both locally and in the repository.
32935  If the parent directories of the new and old file names differ, all relative
32936  paths of included files are adjusted (like in 
32937 \family sans
32938 File\SpecialChar menuseparator
32939 Save As
32940 \family default
32941 \SpecialChar ldots
32942 ).
32943  Finally, the document is reloaded using the new name.
32944 \end_layout
32945
32946 \begin_layout Labeling
32947 \labelwidthstring 00.00.0000
32948 CVS
32949 \begin_inset space ~
32950 \end_inset
32951
32952 commands: 
32953 \begin_inset space ~
32954 \end_inset
32955
32956
32957 \begin_inset Newline newline
32958 \end_inset
32959
32960 Rename 
32961 \begin_inset Flex Code
32962 status collapsed
32963
32964 \begin_layout Plain Layout
32965 "<file-name>"
32966 \end_layout
32967
32968 \end_inset
32969
32970  to 
32971 \begin_inset Flex Code
32972 status collapsed
32973
32974 \begin_layout Plain Layout
32975 "<new-file-name>"
32976 \end_layout
32977
32978 \end_inset
32979
32980
32981 \begin_inset Newline newline
32982 \end_inset
32983
32984
32985 \begin_inset Flex Code
32986 status collapsed
32987
32988 \begin_layout Plain Layout
32989 cvs -q add "<new-file-name>"
32990 \end_layout
32991
32992 \end_inset
32993
32994
32995 \begin_inset Newline newline
32996 \end_inset
32997
32998
32999 \begin_inset Flex Code
33000 status collapsed
33001
33002 \begin_layout Plain Layout
33003 cvs -q remove "<file-name>"
33004 \end_layout
33005
33006 \end_inset
33007
33008
33009 \end_layout
33010
33011 \begin_layout Subsubsection
33012 Update of the local directory checkout from repository
33013 \end_layout
33014
33015 \begin_layout Standard
33016 Once your documents gets more complex, containing sub-documents and pictures,
33017  including external 
33018 \begin_inset Flex Code
33019 status collapsed
33020
33021 \begin_layout Plain Layout
33022 .tex
33023 \end_layout
33024
33025 \end_inset
33026
33027  files and so on using version control becomes more complicated.
33028  \SpecialChar LyX
33029  supports updating the whole tree in which resides the document.
33030  This become especially useful once you cooperate with people which neither
33031  have detailed knowledge about CVS usage nor they have ambition to commit
33032  additional material to the repository.
33033  You have to organize the files structure so that all external files are
33034  in the same directory or subdirectories of the document.
33035  It's good practice anyway to store multipart documents in an extra directory.
33036 \end_layout
33037
33038 \begin_layout Standard
33039 The 
33040 \begin_inset Flex Code
33041 status collapsed
33042
33043 \begin_layout Plain Layout
33044 Update local directory from repository
33045 \end_layout
33046
33047 \end_inset
33048
33049  command updates the whole directory.
33050  If local changes are detected user is warned before update starts.
33051  In case of merge conflicts both versions of the conflicting document parts
33052  are placed in the final document.
33053  You have to review and correct the result of the merge.
33054  You'll find the conflicts enclosed in pairs of 
33055 \begin_inset Flex Code
33056 status collapsed
33057
33058 \begin_layout Plain Layout
33059 <<<<<<<
33060 \end_layout
33061
33062 \end_inset
33063
33064  and 
33065 \begin_inset Flex Code
33066 status collapsed
33067
33068 \begin_layout Plain Layout
33069 >>>>>>>
33070 \end_layout
33071
33072 \end_inset
33073
33074  separated by 
33075 \begin_inset Flex Code
33076 status collapsed
33077
33078 \begin_layout Plain Layout
33079 =======
33080 \end_layout
33081
33082 \end_inset
33083
33084 .
33085  The first part is your version as before the update operation with the
33086  document name prepended.
33087  The second one is the repository version with the version number after
33088  the sequence of 
33089 \begin_inset Flex Code
33090 status collapsed
33091
33092 \begin_layout Plain Layout
33093 >
33094 \end_layout
33095
33096 \end_inset
33097
33098  signs.
33099 \end_layout
33100
33101 \begin_layout Labeling
33102 \labelwidthstring 00.00.0000
33103 CVS
33104 \begin_inset space ~
33105 \end_inset
33106
33107 commands: 
33108 \begin_inset space ~
33109 \end_inset
33110
33111
33112 \begin_inset Newline newline
33113 \end_inset
33114
33115
33116 \begin_inset Flex Code
33117 status collapsed
33118
33119 \begin_layout Plain Layout
33120 cd $path; cvs diff 
33121 \family typewriter
33122 "."
33123 \end_layout
33124
33125 \end_inset
33126
33127  (Ask if changes are detected.)
33128 \begin_inset Newline newline
33129 \end_inset
33130
33131
33132 \begin_inset Flex Code
33133 status collapsed
33134
33135 \begin_layout Plain Layout
33136 cd $path; cvs -q update 
33137 \family typewriter
33138 "."
33139 \end_layout
33140
33141 \end_inset
33142
33143
33144 \end_layout
33145
33146 \begin_layout Standard
33147 where 
33148 \begin_inset Flex Code
33149 status collapsed
33150
33151 \begin_layout Plain Layout
33152 $path
33153 \end_layout
33154
33155 \end_inset
33156
33157  stands for the path to the document.
33158 \end_layout
33159
33160 \begin_layout Subsubsection
33161
33162 \family sans
33163 Show History
33164 \end_layout
33165
33166 \begin_layout Standard
33167 This shows the complete history of the CVS document.
33168  The output of 
33169 \family typewriter
33170 cvs log "<file-name>"
33171 \family default
33172  is shown in a browser.
33173 \end_layout
33174
33175 \begin_layout Subsubsection
33176 Revision info
33177 \end_layout
33178
33179 \begin_layout Standard
33180 \SpecialChar LyX
33181  supports CVS version number, author name, date and time of last commit.
33182  All those are extracted from 
33183 \family typewriter
33184 cvs log -r <file-name>
33185 \family default
33186 .
33187  See 
33188 \begin_inset CommandInset ref
33189 LatexCommand ref
33190 reference "subsec:VCS-Revision-Information"
33191
33192 \end_inset
33193
33194  for details.
33195 \end_layout
33196
33197 \begin_layout Subsection
33198 SVN commands in \SpecialChar LyX
33199
33200 \end_layout
33201
33202 \begin_layout Standard
33203 SVN is now partially supported by \SpecialChar LyX
33204 .
33205  You can find the commands in the 
33206 \family sans
33207 File\SpecialChar menuseparator
33208 Version
33209 \begin_inset space ~
33210 \end_inset
33211
33212 Control
33213 \family default
33214  submenu.
33215  Please note that if you use password protected access to repository via
33216  ssh, you will be asked in terminal window.
33217  \SpecialChar LyX
33218  was tested against SVN 1.5, 1.6, 1.7 and 1.8
33219 \begin_inset Foot
33220 status collapsed
33221
33222 \begin_layout Plain Layout
33223 Most of the commands will work with 1.4 too, see 
33224 \begin_inset CommandInset ref
33225 LatexCommand ref
33226 reference "subsec:SVN-Repo-Update"
33227
33228 \end_inset
33229
33230 .
33231  There seems to be currently unresolved permissions problem under SVN 1.8
33232  with reverting changes when file is locked.
33233 \end_layout
33234
33235 \end_inset
33236
33237
33238 \end_layout
33239
33240 \begin_layout Subsubsection
33241
33242 \family sans
33243 Register
33244 \end_layout
33245
33246 \begin_layout Standard
33247 If your document is not under revision control, this is the only item shown
33248  in the menu.
33249  And if it is under revision control, the 
33250 \family sans
33251 Register
33252 \family default
33253  item is not visible.
33254 \end_layout
33255
33256 \begin_layout Standard
33257 This command registers in SVN your document ONLY in case you have already
33258  the documents directory under SVN control (in particular 
33259 \family typewriter
33260 .svn/entries
33261 \family default
33262  file exists).
33263  This means you have to checkout the archive by yourself.
33264 \end_layout
33265
33266 \begin_layout Standard
33267 Then you are asked interactively to supply an initial description of the
33268  document.
33269  Don't forget that registered file is not yet commited.
33270 \end_layout
33271
33272 \begin_layout Standard
33273 SVN command that is run: 
33274 \family typewriter
33275 svn add -q 
33276 \begin_inset Quotes qld
33277 \end_inset
33278
33279 <file-name>
33280 \begin_inset Quotes qld
33281 \end_inset
33282
33283
33284 \end_layout
33285
33286 \begin_layout Standard
33287 Read 
33288 \family typewriter
33289 man svn
33290 \family default
33291  to understand the switches.
33292 \end_layout
33293
33294 \begin_layout Subsubsection
33295
33296 \family sans
33297 Check In Changes
33298 \end_layout
33299
33300 \begin_layout Standard
33301 When you are finished editing a file, you commit your changes.
33302  When you do this, you are asked for a description of the changes.
33303  After that changes are commited.
33304 \end_layout
33305
33306 \begin_layout Standard
33307 SVN command:
33308 \begin_inset Foot
33309 status collapsed
33310
33311 \begin_layout Plain Layout
33312 In case locking is not enabled.
33313  See Section 
33314 \begin_inset CommandInset ref
33315 LatexCommand ref
33316 reference "subsec:SVN-File-Locking"
33317
33318 \end_inset
33319
33320 .
33321 \end_layout
33322
33323 \end_inset
33324
33325  
33326 \family typewriter
33327 svn commit -q -m"<description>" <file-name>
33328 \end_layout
33329
33330 \begin_layout Subsubsection
33331
33332 \family sans
33333 Check Out For Edit
33334 \end_layout
33335
33336 \begin_layout Standard
33337 Updates the changes of this file from the repository.
33338  Be sure you understand SVN merging and conflicts resolving before using
33339  this function, because all conflicts has to be resolved manually by you!
33340 \end_layout
33341
33342 \begin_layout Standard
33343 SVN command:
33344 \begin_inset Foot
33345 status collapsed
33346
33347 \begin_layout Plain Layout
33348 Ditto.
33349 \end_layout
33350
33351 \end_inset
33352
33353  
33354 \family typewriter
33355 svn update --non-interactive 
33356 \begin_inset Quotes qld
33357 \end_inset
33358
33359 <file-name>
33360 \begin_inset Quotes qld
33361 \end_inset
33362
33363
33364 \end_layout
33365
33366 \begin_layout Subsubsection
33367
33368 \family sans
33369 Revert To Repository Version
33370 \end_layout
33371
33372 \begin_layout Standard
33373 This will discard all changes made to the document since the last check
33374  in.
33375  You get a warning before changes are discarded.
33376 \end_layout
33377
33378 \begin_layout Standard
33379 SVN command: 
33380 \family typewriter
33381 svn revert -q 
33382 \begin_inset Quotes qld
33383 \end_inset
33384
33385 <file-name>
33386 \begin_inset Quotes qld
33387 \end_inset
33388
33389
33390 \end_layout
33391
33392 \begin_layout Subsubsection
33393
33394 \family sans
33395 Copy
33396 \end_layout
33397
33398 \begin_layout Standard
33399 This will create a copy of the current document including the version history.
33400  It requires a clean document without any changes since the last checkin.
33401  You are asked for a file name and a description of the copy operation.
33402  After that the copy is created, both locally and in the repository.
33403  If the parent directories of the copied and original document differ, all
33404  relative paths of included files of the copy are adjusted (like in 
33405 \family sans
33406 File\SpecialChar menuseparator
33407 Save As
33408 \family default
33409 \SpecialChar ldots
33410 ).
33411  Finally, the copy is loaded instead of the original document.
33412 \end_layout
33413
33414 \begin_layout Labeling
33415 \labelwidthstring 00.00.0000
33416 SVN
33417 \begin_inset space ~
33418 \end_inset
33419
33420 commands: 
33421 \begin_inset space ~
33422 \end_inset
33423
33424
33425 \begin_inset Newline newline
33426 \end_inset
33427
33428
33429 \begin_inset Flex Code
33430 status collapsed
33431
33432 \begin_layout Plain Layout
33433 svn copy -q 
33434 \family typewriter
33435
33436 \begin_inset Quotes qld
33437 \end_inset
33438
33439 <file-name>
33440 \begin_inset Quotes qld
33441 \end_inset
33442
33443  
33444 \begin_inset Quotes qld
33445 \end_inset
33446
33447 <new-file-name>
33448 \begin_inset Quotes qld
33449 \end_inset
33450
33451
33452 \end_layout
33453
33454 \end_inset
33455
33456
33457 \begin_inset Newline newline
33458 \end_inset
33459
33460
33461 \begin_inset Flex Code
33462 status collapsed
33463
33464 \begin_layout Plain Layout
33465 svn commit
33466 \end_layout
33467
33468 \end_inset
33469
33470
33471 \end_layout
33472
33473 \begin_layout Subsubsection
33474
33475 \family sans
33476 Rename
33477 \end_layout
33478
33479 \begin_layout Standard
33480 This will rename the current document including the version history.
33481  It requires a clean document without any changes since the last checkin.
33482  You are asked for a file name and a description of the rename operation.
33483  After that the document is renamed, both locally and in the repository.
33484  If the parent directories of the new and old file names differ, all relative
33485  paths of included files are adjusted (like in 
33486 \family sans
33487 File\SpecialChar menuseparator
33488 Save As
33489 \family default
33490 \SpecialChar ldots
33491 ).
33492  Finally, the document is reloaded using the new name.
33493 \end_layout
33494
33495 \begin_layout Labeling
33496 \labelwidthstring 00.00.0000
33497 SVN
33498 \begin_inset space ~
33499 \end_inset
33500
33501 commands: 
33502 \begin_inset space ~
33503 \end_inset
33504
33505
33506 \begin_inset Newline newline
33507 \end_inset
33508
33509
33510 \begin_inset Flex Code
33511 status collapsed
33512
33513 \begin_layout Plain Layout
33514 svn move -q 
33515 \family typewriter
33516
33517 \begin_inset Quotes qld
33518 \end_inset
33519
33520 <file-name>
33521 \begin_inset Quotes qld
33522 \end_inset
33523
33524  
33525 \begin_inset Quotes qld
33526 \end_inset
33527
33528 <new-file-name>
33529 \begin_inset Quotes qld
33530 \end_inset
33531
33532
33533 \end_layout
33534
33535 \end_inset
33536
33537
33538 \begin_inset Newline newline
33539 \end_inset
33540
33541
33542 \begin_inset Flex Code
33543 status collapsed
33544
33545 \begin_layout Plain Layout
33546 svn commit
33547 \end_layout
33548
33549 \end_inset
33550
33551
33552 \end_layout
33553
33554 \begin_layout Subsubsection
33555 \begin_inset CommandInset label
33556 LatexCommand label
33557 name "subsec:SVN-Repo-Update"
33558
33559 \end_inset
33560
33561 Update of the local directory checkout from repository
33562 \begin_inset Foot
33563 status collapsed
33564
33565 \begin_layout Plain Layout
33566 Note that this command will work only with subversion 
33567 \begin_inset Formula $\geqq1.5$
33568 \end_inset
33569
33570
33571 \end_layout
33572
33573 \end_inset
33574
33575
33576 \end_layout
33577
33578 \begin_layout Standard
33579 All the commands above have one shortcoming – they deal with the current
33580  document only.
33581  Once your document contains pictures, includes external 
33582 \begin_inset Flex Code
33583 status collapsed
33584
33585 \begin_layout Plain Layout
33586 .tex
33587 \end_layout
33588
33589 \end_inset
33590
33591  files and so on administration becomes more complicated.
33592  \SpecialChar LyX
33593  now supports updating the whole tree in which resides the document
33594 \begin_inset Foot
33595 status collapsed
33596
33597 \begin_layout Plain Layout
33598 One need to organize the files structure so that all external files are
33599  in the same directory or subdirectories of the document.
33600  
33601 \end_layout
33602
33603 \end_inset
33604
33605 .
33606  This become especially useful once you cooperate with people which neither
33607  know about subversion management nor they have ambition to commit additional
33608  material to the repository.
33609  
33610 \end_layout
33611
33612 \begin_layout Standard
33613 \begin_inset Flex Code
33614 status collapsed
33615
33616 \begin_layout Plain Layout
33617 Update local directory from repository
33618 \end_layout
33619
33620 \end_inset
33621
33622  command updates the whole directory and in case of merge conflicts local
33623  version of the files are left, so no unintended data loss occurs.
33624  If local changes are detected user is warned before update starts.
33625 \end_layout
33626
33627 \begin_layout Labeling
33628 \labelwidthstring 00.00.0000
33629 SVN
33630 \begin_inset space ~
33631 \end_inset
33632
33633 commands: 
33634 \begin_inset space ~
33635 \end_inset
33636
33637
33638 \begin_inset Newline newline
33639 \end_inset
33640
33641
33642 \begin_inset Flex Code
33643 status collapsed
33644
33645 \begin_layout Plain Layout
33646 svn diff $path
33647 \end_layout
33648
33649 \end_inset
33650
33651  (Ask if changes are detected.)
33652 \begin_inset Newline newline
33653 \end_inset
33654
33655
33656 \begin_inset Flex Code
33657 status collapsed
33658
33659 \begin_layout Plain Layout
33660 svn update --accept mine-full $path
33661 \end_layout
33662
33663 \end_inset
33664
33665
33666 \end_layout
33667
33668 \begin_layout Standard
33669 where 
33670 \begin_inset Flex Code
33671 status collapsed
33672
33673 \begin_layout Plain Layout
33674 $path
33675 \end_layout
33676
33677 \end_inset
33678
33679  stands for the path to the document.
33680 \end_layout
33681
33682 \begin_layout Subsubsection
33683
33684 \family sans
33685 Show History
33686 \end_layout
33687
33688 \begin_layout Standard
33689 This shows the complete history of the SVN document.
33690  The output of 
33691 \family typewriter
33692 svn log 
33693 \begin_inset Quotes qld
33694 \end_inset
33695
33696 <file-name>
33697 \begin_inset Quotes qld
33698 \end_inset
33699
33700
33701 \family default
33702  is shown in a browser.
33703 \end_layout
33704
33705 \begin_layout Subsubsection
33706 File Locking
33707 \begin_inset CommandInset label
33708 LatexCommand label
33709 name "subsec:SVN-File-Locking"
33710
33711 \end_inset
33712
33713
33714 \end_layout
33715
33716 \begin_layout Standard
33717 The file exchange through various revision control systems brings the problem
33718  of merge conflicts in case two different users try to edit the same (parts
33719  of) document.
33720  When such a conflict happens it needs manual resolving and one reasonable
33721  alternative is to provide some kind of locking mechanism, which guarantees
33722  that only one user is allowed to edit file at the given time.
33723 \end_layout
33724
33725 \begin_layout Standard
33726 SVN has two such mechanisms to provide mutual exclusivity for file access
33727  – locks and automatic setting of write permissions (see sec.
33728  
33729 \begin_inset CommandInset ref
33730 LatexCommand ref
33731 reference "subsec:Automatical-Locking-Property"
33732
33733 \end_inset
33734
33735 ) based on 
33736 \begin_inset Flex Code
33737 status collapsed
33738
33739 \begin_layout Plain Layout
33740 svn:needs-lock
33741 \end_layout
33742
33743 \end_inset
33744
33745  file svn property
33746 \begin_inset Foot
33747 status collapsed
33748
33749 \begin_layout Plain Layout
33750 \begin_inset Flex URL
33751 status open
33752
33753 \begin_layout Plain Layout
33754
33755 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
33756 \end_layout
33757
33758 \end_inset
33759
33760
33761 \end_layout
33762
33763 \end_inset
33764
33765 .
33766  If this property is detected for a given document \SpecialChar LyX
33767  starts to use SVN locks
33768  for document editing automatically and the whole check-in/out mechanism
33769  switches to the same regimen as for RCS.
33770  This in particular means there are two different modes of file use in \SpecialChar LyX
33771 :
33772 \end_layout
33773
33774 \begin_layout Itemize
33775 Unlocked state.
33776  The loaded file is in the read-only mode.
33777  For editing on needs to check-out.
33778  
33779 \emph on
33780 Check-out
33781 \emph default
33782  consists of updating from the repository and gaining write lock.
33783  If the lock is not possible to obtain, we remain in unlocked state.
33784 \end_layout
33785
33786 \begin_layout Itemize
33787 Locked state.
33788  The loaded file is in the 
33789 \begin_inset Quotes els
33790 \end_inset
33791
33792 normal
33793 \begin_inset Quotes ers
33794 \end_inset
33795
33796  edit mode.
33797  No other user is allowed to edit the file.
33798  
33799 \emph on
33800 Check-in
33801 \emph default
33802  consists of commiting changes and releasing write-lock.
33803  If no changes have been made to the document, no commit will be produced
33804 \begin_inset Foot
33805 status collapsed
33806
33807 \begin_layout Plain Layout
33808 Don't be puzzled by the fact that you will be asked for commit message anyway.
33809 \end_layout
33810
33811 \end_inset
33812
33813  and only the write-lock will be released.
33814 \end_layout
33815
33816 \begin_layout Standard
33817 SVN commands:
33818 \end_layout
33819
33820 \begin_layout Labeling
33821 \labelwidthstring 00.00.0000
33822 Check-in:
33823 \family typewriter
33824  svn commit -q -m"<description>" "<file-name>"
33825 \begin_inset Newline newline
33826 \end_inset
33827
33828 svn unlock "<file-name>"
33829 \end_layout
33830
33831 \begin_layout Labeling
33832 \labelwidthstring 00.00.0000
33833 Check-out: 
33834 \family typewriter
33835 svn update "<file-name>"
33836 \begin_inset Newline newline
33837 \end_inset
33838
33839 svn lock "<file-name>"
33840 \end_layout
33841
33842 \begin_layout Subsubsection
33843
33844 \family typewriter
33845 \begin_inset CommandInset label
33846 LatexCommand label
33847 name "subsec:Automatical-Locking-Property"
33848
33849 \end_inset
33850
33851
33852 \family default
33853 Automatic Locking Property
33854 \end_layout
33855
33856 \begin_layout Standard
33857 The above mentioned automatic setting of write permissions of the .lyx file
33858  can be set through
33859 \family sans
33860  File\SpecialChar menuseparator
33861 Version
33862 \begin_inset space ~
33863 \end_inset
33864
33865 Control\SpecialChar menuseparator
33866 Use Locking Property
33867 \family default
33868 .
33869  This command is active only when the file is not locked on the svn server
33870  (i.e.
33871  you need to check-out before proceeding).
33872 \end_layout
33873
33874 \begin_layout Labeling
33875 \labelwidthstring 00.00.0000
33876 SVN
33877 \begin_inset space ~
33878 \end_inset
33879
33880 commands:
33881 \end_layout
33882
33883 \begin_layout Labeling
33884 \labelwidthstring 00.00.0000
33885 Set:
33886 \family typewriter
33887  svn propset svn:needs-lock ON "<file-name>"
33888 \end_layout
33889
33890 \begin_layout Labeling
33891 \labelwidthstring 00.00.0000
33892 Unset: 
33893 \family typewriter
33894 svn propdel svn:needs-lock "<file-name>"
33895 \end_layout
33896
33897 \begin_layout Subsubsection
33898 \begin_inset CommandInset label
33899 LatexCommand label
33900 name "subsec:VCS-Revision-Information"
33901
33902 \end_inset
33903
33904 Revision Information in Documents
33905 \end_layout
33906
33907 \begin_layout Standard
33908 There are more possibilities how to activate revision information in our
33909  document.
33910 \end_layout
33911
33912 \begin_layout Itemize
33913 \SpecialChar LyX
33914  supports directly:
33915 \end_layout
33916
33917 \begin_deeper
33918 \begin_layout Itemize
33919 tree revision information (
33920 \begin_inset Flex Code
33921 status collapsed
33922
33923 \begin_layout Plain Layout
33924 vcs-tree-revision
33925 \end_layout
33926
33927 \end_inset
33928
33929 ).
33930  The result is the output of the 
33931 \begin_inset Flex Code
33932 status collapsed
33933
33934 \begin_layout Plain Layout
33935 svnversion
33936 \end_layout
33937
33938 \end_inset
33939
33940  command, the following table gives you an idea, how to read the results.
33941 \end_layout
33942
33943 \begin_layout Standard
33944 \align center
33945 \begin_inset Tabular
33946 <lyxtabular version="3" rows="6" columns="2">
33947 <features tabularvalignment="middle">
33948 <column alignment="left" valignment="top">
33949 <column alignment="left" valignment="top">
33950 <row>
33951 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
33952 \begin_inset Text
33953
33954 \begin_layout Plain Layout
33955
33956 \series bold
33957 Output
33958 \end_layout
33959
33960 \end_inset
33961 </cell>
33962 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
33963 \begin_inset Text
33964
33965 \begin_layout Plain Layout
33966
33967 \series bold
33968 Meaning
33969 \end_layout
33970
33971 \end_inset
33972 </cell>
33973 </row>
33974 <row>
33975 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
33976 \begin_inset Text
33977
33978 \begin_layout Plain Layout
33979 4123:4168
33980 \end_layout
33981
33982 \end_inset
33983 </cell>
33984 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
33985 \begin_inset Text
33986
33987 \begin_layout Plain Layout
33988 mixed revision working copy
33989 \end_layout
33990
33991 \end_inset
33992 </cell>
33993 </row>
33994 <row>
33995 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
33996 \begin_inset Text
33997
33998 \begin_layout Plain Layout
33999 4168M
34000 \end_layout
34001
34002 \end_inset
34003 </cell>
34004 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34005 \begin_inset Text
34006
34007 \begin_layout Plain Layout
34008 modified working copy
34009 \end_layout
34010
34011 \end_inset
34012 </cell>
34013 </row>
34014 <row>
34015 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34016 \begin_inset Text
34017
34018 \begin_layout Plain Layout
34019 4123S
34020 \end_layout
34021
34022 \end_inset
34023 </cell>
34024 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34025 \begin_inset Text
34026
34027 \begin_layout Plain Layout
34028 switched working copy
34029 \end_layout
34030
34031 \end_inset
34032 </cell>
34033 </row>
34034 <row>
34035 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34036 \begin_inset Text
34037
34038 \begin_layout Plain Layout
34039 4123P
34040 \end_layout
34041
34042 \end_inset
34043 </cell>
34044 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34045 \begin_inset Text
34046
34047 \begin_layout Plain Layout
34048 partial working copy, from a sparse checkout
34049 \end_layout
34050
34051 \end_inset
34052 </cell>
34053 </row>
34054 <row>
34055 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34056 \begin_inset Text
34057
34058 \begin_layout Plain Layout
34059 4123:4168MS
34060 \end_layout
34061
34062 \end_inset
34063 </cell>
34064 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34065 \begin_inset Text
34066
34067 \begin_layout Plain Layout
34068 mixed revision, modified, switched working copy
34069 \end_layout
34070
34071 \end_inset
34072 </cell>
34073 </row>
34074 </lyxtabular>
34075
34076 \end_inset
34077
34078
34079 \end_layout
34080
34081 \begin_layout Itemize
34082 file revision information.
34083  The result comes from parsing the output of 
34084 \begin_inset Flex Code
34085 status collapsed
34086
34087 \begin_layout Plain Layout
34088 svn
34089 \begin_inset space ~
34090 \end_inset
34091
34092 info
34093 \begin_inset space ~
34094 \end_inset
34095
34096 --xml
34097 \begin_inset space ~
34098 \end_inset
34099
34100 file.lyx
34101 \end_layout
34102
34103 \end_inset
34104
34105 .
34106  Supported flags are:
34107 \end_layout
34108
34109 \begin_deeper
34110 \begin_layout Itemize
34111 version number of the last commit (
34112 \begin_inset Flex Code
34113 status collapsed
34114
34115 \begin_layout Plain Layout
34116 vcs-revision
34117 \end_layout
34118
34119 \end_inset
34120
34121 )
34122 \end_layout
34123
34124 \begin_layout Itemize
34125 author of the last commit (
34126 \begin_inset Flex Code
34127 status collapsed
34128
34129 \begin_layout Plain Layout
34130 vcs-author
34131 \end_layout
34132
34133 \end_inset
34134
34135 )
34136 \end_layout
34137
34138 \begin_layout Itemize
34139 date of the last commit (
34140 \begin_inset Flex Code
34141 status collapsed
34142
34143 \begin_layout Plain Layout
34144 vcs-date
34145 \end_layout
34146
34147 \end_inset
34148
34149 )
34150 \end_layout
34151
34152 \begin_layout Itemize
34153 time of the last commit (
34154 \begin_inset Flex Code
34155 status collapsed
34156
34157 \begin_layout Plain Layout
34158 vcs-time
34159 \end_layout
34160
34161 \end_inset
34162
34163 )
34164 \end_layout
34165
34166 \end_deeper
34167 \begin_layout Standard
34168 You can obtain this info via InsetInfo (
34169 \change_inserted 5863208 1564400022
34170
34171 \lang american
34172 Insert\SpecialChar menuseparator
34173 Field\SpecialChar menuseparator
34174 Version Control Revision
34175 \change_deleted 5863208 1564399852
34176
34177 \lang english
34178 e.g.
34179  
34180 \begin_inset Flex Code
34181 status collapsed
34182
34183 \begin_layout Plain Layout
34184 info-insert buffer vcs-date
34185 \end_layout
34186
34187 \end_inset
34188
34189
34190 \change_unchanged
34191 ).
34192  The information will be available only when you have the file stored under
34193  svn managment (i.e.
34194  the 
34195 \begin_inset Flex Code
34196 status collapsed
34197
34198 \begin_layout Plain Layout
34199 .svn
34200 \end_layout
34201
34202 \end_inset
34203
34204  directory is available with your document).
34205 \end_layout
34206
34207 \end_deeper
34208 \begin_layout Itemize
34209 Another—a hacking one—possibility is to use svn keywords
34210 \begin_inset Foot
34211 status collapsed
34212
34213 \begin_layout Plain Layout
34214 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
34215 \end_layout
34216
34217 \end_inset
34218
34219 .
34220  In short – you set file keywords property (e.g.
34221  
34222 \family sans
34223 svn propset svn:keywords 'Rev' file.lyx
34224 \family default
34225 ) and then paste keyword \SpecialChar TeX
34226  code
34227 \begin_inset Foot
34228 status collapsed
34229
34230 \begin_layout Plain Layout
34231 This is an easy way how to ensure that \SpecialChar LyX
34232  won't break the line in the middle
34233  of keyword tag.
34234 \end_layout
34235
34236 \end_inset
34237
34238  tag in your document (e.g.
34239  
34240 \begin_inset Flex Code
34241 status collapsed
34242
34243 \begin_layout Plain Layout
34244 $Rev$
34245 \end_layout
34246
34247 \end_inset
34248
34249 ).
34250  This way svn client will automatically substitute revision number (e.g.
34251  
34252 \begin_inset Flex Code
34253 status collapsed
34254
34255 \begin_layout Plain Layout
34256 $Rev: 59 $
34257 \end_layout
34258
34259 \end_inset
34260
34261 ) after each update and commit.
34262  There are more problems with this approach.
34263  Firstly, the '$' character is used in \SpecialChar TeX
34264  world for math equations, so any
34265  occurence of math formula 
34266 \begin_inset Formula $Rev$
34267 \end_inset
34268
34269  become 
34270 \begin_inset Formula $Rev:59$
34271 \end_inset
34272
34273  in your \SpecialChar LyX
34274  document.
34275  Similarly for other keywords like Id, Date, Author, etc.
34276  Secondly svn output is dependent on your locales, so its very easy that
34277  svn would produce some problematic strings once Date is used.
34278  Thirdly you get the whole 'Rev: 59' string in your document instead of
34279  the plain number.
34280  Until subversion implements user's custom keywords it will be hard to use
34281  this approach reliably or let \SpecialChar LyX
34282  to support it directly.
34283 \end_layout
34284
34285 \begin_layout Subsection
34286 SVN and Windows Environment
34287 \end_layout
34288
34289 \begin_layout Quote
34290 My inclination is to say that if the user cannot figure out the command
34291  line operations on their own fairly quickly, they would be well advised
34292  to use TortoiseSVN.
34293  —P.
34294  A.
34295  Rubin
34296 \end_layout
34297
34298 \begin_layout Subsubsection
34299 Preparation
34300 \end_layout
34301
34302 \begin_layout Standard
34303 In addition to installing \SpecialChar LyX
34304 , and having access to a Subversion repository,
34305  the user will need to install the Subversion client program.
34306  A Windows installer for the client program is available from 
34307 \begin_inset CommandInset href
34308 LatexCommand href
34309 name "CollabNet"
34310 target "http://www.collab.net/nonav/downloads/subversion/"
34311 literal "false"
34312
34313 \end_inset
34314
34315 .
34316  The user may also want to install 
34317 \begin_inset CommandInset href
34318 LatexCommand href
34319 name "TortoiseSVN"
34320 target "http://tortoisesvn.tigris.org/"
34321 literal "false"
34322
34323 \end_inset
34324
34325 , which integrates Subversion operations into the context (rightclick) menu
34326  of Windows Explorer.
34327  Operations done outside \SpecialChar LyX
34328  will typically be more convenient using the Explorer
34329  context menu.
34330  Note that TortoiseSVN is not a replacement for the client program, which
34331  is what \SpecialChar LyX
34332  itself will use.
34333 \end_layout
34334
34335 \begin_layout Subsubsection
34336 Bringing a document under Subversion control
34337 \end_layout
34338
34339 \begin_layout Standard
34340 Before a \SpecialChar LyX
34341  document can be brought under version control in Subversion, its
34342  parent directory needs to be under version control.
34343  If the document is being added to a project already in the repository,
34344  this is accomplished by checking the project out to the directory where
34345  the new document will be placed.
34346  If the project itself is not yet under version control (for instance, if
34347  this document starts a new project), the directory must be imported into
34348  the repository.
34349  This is done outside \SpecialChar LyX
34350 .
34351  Both import and checkout are easily accomplished from the Explorer context
34352  menu using TortoiseSVN, or alternatively can be done using the command
34353  line client at a DOS prompt.
34354  The procedure for importing the project using TortoiseSVN is described
34355  below, assuming an existing repository and a new project being started
34356  in 
34357 \family typewriter
34358 C:
34359 \backslash
34360 new project
34361 \family default
34362 .
34363  For information on using the Subversion client program, run 
34364 \family typewriter
34365 svn --help 
34366 \family default
34367 in a DOS shell.
34368 \end_layout
34369
34370 \begin_layout Enumerate
34371 Locate 
34372 \family typewriter
34373 C:
34374 \backslash
34375 new project 
34376 \family default
34377 in Windows Explorer, right click it, and select 
34378 \family sans
34379 TortoiseSVN\SpecialChar menuseparator
34380 Repo-browser
34381 \family default
34382 .
34383  If necessary, adjust the URL for the repository, then click OK.
34384 \end_layout
34385
34386 \begin_layout Enumerate
34387 Right click the level of the repository under which you want to place the
34388  new project folder (typically the top level) and click 
34389 \family sans
34390 Create folder
34391 \family default
34392  Supply a name for the project folder and click OK.
34393  Add a message for the log file if desired, then click OK again.
34394  The new project folder should appear in the repository.
34395  Finally, click OK again to exit the repository browser.
34396 \end_layout
34397
34398 \begin_layout Enumerate
34399 Once again right click 
34400 \family typewriter
34401 C:
34402 \backslash
34403 new project
34404 \family default
34405 , this time selecting SVN Checkout\SpecialChar ldots
34406  Select the URL of the project folder
34407  you just created in the repository, and set the checkout directory to 
34408 \family typewriter
34409 C:
34410 \backslash
34411 new project.
34412
34413 \family default
34414  Click OK.
34415  You will be warned about a non-empty folder; click OK to proceed.
34416  You should now have a 
34417 \family typewriter
34418 .svn
34419 \family default
34420  directory under 
34421 \family typewriter
34422 C:
34423 \backslash
34424 new project.
34425 \end_layout
34426
34427 \begin_layout Enumerate
34428 Create or open your document in \SpecialChar LyX
34429  and click 
34430 \family sans
34431 File\SpecialChar menuseparator
34432 Version
34433 \begin_inset space ~
34434 \end_inset
34435
34436 Control\SpecialChar menuseparator
34437 Register.
34438  
34439 \family default
34440 Add a log message and click OK to commit the document to version control.
34441 \end_layout
34442
34443 \begin_layout Standard
34444 From this point onward, you should have full functionality in the 
34445 \family sans
34446 File\SpecialChar menuseparator
34447 Version
34448 \begin_inset space ~
34449 \end_inset
34450
34451 Control
34452 \family default
34453  menu.
34454  You also have the option of checking the document in and out, viewing its
34455  history, etc.
34456  using the TortoiseSVN context menu in Windows Explorer or the Subversion
34457  client program from a command prompt.
34458 \end_layout
34459
34460 \begin_layout Subsubsection
34461 SSH tunnel used with SVN under Windows
34462 \end_layout
34463
34464 \begin_layout Standard
34465 Compared with Linux setting up an svn client to communicate over ssh under
34466  Windows is a rather troublesome task.
34467  We will at least offer some hints how to setup the client side but prior
34468  knowledge about ssh and the Windows command line is needed, also be prepared
34469  for a great deal of frustration\SpecialChar ldots
34470
34471 \end_layout
34472
34473 \begin_layout Enumerate
34474 Get an svn client for windows, as described in the previous sections.
34475  When it is a fresh install run some svn command (e.g.
34476  
34477 \begin_inset Flex Code
34478 status collapsed
34479
34480 \begin_layout Plain Layout
34481 svn --version
34482 \end_layout
34483
34484 \end_inset
34485
34486 ) to create config files, which you will need to change later on.
34487 \end_layout
34488
34489 \begin_layout Enumerate
34490 Choose an ssh client for Windows.
34491  There are several possibilities, we will use the one from Putty tools
34492 \begin_inset Foot
34493 status collapsed
34494
34495 \begin_layout Plain Layout
34496 \begin_inset Flex URL
34497 status collapsed
34498
34499 \begin_layout Plain Layout
34500
34501 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
34502 \end_layout
34503
34504 \end_inset
34505
34506
34507 \end_layout
34508
34509 \end_inset
34510
34511 .
34512  You will need to set the connection up so that the client doesn't ask for
34513  any password from you.
34514  To keep things easy we will use only keys without any additional password
34515  protection etc.
34516 \end_layout
34517
34518 \begin_deeper
34519 \begin_layout Enumerate
34520 Generate keys by 
34521 \begin_inset Flex Code
34522 status collapsed
34523
34524 \begin_layout Plain Layout
34525 puttygen
34526 \end_layout
34527
34528 \end_inset
34529
34530 .
34531  Save your private .ppk key file and put the public one on the server side.
34532  If the SVN server runs on Linux, note that the format of the public key
34533  is not compatible with Linux openssh and you will need to direcly copy-paste
34534  the key from the 
34535 \begin_inset Quotes eld
34536 \end_inset
34537
34538
34539 \emph on
34540 Public key for pasting into OpenSSH authorized_keys file
34541 \emph default
34542 :
34543 \begin_inset Quotes erd
34544 \end_inset
34545
34546  edit field into the server's 
34547 \begin_inset Flex Code
34548 status collapsed
34549
34550 \begin_layout Plain Layout
34551 ~/.ssh/authorized_keys
34552 \end_layout
34553
34554 \end_inset
34555
34556  / 
34557 \begin_inset Flex Code
34558 status collapsed
34559
34560 \begin_layout Plain Layout
34561 authorized_keys2
34562 \end_layout
34563
34564 \end_inset
34565
34566  file.
34567 \end_layout
34568
34569 \begin_layout Enumerate
34570 Get the Putty's 
34571 \begin_inset Flex Code
34572 status collapsed
34573
34574 \begin_layout Plain Layout
34575 plink
34576 \end_layout
34577
34578 \end_inset
34579
34580 .
34581  In the SVN config file
34582 \begin_inset Foot
34583 status collapsed
34584
34585 \begin_layout Plain Layout
34586 Exact path depends on Windows version, usually somewhere around 
34587 \begin_inset Flex Code
34588 status collapsed
34589
34590 \begin_layout Plain Layout
34591 c:
34592 \backslash
34593 Documents and Settings
34594 \backslash
34595 user
34596 \backslash
34597 Application Data
34598 \backslash
34599 Subversion
34600 \backslash
34601 config
34602 \end_layout
34603
34604 \end_inset
34605
34606  / 
34607 \begin_inset Flex Code
34608 status collapsed
34609
34610 \begin_layout Plain Layout
34611 AppData
34612 \backslash
34613 Roaming
34614 \backslash
34615 Subversion
34616 \end_layout
34617
34618 \end_inset
34619
34620 .
34621 \end_layout
34622
34623 \end_inset
34624
34625 , section [tunnels], setup ssh command, e.g.
34626  
34627 \begin_inset Flex Code
34628 status collapsed
34629
34630 \begin_layout Plain Layout
34631 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
34632 \end_layout
34633
34634 \end_inset
34635
34636 .
34637 \begin_inset Foot
34638 status collapsed
34639
34640 \begin_layout Plain Layout
34641 It will usually take a lot of time to get exact command right and it depends
34642  on many things.
34643  For example do not have some remote server saved as a default session in
34644  Putty etc.
34645  If things fail, try to connect via plink without SVN first.
34646 \end_layout
34647
34648 \end_inset
34649
34650
34651 \end_layout
34652
34653 \end_deeper
34654 \begin_layout Enumerate
34655 Checkout the SVN archive, e.
34656 \begin_inset space \thinspace{}
34657 \end_inset
34658
34659 g.
34660 \begin_inset Newline newline
34661 \end_inset
34662
34663
34664 \begin_inset Flex Code
34665 status collapsed
34666
34667 \begin_layout Plain Layout
34668 svn co svn+ssh://user@server/repository_path
34669 \end_layout
34670
34671 \end_inset
34672
34673 .
34674 \end_layout
34675
34676 \begin_layout Subsubsection
34677 End-of-Line Conversions
34678 \end_layout
34679
34680 \begin_layout Standard
34681 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
34682  will
34683  use different line endings inside the .lyx files.
34684  This is not a problem as far as \SpecialChar LyX
34685  functionality is concerned, but the commit
34686  diffs will be huge and merge-conflicts prone.
34687  Fortunately SVN itself knows
34688 \begin_inset Foot
34689 status collapsed
34690
34691 \begin_layout Plain Layout
34692 \begin_inset Flex URL
34693 status collapsed
34694
34695 \begin_layout Plain Layout
34696
34697 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
34698 \end_layout
34699
34700 \end_inset
34701
34702
34703 \end_layout
34704
34705 \end_inset
34706
34707  how to deal with CR/LF problems when switching .lyx files to the 
34708 \begin_inset Flex Code
34709 status collapsed
34710
34711 \begin_layout Plain Layout
34712 native
34713 \end_layout
34714
34715 \end_inset
34716
34717  mode.
34718 \begin_inset Foot
34719 status collapsed
34720
34721 \begin_layout Plain Layout
34722 For the lazy guys: 
34723 \begin_inset Flex Code
34724 status collapsed
34725
34726 \begin_layout Plain Layout
34727 svn propset svn:eol-style native FILE_NAME
34728 \end_layout
34729
34730 \end_inset
34731
34732
34733 \end_layout
34734
34735 \end_inset
34736
34737
34738 \end_layout
34739
34740 \begin_layout Subsection
34741 GIT commands in \SpecialChar LyX
34742
34743 \end_layout
34744
34745 \begin_layout Standard
34746 A minimal subset of GIT commands is now supported by \SpecialChar LyX
34747 .
34748  You can find the commands in the 
34749 \family sans
34750 File\SpecialChar menuseparator
34751 Version
34752 \begin_inset space ~
34753 \end_inset
34754
34755 Control
34756 \family default
34757  submenu.
34758  Please note that if you use password protected access to repository via
34759  ssh, you will be asked in terminal window.
34760  \SpecialChar LyX
34761  was tested against GIT 1.7.
34762 \begin_inset Foot
34763 status collapsed
34764
34765 \begin_layout Plain Layout
34766 Windows users please note that you need to ensure that git is on the path.
34767  This can be set from within \SpecialChar LyX
34768  at 
34769 \family sans
34770 Tools\SpecialChar menuseparator
34771 Preferences\SpecialChar menuseparator
34772 Paths\SpecialChar menuseparator
34773 PATH prefix
34774 \family default
34775 .
34776 \end_layout
34777
34778 \end_inset
34779
34780
34781 \end_layout
34782
34783 \begin_layout Standard
34784 One big difference of GIT and the other supported version control systems
34785  is the distributed nature of GIT: With traditional version control systems
34786  there is one central server which hosts the repository.
34787  Users commit their changes to the server, and get updates made by other
34788  users from it.
34789  With GIT, users commit to a local repository.
34790  The local repository can be synchronized with one or more remote repositories
34791  using the 
34792 \begin_inset Flex Code
34793 status collapsed
34794
34795 \begin_layout Plain Layout
34796 pull
34797 \end_layout
34798
34799 \end_inset
34800
34801  and 
34802 \begin_inset Flex Code
34803 status collapsed
34804
34805 \begin_layout Plain Layout
34806 push
34807 \end_layout
34808
34809 \end_inset
34810
34811  GIT commands.
34812  \SpecialChar LyX
34813  does not interact in any way with remote GIT repositories.
34814  It works exclusively with the local repository in a very similar way as
34815  with a central CVS or SVN repository.
34816  If you use remote GIT repositories you need to do the 
34817 \begin_inset Flex Code
34818 status collapsed
34819
34820 \begin_layout Plain Layout
34821 pull
34822 \end_layout
34823
34824 \end_inset
34825
34826  and 
34827 \begin_inset Flex Code
34828 status collapsed
34829
34830 \begin_layout Plain Layout
34831 push
34832 \end_layout
34833
34834 \end_inset
34835
34836  operations with your favourite GIT client.
34837 \end_layout
34838
34839 \begin_layout Subsubsection
34840
34841 \family sans
34842 Register
34843 \end_layout
34844
34845 \begin_layout Standard
34846 If your document is not under revision control, this is the only item shown
34847  in the menu.
34848  And if it is under revision control, the 
34849 \family sans
34850 Register
34851 \family default
34852  item is not visible.
34853 \end_layout
34854
34855 \begin_layout Standard
34856 This command registers in GIT your document ONLY in case you have already
34857  the documents directory under GIT control (in particular 
34858 \family typewriter
34859 .git/index
34860 \family default
34861  file exists).
34862  This means you have to checkout the archive by yourself.
34863 \end_layout
34864
34865 \begin_layout Standard
34866 Then you are asked interactively to supply an initial description of the
34867  document.
34868  Don't forget that registered file is not yet committed.
34869 \end_layout
34870
34871 \begin_layout Standard
34872 GIT command that is run: 
34873 \family typewriter
34874 git add 
34875 \begin_inset Quotes qld
34876 \end_inset
34877
34878 <file-name>
34879 \begin_inset Quotes qld
34880 \end_inset
34881
34882
34883 \end_layout
34884
34885 \begin_layout Standard
34886 Read 
34887 \family typewriter
34888 man git
34889 \family default
34890  to understand the switches.
34891 \end_layout
34892
34893 \begin_layout Subsubsection
34894
34895 \family sans
34896 Check In Changes
34897 \end_layout
34898
34899 \begin_layout Standard
34900 When you are finished editing a file, you commit your changes.
34901  When you do this, you are asked for a description of the changes.
34902  After that changes are committed.
34903 \end_layout
34904
34905 \begin_layout Standard
34906 GIT command: 
34907 \family typewriter
34908 git commit -q -m"<description>" <file-name>
34909 \end_layout
34910
34911 \begin_layout Subsubsection
34912
34913 \family sans
34914 Revert To Repository Version
34915 \end_layout
34916
34917 \begin_layout Standard
34918 This will discard all changes made to the document since the last check
34919  in.
34920  You get a warning before changes are discarded.
34921 \end_layout
34922
34923 \begin_layout Standard
34924 GIT command: 
34925 \family typewriter
34926 git checkout -q 
34927 \begin_inset Quotes qld
34928 \end_inset
34929
34930 <file-name>
34931 \begin_inset Quotes qld
34932 \end_inset
34933
34934
34935 \end_layout
34936
34937 \begin_layout Subsubsection
34938
34939 \family sans
34940 Rename
34941 \end_layout
34942
34943 \begin_layout Standard
34944 This will rename the current document including the version history.
34945  It requires a clean document without any changes since the last checkin.
34946  You are asked for a file name and a description of the rename operation.
34947  After that the document is renamed, both locally and in the repository.
34948  If the parent directories of the new and old file names differ, all relative
34949  paths of included files are adjusted (like in 
34950 \family sans
34951 File\SpecialChar menuseparator
34952 Save As
34953 \family default
34954 \SpecialChar ldots
34955 ).
34956  Finally, the document is reloaded using the new name.
34957 \end_layout
34958
34959 \begin_layout Labeling
34960 \labelwidthstring 00.00.0000
34961 GIT
34962 \begin_inset space ~
34963 \end_inset
34964
34965 commands: 
34966 \begin_inset space ~
34967 \end_inset
34968
34969
34970 \begin_inset Newline newline
34971 \end_inset
34972
34973
34974 \begin_inset Flex Code
34975 status collapsed
34976
34977 \begin_layout Plain Layout
34978 git mv 
34979 \family typewriter
34980
34981 \begin_inset Quotes qld
34982 \end_inset
34983
34984 <file-name>
34985 \begin_inset Quotes qld
34986 \end_inset
34987
34988  
34989 \begin_inset Quotes qld
34990 \end_inset
34991
34992 <new-file-name>
34993 \begin_inset Quotes qld
34994 \end_inset
34995
34996
34997 \end_layout
34998
34999 \end_inset
35000
35001
35002 \begin_inset Newline newline
35003 \end_inset
35004
35005
35006 \begin_inset Flex Code
35007 status collapsed
35008
35009 \begin_layout Plain Layout
35010 git commit
35011 \end_layout
35012
35013 \end_inset
35014
35015
35016 \end_layout
35017
35018 \begin_layout Subsubsection
35019
35020 \family sans
35021 Show History
35022 \end_layout
35023
35024 \begin_layout Standard
35025 This shows the complete history of the GIT document.
35026  The output of 
35027 \family typewriter
35028 git log 
35029 \begin_inset Quotes qld
35030 \end_inset
35031
35032 <file-name>
35033 \begin_inset Quotes qld
35034 \end_inset
35035
35036
35037 \family default
35038  is shown in a browser.
35039 \end_layout
35040
35041 \begin_layout Subsubsection
35042 Version Info
35043 \end_layout
35044
35045 \begin_layout Standard
35046 \SpecialChar LyX
35047  supports GIT hash number of the last commit to the file, 
35048 \change_inserted 1119979965 1564297456
35049 its abbreviated form, 
35050 \change_unchanged
35051 author name, date and time of last commit.
35052  All those are extracted from 
35053 \family typewriter
35054 git log -n 1 --pretty=format:%H%n
35055 \change_inserted 1119979965 1564297427
35056 %h%n
35057 \change_unchanged
35058 %an%n%ai
35059 \family default
35060 .
35061  Tree version information is obtained via 
35062 \family typewriter
35063 git describe --abbrev --dirty --long
35064 \family default
35065 .
35066  See 
35067 \begin_inset CommandInset ref
35068 LatexCommand ref
35069 reference "subsec:VCS-Revision-Information"
35070
35071 \end_inset
35072
35073  for other details.
35074 \end_layout
35075
35076 \begin_layout Subsection
35077 Further tuning
35078 \end_layout
35079
35080 \begin_layout Standard
35081 With the recent addition of the 
35082 \begin_inset Flex Code
35083 status collapsed
35084
35085 \begin_layout Plain Layout
35086 vc-command
35087 \end_layout
35088
35089 \end_inset
35090
35091  function \SpecialChar LyX
35092  power users are allowed to create their own commands for revision
35093  control.
35094 \end_layout
35095
35096 \begin_layout Standard
35097 As an example you can see how two TortoiseSVN commands could be integrated
35098  directly:
35099 \end_layout
35100
35101 \begin_layout Description
35102 Commit: 
35103 \begin_inset Flex Code
35104 status collapsed
35105
35106 \begin_layout Plain Layout
35107 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
35108 \end_layout
35109
35110 \end_inset
35111
35112
35113 \end_layout
35114
35115 \begin_layout Description
35116 Revert: 
35117 \begin_inset Flex Code
35118 status collapsed
35119
35120 \begin_layout Plain Layout
35121 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
35122 \end_layout
35123
35124 \end_inset
35125
35126
35127 \end_layout
35128
35129 \begin_layout Subsection
35130 Version control and Document comparison
35131 \end_layout
35132
35133 \begin_layout Standard
35134 One of the typical uses of version control is to inspect the changes between
35135  revisions, usually by creating 
35136 \begin_inset Flex Code
35137 status collapsed
35138
35139 \begin_layout Plain Layout
35140 diff
35141 \end_layout
35142
35143 \end_inset
35144
35145  dumps.
35146  While this is useful for plain text files, it is much less useful in the
35147  case of \SpecialChar LyX
35148  files, which have more a complicated structure.
35149  Hence we provide binding to the Document comparison feature.
35150  There are two ways of calling this feature – either by direct call of 
35151 \begin_inset Flex Code
35152 status collapsed
35153
35154 \begin_layout Plain Layout
35155 vc-compare
35156 \end_layout
35157
35158 \end_inset
35159
35160  \SpecialChar LyX
35161  function (for details see \SpecialChar LyX
35162  functions manual) or by the toolbar icon 
35163 \begin_inset Info
35164 type  "icon"
35165 arg   "vc-compare"
35166 \end_inset
35167
35168  or the menu item 
35169 \begin_inset Info
35170 type  "menu"
35171 arg   "vc-compare"
35172 \end_inset
35173
35174 , respectively.
35175  One can either compare two chosen revisions of the document or he can simply
35176  compare the current version of edited text with older revisions (where
35177  '
35178 \begin_inset Flex Noun
35179 status collapsed
35180
35181 \begin_layout Plain Layout
35182 0
35183 \end_layout
35184
35185 \end_inset
35186
35187 ' revisions back means comparison of the edited file with last commited
35188  revision).
35189  
35190 \end_layout
35191
35192 \begin_layout Standard
35193 This feature is supported for SVN and RCS though due to the more complicated
35194  versioning scheme of RCS there is a constraint – when addressing the revisions
35195  in dialog, numbers always point to the last number in RCS revision number,
35196  i.e.
35197  '35' in '1.2.35'.
35198  We don't currently support GIT addressing of revisions, one can just compare
35199  edited document with its revision X steps backs, where X is addressed as
35200  
35201 \begin_inset Flex Code
35202 status collapsed
35203
35204 \begin_layout Plain Layout
35205 HEAD~X
35206 \end_layout
35207
35208 \end_inset
35209
35210 .
35211 \end_layout
35212
35213 \begin_layout Section
35214
35215 \change_inserted 564990737 1672161575
35216 \begin_inset CommandInset label
35217 LatexCommand label
35218 name "sec:Literate-Programming"
35219
35220 \end_inset
35221
35222
35223 \change_unchanged
35224 Literate Programming
35225 \end_layout
35226
35227 \begin_layout Standard
35228 Updated by 
35229 \noun on
35230 Kayvan Sylvan 
35231 \noun default
35232 (kayvan@sylvan.com)
35233 \noun on
35234
35235 \noun default
35236 original documentation written by 
35237 \noun on
35238 Edmar Wienskoski Jr.
35239
35240 \noun default
35241  (edmar-w-jr@technologist.com)
35242 \end_layout
35243
35244 \begin_layout Subsection
35245 Introduction
35246 \end_layout
35247
35248 \begin_layout Standard
35249 The main purpose of this documentation is to show you how to use \SpecialChar LyX
35250  for literate
35251  programming, where it is assumed that you are familiar with this programming
35252  technique, and know what 
35253 \begin_inset Quotes eld
35254 \end_inset
35255
35256 tangling
35257 \begin_inset Quotes erd
35258 \end_inset
35259
35260  and 
35261 \begin_inset Quotes eld
35262 \end_inset
35263
35264 weaving
35265 \begin_inset Quotes erd
35266 \end_inset
35267
35268  means.
35269  If that is not the case, please follow the web links provided in the following
35270  sections.
35271  There is a lot of good documentation out there covering old development
35272  history to the latest tools tips.
35273 \end_layout
35274
35275 \begin_layout Standard
35276 It is also assumed that you are familiar with \SpecialChar LyX
35277  itself to a point that you
35278  are comfortable changing your \SpecialChar LyX
35279  preferences, and X resources file.
35280  If that is not the case please refer to other \SpecialChar LyX
35281  documentation to cover your
35282  specific needs.
35283 \end_layout
35284
35285 \begin_layout Subsection
35286 Literate Programming
35287 \end_layout
35288
35289 \begin_layout Standard
35290 From the Literate Programming FAQ: 
35291 \end_layout
35292
35293 \begin_layout Quotation
35294 Literate programming is the combination of documentation and source together
35295  in a fashion suited for reading by human beings.
35296  In fact, literate programs should be enjoyable reading, even inviting!
35297  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
35298  and documentation in a single file.
35299  Literate programming tools then parse the file to produce either readable
35300  documentation or compilable source.
35301  The WEB style of literate programming was created by D.
35302 \begin_inset space \thinspace{}
35303 \end_inset
35304
35305 E.
35306  Knuth during the development of his \SpecialChar TeX
35307  typesetting software.
35308  
35309 \end_layout
35310
35311 \begin_layout Standard
35312 Another excerpt says:
35313 \end_layout
35314
35315 \begin_layout Quotation
35316
35317 \emph on
35318 How is literate programming different from verbose commenting?
35319 \end_layout
35320
35321 \begin_layout Quotation
35322 There are three distinguishing characteristics.
35323  In order of importance, they are: 
35324 \end_layout
35325
35326 \begin_deeper
35327 \begin_layout Itemize
35328 flexible order of elaboration 
35329 \end_layout
35330
35331 \begin_layout Itemize
35332 automatic support for browsing 
35333 \end_layout
35334
35335 \begin_layout Itemize
35336 typeset documentation, especially diagrams and mathematics 
35337 \end_layout
35338
35339 \end_deeper
35340 \begin_layout Standard
35341 Now that I sparked your curiosity, take a look in the references.
35342 \end_layout
35343
35344 \begin_layout Subsubsection
35345 References
35346 \end_layout
35347
35348 \begin_layout Standard
35349 The complete Literate Programming FAQ can be found at:
35350 \end_layout
35351
35352 \begin_layout Quote
35353 Literate Programming FAQ 
35354 \begin_inset Flex URL
35355 status open
35356
35357 \begin_layout Plain Layout
35358
35359 http://www.literateprogramming.com/lpfaq.pdf
35360 \end_layout
35361
35362 \end_inset
35363
35364
35365 \end_layout
35366
35367 \begin_layout Standard
35368 The FAQ lists 23 (twenty three!) different literate programming tools.
35369  Where some are specialized or 
35370 \begin_inset Quotes eld
35371 \end_inset
35372
35373 tailored
35374 \begin_inset Quotes erd
35375 \end_inset
35376
35377  for particular programming languages, while other have general scope.
35378  I selected 
35379 \noun on
35380 Noweb
35381 \noun default
35382  for my own use for several reasons:
35383 \end_layout
35384
35385 \begin_layout Itemize
35386 It can generate the documentation either in \SpecialChar LaTeX
35387  or HTML.
35388 \end_layout
35389
35390 \begin_layout Itemize
35391 It has a open architecture, i.
35392 \begin_inset space \thinspace{}
35393 \end_inset
35394
35395 e.
35396 \begin_inset space \space{}
35397 \end_inset
35398
35399 it is easy to plug in new filters
35400 \begin_inset Foot
35401 status collapsed
35402
35403 \begin_layout Plain Layout
35404
35405 \emph on
35406 Filters 
35407 \emph default
35408 are programs that read a given data stream and output a manipulated data
35409  stream.
35410  That way, a WEB file (consisting of literate code) can be turned into a
35411  file consisting only of C program code or \SpecialChar LaTeX
35412  code.
35413 \end_layout
35414
35415 \end_inset
35416
35417  and to perform special processing that you may need.
35418  
35419 \end_layout
35420
35421 \begin_layout Itemize
35422 There is a good selection of filters available already (the HTML is one
35423  of them).
35424 \end_layout
35425
35426 \begin_layout Itemize
35427 It is free.
35428 \end_layout
35429
35430 \begin_layout Standard
35431 The Noweb web page can be found at: 
35432 \end_layout
35433
35434 \begin_layout Quote
35435 Noweb home page 
35436 \begin_inset Flex URL
35437 status collapsed
35438
35439 \begin_layout Plain Layout
35440
35441 https://www.cs.tufts.edu/~nr/noweb/
35442 \end_layout
35443
35444 \end_inset
35445
35446
35447 \end_layout
35448
35449 \begin_layout Standard
35450 Starting from there you can reach many other interesting links and even
35451  some literate program examples.
35452 \end_layout
35453
35454 \begin_layout Subsection
35455 \SpecialChar LyX
35456  and Literate Programming with Noweb
35457 \end_layout
35458
35459 \begin_layout Standard
35460 The \SpecialChar LyX
35461  support for Literate Programming is provided by using the generic \SpecialChar LyX
35462
35463  converters mechanism.
35464  This support is provided in a 
35465 \begin_inset Quotes eld
35466 \end_inset
35467
35468 Noweb independent
35469 \begin_inset Quotes erd
35470 \end_inset
35471
35472  way, i.
35473 \begin_inset space \thinspace{}
35474 \end_inset
35475
35476 e.
35477 \begin_inset space \space{}
35478 \end_inset
35479
35480 you will be able to use this new \SpecialChar LyX
35481  feature with some other literate programming
35482  tool of your choice by just changing your \SpecialChar LyX
35483  preferences.
35484 \end_layout
35485
35486 \begin_layout Subsubsection
35487 Generating documents and code (weaving and tangling)
35488 \end_layout
35489
35490 \begin_layout Paragraph
35491 Using the noweb module
35492 \end_layout
35493
35494 \begin_layout Standard
35495 If you have installed Noweb and \SpecialChar LyX
35496  successfully, whenever you open a new document,
35497  after you have chosen its document class, use the 
35498 \family sans
35499 Document\SpecialChar menuseparator
35500 Settings
35501 \family default
35502  menu to add the 
35503 \begin_inset Quotes eld
35504 \end_inset
35505
35506 noweb
35507 \begin_inset Quotes erd
35508 \end_inset
35509
35510  module.
35511  If Noweb is correctly installed, when you click on the 
35512 \begin_inset Quotes eld
35513 \end_inset
35514
35515 Modules
35516 \begin_inset Quotes erd
35517 \end_inset
35518
35519  link, you will see the 
35520 \begin_inset Quotes eld
35521 \end_inset
35522
35523 noweb
35524 \begin_inset Quotes erd
35525 \end_inset
35526
35527  module in the available list and you can add it to your document.
35528 \end_layout
35529
35530 \begin_layout Paragraph
35531 Typing code in
35532 \end_layout
35533
35534 \begin_layout Standard
35535 \SpecialChar LyX
35536  enables you to write code with a custom inset named 
35537 \begin_inset Flex Noun
35538 status collapsed
35539
35540 \begin_layout Plain Layout
35541 Chunk
35542 \end_layout
35543
35544 \end_inset
35545
35546 .
35547  Noweb delimits chunks like this:
35548 \end_layout
35549
35550 \begin_layout LyX-Code
35551 <<My code>>=
35552 \end_layout
35553
35554 \begin_layout LyX-Code
35555   code
35556 \end_layout
35557
35558 \begin_layout LyX-Code
35559   more code
35560 \end_layout
35561
35562 \begin_layout LyX-Code
35563   even more code
35564 \end_layout
35565
35566 \begin_layout LyX-Code
35567   @
35568 \end_layout
35569
35570 \begin_layout Standard
35571 The problem is that whatever is written in between the << and the 
35572 \family typewriter
35573 @
35574 \family default
35575  must be taken literally, i.
35576 \begin_inset space \thinspace{}
35577 \end_inset
35578
35579 e.
35580 \begin_inset space \space{}
35581 \end_inset
35582
35583 \SpecialChar LyX
35584  should be prevented from making any special interpretation of what has
35585  been written.
35586  This is also handled by 
35587 \begin_inset Flex Noun
35588 status collapsed
35589
35590 \begin_layout Plain Layout
35591 Chunk
35592 \end_layout
35593
35594 \end_inset
35595
35596 , that works like a normal text inset but has a free spacing capability.
35597 \end_layout
35598
35599 \begin_layout Standard
35600 As a special note, you can also use the 
35601 \begin_inset Quotes eld
35602 \end_inset
35603
35604 %def
35605 \begin_inset Quotes erd
35606 \end_inset
35607
35608  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
35609 rence:
35610 \end_layout
35611
35612 \begin_layout LyX-Code
35613 <<My chunk>>=
35614 \end_layout
35615
35616 \begin_layout LyX-Code
35617 def some_function(args):
35618 \end_layout
35619
35620 \begin_layout LyX-Code
35621    "This is the doc string for this function."
35622 \end_layout
35623
35624 \begin_layout LyX-Code
35625    print "My args: ", args
35626 \end_layout
35627
35628 \begin_layout LyX-Code
35629 @ %def some_function
35630 \end_layout
35631
35632 \begin_layout Standard
35633 For an example of this usage and the resulting cross-reference output, look
35634  at the Literate python program in 
35635 \emph on
35636 LIBDIR/examples/listerrors.lyx
35637 \emph default
35638  which should make this all clear.
35639 \end_layout
35640
35641 \begin_layout Paragraph
35642 Generating the documentation
35643 \end_layout
35644
35645 \begin_layout Standard
35646 At this point you already have a new document file with a proper document
35647  class, and with some code and text on it.
35648  How do I print it? The answer is simple, you select 
35649 \family sans
35650 View\SpecialChar menuseparator
35651 DVI,
35652 \family default
35653  etc.
35654  Just like you would do for a plain document.
35655  No special procedure is required.
35656 \end_layout
35657
35658 \begin_layout Standard
35659 To help orientate you, I will now explain what happens inside \SpecialChar LyX
35660 :
35661 \end_layout
35662
35663 \begin_layout Enumerate
35664 When the 
35665 \family sans
35666 Update\SpecialChar menuseparator
35667 DVI
35668 \family default
35669  menu option is chosen, a \SpecialChar LaTeX
35670  file is generated.
35671  
35672 \end_layout
35673
35674 \begin_deeper
35675 \begin_layout Standard
35676 If the document is of any literate class the generated file will be named
35677  with an extension name defined by the 
35678 \begin_inset Quotes eld
35679 \end_inset
35680
35681 literate
35682 \begin_inset Quotes erd
35683 \end_inset
35684
35685  format (defined in the Preferences panel), otherwise the file will have
35686  the usual 
35687 \family typewriter
35688 .tex
35689 \family default
35690  extension.
35691 \end_layout
35692
35693 \end_deeper
35694 \begin_layout Enumerate
35695 Note that the only difference so far is in the name of the file, no special
35696  processing is required by \SpecialChar LyX
35697 .
35698  Given that you formatted the code using the 
35699 \begin_inset Flex Noun
35700 status collapsed
35701
35702 \begin_layout Plain Layout
35703 Chunk
35704 \end_layout
35705
35706 \end_inset
35707
35708  inset that, by itself, takes care of the business.
35709 \end_layout
35710
35711 \begin_layout Enumerate
35712 If the document is of any literate class \SpecialChar LyX
35713  will then use the internal \SpecialChar LyX
35714  to
35715  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
35716  converter
35717 \begin_inset Foot
35718 status collapsed
35719
35720 \begin_layout Plain Layout
35721 The converters are defined in the 
35722 \family sans
35723 Tools\SpecialChar menuseparator
35724 Preferences
35725 \family default
35726  panel, under the 
35727 \begin_inset Quotes eld
35728 \end_inset
35729
35730 Conversion
35731 \begin_inset Quotes erd
35732 \end_inset
35733
35734  tab.
35735  See section 
35736 \emph on
35737 Converters
35738 \emph default
35739  of the 
35740 \emph on
35741 Customization
35742 \emph default
35743  manual for general information about converters.
35744 \end_layout
35745
35746 \end_inset
35747
35748  to generate the \SpecialChar LaTeX
35749  file.
35750 \end_layout
35751
35752 \begin_deeper
35753 \begin_layout Standard
35754 Otherwise it will just skip this step.
35755 \end_layout
35756
35757 \end_deeper
35758 \begin_layout Enumerate
35759 Finally, \SpecialChar LaTeX
35760  is invoked and the regular post processing continues as in a plain
35761  document.
35762 \end_layout
35763
35764 \begin_layout Standard
35765 Independence from a particular 
35766 \begin_inset Quotes eld
35767 \end_inset
35768
35769 literate tool
35770 \begin_inset Quotes erd
35771 \end_inset
35772
35773  is easily achieved by changing the commands that are run by the various
35774  converters.
35775 \end_layout
35776
35777 \begin_layout Paragraph
35778 Generating the code
35779 \end_layout
35780
35781 \begin_layout Standard
35782 When the build menu option is chosen or the corresponding button in the
35783  toolbar is pressed, a \SpecialChar LaTeX
35784  file is generated just like step 1 above.
35785  Next, \SpecialChar LyX
35786  invokes the 
35787 \family typewriter
35788 Noweb->Program
35789 \family default
35790  converter.
35791  This converter needs to be defined by the user and is not installed by
35792  default, though the Program format is.
35793  This converter (like any other converter) will have two parts:
35794 \end_layout
35795
35796 \begin_layout Enumerate
35797 The converter program itself.
35798  This program performs the conversion from the one format to the other (in
35799  this case, from the Noweb format to the Program pseudo-format).
35800 \end_layout
35801
35802 \begin_layout Enumerate
35803 The error log parser.
35804  This is a program whose sole purpose is to rewrite error messages in a
35805  format that \SpecialChar LyX
35806  understands.
35807  This makes it possible for \SpecialChar LyX
35808  to place error boxes in the right places in
35809  the file buffer.
35810 \end_layout
35811
35812 \begin_layout Standard
35813 The first part, the 
35814 \begin_inset Quotes eld
35815 \end_inset
35816
35817 Converter
35818 \begin_inset Quotes erd
35819 \end_inset
35820
35821  setting, should be set to
35822 \end_layout
35823
35824 \begin_layout LyX-Code
35825
35826 \family typewriter
35827 build-script $$i
35828 \family default
35829  $$r
35830 \end_layout
35831
35832 \begin_layout Standard
35833 This basically means that \SpecialChar LyX
35834  will call 
35835 \begin_inset Quotes eld
35836 \end_inset
35837
35838 build-script
35839 \begin_inset Quotes erd
35840 \end_inset
35841
35842  (a program or script) with the name of the Noweb file (normally a file
35843  in the \SpecialChar LyX
35844  temp directory) and the directory path of the original \SpecialChar LyX
35845  file.
35846  
35847 \end_layout
35848
35849 \begin_layout Standard
35850 This is an implementation of 
35851 \begin_inset Quotes eld
35852 \end_inset
35853
35854 build-script
35855 \begin_inset Quotes erd
35856 \end_inset
35857
35858  that you can place in a directory on your path:
35859 \end_layout
35860
35861 \begin_layout LyX-Code
35862
35863 \family sans
35864 #!/bin/sh
35865 \end_layout
35866
35867 \begin_layout LyX-Code
35868
35869 \family sans
35870 #
35871 \end_layout
35872
35873 \begin_layout LyX-Code
35874
35875 \family sans
35876 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
35877 \end_layout
35878
35879 \begin_layout Standard
35880 The next part of the converter setting is the 
35881 \begin_inset Quotes eld
35882 \end_inset
35883
35884 Flags
35885 \begin_inset Quotes erd
35886 \end_inset
35887
35888  which is to be set to
35889 \end_layout
35890
35891 \begin_layout LyX-Code
35892
35893 \family typewriter
35894 parselog=$$s/scripts/listerrors
35895 \end_layout
35896
35897 \begin_layout Standard
35898 This will run any errors that are generated by the 
35899 \begin_inset Quotes eld
35900 \end_inset
35901
35902 build-script
35903 \begin_inset Quotes erd
35904 \end_inset
35905
35906  process through the 
35907 \begin_inset Quotes eld
35908 \end_inset
35909
35910 listerrors
35911 \begin_inset Quotes erd
35912 \end_inset
35913
35914  program.
35915 \end_layout
35916
35917 \begin_layout Standard
35918 The build will normally take place in \SpecialChar LyX
35919 's temporary directory, so the files
35920  produced by the conversion will be in that directory.
35921  \SpecialChar LyX
35922  will copy out what it regards as the `main' file, but the 
35923 \family typewriter
35924 Noweb->Program
35925 \family default
35926  conversion may produce several files, and so most of these would then be
35927  deleted when \SpecialChar LyX
35928  was closed.
35929  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
35930  the build-script chunk can place the generated files in that location.
35931 \end_layout
35932
35933 \begin_layout Paragraph
35934 Build instructions in the document
35935 \end_layout
35936
35937 \begin_layout Standard
35938 The last piece of the integration between \SpecialChar LyX
35939  and noweb is the 
35940 \begin_inset Quotes eld
35941 \end_inset
35942
35943 build-script
35944 \begin_inset Quotes erd
35945 \end_inset
35946
35947  chunk.
35948  Generally, the instructions for building your program should be embedded
35949  in a chunk of its own.
35950  The noweb-specific 
35951 \begin_inset Quotes eld
35952 \end_inset
35953
35954 build-script
35955 \begin_inset Quotes erd
35956 \end_inset
35957
35958  above uses the notangle command to look for this chunk (called 
35959 \begin_inset Quotes eld
35960 \end_inset
35961
35962 build-script
35963 \begin_inset Quotes erd
35964 \end_inset
35965
35966 ) and runs its contents through 
35967 \begin_inset Quotes eld
35968 \end_inset
35969
35970 sh
35971 \begin_inset Quotes erd
35972 \end_inset
35973
35974 .
35975 \end_layout
35976
35977 \begin_layout Standard
35978 Typically, such a chunk would look something like this:
35979 \end_layout
35980
35981 \begin_layout LyX-Code
35982 <<build-script>>=
35983 \end_layout
35984
35985 \begin_layout LyX-Code
35986 #!/bin/sh
35987 \begin_inset Newline newline
35988 \end_inset
35989
35990 if [ -z "${NOWEB_SOURCE}" ]
35991 \begin_inset Newline newline
35992 \end_inset
35993
35994 then
35995 \end_layout
35996
35997 \begin_layout LyX-Code
35998 NOWEB_SOURCE=myfile.nw
35999 \begin_inset Newline newline
36000 \end_inset
36001
36002 fi
36003 \begin_inset Newline newline
36004 \end_inset
36005
36006 [...
36007  code to extract files ...
36008  use NOWEB_OUTPUT_DIR here ...]
36009 \begin_inset Newline newline
36010 \end_inset
36011
36012 [...
36013  code to compile files ...]
36014 \begin_inset Newline newline
36015 \end_inset
36016
36017 @
36018 \end_layout
36019
36020 \begin_layout Standard
36021 Look in 
36022 \change_deleted 564990737 1672161716
36023
36024 \emph on
36025 LIBDIR/examples/listerrors.lyx
36026 \emph default
36027  or in 
36028 \emph on
36029 LIBDIR/examples/Literate.lyx
36030 \change_inserted 564990737 1672161716
36031
36032 \family sans
36033 \emph default
36034 \lang american
36035 File\SpecialChar menuseparator
36036 Open Example\SpecialChar menuseparator
36037 Modules\SpecialChar menuseparator
36038 Noweb Listerrors
36039 \change_unchanged
36040
36041 \family default
36042 \lang english
36043  which implement 
36044 \change_deleted 564990737 1672161729
36045 two 
36046 \change_unchanged
36047 versions of the 
36048 \begin_inset Quotes eld
36049 \end_inset
36050
36051 listerrors
36052 \begin_inset Quotes erd
36053 \end_inset
36054
36055  program for some illustrations of how all of these pieces go together or
36056  in 
36057 \change_deleted 564990737 1672161756
36058
36059 \emph on
36060 LIBDIR/examples/noweb2lyx.lyx
36061 \change_inserted 564990737 1672161756
36062
36063 \family sans
36064 \emph default
36065 \lang american
36066 File\SpecialChar menuseparator
36067 Open Example\SpecialChar menuseparator
36068 Modules\SpecialChar menuseparator
36069 Noweb2\SpecialChar LyX
36070
36071 \change_unchanged
36072
36073 \family default
36074 \emph on
36075 \lang english
36076 .
36077
36078 \emph default
36079  Interestingly, these 
36080 \change_deleted 564990737 1672161767
36081 three 
36082 \change_unchanged
36083 files show off the language-indepence of the \SpecialChar LyX
36084  literate programming support
36085  since they are written in Python
36086 \change_deleted 564990737 1672161782
36087 , C
36088 \change_unchanged
36089  and Perl respectively.
36090 \end_layout
36091
36092 \begin_layout Subsubsection
36093 Configuring \SpecialChar LyX
36094
36095 \end_layout
36096
36097 \begin_layout Standard
36098 All the Literate Programming support is configured by the 
36099 \family sans
36100 Tools\SpecialChar menuseparator
36101 Preferences
36102 \family default
36103  panel in the 
36104 \begin_inset Quotes eld
36105 \end_inset
36106
36107 File Handling
36108 \begin_inset Quotes erd
36109 \end_inset
36110
36111  tab.
36112  The important parts are:
36113 \end_layout
36114
36115 \begin_layout Description
36116 the
36117 \begin_inset space ~
36118 \end_inset
36119
36120
36121 \begin_inset Quotes eld
36122 \end_inset
36123
36124 NoWeb
36125 \begin_inset Quotes erd
36126 \end_inset
36127
36128
36129 \begin_inset space ~
36130 \end_inset
36131
36132 format Set up via the File Formats tab, this is where the Noweb-specific
36133  pieces are set up.
36134  The 
36135 \family sans
36136 GUI Name
36137 \family default
36138  is set to 
36139 \family typewriter
36140 NoWeb
36141 \family default
36142 , the file extension is set to 
36143 \family typewriter
36144 .nw
36145 \family default
36146 .
36147  This tells \SpecialChar LyX
36148  to create a file with a 
36149 \family typewriter
36150 .nw
36151 \family default
36152  extension in the first step of the conversion process.
36153 \end_layout
36154
36155 \begin_layout Description
36156 the
36157 \begin_inset space ~
36158 \end_inset
36159
36160
36161 \family sans
36162 Program
36163 \family default
36164
36165 \begin_inset space ~
36166 \end_inset
36167
36168 format This is an empty format whose sole purpose is to be the endpoint
36169  of a conversion (which then allows us to set up a converter for it).
36170 \end_layout
36171
36172 \begin_layout Description
36173
36174 \family sans
36175 NoWeb
36176 \family default
36177 ->
36178 \family sans
36179 \SpecialChar LaTeX
36180
36181 \family default
36182  This converter performs the 
36183 \begin_inset Quotes eld
36184 \end_inset
36185
36186 weaving
36187 \begin_inset Quotes erd
36188 \end_inset
36189
36190  of the literate document.
36191  For Noweb, it is set to 
36192 \begin_inset Quotes eld
36193 \end_inset
36194
36195
36196 \family typewriter
36197 noweave -delay -index $$i > $$o
36198 \family default
36199
36200 \begin_inset Quotes erd
36201 \end_inset
36202
36203
36204 \end_layout
36205
36206 \begin_layout Description
36207
36208 \family sans
36209 NoWeb
36210 \family default
36211 ->
36212 \family sans
36213 Program
36214 \family default
36215  This performs the 
36216 \begin_inset Quotes eld
36217 \end_inset
36218
36219 tangling step
36220 \begin_inset Quotes erd
36221 \end_inset
36222
36223 .
36224  As stated above, the Converter is set to 
36225 \begin_inset Quotes eld
36226 \end_inset
36227
36228
36229 \family typewriter
36230 build-script $$i
36231 \family default
36232  $$r
36233 \begin_inset Quotes erd
36234 \end_inset
36235
36236 , with Flags set to
36237 \begin_inset Newline newline
36238 \end_inset
36239
36240
36241 \begin_inset Quotes eld
36242 \end_inset
36243
36244
36245 \family typewriter
36246 parselog=$$s/scripts/listerrors
36247 \family default
36248
36249 \begin_inset Quotes erd
36250 \end_inset
36251
36252 .
36253 \end_layout
36254
36255 \begin_layout Subsubsection
36256 Debug extensions
36257 \end_layout
36258
36259 \begin_layout Standard
36260 There is also a new function implemented in the \SpecialChar LyX
36261  server, the 
36262 \begin_inset Quotes eld
36263 \end_inset
36264
36265 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
36266  
36267 \end_layout
36268
36269 \begin_layout Standard
36270 When debugging code with ddd/gdb, it is possible to invoke a text editor
36271  at the current execution position with a single key stroke.
36272  The default ddd configuration for that is shift-ctrl-V.
36273  It happens that you can define the editor command line invocation in ddd
36274  by accessing the 
36275 \family sans
36276 Edit\SpecialChar menuseparator
36277 Preferences\SpecialChar menuseparator
36278 Helpers
36279 \family default
36280  dialog and changing the "Edit Sources" entry.
36281 \end_layout
36282
36283 \begin_layout Standard
36284 I take advantage of the newly created \SpecialChar LyX
36285  server function and this ddd feature,
36286  and set 
36287 \begin_inset Quotes eld
36288 \end_inset
36289
36290 Edit Sources
36291 \begin_inset Quotes erd
36292 \end_inset
36293
36294  to:
36295 \end_layout
36296
36297 \begin_layout LyX-Code
36298 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
36299 \end_layout
36300
36301 \begin_layout Standard
36302 With this, whenever you are using ddd and find a point in the program that
36303  you want to edit, you just press shift-ctrl-V (in the ddd window), and
36304  ddd will forward this information to \SpecialChar LyX
36305  through the \SpecialChar LyX
36306  server and then the
36307  \SpecialChar LyX
36308  window will show the same file with the cursor at the same position ddd
36309  was pointing to.
36310  No more guessing or long scrolling to locate a point in the program back
36311  from debugging !
36312 \end_layout
36313
36314 \begin_layout Standard
36315 Note however that you must enable the \SpecialChar LyX
36316  server to get this feature working
36317  (it is disabled by default).
36318  Sec.
36319 \begin_inset space ~
36320 \end_inset
36321
36322
36323 \begin_inset CommandInset ref
36324 LatexCommand ref
36325 reference "sec:Starting-the-Server"
36326
36327 \end_inset
36328
36329  explains how to do that.
36330 \end_layout
36331
36332 \begin_layout Subsubsection
36333 Toolbar extensions
36334 \end_layout
36335
36336 \begin_layout Standard
36337 There are six new buttons that can be added to your \SpecialChar LyX
36338  toolbar.
36339  Four of these buttons are short cuts to layout styles: 
36340 \family sans
36341 Standard
36342 \family default
36343
36344 \family sans
36345 Section
36346 \family default
36347
36348 \family sans
36349 \SpecialChar LaTeX
36350
36351 \family default
36352 , and 
36353 \family sans
36354 \SpecialChar LyX
36355 -Code
36356 \family default
36357 , one for the custom inset 
36358 \family sans
36359 Chunk
36360 \family default
36361 .
36362  The last one is a short cut to the 
36363 \begin_inset Quotes eld
36364 \end_inset
36365
36366 Build Program
36367 \begin_inset Quotes erd
36368 \end_inset
36369
36370  File menu entry.
36371  
36372 \end_layout
36373
36374 \begin_layout Standard
36375 \SpecialChar LyX
36376  has a range of buttons that are available for tool bar customization.
36377  In my toolbar I like to combine the six short cuts above with two more:
36378  One for 
36379 \family sans
36380 Document
36381 \family default
36382 \SpecialChar menuseparator
36383
36384 \family sans
36385 Update
36386 \family default
36387 \SpecialChar menuseparator
36388
36389 \family sans
36390 DVI
36391 \family default
36392  and the other for 
36393 \family sans
36394 Document\SpecialChar menuseparator
36395 View\SpecialChar menuseparator
36396 DVI
36397 \family default
36398  File menu entries.
36399  Here is how it looks like:
36400 \end_layout
36401
36402 \begin_layout LyX-Code
36403 Toolbar
36404 \end_layout
36405
36406 \begin_layout LyX-Code
36407   Layouts
36408 \end_layout
36409
36410 \begin_layout LyX-Code
36411   Icon "layout Standard"
36412 \end_layout
36413
36414 \begin_layout LyX-Code
36415   Icon "layout Section"
36416 \end_layout
36417
36418 \begin_layout LyX-Code
36419   Icon "layout \SpecialChar LaTeX
36420 "
36421 \end_layout
36422
36423 \begin_layout LyX-Code
36424   Icon "layout \SpecialChar LyX
36425 -Code"
36426 \end_layout
36427
36428 \begin_layout LyX-Code
36429   Icon "flex.insert Chunk"
36430 \end_layout
36431
36432 \begin_layout LyX-Code
36433   Separator
36434 \end_layout
36435
36436 \begin_layout LyX-Code
36437   Icon "buffer-view"
36438 \end_layout
36439
36440 \begin_layout LyX-Code
36441   Icon "buffer-typeset"
36442 \end_layout
36443
36444 \begin_layout LyX-Code
36445   Icon "build-program"
36446 \end_layout
36447
36448 \begin_layout LyX-Code
36449   Separator
36450 \end_layout
36451
36452 \begin_layout LyX-Code
36453 .
36454 \end_layout
36455
36456 \begin_layout LyX-Code
36457 .
36458 \end_layout
36459
36460 \begin_layout LyX-Code
36461 .
36462 \end_layout
36463
36464 \begin_layout LyX-Code
36465 End
36466 \end_layout
36467
36468 \begin_layout Subsubsection
36469 Colors customization
36470 \end_layout
36471
36472 \begin_layout Standard
36473 There are a number of colors in \SpecialChar LyX
36474  that can be customized in 
36475 \family sans
36476 Preferences
36477 \family default
36478 .
36479  One of the things that bothers people is the \SpecialChar LaTeX
36480  font color.
36481  The default color is red, since the chunks uses \SpecialChar LaTeX
36482  font, and there is a lot
36483  of chunks in literate documents, you may get tired of seeing everything
36484  in red.
36485  You can change it by going to the tabs 
36486 \family sans
36487 Look&Feel
36488 \family default
36489
36490 \family sans
36491 Colors.
36492 \end_layout
36493
36494 \begin_layout Standard
36495 The next thing is the visible presence of the newline character in the screen.
36496  You can choose the color of this particular character and make it blend
36497  in the background.
36498  I recommend you choosing a color that is close to the background but not
36499  equal, that way you still can see it is there, but it is not bothering
36500  you anymore.
36501 \end_layout
36502
36503 \begin_layout Subsection
36504 \SpecialChar LyX
36505  and knitr/Sweave
36506 \end_layout
36507
36508 \begin_layout Standard
36509 Support for 
36510 \family sans
36511 knitr
36512 \family default
36513  and 
36514 \family sans
36515 Sweave
36516 \family default
36517  is documented in
36518 \change_inserted 564990737 1672161863
36519  
36520 \family sans
36521 \lang american
36522 Help\SpecialChar menuseparator
36523 Specific Manuals\SpecialChar menuseparator
36524 Knitr
36525 \family default
36526  and
36527 \change_unchanged
36528
36529 \lang english
36530  
36531 \change_deleted 564990737 1671643409
36532 the 
36533 \emph on
36534 knitr.lyx
36535 \emph default
36536  example file
36537 \change_inserted 564990737 1672161856
36538
36539 \family sans
36540 \lang british
36541 File\SpecialChar menuseparator
36542 Open Example\SpecialChar menuseparator
36543 Modules\SpecialChar menuseparator
36544 Rnw (knitr)
36545 \change_unchanged
36546
36547 \family default
36548 \lang english
36549  and in 
36550 \change_deleted 564990737 1671643461
36551 the Sweave manual (menu 
36552 \family sans
36553 Help\SpecialChar menuseparator
36554 Specific Manuals
36555 \family default
36556 )
36557 \change_inserted 564990737 1672161856
36558
36559 \family sans
36560 \lang british
36561 Help\SpecialChar menuseparator
36562 Specific Manuals\SpecialChar menuseparator
36563 Sweave
36564 \change_deleted 564990737 1672161921
36565
36566 \family default
36567 \lang english
36568 .
36569
36570 \change_inserted 564990737 1672161917
36571  and 
36572 \family sans
36573 \lang american
36574 File\SpecialChar menuseparator
36575 Open Example\SpecialChar menuseparator
36576 Modules\SpecialChar menuseparator
36577 Sweave
36578 \family default
36579 .
36580 \change_deleted 564990737 1672742969
36581
36582 \end_layout
36583
36584 \begin_layout Standard
36585
36586 \change_deleted 564990737 1671355343
36587 Special features
36588 \end_layout
36589
36590 \begin_layout Standard
36591
36592 \change_deleted 564990737 1671355343
36593 You can do everything with \SpecialChar LyX
36594  that you can do with \SpecialChar LaTeX
36595 .
36596  However, \SpecialChar LyX
36597  cannot support every \SpecialChar LaTeX
36598  feature directly.
36599  But you can always use \SpecialChar TeX
36600  Code.
36601  This chapter shows you some more special things you might want to use.
36602  For other special things you can do with figures, tables, floats, boxes
36603  and notes, have a look at the 
36604 \emph on
36605 Embedded
36606 \begin_inset space ~
36607 \end_inset
36608
36609 Objects
36610 \emph default
36611  manual.
36612 \change_unchanged
36613
36614 \end_layout
36615
36616 \end_body
36617 \end_document