]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert entries for Hanging Paragraphs, Initials, Hyphenatable Text Markup and Logical...
[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 1670439508
2333 Document classes
2334 \end_layout
2335
2336 \begin_layout Section
2337
2338 \change_inserted 564990737 1670439533
2339 \begin_inset CommandInset label
2340 LatexCommand label
2341 name "sec:Collections"
2342
2343 \end_inset
2344
2345 Collections
2346 \end_layout
2347
2348 \begin_layout Subsection
2349 AMS \SpecialChar LaTeX
2350
2351 \end_layout
2352
2353 \begin_layout Standard
2354 by 
2355 \noun on
2356 David Johnson
2357 \noun default
2358 ; updated by 
2359 \noun on
2360 Richard Kimberly Heck
2361 \end_layout
2362
2363 \begin_layout Standard
2364 \begin_inset VSpace bigskip
2365 \end_inset
2366
2367
2368 \end_layout
2369
2370 \begin_layout Standard
2371 \noindent
2372 The AMS \SpecialChar LaTeX
2373  layouts are set up to conform to suggested styles for mathematical
2374  papers to be submitted to American Mathematical Society publications.
2375  The layouts are not tailored to a specific journal, but easily can be.
2376  You should refer to the AMS documentation for specific instructions for
2377  each journal (usually it will entail only changing a single line in the
2378  \SpecialChar TeX
2379  output).
2380  That documentation is available on the Web at 
2381 \begin_inset Flex URL
2382 status open
2383
2384 \begin_layout Plain Layout
2385
2386 http://www.ams.org
2387 \end_layout
2388
2389 \end_inset
2390
2391  or by ftp at 
2392 \begin_inset Flex URL
2393 status open
2394
2395 \begin_layout Plain Layout
2396
2397 ftp://ftp.ams.org/pub/tex/amslatex/
2398 \end_layout
2399
2400 \end_inset
2401
2402 .
2403  These layouts are appropriate, and useful, for any mathematical writing.
2404  
2405 \end_layout
2406
2407 \begin_layout Standard
2408 There are two basic AMS \SpecialChar LaTeX
2409  layouts: 
2410 \end_layout
2411
2412 \begin_layout Itemize
2413 amsart: The standard AMS article format.
2414 \end_layout
2415
2416 \begin_layout Itemize
2417 amsbook: the standard AMS book (really, monograph) format.
2418  
2419 \end_layout
2420
2421 \begin_layout Standard
2422 The layouts themselves contain only the minimum necessary to use the AMS
2423  classes.
2424  They do not, in particular, contain any of the `theorem' environments used
2425  for setting theorems, lemmas, and the like.
2426  These are contained, instead, in the 
2427 \begin_inset Flex Code
2428 status collapsed
2429
2430 \begin_layout Plain Layout
2431 Theorems (AMS)
2432 \end_layout
2433
2434 \end_inset
2435
2436  module, which is loaded by default when you select one of the AMS classes.
2437  (It can also be used with other classes and can be removed, if you would
2438  rather use something else.) Less commonly used environments are in the 
2439 \begin_inset Flex Code
2440 status collapsed
2441
2442 \begin_layout Plain Layout
2443 Theorems (AMS-Extended)
2444 \end_layout
2445
2446 \end_inset
2447
2448  module, which must be loaded manually.
2449 \end_layout
2450
2451 \begin_layout Standard
2452 By default, theorems and the like are numbered consecutively throughout
2453  the document, but this may be modified by loading the module 
2454 \begin_inset Flex Code
2455 status collapsed
2456
2457 \begin_layout Plain Layout
2458 Theorems (Order by Section)
2459 \end_layout
2460
2461 \end_inset
2462
2463  or, if you are using 
2464 \begin_inset Flex Code
2465 status collapsed
2466
2467 \begin_layout Plain Layout
2468 book (AMS)
2469 \end_layout
2470
2471 \end_inset
2472
2473 , the module 
2474 \begin_inset Flex Code
2475 status collapsed
2476
2477 \begin_layout Plain Layout
2478 Theorems (Order by Chapter)
2479 \end_layout
2480
2481 \end_inset
2482
2483 .
2484  These will number the results as 
2485 \begin_inset Formula $n.m$
2486 \end_inset
2487
2488 , where the first number refers to the section (or chapter) and the second
2489  refers to the total number of results so far in that section (or chapter).
2490  Many environments are also available unnumbered.
2491  These are indicated by an asterisk at the end.
2492  If you happen to want 
2493 \emph on
2494 only
2495 \emph default
2496  unnumbered results, the module 
2497 \begin_inset Flex Code
2498 status collapsed
2499
2500 \begin_layout Plain Layout
2501 Theorems (Starred)
2502 \end_layout
2503
2504 \end_inset
2505
2506  provides that option.
2507 \end_layout
2508
2509 \begin_layout Standard
2510 Note that these modules do not 
2511 \emph on
2512 have
2513 \emph default
2514  to be used with the AMS classes.
2515  It is perfectly possible to use the 
2516 \begin_inset Flex Code
2517 status collapsed
2518
2519 \begin_layout Plain Layout
2520 Theorems (AMS)
2521 \end_layout
2522
2523 \end_inset
2524
2525  module, and the others mentioned, with other classes, such as 
2526 \begin_inset Flex Code
2527 status collapsed
2528
2529 \begin_layout Plain Layout
2530 article
2531 \end_layout
2532
2533 \end_inset
2534
2535
2536 \begin_inset Flex Code
2537 status collapsed
2538
2539 \begin_layout Plain Layout
2540 report
2541 \end_layout
2542
2543 \end_inset
2544
2545
2546 \begin_inset Flex Code
2547 status collapsed
2548
2549 \begin_layout Plain Layout
2550 book (KOMA-script)
2551 \end_layout
2552
2553 \end_inset
2554
2555 , and so forth.
2556 \end_layout
2557
2558 \begin_layout Subsubsection
2559 What these layouts provide
2560 \end_layout
2561
2562 \begin_layout Standard
2563 There is a long list of included environments provided by these layouts.
2564  In AMS-\SpecialChar LaTeX
2565 , there is, in fact, an opportunity to define an unlimited variety
2566  of `theorem' environments.
2567  However, the AMS recommends the environments that are available in \SpecialChar LyX
2568 .
2569  
2570 \end_layout
2571
2572 \begin_layout Standard
2573 The following environments—as well as the standard environments, such as
2574  
2575 \begin_inset Flex Noun
2576 status collapsed
2577
2578 \begin_layout Plain Layout
2579 section
2580 \end_layout
2581
2582 \end_inset
2583
2584
2585 \begin_inset Flex Noun
2586 status collapsed
2587
2588 \begin_layout Plain Layout
2589 bibliography
2590 \end_layout
2591
2592 \end_inset
2593
2594
2595 \begin_inset Flex Noun
2596 status collapsed
2597
2598 \begin_layout Plain Layout
2599 title
2600 \end_layout
2601
2602 \end_inset
2603
2604
2605 \begin_inset Flex Noun
2606 status collapsed
2607
2608 \begin_layout Plain Layout
2609 author
2610 \end_layout
2611
2612 \end_inset
2613
2614 , and 
2615 \begin_inset Flex Noun
2616 status collapsed
2617
2618 \begin_layout Plain Layout
2619 date
2620 \end_layout
2621
2622 \end_inset
2623
2624 —are provided by 
2625 \begin_inset Flex Code
2626 status collapsed
2627
2628 \begin_layout Plain Layout
2629 article (AMS)
2630 \end_layout
2631
2632 \end_inset
2633
2634  and 
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 book (AMS)
2640 \end_layout
2641
2642 \end_inset
2643
2644 :
2645 \end_layout
2646
2647 \begin_layout Description
2648 Address This should be the author's permanent address.
2649 \end_layout
2650
2651 \begin_layout Description
2652 Current
2653 \begin_inset space ~
2654 \end_inset
2655
2656 Address This should be the author's temporary address at the time of submission,
2657  if different from the Address.
2658 \end_layout
2659
2660 \begin_layout Description
2661 Email Author's e-mail address
2662 \end_layout
2663
2664 \begin_layout Description
2665 URL Author's Web address, if desired.
2666 \end_layout
2667
2668 \begin_layout Description
2669 Keywords Key words or phrases used to identify specific topics discussed
2670  in the paper.
2671 \end_layout
2672
2673 \begin_layout Description
2674 Subjectclass These refer to the AMS Subject Classifications, published and
2675  described in 
2676 \emph on
2677 Mathematical Reviews
2678 \emph default
2679 .
2680  These are also available online at the AMS cites listed above.
2681 \end_layout
2682
2683 \begin_layout Description
2684 Thanks
2685 \end_layout
2686
2687 \begin_layout Description
2688 Dedicatory
2689 \end_layout
2690
2691 \begin_layout Description
2692 Translator
2693 \end_layout
2694
2695 \begin_layout Standard
2696 The following environments are provided by both the 
2697 \begin_inset Flex Code
2698 status collapsed
2699
2700 \begin_layout Plain Layout
2701 Theorems
2702 \end_layout
2703
2704 \end_inset
2705
2706  and 
2707 \begin_inset Flex Code
2708 status collapsed
2709
2710 \begin_layout Plain Layout
2711 Theorems (AMS)
2712 \end_layout
2713
2714 \end_inset
2715
2716  modules, in the latter case in both starred (unnumbered) and unstarred
2717  (numbered) versions.
2718  These same environments are provided only in the starred versions by the
2719  
2720 \begin_inset Flex Code
2721 status collapsed
2722
2723 \begin_layout Plain Layout
2724 Theorems (Starred)
2725 \end_layout
2726
2727 \end_inset
2728
2729  module:
2730 \end_layout
2731
2732 \begin_layout Theorem
2733 This is typically used for the statements of major results.
2734  
2735 \end_layout
2736
2737 \begin_layout Corollary*
2738 This is used for statements which follow fairly directly from previous statement
2739 s.
2740  Again, these can be major results.
2741  
2742 \end_layout
2743
2744 \begin_layout Lemma
2745 These are smaller results needed to prove other statements.
2746 \end_layout
2747
2748 \begin_layout Proposition
2749 These are less major results which (hopefully) add to the general theory
2750  being discussed.
2751 \end_layout
2752
2753 \begin_layout Conjecture
2754 These are statements provided without justification, which the author does
2755  not know how to prove, but which seem to be true (to the author, at least).
2756 \end_layout
2757
2758 \begin_layout Definition*
2759 Guess what this is for.
2760  The font is different for this environment than for the previous ones.
2761  
2762 \end_layout
2763
2764 \begin_layout Example*
2765 Used for examples illustrating proven results.
2766 \end_layout
2767
2768 \begin_layout Problem
2769 It's not really known what this is for.
2770  You should figure it out.
2771 \end_layout
2772
2773 \begin_layout Exercise*
2774 Write a description for this one.
2775 \end_layout
2776
2777 \begin_layout Remark
2778 This environment is also a type of theorem, usually a lesser sort of observation.
2779 \end_layout
2780
2781 \begin_layout Claim*
2782 Often used in the course of giving a proof of a larger result.
2783 \end_layout
2784
2785 \begin_layout Case
2786 Generally, these are used to break up long arguments, using specific instances
2787  of some condition.
2788  
2789 \end_layout
2790
2791 \begin_layout Case
2792 The numbering scheme for cases is on its own, not together with other numbered
2793  statements.
2794  
2795 \end_layout
2796
2797 \begin_layout Proof
2798 At the end of this environment, a QED symbol (usually a square, but it can
2799  vary with different styles) is placed.
2800  If you want to have other environments within this one—for example, Case
2801  environments—and have the QED symbol appear only after them, then the other
2802  environments need to be nested within the proof environment.
2803  See the section 
2804 \emph on
2805 Nesting Environments
2806 \emph default
2807  of the 
2808 \emph on
2809 User's Guide
2810 \emph default
2811  for information on nesting.
2812 \end_layout
2813
2814 \begin_layout Standard
2815 And these environments are provided by 
2816 \begin_inset Flex Code
2817 status collapsed
2818
2819 \begin_layout Plain Layout
2820 Theorems (AMS-Extended)
2821 \end_layout
2822
2823 \end_inset
2824
2825 :
2826 \end_layout
2827
2828 \begin_layout Criterion*
2829 A required condition.
2830 \end_layout
2831
2832 \begin_layout Algorithm*
2833 A general procedure to be used.
2834 \end_layout
2835
2836 \begin_layout Axiom*
2837 This is a property or statement taken as true within the system being discussed.
2838 \end_layout
2839
2840 \begin_layout Condition*
2841 Sometimes used to state a condition assumed within the present context of
2842  discussion.
2843 \end_layout
2844
2845 \begin_layout Note*
2846 Similar to a Remark.
2847 \end_layout
2848
2849 \begin_layout Notation*
2850 Used for the explanation of, yes, notation.
2851 \end_layout
2852
2853 \begin_layout Summary
2854 Do we really need to tell you? 
2855 \end_layout
2856
2857 \begin_layout Acknowledgement*
2858 Acknowledgement.
2859 \end_layout
2860
2861 \begin_layout Conclusion*
2862 Sometimes used at the end of a long train of argument.
2863 \end_layout
2864
2865 \begin_layout Fact
2866 Used in a way similar to Proposition, though perhaps lower on the scale.
2867 \end_layout
2868
2869 \begin_layout Standard
2870 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2871  and AMS fonts
2872  packages.
2873  They need to be available on your system in order to use these environments.
2874 \end_layout
2875
2876 \begin_layout Subsection
2877
2878 \change_inserted 564990737 1671383236
2879
2880 \lang american
2881 \begin_inset CommandInset label
2882 LatexCommand label
2883 name "subsec:Extra-font-sizes"
2884
2885 \end_inset
2886
2887 Extra font sizes
2888 \end_layout
2889
2890 \begin_layout Standard
2891
2892 \change_inserted 564990737 1671383236
2893
2894 \lang american
2895 The “Extra font sizes” collection provides the document classes 
2896 \family sans
2897 article
2898 \begin_inset space \thinspace{}
2899 \end_inset
2900
2901 (with extra font sizes)
2902 \family default
2903
2904 \family sans
2905 book
2906 \begin_inset space \thinspace{}
2907 \end_inset
2908
2909 (with extra font sizes)
2910 \family default
2911
2912 \family sans
2913 letter
2914 \begin_inset space \thinspace{}
2915 \end_inset
2916
2917 (with extra font sizes)
2918 \family default
2919  and 
2920 \family sans
2921 report
2922 \begin_inset space \thinspace{}
2923 \end_inset
2924
2925 (with extra font sizes)
2926 \family default
2927  which use the 
2928 \family typewriter
2929 article.cls
2930 \family default
2931
2932 \family typewriter
2933 book.cls
2934 \family default
2935
2936 \family typewriter
2937 letter.cls
2938 \family default
2939  and 
2940 \family typewriter
2941 report.cls
2942 \family default
2943  document classes respectively but offer the additional 
2944 \family sans
2945 \bar under
2946 B
2947 \bar default
2948 ase
2949 \begin_inset space ~
2950 \end_inset
2951
2952 Size
2953 \family default
2954  options 8, 9, 14, 17 and 20 in the 
2955 \family sans
2956 \bar under
2957 D
2958 \bar default
2959 ocument\SpecialChar menuseparator
2960
2961 \bar under
2962 S
2963 \bar default
2964 ettings\SpecialChar menuseparator
2965 Fonts
2966 \family default
2967  dialog.
2968 \end_layout
2969
2970 \begin_layout Subsection
2971
2972 \change_inserted 564990737 1671383236
2973
2974 \lang american
2975 Hebrew
2976 \end_layout
2977
2978 \begin_layout Standard
2979
2980 \change_inserted 564990737 1671383236
2981
2982 \lang american
2983 The document classes 
2984 \family sans
2985 article
2986 \begin_inset space \thinspace{}
2987 \end_inset
2988
2989 (Hebrew)
2990 \family default
2991  and 
2992 \family sans
2993 letter
2994 \begin_inset space \thinspace{}
2995 \end_inset
2996
2997 (Hebrew)
2998 \family default
2999  use the 
3000 \family typewriter
3001 article.cl
3002 \family sans
3003 s
3004 \family default
3005  and 
3006 \family typewriter
3007 letter.cls
3008 \family default
3009  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3010 .
3011 \end_layout
3012
3013 \begin_layout Subsection
3014
3015 \change_inserted 564990737 1671383236
3016
3017 \lang american
3018 \begin_inset CommandInset label
3019 LatexCommand label
3020 name "subsec:Japanese"
3021
3022 \end_inset
3023
3024 Japanese
3025 \end_layout
3026
3027 \begin_layout Standard
3028
3029 \change_inserted 564990737 1671383236
3030
3031 \lang american
3032 The document classes 
3033 \family sans
3034 article
3035 \begin_inset space \thinspace{}
3036 \end_inset
3037
3038 (Japanese JS Class)
3039 \family default
3040 ,
3041 \family sans
3042  article
3043 \begin_inset space \thinspace{}
3044 \end_inset
3045
3046 (Japanese Standard Class Vertical Writing)
3047 \family default
3048
3049 \family sans
3050 article
3051 \begin_inset space \thinspace{}
3052 \end_inset
3053
3054 (Japanese Standard Class)
3055 \family default
3056
3057 \family sans
3058 book
3059 \begin_inset space \thinspace{}
3060 \end_inset
3061
3062 (Japanese JS Class)
3063 \family default
3064 ,
3065 \family sans
3066  book
3067 \begin_inset space \thinspace{}
3068 \end_inset
3069
3070 (Japanese Standard Class Vertical Writing)
3071 \family default
3072
3073 \family sans
3074 book
3075 \begin_inset space \thinspace{}
3076 \end_inset
3077
3078 (Japanese Standard Class)
3079 \family default
3080
3081 \family sans
3082 report
3083 \begin_inset space \thinspace{}
3084 \end_inset
3085
3086 (Japanese Vertical Writing)
3087 \family default
3088  and 
3089 \family sans
3090 report
3091 \begin_inset space \thinspace{}
3092 \end_inset
3093
3094 (Japanese Standard Class)
3095 \family default
3096  provide document classes for the Japanese language.
3097 \end_layout
3098
3099 \begin_layout Subsection
3100 Koma-Script
3101 \end_layout
3102
3103 \begin_layout Standard
3104 by 
3105 \noun on
3106 Bernd Rellermeyer
3107 \end_layout
3108
3109 \begin_layout Subsubsection
3110 Overview
3111 \end_layout
3112
3113 \begin_layout Standard
3114 The \SpecialChar LyX
3115  document classes 
3116 \emph on
3117 article (koma-script)
3118 \emph default
3119
3120 \emph on
3121 report (koma-script)
3122 \emph default
3123
3124 \emph on
3125 book
3126 \emph default
3127  
3128 \emph on
3129 (koma-script)
3130 \emph default
3131 , and 
3132 \emph on
3133 letter
3134 \emph default
3135  
3136 \emph on
3137 (koma-script)
3138 \emph default
3139  correspond to the \SpecialChar LaTeX
3140  document classes 
3141 \family typewriter
3142 scrartcl.cls
3143 \family default
3144
3145 \family typewriter
3146 scrreprt.cls
3147 \family default
3148
3149 \family typewriter
3150 scrbook.cls
3151 \family default
3152 , and 
3153 \family typewriter
3154 scrlettr.cls
3155 \family default
3156 , resp.
3157 \begin_inset space ~
3158 \end_inset
3159
3160 of the Koma-Script family.
3161  They are replacements for the standard document classes 
3162 \family typewriter
3163 article.cls
3164 \family default
3165
3166 \family typewriter
3167 report.cls
3168 \family default
3169
3170 \family typewriter
3171 book.cls
3172 \family default
3173  and 
3174 \family typewriter
3175 letter.cls
3176 \family default
3177 , resp., and fit better to European typography conventions in a number of
3178  points.
3179 \end_layout
3180
3181 \begin_layout Itemize
3182 Standard character size is 11pt in 
3183 \emph on
3184 article (koma-script)
3185 \emph default
3186
3187 \emph on
3188 report (koma-script)
3189 \emph default
3190 , and 
3191 \emph on
3192 book (koma-script)
3193 \emph default
3194 , and 12pt in 
3195 \emph on
3196 letter (koma-script)
3197 \emph default
3198 .
3199 \end_layout
3200
3201 \begin_layout Itemize
3202 Headings, labels of the description environment, and a number of elements
3203  of the 
3204 \emph on
3205 letter (koma-script)
3206 \emph default
3207  document class are set in a bold sans serif font.
3208 \begin_inset Foot
3209 status collapsed
3210
3211 \begin_layout Plain Layout
3212 There is a big difference between the bold sans serif old cm fonts and new
3213  ec fonts, especially in the appearance of headings.
3214  In comparison, the ec bold sans serif fonts look a bit thin.
3215  Here the \SpecialChar LaTeX
3216  package 
3217 \family typewriter
3218 cmsd.sty by
3219 \family default
3220  
3221 \shape smallcaps
3222 Walter Schmidt
3223 \shape default
3224  helps to produce the 
3225 \begin_inset Quotes eld
3226 \end_inset
3227
3228 usual
3229 \begin_inset Quotes erd
3230 \end_inset
3231
3232  appearance when using the ec fonts.
3233 \end_layout
3234
3235 \end_inset
3236
3237  The numbering of chapter headings is made in the same way as the numbering
3238  of section headings, that is without the extra line 
3239 \begin_inset Quotes eld
3240 \end_inset
3241
3242 Chapter\SpecialChar ldots
3243
3244 \begin_inset Quotes erd
3245 \end_inset
3246
3247 .
3248  In addition, the appearance of the headings can be modified by using a
3249  number of options (in \SpecialChar LyX
3250  to be entered in the field 
3251 \family sans
3252 Extra
3253 \begin_inset space ~
3254 \end_inset
3255
3256 Options
3257 \family default
3258  of the dialog 
3259 \family sans
3260 Layout\SpecialChar menuseparator
3261 Document
3262 \family default
3263 ).
3264  
3265 \end_layout
3266
3267 \begin_layout Itemize
3268 The main means in the Koma-Script document classes to design the type area
3269  are the options 
3270 \family sans
3271 BCOR
3272 \family default
3273  and 
3274 \family sans
3275 DIV
3276 \family default
3277  (in \SpecialChar LyX
3278  to be entered in the extra class options field in the dialog 
3279 \family sans
3280 Document\SpecialChar menuseparator
3281 Settings
3282 \family default
3283 ).
3284  They make a clearer modification of page margins possible as do the options
3285  of the dialog 
3286 \family sans
3287 Document\SpecialChar menuseparator
3288 Settings
3289 \family default
3290 .
3291  
3292 \end_layout
3293
3294 \begin_layout Itemize
3295 The \SpecialChar LaTeX
3296  document classes of the Koma-Script family define a number of additional
3297  commands.
3298  Those part of it which makes sense in \SpecialChar LyX
3299  is implemented in corresponding
3300  paragraph types.
3301 \end_layout
3302
3303 \begin_layout Standard
3304 Detailed descriptions of the \SpecialChar LaTeX
3305  document classes of the Koma-Script family
3306  can be found in the Koma-Script documentation 
3307 \emph on
3308 scrguide
3309 \emph default
3310  (German) and 
3311 \emph on
3312 scrguien
3313 \emph default
3314  (English).
3315 \end_layout
3316
3317 \begin_layout Subsubsection
3318 article (koma-script), report (koma-script), and book (koma-script)
3319 \end_layout
3320
3321 \begin_layout Standard
3322 The document classes 
3323 \emph on
3324 article (koma-script)
3325 \emph default
3326
3327 \emph on
3328 report (koma-script)
3329 \emph default
3330 , and 
3331 \emph on
3332 book
3333 \emph default
3334  
3335 \emph on
3336 (koma-script)
3337 \emph default
3338  are implemented in the layout files 
3339 \family typewriter
3340 scrartcl.layout
3341 \family default
3342
3343 \family typewriter
3344 scrreprt.layout
3345 \family default
3346 , and 
3347 \family typewriter
3348 scrbook.layout
3349 \family default
3350 , resp.
3351  They contain all the paragraph types of the corresponding standard document
3352  classes 
3353 \emph on
3354 article
3355 \emph default
3356
3357 \emph on
3358 report
3359 \emph default
3360 , and 
3361 \emph on
3362 book
3363 \emph default
3364 , resp., partly modified, with the exception of the \SpecialChar LyX
3365  specific 
3366 \family sans
3367 List
3368 \family default
3369 -type, which is replaced by the new 
3370 \family sans
3371 Labeling
3372 \family default
3373 -type having the same functionality.
3374  Beside the 
3375 \family sans
3376 Labeling
3377 \family default
3378 -Type there is a number of new paragraph types added.
3379  They are 
3380 \emph on
3381 not
3382 \emph default
3383  part of 
3384 \emph on
3385 letter (koma-script)
3386 \emph default
3387 .
3388 \end_layout
3389
3390 \begin_layout Itemize
3391
3392 \family sans
3393 Addpart, Addchap
3394 \family default
3395
3396 \family sans
3397 Addsec
3398 \family default
3399 : are equivalents to 
3400 \family sans
3401 Part*, Chapter*
3402 \family default
3403  and 
3404 \family sans
3405 Section*
3406 \family default
3407 , resp., additionally inserting an entry in the table of contents.
3408  
3409 \family sans
3410 Addpart
3411 \family default
3412  and 
3413 \family sans
3414 Addchap
3415 \family default
3416  are not contained in 
3417 \emph on
3418 article (koma-script)
3419 \emph default
3420 .
3421 \end_layout
3422
3423 \begin_layout Itemize
3424
3425 \family sans
3426 Addchap*
3427 \family default
3428
3429 \family sans
3430 Addsec*
3431 \family default
3432 : behave exactly as 
3433 \family sans
3434 Addchap
3435 \family default
3436  and 
3437 \family sans
3438 Addsec
3439 \family default
3440 , resp., additionally clearing running heads.
3441  
3442 \family sans
3443 Addchap*
3444 \family default
3445  is not contained in 
3446 \emph on
3447 article (koma-script)
3448 \emph default
3449 .
3450 \begin_inset Foot
3451 status collapsed
3452
3453 \begin_layout Plain Layout
3454 There is also an 
3455 \family typewriter
3456
3457 \backslash
3458 addpart*
3459 \family default
3460  command in 
3461 \emph on
3462 book (koma-script)
3463 \emph default
3464  and in 
3465 \emph on
3466 report (koma-script)
3467 \emph default
3468 , but since this is identical to 
3469 \family sans
3470 Part*
3471 \family default
3472 , is has not been implemented in \SpecialChar LyX
3473 .
3474 \end_layout
3475
3476 \end_inset
3477
3478
3479 \end_layout
3480
3481 \begin_layout Itemize
3482
3483 \family sans
3484 Minisec
3485 \family default
3486 : generates a heading directly above the following paragraph in the standard
3487  character size without affecting the structure of the document.
3488 \end_layout
3489
3490 \begin_layout Itemize
3491
3492 \family sans
3493 Captionabove
3494 \family default
3495  and 
3496 \family sans
3497 Captionbelow
3498 \family default
3499  are special captions which respect the different space settings needed
3500  for captions placed above or below an element (if you follow strict typographic
3501  rules, you might want to place table captions always above the table).
3502  You can also use the class option 
3503 \family typewriter
3504 tablecaptionsabove
3505 \family default
3506 , which will switch 
3507 \family sans
3508 caption
3509 \family default
3510  to 
3511 \family sans
3512 captionabove
3513 \family default
3514  for tables and 
3515 \family sans
3516 captionbelow
3517 \family default
3518  for figures.
3519  You need at least Koma-Script version 2.8q to use this.
3520 \end_layout
3521
3522 \begin_layout Itemize
3523
3524 \family sans
3525 Dictum
3526 \family default
3527 : can be used to set a bonmot, e.
3528 \begin_inset space \thinspace{}
3529 \end_inset
3530
3531 g.
3532 \begin_inset space \space{}
3533 \end_inset
3534
3535 at the beginning of a chapter.
3536  If you use the optional argument (
3537 \family sans
3538 Insert\SpecialChar menuseparator
3539 Dictum
3540 \begin_inset space ~
3541 \end_inset
3542
3543 Author
3544 \family default
3545 ), you can insert the dictum's author there.
3546  Dictum and author are separated by a line.
3547  You need at least Koma-Script version 2.8q to use this.
3548  
3549 \family sans
3550 Dictum
3551 \family default
3552  is not contained in 
3553 \emph on
3554 article (koma-script)
3555 \emph default
3556 .
3557 \end_layout
3558
3559 \begin_layout Standard
3560 The following types, together with the standard types 
3561 \family sans
3562 Title
3563 \family default
3564
3565 \family sans
3566 Author
3567 \family default
3568 , and 
3569 \family sans
3570 Date
3571 \family default
3572 , form the title area of the document.
3573  They must be entered ahead of the first 
3574 \begin_inset Quotes eld
3575 \end_inset
3576
3577 ordinary
3578 \begin_inset Quotes erd
3579 \end_inset
3580
3581  paragraph.
3582 \begin_inset Foot
3583 status collapsed
3584
3585 \begin_layout Plain Layout
3586 The corresponding \SpecialChar LaTeX
3587  commands must appear before the 
3588 \family typewriter
3589
3590 \backslash
3591 maketitle
3592 \family default
3593  command.
3594 \end_layout
3595
3596 \end_inset
3597
3598  When such a type is used more than once, the latter usage overwrites the
3599  former one, that means, for every type only the latest usage is valid.
3600  The order of the different types however has, like 
3601 \family sans
3602 Title
3603 \family default
3604
3605 \family sans
3606 Author
3607 \family default
3608 , and 
3609 \family sans
3610 Date
3611 \family default
3612 , no effect on the appearance of the produced document.
3613 \end_layout
3614
3615 \begin_layout Itemize
3616
3617 \family sans
3618 Subject
3619 \family default
3620 : produces a centered paragraph above the ordinary title (
3621 \family sans
3622 Title
3623 \family default
3624
3625 \family sans
3626 Author
3627 \family default
3628
3629 \family sans
3630 Date
3631 \family default
3632 ) for the subject of the document.
3633 \end_layout
3634
3635 \begin_layout Itemize
3636
3637 \family sans
3638 Publishers
3639 \family default
3640 : produces a centered paragraph below the ordinary title (
3641 \family sans
3642 Title
3643 \family default
3644
3645 \family sans
3646 Author
3647 \family default
3648
3649 \family sans
3650 Date
3651 \family default
3652 ) for the publishers' name.
3653 \end_layout
3654
3655 \begin_layout Itemize
3656
3657 \family sans
3658 Dedication
3659 \family default
3660 : in 
3661 \emph on
3662 report (koma-script)
3663 \emph default
3664  and 
3665 \emph on
3666 book (koma-script)
3667 \emph default
3668  produces a centered paragraph on its own page behind the title page, or
3669  in 
3670 \emph on
3671 article (koma-script)
3672 \emph default
3673  produces a centered paragraph below the ordinary title (
3674 \family sans
3675 Title
3676 \family default
3677
3678 \family sans
3679 Author
3680 \family default
3681
3682 \family sans
3683 Date
3684 \family default
3685
3686 \family sans
3687 Publishers
3688 \family default
3689 ) for a dedication.
3690 \end_layout
3691
3692 \begin_layout Itemize
3693
3694 \family sans
3695 Titlehead
3696 \family default
3697 : produces a left aligned paragraph above the ordinary title (
3698 \family sans
3699 Title
3700 \family default
3701
3702 \family sans
3703 Author
3704 \family default
3705
3706 \family sans
3707 Date
3708 \family default
3709
3710 \family sans
3711 Subject
3712 \family default
3713 ) for a document`s head.
3714 \end_layout
3715
3716 \begin_layout Itemize
3717
3718 \family sans
3719 Uppertitleback
3720 \family default
3721 : produces in a double-sided print in 
3722 \emph on
3723 report (koma-script)
3724 \emph default
3725  and 
3726 \emph on
3727 book (koma-script)
3728 \emph default
3729  a left-aligned paragraph at the top of the title page`s back or has no
3730  effect in a single-sided print or in 
3731 \emph on
3732 article (koma-script)
3733 \emph default
3734 .
3735 \end_layout
3736
3737 \begin_layout Itemize
3738
3739 \family sans
3740 Lowertitleback
3741 \family default
3742 : produces in a double-sided print in 
3743 \emph on
3744 report (koma-script)
3745 \emph default
3746  and 
3747 \emph on
3748 book (koma-script)
3749 \emph default
3750  a left-aligned paragraph at the bottom of the title page`s back or has
3751  no effect in a single-sided print or in 
3752 \emph on
3753 article (koma-script)
3754 \emph default
3755 .
3756 \end_layout
3757
3758 \begin_layout Itemize
3759
3760 \family sans
3761 Extratitle
3762 \family default
3763 : produces a special 
3764 \begin_inset Quotes eld
3765 \end_inset
3766
3767 dirty
3768 \begin_inset Quotes erd
3769 \end_inset
3770
3771  page ahead of the actual document containing a paragraph without special
3772  formatting.
3773 \end_layout
3774
3775 \begin_layout Standard
3776 The layout files for the document classes 
3777 \emph on
3778 article (koma-script)
3779 \emph default
3780
3781 \emph on
3782 report (koma-script)
3783 \emph default
3784 , and 
3785 \emph on
3786 book (koma-script)
3787 \emph default
3788  do include the file 
3789 \family typewriter
3790 scrmacros.inc
3791 \family default
3792 .
3793  This is thought of as a place to define your own types.
3794  Copy scrmacros
3795 \family typewriter
3796 .inc
3797 \family default
3798  in your personal layout directory and edit the file!
3799 \end_layout
3800
3801 \begin_layout Subsubsection
3802 letter (koma-script)
3803 \end_layout
3804
3805 \begin_layout Description
3806 Note: This section discusses the obsolete 
3807 \family sans
3808 KOMA-Script-Letter (v.
3809 \begin_inset space ~
3810 \end_inset
3811
3812 1)
3813 \family default
3814 , which is not even included anymore in recent KOMA releases.
3815  Please refer to the next section for the current KOMA-Script-Letter class
3816  (v.
3817 \begin_inset space ~
3818 \end_inset
3819
3820 2)!
3821 \end_layout
3822
3823 \begin_layout Standard
3824 \noindent
3825 The document class 
3826 \emph on
3827 letter (koma-script)
3828 \emph default
3829  is implemented in the layout file 
3830 \family typewriter
3831 scrlettr.layout
3832 \family default
3833 .
3834  It contains all the paragraph types of the corresponding standard document
3835  class 
3836 \emph on
3837 letter
3838 \emph default
3839 , partly modified, with the exception of the \SpecialChar LyX
3840  specific types 
3841 \family sans
3842 \SpecialChar LyX
3843 -Code
3844 \family default
3845  and 
3846 \family sans
3847 Comment
3848 \family default
3849  and the 
3850 \family sans
3851 List
3852 \family default
3853  type, which is replaced by the new 
3854 \family sans
3855 Labeling
3856 \family default
3857  type.
3858  In addition, it contains, in contrast to the standard document class, the
3859  standard types 
3860 \family sans
3861 \SpecialChar LaTeX
3862
3863 \family default
3864
3865 \family sans
3866 Quotation
3867 \family default
3868
3869 \family sans
3870 Quote
3871 \family default
3872 , and 
3873 \family sans
3874 Verse
3875 \family default
3876 .
3877  Furthermore, there are a number of new letter specific types.
3878 \end_layout
3879
3880 \begin_layout Standard
3881 The appearance of the letter produced by this document class can be controlled
3882  by a number of \SpecialChar LaTeX
3883  commands, which you can put in the \SpecialChar LaTeX
3884  preamble.
3885 \begin_inset Foot
3886 status collapsed
3887
3888 \begin_layout Plain Layout
3889 For example, the standard appearance of the letter`s heading, consisting
3890  of name and address, is quite self-willed.
3891  An 
3892 \begin_inset Quotes eld
3893 \end_inset
3894
3895 ordinary
3896 \begin_inset Quotes erd
3897 \end_inset
3898
3899  heading is produced by the following \SpecialChar LaTeX
3900  commands in the preamble:
3901 \end_layout
3902
3903 \begin_layout LyX-Code
3904
3905 \backslash
3906 firsthead{
3907 \backslash
3908 parbox[b]{
3909 \backslash
3910 textwidth}
3911 \end_layout
3912
3913 \begin_layout LyX-Code
3914   {
3915 \backslash
3916 ignorespaces 
3917 \backslash
3918 fromname
3919 \backslash
3920
3921 \backslash
3922  
3923 \backslash
3924 ignorespaces 
3925 \backslash
3926 fromaddress}} 
3927 \end_layout
3928
3929 \begin_layout LyX-Code
3930
3931 \backslash
3932 nexthead{
3933 \backslash
3934 parbox[b]{
3935 \backslash
3936 textwidth}
3937 \end_layout
3938
3939 \begin_layout LyX-Code
3940   {
3941 \backslash
3942 ignorespaces 
3943 \backslash
3944 fromname 
3945 \backslash
3946 hfill 
3947 \backslash
3948 ignorespaces 
3949 \backslash
3950 pagename
3951 \backslash
3952  
3953 \backslash
3954 thepage}}
3955 \end_layout
3956
3957 \end_inset
3958
3959  A detailed German description of such \SpecialChar LaTeX
3960  commands can be found in the Koma-Script
3961  documentation 
3962 \emph on
3963 scrguide
3964 \emph default
3965 .
3966  With it, the letter's author can produce his personal letter layout.
3967 \end_layout
3968
3969 \begin_layout Standard
3970 The types 
3971 \family sans
3972 Letter
3973 \family default
3974  and 
3975 \family sans
3976 Opening
3977 \family default
3978  define the beginning of the letter and must be used in every letter.
3979  To emphasize them in the \SpecialChar LyX
3980  document class, they are marked with the letter
3981  
3982 \shape italic
3983 L
3984 \shape default
3985  or 
3986 \shape italic
3987 O
3988 \shape default
3989 , resp.
3990 \begin_inset space ~
3991 \end_inset
3992
3993 in the left margin.
3994  It is possible to write any number of letters in one file.
3995  An 
3996 \family sans
3997 Opening
3998 \family default
3999  type produces a new letter using the same addressee and a 
4000 \family sans
4001 Letter
4002 \family default
4003  type produces a new addressee.
4004  The types 
4005 \family sans
4006 Closing
4007 \family default
4008
4009 \family sans
4010 PS
4011 \family default
4012
4013 \family sans
4014 CC
4015 \family default
4016 , and 
4017 \family sans
4018 Encl
4019 \family default
4020  are ordinary paragraph types and can also be used several times in one
4021  and the same letter.
4022 \end_layout
4023
4024 \begin_layout Itemize
4025
4026 \family sans
4027 Letter
4028 \family default
4029 : produces a paragraph for the addressee and implicitly defines the beginning
4030  of the letter.
4031 \end_layout
4032
4033 \begin_layout Itemize
4034
4035 \family sans
4036 Opening
4037 \family default
4038 : produces a paragraph for the form of address and implicitly produces a
4039  new letter.
4040 \end_layout
4041
4042 \begin_layout Itemize
4043
4044 \family sans
4045 Closing
4046 \family default
4047 : produces a paragraph for a close.
4048 \end_layout
4049
4050 \begin_layout Itemize
4051
4052 \family sans
4053 PS
4054 \family default
4055 : produces a paragraph for a postscript.
4056 \end_layout
4057
4058 \begin_layout Itemize
4059
4060 \family sans
4061 CC
4062 \family default
4063 : produces a paragraph for a distribution list.
4064 \end_layout
4065
4066 \begin_layout Itemize
4067
4068 \family sans
4069 Encl
4070 \family default
4071 : produces a paragraph for enclosures.
4072 \end_layout
4073
4074 \begin_layout Standard
4075 The types 
4076 \family sans
4077 Name
4078 \family default
4079
4080 \family sans
4081 Signature
4082 \family default
4083
4084 \family sans
4085 Address
4086 \family default
4087
4088 \family sans
4089 Telephone
4090 \family default
4091
4092 \family sans
4093 Place
4094 \family default
4095
4096 \family sans
4097 Backaddress
4098 \family default
4099
4100 \family sans
4101 Specialmail
4102 \family default
4103
4104 \family sans
4105 Location
4106 \family default
4107
4108 \family sans
4109 Title
4110 \family default
4111 , and 
4112 \family sans
4113 Subject
4114 \family default
4115  are input types provided with a label to enter information, which will
4116  be processed by the document class.
4117 \begin_inset Foot
4118 status collapsed
4119
4120 \begin_layout Plain Layout
4121 It could be seen as a matter of inconsequence, that the types 
4122 \family sans
4123 Letter
4124 \family default
4125  and 
4126 \family sans
4127 Opening
4128 \family default
4129  described above are not such input types as well.
4130  Because of the special meaning of those types, however, I have implemented
4131  them as ordinary paragraph types with a one letter mark in the left margin.
4132  Moreover, it would affect my feeling of symmetry, if the 
4133 \family sans
4134 Opening
4135 \family default
4136  type and the 
4137 \family sans
4138 Closing
4139 \family default
4140  type had such a serious different appearance.
4141 \end_layout
4142
4143 \end_inset
4144
4145  The types must be used ahead of the corresponding 
4146 \family sans
4147 Opening
4148 \family default
4149  type.
4150 \end_layout
4151
4152 \begin_layout Standard
4153 An implementation of these types in a WYSIWYG fashion does not seem to make
4154  sense, because the real appearance of the produced letter does not only
4155  depend on the usage of the particular type, but also on other factors.
4156  For example, a signature entered in the 
4157 \family sans
4158 Signature
4159 \family default
4160  type will in the standard behavior appear in the produced letter only,
4161  when in the same letter also a 
4162 \family sans
4163 Closing
4164 \family default
4165  type is used.
4166  The entered value of the 
4167 \family sans
4168 Telephone
4169 \family default
4170  type will in the standard behavior not appear in the produced letter at
4171  all.
4172  The possibility to design the letter`s heading freely is already indicated
4173  in a footnote above.
4174 \end_layout
4175
4176 \begin_layout Standard
4177 The input types can also be used as empty paragraphs.
4178  This makes sense e.
4179 \begin_inset space \thinspace{}
4180 \end_inset
4181
4182 g.
4183 \begin_inset space \space{}
4184 \end_inset
4185
4186 for the 
4187 \family sans
4188 Signature
4189 \family default
4190  type.
4191  If the 
4192 \family sans
4193 Signature
4194 \family default
4195  type is not used at all, in the standard behavior the value of the 
4196 \family sans
4197 Name
4198 \family default
4199  type is used as signature, whereas if an empty 
4200 \family sans
4201 Signature
4202 \family default
4203  type is used, no signature value is defined.
4204 \end_layout
4205
4206 \begin_layout Standard
4207 By using the input types it is possible to write a letter template, containing
4208  filled input types with your personal dates (name, address, etc.) and empty
4209  input types for other dates you want to enter.
4210 \end_layout
4211
4212 \begin_layout Itemize
4213
4214 \family sans
4215 Name
4216 \family default
4217 : sender's name, in the standard behavior appears as a centered paragraph
4218  in small caps in the letter`s heading.
4219 \end_layout
4220
4221 \begin_layout Itemize
4222
4223 \family sans
4224 Signature
4225 \family default
4226 : sender's signature, in the standard behavior appears below the 
4227 \family sans
4228 Closing
4229 \family default
4230  type.
4231  If no 
4232 \family sans
4233 Signature
4234 \family default
4235  type is used, the value of the 
4236 \family sans
4237 Name
4238 \family default
4239  type appears instead.
4240 \end_layout
4241
4242 \begin_layout Itemize
4243
4244 \family sans
4245 Address
4246 \family default
4247 : sender's address, in the standard behavior appears in a centered paragraph
4248  in the letter`s heading below the sender's name.
4249 \end_layout
4250
4251 \begin_layout Itemize
4252
4253 \family sans
4254 Telephone
4255 \family default
4256 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4257  variable
4258  
4259 \family typewriter
4260
4261 \backslash
4262 telephonenum
4263 \family default
4264 .
4265 \end_layout
4266
4267 \begin_layout Itemize
4268
4269 \family sans
4270 Place
4271 \family default
4272 : place of the letter`s making.
4273 \end_layout
4274
4275 \begin_layout Itemize
4276
4277 \family sans
4278 Date
4279 \family default
4280 : date of the letter`s making.
4281  
4282 \family sans
4283 Place
4284 \family default
4285  and 
4286 \family sans
4287 Date
4288 \family default
4289 , in the standard behavior, produce the place and the date in a right-aligned
4290  line below the addressee's field.
4291  If an empty 
4292 \family sans
4293 Date
4294 \family default
4295  type is used, neither place nor date appear, independent of the value of
4296  the 
4297 \family sans
4298 Place
4299 \family default
4300  type.
4301  If no 
4302 \family sans
4303 Date
4304 \family default
4305  type is used, the date of the letter `s production is used.
4306 \end_layout
4307
4308 \begin_layout Itemize
4309
4310 \family sans
4311 Backaddress
4312 \family default
4313 : sender`s back address, in the standard behavior appears above the addressee's
4314  field in a small sans serif font.
4315 \end_layout
4316
4317 \begin_layout Itemize
4318
4319 \family sans
4320 Specialmail
4321 \family default
4322 : special mail information, in the standard behavior appears underlined
4323  above the addressee's field below the back address.
4324 \end_layout
4325
4326 \begin_layout Itemize
4327
4328 \family sans
4329 Location
4330 \family default
4331 : additional information, in the standard behavior appears on right side
4332  below the addressee`s field.
4333 \end_layout
4334
4335 \begin_layout Itemize
4336
4337 \family sans
4338 Title
4339 \family default
4340 : the letter's title, in the standard behavior appears in a big, bold, sans
4341  serif font above the subject.
4342 \end_layout
4343
4344 \begin_layout Itemize
4345
4346 \family sans
4347 Subject
4348 \family default
4349 : the letter's subject, in the standard behavior appears in a bold font
4350  above the 
4351 \family sans
4352 Opening
4353 \family default
4354  paragraph.
4355 \end_layout
4356
4357 \begin_layout Standard
4358 The types 
4359 \family sans
4360 Yourref
4361 \family default
4362
4363 \family sans
4364 Yourmail
4365 \family default
4366
4367 \family sans
4368 Myref
4369 \family default
4370
4371 \family sans
4372 Customer
4373 \family default
4374 , and 
4375 \family sans
4376 Invoice
4377 \family default
4378  produce a business letter like line above the 
4379 \family sans
4380 Title
4381 \family default
4382  line containing the fields 
4383 \begin_inset Quotes eld
4384 \end_inset
4385
4386 Your ref.
4387 \begin_inset Quotes erd
4388 \end_inset
4389
4390
4391 \begin_inset Quotes eld
4392 \end_inset
4393
4394 Your letter of
4395 \begin_inset Quotes erd
4396 \end_inset
4397
4398
4399 \begin_inset Quotes eld
4400 \end_inset
4401
4402 Our ref.
4403 \begin_inset Quotes erd
4404 \end_inset
4405
4406
4407 \begin_inset Quotes eld
4408 \end_inset
4409
4410 Customer no.
4411 \begin_inset Quotes erd
4412 \end_inset
4413
4414
4415 \begin_inset Quotes eld
4416 \end_inset
4417
4418 Invoice no.
4419 \begin_inset Quotes erd
4420 \end_inset
4421
4422 , and 
4423 \begin_inset Quotes eld
4424 \end_inset
4425
4426 Date
4427 \begin_inset Quotes erd
4428 \end_inset
4429
4430 .
4431  For the date field, the value of the 
4432 \family sans
4433 Date
4434 \family default
4435  type is used.
4436  If one of these 
4437 \begin_inset Quotes eld
4438 \end_inset
4439
4440 business letter types
4441 \begin_inset Quotes erd
4442 \end_inset
4443
4444  is used, the value of the 
4445 \family sans
4446 Place
4447 \family default
4448  type however does not appear, but only the \SpecialChar LaTeX
4449  variable 
4450 \family typewriter
4451
4452 \backslash
4453 fromplace
4454 \family default
4455  is set.
4456  The ordinary output of place and date in a right-aligned line below the
4457  addressee`s field is suppressed.
4458  The types are implemented as input types provided with a label and must
4459  be used ahead of the corresponding 
4460 \family sans
4461 Opening
4462 \family default
4463  type.
4464 \end_layout
4465
4466 \begin_layout Itemize
4467
4468 \family sans
4469 Yourref
4470 \family default
4471 : Your ref.
4472 \end_layout
4473
4474 \begin_layout Itemize
4475
4476 \family sans
4477 Yourmail
4478 \family default
4479 : Your letter of.
4480 \end_layout
4481
4482 \begin_layout Itemize
4483
4484 \family sans
4485 Myref
4486 \family default
4487 : Our ref.
4488 \end_layout
4489
4490 \begin_layout Itemize
4491
4492 \family sans
4493 Customer
4494 \family default
4495 : Customer no.
4496 \end_layout
4497
4498 \begin_layout Itemize
4499
4500 \family sans
4501 Invoice
4502 \family default
4503 : Invoice no.
4504 \end_layout
4505
4506 \begin_layout Subsubsection
4507 The new letter class: letter (koma-script v.2)
4508 \end_layout
4509
4510 \begin_layout Standard
4511 by 
4512 \noun on
4513 Jürgen Spitzmüller
4514 \end_layout
4515
4516 \begin_layout Standard
4517 \begin_inset VSpace medskip
4518 \end_inset
4519
4520
4521 \end_layout
4522
4523 \begin_layout Standard
4524 \noindent
4525 Koma-Script version 2.8 has introduced a new letter class 
4526 \family typewriter
4527 scrlttr2
4528 \family default
4529  which supersedes the now unsupported 
4530 \family typewriter
4531 scrlettr
4532 \family default
4533 .
4534  It has — on the \SpecialChar LaTeX
4535  side — a completely new interface and is not compatible
4536  with the old class.
4537  Therefore, \SpecialChar LyX
4538  supports both, though it is recommended you use the new class.
4539 \end_layout
4540
4541 \begin_layout Standard
4542 This class covers the same functionality as 
4543 \emph on
4544 letter (koma-script),
4545 \emph default
4546  and a few more.
4547  The basic items are 
4548 \family sans
4549 Address
4550 \family default
4551  (receiver's address, same as 
4552 \family sans
4553 Letter
4554 \family default
4555  in the old layout), 
4556 \family sans
4557 Opening
4558 \family default
4559 , and 
4560 \family sans
4561 Closing
4562 \family default
4563 .
4564  
4565 \family sans
4566 NextAddress
4567 \family default
4568  will start a new letter (i.
4569 \begin_inset space \thinspace{}
4570 \end_inset
4571
4572 e.
4573 \begin_inset space \space{}
4574 \end_inset
4575
4576 you can write several letters per document).
4577  New elements are sender's 
4578 \family sans
4579 E-Mail
4580 \family default
4581
4582 \family sans
4583 URL
4584 \family default
4585
4586 \family sans
4587 Fax
4588 \family default
4589
4590 \family sans
4591 Bank
4592 \family default
4593  and the possibility to use a 
4594 \family sans
4595 Logo
4596 \family default
4597  (via 
4598 \family sans
4599 Insert\SpecialChar menuseparator
4600 Graphics
4601 \family default
4602 ) in the header.
4603 \end_layout
4604
4605 \begin_layout Standard
4606 The biggest improvement is, though, that the letter's layout is configurable
4607  to meet almost any needs.
4608  This can be done via the preamble or with a special style file (Letter
4609  Class Option, extension 
4610 \family typewriter
4611 *.lco
4612 \family default
4613 ), that will be read in as a class option.
4614 \begin_inset Foot
4615 status collapsed
4616
4617 \begin_layout Plain Layout
4618 The KOMA package comes with some default 
4619 \family typewriter
4620 *.lco
4621 \family default
4622  files.
4623  There is, for instance, a 
4624 \family typewriter
4625 DIN.lco
4626 \family default
4627  file that follows german typesetting rules, or a 
4628 \family typewriter
4629 KOMAold.lco
4630 \family default
4631  that provides the default layout of the old 
4632 \family typewriter
4633 scrlettr
4634 \family default
4635  class.
4636  The latter can be loaded with the class option 
4637 \family typewriter
4638 KOMAold
4639 \family default
4640 , inserted via the 
4641 \family sans
4642 Layout\SpecialChar menuseparator
4643 Document\SpecialChar menuseparator
4644 Extra Options
4645 \family default
4646  field.
4647 \end_layout
4648
4649 \end_inset
4650
4651  Have a look at the
4652 \change_deleted 564990737 1671617922
4653  
4654 \emph on
4655 koma-letter2
4656 \change_unchanged
4657
4658 \emph default
4659  template 
4660 \change_deleted 564990737 1671617938
4661 that is included in \SpecialChar LyX
4662  for examples
4663 \change_inserted 564990737 1671617997
4664  in 
4665 \family sans
4666 \bar under
4667 \lang american
4668 F
4669 \bar default
4670 ile\SpecialChar menuseparator
4671 New
4672 \begin_inset space ~
4673 \end_inset
4674
4675 fro
4676 \bar under
4677 m
4678 \bar default
4679
4680 \begin_inset space ~
4681 \end_inset
4682
4683 Template\SpecialChar menuseparator
4684 Letters
4685 \lang english
4686 \SpecialChar menuseparator
4687 KOMA-Script Letter (V.2)
4688 \change_unchanged
4689
4690 \family default
4691 .
4692  A detailed description is to be found in the Koma-Script documentation
4693  (
4694 \emph on
4695 scrguide
4696 \emph default
4697 ).
4698 \end_layout
4699
4700 \begin_layout Subsubsection
4701 Problems
4702 \end_layout
4703
4704 \begin_layout Standard
4705 Visualizing the Koma-Script document classes in \SpecialChar LyX
4706 , the \SpecialChar LyX
4707  internals cause some
4708  problems.
4709 \end_layout
4710
4711 \begin_layout Itemize
4712 The chapter number of a 
4713 \family sans
4714 Chapter
4715 \family default
4716  type appears on a line of its own above the chapter heading instead of
4717  appearing in the same line ahead of it.
4718  The cause for that is the \SpecialChar LyX
4719  internal behavior for the labeltype 
4720 \family sans
4721 Counter_Chapter
4722 \family default
4723  in the layout file.
4724 \end_layout
4725
4726 \begin_layout Itemize
4727 The headings of the types 
4728 \family sans
4729 Addchap
4730 \family default
4731  and 
4732 \family sans
4733 Addsec
4734 \family default
4735  are only put in the 
4736 \begin_inset Quotes eld
4737 \end_inset
4738
4739 true
4740 \begin_inset Quotes erd
4741 \end_inset
4742
4743  \SpecialChar LaTeX
4744  table of contents, but not in the \SpecialChar LyX
4745  table of contents (
4746 \family sans
4747 Document\SpecialChar menuseparator
4748 Table
4749 \begin_inset space ~
4750 \end_inset
4751
4752 of
4753 \begin_inset space ~
4754 \end_inset
4755
4756 Contents
4757 \family default
4758 ).
4759 \end_layout
4760
4761 \begin_layout Itemize
4762 The paragraphs in a 
4763 \emph on
4764 letter
4765 \emph default
4766  document class appear in a skip separation mode, not indented.
4767  This is the standard behavior, no special \SpecialChar LaTeX
4768  commands are needed for that.
4769  But in the 
4770 \family sans
4771 Document\SpecialChar menuseparator
4772 Settings
4773 \family default
4774  dialog the corresponding radio button indicates 
4775 \family sans
4776 Indent
4777 \family default
4778 .
4779  A 
4780 \family sans
4781 Skip
4782 \family default
4783  value always has the effect that extra \SpecialChar LaTeX
4784  commands are inserted in the document
4785  to produce the gap, which is not what is wanted in this case.
4786 \end_layout
4787
4788 \begin_layout Subsection
4789
4790 \change_inserted 564990737 1670924924
4791 Polish M.
4792 \begin_inset space \thinspace{}
4793 \end_inset
4794
4795 W.
4796 \begin_inset space \space{}
4797 \end_inset
4798
4799 collection
4800 \change_deleted 564990737 1670924933
4801 Article (mwart), book (mwbk) and report (mwrep)
4802 \begin_inset Argument status
4803 status collapsed
4804
4805 \begin_layout Plain Layout
4806 The 
4807 \family typewriter
4808 mw
4809 \family default
4810  Classes
4811 \end_layout
4812
4813 \end_inset
4814
4815
4816 \change_unchanged
4817
4818 \end_layout
4819
4820 \begin_layout Standard
4821 by 
4822 \noun on
4823 Tomasz Luczak
4824 \end_layout
4825
4826 \begin_layout Standard
4827 The \SpecialChar LyX
4828  document classes 
4829 \emph on
4830 article (mwart)
4831 \emph default
4832
4833 \emph on
4834 report (mwrep)
4835 \emph default
4836  and 
4837 \emph on
4838 book
4839 \emph default
4840  
4841 \emph on
4842 (mwbk)
4843 \emph default
4844  correspond to the \SpecialChar LaTeX
4845  document classes 
4846 \family typewriter
4847 mwart.cls
4848 \family default
4849
4850 \family typewriter
4851 mwrep.cls
4852 \family default
4853  and 
4854 \family typewriter
4855 mwbk.cls
4856 \family default
4857 , resp.
4858  They are replacements for the standard document classes 
4859 \family typewriter
4860 article.cls
4861 \family default
4862
4863 \family typewriter
4864 report.cls
4865 \family default
4866  and 
4867 \family typewriter
4868 book.cls
4869 \family default
4870 , resp., and fit better to Polish typography conventions in a number of points.
4871  
4872 \end_layout
4873
4874 \begin_layout Standard
4875 Basic differences:
4876 \end_layout
4877
4878 \begin_layout Itemize
4879 Unnumbered titles (with star, e.
4880 \begin_inset space \thinspace{}
4881 \end_inset
4882
4883 g.
4884 \begin_inset space \space{}
4885 \end_inset
4886
4887
4888 \family sans
4889 Section*
4890 \family default
4891 ) are added into table of contents,
4892 \end_layout
4893
4894 \begin_layout Itemize
4895 Additional page styles:
4896 \end_layout
4897
4898 \begin_deeper
4899 \begin_layout Description
4900 uheadings header with separated lines,
4901 \end_layout
4902
4903 \begin_layout Description
4904 myheadings custom header, contents headers via commands: 
4905 \family typewriter
4906
4907 \backslash
4908 markright
4909 \family default
4910  and 
4911 \family typewriter
4912
4913 \backslash
4914 markboth
4915 \family default
4916 ,
4917 \end_layout
4918
4919 \begin_layout Description
4920 myuheadings custom header with separated lines,
4921 \end_layout
4922
4923 \begin_layout Description
4924 outer page number is placed on outer side of page
4925 \end_layout
4926
4927 \end_deeper
4928 \begin_layout Itemize
4929 Options 
4930 \end_layout
4931
4932 \begin_deeper
4933 \begin_layout Description
4934 rmheadings serif titles — default,
4935 \end_layout
4936
4937 \begin_layout Description
4938 sfheadings sansserif titles,
4939 \end_layout
4940
4941 \begin_layout Description
4942 authortitle on title page first placed is author next title — default,
4943 \end_layout
4944
4945 \begin_layout Description
4946 titleauthor on title page first placed is title next author,
4947 \end_layout
4948
4949 \begin_layout Description
4950 withmarginpar reserve place on page for margins.
4951 \end_layout
4952
4953 \end_deeper
4954 \begin_layout Section
4955
4956 \change_inserted 564990737 1670439534
4957 Articles
4958 \end_layout
4959
4960 \begin_layout Standard
4961
4962 \change_inserted 564990737 1670794710
4963 See also the document classes in the Collections (section
4964 \begin_inset space ~
4965 \end_inset
4966
4967
4968 \begin_inset CommandInset ref
4969 LatexCommand ref
4970 reference "sec:Collections"
4971
4972 \end_inset
4973
4974 ).
4975 \end_layout
4976
4977 \begin_layout Subsection
4978
4979 \change_inserted 564990737 1670794716
4980
4981 \lang american
4982 A&A Paper
4983 \end_layout
4984
4985 \begin_layout Standard
4986
4987 \change_inserted 564990737 1670794716
4988
4989 \lang american
4990 Original by 
4991 \noun on
4992 Peter Sütterlin
4993 \noun default
4994 ; updated by the \SpecialChar LyX
4995  Team
4996 \end_layout
4997
4998 \begin_layout Subsubsection
4999
5000 \change_inserted 564990737 1670794716
5001
5002 \lang american
5003 Introduction
5004 \end_layout
5005
5006 \begin_layout Standard
5007
5008 \change_inserted 564990737 1670794716
5009
5010 \lang american
5011 This section describes how \SpecialChar LyX
5012  can be used to write articles for submission
5013  to the scientific journal 
5014 \emph on
5015 Astronomy and Astrophysics
5016 \emph default
5017  (
5018 \begin_inset CommandInset href
5019 LatexCommand href
5020 name "aa-package"
5021 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5022 literal "false"
5023
5024 \end_inset
5025
5026 ) using Version 9.1 of the document class 
5027 \family typewriter
5028 aa.cls
5029 \family default
5030 ; information about it is available at 
5031 \begin_inset Flex URL
5032 status collapsed
5033
5034 \begin_layout Plain Layout
5035
5036 \change_inserted 564990737 1670794716
5037
5038 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5039 \change_unchanged
5040
5041 \end_layout
5042
5043 \end_inset
5044
5045 .
5046 \end_layout
5047
5048 \begin_layout Standard
5049
5050 \change_inserted 564990737 1670794716
5051
5052 \lang american
5053 A manual comes together with the package and should be consulted before
5054  installing this document class as described in the 
5055 \emph on
5056 Installing New Document Classe
5057 \emph default
5058 s section of the 
5059 \emph on
5060 Customization
5061 \emph default
5062  manual.
5063  
5064 \end_layout
5065
5066 \begin_layout Standard
5067
5068 \change_inserted 564990737 1670794716
5069
5070 \lang american
5071 \begin_inset Note Greyedout
5072 status open
5073
5074 \begin_layout Plain Layout
5075
5076 \change_inserted 564990737 1670794716
5077
5078 \lang american
5079 Please note that the publisher of the journal was changed from Springer
5080  to EDP Sciences starting January 1, 2001.
5081  That change also involved some slight changes to the style files, namely
5082  the removal of the thesaurus command.
5083  If you have an older version installed, please upgrade.
5084  For information about compatibility with the old (version 4) layout, please
5085  refer to the comments in 
5086 \family typewriter
5087 \SpecialChar LyX
5088 Dir/layouts/aapaper.layout
5089 \family default
5090 .
5091 \end_layout
5092
5093 \end_inset
5094
5095
5096 \end_layout
5097
5098 \begin_layout Subsubsection
5099
5100 \change_inserted 564990737 1670794716
5101
5102 \lang american
5103 Getting started
5104 \end_layout
5105
5106 \begin_layout Standard
5107
5108 \change_inserted 564990737 1671617129
5109
5110 \lang american
5111 It is recommended you start from the template in the menu 
5112 \family sans
5113 \bar under
5114 F
5115 \bar default
5116 ile\SpecialChar menuseparator
5117 New
5118 \begin_inset space ~
5119 \end_inset
5120
5121 fro
5122 \bar under
5123 m
5124 \bar default
5125
5126 \begin_inset space ~
5127 \end_inset
5128
5129 Template
5130 \lang english
5131 \SpecialChar menuseparator
5132 Articles\SpecialChar menuseparator
5133 Astronomy & Astrophysics
5134 \family default
5135 \lang american
5136 .
5137  If you are not using the template, note the following settings:
5138 \end_layout
5139
5140 \begin_layout Itemize
5141
5142 \change_inserted 564990737 1670794716
5143
5144 \lang american
5145 Select 
5146 \family sans
5147 article (A&A)
5148 \family default
5149  in the 
5150 \family sans
5151 \bar under
5152 D
5153 \bar default
5154 ocument\SpecialChar menuseparator
5155
5156 \bar under
5157 S
5158 \bar default
5159 ettings\SpecialChar menuseparator
5160 Document
5161 \begin_inset space ~
5162 \end_inset
5163
5164 Class
5165 \family default
5166  dialog (OK, that one was obvious).
5167 \end_layout
5168
5169 \begin_layout Itemize
5170
5171 \change_inserted 564990737 1670794716
5172
5173 \lang american
5174 Don't change the 
5175 \family sans
5176 Headings
5177 \begin_inset space ~
5178 \end_inset
5179
5180
5181 \bar under
5182 s
5183 \bar default
5184 tyle
5185 \family default
5186  in the 
5187 \family sans
5188 Page
5189 \begin_inset space ~
5190 \end_inset
5191
5192 Layout
5193 \family default
5194  dialog: leave it set to 
5195 \family sans
5196 Default
5197 \family default
5198 .
5199  The whole layout is done by the macros, you shouldn't change anything.
5200 \end_layout
5201
5202 \begin_layout Subsubsection
5203
5204 \change_inserted 564990737 1670794716
5205
5206 \lang american
5207 The header block
5208 \end_layout
5209
5210 \begin_layout Standard
5211
5212 \change_inserted 564990737 1670794716
5213
5214 \lang american
5215 First thing to enter is the header information.
5216  It consists of five entries, of which one is optional.
5217  They are
5218 \end_layout
5219
5220 \begin_layout Itemize
5221
5222 \change_inserted 564990737 1670794716
5223
5224 \family sans
5225 \lang american
5226 Title
5227 \family default
5228 : [required] 
5229 \end_layout
5230
5231 \begin_layout Itemize
5232
5233 \change_inserted 564990737 1670794716
5234
5235 \family sans
5236 \lang american
5237 Subtitle
5238 \family default
5239 : [optional] 
5240 \end_layout
5241
5242 \begin_layout Itemize
5243
5244 \change_inserted 564990737 1670794716
5245
5246 \family sans
5247 \lang american
5248 Author
5249 \family default
5250 : [required]
5251 \end_layout
5252
5253 \begin_layout Itemize
5254
5255 \change_inserted 564990737 1670794716
5256
5257 \family typewriter
5258 \lang american
5259 Institute
5260 \family default
5261 : [required]
5262 \end_layout
5263
5264 \begin_layout Itemize
5265
5266 \change_inserted 564990737 1670794716
5267
5268 \family sans
5269 \lang american
5270 Date
5271 \family default
5272 : [required].
5273  Suggested format is 
5274 \family typewriter
5275 Received: <date>; Accepted <date> 
5276 \end_layout
5277
5278 \begin_layout Standard
5279
5280 \change_inserted 564990737 1670794716
5281
5282 \lang american
5283 Although the order of the single header entries doesn't matter it is advised
5284  to keep the above sequence, just to get the best optics and meets the layout
5285  of the real document.
5286 \end_layout
5287
5288 \begin_layout Standard
5289
5290 \change_inserted 564990737 1670794716
5291
5292 \lang american
5293 If you want to place footnotes in the header block, e.
5294 \begin_inset space \thinspace{}
5295 \end_inset
5296
5297 g.
5298 \begin_inset space \space{}
5299 \end_inset
5300
5301 to state your present address, just use the standard footnote via the menu
5302  
5303 \family sans
5304 \bar under
5305 I
5306 \bar default
5307 nsert\SpecialChar menuseparator
5308
5309 \bar under
5310 F
5311 \bar default
5312 ootnote.
5313
5314 \family default
5315  \SpecialChar LyX
5316  will automagically use the term 
5317 \family typewriter
5318
5319 \backslash
5320 thanks{}
5321 \family default
5322  in that case.
5323 \end_layout
5324
5325 \begin_layout Standard
5326
5327 \change_inserted 564990737 1670794716
5328
5329 \lang american
5330 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5331  commands that
5332  have no counterpart in \SpecialChar LyX
5333 :
5334 \end_layout
5335
5336 \begin_layout Itemize
5337
5338 \change_inserted 564990737 1670794716
5339
5340 \family typewriter
5341 \lang american
5342
5343 \backslash
5344 and
5345 \family default
5346  to separate different names for more than one author and institute, respectivel
5347 y.
5348 \end_layout
5349
5350 \begin_layout Itemize
5351
5352 \change_inserted 564990737 1670794716
5353
5354 \family typewriter
5355 \lang american
5356
5357 \backslash
5358 inst{<nr>}
5359 \family default
5360  to mark corresponding author/institute pairs.
5361  The institutes are numbered sequentially as they appear in the 
5362 \family sans
5363 Institute
5364 \family default
5365  field, so you have to put a marker to each author.
5366 \end_layout
5367
5368 \begin_layout Itemize
5369
5370 \change_inserted 564990737 1670794716
5371
5372 \family typewriter
5373 \lang american
5374
5375 \backslash
5376 email{address}
5377 \family default
5378  to supply an email address for fast contact.
5379 \end_layout
5380
5381 \begin_layout Standard
5382
5383 \change_inserted 564990737 1671642374
5384
5385 \lang american
5386 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5387  code in \SpecialChar LyX
5388 .
5389  See the examples in the template and in 
5390 \family sans
5391 \lang british
5392 File\SpecialChar menuseparator
5393 Open Example\SpecialChar menuseparator
5394 Articles\SpecialChar menuseparator
5395 Astronomy & Astrophysics
5396 \family default
5397 \lang american
5398 .
5399 \change_unchanged
5400
5401 \end_layout
5402
5403 \begin_layout Subsubsection
5404
5405 \change_inserted 564990737 1670794716
5406
5407 \lang american
5408 The abstract
5409 \end_layout
5410
5411 \begin_layout Standard
5412
5413 \change_inserted 564990737 1670794716
5414
5415 \lang american
5416 The abstract should immediately follow the header block and must contain
5417  five tokens: 
5418 \family typewriter
5419
5420 \backslash
5421 abstract{}{}{}{}{}
5422 \family default
5423  
5424 \end_layout
5425
5426 \begin_layout Enumerate
5427
5428 \change_inserted 564990737 1670794716
5429
5430 \family typewriter
5431 \lang american
5432 context heading
5433 \family default
5434  (optional) {} leave it empty if necessary 
5435 \end_layout
5436
5437 \begin_layout Enumerate
5438
5439 \change_inserted 564990737 1670794716
5440
5441 \family typewriter
5442 \lang american
5443 aims heading
5444 \family default
5445  (mandatory) {} 
5446 \end_layout
5447
5448 \begin_layout Enumerate
5449
5450 \change_inserted 564990737 1670794716
5451
5452 \family typewriter
5453 \lang american
5454 methods heading
5455 \family default
5456  (mandatory) {} 
5457 \end_layout
5458
5459 \begin_layout Enumerate
5460
5461 \change_inserted 564990737 1670794716
5462
5463 \family typewriter
5464 \lang american
5465 results heading
5466 \family default
5467  (mandatory) {} 
5468 \end_layout
5469
5470 \begin_layout Enumerate
5471
5472 \change_inserted 564990737 1670794716
5473
5474 \family typewriter
5475 \lang american
5476 conclusions heading
5477 \family default
5478  (optional) {} leave it empty if necessary 
5479 \end_layout
5480
5481 \begin_layout Standard
5482
5483 \change_inserted 564990737 1670794716
5484
5485 \lang american
5486 (NB.
5487  This structure not shown in 
5488 \emph on
5489 aa_sample.lyx.
5490 \emph default
5491 )
5492 \end_layout
5493
5494 \begin_layout Subsubsection
5495
5496 \change_inserted 564990737 1670794716
5497
5498 \lang american
5499 Supported environments
5500 \end_layout
5501
5502 \begin_layout Standard
5503
5504 \change_inserted 564990737 1670794716
5505
5506 \lang american
5507 The A&A paper layout supports the following environments for structuring
5508  your text:
5509 \end_layout
5510
5511 \begin_layout Itemize
5512
5513 \change_inserted 564990737 1670794716
5514
5515 \family sans
5516 \lang american
5517 Standard
5518 \end_layout
5519
5520 \begin_layout Itemize
5521
5522 \change_inserted 564990737 1670794716
5523
5524 \family sans
5525 \lang american
5526 Section
5527 \end_layout
5528
5529 \begin_layout Itemize
5530
5531 \change_inserted 564990737 1670794716
5532
5533 \family sans
5534 \lang american
5535 Subsection
5536 \end_layout
5537
5538 \begin_layout Itemize
5539
5540 \change_inserted 564990737 1670794716
5541
5542 \family sans
5543 \lang american
5544 Subsubsection
5545 \end_layout
5546
5547 \begin_layout Itemize
5548
5549 \change_inserted 564990737 1670794716
5550
5551 \family sans
5552 \lang american
5553 Itemize
5554 \end_layout
5555
5556 \begin_layout Itemize
5557
5558 \change_inserted 564990737 1670794716
5559
5560 \family sans
5561 \lang american
5562 Enumerate
5563 \end_layout
5564
5565 \begin_layout Itemize
5566
5567 \change_inserted 564990737 1670794716
5568
5569 \family sans
5570 \lang american
5571 Description
5572 \end_layout
5573
5574 \begin_layout Itemize
5575
5576 \change_inserted 564990737 1670794716
5577
5578 \family sans
5579 \lang american
5580 Caption
5581 \end_layout
5582
5583 \begin_layout Itemize
5584
5585 \change_inserted 564990737 1670794716
5586
5587 \family sans
5588 \lang american
5589 Abstract
5590 \end_layout
5591
5592 \begin_layout Itemize
5593
5594 \change_inserted 564990737 1670794716
5595
5596 \family sans
5597 \lang american
5598 Acknowledgment
5599 \end_layout
5600
5601 \begin_layout Itemize
5602
5603 \change_inserted 564990737 1670794716
5604
5605 \family sans
5606 \lang american
5607 Bibliography
5608 \end_layout
5609
5610 \begin_layout Itemize
5611
5612 \change_inserted 564990737 1670794716
5613
5614 \family sans
5615 \lang american
5616 \SpecialChar LaTeX
5617
5618 \end_layout
5619
5620 \begin_layout Subsubsection
5621
5622 \change_inserted 564990737 1670794716
5623
5624 \lang american
5625 Commands not supported by \SpecialChar LyX
5626
5627 \end_layout
5628
5629 \begin_layout Standard
5630
5631 \change_inserted 564990737 1670794716
5632
5633 \lang american
5634 Some commands are not yet supported by the 
5635 \family sans
5636 paper (A&A)
5637 \family default
5638  layout for \SpecialChar LyX
5639 .
5640  Some have already been mentioned.
5641  For the sake of completeness, they are listed all together here:
5642 \end_layout
5643
5644 \begin_layout Itemize
5645
5646 \change_inserted 564990737 1670794716
5647
5648 \family typewriter
5649 \lang american
5650
5651 \backslash
5652 and
5653 \end_layout
5654
5655 \begin_layout Itemize
5656
5657 \change_inserted 564990737 1670794716
5658
5659 \family typewriter
5660 \lang american
5661
5662 \backslash
5663 email
5664 \end_layout
5665
5666 \begin_layout Itemize
5667
5668 \change_inserted 564990737 1670794716
5669
5670 \family typewriter
5671 \lang american
5672
5673 \backslash
5674 inst{}
5675 \end_layout
5676
5677 \begin_layout Itemize
5678
5679 \change_inserted 564990737 1670794716
5680
5681 \family typewriter
5682 \lang american
5683
5684 \backslash
5685 keywords{}
5686 \end_layout
5687
5688 \begin_layout Itemize
5689
5690 \change_inserted 564990737 1670794716
5691
5692 \family typewriter
5693 \lang american
5694
5695 \backslash
5696 object{}
5697 \end_layout
5698
5699 \begin_layout Standard
5700
5701 \change_inserted 564990737 1670794716
5702
5703 \lang american
5704 If you want to use any of these commands, you have to enter them yourself.
5705  
5706 \family typewriter
5707 Do not forget to use
5708 \family sans
5709  
5710 \bar under
5711 I
5712 \bar default
5713 nsert\SpecialChar menuseparator
5714 \SpecialChar TeX
5715
5716 \begin_inset space ~
5717 \end_inset
5718
5719 Code
5720 \family default
5721 \series bold
5722 !
5723 \end_layout
5724
5725 \begin_layout Subsubsection
5726
5727 \change_inserted 564990737 1670794716
5728
5729 \lang american
5730 Figure and Table Floats
5731 \end_layout
5732
5733 \begin_layout Standard
5734
5735 \change_inserted 564990737 1670794716
5736
5737 \lang american
5738 \SpecialChar LyX
5739  provides support for the necessary float environments 
5740 \family sans
5741 figure, figure*, table
5742 \family default
5743  and 
5744 \family sans
5745 table*
5746 \family default
5747 , therefore we won't tell much about it here.
5748  Refer to the 
5749 \emph on
5750 User's
5751 \begin_inset space ~
5752 \end_inset
5753
5754 Guide
5755 \emph default
5756 .
5757  Just remember that tables should be left-aligned.
5758  For that, select the table and change the alignment in 
5759 \family sans
5760 \bar under
5761 E
5762 \bar default
5763 dit\SpecialChar menuseparator
5764
5765 \bar under
5766 P
5767 \bar default
5768 aragraph
5769 \begin_inset space ~
5770 \end_inset
5771
5772 Settings.
5773 \end_layout
5774
5775 \begin_layout Standard
5776
5777 \change_inserted 564990737 1670794716
5778
5779 \lang american
5780 There is only one special thing: the figures with a caption beside the figure.
5781  To create such a figure, you have to do the following:
5782 \end_layout
5783
5784 \begin_layout Enumerate
5785
5786 \change_inserted 564990737 1670794716
5787
5788 \lang american
5789 Create a wide figure float: 
5790 \family sans
5791 \bar under
5792 I
5793 \bar default
5794 nsert\SpecialChar menuseparator
5795 Flo
5796 \bar under
5797 a
5798 \bar default
5799 t\SpecialChar menuseparator
5800 Figure
5801 \family default
5802 , then, from within the float, use the menu 
5803 \family sans
5804 \bar under
5805 E
5806 \bar default
5807 dit\SpecialChar menuseparator
5808 Flo
5809 \bar under
5810 a
5811 \bar default
5812 t
5813 \begin_inset space ~
5814 \end_inset
5815
5816 Settings
5817 \family default
5818  and check 
5819 \family sans
5820 \bar under
5821 S
5822 \bar default
5823 pan
5824 \begin_inset space ~
5825 \end_inset
5826
5827 columns
5828 \family default
5829  in the 
5830 \family sans
5831 float
5832 \family default
5833  dialog.
5834 \end_layout
5835
5836 \begin_layout Enumerate
5837
5838 \change_inserted 564990737 1670794716
5839
5840 \lang american
5841 Enter your caption text.
5842 \end_layout
5843
5844 \begin_layout Enumerate
5845
5846 \change_inserted 564990737 1670794716
5847
5848 \lang american
5849 Press 
5850 \family sans
5851 Return
5852 \family default
5853  to move the cursor above the caption.
5854 \end_layout
5855
5856 \begin_layout Enumerate
5857
5858 \change_inserted 564990737 1670794716
5859
5860 \lang american
5861 Insert your figure
5862 \end_layout
5863
5864 \begin_layout Enumerate
5865
5866 \change_inserted 564990737 1670794716
5867
5868 \lang american
5869 Position the cursor after the figure and insert a horizontal fill by using
5870  the menu: 
5871 \family sans
5872 \bar under
5873 I
5874 \bar default
5875 nsert\SpecialChar menuseparator
5876 F
5877 \bar under
5878 o
5879 \bar default
5880 rmatting\SpecialChar menuseparator
5881 H
5882 \bar under
5883 o
5884 \bar default
5885 rizontal
5886 \begin_inset space ~
5887 \end_inset
5888
5889 Space
5890 \family default
5891  to open the 
5892 \family sans
5893 space
5894 \family default
5895  dialog and select the 
5896 \family sans
5897 Horizontal fill
5898 \family default
5899  option from the 
5900 \family sans
5901 \bar under
5902 S
5903 \bar default
5904 pacing
5905 \family default
5906  pull-down menu.
5907 \end_layout
5908
5909 \begin_layout Enumerate
5910
5911 \change_inserted 564990737 1670794716
5912
5913 \lang american
5914 Switch to \SpecialChar LaTeX
5915  mode: 
5916 \family sans
5917 M-c
5918 \begin_inset space ~
5919 \end_inset
5920
5921 t
5922 \family default
5923 .
5924 \end_layout
5925
5926 \begin_layout Enumerate
5927
5928 \change_inserted 564990737 1670794716
5929
5930 \lang american
5931 Enter 
5932 \family typewriter
5933
5934 \backslash
5935 parbox[b]{55mm}{
5936 \family default
5937  
5938 \emph on
5939 Do not close the brace!
5940 \end_layout
5941
5942 \begin_layout Enumerate
5943
5944 \change_inserted 564990737 1670794716
5945
5946 \lang american
5947 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5948  mode and insert
5949  the closing brace: 
5950 \family sans
5951 M-c
5952 \begin_inset space ~
5953 \end_inset
5954
5955 t
5956 \family default
5957  
5958 \family typewriter
5959 }
5960 \family default
5961 .
5962 \end_layout
5963
5964 \begin_layout Standard
5965
5966 \change_inserted 564990737 1671642458
5967
5968 \lang american
5969 Also, refer to the figures in the file in 
5970 \family sans
5971 \lang british
5972 File\SpecialChar menuseparator
5973 Open Example\SpecialChar menuseparator
5974 Articles\SpecialChar menuseparator
5975 Astronomy & Astrophysics
5976 \family default
5977 \lang american
5978 .
5979 \end_layout
5980
5981 \begin_layout Subsubsection
5982
5983 \change_inserted 564990737 1670794716
5984
5985 \lang american
5986 Referee layout
5987 \end_layout
5988
5989 \begin_layout Standard
5990
5991 \change_inserted 564990737 1670794716
5992
5993 \lang american
5994 For submission, the paper has to be formatted in a special double-spacing
5995  layout.
5996  For this purpose, you have to add the option 
5997 \family typewriter
5998 referee
5999 \family default
6000  to the 
6001 \family sans
6002 Cus
6003 \bar under
6004 t
6005 \bar default
6006 om Class
6007 \begin_inset space ~
6008 \end_inset
6009
6010 options
6011 \family default
6012  in the 
6013 \family sans
6014 \bar under
6015 D
6016 \bar default
6017 ocument\SpecialChar menuseparator
6018
6019 \bar under
6020 S
6021 \bar default
6022 ettings\SpecialChar menuseparator
6023 Document
6024 \begin_inset space ~
6025 \end_inset
6026
6027 Class
6028 \family default
6029  dialog.
6030  
6031 \end_layout
6032
6033 \begin_layout Subsubsection
6034
6035 \change_inserted 564990737 1670794716
6036
6037 \lang american
6038 The example paper
6039 \end_layout
6040
6041 \begin_layout Standard
6042
6043 \change_inserted 564990737 1671642520
6044
6045 \lang american
6046 The example in 
6047 \family sans
6048 \lang british
6049 File\SpecialChar menuseparator
6050 Open Example\SpecialChar menuseparator
6051 Articles\SpecialChar menuseparator
6052 Astronomy & Astrophysics
6053 \family default
6054 \lang american
6055  was written with \SpecialChar LyX
6056 .
6057  It is the example paper from the original macro package, 
6058 \family typewriter
6059 aa.dem
6060 \family default
6061  in the 
6062 \begin_inset CommandInset href
6063 LatexCommand href
6064 name "aa-package"
6065 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6066 literal "false"
6067
6068 \end_inset
6069
6070 , but translated to \SpecialChar LyX
6071  using the older unstructured abstract type.
6072  Use it for inspiration, and compare the \SpecialChar LaTeX
6073  code in 
6074 \family typewriter
6075 aa.dem
6076 \family default
6077  with the \SpecialChar LyX
6078  way of writing.
6079 \end_layout
6080
6081 \begin_layout Subsection
6082 AAS\SpecialChar TeX
6083
6084 \end_layout
6085
6086 \begin_layout Standard
6087 by 
6088 \noun on
6089 Mike Ressler
6090 \end_layout
6091
6092 \begin_layout Subsubsection
6093 Introduction
6094 \end_layout
6095
6096 \begin_layout Standard
6097 AAS\SpecialChar TeX
6098  is a set of macros produced by the American Astronomical Society to
6099  facilitate electronic manuscript submission to the three journals they
6100  publish: the Astrophysical Journal (including the Letters and Supplement),
6101  the Astronomical Journal, and the Publications of the Astronomical Society
6102  of the Pacific.
6103  \SpecialChar LyX
6104  has proven to be an excellent tool for generating these documents, especially
6105  given its equation, citation, and figure handling capabilities.
6106  \SpecialChar LyX
6107  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6108  is the version described here, or higher.
6109  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6110 2.09 and are fundamentally
6111  incompatible with \SpecialChar LyX
6112 .
6113  The AAS\SpecialChar TeX
6114  package may be downloaded from the AAS\SpecialChar TeX
6115  Web site
6116 \end_layout
6117
6118 \begin_layout Standard
6119 \begin_inset VSpace medskip
6120 \end_inset
6121
6122
6123 \end_layout
6124
6125 \begin_layout Standard
6126 \align center
6127 \begin_inset Flex URL
6128 status collapsed
6129
6130 \begin_layout Plain Layout
6131
6132 https://aas.org/aastex/aastex-downloads
6133 \end_layout
6134
6135 \end_inset
6136
6137
6138 \end_layout
6139
6140 \begin_layout Standard
6141 \begin_inset VSpace medskip
6142 \end_inset
6143
6144
6145 \end_layout
6146
6147 \begin_layout Standard
6148 A complete user guide is contained in that package and you should familiarize
6149  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6150 .
6151  \SpecialChar LyX
6152  will not reduce the need to figure out all the AAS\SpecialChar TeX
6153  commands, it will only
6154  reduce the drudgery of typing everything in.
6155  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6156  document conforms
6157  completely to the requirements of the journal to which you are submitting
6158  your paper.
6159 \end_layout
6160
6161 \begin_layout Subsubsection
6162 Starting a New Paper
6163 \end_layout
6164
6165 \begin_layout Standard
6166 I strongly suggest that you start with the AAS\SpecialChar TeX
6167  template file.
6168  Click on 
6169 \family sans
6170 File\SpecialChar menuseparator
6171 New from
6172 \family default
6173  
6174 \family sans
6175 Template
6176 \change_inserted 564990737 1671617265
6177 \SpecialChar menuseparator
6178 Articles\SpecialChar menuseparator
6179 American Astronomical Society
6180 \change_deleted 564990737 1671617310
6181
6182 \family default
6183 , enter the new file name, then choose the 
6184 \family typewriter
6185 aastex6.lyx
6186 \family default
6187  template
6188 \change_unchanged
6189 .
6190  This will show the most common fields found in a manuscript.
6191  Simply overwrite the existing text (including the brackets, 
6192 \family typewriter
6193 <>
6194 \family default
6195 ) with the correct information.
6196  Many of the AAS\SpecialChar TeX
6197  commands and environments can be implemented directly in
6198  \SpecialChar LyX
6199 , but some cannot.
6200  For commands such as these, the \SpecialChar LaTeX
6201  code must be entered directly and marked
6202  as such.
6203  Such commands are referred to as \SpecialChar TeX
6204  code, or Evil Red Text.
6205  I tried to minimize the amount of \SpecialChar TeX
6206  code needed in an AAS\SpecialChar TeX
6207  document.
6208 \end_layout
6209
6210 \begin_layout Subsubsection
6211 Finishing Your Paper
6212 \end_layout
6213
6214 \begin_layout Standard
6215 When the paper is finished to your satisfaction and previews/prints correctly,
6216  there are a few 
6217 \begin_inset Quotes eld
6218 \end_inset
6219
6220 postprocessing
6221 \begin_inset Quotes erd
6222 \end_inset
6223
6224  actions which need to be done before you submit it to the journals.
6225  
6226 \end_layout
6227
6228 \begin_layout Enumerate
6229 Export your paper as a \SpecialChar LaTeX
6230  file (
6231 \family sans
6232 File\SpecialChar menuseparator
6233 Export\SpecialChar menuseparator
6234 \SpecialChar LaTeX
6235
6236 \family default
6237 ).
6238  
6239 \end_layout
6240
6241 \begin_layout Enumerate
6242 Edit the resulting 
6243 \family typewriter
6244 .tex
6245 \family default
6246  file with your favorite text editor
6247 \end_layout
6248
6249 \begin_deeper
6250 \begin_layout Enumerate
6251 remove the comment lines before the 
6252 \family typewriter
6253
6254 \backslash
6255 documentclass
6256 \family default
6257  command
6258 \end_layout
6259
6260 \begin_layout Enumerate
6261 remove the 
6262 \family typewriter
6263
6264 \backslash
6265 usepackage...{fontenc}
6266 \family default
6267  line if it appears (usually just after 
6268 \family typewriter
6269
6270 \backslash
6271 documentclass
6272 \family default
6273 }; also remove the 
6274 \family typewriter
6275
6276 \backslash
6277 secnumdepth
6278 \family default
6279  line if it appears.
6280 \end_layout
6281
6282 \begin_layout Enumerate
6283 remove everything between (and including) the 
6284 \family typewriter
6285
6286 \backslash
6287 makeatletter
6288 \family default
6289  and 
6290 \family typewriter
6291
6292 \backslash
6293 makeatother
6294 \family default
6295  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6296  preamble
6297  (which should appear immediately after the 
6298 \begin_inset Quotes eld
6299 \end_inset
6300
6301 User specified \SpecialChar LaTeX
6302  commands
6303 \begin_inset Quotes erd
6304 \end_inset
6305
6306  comment in the 
6307 \family typewriter
6308 .tex
6309 \family default
6310  file).
6311 \end_layout
6312
6313 \end_deeper
6314 \begin_layout Enumerate
6315 Run the resulting file through \SpecialChar LaTeX
6316  to make sure it still processes correctly.
6317 \end_layout
6318
6319 \begin_layout Enumerate
6320 Reread the journal requirements to make sure your filenames and formats
6321  are correct.
6322 \end_layout
6323
6324 \begin_layout Enumerate
6325 Submit it.
6326 \end_layout
6327
6328 \begin_layout Subsubsection
6329 Comments On Specific Commands
6330 \end_layout
6331
6332 \begin_layout Standard
6333 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6334  commands: the
6335  AAS\SpecialChar TeX
6336  User Guide (
6337 \family typewriter
6338 aasguide.tex
6339 \family default
6340 ) gives a good description of each.
6341  Thus it's probably easiest for me to go down the list as found in the guide
6342  and offer comments where necessary.
6343  So let's begin \SpecialChar ldots
6344
6345 \end_layout
6346
6347 \begin_layout Paragraph
6348 Things that work as expected
6349 \end_layout
6350
6351 \begin_layout Standard
6352 Because they work as you might expect, I simply list them and the section
6353  they are found in: 
6354 \family typewriter
6355
6356 \backslash
6357 documentclass
6358 \family default
6359  (2.1.1), 
6360 \family typewriter
6361
6362 \backslash
6363 begin{document}
6364 \family default
6365  (2.2), 
6366 \family typewriter
6367
6368 \backslash
6369 title
6370 \family default
6371  (2.3), 
6372 \family typewriter
6373
6374 \backslash
6375 author
6376 \family default
6377  (2.3), 
6378 \family typewriter
6379
6380 \backslash
6381 affil
6382 \family default
6383  (2.3), 
6384 \family typewriter
6385
6386 \backslash
6387 abstract
6388 \family default
6389  (2.4), 
6390 \family typewriter
6391
6392 \backslash
6393 keywords
6394 \family default
6395  (2.5), 
6396 \family typewriter
6397
6398 \backslash
6399 section
6400 \family default
6401  (2.7), 
6402 \family typewriter
6403
6404 \backslash
6405 subsection
6406 \family default
6407  (2.7), 
6408 \family typewriter
6409
6410 \backslash
6411 subsubsection
6412 \family default
6413  (2.7), 
6414 \family typewriter
6415
6416 \backslash
6417 paragraph
6418 \family default
6419  (2.7), 
6420 \family typewriter
6421
6422 \backslash
6423 facility
6424 \family default
6425  (2.10), 
6426 \family typewriter
6427
6428 \backslash
6429 begin{displaymath}
6430 \family default
6431  (2.12), 
6432 \family typewriter
6433
6434 \backslash
6435 begin{equation}
6436 \family default
6437  (2.12), 
6438 \family typewriter
6439
6440 \backslash
6441 begin{eqnarray}
6442 \family default
6443  (2.12), 
6444 \family typewriter
6445
6446 \backslash
6447 begin{mathletters}
6448 \family default
6449  (2.12), 
6450 \family typewriter
6451
6452 \backslash
6453 begin{thebibliography}
6454 \family default
6455  (2.13.1), 
6456 \family typewriter
6457
6458 \backslash
6459 bibitem
6460 \family default
6461  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6462  graphicx figure commands (2.14.1), 
6463 \family typewriter
6464
6465 \backslash
6466 begin{table}
6467 \family default
6468  (2.15.4), 
6469 \family typewriter
6470
6471 \backslash
6472 begin{tabular}
6473 \family default
6474  (2.15.4), 
6475 \family typewriter
6476
6477 \backslash
6478 caption
6479 \family default
6480  (2.15.4), 
6481 \family typewriter
6482
6483 \backslash
6484 label
6485 \family default
6486  (2.15.4, amongst other places), 
6487 \family typewriter
6488
6489 \backslash
6490 tablerefs
6491 \family default
6492  (2.15.5), 
6493 \family typewriter
6494
6495 \backslash
6496 tablecomments
6497 \family default
6498  (2.15.5), 
6499 \family typewriter
6500
6501 \backslash
6502 url
6503 \family default
6504  (2.17.4), 
6505 \family typewriter
6506
6507 \backslash
6508 end{document}
6509 \family default
6510  (2.18).
6511 \end_layout
6512
6513 \begin_layout Standard
6514 The following style options also work correctly: 
6515 \family typewriter
6516 longabstract
6517 \family default
6518  (2.4), 
6519 \family typewriter
6520 preprint
6521 \family default
6522  (3.2.1), 
6523 \family typewriter
6524 preprint2
6525 \family default
6526  (3.2.2), 
6527 \family typewriter
6528 eqsecnum
6529 \family default
6530  (3.3), 
6531 \family typewriter
6532 flushrt
6533 \family default
6534  (3.4).
6535  Simply put them in the 
6536 \family sans
6537 Options
6538 \family default
6539  box in 
6540 \family sans
6541 Layout\SpecialChar menuseparator
6542 Document
6543 \family default
6544 .
6545 \end_layout
6546
6547 \begin_layout Paragraph
6548 Things that work, but require more comment
6549 \end_layout
6550
6551 \begin_layout Standard
6552 The following items work, but require a little more discussion:
6553 \end_layout
6554
6555 \begin_layout Itemize
6556 These items are reserved for use by the journal editors, but you can put
6557  them into the \SpecialChar LaTeX
6558  preamble if you feel compelled to do so: 
6559 \family typewriter
6560
6561 \backslash
6562 received
6563 \family default
6564
6565 \family typewriter
6566
6567 \backslash
6568 revised
6569 \family default
6570
6571 \family typewriter
6572
6573 \backslash
6574 accepted
6575 \family default
6576
6577 \family typewriter
6578
6579 \backslash
6580 ccc
6581 \family default
6582
6583 \family typewriter
6584
6585 \backslash
6586 cpright
6587 \family default
6588  (all from 2.1.3)
6589 \end_layout
6590
6591 \begin_layout Itemize
6592 These items may be placed in the \SpecialChar LaTeX
6593  preamble, and are included as blanks in
6594  the template file: 
6595 \family typewriter
6596
6597 \backslash
6598 slugcomment
6599 \family default
6600  (2.1.4), 
6601 \family typewriter
6602
6603 \backslash
6604 shorttitle
6605 \family default
6606  (2.1.5), 
6607 \family typewriter
6608
6609 \backslash
6610 shortauthors
6611 \family default
6612  (2.1.5)
6613 \end_layout
6614
6615 \begin_layout Itemize
6616
6617 \family typewriter
6618
6619 \backslash
6620 email
6621 \family default
6622  (2.3) – can only be used 
6623 \begin_inset Quotes eld
6624 \end_inset
6625
6626 standalone
6627 \begin_inset Quotes erd
6628 \end_inset
6629
6630 , not in the middle of a paragraph.
6631  Use \SpecialChar TeX
6632  code if you need to embed it.
6633 \end_layout
6634
6635 \begin_layout Itemize
6636
6637 \family typewriter
6638
6639 \backslash
6640 and
6641 \family default
6642  (2.3) – will have extra {} after it.
6643  This should not cause an error.
6644 \end_layout
6645
6646 \begin_layout Itemize
6647
6648 \family typewriter
6649
6650 \backslash
6651 notetoeditor
6652 \family default
6653  (2.6) – can only be used 
6654 \begin_inset Quotes eld
6655 \end_inset
6656
6657 standalone
6658 \begin_inset Quotes erd
6659 \end_inset
6660
6661 , not in the middle of a paragraph.
6662  Use \SpecialChar TeX
6663  code if you need to embed it.
6664 \end_layout
6665
6666 \begin_layout Itemize
6667
6668 \family typewriter
6669
6670 \backslash
6671 placetable
6672 \family default
6673  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6674  hand
6675 \end_layout
6676
6677 \begin_layout Itemize
6678
6679 \family typewriter
6680
6681 \backslash
6682 placefigure
6683 \family default
6684  (2.8) – same as for 
6685 \family typewriter
6686
6687 \backslash
6688 placetable
6689 \end_layout
6690
6691 \begin_layout Itemize
6692
6693 \family typewriter
6694
6695 \backslash
6696 acknowledgements
6697 \family default
6698  (2.9) – will have extra {} after it.
6699  This should not cause an error.
6700 \end_layout
6701
6702 \begin_layout Itemize
6703
6704 \family typewriter
6705
6706 \backslash
6707 appendix
6708 \family default
6709  (2.11) – will have extra {} after it.
6710  This should not cause an error.
6711 \end_layout
6712
6713 \begin_layout Itemize
6714
6715 \family typewriter
6716
6717 \backslash
6718 figcaption
6719 \family default
6720  (2.14.2) – you can insert an optional filename argument by placing the cursor
6721  at the beginning of the text and selecting 
6722 \family sans
6723 Insert\SpecialChar menuseparator
6724 Short Title
6725 \family default
6726 .
6727  
6728 \begin_inset Quotes eld
6729 \end_inset
6730
6731 Short Title
6732 \begin_inset Quotes erd
6733 \end_inset
6734
6735  inserts an optional argument of the type needed by 
6736 \family typewriter
6737
6738 \backslash
6739 figcaption
6740 \family default
6741 .
6742  Hopefully it will be renamed someday.
6743 \end_layout
6744
6745 \begin_layout Itemize
6746
6747 \family typewriter
6748
6749 \backslash
6750 objectname
6751 \family default
6752  (2.17.1) – same as 
6753 \family typewriter
6754
6755 \backslash
6756 figcaption
6757 \family default
6758  for the catalog ID optional parameter
6759 \end_layout
6760
6761 \begin_layout Itemize
6762
6763 \family typewriter
6764
6765 \backslash
6766 dataset
6767 \family default
6768  (2.17.1) – same as 
6769 \family typewriter
6770
6771 \backslash
6772 figcaption
6773 \family default
6774  for the catalog ID optional parameter
6775 \end_layout
6776
6777 \begin_layout Paragraph
6778 Things not implemented, use \SpecialChar TeX
6779  code
6780 \end_layout
6781
6782 \begin_layout Standard
6783
6784 \family typewriter
6785
6786 \backslash
6787 eqnum
6788 \family default
6789  (2.12), 
6790 \family typewriter
6791
6792 \backslash
6793 setcounter{equation}
6794 \family default
6795  (2.12), Journal name abbreviations (2.13.4), 
6796 \family typewriter
6797
6798 \backslash
6799 figurenum
6800 \family default
6801  (2.14.1), 
6802 \family typewriter
6803
6804 \backslash
6805 epsscale
6806 \family default
6807  (2.14.1), 
6808 \family typewriter
6809
6810 \backslash
6811 plotone
6812 \family default
6813  (2.14.1), 
6814 \family typewriter
6815
6816 \backslash
6817 plottwo
6818 \family default
6819  (2.14.1), 
6820 \family typewriter
6821
6822 \backslash
6823 tablenum
6824 \family default
6825  (2.15.4), 
6826 \family typewriter
6827
6828 \backslash
6829 tableline
6830 \family default
6831  (2.15.4, insert it as the first element in the lefthand cell after where
6832  you want it.
6833  Don't use any of \SpecialChar LyX
6834 's rules in the table), 
6835 \family typewriter
6836
6837 \backslash
6838 tablenotemark
6839 \family default
6840  (2.15.5), 
6841 \family typewriter
6842
6843 \backslash
6844 tablenotetext
6845 \family default
6846  (2.15.5), much of Misc (2.17, except 
6847 \family typewriter
6848
6849 \backslash
6850 objectname
6851 \family default
6852
6853 \family typewriter
6854
6855 \backslash
6856 dataset
6857 \family default
6858
6859 \family typewriter
6860
6861 \backslash
6862 url
6863 \family default
6864 , and 
6865 \family typewriter
6866
6867 \backslash
6868 email
6869 \family default
6870 ; see above), 
6871 \family typewriter
6872
6873 \backslash
6874 singlespace
6875 \family default
6876  (3.1), 
6877 \family typewriter
6878
6879 \backslash
6880 doublespace
6881 \family default
6882  (3.1), 
6883 \family typewriter
6884
6885 \backslash
6886 onecolumn
6887 \family default
6888  (3.2), 
6889 \family typewriter
6890
6891 \backslash
6892 twocolumn
6893 \family default
6894  (3.2)
6895 \end_layout
6896
6897 \begin_layout Paragraph
6898 Things that cannot be implemented
6899 \end_layout
6900
6901 \begin_layout Standard
6902 \SpecialChar ldots
6903  at least in any meaningful sort of way, so I suggest ignoring them.
6904  They are the references environment (2.13.3), and the deluxetable environment
6905  (2.15).
6906  If you really, really need to use deluxetable, I suggest editing it in
6907  a separate file with a text editor, then using 
6908 \family sans
6909 Insert\SpecialChar menuseparator
6910 Child
6911 \begin_inset space ~
6912 \end_inset
6913
6914 Document
6915 \family default
6916  to include it in your \SpecialChar LyX
6917  document.
6918  See 
6919 \change_deleted 564990737 1671642564
6920 the 
6921 \family typewriter
6922 aas_sample.lyx
6923 \family default
6924  file to see
6925 \change_inserted 564990737 1671642618
6926
6927 \family sans
6928 \lang british
6929 File\SpecialChar menuseparator
6930 Open Example\SpecialChar menuseparator
6931 Articles\SpecialChar menuseparator
6932 American Astronomical Society
6933 \change_unchanged
6934
6935 \family default
6936 \lang english
6937  
6938 \change_inserted 564990737 1671642621
6939 for 
6940 \change_unchanged
6941 an example of this.
6942 \end_layout
6943
6944 \begin_layout Subsubsection
6945 FAQs, Tips, Tricks, and Other Ruminations
6946 \end_layout
6947
6948 \begin_layout Paragraph
6949 Getting \SpecialChar LyX
6950  and AAS\SpecialChar TeX
6951  to cooperate
6952 \end_layout
6953
6954 \begin_layout Standard
6955 It can be a bit tricky to get \SpecialChar LyX
6956  to recognize a new layout and document class.
6957  When all else fails, do this:
6958 \end_layout
6959
6960 \begin_layout Enumerate
6961 Make certain that \SpecialChar LaTeX
6962  can find AAS\SpecialChar TeX
6963 .
6964  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6965  distribution into a
6966  directory completely unrelated to \SpecialChar LaTeX
6967  or AAS\SpecialChar TeX
6968  and run \SpecialChar LaTeX
6969  on 
6970 \family typewriter
6971 sample.tex
6972 \family default
6973 .
6974 \end_layout
6975
6976 \begin_layout Enumerate
6977 Make certain that 
6978 \family typewriter
6979 aastex.layout
6980 \family default
6981  appears in \SpecialChar LyX
6982 's 
6983 \family typewriter
6984 layouts
6985 \family default
6986  folder
6987 \end_layout
6988
6989 \begin_layout Enumerate
6990 Rerun 
6991 \family sans
6992 Tools\SpecialChar menuseparator
6993 Reconfigure
6994 \family default
6995  in \SpecialChar LyX
6996 , then restart \SpecialChar LyX
6997 .
6998 \end_layout
6999
7000 \begin_layout Enumerate
7001 Open a regular new file, not from a template.
7002  Does AAS\SpecialChar TeX
7003  appear in the class list in 
7004 \family sans
7005 Document\SpecialChar menuseparator
7006 Settings
7007 \family default
7008 ?
7009 \end_layout
7010
7011 \begin_layout Standard
7012 If you get a warning from an existing AAS\SpecialChar TeX
7013  document about not being able
7014  to find the AAS\SpecialChar TeX
7015  layout or a message about 
7016 \begin_inset Quotes eld
7017 \end_inset
7018
7019 You should not mix title layouts with normal ones
7020 \begin_inset Quotes erd
7021 \end_inset
7022
7023 , things haven't been installed correctly.
7024 \end_layout
7025
7026 \begin_layout Paragraph
7027 \SpecialChar LaTeX
7028  error processing a table 
7029 \end_layout
7030
7031 \begin_layout Standard
7032 \SpecialChar LyX
7033 , by default, attempts to center the table caption/title.
7034  This seems to produce a bad interaction in AAS\SpecialChar TeX
7035  so you should click somewhere
7036  in the caption/title, then select 
7037 \family sans
7038 Edit\SpecialChar menuseparator
7039 Paragraph
7040 \begin_inset space ~
7041 \end_inset
7042
7043 Settings
7044 \family default
7045 , then set the 
7046 \family sans
7047 Alignment
7048 \family default
7049  to 
7050 \family sans
7051 Block
7052 \family default
7053 .
7054  This took care of it for me.
7055 \end_layout
7056
7057 \begin_layout Paragraph
7058 References
7059 \end_layout
7060
7061 \begin_layout Standard
7062 A couple of things: 1) I have noticed some funny spacing in the reference
7063  entries in the text.
7064  When you enter the bibliography item data, make sure their is 
7065 \emph on
7066 no
7067 \emph default
7068  space between the last author and the parenthesis setting off the year;
7069  
7070 \emph on
7071 e.
7072 \begin_inset space \thinspace{}
7073 \end_inset
7074
7075 g.
7076 \begin_inset space \space{}
7077 \end_inset
7078
7079
7080 \emph default
7081 type 
7082 \family typewriter
7083 Ressler(1992)
7084 \family default
7085 , not 
7086 \family typewriter
7087 Ressler (1992)
7088 \family default
7089 .
7090  2) Entering the references at all is not obvious.
7091  The easiest thing is to start typing your first reference at the end of
7092  the document, then mark it as type 
7093 \family sans
7094 References
7095 \family default
7096 .
7097  That will put a small gray box in front of what you just typed.
7098  Click on the box to fill in the rest of the information.
7099  For new references, go to the end of an existing reference and press return.
7100  That will create a new line with its own box, etc.
7101 \end_layout
7102
7103 \begin_layout Paragraph
7104 Including EPS files
7105 \end_layout
7106
7107 \begin_layout Standard
7108 Even though AAS\SpecialChar TeX
7109  provides its own figure commands (
7110 \family typewriter
7111
7112 \backslash
7113 plotone
7114 \family default
7115 , for example), I much prefer \SpecialChar LaTeX
7116 's standard figure commands (with the default
7117  graphicx).
7118  You can insert the 
7119 \family typewriter
7120
7121 \backslash
7122 plotone
7123 \family default
7124 , etc.
7125 \begin_inset space ~
7126 \end_inset
7127
7128 commands as \SpecialChar TeX
7129  code into a Figure Float box if you desire, but I never have
7130  much luck getting the layout right.
7131  With the standard graphics, \SpecialChar LyX
7132  will insert a 
7133 \family typewriter
7134
7135 \backslash
7136 usepackage{graphicx}
7137 \family default
7138  command into the \SpecialChar LaTeX
7139  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7140  way,
7141  interspersing the figures in the text.
7142  I believe ApJ accepts figures exactly this way now; AJ might still use
7143  the 
7144 \begin_inset Quotes eld
7145 \end_inset
7146
7147 stack everything at the end
7148 \begin_inset Quotes erd
7149 \end_inset
7150
7151  technique.
7152 \end_layout
7153
7154 \begin_layout Paragraph
7155 Things I could have done, but didn't
7156 \end_layout
7157
7158 \begin_layout Standard
7159 There are a few 
7160 \begin_inset Quotes eld
7161 \end_inset
7162
7163 pretty
7164 \begin_inset Quotes erd
7165 \end_inset
7166
7167  things I could have implemented, but chose not to.
7168  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7169  window,
7170  even though it is double-spaced in the paper manuscript.
7171  Also, I chose not to make separate layouts for the preprint and preprint2
7172  styles.
7173  Since I assume you will spend most of your time in the plain manuscript
7174  mode anyway, I decided not to chew up more disk space with this.
7175  
7176 \end_layout
7177
7178 \begin_layout Subsubsection
7179 Final Caveat
7180 \end_layout
7181
7182 \begin_layout Standard
7183 Your mileage may vary.
7184  I've now had papers published by both ApJ and AJ that have had 98% of the
7185  effort done in \SpecialChar LyX
7186 ; the last 2% was the \SpecialChar LaTeX
7187  post-processing and a few cleanups.
7188  I have had no trouble with the submission process, and I'm sure the journals
7189  were never aware that there might be a difference.
7190  So, go forth and publish!
7191 \end_layout
7192
7193 \begin_layout Subsection
7194
7195 \change_inserted 564990737 1671442131
7196
7197 \lang american
7198 Chess
7199 \end_layout
7200
7201 \begin_layout Standard
7202
7203 \change_inserted 564990737 1671642768
7204
7205 \lang american
7206 The document class 
7207 \family sans
7208 article
7209 \begin_inset space \thinspace{}
7210 \end_inset
7211
7212 (Chess)
7213 \family default
7214  uses the 
7215 \family typewriter
7216 article.cls
7217 \family default
7218  document class together with the style 
7219 \family sans
7220 lyxskak.sty
7221 \family default
7222  to facilitate the description of chess games.
7223  See 
7224 \family sans
7225 \lang british
7226 File\SpecialChar menuseparator
7227 Open Example
7228 \lang english
7229 \SpecialChar menuseparator
7230 Articles\SpecialChar menuseparator
7231 Chess
7232 \family default
7233 \lang american
7234  where you will find 
7235 \family sans
7236 \lang english
7237 Game 1
7238 \family default
7239 \lang american
7240  and 
7241 \family sans
7242 \lang english
7243 Game 2
7244 \family default
7245 \lang american
7246 .
7247 \end_layout
7248
7249 \begin_layout Subsection
7250
7251 \change_inserted 564990737 1671042028
7252
7253 \lang american
7254 Elsevier
7255 \end_layout
7256
7257 \begin_layout Standard
7258
7259 \change_inserted 564990737 1671617396
7260
7261 \lang american
7262 The document class 
7263 \family sans
7264 article
7265 \begin_inset space \thinspace{}
7266 \end_inset
7267
7268 (Elsevier)
7269 \family default
7270  provides the 
7271 \family typewriter
7272 elsarticle.cls
7273 \family default
7274  document class.
7275  This provides the following additional environments: 
7276 \family sans
7277 Title
7278 \begin_inset space ~
7279 \end_inset
7280
7281 footnote
7282 \family default
7283
7284 \family sans
7285 Author
7286 \begin_inset space ~
7287 \end_inset
7288
7289 footnote
7290 \family default
7291
7292 \family sans
7293 Corresponding
7294 \begin_inset space ~
7295 \end_inset
7296
7297 author
7298 \family default
7299
7300 \family sans
7301 Address
7302 \family default
7303
7304 \family sans
7305 Email
7306 \family default
7307  and 
7308 \family sans
7309 Keywords
7310 \family default
7311 .
7312  A template is available in the menu 
7313 \family sans
7314 \bar under
7315 F
7316 \bar default
7317 ile\SpecialChar menuseparator
7318 New
7319 \begin_inset space ~
7320 \end_inset
7321
7322 fro
7323 \bar under
7324 m
7325 \bar default
7326
7327 \begin_inset space ~
7328 \end_inset
7329
7330 Template
7331 \lang english
7332 \SpecialChar menuseparator
7333 Articles\SpecialChar menuseparator
7334 Elsevier
7335 \family default
7336 \lang american
7337 .
7338  It has been customized with further environments and contains all the informati
7339 on you may need.
7340  However, the documentation is also available from 
7341 \begin_inset CommandInset href
7342 LatexCommand href
7343 name "CTAN"
7344 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7345 literal "false"
7346
7347 \end_inset
7348
7349 .
7350 \end_layout
7351
7352 \begin_layout Subsection
7353
7354 \change_inserted 564990737 1671042046
7355
7356 \lang american
7357 Paper
7358 \end_layout
7359
7360 \begin_layout Standard
7361
7362 \change_inserted 564990737 1671042046
7363
7364 \lang american
7365 The document class 
7366 \family sans
7367 article
7368 \begin_inset space \thinspace{}
7369 \end_inset
7370
7371 (paper)
7372 \family default
7373  provides an alternative to the 
7374 \family typewriter
7375 article.cls
7376 \family default
7377  document class.
7378  It provides similar functionality, but you might prefer this layout with
7379  sans serif sections, headings, and more.
7380 \end_layout
7381
7382 \begin_layout Subsection
7383 Rev\SpecialChar TeX
7384 4
7385 \end_layout
7386
7387 \begin_layout Standard
7388 by 
7389 \noun on
7390 Amir Karger
7391 \end_layout
7392
7393 \begin_layout Standard
7394 \begin_inset VSpace bigskip
7395 \end_inset
7396
7397
7398 \end_layout
7399
7400 \begin_layout Standard
7401 \noindent
7402 The 
7403 \family sans
7404 Revtex
7405 \begin_inset space ~
7406 \end_inset
7407
7408 4
7409 \family default
7410  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7411  4.0 (the 
7412 \begin_inset Formula $\beta$
7413 \end_inset
7414
7415  release of May, 1999) class.
7416 \end_layout
7417
7418 \begin_layout Standard
7419 \SpecialChar LyX
7420  has a 
7421 \family sans
7422 Revtex
7423 \family default
7424  textclass, which works with Rev\SpecialChar TeX
7425  3.1.
7426  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7427  2.09.
7428  That means that it doesn't interact very well with \SpecialChar LyX
7429 , which requires \SpecialChar LaTeX2e
7430 , although
7431  it has been kludged to work.
7432  Since Rev\SpecialChar TeX
7433  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7434 , \SpecialChar LyX
7435  with the
7436  
7437 \family sans
7438 Rev\SpecialChar TeX
7439
7440 \begin_inset space ~
7441 \end_inset
7442
7443 4
7444 \family default
7445  textclass should also be pretty easy to use.
7446 \end_layout
7447
7448 \begin_layout Standard
7449 These documents are supposed to be used in 
7450 \emph on
7451 addition
7452 \emph default
7453  to the Rev\SpecialChar TeX
7454  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7455  macros,
7456  and assume you'll know what to put in the preamble if necessary.
7457 \end_layout
7458
7459 \begin_layout Subsubsection
7460 Installation
7461 \end_layout
7462
7463 \begin_layout Standard
7464 All you need to do is install Rev\SpecialChar TeX
7465  4, as described in the package's README
7466  file.
7467  The package can be found at The Rev\SpecialChar TeX
7468  4 Web Site 
7469 \begin_inset Flex URL
7470 status collapsed
7471
7472 \begin_layout Plain Layout
7473
7474 http://publish.aps.org/revtex4/
7475 \end_layout
7476
7477 \end_inset
7478
7479 .
7480  Install it somewhere that \SpecialChar LaTeX
7481  can see it.
7482  Test it by trying to \SpecialChar LaTeX
7483  a short Rev\SpecialChar TeX
7484  4 document in some random directory (i.
7485 \begin_inset space \thinspace{}
7486 \end_inset
7487
7488 e.
7489 \begin_inset space \space{}
7490 \end_inset
7491
7492 not the directory where you installed the class file.) Then, if you reconfigure
7493  \SpecialChar LyX
7494 , it will find the class file and let you use the Rev\SpecialChar TeX
7495 4 textclass.
7496 \end_layout
7497
7498 \begin_layout Standard
7499 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7500  4 document
7501  using 
7502 \family typewriter
7503 tex2lyx
7504 \family default
7505 , or to use the 
7506 \family sans
7507 Revtex
7508 \begin_inset space ~
7509 \end_inset
7510
7511 4
7512 \family default
7513  template, found in the templates directory.
7514 \end_layout
7515
7516 \begin_layout Subsubsection
7517 Preamble Matter
7518 \end_layout
7519
7520 \begin_layout Standard
7521 Optional arguments to 
7522 \family typewriter
7523
7524 \backslash
7525 documentclass
7526 \family default
7527 , like 
7528 \begin_inset Quotes eld
7529 \end_inset
7530
7531 preprint
7532 \begin_inset Quotes erd
7533 \end_inset
7534
7535  and 
7536 \begin_inset Quotes eld
7537 \end_inset
7538
7539 aps
7540 \begin_inset Quotes erd
7541 \end_inset
7542
7543 , go in the 
7544 \family sans
7545 Extra
7546 \begin_inset space ~
7547 \end_inset
7548
7549 Options
7550 \family default
7551  field in the 
7552 \family sans
7553 Document
7554 \begin_inset space ~
7555 \end_inset
7556
7557 Layout
7558 \family default
7559  dialog, as usual.
7560  Remember that in Rev\SpecialChar TeX
7561 , at least one optional argument is required! 
7562 \end_layout
7563
7564 \begin_layout Standard
7565 Other preamble matter, like 
7566 \family typewriter
7567
7568 \backslash
7569 draft
7570 \family default
7571  etc.
7572 \begin_inset space ~
7573 \end_inset
7574
7575 goes in the 
7576 \family sans
7577 \SpecialChar LaTeX
7578
7579 \begin_inset space ~
7580 \end_inset
7581
7582 Preamble
7583 \family default
7584  dialog, also as usual.
7585 \end_layout
7586
7587 \begin_layout Subsubsection
7588 Layouts
7589 \end_layout
7590
7591 \begin_layout Standard
7592 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7593 4.0.
7594  For example, the Email layout corresponds to 
7595 \family typewriter
7596
7597 \backslash
7598 email{}
7599 \family default
7600 .
7601  Note that (at least as of Rev\SpecialChar TeX
7602  4.0 Beta), the 
7603 \family sans
7604 Address
7605 \family default
7606  and 
7607 \family sans
7608 Affiliation
7609 \family default
7610  layouts are exactly equivalent, so you shouldn't need to use both.
7611 \begin_inset Foot
7612 status collapsed
7613
7614 \begin_layout Plain Layout
7615 In case you're curious, both were included so that 
7616 \family typewriter
7617 tex2lyx
7618 \family default
7619  would be able to translate both 
7620 \family typewriter
7621
7622 \backslash
7623 address
7624 \family default
7625  and 
7626 \family typewriter
7627
7628 \backslash
7629 affiliation
7630 \family default
7631 .
7632 \end_layout
7633
7634 \end_inset
7635
7636
7637 \end_layout
7638
7639 \begin_layout Subsubsection
7640 Important Notes
7641 \end_layout
7642
7643 \begin_layout Standard
7644 There are a couple of important unique aspects of Rev\SpecialChar TeX
7645  4 which might cause
7646  bugs that will be even more confusing in \SpecialChar LyX
7647 .
7648 \end_layout
7649
7650 \begin_layout Standard
7651 In Rev\SpecialChar TeX
7652 , the 
7653 \family typewriter
7654
7655 \backslash
7656 thanks
7657 \family default
7658  command goes 
7659 \emph on
7660 outside
7661 \emph default
7662  the 
7663 \family typewriter
7664
7665 \backslash
7666 author
7667 \family default
7668  command.
7669  The \SpecialChar LyX
7670  equivalent is that there is a separate Thanks layout.
7671  Do 
7672 \emph on
7673 not
7674 \emph default
7675  write footnotes in the 
7676 \family sans
7677 Author
7678 \family default
7679  layout, or weird things may happen.
7680  See the Rev\SpecialChar TeX
7681  4 documentation for more details.
7682 \end_layout
7683
7684 \begin_layout Standard
7685 Also, the 
7686 \family sans
7687 Author
7688 \begin_inset space ~
7689 \end_inset
7690
7691 Email
7692 \family default
7693
7694 \family sans
7695 Author
7696 \begin_inset space ~
7697 \end_inset
7698
7699 URL
7700 \family default
7701 , and 
7702 \family sans
7703 Thanks
7704 \family default
7705  layouts must be placed 
7706 \emph on
7707 in between
7708 \emph default
7709  the 
7710 \family sans
7711 Author
7712 \family default
7713  layout and the corresponding 
7714 \family sans
7715 Address
7716 \family default
7717  (or equivalent 
7718 \family sans
7719 Affiliation
7720 \family default
7721 ) layout.
7722  If you put the 
7723 \family sans
7724 Thanks
7725 \family default
7726  after the 
7727 \family sans
7728 Address
7729 \family default
7730 , the \SpecialChar LaTeX
7731  won't compile.
7732 \end_layout
7733
7734 \begin_layout Subsection
7735
7736 \change_inserted 564990737 1671042072
7737
7738 \lang american
7739 Springer Journals
7740 \end_layout
7741
7742 \begin_layout Standard
7743
7744 \change_inserted 564990737 1671042072
7745
7746 \lang american
7747 All the 
7748 \family sans
7749 svj*
7750 \family default
7751  classes were replaced in 2013 with a completely new 
7752 \family sans
7753 sr-vorl.cls
7754 \family default
7755 .
7756  This package provides a \SpecialChar LaTeX
7757  class and templates for books to be published
7758  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7759  Research, Springer VS Research, or Springer VS Forschung.
7760  The documentation is available in German from 
7761 \begin_inset CommandInset href
7762 LatexCommand href
7763 name "CTAN"
7764 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7765 literal "false"
7766
7767 \end_inset
7768
7769 .
7770 \end_layout
7771
7772 \begin_layout Section
7773
7774 \change_inserted 564990737 1670439560
7775 Books
7776 \end_layout
7777
7778 \begin_layout Standard
7779
7780 \change_inserted 564990737 1670439581
7781 See also the document classes in the Collections (section
7782 \begin_inset space ~
7783 \end_inset
7784
7785
7786 \begin_inset CommandInset ref
7787 LatexCommand ref
7788 reference "sec:Collections"
7789
7790 \end_inset
7791
7792 ).
7793 \end_layout
7794
7795 \begin_layout Subsection
7796 Memoir
7797 \end_layout
7798
7799 \begin_layout Standard
7800 By 
7801 \noun on
7802 Jürgen Spitzmüller
7803 \end_layout
7804
7805 \begin_layout Subsubsection
7806 Overview
7807 \end_layout
7808
7809 \begin_layout Standard
7810 Memoir is a very powerful and constantly evolving class.
7811  It has been designed with regard to fictional and non-fictional literature.
7812  Its aim is to let the user have maximum control over the typesetting of
7813  his document.
7814  Memoir is based on the standard book class, but it can also emulate the
7815  article class (see below).
7816 \end_layout
7817
7818 \begin_layout Standard
7819 Peter Wilson, the developer of Memoir, is known as the author of lots of
7820  useful packages in the \SpecialChar LaTeX
7821  world.
7822  Most of them have been merged with Memoir.
7823  Therefore, it is much easier to layout the table of contents, appendices,
7824  chapter designs and such.
7825  \SpecialChar LyX
7826 , though, does not support all of these goodies natively.
7827  Some of them might be added to forthcoming releases
7828 \begin_inset Foot
7829 status collapsed
7830
7831 \begin_layout Plain Layout
7832 You are invited to send suggestions to 
7833 \begin_inset Flex URL
7834 status collapsed
7835
7836 \begin_layout Plain Layout
7837
7838 lyx-devel@lists.lyx.org
7839 \end_layout
7840
7841 \end_inset
7842
7843 .
7844 \end_layout
7845
7846 \end_inset
7847
7848 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7849 's framework.
7850  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7851
7852  commands (\SpecialChar TeX
7853  code
7854 \begin_inset Foot
7855 status collapsed
7856
7857 \begin_layout Plain Layout
7858 Cf.
7859 \begin_inset ERT
7860 status collapsed
7861
7862 \begin_layout Plain Layout
7863
7864
7865 \backslash
7866  
7867 \end_layout
7868
7869 \end_inset
7870
7871 section
7872 \begin_inset space ~
7873 \end_inset
7874
7875
7876 \begin_inset CommandInset ref
7877 LatexCommand ref
7878 reference "sec:Inserting-TeX-Code"
7879
7880 \end_inset
7881
7882  for details.
7883 \end_layout
7884
7885 \end_inset
7886
7887 ).
7888  In this section, we can only list those features that are natively supported
7889  by \SpecialChar LyX
7890 .
7891  For detailed descriptions (and for the rest of features) we recommend you
7892  have a look at the detailed manual of the Memoir class
7893 \begin_inset Foot
7894 status collapsed
7895
7896 \begin_layout Plain Layout
7897 Cf.
7898 \begin_inset ERT
7899 status collapsed
7900
7901 \begin_layout Plain Layout
7902
7903
7904 \backslash
7905  
7906 \end_layout
7907
7908 \end_inset
7909
7910
7911 \begin_inset Flex URL
7912 status collapsed
7913
7914 \begin_layout Plain Layout
7915
7916 CTAN:/macros/latex/memoir/memman.pdf
7917 \end_layout
7918
7919 \end_inset
7920
7921 .
7922 \end_layout
7923
7924 \end_inset
7925
7926 , which is not only a user guide for the class, but also both a comprehensive
7927  description on good typesetting and a superb example for good typesetting
7928  itself.
7929 \end_layout
7930
7931 \begin_layout Subsubsection
7932 Basic features and restrictions
7933 \end_layout
7934
7935 \begin_layout Standard
7936 Memoir supports basically all features of the standard book classes.
7937  There are, however, some differences, as follows:
7938 \end_layout
7939
7940 \begin_layout Description
7941 Font
7942 \begin_inset space ~
7943 \end_inset
7944
7945 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7946 \end_layout
7947
7948 \begin_layout Description
7949 Page
7950 \begin_inset space ~
7951 \end_inset
7952
7953 style: The fancy page style is not supported, due to a command clash between
7954  Memoir and the fancyhdr package (they both define a command with the same
7955  name, which confuses \SpecialChar LaTeX
7956 ).
7957  Instead, Memoir comes with a number of its own page styles (see 
7958 \family sans
7959 Document\SpecialChar menuseparator
7960 Settings\SpecialChar menuseparator
7961 Page
7962 \begin_inset space ~
7963 \end_inset
7964
7965 Style
7966 \family default
7967 ).
7968  If you want to use these for the chapter pages, you have to use the command
7969  
7970 \family typewriter
7971
7972 \backslash
7973 chapterstyle
7974 \family default
7975  in the main text or in preamble (e.
7976 \begin_inset space \thinspace{}
7977 \end_inset
7978
7979 g.
7980 \begin_inset space \space{}
7981 \end_inset
7982
7983
7984 \family typewriter
7985
7986 \backslash
7987 chapterstyle{companion}
7988 \family default
7989 ).
7990 \end_layout
7991
7992 \begin_layout Description
7993 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7994  optional argument in the standard classes.
7995  With this, you can specify an alternative version of the title for the
7996  table of contents and the headers (for instance, if the title is too long).
7997  In \SpecialChar LyX
7998 , you can do this via 
7999 \family sans
8000 Insert\SpecialChar menuseparator
8001 Short
8002 \begin_inset space ~
8003 \end_inset
8004
8005 Title
8006 \family default
8007  at the beginning of a chapter/section.
8008  Memoir features a second optional argument and thus separates the table
8009  of contents from the header.
8010  You can define three variants of a title with this: one for the main text,
8011  one for the table of contents, and one for the headers.
8012  \SpecialChar LyX
8013  makes these available in form of specific 
8014 \family sans
8015 Short Title
8016 \family default
8017  variants in the 
8018 \family sans
8019 Insert
8020 \family default
8021  menu.
8022 \end_layout
8023
8024 \begin_layout Description
8025 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8026  of contents, the list of figures and the list of table start a new page
8027  automatically.
8028  Memoir does not follow this route.
8029  You have to insert a page break yourself, if you want to have one.
8030 \end_layout
8031
8032 \begin_layout Description
8033 Titlepage: For some unknown reason, Memoir uses pagination on the title
8034  page (in the standard classes, title pages are 
8035 \begin_inset Quotes eld
8036 \end_inset
8037
8038 empty
8039 \begin_inset Quotes erd
8040 \end_inset
8041
8042 ).
8043  If you want an empty title page, type 
8044 \family typewriter
8045
8046 \backslash
8047 aliaspagestyle{title}{empty}
8048 \family default
8049  in the preamble.
8050 \end_layout
8051
8052 \begin_layout Description
8053 Article: With the class option 
8054 \emph on
8055 article
8056 \emph default
8057  (to be inserted in 
8058 \family sans
8059 Document\SpecialChar menuseparator
8060 Settings\SpecialChar menuseparator
8061 Class Settings\SpecialChar menuseparator
8062 Custom
8063 \begin_inset space ~
8064 \end_inset
8065
8066 Options
8067 \family default
8068 ), you can emulate article style.
8069  That is, counters (footnotes, figures, tables etc.) will not be reset on
8070  new chapters, chapters don't start a new page (but are—in contrary to 
8071 \begin_inset Quotes eld
8072 \end_inset
8073
8074 real
8075 \begin_inset Quotes erd
8076 \end_inset
8077
8078  article classes—still allowed), parts, though, use their own page, as in
8079  book.
8080 \end_layout
8081
8082 \begin_layout Description
8083 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8084  font commands, which have been used in the old \SpecialChar LaTeX
8085  version 2.09 (e.
8086 \begin_inset space \thinspace{}
8087 \end_inset
8088
8089 g.
8090 \begin_inset space \space{}
8091 \end_inset
8092
8093
8094 \family typewriter
8095
8096 \backslash
8097 rm
8098 \family default
8099
8100 \family typewriter
8101
8102 \backslash
8103 it
8104 \family default
8105 ).
8106  It produces an error and stops \SpecialChar LaTeX
8107  whenever such a command appears.
8108  The class option 
8109 \emph on
8110 oldfontcommands
8111 \emph default
8112  reallows the commands and spits out warnings instead (which does at least
8113  not stop \SpecialChar LaTeX
8114 ).
8115  Since a lot of packages and particularly Bib\SpecialChar TeX
8116  style files are still using
8117  those commands, we have decided to use this option by default.
8118 \end_layout
8119
8120 \begin_layout Subsubsection
8121 Extra features
8122 \end_layout
8123
8124 \begin_layout Standard
8125 We will only describe the features supported by \SpecialChar LyX
8126  (which is not much currently).
8127  Please consult the Memoir manual
8128 \begin_inset Foot
8129 status collapsed
8130
8131 \begin_layout Plain Layout
8132 Cf.
8133 \begin_inset ERT
8134 status collapsed
8135
8136 \begin_layout Plain Layout
8137
8138
8139 \backslash
8140  
8141 \end_layout
8142
8143 \end_inset
8144
8145
8146 \begin_inset Flex URL
8147 status collapsed
8148
8149 \begin_layout Plain Layout
8150
8151 CTAN:/macros/latex/memoir/memman.pdf
8152 \end_layout
8153
8154 \end_inset
8155
8156 .
8157 \end_layout
8158
8159 \end_inset
8160
8161  for details.
8162 \end_layout
8163
8164 \begin_layout Description
8165 Abstract: You may wonder why an abstract is an extra feature.
8166  Well, it is in book class.
8167  Usually books don't have abstracts.
8168  Memoir, however, has.
8169  You can use it wherever and how often you like.
8170 \end_layout
8171
8172 \begin_layout Description
8173 Chapterprecis: You may know this older typesetting style: The contents of
8174  a chapter are summarized below the title and also in the table of contents
8175  (e.
8176 \begin_inset space \thinspace{}
8177 \end_inset
8178
8179 g.
8180 \begin_inset space \space{}
8181 \end_inset
8182
8183
8184 \emph on
8185 Our hero arrives in Troia; he loses some friends; he finds others
8186 \emph default
8187 ).
8188  Chapterprecis does exactly this.
8189  It is therefore only sensible below a chapter.
8190 \end_layout
8191
8192 \begin_layout Description
8193 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8194  The epigraph environment provides an elegant way of typesetting such a
8195  motto.
8196  The motto itself (text) and its (optional) author (source) are divided
8197  by a short line.
8198  The author (source) can be inserted via 
8199 \family sans
8200 Insert\SpecialChar menuseparator
8201 Epigraph Source
8202 \family default
8203 \emph on
8204 .
8205 \end_layout
8206
8207 \begin_layout Description
8208 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8209  complex figurative poems).
8210  \SpecialChar LyX
8211  can only support a few of them.
8212  One is poemtitle, which is a centered title for poems, which will also
8213  be added to the table of contents (verse is the standard environment for
8214  poems.
8215  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8216  code,
8217  because they have to be nested inside regular verse environments, which
8218  is not possible with \SpecialChar LyX
8219 ).
8220 \end_layout
8221
8222 \begin_layout Description
8223 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8224 \end_layout
8225
8226 \begin_layout Subsection
8227
8228 \change_inserted 564990737 1671442175
8229
8230 \lang american
8231 Recipe Book
8232 \end_layout
8233
8234 \begin_layout Standard
8235
8236 \change_inserted 564990737 1671442175
8237
8238 \lang american
8239 The document class 
8240 \family typewriter
8241 RecipeBook.cls
8242 \family default
8243  uses the 
8244 \family sans
8245 book
8246 \begin_inset space \thinspace{}
8247 \end_inset
8248
8249 (KOMA-Script)
8250 \family default
8251  document class but adds two environments:
8252 \end_layout
8253
8254 \begin_layout Description
8255
8256 \change_inserted 564990737 1671442175
8257
8258 \lang american
8259 Recipe a numbered section environment at the 
8260 \family typewriter
8261 Subsubsection
8262 \family default
8263  level which generates a bold centered heading above a double horizontal
8264  rule
8265 \end_layout
8266
8267 \begin_layout Description
8268
8269 \change_inserted 564990737 1671442175
8270
8271 \lang american
8272 Ingredients a 
8273 \family typewriter
8274 Description
8275 \family default
8276  environment where 
8277 \series bold
8278 \emph on
8279 Ingredients
8280 \series default
8281 \emph default
8282  are what are being described and the environment ends with a horizontal
8283  rule.
8284 \end_layout
8285
8286 \begin_layout Standard
8287
8288 \change_inserted 564990737 1671642866
8289
8290 \family sans
8291 \lang british
8292 File\SpecialChar menuseparator
8293 Open Example\SpecialChar menuseparator
8294 Books\SpecialChar menuseparator
8295 Recipe Book
8296 \family default
8297 \lang american
8298  illustrates its use.
8299 \end_layout
8300
8301 \begin_layout Standard
8302
8303 \change_inserted 564990737 1671442175
8304
8305 \lang american
8306 It is designed for typesetting one or two recipes per page, with dimensions
8307  of 5.5
8308 \begin_inset Quotes qrd
8309 \end_inset
8310
8311  x 8.5
8312 \begin_inset Quotes qrd
8313 \end_inset
8314
8315 .
8316  The hyperlinked table of contents (ToC) and page numbers make browsing
8317  recipes convenient, and the pages can be joined together or printed 2 per
8318  page to normal letterpaper easily.
8319  The size was chosen to work in half-page 3-ring binder cover sheets, because
8320  un-laminated paper just doesn't last in the kitchen.
8321 \end_layout
8322
8323 \begin_layout Standard
8324
8325 \change_inserted 564990737 1671442175
8326
8327 \lang american
8328 The half-letter pages can be printed two per page using your printer driver,
8329  or bound together using 
8330 \family typewriter
8331 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8332 \family default
8333  
8334 \family typewriter
8335 Recipes.pdf
8336 \family default
8337  where 
8338 \family typewriter
8339 Recipes.pdf
8340 \family default
8341  is the compiled version of your recipes.
8342 \end_layout
8343
8344 \begin_layout Section
8345
8346 \change_inserted 564990737 1671442207
8347 Curricula vitarum
8348 \end_layout
8349
8350 \begin_layout Subsection
8351
8352 \change_inserted 564990737 1671442208
8353
8354 \lang american
8355 Europass
8356 \end_layout
8357
8358 \begin_layout Standard
8359
8360 \change_inserted 564990737 1671642942
8361
8362 \lang american
8363 The document class 
8364 \family sans
8365 curriculum
8366 \begin_inset space \space{}
8367 \end_inset
8368
8369 vitae
8370 \begin_inset space \thinspace{}
8371 \end_inset
8372
8373 (Europass)
8374 \family default
8375  provides the 
8376 \family typewriter
8377 europasscv.cls
8378 \family default
8379  document class, an unofficial implementation of the ‘Europass CV’ recommended
8380  by the European Commission in 2013.
8381  
8382 \family sans
8383 \lang british
8384 File\SpecialChar menuseparator
8385 Open Example\SpecialChar menuseparator
8386 Curricula Vitae\SpecialChar menuseparator
8387 Europass CV (2013)
8388 \family default
8389 \lang american
8390  offers guidance on its use.
8391  Its documentation is available from 
8392 \begin_inset CommandInset href
8393 LatexCommand href
8394 name "CTAN"
8395 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8396 literal "false"
8397
8398 \end_inset
8399
8400 .
8401 \end_layout
8402
8403 \begin_layout Subsection
8404
8405 \change_inserted 564990737 1671442208
8406
8407 \lang american
8408 European
8409 \end_layout
8410
8411 \begin_layout Standard
8412
8413 \change_inserted 564990737 1671642984
8414
8415 \lang american
8416 The document class 
8417 \family sans
8418 curriculum
8419 \begin_inset space \space{}
8420 \end_inset
8421
8422 vitae
8423 \begin_inset space \thinspace{}
8424 \end_inset
8425
8426 (Europe)
8427 \family default
8428  provides the 
8429 \family typewriter
8430 europecv.cls
8431 \family default
8432  document class, an unofficial implementation of the “Europass CV” recommended
8433  by the European Commission in 2002.
8434  
8435 \family sans
8436 \lang british
8437 File\SpecialChar menuseparator
8438 Open Example\SpecialChar menuseparator
8439 Curricula Vitae\SpecialChar menuseparator
8440 Europe CV
8441 \family default
8442 \lang american
8443  offers guidance on its use.
8444  Its documentation is available from 
8445 \begin_inset CommandInset href
8446 LatexCommand href
8447 name "CTAN"
8448 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8449 literal "false"
8450
8451 \end_inset
8452
8453 .
8454 \end_layout
8455
8456 \begin_layout Subsection
8457
8458 \change_inserted 564990737 1671442208
8459
8460 \lang american
8461 Modern
8462 \end_layout
8463
8464 \begin_layout Standard
8465
8466 \change_inserted 564990737 1671643003
8467
8468 \lang american
8469 The document class 
8470 \family sans
8471 curriculum
8472 \begin_inset space \space{}
8473 \end_inset
8474
8475 vitae
8476 \begin_inset space \thinspace{}
8477 \end_inset
8478
8479 (modern)
8480 \family default
8481  provides the 
8482 \family typewriter
8483 moderncv.cls
8484 \family default
8485  document class.
8486  This allows the creation of customizable CVs.
8487  
8488 \family sans
8489 \lang british
8490 File\SpecialChar menuseparator
8491 Open Example\SpecialChar menuseparator
8492 Curricula Vitae\SpecialChar menuseparator
8493 Modern CV
8494 \family default
8495 \lang american
8496  offers guidance on its use.
8497  Its documentation is available from 
8498 \begin_inset CommandInset href
8499 LatexCommand href
8500 name "CTAN"
8501 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8502 literal "false"
8503
8504 \end_inset
8505
8506 .
8507 \end_layout
8508
8509 \begin_layout Subsection
8510
8511 \change_inserted 564990737 1671442208
8512
8513 \lang american
8514 Simple
8515 \end_layout
8516
8517 \begin_layout Standard
8518
8519 \change_inserted 564990737 1671643024
8520
8521 \lang american
8522 The document class 
8523 \family sans
8524 curriculum
8525 \begin_inset space \space{}
8526 \end_inset
8527
8528 vitae
8529 \begin_inset space \thinspace{}
8530 \end_inset
8531
8532 (simple)
8533 \family default
8534  provides the 
8535 \family typewriter
8536 simplecv.cls
8537 \family default
8538  document class, originally developed for use with \SpecialChar LyX
8539 .
8540  
8541 \family sans
8542 \lang british
8543 File\SpecialChar menuseparator
8544 Open Example\SpecialChar menuseparator
8545 Curricula Vitae\SpecialChar menuseparator
8546 Simple CV
8547 \family default
8548 \lang american
8549  offers guidance on its use.
8550  Its documentation is available from 
8551 \begin_inset CommandInset href
8552 LatexCommand href
8553 name "CTAN"
8554 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8555 literal "false"
8556
8557 \end_inset
8558
8559
8560 \end_layout
8561
8562 \begin_layout Section
8563
8564 \change_inserted 564990737 1671041968
8565 Letters
8566 \end_layout
8567
8568 \begin_layout Subsection
8569
8570 \change_inserted 564990737 1671041970
8571
8572 \lang american
8573 Din-Brief
8574 \end_layout
8575
8576 \begin_layout Standard
8577
8578 \change_inserted 564990737 1671617528
8579
8580 \lang american
8581 The document class 
8582 \family sans
8583 Din-Brief
8584 \family default
8585  provides the 
8586 \family typewriter
8587 dinbrief.cls
8588 \family default
8589  document class for writing letters according to the 
8590 \emph on
8591 Deutsches Institut für Normung
8592 \emph default
8593  conventions.
8594  The file in the menu 
8595 \family sans
8596 \bar under
8597 F
8598 \bar default
8599 ile\SpecialChar menuseparator
8600 New
8601 \begin_inset space ~
8602 \end_inset
8603
8604 fro
8605 \bar under
8606 m
8607 \bar default
8608
8609 \begin_inset space ~
8610 \end_inset
8611
8612 Template\SpecialChar menuseparator
8613 Letters\SpecialChar menuseparator
8614 DIN-Brief
8615 \family default
8616  offers guidance on its use.
8617  The documentation is available from 
8618 \begin_inset CommandInset href
8619 LatexCommand href
8620 name "CTAN"
8621 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8622 literal "false"
8623
8624 \end_inset
8625
8626 .
8627 \end_layout
8628
8629 \begin_layout Subsection
8630
8631 \change_inserted 564990737 1671458835
8632
8633 \lang american
8634 letter
8635 \end_layout
8636
8637 \begin_layout Standard
8638
8639 \change_inserted 564990737 1671617591
8640
8641 \lang american
8642 The document class 
8643 \family sans
8644 letter
8645 \family default
8646  provides the 
8647 \family sans
8648 letter.cls
8649 \family default
8650  document class for English letters and to create mailing labels.
8651  The file in the menu 
8652 \family sans
8653 \bar under
8654 F
8655 \bar default
8656 ile\SpecialChar menuseparator
8657 New
8658 \begin_inset space ~
8659 \end_inset
8660
8661 fro
8662 \bar under
8663 m
8664 \bar default
8665
8666 \begin_inset space ~
8667 \end_inset
8668
8669 Template\SpecialChar menuseparator
8670 Letters\SpecialChar menuseparator
8671 Letter (Standard Class)
8672 \family default
8673  offers guidance on its use.
8674 \end_layout
8675
8676 \begin_layout Section
8677
8678 \change_inserted 564990737 1670439660
8679 Presentations
8680 \end_layout
8681
8682 \begin_layout Subsection
8683
8684 \change_inserted 564990737 1671458922
8685
8686 \lang american
8687 Beamer
8688 \end_layout
8689
8690 \begin_layout Standard
8691
8692 \change_inserted 564990737 1671617655
8693
8694 \lang american
8695 The document class 
8696 \family sans
8697 presentation
8698 \begin_inset space \thinspace{}
8699 \end_inset
8700
8701 (beamer)
8702 \family default
8703  uses the 
8704 \family typewriter
8705 beamer.cls
8706 \family default
8707  document class for creating presentations.
8708  The file in the menu 
8709 \family sans
8710 \bar under
8711 F
8712 \bar default
8713 ile\SpecialChar menuseparator
8714 New
8715 \begin_inset space ~
8716 \end_inset
8717
8718 fro
8719 \bar under
8720 m
8721 \bar default
8722
8723 \begin_inset space ~
8724 \end_inset
8725
8726 Template\SpecialChar menuseparator
8727 Presentations\SpecialChar menuseparator
8728 Beamer
8729 \family default
8730  offers guidance on its use.
8731  The documentation is available from 
8732 \begin_inset CommandInset href
8733 LatexCommand href
8734 name "CTAN"
8735 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8736 literal "false"
8737
8738 \end_inset
8739
8740 .
8741 \end_layout
8742
8743 \begin_layout Subsection
8744 Foils [aka 
8745 \family sans
8746 Foil\SpecialChar TeX
8747
8748 \family default
8749 ]
8750 \begin_inset CommandInset label
8751 LatexCommand label
8752 name "sec:foiltex"
8753
8754 \end_inset
8755
8756
8757 \end_layout
8758
8759 \begin_layout Standard
8760 by 
8761 \noun on
8762 Allan Rae
8763 \end_layout
8764
8765 \begin_layout Subsubsection
8766 Introduction
8767 \end_layout
8768
8769 \begin_layout Standard
8770 This section describes how to use \SpecialChar LyX
8771  to make slides for overhead projectors.
8772  There are two document classes that can do this: the default slides class
8773  and the 
8774 \family sans
8775 Foil\SpecialChar TeX
8776
8777 \family default
8778  slides class.
8779  This section documents the latter.
8780 \end_layout
8781
8782 \begin_layout Standard
8783 I'm going to say this again, nice and clear, so that there's no misunderstanding
8784 :
8785 \end_layout
8786
8787 \begin_layout Standard
8788 \begin_inset VSpace bigskip
8789 \end_inset
8790
8791
8792 \end_layout
8793
8794 \begin_layout Standard
8795 \align center
8796
8797 \size large
8798 This section documents the class 
8799 \begin_inset Quotes eld
8800 \end_inset
8801
8802
8803 \family sans
8804 FoilTeX
8805 \family default
8806
8807 \begin_inset Quotes erd
8808 \end_inset
8809
8810  
8811 \emph on
8812 only.
8813 \end_layout
8814
8815 \begin_layout Standard
8816 \begin_inset VSpace bigskip
8817 \end_inset
8818
8819
8820 \end_layout
8821
8822 \begin_layout Standard
8823 If you're looking for the documentation for 
8824 \begin_inset Quotes eld
8825 \end_inset
8826
8827
8828 \family sans
8829 slides (default)
8830 \family default
8831
8832 \begin_inset Quotes erd
8833 \end_inset
8834
8835 , check out section
8836 \begin_inset space ~
8837 \end_inset
8838
8839
8840 \begin_inset CommandInset ref
8841 LatexCommand ref
8842 reference "sec:slitex"
8843
8844 \end_inset
8845
8846 .
8847  If your machine doesn't have the 
8848 \family sans
8849 foils
8850 \family default
8851  class 
8852 \family sans
8853 FoilTeX
8854 \family default
8855  installed, you'll probably have to use the default 
8856 \family sans
8857 slides
8858 \family default
8859  class, which isn't quite as good as 
8860 \family sans
8861 foils.
8862 \end_layout
8863
8864 \begin_layout Standard
8865 The 
8866 \family sans
8867 foils
8868 \family default
8869  class is designed for use with version
8870 \begin_inset space ~
8871 \end_inset
8872
8873 2.1 of the 
8874 \family sans
8875 foils.cls
8876 \family default
8877  \SpecialChar LaTeX
8878  class file which is now an integral part of \SpecialChar LaTeX2e
8879 .
8880 \end_layout
8881
8882 \begin_layout Subsubsection
8883 Getting Started
8884 \end_layout
8885
8886 \begin_layout Standard
8887 Obviously, to use this document class, you need to select 
8888 \family sans
8889 FoilTeX
8890 \family default
8891  from the 
8892 \family sans
8893 Class
8894 \family default
8895  entry in the 
8896 \family sans
8897 Document
8898 \begin_inset space ~
8899 \end_inset
8900
8901 Layout
8902 \family default
8903  dialog.
8904  There are some settings in the 
8905 \family sans
8906 Document
8907 \begin_inset space ~
8908 \end_inset
8909
8910 Layout
8911 \family default
8912  dialog that you should know about that are specific to this class:
8913 \end_layout
8914
8915 \begin_layout Itemize
8916 Don't change the options 
8917 \family sans
8918 Sides
8919 \family default
8920  and 
8921 \family sans
8922 Columns
8923 \family default
8924  on the 
8925 \family sans
8926 Document
8927 \begin_inset space ~
8928 \end_inset
8929
8930 Layout
8931 \family default
8932  dialog.
8933  They're ignored by the 
8934 \family sans
8935 foils
8936 \family default
8937  class.
8938 \end_layout
8939
8940 \begin_layout Itemize
8941 The default font size is 20
8942 \begin_inset space \thinspace{}
8943 \end_inset
8944
8945 pt with the other options being 17
8946 \begin_inset space \thinspace{}
8947 \end_inset
8948
8949 pt, 25
8950 \begin_inset space \thinspace{}
8951 \end_inset
8952
8953 pt and 30
8954 \begin_inset space \thinspace{}
8955 \end_inset
8956
8957 pt.
8958 \end_layout
8959
8960 \begin_layout Itemize
8961 The default font is 
8962 \family sans
8963 sans
8964 \family default
8965  
8966 \family sans
8967 serif
8968 \family default
8969  but all math equations are still typeset in the usual roman font.
8970 \end_layout
8971
8972 \begin_layout Itemize
8973
8974 \family sans
8975 Foil\SpecialChar TeX
8976
8977 \family default
8978  supports A4 and Letter paper sizes as well as a special size for working
8979  with 35
8980 \begin_inset space \thinspace{}
8981 \end_inset
8982
8983 mm slides.
8984  It doesn't support A5, B5, legal or executive paper sizes.
8985 \end_layout
8986
8987 \begin_layout Itemize
8988 Don't bother changing the 
8989 \family sans
8990 Float Placement
8991 \family default
8992  settings because they are ignored anyway.
8993  All floats appear where they are defined in the text.
8994 \end_layout
8995
8996 \begin_layout Itemize
8997 The 
8998 \family sans
8999 Pagestyle
9000 \family default
9001  setting behaves a bit differently for this class.
9002  
9003 \family sans
9004 Foil\SpecialChar TeX
9005
9006 \family default
9007  provides extensive footer and header capabilities including a user-defined
9008  logo.
9009  See section
9010 \begin_inset space ~
9011 \end_inset
9012
9013
9014 \begin_inset CommandInset ref
9015 LatexCommand ref
9016 reference "sec:foilfoot"
9017
9018 \end_inset
9019
9020  for more details.
9021  The title page is treated differently to all other pages in the document
9022  and is 
9023 \emph on
9024 always
9025 \emph default
9026  unnumbered and 
9027 \emph on
9028 always
9029 \emph default
9030  has the logo centered at the bottom of the page (if one is defined).
9031  The possible page style choices and what they do are as follows:
9032 \end_layout
9033
9034 \begin_deeper
9035 \begin_layout Labeling
9036 \labelwidthstring MMMMMMM
9037
9038 \family sans
9039 \series bold
9040 empty
9041 \family default
9042 \series default
9043  The final output contains no page numbers, or other headers or footers
9044  (except footnotes of course).
9045  
9046 \end_layout
9047
9048 \begin_layout Labeling
9049 \labelwidthstring MMMMMMM
9050
9051 \family sans
9052 \series bold
9053 plain
9054 \family default
9055 \series default
9056  The final output contains page numbers centered at the bottom of the page.
9057  No other headings or footers (other than footnotes).
9058 \end_layout
9059
9060 \begin_layout Labeling
9061 \labelwidthstring MMMMMMM
9062
9063 \series bold
9064 foilheadings
9065 \series default
9066  Page numbers in lower right corner.
9067  Additional headers and footers are also shown.
9068  This is also the default.
9069 \end_layout
9070
9071 \begin_layout Labeling
9072 \labelwidthstring MMMMMMM
9073
9074 \series bold
9075 fancy
9076 \series default
9077  Gives you access to the 
9078 \family sans
9079 fancyheadings
9080 \family default
9081  package although its use with 
9082 \family sans
9083 Foil\SpecialChar TeX
9084
9085 \family default
9086  is discouraged by the writer of the 
9087 \family sans
9088 Foil\SpecialChar TeX
9089
9090 \family default
9091  package because of some potential page layout clashes.
9092 \end_layout
9093
9094 \end_deeper
9095 \begin_layout Paragraph
9096 Extra Options
9097 \end_layout
9098
9099 \begin_layout Standard
9100 The following options may be used in the extra class options in the 
9101 \family sans
9102 Document\SpecialChar menuseparator
9103 Settings
9104 \family default
9105  dialog.
9106 \end_layout
9107
9108 \begin_layout Labeling
9109 \labelwidthstring MMMMMMx
9110
9111 \series bold
9112 35mmSlide
9113 \series default
9114  This sets up the page layout for 7.33
9115 \begin_inset space \thinspace{}
9116 \end_inset
9117
9118 in by 11
9119 \begin_inset space \thinspace{}
9120 \end_inset
9121
9122 in paper, which is about the same aspect ratio as a 35
9123 \begin_inset space \thinspace{}
9124 \end_inset
9125
9126 mm slide, making it a bit easier to work with this medium.
9127 \end_layout
9128
9129 \begin_layout Labeling
9130 \labelwidthstring MMMMMMx
9131
9132 \series bold
9133 headrule
9134 \series default
9135  Places a rule across the page below the header on every page except the
9136  title page.
9137 \end_layout
9138
9139 \begin_layout Labeling
9140 \labelwidthstring MMMMMMx
9141
9142 \series bold
9143 footrule
9144 \series default
9145  Places a rule across the page above the footer on every page except the
9146  title page.
9147 \end_layout
9148
9149 \begin_layout Labeling
9150 \labelwidthstring MMMMMMx
9151
9152 \series bold
9153 dvips
9154 \series default
9155  This is automatically set each time you create a new 
9156 \family sans
9157 foils
9158 \family default
9159  document.
9160  This option tells 
9161 \family sans
9162 Foil\SpecialChar TeX
9163
9164 \family default
9165  to use the dvips driver to rotate those pages that are set as landscape
9166  foils.
9167 \end_layout
9168
9169 \begin_layout Labeling
9170 \labelwidthstring MMMMMMx
9171
9172 \series bold
9173 landscape
9174 \series default
9175  Simply changes the page dimensions to those of a landscape page but doesn't
9176  do any rotation.
9177  Thus if you use this option you need to use an external program to rotate
9178  each page or feed your paper through your printer as landscape.
9179  Note that this option effectively reverses the roles of the 
9180 \family sans
9181 Foilhead
9182 \family default
9183  and 
9184 \family sans
9185 Rotatefoilhead
9186 \family default
9187  environments (don't worry these are described in the next section).
9188 \end_layout
9189
9190 \begin_layout Labeling
9191 \labelwidthstring MMMMMMx
9192
9193 \series bold
9194 leqno
9195 \series default
9196  Equation numbers on the left.
9197 \end_layout
9198
9199 \begin_layout Labeling
9200 \labelwidthstring MMMMMMx
9201
9202 \series bold
9203 fleqn
9204 \series default
9205  Flush-left equations.
9206 \end_layout
9207
9208 \begin_layout Subsubsection
9209 Supported Environments
9210 \end_layout
9211
9212 \begin_layout Standard
9213 Most of the environments commonly supported in other classes are also supported
9214  by the 
9215 \family sans
9216 foils
9217 \family default
9218  class.
9219  There are several additional environments provided by 
9220 \family sans
9221 Foil\SpecialChar TeX
9222
9223 \family default
9224  as well as a couple added by \SpecialChar LyX
9225 .
9226  The following environments are shared with other classes:
9227 \end_layout
9228
9229 \begin_layout Standard
9230 \begin_inset Flex Multiple Columns
9231 status open
9232
9233 \begin_layout Itemize
9234
9235 \family sans
9236 Standard
9237 \end_layout
9238
9239 \begin_layout Itemize
9240
9241 \family sans
9242 Itemize
9243 \end_layout
9244
9245 \begin_layout Itemize
9246
9247 \family sans
9248 Enumerate
9249 \end_layout
9250
9251 \begin_layout Itemize
9252
9253 \family sans
9254 Description
9255 \end_layout
9256
9257 \begin_layout Itemize
9258
9259 \family sans
9260 List
9261 \end_layout
9262
9263 \begin_layout Itemize
9264
9265 \family sans
9266 \SpecialChar LyX
9267 -Code
9268 \end_layout
9269
9270 \begin_layout Itemize
9271
9272 \family sans
9273 Verse
9274 \end_layout
9275
9276 \begin_layout Itemize
9277
9278 \family sans
9279 Quote
9280 \end_layout
9281
9282 \begin_layout Itemize
9283
9284 \family sans
9285 Quotation
9286 \end_layout
9287
9288 \begin_layout Itemize
9289
9290 \family sans
9291 TitleAuthor
9292 \end_layout
9293
9294 \begin_layout Itemize
9295
9296 \family sans
9297 Date
9298 \end_layout
9299
9300 \begin_layout Itemize
9301
9302 \family sans
9303 Abstract
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Bibliography
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family sans
9315 Address
9316 \end_layout
9317
9318 \begin_layout Itemize
9319
9320 \family sans
9321 RightAddress
9322 \end_layout
9323
9324 \end_inset
9325
9326
9327 \end_layout
9328
9329 \begin_layout Standard
9330 That is, all the major environments apart from the sectioning environments.
9331  Since foils are essentially self-contained sections, with a title and body,
9332  
9333 \family sans
9334 Foil\SpecialChar TeX
9335
9336 \family default
9337  provides specific commands for starting new foils and these are:
9338 \end_layout
9339
9340 \begin_layout Itemize
9341
9342 \family sans
9343 Foilhead
9344 \end_layout
9345
9346 \begin_layout Itemize
9347
9348 \family sans
9349 Rotatefoilhead
9350 \end_layout
9351
9352 \begin_layout Standard
9353 \SpecialChar LyX
9354  also provides slightly modified versions of these two environments called:
9355 \end_layout
9356
9357 \begin_layout Itemize
9358
9359 \family sans
9360 ShortFoilhead
9361 \end_layout
9362
9363 \begin_layout Itemize
9364
9365 \family sans
9366 ShortRotatefoilhead
9367 \end_layout
9368
9369 \begin_layout Standard
9370 and the differences will be explained in the next section.
9371 \end_layout
9372
9373 \begin_layout Standard
9374 Since foils are often used in presenting ideas or new theorems and such
9375  
9376 \family sans
9377 Foil\SpecialChar TeX
9378
9379 \family default
9380  also provides a comprehensive box of goodies for presenting them:
9381 \end_layout
9382
9383 \begin_layout Standard
9384 \begin_inset Flex Multiple Columns
9385 status open
9386
9387 \begin_layout Itemize
9388
9389 \family sans
9390 Theorem
9391 \end_layout
9392
9393 \begin_layout Itemize
9394
9395 \family sans
9396 Lemma
9397 \end_layout
9398
9399 \begin_layout Itemize
9400
9401 \family sans
9402 Corollary
9403 \end_layout
9404
9405 \begin_layout Itemize
9406
9407 \family sans
9408 Proposition
9409 \end_layout
9410
9411 \begin_layout Itemize
9412
9413 \family sans
9414 Definition
9415 \end_layout
9416
9417 \begin_layout Itemize
9418
9419 \family sans
9420 Proof
9421 \end_layout
9422
9423 \begin_layout Itemize
9424
9425 \family sans
9426 Theorem*
9427 \end_layout
9428
9429 \begin_layout Itemize
9430
9431 \family sans
9432 Lemma*
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family sans
9438 Corollary*
9439 \end_layout
9440
9441 \begin_layout Itemize
9442
9443 \family sans
9444 Proposition*
9445 \end_layout
9446
9447 \begin_layout Itemize
9448
9449 \family sans
9450 Definition*
9451 \end_layout
9452
9453 \end_inset
9454
9455
9456 \end_layout
9457
9458 \begin_layout Standard
9459 The starred versions are unnumbered while the unstarred versions are numbered.
9460  There are also two list environments added by \SpecialChar LyX
9461  and these are:
9462 \end_layout
9463
9464 \begin_layout Itemize
9465
9466 \family sans
9467 TickList
9468 \end_layout
9469
9470 \begin_layout Itemize
9471
9472 \family sans
9473 CrossList
9474 \end_layout
9475
9476 \begin_layout Standard
9477
9478 \family sans
9479 Foil\SpecialChar TeX
9480
9481 \family default
9482  provides some powerful header and footer capabilities that are best set
9483  in the preamble although they may be set at any point in a document.
9484  If you want to change these settings in your document the best place to
9485  do so is at the very top of a foil, i.
9486 \begin_inset space \thinspace{}
9487 \end_inset
9488
9489 e.
9490 \emph on
9491
9492 \begin_inset space \space{}
9493 \end_inset
9494
9495
9496 \emph default
9497 straight after the foilhead.
9498 \end_layout
9499
9500 \begin_layout Standard
9501 For this purpose, the following command styles are provided [
9502 \shape smallcaps
9503 Martin Vermeer
9504 \shape default
9505 ]:
9506 \end_layout
9507
9508 \begin_layout Standard
9509 \begin_inset Flex Multiple Columns
9510 status open
9511
9512 \begin_layout Itemize
9513
9514 \family sans
9515 My
9516 \begin_inset space ~
9517 \end_inset
9518
9519 Logo
9520 \end_layout
9521
9522 \begin_layout Itemize
9523
9524 \family sans
9525 Restriction
9526 \end_layout
9527
9528 \begin_layout Itemize
9529
9530 \family sans
9531 Right
9532 \begin_inset space ~
9533 \end_inset
9534
9535 Footer
9536 \end_layout
9537
9538 \begin_layout Itemize
9539
9540 \family sans
9541 Right
9542 \begin_inset space ~
9543 \end_inset
9544
9545 Header
9546 \end_layout
9547
9548 \begin_layout Itemize
9549
9550 \family sans
9551 Left
9552 \begin_inset space ~
9553 \end_inset
9554
9555 Header
9556 \end_layout
9557
9558 \begin_deeper
9559 \begin_layout Plain Layout
9560 \begin_inset space ~
9561 \end_inset
9562
9563
9564 \end_layout
9565
9566 \end_deeper
9567 \end_inset
9568
9569
9570 \end_layout
9571
9572 \begin_layout Standard
9573 There are also a few commands provided by 
9574 \family sans
9575 Foil\SpecialChar TeX
9576
9577 \family default
9578  that aren't directly supported by \SpecialChar LyX
9579  but I'll tell you what they do and how
9580  to use them in section
9581 \begin_inset space ~
9582 \end_inset
9583
9584
9585 \begin_inset CommandInset ref
9586 LatexCommand ref
9587 reference "sec:unsuppfoils"
9588
9589 \end_inset
9590
9591 .
9592 \end_layout
9593
9594 \begin_layout Subsubsection
9595 Building a Set of Foils
9596 \end_layout
9597
9598 \begin_layout Standard
9599 This section will give a simple introduction to using the different environments
9600  to build a set of foils.
9601  If you want to see an example set of foils, take a look at 
9602 \change_deleted 564990737 1671643085
9603 the 
9604 \family typewriter
9605 Foils.lyx
9606 \family default
9607  file you find in \SpecialChar LyX
9608 's 
9609 \family typewriter
9610 examples
9611 \family default
9612  folder
9613 \change_inserted 564990737 1671643099
9614
9615 \family sans
9616 \lang british
9617 File\SpecialChar menuseparator
9618 Open Example
9619 \lang english
9620 \SpecialChar menuseparator
9621 Presentations\SpecialChar menuseparator
9622 Foils
9623 \change_unchanged
9624
9625 \family default
9626 .
9627 \end_layout
9628
9629 \begin_layout Paragraph
9630 Give It a Title Page
9631 \end_layout
9632
9633 \begin_layout Standard
9634 Unlike other classes that provide 
9635 \family sans
9636 Title
9637 \family default
9638
9639 \family sans
9640 Author
9641 \family default
9642
9643 \family sans
9644 Date
9645 \family default
9646  and 
9647 \family sans
9648 Abstract
9649 \family default
9650  environments, 
9651 \family sans
9652 foils
9653 \family default
9654  creates the title on a page of its own.
9655  If you leave out the 
9656 \family sans
9657 Date
9658 \family default
9659  environment \SpecialChar LaTeX
9660  will substitute the current date (every time you regenerate
9661  the output).
9662 \end_layout
9663
9664 \begin_layout Paragraph
9665 Start a New Foil
9666 \end_layout
9667
9668 \begin_layout Standard
9669 As I mentioned earlier, there are four ways of starting a new foil.
9670  For portrait foils you should use 
9671 \family sans
9672 Foilhead
9673 \family default
9674  or 
9675 \family sans
9676 ShortFoilhead.
9677
9678 \family default
9679  The difference between these two environments is the amount of space between
9680  the title of the foil (the foilhead) and the body of the foil.
9681 \end_layout
9682
9683 \begin_layout Standard
9684 Landscape foils are generated using the 
9685 \family sans
9686 Rotatefoilhead
9687 \family default
9688  and 
9689 \family sans
9690 ShortRotatefoilhead
9691 \family default
9692  environments.
9693  Again the only difference is the spacing between foilhead and body.
9694  Both of the short versions have 0.5
9695 \begin_inset space ~
9696 \end_inset
9697
9698 inches less separation between the foilhead and the body.
9699  
9700 \end_layout
9701
9702 \begin_layout Standard
9703 One problem with the support for landscape foils is the requirement that
9704  you have to use the 
9705 \family typewriter
9706 dvips
9707 \family default
9708  driver to generate the PostScript output otherwise the foils won't be rotated.
9709  It is possible to get landscape foils even if you haven't got the 
9710 \family typewriter
9711 dvips
9712 \family default
9713  driver provided you can feed your foils sideways through your printer ;-)
9714 \end_layout
9715
9716 \begin_layout Paragraph
9717 Theorems, Lemmas, Proofs and more
9718 \end_layout
9719
9720 \begin_layout Standard
9721 You can't have two of the same type of these environments directly following
9722  each other.
9723  If you use a normal paragraph break, , you will just be extending the previous
9724  environment as if you had merged the two environments together.
9725  Rather than that, you need to insert a so-called separator.
9726  Please refer to the section entitled 
9727 \emph on
9728 Separate Nestings
9729 \emph default
9730  in the 
9731 \emph on
9732 User's Guide
9733 \emph default
9734 .
9735 \end_layout
9736
9737 \begin_layout Paragraph
9738 Lists
9739 \end_layout
9740
9741 \begin_layout Standard
9742 You get all the commonly supported list styles found in other classes as
9743  well as two new ones.
9744  I'll only describe the new ones here.
9745  If you want to find out more about the other list environments check out
9746  the 
9747 \emph on
9748 User's Guide.
9749
9750 \emph default
9751  If you intend to use itemized lists you might also want to read about the
9752  
9753 \family sans
9754 Itemize
9755 \begin_inset space ~
9756 \end_inset
9757
9758 Bullet
9759 \begin_inset space ~
9760 \end_inset
9761
9762 Selection
9763 \family default
9764  dialog described above in section
9765 \begin_inset space ~
9766 \end_inset
9767
9768
9769 \change_inserted 564990737 1671355684
9770
9771 \begin_inset CommandInset ref
9772 LatexCommand ref
9773 reference "chap:bullets"
9774
9775 \end_inset
9776
9777
9778 \change_deleted 564990737 1671355684
9779
9780 \begin_inset CommandInset ref
9781 LatexCommand ref
9782 reference "sec:bullet"
9783
9784 \end_inset
9785
9786
9787 \change_unchanged
9788 .
9789 \end_layout
9790
9791 \begin_layout Standard
9792 The two new list styles, 
9793 \family sans
9794 TickList
9795 \family default
9796  and 
9797 \family sans
9798 CrossList
9799 \family default
9800 , are designed to make it easier for you to create lists of do's and don'ts
9801  or right and wrong by providing dedicated environments that use a tick
9802  or a cross as the label of the list.
9803  These lists are in fact dedicated variants of the 
9804 \family sans
9805 Itemize
9806 \family default
9807  environment.
9808  They do however require that you have the 
9809 \family typewriter
9810 psnfss
9811 \family default
9812  packages installed.
9813 \end_layout
9814
9815 \begin_layout Paragraph
9816 Figures and Tables
9817 \end_layout
9818
9819 \begin_layout Standard
9820
9821 \family sans
9822 Foil\SpecialChar TeX
9823
9824 \family default
9825  redefines the floating tables and figures so that they appear exactly where
9826  they are in the text rather than pushing them to the top of the page or
9827  to some user specified location.
9828  In fact if you change the float placement settings they are simply ignored.
9829 \end_layout
9830
9831 \begin_layout Paragraph
9832 Page Headers and Footers
9833 \begin_inset CommandInset label
9834 LatexCommand label
9835 name "sec:foilfoot"
9836
9837 \end_inset
9838
9839
9840 \end_layout
9841
9842 \begin_layout Standard
9843
9844 \family sans
9845 My
9846 \begin_inset space ~
9847 \end_inset
9848
9849 Logo
9850 \family default
9851  and 
9852 \family sans
9853 Restriction
9854 \family default
9855  are two commands used to control the left-footer text string.
9856  The first is meant to allow you to include a graphic logo on your foils
9857  and defaults to 
9858 \begin_inset Quotes eld
9859 \end_inset
9860
9861 -Typeset by 
9862 \family sans
9863 Foil\SpecialChar TeX
9864
9865 \family default
9866 -
9867 \begin_inset Quotes erd
9868 \end_inset
9869
9870 .
9871  While the second is meant to provide a classification for the audience,
9872  
9873 \emph on
9874 e.
9875 \begin_inset space \thinspace{}
9876 \end_inset
9877
9878 g.
9879 \emph default
9880
9881 \begin_inset space \space{}
9882 \end_inset
9883
9884 Confidential.
9885  It is empty by default.
9886 \end_layout
9887
9888 \begin_layout Standard
9889 The remaining page corners can be filled by 
9890 \family sans
9891 Right
9892 \begin_inset space ~
9893 \end_inset
9894
9895 Footer
9896 \family default
9897  (which defaults to page numbers), 
9898 \family sans
9899 Right
9900 \begin_inset space ~
9901 \end_inset
9902
9903 Header
9904 \family default
9905  (top right) and 
9906 \family sans
9907 Left
9908 \begin_inset space ~
9909 \end_inset
9910
9911 Header
9912 \family default
9913  (top left).
9914 \end_layout
9915
9916 \begin_layout Subsubsection
9917 Unsupported 
9918 \family sans
9919 Foil\SpecialChar TeX
9920
9921 \family default
9922  Goodies
9923 \begin_inset CommandInset label
9924 LatexCommand label
9925 name "sec:unsuppfoils"
9926
9927 \end_inset
9928
9929
9930 \end_layout
9931
9932 \begin_layout Standard
9933 All the commands mentioned below need to be set in a 
9934 \family sans
9935 \SpecialChar LaTeX
9936
9937 \family default
9938  environment or as 
9939 \family sans
9940 \SpecialChar TeX
9941
9942 \family default
9943  within another environment.
9944 \end_layout
9945
9946 \begin_layout Paragraph
9947 Lengths
9948 \end_layout
9949
9950 \begin_layout Standard
9951 All lengths are adjusted using the 
9952 \family typewriter
9953
9954 \backslash
9955 setlength{
9956 \family default
9957 \emph on
9958 lengthname
9959 \family typewriter
9960 \emph default
9961 }{
9962 \family default
9963 \emph on
9964 newlength
9965 \family typewriter
9966 \emph default
9967 }
9968 \family default
9969  command.
9970  Where 
9971 \emph on
9972 lengthname
9973 \emph default
9974  should be replaced by the name given to the length you want to change and
9975  
9976 \emph on
9977 newlength
9978 \emph default
9979  is the length value.
9980  All lengths should be specified in units of length such as inches (
9981 \family typewriter
9982 in
9983 \family default
9984 ), millimeters (
9985 \family typewriter
9986 mm
9987 \family default
9988 ) or points (
9989 \family typewriter
9990 pt
9991 \family default
9992 ) or relative to some document or font-based length such as 
9993 \family typewriter
9994
9995 \backslash
9996 textwidth
9997 \family default
9998 .
9999  
10000 \end_layout
10001
10002 \begin_layout Standard
10003 It's possible to change the spacing between a foilhead and the body of the
10004  foil by adjusting the length specified by 
10005 \family typewriter
10006
10007 \backslash
10008 foilheadskip
10009 \family default
10010 .
10011  For example, to make 
10012 \emph on
10013 all
10014 \emph default
10015  foilheads 0.5
10016 \begin_inset space \space{}
10017 \end_inset
10018
10019 in closer to their bodies put the following in the preamble: 
10020 \family typewriter
10021
10022 \backslash
10023 setlength{
10024 \backslash
10025 foilheadskip}{-0.5in}
10026 \end_layout
10027
10028 \begin_layout Standard
10029 The spacings around floats can be adjusted by setting these lengths:
10030 \end_layout
10031
10032 \begin_layout Labeling
10033 \labelwidthstring MMMMMMMMMMM
10034
10035 \family typewriter
10036
10037 \backslash
10038 abovefloatskip
10039 \family default
10040  Separation between the text and the top of the float
10041 \end_layout
10042
10043 \begin_layout Labeling
10044 \labelwidthstring MMMMMMMMMMM
10045
10046 \family typewriter
10047
10048 \backslash
10049 abovecaptionskip
10050 \family default
10051  Separation between the float and the caption
10052 \end_layout
10053
10054 \begin_layout Labeling
10055 \labelwidthstring MMMMMMMMMMM
10056
10057 \family typewriter
10058
10059 \backslash
10060 belowcaptionskip
10061 \family default
10062  Separation between the caption and the following text
10063 \end_layout
10064
10065 \begin_layout Labeling
10066 \labelwidthstring MMMMMMMMMMM
10067
10068 \family typewriter
10069
10070 \backslash
10071 captionwidth
10072 \family default
10073  You can make the captions narrower than the surrounding text by adjusting
10074  this length.
10075  Best done relative to 
10076 \family typewriter
10077
10078 \backslash
10079 textwidth
10080 \family default
10081 .
10082 \end_layout
10083
10084 \begin_layout Standard
10085 There are also several title page related lengths that you may find useful
10086  if you have a long title or several authors:
10087 \end_layout
10088
10089 \begin_layout Labeling
10090 \labelwidthstring MMMMMMMMMMM
10091
10092 \family typewriter
10093
10094 \backslash
10095 abovetitleskip
10096 \family default
10097  Separation from headers to 
10098 \family sans
10099 Title
10100 \end_layout
10101
10102 \begin_layout Labeling
10103 \labelwidthstring MMMMMMMMMMM
10104
10105 \family typewriter
10106
10107 \backslash
10108 titleauthorskip
10109 \family default
10110  between 
10111 \family sans
10112 Title
10113 \family default
10114  and 
10115 \family sans
10116 Author
10117 \family default
10118  environments
10119 \end_layout
10120
10121 \begin_layout Labeling
10122 \labelwidthstring MMMMMMMMMMM
10123
10124 \family typewriter
10125
10126 \backslash
10127 authorauthorskip
10128 \family default
10129  between multiple 
10130 \family sans
10131 Author
10132 \family default
10133  lines
10134 \end_layout
10135
10136 \begin_layout Labeling
10137 \labelwidthstring MMMMMMMMMMM
10138
10139 \family typewriter
10140
10141 \backslash
10142 authordateskip
10143 \family default
10144  between the 
10145 \family sans
10146 Author
10147 \family default
10148  and the 
10149 \family sans
10150 Date
10151 \end_layout
10152
10153 \begin_layout Labeling
10154 \labelwidthstring MMMMMMMMMMM
10155
10156 \family typewriter
10157
10158 \backslash
10159 dateabstractskip
10160 \family default
10161  between the 
10162 \family sans
10163 Date
10164 \family default
10165  and the 
10166 \family sans
10167 Abstract
10168 \end_layout
10169
10170 \begin_layout Standard
10171 The last length related command affects all the list environments.
10172  If you place 
10173 \family typewriter
10174
10175 \backslash
10176 zerolistvertdimens
10177 \family default
10178  
10179 \emph on
10180 inside
10181 \emph default
10182  a list environment then all the vertical spacing between the list items
10183  is removed.
10184  Note that this is a command not a length so it doesn't require 
10185 \family typewriter
10186
10187 \backslash
10188 setlength
10189 \family default
10190  like the stuff mentioned above.
10191 \end_layout
10192
10193 \begin_layout Paragraph
10194 Headers and Footers
10195 \end_layout
10196
10197 \begin_layout Standard
10198 The 
10199 \family typewriter
10200
10201 \backslash
10202 LogoOn
10203 \family default
10204  and 
10205 \family typewriter
10206
10207 \backslash
10208 LogoOff
10209 \family default
10210  commands control whether the logo in the 
10211 \family sans
10212 MyLogo
10213 \family default
10214  definition appear on a given page.
10215  If you put 
10216 \family typewriter
10217
10218 \backslash
10219 LogoOff
10220 \family default
10221  in the preamble then none of the foils will have the logo on them.
10222  If you don't want the logo on a particular page place the 
10223 \family typewriter
10224
10225 \backslash
10226 LogoOff
10227 \family default
10228  directly after the foilhead of that page and the 
10229 \family typewriter
10230
10231 \backslash
10232 LogoOn
10233 \family default
10234  directly after the next foilhead.
10235 \end_layout
10236
10237 \begin_layout Standard
10238 If you decide to use the 
10239 \family sans
10240 fancy
10241 \family default
10242  page style setting in the 
10243 \family sans
10244 Document
10245 \begin_inset space ~
10246 \end_inset
10247
10248 Layout
10249 \family default
10250  dialog you should probably add 
10251 \family typewriter
10252
10253 \backslash
10254 let
10255 \backslash
10256 headwidth
10257 \backslash
10258 textwidth
10259 \family default
10260  to your preamble so headers and footers on landscape pages are correctly
10261  placed when rotated.
10262  This is due to some clashes between the page layouts provided by the 
10263 \family sans
10264 fancyheadings
10265 \family default
10266  package and the 
10267 \family sans
10268 foils
10269 \family default
10270  class.
10271 \end_layout
10272
10273 \begin_layout Subsection
10274
10275 \change_inserted 564990737 1671459032
10276
10277 \lang american
10278 Powerdot
10279 \end_layout
10280
10281 \begin_layout Standard
10282
10283 \change_inserted 564990737 1671643165
10284
10285 \lang american
10286 The document class 
10287 \family sans
10288 presentation
10289 \begin_inset space \thinspace{}
10290 \end_inset
10291
10292 (powerdot)
10293 \family default
10294  uses the 
10295 \family typewriter
10296 powerdot.cls
10297 \family default
10298  document class for creating presentations.
10299  
10300 \family sans
10301 \lang british
10302 File\SpecialChar menuseparator
10303 Open Example\SpecialChar menuseparator
10304 Presentations\SpecialChar menuseparator
10305 Powerdot
10306 \family default
10307 \lang american
10308  offers guidance on its use.
10309  The documentation is available from 
10310 \begin_inset CommandInset href
10311 LatexCommand href
10312 name "CTAN"
10313 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10314 literal "false"
10315
10316 \end_inset
10317
10318 .
10319 \end_layout
10320
10321 \begin_layout Subsection
10322
10323 \change_inserted 564990737 1671459032
10324
10325 \lang american
10326 \begin_inset CommandInset label
10327 LatexCommand label
10328 name "subsec:Seminar"
10329
10330 \end_inset
10331
10332
10333 \family sans
10334 Seminar
10335 \end_layout
10336
10337 \begin_layout Standard
10338
10339 \change_inserted 564990737 1671643194
10340
10341 \lang american
10342 The document class 
10343 \family sans
10344 presentations
10345 \begin_inset space \thinspace{}
10346 \end_inset
10347
10348 (seminar)
10349 \family default
10350  uses the 
10351 \family typewriter
10352 seminar.cls
10353 \family default
10354  document class for creating presentations.
10355  
10356 \family sans
10357 \lang british
10358 File\SpecialChar menuseparator
10359 Open Example\SpecialChar menuseparator
10360 Presentations\SpecialChar menuseparator
10361 Seminar
10362 \family default
10363 \lang american
10364  offers guidance on its use.
10365  The documentation is available from 
10366 \begin_inset CommandInset href
10367 LatexCommand href
10368 name "CTAN"
10369 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10370 literal "false"
10371
10372 \end_inset
10373
10374 .
10375 \end_layout
10376
10377 \begin_layout Subsection
10378 Slides [aka 
10379 \noun on
10380 Sli\SpecialChar TeX
10381
10382 \noun default
10383 ]
10384 \begin_inset CommandInset label
10385 LatexCommand label
10386 name "sec:slitex"
10387
10388 \end_inset
10389
10390
10391 \end_layout
10392
10393 \begin_layout Standard
10394 by 
10395 \noun on
10396 John Weiss
10397 \noun default
10398  
10399 \end_layout
10400
10401 \begin_layout Subsubsection
10402 Introduction
10403 \end_layout
10404
10405 \begin_layout Standard
10406 This section describes how to use \SpecialChar LyX
10407  to make slides for overhead projectors.
10408  There are two document classes that can do this: the default slides class
10409  and the 
10410 \family sans
10411 Foil\SpecialChar TeX
10412
10413 \family default
10414  slides class.
10415  This section documents the former.
10416 \end_layout
10417
10418 \begin_layout Standard
10419 I'm going to say this again, nice and clear, so that there's no misunderstanding
10420 :
10421 \end_layout
10422
10423 \begin_layout Standard
10424 \begin_inset VSpace bigskip
10425 \end_inset
10426
10427
10428 \end_layout
10429
10430 \begin_layout Standard
10431 \align center
10432
10433 \size large
10434 This section documents the class 
10435 \begin_inset Quotes eld
10436 \end_inset
10437
10438
10439 \family sans
10440 slides (default)
10441 \family default
10442
10443 \begin_inset Quotes erd
10444 \end_inset
10445
10446  
10447 \emph on
10448 only.
10449 \end_layout
10450
10451 \begin_layout Standard
10452 \begin_inset VSpace bigskip
10453 \end_inset
10454
10455
10456 \end_layout
10457
10458 \begin_layout Standard
10459 If you're looking for the documentation for 
10460 \begin_inset Quotes eld
10461 \end_inset
10462
10463
10464 \family sans
10465 slides (Foil\SpecialChar TeX
10466 )
10467 \family default
10468
10469 \begin_inset Quotes erd
10470 \end_inset
10471
10472 , check out section
10473 \begin_inset space ~
10474 \end_inset
10475
10476
10477 \begin_inset CommandInset ref
10478 LatexCommand ref
10479 reference "sec:foiltex"
10480
10481 \end_inset
10482
10483 .
10484  The 
10485 \family sans
10486 foils
10487 \family default
10488  class [
10489 \begin_inset Quotes eld
10490 \end_inset
10491
10492
10493 \family sans
10494 slides (Foil\SpecialChar TeX
10495 )
10496 \family default
10497
10498 \begin_inset Quotes erd
10499 \end_inset
10500
10501 ] is actually somewhat better than the default 
10502 \family sans
10503 slides
10504 \family default
10505  class,
10506 \begin_inset Foot
10507 status collapsed
10508
10509 \begin_layout Plain Layout
10510 \SpecialChar ldots
10511 or so I've been told repeatedly by its advocates.
10512  Having never used it, I have no idea if this claim is true or not.
10513 \end_layout
10514
10515 \end_inset
10516
10517  which this section documents.
10518 \end_layout
10519
10520 \begin_layout Standard
10521 This class is the \SpecialChar LaTeX2e
10522  improvement of the old 
10523 \noun on
10524 Sli\SpecialChar TeX
10525
10526 \noun default
10527  package.
10528  Every \SpecialChar LaTeX2e
10529  distribution includes this class [which I'll just refer to as 
10530 \begin_inset Quotes eld
10531 \end_inset
10532
10533
10534 \family sans
10535 slides
10536 \family default
10537
10538 \begin_inset Quotes erd
10539 \end_inset
10540
10541  from now on], so you're bound to have it.
10542  As I noted earlier, there are other classes, such as 
10543 \family sans
10544 foils
10545 \family default
10546 , which also produce slides for overhead projectors and do a better job
10547  at it.
10548  However, there are some things which 
10549 \family sans
10550 slides
10551 \family default
10552  can do which the others can't, such as generate overlays.
10553  Read on to learn more!
10554 \end_layout
10555
10556 \begin_layout Subsubsection
10557 Getting Started
10558 \begin_inset CommandInset label
10559 LatexCommand label
10560 name "sec:slidesetup"
10561
10562 \end_inset
10563
10564
10565 \end_layout
10566
10567 \begin_layout Standard
10568 Obviously, to use this document class, you need to select 
10569 \begin_inset Quotes eld
10570 \end_inset
10571
10572
10573 \family sans
10574 slides (default)
10575 \family default
10576
10577 \begin_inset Quotes erd
10578 \end_inset
10579
10580  from the class list in the 
10581 \family sans
10582 Document\SpecialChar menuseparator
10583 Settings
10584 \family default
10585  dialog.
10586  There are some other special things you should know about this class:
10587 \end_layout
10588
10589 \begin_layout Itemize
10590 Don't bother changing the options 
10591 \family sans
10592 Sides and Columns
10593 \family default
10594 .
10595  They're not supported by the 
10596 \family sans
10597 slides
10598 \family default
10599  class, anyways.
10600 \end_layout
10601
10602 \begin_layout Itemize
10603 The option 
10604 \family sans
10605 Page
10606 \begin_inset space ~
10607 \end_inset
10608
10609 style
10610 \family default
10611  behaves a bit differently for this class.
10612  The possible choices and what they do are as follows:
10613 \end_layout
10614
10615 \begin_deeper
10616 \begin_layout Description
10617
10618 \family sans
10619 plain
10620 \family default
10621  The final output contains page numbers in the lower right corner.
10622 \end_layout
10623
10624 \begin_layout Description
10625
10626 \family sans
10627 headings
10628 \family default
10629  Like 
10630 \family sans
10631 plain
10632 \family default
10633 , but also prints out any time markers you've put in.
10634  This is the default.
10635 \end_layout
10636
10637 \begin_layout Description
10638
10639 \family sans
10640 empty
10641 \family default
10642  The final output contains no page numbers, time markers, or alignment markers.
10643 \end_layout
10644
10645 \end_deeper
10646 \begin_layout Itemize
10647 The 
10648 \family sans
10649 slides
10650 \family default
10651  class has an extra option: 
10652 \family typewriter
10653 clock
10654 \family default
10655 .
10656  To use it, put 
10657 \begin_inset Quotes eld
10658 \end_inset
10659
10660
10661 \family typewriter
10662 clock
10663 \family default
10664
10665 \begin_inset Quotes erd
10666 \end_inset
10667
10668  in the extra class options.
10669 \end_layout
10670
10671 \begin_deeper
10672 \begin_layout Standard
10673 Using this options allows you to add time markers to 
10674 \family sans
10675 Note
10676 \family default
10677 s.
10678  See section
10679 \begin_inset space ~
10680 \end_inset
10681
10682
10683 \begin_inset CommandInset ref
10684 LatexCommand ref
10685 reference "sec:slideNote"
10686
10687 \end_inset
10688
10689  for more details.
10690 \end_layout
10691
10692 \end_deeper
10693 \begin_layout Standard
10694 You can also use the template file
10695 \change_deleted 564990737 1671617694
10696  
10697 \begin_inset Quotes eld
10698 \end_inset
10699
10700
10701 \family typewriter
10702 slides.lyx
10703 \family default
10704
10705 \begin_inset Quotes erd
10706 \end_inset
10707
10708
10709 \change_unchanged
10710  to automatically set up a document to use the 
10711 \family sans
10712 slides
10713 \family default
10714  class 
10715 \change_deleted 564990737 1671617699
10716 [
10717 \change_unchanged
10718 using 
10719 \family sans
10720 File\SpecialChar menuseparator
10721 New
10722 \begin_inset space ~
10723 \end_inset
10724
10725 from
10726 \begin_inset space ~
10727 \end_inset
10728
10729 Template
10730 \change_inserted 564990737 1671617723
10731 \SpecialChar menuseparator
10732 Presentations\SpecialChar menuseparator
10733 Slides
10734 \change_unchanged
10735
10736 \family default
10737  to open your new document
10738 \change_deleted 564990737 1671617728
10739 ]
10740 \change_unchanged
10741 .
10742  The template file also contains some examples of the special paragraph
10743  environments used by this class.
10744  I'll describe those next.
10745 \end_layout
10746
10747 \begin_layout Subsubsection
10748 Paragraph Environments
10749 \end_layout
10750
10751 \begin_layout Paragraph
10752 Supported Environments
10753 \end_layout
10754
10755 \begin_layout Standard
10756 The first thing you'll notice when you start up a new 
10757 \family sans
10758 slides
10759 \family default
10760  document is the font size and type: it's the equivalent of the size 
10761 \begin_inset Quotes eld
10762 \end_inset
10763
10764
10765 \family sans
10766 Largest
10767 \family default
10768
10769 \begin_inset Quotes erd
10770 \end_inset
10771
10772  in the 
10773 \family sans
10774 Sans
10775 \begin_inset space ~
10776 \end_inset
10777
10778 Serif
10779 \family default
10780  font.
10781  This is also what's used in the output.
10782  Think of this as a 
10783 \begin_inset Quotes eld
10784 \end_inset
10785
10786 visual cue
10787 \begin_inset Quotes erd
10788 \end_inset
10789
10790  to remind you that this is a slide.
10791  Your final slides will use a larger font; ergo, you'll have less space.
10792  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10793 \end_layout
10794
10795 \begin_layout Standard
10796 The next thing that becomes obvious is the changes to the paragraph environment
10797  pull-down box [at the far-left end of the toolbar].
10798  Most of the paragraph environments you're used to seeing are missing.
10799  There are also five new ones.
10800  That's because the 
10801 \family sans
10802 slides
10803 \family default
10804  class itself only supports certain paragraph environments:
10805 \end_layout
10806
10807 \begin_layout Itemize
10808
10809 \family sans
10810 Standard
10811 \end_layout
10812
10813 \begin_layout Itemize
10814
10815 \family sans
10816 Itemize
10817 \end_layout
10818
10819 \begin_layout Itemize
10820
10821 \family sans
10822 Enumerate
10823 \end_layout
10824
10825 \begin_layout Itemize
10826
10827 \family sans
10828 Description
10829 \end_layout
10830
10831 \begin_layout Itemize
10832
10833 \family sans
10834 List
10835 \end_layout
10836
10837 \begin_layout Itemize
10838
10839 \family sans
10840 Quotation
10841 \end_layout
10842
10843 \begin_layout Itemize
10844
10845 \family sans
10846 Quote
10847 \end_layout
10848
10849 \begin_layout Itemize
10850
10851 \family sans
10852 Verse
10853 \end_layout
10854
10855 \begin_layout Itemize
10856
10857 \family sans
10858 Caption
10859 \end_layout
10860
10861 \begin_layout Itemize
10862
10863 \family sans
10864 \SpecialChar LyX
10865 -Code
10866 \end_layout
10867
10868 \begin_layout Standard
10869 All of the other standard environments, including the section-heading environmen
10870 ts, aren't used in the 
10871 \family sans
10872 slides
10873 \family default
10874  class.
10875 \end_layout
10876
10877 \begin_layout Standard
10878 On the other hand, you'll notice the following new environments:
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family sans
10884 Slide
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 Overlay
10891 \end_layout
10892
10893 \begin_layout Itemize
10894
10895 \family sans
10896 Note
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 InvisibleText
10903 \end_layout
10904
10905 \begin_layout Itemize
10906
10907 \family sans
10908 VisibleText
10909 \end_layout
10910
10911 \begin_layout Standard
10912 These five are kind of quirky, due to a 
10913 \begin_inset Quotes eld
10914 \end_inset
10915
10916 feature
10917 \begin_inset Quotes erd
10918 \end_inset
10919
10920  in \SpecialChar LyX
10921 .
10922  You see, \SpecialChar LyX
10923  doesn't permit you to nest any other paragraph environment into
10924  an empty environment.
10925  Now, that's fine and dandy, but it means that you wouldn't be able to start
10926  a slide with anything except plain text.
10927  To deal with this, I've performed a little 
10928 \begin_inset Quotes eld
10929 \end_inset
10930
10931 \SpecialChar LaTeX
10932  magic.
10933 \begin_inset Quotes erd
10934 \end_inset
10935
10936  
10937 \end_layout
10938
10939 \begin_layout Paragraph
10940 Quirks of the New Environments
10941 \begin_inset CommandInset label
10942 LatexCommand label
10943 name "sec:slideQuirk"
10944
10945 \end_inset
10946
10947
10948 \end_layout
10949
10950 \begin_layout Standard
10951 All five of the new paragraph environments are somewhat quirky due to inherent
10952  limitiations in the current version of \SpecialChar LyX
10953 .
10954  As I just mentioned, \SpecialChar LyX
10955  forbids environments that begin with another environment.
10956  To get around this, the 
10957 \family sans
10958 Slide
10959 \family default
10960  environment isn't a paragraph environment as described in the 
10961 \emph on
10962 User's Guide
10963 \emph default
10964 .
10965  
10966 \end_layout
10967
10968 \begin_layout Standard
10969 You should consider 
10970 \family sans
10971 Slide
10972 \family default
10973
10974 \family sans
10975 Overlay
10976 \family default
10977 , and 
10978 \family sans
10979 Note
10980 \family default
10981  to be 
10982 \begin_inset Quotes eld
10983 \end_inset
10984
10985 pseudo-environments.
10986 \begin_inset Quotes erd
10987 \end_inset
10988
10989  They look like a section heading or a 
10990 \begin_inset Quotes eld
10991 \end_inset
10992
10993
10994 \family sans
10995 Caption
10996 \family default
10997 ,
10998 \begin_inset Quotes erd
10999 \end_inset
11000
11001  but really begin a [and, if necessary, end the previous] paragraph environment.
11002  Likewise, treat 
11003 \family sans
11004 InvisibleText
11005 \family default
11006  and 
11007 \family sans
11008 VisibleText
11009 \family default
11010  as 
11011 \begin_inset Quotes eld
11012 \end_inset
11013
11014 pseudo-commands.
11015 \begin_inset Quotes erd
11016 \end_inset
11017
11018  These two perform some action.
11019 \end_layout
11020
11021 \begin_layout Standard
11022 A common feature of all five environments, 
11023 \family sans
11024 Slide
11025 \family default
11026
11027 \family sans
11028 Overlay
11029 \family default
11030
11031 \family sans
11032 Note
11033 \family default
11034
11035 \family sans
11036 InvisibleText
11037 \family default
11038  and 
11039 \family sans
11040 VisibleText
11041 \family default
11042 , is a rather long-ish label.
11043  The text following this label — ordinarily the contents of the paragraph
11044  environment — is utterly irrelevant for 
11045 \family sans
11046 Slide
11047 \family default
11048
11049 \family sans
11050 Overlay
11051 \family default
11052
11053 \family sans
11054 Note
11055 \family default
11056
11057 \family sans
11058 InvisibleText
11059 \family default
11060  and 
11061 \family sans
11062 VisibleText
11063 \family default
11064 .
11065  \SpecialChar LyX
11066  completely ignores it.
11067  In fact, you can leave these five environments completely empty.
11068  
11069 \end_layout
11070
11071 \begin_layout Standard
11072 While you don't 
11073 \emph on
11074 have
11075 \emph default
11076  to put any text after the rather long-ish label, you might want to.
11077  This could be a short description of the contents of the 
11078 \family sans
11079 Slide
11080 \family default
11081 , for example.
11082  In that case, enter your descriptive comment and hit 
11083 \family sans
11084 Return
11085 \family default
11086  as you normally would.
11087 \end_layout
11088
11089 \begin_layout Standard
11090 If, on the other hand, you don't want to enter any descriptive text, you'll
11091  hit another \SpecialChar LyX
11092  quirk.
11093  \SpecialChar LyX
11094 , like nature, abhors a vacuum, and will not let you start a new paragraph
11095  environment until you put something in the old one.
11096  So, do this:
11097 \end_layout
11098
11099 \begin_layout Itemize
11100 Start entering the text that will 
11101 \emph on
11102 follow
11103 \emph default
11104  the new 
11105 \family sans
11106 Slide
11107 \family default
11108
11109 \family sans
11110 Overlay
11111 \family default
11112
11113 \family sans
11114 Note
11115 \family default
11116
11117 \family sans
11118 InvisibleText
11119 \family default
11120  or 
11121 \family sans
11122 VisibleText
11123 \family default
11124 .
11125  
11126 \end_layout
11127
11128 \begin_layout Itemize
11129 Now move to the beginning of that paragraph.
11130  
11131 \end_layout
11132
11133 \begin_layout Itemize
11134 Next, hit 
11135 \family sans
11136 Return
11137 \family default
11138 .
11139  
11140 \end_layout
11141
11142 \begin_layout Itemize
11143 Finally, change this new, empty paragraph to a 
11144 \family sans
11145 Slide
11146 \family default
11147
11148 \family sans
11149 Overlay
11150 \family default
11151
11152 \family sans
11153 Note
11154 \family default
11155
11156 \family sans
11157 InvisibleText
11158 \family default
11159  or 
11160 \family sans
11161 VisibleText
11162 \family default
11163 .
11164  
11165 \end_layout
11166
11167 \begin_layout Standard
11168 Some future version of \SpecialChar LyX
11169  will, hopefully, resolve this quirkiness\SpecialChar ldots
11170
11171 \end_layout
11172
11173 \begin_layout Subsubsection
11174 Making a Presentation with 
11175 \family sans
11176 Slide
11177 \family default
11178
11179 \family sans
11180 Overlay
11181 \family default
11182  and 
11183 \family sans
11184 Note
11185 \end_layout
11186
11187 \begin_layout Paragraph
11188 Using the 
11189 \family sans
11190 Slide
11191 \family default
11192  Environment
11193 \end_layout
11194
11195 \begin_layout Standard
11196 If you're expecting this section to teach you how to actually make a presentatio
11197 n, you'll be sorely disappointed.
11198  Naturally, I'll describe all of the ways the 
11199 \family sans
11200 slides
11201 \family default
11202  class can assist you in preparing the materials for a presentation.
11203  Filling in the contents, however, is up to you.
11204  [Then again, that 
11205 \emph on
11206 is
11207 \emph default
11208  the \SpecialChar LyX
11209  philosophy.]
11210 \end_layout
11211
11212 \begin_layout Standard
11213 Choosing the 
11214 \family sans
11215 Slide
11216 \family default
11217  environment [in the manner described in section
11218 \begin_inset space ~
11219 \end_inset
11220
11221
11222 \begin_inset CommandInset ref
11223 LatexCommand ref
11224 reference "sec:slideQuirk"
11225
11226 \end_inset
11227
11228 ] tells \SpecialChar LyX
11229  to begin a new slide [duh].
11230  The label for this environment/
11231 \begin_inset Quotes erd
11232 \end_inset
11233
11234 pseudo-command
11235 \begin_inset Quotes erd
11236 \end_inset
11237
11238  is an 
11239 \begin_inset Quotes eld
11240 \end_inset
11241
11242 ASCII line,
11243 \begin_inset Quotes erd
11244 \end_inset
11245
11246  in cool blue, followed by the label, 
11247 \begin_inset Quotes eld
11248 \end_inset
11249
11250 NewSlide:
11251 \begin_inset Quotes erd
11252 \end_inset
11253
11254 .
11255  Any text or paragraph environments that follow this one go on the new slide.
11256  It's that simple.
11257 \end_layout
11258
11259 \begin_layout Standard
11260 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11261
11262  (this can be specified in the 
11263 \family sans
11264 Paragraph Layout
11265 \family default
11266  dialog).
11267  In fact, you'll want to, once you finish entering the contents of one slide.
11268  If you've entered more text than can physically fit on a slide, the extra
11269  overflows onto a new slide.
11270  I don't recommend doing this, however, since the overflow slide won't have
11271  any page number on it.
11272  Furthermore, it may interfere with any 
11273 \family sans
11274 Overlay
11275 \family default
11276  you've made to accompany the oversized 
11277 \family sans
11278 Slide
11279 \family default
11280 .
11281 \end_layout
11282
11283 \begin_layout Standard
11284 The 
11285 \family sans
11286 Overlay
11287 \family default
11288  and 
11289 \family sans
11290 Note
11291 \family default
11292  environments work the same way as the 
11293 \family sans
11294 Slide
11295 \family default
11296  environment.
11297  They both create an 
11298 \begin_inset Quotes eld
11299 \end_inset
11300
11301 ASCII line
11302 \begin_inset Quotes erd
11303 \end_inset
11304
11305  followed by a label [
11306 \begin_inset Quotes eld
11307 \end_inset
11308
11309 NewOverlay:
11310 \begin_inset Quotes erd
11311 \end_inset
11312
11313  and 
11314 \begin_inset Quotes eld
11315 \end_inset
11316
11317 NewNote:
11318 \begin_inset Quotes erd
11319 \end_inset
11320
11321 , respectively].
11322  The color is a stunning magenta instead of blue, and the 
11323 \begin_inset Quotes eld
11324 \end_inset
11325
11326 ASCII line
11327 \begin_inset Quotes erd
11328 \end_inset
11329
11330  will look different, in style and in length.
11331  The label fonts of all three also differ from one another.
11332 \end_layout
11333
11334 \begin_layout Standard
11335 As with a 
11336 \family sans
11337 Slide
11338 \family default
11339 , if the contents of a 
11340 \family sans
11341 Note
11342 \family default
11343  or 
11344 \family sans
11345 Overlay
11346 \family default
11347  exceed the physical size of a slide or sheet of paper, the extra will overflow
11348  onto a new sheet.
11349  Again, you should avoid this.
11350  It defeats the whole purpose of 
11351 \family sans
11352 Note
11353 \family default
11354 s and 
11355 \family sans
11356 Overlay
11357 \family default
11358 s.
11359 \end_layout
11360
11361 \begin_layout Paragraph
11362 Using 
11363 \family sans
11364 Overlay
11365 \family default
11366  with 
11367 \family sans
11368 Slide
11369 \end_layout
11370
11371 \begin_layout Standard
11372 The idea behind an 
11373 \family sans
11374 Overlay
11375 \family default
11376  is a slide that sits atop another slide.
11377  Perhaps you wish to discuss a figure on the main 
11378 \family sans
11379 Slide
11380 \family default
11381  before displaying the text associated with it.
11382  One way to accomplish this is tape a flap of dark paper over the part of
11383  the 
11384 \family sans
11385 Slide
11386 \family default
11387  you want to display later.
11388  This method fails, however, if you wish to overlap one graph with another,
11389  for example.
11390  You would then have to fumble while speaking to align the two separate,
11391  overlapping 
11392 \family sans
11393 Slide
11394 \family default
11395 s to align the two graphs.
11396  The use of an 
11397 \family sans
11398 Overlay
11399 \family default
11400  environment in both cases makes life much easier.
11401 \end_layout
11402
11403 \begin_layout Standard
11404 Each 
11405 \family sans
11406 Overlay
11407 \family default
11408  receives the page number of its 
11409 \begin_inset Quotes eld
11410 \end_inset
11411
11412 parent
11413 \begin_inset Quotes erd
11414 \end_inset
11415
11416  
11417 \family sans
11418 Slide
11419 \family default
11420 , appended by 
11421 \begin_inset Quotes eld
11422 \end_inset
11423
11424
11425 \family typewriter
11426 -a
11427 \family default
11428
11429 \begin_inset Quotes erd
11430 \end_inset
11431
11432 .
11433 \begin_inset Foot
11434 status collapsed
11435
11436 \begin_layout Plain Layout
11437 Presumably, mutliple 
11438 \family sans
11439 Overlay
11440 \family default
11441 s would have 
11442 \begin_inset Quotes eld
11443 \end_inset
11444
11445
11446 \family typewriter
11447 -a
11448 \family default
11449
11450 \begin_inset Quotes erd
11451 \end_inset
11452
11453
11454 \begin_inset Quotes eld
11455 \end_inset
11456
11457
11458 \family typewriter
11459 -b
11460 \family default
11461
11462 \begin_inset Quotes erd
11463 \end_inset
11464
11465
11466 \begin_inset Quotes eld
11467 \end_inset
11468
11469
11470 \family typewriter
11471 -c
11472 \family default
11473
11474 \begin_inset Quotes erd
11475 \end_inset
11476
11477 , etc.
11478 \begin_inset space ~
11479 \end_inset
11480
11481 appended to the page number of the parent 
11482 \family sans
11483 Slide
11484 \family default
11485 .
11486  
11487 \end_layout
11488
11489 \end_inset
11490
11491  Clearly, you want the contents of both the 
11492 \family sans
11493 Slide
11494 \family default
11495  and the 
11496 \family sans
11497 Overlay
11498 \family default
11499  to each fit on a single physical slide! You should probably consider an
11500  
11501 \family sans
11502 Overlay
11503 \family default
11504  as 
11505 \begin_inset Quotes eld
11506 \end_inset
11507
11508 part of
11509 \begin_inset Quotes erd
11510 \end_inset
11511
11512  a 
11513 \family sans
11514 Slide
11515 \family default
11516 .
11517  Indeed, the \SpecialChar LyX
11518  
11519 \family sans
11520 slides
11521 \family default
11522  class provides a visual cue for this: the label at the start of an 
11523 \family sans
11524 Overlay
11525 \family default
11526  is shorter than that at the start of a 
11527 \family sans
11528 Slide
11529 \family default
11530 .
11531  Lastly, when you generate printable output, you'll find alignment markers
11532  in all four corners of both the 
11533 \family sans
11534 Overlay
11535 \family default
11536  page and its parent 
11537 \family sans
11538 Slide
11539 \family default
11540 .
11541  These will assist you in lining up the two physical slides.
11542 \end_layout
11543
11544 \begin_layout Standard
11545 The major problem in overlaying two slides is aligning the contents of the
11546  two transparencies.
11547  How much space should you leave for that graph on the second slide? Worse
11548  still, what if you want a graph and a sentence on second slide, but there
11549  is text on the main transparency that goes in between them? You could try
11550  and insert vertical space of the right size.
11551  The better way is to use 
11552 \family sans
11553 InvisibleText
11554 \family default
11555  and 
11556 \family sans
11557 VisibleText
11558 \family default
11559 .
11560 \end_layout
11561
11562 \begin_layout Standard
11563 As their names imply, 
11564 \family sans
11565 InvisibleText
11566 \family default
11567  and 
11568 \family sans
11569 VisibleText
11570 \family default
11571  are two command-like paragraph environments that make all subsequent text
11572  invisible and visible, respectively.
11573  Note from section
11574 \begin_inset space ~
11575 \end_inset
11576
11577
11578 \begin_inset CommandInset ref
11579 LatexCommand ref
11580 reference "sec:slideQuirk"
11581
11582 \end_inset
11583
11584  that you don't place anything 
11585 \emph on
11586 into
11587 \emph default
11588  these two environments, however.
11589  When you create an 
11590 \family sans
11591 InvisibleText
11592 \family default
11593 , it inserts a centered, sky-blue label into the page reading 
11594 \begin_inset Quotes eld
11595 \end_inset
11596
11597 <Invisible Text Follows>
11598 \begin_inset Quotes erd
11599 \end_inset
11600
11601 .
11602  For paragraphs following this label, the parts of the 
11603 \family sans
11604 Slide
11605 \family default
11606  [or 
11607 \family sans
11608 Overlay
11609 \family default
11610 ; it doesn't matter which] where they would be contain instead blank space.
11611  
11612 \end_layout
11613
11614 \begin_layout Standard
11615 For 
11616 \family sans
11617 VisibleText
11618 \family default
11619 , the corresponding centered label is 
11620 \begin_inset Quotes eld
11621 \end_inset
11622
11623 <Visible Text Follows>
11624 \begin_inset Quotes erd
11625 \end_inset
11626
11627  in blazing green.
11628  Paragraphs following this label behave normally.
11629  Note that the beginning of a new 
11630 \family sans
11631 Slide
11632 \family default
11633
11634 \family sans
11635 Overlay
11636 \family default
11637 , or 
11638 \family sans
11639 Note
11640 \family default
11641  automatically shuts off an 
11642 \family sans
11643 InvisibleText
11644 \family default
11645 .
11646  It's therefore not necessary to use 
11647 \family sans
11648 VisibleText
11649 \family default
11650  at the end of a 
11651 \family sans
11652 Slide
11653 \family default
11654 .
11655 \end_layout
11656
11657 \begin_layout Standard
11658 By now, it should be obvious how to create overlay transparencies using
11659  the proper combination of 
11660 \family sans
11661 InvisibleText
11662 \family default
11663  and 
11664 \family sans
11665 VisibleText
11666 \family default
11667  on a 
11668 \family sans
11669 Slide
11670 \family default
11671  and 
11672 \family sans
11673 Overlay
11674 \family default
11675 :
11676 \end_layout
11677
11678 \begin_layout Enumerate
11679 Create a 
11680 \family sans
11681 Slide
11682 \family default
11683 , including everything that will appear on it, whether on the main slide
11684  or on the 
11685 \family sans
11686 Overlay
11687 \family default
11688 .
11689 \end_layout
11690
11691 \begin_layout Enumerate
11692 Before each figure or paragraph that will appear only on the 
11693 \family sans
11694 Overlay
11695 \family default
11696 , insert an 
11697 \family sans
11698 InvisibleText
11699 \family default
11700  environment.
11701  If necessary, insert a 
11702 \family sans
11703 VisibleText
11704 \family default
11705  environment after the 
11706 \family sans
11707 Overlay
11708 \family default
11709 -only text.
11710 \end_layout
11711
11712 \begin_layout Enumerate
11713 Start an 
11714 \family sans
11715 Overlay
11716 \family default
11717  immediately following the 
11718 \family sans
11719 Slide
11720 \family default
11721 .
11722 \end_layout
11723
11724 \begin_layout Enumerate
11725 Copy the contents of this 
11726 \family sans
11727 Slide
11728 \family default
11729  into the 
11730 \family sans
11731 Overlay
11732 \family default
11733 .
11734 \end_layout
11735
11736 \begin_layout Enumerate
11737 Within the 
11738 \family sans
11739 Overlay
11740 \family default
11741 , change all of the 
11742 \family sans
11743 InvisibleText
11744 \family default
11745  lines to 
11746 \family sans
11747 VisibleText
11748 \family default
11749  and vice-versa.
11750 \end_layout
11751
11752 \begin_layout Standard
11753 That's it.
11754  You've just made an 
11755 \family sans
11756 Overlay
11757 \family default
11758 .
11759 \end_layout
11760
11761 \begin_layout Standard
11762 There's one problem with the way I've designed the \SpecialChar LyX
11763  
11764 \family sans
11765 slides
11766 \family default
11767  class: you can't make text in the middle of a paragraph invisible, nor
11768  make text in the middle of an invisible paragraph visible again.
11769  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11770  codes.
11771 \begin_inset Foot
11772 status collapsed
11773
11774 \begin_layout Plain Layout
11775 The commands of interest are: 
11776 \end_layout
11777
11778 \begin_layout Itemize
11779
11780 \family typewriter
11781 {
11782 \backslash
11783 invisible \SpecialChar ldots
11784  }
11785 \end_layout
11786
11787 \begin_layout Itemize
11788
11789 \family typewriter
11790 {
11791 \backslash
11792 visible \SpecialChar ldots
11793  }
11794 \end_layout
11795
11796 \begin_layout Plain Layout
11797 \SpecialChar ldots
11798 and need to be marked as \SpecialChar TeX
11799 .
11800  The text whose 
11801 \begin_inset Quotes eld
11802 \end_inset
11803
11804 visibility
11805 \begin_inset Quotes erd
11806 \end_inset
11807
11808  you wish to change goes in between the brackets [and after the 
11809 \family typewriter
11810
11811 \backslash
11812 invisible
11813 \family default
11814  or 
11815 \family typewriter
11816
11817 \backslash
11818 visible
11819 \family default
11820  command].
11821  If you don't know how to mark text as \SpecialChar TeX
11822 , see the appropriate section of
11823  the 
11824 \emph on
11825 User's Guide
11826 \emph default
11827 .
11828 \end_layout
11829
11830 \end_inset
11831
11832
11833 \end_layout
11834
11835 \begin_layout Paragraph
11836 Using 
11837 \family sans
11838 Note
11839 \family default
11840  with 
11841 \family sans
11842 Slide
11843 \family default
11844
11845 \begin_inset CommandInset label
11846 LatexCommand label
11847 name "sec:slideNote"
11848
11849 \end_inset
11850
11851
11852 \end_layout
11853
11854 \begin_layout Standard
11855 Like an 
11856 \family sans
11857 Overlay
11858 \family default
11859 , a 
11860 \family sans
11861 Note
11862 \family default
11863  is associated with a 
11864 \begin_inset Quotes eld
11865 \end_inset
11866
11867 parent
11868 \begin_inset Quotes erd
11869 \end_inset
11870
11871  
11872 \family sans
11873 Slide
11874 \family default
11875 .
11876  Here, too, the \SpecialChar LyX
11877  
11878 \family sans
11879 slides
11880 \family default
11881  class provides visual cues.
11882  The label for a 
11883 \family sans
11884 Note
11885 \family default
11886  is shorter than that of a 
11887 \family sans
11888 Slide
11889 \family default
11890  [yet longer than that of an 
11891 \family sans
11892 Overlay
11893 \family default
11894 ] and, like the label of an 
11895 \family sans
11896 Overlay
11897 \family default
11898  is shockingly magenta.
11899  Additionally, the printed 
11900 \family sans
11901 Note
11902 \family default
11903  has the page number of its 
11904 \begin_inset Quotes eld
11905 \end_inset
11906
11907 parent
11908 \begin_inset Quotes erd
11909 \end_inset
11910
11911  
11912 \family sans
11913 Slide
11914 \family default
11915 , appended by 
11916 \begin_inset Quotes eld
11917 \end_inset
11918
11919
11920 \family typewriter
11921 -
11922 \family default
11923 1
11924 \begin_inset Quotes erd
11925 \end_inset
11926
11927
11928 \begin_inset Quotes eld
11929 \end_inset
11930
11931
11932 \family typewriter
11933 -
11934 \family default
11935 2
11936 \begin_inset Quotes erd
11937 \end_inset
11938
11939
11940 \begin_inset Quotes eld
11941 \end_inset
11942
11943
11944 \family typewriter
11945 -
11946 \family default
11947 3
11948 \begin_inset Quotes erd
11949 \end_inset
11950
11951 , etc.
11952  You can have multiple 
11953 \family sans
11954 Note
11955 \family default
11956 s associated with a single 
11957 \family sans
11958 Slide
11959 \family default
11960 , and, as with 
11961 \family sans
11962 Slide
11963 \family default
11964  and 
11965 \family sans
11966 Overlay
11967 \family default
11968 , you'll probably want to break up long 
11969 \family sans
11970 Note
11971 \family default
11972 s so that they fit on a single sheet of paper.
11973 \end_layout
11974
11975 \begin_layout Standard
11976 The purpose of a 
11977 \family sans
11978 Note
11979 \family default
11980  is obvious: it contains anything additional you might want to say about
11981  a 
11982 \family sans
11983 Slide
11984 \family default
11985 .
11986  It could also be used as a sheet of reminders for a particular 
11987 \family sans
11988 Slide
11989 \family default
11990 .
11991  In the case of the latter, you might want to make use of time markers.
11992  Currently, the \SpecialChar LyX
11993  
11994 \family sans
11995 slides
11996 \family default
11997  class has no 
11998 \begin_inset Quotes eld
11999 \end_inset
12000
12001 native
12002 \begin_inset Quotes erd
12003 \end_inset
12004
12005  support for time markers, a 
12006 \noun on
12007 Sli\SpecialChar TeX
12008
12009 \noun default
12010  feature.
12011  So, you'll have to resort to using the \SpecialChar LaTeX
12012  codes.
12013 \end_layout
12014
12015 \begin_layout Standard
12016 To use time markers, you'll need to specify the extra class option 
12017 \begin_inset Quotes eld
12018 \end_inset
12019
12020
12021 \family typewriter
12022 clock
12023 \family default
12024
12025 \begin_inset Quotes erd
12026 \end_inset
12027
12028  [see section
12029 \begin_inset space ~
12030 \end_inset
12031
12032
12033 \begin_inset CommandInset ref
12034 LatexCommand ref
12035 reference "sec:slidesetup"
12036
12037 \end_inset
12038
12039 ].
12040  This option turns on timing marks, which will appear in the lower-left-hand
12041  corner of every 
12042 \family sans
12043 Note
12044 \family default
12045  you generate.
12046  To set what appears in the time marker, you use the \SpecialChar LaTeX
12047  commands 
12048 \begin_inset Quotes eld
12049 \end_inset
12050
12051
12052 \family typewriter
12053
12054 \backslash
12055 settime{}
12056 \family default
12057
12058 \begin_inset Quotes erd
12059 \end_inset
12060
12061  and 
12062 \begin_inset Quotes eld
12063 \end_inset
12064
12065
12066 \family typewriter
12067
12068 \backslash
12069 addtime{}
12070 \family default
12071
12072 \begin_inset Quotes erd
12073 \end_inset
12074
12075 .
12076  The arguments of both commands are time measured in seconds.
12077  
12078 \begin_inset Quotes eld
12079 \end_inset
12080
12081
12082 \family typewriter
12083
12084 \backslash
12085 settime{}
12086 \family default
12087
12088 \begin_inset Quotes erd
12089 \end_inset
12090
12091  sets the time marker to a given time.
12092  
12093 \begin_inset Quotes eld
12094 \end_inset
12095
12096
12097 \family typewriter
12098
12099 \backslash
12100 addtime{}
12101 \family default
12102
12103 \begin_inset Quotes erd
12104 \end_inset
12105
12106  increments the time marker by the specified amount.
12107  Using time markers and 
12108 \family sans
12109 Note
12110 \family default
12111 s in this fashion, you can remind yourself how much time to spend on a particula
12112
12113 \family sans
12114 Slide
12115 \family default
12116 .
12117 \end_layout
12118
12119 \begin_layout Standard
12120 There's one last feature to describe.
12121  Clearly, you'd like to print out all of your 
12122 \family sans
12123 Slide
12124 \family default
12125 s and 
12126 \family sans
12127 Overlay
12128 \family default
12129 s on transparencies while printing all of your 
12130 \family sans
12131 Note
12132 \family default
12133 s on plain paper.
12134  However, a 
12135 \family sans
12136 Note
12137 \family default
12138  
12139 \emph on
12140 must
12141 \emph default
12142  follow the 
12143 \family sans
12144 Slide
12145 \family default
12146  with which it is associated.
12147  What's a person to do?
12148 \end_layout
12149
12150 \begin_layout Standard
12151 Luckily, there are two \SpecialChar LaTeX
12152  commands that allow you to select what to print
12153  out.
12154  Both must be placed into the preamble of your document.
12155  The command 
12156 \begin_inset Quotes eld
12157 \end_inset
12158
12159
12160 \family typewriter
12161
12162 \backslash
12163 onlyslides{
12164 \backslash
12165 slides}
12166 \family default
12167
12168 \begin_inset Quotes erd
12169 \end_inset
12170
12171  will cause the output to contain only the 
12172 \family sans
12173 Slide
12174 \family default
12175 s and 
12176 \family sans
12177 Overlay
12178 \family default
12179 s.
12180  Correspondingly, the command 
12181 \begin_inset Quotes eld
12182 \end_inset
12183
12184
12185 \family typewriter
12186
12187 \backslash
12188 onlynotes{
12189 \backslash
12190 notes}
12191 \family default
12192
12193 \begin_inset Quotes erd
12194 \end_inset
12195
12196  prevents the output of anything but 
12197 \family sans
12198 Note
12199 \family default
12200 s.
12201  I'd advise placing both commands in the preamble and initially comment
12202  both out.
12203  You can then preview your entire presentation as you write.
12204  When you're done writing, you can then uncomment one of the two to select
12205  what you want to print.
12206  I like to uncomment 
12207 \begin_inset Quotes eld
12208 \end_inset
12209
12210
12211 \family typewriter
12212
12213 \backslash
12214 onlyslides{
12215 \backslash
12216 slides}
12217 \family default
12218
12219 \begin_inset Quotes erd
12220 \end_inset
12221
12222  , print to a file with 
12223 \begin_inset Quotes eld
12224 \end_inset
12225
12226
12227 \family typewriter
12228 -slides
12229 \family default
12230
12231 \begin_inset Quotes erd
12232 \end_inset
12233
12234  in its name, comment it back out, then uncomment 
12235 \begin_inset Quotes eld
12236 \end_inset
12237
12238
12239 \family typewriter
12240
12241 \backslash
12242 onlynotes{
12243 \backslash
12244 notes}
12245 \family default
12246
12247 \begin_inset Quotes erd
12248 \end_inset
12249
12250  and print to a 
12251 \begin_inset Quotes eld
12252 \end_inset
12253
12254
12255 \family typewriter
12256 *-notes.ps
12257 \family default
12258
12259 \begin_inset Quotes erd
12260 \end_inset
12261
12262  file.
12263  I can then send either file to a printer, loading transparencies or plain
12264  paper as appropriate.
12265 \end_layout
12266
12267 \begin_layout Standard
12268 You can also provide other arguments to the 
12269 \begin_inset Quotes eld
12270 \end_inset
12271
12272
12273 \family typewriter
12274
12275 \backslash
12276 onlyslides{}
12277 \family default
12278
12279 \begin_inset Quotes erd
12280 \end_inset
12281
12282  and 
12283 \begin_inset Quotes eld
12284 \end_inset
12285
12286
12287 \family typewriter
12288
12289 \backslash
12290 onlynotes{}
12291 \family default
12292
12293 \begin_inset Quotes erd
12294 \end_inset
12295
12296  commands.
12297  See a good \SpecialChar LaTeX
12298  book for details.
12299 \end_layout
12300
12301 \begin_layout Subsubsection
12302 The 
12303 \family sans
12304 slides
12305 \family default
12306  Class Template File
12307 \end_layout
12308
12309 \begin_layout Standard
12310 I have also provided a template file
12311 \change_deleted 564990737 1671617750
12312
12313 \begin_inset Quotes eld
12314 \end_inset
12315
12316
12317 \family typewriter
12318 slides.lyx
12319 \family default
12320
12321 \begin_inset Quotes erd
12322 \end_inset
12323
12324 ,
12325 \change_unchanged
12326  with the 
12327 \family sans
12328 slides
12329 \family default
12330  class.
12331  To use it, begin your new presentation with 
12332 \family sans
12333 File\SpecialChar menuseparator
12334 New
12335 \begin_inset space ~
12336 \end_inset
12337
12338 from
12339 \begin_inset space ~
12340 \end_inset
12341
12342 Template
12343 \change_inserted 564990737 1671616988
12344 \SpecialChar menuseparator
12345 Presentations\SpecialChar menuseparator
12346 Slides
12347 \change_unchanged
12348
12349 \family default
12350 .
12351  Your new \SpecialChar LyX
12352  presentation file will contain an example 
12353 \family sans
12354 Slide
12355 \family default
12356  – 
12357 \family sans
12358 Overlay
12359 \family default
12360  – 
12361 \family sans
12362 Note
12363 \family default
12364  triplet.
12365  The 
12366 \family sans
12367 Slide
12368 \family default
12369  and 
12370 \family sans
12371 Overlay
12372 \family default
12373  additionally contain an example of the use of 
12374 \family sans
12375 InvisibleText
12376 \family default
12377  and 
12378 \family sans
12379 VisibleText
12380 \family default
12381 .
12382  Lastly, the preamble will contain:
12383 \end_layout
12384
12385 \begin_layout LyX-Code
12386 % Uncomment to print out only slides and overlays
12387 \end_layout
12388
12389 \begin_layout LyX-Code
12390 %
12391 \end_layout
12392
12393 \begin_layout LyX-Code
12394 %
12395 \backslash
12396 onlyslides{
12397 \backslash
12398 slides}
12399 \begin_inset Newline newline
12400 \end_inset
12401
12402  
12403 \end_layout
12404
12405 \begin_layout LyX-Code
12406 % Uncomment to print out only notes
12407 \end_layout
12408
12409 \begin_layout LyX-Code
12410 %
12411 \end_layout
12412
12413 \begin_layout LyX-Code
12414 %
12415 \backslash
12416 onlynotes{
12417 \backslash
12418 notes}
12419 \end_layout
12420
12421 \begin_layout Standard
12422 One final thing: I created this class to support the \SpecialChar LaTeX2e
12423  
12424 \begin_inset Quotes eld
12425 \end_inset
12426
12427
12428 \noun on
12429 Sli\SpecialChar TeX
12430
12431 \noun default
12432  emulation
12433 \begin_inset Quotes erd
12434 \end_inset
12435
12436  class, one of the built-in \SpecialChar LaTeX2e
12437  classes.
12438  Neither I nor the rest of the \SpecialChar LyX
12439  Team endorse or oppose the use of this built-in
12440  slide class.
12441  It's here if you want it or need it.
12442  There exist other \SpecialChar LaTeX2e
12443  classes for creating presentations, such as the 
12444 \family sans
12445 Foils
12446 \family default
12447  class [see section
12448 \begin_inset space ~
12449 \end_inset
12450
12451
12452 \begin_inset CommandInset ref
12453 LatexCommand ref
12454 reference "sec:foiltex"
12455
12456 \end_inset
12457
12458 ] or the 
12459 \begin_inset Quotes eld
12460 \end_inset
12461
12462
12463 \family typewriter
12464 seminar
12465 \family default
12466
12467 \begin_inset Quotes erd
12468 \end_inset
12469
12470  package [present on some \SpecialChar TeX
12471  distributions].
12472  The latter is not yet supported under \SpecialChar LyX
12473 .
12474 \begin_inset Foot
12475 status collapsed
12476
12477 \begin_layout Plain Layout
12478 Perhaps you can take on the task\SpecialChar ldots
12479
12480 \end_layout
12481
12482 \end_inset
12483
12484  I know nothing about these other classes.
12485  Try them out to see what sort of alternative they provide.
12486 \end_layout
12487
12488 \begin_layout Section
12489
12490 \change_inserted 564990737 1670439661
12491 Reports
12492 \end_layout
12493
12494 \begin_layout Subsection
12495
12496 \change_inserted 564990737 1670439661
12497 report
12498 \end_layout
12499
12500 \begin_layout Standard
12501
12502 \change_inserted 564990737 1670439661
12503 The document class 
12504 \family sans
12505 report
12506 \family default
12507  provides the 
12508 \family sans
12509 report.cls
12510 \family default
12511  document class for preparing reports.
12512  Like the 
12513 \family sans
12514 book
12515 \family default
12516  document class, this provides parts, chapters and sections but does not
12517  provide the paragraph styles needed for a book; like the 
12518 \family sans
12519 article
12520 \family default
12521  document class, it provides the abstract paragraph style.
12522  In two-sided mode, it does not start a new chapter on the right hand page.
12523 \end_layout
12524
12525 \begin_layout Standard
12526
12527 \change_inserted 564990737 1670439674
12528 The remaining 
12529 \family sans
12530 report
12531 \family default
12532  document classes are described in the Collections (section
12533 \begin_inset space ~
12534 \end_inset
12535
12536
12537 \begin_inset CommandInset ref
12538 LatexCommand ref
12539 reference "sec:Collections"
12540
12541 \end_inset
12542
12543 ).
12544 \end_layout
12545
12546 \begin_layout Section
12547
12548 \change_inserted 564990737 1670439674
12549 Scripts (drama)
12550 \end_layout
12551
12552 \begin_layout Subsection
12553 Broadway
12554 \end_layout
12555
12556 \begin_layout Standard
12557 by 
12558 \shape smallcaps
12559 Garst Reese
12560 \end_layout
12561
12562 \begin_layout Subsubsection
12563 Introduction
12564 \end_layout
12565
12566 \begin_layout Standard
12567 Broadway is for writing plays.
12568  The format is more decorative than Hollywood, and much less standardized.
12569  This format should be suitable for workshops.
12570 \end_layout
12571
12572 \begin_layout Subsubsection
12573 Special problems
12574 \end_layout
12575
12576 \begin_layout Standard
12577 The same as in Hollywood.
12578 \end_layout
12579
12580 \begin_layout Subsubsection
12581 Special features
12582 \end_layout
12583
12584 \begin_layout Standard
12585 Insert the 
12586 \family sans
12587 Speaker
12588 \family default
12589  names as labels then cross-reference the label to insert the name.
12590  The cross-reference dialog will show the current cast of characters.
12591 \end_layout
12592
12593 \begin_layout Subsubsection
12594 Paper size and Margins
12595 \end_layout
12596
12597 \begin_layout Standard
12598 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12599 \end_layout
12600
12601 \begin_layout Subsubsection
12602 Environments
12603 \end_layout
12604
12605 \begin_layout Standard
12606 The following environments are available.
12607  You can use broadway.bind to get the bind keys shown at the right.
12608 \end_layout
12609
12610 \begin_layout Itemize
12611
12612 \family sans
12613 Standard
12614 \begin_inset Newline newline
12615 \end_inset
12616
12617
12618 \family default
12619 You should not have to use this, but it is here for anything that does not
12620  fit otherwise.
12621 \end_layout
12622
12623 \begin_layout Itemize
12624
12625 \family sans
12626 Narrative
12627 \begin_inset space \hfill{}
12628 \end_inset
12629
12630 M-z n
12631 \begin_inset Newline newline
12632 \end_inset
12633
12634
12635 \family default
12636 Used to describe stage setting and the action.
12637  First use of speaker names in all CAPs.
12638 \end_layout
12639
12640 \begin_layout Itemize
12641
12642 \family sans
12643 ACT
12644 \begin_inset space \hfill{}
12645 \end_inset
12646
12647 M-z a
12648 \begin_inset Newline newline
12649 \end_inset
12650
12651
12652 \family default
12653 Automatically numbered.
12654  On screen it will be arabic, but will print as Roman.
12655 \end_layout
12656
12657 \begin_layout Itemize
12658
12659 \family sans
12660 ACT*
12661 \begin_inset space \hfill{}
12662 \end_inset
12663
12664 M-z S at
12665 \begin_inset Newline newline
12666 \end_inset
12667
12668
12669 \family default
12670 Subtitle for 
12671 \family sans
12672 ACT.
12673
12674 \family default
12675  It is just centered text.
12676 \end_layout
12677
12678 \begin_layout Itemize
12679
12680 \family sans
12681 SCENE
12682 \begin_inset space \hfill{}
12683 \end_inset
12684
12685 M-z S-S
12686 \begin_inset Newline newline
12687 \end_inset
12688
12689
12690 \family default
12691 Not automatically numbered.
12692  You supply the number.
12693  This is because I couldn't figure out how.
12694 \end_layout
12695
12696 \begin_layout Itemize
12697
12698 \family sans
12699 AT_RISE:
12700 \begin_inset space \hfill{}
12701 \end_inset
12702
12703 M-z S-R
12704 \begin_inset Newline newline
12705 \end_inset
12706
12707
12708 \family default
12709 A special case of Narrative to describe the setting and action as the curtain
12710  rises.
12711 \end_layout
12712
12713 \begin_layout Itemize
12714
12715 \family sans
12716 Speaker
12717 \begin_inset space \hfill{}
12718 \end_inset
12719
12720 M-z s
12721 \begin_inset Newline newline
12722 \end_inset
12723
12724
12725 \family default
12726 The speaker's (actor's) title, centered in all CAPS.
12727 \end_layout
12728
12729 \begin_layout Itemize
12730
12731 \family sans
12732 Parenthetical
12733 \begin_inset space \hfill{}
12734 \end_inset
12735
12736 M-z p
12737 \begin_inset Newline newline
12738 \end_inset
12739
12740
12741 \family default
12742 Instructions to the speaker.
12743  The parentheses are automatically inserted.
12744  The ( will appear on screen, but both will be in the printed play.
12745  This environment is only used within 
12746 \family sans
12747 Dialogue
12748 \family default
12749 .
12750 \end_layout
12751
12752 \begin_layout Itemize
12753
12754 \family sans
12755 Dialogue
12756 \begin_inset space \hfill{}
12757 \end_inset
12758
12759 M-z d
12760 \begin_inset Newline newline
12761 \end_inset
12762
12763
12764 \family default
12765 What the Speaker says.
12766 \end_layout
12767
12768 \begin_layout Itemize
12769
12770 \family sans
12771 CURTAIN
12772 \begin_inset space \hfill{}
12773 \end_inset
12774
12775 M-z S-C
12776 \begin_inset Newline newline
12777 \end_inset
12778
12779
12780 \family default
12781 The curtain comes down.
12782 \end_layout
12783
12784 \begin_layout Itemize
12785
12786 \family sans
12787 Title
12788 \begin_inset space \hfill{}
12789 \end_inset
12790
12791 M-z S-T
12792 \end_layout
12793
12794 \begin_layout Itemize
12795
12796 \family sans
12797 Author
12798 \begin_inset space \hfill{}
12799 \end_inset
12800
12801 M-z S-A
12802 \end_layout
12803
12804 \begin_layout Itemize
12805
12806 \family sans
12807 Right_Address
12808 \begin_inset space \hfill{}
12809 \end_inset
12810
12811 M-z r
12812 \end_layout
12813
12814 \begin_layout Standard
12815 Hello there.
12816 \end_layout
12817
12818 \begin_layout Subsection
12819 Hollywood (Hollywood spec scripts)
12820 \end_layout
12821
12822 \begin_layout Standard
12823 by 
12824 \shape smallcaps
12825 Garst Reese
12826 \end_layout
12827
12828 \begin_layout Subsubsection
12829 Introduction
12830 \end_layout
12831
12832 \begin_layout Standard
12833 Getting the format of a Hollywood script right is a 
12834 \begin_inset Quotes eld
12835 \end_inset
12836
12837 rite of passage.
12838 \begin_inset Quotes erd
12839 \end_inset
12840
12841  It is designed to make the readers focus on content and to be easy and
12842  familiar for the actors to read.
12843  Each page of a script should be one minute of film.
12844  Nothing goes in a script that you cannot see or hear on screen.
12845  The courier 12 pt font should be used throughout.
12846  No italics.
12847 \end_layout
12848
12849 \begin_layout Subsubsection
12850 Special problems
12851 \end_layout
12852
12853 \begin_layout Standard
12854 Speakers' lines should NEVER break in mid-sentence.
12855  If a speaker's lines continue over a page break, repeat the 
12856 \family sans
12857 Speaker
12858 \family default
12859  title followed by (Cont'd).
12860 \end_layout
12861
12862 \begin_layout Subsubsection
12863 Special features
12864 \end_layout
12865
12866 \begin_layout Standard
12867 Insert the 
12868 \family sans
12869 Speaker
12870 \family default
12871  names as labels then cross-reference the label to insert the name.
12872  The cross-reference dialog will show the current cast of characters.
12873  You can use this to insert the speaker name in narratives also.
12874 \end_layout
12875
12876 \begin_layout Subsubsection
12877 Paper size and Margins
12878 \end_layout
12879
12880 \begin_layout Standard
12881 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12882 \end_layout
12883
12884 \begin_layout Subsubsection
12885 Environments
12886 \end_layout
12887
12888 \begin_layout Standard
12889 The following environments are available.
12890  You can use hollywood.bind to get the bind keys shown at the right.
12891 \end_layout
12892
12893 \begin_layout Itemize
12894
12895 \family sans
12896 Standard
12897 \begin_inset Newline newline
12898 \end_inset
12899
12900
12901 \family default
12902 Used where nothing else works.
12903  Try to avoid it.
12904 \end_layout
12905
12906 \begin_layout Itemize
12907
12908 \family sans
12909 FADE_IN
12910 \family default
12911 :
12912 \begin_inset space \hfill{}
12913 \end_inset
12914
12915
12916 \family sans
12917 M-z S-I
12918 \family default
12919
12920 \begin_inset Newline newline
12921 \end_inset
12922
12923 Usually followed by something like 
12924 \begin_inset Quotes eld
12925 \end_inset
12926
12927 on Sally waking up.
12928 \begin_inset Quotes erd
12929 \end_inset
12930
12931
12932 \end_layout
12933
12934 \begin_layout Itemize
12935
12936 \family sans
12937 INT:
12938 \begin_inset space \hfill{}
12939 \end_inset
12940
12941 M-z i
12942 \begin_inset Newline newline
12943 \end_inset
12944
12945
12946 \family default
12947 Introduces a new INTERIOR camera set-up.
12948  Always followed by DAY or NIGHT, or something similar to define the lighting
12949  required.
12950  Everthing on this line in CAPS.
12951 \end_layout
12952
12953 \begin_layout Itemize
12954
12955 \family sans
12956 EXT:
12957 \begin_inset space \hfill{}
12958 \end_inset
12959
12960 M-z e
12961 \begin_inset Newline newline
12962 \end_inset
12963
12964
12965 \family default
12966 Introduces a new EXTERIOR camera set-up.
12967  Everthing on this line in CAPS.
12968 \end_layout
12969
12970 \begin_layout Itemize
12971
12972 \family sans
12973 Speaker
12974 \begin_inset space \hfill{}
12975 \end_inset
12976
12977 M-z s
12978 \begin_inset Newline newline
12979 \end_inset
12980
12981
12982 \family default
12983 The character speaking.
12984 \end_layout
12985
12986 \begin_layout Itemize
12987
12988 \family sans
12989 Parenthetical
12990 \begin_inset space \hfill{}
12991 \end_inset
12992
12993 M-z p
12994 \begin_inset Newline newline
12995 \end_inset
12996
12997
12998 \family default
12999 Instructions to the speaker.
13000  The () are automatically inserted.
13001 \end_layout
13002
13003 \begin_layout Itemize
13004
13005 \family sans
13006 Dialogue
13007 \begin_inset space \hfill{}
13008 \end_inset
13009
13010 M-z d
13011 \begin_inset Newline newline
13012 \end_inset
13013
13014
13015 \family default
13016 What the 
13017 \family sans
13018 Speaker
13019 \family default
13020  says.
13021 \end_layout
13022
13023 \begin_layout Itemize
13024
13025 \family sans
13026 Transition
13027 \begin_inset space \hfill{}
13028 \end_inset
13029
13030 M-z t
13031 \begin_inset Newline newline
13032 \end_inset
13033
13034
13035 \family default
13036 Camera movement instruction.
13037  e.
13038 \begin_inset space \thinspace{}
13039 \end_inset
13040
13041 g.
13042 \begin_inset space \space{}
13043 \end_inset
13044
13045 CUT TO:
13046 \end_layout
13047
13048 \begin_layout Itemize
13049
13050 \family sans
13051 FADE OUT:
13052 \begin_inset space \hfill{}
13053 \end_inset
13054
13055 M-z S-I
13056 \end_layout
13057
13058 \begin_layout Itemize
13059
13060 \family sans
13061 Author
13062 \begin_inset space \hfill{}
13063 \end_inset
13064
13065 M-z S-A
13066 \end_layout
13067
13068 \begin_layout Itemize
13069
13070 \family sans
13071 Title
13072 \begin_inset space \hfill{}
13073 \end_inset
13074
13075 M-z S-T
13076 \end_layout
13077
13078 \begin_layout Itemize
13079
13080 \family sans
13081 Right_Address
13082 \begin_inset space \hfill{}
13083 \end_inset
13084
13085 M-z r
13086 \end_layout
13087
13088 \begin_layout Subsubsection
13089 Script jargon
13090 \end_layout
13091
13092 \begin_layout Itemize
13093 (O.S) — off screen
13094 \end_layout
13095
13096 \begin_layout Itemize
13097 (V.0) — voice over
13098 \end_layout
13099
13100 \begin_layout Itemize
13101 b.
13102 \begin_inset space \thinspace{}
13103 \end_inset
13104
13105 g.
13106  — background
13107 \end_layout
13108
13109 \begin_layout Itemize
13110 C.U.
13111  — close-up
13112 \end_layout
13113
13114 \begin_layout Itemize
13115 PAN — camera movement
13116 \end_layout
13117
13118 \begin_layout Itemize
13119 INSERT — cut to close-up of
13120 \end_layout
13121
13122 \begin_layout Chapter
13123
13124 \change_inserted 564990737 1671185876
13125 Modules
13126 \end_layout
13127
13128 \begin_layout Section
13129
13130 \change_inserted 564990737 1671716212
13131
13132 \lang american
13133 Academic Field Specifics
13134 \end_layout
13135
13136 \begin_layout Subsection
13137
13138 \change_inserted 564990737 1671716212
13139
13140 \lang american
13141 Chemistry: Hazard and Precautionary Statements 
13142 \end_layout
13143
13144 \begin_layout Standard
13145
13146 \change_inserted 564990737 1671716212
13147
13148 \lang american
13149 This module provides two insets to typeset numbers and phrases of chemical
13150  hazard and precautionary statements.
13151  For a description see 
13152 \family sans
13153 \lang british
13154 File\SpecialChar menuseparator
13155 Open Example\SpecialChar menuseparator
13156 Modules\SpecialChar menuseparator
13157 Hazard and Precautionary Statements
13158 \family default
13159  and 
13160 \family sans
13161 Help\SpecialChar menuseparator
13162 Specific Manuals\SpecialChar menuseparator
13163 Hazard and Precautionary Statements
13164 \family default
13165 \lang american
13166 .
13167 \end_layout
13168
13169 \begin_layout Subsection
13170
13171 \change_inserted 564990737 1671716212
13172
13173 \series bold
13174 \lang american
13175 Chemistry: Risk and Safety Statements
13176 \end_layout
13177
13178 \begin_layout Standard
13179
13180 \change_inserted 564990737 1671716212
13181
13182 \lang american
13183 This module provides two insets, 
13184 \family sans
13185 R-S number
13186 \family default
13187  and 
13188 \family sans
13189 R-S phrase
13190 \family default
13191 , accessible via the menu 
13192 \family sans
13193 \bar under
13194 I
13195 \bar default
13196 nsert\SpecialChar menuseparator
13197 Custom
13198 \begin_inset space ~
13199 \end_inset
13200
13201 Insets
13202 \family default
13203  and an environment to typeset numbers and phrases of chemical risk and
13204  safety statements.
13205 \end_layout
13206
13207 \begin_layout Subsection
13208
13209 \change_inserted 564990737 1671716212
13210
13211 \lang american
13212 Linguistics
13213 \end_layout
13214
13215 \begin_layout Standard
13216
13217 \change_inserted 564990737 1671716212
13218
13219 \lang american
13220 This module uses the 
13221 \family sans
13222 covington.sty
13223 \family default
13224  package to add environments useful for linguistics (numbered examples,
13225  glosses, semantic markup, tableau floats).
13226  You can obtain information about this module in 
13227 \family sans
13228 \bar under
13229 H
13230 \bar default
13231 elp\SpecialChar menuseparator
13232 S
13233 \bar under
13234 p
13235 \bar default
13236 ecific
13237 \begin_inset space ~
13238 \end_inset
13239
13240 Manuals\SpecialChar menuseparator
13241
13242 \bar under
13243 L
13244 \bar default
13245 inguistics
13246 \family default
13247  and 
13248 \family sans
13249 \lang british
13250 File\SpecialChar menuseparator
13251 Open Example\SpecialChar menuseparator
13252
13253 \lang american
13254 Modules\SpecialChar menuseparator
13255 Linguistics
13256 \family default
13257 .
13258 \end_layout
13259
13260 \begin_layout Section
13261
13262 \change_inserted 564990737 1671788778
13263
13264 \lang american
13265 Accessibility
13266 \end_layout
13267
13268 \begin_layout Subsection
13269
13270 \change_inserted 564990737 1671788778
13271
13272 \lang american
13273 Braille
13274 \end_layout
13275
13276 \begin_layout Standard
13277
13278 \change_inserted 564990737 1671788778
13279
13280 \lang american
13281 This module supports the Braille writing system.
13282  It requires the \SpecialChar LaTeX
13283  package 
13284 \family typewriter
13285 braille.sty
13286 \family default
13287 .
13288  This and its documentation can be obtained from 
13289 \begin_inset CommandInset href
13290 LatexCommand href
13291 name "CTAN"
13292 target "https://www.ctan.org/pkg/braille"
13293 literal "false"
13294
13295 \end_inset
13296
13297 .
13298  You do not have to reconfigure your system after installing it.
13299  See 
13300 \family sans
13301 \bar under
13302 H
13303 \bar default
13304 elp\SpecialChar menuseparator
13305 S
13306 \bar under
13307 p
13308 \bar default
13309 ecific
13310 \begin_inset space ~
13311 \end_inset
13312
13313 Manuals\SpecialChar menuseparator
13314
13315 \bar under
13316 B
13317 \bar default
13318 raille
13319 \family default
13320  and 
13321 \family sans
13322 File\SpecialChar menuseparator
13323 Open Example\SpecialChar menuseparator
13324 Modules\SpecialChar menuseparator
13325 Braille
13326 \family default
13327 .
13328 \end_layout
13329
13330 \begin_layout Section
13331
13332 \change_inserted 564990737 1671788778
13333
13334 \lang american
13335 Annotation & Revision
13336 \end_layout
13337
13338 \begin_layout Subsection
13339
13340 \change_inserted 564990737 1671788778
13341
13342 \lang american
13343 FiXme Notes
13344 \end_layout
13345
13346 \begin_layout Standard
13347
13348 \change_inserted 564990737 1671788778
13349
13350 \lang american
13351 This module provides “FiXme” (marginal) annotations for document revision
13352  purposes.
13353  A list of annotations can be produced by using the “List of FIXMEs” paragraph
13354  style.
13355  The annotations are customizable via the LaTeX preamble.
13356  See the FiXme documentation which can be obtained from 
13357 \begin_inset CommandInset href
13358 LatexCommand href
13359 name "CTAN"
13360 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
13361 literal "false"
13362
13363 \end_inset
13364
13365 .
13366  
13367 \end_layout
13368
13369 \begin_layout Paragraph
13370
13371 \change_inserted 564990737 1671788778
13372
13373 \lang american
13374 Note:
13375 \end_layout
13376
13377 \begin_layout Standard
13378
13379 \change_inserted 564990737 1671788778
13380
13381 \lang american
13382 by default, the notes are only displayed in “draft” mode (if the option
13383  “draft” has been inserted in 
13384 \family sans
13385 Document\SpecialChar menuseparator
13386 Settings\SpecialChar menuseparator
13387 Document Class\SpecialChar menuseparator
13388 Class Options\SpecialChar menuseparator
13389 Custom
13390 \family default
13391 ).
13392  To display them always, insert 
13393 \family typewriter
13394
13395 \backslash
13396 fxsetup{draft}
13397 \family default
13398  in 
13399 \family sans
13400 Document\SpecialChar menuseparator
13401 Settings\SpecialChar menuseparator
13402 \SpecialChar LaTeX
13403  Preamble
13404 \family default
13405 .
13406  
13407 \end_layout
13408
13409 \begin_layout Subsection
13410
13411 \change_inserted 564990737 1671788778
13412
13413 \lang american
13414 PDF Comments
13415 \end_layout
13416
13417 \begin_layout Standard
13418
13419 \change_inserted 564990737 1671788778
13420
13421 \lang american
13422 This module provides various kinds of annotations for PDF output.
13423  See 
13424 \family sans
13425 Help\SpecialChar menuseparator
13426 Specific Manuals\SpecialChar menuseparator
13427 PDF comments and File\SpecialChar menuseparator
13428 Open Example\SpecialChar menuseparator
13429 Modules\SpecialChar menuseparator
13430 PDF Comments
13431 \family default
13432 .
13433 \end_layout
13434
13435 \begin_layout Subsection
13436
13437 \change_inserted 564990737 1671788778
13438
13439 \series bold
13440 \lang american
13441 PDF Form
13442 \end_layout
13443
13444 \begin_layout Standard
13445
13446 \change_inserted 564990737 1671788778
13447
13448 \lang american
13449 This module provides fields and buttons for PDF forms.
13450  See the 
13451 \begin_inset CommandInset href
13452 LatexCommand href
13453 name "hyperref documentation"
13454 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
13455 literal "false"
13456
13457 \end_inset
13458
13459
13460 \family sans
13461 Help\SpecialChar menuseparator
13462 Specific Manuals\SpecialChar menuseparator
13463 PDF forms and File\SpecialChar menuseparator
13464 Open Example\SpecialChar menuseparator
13465 Modules\SpecialChar menuseparator
13466 PDF Form
13467 \family default
13468 .
13469 \end_layout
13470
13471 \begin_layout Subsection
13472
13473 \change_inserted 564990737 1671788778
13474
13475 \series bold
13476 \lang american
13477 Ruby (Furigana)
13478 \end_layout
13479
13480 \begin_layout Standard
13481
13482 \change_inserted 564990737 1671788778
13483
13484 \lang american
13485 This module defines an inset to typeset reading aids (ruby, furigana) to
13486  Chinese characters.
13487  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on
13488  the TeX engine) or a fallback definition.
13489  
13490 \end_layout
13491
13492 \begin_layout Subsection
13493
13494 \change_inserted 564990737 1671788778
13495
13496 \series bold
13497 \lang american
13498 TODO notes
13499 \end_layout
13500
13501 \begin_layout Standard
13502
13503 \change_inserted 564990737 1671788778
13504
13505 \lang american
13506 This module provides custom insets to insert TODO items in your document.
13507  In order to generate a “List of TODOs,” the module provides a paragraph
13508  style.
13509  Inserting “final” in 
13510 \family sans
13511 Document\SpecialChar menuseparator
13512 Settings\SpecialChar menuseparator
13513 Document Class\SpecialChar menuseparator
13514 Class Options\SpecialChar menuseparator
13515 Custom
13516 \family default
13517 ) suppresses the output of TODO notes.
13518  See the 
13519 \begin_inset CommandInset href
13520 LatexCommand href
13521 name "todonotes documentation"
13522 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
13523 literal "false"
13524
13525 \end_inset
13526
13527 .
13528 \end_layout
13529
13530 \begin_layout Section
13531
13532 \change_inserted 564990737 1671829045
13533
13534 \lang american
13535 Bibliography 
13536 \end_layout
13537
13538 \begin_layout Subsection
13539
13540 \change_inserted 564990737 1671829045
13541
13542 \lang american
13543 APA Style with NatBib
13544 \end_layout
13545
13546 \begin_layout Standard
13547
13548 \change_inserted 564990737 1671829045
13549
13550 \lang american
13551 This module adds support for using natbib together with apacite (the bibliograph
13552 y style need not be apacite — it could be apacite, apacitex, or any bibliography
13553  that works with both the natbib and apacite packages.) 
13554 \end_layout
13555
13556 \begin_layout Section
13557
13558 \change_inserted 564990737 1671829045
13559
13560 \lang american
13561 Boxes
13562 \end_layout
13563
13564 \begin_layout Subsection
13565
13566 \change_inserted 564990737 1671829045
13567
13568 \lang american
13569 Fancy Colored Boxes
13570 \end_layout
13571
13572 \begin_layout Standard
13573
13574 \change_inserted 564990737 1671829045
13575
13576 \lang american
13577 This module adds ten custom insets that support colored boxes via the tcolorbox
13578  package.
13579  See 
13580 \family sans
13581 Help\SpecialChar menuseparator
13582 Specific Manuals\SpecialChar menuseparator
13583 Colored boxes
13584 \family default
13585
13586 \family sans
13587 File\SpecialChar menuseparator
13588 Open Example\SpecialChar menuseparator
13589 Modules\SpecialChar menuseparator
13590 Fancy Color Boxes
13591 \family default
13592  the 
13593 \begin_inset CommandInset href
13594 LatexCommand href
13595 name "tcolorbox documentation"
13596 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
13597 literal "false"
13598
13599 \end_inset
13600
13601  for details.
13602  
13603 \end_layout
13604
13605 \begin_layout Subsection
13606
13607 \change_inserted 564990737 1671829045
13608
13609 \lang american
13610 Graphic boxes
13611 \end_layout
13612
13613 \begin_layout Standard
13614
13615 \change_inserted 564990737 1671829045
13616
13617 \lang american
13618 This provides the custom insets 
13619 \family sans
13620 Reflectbox
13621 \family default
13622
13623 \family sans
13624 Resizebox
13625 \family default
13626
13627 \family sans
13628 Rotatebox
13629 \family default
13630  and 
13631 \family sans
13632 Scalebox
13633 \family default
13634  to scale and rotate its content.
13635 \end_layout
13636
13637 \begin_layout Standard
13638
13639 \change_inserted 564990737 1671829045
13640
13641 \family sans
13642 \lang american
13643 Reflectbox
13644 \family default
13645  is a simple way of reversing text without any other enhancement:
13646 \end_layout
13647
13648 \begin_layout Standard
13649
13650 \change_inserted 564990737 1671829045
13651
13652 \lang american
13653 \begin_inset Flex Reflectbox
13654 status open
13655
13656 \begin_layout Plain Layout
13657
13658 \change_inserted 564990737 1671829045
13659
13660 \lang american
13661 Great Western Railway
13662 \change_unchanged
13663
13664 \end_layout
13665
13666 \end_inset
13667
13668
13669 \end_layout
13670
13671 \begin_layout Standard
13672
13673 \change_inserted 564990737 1671829045
13674
13675 \lang american
13676 (You will need to use Ctrl-R to see any of these examples.)
13677 \end_layout
13678
13679 \begin_layout Standard
13680
13681 \change_inserted 564990737 1671829045
13682
13683 \family sans
13684 \lang american
13685 Resizebox
13686 \family default
13687  allows you to specify the dimensions of the text or image; permissible
13688  units are em, ex, in, pt, pc, cm, mm, dd, cc, nd, nc, bp, or sp; if you
13689  enter 
13690 \family typewriter
13691 !
13692 \family default
13693  for 
13694 \family typewriter
13695 Height
13696 \family default
13697  it scales by the width factor:
13698 \end_layout
13699
13700 \begin_layout Standard
13701
13702 \change_inserted 564990737 1671829045
13703
13704 \lang american
13705 \begin_inset Flex Resizebox
13706 status open
13707
13708 \begin_layout Plain Layout
13709
13710 \change_inserted 564990737 1671829045
13711
13712 \lang american
13713 \begin_inset Argument 1
13714 status open
13715
13716 \begin_layout Plain Layout
13717
13718 \change_inserted 564990737 1671829045
13719
13720 \lang american
13721 48mm
13722 \change_unchanged
13723
13724 \end_layout
13725
13726 \end_inset
13727
13728
13729 \begin_inset Argument 2
13730 status open
13731
13732 \begin_layout Plain Layout
13733
13734 \change_inserted 564990737 1671829045
13735
13736 \lang american
13737 !
13738 \change_unchanged
13739
13740 \end_layout
13741
13742 \end_inset
13743
13744 Great Western Railway
13745 \change_unchanged
13746
13747 \end_layout
13748
13749 \end_inset
13750
13751
13752 \end_layout
13753
13754 \begin_layout Standard
13755
13756 \change_inserted 564990737 1671829045
13757
13758 \family sans
13759 \lang american
13760 Rotatebox
13761 \family default
13762  allows you to rotate text around the reference point of the box.
13763  If you wish to rotate the box around a different origin, place the cursor
13764  inside the box and select Insert\SpecialChar menuseparator
13765 Origin; o
13766 \family typewriter
13767 rigin
13768 \family default
13769  is specified as 
13770 \family typewriter
13771 c
13772 \family default
13773 ,
13774 \family typewriter
13775  l
13776 \family default
13777 ,
13778 \family typewriter
13779  r
13780 \family default
13781 ,
13782 \family typewriter
13783  b
13784 \family default
13785 ,
13786 \family typewriter
13787  t
13788 \family default
13789  or meaningful combinations of these and the counterclockwise rotation angle
13790  is expressed in degrees.
13791  For example:
13792 \end_layout
13793
13794 \begin_layout Standard
13795
13796 \change_inserted 564990737 1671829045
13797
13798 \lang american
13799 \begin_inset Flex Rotatebox
13800 status open
13801
13802 \begin_layout Plain Layout
13803
13804 \change_inserted 564990737 1671829045
13805
13806 \lang american
13807 \begin_inset Argument 1
13808 status open
13809
13810 \begin_layout Plain Layout
13811
13812 \change_inserted 564990737 1671829045
13813
13814 \lang british
13815 =c
13816 \change_unchanged
13817
13818 \end_layout
13819
13820 \end_inset
13821
13822
13823 \begin_inset Argument 2
13824 status open
13825
13826 \begin_layout Plain Layout
13827
13828 \change_inserted 564990737 1671829045
13829
13830 \lang british
13831 30
13832 \change_unchanged
13833
13834 \end_layout
13835
13836 \end_inset
13837
13838 Great Western Railway
13839 \change_unchanged
13840
13841 \end_layout
13842
13843 \end_inset
13844
13845
13846 \end_layout
13847
13848 \begin_layout Standard
13849
13850 \change_inserted 564990737 1671829045
13851
13852 \lang american
13853 You can combine boxes as in:
13854 \end_layout
13855
13856 \begin_layout Standard
13857
13858 \change_inserted 564990737 1671829045
13859
13860 \lang british
13861 \begin_inset Flex Rotatebox
13862 status open
13863
13864 \begin_layout Plain Layout
13865
13866 \change_inserted 564990737 1671829045
13867
13868 \lang british
13869 \begin_inset Argument 1
13870 status open
13871
13872 \begin_layout Plain Layout
13873
13874 \change_inserted 564990737 1671829045
13875
13876 \lang british
13877 =c
13878 \change_unchanged
13879
13880 \end_layout
13881
13882 \end_inset
13883
13884
13885 \begin_inset Argument 2
13886 status open
13887
13888 \begin_layout Plain Layout
13889
13890 \change_inserted 564990737 1671829045
13891
13892 \lang british
13893 -15
13894 \change_unchanged
13895
13896 \end_layout
13897
13898 \end_inset
13899
13900
13901 \begin_inset Flex Resizebox
13902 status open
13903
13904 \begin_layout Plain Layout
13905
13906 \change_inserted 564990737 1671829045
13907
13908 \lang british
13909 \begin_inset Argument 1
13910 status open
13911
13912 \begin_layout Plain Layout
13913
13914 \change_inserted 564990737 1671829045
13915
13916 \lang british
13917 48mm
13918 \change_unchanged
13919
13920 \end_layout
13921
13922 \end_inset
13923
13924
13925 \begin_inset Argument 2
13926 status open
13927
13928 \begin_layout Plain Layout
13929
13930 \change_inserted 564990737 1671829045
13931
13932 \lang british
13933 !
13934 \change_unchanged
13935
13936 \end_layout
13937
13938 \end_inset
13939
13940
13941 \begin_inset Flex Reflectbox
13942 status open
13943
13944 \begin_layout Plain Layout
13945
13946 \change_inserted 564990737 1671829045
13947
13948 \lang british
13949 Great Western Railway
13950 \change_unchanged
13951
13952 \end_layout
13953
13954 \end_inset
13955
13956
13957 \change_unchanged
13958
13959 \end_layout
13960
13961 \end_inset
13962
13963
13964 \change_unchanged
13965
13966 \end_layout
13967
13968 \end_inset
13969
13970
13971 \end_layout
13972
13973 \begin_layout Standard
13974
13975 \change_inserted 564990737 1671829045
13976
13977 \family sans
13978 \lang american
13979 Scalebox
13980 \family default
13981  scales text; select Insert\SpecialChar menuseparator
13982 V-Factor to add a vertical factor.
13983  If the vertical factor is omitted, the horizontal is used.
13984  Adding different horizontal and vertical values creates distortion as in
13985  
13986 \end_layout
13987
13988 \begin_layout Standard
13989
13990 \change_inserted 564990737 1671829045
13991
13992 \family typewriter
13993 \lang american
13994 \begin_inset Flex Scalebox
13995 status open
13996
13997 \begin_layout Plain Layout
13998
13999 \change_inserted 564990737 1671829045
14000
14001 \lang american
14002 \begin_inset Argument 1
14003 status open
14004
14005 \begin_layout Plain Layout
14006
14007 \change_inserted 564990737 1671829045
14008
14009 \lang american
14010 2
14011 \change_unchanged
14012
14013 \end_layout
14014
14015 \end_inset
14016
14017
14018 \begin_inset Argument 2
14019 status open
14020
14021 \begin_layout Plain Layout
14022
14023 \change_inserted 564990737 1671829045
14024
14025 \lang american
14026 1.5
14027 \change_unchanged
14028
14029 \end_layout
14030
14031 \end_inset
14032
14033
14034 \family roman
14035 Great Western Railway
14036 \change_unchanged
14037
14038 \end_layout
14039
14040 \end_inset
14041
14042 .
14043 \end_layout
14044
14045 \begin_layout Standard
14046
14047 \change_inserted 564990737 1671829045
14048
14049 \lang american
14050 A negative horizontal value reverses the text and a negative vertical value
14051  inverts it so that you get 
14052 \end_layout
14053
14054 \begin_layout Standard
14055
14056 \change_inserted 564990737 1671829045
14057
14058 \lang american
14059 \begin_inset Flex Scalebox
14060 status open
14061
14062 \begin_layout Plain Layout
14063
14064 \change_inserted 564990737 1671829045
14065
14066 \lang american
14067 \begin_inset Argument 1
14068 status open
14069
14070 \begin_layout Plain Layout
14071
14072 \change_inserted 564990737 1671829045
14073
14074 \lang british
14075 -1
14076 \change_unchanged
14077
14078 \end_layout
14079
14080 \end_inset
14081
14082
14083 \begin_inset Argument 2
14084 status open
14085
14086 \begin_layout Plain Layout
14087
14088 \change_inserted 564990737 1671829045
14089
14090 \lang british
14091 1
14092 \change_unchanged
14093
14094 \end_layout
14095
14096 \end_inset
14097
14098 Great Western Railway
14099 \change_unchanged
14100
14101 \end_layout
14102
14103 \end_inset
14104
14105  and 
14106 \begin_inset Flex Scalebox
14107 status open
14108
14109 \begin_layout Plain Layout
14110
14111 \change_inserted 564990737 1671829045
14112
14113 \lang american
14114 \begin_inset Argument 1
14115 status open
14116
14117 \begin_layout Plain Layout
14118
14119 \change_inserted 564990737 1671829045
14120
14121 \lang british
14122 1
14123 \change_unchanged
14124
14125 \end_layout
14126
14127 \end_inset
14128
14129
14130 \begin_inset Argument 2
14131 status open
14132
14133 \begin_layout Plain Layout
14134
14135 \change_inserted 564990737 1671829045
14136
14137 \lang british
14138 -1
14139 \change_unchanged
14140
14141 \end_layout
14142
14143 \end_inset
14144
14145 Great Western Railway
14146 \change_unchanged
14147
14148 \end_layout
14149
14150 \end_inset
14151
14152 .
14153 \end_layout
14154
14155 \begin_layout Subsection
14156
14157 \change_inserted 564990737 1671884699
14158
14159 \lang american
14160 Section Boxes
14161 \end_layout
14162
14163 \begin_layout Standard
14164
14165 \change_inserted 564990737 1671884699
14166
14167 \lang american
14168 This module defines Boxes with section header.
14169  It is mainly intended for the SciPoster Document class.
14170  
14171 \end_layout
14172
14173 \begin_layout Subsection
14174
14175 \change_inserted 564990737 1671884699
14176
14177 \lang american
14178 Variable-width Minipages
14179 \end_layout
14180
14181 \begin_layout Standard
14182
14183 \change_inserted 564990737 1671884699
14184
14185 \lang american
14186 This module adds a 
14187 \family sans
14188 Minipage (Var.
14189 \begin_inset space \thinspace{}
14190 \end_inset
14191
14192 Width)
14193 \family default
14194  inset to 
14195 \family sans
14196 Insert\SpecialChar menuseparator
14197 Custom Inset
14198 \family default
14199  using the 
14200 \family sans
14201 varwidth
14202 \family default
14203  LaTeX package.
14204  The 
14205 \family sans
14206 varwidth
14207 \family default
14208  package provides a variable-width minipage, whose resulting width is the
14209  width of its contents (if this does not exceed the specified maximum width).
14210  The inset has two optional arguments which can be added by placing the
14211  cursor inside the minipage and entering 
14212 \family sans
14213 Insert\SpecialChar menuseparator
14214 Vert.
14215 \begin_inset space \thinspace{}
14216 \end_inset
14217
14218 Adjustment
14219 \family default
14220  (
14221 \family typewriter
14222 c|t|b
14223 \family default
14224 ) or 
14225 \family sans
14226 Insert\SpecialChar menuseparator
14227 Max.
14228 \begin_inset space \thinspace{}
14229 \end_inset
14230
14231 Width
14232 \family default
14233  (defaults to 
14234 \family typewriter
14235
14236 \backslash
14237 linewidth
14238 \family default
14239 ).
14240  See 
14241 \family sans
14242 File\SpecialChar menuseparator
14243 Open Example\SpecialChar menuseparator
14244 Variable-width Minipages
14245 \family default
14246 .
14247  
14248 \end_layout
14249
14250 \begin_layout Section
14251
14252 \change_inserted 564990737 1671884699
14253
14254 \lang american
14255 Fixes & Hacks
14256 \end_layout
14257
14258 \begin_layout Subsection
14259
14260 \change_inserted 564990737 1671884699
14261
14262 \lang american
14263 Fix Computer Modern Fonts
14264 \end_layout
14265
14266 \begin_layout Standard
14267
14268 \change_inserted 564990737 1671884699
14269
14270 \lang american
14271 This module uses the 
14272 \family sans
14273 fix-cm
14274 \family default
14275  package to improve the appearance of Computer Modern fonts and make them
14276  available with arbitrary sizes.
14277  See the 
14278 \begin_inset CommandInset href
14279 LatexCommand href
14280 name "fix-cm documentation"
14281 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
14282 literal "false"
14283
14284 \end_inset
14285
14286 .
14287  
14288 \end_layout
14289
14290 \begin_layout Subsection
14291
14292 \change_inserted 564990737 1671884699
14293
14294 \lang american
14295 \SpecialChar LaTeX
14296  Kernel Fixes (Obsolete)
14297 \end_layout
14298
14299 \begin_layout Standard
14300
14301 \change_inserted 564990737 1671884699
14302
14303 \lang american
14304 This module loads the \SpecialChar LaTeX
14305  package 
14306 \family sans
14307 fixltx2e
14308 \family default
14309  which contains some bug fixes for \SpecialChar LaTeX
14310 .
14311  If you use this module your typeset document may look different when you
14312  process it, depending on the respective version of 
14313 \family sans
14314 fixltx2e
14315 \family default
14316 .
14317  
14318 \end_layout
14319
14320 \begin_layout Paragraph
14321
14322 \change_inserted 564990737 1671884699
14323
14324 \lang american
14325 Note:
14326 \end_layout
14327
14328 \begin_layout Standard
14329
14330 \change_inserted 564990737 1671884699
14331
14332 \lang american
14333 recent \SpecialChar LaTeX
14334  kernels (as of 2015/01/01) include the functionality of 
14335 \family sans
14336 fixltx2e
14337 \family default
14338 , so the 
14339 \family sans
14340 fixltx2e
14341 \family default
14342  module is obsolete with newer \SpecialChar LaTeX
14343  distributions.
14344  
14345 \end_layout
14346
14347 \begin_layout Subsection
14348
14349 \change_inserted 564990737 1671884699
14350
14351 \lang american
14352 Minimalistic Insets
14353 \end_layout
14354
14355 \begin_layout Standard
14356
14357 \change_inserted 564990737 1671884699
14358
14359 \lang american
14360 This module redefines several insets (Index, Branch, URL) as being Minimalistic.
14361 \end_layout
14362
14363 \begin_layout Subsection
14364
14365 \change_inserted 564990737 1671884699
14366
14367 \lang american
14368 Title and Preamble Hacks
14369 \end_layout
14370
14371 \begin_layout Standard
14372
14373 \change_inserted 564990737 1671884699
14374
14375 \lang american
14376 This module provides two new paragraph styles: 
14377 \end_layout
14378
14379 \begin_layout Enumerate
14380
14381 \change_inserted 564990737 1671884699
14382
14383 \family sans
14384 \lang american
14385 In Preamble
14386 \family default
14387  which puts whatever is entered into it into the preamble.
14388  This can be used, if one wishes, to include preamble code in the body of
14389  a LyX document.
14390  
14391 \end_layout
14392
14393 \begin_layout Enumerate
14394
14395 \change_inserted 564990737 1671884699
14396
14397 \family sans
14398 \lang american
14399 In Title
14400 \family default
14401  which that will put its contents into the body of the LaTeX document, but
14402  before 
14403 \family typewriter
14404
14405 \backslash
14406 maketitle
14407 \family default
14408  is issued.
14409  This is useful for making branches and notes in title-related material.
14410  (However, if you put these in a Standard layout, this signals to LyX to
14411  output 
14412 \family typewriter
14413
14414 \backslash
14415 maketitle
14416 \family default
14417 , which may then come too early.)
14418 \end_layout
14419
14420 \begin_layout Section
14421
14422 \change_inserted 564990737 1672081439
14423
14424 \lang american
14425 Floats & captions
14426 \end_layout
14427
14428 \begin_layout Subsection
14429
14430 \change_inserted 564990737 1672081439
14431
14432 \lang american
14433 Algorithm2e Float
14434 \end_layout
14435
14436 \begin_layout Standard
14437
14438 \change_inserted 564990737 1672081439
14439
14440 \lang american
14441 This module uses the 
14442 \family sans
14443 algorithm2e
14444 \family default
14445  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
14446  Use the Algorithm paragraph style to enter and indent the algorithm.
14447  See the 
14448 \begin_inset CommandInset href
14449 LatexCommand href
14450 name "algorithm2e documentation"
14451 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
14452 literal "false"
14453
14454 \end_inset
14455
14456 .
14457 \end_layout
14458
14459 \begin_layout Subsection
14460
14461 \change_inserted 564990737 1672081439
14462
14463 \lang american
14464 Bilingual Captions AKA Multilingual Captions
14465 \end_layout
14466
14467 \begin_layout Standard
14468
14469 \change_inserted 564990737 1672081439
14470
14471 \lang american
14472 This module provides the paragraph style 
14473 \family sans
14474 Caption
14475 \begin_inset space ~
14476 \end_inset
14477
14478 setup
14479 \family default
14480  with which to typeset multilingual captions.
14481  Within this paragraph style 
14482 \family sans
14483 Insert\SpecialChar menuseparator
14484 Language
14485 \family default
14486  allows you to enter the desired language using one of the babel names.
14487  See 
14488 \family sans
14489 File\SpecialChar menuseparator
14490 Open Example\SpecialChar menuseparator
14491 Multilingual Captions
14492 \family default
14493  and 
14494 \family sans
14495 Help\SpecialChar menuseparator
14496 Specific Manuals\SpecialChar menuseparator
14497 Multilingual Captions
14498 \family default
14499  further information on its use.
14500 \end_layout
14501
14502 \begin_layout Subsection
14503
14504 \change_inserted 564990737 1672081439
14505
14506 \lang american
14507 Number Figures by Section
14508 \end_layout
14509
14510 \begin_layout Standard
14511
14512 \change_inserted 564990737 1672081439
14513
14514 \lang american
14515 This module resets the figure number at section start and prepends the section
14516  number to the figure number, as in “Figure 2.1.” (By default book and report
14517  document classes number by Chapter and article document classes have a
14518  single sequence.) 
14519 \end_layout
14520
14521 \begin_layout Subsection
14522
14523 \change_inserted 564990737 1672081439
14524
14525 \lang american
14526 Number Tables by Section
14527 \end_layout
14528
14529 \begin_layout Standard
14530
14531 \change_inserted 564990737 1672081439
14532
14533 \lang american
14534 This module resets the table number at section start and prepends the section
14535  number to the table number, as in “Table 2.1.” (By default book and report
14536  document classes number by Chapter and article document classes have a
14537  single sequence.) 
14538 \end_layout
14539
14540 \begin_layout Section
14541
14542 \change_inserted 564990737 1672081439
14543
14544 \lang american
14545 Foot- and Endnotes
14546 \end_layout
14547
14548 \begin_layout Subsection
14549
14550 \change_inserted 564990737 1672081439
14551
14552 \lang american
14553 Endnotes (Basic)
14554 \end_layout
14555
14556 \begin_layout Standard
14557
14558 \change_inserted 564990737 1672081439
14559
14560 \lang american
14561 This module adds an endnote inset, in addition to footnotes.
14562  This uses the 
14563 \family sans
14564 endnotes
14565 \family default
14566  package, which has some limitations but works with older LaTeX distributions
14567  as well.
14568  Use 
14569 \family sans
14570 Insert\SpecialChar menuseparator
14571 Custom Inset\SpecialChar menuseparator
14572 Endnote
14573 \family default
14574  to insert an endnote and 
14575 \family sans
14576 Insert\SpecialChar menuseparator
14577 List/Contents/References\SpecialChar menuseparator
14578 Endnotes
14579 \family default
14580  to insert the endnotes list where you want the endnotes to appear.
14581  See also 
14582 \family sans
14583 Help\SpecialChar menuseparator
14584 Embedded\SpecialChar menuseparator
14585  Objects\SpecialChar menuseparator
14586 Notes\SpecialChar menuseparator
14587 Footnotes
14588 \family default
14589 .
14590 \end_layout
14591
14592 \begin_layout Subsection
14593
14594 \change_inserted 564990737 1672081439
14595
14596 \lang american
14597 Endnotes (Extended)
14598 \end_layout
14599
14600 \begin_layout Standard
14601
14602 \change_inserted 564990737 1672081439
14603
14604 \lang american
14605 This module adds an endnote inset, in addition to footnotes.
14606  This uses the 
14607 \family sans
14608 enotez
14609 \family default
14610  package which is more powerful and customizable than the 
14611 \family sans
14612 endnotes
14613 \family default
14614  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14615  Use 
14616 \family sans
14617 Insert\SpecialChar menuseparator
14618 Custom Inset\SpecialChar menuseparator
14619 Endnote
14620 \family default
14621  to insert an endnote and 
14622 \family sans
14623 Insert\SpecialChar menuseparator
14624 List/Contents/References\SpecialChar menuseparator
14625 Endnotes
14626 \family default
14627  to insert the endnotes list where you want the endnotes to appear.
14628  See also 
14629 \family sans
14630 Help\SpecialChar menuseparator
14631 Embedded\SpecialChar menuseparator
14632  Objects\SpecialChar menuseparator
14633 Notes\SpecialChar menuseparator
14634 Footnotes
14635 \family default
14636 .
14637 \end_layout
14638
14639 \begin_layout Subsection
14640
14641 \change_inserted 564990737 1672081439
14642
14643 \lang american
14644 Footnotes as Endnotes (Basic)
14645 \end_layout
14646
14647 \begin_layout Standard
14648
14649 \change_inserted 564990737 1672081439
14650
14651 \lang american
14652 This module sets all footnotes as endnotes.
14653  This uses the 
14654 \family sans
14655 endnotes
14656 \family default
14657  package, which has some limitations but works with older LaTeX distributions
14658  as well.
14659  Use 
14660 \family sans
14661 Insert\SpecialChar menuseparator
14662 List/Contents/References\SpecialChar menuseparator
14663 Endnotes
14664 \family default
14665  to insert the endnotes list where you want the endnotes to appear.
14666  See also 
14667 \family sans
14668 Help\SpecialChar menuseparator
14669 Embedded\SpecialChar menuseparator
14670  Objects\SpecialChar menuseparator
14671 Notes\SpecialChar menuseparator
14672 Footnotes
14673 \family default
14674 .
14675 \end_layout
14676
14677 \begin_layout Subsection
14678
14679 \change_inserted 564990737 1672081439
14680
14681 \lang american
14682 Footnotes as Endnotes (Extended)
14683 \end_layout
14684
14685 \begin_layout Standard
14686
14687 \change_inserted 564990737 1672081439
14688
14689 \lang american
14690 This module sets all footnotes as endnotes.
14691  This uses the 
14692 \family sans
14693 enotez
14694 \family default
14695  package which is more powerful and customizable than then 
14696 \family sans
14697 endnotes
14698 \family default
14699  package, but requires a fairly modern LaTeX distribution (with LaTeX3).
14700  Use 
14701 \family sans
14702 Insert\SpecialChar menuseparator
14703 List/Contents/References\SpecialChar menuseparator
14704 Endnotes
14705 \family default
14706  to insert the endnotes list where you want the endnotes to appear.
14707  See also 
14708 \family sans
14709 Help\SpecialChar menuseparator
14710 Embedded\SpecialChar menuseparator
14711  Objects\SpecialChar menuseparator
14712 Notes\SpecialChar menuseparator
14713 Footnotes
14714 \family default
14715 .
14716 \end_layout
14717
14718 \begin_layout Section
14719
14720 \change_inserted 564990737 1672081439
14721
14722 \lang american
14723 Leisure, Sports and Music
14724 \end_layout
14725
14726 \begin_layout Subsection
14727
14728 \change_inserted 564990737 1672081439
14729
14730 \lang american
14731 Chess Board
14732 \end_layout
14733
14734 \begin_layout Standard
14735
14736 \change_inserted 564990737 1672081439
14737
14738 \lang american
14739 This module provides support for the 
14740 \family sans
14741 chessboard
14742 \family default
14743  package to print chess games.
14744  See 
14745 \family sans
14746 File\SpecialChar menuseparator
14747 Open Example\SpecialChar menuseparator
14748 Articles\SpecialChar menuseparator
14749 Chess
14750 \family default
14751  where you will find 
14752 \family sans
14753 Game 1
14754 \family default
14755  and 
14756 \family sans
14757 Game 2
14758 \family default
14759  and the 
14760 \begin_inset CommandInset href
14761 LatexCommand href
14762 name "chessboard documentation"
14763 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
14764 literal "false"
14765
14766 \end_inset
14767
14768 .
14769 \end_layout
14770
14771 \begin_layout Subsection
14772
14773 \change_inserted 564990737 1672081439
14774
14775 \lang american
14776 Lilypond Music Notation
14777 \end_layout
14778
14779 \begin_layout Standard
14780
14781 \change_inserted 564990737 1672081439
14782
14783 \lang american
14784 This module provides an inset via 
14785 \family sans
14786 \bar under
14787 I
14788 \bar default
14789 nsert\SpecialChar menuseparator
14790 Custom Inset\SpecialChar menuseparator
14791 Lilypond
14792 \family default
14793  in which to enter code for the LilyPond music editor.
14794  It will then be processed in the output.
14795  See 
14796 \family sans
14797 Help\SpecialChar menuseparator
14798 Specific Manuals\SpecialChar menuseparator
14799 Lilypond
14800 \family default
14801  and 
14802 \family sans
14803 File\SpecialChar menuseparator
14804 Open Example\SpecialChar menuseparator
14805 Modules\SpecialChar menuseparator
14806 Lilypond Book
14807 \family default
14808 .
14809  It cannot be used if the modules 
14810 \family sans
14811 Rnw
14812 \begin_inset space \thinspace{}
14813 \end_inset
14814
14815 (knitr) or Sweave
14816 \family default
14817  have been loaded.
14818 \end_layout
14819
14820 \begin_layout Section
14821
14822 \change_inserted 564990737 1672138150
14823
14824 \lang american
14825 List enhancements
14826 \end_layout
14827
14828 \begin_layout Subsection
14829
14830 \change_inserted 564990737 1672138150
14831
14832 \lang american
14833 Customizable Lists
14834 \begin_inset CommandInset label
14835 LatexCommand label
14836 name "subsec:Customizable-Lists"
14837
14838 \end_inset
14839
14840
14841 \end_layout
14842
14843 \begin_layout Standard
14844
14845 \change_inserted 564990737 1672138150
14846
14847 \lang american
14848 This module uses the
14849 \family sans
14850  enumitem
14851 \family default
14852  package to enable the customization of various list environments.
14853 \end_layout
14854
14855 \begin_layout Subsubsection
14856
14857 \change_inserted 564990737 1672138150
14858
14859 \lang american
14860 Custom Enumerate Lists
14861 \end_layout
14862
14863 \begin_layout Standard
14864 \noindent
14865
14866 \change_inserted 564990737 1672138150
14867
14868 \lang american
14869 The default numbering of numbered lists can be changed by adding an optional
14870  argument (menu 
14871 \family sans
14872 \bar under
14873 I
14874 \bar default
14875 nsert\SpecialChar menuseparator
14876
14877 \bar under
14878 S
14879 \bar default
14880 hort Title
14881 \family default
14882 ) to the first item of each level in the list.
14883  There you add the command
14884 \end_layout
14885
14886 \begin_layout Standard
14887
14888 \change_inserted 564990737 1672138150
14889
14890 \family sans
14891 \lang american
14892 label=
14893 \backslash
14894 roman{enumi}
14895 \end_layout
14896
14897 \begin_layout Standard
14898
14899 \change_inserted 564990737 1672138150
14900
14901 \lang american
14902 in \SpecialChar TeX
14903  Code (shortcut 
14904 \begin_inset Info
14905 type  "shortcut"
14906 arg   "ert-insert"
14907 \end_inset
14908
14909 ).
14910 \end_layout
14911
14912 \begin_layout Standard
14913
14914 \change_inserted 564990737 1672138150
14915
14916 \family sans
14917 \lang american
14918 enumi
14919 \family default
14920  is the first level counter of the enumeration.
14921  To change the numbering for the list sublevels, replace the “
14922 \family sans
14923 i
14924 \family default
14925 ” in the command by the small Roman numeral of the level (
14926 \family sans
14927 enumi
14928 \family default
14929
14930 \family sans
14931 enumii
14932 \family default
14933
14934 \family sans
14935 enumiii
14936 \family default
14937
14938 \family sans
14939 enumiv
14940 \family default
14941 ).
14942 \end_layout
14943
14944 \begin_layout Standard
14945
14946 \change_inserted 564990737 1672138150
14947
14948 \lang american
14949 The command 
14950 \family sans
14951
14952 \backslash
14953 roman
14954 \family default
14955  outputs the counter as a small Roman numeral.
14956  For capital Roman numerals replace 
14957 \family sans
14958
14959 \backslash
14960 roman
14961 \family default
14962  with 
14963 \family sans
14964
14965 \backslash
14966 Roman
14967 \family default
14968  in the command above.
14969  For Arabic numerals use 
14970 \family sans
14971
14972 \backslash
14973 arabic
14974 \family default
14975 .
14976  To 
14977 \begin_inset Quotes eld
14978 \end_inset
14979
14980 number
14981 \begin_inset Quotes erd
14982 \end_inset
14983
14984  items with capital or small Latin letters use 
14985 \family sans
14986
14987 \backslash
14988 Alph
14989 \family default
14990  or 
14991 \family sans
14992
14993 \backslash
14994 alph
14995 \family default
14996 , respectively.
14997 \end_layout
14998
14999 \begin_layout Standard
15000 \noindent
15001
15002 \change_inserted 564990737 1672138150
15003
15004 \lang american
15005 \begin_inset Note Greyedout
15006 status collapsed
15007
15008 \begin_layout Plain Layout
15009
15010 \change_inserted 564990737 1672138150
15011
15012 \series bold
15013 \lang american
15014 Note:
15015 \series default
15016  You can only number 26
15017 \begin_inset space ~
15018 \end_inset
15019
15020 items with Latin letters, because this numbering is limited to single letters.
15021 \end_layout
15022
15023 \end_inset
15024
15025
15026 \end_layout
15027
15028 \begin_layout Standard
15029
15030 \change_inserted 564990737 1672138150
15031
15032 \lang american
15033 Here is a list with custom numbering:
15034 \end_layout
15035
15036 \begin_layout Enumerate
15037
15038 \change_inserted 564990737 1672138150
15039
15040 \lang american
15041 \begin_inset Argument 1
15042 status collapsed
15043
15044 \begin_layout Plain Layout
15045
15046 \change_inserted 564990737 1672138150
15047
15048 \lang american
15049 \begin_inset ERT
15050 status collapsed
15051
15052 \begin_layout Plain Layout
15053
15054 \change_inserted 564990737 1672138150
15055
15056 label=
15057 \backslash
15058 #
15059 \backslash
15060 Alph{enumi}
15061 \backslash
15062 #
15063 \end_layout
15064
15065 \end_inset
15066
15067
15068 \change_unchanged
15069
15070 \end_layout
15071
15072 \end_inset
15073
15074 Level 1
15075 \begin_inset Separator latexpar
15076 \end_inset
15077
15078
15079 \end_layout
15080
15081 \begin_deeper
15082 \begin_layout Enumerate
15083
15084 \change_inserted 564990737 1672138150
15085
15086 \lang american
15087 \begin_inset Argument 1
15088 status collapsed
15089
15090 \begin_layout Plain Layout
15091
15092 \change_inserted 564990737 1672138150
15093
15094 \lang american
15095 \begin_inset ERT
15096 status collapsed
15097
15098 \begin_layout Plain Layout
15099
15100 \change_inserted 564990737 1672138150
15101
15102 label=
15103 \backslash
15104 Alph{enumi}.
15105 \backslash
15106 arabic{enumii}
15107 \end_layout
15108
15109 \end_inset
15110
15111
15112 \change_unchanged
15113
15114 \end_layout
15115
15116 \end_inset
15117
15118 Level 2
15119 \end_layout
15120
15121 \begin_layout Enumerate
15122
15123 \change_inserted 564990737 1672138150
15124
15125 \lang american
15126 Level 2
15127 \begin_inset Separator latexpar
15128 \end_inset
15129
15130
15131 \end_layout
15132
15133 \begin_deeper
15134 \begin_layout Enumerate
15135
15136 \change_inserted 564990737 1672138150
15137
15138 \lang american
15139 \begin_inset Argument 1
15140 status collapsed
15141
15142 \begin_layout Plain Layout
15143
15144 \change_inserted 564990737 1672138150
15145
15146 \lang american
15147 \begin_inset ERT
15148 status collapsed
15149
15150 \begin_layout Plain Layout
15151
15152 \change_inserted 564990737 1672138150
15153
15154 label=
15155 \backslash
15156 bf{
15157 \backslash
15158 arabic{enumiii}}
15159 \end_layout
15160
15161 \end_inset
15162
15163
15164 \change_unchanged
15165
15166 \end_layout
15167
15168 \end_inset
15169
15170 Level 3
15171 \begin_inset Separator latexpar
15172 \end_inset
15173
15174
15175 \end_layout
15176
15177 \begin_deeper
15178 \begin_layout Enumerate
15179
15180 \change_inserted 564990737 1672138150
15181
15182 \lang american
15183 \begin_inset Argument 1
15184 status collapsed
15185
15186 \begin_layout Plain Layout
15187
15188 \change_inserted 564990737 1672138150
15189
15190 \lang american
15191 \begin_inset ERT
15192 status collapsed
15193
15194 \begin_layout Plain Layout
15195
15196 \change_inserted 564990737 1672138150
15197
15198 label=
15199 \backslash
15200 emph{
15201 \backslash
15202 roman{enumiv})}
15203 \end_layout
15204
15205 \end_inset
15206
15207
15208 \change_unchanged
15209
15210 \end_layout
15211
15212 \end_inset
15213
15214 Level 4
15215 \end_layout
15216
15217 \end_deeper
15218 \end_deeper
15219 \end_deeper
15220 \begin_layout Standard
15221
15222 \change_inserted 564990737 1672138150
15223
15224 \lang american
15225 For this list these commands were used:
15226 \end_layout
15227
15228 \begin_layout Standard
15229 \noindent
15230
15231 \change_inserted 564990737 1672138150
15232
15233 \family sans
15234 \lang american
15235 label=
15236 \backslash
15237 #
15238 \backslash
15239 Alph{enumi}
15240 \backslash
15241 #
15242 \begin_inset Newline newline
15243 \end_inset
15244
15245 label=
15246 \backslash
15247 Alph{enumi}.
15248 \backslash
15249 arabic{enumii}
15250 \begin_inset Newline newline
15251 \end_inset
15252
15253 label=
15254 \backslash
15255 bf{
15256 \backslash
15257 arabic{enumiii}}
15258 \begin_inset Newline newline
15259 \end_inset
15260
15261 label=
15262 \backslash
15263 emph{
15264 \backslash
15265 roman{enumiv})}
15266 \end_layout
15267
15268 \begin_layout Standard
15269
15270 \change_inserted 564990737 1672138150
15271
15272 \lang american
15273 where the command 
15274 \family sans
15275
15276 \backslash
15277 emph{}
15278 \family default
15279  makes the label emphasized and 
15280 \family sans
15281
15282 \backslash
15283 bf{}
15284 \family default
15285  makes it bold.
15286 \end_layout
15287
15288 \begin_layout Standard
15289
15290 \change_inserted 564990737 1672138150
15291
15292 \lang american
15293 \begin_inset Note Greyedout
15294 status collapsed
15295
15296 \begin_layout Plain Layout
15297
15298 \change_inserted 564990737 1672138150
15299
15300 \series bold
15301 \lang american
15302 Note:
15303 \series default
15304  When you change the label of a list level, it will be used for all following
15305  lists until you change the definition.
15306 \end_layout
15307
15308 \end_inset
15309
15310
15311 \end_layout
15312
15313 \begin_layout Standard
15314
15315 \change_inserted 564990737 1672138150
15316
15317 \lang british
15318 \begin_inset ERT
15319 status open
15320
15321 \begin_layout Plain Layout
15322
15323 \change_inserted 564990737 1672138150
15324
15325
15326 \backslash
15327 renewcommand{
15328 \backslash
15329 labelenumi}{
15330 \backslash
15331 thesection.
15332 \backslash
15333 arabic{enumi}}
15334 \end_layout
15335
15336 \end_inset
15337
15338
15339 \end_layout
15340
15341 \begin_layout Subsubsection
15342
15343 \change_inserted 564990737 1672138150
15344
15345 \lang american
15346 Numbered Paragraphs in Reports
15347 \end_layout
15348
15349 \begin_layout Enumerate
15350
15351 \change_inserted 564990737 1672138213
15352
15353 \lang american
15354 Official reports often include numbered paragraphs; you can achieve this
15355  with a variation on the approach outlined in the footnote
15356 \begin_inset space ~
15357 \end_inset
15358
15359
15360 \begin_inset CommandInset ref
15361 LatexCommand ref
15362 reference "fn:If-you-really"
15363 plural "false"
15364 caps "false"
15365 noprefix "false"
15366
15367 \end_inset
15368
15369 .
15370  Replace 
15371 \family sans
15372 item
15373 \family default
15374  in each command with 
15375 \family sans
15376 enum
15377 \family default
15378 .
15379 \end_layout
15380
15381 \begin_layout Enumerate
15382
15383 \change_inserted 564990737 1672138150
15384
15385 \lang american
15386 These numbered paragraphs were generated by inserting the \SpecialChar TeX
15387  Code
15388 \begin_inset Separator latexpar
15389 \end_inset
15390
15391
15392 \end_layout
15393
15394 \begin_deeper
15395 \begin_layout Standard
15396
15397 \change_inserted 564990737 1672138150
15398
15399 \family sans
15400 \lang american
15401
15402 \backslash
15403 renewcommand{
15404 \backslash
15405 labelenumi}{
15406 \backslash
15407 thesection.
15408 \backslash
15409 arabic{enumi}}
15410 \end_layout
15411
15412 \begin_layout Standard
15413
15414 \change_inserted 564990737 1672138150
15415
15416 \lang american
15417 before the start of the section; 
15418 \family sans
15419
15420 \backslash
15421 thesection
15422 \family default
15423  uses the \SpecialChar LaTeX
15424  section counter to generate the first part of the number.
15425 \end_layout
15426
15427 \end_deeper
15428 \begin_layout Enumerate
15429
15430 \change_inserted 564990737 1672138150
15431
15432 \lang american
15433 I have ignored the subsection heading in this example because, with paragraphs
15434  numbered in this way, subsections are less likely to be used.
15435 \end_layout
15436
15437 \begin_layout Subsubsection
15438
15439 \change_inserted 564990737 1672138150
15440
15441 \lang american
15442 Resumed Enumeration
15443 \end_layout
15444
15445 \begin_layout Standard
15446
15447 \change_inserted 564990737 1672138150
15448
15449 \lang british
15450 \begin_inset ERT
15451 status open
15452
15453 \begin_layout Plain Layout
15454
15455 \change_inserted 564990737 1672138150
15456
15457
15458 \backslash
15459 renewcommand{
15460 \backslash
15461 labelenumi}{
15462 \backslash
15463 arabic{enumi}}
15464 \end_layout
15465
15466 \end_inset
15467
15468
15469 \end_layout
15470
15471 \begin_layout Standard
15472
15473 \change_inserted 564990737 1672138150
15474
15475 \lang american
15476 Enumerations can be resumed after intermediate paragraphs:
15477 \end_layout
15478
15479 \begin_layout Enumerate
15480
15481 \change_inserted 564990737 1672138150
15482
15483 \lang american
15484 \begin_inset Argument 1
15485 status collapsed
15486
15487 \begin_layout Plain Layout
15488
15489 \change_inserted 564990737 1672138150
15490
15491 \lang american
15492 \begin_inset ERT
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496
15497 \change_inserted 564990737 1672138150
15498
15499 label=
15500 \backslash
15501 arabic{enumi}.
15502 \end_layout
15503
15504 \end_inset
15505
15506
15507 \change_unchanged
15508
15509 \end_layout
15510
15511 \end_inset
15512
15513 first
15514 \begin_inset Note Note
15515 status collapsed
15516
15517 \begin_layout Plain Layout
15518
15519 \change_inserted 564990737 1672138150
15520
15521 \lang american
15522 goes back to default numbering
15523 \end_layout
15524
15525 \end_inset
15526
15527
15528 \end_layout
15529
15530 \begin_layout Enumerate
15531
15532 \change_inserted 564990737 1672138150
15533
15534 \lang american
15535 second
15536 \end_layout
15537
15538 \begin_layout Standard
15539
15540 \change_inserted 564990737 1672138150
15541
15542 \lang american
15543 regular text
15544 \end_layout
15545
15546 \begin_layout Enumerate-Resume
15547
15548 \change_inserted 564990737 1672138150
15549
15550 \lang american
15551 resumed
15552 \end_layout
15553
15554 \begin_layout Standard
15555
15556 \change_inserted 564990737 1672138150
15557
15558 \lang american
15559 To resume an enumeration, use the style 
15560 \family sans
15561 Enumerate-Resume
15562 \family default
15563 .
15564  Its numbering appears in blue within \SpecialChar LyX
15565  to indicate that it is a resumed
15566  list and that the numbering will not be correct in \SpecialChar LyX
15567 , but in the output.
15568 \end_layout
15569
15570 \begin_layout Standard
15571
15572 \change_inserted 564990737 1672138150
15573
15574 \lang american
15575 \begin_inset Note Greyedout
15576 status collapsed
15577
15578 \begin_layout Plain Layout
15579
15580 \change_inserted 564990737 1672138150
15581
15582 \series bold
15583 \lang american
15584 Note:
15585 \series default
15586  If there is no previous enumeration to resume, you will get a \SpecialChar LaTeX
15587  error.
15588 \end_layout
15589
15590 \end_inset
15591
15592
15593 \end_layout
15594
15595 \begin_layout Standard
15596
15597 \change_inserted 564990737 1672138150
15598
15599 \lang american
15600 Perhaps you might want to resume the list with a different number from the
15601  next one.
15602  Or you want to start a new enumeration with a defined number.
15603  This is possible by adding an optional argument to the first list item
15604  of a normal enumeration.
15605  There, insert the command
15606 \end_layout
15607
15608 \begin_layout Standard
15609
15610 \change_inserted 564990737 1672138150
15611
15612 \family sans
15613 \lang american
15614 start=number
15615 \end_layout
15616
15617 \begin_layout Standard
15618
15619 \change_inserted 564990737 1672138150
15620
15621 \lang american
15622 where 
15623 \family sans
15624 number
15625 \family default
15626  is the number with which you want to resume the list.
15627  An example:
15628 \end_layout
15629
15630 \begin_layout Enumerate
15631
15632 \change_inserted 564990737 1672138150
15633
15634 \lang american
15635 first item
15636 \end_layout
15637
15638 \begin_layout Enumerate
15639
15640 \change_inserted 564990737 1672138150
15641
15642 \lang american
15643 second item
15644 \end_layout
15645
15646 \begin_layout Standard
15647
15648 \change_inserted 564990737 1672138150
15649
15650 \lang american
15651 Enumeration starting at a given value:
15652 \end_layout
15653
15654 \begin_layout Enumerate
15655
15656 \change_inserted 564990737 1672138150
15657
15658 \lang american
15659 \begin_inset Argument 1
15660 status open
15661
15662 \begin_layout Plain Layout
15663
15664 \change_inserted 564990737 1672138150
15665
15666 \lang american
15667 \begin_inset ERT
15668 status collapsed
15669
15670 \begin_layout Plain Layout
15671
15672 \change_inserted 564990737 1672138150
15673
15674 start=4
15675 \end_layout
15676
15677 \end_inset
15678
15679
15680 \change_unchanged
15681
15682 \end_layout
15683
15684 \end_inset
15685
15686 This enumeration starts at 4
15687 \end_layout
15688
15689 \begin_layout Subsubsection
15690
15691 \change_inserted 564990737 1672138150
15692
15693 \lang american
15694 List Spacing
15695 \begin_inset Index idx
15696 range none
15697 pageformat default
15698 status collapsed
15699
15700 \begin_layout Plain Layout
15701
15702 \change_inserted 564990737 1672138150
15703
15704 \lang american
15705 Lists ! Spacing
15706 \change_unchanged
15707
15708 \end_layout
15709
15710 \end_inset
15711
15712
15713 \end_layout
15714
15715 \begin_layout Standard
15716
15717 \change_inserted 564990737 1672138150
15718
15719 \lang american
15720 In some cases you might want less or more vertical space between the items
15721  of a list.
15722  For example if the default space is too much in your opinion in this case:
15723 \end_layout
15724
15725 \begin_layout Itemize
15726
15727 \change_inserted 564990737 1672138150
15728
15729 \lang american
15730 A bullet list
15731 \end_layout
15732
15733 \begin_layout Itemize
15734
15735 \change_inserted 564990737 1672138150
15736
15737 \lang american
15738 with standard spacing 
15739 \end_layout
15740
15741 \begin_layout Standard
15742
15743 \change_inserted 564990737 1672138150
15744
15745 \lang american
15746 You can decrease the space by adding an optional argument to the first item
15747  of the list.
15748  Add there the command 
15749 \family sans
15750 nolistsep
15751 \family default
15752  to get no additional list space like in this example:
15753 \end_layout
15754
15755 \begin_layout Itemize
15756
15757 \change_inserted 564990737 1672138150
15758
15759 \lang american
15760 \begin_inset Argument 1
15761 status open
15762
15763 \begin_layout Plain Layout
15764
15765 \change_inserted 564990737 1672138150
15766
15767 \lang american
15768 \begin_inset ERT
15769 status collapsed
15770
15771 \begin_layout Plain Layout
15772
15773 \change_inserted 564990737 1672138150
15774
15775 nolistsep
15776 \end_layout
15777
15778 \end_inset
15779
15780
15781 \change_unchanged
15782
15783 \end_layout
15784
15785 \end_inset
15786
15787 A bullet list
15788 \end_layout
15789
15790 \begin_layout Itemize
15791
15792 \change_inserted 564990737 1672138150
15793
15794 \lang american
15795 without additional
15796 \end_layout
15797
15798 \begin_layout Itemize
15799
15800 \change_inserted 564990737 1672138150
15801
15802 \lang american
15803 vertical space
15804 \end_layout
15805
15806 \begin_layout Standard
15807
15808 \change_inserted 564990737 1672138150
15809
15810 \lang american
15811 To add space you can use several other commands provided by the 
15812 \family sans
15813 enumitem
15814 \family default
15815
15816 \begin_inset Index idx
15817 range none
15818 pageformat default
15819 status collapsed
15820
15821 \begin_layout Plain Layout
15822
15823 \change_inserted 564990737 1672138150
15824
15825 \lang american
15826 \SpecialChar LaTeX
15827 -packages ! enumitem
15828 \change_unchanged
15829
15830 \end_layout
15831
15832 \end_inset
15833
15834  package.
15835  For more information see the 
15836 \begin_inset CommandInset href
15837 LatexCommand href
15838 name "enumitem documentation"
15839 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
15840 literal "false"
15841
15842 \end_inset
15843
15844 .
15845 \end_layout
15846
15847 \begin_layout Standard
15848
15849 \change_inserted 564990737 1672138150
15850
15851 \lang american
15852 There are also many commands available to change the horizontal spacing
15853  and indentation.
15854  Here is an example where the indentation was changed to that of the paragraphs
15855  in the document and the label separation was set to 2
15856 \begin_inset space \thinspace{}
15857 \end_inset
15858
15859 cm so that the number is in the page margin:
15860 \end_layout
15861
15862 \begin_layout Enumerate
15863
15864 \change_inserted 564990737 1672138150
15865
15866 \lang american
15867 \begin_inset Argument 1
15868 status open
15869
15870 \begin_layout Plain Layout
15871
15872 \change_inserted 564990737 1672138150
15873
15874 \lang american
15875 \begin_inset ERT
15876 status collapsed
15877
15878 \begin_layout Plain Layout
15879
15880 \change_inserted 564990737 1672138150
15881
15882 labelindent=
15883 \backslash
15884 parindent, labelsep=2cm
15885 \end_layout
15886
15887 \end_inset
15888
15889
15890 \change_unchanged
15891
15892 \end_layout
15893
15894 \end_inset
15895
15896 An enumeration
15897 \end_layout
15898
15899 \begin_layout Enumerate
15900
15901 \change_inserted 564990737 1672138150
15902
15903 \lang american
15904 with negative indentation
15905 \end_layout
15906
15907 \begin_layout Subsubsection
15908
15909 \change_inserted 564990737 1672138150
15910
15911 \lang american
15912 Further Customization
15913 \begin_inset Index idx
15914 range none
15915 pageformat default
15916 status collapsed
15917
15918 \begin_layout Plain Layout
15919
15920 \change_inserted 564990737 1672138150
15921
15922 \lang american
15923 Lists ! Customization
15924 \change_unchanged
15925
15926 \end_layout
15927
15928 \end_inset
15929
15930
15931 \end_layout
15932
15933 \begin_layout Standard
15934
15935 \change_inserted 564990737 1672138150
15936
15937 \lang american
15938 You can also change the style of description lists.
15939  The command
15940 \end_layout
15941
15942 \begin_layout Standard
15943
15944 \change_inserted 564990737 1672138150
15945
15946 \family sans
15947 \lang american
15948 font=definition
15949 \end_layout
15950
15951 \begin_layout Standard
15952
15953 \change_inserted 564990737 1672138150
15954
15955 \lang american
15956 changes the description label font, the command
15957 \end_layout
15958
15959 \begin_layout Standard
15960
15961 \change_inserted 564990737 1672138150
15962
15963 \family sans
15964 \lang american
15965 style=definitio
15966 \family default
15967 \series bold
15968 n
15969 \end_layout
15970
15971 \begin_layout Standard
15972
15973 \change_inserted 564990737 1672138150
15974
15975 \lang american
15976 sets the list style.
15977 \end_layout
15978
15979 \begin_layout Standard
15980
15981 \change_inserted 564990737 1672138150
15982
15983 \lang american
15984 An example where the command
15985 \end_layout
15986
15987 \begin_layout Standard
15988
15989 \change_inserted 564990737 1672138150
15990
15991 \family sans
15992 \lang american
15993 font=
15994 \backslash
15995 itshape, style=nextline
15996 \end_layout
15997
15998 \begin_layout Standard
15999
16000 \change_inserted 564990737 1672138150
16001
16002 \lang american
16003 is used:
16004 \end_layout
16005
16006 \begin_layout Description
16007
16008 \change_inserted 564990737 1672138150
16009
16010 \lang american
16011 Ionizing
16012 \begin_inset space ~
16013 \end_inset
16014
16015 radiation: 
16016 \begin_inset Argument 1
16017 status collapsed
16018
16019 \begin_layout Plain Layout
16020
16021 \change_inserted 564990737 1672138150
16022
16023 \lang american
16024 \begin_inset ERT
16025 status collapsed
16026
16027 \begin_layout Plain Layout
16028
16029 \change_inserted 564990737 1672138150
16030
16031 labelindent=0pt, labelsep=1cm, font=
16032 \backslash
16033 itshape, style=nextline
16034 \end_layout
16035
16036 \end_inset
16037
16038
16039 \change_unchanged
16040
16041 \end_layout
16042
16043 \end_inset
16044
16045 Ionizing radiation consists of particles or electromagnetic waves that are
16046  energetic enough to detach electrons from atoms or molecules, therefore
16047  ionizing them.
16048 \end_layout
16049
16050 \begin_layout Description
16051
16052 \change_inserted 564990737 1672138150
16053
16054 \lang american
16055 Reference
16056 \begin_inset space ~
16057 \end_inset
16058
16059 counting: In computer science, reference counting is a technique of storing
16060  the number of references, pointers, or handles to a resource such as an
16061  object, block of memory, disk space or other resource.
16062 \end_layout
16063
16064 \begin_layout Standard
16065
16066 \change_inserted 564990737 1672138150
16067
16068 \lang american
16069 There are many more commands and features provided by the 
16070 \family sans
16071 enumitem
16072 \family default
16073
16074 \begin_inset Index idx
16075 range none
16076 pageformat default
16077 status collapsed
16078
16079 \begin_layout Plain Layout
16080
16081 \change_inserted 564990737 1672138150
16082
16083 \lang american
16084 \SpecialChar LaTeX
16085 -packages ! enumitem
16086 \change_unchanged
16087
16088 \end_layout
16089
16090 \end_inset
16091
16092  package.
16093  For more information see the 
16094 \begin_inset CommandInset href
16095 LatexCommand href
16096 name "enumitem documentation"
16097 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
16098 literal "false"
16099
16100 \end_inset
16101
16102 .
16103 \end_layout
16104
16105 \begin_layout Subsection
16106
16107 \change_inserted 564990737 1672138150
16108
16109 \series bold
16110 \lang american
16111 Paragraph Lists
16112 \end_layout
16113
16114 \begin_layout Standard
16115
16116 \change_inserted 564990737 1672138150
16117
16118 \lang american
16119 This module uses the package 
16120 \family sans
16121 paralist
16122 \family default
16123  to provide nine new list environments.
16124  Itemized and enumerated lists can be typeset within paragraphs, as paragraphs
16125  and in a compact version.
16126  Most environments have optional arguments to format the labels.
16127  Additionally, the \SpecialChar LaTeX
16128  list environments itemize and enumerate are extended
16129  to use a similar optional argument.
16130  For further details see 
16131 \family sans
16132 File\SpecialChar menuseparator
16133 Open Example\SpecialChar menuseparator
16134 Modules\SpecialChar menuseparator
16135 Paragraph Lists (paralist)
16136 \family default
16137
16138 \family sans
16139 Help\SpecialChar menuseparator
16140 Specific Manuals\SpecialChar menuseparator
16141 Paralist
16142 \family default
16143  and the 
16144 \begin_inset CommandInset href
16145 LatexCommand href
16146 name "paralist documentation"
16147 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
16148 literal "false"
16149
16150 \end_inset
16151
16152 .
16153 \end_layout
16154
16155 \begin_layout Section
16156
16157 \change_inserted 564990737 1672161542
16158
16159 \lang american
16160 Literate Programming 
16161 \end_layout
16162
16163 \begin_layout Subsection
16164
16165 \change_inserted 564990737 1672161542
16166
16167 \lang american
16168 Noweb
16169 \end_layout
16170
16171 \begin_layout Standard
16172
16173 \change_inserted 564990737 1672161542
16174
16175 \lang american
16176 This module allows the use of Noweb as a literate programming tool.
16177  The files and the documentation for Noweb can be obtained from 
16178 \begin_inset CommandInset href
16179 LatexCommand href
16180 name "CTAN"
16181 target "https://www.ctan.org/pkg/noweb"
16182 literal "false"
16183
16184 \end_inset
16185
16186 .
16187  Literate programming is described in section
16188 \begin_inset space ~
16189 \end_inset
16190
16191
16192 \begin_inset CommandInset ref
16193 LatexCommand ref
16194 reference "sec:Literate-Programming"
16195
16196 \end_inset
16197
16198  and there are three example files: 
16199 \family sans
16200 File\SpecialChar menuseparator
16201 Open Example\SpecialChar menuseparator
16202 Modules\SpecialChar menuseparator
16203 Noweb
16204 \family default
16205
16206 \family sans
16207 File\SpecialChar menuseparator
16208 Open Example\SpecialChar menuseparator
16209 Modules\SpecialChar menuseparator
16210 Noweb Listerrors
16211 \family default
16212  and 
16213 \family sans
16214 File\SpecialChar menuseparator
16215 Open Example\SpecialChar menuseparator
16216 Modules\SpecialChar menuseparator
16217 Noweb2\SpecialChar LyX
16218
16219 \family default
16220 .
16221 \end_layout
16222
16223 \begin_layout Subsection
16224
16225 \change_inserted 564990737 1672161542
16226
16227 \lang american
16228 Rnw (knitr)
16229 \end_layout
16230
16231 \begin_layout Standard
16232
16233 \change_inserted 564990737 1672161542
16234
16235 \lang american
16236 This module uses the 
16237 \family typewriter
16238 knitr
16239 \family default
16240  and 
16241 \family sans
16242 includernw
16243 \family default
16244  packages.
16245  The
16246 \begin_inset Flex Code
16247 status collapsed
16248
16249 \begin_layout Plain Layout
16250
16251 \change_inserted 564990737 1672161542
16252
16253 \lang american
16254 knitr
16255 \change_unchanged
16256
16257 \end_layout
16258
16259 \end_inset
16260
16261  package in R for dynamic report generation has to be installed for this
16262  module to work: 
16263 \begin_inset Flex Code
16264 status collapsed
16265
16266 \begin_layout Plain Layout
16267
16268 \change_inserted 564990737 1672161542
16269
16270 \lang american
16271 install.packages(“knitr”)
16272 \change_unchanged
16273
16274 \end_layout
16275
16276 \end_inset
16277
16278 .
16279  
16280 \end_layout
16281
16282 \begin_layout Paragraph
16283
16284 \change_inserted 564990737 1672161542
16285
16286 \lang american
16287 Note 
16288 \end_layout
16289
16290 \begin_layout Standard
16291
16292 \change_inserted 564990737 1672161542
16293
16294 \lang american
16295 it depends on R >= 2.14.1.
16296  For more info see 
16297 \begin_inset Flex URL
16298 status collapsed
16299
16300 \begin_layout Plain Layout
16301
16302 \change_inserted 564990737 1672161542
16303
16304 http://yihui.name/knitr
16305 \change_unchanged
16306
16307 \end_layout
16308
16309 \end_inset
16310
16311 .
16312  
16313 \end_layout
16314
16315 \begin_layout Standard
16316
16317 \change_inserted 564990737 1672161542
16318
16319 \lang american
16320 The package 
16321 \family sans
16322 includernw
16323 \family default
16324  also has to be installed.
16325  It cannot be used if the modules 
16326 \family sans
16327 LilyPond
16328 \begin_inset space ~
16329 \end_inset
16330
16331 Book
16332 \family default
16333  or 
16334 \family sans
16335 Sweave
16336 \family default
16337  are loaded.
16338  See 
16339 \family sans
16340 Help\SpecialChar menuseparator
16341 Specific Manuals\SpecialChar menuseparator
16342 Knitr
16343 \family default
16344
16345 \family sans
16346 File\SpecialChar menuseparator
16347 Open Example\SpecialChar menuseparator
16348 Modules\SpecialChar menuseparator
16349 Rnw (knitr)
16350 \family default
16351  and section
16352 \begin_inset space ~
16353 \end_inset
16354
16355
16356 \begin_inset CommandInset ref
16357 LatexCommand ref
16358 reference "sec:Literate-Programming"
16359
16360 \end_inset
16361
16362  for information about literate programming.
16363 \end_layout
16364
16365 \begin_layout Subsection
16366
16367 \change_inserted 564990737 1672161542
16368
16369 \lang american
16370 Sweave
16371 \end_layout
16372
16373 \begin_layout Standard
16374
16375 \change_inserted 564990737 1672161542
16376
16377 \lang american
16378 This module allows the use of the statistical language S/R as a literate
16379  programming tool.
16380  It requires the 
16381 \family sans
16382 includernw
16383 \family default
16384  and 
16385 \family sans
16386 fancyvrb
16387 \family default
16388  packages.
16389  Both 
16390 \begin_inset CommandInset href
16391 LatexCommand href
16392 name "includernw"
16393 target "https://www.ctan.org/pkg/includernw"
16394 literal "false"
16395
16396 \end_inset
16397
16398  and 
16399 \begin_inset CommandInset href
16400 LatexCommand href
16401 name "fancyvrb"
16402 target "https://www.ctan.org/pkg/fancyvrb"
16403 literal "false"
16404
16405 \end_inset
16406
16407  are available from CTAN.
16408  It cannot be used if the module 
16409 \family sans
16410 LilyPond
16411 \begin_inset space ~
16412 \end_inset
16413
16414 Book
16415 \family default
16416  has been loaded.
16417  See 
16418 \family sans
16419 Help\SpecialChar menuseparator
16420 Specific Manuals\SpecialChar menuseparator
16421 Sweave,
16422 \family default
16423  
16424 \family sans
16425 File\SpecialChar menuseparator
16426 Open Example\SpecialChar menuseparator
16427 Modules\SpecialChar menuseparator
16428 Sweave
16429 \family default
16430  and section
16431 \begin_inset space ~
16432 \end_inset
16433
16434
16435 \begin_inset CommandInset ref
16436 LatexCommand ref
16437 reference "sec:Literate-Programming"
16438
16439 \end_inset
16440
16441  for information about literate programming.
16442 \end_layout
16443
16444 \begin_layout Section
16445
16446 \change_inserted 564990737 1672224959
16447
16448 \lang american
16449 Maths
16450 \end_layout
16451
16452 \begin_layout Subsection
16453
16454 \change_inserted 564990737 1672224959
16455
16456 \lang american
16457 AMS Theorems
16458 \end_layout
16459
16460 \begin_layout Standard
16461
16462 \change_inserted 564990737 1672224959
16463
16464 \lang american
16465 This modules defines theorem environments and the proof environment using
16466  the extended AMS machinery.
16467  Both numbered and unnumbered types are provided.
16468  By default, the theorems are numbered consecutively throughout the document.
16469  This can be changed by loading one of the 
16470 \family sans
16471 AMS Theorems (Numbered by \SpecialChar ldots
16472 )
16473 \family default
16474  modules.
16475  It cannot be used if the modules 
16476 \family sans
16477 Standard Theorems
16478 \family default
16479  or 
16480 \family sans
16481 Standard Theorems (Unnumbered)
16482 \family default
16483  have been loaded.
16484 \end_layout
16485
16486 \begin_layout Subsection
16487
16488 \change_inserted 564990737 1672224959
16489
16490 \lang american
16491 AMS Theorems (Extended)
16492 \end_layout
16493
16494 \begin_layout Standard
16495
16496 \change_inserted 564990737 1672224959
16497
16498 \lang american
16499 This module defines some additional theorem environments for use with the
16500  
16501 \family sans
16502 AMS Theorems
16503 \family default
16504  package (which must be loaded).
16505  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
16506  Acknowledgement, Conclusion, Fact, Assumption, Case and Question in both
16507  numbered and unnumbered forms.
16508 \end_layout
16509
16510 \begin_layout Subsection
16511
16512 \change_inserted 564990737 1672224959
16513
16514 \lang american
16515 AMS Theorems (Extended, Numbered by Type within Chapters)
16516 \end_layout
16517
16518 \begin_layout Standard
16519
16520 \change_inserted 564990737 1672224959
16521
16522 \lang american
16523 This module defines some additional theorem environments for use with the
16524  
16525 \family sans
16526 AMS Theorems (Numbered by Type within Chapters)
16527 \family default
16528  package (which must be loaded).
16529  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
16530  Acknowledgement, Conclusion, Assumption and Case in both numbered and unnumbere
16531 d forms.
16532  Unlike the 
16533 \family sans
16534 AMS Theorems (Extended)
16535 \family default
16536  module, the different theorem types provided here each have a separate
16537  counter, restarted with each new chapter (e.g., criterion 1.1, criterion 1.2,
16538  axiom 1.1, assumption 1.1, criterion 2.1, criterion 2.2, axiom 2.1\SpecialChar ldots
16539 , as opposed
16540  to criterion 1, criterion 2, axiom 3, assumption 4...).
16541 \end_layout
16542
16543 \begin_layout Subsection
16544
16545 \change_inserted 564990737 1672224959
16546
16547 \lang american
16548 AMS Theorems (Extended, Numbered by Type)
16549 \end_layout
16550
16551 \begin_layout Standard
16552
16553 \change_inserted 564990737 1672224959
16554
16555 \lang american
16556 This module defines some additional theorem environments for use with the
16557  
16558 \family sans
16559 AMS Theorems (Numbered by Type)
16560 \family default
16561  package (which must be loaded).
16562  It includes Criterion, Algorithm, Axiom, Condition, Note, Notation, Summary,
16563  Acknowledgement, Conclusion, Assumption and Case in both numbered and unnumbere
16564 d forms.
16565  Unlike the 
16566 \family sans
16567 AMS Theorems (Extended)
16568 \family default
16569  module, the different theorem types provided here each have a separate
16570  counter (e.g., criterion 1, criterion 2, axiom 1, assumption 1, criterion
16571  3, \SpecialChar ldots
16572 , as opposed to criterion 1, criterion 2, axiom 3, assumption 4, \SpecialChar ldots
16573 ).
16574 \end_layout
16575
16576 \begin_layout Subsection
16577
16578 \change_inserted 564990737 1672224959
16579
16580 \lang american
16581 AMS Theorems (Numbered by Type within Chapters) 
16582 \end_layout
16583
16584 \begin_layout Standard
16585
16586 \change_inserted 564990737 1672224959
16587
16588 \lang american
16589 This module defines theorem environments and the proof environment using
16590  the extended AMS machinery.
16591  Both numbered and unnumbered types are provided.
16592  Unlike the 
16593 \family sans
16594 AMS Theorems
16595 \family default
16596  module, the different theorem types provided here each have a separate
16597  counter (e.g., theorem 1.1, theorem 1.2, lemma 1.1, proposition 1.1, theorem
16598  1.3, lemma 1.2, \SpecialChar ldots
16599 , as opposed to theorem 1, theorem 2, lemma 3, proposition
16600  4, \SpecialChar ldots
16601 ).
16602  The numbering restarts for each chapter: theorem 1.1, theorem 2.1, \SpecialChar ldots
16603  It cannot
16604  be used if the modules 
16605 \family sans
16606 AMS Theorems
16607 \family default
16608
16609 \family sans
16610 Standard Theorems
16611 \family default
16612 ,
16613 \family sans
16614  Standard Theorems (Numbered by Type)
16615 \family default
16616  or
16617 \family sans
16618  Standard Theorems (Unnumbered)
16619 \family default
16620  have been loaded.
16621 \end_layout
16622
16623 \begin_layout Subsection
16624
16625 \change_inserted 564990737 1672224959
16626
16627 \lang american
16628 AMS Theorems (Numbered by Type)
16629 \end_layout
16630
16631 \begin_layout Standard
16632
16633 \change_inserted 564990737 1672224959
16634
16635 \lang american
16636 This module defines theorem environments and the proof environment using
16637  the extended AMS machinery.
16638  Both numbered and unnumbered types are provided.
16639  Unlike the 
16640 \family sans
16641 AMS Theorems
16642 \family default
16643  module, the different theorem types provided here each have a separate
16644  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16645  2, \SpecialChar ldots
16646 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16647 ).
16648  The numbering’s scope is the whole document.
16649  For chapter- and section-wide numbering, use one of the ‘within Sections’/‘with
16650 in Chapters’ modules, respectively.
16651  It cannot be used if the modules 
16652 \family sans
16653 AMS Theorems
16654 \family default
16655
16656 \family sans
16657 Standard Theorems
16658 \family default
16659 ,
16660 \family sans
16661  Standard Theorems (Numbered by Type)
16662 \family default
16663  or
16664 \family sans
16665  Standard Theorems (Unnumbered)
16666 \family default
16667  have been loaded.
16668 \end_layout
16669
16670 \begin_layout Subsection
16671
16672 \change_inserted 564990737 1672224959
16673
16674 \lang american
16675 Number Equations by Section
16676 \end_layout
16677
16678 \begin_layout Standard
16679
16680 \change_inserted 564990737 1672224959
16681
16682 \lang american
16683 This module resets the equation number at section start and prepends the
16684  section number to the equation number, as in “(2.1).” 
16685 \end_layout
16686
16687 \begin_layout Subsection
16688
16689 \change_inserted 564990737 1672224959
16690
16691 \lang american
16692 Standard Theorems
16693 \end_layout
16694
16695 \begin_layout Standard
16696
16697 \change_inserted 564990737 1672224959
16698
16699 \lang american
16700 This module defines some theorem environments for use with non-AMS classes.
16701  By default, the theorems are numbered consecutively throughout the document.
16702  This can be changed by loading one of the 
16703 \family sans
16704 Standard Theorems (Numbered by \SpecialChar ldots
16705 )
16706 \family default
16707  modules.
16708  It cannot be used if the modules 
16709 \family sans
16710 AMS Theorems
16711 \family default
16712  or
16713 \family sans
16714  Standard Theorems (Unnumbered)
16715 \family default
16716  have been loaded.
16717  
16718 \end_layout
16719
16720 \begin_layout Subsection
16721
16722 \change_inserted 564990737 1672224959
16723
16724 \lang american
16725 Standard Theorems (Nameable)
16726 \end_layout
16727
16728 \begin_layout Standard
16729
16730 \change_inserted 564990737 1672224959
16731
16732 \lang american
16733 This module facilitates the use of named theorems.
16734  The name of the theorem goes into the “Additional Theorem Text” argument.
16735  
16736 \end_layout
16737
16738 \begin_layout Subsection
16739
16740 \change_inserted 564990737 1672224959
16741
16742 \lang american
16743 Standard Theorems (Numbered by Chapter)
16744 \end_layout
16745
16746 \begin_layout Standard
16747
16748 \change_inserted 564990737 1672224959
16749
16750 \lang american
16751 This module numbers theorems and the like by chapter (i.e., the counter is
16752  reset at each chapter start).
16753  Use this module only with document classes that provide a chapter environment.
16754  One of the modules 
16755 \family sans
16756 AMS Theorems
16757 \family default
16758  or 
16759 \family sans
16760 Standard Theorems
16761 \family default
16762  must be loaded.
16763  It cannot be used if the module
16764 \family sans
16765  Standard Theorems (Numbered by Section)
16766 \family default
16767  has been loaded.
16768 \end_layout
16769
16770 \begin_layout Subsection
16771
16772 \change_inserted 564990737 1672224959
16773
16774 \lang american
16775 Standard Theorems (Numbered by Section)
16776 \end_layout
16777
16778 \begin_layout Standard
16779
16780 \change_inserted 564990737 1672224959
16781
16782 \lang american
16783 This module numbers theorems and the like by section (i.e., the counter is
16784  reset at each section start).
16785  One of the modules 
16786 \family sans
16787 AMS Theorems
16788 \family default
16789  or 
16790 \family sans
16791 Standard Theorems
16792 \family default
16793  must be loaded.
16794  It cannot be used if the module
16795 \family sans
16796  Standard Theorems (Numbered by Chapter)
16797 \family default
16798  has been loaded.
16799 \end_layout
16800
16801 \begin_layout Subsection
16802
16803 \change_inserted 564990737 1672224959
16804
16805 \lang american
16806 Standard Theorems (Numbered by Type within Chapters) 
16807 \end_layout
16808
16809 \begin_layout Standard
16810
16811 \change_inserted 564990737 1672224959
16812
16813 \lang american
16814 This module defines some theorem environments for use with non-AMS classes.
16815  Unlike the
16816 \family sans
16817  AMS Theorems
16818 \family default
16819  and 
16820 \family sans
16821 Standard Theorems
16822 \family default
16823  modules, the different theorem types provided here each have a separate
16824  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16825  2, \SpecialChar ldots
16826 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16827 ).
16828  The numbering is reset at each chapter start.
16829  One of the modules 
16830 \family sans
16831 AMS Theorems (Numbered by Type)
16832 \family default
16833  or 
16834 \family sans
16835 Standard Theorems (Numbered by Type)
16836 \family default
16837  must be loaded.
16838  It cannot be used if any of the modules
16839 \family sans
16840  AMS Theorems
16841 \family default
16842
16843 \family sans
16844 Standard Theorems
16845 \family default
16846
16847 \family sans
16848 Standard Theorems (Unnumbered)
16849 \family default
16850 ,
16851 \family sans
16852  Standard Theorems (Numbered by Sections)
16853 \family default
16854  or 
16855 \family sans
16856 Standard Theorems (Numbered by Type within Sections)
16857 \family default
16858  have been loaded.
16859 \end_layout
16860
16861 \begin_layout Subsection
16862
16863 \change_inserted 564990737 1672224959
16864
16865 \lang american
16866 Standard Theorems (Numbered by Type within Sections) 
16867 \end_layout
16868
16869 \begin_layout Standard
16870
16871 \change_inserted 564990737 1672224959
16872
16873 \lang american
16874 This module defines some theorem environments for use with non-AMS classes.
16875  Unlike the
16876 \family sans
16877  AMS Theorems
16878 \family default
16879  and 
16880 \family sans
16881 Standard Theorems
16882 \family default
16883  modules, the different theorem types provided here each have a separate
16884  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16885  2, \SpecialChar ldots
16886 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16887 ).
16888  The numbering is reset at each section start.
16889  One of the modules 
16890 \family sans
16891 AMS Theorems (Numbered by Type)
16892 \family default
16893  or 
16894 \family sans
16895 Standard Theorems (Numbered by Type)
16896 \family default
16897  must be loaded.
16898  It cannot be used if any of the modules
16899 \family sans
16900  AMS Theorems
16901 \family default
16902
16903 \family sans
16904 Standard Theorems
16905 \family default
16906
16907 \family sans
16908 Standard Theorems (Unnumbered)
16909 \family default
16910 ,
16911 \family sans
16912  Standard Theorems (Numbered by Chapters)
16913 \family default
16914  or 
16915 \family sans
16916 Standard Theorems (Numbered by Type within Chapters)
16917 \family default
16918  have been loaded.
16919 \end_layout
16920
16921 \begin_layout Subsection
16922
16923 \change_inserted 564990737 1672224959
16924
16925 \lang american
16926 Standard Theorems (Numbered by Type)
16927 \end_layout
16928
16929 \begin_layout Standard
16930
16931 \change_inserted 564990737 1672224959
16932
16933 \lang american
16934 This module defines some theorem environments for use with non-AMS classes.
16935  Unlike the 
16936 \family sans
16937 AMS Theorems
16938 \family default
16939  and 
16940 \family sans
16941 Standard Theorems
16942 \family default
16943  modules, the different theorem types provided here each have a separate
16944  counter (e.g., theorem 1, theorem 2, lemma 1, proposition 1, theorem 3, lemma
16945  2, \SpecialChar ldots
16946 , as opposed to theorem 1, theorem 2, lemma 3, proposition 4, \SpecialChar ldots
16947 ).
16948  The numbering’s scope is the whole document.
16949  For chapter- and section-wide numbering, use one of the “within Chapters”/“with
16950 in Sections” modules, respectively.
16951  It cannot be used if any of the modules
16952 \family sans
16953  AMS Theorems
16954 \family default
16955
16956 \family sans
16957 Standard Theorems
16958 \family default
16959
16960 \family sans
16961 Standard Theorems (Unnumbered)
16962 \family default
16963  or
16964 \family sans
16965  AMS Theorems (Numbered by Type)
16966 \family default
16967  have been loaded.
16968 \end_layout
16969
16970 \begin_layout Subsection
16971
16972 \change_inserted 564990737 1672224959
16973
16974 \lang american
16975 Standard Theorems (Unnumbered)
16976 \end_layout
16977
16978 \begin_layout Standard
16979
16980 \change_inserted 564990737 1672224959
16981
16982 \lang american
16983 This module defines only unnumbered theorem environments and the proof environme
16984 nt, using the extended AMS machinery.
16985  It cannot be used if either of the modules
16986 \family sans
16987  AMS Theorems
16988 \family default
16989  or
16990 \family sans
16991  Standard Theorems
16992 \family default
16993  have been loaded.
16994 \end_layout
16995
16996 \begin_layout Subsection
16997
16998 \change_inserted 564990737 1672224959
16999
17000 \lang american
17001 Subequations
17002 \end_layout
17003
17004 \begin_layout Standard
17005
17006 \change_inserted 564990737 1672224959
17007
17008 \lang american
17009 This module provides a straightforward way to segregate subequations in
17010  LyX.
17011  See 
17012 \family sans
17013 Help\SpecialChar menuseparator
17014 Math\SpecialChar menuseparator
17015 Subnumbering
17016 \family default
17017 .
17018  
17019 \end_layout
17020
17021 \begin_layout Section
17022
17023 \change_inserted 564990737 1672236008
17024
17025 \lang american
17026 Page Layout
17027 \end_layout
17028
17029 \begin_layout Subsection
17030
17031 \change_inserted 564990737 1672236008
17032
17033 \lang american
17034 Custom Header/Footer Text
17035 \end_layout
17036
17037 \begin_layout Standard
17038
17039 \change_inserted 564990737 1672236008
17040
17041 \lang american
17042 This module requires the 
17043 \family sans
17044 Page
17045 \begin_inset space ~
17046 \end_inset
17047
17048
17049 \bar under
17050 s
17051 \bar default
17052 tyle
17053 \family default
17054  option in the 
17055 \family sans
17056 \bar under
17057 D
17058 \bar default
17059 ocument\SpecialChar menuseparator
17060
17061 \bar under
17062 S
17063 \bar default
17064 ettings\SpecialChar menuseparator
17065 Page
17066 \begin_inset space ~
17067 \end_inset
17068
17069 Layout
17070 \family default
17071  dialog to be set to 
17072 \family typewriter
17073 fancy
17074 \family default
17075 .
17076  It adds six environments to document classes which support the 
17077 \family typewriter
17078 fancyhdr
17079 \family default
17080  package:
17081 \end_layout
17082
17083 \begin_layout Itemize
17084
17085 \change_inserted 564990737 1672236008
17086
17087 \family sans
17088 \lang american
17089 Left Header
17090 \end_layout
17091
17092 \begin_layout Itemize
17093
17094 \change_inserted 564990737 1672236008
17095
17096 \family sans
17097 \lang american
17098 Center Header
17099 \end_layout
17100
17101 \begin_layout Itemize
17102
17103 \change_inserted 564990737 1672236008
17104
17105 \family sans
17106 \lang american
17107 Right Header
17108 \end_layout
17109
17110 \begin_layout Itemize
17111
17112 \change_inserted 564990737 1672236008
17113
17114 \family sans
17115 \lang american
17116 Left Footer
17117 \end_layout
17118
17119 \begin_layout Itemize
17120
17121 \change_inserted 564990737 1672236008
17122
17123 \family sans
17124 \lang american
17125 Center Footer
17126 \end_layout
17127
17128 \begin_layout Itemize
17129
17130 \change_inserted 564990737 1672236008
17131
17132 \family sans
17133 \lang american
17134 Right Footer
17135 \end_layout
17136
17137 \begin_layout Subsubsection
17138
17139 \change_inserted 564990737 1672236008
17140
17141 \lang american
17142 Fancy Headers and Footers
17143 \end_layout
17144
17145 \begin_layout Standard
17146
17147 \change_inserted 564990737 1672236008
17148
17149 \lang american
17150 The default page layout is rather plain; for an 
17151 \begin_inset Flex Code
17152 status collapsed
17153
17154 \begin_layout Plain Layout
17155
17156 \change_inserted 564990737 1672236008
17157
17158 \lang american
17159 article
17160 \change_unchanged
17161
17162 \end_layout
17163
17164 \end_inset
17165
17166  document class, all you get is a centered page number at the bottom of
17167  the page.
17168  This document uses KOMA-script’s book class; so it appears to be a bit
17169  fancier.
17170  Once the 
17171 \family sans
17172 Page
17173 \begin_inset space ~
17174 \end_inset
17175
17176
17177 \bar under
17178 s
17179 \bar default
17180 tyle
17181 \family default
17182  in 
17183 \family sans
17184 \bar under
17185 D
17186 \bar default
17187 ocument\SpecialChar menuseparator
17188
17189 \bar under
17190 S
17191 \bar default
17192 ettings\SpecialChar menuseparator
17193 Page Layout
17194 \family default
17195  is set to 
17196 \begin_inset Quotes eld
17197 \end_inset
17198
17199 fancy
17200 \begin_inset Quotes erd
17201 \end_inset
17202
17203 , you will find that the page header is divided into three fields, not surprisin
17204 gly labeled 
17205 \begin_inset Quotes eld
17206 \end_inset
17207
17208 left
17209 \begin_inset Quotes erd
17210 \end_inset
17211
17212
17213 \begin_inset Quotes eld
17214 \end_inset
17215
17216 center
17217 \begin_inset Quotes erd
17218 \end_inset
17219
17220 , and 
17221 \begin_inset Quotes eld
17222 \end_inset
17223
17224 right
17225 \begin_inset Quotes erd
17226 \end_inset
17227
17228 .
17229  The footer is also divided into these three fields.
17230  The \SpecialChar LaTeX
17231  commands to set these fields in the simplest manner are 
17232 \family sans
17233
17234 \backslash
17235 lhead
17236 \family default
17237
17238 \family sans
17239
17240 \backslash
17241 chead
17242 \family default
17243
17244 \family sans
17245
17246 \backslash
17247 rhead
17248 \family default
17249
17250 \family sans
17251
17252 \backslash
17253 lfoot
17254 \family default
17255 , etc.
17256  Suppose you wish to put your name in the upper left hand corner of each
17257  page.
17258  Simply insert the following command in the preamble: 
17259 \end_layout
17260
17261 \begin_layout Standard
17262
17263 \change_inserted 564990737 1672236008
17264
17265 \family sans
17266 \lang american
17267
17268 \backslash
17269 lhead
17270 \family default
17271 \series bold
17272 {
17273 \series default
17274 John Q.
17275  DocWriter
17276 \series bold
17277 }
17278 \end_layout
17279
17280 \begin_layout Standard
17281
17282 \change_inserted 564990737 1672236008
17283
17284 \lang american
17285 You will now see your name in the upper left.
17286  If a field has a default entry that you would like to get rid of (often
17287  the page number appears in the central footer) simply include a command
17288  with a blank argument, e.
17289 \begin_inset space \thinspace{}
17290 \end_inset
17291
17292 g.:
17293 \end_layout
17294
17295 \begin_layout Standard
17296
17297 \change_inserted 564990737 1672236008
17298
17299 \family sans
17300 \lang american
17301
17302 \backslash
17303 cfoot{}
17304 \end_layout
17305
17306 \begin_layout Standard
17307
17308 \change_inserted 564990737 1672236008
17309
17310 \lang american
17311 There is, however, an easier way to make simple changes.
17312  If you load the 
17313 \family sans
17314 \bar under
17315 D
17316 \bar default
17317 ocument\SpecialChar menuseparator
17318
17319 \bar under
17320 S
17321 \bar default
17322 ettings\SpecialChar menuseparator
17323 Modules\SpecialChar menuseparator
17324 Page Layout\SpecialChar menuseparator
17325 Custom Header/Footer Text
17326 \family default
17327  module, you will find you have six new environments corresponding to the
17328  six fields described above.
17329 \end_layout
17330
17331 \begin_layout Standard
17332
17333 \change_inserted 564990737 1672236008
17334
17335 \lang american
17336 Let's get really fancy: lets put the section number with the word 
17337 \begin_inset Quotes eld
17338 \end_inset
17339
17340 Section
17341 \begin_inset Quotes erd
17342 \end_inset
17343
17344  (e.
17345 \begin_inset space \thinspace{}
17346 \end_inset
17347
17348 g.
17349 \begin_inset space \space{}
17350 \end_inset
17351
17352 Section 3) in the upper left, the page number (e.
17353 \begin_inset space \thinspace{}
17354 \end_inset
17355
17356 g.
17357 \begin_inset space \space{}
17358 \end_inset
17359
17360 Page 4) in the upper right, your name in the lower left, and the date in
17361  the lower right.
17362  Use your newly enabled environments to add these entries:
17363 \end_layout
17364
17365 \begin_layout Standard
17366
17367 \change_inserted 564990737 1672236008
17368
17369 \lang american
17370 \begin_inset VSpace defskip
17371 \end_inset
17372
17373
17374 \end_layout
17375
17376 \begin_layout Standard
17377
17378 \change_inserted 564990737 1672236008
17379
17380 \color green
17381 \lang american
17382 Left
17383 \begin_inset space ~
17384 \end_inset
17385
17386 header:
17387 \series bold
17388 \color inherit
17389  
17390 \series default
17391 Section
17392 \family typewriter
17393  
17394 \family sans
17395
17396 \backslash
17397 thesection
17398 \end_layout
17399
17400 \begin_layout Standard
17401
17402 \change_inserted 564990737 1672236008
17403
17404 \color green
17405 \lang american
17406 Center header:
17407 \end_layout
17408
17409 \begin_layout Standard
17410
17411 \change_inserted 564990737 1672236008
17412
17413 \color green
17414 \lang american
17415 Right header:
17416 \color inherit
17417  Page
17418 \family typewriter
17419  
17420 \family sans
17421
17422 \backslash
17423 thepage
17424 \end_layout
17425
17426 \begin_layout Standard
17427
17428 \change_inserted 564990737 1672236008
17429
17430 \color green
17431 \lang american
17432 Left footer:
17433 \color inherit
17434  John Q.
17435  DocWriter
17436 \end_layout
17437
17438 \begin_layout Standard
17439
17440 \change_inserted 564990737 1672236008
17441
17442 \color green
17443 \lang american
17444 Center footer:
17445 \end_layout
17446
17447 \begin_layout Standard
17448
17449 \change_inserted 564990737 1672236008
17450
17451 \color green
17452 \lang american
17453 Right footer:
17454 \series bold
17455 \color inherit
17456  
17457 \family sans
17458 \series default
17459
17460 \backslash
17461 today
17462 \end_layout
17463
17464 \begin_layout Standard
17465
17466 \change_inserted 564990737 1672236008
17467
17468 \lang american
17469 \begin_inset VSpace defskip
17470 \end_inset
17471
17472
17473 \end_layout
17474
17475 \begin_layout Standard
17476
17477 \change_inserted 564990737 1672236008
17478
17479 \lang american
17480 Make sure you enter the commands 
17481 \family sans
17482
17483 \backslash
17484 thesection
17485 \family default
17486
17487 \family sans
17488
17489 \backslash
17490 thepage
17491 \family default
17492  and 
17493 \family sans
17494
17495 \backslash
17496 today
17497 \family default
17498  as \SpecialChar TeX
17499  Code commands
17500 \series bold
17501 .
17502
17503 \series default
17504  The commands 
17505 \family sans
17506
17507 \backslash
17508 thesection
17509 \family default
17510  and 
17511 \family sans
17512
17513 \backslash
17514 thepage
17515 \family default
17516  access \SpecialChar LaTeX
17517 ’s section and page counters, and so print out the current section
17518  and page numbers.
17519  
17520 \family sans
17521
17522 \backslash
17523 today
17524 \family default
17525  simply prints out today’s date.
17526 \end_layout
17527
17528 \begin_layout Standard
17529
17530 \change_inserted 564990737 1672236008
17531
17532 \lang american
17533 The thicknesses of the horizontal rules drawn beneath the header and above
17534  the footer can also be modified.
17535  If you don't want one of the rules, set its thickness to 0.
17536  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
17537  For this you will need to use \SpecialChar TeX
17538  Code commands like 
17539 \end_layout
17540
17541 \begin_layout Standard
17542
17543 \change_inserted 564990737 1672236008
17544
17545 \family sans
17546 \lang american
17547
17548 \backslash
17549 renewcommand{
17550 \backslash
17551 headrulewidth}{0.4pt}
17552 \family default
17553  and 
17554 \end_layout
17555
17556 \begin_layout Standard
17557
17558 \change_inserted 564990737 1672236008
17559
17560 \family sans
17561 \lang american
17562
17563 \backslash
17564 renewcommand{
17565 \backslash
17566 footrulewidth}{0.4pt}
17567 \family default
17568  to set the thicknesses.
17569 \end_layout
17570
17571 \begin_layout Standard
17572
17573 \change_inserted 564990737 1672236008
17574
17575 \lang american
17576 You can switch the header/footer settings on and off for individual pages
17577  using \SpecialChar TeX
17578  Code commands like 
17579 \family sans
17580
17581 \backslash
17582 thispagestyle{empty}
17583 \family default
17584
17585 \family sans
17586
17587 \backslash
17588 thispagestyle{plain}
17589 \family default
17590 , and 
17591 \family sans
17592
17593 \backslash
17594 thispagestyle{fancy}
17595 \family default
17596 .
17597  Simply insert them in the text on the page you want changed and mark them
17598  as \SpecialChar TeX
17599  code.
17600  In fact, title pages are marked as plain by default, while following pages
17601  are marked fancy when using the global fancy setting.
17602  
17603 \end_layout
17604
17605 \begin_layout Standard
17606
17607 \change_inserted 564990737 1672236008
17608
17609 \lang american
17610 If you want a header or footer to be on the outer side of a two sided document,
17611  you need to use something like:
17612 \end_layout
17613
17614 \begin_layout Standard
17615
17616 \change_inserted 564990737 1672236008
17617
17618 \family sans
17619 \lang american
17620 \begin_inset Flex Strong
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624
17625 \change_inserted 564990737 1672236008
17626
17627 \family sans
17628 \series medium
17629 \lang american
17630
17631 \backslash
17632 fancyfoot{}
17633 \change_unchanged
17634
17635 \end_layout
17636
17637 \end_inset
17638
17639
17640 \end_layout
17641
17642 \begin_layout Standard
17643
17644 \change_inserted 564990737 1672236008
17645
17646 \family sans
17647 \lang american
17648 \begin_inset Flex Strong
17649 status collapsed
17650
17651 \begin_layout Plain Layout
17652
17653 \change_inserted 564990737 1672236008
17654
17655 \family sans
17656 \series medium
17657 \lang american
17658
17659 \backslash
17660 fancyfoot[LE,RO]{
17661 \backslash
17662 thepage}
17663 \change_unchanged
17664
17665 \end_layout
17666
17667 \end_inset
17668
17669
17670 \end_layout
17671
17672 \begin_layout Standard
17673
17674 \change_inserted 564990737 1672236008
17675
17676 \lang american
17677 The first command clears all existing footers avoiding any conflicts with
17678  your new command.
17679 \end_layout
17680
17681 \begin_layout Standard
17682
17683 \change_inserted 564990737 1672236008
17684
17685 \lang american
17686 You can enter any of these commands, the simpler ones in any of your new
17687  environments, the more complex ones as \SpecialChar TeX
17688  Code commands, at any point in
17689  your document and they will take effect on the next page.
17690 \end_layout
17691
17692 \begin_layout Standard
17693
17694 \change_inserted 564990737 1672236008
17695
17696 \lang american
17697 As a final example, it is possible to include an image in the header or
17698  footer.
17699  Suppose you want to put a company logo in the upper left hand corner.
17700  You might try something like
17701 \end_layout
17702
17703 \begin_layout Standard
17704
17705 \change_inserted 564990737 1672236008
17706
17707 \family sans
17708 \lang american
17709
17710 \backslash
17711 lhead{
17712 \backslash
17713 resizebox{1in}{!}{
17714 \backslash
17715 includegraphics{logo.eps}}}
17716 \end_layout
17717
17718 \begin_layout Standard
17719 \noindent
17720
17721 \change_inserted 564990737 1672236008
17722
17723 \lang american
17724 (you may need to preface this with 
17725 \family sans
17726
17727 \backslash
17728 usepackage{graphics}
17729 \family default
17730  if you don't include graphics elsewhere in your document).
17731 \end_layout
17732
17733 \begin_layout Standard
17734
17735 \change_inserted 564990737 1672236008
17736
17737 \lang american
17738 For more information on fancy headers, you can get the 
17739 \begin_inset Flex Code
17740 status collapsed
17741
17742 \begin_layout Plain Layout
17743
17744 \change_inserted 564990737 1672236008
17745
17746 \lang american
17747 fancyhdr
17748 \change_unchanged
17749
17750 \end_layout
17751
17752 \end_inset
17753
17754  documentation from 
17755 \begin_inset CommandInset href
17756 LatexCommand href
17757 name "CTAN"
17758 target "http://www.ctan.org/pkg/fancyhdr"
17759 literal "false"
17760
17761 \end_inset
17762
17763 .
17764  
17765 \end_layout
17766
17767 \begin_layout Subsection
17768
17769 \change_inserted 564990737 1672236008
17770
17771 \lang american
17772 Landscape Document Parts
17773 \end_layout
17774
17775 \begin_layout Standard
17776
17777 \change_inserted 564990737 1672236008
17778
17779 \lang american
17780 This module outputs parts of the document in landscape mode using 
17781 \family sans
17782 Insert\SpecialChar menuseparator
17783 Custom Insets\SpecialChar menuseparator
17784 Landscape
17785 \family default
17786  or 
17787 \family sans
17788 Insert\SpecialChar menuseparator
17789 Custom Insets\SpecialChar menuseparator
17790 Landscape (Floating)
17791 \family default
17792 .
17793 \end_layout
17794
17795 \begin_layout Subsection
17796
17797 \change_inserted 564990737 1672236008
17798
17799 \lang american
17800 \begin_inset CommandInset label
17801 LatexCommand label
17802 name "sec:Multiple-Columns"
17803
17804 \end_inset
17805
17806 Multiple Columns
17807 \end_layout
17808
17809 \begin_layout Standard
17810
17811 \change_inserted 564990737 1672236008
17812
17813 \lang american
17814 This module uses the 
17815 \family sans
17816 multicol
17817 \family default
17818
17819 \begin_inset Index idx
17820 range none
17821 pageformat default
17822 status collapsed
17823
17824 \begin_layout Plain Layout
17825
17826 \change_inserted 564990737 1672236008
17827
17828 \lang american
17829 \SpecialChar LaTeX
17830 -packages ! multicol
17831 \change_unchanged
17832
17833 \end_layout
17834
17835 \end_inset
17836
17837  package and is independent of the option 
17838 \family sans
17839 Two-
17840 \bar under
17841 c
17842 \bar default
17843 olumn document
17844 \family default
17845  in the 
17846 \family sans
17847 \bar under
17848 D
17849 \bar default
17850 ocument\SpecialChar menuseparator
17851
17852 \bar under
17853 S
17854 \bar default
17855 ettings\SpecialChar menuseparator
17856 Text
17857 \begin_inset space ~
17858 \end_inset
17859
17860 Layout
17861 \family default
17862  dialog.
17863  If you want to have two columns for the whole document, you are recommended
17864  to use the 
17865 \family sans
17866 Two-
17867 \bar under
17868 c
17869 \bar default
17870 olumn document
17871 \family default
17872  option.
17873  For all other cases use this module.
17874 \change_deleted 564990737 1672236008
17875
17876 \lang english
17877 Multiple Text Columns
17878 \end_layout
17879
17880 \begin_layout Standard
17881
17882 \change_deleted 564990737 1672236008
17883 This feature is independent of the option 
17884 \family sans
17885 Two-column document
17886 \family default
17887  in the document settings under 
17888 \family sans
17889 Text Layout
17890 \family default
17891 .
17892  If you want to have 2
17893 \begin_inset space ~
17894 \end_inset
17895
17896 columns for the whole document, it is recommended to use the 
17897 \family sans
17898 Two-column document
17899 \family default
17900  option.
17901  For all other cases use this feature.
17902 \end_layout
17903
17904 \begin_layout Standard
17905
17906 \change_deleted 564990737 1672236008
17907 To use multiple text columns in your document, you have to load the module
17908  
17909 \family sans
17910 Multiple Columns
17911 \family default
17912  (menu 
17913 \family sans
17914 Document\SpecialChar menuseparator
17915 Settings\SpecialChar menuseparator
17916 Modules
17917 \family default
17918 ) and must have the \SpecialChar LaTeX
17919 -package 
17920 \begin_inset Flex Code
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924 multicol
17925 \end_layout
17926
17927 \end_inset
17928
17929  installed.
17930 \change_unchanged
17931
17932 \end_layout
17933
17934 \begin_layout Standard
17935 Footnotes within multiple columns will be placed at the bottom of the page
17936  and not under each column.
17937  Within the different columns you can use everything, with the limitation
17938  that for floats you need to 
17939 \change_deleted 564990737 1672236179
17940 use the float option 
17941 \family sans
17942 Span columns
17943 \change_inserted 564990737 1672236179
17944
17945 \family default
17946 \lang american
17947 check the option 
17948 \family sans
17949 \bar under
17950 S
17951 \bar default
17952 pan
17953 \begin_inset space ~
17954 \end_inset
17955
17956 columns
17957 \family default
17958  in 
17959 \family sans
17960 \bar under
17961 E
17962 \bar default
17963 dit\SpecialChar menuseparator
17964 Flo
17965 \bar under
17966 a
17967 \bar default
17968 t
17969 \begin_inset space ~
17970 \end_inset
17971
17972 Settings
17973 \change_unchanged
17974
17975 \family default
17976 \lang english
17977 .
17978 \end_layout
17979
17980 \begin_layout Subsubsection
17981 Basics
17982 \end_layout
17983
17984 \begin_layout Standard
17985 If you want to have 2
17986 \begin_inset space ~
17987 \end_inset
17988
17989 columns in your text, insert a multicolumn inset via the menu 
17990 \family sans
17991 Insert\SpecialChar menuseparator
17992 Custom
17993 \begin_inset space ~
17994 \end_inset
17995
17996 Insets\SpecialChar menuseparator
17997 Multiple
17998 \begin_inset space ~
17999 \end_inset
18000
18001 Columns
18002 \family default
18003  where the columns should start.
18004  Write all text that should be printed in 2
18005 \begin_inset space ~
18006 \end_inset
18007
18008 columns into this inset.
18009 \end_layout
18010
18011 \begin_layout Standard
18012 Here is an example:
18013 \end_layout
18014
18015 \begin_layout Standard
18016 \noindent
18017 \begin_inset Flex Multiple Columns
18018 status open
18019
18020 \begin_layout Plain Layout
18021 \noindent
18022
18023 \series bold
18024 \size small
18025 The Adventure of the Empty House
18026 \series default
18027
18028 \begin_inset Newline newline
18029 \end_inset
18030
18031 by Sir Arthur Conan Doyle
18032 \end_layout
18033
18034 \begin_layout Plain Layout
18035
18036 \size small
18037 It was in the spring of the year 1894 that all London was interested, and
18038  the fashionable world dismayed, by the murder of the Honourable Ronald
18039  Adair under most unusual and inexplicable circumstances.
18040  The public has already learned those particulars of the crime which came
18041  out in the police investigation, but a good deal was suppressed upon that
18042  occasion, since the case for the prosecution was so overwhelmingly strong
18043  that it was not necessary to bring forward all the facts.
18044  Only now, at the end of nearly ten years, am I allowed to supply those
18045  missing links which make up the whole of that remarkable chain.
18046  The crime was of interest in itself, but that interest was as nothing to
18047  me compared to the inconceivable sequel, which afforded me the greatest
18048  shock and surprise of any event in my adventurous life.
18049  Even now, after this long interval, I find myself thrilling as I think
18050  of it, and feeling once more that sudden flood of joy, amazement, and increduli
18051 ty which utterly submerged my mind.
18052  Let me say to that public, which has shown some interest in those glimpses
18053  which I have occasionally given them of the thoughts and actions of a very
18054  remarkable man, that they are not to blame me if I have not shared my knowledge
18055  with them, for I should have considered it my first duty to do so, had
18056  I not been barred by a positive prohibition from his own lips, which was
18057  only withdrawn upon the third of last month.
18058 \end_layout
18059
18060 \end_inset
18061
18062
18063 \end_layout
18064
18065 \begin_layout Standard
18066 To get 3 or more columns, set the cursor into the multicolumn inset and
18067  use the menu 
18068 \family sans
18069 Insert\SpecialChar menuseparator
18070 Number
18071 \begin_inset space ~
18072 \end_inset
18073
18074 of
18075 \begin_inset space ~
18076 \end_inset
18077
18078 Columns
18079 \family default
18080 .
18081  The number of the desired columns is written into that inset (for 3
18082 \begin_inset space ~
18083 \end_inset
18084
18085 columns write 
18086 \begin_inset Quotes eld
18087 \end_inset
18088
18089 3
18090 \begin_inset Quotes erd
18091 \end_inset
18092
18093 ).
18094 \begin_inset Newline newline
18095 \end_inset
18096
18097 Here is an example with 3
18098 \begin_inset space ~
18099 \end_inset
18100
18101 columns:
18102 \end_layout
18103
18104 \begin_layout Standard
18105 \begin_inset Flex Multiple Columns
18106 status open
18107
18108 \begin_layout Plain Layout
18109
18110 \size footnotesize
18111 \begin_inset Argument 1
18112 status open
18113
18114 \begin_layout Plain Layout
18115
18116 3
18117 \end_layout
18118
18119 \end_inset
18120
18121 It can be imagined that my close intimacy with Sherlock Holmes had interested
18122  me deeply in crime, and that after his disappearance I never failed to
18123  read with care the various problems which came before the public.
18124  And I even attempted, more than once, for my own private satisfaction,
18125  to employ his methods in their solution, though with indifferent success.
18126  There was none, however, which appealed to me like this tragedy of Ronald
18127  Adair.
18128  As I read the evidence at the inquest, which led up to a verdict of willful
18129  murder against some person or persons unknown, I realized more clearly
18130  than I had ever done the loss which the community had sustained by the
18131  death of Sherlock Holmes.
18132  There were points about this strange business which would, I was sure,
18133  have specially appealed to him, and the efforts of the police would have
18134  been supplemented, or more probably anticipated, by the trained observation
18135  and the alert mind of the first criminal agent in Europe.
18136  All day, as I drove upon my round, I turned over the case in my mind and
18137  found no explanation which appeared to me to be adequate.
18138  At the risk of telling a twice-told tale, I will recapitulate the facts
18139  as they were known to the public at the conclusion of the inquest.
18140 \end_layout
18141
18142 \end_inset
18143
18144
18145 \end_layout
18146
18147 \begin_layout Standard
18148 You can have up to 10
18149 \begin_inset space ~
18150 \end_inset
18151
18152 columns if you want to, but that might not be very pleasant for the readers
18153  of your document.
18154 \end_layout
18155
18156 \begin_layout Standard
18157
18158 \change_deleted 564990737 1672236245
18159 \begin_inset Newpage newpage
18160 \end_inset
18161
18162
18163 \change_unchanged
18164
18165 \end_layout
18166
18167 \begin_layout Subsubsection
18168 Columns inside Columns
18169 \end_layout
18170
18171 \begin_layout Standard
18172 You can also have columns inside columns:
18173 \end_layout
18174
18175 \begin_layout Standard
18176 \begin_inset Flex Multiple Columns
18177 status open
18178
18179 \begin_layout Plain Layout
18180
18181 \size footnotesize
18182 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
18183  at that time governor of one of the Australian colonies.
18184  Adair's mother had returned from Australia to undergo the operation for
18185  cataract, and she, her son Ronald, and her daughter Hilda were living together
18186  at 427 Park Lane.
18187 \end_layout
18188
18189 \begin_layout Plain Layout
18190 \begin_inset Flex Multiple Columns
18191 status open
18192
18193 \begin_layout Plain Layout
18194
18195 \size footnotesize
18196 The youth moved in the best society
18197 \begin_inset space ~
18198 \end_inset
18199
18200 – had, so far as was known, no enemies and no particular vices.
18201  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
18202  had been broken off by mutual consent some months before, and there was
18203  no sign that it had left any very profound feeling behind it.
18204  For the rest {sic} the man's life moved in a narrow and conventional circle,
18205  for his habits were quiet and his nature unemotional.
18206  Yet it was upon this easy-going young aristocrat that death came, in most
18207  strange and unexpected form, between the hours of ten and eleven-twenty
18208  on the night of March 30, 1894.
18209 \end_layout
18210
18211 \end_inset
18212
18213
18214 \end_layout
18215
18216 \begin_layout Plain Layout
18217
18218 \size footnotesize
18219 Ronald Adair was fond of cards
18220 \begin_inset space ~
18221 \end_inset
18222
18223 – playing continually, but never for such stakes as would hurt him.
18224  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
18225  It was shown that, after dinner on the day of his death, he had played
18226  a rubber of whist at the latter club.
18227  He had also played there in the afternoon.
18228
18229 \size default
18230  
18231 \size footnotesize
18232 The evidence of those who had played with him
18233 \begin_inset space ~
18234 \end_inset
18235
18236 – Mr.
18237  Murray, Sir John Hardy, and Colonel Moran
18238 \begin_inset space ~
18239 \end_inset
18240
18241 – showed that the game was whist, and that there was a fairly equal fall
18242  of the cards.
18243  Adair might have lost five pounds, but not more.
18244  His fortune was a considerable one, and such a loss could not in any way
18245  affect him.
18246  He had played nearly every day at one club or other, but he was a cautious
18247  player, and usually rose a winner.
18248  It came out in evidence that, in partnership with Colonel Moran, he had
18249  actually won as much as four hundred and twenty pounds in a sitting, some
18250  weeks before, from Godfrey Milner and Lord Balmoral.
18251  So much for his recent history as it came out at the inquest.
18252 \end_layout
18253
18254 \end_inset
18255
18256
18257 \end_layout
18258
18259 \begin_layout Subsubsection
18260 Advanced Examples
18261 \end_layout
18262
18263 \begin_layout Standard
18264 The examples in this section show some more special features of multiple
18265  columns.
18266 \end_layout
18267
18268 \begin_layout Standard
18269 For more features of multiple columns, have a look at the 
18270 \begin_inset CommandInset href
18271 LatexCommand href
18272 name "documentation"
18273 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
18274 literal "false"
18275
18276 \end_inset
18277
18278  of the \SpecialChar LaTeX
18279 -package 
18280 \begin_inset Flex Code
18281 status collapsed
18282
18283 \begin_layout Plain Layout
18284 multicol
18285 \end_layout
18286
18287 \end_inset
18288
18289 .
18290 \end_layout
18291
18292 \begin_layout Paragraph
18293 Preface
18294 \end_layout
18295
18296 \begin_layout Standard
18297 To add a preface text for multiple columns, set the cursor into the multicolumn
18298  inset and use the menu 
18299 \family sans
18300 Insert\SpecialChar menuseparator
18301 Preface
18302 \family default
18303 .
18304  Write your preface text into that inset.
18305 \begin_inset Newline newline
18306 \end_inset
18307
18308 This is an example with some preface text:
18309 \end_layout
18310
18311 \begin_layout Standard
18312 \begin_inset VSpace bigskip
18313 \end_inset
18314
18315
18316 \end_layout
18317
18318 \begin_layout Standard
18319 \begin_inset Flex Multiple Columns
18320 status open
18321
18322 \begin_layout Plain Layout
18323 \begin_inset Argument 2
18324 status open
18325
18326 \begin_layout Plain Layout
18327 And the story continues and continues and continues and continues\SpecialChar ldots
18328
18329 \end_layout
18330
18331 \end_inset
18332
18333
18334 \size small
18335 On the evening of the crime, he returned from the club exactly at ten.
18336  His mother and sister were out spending the evening with a relation.
18337  The servant deposed that she heard him enter the front room on the second
18338  floor, generally used as his sitting-room.
18339  She had lit a fire there, and as it smoked she had opened the window.
18340  No sound was heard from the room until eleven-twenty, the hour of the return
18341  of Lady Maynooth and her daughter.
18342  Desiring to say good-night, she attempted to enter her son's room.
18343  The door was locked on the inside, and no answer could be got to their
18344  cries and knocking.
18345  Help was obtained, and the door forced.
18346  The unfortunate young man was found lying near the table.
18347  His head had been horribly mutilated by an expanding revolver bullet, but
18348  no weapon of any sort was to be found in the room.
18349 \end_layout
18350
18351 \end_inset
18352
18353
18354 \end_layout
18355
18356 \begin_layout Standard
18357 You can also use a section heading as the preface if you use a section command
18358  as \SpecialChar TeX
18359  Code.
18360  For example the command
18361 \end_layout
18362
18363 \begin_layout LyX-Code
18364
18365 \backslash
18366 subsection{subsection title}
18367 \end_layout
18368
18369 \begin_layout Standard
18370 creates a subsection.
18371  In this example the preface is a subsubsection:
18372 \end_layout
18373
18374 \begin_layout Standard
18375 \begin_inset Flex Multiple Columns
18376 status open
18377
18378 \begin_layout Plain Layout
18379 \begin_inset Argument 2
18380 status open
18381
18382 \begin_layout Plain Layout
18383 \begin_inset ERT
18384 status collapsed
18385
18386 \begin_layout Plain Layout
18387
18388
18389 \backslash
18390 subsubsection{
18391 \end_layout
18392
18393 \end_inset
18394
18395 This is a subsubsection heading as a preface
18396 \begin_inset ERT
18397 status collapsed
18398
18399 \begin_layout Plain Layout
18400
18401 }
18402 \end_layout
18403
18404 \end_inset
18405
18406
18407 \end_layout
18408
18409 \end_inset
18410
18411
18412 \size small
18413 A minute examination of the circumstances served only to make the case more
18414  complex.
18415  In the first place, no reason could be given why the young man should have
18416  fastened the door upon the inside.
18417  There was the possibility that the murderer had done this, and had afterwards
18418  escaped by the window.
18419  The drop was at least twenty feet, however, and a bed of crocuses in full
18420  bloom lay beneath.
18421  Neither the flowers nor the earth showed any sign of having been disturbed,
18422  nor were there any marks upon the narrow strip of grass which separated
18423  the house from the road.
18424  Apparently, therefore, it was the young man himself who had fastened the
18425  door.
18426  But how did he come by his death? No one could have climbed up to the window
18427  without leaving traces.
18428  Suppose a man had fired through the window, he would indeed be a remarkable
18429  shot who could with a revolver inflict so deadly a wound.
18430  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
18431  a hundred yards of the house.
18432  No one had heard a shot.
18433 \end_layout
18434
18435 \end_inset
18436
18437
18438 \end_layout
18439
18440 \begin_layout Standard
18441 If there is less vertical space than 6
18442 \begin_inset space ~
18443 \end_inset
18444
18445 text lines is left on the page at the beginning of the multiple columns,
18446  a page break will be inserted before the multiple columns.
18447  Depending on the number of lines of the preface text, you might want to
18448  change this space.
18449  This is done by setting the cursor into the mulitcolumn inset behind the
18450  preface (if there is any) and using the menu 
18451 \family sans
18452 Insert\SpecialChar menuseparator
18453 Space
18454 \begin_inset space ~
18455 \end_inset
18456
18457 Before
18458 \begin_inset space ~
18459 \end_inset
18460
18461 Page
18462 \begin_inset space ~
18463 \end_inset
18464
18465 Break
18466 \family default
18467 .
18468  Insert into that inset the amount of space like e.
18469 \begin_inset space \thinspace{}
18470 \end_inset
18471
18472 g.
18473 \begin_inset space \space{}
18474 \end_inset
18475
18476
18477 \begin_inset Quotes eld
18478 \end_inset
18479
18480 5cm
18481 \begin_inset Quotes erd
18482 \end_inset
18483
18484 .
18485 \begin_inset Newline newline
18486 \end_inset
18487
18488 In this example the space is set to 7
18489 \begin_inset space ~
18490 \end_inset
18491
18492 text lines by using 
18493 \begin_inset Flex Code
18494 status collapsed
18495
18496 \begin_layout Plain Layout
18497 7
18498 \backslash
18499 baselineskip
18500 \end_layout
18501
18502 \end_inset
18503
18504  (where the command 
18505 \begin_inset Flex Code
18506 status collapsed
18507
18508 \begin_layout Plain Layout
18509
18510 \backslash
18511 baselineskip
18512 \end_layout
18513
18514 \end_inset
18515
18516  needs to be inserted as \SpecialChar TeX
18517  code):
18518 \end_layout
18519
18520 \begin_layout Standard
18521 \begin_inset Flex Multiple Columns
18522 status open
18523
18524 \begin_layout Plain Layout
18525 \begin_inset Argument 3
18526 status open
18527
18528 \begin_layout Plain Layout
18529 7
18530 \begin_inset ERT
18531 status collapsed
18532
18533 \begin_layout Plain Layout
18534
18535
18536 \backslash
18537 baselineskip
18538 \end_layout
18539
18540 \end_inset
18541
18542
18543 \end_layout
18544
18545 \end_inset
18546
18547
18548 \size small
18549 On the evening of the crime, he returned from the club exactly at ten.
18550  His mother and sister were out spending the evening with a relation.
18551  The servant deposed that she heard him enter the front room on the second
18552  floor, generally used as his sitting-room.
18553  She had lit a fire there, and as it smoked she had opened the window.
18554  No sound was heard from the room until eleven-twenty, the hour of the return
18555  of Lady Maynooth and her daughter.
18556  Desiring to say good-night, she attempted to enter her son's room.
18557  The door was locked on the inside, and no answer could be got to their
18558  cries and knocking.
18559  Help was obtained, and the door forced.
18560  The unfortunate young man was found lying near the table.
18561  His head had been horribly mutilated by an expanding revolver bullet, but
18562  no weapon of any sort was to be found in the room.
18563 \end_layout
18564
18565 \end_inset
18566
18567
18568 \end_layout
18569
18570 \begin_layout Paragraph
18571 Surrounding Space
18572 \end_layout
18573
18574 \begin_layout Standard
18575 The amount of space before and after multiple columns can be changed by
18576  changing the length 
18577 \begin_inset Flex Code
18578 status collapsed
18579
18580 \begin_layout Plain Layout
18581
18582 \backslash
18583 multicolsep
18584 \end_layout
18585
18586 \end_inset
18587
18588 .
18589  For example the command
18590 \end_layout
18591
18592 \begin_layout LyX-Code
18593
18594 \backslash
18595 setlength{
18596 \backslash
18597 multicolsep}{3cm}
18598 \end_layout
18599
18600 \begin_layout Standard
18601 in \SpecialChar TeX
18602  Code changes its value to 3
18603 \begin_inset space \thinspace{}
18604 \end_inset
18605
18606 cm.
18607  The change must be made before the multiple columns' start.
18608  The predefined value is 13
18609 \begin_inset space \thinspace{}
18610 \end_inset
18611
18612 pt.
18613 \end_layout
18614
18615 \begin_layout Standard
18616 For this example 
18617 \begin_inset Flex Code
18618 status collapsed
18619
18620 \begin_layout Plain Layout
18621
18622 \backslash
18623 multicolsep
18624 \end_layout
18625
18626 \end_inset
18627
18628  was set to 2.5
18629 \begin_inset space \thinspace{}
18630 \end_inset
18631
18632 cm:
18633 \end_layout
18634
18635 \begin_layout Standard
18636 \begin_inset ERT
18637 status open
18638
18639 \begin_layout Plain Layout
18640
18641
18642 \backslash
18643 setlength{
18644 \backslash
18645 multicolsep}{2.5cm}
18646 \end_layout
18647
18648 \end_inset
18649
18650
18651 \end_layout
18652
18653 \begin_layout Standard
18654 \begin_inset Flex Multiple Columns
18655 status open
18656
18657 \begin_layout Plain Layout
18658
18659 \size small
18660 All day I turned these facts over in my mind, endeavouring to hit upon some
18661  theory which could reconcile them all, and to find that line of least resistanc
18662 e which my poor friend had declared to be the starting-point of every investigat
18663 ion.
18664  I confess that I made little progress.
18665  In the evening I strolled across the Park, and found myself about six o'clock
18666  at the Oxford Street end of Park Lane.
18667  A group of loafers upon the pavements, all staring up at a particular window,
18668  directed me to the house which I had come to see.
18669  A tall, thin man with coloured glasses, whom I strongly suspected of being
18670  a plain-clothes detective, was pointing out some theory of his own, while
18671  the others crowded round to listen to what he said.
18672  I got as near him as I could, but his observations seemed to me to be absurd,
18673  so I withdrew again in some disgust.
18674  As I did so I struck against an elderly, deformed man, who had been behind
18675  me, and I knocked down several books which he was carrying.
18676 \end_layout
18677
18678 \end_inset
18679
18680
18681 \end_layout
18682
18683 \begin_layout Standard
18684 \begin_inset Note Greyedout
18685 status open
18686
18687 \begin_layout Plain Layout
18688
18689 \series bold
18690 Note:
18691 \series default
18692  The values you set with 
18693 \begin_inset Flex Code
18694 status collapsed
18695
18696 \begin_layout Plain Layout
18697
18698 \backslash
18699 setlength
18700 \end_layout
18701
18702 \end_inset
18703
18704  will be used for all following multiple columns until you change them again.
18705 \end_layout
18706
18707 \end_inset
18708
18709
18710 \end_layout
18711
18712 \begin_layout Standard
18713 \begin_inset ERT
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717
18718
18719 \backslash
18720 setlength{
18721 \backslash
18722 multicolsep}{13pt}
18723 \end_layout
18724
18725 \end_inset
18726
18727
18728 \begin_inset Note Note
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 go back to the default
18733 \end_layout
18734
18735 \end_inset
18736
18737
18738 \end_layout
18739
18740 \begin_layout Standard
18741
18742 \change_deleted 564990737 1672236355
18743 \begin_inset Newpage newpage
18744 \end_inset
18745
18746
18747 \change_unchanged
18748
18749 \end_layout
18750
18751 \begin_layout Paragraph
18752 Column Breaks
18753 \end_layout
18754
18755 \begin_layout Standard
18756 A column break can be forced by inserting the command 
18757 \begin_inset Flex Code
18758 status collapsed
18759
18760 \begin_layout Plain Layout
18761
18762 \backslash
18763 columnbreak{}
18764 \end_layout
18765
18766 \end_inset
18767
18768  as \SpecialChar TeX
18769  Code to that position in the text where the column should be broken.
18770  Note that this leads in most cases to whitespace in the text.
18771 \begin_inset Newline newline
18772 \end_inset
18773
18774 Here is an example:
18775 \end_layout
18776
18777 \begin_layout Standard
18778 \begin_inset Flex Multiple Columns
18779 status open
18780
18781 \begin_layout Plain Layout
18782
18783 \size small
18784 \begin_inset Quotes eld
18785 \end_inset
18786
18787 You're surprised to see me, sir,
18788 \begin_inset Quotes erd
18789 \end_inset
18790
18791  said he, in a strange, croaking voice.
18792 \end_layout
18793
18794 \begin_layout Plain Layout
18795
18796 \size small
18797 I acknowledged that I was.
18798 \end_layout
18799
18800 \begin_layout Plain Layout
18801
18802 \size small
18803 \begin_inset Quotes eld
18804 \end_inset
18805
18806 Well, I've a conscience, sir, and when I chanced to see you go into this
18807  house, as I came hobbling after you, I thought to myself, I'll just step
18808  in and see that kind gentleman, and tell him that if I was a bit gruff
18809  in my manner there was not any harm meant, and that I am much obliged to
18810  him for picking up my books.
18811 \begin_inset Quotes erd
18812 \end_inset
18813
18814
18815 \end_layout
18816
18817 \begin_layout Plain Layout
18818
18819 \size small
18820 \begin_inset Quotes eld
18821 \end_inset
18822
18823 You make too much of a trifle,
18824 \begin_inset Quotes erd
18825 \end_inset
18826
18827  said I.
18828  
18829 \begin_inset Quotes eld
18830 \end_inset
18831
18832 May I ask how you knew who I was?
18833 \begin_inset Quotes erd
18834 \end_inset
18835
18836  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
18837 \begin_inset ERT
18838 status collapsed
18839
18840 \begin_layout Plain Layout
18841
18842
18843 \backslash
18844 columnbreak{}
18845 \end_layout
18846
18847 \end_inset
18848
18849
18850 \end_layout
18851
18852 \begin_layout Plain Layout
18853
18854 \size small
18855 \begin_inset Quotes eld
18856 \end_inset
18857
18858 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
18859  you'll find my little bookshop at the corner of Church Street, and very
18860  happy to see you, I am sure.
18861  Maybe you collect yourself, sir.
18862  Here's 
18863 \noun on
18864 British
18865 \begin_inset space ~
18866 \end_inset
18867
18868 Birds
18869 \noun default
18870 , and 
18871 \noun on
18872 Catullus
18873 \noun default
18874 , and 
18875 \noun on
18876 The Holy War
18877 \noun default
18878
18879 \begin_inset space ~
18880 \end_inset
18881
18882 – a bargain, every one of them.
18883  With five volumes you could just fill that gap on that second shelf.
18884  It looks untidy, does it not, sir?
18885 \begin_inset Quotes erd
18886 \end_inset
18887
18888
18889 \end_layout
18890
18891 \end_inset
18892
18893
18894 \end_layout
18895
18896 \begin_layout Paragraph
18897 Column Separation
18898 \end_layout
18899
18900 \begin_layout Standard
18901 The width of the columns is automatically calculated, but you can modify
18902  the space between the columns.
18903  This is done by changing the length 
18904 \begin_inset Flex Code
18905 status collapsed
18906
18907 \begin_layout Plain Layout
18908
18909 \backslash
18910 columnsep
18911 \end_layout
18912
18913 \end_inset
18914
18915 .
18916  Its predefined value is 10
18917 \begin_inset space \thinspace{}
18918 \end_inset
18919
18920 pt.
18921  Here is an example where 
18922 \begin_inset Flex Code
18923 status collapsed
18924
18925 \begin_layout Plain Layout
18926
18927 \backslash
18928 columnsep
18929 \end_layout
18930
18931 \end_inset
18932
18933  is set to 3
18934 \begin_inset space \thinspace{}
18935 \end_inset
18936
18937 cm:
18938 \end_layout
18939
18940 \begin_layout Standard
18941 \begin_inset ERT
18942 status open
18943
18944 \begin_layout Plain Layout
18945
18946
18947 \backslash
18948 setlength{
18949 \backslash
18950 columnsep}{3cm}
18951 \end_layout
18952
18953 \end_inset
18954
18955
18956 \end_layout
18957
18958 \begin_layout Standard
18959 \begin_inset Flex Multiple Columns
18960 status open
18961
18962 \begin_layout Plain Layout
18963
18964 \size small
18965 My observations of No.
18966 \begin_inset space \space{}
18967 \end_inset
18968
18969 427 Park Lane did little to clear up the problem in which I was interested.
18970  The house was separated from the street by a low wall and railing, the
18971  whole not more than five feet high.
18972  It was perfectly easy, therefore, for anyone to get into the garden, but
18973  the window was entirely inaccessible, since there was no water pipe or
18974  anything which could help the most active man to climb it.
18975  More puzzled than ever, I retraced my steps to Kensington.
18976  I had not been in my study five minutes when the maid entered to say that
18977  a person desired to see me.
18978  To my astonishment it was none other than my strange old book collector,
18979  his sharp, wizened face peering out from a frame of white hair, and his
18980  precious volumes, a dozen of them at least, wedged under his right arm.
18981 \end_layout
18982
18983 \end_inset
18984
18985
18986 \end_layout
18987
18988 \begin_layout Standard
18989 \begin_inset ERT
18990 status collapsed
18991
18992 \begin_layout Plain Layout
18993
18994
18995 \backslash
18996 setlength{
18997 \backslash
18998 columnsep}{10pt}
18999 \end_layout
19000
19001 \end_inset
19002
19003
19004 \begin_inset Note Note
19005 status collapsed
19006
19007 \begin_layout Plain Layout
19008 go back to the default
19009 \end_layout
19010
19011 \end_inset
19012
19013
19014 \end_layout
19015
19016 \begin_layout Paragraph
19017 Vertical Lines
19018 \end_layout
19019
19020 \begin_layout Standard
19021 Between the columns a rule with a width of the length 
19022 \begin_inset Flex Code
19023 status collapsed
19024
19025 \begin_layout Plain Layout
19026
19027 \backslash
19028 columnseprule
19029 \end_layout
19030
19031 \end_inset
19032
19033  is placed.
19034  If this rule width is set to 0
19035 \begin_inset space \thinspace{}
19036 \end_inset
19037
19038 pt (this is the default), the rule is suppressed.
19039  In the following example the rule is 2
19040 \begin_inset space \thinspace{}
19041 \end_inset
19042
19043 pt wide:
19044 \end_layout
19045
19046 \begin_layout Standard
19047 \begin_inset ERT
19048 status open
19049
19050 \begin_layout Plain Layout
19051
19052
19053 \backslash
19054 setlength{
19055 \backslash
19056 columnseprule}{2pt}
19057 \end_layout
19058
19059 \end_inset
19060
19061
19062 \end_layout
19063
19064 \begin_layout Standard
19065 \begin_inset Flex Multiple Columns
19066 status open
19067
19068 \begin_layout Plain Layout
19069
19070 \size small
19071 \begin_inset Quotes eld
19072 \end_inset
19073
19074 You're surprised to see me, sir,
19075 \begin_inset Quotes erd
19076 \end_inset
19077
19078  said he, in a strange, croaking voice.
19079 \end_layout
19080
19081 \begin_layout Plain Layout
19082
19083 \size small
19084 I acknowledged that I was.
19085 \end_layout
19086
19087 \begin_layout Plain Layout
19088
19089 \size small
19090 \begin_inset Quotes eld
19091 \end_inset
19092
19093 Well, I've a conscience, sir, and when I chanced to see you go into this
19094  house, as I came hobbling after you, I thought to myself, I'll just step
19095  in and see that kind gentleman, and tell him that if I was a bit gruff
19096  in my manner there was not any harm meant, and that I am much obliged to
19097  him for picking up my books.
19098 \begin_inset Quotes erd
19099 \end_inset
19100
19101
19102 \end_layout
19103
19104 \begin_layout Plain Layout
19105
19106 \size small
19107 \begin_inset Quotes eld
19108 \end_inset
19109
19110 You make too much of a trifle,
19111 \begin_inset Quotes erd
19112 \end_inset
19113
19114  said I.
19115  
19116 \begin_inset Quotes eld
19117 \end_inset
19118
19119 May I ask how you knew who I was?
19120 \begin_inset Quotes erd
19121 \end_inset
19122
19123
19124 \end_layout
19125
19126 \begin_layout Plain Layout
19127
19128 \size small
19129 \begin_inset Quotes eld
19130 \end_inset
19131
19132 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
19133  you'll find my little bookshop at the corner of Church Street, and very
19134  happy to see you, I am sure.
19135  Maybe you collect yourself, sir.
19136  Here's 
19137 \noun on
19138 British
19139 \begin_inset space ~
19140 \end_inset
19141
19142 Birds
19143 \noun default
19144 , and 
19145 \noun on
19146 Catullus
19147 \noun default
19148 , and 
19149 \noun on
19150 The Holy War
19151 \noun default
19152
19153 \begin_inset space ~
19154 \end_inset
19155
19156 – a bargain, every one of them.
19157  With five volumes you could just fill that gap on that second shelf.
19158  It looks untidy, does it not, sir?
19159 \begin_inset Quotes erd
19160 \end_inset
19161
19162
19163 \end_layout
19164
19165 \end_inset
19166
19167
19168 \end_layout
19169
19170 \begin_layout Standard
19171 \begin_inset VSpace defskip
19172 \end_inset
19173
19174
19175 \end_layout
19176
19177 \begin_layout Standard
19178 The rule can be colored by redefining the command 
19179 \begin_inset Flex Code
19180 status collapsed
19181
19182 \begin_layout Plain Layout
19183
19184 \backslash
19185 columnseprulecolor
19186 \end_layout
19187
19188 \end_inset
19189
19190 .
19191  This is done by inserting the command
19192 \end_layout
19193
19194 \begin_layout LyX-Code
19195
19196 \backslash
19197 renewcommand{
19198 \backslash
19199 columnseprulecolor}{
19200 \backslash
19201 color{red}}
19202 \end_layout
19203
19204 \begin_layout Standard
19205 as \SpecialChar TeX
19206  Code before the multicolumn inset.
19207  Replace 
19208 \begin_inset Flex Code
19209 status collapsed
19210
19211 \begin_layout Plain Layout
19212 red
19213 \end_layout
19214
19215 \end_inset
19216
19217  in this command by a color of your choice.
19218  You can use all pre- and self-defined colors.
19219  See the 
19220 \emph on
19221 EmbeddedObjects
19222 \emph default
19223  manual, section 
19224 \emph on
19225 Colored
19226 \begin_inset space ~
19227 \end_inset
19228
19229 Tables
19230 \emph default
19231  for more information about pre- and self-defined colors.
19232  To go back to the default color insert the command
19233 \end_layout
19234
19235 \begin_layout LyX-Code
19236
19237 \backslash
19238 renewcommand{
19239 \backslash
19240 columnseprulecolor}{
19241 \backslash
19242 normalcolor}
19243 \end_layout
19244
19245 \begin_layout Standard
19246 Here is the example with a cyan rule and 1
19247 \begin_inset space \thinspace{}
19248 \end_inset
19249
19250 cm column separation:
19251 \end_layout
19252
19253 \begin_layout Standard
19254 \begin_inset ERT
19255 status open
19256
19257 \begin_layout Plain Layout
19258
19259
19260 \backslash
19261 setlength{
19262 \backslash
19263 columnsep}{1cm}
19264 \end_layout
19265
19266 \begin_layout Plain Layout
19267
19268
19269 \backslash
19270 renewcommand{
19271 \backslash
19272 columnseprulecolor}{
19273 \backslash
19274 color{cyan}}
19275 \end_layout
19276
19277 \end_inset
19278
19279
19280 \end_layout
19281
19282 \begin_layout Standard
19283 \begin_inset Flex Multiple Columns
19284 status open
19285
19286 \begin_layout Plain Layout
19287
19288 \size small
19289 \begin_inset Quotes eld
19290 \end_inset
19291
19292 You're surprised to see me, sir,
19293 \begin_inset Quotes erd
19294 \end_inset
19295
19296  said he, in a strange, croaking voice.
19297 \end_layout
19298
19299 \begin_layout Plain Layout
19300
19301 \size small
19302 I acknowledged that I was.
19303 \end_layout
19304
19305 \begin_layout Plain Layout
19306
19307 \size small
19308 \begin_inset Quotes eld
19309 \end_inset
19310
19311 Well, I've a conscience, sir, and when I chanced to see you go into this
19312  house, as I came hobbling after you, I thought to myself, I'll just step
19313  in and see that kind gentleman, and tell him that if I was a bit gruff
19314  in my manner there was not any harm meant, and that I am much obliged to
19315  him for picking up my books.
19316 \begin_inset Quotes erd
19317 \end_inset
19318
19319
19320 \end_layout
19321
19322 \begin_layout Plain Layout
19323
19324 \size small
19325 \begin_inset Quotes eld
19326 \end_inset
19327
19328 You make too much of a trifle,
19329 \begin_inset Quotes erd
19330 \end_inset
19331
19332  said I.
19333  
19334 \begin_inset Quotes eld
19335 \end_inset
19336
19337 May I ask how you knew who I was?
19338 \begin_inset Quotes erd
19339 \end_inset
19340
19341
19342 \end_layout
19343
19344 \begin_layout Plain Layout
19345
19346 \size small
19347 \begin_inset Quotes eld
19348 \end_inset
19349
19350 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
19351  you'll find my little bookshop at the corner of Church Street, and very
19352  happy to see you, I am sure.
19353  Maybe you collect yourself, sir.
19354  Here's 
19355 \noun on
19356 British
19357 \begin_inset space ~
19358 \end_inset
19359
19360 Birds
19361 \noun default
19362 , and 
19363 \noun on
19364 Catullus
19365 \noun default
19366 , and 
19367 \noun on
19368 The Holy War
19369 \noun default
19370
19371 \begin_inset space ~
19372 \end_inset
19373
19374 – a bargain, every one of them.
19375  With five volumes you could just fill that gap on that second shelf.
19376  It looks untidy, does it not, sir?
19377 \begin_inset Quotes erd
19378 \end_inset
19379
19380
19381 \end_layout
19382
19383 \end_inset
19384
19385
19386 \end_layout
19387
19388 \begin_layout Standard
19389 \begin_inset ERT
19390 status collapsed
19391
19392 \begin_layout Plain Layout
19393
19394
19395 \backslash
19396 setlength{
19397 \backslash
19398 columnseprule}{0pt}
19399 \end_layout
19400
19401 \begin_layout Plain Layout
19402
19403
19404 \backslash
19405 renewcommand{
19406 \backslash
19407 columnseprulecolor}{
19408 \backslash
19409 normalcolor}
19410 \end_layout
19411
19412 \end_inset
19413
19414
19415 \begin_inset Note Note
19416 status collapsed
19417
19418 \begin_layout Plain Layout
19419 go back to the default
19420 \end_layout
19421
19422 \end_inset
19423
19424
19425 \end_layout
19426
19427 \begin_layout Section
19428
19429 \change_inserted 564990737 1671270380
19430 Paragraph Styles
19431 \end_layout
19432
19433 \begin_layout Subsection
19434
19435 \change_inserted 564990737 1671270398
19436 Custom
19437 \change_deleted 564990737 1671270396
19438 Non-standard
19439 \change_unchanged
19440  Paragraph Shapes
19441 \end_layout
19442
19443 \begin_layout Standard
19444 \noindent
19445 \SpecialChar LaTeX
19446  as well as any other text processor uses by default rectangular paragraphs.
19447  For special cases like for example posters, invitation cards or poems you
19448  can modify the paragraph shape to one of your choice.
19449  
19450 \change_deleted 564990737 1672311802
19451 This can be done by using the \SpecialChar LaTeX
19452 -package 
19453 \begin_inset Flex Code
19454 status collapsed
19455
19456 \begin_layout Plain Layout
19457 shapepar
19458 \end_layout
19459
19460 \end_inset
19461
19462  which is loaded by using in the document settings the module 
19463 \family sans
19464 Custom paragraph shapes
19465 \family default
19466 .
19467 \change_inserted 564990737 1672311802
19468
19469 \lang american
19470 This module uses the 
19471 \family sans
19472 shapepar
19473 \family default
19474  package to provide over a dozen paragraph shapes as well as commands to
19475  define custom shapes.
19476  
19477 \change_unchanged
19478
19479 \end_layout
19480
19481 \begin_layout Subsubsection
19482 Predefined shapes
19483 \end_layout
19484
19485 \begin_layout Standard
19486
19487 \series bold
19488 shapepar
19489 \series default
19490  provides the following shapes:
19491 \end_layout
19492
19493 \begin_layout Standard
19494 \begin_inset Tabular
19495 <lyxtabular version="3" rows="13" columns="3">
19496 <features booktabs="true" islongtable="true" longtabularalignment="center">
19497 <column alignment="left" valignment="middle" width="16col%">
19498 <column alignment="left" valignment="middle" width="40col%">
19499 <column alignment="left" valignment="middle" width="35col%">
19500 <row endhead="true">
19501 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19502 \begin_inset Text
19503
19504 \begin_layout Plain Layout
19505
19506 \series bold
19507 \size small
19508 Name
19509 \end_layout
19510
19511 \end_inset
19512 </cell>
19513 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
19514 \begin_inset Text
19515
19516 \begin_layout Plain Layout
19517
19518 \series bold
19519 \size small
19520 Description
19521 \end_layout
19522
19523 \end_inset
19524 </cell>
19525 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
19526 \begin_inset Text
19527
19528 \begin_layout Plain Layout
19529
19530 \series bold
19531 \size small
19532 Annotation
19533 \end_layout
19534
19535 \end_inset
19536 </cell>
19537 </row>
19538 <row interlinespace="default">
19539 <cell alignment="left" valignment="top" usebox="none">
19540 \begin_inset Text
19541
19542 \begin_layout Plain Layout
19543
19544 \size small
19545 CDlabel
19546 \end_layout
19547
19548 \end_inset
19549 </cell>
19550 <cell alignment="left" valignment="top" usebox="none">
19551 \begin_inset Text
19552
19553 \begin_layout Plain Layout
19554
19555 \size small
19556 Circle with circular hole (in the size of a CD/DVD)
19557 \end_layout
19558
19559 \end_inset
19560 </cell>
19561 <cell alignment="left" valignment="top" usebox="none">
19562 \begin_inset Text
19563
19564 \begin_layout Plain Layout
19565
19566 \size small
19567 Cannot be scaled, take care there is not too much text
19568 \end_layout
19569
19570 \end_inset
19571 </cell>
19572 </row>
19573 <row interlinespace="default">
19574 <cell alignment="left" valignment="top" usebox="none">
19575 \begin_inset Text
19576
19577 \begin_layout Plain Layout
19578
19579 \size small
19580 Circle
19581 \end_layout
19582
19583 \end_inset
19584 </cell>
19585 <cell alignment="left" valignment="top" usebox="none">
19586 \begin_inset Text
19587
19588 \begin_layout Plain Layout
19589
19590 \size small
19591 Circle
19592 \end_layout
19593
19594 \end_inset
19595 </cell>
19596 <cell alignment="left" valignment="top" usebox="none">
19597 \begin_inset Text
19598
19599 \begin_layout Plain Layout
19600
19601 \size small
19602 Fragile, calculation might fail
19603 \end_layout
19604
19605 \end_inset
19606 </cell>
19607 </row>
19608 <row interlinespace="default">
19609 <cell alignment="left" valignment="top" usebox="none">
19610 \begin_inset Text
19611
19612 \begin_layout Plain Layout
19613
19614 \size small
19615 Diamond
19616 \end_layout
19617
19618 \end_inset
19619 </cell>
19620 <cell alignment="left" valignment="top" usebox="none">
19621 \begin_inset Text
19622
19623 \begin_layout Plain Layout
19624
19625 \size small
19626 Rhomboid (symbolizing a 
19627 \begin_inset Quotes eld
19628 \end_inset
19629
19630 diamond
19631 \begin_inset Quotes erd
19632 \end_inset
19633
19634 )
19635 \end_layout
19636
19637 \end_inset
19638 </cell>
19639 <cell alignment="left" valignment="top" usebox="none">
19640 \begin_inset Text
19641
19642 \begin_layout Plain Layout
19643
19644 \size small
19645 -
19646 \end_layout
19647
19648 \end_inset
19649 </cell>
19650 </row>
19651 <row interlinespace="default">
19652 <cell alignment="left" valignment="top" usebox="none">
19653 \begin_inset Text
19654
19655 \begin_layout Plain Layout
19656
19657 \size small
19658 Heart
19659 \end_layout
19660
19661 \end_inset
19662 </cell>
19663 <cell alignment="left" valignment="top" usebox="none">
19664 \begin_inset Text
19665
19666 \begin_layout Plain Layout
19667
19668 \size small
19669 Heart-like shape
19670 \end_layout
19671
19672 \end_inset
19673 </cell>
19674 <cell alignment="left" valignment="top" usebox="none">
19675 \begin_inset Text
19676
19677 \begin_layout Plain Layout
19678
19679 \size small
19680 -
19681 \end_layout
19682
19683 \end_inset
19684 </cell>
19685 </row>
19686 <row interlinespace="default">
19687 <cell alignment="left" valignment="top" usebox="none">
19688 \begin_inset Text
19689
19690 \begin_layout Plain Layout
19691
19692 \size small
19693 Hexagon
19694 \end_layout
19695
19696 \end_inset
19697 </cell>
19698 <cell alignment="left" valignment="top" usebox="none">
19699 \begin_inset Text
19700
19701 \begin_layout Plain Layout
19702
19703 \size small
19704 Hexagon
19705 \end_layout
19706
19707 \end_inset
19708 </cell>
19709 <cell alignment="left" valignment="top" usebox="none">
19710 \begin_inset Text
19711
19712 \begin_layout Plain Layout
19713
19714 \size small
19715 -
19716 \end_layout
19717
19718 \end_inset
19719 </cell>
19720 </row>
19721 <row interlinespace="default">
19722 <cell alignment="left" valignment="top" usebox="none">
19723 \begin_inset Text
19724
19725 \begin_layout Plain Layout
19726
19727 \size small
19728 Nut
19729 \end_layout
19730
19731 \end_inset
19732 </cell>
19733 <cell alignment="left" valignment="top" usebox="none">
19734 \begin_inset Text
19735
19736 \begin_layout Plain Layout
19737
19738 \size small
19739 Nut for bolt (hexagon with circular hole)
19740 \end_layout
19741
19742 \end_inset
19743 </cell>
19744 <cell alignment="left" valignment="top" usebox="none">
19745 \begin_inset Text
19746
19747 \begin_layout Plain Layout
19748
19749 \size small
19750 -
19751 \end_layout
19752
19753 \end_inset
19754 </cell>
19755 </row>
19756 <row interlinespace="default">
19757 <cell alignment="left" valignment="top" usebox="none">
19758 \begin_inset Text
19759
19760 \begin_layout Plain Layout
19761
19762 \size small
19763 Square
19764 \end_layout
19765
19766 \end_inset
19767 </cell>
19768 <cell alignment="left" valignment="top" usebox="none">
19769 \begin_inset Text
19770
19771 \begin_layout Plain Layout
19772
19773 \size small
19774 Square
19775 \end_layout
19776
19777 \end_inset
19778 </cell>
19779 <cell alignment="left" valignment="top" usebox="none">
19780 \begin_inset Text
19781
19782 \begin_layout Plain Layout
19783
19784 \size small
19785 -
19786 \end_layout
19787
19788 \end_inset
19789 </cell>
19790 </row>
19791 <row interlinespace="default">
19792 <cell alignment="left" valignment="top" usebox="none">
19793 \begin_inset Text
19794
19795 \begin_layout Plain Layout
19796
19797 \size small
19798 Star
19799 \end_layout
19800
19801 \end_inset
19802 </cell>
19803 <cell alignment="left" valignment="top" usebox="none">
19804 \begin_inset Text
19805
19806 \begin_layout Plain Layout
19807
19808 \size small
19809 Five-point star
19810 \end_layout
19811
19812 \end_inset
19813 </cell>
19814 <cell alignment="left" valignment="top" usebox="none">
19815 \begin_inset Text
19816
19817 \begin_layout Plain Layout
19818
19819 \size small
19820 -
19821 \end_layout
19822
19823 \end_inset
19824 </cell>
19825 </row>
19826 <row interlinespace="default">
19827 <cell alignment="left" valignment="top" usebox="none">
19828 \begin_inset Text
19829
19830 \begin_layout Plain Layout
19831
19832 \size small
19833 Candle
19834 \end_layout
19835
19836 \end_inset
19837 </cell>
19838 <cell alignment="left" valignment="top" usebox="none">
19839 \begin_inset Text
19840
19841 \begin_layout Plain Layout
19842
19843 \size small
19844 Burning candle
19845 \end_layout
19846
19847 \end_inset
19848 </cell>
19849 <cell alignment="left" valignment="top" usebox="none">
19850 \begin_inset Text
19851
19852 \begin_layout Plain Layout
19853
19854 \size small
19855 -
19856 \end_layout
19857
19858 \end_inset
19859 </cell>
19860 </row>
19861 <row interlinespace="default">
19862 <cell alignment="left" valignment="top" usebox="none">
19863 \begin_inset Text
19864
19865 \begin_layout Plain Layout
19866
19867 \size small
19868 Drop down/up
19869 \end_layout
19870
19871 \end_inset
19872 </cell>
19873 <cell alignment="left" valignment="top" usebox="none">
19874 \begin_inset Text
19875
19876 \begin_layout Plain Layout
19877
19878 \size small
19879 Normal/reversed rain drop
19880 \end_layout
19881
19882 \end_inset
19883 </cell>
19884 <cell alignment="left" valignment="top" usebox="none">
19885 \begin_inset Text
19886
19887 \begin_layout Plain Layout
19888
19889 \size small
19890 Fragile, calculation might fail
19891 \end_layout
19892
19893 \end_inset
19894 </cell>
19895 </row>
19896 <row interlinespace="default">
19897 <cell alignment="left" valignment="top" usebox="none">
19898 \begin_inset Text
19899
19900 \begin_layout Plain Layout
19901
19902 \size small
19903 \SpecialChar TeX
19904
19905 \end_layout
19906
19907 \end_inset
19908 </cell>
19909 <cell alignment="left" valignment="top" usebox="none">
19910 \begin_inset Text
19911
19912 \begin_layout Plain Layout
19913
19914 \size small
19915 The \SpecialChar TeX
19916  logo
19917 \end_layout
19918
19919 \end_inset
19920 </cell>
19921 <cell alignment="left" valignment="top" usebox="none">
19922 \begin_inset Text
19923
19924 \begin_layout Plain Layout
19925
19926 \size small
19927 -
19928 \end_layout
19929
19930 \end_inset
19931 </cell>
19932 </row>
19933 <row interlinespace="default">
19934 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19935 \begin_inset Text
19936
19937 \begin_layout Plain Layout
19938
19939 \size small
19940 Triangle up/down/
19941 \begin_inset Newline newline
19942 \end_inset
19943
19944 left/right
19945 \end_layout
19946
19947 \end_inset
19948 </cell>
19949 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19950 \begin_inset Text
19951
19952 \begin_layout Plain Layout
19953
19954 \size small
19955 Triangles in different orientations
19956 \end_layout
19957
19958 \end_inset
19959 </cell>
19960 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
19961 \begin_inset Text
19962
19963 \begin_layout Plain Layout
19964
19965 \size small
19966 -
19967 \end_layout
19968
19969 \end_inset
19970 </cell>
19971 </row>
19972 </lyxtabular>
19973
19974 \end_inset
19975
19976
19977 \end_layout
19978
19979 \begin_layout Standard
19980 To use a shape for your paragraph, simply select it in \SpecialChar LyX
19981 's pull-down box
19982  for environments in the toolbar.
19983 \end_layout
19984
19985 \begin_layout Standard
19986 \begin_inset Newpage newpage
19987 \end_inset
19988
19989
19990 \end_layout
19991
19992 \begin_layout Standard
19993 Here is an example paragraph in the shape of a nut:
19994 \end_layout
19995
19996 \begin_layout Standard
19997 \begin_inset VSpace bigskip
19998 \end_inset
19999
20000
20001 \end_layout
20002
20003 \begin_layout Nut
20004
20005 \lang latin
20006 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20007  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20008  voluptua.
20009  At vero eos et accusam et justo duo dolores et ea rebum.
20010  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20011  sit amet.
20012  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20013  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20014  voluptua.
20015 \end_layout
20016
20017 \begin_layout Standard
20018 \begin_inset VSpace bigskip
20019 \end_inset
20020
20021
20022 \end_layout
20023
20024 \begin_layout Standard
20025 \begin_inset Note Greyedout
20026 status open
20027
20028 \begin_layout Plain Layout
20029
20030 \series bold
20031 Note
20032 \series default
20033
20034 \family sans
20035 shapepar
20036 \family default
20037  paragraphs cannot run over a page break.
20038 \end_layout
20039
20040 \end_inset
20041
20042
20043 \end_layout
20044
20045 \begin_layout Standard
20046 \begin_inset VSpace bigskip
20047 \end_inset
20048
20049
20050 \end_layout
20051
20052 \begin_layout Standard
20053 The package 
20054 \begin_inset Flex Code
20055 status collapsed
20056
20057 \begin_layout Plain Layout
20058 shapepar
20059 \end_layout
20060
20061 \end_inset
20062
20063  takes care that the shape will always be preserved, no matter how much
20064  text is in the paragraph.
20065  Therefore the paragraph size changes with the amount of contained text.
20066  This can lead to paragraph sizes exceeding the page margins.
20067  To demonstrate the size scaling, here is the same example paragraph but
20068  with twice as much text:
20069 \end_layout
20070
20071 \begin_layout Standard
20072 \begin_inset Newpage newpage
20073 \end_inset
20074
20075
20076 \end_layout
20077
20078 \begin_layout Nut
20079
20080 \lang latin
20081 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20082  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20083  voluptua.
20084  At vero eos et accusam et justo duo dolores et ea rebum.
20085  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20086  sit amet.
20087  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20088  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20089  voluptua.
20090  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20091  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20092  voluptua.
20093  At vero eos et accusam et justo duo dolores et ea rebum.
20094  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20095  sit amet.
20096  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20097  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20098  voluptua.
20099 \end_layout
20100
20101 \begin_layout Standard
20102 \begin_inset VSpace bigskip
20103 \end_inset
20104
20105
20106 \end_layout
20107
20108 \begin_layout Standard
20109 An exception is the shape 
20110 \family sans
20111 CDlabel
20112 \family default
20113 .
20114  It cannot be scaled because it must fit the size of a CD/DVD.
20115  Therefore the amount of text that fits into the shape is limited.
20116 \begin_inset Newline newline
20117 \end_inset
20118
20119 The 
20120 \family sans
20121 drop
20122 \family default
20123  shapes and the 
20124 \family sans
20125 circle
20126 \family default
20127  shape are fragile, meaning that the calculation of their size can fail,
20128  depending on the amount of text.
20129  You will then get the \SpecialChar LaTeX
20130  error 
20131 \begin_inset Quotes eld
20132 \end_inset
20133
20134 Arithmetic overflow
20135 \begin_inset Quotes erd
20136 \end_inset
20137
20138 .
20139  In this case one can try to remove or add some text; if nothing works one
20140  has to use another shape.
20141 \end_layout
20142
20143 \begin_layout Standard
20144 \begin_inset VSpace bigskip
20145 \end_inset
20146
20147
20148 \end_layout
20149
20150 \begin_layout Standard
20151 For shapes with tips you will maybe see that \SpecialChar LaTeX
20152 's hyphenation routine fails
20153  for text in the tips.
20154  Therefore it is often necessary to add hyphenation points 
20155 \family sans
20156 (
20157 \begin_inset Info
20158 type  "shortcut"
20159 arg   "specialchar-insert hyphenation"
20160 \end_inset
20161
20162
20163 \family default
20164 ) to the corresponding text parts.
20165 \end_layout
20166
20167 \begin_layout Standard
20168 \begin_inset VSpace bigskip
20169 \end_inset
20170
20171
20172 \end_layout
20173
20174 \begin_layout Standard
20175 Shapepar paragraphs are either always centered or placed on the page so
20176  that their left border touches the left page margin.
20177  You can therefore not use the paragraph dialog to align such paragraphs.
20178  A solution is to put the paragraph into a minipage or parbox and align
20179  the box.
20180  The problem is hereby to find the right width for the box.
20181  Because if it is too wide and you center the box, the paragraph is not
20182  centered too because it sticks at the left side of the box.
20183  So you might have to play a bit with the width until it fits.
20184  Here are two heart-shaped paragraphs, the first one is not aligned, the
20185  second one is right-aligned:
20186 \end_layout
20187
20188 \begin_layout Standard
20189 \begin_inset Newpage newpage
20190 \end_inset
20191
20192
20193 \end_layout
20194
20195 \begin_layout Heart
20196 \noindent
20197
20198 \lang latin
20199 Lo\SpecialChar softhyphen
20200 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20201  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20202  voluptua.
20203  At vero eos et accusam et justo duo dolores et ea rebum.
20204  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20205  sit amet.
20206 \end_layout
20207
20208 \begin_layout Standard
20209 \begin_inset VSpace bigskip
20210 \end_inset
20211
20212
20213 \end_layout
20214
20215 \begin_layout Standard
20216 \noindent
20217 \align right
20218 \begin_inset Box Frameless
20219 position "t"
20220 hor_pos "c"
20221 has_inner_box 1
20222 inner_pos "t"
20223 use_parbox 1
20224 use_makebox 0
20225 width "42col%"
20226 special "none"
20227 height "1in"
20228 height_special "totalheight"
20229 thickness "0.4pt"
20230 separation "3pt"
20231 shadowsize "4pt"
20232 framecolor "black"
20233 backgroundcolor "none"
20234 status open
20235
20236 \begin_layout Heart
20237 \noindent
20238
20239 \lang latin
20240 Lo\SpecialChar softhyphen
20241 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20242  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20243  voluptua.
20244  At vero eos et accusam et justo duo dolores et ea rebum.
20245  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20246  sit amet.
20247 \end_layout
20248
20249 \end_inset
20250
20251
20252 \end_layout
20253
20254 \begin_layout Subsubsection
20255 Custom shapes
20256 \end_layout
20257
20258 \begin_layout Standard
20259 You can define any shape you want.
20260  Doing this manually is a lot of work because every coordinate must be specified.
20261  But there is a way to let the computer calculate the coordinates:
20262 \end_layout
20263
20264 \begin_layout Enumerate
20265 Install the program 
20266 \begin_inset CommandInset href
20267 LatexCommand href
20268 name "Jpgfdraw"
20269 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
20270 literal "false"
20271
20272 \end_inset
20273
20274 .
20275 \end_layout
20276
20277 \begin_layout Enumerate
20278 In 
20279 \family sans
20280 Jpgfdraw
20281 \family default
20282  go to the menu 
20283 \family sans
20284 TeX/LaTeX\SpecialChar menuseparator
20285 Settings\SpecialChar menuseparator
20286 Set Normal Size
20287 \family default
20288  and select the font size you are using in your document.
20289  For example this document uses the size 12
20290 \begin_inset space \thinspace{}
20291 \end_inset
20292
20293 pt.
20294 \end_layout
20295
20296 \begin_layout Enumerate
20297 Draw a shape.
20298 \end_layout
20299
20300 \begin_layout Enumerate
20301 Use the menu 
20302 \family sans
20303 TeX/LaTeX\SpecialChar menuseparator
20304 Shapepar
20305 \family default
20306  to export the shape to coordinates.
20307  In the appearing dialog use either the outline of your shape for the coordinate
20308 s or the path itself.
20309 \begin_inset Foot
20310 status collapsed
20311
20312 \begin_layout Plain Layout
20313 For more information see 
20314 \begin_inset CommandInset href
20315 LatexCommand href
20316 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
20317 literal "false"
20318
20319 \end_inset
20320
20321
20322 \end_layout
20323
20324 \end_inset
20325
20326
20327 \end_layout
20328
20329 \begin_layout Standard
20330 The coordinates are written into a \SpecialChar TeX
20331  file.
20332  To use it for your \SpecialChar LyX
20333  document
20334 \end_layout
20335
20336 \begin_layout Enumerate
20337 Place the cursor before the first character of your paragraph (or into a
20338  new empty one).
20339 \end_layout
20340
20341 \begin_layout Enumerate
20342 Open in \SpecialChar LyX
20343  the menu 
20344 \family sans
20345 Insert\SpecialChar menuseparator
20346 File\SpecialChar menuseparator
20347 Child
20348 \begin_inset space ~
20349 \end_inset
20350
20351 Document
20352 \family default
20353 , select the file and use 
20354 \family sans
20355 Input
20356 \family default
20357  as 
20358 \family sans
20359 Include Type.
20360 \end_layout
20361
20362 \begin_layout Standard
20363 \begin_inset VSpace defskip
20364 \end_inset
20365
20366
20367 \end_layout
20368
20369 \begin_layout Standard
20370 \begin_inset Note Greyedout
20371 status open
20372
20373 \begin_layout Plain Layout
20374
20375 \series bold
20376 Note
20377 \series default
20378 : The changed shape only applies to the current paragraph; everything is
20379  reset to normal for the next paragraph.
20380  Therefore the shape definition file must be input into every paragraph
20381  with the desired shape.
20382 \end_layout
20383
20384 \end_inset
20385
20386
20387 \end_layout
20388
20389 \begin_layout Standard
20390 \begin_inset VSpace bigskip
20391 \end_inset
20392
20393
20394 \end_layout
20395
20396 \begin_layout Standard
20397 Here is an example:
20398 \end_layout
20399
20400 \begin_layout Standard
20401 \begin_inset VSpace bigskip
20402 \end_inset
20403
20404
20405 \end_layout
20406
20407 \begin_layout Standard
20408 \begin_inset CommandInset include
20409 LatexCommand input
20410 filename "SpecialParagraphShape.tex"
20411 literal "true"
20412
20413 \end_inset
20414
20415
20416 \lang latin
20417 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20418  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20419  voluptua.
20420  At vero eos et accusam et justo duo dolores et ea rebum.
20421  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
20422  sit amet.
20423  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
20424  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
20425  voluptua.
20426 \end_layout
20427
20428 \begin_layout Standard
20429 \begin_inset VSpace bigskip
20430 \end_inset
20431
20432
20433 \end_layout
20434
20435 \begin_layout Standard
20436
20437 \series bold
20438 A tip:
20439 \series default
20440  to draw complexer shapes in 
20441 \family sans
20442 Jpgfdraw
20443 \family default
20444  you can draw the shape in a program of your choice and import the resulting
20445  image to 
20446 \family sans
20447 Jpgfdraw
20448 \family default
20449 .
20450  Then you only need to draw a line or spline along the outline of the image.
20451 \end_layout
20452
20453 \begin_layout Standard
20454 \begin_inset VSpace bigskip
20455 \end_inset
20456
20457
20458 \end_layout
20459
20460 \begin_layout Standard
20461 The module 
20462 \family sans
20463 Custom paragraph shapes
20464 \family default
20465  also provides the two commands 
20466 \family sans
20467 shapepar
20468 \family default
20469  and 
20470 \family sans
20471 Shapepar
20472 \family default
20473  which can be used to define custom shapes coordinate by coordinate.
20474 \begin_inset Foot
20475 status collapsed
20476
20477 \begin_layout Plain Layout
20478 These commands are internally used for all shapes described here.
20479 \end_layout
20480
20481 \end_inset
20482
20483  For information how these styles are used and about further customization
20484  possibilities, have a look at the 
20485 \begin_inset CommandInset href
20486 LatexCommand href
20487 name "documentation"
20488 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
20489 literal "false"
20490
20491 \end_inset
20492
20493  of the package 
20494 \begin_inset Flex Code
20495 status collapsed
20496
20497 \begin_layout Plain Layout
20498 shapepar
20499 \end_layout
20500
20501 \end_inset
20502
20503 .
20504 \end_layout
20505
20506 \begin_layout Subsection
20507
20508 \change_inserted 564990737 1672311925
20509
20510 \lang american
20511 Hanging Paragraphs
20512 \end_layout
20513
20514 \begin_layout Hanging
20515
20516 \change_inserted 564990737 1672311925
20517
20518 \lang american
20519 This module adds the 
20520 \family sans
20521 Hanging
20522 \family default
20523  paragraph style, that is, one where all but the first line of the paragraph
20524  is indented.
20525  This may not appear in your \SpecialChar LyX
20526  document but will appear in the final output.
20527 \end_layout
20528
20529 \begin_layout Subsection
20530
20531 \change_inserted 564990737 1672311925
20532
20533 \lang american
20534 \begin_inset CommandInset label
20535 LatexCommand label
20536 name "subsec:Initials"
20537
20538 \end_inset
20539
20540 Initials (Drop Caps)
20541 \end_layout
20542
20543 \begin_layout Initial
20544
20545 \change_inserted 564990737 1672311925
20546
20547 \lang american
20548 \begin_inset Argument 2
20549 status open
20550
20551 \begin_layout Plain Layout
20552
20553 \change_inserted 564990737 1672311925
20554
20555 \lang british
20556 T
20557 \end_layout
20558
20559 \end_inset
20560
20561
20562 \begin_inset Argument 3
20563 status open
20564
20565 \begin_layout Plain Layout
20566
20567 \change_inserted 564990737 1672311925
20568
20569 \lang american
20570 his
20571 \end_layout
20572
20573 \end_inset
20574
20575  module adds a drop capitals paragraph style 
20576 \family sans
20577 Initials
20578 \family default
20579  for paragraph environments which you can use wherever you want to have
20580  drop capitals.
20581  You then have three more items in the 
20582 \family sans
20583 Insert
20584 \family default
20585  menu:
20586 \end_layout
20587
20588 \begin_layout Itemize
20589
20590 \change_inserted 564990737 1672311925
20591
20592 \family sans
20593 \lang american
20594 Initial
20595 \family default
20596  which creates an inset for the drop capital
20597 \end_layout
20598
20599 \begin_layout Itemize
20600
20601 \change_inserted 564990737 1672311925
20602
20603 \family sans
20604 \lang american
20605 Rest of initial
20606 \family default
20607  which creates an inset for the rest of the word
20608 \end_layout
20609
20610 \begin_layout Itemize
20611
20612 \change_inserted 564990737 1672311925
20613
20614 \family sans
20615 \lang american
20616 Options
20617 \family default
20618  which allow you configure the formatting of the drop capital.
20619 \end_layout
20620
20621 \begin_layout Standard
20622
20623 \change_inserted 564990737 1672311925
20624
20625 \lang american
20626 To customize the appearance of the style, see 
20627 \family sans
20628 Help\SpecialChar menuseparator
20629 Embedded Objects\SpecialChar menuseparator
20630 Objects Surrounded by Text\SpecialChar menuseparator
20631 Initials
20632 \family default
20633 .
20634 \end_layout
20635
20636 \begin_layout Section
20637
20638 \change_inserted 564990737 1672312011
20639
20640 \lang american
20641 Text Markup
20642 \end_layout
20643
20644 \begin_layout Subsection
20645
20646 \change_inserted 564990737 1672312011
20647
20648 \lang american
20649 Hyphenatable Text Markup
20650 \end_layout
20651
20652 \begin_layout Standard
20653
20654 \change_inserted 564990737 1672312011
20655
20656 \lang american
20657 This package defines text styles to highlight, space-out, strike-through,
20658  underline and capitalize/small-cap text by means of the 
20659 \family sans
20660 soul
20661 \family default
20662  package.
20663  As opposed to the markup provided by the Text Properties dialog, words
20664  marked-up with 
20665 \family sans
20666 soul
20667 \family default
20668  are hyphenated.
20669  See the 
20670 \begin_inset CommandInset href
20671 LatexCommand href
20672 name "soul documentation"
20673 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
20674 literal "false"
20675
20676 \end_inset
20677
20678 .
20679 \end_layout
20680
20681 \begin_layout Subsection
20682
20683 \change_inserted 564990737 1672312011
20684
20685 \lang american
20686 Logical Markup
20687 \end_layout
20688
20689 \begin_layout Standard
20690
20691 \change_inserted 564990737 1672312011
20692
20693 \lang american
20694 This module defines some character styles for logical markup: 
20695 \noun on
20696
20697 \begin_inset Flex Noun
20698 status collapsed
20699
20700 \begin_layout Plain Layout
20701
20702 \change_inserted 564990737 1672312011
20703
20704 \noun on
20705 \lang american
20706 noun
20707 \end_layout
20708
20709 \end_inset
20710
20711
20712 \noun default
20713
20714 \emph on
20715
20716 \begin_inset Flex Emph
20717 status collapsed
20718
20719 \begin_layout Plain Layout
20720
20721 \change_inserted 564990737 1672312011
20722
20723 \emph on
20724 \lang american
20725 emph
20726 \end_layout
20727
20728 \end_inset
20729
20730
20731 \emph default
20732
20733 \begin_inset Flex Strong
20734 status collapsed
20735
20736 \begin_layout Plain Layout
20737
20738 \change_inserted 564990737 1672312011
20739
20740 \lang american
20741 strong
20742 \end_layout
20743
20744 \end_inset
20745
20746 , and 
20747 \begin_inset Flex Code
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751
20752 \change_inserted 564990737 1672312011
20753
20754 \lang american
20755 code
20756 \end_layout
20757
20758 \end_inset
20759
20760  which are accessed via the 
20761 \family sans
20762 \bar under
20763 E
20764 \bar default
20765 dit\SpecialChar menuseparator
20766 Custom
20767 \begin_inset space ~
20768 \end_inset
20769
20770 Text
20771 \begin_inset space ~
20772 \end_inset
20773
20774
20775 \bar under
20776 S
20777 \bar default
20778 tyles
20779 \family default
20780  menu.
20781 \end_layout
20782
20783 \begin_layout Chapter
20784
20785 \change_deleted 564990737 1671304317
20786 Customizing 
20787 \change_unchanged
20788 Bibliograph
20789 \change_inserted 564990737 1671304322
20790 y
20791 \change_deleted 564990737 1671304331
20792 ies with Bib\SpecialChar TeX
20793  or Biblatex
20794 \change_unchanged
20795
20796 \end_layout
20797
20798 \begin_layout Standard
20799 The most basic information about how to use Bib\SpecialChar TeX
20800  or 
20801 \family sans
20802 Biblatex
20803 \family default
20804  with \SpecialChar LyX
20805  is contained in the section 
20806 \emph on
20807 Bibliography databases
20808 \emph default
20809  of the 
20810 \emph on
20811 User's Guide
20812 \emph default
20813 .
20814  The following subsections explain special bibliography features supported
20815  by \SpecialChar LyX
20816 .
20817 \end_layout
20818
20819 \begin_layout Section
20820 Alternative Citation Styles
20821 \end_layout
20822
20823 \begin_layout Standard
20824 Standard Bib\SpecialChar TeX
20825  uses numbers (e.
20826 \begin_inset space \thinspace{}
20827 \end_inset
20828
20829 g.
20830 \begin_inset space \space{}
20831 \end_inset
20832
20833
20834 \begin_inset Quotes eld
20835 \end_inset
20836
20837 [12]
20838 \begin_inset Quotes erd
20839 \end_inset
20840
20841 ) to refer to a cited work.
20842  However, in many scientific disciplines, other citation styles are in use.
20843  The most common one is the author-year style (e.
20844 \begin_inset space \thinspace{}
20845 \end_inset
20846
20847 g.
20848 \begin_inset space \space{}
20849 \end_inset
20850
20851
20852 \begin_inset Quotes eld
20853 \end_inset
20854
20855 Knuth 1984a
20856 \begin_inset Quotes erd
20857 \end_inset
20858
20859 ).
20860  \SpecialChar LyX
20861  supports three packages that provide this style, 
20862 \begin_inset Flex Code
20863 status collapsed
20864
20865 \begin_layout Plain Layout
20866 biblatex
20867 \end_layout
20868
20869 \end_inset
20870
20871
20872 \begin_inset Flex Code
20873 status collapsed
20874
20875 \begin_layout Plain Layout
20876 natbib
20877 \end_layout
20878
20879 \end_inset
20880
20881 , and 
20882 \begin_inset Flex Code
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 jurabib
20887 \end_layout
20888
20889 \end_inset
20890
20891 .
20892  Each of these packages has their pros and cons, which cannot be listed
20893  in detail.
20894  If you only want to have simple author-year (or author-numerical) style,
20895  or if you want to use one of the countless style files for 
20896 \begin_inset Flex Code
20897 status collapsed
20898
20899 \begin_layout Plain Layout
20900 natbib
20901 \end_layout
20902
20903 \end_inset
20904
20905 , then the established 
20906 \begin_inset Flex Code
20907 status collapsed
20908
20909 \begin_layout Plain Layout
20910 natbib
20911 \end_layout
20912
20913 \end_inset
20914
20915  package is probably your choice.
20916  If you look for specific citation styles common in law studies, you might
20917  consider the 
20918 \begin_inset Flex Code
20919 status collapsed
20920
20921 \begin_layout Plain Layout
20922 jurabib
20923 \end_layout
20924
20925 \end_inset
20926
20927  package.
20928  If you want to have full control over the formatting or look for advanced
20929  features such as ibidem, footnote citations, full title citations, advanced
20930  date formats (such as 400 BC) or full localization to other languages than
20931  English, you should definitely consider 
20932 \begin_inset Flex Code
20933 status collapsed
20934
20935 \begin_layout Plain Layout
20936 biblatex
20937 \end_layout
20938
20939 \end_inset
20940
20941 , which exceeds all other packages in terms of features, but is also quite
20942  heavy and more resource-hungry.
20943 \end_layout
20944
20945 \begin_layout Standard
20946 The handling of these packages in \SpecialChar LyX
20947  is basically the same.
20948  Go to 
20949 \begin_inset Flex Noun
20950 status collapsed
20951
20952 \begin_layout Plain Layout
20953 Document\SpecialChar menuseparator
20954 Settings
20955 \end_layout
20956
20957 \end_inset
20958
20959  and select under 
20960 \begin_inset Flex Noun
20961 status collapsed
20962
20963 \begin_layout Plain Layout
20964 Bibliography
20965 \end_layout
20966
20967 \end_inset
20968
20969  the 
20970 \begin_inset Flex Noun
20971 status collapsed
20972
20973 \begin_layout Plain Layout
20974 Style Format
20975 \end_layout
20976
20977 \end_inset
20978
20979  
20980 \begin_inset Flex Noun
20981 status collapsed
20982
20983 \begin_layout Plain Layout
20984 Basic (BibTeX)
20985 \end_layout
20986
20987 \end_inset
20988
20989
20990 \begin_inset Flex Noun
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994 Biblatex
20995 \end_layout
20996
20997 \end_inset
20998
20999
21000 \begin_inset Flex Noun
21001 status collapsed
21002
21003 \begin_layout Plain Layout
21004 Biblatex (Natbib mode)
21005 \end_layout
21006
21007 \end_inset
21008
21009
21010 \begin_inset Flex Noun
21011 status collapsed
21012
21013 \begin_layout Plain Layout
21014 Natbib (BibTeX)
21015 \end_layout
21016
21017 \end_inset
21018
21019  or 
21020 \begin_inset Flex Noun
21021 status collapsed
21022
21023 \begin_layout Plain Layout
21024 Jurabib (BibTeX)
21025 \end_layout
21026
21027 \end_inset
21028
21029  (see sec.
21030 \begin_inset space ~
21031 \end_inset
21032
21033 6.5.3 in the User's Guide for more information on these choices).
21034  With all these packages, you will get some extra features in the citation
21035  dialog and you can select the style of the reference (
21036 \begin_inset Quotes eld
21037 \end_inset
21038
21039 Knuth 1984
21040 \begin_inset Quotes erd
21041 \end_inset
21042
21043
21044 \begin_inset Quotes eld
21045 \end_inset
21046
21047 Knuth (1984)
21048 \begin_inset Quotes erd
21049 \end_inset
21050
21051
21052 \begin_inset Quotes eld
21053 \end_inset
21054
21055 Knuth, 1984
21056 \begin_inset Quotes erd
21057 \end_inset
21058
21059
21060 \begin_inset Quotes eld
21061 \end_inset
21062
21063 1984
21064 \begin_inset Quotes erd
21065 \end_inset
21066
21067  etc.).
21068  Note that either package needs specifically designed style files.
21069  They all ship their own, but there are lots of additional style files,
21070  and there is even an interactive style file builder
21071 \begin_inset Foot
21072 status collapsed
21073
21074 \begin_layout Plain Layout
21075 See 
21076 \begin_inset Flex URL
21077 status open
21078
21079 \begin_layout Plain Layout
21080
21081 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
21082 \end_layout
21083
21084 \end_inset
21085
21086
21087 \end_layout
21088
21089 \end_inset
21090
21091  for 
21092 \begin_inset Flex Code
21093 status collapsed
21094
21095 \begin_layout Plain Layout
21096 natbib
21097 \end_layout
21098
21099 \end_inset
21100
21101 .
21102 \end_layout
21103
21104 \begin_layout Section
21105 Subdivided Bibliographies
21106 \end_layout
21107
21108 \begin_layout Standard
21109 Sometimes you might need to divide your bibliography into several sections.
21110  If you are for instance a historian, the possibility to separate sources
21111  and scientific works is most likely a 
21112 \begin_inset Quotes eld
21113 \end_inset
21114
21115 must have
21116 \begin_inset Quotes erd
21117 \end_inset
21118
21119 .
21120  Unfortunately, Bib\SpecialChar TeX
21121  itself does not allow you to do this.
21122  But with the help of some \SpecialChar LaTeX
21123  packages, Bib\SpecialChar TeX
21124  can be extended to fit your needs.
21125 \end_layout
21126
21127 \begin_layout Standard
21128 \SpecialChar LyX
21129  provides native support for one of these packages, 
21130 \family typewriter
21131 bibtopic
21132 \family default
21133 .
21134 \begin_inset Foot
21135 status collapsed
21136
21137 \begin_layout Plain Layout
21138 Available from 
21139 \begin_inset Flex URL
21140 status open
21141
21142 \begin_layout Plain Layout
21143
21144 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
21145 \end_layout
21146
21147 \end_inset
21148
21149
21150 \end_layout
21151
21152 \end_inset
21153
21154  The advantage of this package (compared to other packages such as 
21155 \family typewriter
21156 multibib
21157 \family default
21158 ) is that you don't need to define new citation commands.
21159  Instead, you need to prepare different bibliographic databases which include
21160  the entries for the different sections of the bibliography.
21161  For example: If you want to divide your bibliography into the sections
21162  
21163 \begin_inset Quotes eld
21164 \end_inset
21165
21166 Sources
21167 \begin_inset Quotes erd
21168 \end_inset
21169
21170  and 
21171 \begin_inset Quotes eld
21172 \end_inset
21173
21174 Scientific works
21175 \begin_inset Quotes erd
21176 \end_inset
21177
21178 , you first need to create two bibliographic databases, e.
21179 \begin_inset space \thinspace{}
21180 \end_inset
21181
21182 g.
21183 \begin_inset space \space{}
21184 \end_inset
21185
21186
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 sources.bib
21192 \end_layout
21193
21194 \end_inset
21195
21196  and 
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 scientific.bib
21202 \end_layout
21203
21204 \end_inset
21205
21206 .
21207  
21208 \end_layout
21209
21210 \begin_layout Standard
21211 Go to 
21212 \begin_inset Flex Noun
21213 status collapsed
21214
21215 \begin_layout Plain Layout
21216 Document\SpecialChar menuseparator
21217 Settings
21218 \end_layout
21219
21220 \end_inset
21221
21222  and check under 
21223 \begin_inset Flex Noun
21224 status collapsed
21225
21226 \begin_layout Plain Layout
21227 Bibliography
21228 \end_layout
21229
21230 \end_inset
21231
21232  the option 
21233 \begin_inset Flex Noun
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 Subdivided bibliography
21238 \end_layout
21239
21240 \end_inset
21241
21242 .
21243  Now you can insert multiple Bib\SpecialChar TeX
21244  bibliographies, one for each section of
21245  your bibliography.
21246  Returning to our example: Insert the Bib\SpecialChar TeX
21247  bibliography 
21248 \begin_inset Flex Code
21249 status collapsed
21250
21251 \begin_layout Plain Layout
21252 sources.bib
21253 \end_layout
21254
21255 \end_inset
21256
21257  and a second one for the database 
21258 \begin_inset Flex Code
21259 status collapsed
21260
21261 \begin_layout Plain Layout
21262 scientific.bib
21263 \end_layout
21264
21265 \end_inset
21266
21267 .
21268  You are free to use the same or different styles for each section.
21269  Additionally, you can choose if the bibliography section should contain
21270  
21271 \begin_inset Quotes eld
21272 \end_inset
21273
21274 all cited references
21275 \begin_inset Quotes erd
21276 \end_inset
21277
21278  of the specified database(s) (which is the default), 
21279 \begin_inset Quotes eld
21280 \end_inset
21281
21282 all uncited references
21283 \begin_inset Quotes erd
21284 \end_inset
21285
21286  or even 
21287 \begin_inset Quotes eld
21288 \end_inset
21289
21290 all references
21291 \begin_inset Quotes erd
21292 \end_inset
21293
21294 .
21295  This might be useful if you would like to separate your bibliography into
21296  three sections: 
21297 \begin_inset Quotes eld
21298 \end_inset
21299
21300 Cited sources
21301 \begin_inset Quotes erd
21302 \end_inset
21303
21304
21305 \begin_inset Quotes eld
21306 \end_inset
21307
21308 Uncited sources
21309 \begin_inset Quotes erd
21310 \end_inset
21311
21312 , and 
21313 \begin_inset Quotes eld
21314 \end_inset
21315
21316 Scientific works
21317 \begin_inset Quotes erd
21318 \end_inset
21319
21320 .
21321  The titles for the sections can be added as ordinary sections or subsections.
21322  Since 
21323 \begin_inset Flex Code
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 bibtopic
21328 \end_layout
21329
21330 \end_inset
21331
21332  removes the bibliography title, you have to manually re-add that, too (as
21333  a chapter* or section*, for instance).
21334 \end_layout
21335
21336 \begin_layout Standard
21337 With 
21338 \family sans
21339 Biblatex
21340 \family default
21341 , the procedure is a bit different.
21342  Since 
21343 \family typewriter
21344 bibtopic
21345 \family default
21346  does not work with 
21347 \family sans
21348 Biblatex
21349 \family default
21350 , the aforementioned 
21351 \begin_inset Flex Noun
21352 status collapsed
21353
21354 \begin_layout Plain Layout
21355 Subdivided bibliography
21356 \end_layout
21357
21358 \end_inset
21359
21360  option is disabled if you use 
21361 \family sans
21362 Biblatex
21363 \family default
21364 .
21365  However, 
21366 \family sans
21367 Biblatex
21368 \family default
21369  provides its own means to generate subdivided bibliographies.
21370  You can either add keywords to bibliography entries via the 
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375 keywords
21376 \end_layout
21377
21378 \end_inset
21379
21380  entry option and then filter bibliography sections by keyword (by adding
21381  
21382 \begin_inset Flex Code
21383 status collapsed
21384
21385 \begin_layout Plain Layout
21386 keyword=mykeyword
21387 \end_layout
21388
21389 \end_inset
21390
21391  to the 
21392 \begin_inset Flex Noun
21393 status collapsed
21394
21395 \begin_layout Plain Layout
21396 Options
21397 \end_layout
21398
21399 \end_inset
21400
21401  field of the dialog that opens if you left-click on the 
21402 \begin_inset Flex Noun
21403 status collapsed
21404
21405 \begin_layout Plain Layout
21406 Biblatex Generated Bibliography
21407 \end_layout
21408
21409 \end_inset
21410
21411  button), or you can filter by entry types (such as 
21412 \emph on
21413 book
21414 \emph default
21415  or 
21416 \emph on
21417 article
21418 \emph default
21419 ) by entering e.
21420 \begin_inset space \thinspace{}
21421 \end_inset
21422
21423 g.
21424  
21425 \begin_inset Flex Code
21426 status collapsed
21427
21428 \begin_layout Plain Layout
21429 type=book
21430 \end_layout
21431
21432 \end_inset
21433
21434  or 
21435 \begin_inset Flex Code
21436 status collapsed
21437
21438 \begin_layout Plain Layout
21439 nottype=collection
21440 \end_layout
21441
21442 \end_inset
21443
21444  to the mentioned 
21445 \begin_inset Flex Noun
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 Options
21450 \end_layout
21451
21452 \end_inset
21453
21454  field, or you can create so-called 
21455 \begin_inset Quotes eld
21456 \end_inset
21457
21458 Bibliography Categories
21459 \begin_inset Quotes erd
21460 \end_inset
21461
21462  to which you can assign individual entries.
21463  Please refer to the Biblatex manual, section 
21464 \emph on
21465 Subdivided Bibliographies
21466 \emph default
21467 , for details.
21468 \end_layout
21469
21470 \begin_layout Section
21471 Multiple Bibliographies
21472 \begin_inset CommandInset label
21473 LatexCommand label
21474 name "subsec:Multiple-Bibliographies"
21475
21476 \end_inset
21477
21478
21479 \end_layout
21480
21481 \begin_layout Standard
21482 Multiple bibliographies, e.
21483 \begin_inset space \thinspace{}
21484 \end_inset
21485
21486 g.
21487 \begin_inset space \space{}
21488 \end_inset
21489
21490 a bibliography for each part, chapter, section, subsection or child (sub-documen
21491 t) of the document, are also supported by \SpecialChar LyX
21492 .
21493  In order to enable it, go to 
21494 \begin_inset Flex Noun
21495 status collapsed
21496
21497 \begin_layout Plain Layout
21498 Document\SpecialChar menuseparator
21499 Settings\SpecialChar menuseparator
21500 Bibliography
21501 \end_layout
21502
21503 \end_inset
21504
21505  and select the relevant unit (e.
21506 \begin_inset space \thinspace{}
21507 \end_inset
21508
21509 g., 
21510 \begin_inset Quotes eld
21511 \end_inset
21512
21513 per section
21514 \begin_inset Quotes erd
21515 \end_inset
21516
21517 ) in the 
21518 \begin_inset Flex Noun
21519 status collapsed
21520
21521 \begin_layout Plain Layout
21522 Multiple Bibliographies
21523 \end_layout
21524
21525 \end_inset
21526
21527  combo box.
21528  Then add a Bib(la)\SpecialChar TeX
21529  bibliography to each unit (e.
21530 \begin_inset space \thinspace{}
21531 \end_inset
21532
21533 g., section) of your document.
21534  In the output, a separate bibliography, containing only the references
21535  done in the current unit is generated.
21536 \end_layout
21537
21538 \begin_layout Standard
21539 If you use Bib\SpecialChar TeX
21540 , either the 
21541 \begin_inset Flex Code
21542 status collapsed
21543
21544 \begin_layout Plain Layout
21545 chapterbib
21546 \end_layout
21547
21548 \end_inset
21549
21550  or the 
21551 \begin_inset Flex Code
21552 status collapsed
21553
21554 \begin_layout Plain Layout
21555 bibtopic
21556 \end_layout
21557
21558 \end_inset
21559
21560  package is used to create multiple bibliographies.
21561  The former package is used if you select 
21562 \begin_inset Quotes eld
21563 \end_inset
21564
21565 per child document
21566 \begin_inset Quotes erd
21567 \end_inset
21568
21569  and do 
21570 \emph on
21571 not
21572 \emph default
21573  check 
21574 \begin_inset Flex Noun
21575 status collapsed
21576
21577 \begin_layout Plain Layout
21578 Sectioned Bibliography
21579 \end_layout
21580
21581 \end_inset
21582
21583 .
21584  In all other cases, 
21585 \begin_inset Flex Code
21586 status collapsed
21587
21588 \begin_layout Plain Layout
21589 bibtopic
21590 \end_layout
21591
21592 \end_inset
21593
21594  is used.
21595 \begin_inset Foot
21596 status collapsed
21597
21598 \begin_layout Plain Layout
21599 An alternative approach, if you are willing to use some 
21600 \begin_inset Flex Noun
21601 status collapsed
21602
21603 \begin_layout Plain Layout
21604 \SpecialChar TeX
21605  Code
21606 \end_layout
21607
21608 \end_inset
21609
21610  (see section
21611 \begin_inset space ~
21612 \end_inset
21613
21614
21615 \begin_inset CommandInset ref
21616 LatexCommand ref
21617 reference "sec:Inserting-TeX-Code"
21618
21619 \end_inset
21620
21621 ), is to use the 
21622 \begin_inset Flex Code
21623 status collapsed
21624
21625 \begin_layout Plain Layout
21626 bibunits
21627 \end_layout
21628
21629 \end_inset
21630
21631  package.
21632 \end_layout
21633
21634 \end_inset
21635
21636  If 
21637 \begin_inset Flex Code
21638 status collapsed
21639
21640 \begin_layout Plain Layout
21641 bibtopic
21642 \end_layout
21643
21644 \end_inset
21645
21646  is used, \SpecialChar LyX
21647  encloses the specified units in 
21648 \begin_inset Flex Code
21649 status collapsed
21650
21651 \begin_layout Plain Layout
21652 bibtopic
21653 \end_layout
21654
21655 \end_inset
21656
21657 's 
21658 \begin_inset Flex Code
21659 status collapsed
21660
21661 \begin_layout Plain Layout
21662
21663 \backslash
21664 begin{btUnit}
21665 \end_layout
21666
21667 \end_inset
21668
21669  and 
21670 \begin_inset Flex Code
21671 status collapsed
21672
21673 \begin_layout Plain Layout
21674
21675 \backslash
21676 end{btUnit}
21677 \end_layout
21678
21679 \end_inset
21680
21681  in order to create the units.
21682  Note that this approach has some limitations.
21683  First, every citation reference has to be inside some 
21684 \begin_inset Flex Code
21685 status collapsed
21686
21687 \begin_layout Plain Layout
21688 btUnit
21689 \end_layout
21690
21691 \end_inset
21692
21693 .
21694  So citations outside a defined unit (e.
21695 \begin_inset space \thinspace{}
21696 \end_inset
21697
21698 g., before the first section if you use 
21699 \begin_inset Quotes eld
21700 \end_inset
21701
21702 by section
21703 \begin_inset Quotes erd
21704 \end_inset
21705
21706 ) will appear as 
21707 \begin_inset Quotes eld
21708 \end_inset
21709
21710 ???
21711 \begin_inset Quotes erd
21712 \end_inset
21713
21714 .
21715  You can also create your own units by entering 
21716 \begin_inset Flex Code
21717 status collapsed
21718
21719 \begin_layout Plain Layout
21720
21721 \backslash
21722 begin{btUnit}
21723 \end_layout
21724
21725 \end_inset
21726
21727  and 
21728 \begin_inset Flex Code
21729 status collapsed
21730
21731 \begin_layout Plain Layout
21732
21733 \backslash
21734 end{btUnit}
21735 \end_layout
21736
21737 \end_inset
21738
21739  as \SpecialChar TeX
21740  code (for instance to work around the mentioned limitation).
21741  Note, though, that 
21742 \begin_inset Flex Code
21743 status collapsed
21744
21745 \begin_layout Plain Layout
21746 btUnit
21747 \end_layout
21748
21749 \end_inset
21750
21751 s cannot be nested.
21752  A second limitation is that 
21753 \begin_inset Flex Code
21754 status collapsed
21755
21756 \begin_layout Plain Layout
21757 bibtopic
21758 \end_layout
21759
21760 \end_inset
21761
21762  always processes all references of a bibliography database, even if they
21763  are not cited.
21764  This can result in odd labels (e.
21765 \begin_inset space \thinspace{}
21766 \end_inset
21767
21768 g.
21769  
21770 \begin_inset Quotes eld
21771 \end_inset
21772
21773 Miller 2014b
21774 \begin_inset Quotes erd
21775 \end_inset
21776
21777  if two works of this author from 2014 are in the database, even if only
21778  one is cited).
21779 \end_layout
21780
21781 \begin_layout Standard
21782 If you use 
21783 \family sans
21784 Biblatex
21785 \family default
21786 , the 
21787 \begin_inset Flex Code
21788 status collapsed
21789
21790 \begin_layout Plain Layout
21791 refsection
21792 \end_layout
21793
21794 \end_inset
21795
21796  option is used instead.
21797  If you need specific units, you can start them with the \SpecialChar TeX
21798  code 
21799 \begin_inset Flex Code
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803
21804 \backslash
21805 newrefsection
21806 \end_layout
21807
21808 \end_inset
21809
21810  or 
21811 \begin_inset Flex Code
21812 status collapsed
21813
21814 \begin_layout Plain Layout
21815
21816 \backslash
21817 newrefsegment
21818 \end_layout
21819
21820 \end_inset
21821
21822 , respectively.
21823  If you also want to control the end of the unit, use the environment 
21824 \begin_inset Flex Code
21825 status collapsed
21826
21827 \begin_layout Plain Layout
21828
21829 \backslash
21830 begin{refsection}
21831 \end_layout
21832
21833 \end_inset
21834
21835  \SpecialChar ldots
21836  
21837 \begin_inset Flex Code
21838 status collapsed
21839
21840 \begin_layout Plain Layout
21841
21842 \backslash
21843 end{refsection}
21844 \end_layout
21845
21846 \end_inset
21847
21848  instead.
21849  Note, though, that 
21850 \begin_inset Flex Code
21851 status collapsed
21852
21853 \begin_layout Plain Layout
21854 refsection
21855 \end_layout
21856
21857 \end_inset
21858
21859 s cannot be nested.
21860  In addition to the individual bibliography of the current unit, 
21861 \family sans
21862 Biblatex
21863 \family default
21864  also provides an easy way to output all bibliographies, subsequently, at
21865  one place (e.
21866 \begin_inset space \thinspace{}
21867 \end_inset
21868
21869 g., at the end of the document).
21870  Select 
21871 \begin_inset Quotes eld
21872 \end_inset
21873
21874 all reference units
21875 \begin_inset Quotes erd
21876 \end_inset
21877
21878  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
21879  this.
21880  Please refer to the 
21881 \family sans
21882 Biblatex
21883 \family default
21884  manual for more information on this topic.
21885 \end_layout
21886
21887 \begin_layout Chapter
21888
21889 \change_deleted 564990737 1671355654
21890 Itemize 
21891 \change_unchanged
21892 Bullet
21893 \change_inserted 564990737 1671355667
21894 s
21895 \change_deleted 564990737 1671355661
21896  Selection
21897 \change_inserted 564990737 1671355684
21898
21899 \begin_inset CommandInset label
21900 LatexCommand label
21901 name "chap:bullets"
21902
21903 \end_inset
21904
21905
21906 \change_deleted 564990737 1671355684
21907
21908 \begin_inset CommandInset label
21909 LatexCommand label
21910 name "sec:bullet"
21911
21912 \end_inset
21913
21914
21915 \change_unchanged
21916
21917 \end_layout
21918
21919 \begin_layout Standard
21920 by
21921 \noun on
21922  Allan Rae
21923 \end_layout
21924
21925 \begin_layout Section
21926 Introduction
21927 \end_layout
21928
21929 \begin_layout Standard
21930 \SpecialChar LyX
21931  provides 216 bullet shapes that can be accessed from a simple dialog.
21932  Using this dialog you can easily specify what bullet shape to use at each
21933  level of an itemized list.
21934  These settings are document-wide so you won't be able to specify different
21935  sets of bullets for different paragraphs.
21936 \begin_inset Foot
21937 status collapsed
21938
21939 \begin_layout Plain Layout
21940 Well, actually you can but you'll have to do it by hand.
21941 \end_layout
21942
21943 \end_inset
21944
21945
21946 \end_layout
21947
21948 \begin_layout Section
21949 How it looks
21950 \end_layout
21951
21952 \begin_layout Standard
21953 Open the dialog by selecting the 
21954 \begin_inset Flex Noun
21955 status collapsed
21956
21957 \begin_layout Plain Layout
21958 Document\SpecialChar menuseparator
21959 Settings
21960 \end_layout
21961
21962 \end_inset
21963
21964  menu item and then select the 
21965 \begin_inset Flex Noun
21966 status collapsed
21967
21968 \begin_layout Plain Layout
21969 Bullets
21970 \end_layout
21971
21972 \end_inset
21973
21974  tab.
21975 \end_layout
21976
21977 \begin_layout Standard
21978 The dialog provides you with a table of bullet shapes.
21979  A column of buttons on the left of the table provides access to the six
21980  different panels of bullet shapes.
21981  The row of buttons across the top is used to select which bullet depth
21982  you are changing.
21983
21984 \change_deleted 244031559 1603875981
21985  A text entry under the table shows the currently selected bullet shape's
21986  \SpecialChar LaTeX
21987  equivalent and this can be edited if desired.
21988  If you do modify the text you will also need to specify any needed packages
21989  in the \SpecialChar LaTeX
21990  preamble.
21991 \change_unchanged
21992
21993 \end_layout
21994
21995 \begin_layout Standard
21996 The six panels are divided up by the packages they require.
21997  The following table shows the mappings from button name to \SpecialChar LaTeX
21998  package.
21999 \end_layout
22000
22001 \begin_layout Standard
22002 \align center
22003 \begin_inset Tabular
22004 <lyxtabular version="3" rows="7" columns="2">
22005 <features tabularvalignment="middle">
22006 <column alignment="center" valignment="top" width="0pt">
22007 <column alignment="center" valignment="top" width="0pt">
22008 <row>
22009 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22010 \begin_inset Text
22011
22012 \begin_layout Plain Layout
22013
22014 \family roman
22015 \series medium
22016 \shape up
22017 \size normal
22018 \emph off
22019 \bar no
22020 \noun off
22021 \color none
22022 Button
22023 \end_layout
22024
22025 \end_inset
22026 </cell>
22027 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22028 \begin_inset Text
22029
22030 \begin_layout Plain Layout
22031
22032 \family roman
22033 \series medium
22034 \shape up
22035 \size normal
22036 \emph off
22037 \bar no
22038 \noun off
22039 \color none
22040 Packages Required
22041 \end_layout
22042
22043 \end_inset
22044 </cell>
22045 </row>
22046 <row>
22047 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22048 \begin_inset Text
22049
22050 \begin_layout Plain Layout
22051
22052 \family sans
22053 \series medium
22054 \shape up
22055 \size normal
22056 \emph off
22057 \bar no
22058 \noun off
22059 \color none
22060 Standard
22061 \end_layout
22062
22063 \end_inset
22064 </cell>
22065 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22066 \begin_inset Text
22067
22068 \begin_layout Plain Layout
22069
22070 \series medium
22071 \shape up
22072 \size normal
22073 \emph off
22074 \bar no
22075 \noun off
22076 \color none
22077 base \SpecialChar LaTeX
22078
22079 \end_layout
22080
22081 \end_inset
22082 </cell>
22083 </row>
22084 <row>
22085 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22086 \begin_inset Text
22087
22088 \begin_layout Plain Layout
22089
22090 \family sans
22091 \series medium
22092 \shape up
22093 \size normal
22094 \emph off
22095 \bar no
22096 \noun off
22097 \color none
22098 Maths
22099 \end_layout
22100
22101 \end_inset
22102 </cell>
22103 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22104 \begin_inset Text
22105
22106 \begin_layout Plain Layout
22107
22108 \family typewriter
22109 \series medium
22110 \shape up
22111 \size normal
22112 \emph off
22113 \bar no
22114 \noun off
22115 \color none
22116 amssymb.sty
22117 \end_layout
22118
22119 \end_inset
22120 </cell>
22121 </row>
22122 <row>
22123 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22124 \begin_inset Text
22125
22126 \begin_layout Plain Layout
22127
22128 \family sans
22129 \series medium
22130 \shape up
22131 \size normal
22132 \emph off
22133 \bar no
22134 \noun off
22135 \color none
22136 Ding1
22137 \end_layout
22138
22139 \end_inset
22140 </cell>
22141 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22142 \begin_inset Text
22143
22144 \begin_layout Plain Layout
22145
22146 \family typewriter
22147 \series medium
22148 \shape up
22149 \size normal
22150 \emph off
22151 \bar no
22152 \noun off
22153 \color none
22154 pifont.sty
22155 \end_layout
22156
22157 \end_inset
22158 </cell>
22159 </row>
22160 <row>
22161 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22162 \begin_inset Text
22163
22164 \begin_layout Plain Layout
22165
22166 \family sans
22167 \series medium
22168 \shape up
22169 \size normal
22170 \emph off
22171 \bar no
22172 \noun off
22173 \color none
22174 Ding2
22175 \end_layout
22176
22177 \end_inset
22178 </cell>
22179 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22180 \begin_inset Text
22181
22182 \begin_layout Plain Layout
22183
22184 \family typewriter
22185 \series medium
22186 \shape up
22187 \size normal
22188 \emph off
22189 \bar no
22190 \noun off
22191 \color none
22192 pifont.sty
22193 \end_layout
22194
22195 \end_inset
22196 </cell>
22197 </row>
22198 <row>
22199 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
22200 \begin_inset Text
22201
22202 \begin_layout Plain Layout
22203
22204 \family sans
22205 \series medium
22206 \shape up
22207 \size normal
22208 \emph off
22209 \bar no
22210 \noun off
22211 \color none
22212 Ding3
22213 \end_layout
22214
22215 \end_inset
22216 </cell>
22217 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
22218 \begin_inset Text
22219
22220 \begin_layout Plain Layout
22221
22222 \family typewriter
22223 \series medium
22224 \shape up
22225 \size normal
22226 \emph off
22227 \bar no
22228 \noun off
22229 \color none
22230 pifont.sty
22231 \end_layout
22232
22233 \end_inset
22234 </cell>
22235 </row>
22236 <row>
22237 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22238 \begin_inset Text
22239
22240 \begin_layout Plain Layout
22241
22242 \family sans
22243 \series medium
22244 \shape up
22245 \size normal
22246 \emph off
22247 \bar no
22248 \noun off
22249 \color none
22250 Ding4
22251 \end_layout
22252
22253 \end_inset
22254 </cell>
22255 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22256 \begin_inset Text
22257
22258 \begin_layout Plain Layout
22259
22260 \family typewriter
22261 \series medium
22262 \shape up
22263 \size normal
22264 \emph off
22265 \bar no
22266 \noun off
22267 \color none
22268 pifont.sty
22269 \end_layout
22270
22271 \end_inset
22272 </cell>
22273 </row>
22274 </lyxtabular>
22275
22276 \end_inset
22277
22278
22279 \end_layout
22280
22281 \begin_layout Standard
22282 \SpecialChar LyX
22283  doesn't stop you using bullets from packages you don't have.
22284  If you get errors from \SpecialChar LaTeX
22285  when you try to view or print the file, then it
22286  is likely you are missing a package.
22287 \begin_inset Foot
22288 status collapsed
22289
22290 \begin_layout Plain Layout
22291 \SpecialChar LyX
22292  doesn't restrict your use since you may be editing locally and exporting
22293  elsewhere.
22294 \end_layout
22295
22296 \end_inset
22297
22298
22299 \end_layout
22300
22301 \begin_layout Section
22302 How to use it
22303 \end_layout
22304
22305 \begin_layout Standard
22306 Select which bullet depth you want to change then select the bullet shape
22307  and size.
22308  Any changes will not be visible in \SpecialChar LyX
22309 , but are visible when viewing the document.
22310 \end_layout
22311
22312 \begin_layout Standard
22313 You can reset a bullet shape to the default simply by clicking your right
22314  mouse button on the appropriate bullet depth button.
22315 \begin_inset Foot
22316 status open
22317
22318 \begin_layout Plain Layout
22319
22320 \change_inserted 564990737 1672138075
22321 \begin_inset CommandInset label
22322 LatexCommand label
22323 name "fn:If-you-really"
22324
22325 \end_inset
22326
22327
22328 \change_unchanged
22329 If you 
22330 \emph on
22331 really
22332 \emph default
22333  want to have multiple sets of paragraphs with different sets of bullets
22334  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
22335  code.
22336  The bullet selection dialog can help though because it provides you with
22337  the \SpecialChar LaTeX
22338  code for a wide range of bullet shapes.
22339  To make your own custom paragraphs you have the following options:
22340 \end_layout
22341
22342 \begin_layout Plain Layout
22343 \begin_inset ERT
22344 status open
22345
22346 \begin_layout Plain Layout
22347
22348
22349 \backslash
22350 let
22351 \backslash
22352 savelabelitemi=
22353 \backslash
22354 labelitemi
22355 \end_layout
22356
22357 \end_inset
22358
22359
22360 \end_layout
22361
22362 \begin_layout Plain Layout
22363 \begin_inset ERT
22364 status open
22365
22366 \begin_layout Plain Layout
22367
22368
22369 \backslash
22370 renewcommand
22371 \backslash
22372 labelitemi[0]{
22373 \backslash
22374 small
22375 \backslash
22376 (
22377 \backslash
22378 sharp
22379 \backslash
22380 )}
22381 \end_layout
22382
22383 \end_inset
22384
22385
22386 \end_layout
22387
22388 \begin_layout Itemize
22389 Use the \SpecialChar LaTeX
22390  command 
22391 \begin_inset Flex Code
22392 status collapsed
22393
22394 \begin_layout Plain Layout
22395
22396 \backslash
22397 renewcommand{}{}
22398 \end_layout
22399
22400 \end_inset
22401
22402  to specify a new bullet shape for a given depth.
22403  You'll also need to save the current bullet shape so you can restore it
22404  again afterwards.
22405  In this itemized list the following \SpecialChar LaTeX
22406  code was used to change the bullet
22407  used for the first depth.
22408 \end_layout
22409
22410 \begin_deeper
22411 \begin_layout LyX-Code
22412
22413 \backslash
22414 let
22415 \backslash
22416 savelabelitemi=
22417 \backslash
22418 labelitemi 
22419 \end_layout
22420
22421 \begin_layout LyX-Code
22422
22423 \backslash
22424 renewcommand
22425 \backslash
22426 labelitemi[0]{
22427 \backslash
22428 small
22429 \backslash
22430 (
22431 \backslash
22432 sharp
22433 \backslash
22434 )}
22435 \end_layout
22436
22437 \end_deeper
22438 \begin_layout Itemize
22439 Note that the itemize depth is specified in Roman numerals as part of the
22440  
22441 \family typewriter
22442
22443 \backslash
22444 labelitem
22445 \family default
22446  command.
22447 \end_layout
22448
22449 \begin_layout Itemize
22450 \begin_inset Argument item:1
22451 status open
22452
22453 \begin_layout Plain Layout
22454 \begin_inset ERT
22455 status open
22456
22457 \begin_layout Plain Layout
22458
22459
22460 \backslash
22461 (
22462 \backslash
22463 star
22464 \backslash
22465 )
22466 \end_layout
22467
22468 \end_inset
22469
22470
22471 \end_layout
22472
22473 \end_inset
22474
22475  Specify each individual entry by starting each item with the bullet shape
22476  enclosed in a 
22477 \begin_inset Quotes eld
22478 \end_inset
22479
22480 Custom Item
22481 \begin_inset Quotes erd
22482 \end_inset
22483
22484  inset (available at 
22485 \family sans
22486 Insert\SpecialChar menuseparator
22487 Custom Item
22488 \family default
22489 ) and set as 
22490 \begin_inset Flex Noun
22491 status collapsed
22492
22493 \begin_layout Plain Layout
22494 \SpecialChar TeX
22495  Code
22496 \end_layout
22497
22498 \end_inset
22499
22500 .
22501  For example, this item was started with 
22502 \begin_inset Flex Code
22503 status collapsed
22504
22505 \begin_layout Plain Layout
22506
22507 \backslash
22508 (
22509 \backslash
22510 star
22511 \backslash
22512 )
22513 \end_layout
22514
22515 \end_inset
22516
22517 .
22518 \end_layout
22519
22520 \begin_layout Plain Layout
22521 \begin_inset ERT
22522 status open
22523
22524 \begin_layout Plain Layout
22525
22526
22527 \backslash
22528 renewcommand
22529 \backslash
22530 labelitemi[0]{
22531 \backslash
22532 savelabelitemi}
22533 \end_layout
22534
22535 \end_inset
22536
22537
22538 \end_layout
22539
22540 \begin_layout Plain Layout
22541 You'll also need to revert the labelitem back to its previous setting for
22542  the global bullet shape settings to remain in effect.
22543  The way used here was:
22544 \end_layout
22545
22546 \begin_layout LyX-Code
22547
22548 \backslash
22549 renewcommand
22550 \backslash
22551 labelitemi[0]{
22552 \backslash
22553 savelabelitemi}
22554 \end_layout
22555
22556 \end_inset
22557
22558
22559 \end_layout
22560
22561 \begin_layout Chapter
22562 Supplemental Tools
22563 \end_layout
22564
22565 \begin_layout Section
22566 Multipart Documents
22567 \end_layout
22568
22569 \begin_layout Subsection
22570 General Operation
22571 \end_layout
22572
22573 \begin_layout Standard
22574 When you are working on a large file with many sections, it is often convenient
22575  to break up the document into several files, or perhaps you have something
22576  where a table may change from time to time, but the preceding text does
22577  not.
22578  In these cases, you should seriously consider using multipart documents.
22579  For example, scientific papers often have five major sections: the introduction
22580 , observations, results, discussion, and conclusion.
22581  Each of these could be its own separate \SpecialChar LyX
22582  file, with one 
22583 \begin_inset Quotes eld
22584 \end_inset
22585
22586 master
22587 \begin_inset Quotes erd
22588 \end_inset
22589
22590  file which contains the title, authors, abstract, references, etc., plus
22591  the five included files.
22592  It is important to note that each of these files is a full \SpecialChar LyX
22593  file which
22594  can be formatted and printed on its own, as well as included in a master
22595  file.
22596  Each of these files must have the same document class, however—don't attempt
22597  to mix book classes with article classes.
22598  You may also include \SpecialChar LaTeX
22599  files; however, these files must not have their own
22600  preamble (i.
22601 \begin_inset space \thinspace{}
22602 \end_inset
22603
22604 e.
22605 \begin_inset space \space{}
22606 \end_inset
22607
22608 everything up to and including the 
22609 \begin_inset Flex Code
22610 status collapsed
22611
22612 \begin_layout Plain Layout
22613
22614 \backslash
22615 begin{document}
22616 \end_layout
22617
22618 \end_inset
22619
22620  line as well as the 
22621 \begin_inset Flex Code
22622 status collapsed
22623
22624 \begin_layout Plain Layout
22625
22626 \backslash
22627 end{document}
22628 \end_layout
22629
22630 \end_inset
22631
22632  line must be deleted) or else errors will be generated when you try to
22633  make a DVI file.
22634 \end_layout
22635
22636 \begin_layout Standard
22637 \SpecialChar LyX
22638  allows you to include files quite easily with 
22639 \begin_inset Flex Noun
22640 status collapsed
22641
22642 \begin_layout Plain Layout
22643 Insert\SpecialChar menuseparator
22644 Child
22645 \begin_inset space ~
22646 \end_inset
22647
22648 Document
22649 \end_layout
22650
22651 \end_inset
22652
22653 .
22654  When you click on this selection a small box is inserted into the file
22655  at the current cursor location.
22656  Clicking on the box raises a dialog which allows you to select the file
22657  to be included, and the method of its inclusion.
22658  
22659 \end_layout
22660
22661 \begin_layout Standard
22662 The file selection box should by now be obvious.
22663  The three inclusion methods are 
22664 \begin_inset Quotes eld
22665 \end_inset
22666
22667 include
22668 \begin_inset Quotes erd
22669 \end_inset
22670
22671
22672 \begin_inset Quotes eld
22673 \end_inset
22674
22675 input
22676 \begin_inset Quotes erd
22677 \end_inset
22678
22679 , and 
22680 \begin_inset Quotes eld
22681 \end_inset
22682
22683 verbatim
22684 \begin_inset Quotes erd
22685 \end_inset
22686
22687 .
22688  The methods 
22689 \begin_inset Quotes eld
22690 \end_inset
22691
22692 include
22693 \begin_inset Quotes erd
22694 \end_inset
22695
22696  and 
22697 \begin_inset Quotes eld
22698 \end_inset
22699
22700 input
22701 \begin_inset Quotes erd
22702 \end_inset
22703
22704  are similar in many ways, but there are also some notable differences:
22705 \end_layout
22706
22707 \begin_layout Enumerate
22708 Files that are 
22709 \begin_inset Quotes eld
22710 \end_inset
22711
22712 included
22713 \begin_inset Quotes erd
22714 \end_inset
22715
22716  are typeset beginning on a new page, while files that are 
22717 \begin_inset Quotes eld
22718 \end_inset
22719
22720 inputted
22721 \begin_inset Quotes erd
22722 \end_inset
22723
22724  are typeset starting on the current page.
22725 \end_layout
22726
22727 \begin_layout Enumerate
22728 \begin_inset Quotes eld
22729 \end_inset
22730
22731 Included
22732 \begin_inset Quotes erd
22733 \end_inset
22734
22735  files cannot themselves 
22736 \begin_inset Quotes eld
22737 \end_inset
22738
22739 include
22740 \begin_inset Quotes erd
22741 \end_inset
22742
22743  further files (
22744 \begin_inset Quotes eld
22745 \end_inset
22746
22747 grandchilds
22748 \begin_inset Quotes erd
22749 \end_inset
22750
22751 ).
22752  With 
22753 \begin_inset Quotes eld
22754 \end_inset
22755
22756 input
22757 \begin_inset Quotes erd
22758 \end_inset
22759
22760 , on the other hand, infinite sub-inputting is possible.
22761 \end_layout
22762
22763 \begin_layout Enumerate
22764 \begin_inset Quotes eld
22765 \end_inset
22766
22767 Include
22768 \begin_inset Quotes erd
22769 \end_inset
22770
22771  allow for the output of only selected 
22772 \begin_inset Quotes eld
22773 \end_inset
22774
22775 included
22776 \begin_inset Quotes erd
22777 \end_inset
22778
22779  files, while maintaining the actual counters (pagination etc.) and references
22780  (please refer to the section 
22781 \emph on
22782 Child
22783 \begin_inset space ~
22784 \end_inset
22785
22786 Documents
22787 \emph default
22788  of the 
22789 \emph on
22790 Embedded
22791 \begin_inset space ~
22792 \end_inset
22793
22794 Objects
22795 \emph default
22796  manual for details).
22797 \end_layout
22798
22799 \begin_layout Standard
22800 Hence, 
22801 \begin_inset Quotes eld
22802 \end_inset
22803
22804 include
22805 \begin_inset Quotes erd
22806 \end_inset
22807
22808  is the preferred method for chapters that are outsourced to child documents,
22809  while 
22810 \begin_inset Quotes eld
22811 \end_inset
22812
22813 input
22814 \begin_inset Quotes erd
22815 \end_inset
22816
22817  is more suitable for arbitrary file inheritance.
22818 \end_layout
22819
22820 \begin_layout Standard
22821
22822 \begin_inset Quotes eld
22823 \end_inset
22824
22825 verbatim
22826 \begin_inset Quotes erd
22827 \end_inset
22828
22829  included file allows you to include a file typeset exactly as it appears
22830  in the file, i.
22831 \begin_inset space \thinspace{}
22832 \end_inset
22833
22834 e.
22835 \begin_inset space \space{}
22836 \end_inset
22837
22838 in 
22839 \begin_inset Flex Code
22840 status collapsed
22841
22842 \begin_layout Plain Layout
22843 verbatim
22844 \end_layout
22845
22846 \end_inset
22847
22848  mode, with the characters set in a fixed-width typewriter font.
22849  Normally, spaces in this file are invisible, though two consecutive spaces
22850  are conserved, unlike \SpecialChar LyX
22851 's normal treatment of spaces.
22852  However, setting the 
22853 \begin_inset Flex Noun
22854 status collapsed
22855
22856 \begin_layout Plain Layout
22857 Mark
22858 \begin_inset space ~
22859 \end_inset
22860
22861 spaces
22862 \begin_inset space ~
22863 \end_inset
22864
22865 in
22866 \begin_inset space ~
22867 \end_inset
22868
22869 output
22870 \end_layout
22871
22872 \end_inset
22873
22874  checkbox typesets a mark to unambiguously define the presence of a space.
22875  
22876 \end_layout
22877
22878 \begin_layout Standard
22879 Generally, the master file is converted into a full \SpecialChar LaTeX
22880  file before typesetting,
22881  while the included files are converted to \SpecialChar LaTeX
22882  files that do not have all the
22883  preamble information.
22884 \end_layout
22885
22886 \begin_layout Subsection
22887 Cross-References Between Files
22888 \end_layout
22889
22890 \begin_layout Standard
22891 \begin_inset Box Shadowbox
22892 position "t"
22893 hor_pos "c"
22894 has_inner_box 1
22895 inner_pos "t"
22896 use_parbox 0
22897 use_makebox 0
22898 width "100col%"
22899 special "none"
22900 height "1in"
22901 height_special "totalheight"
22902 thickness "0.4pt"
22903 separation "3pt"
22904 shadowsize "4pt"
22905 framecolor "black"
22906 backgroundcolor "none"
22907 status open
22908
22909 \begin_layout Plain Layout
22910 This section is somewhat out of date.
22911  Need to describe default master documents and how children are opened when
22912  the master is.
22913  [[FIXME]]
22914 \end_layout
22915
22916 \end_inset
22917
22918
22919 \end_layout
22920
22921 \begin_layout Standard
22922 It is possible to set up cross-references between the different files.
22923  First, open all the files in question: let's call them A and B in a two
22924  file example, where B is included in A.
22925  Let's say you insert a label in A, then want to reference it in B.
22926  Open the cross-reference dialog whilst in document B, and you can select
22927  the 
22928 \begin_inset Quotes eld
22929 \end_inset
22930
22931 buffer
22932 \begin_inset Quotes erd
22933 \end_inset
22934
22935  to use.
22936 \end_layout
22937
22938 \begin_layout Subsection
22939 Bibliography Lists in all Subdocuments
22940 \end_layout
22941
22942 \begin_layout Standard
22943 If you work with child documents, you might want to have only one main bibliogra
22944 phy at the end, but still be able to have a selected bibliography for the
22945  child if you output it on its own.
22946  Here is how to achieve this.
22947 \end_layout
22948
22949 \begin_layout Standard
22950 For the main document, you just insert a bibliography inset at the place
22951  where the main bibliography has to appear (within the master file or within
22952  a child).
22953  If the bibliography inset is in the master file, the references will be
22954  inherited by all children, so they are available in the citation dialog
22955  within each child.
22956 \end_layout
22957
22958 \begin_layout Standard
22959 For child-specific bibliographies, insert bibliography insets within the
22960  child documents, at the place where the bibliography should appear when
22961  the child is compiled separately.
22962  However, the trick is to insert them into a branch (
22963 \family sans
22964 Insert\SpecialChar menuseparator
22965 Branch\SpecialChar menuseparator
22966 Insert New Branch...
22967 \family default
22968 ), e.
22969 \begin_inset space \thinspace{}
22970 \end_inset
22971
22972 g.
22973  called 
22974 \begin_inset Quotes eld
22975 \end_inset
22976
22977 Childonly
22978 \begin_inset Quotes erd
22979 \end_inset
22980
22981 .
22982  Within the children, activate the branch (
22983 \family sans
22984 Document\SpecialChar menuseparator
22985 Settings...\SpecialChar menuseparator
22986 Branches
22987 \family default
22988 ).
22989  Within the master, deactivate the branch (
22990 \family sans
22991 Document\SpecialChar menuseparator
22992 Settings...\SpecialChar menuseparator
22993 Branches
22994 \family default
22995 ).
22996  Now the child's bibliography will be ignored by the master, but considered
22997  by the child.
22998 \end_layout
22999
23000 \begin_layout Standard
23001 If you need multiple bibliographies (e.
23002 \begin_inset space \thinspace{}
23003 \end_inset
23004
23005 g., one per child in the 
23006 \emph on
23007 main document
23008 \emph default
23009 ), please refer to sec.
23010 \begin_inset space ~
23011 \end_inset
23012
23013
23014 \begin_inset CommandInset ref
23015 LatexCommand ref
23016 reference "subsec:Multiple-Bibliographies"
23017
23018 \end_inset
23019
23020 .
23021 \end_layout
23022
23023 \begin_layout Section
23024 \SpecialChar LyX
23025  Archives
23026 \end_layout
23027
23028 \begin_layout Standard
23029 Users sometimes need to be able to 
23030 \begin_inset Quotes eld
23031 \end_inset
23032
23033 bundle
23034 \begin_inset Quotes erd
23035 \end_inset
23036
23037  a \SpecialChar LyX
23038  file together with all the images (and other files) on which it depends,
23039  either for sending to a publisher or for sharing with a co-author.
23040  \SpecialChar LyX
23041  includes a Python script (
23042 \begin_inset Flex Code
23043 status collapsed
23044
23045 \begin_layout Plain Layout
23046 lyxpak.py
23047 \end_layout
23048
23049 \end_inset
23050
23051 ) that automates this process.
23052  To use it, you must have either the 
23053 \begin_inset Flex Code
23054 status collapsed
23055
23056 \begin_layout Plain Layout
23057 zipfile
23058 \end_layout
23059
23060 \end_inset
23061
23062  or 
23063 \begin_inset Flex Code
23064 status collapsed
23065
23066 \begin_layout Plain Layout
23067 tarfile
23068 \end_layout
23069
23070 \end_inset
23071
23072  python modules installed on your system.
23073  By default, the script prefers the 
23074 \begin_inset Flex Code
23075 status collapsed
23076
23077 \begin_layout Plain Layout
23078 gzip
23079 \end_layout
23080
23081 \end_inset
23082
23083 -compressed 
23084 \begin_inset Flex Code
23085 status collapsed
23086
23087 \begin_layout Plain Layout
23088 tar
23089 \end_layout
23090
23091 \end_inset
23092
23093  format on Unix-like systems and the 
23094 \begin_inset Flex Code
23095 status collapsed
23096
23097 \begin_layout Plain Layout
23098 zip
23099 \end_layout
23100
23101 \end_inset
23102
23103  format on Windows.
23104 \end_layout
23105
23106 \begin_layout Standard
23107 \SpecialChar LyX
23108 's configuration process will set the script up to export a `\SpecialChar LyX
23109  Archive',
23110  and this format will then be available under 
23111 \begin_inset Flex Code
23112 status collapsed
23113
23114 \begin_layout Plain Layout
23115 File\SpecialChar menuseparator
23116 Export
23117 \end_layout
23118
23119 \end_inset
23120
23121 .
23122 \end_layout
23123
23124 \begin_layout Standard
23125 Independently of the platform, the generation of a particular archive format
23126  can be forced by adding either the 
23127 \begin_inset Flex Code
23128 status collapsed
23129
23130 \begin_layout Plain Layout
23131 -t
23132 \end_layout
23133
23134 \end_inset
23135
23136  (for the 
23137 \begin_inset Flex Code
23138 status collapsed
23139
23140 \begin_layout Plain Layout
23141 tar
23142 \end_layout
23143
23144 \end_inset
23145
23146  format) or 
23147 \begin_inset Flex Code
23148 status collapsed
23149
23150 \begin_layout Plain Layout
23151 -z
23152 \end_layout
23153
23154 \end_inset
23155
23156  (for the 
23157 \begin_inset Flex Code
23158 status collapsed
23159
23160 \begin_layout Plain Layout
23161 zip
23162 \end_layout
23163
23164 \end_inset
23165
23166  format) switch to the 
23167 \begin_inset Flex Code
23168 status collapsed
23169
23170 \begin_layout Plain Layout
23171 \SpecialChar LyX
23172 \SpecialChar menuseparator
23173 \SpecialChar LyX
23174  Archive
23175 \end_layout
23176
23177 \end_inset
23178
23179  converter in 
23180 \begin_inset Flex Code
23181 status collapsed
23182
23183 \begin_layout Plain Layout
23184 Tools\SpecialChar menuseparator
23185 Preferences\SpecialChar menuseparator
23186 File Handling\SpecialChar menuseparator
23187 Converters
23188 \end_layout
23189
23190 \end_inset
23191
23192 .
23193  (Make sure you add the switch after the script name, not before it.)
23194 \end_layout
23195
23196 \begin_layout Section
23197 Fancy Headers and Footers
23198 \end_layout
23199
23200 \begin_layout Standard
23201 The default page layout is rather plain; for an 
23202 \begin_inset Flex Code
23203 status collapsed
23204
23205 \begin_layout Plain Layout
23206 article
23207 \end_layout
23208
23209 \end_inset
23210
23211  document class, all you get is a centered page number at the bottom of
23212  the page.
23213  This document uses KOMA-script's book class, so it appears to be a bit
23214  fancier.
23215  But to really put on a show, you need to set the document page style to
23216  
23217 \begin_inset Quotes eld
23218 \end_inset
23219
23220 fancy
23221 \begin_inset Quotes erd
23222 \end_inset
23223
23224 , as mentioned in the 
23225 \emph on
23226 User Guide
23227 \emph default
23228 .
23229  This section describes the \SpecialChar LaTeX
23230  code you need to insert in your \SpecialChar LaTeX
23231  preamble in
23232  order to get the desired effects.
23233 \end_layout
23234
23235 \begin_layout Standard
23236 For more information on fancy headers, see the 
23237 \begin_inset Flex Code
23238 status collapsed
23239
23240 \begin_layout Plain Layout
23241 fancyhdr
23242 \end_layout
23243
23244 \end_inset
23245
23246  package documentation.
23247  (
23248 \begin_inset Flex URL
23249 status collapsed
23250
23251 \begin_layout Plain Layout
23252
23253 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
23254 \end_layout
23255
23256 \end_inset
23257
23258 )
23259 \end_layout
23260
23261 \begin_layout Standard
23262 The page header is divided into three fields, not surprisingly labeled 
23263 \begin_inset Quotes eld
23264 \end_inset
23265
23266 left
23267 \begin_inset Quotes erd
23268 \end_inset
23269
23270
23271 \begin_inset Quotes eld
23272 \end_inset
23273
23274 center
23275 \begin_inset Quotes erd
23276 \end_inset
23277
23278 , and 
23279 \begin_inset Quotes eld
23280 \end_inset
23281
23282 right
23283 \begin_inset Quotes erd
23284 \end_inset
23285
23286 .
23287  The footer is also divided into these three fields.
23288  The \SpecialChar LaTeX
23289  commands to set these fields in the simplest manner are 
23290 \begin_inset Flex Code
23291 status collapsed
23292
23293 \begin_layout Plain Layout
23294
23295 \backslash
23296 lhead
23297 \end_layout
23298
23299 \end_inset
23300
23301
23302 \begin_inset Flex Code
23303 status collapsed
23304
23305 \begin_layout Plain Layout
23306
23307 \backslash
23308 chead
23309 \end_layout
23310
23311 \end_inset
23312
23313
23314 \begin_inset Flex Code
23315 status collapsed
23316
23317 \begin_layout Plain Layout
23318
23319 \backslash
23320 rhead
23321 \end_layout
23322
23323 \end_inset
23324
23325
23326 \begin_inset Flex Code
23327 status collapsed
23328
23329 \begin_layout Plain Layout
23330
23331 \backslash
23332 lfoot
23333 \end_layout
23334
23335 \end_inset
23336
23337 , etc.
23338  Suppose you wish to put your name in the upper left hand corner of each
23339  page.
23340  Simply insert the following command in the preamble: 
23341 \end_layout
23342
23343 \begin_layout Standard
23344
23345 \family typewriter
23346
23347 \backslash
23348 lhead{John Q.
23349  DocWriter}
23350 \end_layout
23351
23352 \begin_layout Standard
23353 You will now see your name in the upper left.
23354  If a field has a default entry that you would like to get rid of (often
23355  the page number appears in the central footer) simply include a command
23356  with a blank argument, e.
23357 \begin_inset space \thinspace{}
23358 \end_inset
23359
23360 g.:
23361 \end_layout
23362
23363 \begin_layout Standard
23364
23365 \family typewriter
23366
23367 \backslash
23368 cfoot{}
23369 \end_layout
23370
23371 \begin_layout Standard
23372 Let's get really fancy: lets put the section number with the word 
23373 \begin_inset Quotes eld
23374 \end_inset
23375
23376 Section
23377 \begin_inset Quotes erd
23378 \end_inset
23379
23380  (e.
23381 \begin_inset space \thinspace{}
23382 \end_inset
23383
23384 g.
23385 \begin_inset space \space{}
23386 \end_inset
23387
23388 Section 3) in the upper left, the page number (e.
23389 \begin_inset space \thinspace{}
23390 \end_inset
23391
23392 g.
23393 \begin_inset space \space{}
23394 \end_inset
23395
23396 Page 4) in the upper right, your name in the lower left, and the date in
23397  the lower right.
23398  The following commands should now appear in the preamble:
23399 \end_layout
23400
23401 \begin_layout Standard
23402
23403 \family typewriter
23404
23405 \backslash
23406 lhead{Section 
23407 \backslash
23408 thesection}
23409 \end_layout
23410
23411 \begin_layout Standard
23412
23413 \family typewriter
23414
23415 \backslash
23416 chead{}
23417 \end_layout
23418
23419 \begin_layout Standard
23420
23421 \family typewriter
23422
23423 \backslash
23424 rhead{Page 
23425 \backslash
23426 thepage}
23427 \end_layout
23428
23429 \begin_layout Standard
23430
23431 \family typewriter
23432
23433 \backslash
23434 lfoot{John Q.
23435  DocWriter}
23436 \end_layout
23437
23438 \begin_layout Standard
23439
23440 \family typewriter
23441
23442 \backslash
23443 cfoot{}
23444 \end_layout
23445
23446 \begin_layout Standard
23447
23448 \family typewriter
23449
23450 \backslash
23451 rfoot{
23452 \backslash
23453 today}
23454 \end_layout
23455
23456 \begin_layout Standard
23457 The commands 
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462
23463 \backslash
23464 thesection
23465 \end_layout
23466
23467 \end_inset
23468
23469  and 
23470 \begin_inset Flex Code
23471 status collapsed
23472
23473 \begin_layout Plain Layout
23474
23475 \backslash
23476 thepage
23477 \end_layout
23478
23479 \end_inset
23480
23481  access \SpecialChar LaTeX
23482 's section and page counters, and so print out the current section
23483  and page number.
23484  
23485 \begin_inset Flex Code
23486 status collapsed
23487
23488 \begin_layout Plain Layout
23489
23490 \backslash
23491 today
23492 \end_layout
23493
23494 \end_inset
23495
23496  simply prints out today's date.
23497 \end_layout
23498
23499 \begin_layout Standard
23500 The thicknesses of the horizontal rules drawn beneath the header and above
23501  the footer can also be modified.
23502  If you don't want one of the rules, set its thickness to 0.
23503  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
23504  Use commands
23505 \family typewriter
23506  
23507 \family default
23508 like 
23509 \begin_inset Flex Code
23510 status collapsed
23511
23512 \begin_layout Plain Layout
23513
23514 \backslash
23515 renewcommand{
23516 \backslash
23517 headrulewidth}{0.4pt}
23518 \end_layout
23519
23520 \end_inset
23521
23522  and 
23523 \begin_inset Flex Code
23524 status collapsed
23525
23526 \begin_layout Plain Layout
23527
23528 \backslash
23529 renewcommand{
23530 \backslash
23531 footrulewidth}{0.4pt}
23532 \end_layout
23533
23534 \end_inset
23535
23536  to set the thicknesses.
23537 \end_layout
23538
23539 \begin_layout Standard
23540 You can switch the header/footer settings on and off for individual pages
23541  using commands like 
23542 \begin_inset Flex Code
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546
23547 \backslash
23548 thispagestyle{empty}
23549 \end_layout
23550
23551 \end_inset
23552
23553
23554 \begin_inset Flex Code
23555 status collapsed
23556
23557 \begin_layout Plain Layout
23558
23559 \backslash
23560 thispagestyle{plain}
23561 \end_layout
23562
23563 \end_inset
23564
23565 , and 
23566 \begin_inset Flex Code
23567 status collapsed
23568
23569 \begin_layout Plain Layout
23570
23571 \backslash
23572 thispagestyle{fancy}
23573 \end_layout
23574
23575 \end_inset
23576
23577 .
23578  Simply insert them in the text on the page you want changed and mark them
23579  as \SpecialChar TeX
23580  code.
23581  In fact, title pages are marked as plain by default, while following pages
23582  are marked fancy when using the global fancy setting.
23583 \end_layout
23584
23585 \begin_layout Standard
23586 As a final example, it is possible to include an image in the header or
23587  footer.
23588  Suppose you want to put a company logo in the upper lefthand corner.
23589  You might try something like
23590 \end_layout
23591
23592 \begin_layout Standard
23593
23594 \family typewriter
23595
23596 \backslash
23597 lhead{
23598 \backslash
23599 resizebox{1in}{!}{
23600 \backslash
23601 includegraphics{logo.eps}}}
23602 \end_layout
23603
23604 \begin_layout Standard
23605 \noindent
23606 (you may need to preface this with 
23607 \begin_inset Flex Code
23608 status collapsed
23609
23610 \begin_layout Plain Layout
23611
23612 \backslash
23613 usepackage{graphics}
23614 \end_layout
23615
23616 \end_inset
23617
23618  if you don't include graphics elsewhere in your document).
23619 \end_layout
23620
23621 \begin_layout Chapter
23622 \SpecialChar LyX
23623  and the World Wide Web
23624 \end_layout
23625
23626 \begin_layout Standard
23627 \SpecialChar LyX
23628  has long supported the export of documents to various web-friendly formats,
23629  such as HTML.
23630  Before version 2.0, however, HTML export was always accomplished by the
23631  use of external converters.
23632 \begin_inset Foot
23633 status collapsed
23634
23635 \begin_layout Plain Layout
23636 For details on the use of external converters with \SpecialChar LyX
23637 , see the 
23638 \emph on
23639 Converters
23640 \emph default
23641  section of the Customization manual.
23642 \end_layout
23643
23644 \end_inset
23645
23646  These fall into two large groups: there are converters that use \SpecialChar LaTeX
23647  as an
23648  intermediate format, such as 
23649 \begin_inset Flex Code
23650 status collapsed
23651
23652 \begin_layout Plain Layout
23653 htlatex
23654 \end_layout
23655
23656 \end_inset
23657
23658
23659 \begin_inset Flex Code
23660 status collapsed
23661
23662 \begin_layout Plain Layout
23663 html2latex
23664 \end_layout
23665
23666 \end_inset
23667
23668 , and 
23669 \begin_inset Flex Code
23670 status collapsed
23671
23672 \begin_layout Plain Layout
23673 plastex
23674 \end_layout
23675
23676 \end_inset
23677
23678 , relying upon \SpecialChar LyX
23679  to produce the \SpecialChar LaTeX
23680 ; and there is a converter that works directly
23681  on \SpecialChar LyX
23682  files, 
23683 \begin_inset Flex Code
23684 status collapsed
23685
23686 \begin_layout Plain Layout
23687 e\SpecialChar LyX
23688 er
23689 \end_layout
23690
23691 \end_inset
23692
23693 .
23694  All of these have different advantages and disadvantages.
23695  
23696 \end_layout
23697
23698 \begin_layout Standard
23699 The \SpecialChar LaTeX
23700 -based converters have the advantage that, in principle, they know everythin
23701 g about the exported document that \SpecialChar LaTeX
23702  does.
23703  Such converters do not care, for example, if a certain block of code was
23704  produced by \SpecialChar LyX
23705  or was Evil Red Text.
23706  These converters know about 
23707 \begin_inset Flex Code
23708 status collapsed
23709
23710 \begin_layout Plain Layout
23711 aux
23712 \end_layout
23713
23714 \end_inset
23715
23716  files, counters, and references, and can often make use of the 
23717 \begin_inset Flex Code
23718 status collapsed
23719
23720 \begin_layout Plain Layout
23721 bbl
23722 \end_layout
23723
23724 \end_inset
23725
23726  files generated by Bib\SpecialChar TeX
23727 .
23728  On the other hand, \SpecialChar LaTeX
23729  is a very hard language to parse—it is sometimes said
23730  that only \SpecialChar TeX
23731  itself understands \SpecialChar TeX
23732 —and \SpecialChar LaTeX
23733 -based converters will often choke on
23734  what seem to be quite simple constructs; complex ones can throw them completely
23735 , and as of this writing, for example, the 
23736 \emph on
23737 Embedded Objects
23738 \emph default
23739  manual will not export with 
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744 htlatex
23745 \end_layout
23746
23747 \end_inset
23748
23749 , though the others will.
23750  The other issue concerns how math is handled.
23751  These converters typically convert the formulae into little pictures that
23752  are then linked from the HTML document.
23753  Since these are actually generated by \SpecialChar LaTeX
23754 , they are accurate.
23755  But they do not scale well, and just getting them to look as if they are
23756  actually meant to be in your document—so that the font sizes seem to be
23757  roughly the same—can be a challenge.
23758 \end_layout
23759
23760 \begin_layout Standard
23761 Alex Fernandez's 
23762 \begin_inset Flex Code
23763 status collapsed
23764
23765 \begin_layout Plain Layout
23766 e\SpecialChar LyX
23767 er
23768 \end_layout
23769
23770 \end_inset
23771
23772  (
23773 \begin_inset CommandInset href
23774 LatexCommand href
23775 name "http://pinchito.es/elyxer/"
23776 target "http://pinchito.es/elyxer/"
23777 literal "false"
23778
23779 \end_inset
23780
23781 ) solves some of these problems.
23782  In particular, the formulae it produces scale perfectly, since it renders
23783  math using a combination of HTML and CSS rather than converting the formulae
23784  to images.
23785  But even moderately complex formula are rendered less well than with 
23786 \begin_inset Flex Code
23787 status collapsed
23788
23789 \begin_layout Plain Layout
23790 htlatex
23791 \end_layout
23792
23793 \end_inset
23794
23795 ; this reflects the limitations of HTML.
23796 \begin_inset Foot
23797 status collapsed
23798
23799 \begin_layout Plain Layout
23800 That said, 
23801 \begin_inset Flex Code
23802 status collapsed
23803
23804 \begin_layout Plain Layout
23805 e\SpecialChar LyX
23806 er
23807 \end_layout
23808
23809 \end_inset
23810
23811  can also use jsMath and MathJax for equations, but this setting is only
23812  available globally and requires one to have access to a server that runs
23813  the backend.
23814 \end_layout
23815
23816 \end_inset
23817
23818  More importantly (as of version 1.1.1, at least), 
23819 \begin_inset Flex Code
23820 status collapsed
23821
23822 \begin_layout Plain Layout
23823 e\SpecialChar LyX
23824 er
23825 \end_layout
23826
23827 \end_inset
23828
23829  has limited support for math macros and no support for user-defined paragraph
23830  or character styles.
23831  These limitations make 
23832 \begin_inset Flex Code
23833 status collapsed
23834
23835 \begin_layout Plain Layout
23836 e\SpecialChar LyX
23837 er
23838 \end_layout
23839
23840 \end_inset
23841
23842  unsuitable for many of the documents \SpecialChar LyX
23843  users produce.
23844  In principle, of course, these problems could be solved, but the \SpecialChar LyX
23845  developers
23846  have decided to follow a different path and have made \SpecialChar LyX
23847  itself capable of
23848  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
23849 , DocBook, and plaintext.
23850 \end_layout
23851
23852 \begin_layout Standard
23853 As of this writing, XHTML output remains under development and should probably
23854  be regarded as 
23855 \begin_inset Quotes eld
23856 \end_inset
23857
23858 experimental
23859 \begin_inset Quotes erd
23860 \end_inset
23861
23862 .
23863 \begin_inset Foot
23864 status collapsed
23865
23866 \begin_layout Plain Layout
23867 The file 
23868 \begin_inset Flex Code
23869 status collapsed
23870
23871 \begin_layout Plain Layout
23872 development/HTML/HTML.notes
23873 \end_layout
23874
23875 \end_inset
23876
23877 , which can be found in the \SpecialChar LyX
23878  source tree or 
23879 \begin_inset CommandInset href
23880 LatexCommand href
23881 name "accessed online"
23882 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
23883 literal "false"
23884
23885 \end_inset
23886
23887 , usually contains up-to-date information about the state of XHTML output.
23888  See also the list of XHTML bugs on 
23889 \begin_inset CommandInset href
23890 LatexCommand href
23891 name "the bug tracker"
23892 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"
23893 literal "false"
23894
23895 \end_inset
23896
23897 .
23898 \end_layout
23899
23900 \end_inset
23901
23902  Still, the developers have chosen this approach because it has several
23903  potential advantages over the other two.
23904 \end_layout
23905
23906 \begin_layout Standard
23907 These advantages are primarily due to the fact that the XHTML output routines,
23908  since they are part of \SpecialChar LyX
23909 , know everything \SpecialChar LyX
23910  knows about the document being
23911  exported.
23912 \begin_inset Foot
23913 status collapsed
23914
23915 \begin_layout Plain Layout
23916 Another advantage is that, since these routines are internal to \SpecialChar LyX
23917 , they are
23918  immune to changes in \SpecialChar LyX
23919 's file format, or to changes in the semantics of
23920  existing insets.
23921 \end_layout
23922
23923 \end_inset
23924
23925  So they know about the table of contents (as displayed in the outline),
23926  about the counters associated with different paragraph styles, and about
23927  user-defined styles.
23928  The XHTML output routines know what \SpecialChar LyX
23929  knows about internationalization,
23930  too, so they will output 
23931 \begin_inset Quotes eld
23932 \end_inset
23933
23934 Chapter 1
23935 \begin_inset Quotes erd
23936 \end_inset
23937
23938  or 
23939 \begin_inset Quotes eld
23940 \end_inset
23941
23942
23943 \lang ngerman
23944 Kapitel
23945 \lang english
23946  1
23947 \begin_inset Quotes erd
23948 \end_inset
23949
23950 , depending upon the language in effect at the time.
23951  
23952 \end_layout
23953
23954 \begin_layout Standard
23955 Quite generally, the output routines know what \SpecialChar LyX
23956  knows about document layout,
23957  that is, about how the document is to be rendered on screen.
23958  We use this information when we output the document as XHTML.
23959  In particular, \SpecialChar LyX
23960  
23961 \emph on
23962 automatically
23963 \emph default
23964  generates CSS style information corresponding to the layout information
23965  it uses to render the document on screen: if section headings are supposed
23966  to be sans-serif and bold as seen in \SpecialChar LyX
23967 , then (by default) they will be sans-seri
23968 f and bold when viewed in a web browser, too.
23969  And this is true not just for pre-defined styles, like Section, but for
23970  any style, including user-defined styles.
23971  Indeed, the XHTML output routines make no distinction between user-defined
23972  paragraph and 
23973 \change_deleted 244031559 1603876931
23974 character
23975 \change_inserted 244031559 1603876940
23976 text
23977 \change_unchanged
23978  styles and \SpecialChar LyX
23979 's own pre-defined styles: in each case, everything \SpecialChar LyX
23980  knows about
23981  the styles is contained in the layout files.
23982  And much the same is true as regards pre-defined textual insets, such as
23983  footnotes, and various custom insets.
23984  
23985 \end_layout
23986
23987 \begin_layout Standard
23988 The result is that XHTML output can be customized and extended in exactly
23989  the same way \SpecialChar LaTeX
23990  output can be customized and extended: through layout files
23991  and modules.
23992  See chapter five of the 
23993 \emph on
23994 Customization 
23995 \emph default
23996 manual for the details.
23997 \end_layout
23998
23999 \begin_layout Standard
24000 The remainder of this chapter contains more detailed information on XHTML
24001  output, its limitations, and ways to work around those limitations.
24002 \end_layout
24003
24004 \begin_layout Section
24005 Math Output in XHTML
24006 \end_layout
24007
24008 \begin_layout Standard
24009 \SpecialChar LyX
24010  offers four choices for how math is rendered.
24011  These have various advantages and disadvantages:
24012 \end_layout
24013
24014 \begin_layout Itemize
24015 MathML
24016 \begin_inset Newline newline
24017 \end_inset
24018
24019 MathML is a dialect of XML designed specifically for mathematics on the
24020  web, and it typically renders very well in browsers that support it.
24021  The disadvantage is that not all browsers support MathML, and support is
24022  not complete even in the Gecko-based browsers, such as Firefox.
24023 \begin_inset Newline newline
24024 \end_inset
24025
24026 If \SpecialChar LyX
24027  is unable to render a formula as MathML—for example, if the formula
24028  uses the 
24029 \begin_inset Flex Code
24030 status collapsed
24031
24032 \begin_layout Plain Layout
24033 xymatrix
24034 \end_layout
24035
24036 \end_inset
24037
24038  package or ERT—then it will instead output the formula as an image.
24039  
24040 \end_layout
24041
24042 \begin_layout Itemize
24043 HTML
24044 \begin_inset Newline newline
24045 \end_inset
24046
24047 As mentioned above, 
24048 \begin_inset Flex Code
24049 status collapsed
24050
24051 \begin_layout Plain Layout
24052 elyxer
24053 \end_layout
24054
24055 \end_inset
24056
24057  outputs math as HTML, styled by CSS.
24058 \begin_inset Foot
24059 status collapsed
24060
24061 \begin_layout Plain Layout
24062 \SpecialChar LyX
24063  has borrowed some of the CSS for its HTML output from 
24064 \begin_inset Flex Code
24065 status collapsed
24066
24067 \begin_layout Plain Layout
24068 elyxer
24069 \end_layout
24070
24071 \end_inset
24072
24073 .
24074 \end_layout
24075
24076 \end_inset
24077
24078  For simple formulae, this can work quite well, though with more complicated
24079  formulae it tends to break down.
24080  Still, this method has the advantage that it is very widely supported and
24081  so it may be appropriate for documents that contain only a little, fairly
24082  simple math.
24083 \begin_inset Newline newline
24084 \end_inset
24085
24086 If Lyx is unable to render a formula as HTML—for example, if the formula
24087  uses the 
24088 \begin_inset Flex Code
24089 status collapsed
24090
24091 \begin_layout Plain Layout
24092 xymatrix
24093 \end_layout
24094
24095 \end_inset
24096
24097  package or ERT—then it will instead output the formula as an image.
24098  
24099 \end_layout
24100
24101 \begin_layout Itemize
24102 Images
24103 \begin_inset Newline newline
24104 \end_inset
24105
24106 Like 
24107 \begin_inset Flex Code
24108 status collapsed
24109
24110 \begin_layout Plain Layout
24111 htlatex
24112 \end_layout
24113
24114 \end_inset
24115
24116 , \SpecialChar LyX
24117  will output formulae as images, the very same images, in fact, that are
24118  used for instant preview.
24119 \begin_inset Foot
24120 status collapsed
24121
24122 \begin_layout Plain Layout
24123 Instant preview does 
24124 \emph on
24125 not 
24126 \emph default
24127 have to be on for images to be output, however.
24128 \end_layout
24129
24130 \end_inset
24131
24132  The advantage to this method is that the images are simply generated by
24133  \SpecialChar LaTeX
24134 , so they are very accurate.
24135  The disadvantage, as mentioned earlier, is that these are bitmapped images,
24136  so they do not scale terribly well, and one cannot copy them, etc.
24137 \begin_inset Newline newline
24138 \end_inset
24139
24140 The size of the images can be controlled by setting the 
24141 \begin_inset Quotes eld
24142 \end_inset
24143
24144 Math Images Scaling
24145 \begin_inset Quotes erd
24146 \end_inset
24147
24148  parameter under 
24149 \begin_inset Flex Noun
24150 status collapsed
24151
24152 \begin_layout Plain Layout
24153 Document\SpecialChar menuseparator
24154 Settings\SpecialChar menuseparator
24155 Formats
24156 \end_layout
24157
24158 \end_inset
24159
24160 .
24161 \begin_inset Foot
24162 status collapsed
24163
24164 \begin_layout Plain Layout
24165 For those who want to know, this controls the resolution of the image in
24166  dots per inch and is based upon a default of 75 dpi.
24167 \end_layout
24168
24169 \end_inset
24170
24171
24172 \begin_inset Newline newline
24173 \end_inset
24174
24175 If \SpecialChar LyX
24176  for some reason fails to create an image for a formula (e.g., if a required
24177  \SpecialChar LaTeX
24178  package is not installed), then it will fall back to outputing the raw
24179  \SpecialChar LaTeX
24180 .
24181 \end_layout
24182
24183 \begin_layout Itemize
24184 \SpecialChar LaTeX
24185
24186 \begin_inset Newline newline
24187 \end_inset
24188
24189 Finally, \SpecialChar LyX
24190  will happily output math as \SpecialChar LaTeX
24191 .
24192  As well as being the output of last resort, this method can be used with
24193  such tools as 
24194 \begin_inset CommandInset href
24195 LatexCommand href
24196 name "jsMath"
24197 target "http://www.math.union.edu/~dpvc/jsMath/"
24198 literal "false"
24199
24200 \end_inset
24201
24202 , which uses JavaScript to render \SpecialChar LaTeX
24203  embedded in HTML documents.
24204  \SpecialChar LyX
24205  wraps the \SpecialChar LaTeX
24206  in either a 
24207 \begin_inset Flex Code
24208 status collapsed
24209
24210 \begin_layout Plain Layout
24211 span
24212 \end_layout
24213
24214 \end_inset
24215
24216  (for inline formulas) or 
24217 \begin_inset Flex Code
24218 status collapsed
24219
24220 \begin_layout Plain Layout
24221 div
24222 \end_layout
24223
24224 \end_inset
24225
24226  (for displayed formulas) with 
24227 \begin_inset Flex Code
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231 class='math'
24232 \end_layout
24233
24234 \end_inset
24235
24236 , as is required for jsMath.
24237 \end_layout
24238
24239 \begin_layout Standard
24240 One of these output methods must be selected under 
24241 \begin_inset Flex Noun
24242 status collapsed
24243
24244 \begin_layout Plain Layout
24245 Document\SpecialChar menuseparator
24246 Settings\SpecialChar menuseparator
24247 Formats
24248 \end_layout
24249
24250 \end_inset
24251
24252 .
24253  By default, \SpecialChar LyX
24254  outputs MathML.
24255  This is a document-wide setting, therefore.
24256 \end_layout
24257
24258 \begin_layout Standard
24259 Eventually, \SpecialChar LyX
24260  will offer the user the option to select an alternate output
24261  method for a particular inset, say, one that isn't being rendered very
24262  well by MathML.
24263 \begin_inset Foot
24264 status collapsed
24265
24266 \begin_layout Plain Layout
24267 That said, since \SpecialChar LyX
24268  falls back to images if the inset contains ERT, then one
24269  can force output as an image by putting some harmless ERT into the math,
24270  for example: 
24271 \begin_inset Formula $a=b\relax$
24272 \end_inset
24273
24274 .
24275 \end_layout
24276
24277 \end_inset
24278
24279
24280 \end_layout
24281
24282 \begin_layout Section
24283 Bibliography and Citations
24284 \end_layout
24285
24286 \begin_layout Standard
24287 XHTML output fully supports bibliographies and citations.
24288  
24289 \end_layout
24290
24291 \begin_layout Standard
24292 Citation labels are generated by the same machinery that generates \SpecialChar LyX
24293 's on-screen
24294  labels, so the labels will look in the output much as they do in \SpecialChar LyX
24295 , though
24296  better.
24297  If you are using numerical citations, then \SpecialChar LyX
24298  will output numerical labels,
24299  such as [1] or [17], rather than simply showing the citation key in square
24300  brackets, as it does on-screen.
24301  If you are using author-year citations, then \SpecialChar LyX
24302  will add lowercase letters
24303  to the years, just as Bib\SpecialChar TeX
24304  does, if it finds more than one citation for
24305  a given author-year combination.
24306  The labels will be printed with the bibliography entries.
24307  Note that there is, at present, no way to customize the appearance of the
24308  labels, for example, to choose between square brackets and parentheses.
24309 \end_layout
24310
24311 \begin_layout Standard
24312 Bibliography output is handled by the same machinery that handles the presentati
24313 on of reference information in the citation dialog, so you will see in the
24314  XHTML output pretty much what you would see if you were to look at a given
24315  entry in the citation dialog.
24316  The formatting can be customized in your layout file or, preferably, in
24317  a module.
24318  See the 
24319 \emph on
24320 Customization
24321 \emph default
24322  manual for the details.
24323 \end_layout
24324
24325 \begin_layout Standard
24326 The main defect at present is that cross-referenced information is printed
24327  with every entry with which it is associated.
24328  So you can see things like this:
24329 \end_layout
24330
24331 \begin_layout Quote
24332 Jason Stanley, 
24333 \begin_inset Quotes eld
24334 \end_inset
24335
24336 Context and Logical Form
24337 \begin_inset Quotes erd
24338 \end_inset
24339
24340 , in 
24341 \emph on
24342 Language in Context: Selected Essays
24343 \emph default
24344  (Oxford: Oxford University Press, 2007), pp.
24345  30–68.
24346 \end_layout
24347
24348 \begin_layout Quote
24349 Jason Stanley, 
24350 \begin_inset Quotes eld
24351 \end_inset
24352
24353 Semantics in Context
24354 \begin_inset Quotes erd
24355 \end_inset
24356
24357 , in 
24358 \emph on
24359 Language in Context: Selected Essays
24360 \emph default
24361  (Oxford: Oxford University Press, 2007), pp.
24362  201–30.
24363 \end_layout
24364
24365 \begin_layout Standard
24366 This should be fixed before long.
24367 \end_layout
24368
24369 \begin_layout Standard
24370 There is no support at present for sectioned bibliographies.
24371  If you have multiple bibliographies, then \SpecialChar LyX
24372  will print the same bibliography
24373  over and over.
24374 \end_layout
24375
24376 \begin_layout Section
24377 Indexes
24378 \end_layout
24379
24380 \begin_layout Standard
24381 \SpecialChar LyX
24382  will happily export indexes as XHTML, but with certain limitations at the
24383  moment.
24384 \end_layout
24385
24386 \begin_layout Standard
24387 Index export will be most reliable when you do not attempt to use the fancy
24388  constructs that are described in the section on indexes in the 
24389 \emph on
24390 User's Guide
24391 \emph default
24392 .
24393 \begin_inset Foot
24394 status collapsed
24395
24396 \begin_layout Plain Layout
24397 The main issue here is that \SpecialChar LyX
24398  itself does not really handle these.
24399  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
24400 .
24401 \end_layout
24402
24403 \end_inset
24404
24405  We'll describe how they are handled using the subsection headings from
24406  that section.
24407 \end_layout
24408
24409 \begin_layout Itemize
24410 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
24411  makes an effort to support these,
24412  but the entries must be separated by 
24413 \begin_inset Quotes eld
24414 \end_inset
24415
24416  ! 
24417 \begin_inset Quotes erd
24418 \end_inset
24419
24420 , that is, there must be spaces around the exclamation point.
24421  This is because it is otherwise too difficult to check for escaped exclamation
24422  points, ones in math, and so forth.
24423 \end_layout
24424
24425 \begin_layout Itemize
24426 Page Ranges: There is no support at all for page ranges, since these make
24427  no sense with XHMTL.
24428  Instead, you will just get two index entries, one at either end.
24429 \end_layout
24430
24431 \begin_layout Itemize
24432 Cross-referencing: There is no support for cross-referencing.
24433  If \SpecialChar LyX
24434  finds an entry containing the 
24435 \begin_inset Quotes eld
24436 \end_inset
24437
24438 |see\SpecialChar ldots
24439
24440 \begin_inset Quotes erd
24441 \end_inset
24442
24443  construct, it is just dropped, and the rest is treated as an ordinary index
24444  entry.
24445 \end_layout
24446
24447 \begin_layout Itemize
24448 Index Entry Order: \SpecialChar LyX
24449  does support attempts to fix the sorting order.
24450  It will take what is before the first `@' it finds and use that for sorting,
24451  taking what follows the first `@' to be the actual entry.
24452  At present, \SpecialChar LyX
24453  does not check for escaped `@', so do not try to index email
24454  addresses.
24455 \end_layout
24456
24457 \begin_layout Itemize
24458 Index Entry Layout: You can format entries by using the text style dialog,
24459  or by using any other method available within \SpecialChar LyX
24460  itself.
24461  There is no support for constructs like: 
24462 \begin_inset Quotes eld
24463 \end_inset
24464
24465 entry|textbf
24466 \begin_inset Quotes erd
24467 \end_inset
24468
24469 .
24470  Indeed, if \SpecialChar LyX
24471  finds a pipe symbol, `|', in an entry, it will delete it and
24472  everything that follows it.
24473 \end_layout
24474
24475 \begin_layout Itemize
24476 Multiple Indexes: There is no support for multiple indexes.
24477  Rather, all index entries will be printed as one large index.
24478  To avoid our printing several versions of the index, we print only the
24479  main index, so make sure you have one.
24480 \end_layout
24481
24482 \begin_layout Section
24483 Nomenclature and Glossary
24484 \end_layout
24485
24486 \begin_layout Standard
24487 There is at present no support for glossaries.
24488  Adding it would be fairly trivial, and welcome.
24489 \end_layout
24490
24491 \begin_layout Chapter
24492
24493 \change_inserted 1075283030 1616534180
24494 DocBook Output
24495 \end_layout
24496
24497 \begin_layout Standard
24498
24499 \change_inserted 1075283030 1616534386
24500 Apart from HTML, \SpecialChar LyX
24501  can generate documents in the DocBook XML vocabulary.
24502  With versions 2.3 and before, only select templates could be used to generate
24503  DocBook documents (only version 4).
24504  Starting with \SpecialChar LyX
24505  2.4, most \SpecialChar LyX
24506  layouts can generate valid DocBook documents (only
24507  version 5).
24508  This feature is built into \SpecialChar LyX
24509  and does not require the use of external tools.
24510 \end_layout
24511
24512 \begin_layout Standard
24513
24514 \change_inserted 1075283030 1616534437
24515 The result is that the DocBook output can be customized and extended in
24516  exactly the same way \SpecialChar LaTeX
24517  output can be customized and extended: through layout
24518  files and modules.
24519  See chapter five of the 
24520 \emph on
24521 Customization 
24522 \emph default
24523 manual for the details.
24524 \end_layout
24525
24526 \begin_layout Standard
24527
24528 \change_inserted 1075283030 1616534475
24529 Most \SpecialChar LyX
24530  features are supported with DocBook, like math output.
24531 \end_layout
24532
24533 \begin_layout Itemize
24534
24535 \change_inserted 1075283030 1616534741
24536 Math output is performed mostly in MathML (the major exception being constructio
24537 ns not supported by \SpecialChar LyX
24538 , i.e.
24539  ERTs).
24540  All formulae are also available in raw \SpecialChar TeX
24541  in the DocBook output for further
24542  processing.
24543 \end_layout
24544
24545 \begin_layout Itemize
24546
24547 \change_inserted 1075283030 1616534852
24548 Bibliographies and citations are implemented, including with an external
24549  BibTeX file.
24550  Bibliography entries are not prerendered when the detailed information
24551  are available, but rather output with the standard DocBook constructs.
24552  The external DocBook processor is expected to handle the rendering of entries.
24553 \end_layout
24554
24555 \begin_layout Itemize
24556
24557 \change_inserted 1075283030 1616534863
24558 Indexes are supported, including multiple indices.
24559  Grouping (with 
24560 \family typewriter
24561 !
24562 \family default
24563 ), page ranges, and cross-references (
24564 \family typewriter
24565 |see
24566 \family default
24567 ) are supported, with the exception of the same symbols escaped.
24568  Entry order (
24569 \family typewriter
24570 @
24571 \family default
24572 ) and layout (
24573 \family typewriter
24574 |mathbf
24575 \family default
24576 ) are not supported.
24577  There is no support for escaping of index entries.
24578 \end_layout
24579
24580 \begin_layout Itemize
24581
24582 \change_inserted 1075283030 1616534884
24583 Glossaries are implemented.
24584 \end_layout
24585
24586 \begin_layout Standard
24587
24588 \change_inserted 1075283030 1616534894
24589 Two major parameters can be set at the document level.
24590 \end_layout
24591
24592 \begin_layout Itemize
24593
24594 \change_inserted 1075283030 1616534948
24595 Format for tables: \SpecialChar LyX
24596  can generate tables either as HTML (default value) or
24597  CALS, depending on the user's requirements.
24598  Most DocBook processors accept both formats.
24599 \end_layout
24600
24601 \begin_layout Itemize
24602
24603 \change_inserted 1075283030 1616535006
24604 MathML prefix: in DocBook, MathML is included within its own name space,
24605  unlike HTML.
24606  The implication is that there must be an indication of the tags belonging
24607  to the MathML standard.
24608  Three choices are offered: 
24609 \end_layout
24610
24611 \begin_deeper
24612 \begin_layout Itemize
24613
24614 \change_inserted 1075283030 1616535044
24615 Inline: the MathML name space is defined for each formula (using the 
24616 \family typewriter
24617 xmlns
24618 \family default
24619  attribute on each formula)
24620 \end_layout
24621
24622 \begin_layout Itemize
24623
24624 \change_inserted 1075283030 1616535090
24625 With the 
24626 \family typewriter
24627 m
24628 \family default
24629  prefix (default): the MathML name space is defined at the document level
24630  (using the 
24631 \family typewriter
24632 xmlns:m
24633 \family default
24634  attribute on the root element).
24635  Each MathML is prefixed with 
24636 \family typewriter
24637 m
24638 \family default
24639 : for instance, 
24640 \family typewriter
24641 m:math
24642 \end_layout
24643
24644 \begin_layout Itemize
24645
24646 \change_inserted 1075283030 1616620405
24647 With the 
24648 \family typewriter
24649 mml
24650 \family default
24651  prefix: similar to the 
24652 \family typewriter
24653 m
24654 \family default
24655  option, but with 
24656 \family typewriter
24657 mml
24658 \end_layout
24659
24660 \begin_layout Standard
24661
24662 \change_inserted 1075283030 1616620470
24663 This option is especially useful if you want \SpecialChar LyX
24664  to match your personal style
24665  or to work with buggy software that only accepts one prefix for MathML.
24666 \change_unchanged
24667
24668 \end_layout
24669
24670 \end_deeper
24671 \begin_layout Chapter
24672 The \SpecialChar LyX
24673  Server
24674 \end_layout
24675
24676 \begin_layout Section
24677 Introduction
24678 \end_layout
24679
24680 \begin_layout Standard
24681 The `\SpecialChar LyX
24682  server' allows other programs to talk to \SpecialChar LyX
24683 , invoke \SpecialChar LyX
24684  commands, and retrieve
24685  information about the \SpecialChar LyX
24686  internal state.
24687  This is only intended for advanced users, but they should find it useful.
24688  It is by writing to the \SpecialChar LyX
24689  server, for example, that bibliography managers,
24690  such as JabRef, are able to 
24691 \begin_inset Quotes eld
24692 \end_inset
24693
24694 push
24695 \begin_inset Quotes erd
24696 \end_inset
24697
24698  citations to \SpecialChar LyX
24699 .
24700 \end_layout
24701
24702 \begin_layout Section
24703 Starting the \SpecialChar LyX
24704  Server
24705 \begin_inset CommandInset label
24706 LatexCommand label
24707 name "sec:Starting-the-Server"
24708
24709 \end_inset
24710
24711
24712 \end_layout
24713
24714 \begin_layout Standard
24715 The \SpecialChar LyX
24716  server works through the use of a pair of named pipes.
24717  These are usually located in 
24718 \begin_inset Flex Code
24719 status collapsed
24720
24721 \begin_layout Plain Layout
24722 UserDir
24723 \end_layout
24724
24725 \end_inset
24726
24727 , (except on Windows, where 
24728 \emph on
24729 local
24730 \emph default
24731  named pipes are special objects located in 
24732 \begin_inset Flex Code
24733 status collapsed
24734
24735 \begin_layout Plain Layout
24736
24737 \backslash
24738
24739 \backslash
24740 .
24741 \backslash
24742 pipe
24743 \end_layout
24744
24745 \end_inset
24746
24747 ) and have the names 
24748 \begin_inset Quotes eld
24749 \end_inset
24750
24751
24752 \begin_inset Flex Code
24753 status collapsed
24754
24755 \begin_layout Plain Layout
24756 lyxpipe.in
24757 \end_layout
24758
24759 \end_inset
24760
24761
24762 \begin_inset Quotes erd
24763 \end_inset
24764
24765  and 
24766 \begin_inset Quotes eld
24767 \end_inset
24768
24769
24770 \begin_inset Flex Code
24771 status collapsed
24772
24773 \begin_layout Plain Layout
24774 lyxpipe.out
24775 \end_layout
24776
24777 \end_inset
24778
24779
24780 \begin_inset Quotes erd
24781 \end_inset
24782
24783 .
24784  External programs write into 
24785 \begin_inset Flex Code
24786 status collapsed
24787
24788 \begin_layout Plain Layout
24789 lyxpipe.in
24790 \end_layout
24791
24792 \end_inset
24793
24794  and read back data from 
24795 \begin_inset Flex Code
24796 status collapsed
24797
24798 \begin_layout Plain Layout
24799 lyxpipe.out
24800 \end_layout
24801
24802 \end_inset
24803
24804 .
24805  The stem of the pipe names can be defined in the 
24806 \begin_inset Flex Noun
24807 status collapsed
24808
24809 \begin_layout Plain Layout
24810 Tools\SpecialChar menuseparator
24811 Preferences
24812 \end_layout
24813
24814 \end_inset
24815
24816  dialog, for example 
24817 \begin_inset Flex Code
24818 status collapsed
24819
24820 \begin_layout Plain Layout
24821 "/home/myhome/lyxpipe"
24822 \end_layout
24823
24824 \end_inset
24825
24826 , or 
24827 \begin_inset Flex Code
24828 status collapsed
24829
24830 \begin_layout Plain Layout
24831 "
24832 \backslash
24833
24834 \backslash
24835 .
24836 \backslash
24837 pipe
24838 \backslash
24839 lyxpipe"
24840 \end_layout
24841
24842 \end_inset
24843
24844  on Windows (where any working path instead of lyxpipe can be used, for
24845  example 
24846 \begin_inset Flex Code
24847 status collapsed
24848
24849 \begin_layout Plain Layout
24850 "
24851 \backslash
24852
24853 \backslash
24854 .
24855 \backslash
24856 pipe
24857 \backslash
24858 my
24859 \backslash
24860 lyx
24861 \backslash
24862 pipe"
24863 \end_layout
24864
24865 \end_inset
24866
24867  would also work).
24868  You 
24869 \emph on
24870 must
24871 \emph default
24872  configure this manually in order for the server to start.
24873 \end_layout
24874
24875 \begin_layout Standard
24876 \SpecialChar LyX
24877  will add the '
24878 \begin_inset Flex Code
24879 status collapsed
24880
24881 \begin_layout Plain Layout
24882 .in
24883 \end_layout
24884
24885 \end_inset
24886
24887 ' and '
24888 \begin_inset Flex Code
24889 status collapsed
24890
24891 \begin_layout Plain Layout
24892 .out
24893 \end_layout
24894
24895 \end_inset
24896
24897 ' to create the pipes.
24898  If one of the pipes already exists, \SpecialChar LyX
24899  will assume that another \SpecialChar LyX
24900  process
24901  is already running and will not start the server.
24902  On POSIX (Unix like) systems, if for some other reason, an unused 
24903 \begin_inset Quotes eld
24904 \end_inset
24905
24906 stale
24907 \begin_inset Quotes erd
24908 \end_inset
24909
24910  pipe is left in existence when \SpecialChar LyX
24911  closes, then \SpecialChar LyX
24912  will try to delete it.
24913  If this fails for some reason, you will need to delete the pipes manually
24914  and then restart \SpecialChar LyX
24915 .
24916  On Windows, pipes are deleted by the OS on program termination or crash,
24917  so 
24918 \begin_inset Quotes eld
24919 \end_inset
24920
24921 stale
24922 \begin_inset Quotes erd
24923 \end_inset
24924
24925  pipes should not be possible.
24926 \end_layout
24927
24928 \begin_layout Standard
24929 To have several \SpecialChar LyX
24930  processes with servers at the same time, you have to use
24931  different configurations, perhaps by using separate user directories, each
24932  with its own 
24933 \begin_inset Flex Code
24934 status collapsed
24935
24936 \begin_layout Plain Layout
24937 preferences
24938 \end_layout
24939
24940 \end_inset
24941
24942  file, for each process.
24943 \end_layout
24944
24945 \begin_layout Standard
24946 If you are developing a client program, you might find it useful to enable
24947  debugging information from the \SpecialChar LyX
24948  server.
24949  Do this by starting \SpecialChar LyX
24950  as 
24951 \begin_inset Flex Code
24952 status collapsed
24953
24954 \begin_layout Plain Layout
24955 lyx -dbg lyxserver
24956 \end_layout
24957
24958 \end_inset
24959
24960 .
24961 \end_layout
24962
24963 \begin_layout Standard
24964 You can find a complete example client written in C++ in the source distribution
24965  as 
24966 \begin_inset Flex Code
24967 status collapsed
24968
24969 \begin_layout Plain Layout
24970 development/lyxserver/server_monitor.cpp
24971 \end_layout
24972
24973 \end_inset
24974
24975 .
24976 \end_layout
24977
24978 \begin_layout Standard
24979 Another useful tool is the command-line based client found in 
24980 \begin_inset Flex Code
24981 status collapsed
24982
24983 \begin_layout Plain Layout
24984 src/client/lyxclient
24985 \end_layout
24986
24987 \end_inset
24988
24989 .
24990 \end_layout
24991
24992 \begin_layout Section
24993 Normal communication
24994 \end_layout
24995
24996 \begin_layout Standard
24997 To issue a \SpecialChar LyX
24998  call, the client writes a line of ASCII text into the input
24999  pipe.
25000  This line has the following format:
25001 \end_layout
25002
25003 \begin_layout Quote
25004 LYXCMD:
25005 \emph on
25006 clientname
25007 \emph default
25008 :
25009 \emph on
25010 function
25011 \emph default
25012 :
25013 \emph on
25014 argument
25015 \end_layout
25016
25017 \begin_layout Description
25018 clientname is a name that the client can choose arbitrarily.
25019  Its only use is that \SpecialChar LyX
25020  will echo it if it sends an answer—so a client can
25021  dispatch results from different requesters.
25022 \end_layout
25023
25024 \begin_layout Description
25025 function is the function you want \SpecialChar LyX
25026  to perform.
25027  It is the same as the commands you'd use in the minibuffer.
25028 \end_layout
25029
25030 \begin_layout Description
25031 argument is an optional argument which is meaningful only to some functions
25032  (for instance, the 
25033 \begin_inset Quotes eld
25034 \end_inset
25035
25036 self-insert
25037 \begin_inset Quotes erd
25038 \end_inset
25039
25040  LFUN will insert the argument as text at the cursor position).
25041 \end_layout
25042
25043 \begin_layout Standard
25044 The answer from \SpecialChar LyX
25045  will arrive in the output pipe and be of the form
25046 \end_layout
25047
25048 \begin_layout Quote
25049 INFO:
25050 \emph on
25051 clientname
25052 \emph default
25053 :
25054 \emph on
25055 function
25056 \emph default
25057 :
25058 \emph on
25059 data
25060 \end_layout
25061
25062 \begin_layout Standard
25063 where 
25064 \emph on
25065 clientname
25066 \emph default
25067  and 
25068 \emph on
25069 function
25070 \emph default
25071  are just echoed from the command request, while 
25072 \emph on
25073 data
25074 \emph default
25075  is more or less useful information filled according to how the command
25076  execution worked out.
25077  Some commands, such as 
25078 \begin_inset Quotes eld
25079 \end_inset
25080
25081 font-state
25082 \begin_inset Quotes erd
25083 \end_inset
25084
25085 , will return information about the internal state of \SpecialChar LyX
25086 , while other will
25087  return an empty data-response.
25088  This means that the command execution went fine.
25089 \end_layout
25090
25091 \begin_layout Standard
25092 In case of errors, the response from \SpecialChar LyX
25093  will have this form
25094 \end_layout
25095
25096 \begin_layout Quote
25097 ERROR:
25098 \emph on
25099 clientname
25100 \emph default
25101 :
25102 \emph on
25103 function
25104 \emph default
25105 :
25106 \emph on
25107 error message
25108 \end_layout
25109
25110 \begin_layout Standard
25111 where the 
25112 \emph on
25113 error message
25114 \emph default
25115  should contain an explanation of why the command failed.
25116 \end_layout
25117
25118 \begin_layout Standard
25119 Examples:
25120 \end_layout
25121
25122 \begin_layout LyX-Code
25123 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
25124 \begin_inset Newline newline
25125 \end_inset
25126
25127 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
25128 \begin_inset Newline newline
25129 \end_inset
25130
25131 read a <~/.lyxpipe.out
25132 \begin_inset Newline newline
25133 \end_inset
25134
25135 echo $a
25136 \end_layout
25137
25138 \begin_layout Subsection
25139 AppleScript (Mac OS X)
25140 \end_layout
25141
25142 \begin_layout Standard
25143 Since \SpecialChar LyX
25144  2.1, \SpecialChar LyX
25145  supports basic interactions with AppleScript for normal communicatio
25146 n through the command run.
25147  This command takes a direct argument (the 
25148 \series bold
25149 function
25150 \series default
25151  to perform) and an optional argument.
25152  It either returns the output of the function or triggers an error with
25153  the error message and code.
25154 \end_layout
25155
25156 \begin_layout Standard
25157 Example:
25158 \end_layout
25159
25160 \begin_layout LyX-Code
25161 tell application "\SpecialChar LyX
25162 "
25163 \end_layout
25164
25165 \begin_layout LyX-Code
25166   try
25167 \end_layout
25168
25169 \begin_layout LyX-Code
25170     -- Stores the current file name into f
25171 \end_layout
25172
25173 \begin_layout LyX-Code
25174     set f to (run "server-get-filename" with argument "")
25175 \end_layout
25176
25177 \begin_layout LyX-Code
25178     on error the error_message number the error_number
25179 \end_layout
25180
25181 \begin_layout LyX-Code
25182       display dialog "Error: " & the error_number & ".
25183  " ¬
25184 \end_layout
25185
25186 \begin_layout LyX-Code
25187               & the error_message buttons {"OK"} default button 1
25188 \end_layout
25189
25190 \begin_layout LyX-Code
25191   end try
25192 \end_layout
25193
25194 \begin_layout LyX-Code
25195 end tell
25196 \end_layout
25197
25198 \begin_layout Section
25199 Notification
25200 \end_layout
25201
25202 \begin_layout Standard
25203 \SpecialChar LyX
25204  can notify clients of events going on asynchronously.
25205  Currently it will only do this if the user binds a key sequence with the
25206  function 
25207 \begin_inset Quotes eld
25208 \end_inset
25209
25210 notify
25211 \begin_inset Quotes erd
25212 \end_inset
25213
25214 .
25215  The format of the string \SpecialChar LyX
25216  sends is as follows:
25217 \end_layout
25218
25219 \begin_layout Quote
25220 \begin_inset Flex Code
25221 status collapsed
25222
25223 \begin_layout Plain Layout
25224 NOTIFY:
25225 \end_layout
25226
25227 \end_inset
25228
25229
25230 \emph on
25231 key-sequence
25232 \end_layout
25233
25234 \begin_layout Standard
25235 where 
25236 \emph on
25237 key-sequence
25238 \emph default
25239  is the printed representation of the key sequence that was actually typed
25240  by the user.
25241 \end_layout
25242
25243 \begin_layout Standard
25244 This mechanism can be used to extend \SpecialChar LyX
25245 's command set and implement macros.
25246  Bind some key sequence to 
25247 \begin_inset Quotes eld
25248 \end_inset
25249
25250 notify
25251 \begin_inset Quotes erd
25252 \end_inset
25253
25254 .
25255  Then start a client that listens on the output pipe, dispatches the command
25256  according to the sequence, and starts a function that may use \SpecialChar LyX
25257  calls and
25258  \SpecialChar LyX
25259  requests to issue a command or a series of commands to \SpecialChar LyX
25260 .
25261 \end_layout
25262
25263 \begin_layout Section
25264 The simple \SpecialChar LyX
25265  Server Protocol
25266 \end_layout
25267
25268 \begin_layout Standard
25269 \SpecialChar LyX
25270  implements a simple protocol that can be used for session management.
25271  All messages are of the form
25272 \end_layout
25273
25274 \begin_layout Quote
25275 LYXSRV:
25276 \emph on
25277 clientname
25278 \emph default
25279 :
25280 \emph on
25281 protocol message
25282 \end_layout
25283
25284 \begin_layout Standard
25285 where 
25286 \emph on
25287 protocol message
25288 \emph default
25289  can be 
25290 \begin_inset Quotes eld
25291 \end_inset
25292
25293 hello
25294 \begin_inset Quotes erd
25295 \end_inset
25296
25297  or 
25298 \begin_inset Quotes eld
25299 \end_inset
25300
25301 bye
25302 \begin_inset Quotes erd
25303 \end_inset
25304
25305 .
25306  If 
25307 \begin_inset Quotes eld
25308 \end_inset
25309
25310 hello
25311 \begin_inset Quotes erd
25312 \end_inset
25313
25314  is received from a client, \SpecialChar LyX
25315  will report back to inform the client that
25316  it's listening to it's messages, while 
25317 \begin_inset Quotes eld
25318 \end_inset
25319
25320 bye
25321 \begin_inset Quotes erd
25322 \end_inset
25323
25324  sent from \SpecialChar LyX
25325  will inform clients that \SpecialChar LyX
25326  is closing.
25327 \end_layout
25328
25329 \begin_layout Section
25330 Reverse DVI/PDF search
25331 \end_layout
25332
25333 \begin_layout Standard
25334 Some DVI/PDF viewers
25335 \begin_inset Foot
25336 status collapsed
25337
25338 \begin_layout Plain Layout
25339 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
25340  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
25341 \end_layout
25342
25343 \end_inset
25344
25345  provide 
25346 \emph on
25347 reverse search
25348 \emph default
25349  facility (also called 
25350 \emph on
25351 inverse search
25352 \emph default
25353 ).
25354  This means that you can tell \SpecialChar LyX
25355  to put the cursor to a specific line in the
25356  document by clicking at the respective position in the DVI/PDF output.
25357  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
25358 .
25359  This is done via the \SpecialChar LyX
25360  server either by using the named pipe (
25361 \emph on
25362 lyxpipe
25363 \emph default
25364 ), or the UNIX domain socket (
25365 \emph on
25366 lyxsocket
25367 \emph default
25368 ) that \SpecialChar LyX
25369  creates in its temporary directory (this is the way the 
25370 \begin_inset Flex Code
25371 status collapsed
25372
25373 \begin_layout Plain Layout
25374 lyxclient
25375 \end_layout
25376
25377 \end_inset
25378
25379  program communicates with \SpecialChar LyX
25380 ).
25381  In some cases, you need a helper script that mediates between the viewer
25382  and \SpecialChar LyX
25383 , in others, the viewer can communicate with \SpecialChar LyX
25384  directly.
25385  This depends on the selected viewer and on your operating system.
25386  The same applies to the way viewers need to be configured and the way the
25387  reverse search is actually performed.
25388  In what follows, we will thus describe how to setup reverse search for
25389  specific viewers.
25390  Before we turn to this, though, we will explain what needs to be done generally
25391  to enable reverse search in the DVI/PDF output.
25392 \end_layout
25393
25394 \begin_layout Subsection
25395 Automatic setup
25396 \begin_inset CommandInset label
25397 LatexCommand label
25398 name "subsec:rev-search"
25399
25400 \end_inset
25401
25402
25403 \end_layout
25404
25405 \begin_layout Standard
25406 In most cases \SpecialChar LyX
25407  will do the work for you by pressing the following button
25408  in the toolbar: 
25409 \begin_inset Info
25410 type  "icon"
25411 arg   "buffer-toggle-output-sync"
25412 \end_inset
25413
25414 .
25415  Alternatively, you can also enable the feature by checking 
25416 \family sans
25417 Synchronize with Output
25418 \family default
25419  in 
25420 \begin_inset Flex Noun
25421 status collapsed
25422
25423 \begin_layout Plain Layout
25424 Document\SpecialChar menuseparator
25425 Settings\SpecialChar menuseparator
25426 Formats
25427 \end_layout
25428
25429 \end_inset
25430
25431 .
25432  In such a case \SpecialChar LyX
25433  will automatically insert the necessary Sync\SpecialChar TeX
25434  macro (for
25435  PDF) or load the srcltx package (for DVI) respectively.
25436  This option can be easily reached also on 
25437 \begin_inset Flex Code
25438 status collapsed
25439
25440 \begin_layout Plain Layout
25441 View/Update
25442 \end_layout
25443
25444 \end_inset
25445
25446  Toolbar.
25447 \end_layout
25448
25449 \begin_layout Standard
25450 If you need a different setting, you can select or input a custom macro
25451  from the drop down box just below 
25452 \begin_inset Flex Noun
25453 status collapsed
25454
25455 \begin_layout Plain Layout
25456 Document\SpecialChar menuseparator
25457 Settings\SpecialChar menuseparator
25458 Output\SpecialChar menuseparator
25459 Synchronize with Output
25460 \end_layout
25461
25462 \end_inset
25463
25464 .
25465 \end_layout
25466
25467 \begin_layout Standard
25468 Note that the method 
25469 \begin_inset Flex Code
25470 status collapsed
25471
25472 \begin_layout Plain Layout
25473
25474 \backslash
25475 synctex=1
25476 \end_layout
25477
25478 \end_inset
25479
25480  enables gzip compression.
25481  If your viewer does not support it, you should instead use 
25482 \begin_inset Flex Code
25483 status collapsed
25484
25485 \begin_layout Plain Layout
25486
25487 \backslash
25488 synctex=-1
25489 \end_layout
25490
25491 \end_inset
25492
25493 .
25494 \end_layout
25495
25496 \begin_layout Standard
25497 Please also note that including the 
25498 \begin_inset Flex Code
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 srcltx
25503 \end_layout
25504
25505 \end_inset
25506
25507  package or 
25508 \begin_inset Flex Code
25509 status collapsed
25510
25511 \begin_layout Plain Layout
25512 src-specials
25513 \end_layout
25514
25515 \end_inset
25516
25517  sometimes has an undesired impact on the typesetting.
25518  Thus, you should switch output synchronization off for the final typesetting
25519  if you use the 
25520 \begin_inset Flex Code
25521 status collapsed
25522
25523 \begin_layout Plain Layout
25524 srcltx
25525 \end_layout
25526
25527 \end_inset
25528
25529  package or 
25530 \begin_inset Flex Code
25531 status collapsed
25532
25533 \begin_layout Plain Layout
25534 src-specials
25535 \end_layout
25536
25537 \end_inset
25538
25539 .
25540  
25541 \end_layout
25542
25543 \begin_layout Standard
25544 In case you need some more special settings that are not covered by the
25545  automatic settings, read the next section about how to set up output synchroniz
25546 ation manually.
25547  If the automatic setup suits your needs, you can readily jump to section
25548 \begin_inset space ~
25549 \end_inset
25550
25551
25552 \begin_inset CommandInset ref
25553 LatexCommand ref
25554 reference "subsec:configuring-viewers"
25555
25556 \end_inset
25557
25558 , where the necessary configuration steps in your viewer – needed both with
25559  the automatic and the manual setup – are described.
25560 \end_layout
25561
25562 \begin_layout Subsection
25563 Manual setup
25564 \end_layout
25565
25566 \begin_layout Standard
25567 \SpecialChar LaTeX
25568  provides several different methods for reverse search.
25569  Some are built-in in the 
25570 \begin_inset Flex Code
25571 status collapsed
25572
25573 \begin_layout Plain Layout
25574 latex/pdflatex
25575 \end_layout
25576
25577 \end_inset
25578
25579  program, some are provided by external packages.
25580  Your choice depends on whether your \SpecialChar LaTeX
25581  distribution already provides a given
25582  method (the built-in methods are rather new) and whether your viewer can
25583  cope with it.
25584  The available methods are described in the following.
25585 \end_layout
25586
25587 \begin_layout Subsubsection*
25588 Built-in DVI-search via src-specials (DVI only) 
25589 \end_layout
25590
25591 \begin_layout Standard
25592 This method provides the DVI file with the necessary information for reverse
25593  search.
25594  It is available in \SpecialChar LaTeX
25595  since quite some time (any somewhat recent \SpecialChar LaTeX
25596  distribution
25597  should include it), and it works reliably.
25598  To enable it, change the 
25599 \begin_inset Flex Noun
25600 status collapsed
25601
25602 \begin_layout Plain Layout
25603 La
25604 \family sans
25605 TeX
25606 \family default
25607  (plain)->DVI
25608 \end_layout
25609
25610 \end_inset
25611
25612  or 
25613 \begin_inset Flex Noun
25614 status collapsed
25615
25616 \begin_layout Plain Layout
25617 La
25618 \family sans
25619 TeX
25620 \family default
25621  (plain)->DraftDVI
25622 \end_layout
25623
25624 \end_inset
25625
25626  converter in 
25627 \begin_inset Flex Noun
25628 status collapsed
25629
25630 \begin_layout Plain Layout
25631 Preferences\SpecialChar menuseparator
25632 File Handling\SpecialChar menuseparator
25633 Converters
25634 \end_layout
25635
25636 \end_inset
25637
25638  to 
25639 \begin_inset Flex Code
25640 status collapsed
25641
25642 \begin_layout Plain Layout
25643 latex -src-specials $$i
25644 \end_layout
25645
25646 \end_inset
25647
25648 .
25649  If this doesn't work, check if your \SpecialChar TeX
25650  engine needs different options (the
25651  syntax might differ in some distributions).
25652 \end_layout
25653
25654 \begin_layout Subsubsection*
25655 External Packages (PDFSync and scrltx) 
25656 \end_layout
25657
25658 \begin_layout Standard
25659 The packages 
25660 \emph on
25661 pdfsync
25662 \emph default
25663  and 
25664 \emph on
25665 scrltx
25666 \emph default
25667  provide reverse search facility for PDF output (via pdflatex) and DVI output,
25668  respectively.
25669  In order to enable it, load the packages in the \SpecialChar LyX
25670  preamble: 
25671 \end_layout
25672
25673 \begin_layout Itemize
25674 \begin_inset Flex Code
25675 status collapsed
25676
25677 \begin_layout Plain Layout
25678
25679 \backslash
25680 usepackage{pdfsync}
25681 \end_layout
25682
25683 \end_inset
25684
25685  for reverse PDF search,
25686 \end_layout
25687
25688 \begin_layout Itemize
25689 \begin_inset Flex Code
25690 status collapsed
25691
25692 \begin_layout Plain Layout
25693
25694 \backslash
25695 usepackage[active]{srcltx}
25696 \end_layout
25697
25698 \end_inset
25699
25700  for reverse DVI search.
25701 \end_layout
25702
25703 \begin_layout Standard
25704 If you want to be able to perform both DVI and PDF reverse searches, you
25705  can also insert in the preamble the following lines
25706 \end_layout
25707
25708 \begin_layout LyX-Code
25709
25710 \backslash
25711 usepackage{ifpdf}
25712 \begin_inset Newline newline
25713 \end_inset
25714
25715
25716 \backslash
25717 ifpdf
25718 \begin_inset Newline newline
25719 \end_inset
25720
25721   
25722 \backslash
25723 usepackage{pdfsync}
25724 \begin_inset Newline newline
25725 \end_inset
25726
25727
25728 \backslash
25729 else
25730 \begin_inset Newline newline
25731 \end_inset
25732
25733   
25734 \backslash
25735 usepackage[active]{srcltx}
25736 \begin_inset Newline newline
25737 \end_inset
25738
25739
25740 \backslash
25741 fi
25742 \end_layout
25743
25744 \begin_layout Standard
25745 This way, you can preview the file as either DVI or PDF (pdflatex) and the
25746  right package will be used.
25747 \end_layout
25748
25749 \begin_layout Standard
25750 Note that PDFSync might affect the output layout of your document.
25751  It is therefore advised to disable PDFsync for final documents.
25752 \end_layout
25753
25754 \begin_layout Subsubsection*
25755 Built-in reverse search via Sync\SpecialChar TeX
25756  (DVI and PDF) 
25757 \end_layout
25758
25759 \begin_layout Standard
25760 Recent versions of 
25761 \begin_inset Flex Code
25762 status collapsed
25763
25764 \begin_layout Plain Layout
25765 (pdf)latex
25766 \end_layout
25767
25768 \end_inset
25769
25770  have built-in support for both PDF and DVI reverse search.
25771  This so-called 
25772 \emph on
25773 Sync\SpecialChar TeX
25774
25775 \emph default
25776  facility is basically the result of the integration of the PDFSync package
25777  to the pdftex program and its merge with the 
25778 \emph on
25779 scr-specials
25780 \emph default
25781  approach.
25782  You need at least \SpecialChar TeX
25783 Live 2008 or a recent Mik\SpecialChar TeX
25784  distribution in order to use
25785  it.
25786 \begin_inset Foot
25787 status collapsed
25788
25789 \begin_layout Plain Layout
25790 For some reason, Mik\SpecialChar TeX
25791  does not understand/obey the command \SpecialChar LyX
25792  inserts into
25793  the preamble when you check the "Enable Forward/Reverse Search" button
25794  in the toolbar and does not generate the necessary info.
25795 \end_layout
25796
25797 \begin_layout Plain Layout
25798 The generation of the required info can be forced by changing the converter
25799  "\SpecialChar LaTeX
25800  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
25801  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
25802  the -synctex=1 switch).
25803 \end_layout
25804
25805 \end_inset
25806
25807  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
25808  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
25809  already provide Sync\SpecialChar TeX
25810  support.
25811 \end_layout
25812
25813 \begin_layout Standard
25814 To enable Sync\SpecialChar TeX
25815  for DVI output, change the 
25816 \begin_inset Flex Noun
25817 status collapsed
25818
25819 \begin_layout Plain Layout
25820 La
25821 \family sans
25822 TeX
25823 \family default
25824  (plain) -> DVI
25825 \end_layout
25826
25827 \end_inset
25828
25829  or 
25830 \begin_inset Flex Noun
25831 status collapsed
25832
25833 \begin_layout Plain Layout
25834 La
25835 \family sans
25836 TeX
25837 \family default
25838  (plain) -> DraftDVI
25839 \end_layout
25840
25841 \end_inset
25842
25843  converter in 
25844 \begin_inset Flex Noun
25845 status collapsed
25846
25847 \begin_layout Plain Layout
25848 Preferences\SpecialChar menuseparator
25849 File Handling\SpecialChar menuseparator
25850 Converters
25851 \end_layout
25852
25853 \end_inset
25854
25855  to 
25856 \begin_inset Flex Code
25857 status collapsed
25858
25859 \begin_layout Plain Layout
25860 latex -synctex=1 $$i
25861 \end_layout
25862
25863 \end_inset
25864
25865 , and for PDF output, change the 
25866 \begin_inset Flex Noun
25867 status collapsed
25868
25869 \begin_layout Plain Layout
25870 La
25871 \family sans
25872 TeX
25873 \family default
25874  (pdflatex) -> PDF (pdflatex)
25875 \end_layout
25876
25877 \end_inset
25878
25879  converter to 
25880 \begin_inset Flex Code
25881 status collapsed
25882
25883 \begin_layout Plain Layout
25884 pdflatex -synctex=1 $$i
25885 \end_layout
25886
25887 \end_inset
25888
25889 .
25890  Should your viewer not be considered in the following description, or in
25891  case of missing success, please check the documentation of your viewer
25892  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
25893 .
25894 \begin_inset Foot
25895 status collapsed
25896
25897 \begin_layout Plain Layout
25898 Note that the option 
25899 \begin_inset Flex Code
25900 status collapsed
25901
25902 \begin_layout Plain Layout
25903 -synctex=1
25904 \end_layout
25905
25906 \end_inset
25907
25908  option enables gzip compression.
25909  If your viewer does not support it, you should instead use 
25910 \begin_inset Flex Code
25911 status collapsed
25912
25913 \begin_layout Plain Layout
25914 -synctex=-1
25915 \end_layout
25916
25917 \end_inset
25918
25919 .
25920 \end_layout
25921
25922 \end_inset
25923
25924
25925 \end_layout
25926
25927 \begin_layout Subsection
25928 Configuring and using specific viewers
25929 \begin_inset CommandInset label
25930 LatexCommand label
25931 name "subsec:configuring-viewers"
25932
25933 \end_inset
25934
25935
25936 \end_layout
25937
25938 \begin_layout Subsubsection*
25939 Xdvi (all platforms)
25940 \end_layout
25941
25942 \begin_layout Standard
25943 If you use 
25944 \begin_inset Flex Code
25945 status collapsed
25946
25947 \begin_layout Plain Layout
25948 xdvi
25949 \end_layout
25950
25951 \end_inset
25952
25953 , you don't need to do anything else for performing a reverse DVI search,
25954  as \SpecialChar LyX
25955  already provides the necessary hooks for automatically using the 
25956 \begin_inset Flex Code
25957 status collapsed
25958
25959 \begin_layout Plain Layout
25960 lyxclient
25961 \end_layout
25962
25963 \end_inset
25964
25965  program.
25966  Just setup your document as described above (reverse search is triggered
25967  by Ctrl-click or Alt-click on Mac OSX, respectively).
25968 \end_layout
25969
25970 \begin_layout Standard
25971 However, if for whatever reason you want to use the named pipe instead of
25972  the socket for communicating with \SpecialChar LyX
25973 , simply change the DVI viewer in 
25974 \begin_inset Flex Noun
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978 Preferences\SpecialChar menuseparator
25979 File Handling\SpecialChar menuseparator
25980 File formats
25981 \end_layout
25982
25983 \end_inset
25984
25985  to
25986 \begin_inset Foot
25987 status collapsed
25988
25989 \begin_layout Plain Layout
25990 On Mac OSX you have to use 
25991 \begin_inset Flex Code
25992 status collapsed
25993
25994 \begin_layout Plain Layout
25995 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
25996 \end_layout
25997
25998 \end_inset
25999
26000
26001 \end_layout
26002
26003 \end_inset
26004
26005  
26006 \begin_inset Flex Code
26007 status collapsed
26008
26009 \begin_layout Plain Layout
26010 xdvi -editor "lyxeditor.sh %f %l"
26011 \end_layout
26012
26013 \end_inset
26014
26015 , where 
26016 \begin_inset Flex Code
26017 status collapsed
26018
26019 \begin_layout Plain Layout
26020 lyxeditor.sh
26021 \end_layout
26022
26023 \end_inset
26024
26025  is a suitable script.
26026  For example, a minimal shell script is the following one:
26027 \end_layout
26028
26029 \begin_layout LyX-Code
26030 #!/bin/sh
26031 \begin_inset Newline newline
26032 \end_inset
26033
26034 LYXPIPE="/path/to/lyxpipe"
26035 \begin_inset Newline newline
26036 \end_inset
26037
26038 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
26039 \begin_inset Newline newline
26040 \end_inset
26041
26042 echo "$COMMAND" > "${LYXPIPE}".in || exit
26043 \begin_inset Newline newline
26044 \end_inset
26045
26046 read TMP < "${LYXPIPE}".out || exit
26047 \end_layout
26048
26049 \begin_layout Standard
26050 where 
26051 \begin_inset Flex Code
26052 status collapsed
26053
26054 \begin_layout Plain Layout
26055 /path/to/lyxpipe
26056 \end_layout
26057
26058 \end_inset
26059
26060  is the LyXServer pipe path specified in 
26061 \begin_inset Flex Noun
26062 status collapsed
26063
26064 \begin_layout Plain Layout
26065 Preferences\SpecialChar menuseparator
26066 Paths
26067 \end_layout
26068
26069 \end_inset
26070
26071 .
26072 \begin_inset Foot
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 In the 
26077 \begin_inset Flex Code
26078 status collapsed
26079
26080 \begin_layout Plain Layout
26081 development/tools
26082 \end_layout
26083
26084 \end_inset
26085
26086  folder of a source distribution you can find a 
26087 \begin_inset Flex Code
26088 status collapsed
26089
26090 \begin_layout Plain Layout
26091 lyxeditor
26092 \end_layout
26093
26094 \end_inset
26095
26096  script which is able to locate the 
26097 \emph on
26098 lyxpipe
26099 \emph default
26100  based on your preferences.
26101 \end_layout
26102
26103 \end_inset
26104
26105
26106 \end_layout
26107
26108 \begin_layout Subsubsection*
26109 MacDviX (Mac OSX)
26110 \end_layout
26111
26112 \begin_layout Standard
26113 At the end of 
26114 \begin_inset Flex Code
26115 status collapsed
26116
26117 \begin_layout Plain Layout
26118 /Applications/MacDviX_Folder/calleditor.script
26119 \end_layout
26120
26121 \end_inset
26122
26123 , add the following lines:
26124 \end_layout
26125
26126 \begin_layout LyX-Code
26127 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
26128 \begin_inset Newline newline
26129 \end_inset
26130
26131 exit 1
26132 \end_layout
26133
26134 \begin_layout Standard
26135 Modify the lines accordingly if you install \SpecialChar LyX
26136  somewhere else than in the
26137  Applications folder.
26138 \end_layout
26139
26140 \begin_layout Standard
26141 Reverse search is triggered by Alt-click (OPTION-click).
26142 \end_layout
26143
26144 \begin_layout Subsubsection*
26145 Skim (Mac OSX)
26146 \end_layout
26147
26148 \begin_layout Standard
26149 Enter 
26150 \begin_inset Flex Code
26151 status collapsed
26152
26153 \begin_layout Plain Layout
26154 open -a Skim.app $$i
26155 \end_layout
26156
26157 \end_inset
26158
26159  to the viewer setting in 
26160 \begin_inset Flex Noun
26161 status collapsed
26162
26163 \begin_layout Plain Layout
26164 Preferences\SpecialChar menuseparator
26165 File Handling\SpecialChar menuseparator
26166 File formats\SpecialChar menuseparator
26167 PDF (pdflatex)
26168 \end_layout
26169
26170 \end_inset
26171
26172 , and then in 
26173 \begin_inset Flex Noun
26174 status collapsed
26175
26176 \begin_layout Plain Layout
26177 Skim\SpecialChar menuseparator
26178 Preferences\SpecialChar menuseparator
26179 Sync
26180 \end_layout
26181
26182 \end_inset
26183
26184  choose 
26185 \begin_inset Flex Noun
26186 status collapsed
26187
26188 \begin_layout Plain Layout
26189 custom
26190 \end_layout
26191
26192 \end_inset
26193
26194  preset and enter command 
26195 \begin_inset Flex Noun
26196 status collapsed
26197
26198 \begin_layout Plain Layout
26199 /Applications/\SpecialChar LyX
26200 .app/Contents/MacOS/lyxeditor
26201 \end_layout
26202
26203 \end_inset
26204
26205 .
26206 \end_layout
26207
26208 \begin_layout Standard
26209 Reverse search is triggered by COMMAND-SHIFT-click
26210 \end_layout
26211
26212 \begin_layout Subsubsection*
26213 Evince (GNOME)
26214 \end_layout
26215
26216 \begin_layout Standard
26217 Reverse search with evince does not work out of the box, but it can be achieved
26218  by means of some third party helper scripts.
26219  Please refer to 
26220 \begin_inset CommandInset href
26221 LatexCommand href
26222 target "https://wiki.lyx.org/LyX/SyncTeX"
26223 literal "false"
26224
26225 \end_inset
26226
26227  for details.
26228 \end_layout
26229
26230 \begin_layout Subsubsection*
26231 Okular (KDE)
26232 \end_layout
26233
26234 \begin_layout Standard
26235 Go to 
26236 \begin_inset Flex Noun
26237 status collapsed
26238
26239 \begin_layout Plain Layout
26240 Settings\SpecialChar menuseparator
26241 Configure Okular\SpecialChar menuseparator
26242 Editor
26243 \end_layout
26244
26245 \end_inset
26246
26247  and select LyX
26248 \begin_inset Quotes erd
26249 \end_inset
26250
26251  as editor.
26252  This inserts the appropriate command (
26253 \begin_inset Flex Code
26254 status collapsed
26255
26256 \begin_layout Plain Layout
26257 lyxclient -g %f %l
26258 \end_layout
26259
26260 \end_inset
26261
26262 ).
26263 \end_layout
26264
26265 \begin_layout Standard
26266 Reverse search is triggered by SHIFT-click.
26267
26268 \change_inserted -712698321 1578211026
26269  Note that this only works if Okular is in 
26270 \begin_inset Quotes eld
26271 \end_inset
26272
26273 Browse
26274 \begin_inset Quotes erd
26275 \end_inset
26276
26277  mode (i.
26278 \begin_inset space \thinspace{}
26279 \end_inset
26280
26281 e., the hand symbol is clicked).
26282 \change_unchanged
26283
26284 \end_layout
26285
26286 \begin_layout Subsubsection*
26287 Qpdfview (Unix)
26288 \end_layout
26289
26290 \begin_layout Standard
26291 Qpdfview supports Sync\SpecialChar TeX
26292  since version 0.3.5.
26293  Go to 
26294 \begin_inset Flex Noun
26295 status collapsed
26296
26297 \begin_layout Plain Layout
26298 Edit\SpecialChar menuseparator
26299 Settings\SpecialChar menuseparator
26300 Behavior
26301 \end_layout
26302
26303 \end_inset
26304
26305 , click on the input field of the 
26306 \begin_inset Quotes eld
26307 \end_inset
26308
26309 Source editor
26310 \begin_inset Quotes erd
26311 \end_inset
26312
26313  item and add the command 
26314 \begin_inset Flex Code
26315 status collapsed
26316
26317 \begin_layout Plain Layout
26318 lyxclient -g %1 %2
26319 \end_layout
26320
26321 \end_inset
26322
26323 .
26324 \end_layout
26325
26326 \begin_layout Standard
26327 Reverse search is triggered by double-click or, in more recent versions,
26328  by context menu.
26329 \end_layout
26330
26331 \begin_layout Subsubsection*
26332 YAP (Windows)
26333 \end_layout
26334
26335 \begin_layout Standard
26336 Launch yap, choose its 
26337 \begin_inset Flex Noun
26338 status collapsed
26339
26340 \begin_layout Plain Layout
26341 View\SpecialChar menuseparator
26342 Options
26343 \end_layout
26344
26345 \end_inset
26346
26347  menu and select the 
26348 \begin_inset Quotes eld
26349 \end_inset
26350
26351 Inverse DVI Search
26352 \begin_inset Quotes erd
26353 \end_inset
26354
26355  tab.
26356  Click on the 
26357 \begin_inset Quotes eld
26358 \end_inset
26359
26360 New\SpecialChar ldots
26361
26362 \begin_inset Quotes erd
26363 \end_inset
26364
26365  button and, in the window that opens, enter 
26366 \begin_inset Quotes eld
26367 \end_inset
26368
26369 \SpecialChar LyX
26370  Editor
26371 \begin_inset Quotes erd
26372 \end_inset
26373
26374  (or any other name you like) in the 
26375 \begin_inset Quotes eld
26376 \end_inset
26377
26378 Name:
26379 \begin_inset Quotes erd
26380 \end_inset
26381
26382  field.
26383  Now click on the button labeled 
26384 \begin_inset Quotes eld
26385 \end_inset
26386
26387 \SpecialChar ldots
26388
26389 \begin_inset Quotes erd
26390 \end_inset
26391
26392  to open a file dialog and navigate to the directory containing the batch
26393  file 
26394 \begin_inset Flex Code
26395 status collapsed
26396
26397 \begin_layout Plain Layout
26398 lyxeditor.bat
26399 \end_layout
26400
26401 \end_inset
26402
26403  (see below).
26404  Select 
26405 \begin_inset Flex Code
26406 status collapsed
26407
26408 \begin_layout Plain Layout
26409 lyxeditor.bat
26410 \end_layout
26411
26412 \end_inset
26413
26414  and then specify the program arguments as 
26415 \begin_inset Flex Code
26416 status collapsed
26417
26418 \begin_layout Plain Layout
26419 %f %l
26420 \end_layout
26421
26422 \end_inset
26423
26424 .
26425  The 
26426 \begin_inset Flex Code
26427 status collapsed
26428
26429 \begin_layout Plain Layout
26430 lyxeditor.bat
26431 \end_layout
26432
26433 \end_inset
26434
26435  wrapper is used for communicating with \SpecialChar LyX
26436  through the 
26437 \emph on
26438 lyxpipe
26439 \emph default
26440  and is as follows:
26441 \end_layout
26442
26443 \begin_layout LyX-Code
26444 @echo off
26445 \begin_inset Newline newline
26446 \end_inset
26447
26448 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
26449 \backslash
26450
26451 \backslash
26452 .
26453 \backslash
26454 pipe
26455 \backslash
26456 lyxpipe.in
26457 \begin_inset Newline newline
26458 \end_inset
26459
26460 type 
26461 \backslash
26462
26463 \backslash
26464 .
26465 \backslash
26466 pipe
26467 \backslash
26468 lyxpipe.out
26469 \end_layout
26470
26471 \begin_layout Standard
26472 Make sure that the \SpecialChar LyX
26473 Server pipe path you specified in \SpecialChar LyX
26474  is 
26475 \begin_inset Flex Code
26476 status collapsed
26477
26478 \begin_layout Plain Layout
26479
26480 \backslash
26481
26482 \backslash
26483 .
26484 \backslash
26485 pipe
26486 \backslash
26487 lyxpipe
26488 \end_layout
26489
26490 \end_inset
26491
26492 , otherwise change the 
26493 \begin_inset Flex Code
26494 status collapsed
26495
26496 \begin_layout Plain Layout
26497 lyxeditor.bat
26498 \end_layout
26499
26500 \end_inset
26501
26502  wrapper accordingly.
26503 \end_layout
26504
26505 \begin_layout Standard
26506 In yap, reverse search is triggered by double-click.
26507 \end_layout
26508
26509 \begin_layout Subsubsection*
26510 SumatraPDF (Windows)
26511 \end_layout
26512
26513 \begin_layout Standard
26514 In order to use SumatraPDF for inverse search, enter 
26515 \begin_inset Flex Code
26516 status collapsed
26517
26518 \begin_layout Plain Layout
26519 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
26520 \end_layout
26521
26522 \end_inset
26523
26524  in the viewer setting in 
26525 \begin_inset Flex Noun
26526 status collapsed
26527
26528 \begin_layout Plain Layout
26529 Preferences\SpecialChar menuseparator
26530 File Handling\SpecialChar menuseparator
26531 File formats\SpecialChar menuseparator
26532 PDF (pdflatex)
26533 \end_layout
26534
26535 \end_inset
26536
26537 , where 
26538 \begin_inset Flex Code
26539 status collapsed
26540
26541 \begin_layout Plain Layout
26542 lyxeditor.bat
26543 \end_layout
26544
26545 \end_inset
26546
26547  is the previous wrapper.
26548  If SumatraPDF.exe is not in your command PATH, use its full file name.
26549 \end_layout
26550
26551 \begin_layout Standard
26552 Reverse search is triggered by double-click.
26553 \end_layout
26554
26555 \begin_layout Subsubsection*
26556 YAP (Cygwin)
26557 \end_layout
26558
26559 \begin_layout Standard
26560 First of all, make sure that yap is your default DVI viewer in the Windows
26561  environment, then launch it, choose its 
26562 \begin_inset Flex Noun
26563 status collapsed
26564
26565 \begin_layout Plain Layout
26566 View\SpecialChar menuseparator
26567 Options
26568 \end_layout
26569
26570 \end_inset
26571
26572  menu and select the 
26573 \begin_inset Quotes eld
26574 \end_inset
26575
26576 Inverse DVI Search
26577 \begin_inset Quotes erd
26578 \end_inset
26579
26580  tab.
26581  Click on the 
26582 \begin_inset Quotes eld
26583 \end_inset
26584
26585 New\SpecialChar ldots
26586
26587 \begin_inset Quotes erd
26588 \end_inset
26589
26590  button and, in the window that opens, enter 
26591 \begin_inset Quotes eld
26592 \end_inset
26593
26594 \SpecialChar LyX
26595  Editor
26596 \begin_inset Quotes erd
26597 \end_inset
26598
26599  (or any other name you like) in the 
26600 \begin_inset Quotes eld
26601 \end_inset
26602
26603 Name:
26604 \begin_inset Quotes erd
26605 \end_inset
26606
26607  field.
26608  Now click on the button labeled 
26609 \begin_inset Quotes eld
26610 \end_inset
26611
26612 \SpecialChar ldots
26613
26614 \begin_inset Quotes erd
26615 \end_inset
26616
26617  to open a file dialog and navigate to the directory containing the 
26618 \begin_inset Flex Code
26619 status collapsed
26620
26621 \begin_layout Plain Layout
26622 lyxeditor.exe
26623 \end_layout
26624
26625 \end_inset
26626
26627  program (which is installed by default on Cygwin along with the \SpecialChar LyX
26628  executable).
26629  Select 
26630 \begin_inset Flex Code
26631 status collapsed
26632
26633 \begin_layout Plain Layout
26634 lyxeditor.exe
26635 \end_layout
26636
26637 \end_inset
26638
26639  and then specify the program arguments as 
26640 \begin_inset Flex Code
26641 status collapsed
26642
26643 \begin_layout Plain Layout
26644 -g %f %l
26645 \end_layout
26646
26647 \end_inset
26648
26649 .
26650  In this way, you will be using the 
26651 \emph on
26652 lyxsocket
26653 \emph default
26654  for communicating with \SpecialChar LyX
26655 .
26656  If, for whatever reason, you want to use the 
26657 \emph on
26658 lyxpipe
26659 \emph default
26660 , omit the 
26661 \begin_inset Flex Code
26662 status collapsed
26663
26664 \begin_layout Plain Layout
26665 -g
26666 \end_layout
26667
26668 \end_inset
26669
26670  option and be sure to specify the \SpecialChar LyX
26671 Server pipe path in the \SpecialChar LyX
26672  preferences.
26673 \end_layout
26674
26675 \begin_layout Standard
26676 In yap, reverse search is triggered by double-click.
26677 \end_layout
26678
26679 \begin_layout Subsubsection*
26680 SumatraPDF (Cygwin)
26681 \end_layout
26682
26683 \begin_layout Standard
26684 In order to use SumatraPDF for inverse search, enter 
26685 \begin_inset Flex Code
26686 status collapsed
26687
26688 \begin_layout Plain Layout
26689 SumatraPDF -inverse-search "lyxeditor -g %f %l"
26690 \end_layout
26691
26692 \end_inset
26693
26694  in the viewer setting in 
26695 \begin_inset Flex Noun
26696 status collapsed
26697
26698 \begin_layout Plain Layout
26699 Preferences\SpecialChar menuseparator
26700 File Handling\SpecialChar menuseparator
26701 File formats\SpecialChar menuseparator
26702 PDF (pdflatex)
26703 \end_layout
26704
26705 \end_inset
26706
26707 .
26708  If SumatraPDF.exe is not in your command PATH, use its full posix path.
26709  The 
26710 \begin_inset Flex Code
26711 status collapsed
26712
26713 \begin_layout Plain Layout
26714 -g
26715 \end_layout
26716
26717 \end_inset
26718
26719  enables communication via the 
26720 \emph on
26721 lyxsocket
26722 \emph default
26723 .
26724  Again, omit the 
26725 \begin_inset Flex Code
26726 status collapsed
26727
26728 \begin_layout Plain Layout
26729 -g
26730 \end_layout
26731
26732 \end_inset
26733
26734  option if you want to use the 
26735 \emph on
26736 lyxpipe
26737 \emph default
26738 , and be sure to specify the \SpecialChar LyX
26739 Server pipe path in the \SpecialChar LyX
26740  preferences.
26741 \end_layout
26742
26743 \begin_layout Standard
26744 Reverse search is triggered by double-click.
26745 \end_layout
26746
26747 \begin_layout Section
26748 Forward search
26749 \end_layout
26750
26751 \begin_layout Standard
26752 Forward search is, as the name implies, in a sense the 
26753 \begin_inset Quotes eld
26754 \end_inset
26755
26756 opposite
26757 \begin_inset Quotes erd
26758 \end_inset
26759
26760  of reverse search.
26761  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
26762 .
26763  If forward search is set up (as described in what follows), you can put
26764  the cursor anywhere in your \SpecialChar LyX
26765  document, and hit 
26766 \begin_inset Flex Noun
26767 status collapsed
26768
26769 \begin_layout Plain Layout
26770 Navigate\SpecialChar menuseparator
26771 Forward search
26772 \end_layout
26773
26774 \end_inset
26775
26776  (or select 
26777 \begin_inset Flex Noun
26778 status collapsed
26779
26780 \begin_layout Plain Layout
26781 Forward search
26782 \end_layout
26783
26784 \end_inset
26785
26786  in the context menu via right mouse click), and then the viewer will jump
26787  to that position as well.
26788  This implies, of course, that your viewer supports this function.
26789 \end_layout
26790
26791 \begin_layout Standard
26792 To make forward search possible, you first need to provide the generated
26793  output PDF/DVI file with additional information about the \SpecialChar TeX
26794  sources.
26795  This can be done via the methods described in the section 
26796 \begin_inset CommandInset ref
26797 LatexCommand ref
26798 reference "subsec:rev-search"
26799
26800 \end_inset
26801
26802 .
26803 \end_layout
26804
26805 \begin_layout Standard
26806 Additionally, you need to configure \SpecialChar LyX
26807  for using your viewers in 
26808 \begin_inset Flex Noun
26809 status collapsed
26810
26811 \begin_layout Plain Layout
26812 Tools\SpecialChar menuseparator
26813 Preferences\SpecialChar menuseparator
26814 Output\SpecialChar menuseparator
26815 General
26816 \end_layout
26817
26818 \end_inset
26819
26820 .
26821  We provide a range of tested configurations for some viewers, which you
26822  can select from the drop down list.
26823  If none of these configurations suits you, you have to find out and enter
26824  a suitable configuration yourself.
26825  The definition syntax uses the following placeholders:
26826 \end_layout
26827
26828 \begin_layout Itemize
26829 \noindent
26830 \begin_inset Flex Code
26831 status collapsed
26832
26833 \begin_layout Plain Layout
26834 $$n
26835 \end_layout
26836
26837 \end_inset
26838
26839 : row number
26840 \end_layout
26841
26842 \begin_layout Itemize
26843 \noindent
26844 \begin_inset Flex Code
26845 status collapsed
26846
26847 \begin_layout Plain Layout
26848 $$t
26849 \end_layout
26850
26851 \end_inset
26852
26853 : name of the (temporary) exported .tex file (without path)
26854 \end_layout
26855
26856 \begin_layout Itemize
26857 \noindent
26858 \begin_inset Flex Code
26859 status collapsed
26860
26861 \begin_layout Plain Layout
26862 $$f
26863 \end_layout
26864
26865 \end_inset
26866
26867 : name of the (temporary) exported .tex file (including path)
26868 \end_layout
26869
26870 \begin_layout Itemize
26871 \noindent
26872 \begin_inset Flex Code
26873 status collapsed
26874
26875 \begin_layout Plain Layout
26876 $$o
26877 \end_layout
26878
26879 \end_inset
26880
26881 : name of the exported output file (either dvi or pdf, depending on which
26882  one exists in the temporary directory)
26883 \end_layout
26884
26885 \begin_layout Standard
26886 Note that only some of the viewers provide full and usable forward search
26887  functionality out of the box, among them yap, xdvi, okular
26888 \begin_inset Foot
26889 status collapsed
26890
26891 \begin_layout Plain Layout
26892 You might want to set 
26893 \begin_inset Flex Code
26894 status collapsed
26895
26896 \begin_layout Plain Layout
26897 okular --unique
26898 \end_layout
26899
26900 \end_inset
26901
26902  in 
26903 \begin_inset Flex Noun
26904 status collapsed
26905
26906 \begin_layout Plain Layout
26907 Tools\SpecialChar menuseparator
26908 Preferences\SpecialChar menuseparator
26909 File Handling\SpecialChar menuseparator
26910 File
26911 \begin_inset space ~
26912 \end_inset
26913
26914 Formats
26915 \end_layout
26916
26917 \end_inset
26918
26919
26920 \end_layout
26921
26922 \end_inset
26923
26924 , qpdfview, and SumatraPDF
26925 \begin_inset Foot
26926 status collapsed
26927
26928 \begin_layout Plain Layout
26929 SumatraPDF can also use DDE commands through the external program CMCDDE
26930  — downloadable from 
26931 \begin_inset CommandInset href
26932 LatexCommand href
26933 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
26934 literal "false"
26935
26936 \end_inset
26937
26938
26939 \end_layout
26940
26941 \end_inset
26942
26943 .
26944  Others, such as evince
26945 \begin_inset Foot
26946 status collapsed
26947
26948 \begin_layout Plain Layout
26949 Forward search with evince can be achieved by means of third party helper
26950  scripts.
26951  Please refer to 
26952 \begin_inset CommandInset href
26953 LatexCommand href
26954 target "https://wiki.lyx.org/LyX/SyncTeX"
26955 literal "false"
26956
26957 \end_inset
26958
26959  for details.
26960 \end_layout
26961
26962 \end_inset
26963
26964 , require some extra tools in order to use forward search.
26965  While many of the widespread PDF viewers (most notably Adobe Reader) do
26966  not support forward search at all, some other viewers – e.
26967 \begin_inset space \thinspace{}
26968 \end_inset
26969
26970 g.
26971  xpdf – allow at least to reload the document and jump to a specific page
26972  of the file, so you can at least navigate 
26973 \begin_inset Quotes eld
26974 \end_inset
26975
26976 near
26977 \begin_inset Quotes erd
26978 \end_inset
26979
26980 .
26981  This latter functionality is provided by an external call of synctex (see
26982  the predefined example configurations).
26983  
26984 \end_layout
26985
26986 \begin_layout Standard
26987 Forward search works both with DVI and PDF output.
26988  \SpecialChar LyX
26989  simply checks which preview format you have used before (i.
26990 \begin_inset space \thinspace{}
26991 \end_inset
26992
26993 e., which format is already there in the temporary directory) and chooses
26994  the appropriate configuration for the respective format.
26995 \end_layout
26996
26997 \begin_layout Chapter
26998
26999 \change_deleted 564990737 1671097409
27000 Special Document Classes
27001 \change_unchanged
27002
27003 \end_layout
27004
27005 \begin_layout Section
27006
27007 \change_deleted 564990737 1669742044
27008 A&A Paper
27009 \end_layout
27010
27011 \begin_layout Standard
27012
27013 \change_deleted 564990737 1669742044
27014 by 
27015 \noun on
27016 Peter Sütterlin
27017 \end_layout
27018
27019 \begin_layout Subsection
27020
27021 \change_deleted 564990737 1669742044
27022 Introduction
27023 \end_layout
27024
27025 \begin_layout Standard
27026
27027 \change_deleted 564990737 1669742044
27028 This section describes how \SpecialChar LyX
27029  can be used to write articles for submission
27030  to the scientific journal 
27031 \emph on
27032 Astronomy and Astrophysics
27033 \emph default
27034  (
27035 \begin_inset Flex URL
27036 status collapsed
27037
27038 \begin_layout Plain Layout
27039
27040 https://www.aanda.org/
27041 \end_layout
27042
27043 \end_inset
27044
27045 ) using Version 5.01 of the document class 
27046 \family typewriter
27047 aa.cls
27048 \family default
27049 .
27050  This package can be downloaded from the ftp site
27051 \end_layout
27052
27053 \begin_layout Standard
27054
27055 \change_deleted 564990737 1669742044
27056 \begin_inset VSpace medskip
27057 \end_inset
27058
27059
27060 \end_layout
27061
27062 \begin_layout Standard
27063 \align center
27064
27065 \change_deleted 564990737 1669742044
27066 \begin_inset Flex URL
27067 status collapsed
27068
27069 \begin_layout Plain Layout
27070
27071 ftp://ftp.edpsciences.org/pub/aa/readme.html
27072 \end_layout
27073
27074 \end_inset
27075
27076
27077 \end_layout
27078
27079 \begin_layout Standard
27080
27081 \change_deleted 564990737 1669742044
27082 \begin_inset VSpace medskip
27083 \end_inset
27084
27085
27086 \end_layout
27087
27088 \begin_layout Standard
27089
27090 \change_deleted 564990737 1669742044
27091 A manual comes together with that package, and this text is not meant to
27092  replace the original manual but is merely a short guide in how to realize
27093  the correct form of your paper.
27094  
27095 \end_layout
27096
27097 \begin_layout Standard
27098
27099 \change_deleted 564990737 1669742044
27100 Please note that the publisher of the journal was changed from Springer
27101  to EDP Sciences starting January 1, 2001.
27102  That change involved also some slight changes to the style files, namely
27103  the removal of the thesaurus command.
27104  The \SpecialChar LyX
27105  class aa supports the newest version of these style files, V 5.01.
27106  If you have an older version installed, please upgrade.
27107  For compatibility, the old (version 4) layout has been kept as 
27108 \family sans
27109 article (A&A V4)
27110 \family default
27111 .
27112  Please refer to the comments in 
27113 \family typewriter
27114 \SpecialChar LyX
27115 Dir/layouts/aapaper.layout
27116 \family default
27117 .
27118 \end_layout
27119
27120 \begin_layout Subsection
27121
27122 \change_deleted 564990737 1669742044
27123 Getting started
27124 \end_layout
27125
27126 \begin_layout Standard
27127
27128 \change_deleted 564990737 1669742044
27129 It is recommended you start from the example template distributed with \SpecialChar LyX
27130 .
27131  If you are not using a template, note the following settings:
27132 \end_layout
27133
27134 \begin_layout Itemize
27135
27136 \change_deleted 564990737 1669742044
27137 Select 
27138 \family sans
27139 article (A&A)
27140 \family default
27141  in the 
27142 \family sans
27143 Document\SpecialChar menuseparator
27144 Settings
27145 \family default
27146  dialog (OK, that one was obvious).
27147 \end_layout
27148
27149 \begin_layout Itemize
27150
27151 \change_deleted 564990737 1669742044
27152 Don't change the option 
27153 \family sans
27154 Page
27155 \begin_inset space ~
27156 \end_inset
27157
27158 style
27159 \family default
27160 : Leave it set to 
27161 \family sans
27162 default
27163 \family default
27164 .
27165  The whole layout is done by the macros, you shouldn't change anything.
27166 \end_layout
27167
27168 \begin_layout Subsection
27169
27170 \change_deleted 564990737 1669742044
27171 The header block
27172 \end_layout
27173
27174 \begin_layout Standard
27175
27176 \change_deleted 564990737 1669742044
27177 First thing to enter is the header information.
27178  It consists of seven entries, of which some are optional.
27179  They are
27180 \end_layout
27181
27182 \begin_layout Itemize
27183
27184 \change_deleted 564990737 1669742044
27185
27186 \family sans
27187 Title
27188 \family default
27189 : [required] 
27190 \end_layout
27191
27192 \begin_layout Itemize
27193
27194 \change_deleted 564990737 1669742044
27195
27196 \family sans
27197 Subtitle
27198 \family default
27199 : [optional] 
27200 \end_layout
27201
27202 \begin_layout Itemize
27203
27204 \change_deleted 564990737 1669742044
27205
27206 \family sans
27207 Author
27208 \family default
27209 : [required]
27210 \end_layout
27211
27212 \begin_layout Itemize
27213
27214 \change_deleted 564990737 1669742044
27215
27216 \family sans
27217 Address
27218 \family default
27219 : [required]
27220 \end_layout
27221
27222 \begin_layout Itemize
27223
27224 \change_deleted 564990737 1669742044
27225
27226 \family sans
27227 Offprints
27228 \family default
27229 : [optional] if more than one author: whom to contact for offprint requests.
27230 \end_layout
27231
27232 \begin_layout Itemize
27233
27234 \change_deleted 564990737 1669742044
27235
27236 \family sans
27237 Mail
27238 \family default
27239 : [optional] mail address for contacts.
27240 \end_layout
27241
27242 \begin_layout Itemize
27243
27244 \change_deleted 564990737 1669742044
27245
27246 \family sans
27247 Date
27248 \family default
27249 : [required].
27250  Suggested format is 
27251 \family typewriter
27252 Received: <date>; Accepted <date> 
27253 \end_layout
27254
27255 \begin_layout Standard
27256
27257 \change_deleted 564990737 1669742044
27258 There is no need to issue the 
27259 \family typewriter
27260
27261 \backslash
27262 maketitle
27263 \family default
27264  command, this is done automatically by \SpecialChar LyX
27265  when the header is finished.
27266  Although the order of the single header entries doesn't matter it is advised
27267  to keep the above sequence, just to get the best optics and meets the layout
27268  of the real document.
27269 \end_layout
27270
27271 \begin_layout Standard
27272
27273 \change_deleted 564990737 1669742044
27274 If you want to place footnotes in the header block, e.
27275 \begin_inset space \thinspace{}
27276 \end_inset
27277
27278 g.
27279 \begin_inset space \space{}
27280 \end_inset
27281
27282 to state your present address, just use the standard footnote via the menu
27283  
27284 \family sans
27285 Insert\SpecialChar menuseparator
27286 Footnote.
27287
27288 \family default
27289  \SpecialChar LyX
27290  will automagically use the term 
27291 \family typewriter
27292
27293 \backslash
27294 thanks{}
27295 \family default
27296  in that case.
27297 \end_layout
27298
27299 \begin_layout Standard
27300
27301 \change_deleted 564990737 1669742044
27302 Under 
27303 \family sans
27304 Edit\SpecialChar menuseparator
27305 Text Style
27306 \family default
27307 , you'll find two insets which are relevant for the titling:
27308 \end_layout
27309
27310 \begin_layout Itemize
27311
27312 \change_deleted 564990737 1669742044
27313
27314 \family sans
27315 Institute
27316 \family typewriter
27317  
27318 \family default
27319 to mark corresponding author\SpecialChar breakableslash
27320 institute pairs.
27321  The institutes are numbered sequentially as they appear in the 
27322 \family sans
27323 Address
27324 \family default
27325  field, so you have to put a marker to each author.
27326 \end_layout
27327
27328 \begin_layout Itemize
27329
27330 \change_deleted 564990737 1669742044
27331
27332 \family sans
27333 Email
27334 \family default
27335  to supply an email address for fast contact.
27336 \end_layout
27337
27338 \begin_layout Standard
27339
27340 \change_deleted 564990737 1669742044
27341 In addition to these topics, the macros use one additional \SpecialChar LaTeX
27342  command that
27343  has no counterpart in \SpecialChar LyX
27344 :
27345 \end_layout
27346
27347 \begin_layout Itemize
27348
27349 \change_deleted 564990737 1669742044
27350
27351 \family typewriter
27352
27353 \backslash
27354 and
27355 \family default
27356  to separate different names for more than one author and institute, respectivel
27357 y.
27358 \end_layout
27359
27360 \begin_layout Standard
27361
27362 \change_deleted 564990737 1669742044
27363 The appropriate command has to be entered in \SpecialChar LyX
27364  and marked as \SpecialChar LaTeX
27365  code.
27366  See the examples.
27367  
27368 \end_layout
27369
27370 \begin_layout Subsection
27371
27372 \change_deleted 564990737 1669742044
27373 The abstract
27374 \end_layout
27375
27376 \begin_layout Standard
27377
27378 \change_deleted 564990737 1669742044
27379 The abstract should immediately follow the header block.
27380  With version 5 the abstract environment was changed to a command, and there
27381  is now a restriction to only one paragraph.
27382  In addition, it should contain an entry with the keywords.
27383  This is done via the paragraph style 
27384 \family sans
27385 Keywords
27386 \family default
27387 .
27388  Refer to the example paper.
27389 \end_layout
27390
27391 \begin_layout Subsection
27392
27393 \change_deleted 564990737 1669742044
27394 Supported environments
27395 \end_layout
27396
27397 \begin_layout Standard
27398
27399 \change_deleted 564990737 1669742044
27400 The A&A paper layout supports the following environments for structuring
27401  your text:
27402 \end_layout
27403
27404 \begin_layout Itemize
27405
27406 \change_deleted 564990737 1669742044
27407
27408 \family sans
27409 Standard
27410 \end_layout
27411
27412 \begin_layout Itemize
27413
27414 \change_deleted 564990737 1669742044
27415
27416 \family sans
27417 Section
27418 \end_layout
27419
27420 \begin_layout Itemize
27421
27422 \change_deleted 564990737 1669742044
27423
27424 \family sans
27425 Subsection
27426 \end_layout
27427
27428 \begin_layout Itemize
27429
27430 \change_deleted 564990737 1669742044
27431
27432 \family sans
27433 Subsubsection
27434 \end_layout
27435
27436 \begin_layout Itemize
27437
27438 \change_deleted 564990737 1669742044
27439
27440 \family sans
27441 Itemize
27442 \end_layout
27443
27444 \begin_layout Itemize
27445
27446 \change_deleted 564990737 1669742044
27447
27448 \family sans
27449 Enumerate
27450 \end_layout
27451
27452 \begin_layout Itemize
27453
27454 \change_deleted 564990737 1669742044
27455
27456 \family sans
27457 Description
27458 \end_layout
27459
27460 \begin_layout Itemize
27461
27462 \change_deleted 564990737 1669742044
27463
27464 \family sans
27465 Caption
27466 \end_layout
27467
27468 \begin_layout Itemize
27469
27470 \change_deleted 564990737 1669742044
27471
27472 \family sans
27473 Abstract
27474 \end_layout
27475
27476 \begin_layout Itemize
27477
27478 \change_deleted 564990737 1669742044
27479
27480 \family sans
27481 Acknowledgment
27482 \end_layout
27483
27484 \begin_layout Itemize
27485
27486 \change_deleted 564990737 1669742044
27487
27488 \family sans
27489 Bibliography
27490 \end_layout
27491
27492 \begin_layout Itemize
27493
27494 \change_deleted 564990737 1669742044
27495
27496 \family sans
27497 \SpecialChar LaTeX
27498
27499 \end_layout
27500
27501 \begin_layout Subsection
27502
27503 \change_deleted 564990737 1669742044
27504 Commands not supported by \SpecialChar LyX
27505
27506 \end_layout
27507
27508 \begin_layout Standard
27509
27510 \change_deleted 564990737 1669742044
27511 Some commands are not yet supported by the 
27512 \family sans
27513 paper (A&A)
27514 \family default
27515  layout for \SpecialChar LyX
27516 .
27517  Some have already been mentioned.
27518  For the sake of completeness, they are listed all together here:
27519 \end_layout
27520
27521 \begin_layout Itemize
27522
27523 \change_deleted 564990737 1669742044
27524
27525 \family typewriter
27526
27527 \backslash
27528 and
27529 \end_layout
27530
27531 \begin_layout Itemize
27532
27533 \change_deleted 564990737 1669742044
27534
27535 \family typewriter
27536
27537 \backslash
27538 authorrunning
27539 \end_layout
27540
27541 \begin_layout Itemize
27542
27543 \change_deleted 564990737 1669742044
27544
27545 \family typewriter
27546
27547 \backslash
27548 object{}
27549 \end_layout
27550
27551 \begin_layout Itemize
27552
27553 \change_deleted 564990737 1669742044
27554
27555 \family typewriter
27556
27557 \backslash
27558 titlerunning{}
27559 \end_layout
27560
27561 \begin_layout Standard
27562
27563 \change_deleted 564990737 1669742044
27564 If you want to use any of these commands, you have to enter them yourself.
27565  
27566 \series bold
27567 Do not forget to mark them as \SpecialChar LaTeX
27568  code!
27569 \end_layout
27570
27571 \begin_layout Subsection
27572
27573 \change_deleted 564990737 1669742044
27574 Figure and Table Floats
27575 \end_layout
27576
27577 \begin_layout Standard
27578
27579 \change_deleted 564990737 1669742044
27580 \SpecialChar LyX
27581  provides support for the necessary float environments 
27582 \family sans
27583 figure, figure*, table
27584 \family default
27585  and 
27586 \family sans
27587 table*
27588 \family default
27589 , therefore we won't tell much about it here.
27590  Refer to the 
27591 \emph on
27592 User's
27593 \begin_inset space ~
27594 \end_inset
27595
27596 Guide
27597 \emph default
27598 .
27599  Just remember that tables should be left-aligned.
27600  For that, select the table and change the alignment in 
27601 \family sans
27602 Edit\SpecialChar menuseparator
27603 Paragraph
27604 \begin_inset space ~
27605 \end_inset
27606
27607 Settings.
27608 \end_layout
27609
27610 \begin_layout Standard
27611
27612 \change_deleted 564990737 1669742044
27613 There is only one special thing: the figures with caption besides the figure.
27614  To create such a figure, you have to do the following:
27615 \end_layout
27616
27617 \begin_layout Enumerate
27618
27619 \change_deleted 564990737 1669742044
27620 Create a wide figure float: 
27621 \family sans
27622 Insert\SpecialChar menuseparator
27623 Float\SpecialChar menuseparator
27624 Figure
27625 \family default
27626 , then right click in the figure and select 
27627 \family sans
27628 Span
27629 \begin_inset space ~
27630 \end_inset
27631
27632 columns
27633 \family default
27634 .
27635 \end_layout
27636
27637 \begin_layout Enumerate
27638
27639 \change_deleted 564990737 1669742044
27640 Enter your caption text.
27641 \end_layout
27642
27643 \begin_layout Enumerate
27644
27645 \change_deleted 564990737 1669742044
27646 Press 
27647 \family sans
27648 Return
27649 \family default
27650  to move the cursor above the caption.
27651 \end_layout
27652
27653 \begin_layout Enumerate
27654
27655 \change_deleted 564990737 1669742044
27656 Insert your figure
27657 \end_layout
27658
27659 \begin_layout Enumerate
27660
27661 \change_deleted 564990737 1669742044
27662 Position the cursor behind the figure and insert a horizontal fill: 
27663 \family sans
27664 Insert\SpecialChar menuseparator
27665 Special
27666 \begin_inset space ~
27667 \end_inset
27668
27669 Character\SpecialChar menuseparator
27670 Horizontal
27671 \begin_inset space ~
27672 \end_inset
27673
27674 Fill
27675 \family default
27676 .
27677 \end_layout
27678
27679 \begin_layout Enumerate
27680
27681 \change_deleted 564990737 1669742044
27682 Switch to \SpecialChar LaTeX
27683  mode: 
27684 \family sans
27685 M-c
27686 \begin_inset space ~
27687 \end_inset
27688
27689 t
27690 \family default
27691 .
27692 \end_layout
27693
27694 \begin_layout Enumerate
27695
27696 \change_deleted 564990737 1669742044
27697 Enter 
27698 \family typewriter
27699
27700 \backslash
27701 parbox[b]{55mm}{
27702 \family default
27703 .
27704  
27705 \series bold
27706 Do not close the brace!
27707 \end_layout
27708
27709 \begin_layout Enumerate
27710
27711 \change_deleted 564990737 1669742044
27712 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
27713  mode and insert
27714  the closing brace: 
27715 \family sans
27716 M-c
27717 \begin_inset space ~
27718 \end_inset
27719
27720 t
27721 \family default
27722  
27723 \family typewriter
27724 }
27725 \family default
27726 .
27727 \end_layout
27728
27729 \begin_layout Standard
27730
27731 \change_deleted 564990737 1669742044
27732 Also, refer to the figures in the example paper.
27733 \end_layout
27734
27735 \begin_layout Subsection
27736
27737 \change_deleted 564990737 1669742044
27738 Referee layout
27739 \end_layout
27740
27741 \begin_layout Standard
27742
27743 \change_deleted 564990737 1669742044
27744 For submission, the paper has to be formated in a special double-spacing
27745  layout.
27746  For this purpose, you have to give the option 
27747 \family typewriter
27748 referee
27749 \family default
27750  to the document class.
27751  This must be done using the custom class options field in the 
27752 \family sans
27753 Document\SpecialChar menuseparator
27754 Settings
27755 \family default
27756  dialog.
27757  Just enter the string 
27758 \family typewriter
27759 referee
27760 \family default
27761  there.
27762 \end_layout
27763
27764 \begin_layout Subsection
27765
27766 \change_deleted 564990737 1669742044
27767 The example paper
27768 \end_layout
27769
27770 \begin_layout Standard
27771
27772 \change_deleted 564990737 1669742044
27773 The 
27774 \family sans
27775 Examples
27776 \family default
27777  directory contains an example paper written with \SpecialChar LyX
27778 .
27779  It is the example paper from the original macro package, translated to
27780  \SpecialChar LyX
27781 .
27782  Use it for inspiration, and compare the original \SpecialChar LaTeX
27783  code with \SpecialChar LyX
27784  way of writing.
27785 \end_layout
27786
27787 \begin_layout Section
27788
27789 \change_deleted 564990737 1671097429
27790 Dinbrief
27791 \end_layout
27792
27793 \begin_layout Standard
27794
27795 \change_deleted 564990737 1671097429
27796 The document class 
27797 \family sans
27798 dinbrief
27799 \family default
27800  can be used to type letters according to German conventions.
27801  A template file is included in 
27802 \family typewriter
27803 .../lyx/share/templates
27804 \family default
27805  for you to use as a starting point.
27806 \end_layout
27807
27808 \begin_layout Section
27809
27810 \change_deleted 564990737 1671097429
27811 Elsevier Journals
27812 \end_layout
27813
27814 \begin_layout Standard
27815
27816 \change_deleted 564990737 1671097429
27817 See the \SpecialChar LyX
27818  template file 
27819 \family typewriter
27820 elsarticle.lyx
27821 \family default
27822 .
27823  It contains all infos you need.
27824 \end_layout
27825
27826 \begin_layout Section
27827
27828 \change_deleted 564990737 1669755802
27829 ijmpc and ijmpd
27830 \end_layout
27831
27832 \begin_layout Standard
27833
27834 \change_deleted 564990737 1669755802
27835 by 
27836 \noun on
27837 Panayotis Papasotiriou
27838 \end_layout
27839
27840 \begin_layout Subsection
27841
27842 \change_deleted 564990737 1669755802
27843 Overview
27844 \end_layout
27845
27846 \begin_layout Standard
27847
27848 \change_deleted 564990737 1669755802
27849 The ijmpc package is a set of macros that facilitates electronic manuscript
27850  submission to the 
27851 \emph on
27852 International Journal of Modern Physics C
27853 \emph default
27854 .
27855  Similarly, the ijmpd package is for creating manuscripts to be submitted
27856  to the 
27857 \emph on
27858 International Journal of Modern Physics D
27859 \emph default
27860 .
27861  Both journals are published by World Scientific.
27862  The corresponding document classes are named 
27863 \family typewriter
27864 ws-ijmpc.cls
27865 \family default
27866  and 
27867 \family typewriter
27868 ws-ijmpd.cls
27869 \family default
27870 , respectively.
27871  These files, together with instructions for the authors, can be downloaded
27872  from the sites 
27873 \begin_inset Flex URL
27874 status collapsed
27875
27876 \begin_layout Plain Layout
27877
27878 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
27879 \end_layout
27880
27881 \end_inset
27882
27883  and 
27884 \begin_inset Flex URL
27885 status collapsed
27886
27887 \begin_layout Plain Layout
27888
27889 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
27890 \end_layout
27891
27892 \end_inset
27893
27894 .
27895  Both packages are modified versions of the standard 
27896 \begin_inset Quotes eld
27897 \end_inset
27898
27899 article
27900 \begin_inset Quotes erd
27901 \end_inset
27902
27903  package, and they are almost (but not exactly) identical.
27904  Most of their features are supported by \SpecialChar LyX
27905 .
27906  I have used \SpecialChar LyX
27907  successfully to write articles submitted to both journals
27908  without any problem.
27909 \end_layout
27910
27911 \begin_layout Subsection
27912
27913 \change_deleted 564990737 1669755802
27914 Writing a paper
27915 \end_layout
27916
27917 \begin_layout Standard
27918
27919 \change_deleted 564990737 1669755802
27920 As usual, the easiest way to write a paper is to start with a template.
27921  Click on 
27922 \family sans
27923 File\SpecialChar menuseparator
27924 New from
27925 \family default
27926  
27927 \family sans
27928 Template
27929 \family default
27930 , then choose the 
27931 \family typewriter
27932 ijmpc.lyx
27933 \family default
27934  or 
27935 \family typewriter
27936 ijmpd.lyx
27937 \family default
27938  template.
27939  This will give an (almost) empty document that includes the most common
27940  fields found in a manuscript.
27941  Simply overwrite the existing text (including the brackets, 
27942 \family typewriter
27943 <>
27944 \family default
27945 ) with your text.
27946  You should keep in mind the following remarks.
27947 \end_layout
27948
27949 \begin_layout Enumerate
27950
27951 \change_deleted 564990737 1669755802
27952 \SpecialChar LyX
27953  won't let you change the font size and the page style of the document,
27954  because such modifications are not allowed by both packages.
27955 \end_layout
27956
27957 \begin_layout Enumerate
27958
27959 \change_deleted 564990737 1669755802
27960 The language of the document should not be changed.
27961  Before previewing your paper, be sure that the babel package is not used.
27962  To do this, click on 
27963 \begin_inset Info
27964 type  "menu"
27965 arg   "dialog-show document"
27966 \end_inset
27967
27968  
27969 \family sans
27970 \SpecialChar menuseparator
27971 Language
27972 \family default
27973 , and select 
27974 \begin_inset Quotes eld
27975 \end_inset
27976
27977 None
27978 \begin_inset Quotes erd
27979 \end_inset
27980
27981  as 
27982 \family sans
27983 Language Package
27984 \family default
27985 .
27986 \end_layout
27987
27988 \begin_layout Enumerate
27989
27990 \change_deleted 564990737 1669755802
27991 The 
27992 \begin_inset Quotes eld
27993 \end_inset
27994
27995 Keywords
27996 \begin_inset Quotes erd
27997 \end_inset
27998
27999  style must be used to define keywords.
28000 \end_layout
28001
28002 \begin_layout Enumerate
28003
28004 \change_deleted 564990737 1669755802
28005 The ijmpc package provides a style named 
28006 \begin_inset Quotes eld
28007 \end_inset
28008
28009 Classification Codes
28010 \begin_inset Quotes erd
28011 \end_inset
28012
28013 , which can be used to define classification codes, such as PACS numbers.
28014  Note that this facility is not supported by the ijmpd package.
28015 \end_layout
28016
28017 \begin_layout Enumerate
28018
28019 \change_deleted 564990737 1669755802
28020 Several new environments are available: 
28021 \begin_inset Quotes eld
28022 \end_inset
28023
28024 Definition
28025 \begin_inset Quotes erd
28026 \end_inset
28027
28028
28029 \begin_inset Quotes eld
28030 \end_inset
28031
28032 Step
28033 \begin_inset Quotes erd
28034 \end_inset
28035
28036
28037 \begin_inset Quotes eld
28038 \end_inset
28039
28040 Example
28041 \begin_inset Quotes erd
28042 \end_inset
28043
28044
28045 \begin_inset Quotes eld
28046 \end_inset
28047
28048 Remark
28049 \begin_inset Quotes erd
28050 \end_inset
28051
28052
28053 \begin_inset Quotes eld
28054 \end_inset
28055
28056 Notation
28057 \begin_inset Quotes erd
28058 \end_inset
28059
28060
28061 \begin_inset Quotes eld
28062 \end_inset
28063
28064 Theorem
28065 \begin_inset Quotes erd
28066 \end_inset
28067
28068
28069 \begin_inset Quotes eld
28070 \end_inset
28071
28072 Proof
28073 \begin_inset Quotes erd
28074 \end_inset
28075
28076
28077 \begin_inset Quotes eld
28078 \end_inset
28079
28080 Corollary
28081 \begin_inset Quotes erd
28082 \end_inset
28083
28084
28085 \begin_inset Quotes eld
28086 \end_inset
28087
28088 Lemma
28089 \begin_inset Quotes erd
28090 \end_inset
28091
28092
28093 \begin_inset Quotes eld
28094 \end_inset
28095
28096 Proposition
28097 \begin_inset Quotes erd
28098 \end_inset
28099
28100
28101 \begin_inset Quotes eld
28102 \end_inset
28103
28104 Prop
28105 \begin_inset Quotes erd
28106 \end_inset
28107
28108
28109 \begin_inset Quotes eld
28110 \end_inset
28111
28112 Question
28113 \begin_inset Quotes erd
28114 \end_inset
28115
28116
28117 \begin_inset Quotes eld
28118 \end_inset
28119
28120 Claim
28121 \begin_inset Quotes erd
28122 \end_inset
28123
28124 , and 
28125 \begin_inset Quotes eld
28126 \end_inset
28127
28128 Conjecture
28129 \begin_inset Quotes erd
28130 \end_inset
28131
28132 .
28133  Their use is more or less obvious.
28134  \SpecialChar LyX
28135  supports all these environments; it will use the proper label, text style,
28136  and numbering scheme for each of them.
28137 \end_layout
28138
28139 \begin_layout Enumerate
28140
28141 \change_deleted 564990737 1669755802
28142 Both packages use basic citations; the natbib package should not be used.
28143  In \SpecialChar LyX
28144 , citation references are shown as usual; in the output, citations are
28145  shown as superscripts.
28146  If you want to use a citation as normal text, you should use the 
28147 \family typewriter
28148 refcite
28149 \family default
28150  command, e.
28151 \begin_inset space \thinspace{}
28152 \end_inset
28153
28154 g.
28155 \begin_inset space \space{}
28156 \end_inset
28157
28158
28159 \begin_inset Quotes eld
28160 \end_inset
28161
28162 See Ref.
28163 \begin_inset space \space{}
28164 \end_inset
28165
28166
28167 \family typewriter
28168
28169 \backslash
28170 refcite{key}
28171 \family default
28172
28173 \begin_inset Quotes erd
28174 \end_inset
28175
28176 .
28177 \end_layout
28178
28179 \begin_layout Enumerate
28180
28181 \change_deleted 564990737 1669755802
28182 There is no 
28183 \begin_inset Quotes eld
28184 \end_inset
28185
28186 Acknowledgments
28187 \begin_inset Quotes erd
28188 \end_inset
28189
28190  section in both packages.
28191  To put acknowledgments, just use the 
28192 \begin_inset Quotes eld
28193 \end_inset
28194
28195 Section*
28196 \begin_inset Quotes erd
28197 \end_inset
28198
28199  environment.
28200 \end_layout
28201
28202 \begin_layout Enumerate
28203
28204 \change_deleted 564990737 1669755802
28205 Appendices may be added to the paper, 
28206 \emph on
28207 after
28208 \emph default
28209  the Acknowledgments and 
28210 \shape italic
28211 before
28212 \shape default
28213  the References.
28214  \SpecialChar LyX
28215  provides a special environment, called 
28216 \begin_inset Quotes eld
28217 \end_inset
28218
28219 Appendices Section
28220 \begin_inset Quotes erd
28221 \end_inset
28222
28223  which marks the beginning of the appendices.
28224  This environment should be left blank; it just sends a \SpecialChar LaTeX
28225  command, but nothing
28226  is really printed.
28227  In \SpecialChar LyX
28228 , the word 
28229 \begin_inset Quotes eld
28230 \end_inset
28231
28232 Appendix
28233 \begin_inset Quotes erd
28234 \end_inset
28235
28236  is printed with blue letters, as a signal that all sections after that
28237  point are appendices.
28238  To write an appendix, use the 
28239 \begin_inset Quotes eld
28240 \end_inset
28241
28242 Appendix
28243 \begin_inset Quotes erd
28244 \end_inset
28245
28246  environment.
28247  \SpecialChar LyX
28248  will number each appendix with capital letters, as required by both journals.
28249  Note that 
28250 \begin_inset Quotes eld
28251 \end_inset
28252
28253 Appendices Section
28254 \begin_inset Quotes erd
28255 \end_inset
28256
28257  
28258 \emph on
28259 must
28260 \emph default
28261  be present before the first appendix; if not, all appendices will be numbered
28262  as normal sections in the output.
28263 \end_layout
28264
28265 \begin_layout Enumerate
28266
28267 \change_deleted 564990737 1669755802
28268 The ijmpc and the ijmpd packages use the 
28269 \family typewriter
28270 tbl
28271 \family default
28272  command to implement table captions.
28273  As a result, a table created by \SpecialChar LyX
28274  is printed correctly, but its caption
28275  is ignored.
28276  However, you can use some \SpecialChar TeX
28277  code to overcome this problem, so that captions
28278  are printed as expected.
28279  To do so, create a float table as usual, remove the caption, and replace
28280  it with the \SpecialChar TeX
28281  code 
28282 \family typewriter
28283
28284 \backslash
28285 tbl{
28286 \emph on
28287 your table caption
28288 \emph default
28289 }{
28290 \family default
28291  (sic); you must also the \SpecialChar TeX
28292  code 
28293 \family typewriter
28294 }
28295 \family default
28296  immediately after the tabular material.
28297  Study the example table included in the template files to see how this
28298  trick is implemented.
28299  Alternatively, If you need table captions, you should implement the whole
28300  table float in a 
28301 \family typewriter
28302 .tex
28303 \family default
28304  file, then include this file to the \SpecialChar LyX
28305  document (
28306 \family sans
28307 Insert\SpecialChar menuseparator
28308 File\SpecialChar menuseparator
28309 Child
28310 \begin_inset space ~
28311 \end_inset
28312
28313 Document
28314 \family default
28315 ).
28316  Details on how to create a table float can be found in the files 
28317 \family typewriter
28318 ws-ijmpc.tex
28319 \family default
28320  and 
28321 \family typewriter
28322 ws-ijmpd.tex
28323 \family default
28324 , included in the corresponding packages.
28325 \end_layout
28326
28327 \begin_layout Subsection
28328
28329 \change_deleted 564990737 1669755802
28330 Preparing a paper for submission
28331 \end_layout
28332
28333 \begin_layout Standard
28334
28335 \change_deleted 564990737 1669755802
28336 Before you submit your paper you must export the \SpecialChar LyX
28337  document as a \SpecialChar LaTeX
28338  file (
28339 \family sans
28340 File\SpecialChar menuseparator
28341 Export\SpecialChar menuseparator
28342 \SpecialChar LaTeX
28343
28344 \family default
28345 )
28346 \begin_inset Foot
28347 status open
28348
28349 \begin_layout Plain Layout
28350 Actually you have the choice between \SpecialChar LaTeX
28351  (plain) and pdflatex.
28352  If you intend to use pdflatex to prepare the paper, you should use the
28353  pdflatex option so that included graphics are converted to PDF format,
28354  ready for use by pdflatex.
28355 \end_layout
28356
28357 \end_inset
28358
28359 , then make the following changes to the resulting 
28360 \family typewriter
28361 .tex
28362 \family default
28363  file.
28364 \end_layout
28365
28366 \begin_layout Enumerate
28367
28368 \change_deleted 564990737 1669755802
28369 Remove the comment lines before the 
28370 \family typewriter
28371
28372 \backslash
28373 documentclass
28374 \family default
28375  command.
28376 \end_layout
28377
28378 \begin_layout Enumerate
28379
28380 \change_deleted 564990737 1669755802
28381 Remove everything between (and including) the 
28382 \family typewriter
28383
28384 \backslash
28385 makeatletter
28386 \family default
28387  and 
28388 \family typewriter
28389
28390 \backslash
28391 makeatother
28392 \family default
28393  commands, except for any commands you specifically put into the \SpecialChar LaTeX
28394  preamble.
28395 \end_layout
28396
28397 \begin_layout Standard
28398
28399 \change_deleted 564990737 1669755802
28400 The modified 
28401 \family typewriter
28402 .tex
28403 \family default
28404  file should be saved and processed through \SpecialChar LaTeX
28405  as many times as necessary.
28406  You may also want to check the resulting 
28407 \family typewriter
28408 .dvi
28409 \family default
28410  document.
28411 \change_unchanged
28412
28413 \end_layout
28414
28415 \begin_layout Section
28416
28417 \change_deleted 564990737 1669801478
28418 iopart
28419 \end_layout
28420
28421 \begin_layout Standard
28422
28423 \change_deleted 564990737 1669801478
28424 by 
28425 \noun on
28426 Uwe Stöhr
28427 \end_layout
28428
28429 \begin_layout Subsection
28430
28431 \change_deleted 564990737 1669801478
28432 Overview
28433 \end_layout
28434
28435 \begin_layout Standard
28436
28437 \change_deleted 564990737 1669801478
28438 The iopart package provides a document class to create electronic manuscript
28439  submission to the journals published by the Institute of Physics.
28440  Instructions for the authors how to create a paper using the iopart class
28441  can be downloaded together with the iopart package from the site 
28442 \begin_inset Flex URL
28443 status collapsed
28444
28445 \begin_layout Plain Layout
28446
28447 ftp://ftp.iop.org/pub/journals/latex2e
28448 \end_layout
28449
28450 \end_inset
28451
28452 .
28453 \end_layout
28454
28455 \begin_layout Subsection
28456
28457 \change_deleted 564990737 1669801478
28458 Writing a paper
28459 \end_layout
28460
28461 \begin_layout Standard
28462
28463 \change_deleted 564990737 1669801478
28464 The easiest way to write a paper is to start with the template 
28465 \emph on
28466 IOP-article.lyx
28467 \emph default
28468  that is available via 
28469 \family sans
28470 File\SpecialChar menuseparator
28471 New From Template
28472 \family default
28473  The template explains how to use the special text environments.
28474  Here are the most important advices:
28475 \end_layout
28476
28477 \begin_layout Itemize
28478
28479 \change_deleted 564990737 1669801478
28480 To be able to compile your document to a PDF, PS, or DVI, ensure that the
28481  no AMS packages are loaded in 
28482 \family sans
28483 Document\SpecialChar menuseparator
28484 Settings\SpecialChar menuseparator
28485 Math Options
28486 \family default
28487 !
28488 \end_layout
28489
28490 \begin_layout Itemize
28491
28492 \change_deleted 564990737 1669801478
28493
28494 \size normal
28495 The title environment defines the kind of your paper.
28496  So use one of the following environments for the title:
28497 \end_layout
28498
28499 \begin_deeper
28500 \begin_layout Itemize
28501
28502 \change_deleted 564990737 1669801478
28503
28504 \family sans
28505 \size normal
28506 Title
28507 \family default
28508  for a Paper
28509 \end_layout
28510
28511 \begin_layout Itemize
28512
28513 \change_deleted 564990737 1669801478
28514
28515 \family sans
28516 \size normal
28517 Review
28518 \family default
28519  for a Review
28520 \end_layout
28521
28522 \begin_layout Itemize
28523
28524 \change_deleted 564990737 1669801478
28525
28526 \family sans
28527 \size normal
28528 Topical
28529 \family default
28530  for a Topical review
28531 \end_layout
28532
28533 \begin_layout Itemize
28534
28535 \change_deleted 564990737 1669801478
28536
28537 \family sans
28538 \size normal
28539 Comment
28540 \family default
28541  for a Comment
28542 \end_layout
28543
28544 \begin_layout Itemize
28545
28546 \change_deleted 564990737 1669801478
28547
28548 \family sans
28549 \size normal
28550 Note
28551 \family default
28552  for a Note
28553 \end_layout
28554
28555 \begin_layout Itemize
28556
28557 \change_deleted 564990737 1669801478
28558
28559 \family sans
28560 \size normal
28561 Paper
28562 \family default
28563  for a Paper (same as Title)
28564 \end_layout
28565
28566 \begin_layout Itemize
28567
28568 \change_deleted 564990737 1669801478
28569
28570 \family sans
28571 \size normal
28572 Prelim
28573 \family default
28574  for a Preliminary communication
28575 \end_layout
28576
28577 \begin_layout Itemize
28578
28579 \change_deleted 564990737 1669801478
28580
28581 \family sans
28582 \size normal
28583 Rapid
28584 \family default
28585  for a Rapid communication
28586 \end_layout
28587
28588 \begin_layout Itemize
28589
28590 \change_deleted 564990737 1669801478
28591
28592 \family sans
28593 \size normal
28594 Letter
28595 \family default
28596  for a Letter to the editor
28597 \end_layout
28598
28599 \end_deeper
28600 \begin_layout Itemize
28601
28602 \change_deleted 564990737 1669801478
28603
28604 \size normal
28605 All title environments except of 
28606 \family sans
28607 Letter
28608 \family default
28609  can have an optional short title.
28610 \end_layout
28611
28612 \begin_layout Itemize
28613
28614 \change_deleted 564990737 1669801478
28615 There is a general title environment 
28616 \family sans
28617 Article
28618 \family default
28619  which is not directly supported by \SpecialChar LyX
28620 .
28621  This can be used as \SpecialChar TeX
28622  code when your document doesn't fit into one of the
28623  other title types.
28624 \end_layout
28625
28626 \begin_layout Standard
28627
28628 \change_deleted 564990737 1669801478
28629 For more informations like hints for special table and formula formatting,
28630  look at the IOP author guidelines.
28631 \change_unchanged
28632
28633 \end_layout
28634
28635 \begin_layout Section
28636
28637 \change_deleted 564990737 1670317155
28638 Kluwer
28639 \end_layout
28640
28641 \begin_layout Standard
28642
28643 \change_deleted 564990737 1670317155
28644 by 
28645 \noun on
28646 Panayotis Papasotiriou
28647 \end_layout
28648
28649 \begin_layout Subsection
28650
28651 \change_deleted 564990737 1670317155
28652 Overview
28653 \end_layout
28654
28655 \begin_layout Standard
28656
28657 \change_deleted 564990737 1670317155
28658 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
28659  that facilitates electronic manuscript submission to the journals they
28660  publish.
28661  Most known of them (at least in my domain of interest) are 
28662 \emph on
28663 Astrophysics and Space Science
28664 \emph default
28665  and 
28666 \emph on
28667 Solar Physics
28668 \emph default
28669 , but there are many others (see a complete list at 
28670 \begin_inset Flex URL
28671 status collapsed
28672
28673 \begin_layout Plain Layout
28674
28675 http://www.wkap.nl/jrnllist.htm/JRNLHOME
28676 \end_layout
28677
28678 \end_inset
28679
28680 ).
28681  The Kluwer package may be downloaded from the site 
28682 \begin_inset Flex URL
28683 status collapsed
28684
28685 \begin_layout Plain Layout
28686
28687 http://www.wkap.nl/kaphtml.htm/STYLEFILES
28688 \end_layout
28689
28690 \end_inset
28691
28692 .
28693  A complete user guide is contained in that package (but it can also be
28694  downloaded separately).
28695 \end_layout
28696
28697 \begin_layout Standard
28698
28699 \change_deleted 564990737 1670317155
28700 \SpecialChar LyX
28701  supports many features of the package but not everything.
28702  However, the \SpecialChar TeX
28703  code needed is reduced to some 
28704 \begin_inset Quotes eld
28705 \end_inset
28706
28707 peculiar
28708 \begin_inset Quotes erd
28709 \end_inset
28710
28711  commands of the package (see
28712 \begin_inset space ~
28713 \end_inset
28714
28715
28716 \begin_inset CommandInset ref
28717 LatexCommand ref
28718 reference "subsec:kluwer_peculiarities"
28719
28720 \end_inset
28721
28722 ).
28723  I have recently used \SpecialChar LyX
28724  to write an article submitted to the 
28725 \emph on
28726 Astrophysics and Space Science
28727 \emph default
28728  without any problem.
28729 \end_layout
28730
28731 \begin_layout Subsection
28732
28733 \change_deleted 564990737 1670317155
28734 Writing a paper
28735 \end_layout
28736
28737 \begin_layout Standard
28738
28739 \change_deleted 564990737 1670317155
28740 The easiest way to write a paper is to start with the Kluwer template file.
28741  Click on 
28742 \family sans
28743 File\SpecialChar menuseparator
28744 New from
28745 \family default
28746  
28747 \family sans
28748 Template
28749 \family default
28750 , then choose the 
28751 \family typewriter
28752 kluwer.lyx
28753 \family default
28754  template.
28755  This will give an (almost) empty document that includes the most common
28756  fields found in a manuscript and a short description of their use.
28757  As in most templates, simply overwrite the existing text (including the
28758  brackets, 
28759 \family typewriter
28760 <>
28761 \family default
28762 ) with the correct information.
28763 \end_layout
28764
28765 \begin_layout Subsection
28766
28767 \change_deleted 564990737 1670317155
28768 Preparing a paper for submission
28769 \end_layout
28770
28771 \begin_layout Standard
28772
28773 \change_deleted 564990737 1670317155
28774 As in the AAS\SpecialChar TeX
28775  package, before you submit your paper to a journal you must
28776  
28777 \begin_inset Quotes eld
28778 \end_inset
28779
28780 postprocess
28781 \begin_inset Quotes erd
28782 \end_inset
28783
28784  it as follows.
28785 \end_layout
28786
28787 \begin_layout Enumerate
28788
28789 \change_deleted 564990737 1670317155
28790 Export your paper as a \SpecialChar LaTeX
28791  file.
28792  To do this, click on 
28793 \family sans
28794 File\SpecialChar menuseparator
28795 Export\SpecialChar menuseparator
28796 \SpecialChar LaTeX
28797
28798 \family default
28799 .
28800  
28801 \end_layout
28802
28803 \begin_layout Enumerate
28804
28805 \change_deleted 564990737 1670317155
28806 Edit the resulting 
28807 \family typewriter
28808 .tex
28809 \family default
28810  file with a text editor and make the following changes
28811 \end_layout
28812
28813 \begin_deeper
28814 \begin_layout Enumerate
28815
28816 \change_deleted 564990737 1670317155
28817 remove the comment lines before the 
28818 \family typewriter
28819
28820 \backslash
28821 documentclass
28822 \family default
28823  command,
28824 \end_layout
28825
28826 \begin_layout Enumerate
28827
28828 \change_deleted 564990737 1670317155
28829 remove everything between (and including) the 
28830 \family typewriter
28831
28832 \backslash
28833 makeatletter
28834 \family default
28835  and 
28836 \family typewriter
28837
28838 \backslash
28839 makeatother
28840 \family default
28841  commands, except for any commands you specifically put into the \SpecialChar LaTeX
28842  preamble.
28843 \end_layout
28844
28845 \begin_layout Standard
28846
28847 \change_deleted 564990737 1670317155
28848 Save the resulting 
28849 \family typewriter
28850 .tex
28851 \family default
28852  file.
28853 \end_layout
28854
28855 \end_deeper
28856 \begin_layout Enumerate
28857
28858 \change_deleted 564990737 1670317155
28859 Run the 
28860 \family typewriter
28861 .tex
28862 \family default
28863  file through \SpecialChar LaTeX
28864  as many times as necessary (usually up to three).
28865 \end_layout
28866
28867 \begin_layout Enumerate
28868
28869 \change_deleted 564990737 1670317155
28870 View the resulting 
28871 \family typewriter
28872 .dvi
28873 \family default
28874  document using, e.
28875 \begin_inset space \thinspace{}
28876 \end_inset
28877
28878 g.
28879 \begin_inset space \space{}
28880 \end_inset
28881
28882
28883 \family sans
28884 xdvi
28885 \family default
28886 , and check if everything is OK (it should, if you didn't make any mistake).
28887 \end_layout
28888
28889 \begin_layout Subsection
28890
28891 \change_deleted 564990737 1670317155
28892 \begin_inset Quotes eld
28893 \end_inset
28894
28895 Peculiarities
28896 \begin_inset Quotes erd
28897 \end_inset
28898
28899  of the Kluwer package
28900 \begin_inset CommandInset label
28901 LatexCommand label
28902 name "subsec:kluwer_peculiarities"
28903
28904 \end_inset
28905
28906
28907 \end_layout
28908
28909 \begin_layout Standard
28910
28911 \change_deleted 564990737 1670317155
28912 The Kluwer package has the following 
28913 \begin_inset Quotes eld
28914 \end_inset
28915
28916 peculiarities
28917 \begin_inset Quotes erd
28918 \end_inset
28919
28920 .
28921 \end_layout
28922
28923 \begin_layout Enumerate
28924
28925 \change_deleted 564990737 1670317155
28926 It is possible to write multiple articles in the same \SpecialChar LaTeX
28927  file
28928 \begin_inset Foot
28929 status collapsed
28930
28931 \begin_layout Plain Layout
28932 I can't imagine any good reason to do this.
28933 \end_layout
28934
28935 \end_inset
28936
28937 .
28938  Each article must be included in the environment 
28939 \begin_inset Quotes eld
28940 \end_inset
28941
28942 article
28943 \begin_inset Quotes erd
28944 \end_inset
28945
28946 .
28947  Unfortunately, this environment cannot be omitted, even if you write just
28948  one article.
28949  Therefore, each article starts with the command 
28950 \family typewriter
28951
28952 \backslash
28953 begin{article}
28954 \family default
28955  and, obviously, ends with the command 
28956 \family typewriter
28957
28958 \backslash
28959 end{article}
28960 \family default
28961 .
28962  Although this can be implemented in \SpecialChar LyX
28963 , I didn't included it, since it looks
28964  ugly and can confuse the novice user.
28965  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
28966  code (the
28967  well-known 
28968 \begin_inset Quotes eld
28969 \end_inset
28970
28971 \SpecialChar TeX
28972  code
28973 \begin_inset Quotes erd
28974 \end_inset
28975
28976 ).
28977 \end_layout
28978
28979 \begin_layout Enumerate
28980
28981 \change_deleted 564990737 1670317155
28982 Information given at the beginning of the article (i.
28983 \begin_inset space \thinspace{}
28984 \end_inset
28985
28986 e.
28987 \begin_inset space \space{}
28988 \end_inset
28989
28990 title, subtitle, author, institution, running title, running author, abstract
28991  and keywords) must be included in an environment called 
28992 \begin_inset Quotes eld
28993 \end_inset
28994
28995 opening
28996 \begin_inset Quotes erd
28997 \end_inset
28998
28999 .
29000  This is not implemented in \SpecialChar LyX
29001 , so you must enter title, subtitle etc.
29002 \begin_inset space ~
29003 \end_inset
29004
29005 between two \SpecialChar TeX
29006  code lines (
29007 \family typewriter
29008
29009 \backslash
29010 begin{opening}
29011 \family default
29012  and 
29013 \family typewriter
29014
29015 \backslash
29016 end{opening}
29017 \family default
29018 ).
29019 \end_layout
29020
29021 \begin_layout Enumerate
29022
29023 \change_deleted 564990737 1670317155
29024 According to the user manual, the label of each bibliography item must be
29025  written as 
29026 \family typewriter
29027
29028 \backslash
29029 protect
29030 \backslash
29031 citeauthoryear{
29032 \family default
29033 \emph on
29034 author(s)
29035 \family typewriter
29036 \emph default
29037 }{
29038 \family default
29039 \emph on
29040 year
29041 \family typewriter
29042 \emph default
29043 }
29044 \family default
29045 .
29046 \end_layout
29047
29048 \begin_layout Standard
29049
29050 \change_deleted 564990737 1670317155
29051 The 
29052 \family typewriter
29053 kluwer.lyx
29054 \family default
29055  template takes care of all these 
29056 \begin_inset Quotes eld
29057 \end_inset
29058
29059 peculiarities
29060 \begin_inset Quotes erd
29061 \end_inset
29062
29063 .
29064  If you start a new paper using this template you don't need to do anything
29065  special.
29066  Just 
29067 \end_layout
29068
29069 \begin_layout Enumerate
29070
29071 \change_deleted 564990737 1670317155
29072 don't delete the \SpecialChar TeX
29073  code included in the template, and
29074 \end_layout
29075
29076 \begin_layout Enumerate
29077
29078 \change_deleted 564990737 1670317155
29079 copy the example bibliography item included in the template and modify it
29080  as necessary to enter new bibliography items.
29081 \end_layout
29082
29083 \begin_layout Section
29084
29085 \change_deleted 564990737 1671097446
29086 Paper
29087 \end_layout
29088
29089 \begin_layout Standard
29090
29091 \change_deleted 564990737 1671097446
29092 The document class 
29093 \family sans
29094 paper
29095 \family default
29096  provides an alternative to the standard 
29097 \family sans
29098 article
29099 \family default
29100  class.
29101  It provides similar functionality, but you might prefer this layout with
29102  sans serif sections, headings, and more.
29103 \end_layout
29104
29105 \begin_layout Section
29106
29107 \change_deleted 564990737 1671097446
29108 Springer Journals (
29109 \family sans
29110 svjour
29111 \family default
29112 )
29113 \end_layout
29114
29115 \begin_layout Standard
29116
29117 \change_deleted 564990737 1671097446
29118 by 
29119 \noun on
29120 Martin Vermeer
29121 \end_layout
29122
29123 \begin_layout Subsection
29124
29125 \change_deleted 564990737 1671097446
29126 Description
29127 \end_layout
29128
29129 \begin_layout Standard
29130
29131 \change_deleted 564990737 1671097446
29132 These are the layout files for some of the journal formats used by Springer
29133  Verlag and listed on 
29134 \begin_inset Flex URL
29135 status collapsed
29136
29137 \begin_layout Plain Layout
29138
29139 http://www.springer.de/author/tex/help-journals.html
29140 \end_layout
29141
29142 \end_inset
29143
29144 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
29145  now!).
29146  It is a modular system: the things common to all journals are implemented
29147  in 
29148 \family typewriter
29149 svjour.inc
29150 \family default
29151 , which journal-specific layout files (such as, e.
29152 \begin_inset space \thinspace{}
29153 \end_inset
29154
29155 g.
29156 \begin_inset space \space{}
29157 \end_inset
29158
29159
29160 \family typewriter
29161 svjog.layout
29162 \family default
29163  for Journal of Geodesy) can include.
29164 \end_layout
29165
29166 \begin_layout Standard
29167
29168 \change_deleted 564990737 1671097446
29169 This means that implementing support for any other Springer journal on this
29170  list is as simple as writing your own 
29171 \family typewriter
29172 sv
29173 \family default
29174 <myjournal>
29175 \family typewriter
29176 .layout
29177 \family default
29178  file following the outline given in 
29179 \family typewriter
29180 svjog.layout
29181 \family default
29182 .
29183  
29184 \end_layout
29185
29186 \begin_layout Standard
29187
29188 \change_deleted 564990737 1671097446
29189 It is reasonably well tested only for the Journal of Geodesy.
29190  
29191 \family typewriter
29192 svjour
29193 \family default
29194  and 
29195 \family typewriter
29196 svjog
29197 \family default
29198  come with the standard \SpecialChar LyX
29199  distribution.
29200  Install the relevant class file (downloaded from Springer) in a proper
29201  directory, reconfigure \SpecialChar LaTeX
29202  (in the te\SpecialChar TeX
29203  case by running 
29204 \family typewriter
29205 texhash
29206 \family default
29207 , as root if necessary — doesn't \SpecialChar LyX
29208  take care of this?), reconfigure \SpecialChar LyX
29209  and
29210  it should work.
29211 \end_layout
29212
29213 \begin_layout Subsection
29214
29215 \change_deleted 564990737 1671097446
29216 New styles
29217 \end_layout
29218
29219 \begin_layout Standard
29220
29221 \change_deleted 564990737 1671097446
29222 A large number of theorem-like styles — 
29223 \family sans
29224 Claim, Conjecture,
29225 \family default
29226  
29227 \family sans
29228 \SpecialChar ldots
29229 Theorem
29230 \family default
29231 .
29232 \end_layout
29233
29234 \begin_layout Standard
29235
29236 \change_deleted 564990737 1671097446
29237
29238 \family sans
29239 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
29240 _Title, Author_Running, Institute,
29241  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
29242 \family default
29243 .
29244  See the Springer class file documentation for details.
29245 \end_layout
29246
29247 \begin_layout Subsection
29248
29249 \change_deleted 564990737 1671097446
29250 Supported journals
29251 \end_layout
29252
29253 \begin_layout Itemize
29254
29255 \change_deleted 564990737 1671097446
29256
29257 \emph on
29258 Journal of Geodesy
29259 \emph default
29260
29261 \family typewriter
29262 svjog.layout
29263 \family default
29264  — Martin Vermeer
29265 \end_layout
29266
29267 \begin_layout Itemize
29268
29269 \change_deleted 564990737 1671097446
29270
29271 \emph on
29272 Probability Theory and Related Fields
29273 \emph default
29274
29275 \family typewriter
29276 svprobth.layout
29277 \family default
29278  — Jean-Marc Lasgouttes
29279 \end_layout
29280
29281 \begin_layout Standard
29282
29283 \change_deleted 564990737 1671097446
29284 Add your own, it isn't so hard!
29285 \end_layout
29286
29287 \begin_layout Subsection
29288
29289 \change_deleted 564990737 1671097446
29290 Credits
29291 \end_layout
29292
29293 \begin_layout Standard
29294
29295 \change_deleted 564990737 1671097446
29296 These files are partly based on the older 
29297 \family typewriter
29298 ejour2.layout
29299 \family default
29300 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
29301  2.09 style
29302  file from Springer.
29303  All this, and the 
29304 \family typewriter
29305 ejour2
29306 \family default
29307  layout, are now defunct.
29308  Jean-Marc Lasgouttes helped out big in making me find my way around the
29309  \SpecialChar LyX
29310  layout file mechanism.
29311 \end_layout
29312
29313 \begin_layout Subsection
29314
29315 \change_deleted 564990737 1671097446
29316 Bugs
29317 \end_layout
29318
29319 \begin_layout Standard
29320
29321 \change_deleted 564990737 1671097446
29322 Probably.
29323  But probably less than in the old hacked-\SpecialChar LaTeX
29324  
29325 \family typewriter
29326 ejour2
29327 \family default
29328 .
29329 \end_layout
29330
29331 \begin_layout Chapter
29332 \SpecialChar LyX
29333  Features needing Extra Software
29334 \end_layout
29335
29336 \begin_layout Section
29337 Checking \SpecialChar TeX
29338
29339 \end_layout
29340
29341 \begin_layout Standard
29342 by 
29343 \noun on
29344 Asger Alstrup
29345 \end_layout
29346
29347 \begin_layout Subsection
29348 Introduction
29349 \end_layout
29350
29351 \begin_layout Standard
29352 If you have the 
29353 \family typewriter
29354 chktex
29355 \family default
29356  program installed
29357 \begin_inset Foot
29358 status collapsed
29359
29360 \begin_layout Plain Layout
29361
29362 \family typewriter
29363 chktex
29364 \family default
29365  is not yet available when you are using the \SpecialChar LaTeX
29366  distribution MiK\SpecialChar TeX
29367 .
29368 \end_layout
29369
29370 \end_inset
29371
29372 , you'll find in the 
29373 \family sans
29374 Tools
29375 \family default
29376  menu the entry: 
29377 \family sans
29378 Check
29379 \begin_inset space ~
29380 \end_inset
29381
29382 TeX
29383 \family default
29384 .
29385  You can get 
29386 \family typewriter
29387 chktex
29388 \family default
29389  from CTAN,
29390 \begin_inset Newline newline
29391 \end_inset
29392
29393
29394 \begin_inset CommandInset href
29395 LatexCommand href
29396 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
29397 literal "false"
29398
29399 \end_inset
29400
29401 .
29402 \end_layout
29403
29404 \begin_layout Standard
29405 The 
29406 \family sans
29407 Chk\SpecialChar TeX
29408
29409 \family default
29410  package is a program that was written by 
29411 \begin_inset Flex Noun
29412 status collapsed
29413
29414 \begin_layout Plain Layout
29415 Jens T.
29416 \begin_inset space ~
29417 \end_inset
29418
29419 Berger Thielemann
29420 \end_layout
29421
29422 \end_inset
29423
29424  in frustration because some constructs in \SpecialChar LaTeX
29425  are sometimes non-intuitive,
29426  and easy to forget.
29427  The program runs over your \SpecialChar LaTeX
29428  file, checks the integrity of the file, and
29429  flags some common errors.
29430  In other technical words, it is 
29431 \family typewriter
29432 lint
29433 \family default
29434  for \SpecialChar LaTeX
29435 .
29436 \end_layout
29437
29438 \begin_layout Standard
29439 Well, what is a syntax checker doing in \SpecialChar LyX
29440  which is supposed to produce correct
29441  \SpecialChar LaTeX
29442  anyways? The answer is simple: Just as 
29443 \family typewriter
29444 Lint
29445 \family default
29446  not only checks the 
29447 \emph on
29448 syntax
29449 \emph default
29450  of C programs, but also does 
29451 \emph on
29452 semantic
29453 \emph default
29454  checks for type-errors, 
29455 \family sans
29456 Chk\SpecialChar TeX
29457
29458 \family default
29459  catches some common 
29460 \emph on
29461 typographic
29462 \emph default
29463  errors, in addition to the syntactical ones.
29464  Specifically, 
29465 \family sans
29466 Chk\SpecialChar TeX
29467
29468 \family default
29469  is capable of detecting several common errors, such as
29470 \end_layout
29471
29472 \begin_layout Itemize
29473 Ellipsis detection:
29474 \begin_inset Newline newline
29475 \end_inset
29476
29477 Use \SpecialChar ldots
29478  instead of ...
29479 \end_layout
29480
29481 \begin_layout Itemize
29482 No space in front of/after parenthesis:
29483 \begin_inset Newline newline
29484 \end_inset
29485
29486 ( wrong spacing )
29487 \end_layout
29488
29489 \begin_layout Itemize
29490 Enforcement of normal space after common abbreviations:
29491 \begin_inset Newline newline
29492 \end_inset
29493
29494 e.
29495 \begin_inset space \thinspace{}
29496 \end_inset
29497
29498 g.
29499 \begin_inset space \space{}
29500 \end_inset
29501
29502 is too wide spacing.
29503 \end_layout
29504
29505 \begin_layout Itemize
29506 Enforcement of end-of-sentence space when the last sentence ends with a
29507  capital letter:
29508 \begin_inset Newline newline
29509 \end_inset
29510
29511 This is a TEST.
29512  And this is wrong spacing.
29513 \end_layout
29514
29515 \begin_layout Itemize
29516 Space in front of labels and similar commands:
29517 \begin_inset Newline newline
29518 \end_inset
29519
29520 The label should stick right up to the text to avoid falling to a wrong
29521  page.
29522  
29523 \begin_inset CommandInset label
29524 LatexCommand label
29525 name "sec:chktex"
29526
29527 \end_inset
29528
29529  
29530 \begin_inset Foot
29531 status collapsed
29532
29533 \begin_layout Plain Layout
29534 This footnote is in danger of falling off to a wrong page
29535 \end_layout
29536
29537 \end_inset
29538
29539  The label is separated too much.
29540 \end_layout
29541
29542 \begin_layout Itemize
29543 Space in front of references, instead of hard spaces:
29544 \begin_inset Newline newline
29545 \end_inset
29546
29547 If you have bad luck, the text will break right between the referenced text
29548  and reference number, and that's a pity.
29549  See section 
29550 \begin_inset CommandInset ref
29551 LatexCommand ref
29552 reference "sec:chktex"
29553
29554 \end_inset
29555
29556 .
29557 \end_layout
29558
29559 \begin_layout Itemize
29560 Use of 
29561 \begin_inset Quotes eld
29562 \end_inset
29563
29564 x
29565 \begin_inset Quotes erd
29566 \end_inset
29567
29568  instead of 
29569 \begin_inset Formula $\times$
29570 \end_inset
29571
29572  between numbers:
29573 \begin_inset Newline newline
29574 \end_inset
29575
29576 2x2 looks cheap compared to 
29577 \begin_inset Formula $2\times2$
29578 \end_inset
29579
29580 .
29581 \end_layout
29582
29583 \begin_layout Standard
29584 and more \SpecialChar ldots
29585  It is an invaluable tool when you are 
29586 \begin_inset Quotes eld
29587 \end_inset
29588
29589 finishing up
29590 \begin_inset Quotes erd
29591 \end_inset
29592
29593  your document before printing, and you should run it right after the obligatory
29594  spelling check, and before you go fine tuning the typesetting.
29595 \end_layout
29596
29597 \begin_layout Subsection
29598 How to use it
29599 \end_layout
29600
29601 \begin_layout Standard
29602 If you have the program installed, usage is as simple as choosing 
29603 \family sans
29604 Tools\SpecialChar menuseparator
29605 Check
29606 \begin_inset space ~
29607 \end_inset
29608
29609 TeX
29610 \family default
29611 .
29612  This will make \SpecialChar LyX
29613  generate a \SpecialChar LaTeX
29614  file of your document, start 
29615 \family sans
29616 Chk\SpecialChar TeX
29617
29618 \family default
29619  to check it, and then make \SpecialChar LyX
29620  insert 
29621 \begin_inset Quotes eld
29622 \end_inset
29623
29624 error boxes
29625 \begin_inset Quotes erd
29626 \end_inset
29627
29628  with the warnings from 
29629 \family sans
29630 Chk\SpecialChar TeX
29631
29632 \family default
29633 , if there were any.
29634  The warnings will be placed close to the point of the mistake, and you
29635  can quickly find them by using the 
29636 \family sans
29637 Navigate\SpecialChar menuseparator
29638 Error
29639 \family default
29640  menu item, or the shortcut key 
29641 \family sans
29642 C-g
29643 \family default
29644  from the default 
29645 \family typewriter
29646 cua
29647 \family default
29648  bind file.
29649  Open the error boxes by clicking on them with the mouse, or use the shortcut
29650  key 
29651 \family sans
29652 C-i
29653 \family default
29654  from 
29655 \family typewriter
29656 cua
29657 \family default
29658  bindings, or the corresponding 
29659 \family sans
29660 C-o
29661 \family default
29662  for the alternate 
29663 \family typewriter
29664 emacs
29665 \family default
29666  bind file.
29667  Read the warning and correct the mistake, if it is a mistake.
29668  If you have trouble understanding what the warning is about, you can safely
29669  ignore it.
29670  Remember that there is a hidden layer between the document on screen and
29671  the technical details in invoking 
29672 \family sans
29673 Chk\SpecialChar TeX
29674
29675 \family default
29676 , and this gap can make some warnings seem arcane or just plain silly.
29677 \end_layout
29678
29679 \begin_layout Standard
29680 This document is an excellent testing bed for the feature, and it should
29681  provide quite a few warnings for you to fiddle with.
29682  Since computers are only so smart, expect most of the warnings to be false
29683  alarms, though.
29684 \end_layout
29685
29686 \begin_layout Subsection
29687 How to fine tune it
29688 \end_layout
29689
29690 \begin_layout Standard
29691 Sometimes, you'll find that 
29692 \family sans
29693 Chk\SpecialChar TeX
29694
29695 \family default
29696  makes more noise than suits your mood.
29697  Then you can choose not to use it, wait until your mood changes, or try
29698  to customize 
29699 \family sans
29700 Chk\SpecialChar TeX
29701
29702 \family default
29703  to get better along with you.
29704 \end_layout
29705
29706 \begin_layout Standard
29707 Although 
29708 \family sans
29709 Chk\SpecialChar TeX
29710
29711 \family default
29712  
29713 \emph on
29714 is
29715 \emph default
29716  very configurable and extensible, you should not expect to solve all problems
29717  with 
29718 \family sans
29719 Chk\SpecialChar TeX
29720
29721 \family default
29722  in \SpecialChar LyX
29723  this way.
29724  Since \SpecialChar LyX
29725  has to generate a somewhat special \SpecialChar LaTeX
29726  file to be able to match the
29727  line numbers from the 
29728 \family sans
29729 Chk\SpecialChar TeX
29730
29731 \family default
29732  output
29733 \begin_inset Foot
29734 status collapsed
29735
29736 \begin_layout Plain Layout
29737 You can inspect the specific output from 
29738 \family sans
29739 chktex
29740 \family default
29741  by using 
29742 \family sans
29743 Document\SpecialChar menuseparator
29744 \SpecialChar LaTeX
29745
29746 \begin_inset space ~
29747 \end_inset
29748
29749 Log
29750 \family default
29751  right after a 
29752 \family sans
29753 chktex
29754 \family default
29755  run.
29756 \end_layout
29757
29758 \end_inset
29759
29760  to the internal document structure, some of the warnings will not appear
29761  correctly.
29762  There are two things you can do about this:
29763 \end_layout
29764
29765 \begin_layout Itemize
29766 Fine tune the 
29767 \family sans
29768 Chk\SpecialChar TeX
29769
29770 \family default
29771  invocation command line in 
29772 \begin_inset Flex Noun
29773 status collapsed
29774
29775 \begin_layout Plain Layout
29776 Tools\SpecialChar menuseparator
29777 Preferences\SpecialChar menuseparator
29778 Output\SpecialChar menuseparator
29779 LaTeX\SpecialChar menuseparator
29780 CheckTeX command
29781 \end_layout
29782
29783 \end_inset
29784
29785 , or the global 
29786 \family sans
29787 Chk\SpecialChar TeX
29788
29789 \family default
29790  installation configuration file (usually with the file 
29791 \family typewriter
29792 chktexrc
29793 \family default
29794 ).
29795  See below to learn what warnings can be enabled and disabled on the command
29796  line.
29797 \end_layout
29798
29799 \begin_layout Itemize
29800 Export your document as a raw \SpecialChar LaTeX
29801  file using 
29802 \family sans
29803 File\SpecialChar menuseparator
29804 Export\SpecialChar menuseparator
29805 \SpecialChar LaTeX
29806
29807 \family default
29808  and run 
29809 \family typewriter
29810 chktex
29811 \family default
29812  manually on that.
29813  Invoked in this way, it can be a hassle to find the corresponding place
29814  in the document inside \SpecialChar LyX
29815 , but with a little patience, you should be able
29816  to do it.
29817 \end_layout
29818
29819 \begin_layout Standard
29820 Here follows the warning messages that can be enabled and disabled in 
29821 \family sans
29822 Preferences
29823 \family default
29824 .
29825  Use 
29826 \family typewriter
29827 -n#
29828 \family default
29829  to disable a warning, and 
29830 \family typewriter
29831 -w#
29832 \family default
29833  to enable a warning.
29834  The emphasized entries are disabled by default, because the default is
29835  "
29836 \family typewriter
29837 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
29838 \family default
29839 ".
29840 \end_layout
29841
29842 \begin_layout Standard
29843 Notice that you should only use the options that enable and disable warnings,
29844  because \SpecialChar LyX
29845  relies on some of the other command line parameters to be set
29846  in a specific way to have a chance to communicate with 
29847 \family typewriter
29848 chktex
29849 \family default
29850 .
29851 \end_layout
29852
29853 \begin_layout Enumerate
29854
29855 \size small
29856 \emph on
29857 Command terminated with space.
29858 \end_layout
29859
29860 \begin_layout Enumerate
29861
29862 \size small
29863 Non-breaking space (
29864 \begin_inset Quotes eld
29865 \end_inset
29866
29867
29868 \family typewriter
29869 ~
29870 \family default
29871
29872 \begin_inset Quotes erd
29873 \end_inset
29874
29875 ) should have been used.
29876 \end_layout
29877
29878 \begin_layout Enumerate
29879
29880 \size small
29881 \emph on
29882 You should enclose the previous parenthesis with 
29883 \begin_inset Quotes eld
29884 \end_inset
29885
29886
29887 \family typewriter
29888 {}
29889 \family default
29890
29891 \begin_inset Quotes erd
29892 \end_inset
29893
29894 .
29895 \end_layout
29896
29897 \begin_layout Enumerate
29898
29899 \size small
29900 Italic correction (
29901 \begin_inset Quotes eld
29902 \end_inset
29903
29904
29905 \family typewriter
29906
29907 \backslash
29908 /
29909 \family default
29910
29911 \begin_inset Quotes erd
29912 \end_inset
29913
29914 ) found in non-italic buffer.
29915 \end_layout
29916
29917 \begin_layout Enumerate
29918
29919 \size small
29920 Italic correction (
29921 \begin_inset Quotes eld
29922 \end_inset
29923
29924
29925 \family typewriter
29926
29927 \backslash
29928 /
29929 \family default
29930
29931 \begin_inset Quotes erd
29932 \end_inset
29933
29934 ) found more than once.
29935 \end_layout
29936
29937 \begin_layout Enumerate
29938
29939 \size small
29940 \emph on
29941 No italic correction (
29942 \begin_inset Quotes eld
29943 \end_inset
29944
29945
29946 \family typewriter
29947
29948 \backslash
29949 /
29950 \family default
29951
29952 \begin_inset Quotes erd
29953 \end_inset
29954
29955 ) found.
29956 \end_layout
29957
29958 \begin_layout Enumerate
29959
29960 \size small
29961 Accent command 
29962 \begin_inset Quotes eld
29963 \end_inset
29964
29965
29966 \family typewriter
29967 cmd
29968 \family default
29969
29970 \begin_inset Quotes erd
29971 \end_inset
29972
29973  needs use of 
29974 \begin_inset Quotes eld
29975 \end_inset
29976
29977
29978 \family typewriter
29979 cmd
29980 \family default
29981
29982 \begin_inset Quotes erd
29983 \end_inset
29984
29985 .
29986 \end_layout
29987
29988 \begin_layout Enumerate
29989
29990 \size small
29991 Wrong length of dash may have been used.
29992 \end_layout
29993
29994 \begin_layout Enumerate
29995
29996 \size small
29997 \emph on
29998 \begin_inset Quotes eld
29999 \end_inset
30000
30001
30002 \family typewriter
30003 %s
30004 \family default
30005
30006 \begin_inset Quotes erd
30007 \end_inset
30008
30009  expected, found 
30010 \begin_inset Quotes eld
30011 \end_inset
30012
30013
30014 \family typewriter
30015 %s
30016 \family default
30017
30018 \begin_inset Quotes erd
30019 \end_inset
30020
30021 .
30022 \end_layout
30023
30024 \begin_layout Enumerate
30025
30026 \size small
30027 Solo 
30028 \begin_inset Quotes eld
30029 \end_inset
30030
30031
30032 \family typewriter
30033 %s
30034 \family default
30035
30036 \begin_inset Quotes erd
30037 \end_inset
30038
30039  found.
30040 \end_layout
30041
30042 \begin_layout Enumerate
30043
30044 \size small
30045 You should use 
30046 \begin_inset Quotes eld
30047 \end_inset
30048
30049
30050 \family typewriter
30051 %s
30052 \family default
30053
30054 \begin_inset Quotes erd
30055 \end_inset
30056
30057  to achieve an ellipsis.
30058 \end_layout
30059
30060 \begin_layout Enumerate
30061
30062 \size small
30063 Inter-word spacing (
30064 \begin_inset Quotes eld
30065 \end_inset
30066
30067
30068 \family typewriter
30069
30070 \backslash
30071
30072 \family default
30073  
30074 \begin_inset Quotes eld
30075 \end_inset
30076
30077 ) should perhaps be used.
30078 \end_layout
30079
30080 \begin_layout Enumerate
30081
30082 \size small
30083 Inter-sentence spacing (
30084 \begin_inset Quotes eld
30085 \end_inset
30086
30087
30088 \family typewriter
30089
30090 \backslash
30091 @
30092 \family default
30093
30094 \begin_inset Quotes erd
30095 \end_inset
30096
30097 ) should perhaps be used.
30098 \end_layout
30099
30100 \begin_layout Enumerate
30101
30102 \size small
30103 Could not find argument for command.
30104 \end_layout
30105
30106 \begin_layout Enumerate
30107
30108 \size small
30109 No match found for 
30110 \begin_inset Quotes eld
30111 \end_inset
30112
30113
30114 \family typewriter
30115 %s
30116 \family default
30117
30118 \begin_inset Quotes erd
30119 \end_inset
30120
30121 .
30122 \end_layout
30123
30124 \begin_layout Enumerate
30125
30126 \size small
30127 Math mode still on at end of \SpecialChar LaTeX
30128  file.
30129 \end_layout
30130
30131 \begin_layout Enumerate
30132
30133 \size small
30134 Number of 
30135 \begin_inset Quotes eld
30136 \end_inset
30137
30138
30139 \family typewriter
30140 char
30141 \family default
30142
30143 \begin_inset Quotes erd
30144 \end_inset
30145
30146  doesn't match the number of 
30147 \begin_inset Quotes eld
30148 \end_inset
30149
30150
30151 \family typewriter
30152 char
30153 \family default
30154
30155 \begin_inset Quotes erd
30156 \end_inset
30157
30158 .
30159 \end_layout
30160
30161 \begin_layout Enumerate
30162
30163 \size small
30164 You should use either 
30165 \family typewriter
30166
30167 \begin_inset Quotes eld
30168 \end_inset
30169
30170
30171 \family default
30172  or 
30173 \family typewriter
30174
30175 \begin_inset Quotes erd
30176 \end_inset
30177
30178
30179 \family default
30180  as an alternative to 
30181 \begin_inset Quotes eld
30182 \end_inset
30183
30184
30185 \family typewriter
30186 "
30187 \family default
30188
30189 \begin_inset Quotes erd
30190 \end_inset
30191
30192 .
30193 \end_layout
30194
30195 \begin_layout Enumerate
30196
30197 \size small
30198 You should use "
30199 \family typewriter
30200 '
30201 \family default
30202 " (ASCII 39) instead of "
30203 \family typewriter
30204 ´
30205 \family default
30206 " (ASCII 180).
30207 \end_layout
30208
30209 \begin_layout Enumerate
30210
30211 \size small
30212 User-specified pattern found.
30213 \end_layout
30214
30215 \begin_layout Enumerate
30216
30217 \size small
30218 This command might not be intended.
30219 \end_layout
30220
30221 \begin_layout Enumerate
30222
30223 \size small
30224 \emph on
30225 Comment displayed.
30226 \end_layout
30227
30228 \begin_layout Enumerate
30229
30230 \size small
30231 Either 
30232 \family typewriter
30233 ''
30234 \backslash
30235 ,'
30236 \family default
30237  or 
30238 \family typewriter
30239 '
30240 \backslash
30241 ,''
30242 \family default
30243  will look better.
30244 \end_layout
30245
30246 \begin_layout Enumerate
30247
30248 \size small
30249 Delete this space to maintain correct page references.
30250 \end_layout
30251
30252 \begin_layout Enumerate
30253
30254 \size small
30255 \emph on
30256 You might wish to put this between a pair of 
30257 \begin_inset Quotes eld
30258 \end_inset
30259
30260
30261 \family typewriter
30262 {}
30263 \family default
30264
30265 \begin_inset Quotes erd
30266 \end_inset
30267
30268 .
30269 \end_layout
30270
30271 \begin_layout Enumerate
30272
30273 \size small
30274 You ought to remove spaces in front of punctuation.
30275 \end_layout
30276
30277 \begin_layout Enumerate
30278
30279 \size small
30280 Could not execute \SpecialChar LaTeX
30281  command.
30282 \end_layout
30283
30284 \begin_layout Enumerate
30285
30286 \size small
30287 Don't use 
30288 \family typewriter
30289
30290 \backslash
30291 /
30292 \family default
30293  in front of small punctuation.
30294 \end_layout
30295
30296 \begin_layout Enumerate
30297
30298 \family typewriter
30299 \size small
30300 $
30301 \backslash
30302 times$
30303 \family default
30304  may look prettier here.
30305 \end_layout
30306
30307 \begin_layout Enumerate
30308
30309 \size small
30310 \emph on
30311 Multiple spaces detected in output.
30312 \end_layout
30313
30314 \begin_layout Enumerate
30315
30316 \size small
30317 This text may be ignored.
30318 \end_layout
30319
30320 \begin_layout Enumerate
30321
30322 \size small
30323 Use 
30324 \family typewriter
30325
30326 \begin_inset Quotes eld
30327 \end_inset
30328
30329
30330 \family default
30331  to begin quotation, not 
30332 \family typewriter
30333 '
30334 \family default
30335 .
30336 \end_layout
30337
30338 \begin_layout Enumerate
30339
30340 \size small
30341 Use 
30342 \family typewriter
30343 '
30344 \family default
30345  to end quotation, not 
30346 \family typewriter
30347
30348 \begin_inset Quotes eld
30349 \end_inset
30350
30351
30352 \family default
30353 .
30354 \end_layout
30355
30356 \begin_layout Enumerate
30357
30358 \size small
30359 Don't mix quotes.
30360 \end_layout
30361
30362 \begin_layout Enumerate
30363
30364 \size small
30365 You should perhaps use 
30366 \begin_inset Quotes eld
30367 \end_inset
30368
30369
30370 \family typewriter
30371 cmd
30372 \family default
30373
30374 \begin_inset Quotes erd
30375 \end_inset
30376
30377  instead.
30378 \end_layout
30379
30380 \begin_layout Enumerate
30381
30382 \size small
30383 You should put a space in front of/after parenthesis.
30384 \end_layout
30385
30386 \begin_layout Enumerate
30387
30388 \size small
30389 You should avoid spaces in front of/after parenthesis.
30390 \end_layout
30391
30392 \begin_layout Enumerate
30393
30394 \size small
30395 \emph on
30396 You should not use punctuation in front of/after quotes.
30397 \end_layout
30398
30399 \begin_layout Enumerate
30400
30401 \size small
30402 Double space found.
30403 \end_layout
30404
30405 \begin_layout Enumerate
30406
30407 \size small
30408 You should put punctuation outside inner/inside display math mode.
30409 \end_layout
30410
30411 \begin_layout Enumerate
30412
30413 \size small
30414 You ought to not use primitive \SpecialChar TeX
30415  in \SpecialChar LaTeX
30416  code.
30417 \end_layout
30418
30419 \begin_layout Enumerate
30420
30421 \size small
30422 You should remove spaces in front of 
30423 \begin_inset Quotes eld
30424 \end_inset
30425
30426
30427 \family typewriter
30428 %s
30429 \family default
30430
30431 \begin_inset Quotes erd
30432 \end_inset
30433
30434
30435 \end_layout
30436
30437 \begin_layout Enumerate
30438
30439 \size small
30440 \begin_inset Quotes eld
30441 \end_inset
30442
30443
30444 \family typewriter
30445 %s
30446 \family default
30447
30448 \begin_inset Quotes erd
30449 \end_inset
30450
30451  is normally not followed by 
30452 \begin_inset Quotes eld
30453 \end_inset
30454
30455
30456 \family typewriter
30457 %c
30458 \family default
30459
30460 \begin_inset Quotes erd
30461 \end_inset
30462
30463 .
30464 \end_layout
30465
30466 \begin_layout Standard
30467 In later versions of \SpecialChar LyX
30468 , we hope to provide a more complete interface to this
30469  tool (and it's smaller cousin 
30470 \family typewriter
30471 lacheck
30472 \family default
30473 ) to exploit the full power of it.
30474  But it's not exactly useless as it is now: go try it on one of your existing
30475  documents of a certain length and be surprised.
30476 \end_layout
30477
30478 \begin_layout Section
30479 Version Control in \SpecialChar LyX
30480
30481 \end_layout
30482
30483 \begin_layout Standard
30484 by
30485 \noun on
30486  Lars Gullik Bjønnes 
30487 \noun default
30488 and 
30489 \noun on
30490 Pavel Sanda
30491 \end_layout
30492
30493 \begin_layout Subsection
30494 Introduction
30495 \end_layout
30496
30497 \begin_layout Standard
30498 \SpecialChar LyX
30499  supports some of the most basic RCS/CVS/SVN/GIT commands.
30500  If you need something a bit more sophisticated you will have to do that
30501  manually in a terminal.
30502 \end_layout
30503
30504 \begin_layout Standard
30505 Also note that CVS support is not as good as subversion support, so we advise
30506  using SVN instead.
30507  A good place to start learning Subversion is the SVN Book
30508 \begin_inset Foot
30509 status collapsed
30510
30511 \begin_layout Plain Layout
30512 \begin_inset CommandInset href
30513 LatexCommand href
30514 target "http://svnbook.red-bean.com/"
30515 literal "false"
30516
30517 \end_inset
30518
30519
30520 \end_layout
30521
30522 \end_inset
30523
30524 .
30525  In the case of RCS you should read 
30526 \begin_inset Quotes eld
30527 \end_inset
30528
30529 rcsintro
30530 \begin_inset Quotes erd
30531 \end_inset
30532
30533  (a man file, read it with 
30534 \family typewriter
30535 man rcsintro
30536 \family default
30537 ).
30538  This file describes all the basic features of RCS.
30539  You should especially notice the comment about a RCS directory, and the
30540  notion of a master RCS file (the file ending in 
30541 \family typewriter
30542 ,v
30543 \family default
30544 ).
30545 \end_layout
30546
30547 \begin_layout Standard
30548 Before you begin to use the version control features in \SpecialChar LyX
30549 , you should be
30550  familiar with RCS/CVS/SVN/GIT usage.
30551  The implementation in \SpecialChar LyX
30552  assumes a recent version of the GNU RCS or CVS/SVN
30553  package — no guarantees are made for older versions.
30554  Most of the log messages are not currently displayed after operations —
30555  you can check them in the Messages pane if you are unsure.
30556  Regular users of version control will appreciate the VC toolbar, which
30557  can be enabled via 
30558 \family sans
30559 View\SpecialChar menuseparator
30560 Toolbars\SpecialChar menuseparator
30561 Version
30562 \begin_inset space ~
30563 \end_inset
30564
30565 Control
30566 \family default
30567 .
30568 \end_layout
30569
30570 \begin_layout Standard
30571 For introducing your own external commands consult 
30572 \begin_inset Flex Code
30573 status collapsed
30574
30575 \begin_layout Plain Layout
30576 vc-command
30577 \end_layout
30578
30579 \end_inset
30580
30581  in the manual 
30582 \emph on
30583 \SpecialChar LyX
30584  Functions
30585 \emph default
30586 .
30587 \end_layout
30588
30589 \begin_layout Standard
30590 It is strongly recommended to store documents in uncompressed format if
30591  using version control (uncheck 
30592 \family sans
30593 Document\SpecialChar menuseparator
30594 Compressed
30595 \family default
30596  if it is checked): Uncompressed LyX documents are text files and therefore
30597  for merging two different versions by version control systems.
30598  Compressed LyX documents are binary files, which cannot be merged by version
30599  control systems.
30600 \end_layout
30601
30602 \begin_layout Subsection
30603 RCS commands in \SpecialChar LyX
30604
30605 \end_layout
30606
30607 \begin_layout Standard
30608 The following sections describe the RCS commands supported by \SpecialChar LyX
30609 .
30610  You can find them in the 
30611 \family sans
30612 File\SpecialChar menuseparator
30613 Version
30614 \begin_inset space ~
30615 \end_inset
30616
30617 Control
30618 \family default
30619  submenu.
30620  \SpecialChar LyX
30621  was tested against RCS 5.7/5.8.
30622 \end_layout
30623
30624 \begin_layout Subsubsection
30625
30626 \family sans
30627 Register
30628 \end_layout
30629
30630 \begin_layout Standard
30631 If your document is not under revision control, this is the only item shown
30632  in the menu.
30633  And if it is under revision control, the 
30634 \family sans
30635 Register
30636 \family default
30637  item is not visible.
30638  
30639 \end_layout
30640
30641 \begin_layout Standard
30642 This command registers your document with RCS (unless you are under the
30643  directory managed by CVS)\SpecialChar endofsentence
30644  You are asked interactively to supply an initial
30645  description of the document.
30646  The document is now set in Read-Only mode and you have to 
30647 \family sans
30648 Check
30649 \begin_inset space ~
30650 \end_inset
30651
30652 Out
30653 \begin_inset space ~
30654 \end_inset
30655
30656 For
30657 \begin_inset space ~
30658 \end_inset
30659
30660 Edit
30661 \family default
30662 , before making any changes to it.
30663  A document under revision control has a 
30664 \begin_inset Quotes eld
30665 \end_inset
30666
30667 [RCS:<version> <locker>]
30668 \begin_inset Quotes erd
30669 \end_inset
30670
30671  item tagged to the filename in the minibuffer.
30672 \end_layout
30673
30674 \begin_layout Standard
30675 RCS command that is run:
30676 \end_layout
30677
30678 \begin_layout LyX-Code
30679
30680 \family typewriter
30681 ci -q -u -i -t-"<initial description>" <file-name>
30682 \end_layout
30683
30684 \begin_layout Standard
30685 Read 
30686 \family typewriter
30687 man ci
30688 \family default
30689  to understand the switches.
30690  
30691 \end_layout
30692
30693 \begin_layout Subsubsection
30694
30695 \family sans
30696 Check In Changes
30697 \end_layout
30698
30699 \begin_layout Standard
30700 When you are finished editing a file, you check in your changes.
30701  When you do this, you are asked for a description of the changes.
30702  This is stored in the history log.
30703  The version number is bumped, your changes are applied to the master RCS
30704  file, the document is unlocked and set to Read-Only mode.
30705 \end_layout
30706
30707 \begin_layout Itemize
30708 RCS command: 
30709 \family typewriter
30710 ci -q -u -m"<description>" <file-name>
30711 \end_layout
30712
30713 \begin_layout Subsubsection
30714
30715 \family sans
30716 Check Out For Edit
30717 \end_layout
30718
30719 \begin_layout Standard
30720 By doing this you lock the document so that only you can edit it.
30721  This will also make the document Read-Write only for you.
30722  You will usually continue editing for a while and when you are finished
30723  you check in your changes.
30724  The status line is changed to reflect that you have locked the file.
30725 \end_layout
30726
30727 \begin_layout Itemize
30728 RCS command: 
30729 \family typewriter
30730 co -q -l <file-name>
30731 \end_layout
30732
30733 \begin_layout Subsubsection
30734
30735 \family sans
30736 Revert To Repository Version
30737 \end_layout
30738
30739 \begin_layout Standard
30740 This will discard all changes made to the document since the last check
30741  in.
30742  You get a warning before changes are discarded.
30743 \end_layout
30744
30745 \begin_layout Itemize
30746 RCS command: 
30747 \family typewriter
30748 co -f -u<version> <file-name>
30749 \end_layout
30750
30751 \begin_layout Subsubsection
30752
30753 \family sans
30754 Copy
30755 \end_layout
30756
30757 \begin_layout Standard
30758 This will create a copy of the current document.
30759  Since RCS does not support copy operations natively, the version history
30760  is not preserved, and the copy is added as a new file.
30761  It requires a clean document without any changes since the last checkin.
30762  You are asked for a file name and a description of the copy operation.
30763  After that the copy is created, both locally and in the repository.
30764  If the parent directories of the copied and original document differ, all
30765  relative paths of included files of the copy are adjusted (like in 
30766 \family sans
30767 File\SpecialChar menuseparator
30768 Save As
30769 \family default
30770 \SpecialChar ldots
30771 ).
30772  Finally, the copy is loaded instead of the original document.
30773 \end_layout
30774
30775 \begin_layout Labeling
30776 \labelwidthstring 00.00.0000
30777 RCS
30778 \begin_inset space ~
30779 \end_inset
30780
30781 commands: 
30782 \begin_inset space ~
30783 \end_inset
30784
30785
30786 \begin_inset Newline newline
30787 \end_inset
30788
30789 Copy 
30790 \begin_inset Flex Code
30791 status collapsed
30792
30793 \begin_layout Plain Layout
30794
30795 \family typewriter
30796 \begin_inset Quotes qld
30797 \end_inset
30798
30799 <file-name>
30800 \begin_inset Quotes qld
30801 \end_inset
30802
30803
30804 \end_layout
30805
30806 \end_inset
30807
30808  to 
30809 \begin_inset Flex Code
30810 status collapsed
30811
30812 \begin_layout Plain Layout
30813
30814 \family typewriter
30815 \begin_inset Quotes qld
30816 \end_inset
30817
30818 <new-file-name>
30819 \begin_inset Quotes qld
30820 \end_inset
30821
30822
30823 \end_layout
30824
30825 \end_inset
30826
30827
30828 \begin_inset Newline newline
30829 \end_inset
30830
30831
30832 \begin_inset Flex Code
30833 status collapsed
30834
30835 \begin_layout Plain Layout
30836 ci -q -u 
30837 \family typewriter
30838 -i 
30839 \begin_inset Quotes qld
30840 \end_inset
30841
30842 <new-file-name>
30843 \begin_inset Quotes qld
30844 \end_inset
30845
30846
30847 \end_layout
30848
30849 \end_inset
30850
30851
30852 \end_layout
30853
30854 \begin_layout Subsubsection
30855
30856 \family sans
30857 Undo Last Checkin
30858 \end_layout
30859
30860 \begin_layout Standard
30861 This makes as if the last check in never happened.
30862  No changes are made to the document loaded into \SpecialChar LyX
30863 , but the last version
30864  is removed from the master RCS file.
30865 \end_layout
30866
30867 \begin_layout Itemize
30868 RCS command: 
30869 \family typewriter
30870 rcs -o<version> <file-name>
30871 \end_layout
30872
30873 \begin_layout Subsubsection
30874
30875 \family sans
30876 Show History
30877 \end_layout
30878
30879 \begin_layout Standard
30880 This shows the complete history of the RCS document.
30881  The output of 
30882 \family typewriter
30883 rlog <file-name>
30884 \family default
30885  is shown in a browser.
30886  See 
30887 \family typewriter
30888 man rlog
30889 \family default
30890  for more info.
30891 \end_layout
30892
30893 \begin_layout Subsubsection
30894 Revision info
30895 \end_layout
30896
30897 \begin_layout Standard
30898 \SpecialChar LyX
30899  supports RCS version number, author name, date and time of last commit.
30900  All those are extracted from 
30901 \family typewriter
30902 rlog -r <file-name>
30903 \family default
30904 .
30905  See 
30906 \begin_inset CommandInset ref
30907 LatexCommand ref
30908 reference "subsec:VCS-Revision-Information"
30909
30910 \end_inset
30911
30912  for details.
30913 \end_layout
30914
30915 \begin_layout Subsection
30916 CVS commands in \SpecialChar LyX
30917
30918 \end_layout
30919
30920 \begin_layout Standard
30921 A subset of CVS operations is supported by \SpecialChar LyX
30922 .
30923  You can find the commands in the 
30924 \family sans
30925 File\SpecialChar menuseparator
30926 Version
30927 \begin_inset space ~
30928 \end_inset
30929
30930 Control
30931 \family default
30932  submenu.
30933  The version control system SVN is more powerful, so please use it instead
30934  of CVS if possible.
30935 \end_layout
30936
30937 \begin_layout Subsubsection
30938
30939 \family sans
30940 General CVS usage
30941 \end_layout
30942
30943 \begin_layout Standard
30944 If you start from scratch with CVS you have to create your repository and
30945  checkout the working copy with external tools.
30946  If you're using a client-server setup you may need to login before doing
30947  the first repository checkout.
30948 \end_layout
30949
30950 \begin_layout Standard
30951 If your documents are under revision control and others are using the same
30952  repository problems arise when different changes to the same document at
30953  the same location happen.
30954  Standard CVS repositories don't operate with a file locking mechanism.
30955  This may be surprising, but conflicts only occur if people disagree on
30956  the proper content of the same part of a document.
30957  So, if co-workers are used to communicate regularly, these conflicts occur
30958  rarely.
30959  If they don't communicate they have a fundamental problem anyway.
30960  Nevertheless some people like to work with so called 
30961 \begin_inset Quotes eld
30962 \end_inset
30963
30964 reserved checkouts
30965 \begin_inset Quotes erd
30966 \end_inset
30967
30968 .
30969  If they do so the working copy of all files is readonly when checked out
30970  first and the user starts editing after using a special command to make
30971  the working copy writable.
30972  When the changes are checked in the working copy returns to readonly state.
30973  With \SpecialChar LyX
30974  one has to edit the 
30975 \begin_inset Flex Code
30976 status collapsed
30977
30978 \begin_layout Plain Layout
30979 .cvsrc
30980 \end_layout
30981
30982 \end_inset
30983
30984  file and add the line 
30985 \begin_inset Flex Code
30986 status collapsed
30987
30988 \begin_layout Plain Layout
30989 cvs -r
30990 \end_layout
30991
30992 \end_inset
30993
30994  to work with reserved checkouts.
30995  The benefit is the possibility to see who is using a writable copy of some
30996  document.
30997  It's not guaranteed only one user makes a copy writable.
30998 \end_layout
30999
31000 \begin_layout Standard
31001 \SpecialChar LyX
31002  tries to guess if you're using reserved or non-reserved checkouts.
31003  If your working copy is readonly or it is writable and an additional copy
31004  of your document exists in the CVS/Base sub-directory a reserved otherwise
31005  a non-reserved checkout is assumed.
31006  When a reserved checkout is detected you have to use 
31007 \begin_inset Flex Noun
31008 status collapsed
31009
31010 \begin_layout Plain Layout
31011 Check Out
31012 \end_layout
31013
31014 \end_inset
31015
31016  to make your working copy writable if it's readonly.
31017  After doing so the 
31018 \begin_inset Flex Noun
31019 status collapsed
31020
31021 \begin_layout Plain Layout
31022 Check In
31023 \end_layout
31024
31025 \end_inset
31026
31027  operation is possible and that makes your working copy readonly again after
31028  transferring your changes to the repository.
31029 \end_layout
31030
31031 \begin_layout Standard
31032 More information about CVS can be found here 
31033 \begin_inset Flex URL
31034 status collapsed
31035
31036 \begin_layout Plain Layout
31037
31038 http://www.nongnu.org/cvs
31039 \end_layout
31040
31041 \end_inset
31042
31043  and here 
31044 \begin_inset Flex URL
31045 status collapsed
31046
31047 \begin_layout Plain Layout
31048
31049 http://ximbiot.com/cvs
31050 \end_layout
31051
31052 \end_inset
31053
31054 .
31055 \end_layout
31056
31057 \begin_layout Standard
31058 Read 
31059 \family typewriter
31060 man cvs
31061 \family default
31062  to understand the sub-commands and the switches mentioned below.
31063 \end_layout
31064
31065 \begin_layout Subsubsection
31066
31067 \family sans
31068 Register
31069 \end_layout
31070
31071 \begin_layout Standard
31072 If your document is not under revision control, this is the only item shown
31073  in the menu.
31074  And if it is under revision control, the 
31075 \family sans
31076 Register
31077 \family default
31078  item is not visible.
31079  
31080 \end_layout
31081
31082 \begin_layout Standard
31083 This command registers in CVS your document 
31084 \begin_inset Flex Strong
31085 status collapsed
31086
31087 \begin_layout Plain Layout
31088
31089 \emph on
31090 only
31091 \end_layout
31092
31093 \end_inset
31094
31095  in the case you have already the documents directory under CVS control
31096  (in particular 
31097 \family typewriter
31098 CVS/Entries
31099 \family default
31100  file exists).
31101  This means you have to create or checkout the archive by yourself using
31102  external tools.
31103  (In case you forget that step \SpecialChar LyX
31104  registers the document with RCS.)
31105 \end_layout
31106
31107 \begin_layout Standard
31108 Then you are asked interactively to supply an initial description of the
31109  document.
31110  Don't forget that registered file is not yet checked in.
31111 \end_layout
31112
31113 \begin_layout Standard
31114 CVS command that is run: 
31115 \family typewriter
31116 cvs -q add -m"<entered message>" "<file-name>"
31117 \end_layout
31118
31119 \begin_layout Standard
31120 The term 
31121 \family typewriter
31122 "<file-name>"
31123 \family default
31124  above and for all other CVS commands is an abbreviation for 
31125 \begin_inset Quotes eld
31126 \end_inset
31127
31128 change the current working directory to file location and use the file name
31129  without path component as argument
31130 \begin_inset Quotes erd
31131 \end_inset
31132
31133 .
31134 \end_layout
31135
31136 \begin_layout Subsubsection
31137
31138 \family sans
31139 Check In Changes
31140 \end_layout
31141
31142 \begin_layout Standard
31143 When you are finished editing a file, you commit your changes.
31144  When you do this and you had changed the document, you are asked for a
31145  description of the changes.
31146  After that changes are written to the repository.
31147  In case you didn't change the document and a reserved checkout is detected
31148  the reservation made on 
31149 \begin_inset Flex Noun
31150 status collapsed
31151
31152 \begin_layout Plain Layout
31153 Check Out
31154 \end_layout
31155
31156 \end_inset
31157
31158  is undone.
31159 \end_layout
31160
31161 \begin_layout Labeling
31162 \labelwidthstring 00.00.0000
31163 CVS
31164 \begin_inset space ~
31165 \end_inset
31166
31167 command: 
31168 \begin_inset space ~
31169 \end_inset
31170
31171
31172 \begin_inset Newline newline
31173 \end_inset
31174
31175
31176 \begin_inset Flex Code
31177 status collapsed
31178
31179 \begin_layout Plain Layout
31180 cvs 
31181 \family typewriter
31182 -q commit -m"<description>" "<file-name>"
31183 \end_layout
31184
31185 \end_inset
31186
31187  or
31188 \begin_inset Newline newline
31189 \end_inset
31190
31191
31192 \begin_inset Flex Code
31193 status collapsed
31194
31195 \begin_layout Plain Layout
31196 cvs -q unedit 
31197 \family typewriter
31198 "<file-name>"
31199 \end_layout
31200
31201 \end_inset
31202
31203
31204 \end_layout
31205
31206 \begin_layout Subsubsection
31207
31208 \family sans
31209 Check Out Changes
31210 \end_layout
31211
31212 \begin_layout Standard
31213 When you are sharing a repository with others, you may have to incorporate
31214  their changes into your working copy.
31215 \end_layout
31216
31217 \begin_layout Standard
31218 CVS command: 
31219 \family typewriter
31220 cvs -q update "<file-name>"
31221 \end_layout
31222
31223 \begin_layout Standard
31224 If a readonly checkout is detected the working copy is made writable and
31225  reserved.
31226 \end_layout
31227
31228 \begin_layout Standard
31229 CVS command: 
31230 \family typewriter
31231 cvs -q edit "<file-name>"
31232 \end_layout
31233
31234 \begin_layout Subsubsection
31235
31236 \family sans
31237 Revert To Repository Version
31238 \end_layout
31239
31240 \begin_layout Standard
31241 This will discard all changes made to the document since the last check
31242  in.
31243  You get a warning before changes are discarded.
31244  Firstly the file is deleted, secondly CVS update command is run.
31245 \end_layout
31246
31247 \begin_layout Standard
31248 CVS command: 
31249 \family typewriter
31250 cvs -q update "<file-name>"
31251 \end_layout
31252
31253 \begin_layout Standard
31254 If a reserved checkout is detected and the working copy has no changes only
31255  the reservation is undone.
31256 \end_layout
31257
31258 \begin_layout Standard
31259 CVS command: 
31260 \family typewriter
31261 cvs -q unedit "<file-name>"
31262 \end_layout
31263
31264 \begin_layout Subsubsection
31265
31266 \family sans
31267 Copy
31268 \end_layout
31269
31270 \begin_layout Standard
31271 This will create a copy of the current document.
31272  Since CVS does not support copy operations natively, the version history
31273  is not preserved, and the copy is added as a new file.
31274  It requires a clean document without any changes since the last checkin.
31275  You are asked for a file name and a description of the copy operation.
31276  After that the copy is created, both locally and in the repository.
31277  If the parent directories of the copied and original document differ, all
31278  relative paths of included files of the copy are adjusted (like in 
31279 \family sans
31280 File\SpecialChar menuseparator
31281 Save As
31282 \family default
31283 \SpecialChar ldots
31284 ).
31285  Finally, the copy is loaded instead of the original document.
31286 \end_layout
31287
31288 \begin_layout Labeling
31289 \labelwidthstring 00.00.0000
31290 CVS
31291 \begin_inset space ~
31292 \end_inset
31293
31294 commands: 
31295 \begin_inset space ~
31296 \end_inset
31297
31298
31299 \begin_inset Newline newline
31300 \end_inset
31301
31302 Copy 
31303 \begin_inset Flex Code
31304 status collapsed
31305
31306 \begin_layout Plain Layout
31307 "<file-name>"
31308 \end_layout
31309
31310 \end_inset
31311
31312  to 
31313 \begin_inset Flex Code
31314 status collapsed
31315
31316 \begin_layout Plain Layout
31317 "<new-file-name>"
31318 \end_layout
31319
31320 \end_inset
31321
31322
31323 \begin_inset Newline newline
31324 \end_inset
31325
31326
31327 \begin_inset Flex Code
31328 status collapsed
31329
31330 \begin_layout Plain Layout
31331 cvs -q add "<new-file-name>"
31332 \end_layout
31333
31334 \end_inset
31335
31336
31337 \end_layout
31338
31339 \begin_layout Subsubsection
31340
31341 \family sans
31342 Rename
31343 \end_layout
31344
31345 \begin_layout Standard
31346 This will rename the current document.
31347  Since CVS does not support rename operations natively, the version history
31348  is not preserved, the renamed document is added as a new file, and the
31349  original document is deleted.
31350  It requires a clean document without any changes since the last checkin.
31351  You are asked for a file name and a description of the rename operation.
31352  After that the document is renamed, both locally and in the repository.
31353  If the parent directories of the new and old file names differ, all relative
31354  paths of included files are adjusted (like in 
31355 \family sans
31356 File\SpecialChar menuseparator
31357 Save As
31358 \family default
31359 \SpecialChar ldots
31360 ).
31361  Finally, the document is reloaded using the new name.
31362 \end_layout
31363
31364 \begin_layout Labeling
31365 \labelwidthstring 00.00.0000
31366 CVS
31367 \begin_inset space ~
31368 \end_inset
31369
31370 commands: 
31371 \begin_inset space ~
31372 \end_inset
31373
31374
31375 \begin_inset Newline newline
31376 \end_inset
31377
31378 Rename 
31379 \begin_inset Flex Code
31380 status collapsed
31381
31382 \begin_layout Plain Layout
31383 "<file-name>"
31384 \end_layout
31385
31386 \end_inset
31387
31388  to 
31389 \begin_inset Flex Code
31390 status collapsed
31391
31392 \begin_layout Plain Layout
31393 "<new-file-name>"
31394 \end_layout
31395
31396 \end_inset
31397
31398
31399 \begin_inset Newline newline
31400 \end_inset
31401
31402
31403 \begin_inset Flex Code
31404 status collapsed
31405
31406 \begin_layout Plain Layout
31407 cvs -q add "<new-file-name>"
31408 \end_layout
31409
31410 \end_inset
31411
31412
31413 \begin_inset Newline newline
31414 \end_inset
31415
31416
31417 \begin_inset Flex Code
31418 status collapsed
31419
31420 \begin_layout Plain Layout
31421 cvs -q remove "<file-name>"
31422 \end_layout
31423
31424 \end_inset
31425
31426
31427 \end_layout
31428
31429 \begin_layout Subsubsection
31430 Update of the local directory checkout from repository
31431 \end_layout
31432
31433 \begin_layout Standard
31434 Once your documents gets more complex, containing sub-documents and pictures,
31435  including external 
31436 \begin_inset Flex Code
31437 status collapsed
31438
31439 \begin_layout Plain Layout
31440 .tex
31441 \end_layout
31442
31443 \end_inset
31444
31445  files and so on using version control becomes more complicated.
31446  \SpecialChar LyX
31447  supports updating the whole tree in which resides the document.
31448  This become especially useful once you cooperate with people which neither
31449  have detailed knowledge about CVS usage nor they have ambition to commit
31450  additional material to the repository.
31451  You have to organize the files structure so that all external files are
31452  in the same directory or subdirectories of the document.
31453  It's good practice anyway to store multipart documents in an extra directory.
31454 \end_layout
31455
31456 \begin_layout Standard
31457 The 
31458 \begin_inset Flex Code
31459 status collapsed
31460
31461 \begin_layout Plain Layout
31462 Update local directory from repository
31463 \end_layout
31464
31465 \end_inset
31466
31467  command updates the whole directory.
31468  If local changes are detected user is warned before update starts.
31469  In case of merge conflicts both versions of the conflicting document parts
31470  are placed in the final document.
31471  You have to review and correct the result of the merge.
31472  You'll find the conflicts enclosed in pairs of 
31473 \begin_inset Flex Code
31474 status collapsed
31475
31476 \begin_layout Plain Layout
31477 <<<<<<<
31478 \end_layout
31479
31480 \end_inset
31481
31482  and 
31483 \begin_inset Flex Code
31484 status collapsed
31485
31486 \begin_layout Plain Layout
31487 >>>>>>>
31488 \end_layout
31489
31490 \end_inset
31491
31492  separated by 
31493 \begin_inset Flex Code
31494 status collapsed
31495
31496 \begin_layout Plain Layout
31497 =======
31498 \end_layout
31499
31500 \end_inset
31501
31502 .
31503  The first part is your version as before the update operation with the
31504  document name prepended.
31505  The second one is the repository version with the version number after
31506  the sequence of 
31507 \begin_inset Flex Code
31508 status collapsed
31509
31510 \begin_layout Plain Layout
31511 >
31512 \end_layout
31513
31514 \end_inset
31515
31516  signs.
31517 \end_layout
31518
31519 \begin_layout Labeling
31520 \labelwidthstring 00.00.0000
31521 CVS
31522 \begin_inset space ~
31523 \end_inset
31524
31525 commands: 
31526 \begin_inset space ~
31527 \end_inset
31528
31529
31530 \begin_inset Newline newline
31531 \end_inset
31532
31533
31534 \begin_inset Flex Code
31535 status collapsed
31536
31537 \begin_layout Plain Layout
31538 cd $path; cvs diff 
31539 \family typewriter
31540 "."
31541 \end_layout
31542
31543 \end_inset
31544
31545  (Ask if changes are detected.)
31546 \begin_inset Newline newline
31547 \end_inset
31548
31549
31550 \begin_inset Flex Code
31551 status collapsed
31552
31553 \begin_layout Plain Layout
31554 cd $path; cvs -q update 
31555 \family typewriter
31556 "."
31557 \end_layout
31558
31559 \end_inset
31560
31561
31562 \end_layout
31563
31564 \begin_layout Standard
31565 where 
31566 \begin_inset Flex Code
31567 status collapsed
31568
31569 \begin_layout Plain Layout
31570 $path
31571 \end_layout
31572
31573 \end_inset
31574
31575  stands for the path to the document.
31576 \end_layout
31577
31578 \begin_layout Subsubsection
31579
31580 \family sans
31581 Show History
31582 \end_layout
31583
31584 \begin_layout Standard
31585 This shows the complete history of the CVS document.
31586  The output of 
31587 \family typewriter
31588 cvs log "<file-name>"
31589 \family default
31590  is shown in a browser.
31591 \end_layout
31592
31593 \begin_layout Subsubsection
31594 Revision info
31595 \end_layout
31596
31597 \begin_layout Standard
31598 \SpecialChar LyX
31599  supports CVS version number, author name, date and time of last commit.
31600  All those are extracted from 
31601 \family typewriter
31602 cvs log -r <file-name>
31603 \family default
31604 .
31605  See 
31606 \begin_inset CommandInset ref
31607 LatexCommand ref
31608 reference "subsec:VCS-Revision-Information"
31609
31610 \end_inset
31611
31612  for details.
31613 \end_layout
31614
31615 \begin_layout Subsection
31616 SVN commands in \SpecialChar LyX
31617
31618 \end_layout
31619
31620 \begin_layout Standard
31621 SVN is now partially supported by \SpecialChar LyX
31622 .
31623  You can find the commands in the 
31624 \family sans
31625 File\SpecialChar menuseparator
31626 Version
31627 \begin_inset space ~
31628 \end_inset
31629
31630 Control
31631 \family default
31632  submenu.
31633  Please note that if you use password protected access to repository via
31634  ssh, you will be asked in terminal window.
31635  \SpecialChar LyX
31636  was tested against SVN 1.5, 1.6, 1.7 and 1.8
31637 \begin_inset Foot
31638 status collapsed
31639
31640 \begin_layout Plain Layout
31641 Most of the commands will work with 1.4 too, see 
31642 \begin_inset CommandInset ref
31643 LatexCommand ref
31644 reference "subsec:SVN-Repo-Update"
31645
31646 \end_inset
31647
31648 .
31649  There seems to be currently unresolved permissions problem under SVN 1.8
31650  with reverting changes when file is locked.
31651 \end_layout
31652
31653 \end_inset
31654
31655
31656 \end_layout
31657
31658 \begin_layout Subsubsection
31659
31660 \family sans
31661 Register
31662 \end_layout
31663
31664 \begin_layout Standard
31665 If your document is not under revision control, this is the only item shown
31666  in the menu.
31667  And if it is under revision control, the 
31668 \family sans
31669 Register
31670 \family default
31671  item is not visible.
31672 \end_layout
31673
31674 \begin_layout Standard
31675 This command registers in SVN your document ONLY in case you have already
31676  the documents directory under SVN control (in particular 
31677 \family typewriter
31678 .svn/entries
31679 \family default
31680  file exists).
31681  This means you have to checkout the archive by yourself.
31682 \end_layout
31683
31684 \begin_layout Standard
31685 Then you are asked interactively to supply an initial description of the
31686  document.
31687  Don't forget that registered file is not yet commited.
31688 \end_layout
31689
31690 \begin_layout Standard
31691 SVN command that is run: 
31692 \family typewriter
31693 svn add -q 
31694 \begin_inset Quotes qld
31695 \end_inset
31696
31697 <file-name>
31698 \begin_inset Quotes qld
31699 \end_inset
31700
31701
31702 \end_layout
31703
31704 \begin_layout Standard
31705 Read 
31706 \family typewriter
31707 man svn
31708 \family default
31709  to understand the switches.
31710 \end_layout
31711
31712 \begin_layout Subsubsection
31713
31714 \family sans
31715 Check In Changes
31716 \end_layout
31717
31718 \begin_layout Standard
31719 When you are finished editing a file, you commit your changes.
31720  When you do this, you are asked for a description of the changes.
31721  After that changes are commited.
31722 \end_layout
31723
31724 \begin_layout Standard
31725 SVN command:
31726 \begin_inset Foot
31727 status collapsed
31728
31729 \begin_layout Plain Layout
31730 In case locking is not enabled.
31731  See Section 
31732 \begin_inset CommandInset ref
31733 LatexCommand ref
31734 reference "subsec:SVN-File-Locking"
31735
31736 \end_inset
31737
31738 .
31739 \end_layout
31740
31741 \end_inset
31742
31743  
31744 \family typewriter
31745 svn commit -q -m"<description>" <file-name>
31746 \end_layout
31747
31748 \begin_layout Subsubsection
31749
31750 \family sans
31751 Check Out For Edit
31752 \end_layout
31753
31754 \begin_layout Standard
31755 Updates the changes of this file from the repository.
31756  Be sure you understand SVN merging and conflicts resolving before using
31757  this function, because all conflicts has to be resolved manually by you!
31758 \end_layout
31759
31760 \begin_layout Standard
31761 SVN command:
31762 \begin_inset Foot
31763 status collapsed
31764
31765 \begin_layout Plain Layout
31766 Ditto.
31767 \end_layout
31768
31769 \end_inset
31770
31771  
31772 \family typewriter
31773 svn update --non-interactive 
31774 \begin_inset Quotes qld
31775 \end_inset
31776
31777 <file-name>
31778 \begin_inset Quotes qld
31779 \end_inset
31780
31781
31782 \end_layout
31783
31784 \begin_layout Subsubsection
31785
31786 \family sans
31787 Revert To Repository Version
31788 \end_layout
31789
31790 \begin_layout Standard
31791 This will discard all changes made to the document since the last check
31792  in.
31793  You get a warning before changes are discarded.
31794 \end_layout
31795
31796 \begin_layout Standard
31797 SVN command: 
31798 \family typewriter
31799 svn revert -q 
31800 \begin_inset Quotes qld
31801 \end_inset
31802
31803 <file-name>
31804 \begin_inset Quotes qld
31805 \end_inset
31806
31807
31808 \end_layout
31809
31810 \begin_layout Subsubsection
31811
31812 \family sans
31813 Copy
31814 \end_layout
31815
31816 \begin_layout Standard
31817 This will create a copy of the current document including the version history.
31818  It requires a clean document without any changes since the last checkin.
31819  You are asked for a file name and a description of the copy operation.
31820  After that the copy is created, both locally and in the repository.
31821  If the parent directories of the copied and original document differ, all
31822  relative paths of included files of the copy are adjusted (like in 
31823 \family sans
31824 File\SpecialChar menuseparator
31825 Save As
31826 \family default
31827 \SpecialChar ldots
31828 ).
31829  Finally, the copy is loaded instead of the original document.
31830 \end_layout
31831
31832 \begin_layout Labeling
31833 \labelwidthstring 00.00.0000
31834 SVN
31835 \begin_inset space ~
31836 \end_inset
31837
31838 commands: 
31839 \begin_inset space ~
31840 \end_inset
31841
31842
31843 \begin_inset Newline newline
31844 \end_inset
31845
31846
31847 \begin_inset Flex Code
31848 status collapsed
31849
31850 \begin_layout Plain Layout
31851 svn copy -q 
31852 \family typewriter
31853
31854 \begin_inset Quotes qld
31855 \end_inset
31856
31857 <file-name>
31858 \begin_inset Quotes qld
31859 \end_inset
31860
31861  
31862 \begin_inset Quotes qld
31863 \end_inset
31864
31865 <new-file-name>
31866 \begin_inset Quotes qld
31867 \end_inset
31868
31869
31870 \end_layout
31871
31872 \end_inset
31873
31874
31875 \begin_inset Newline newline
31876 \end_inset
31877
31878
31879 \begin_inset Flex Code
31880 status collapsed
31881
31882 \begin_layout Plain Layout
31883 svn commit
31884 \end_layout
31885
31886 \end_inset
31887
31888
31889 \end_layout
31890
31891 \begin_layout Subsubsection
31892
31893 \family sans
31894 Rename
31895 \end_layout
31896
31897 \begin_layout Standard
31898 This will rename the current document including the version history.
31899  It requires a clean document without any changes since the last checkin.
31900  You are asked for a file name and a description of the rename operation.
31901  After that the document is renamed, both locally and in the repository.
31902  If the parent directories of the new and old file names differ, all relative
31903  paths of included files are adjusted (like in 
31904 \family sans
31905 File\SpecialChar menuseparator
31906 Save As
31907 \family default
31908 \SpecialChar ldots
31909 ).
31910  Finally, the document is reloaded using the new name.
31911 \end_layout
31912
31913 \begin_layout Labeling
31914 \labelwidthstring 00.00.0000
31915 SVN
31916 \begin_inset space ~
31917 \end_inset
31918
31919 commands: 
31920 \begin_inset space ~
31921 \end_inset
31922
31923
31924 \begin_inset Newline newline
31925 \end_inset
31926
31927
31928 \begin_inset Flex Code
31929 status collapsed
31930
31931 \begin_layout Plain Layout
31932 svn move -q 
31933 \family typewriter
31934
31935 \begin_inset Quotes qld
31936 \end_inset
31937
31938 <file-name>
31939 \begin_inset Quotes qld
31940 \end_inset
31941
31942  
31943 \begin_inset Quotes qld
31944 \end_inset
31945
31946 <new-file-name>
31947 \begin_inset Quotes qld
31948 \end_inset
31949
31950
31951 \end_layout
31952
31953 \end_inset
31954
31955
31956 \begin_inset Newline newline
31957 \end_inset
31958
31959
31960 \begin_inset Flex Code
31961 status collapsed
31962
31963 \begin_layout Plain Layout
31964 svn commit
31965 \end_layout
31966
31967 \end_inset
31968
31969
31970 \end_layout
31971
31972 \begin_layout Subsubsection
31973 \begin_inset CommandInset label
31974 LatexCommand label
31975 name "subsec:SVN-Repo-Update"
31976
31977 \end_inset
31978
31979 Update of the local directory checkout from repository
31980 \begin_inset Foot
31981 status collapsed
31982
31983 \begin_layout Plain Layout
31984 Note that this command will work only with subversion 
31985 \begin_inset Formula $\geqq1.5$
31986 \end_inset
31987
31988
31989 \end_layout
31990
31991 \end_inset
31992
31993
31994 \end_layout
31995
31996 \begin_layout Standard
31997 All the commands above have one shortcoming – they deal with the current
31998  document only.
31999  Once your document contains pictures, includes external 
32000 \begin_inset Flex Code
32001 status collapsed
32002
32003 \begin_layout Plain Layout
32004 .tex
32005 \end_layout
32006
32007 \end_inset
32008
32009  files and so on administration becomes more complicated.
32010  \SpecialChar LyX
32011  now supports updating the whole tree in which resides the document
32012 \begin_inset Foot
32013 status collapsed
32014
32015 \begin_layout Plain Layout
32016 One need to organize the files structure so that all external files are
32017  in the same directory or subdirectories of the document.
32018  
32019 \end_layout
32020
32021 \end_inset
32022
32023 .
32024  This become especially useful once you cooperate with people which neither
32025  know about subversion management nor they have ambition to commit additional
32026  material to the repository.
32027  
32028 \end_layout
32029
32030 \begin_layout Standard
32031 \begin_inset Flex Code
32032 status collapsed
32033
32034 \begin_layout Plain Layout
32035 Update local directory from repository
32036 \end_layout
32037
32038 \end_inset
32039
32040  command updates the whole directory and in case of merge conflicts local
32041  version of the files are left, so no unintended data loss occurs.
32042  If local changes are detected user is warned before update starts.
32043 \end_layout
32044
32045 \begin_layout Labeling
32046 \labelwidthstring 00.00.0000
32047 SVN
32048 \begin_inset space ~
32049 \end_inset
32050
32051 commands: 
32052 \begin_inset space ~
32053 \end_inset
32054
32055
32056 \begin_inset Newline newline
32057 \end_inset
32058
32059
32060 \begin_inset Flex Code
32061 status collapsed
32062
32063 \begin_layout Plain Layout
32064 svn diff $path
32065 \end_layout
32066
32067 \end_inset
32068
32069  (Ask if changes are detected.)
32070 \begin_inset Newline newline
32071 \end_inset
32072
32073
32074 \begin_inset Flex Code
32075 status collapsed
32076
32077 \begin_layout Plain Layout
32078 svn update --accept mine-full $path
32079 \end_layout
32080
32081 \end_inset
32082
32083
32084 \end_layout
32085
32086 \begin_layout Standard
32087 where 
32088 \begin_inset Flex Code
32089 status collapsed
32090
32091 \begin_layout Plain Layout
32092 $path
32093 \end_layout
32094
32095 \end_inset
32096
32097  stands for the path to the document.
32098 \end_layout
32099
32100 \begin_layout Subsubsection
32101
32102 \family sans
32103 Show History
32104 \end_layout
32105
32106 \begin_layout Standard
32107 This shows the complete history of the SVN document.
32108  The output of 
32109 \family typewriter
32110 svn log 
32111 \begin_inset Quotes qld
32112 \end_inset
32113
32114 <file-name>
32115 \begin_inset Quotes qld
32116 \end_inset
32117
32118
32119 \family default
32120  is shown in a browser.
32121 \end_layout
32122
32123 \begin_layout Subsubsection
32124 File Locking
32125 \begin_inset CommandInset label
32126 LatexCommand label
32127 name "subsec:SVN-File-Locking"
32128
32129 \end_inset
32130
32131
32132 \end_layout
32133
32134 \begin_layout Standard
32135 The file exchange through various revision control systems brings the problem
32136  of merge conflicts in case two different users try to edit the same (parts
32137  of) document.
32138  When such a conflict happens it needs manual resolving and one reasonable
32139  alternative is to provide some kind of locking mechanism, which guarantees
32140  that only one user is allowed to edit file at the given time.
32141 \end_layout
32142
32143 \begin_layout Standard
32144 SVN has two such mechanisms to provide mutual exclusivity for file access
32145  – locks and automatic setting of write permissions (see sec.
32146  
32147 \begin_inset CommandInset ref
32148 LatexCommand ref
32149 reference "subsec:Automatical-Locking-Property"
32150
32151 \end_inset
32152
32153 ) based on 
32154 \begin_inset Flex Code
32155 status collapsed
32156
32157 \begin_layout Plain Layout
32158 svn:needs-lock
32159 \end_layout
32160
32161 \end_inset
32162
32163  file svn property
32164 \begin_inset Foot
32165 status collapsed
32166
32167 \begin_layout Plain Layout
32168 \begin_inset Flex URL
32169 status open
32170
32171 \begin_layout Plain Layout
32172
32173 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
32174 \end_layout
32175
32176 \end_inset
32177
32178
32179 \end_layout
32180
32181 \end_inset
32182
32183 .
32184  If this property is detected for a given document \SpecialChar LyX
32185  starts to use SVN locks
32186  for document editing automatically and the whole check-in/out mechanism
32187  switches to the same regimen as for RCS.
32188  This in particular means there are two different modes of file use in \SpecialChar LyX
32189 :
32190 \end_layout
32191
32192 \begin_layout Itemize
32193 Unlocked state.
32194  The loaded file is in the read-only mode.
32195  For editing on needs to check-out.
32196  
32197 \emph on
32198 Check-out
32199 \emph default
32200  consists of updating from the repository and gaining write lock.
32201  If the lock is not possible to obtain, we remain in unlocked state.
32202 \end_layout
32203
32204 \begin_layout Itemize
32205 Locked state.
32206  The loaded file is in the 
32207 \begin_inset Quotes els
32208 \end_inset
32209
32210 normal
32211 \begin_inset Quotes ers
32212 \end_inset
32213
32214  edit mode.
32215  No other user is allowed to edit the file.
32216  
32217 \emph on
32218 Check-in
32219 \emph default
32220  consists of commiting changes and releasing write-lock.
32221  If no changes have been made to the document, no commit will be produced
32222 \begin_inset Foot
32223 status collapsed
32224
32225 \begin_layout Plain Layout
32226 Don't be puzzled by the fact that you will be asked for commit message anyway.
32227 \end_layout
32228
32229 \end_inset
32230
32231  and only the write-lock will be released.
32232 \end_layout
32233
32234 \begin_layout Standard
32235 SVN commands:
32236 \end_layout
32237
32238 \begin_layout Labeling
32239 \labelwidthstring 00.00.0000
32240 Check-in:
32241 \family typewriter
32242  svn commit -q -m"<description>" "<file-name>"
32243 \begin_inset Newline newline
32244 \end_inset
32245
32246 svn unlock "<file-name>"
32247 \end_layout
32248
32249 \begin_layout Labeling
32250 \labelwidthstring 00.00.0000
32251 Check-out: 
32252 \family typewriter
32253 svn update "<file-name>"
32254 \begin_inset Newline newline
32255 \end_inset
32256
32257 svn lock "<file-name>"
32258 \end_layout
32259
32260 \begin_layout Subsubsection
32261
32262 \family typewriter
32263 \begin_inset CommandInset label
32264 LatexCommand label
32265 name "subsec:Automatical-Locking-Property"
32266
32267 \end_inset
32268
32269
32270 \family default
32271 Automatic Locking Property
32272 \end_layout
32273
32274 \begin_layout Standard
32275 The above mentioned automatic setting of write permissions of the .lyx file
32276  can be set through
32277 \family sans
32278  File\SpecialChar menuseparator
32279 Version
32280 \begin_inset space ~
32281 \end_inset
32282
32283 Control\SpecialChar menuseparator
32284 Use Locking Property
32285 \family default
32286 .
32287  This command is active only when the file is not locked on the svn server
32288  (i.e.
32289  you need to check-out before proceeding).
32290 \end_layout
32291
32292 \begin_layout Labeling
32293 \labelwidthstring 00.00.0000
32294 SVN
32295 \begin_inset space ~
32296 \end_inset
32297
32298 commands:
32299 \end_layout
32300
32301 \begin_layout Labeling
32302 \labelwidthstring 00.00.0000
32303 Set:
32304 \family typewriter
32305  svn propset svn:needs-lock ON "<file-name>"
32306 \end_layout
32307
32308 \begin_layout Labeling
32309 \labelwidthstring 00.00.0000
32310 Unset: 
32311 \family typewriter
32312 svn propdel svn:needs-lock "<file-name>"
32313 \end_layout
32314
32315 \begin_layout Subsubsection
32316 \begin_inset CommandInset label
32317 LatexCommand label
32318 name "subsec:VCS-Revision-Information"
32319
32320 \end_inset
32321
32322 Revision Information in Documents
32323 \end_layout
32324
32325 \begin_layout Standard
32326 There are more possibilities how to activate revision information in our
32327  document.
32328 \end_layout
32329
32330 \begin_layout Itemize
32331 \SpecialChar LyX
32332  supports directly:
32333 \end_layout
32334
32335 \begin_deeper
32336 \begin_layout Itemize
32337 tree revision information (
32338 \begin_inset Flex Code
32339 status collapsed
32340
32341 \begin_layout Plain Layout
32342 vcs-tree-revision
32343 \end_layout
32344
32345 \end_inset
32346
32347 ).
32348  The result is the output of the 
32349 \begin_inset Flex Code
32350 status collapsed
32351
32352 \begin_layout Plain Layout
32353 svnversion
32354 \end_layout
32355
32356 \end_inset
32357
32358  command, the following table gives you an idea, how to read the results.
32359 \end_layout
32360
32361 \begin_layout Standard
32362 \align center
32363 \begin_inset Tabular
32364 <lyxtabular version="3" rows="6" columns="2">
32365 <features tabularvalignment="middle">
32366 <column alignment="left" valignment="top">
32367 <column alignment="left" valignment="top">
32368 <row>
32369 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32370 \begin_inset Text
32371
32372 \begin_layout Plain Layout
32373
32374 \series bold
32375 Output
32376 \end_layout
32377
32378 \end_inset
32379 </cell>
32380 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32381 \begin_inset Text
32382
32383 \begin_layout Plain Layout
32384
32385 \series bold
32386 Meaning
32387 \end_layout
32388
32389 \end_inset
32390 </cell>
32391 </row>
32392 <row>
32393 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32394 \begin_inset Text
32395
32396 \begin_layout Plain Layout
32397 4123:4168
32398 \end_layout
32399
32400 \end_inset
32401 </cell>
32402 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32403 \begin_inset Text
32404
32405 \begin_layout Plain Layout
32406 mixed revision working copy
32407 \end_layout
32408
32409 \end_inset
32410 </cell>
32411 </row>
32412 <row>
32413 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32414 \begin_inset Text
32415
32416 \begin_layout Plain Layout
32417 4168M
32418 \end_layout
32419
32420 \end_inset
32421 </cell>
32422 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32423 \begin_inset Text
32424
32425 \begin_layout Plain Layout
32426 modified working copy
32427 \end_layout
32428
32429 \end_inset
32430 </cell>
32431 </row>
32432 <row>
32433 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32434 \begin_inset Text
32435
32436 \begin_layout Plain Layout
32437 4123S
32438 \end_layout
32439
32440 \end_inset
32441 </cell>
32442 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32443 \begin_inset Text
32444
32445 \begin_layout Plain Layout
32446 switched working copy
32447 \end_layout
32448
32449 \end_inset
32450 </cell>
32451 </row>
32452 <row>
32453 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
32454 \begin_inset Text
32455
32456 \begin_layout Plain Layout
32457 4123P
32458 \end_layout
32459
32460 \end_inset
32461 </cell>
32462 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
32463 \begin_inset Text
32464
32465 \begin_layout Plain Layout
32466 partial working copy, from a sparse checkout
32467 \end_layout
32468
32469 \end_inset
32470 </cell>
32471 </row>
32472 <row>
32473 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
32474 \begin_inset Text
32475
32476 \begin_layout Plain Layout
32477 4123:4168MS
32478 \end_layout
32479
32480 \end_inset
32481 </cell>
32482 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
32483 \begin_inset Text
32484
32485 \begin_layout Plain Layout
32486 mixed revision, modified, switched working copy
32487 \end_layout
32488
32489 \end_inset
32490 </cell>
32491 </row>
32492 </lyxtabular>
32493
32494 \end_inset
32495
32496
32497 \end_layout
32498
32499 \begin_layout Itemize
32500 file revision information.
32501  The result comes from parsing the output of 
32502 \begin_inset Flex Code
32503 status collapsed
32504
32505 \begin_layout Plain Layout
32506 svn
32507 \begin_inset space ~
32508 \end_inset
32509
32510 info
32511 \begin_inset space ~
32512 \end_inset
32513
32514 --xml
32515 \begin_inset space ~
32516 \end_inset
32517
32518 file.lyx
32519 \end_layout
32520
32521 \end_inset
32522
32523 .
32524  Supported flags are:
32525 \end_layout
32526
32527 \begin_deeper
32528 \begin_layout Itemize
32529 version number of the last commit (
32530 \begin_inset Flex Code
32531 status collapsed
32532
32533 \begin_layout Plain Layout
32534 vcs-revision
32535 \end_layout
32536
32537 \end_inset
32538
32539 )
32540 \end_layout
32541
32542 \begin_layout Itemize
32543 author of the last commit (
32544 \begin_inset Flex Code
32545 status collapsed
32546
32547 \begin_layout Plain Layout
32548 vcs-author
32549 \end_layout
32550
32551 \end_inset
32552
32553 )
32554 \end_layout
32555
32556 \begin_layout Itemize
32557 date of the last commit (
32558 \begin_inset Flex Code
32559 status collapsed
32560
32561 \begin_layout Plain Layout
32562 vcs-date
32563 \end_layout
32564
32565 \end_inset
32566
32567 )
32568 \end_layout
32569
32570 \begin_layout Itemize
32571 time of the last commit (
32572 \begin_inset Flex Code
32573 status collapsed
32574
32575 \begin_layout Plain Layout
32576 vcs-time
32577 \end_layout
32578
32579 \end_inset
32580
32581 )
32582 \end_layout
32583
32584 \end_deeper
32585 \begin_layout Standard
32586 You can obtain this info via InsetInfo (
32587 \change_inserted 5863208 1564400022
32588
32589 \lang american
32590 Insert\SpecialChar menuseparator
32591 Field\SpecialChar menuseparator
32592 Version Control Revision
32593 \change_deleted 5863208 1564399852
32594
32595 \lang english
32596 e.g.
32597  
32598 \begin_inset Flex Code
32599 status collapsed
32600
32601 \begin_layout Plain Layout
32602 info-insert buffer vcs-date
32603 \end_layout
32604
32605 \end_inset
32606
32607
32608 \change_unchanged
32609 ).
32610  The information will be available only when you have the file stored under
32611  svn managment (i.e.
32612  the 
32613 \begin_inset Flex Code
32614 status collapsed
32615
32616 \begin_layout Plain Layout
32617 .svn
32618 \end_layout
32619
32620 \end_inset
32621
32622  directory is available with your document).
32623 \end_layout
32624
32625 \end_deeper
32626 \begin_layout Itemize
32627 Another—a hacking one—possibility is to use svn keywords
32628 \begin_inset Foot
32629 status collapsed
32630
32631 \begin_layout Plain Layout
32632 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
32633 \end_layout
32634
32635 \end_inset
32636
32637 .
32638  In short – you set file keywords property (e.g.
32639  
32640 \family sans
32641 svn propset svn:keywords 'Rev' file.lyx
32642 \family default
32643 ) and then paste keyword \SpecialChar TeX
32644  code
32645 \begin_inset Foot
32646 status collapsed
32647
32648 \begin_layout Plain Layout
32649 This is an easy way how to ensure that \SpecialChar LyX
32650  won't break the line in the middle
32651  of keyword tag.
32652 \end_layout
32653
32654 \end_inset
32655
32656  tag in your document (e.g.
32657  
32658 \begin_inset Flex Code
32659 status collapsed
32660
32661 \begin_layout Plain Layout
32662 $Rev$
32663 \end_layout
32664
32665 \end_inset
32666
32667 ).
32668  This way svn client will automatically substitute revision number (e.g.
32669  
32670 \begin_inset Flex Code
32671 status collapsed
32672
32673 \begin_layout Plain Layout
32674 $Rev: 59 $
32675 \end_layout
32676
32677 \end_inset
32678
32679 ) after each update and commit.
32680  There are more problems with this approach.
32681  Firstly, the '$' character is used in \SpecialChar TeX
32682  world for math equations, so any
32683  occurence of math formula 
32684 \begin_inset Formula $Rev$
32685 \end_inset
32686
32687  become 
32688 \begin_inset Formula $Rev:59$
32689 \end_inset
32690
32691  in your \SpecialChar LyX
32692  document.
32693  Similarly for other keywords like Id, Date, Author, etc.
32694  Secondly svn output is dependent on your locales, so its very easy that
32695  svn would produce some problematic strings once Date is used.
32696  Thirdly you get the whole 'Rev: 59' string in your document instead of
32697  the plain number.
32698  Until subversion implements user's custom keywords it will be hard to use
32699  this approach reliably or let \SpecialChar LyX
32700  to support it directly.
32701 \end_layout
32702
32703 \begin_layout Subsection
32704 SVN and Windows Environment
32705 \end_layout
32706
32707 \begin_layout Quote
32708 My inclination is to say that if the user cannot figure out the command
32709  line operations on their own fairly quickly, they would be well advised
32710  to use TortoiseSVN.
32711  —P.
32712  A.
32713  Rubin
32714 \end_layout
32715
32716 \begin_layout Subsubsection
32717 Preparation
32718 \end_layout
32719
32720 \begin_layout Standard
32721 In addition to installing \SpecialChar LyX
32722 , and having access to a Subversion repository,
32723  the user will need to install the Subversion client program.
32724  A Windows installer for the client program is available from 
32725 \begin_inset CommandInset href
32726 LatexCommand href
32727 name "CollabNet"
32728 target "http://www.collab.net/nonav/downloads/subversion/"
32729 literal "false"
32730
32731 \end_inset
32732
32733 .
32734  The user may also want to install 
32735 \begin_inset CommandInset href
32736 LatexCommand href
32737 name "TortoiseSVN"
32738 target "http://tortoisesvn.tigris.org/"
32739 literal "false"
32740
32741 \end_inset
32742
32743 , which integrates Subversion operations into the context (rightclick) menu
32744  of Windows Explorer.
32745  Operations done outside \SpecialChar LyX
32746  will typically be more convenient using the Explorer
32747  context menu.
32748  Note that TortoiseSVN is not a replacement for the client program, which
32749  is what \SpecialChar LyX
32750  itself will use.
32751 \end_layout
32752
32753 \begin_layout Subsubsection
32754 Bringing a document under Subversion control
32755 \end_layout
32756
32757 \begin_layout Standard
32758 Before a \SpecialChar LyX
32759  document can be brought under version control in Subversion, its
32760  parent directory needs to be under version control.
32761  If the document is being added to a project already in the repository,
32762  this is accomplished by checking the project out to the directory where
32763  the new document will be placed.
32764  If the project itself is not yet under version control (for instance, if
32765  this document starts a new project), the directory must be imported into
32766  the repository.
32767  This is done outside \SpecialChar LyX
32768 .
32769  Both import and checkout are easily accomplished from the Explorer context
32770  menu using TortoiseSVN, or alternatively can be done using the command
32771  line client at a DOS prompt.
32772  The procedure for importing the project using TortoiseSVN is described
32773  below, assuming an existing repository and a new project being started
32774  in 
32775 \family typewriter
32776 C:
32777 \backslash
32778 new project
32779 \family default
32780 .
32781  For information on using the Subversion client program, run 
32782 \family typewriter
32783 svn --help 
32784 \family default
32785 in a DOS shell.
32786 \end_layout
32787
32788 \begin_layout Enumerate
32789 Locate 
32790 \family typewriter
32791 C:
32792 \backslash
32793 new project 
32794 \family default
32795 in Windows Explorer, right click it, and select 
32796 \family sans
32797 TortoiseSVN\SpecialChar menuseparator
32798 Repo-browser
32799 \family default
32800 .
32801  If necessary, adjust the URL for the repository, then click OK.
32802 \end_layout
32803
32804 \begin_layout Enumerate
32805 Right click the level of the repository under which you want to place the
32806  new project folder (typically the top level) and click 
32807 \family sans
32808 Create folder
32809 \family default
32810  Supply a name for the project folder and click OK.
32811  Add a message for the log file if desired, then click OK again.
32812  The new project folder should appear in the repository.
32813  Finally, click OK again to exit the repository browser.
32814 \end_layout
32815
32816 \begin_layout Enumerate
32817 Once again right click 
32818 \family typewriter
32819 C:
32820 \backslash
32821 new project
32822 \family default
32823 , this time selecting SVN Checkout\SpecialChar ldots
32824  Select the URL of the project folder
32825  you just created in the repository, and set the checkout directory to 
32826 \family typewriter
32827 C:
32828 \backslash
32829 new project.
32830
32831 \family default
32832  Click OK.
32833  You will be warned about a non-empty folder; click OK to proceed.
32834  You should now have a 
32835 \family typewriter
32836 .svn
32837 \family default
32838  directory under 
32839 \family typewriter
32840 C:
32841 \backslash
32842 new project.
32843 \end_layout
32844
32845 \begin_layout Enumerate
32846 Create or open your document in \SpecialChar LyX
32847  and click 
32848 \family sans
32849 File\SpecialChar menuseparator
32850 Version
32851 \begin_inset space ~
32852 \end_inset
32853
32854 Control\SpecialChar menuseparator
32855 Register.
32856  
32857 \family default
32858 Add a log message and click OK to commit the document to version control.
32859 \end_layout
32860
32861 \begin_layout Standard
32862 From this point onward, you should have full functionality in the 
32863 \family sans
32864 File\SpecialChar menuseparator
32865 Version
32866 \begin_inset space ~
32867 \end_inset
32868
32869 Control
32870 \family default
32871  menu.
32872  You also have the option of checking the document in and out, viewing its
32873  history, etc.
32874  using the TortoiseSVN context menu in Windows Explorer or the Subversion
32875  client program from a command prompt.
32876 \end_layout
32877
32878 \begin_layout Subsubsection
32879 SSH tunnel used with SVN under Windows
32880 \end_layout
32881
32882 \begin_layout Standard
32883 Compared with Linux setting up an svn client to communicate over ssh under
32884  Windows is a rather troublesome task.
32885  We will at least offer some hints how to setup the client side but prior
32886  knowledge about ssh and the Windows command line is needed, also be prepared
32887  for a great deal of frustration\SpecialChar ldots
32888
32889 \end_layout
32890
32891 \begin_layout Enumerate
32892 Get an svn client for windows, as described in the previous sections.
32893  When it is a fresh install run some svn command (e.g.
32894  
32895 \begin_inset Flex Code
32896 status collapsed
32897
32898 \begin_layout Plain Layout
32899 svn --version
32900 \end_layout
32901
32902 \end_inset
32903
32904 ) to create config files, which you will need to change later on.
32905 \end_layout
32906
32907 \begin_layout Enumerate
32908 Choose an ssh client for Windows.
32909  There are several possibilities, we will use the one from Putty tools
32910 \begin_inset Foot
32911 status collapsed
32912
32913 \begin_layout Plain Layout
32914 \begin_inset Flex URL
32915 status collapsed
32916
32917 \begin_layout Plain Layout
32918
32919 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
32920 \end_layout
32921
32922 \end_inset
32923
32924
32925 \end_layout
32926
32927 \end_inset
32928
32929 .
32930  You will need to set the connection up so that the client doesn't ask for
32931  any password from you.
32932  To keep things easy we will use only keys without any additional password
32933  protection etc.
32934 \end_layout
32935
32936 \begin_deeper
32937 \begin_layout Enumerate
32938 Generate keys by 
32939 \begin_inset Flex Code
32940 status collapsed
32941
32942 \begin_layout Plain Layout
32943 puttygen
32944 \end_layout
32945
32946 \end_inset
32947
32948 .
32949  Save your private .ppk key file and put the public one on the server side.
32950  If the SVN server runs on Linux, note that the format of the public key
32951  is not compatible with Linux openssh and you will need to direcly copy-paste
32952  the key from the 
32953 \begin_inset Quotes eld
32954 \end_inset
32955
32956
32957 \emph on
32958 Public key for pasting into OpenSSH authorized_keys file
32959 \emph default
32960 :
32961 \begin_inset Quotes erd
32962 \end_inset
32963
32964  edit field into the server's 
32965 \begin_inset Flex Code
32966 status collapsed
32967
32968 \begin_layout Plain Layout
32969 ~/.ssh/authorized_keys
32970 \end_layout
32971
32972 \end_inset
32973
32974  / 
32975 \begin_inset Flex Code
32976 status collapsed
32977
32978 \begin_layout Plain Layout
32979 authorized_keys2
32980 \end_layout
32981
32982 \end_inset
32983
32984  file.
32985 \end_layout
32986
32987 \begin_layout Enumerate
32988 Get the Putty's 
32989 \begin_inset Flex Code
32990 status collapsed
32991
32992 \begin_layout Plain Layout
32993 plink
32994 \end_layout
32995
32996 \end_inset
32997
32998 .
32999  In the SVN config file
33000 \begin_inset Foot
33001 status collapsed
33002
33003 \begin_layout Plain Layout
33004 Exact path depends on Windows version, usually somewhere around 
33005 \begin_inset Flex Code
33006 status collapsed
33007
33008 \begin_layout Plain Layout
33009 c:
33010 \backslash
33011 Documents and Settings
33012 \backslash
33013 user
33014 \backslash
33015 Application Data
33016 \backslash
33017 Subversion
33018 \backslash
33019 config
33020 \end_layout
33021
33022 \end_inset
33023
33024  / 
33025 \begin_inset Flex Code
33026 status collapsed
33027
33028 \begin_layout Plain Layout
33029 AppData
33030 \backslash
33031 Roaming
33032 \backslash
33033 Subversion
33034 \end_layout
33035
33036 \end_inset
33037
33038 .
33039 \end_layout
33040
33041 \end_inset
33042
33043 , section [tunnels], setup ssh command, e.g.
33044  
33045 \begin_inset Flex Code
33046 status collapsed
33047
33048 \begin_layout Plain Layout
33049 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
33050 \end_layout
33051
33052 \end_inset
33053
33054 .
33055 \begin_inset Foot
33056 status collapsed
33057
33058 \begin_layout Plain Layout
33059 It will usually take a lot of time to get exact command right and it depends
33060  on many things.
33061  For example do not have some remote server saved as a default session in
33062  Putty etc.
33063  If things fail, try to connect via plink without SVN first.
33064 \end_layout
33065
33066 \end_inset
33067
33068
33069 \end_layout
33070
33071 \end_deeper
33072 \begin_layout Enumerate
33073 Checkout the SVN archive, e.
33074 \begin_inset space \thinspace{}
33075 \end_inset
33076
33077 g.
33078 \begin_inset Newline newline
33079 \end_inset
33080
33081
33082 \begin_inset Flex Code
33083 status collapsed
33084
33085 \begin_layout Plain Layout
33086 svn co svn+ssh://user@server/repository_path
33087 \end_layout
33088
33089 \end_inset
33090
33091 .
33092 \end_layout
33093
33094 \begin_layout Subsubsection
33095 End-of-Line Conversions
33096 \end_layout
33097
33098 \begin_layout Standard
33099 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
33100  will
33101  use different line endings inside the .lyx files.
33102  This is not a problem as far as \SpecialChar LyX
33103  functionality is concerned, but the commit
33104  diffs will be huge and merge-conflicts prone.
33105  Fortunately SVN itself knows
33106 \begin_inset Foot
33107 status collapsed
33108
33109 \begin_layout Plain Layout
33110 \begin_inset Flex URL
33111 status collapsed
33112
33113 \begin_layout Plain Layout
33114
33115 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
33116 \end_layout
33117
33118 \end_inset
33119
33120
33121 \end_layout
33122
33123 \end_inset
33124
33125  how to deal with CR/LF problems when switching .lyx files to the 
33126 \begin_inset Flex Code
33127 status collapsed
33128
33129 \begin_layout Plain Layout
33130 native
33131 \end_layout
33132
33133 \end_inset
33134
33135  mode.
33136 \begin_inset Foot
33137 status collapsed
33138
33139 \begin_layout Plain Layout
33140 For the lazy guys: 
33141 \begin_inset Flex Code
33142 status collapsed
33143
33144 \begin_layout Plain Layout
33145 svn propset svn:eol-style native FILE_NAME
33146 \end_layout
33147
33148 \end_inset
33149
33150
33151 \end_layout
33152
33153 \end_inset
33154
33155
33156 \end_layout
33157
33158 \begin_layout Subsection
33159 GIT commands in \SpecialChar LyX
33160
33161 \end_layout
33162
33163 \begin_layout Standard
33164 A minimal subset of GIT commands is now supported by \SpecialChar LyX
33165 .
33166  You can find the commands in the 
33167 \family sans
33168 File\SpecialChar menuseparator
33169 Version
33170 \begin_inset space ~
33171 \end_inset
33172
33173 Control
33174 \family default
33175  submenu.
33176  Please note that if you use password protected access to repository via
33177  ssh, you will be asked in terminal window.
33178  \SpecialChar LyX
33179  was tested against GIT 1.7.
33180 \begin_inset Foot
33181 status collapsed
33182
33183 \begin_layout Plain Layout
33184 Windows users please note that you need to ensure that git is on the path.
33185  This can be set from within \SpecialChar LyX
33186  at 
33187 \family sans
33188 Tools\SpecialChar menuseparator
33189 Preferences\SpecialChar menuseparator
33190 Paths\SpecialChar menuseparator
33191 PATH prefix
33192 \family default
33193 .
33194 \end_layout
33195
33196 \end_inset
33197
33198
33199 \end_layout
33200
33201 \begin_layout Standard
33202 One big difference of GIT and the other supported version control systems
33203  is the distributed nature of GIT: With traditional version control systems
33204  there is one central server which hosts the repository.
33205  Users commit their changes to the server, and get updates made by other
33206  users from it.
33207  With GIT, users commit to a local repository.
33208  The local repository can be synchronized with one or more remote repositories
33209  using the 
33210 \begin_inset Flex Code
33211 status collapsed
33212
33213 \begin_layout Plain Layout
33214 pull
33215 \end_layout
33216
33217 \end_inset
33218
33219  and 
33220 \begin_inset Flex Code
33221 status collapsed
33222
33223 \begin_layout Plain Layout
33224 push
33225 \end_layout
33226
33227 \end_inset
33228
33229  GIT commands.
33230  \SpecialChar LyX
33231  does not interact in any way with remote GIT repositories.
33232  It works exclusively with the local repository in a very similar way as
33233  with a central CVS or SVN repository.
33234  If you use remote GIT repositories you need to do the 
33235 \begin_inset Flex Code
33236 status collapsed
33237
33238 \begin_layout Plain Layout
33239 pull
33240 \end_layout
33241
33242 \end_inset
33243
33244  and 
33245 \begin_inset Flex Code
33246 status collapsed
33247
33248 \begin_layout Plain Layout
33249 push
33250 \end_layout
33251
33252 \end_inset
33253
33254  operations with your favourite GIT client.
33255 \end_layout
33256
33257 \begin_layout Subsubsection
33258
33259 \family sans
33260 Register
33261 \end_layout
33262
33263 \begin_layout Standard
33264 If your document is not under revision control, this is the only item shown
33265  in the menu.
33266  And if it is under revision control, the 
33267 \family sans
33268 Register
33269 \family default
33270  item is not visible.
33271 \end_layout
33272
33273 \begin_layout Standard
33274 This command registers in GIT your document ONLY in case you have already
33275  the documents directory under GIT control (in particular 
33276 \family typewriter
33277 .git/index
33278 \family default
33279  file exists).
33280  This means you have to checkout the archive by yourself.
33281 \end_layout
33282
33283 \begin_layout Standard
33284 Then you are asked interactively to supply an initial description of the
33285  document.
33286  Don't forget that registered file is not yet committed.
33287 \end_layout
33288
33289 \begin_layout Standard
33290 GIT command that is run: 
33291 \family typewriter
33292 git add 
33293 \begin_inset Quotes qld
33294 \end_inset
33295
33296 <file-name>
33297 \begin_inset Quotes qld
33298 \end_inset
33299
33300
33301 \end_layout
33302
33303 \begin_layout Standard
33304 Read 
33305 \family typewriter
33306 man git
33307 \family default
33308  to understand the switches.
33309 \end_layout
33310
33311 \begin_layout Subsubsection
33312
33313 \family sans
33314 Check In Changes
33315 \end_layout
33316
33317 \begin_layout Standard
33318 When you are finished editing a file, you commit your changes.
33319  When you do this, you are asked for a description of the changes.
33320  After that changes are committed.
33321 \end_layout
33322
33323 \begin_layout Standard
33324 GIT command: 
33325 \family typewriter
33326 git commit -q -m"<description>" <file-name>
33327 \end_layout
33328
33329 \begin_layout Subsubsection
33330
33331 \family sans
33332 Revert To Repository Version
33333 \end_layout
33334
33335 \begin_layout Standard
33336 This will discard all changes made to the document since the last check
33337  in.
33338  You get a warning before changes are discarded.
33339 \end_layout
33340
33341 \begin_layout Standard
33342 GIT command: 
33343 \family typewriter
33344 git checkout -q 
33345 \begin_inset Quotes qld
33346 \end_inset
33347
33348 <file-name>
33349 \begin_inset Quotes qld
33350 \end_inset
33351
33352
33353 \end_layout
33354
33355 \begin_layout Subsubsection
33356
33357 \family sans
33358 Rename
33359 \end_layout
33360
33361 \begin_layout Standard
33362 This will rename the current document including the version history.
33363  It requires a clean document without any changes since the last checkin.
33364  You are asked for a file name and a description of the rename operation.
33365  After that the document is renamed, both locally and in the repository.
33366  If the parent directories of the new and old file names differ, all relative
33367  paths of included files are adjusted (like in 
33368 \family sans
33369 File\SpecialChar menuseparator
33370 Save As
33371 \family default
33372 \SpecialChar ldots
33373 ).
33374  Finally, the document is reloaded using the new name.
33375 \end_layout
33376
33377 \begin_layout Labeling
33378 \labelwidthstring 00.00.0000
33379 GIT
33380 \begin_inset space ~
33381 \end_inset
33382
33383 commands: 
33384 \begin_inset space ~
33385 \end_inset
33386
33387
33388 \begin_inset Newline newline
33389 \end_inset
33390
33391
33392 \begin_inset Flex Code
33393 status collapsed
33394
33395 \begin_layout Plain Layout
33396 git mv 
33397 \family typewriter
33398
33399 \begin_inset Quotes qld
33400 \end_inset
33401
33402 <file-name>
33403 \begin_inset Quotes qld
33404 \end_inset
33405
33406  
33407 \begin_inset Quotes qld
33408 \end_inset
33409
33410 <new-file-name>
33411 \begin_inset Quotes qld
33412 \end_inset
33413
33414
33415 \end_layout
33416
33417 \end_inset
33418
33419
33420 \begin_inset Newline newline
33421 \end_inset
33422
33423
33424 \begin_inset Flex Code
33425 status collapsed
33426
33427 \begin_layout Plain Layout
33428 git commit
33429 \end_layout
33430
33431 \end_inset
33432
33433
33434 \end_layout
33435
33436 \begin_layout Subsubsection
33437
33438 \family sans
33439 Show History
33440 \end_layout
33441
33442 \begin_layout Standard
33443 This shows the complete history of the GIT document.
33444  The output of 
33445 \family typewriter
33446 git log 
33447 \begin_inset Quotes qld
33448 \end_inset
33449
33450 <file-name>
33451 \begin_inset Quotes qld
33452 \end_inset
33453
33454
33455 \family default
33456  is shown in a browser.
33457 \end_layout
33458
33459 \begin_layout Subsubsection
33460 Version Info
33461 \end_layout
33462
33463 \begin_layout Standard
33464 \SpecialChar LyX
33465  supports GIT hash number of the last commit to the file, 
33466 \change_inserted 1119979965 1564297456
33467 its abbreviated form, 
33468 \change_unchanged
33469 author name, date and time of last commit.
33470  All those are extracted from 
33471 \family typewriter
33472 git log -n 1 --pretty=format:%H%n
33473 \change_inserted 1119979965 1564297427
33474 %h%n
33475 \change_unchanged
33476 %an%n%ai
33477 \family default
33478 .
33479  Tree version information is obtained via 
33480 \family typewriter
33481 git describe --abbrev --dirty --long
33482 \family default
33483 .
33484  See 
33485 \begin_inset CommandInset ref
33486 LatexCommand ref
33487 reference "subsec:VCS-Revision-Information"
33488
33489 \end_inset
33490
33491  for other details.
33492 \end_layout
33493
33494 \begin_layout Subsection
33495 Further tuning
33496 \end_layout
33497
33498 \begin_layout Standard
33499 With the recent addition of the 
33500 \begin_inset Flex Code
33501 status collapsed
33502
33503 \begin_layout Plain Layout
33504 vc-command
33505 \end_layout
33506
33507 \end_inset
33508
33509  function \SpecialChar LyX
33510  power users are allowed to create their own commands for revision
33511  control.
33512 \end_layout
33513
33514 \begin_layout Standard
33515 As an example you can see how two TortoiseSVN commands could be integrated
33516  directly:
33517 \end_layout
33518
33519 \begin_layout Description
33520 Commit: 
33521 \begin_inset Flex Code
33522 status collapsed
33523
33524 \begin_layout Plain Layout
33525 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
33526 \end_layout
33527
33528 \end_inset
33529
33530
33531 \end_layout
33532
33533 \begin_layout Description
33534 Revert: 
33535 \begin_inset Flex Code
33536 status collapsed
33537
33538 \begin_layout Plain Layout
33539 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
33540 \end_layout
33541
33542 \end_inset
33543
33544
33545 \end_layout
33546
33547 \begin_layout Subsection
33548 Version control and Document comparison
33549 \end_layout
33550
33551 \begin_layout Standard
33552 One of the typical uses of version control is to inspect the changes between
33553  revisions, usually by creating 
33554 \begin_inset Flex Code
33555 status collapsed
33556
33557 \begin_layout Plain Layout
33558 diff
33559 \end_layout
33560
33561 \end_inset
33562
33563  dumps.
33564  While this is useful for plain text files, it is much less useful in the
33565  case of \SpecialChar LyX
33566  files, which have more a complicated structure.
33567  Hence we provide binding to the Document comparison feature.
33568  There are two ways of calling this feature – either by direct call of 
33569 \begin_inset Flex Code
33570 status collapsed
33571
33572 \begin_layout Plain Layout
33573 vc-compare
33574 \end_layout
33575
33576 \end_inset
33577
33578  \SpecialChar LyX
33579  function (for details see \SpecialChar LyX
33580  functions manual) or by the toolbar icon 
33581 \begin_inset Info
33582 type  "icon"
33583 arg   "vc-compare"
33584 \end_inset
33585
33586  or the menu item 
33587 \begin_inset Info
33588 type  "menu"
33589 arg   "vc-compare"
33590 \end_inset
33591
33592 , respectively.
33593  One can either compare two chosen revisions of the document or he can simply
33594  compare the current version of edited text with older revisions (where
33595  '
33596 \begin_inset Flex Noun
33597 status collapsed
33598
33599 \begin_layout Plain Layout
33600 0
33601 \end_layout
33602
33603 \end_inset
33604
33605 ' revisions back means comparison of the edited file with last commited
33606  revision).
33607  
33608 \end_layout
33609
33610 \begin_layout Standard
33611 This feature is supported for SVN and RCS though due to the more complicated
33612  versioning scheme of RCS there is a constraint – when addressing the revisions
33613  in dialog, numbers always point to the last number in RCS revision number,
33614  i.e.
33615  '35' in '1.2.35'.
33616  We don't currently support GIT addressing of revisions, one can just compare
33617  edited document with its revision X steps backs, where X is addressed as
33618  
33619 \begin_inset Flex Code
33620 status collapsed
33621
33622 \begin_layout Plain Layout
33623 HEAD~X
33624 \end_layout
33625
33626 \end_inset
33627
33628 .
33629 \end_layout
33630
33631 \begin_layout Section
33632
33633 \change_inserted 564990737 1672161575
33634 \begin_inset CommandInset label
33635 LatexCommand label
33636 name "sec:Literate-Programming"
33637
33638 \end_inset
33639
33640
33641 \change_unchanged
33642 Literate Programming
33643 \end_layout
33644
33645 \begin_layout Standard
33646 Updated by 
33647 \noun on
33648 Kayvan Sylvan 
33649 \noun default
33650 (kayvan@sylvan.com)
33651 \noun on
33652
33653 \noun default
33654 original documentation written by 
33655 \noun on
33656 Edmar Wienskoski Jr.
33657
33658 \noun default
33659  (edmar-w-jr@technologist.com)
33660 \end_layout
33661
33662 \begin_layout Subsection
33663 Introduction
33664 \end_layout
33665
33666 \begin_layout Standard
33667 The main purpose of this documentation is to show you how to use \SpecialChar LyX
33668  for literate
33669  programming, where it is assumed that you are familiar with this programming
33670  technique, and know what 
33671 \begin_inset Quotes eld
33672 \end_inset
33673
33674 tangling
33675 \begin_inset Quotes erd
33676 \end_inset
33677
33678  and 
33679 \begin_inset Quotes eld
33680 \end_inset
33681
33682 weaving
33683 \begin_inset Quotes erd
33684 \end_inset
33685
33686  means.
33687  If that is not the case, please follow the web links provided in the following
33688  sections.
33689  There is a lot of good documentation out there covering old development
33690  history to the latest tools tips.
33691 \end_layout
33692
33693 \begin_layout Standard
33694 It is also assumed that you are familiar with \SpecialChar LyX
33695  itself to a point that you
33696  are comfortable changing your \SpecialChar LyX
33697  preferences, and X resources file.
33698  If that is not the case please refer to other \SpecialChar LyX
33699  documentation to cover your
33700  specific needs.
33701 \end_layout
33702
33703 \begin_layout Subsection
33704 Literate Programming
33705 \end_layout
33706
33707 \begin_layout Standard
33708 From the Literate Programming FAQ: 
33709 \end_layout
33710
33711 \begin_layout Quotation
33712 Literate programming is the combination of documentation and source together
33713  in a fashion suited for reading by human beings.
33714  In fact, literate programs should be enjoyable reading, even inviting!
33715  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
33716  and documentation in a single file.
33717  Literate programming tools then parse the file to produce either readable
33718  documentation or compilable source.
33719  The WEB style of literate programming was created by D.
33720 \begin_inset space \thinspace{}
33721 \end_inset
33722
33723 E.
33724  Knuth during the development of his \SpecialChar TeX
33725  typesetting software.
33726  
33727 \end_layout
33728
33729 \begin_layout Standard
33730 Another excerpt says:
33731 \end_layout
33732
33733 \begin_layout Quotation
33734
33735 \emph on
33736 How is literate programming different from verbose commenting?
33737 \end_layout
33738
33739 \begin_layout Quotation
33740 There are three distinguishing characteristics.
33741  In order of importance, they are: 
33742 \end_layout
33743
33744 \begin_deeper
33745 \begin_layout Itemize
33746 flexible order of elaboration 
33747 \end_layout
33748
33749 \begin_layout Itemize
33750 automatic support for browsing 
33751 \end_layout
33752
33753 \begin_layout Itemize
33754 typeset documentation, especially diagrams and mathematics 
33755 \end_layout
33756
33757 \end_deeper
33758 \begin_layout Standard
33759 Now that I sparked your curiosity, take a look in the references.
33760 \end_layout
33761
33762 \begin_layout Subsubsection
33763 References
33764 \end_layout
33765
33766 \begin_layout Standard
33767 The complete Literate Programming FAQ can be found at:
33768 \end_layout
33769
33770 \begin_layout Quote
33771 Literate Programming FAQ 
33772 \begin_inset Flex URL
33773 status open
33774
33775 \begin_layout Plain Layout
33776
33777 http://www.literateprogramming.com/lpfaq.pdf
33778 \end_layout
33779
33780 \end_inset
33781
33782
33783 \end_layout
33784
33785 \begin_layout Standard
33786 The FAQ lists 23 (twenty three!) different literate programming tools.
33787  Where some are specialized or 
33788 \begin_inset Quotes eld
33789 \end_inset
33790
33791 tailored
33792 \begin_inset Quotes erd
33793 \end_inset
33794
33795  for particular programming languages, while other have general scope.
33796  I selected 
33797 \noun on
33798 Noweb
33799 \noun default
33800  for my own use for several reasons:
33801 \end_layout
33802
33803 \begin_layout Itemize
33804 It can generate the documentation either in \SpecialChar LaTeX
33805  or HTML.
33806 \end_layout
33807
33808 \begin_layout Itemize
33809 It has a open architecture, i.
33810 \begin_inset space \thinspace{}
33811 \end_inset
33812
33813 e.
33814 \begin_inset space \space{}
33815 \end_inset
33816
33817 it is easy to plug in new filters
33818 \begin_inset Foot
33819 status collapsed
33820
33821 \begin_layout Plain Layout
33822
33823 \emph on
33824 Filters 
33825 \emph default
33826 are programs that read a given data stream and output a manipulated data
33827  stream.
33828  That way, a WEB file (consisting of literate code) can be turned into a
33829  file consisting only of C program code or \SpecialChar LaTeX
33830  code.
33831 \end_layout
33832
33833 \end_inset
33834
33835  and to perform special processing that you may need.
33836  
33837 \end_layout
33838
33839 \begin_layout Itemize
33840 There is a good selection of filters available already (the HTML is one
33841  of them).
33842 \end_layout
33843
33844 \begin_layout Itemize
33845 It is free.
33846 \end_layout
33847
33848 \begin_layout Standard
33849 The Noweb web page can be found at: 
33850 \end_layout
33851
33852 \begin_layout Quote
33853 Noweb home page 
33854 \begin_inset Flex URL
33855 status collapsed
33856
33857 \begin_layout Plain Layout
33858
33859 https://www.cs.tufts.edu/~nr/noweb/
33860 \end_layout
33861
33862 \end_inset
33863
33864
33865 \end_layout
33866
33867 \begin_layout Standard
33868 Starting from there you can reach many other interesting links and even
33869  some literate program examples.
33870 \end_layout
33871
33872 \begin_layout Subsection
33873 \SpecialChar LyX
33874  and Literate Programming with Noweb
33875 \end_layout
33876
33877 \begin_layout Standard
33878 The \SpecialChar LyX
33879  support for Literate Programming is provided by using the generic \SpecialChar LyX
33880
33881  converters mechanism.
33882  This support is provided in a 
33883 \begin_inset Quotes eld
33884 \end_inset
33885
33886 Noweb independent
33887 \begin_inset Quotes erd
33888 \end_inset
33889
33890  way, i.
33891 \begin_inset space \thinspace{}
33892 \end_inset
33893
33894 e.
33895 \begin_inset space \space{}
33896 \end_inset
33897
33898 you will be able to use this new \SpecialChar LyX
33899  feature with some other literate programming
33900  tool of your choice by just changing your \SpecialChar LyX
33901  preferences.
33902 \end_layout
33903
33904 \begin_layout Subsubsection
33905 Generating documents and code (weaving and tangling)
33906 \end_layout
33907
33908 \begin_layout Paragraph
33909 Using the noweb module
33910 \end_layout
33911
33912 \begin_layout Standard
33913 If you have installed Noweb and \SpecialChar LyX
33914  successfully, whenever you open a new document,
33915  after you have chosen its document class, use the 
33916 \family sans
33917 Document\SpecialChar menuseparator
33918 Settings
33919 \family default
33920  menu to add the 
33921 \begin_inset Quotes eld
33922 \end_inset
33923
33924 noweb
33925 \begin_inset Quotes erd
33926 \end_inset
33927
33928  module.
33929  If Noweb is correctly installed, when you click on the 
33930 \begin_inset Quotes eld
33931 \end_inset
33932
33933 Modules
33934 \begin_inset Quotes erd
33935 \end_inset
33936
33937  link, you will see the 
33938 \begin_inset Quotes eld
33939 \end_inset
33940
33941 noweb
33942 \begin_inset Quotes erd
33943 \end_inset
33944
33945  module in the available list and you can add it to your document.
33946 \end_layout
33947
33948 \begin_layout Paragraph
33949 Typing code in
33950 \end_layout
33951
33952 \begin_layout Standard
33953 \SpecialChar LyX
33954  enables you to write code with a custom inset named 
33955 \begin_inset Flex Noun
33956 status collapsed
33957
33958 \begin_layout Plain Layout
33959 Chunk
33960 \end_layout
33961
33962 \end_inset
33963
33964 .
33965  Noweb delimits chunks like this:
33966 \end_layout
33967
33968 \begin_layout LyX-Code
33969 <<My code>>=
33970 \end_layout
33971
33972 \begin_layout LyX-Code
33973   code
33974 \end_layout
33975
33976 \begin_layout LyX-Code
33977   more code
33978 \end_layout
33979
33980 \begin_layout LyX-Code
33981   even more code
33982 \end_layout
33983
33984 \begin_layout LyX-Code
33985   @
33986 \end_layout
33987
33988 \begin_layout Standard
33989 The problem is that whatever is written in between the << and the 
33990 \family typewriter
33991 @
33992 \family default
33993  must be taken literally, i.
33994 \begin_inset space \thinspace{}
33995 \end_inset
33996
33997 e.
33998 \begin_inset space \space{}
33999 \end_inset
34000
34001 \SpecialChar LyX
34002  should be prevented from making any special interpretation of what has
34003  been written.
34004  This is also handled by 
34005 \begin_inset Flex Noun
34006 status collapsed
34007
34008 \begin_layout Plain Layout
34009 Chunk
34010 \end_layout
34011
34012 \end_inset
34013
34014 , that works like a normal text inset but has a free spacing capability.
34015 \end_layout
34016
34017 \begin_layout Standard
34018 As a special note, you can also use the 
34019 \begin_inset Quotes eld
34020 \end_inset
34021
34022 %def
34023 \begin_inset Quotes erd
34024 \end_inset
34025
34026  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
34027 rence:
34028 \end_layout
34029
34030 \begin_layout LyX-Code
34031 <<My chunk>>=
34032 \end_layout
34033
34034 \begin_layout LyX-Code
34035 def some_function(args):
34036 \end_layout
34037
34038 \begin_layout LyX-Code
34039    "This is the doc string for this function."
34040 \end_layout
34041
34042 \begin_layout LyX-Code
34043    print "My args: ", args
34044 \end_layout
34045
34046 \begin_layout LyX-Code
34047 @ %def some_function
34048 \end_layout
34049
34050 \begin_layout Standard
34051 For an example of this usage and the resulting cross-reference output, look
34052  at the Literate python program in 
34053 \emph on
34054 LIBDIR/examples/listerrors.lyx
34055 \emph default
34056  which should make this all clear.
34057 \end_layout
34058
34059 \begin_layout Paragraph
34060 Generating the documentation
34061 \end_layout
34062
34063 \begin_layout Standard
34064 At this point you already have a new document file with a proper document
34065  class, and with some code and text on it.
34066  How do I print it? The answer is simple, you select 
34067 \family sans
34068 View\SpecialChar menuseparator
34069 DVI,
34070 \family default
34071  etc.
34072  Just like you would do for a plain document.
34073  No special procedure is required.
34074 \end_layout
34075
34076 \begin_layout Standard
34077 To help orientate you, I will now explain what happens inside \SpecialChar LyX
34078 :
34079 \end_layout
34080
34081 \begin_layout Enumerate
34082 When the 
34083 \family sans
34084 Update\SpecialChar menuseparator
34085 DVI
34086 \family default
34087  menu option is chosen, a \SpecialChar LaTeX
34088  file is generated.
34089  
34090 \end_layout
34091
34092 \begin_deeper
34093 \begin_layout Standard
34094 If the document is of any literate class the generated file will be named
34095  with an extension name defined by the 
34096 \begin_inset Quotes eld
34097 \end_inset
34098
34099 literate
34100 \begin_inset Quotes erd
34101 \end_inset
34102
34103  format (defined in the Preferences panel), otherwise the file will have
34104  the usual 
34105 \family typewriter
34106 .tex
34107 \family default
34108  extension.
34109 \end_layout
34110
34111 \end_deeper
34112 \begin_layout Enumerate
34113 Note that the only difference so far is in the name of the file, no special
34114  processing is required by \SpecialChar LyX
34115 .
34116  Given that you formatted the code using the 
34117 \begin_inset Flex Noun
34118 status collapsed
34119
34120 \begin_layout Plain Layout
34121 Chunk
34122 \end_layout
34123
34124 \end_inset
34125
34126  inset that, by itself, takes care of the business.
34127 \end_layout
34128
34129 \begin_layout Enumerate
34130 If the document is of any literate class \SpecialChar LyX
34131  will then use the internal \SpecialChar LyX
34132  to
34133  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
34134  converter
34135 \begin_inset Foot
34136 status collapsed
34137
34138 \begin_layout Plain Layout
34139 The converters are defined in the 
34140 \family sans
34141 Tools\SpecialChar menuseparator
34142 Preferences
34143 \family default
34144  panel, under the 
34145 \begin_inset Quotes eld
34146 \end_inset
34147
34148 Conversion
34149 \begin_inset Quotes erd
34150 \end_inset
34151
34152  tab.
34153  See section 
34154 \emph on
34155 Converters
34156 \emph default
34157  of the 
34158 \emph on
34159 Customization
34160 \emph default
34161  manual for general information about converters.
34162 \end_layout
34163
34164 \end_inset
34165
34166  to generate the \SpecialChar LaTeX
34167  file.
34168 \end_layout
34169
34170 \begin_deeper
34171 \begin_layout Standard
34172 Otherwise it will just skip this step.
34173 \end_layout
34174
34175 \end_deeper
34176 \begin_layout Enumerate
34177 Finally, \SpecialChar LaTeX
34178  is invoked and the regular post processing continues as in a plain
34179  document.
34180 \end_layout
34181
34182 \begin_layout Standard
34183 Independence from a particular 
34184 \begin_inset Quotes eld
34185 \end_inset
34186
34187 literate tool
34188 \begin_inset Quotes erd
34189 \end_inset
34190
34191  is easily achieved by changing the commands that are run by the various
34192  converters.
34193 \end_layout
34194
34195 \begin_layout Paragraph
34196 Generating the code
34197 \end_layout
34198
34199 \begin_layout Standard
34200 When the build menu option is chosen or the corresponding button in the
34201  toolbar is pressed, a \SpecialChar LaTeX
34202  file is generated just like step 1 above.
34203  Next, \SpecialChar LyX
34204  invokes the 
34205 \family typewriter
34206 Noweb->Program
34207 \family default
34208  converter.
34209  This converter needs to be defined by the user and is not installed by
34210  default, though the Program format is.
34211  This converter (like any other converter) will have two parts:
34212 \end_layout
34213
34214 \begin_layout Enumerate
34215 The converter program itself.
34216  This program performs the conversion from the one format to the other (in
34217  this case, from the Noweb format to the Program pseudo-format).
34218 \end_layout
34219
34220 \begin_layout Enumerate
34221 The error log parser.
34222  This is a program whose sole purpose is to rewrite error messages in a
34223  format that \SpecialChar LyX
34224  understands.
34225  This makes it possible for \SpecialChar LyX
34226  to place error boxes in the right places in
34227  the file buffer.
34228 \end_layout
34229
34230 \begin_layout Standard
34231 The first part, the 
34232 \begin_inset Quotes eld
34233 \end_inset
34234
34235 Converter
34236 \begin_inset Quotes erd
34237 \end_inset
34238
34239  setting, should be set to
34240 \end_layout
34241
34242 \begin_layout LyX-Code
34243
34244 \family typewriter
34245 build-script $$i
34246 \family default
34247  $$r
34248 \end_layout
34249
34250 \begin_layout Standard
34251 This basically means that \SpecialChar LyX
34252  will call 
34253 \begin_inset Quotes eld
34254 \end_inset
34255
34256 build-script
34257 \begin_inset Quotes erd
34258 \end_inset
34259
34260  (a program or script) with the name of the Noweb file (normally a file
34261  in the \SpecialChar LyX
34262  temp directory) and the directory path of the original \SpecialChar LyX
34263  file.
34264  
34265 \end_layout
34266
34267 \begin_layout Standard
34268 This is an implementation of 
34269 \begin_inset Quotes eld
34270 \end_inset
34271
34272 build-script
34273 \begin_inset Quotes erd
34274 \end_inset
34275
34276  that you can place in a directory on your path:
34277 \end_layout
34278
34279 \begin_layout LyX-Code
34280
34281 \family sans
34282 #!/bin/sh
34283 \end_layout
34284
34285 \begin_layout LyX-Code
34286
34287 \family sans
34288 #
34289 \end_layout
34290
34291 \begin_layout LyX-Code
34292
34293 \family sans
34294 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
34295 \end_layout
34296
34297 \begin_layout Standard
34298 The next part of the converter setting is the 
34299 \begin_inset Quotes eld
34300 \end_inset
34301
34302 Flags
34303 \begin_inset Quotes erd
34304 \end_inset
34305
34306  which is to be set to
34307 \end_layout
34308
34309 \begin_layout LyX-Code
34310
34311 \family typewriter
34312 parselog=$$s/scripts/listerrors
34313 \end_layout
34314
34315 \begin_layout Standard
34316 This will run any errors that are generated by the 
34317 \begin_inset Quotes eld
34318 \end_inset
34319
34320 build-script
34321 \begin_inset Quotes erd
34322 \end_inset
34323
34324  process through the 
34325 \begin_inset Quotes eld
34326 \end_inset
34327
34328 listerrors
34329 \begin_inset Quotes erd
34330 \end_inset
34331
34332  program.
34333 \end_layout
34334
34335 \begin_layout Standard
34336 The build will normally take place in \SpecialChar LyX
34337 's temporary directory, so the files
34338  produced by the conversion will be in that directory.
34339  \SpecialChar LyX
34340  will copy out what it regards as the `main' file, but the 
34341 \family typewriter
34342 Noweb->Program
34343 \family default
34344  conversion may produce several files, and so most of these would then be
34345  deleted when \SpecialChar LyX
34346  was closed.
34347  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
34348  the build-script chunk can place the generated files in that location.
34349 \end_layout
34350
34351 \begin_layout Paragraph
34352 Build instructions in the document
34353 \end_layout
34354
34355 \begin_layout Standard
34356 The last piece of the integration between \SpecialChar LyX
34357  and noweb is the 
34358 \begin_inset Quotes eld
34359 \end_inset
34360
34361 build-script
34362 \begin_inset Quotes erd
34363 \end_inset
34364
34365  chunk.
34366  Generally, the instructions for building your program should be embedded
34367  in a chunk of its own.
34368  The noweb-specific 
34369 \begin_inset Quotes eld
34370 \end_inset
34371
34372 build-script
34373 \begin_inset Quotes erd
34374 \end_inset
34375
34376  above uses the notangle command to look for this chunk (called 
34377 \begin_inset Quotes eld
34378 \end_inset
34379
34380 build-script
34381 \begin_inset Quotes erd
34382 \end_inset
34383
34384 ) and runs its contents through 
34385 \begin_inset Quotes eld
34386 \end_inset
34387
34388 sh
34389 \begin_inset Quotes erd
34390 \end_inset
34391
34392 .
34393 \end_layout
34394
34395 \begin_layout Standard
34396 Typically, such a chunk would look something like this:
34397 \end_layout
34398
34399 \begin_layout LyX-Code
34400 <<build-script>>=
34401 \end_layout
34402
34403 \begin_layout LyX-Code
34404 #!/bin/sh
34405 \begin_inset Newline newline
34406 \end_inset
34407
34408 if [ -z "${NOWEB_SOURCE}" ]
34409 \begin_inset Newline newline
34410 \end_inset
34411
34412 then
34413 \end_layout
34414
34415 \begin_layout LyX-Code
34416 NOWEB_SOURCE=myfile.nw
34417 \begin_inset Newline newline
34418 \end_inset
34419
34420 fi
34421 \begin_inset Newline newline
34422 \end_inset
34423
34424 [...
34425  code to extract files ...
34426  use NOWEB_OUTPUT_DIR here ...]
34427 \begin_inset Newline newline
34428 \end_inset
34429
34430 [...
34431  code to compile files ...]
34432 \begin_inset Newline newline
34433 \end_inset
34434
34435 @
34436 \end_layout
34437
34438 \begin_layout Standard
34439 Look in 
34440 \change_deleted 564990737 1672161716
34441
34442 \emph on
34443 LIBDIR/examples/listerrors.lyx
34444 \emph default
34445  or in 
34446 \emph on
34447 LIBDIR/examples/Literate.lyx
34448 \change_inserted 564990737 1672161716
34449
34450 \family sans
34451 \emph default
34452 \lang american
34453 File\SpecialChar menuseparator
34454 Open Example\SpecialChar menuseparator
34455 Modules\SpecialChar menuseparator
34456 Noweb Listerrors
34457 \change_unchanged
34458
34459 \family default
34460 \lang english
34461  which implement 
34462 \change_deleted 564990737 1672161729
34463 two 
34464 \change_unchanged
34465 versions of the 
34466 \begin_inset Quotes eld
34467 \end_inset
34468
34469 listerrors
34470 \begin_inset Quotes erd
34471 \end_inset
34472
34473  program for some illustrations of how all of these pieces go together or
34474  in 
34475 \change_deleted 564990737 1672161756
34476
34477 \emph on
34478 LIBDIR/examples/noweb2lyx.lyx
34479 \change_inserted 564990737 1672161756
34480
34481 \family sans
34482 \emph default
34483 \lang american
34484 File\SpecialChar menuseparator
34485 Open Example\SpecialChar menuseparator
34486 Modules\SpecialChar menuseparator
34487 Noweb2\SpecialChar LyX
34488
34489 \change_unchanged
34490
34491 \family default
34492 \emph on
34493 \lang english
34494 .
34495
34496 \emph default
34497  Interestingly, these 
34498 \change_deleted 564990737 1672161767
34499 three 
34500 \change_unchanged
34501 files show off the language-indepence of the \SpecialChar LyX
34502  literate programming support
34503  since they are written in Python
34504 \change_deleted 564990737 1672161782
34505 , C
34506 \change_unchanged
34507  and Perl respectively.
34508 \end_layout
34509
34510 \begin_layout Subsubsection
34511 Configuring \SpecialChar LyX
34512
34513 \end_layout
34514
34515 \begin_layout Standard
34516 All the Literate Programming support is configured by the 
34517 \family sans
34518 Tools\SpecialChar menuseparator
34519 Preferences
34520 \family default
34521  panel in the 
34522 \begin_inset Quotes eld
34523 \end_inset
34524
34525 File Handling
34526 \begin_inset Quotes erd
34527 \end_inset
34528
34529  tab.
34530  The important parts are:
34531 \end_layout
34532
34533 \begin_layout Description
34534 the
34535 \begin_inset space ~
34536 \end_inset
34537
34538
34539 \begin_inset Quotes eld
34540 \end_inset
34541
34542 NoWeb
34543 \begin_inset Quotes erd
34544 \end_inset
34545
34546
34547 \begin_inset space ~
34548 \end_inset
34549
34550 format Set up via the File Formats tab, this is where the Noweb-specific
34551  pieces are set up.
34552  The 
34553 \family sans
34554 GUI Name
34555 \family default
34556  is set to 
34557 \family typewriter
34558 NoWeb
34559 \family default
34560 , the file extension is set to 
34561 \family typewriter
34562 .nw
34563 \family default
34564 .
34565  This tells \SpecialChar LyX
34566  to create a file with a 
34567 \family typewriter
34568 .nw
34569 \family default
34570  extension in the first step of the conversion process.
34571 \end_layout
34572
34573 \begin_layout Description
34574 the
34575 \begin_inset space ~
34576 \end_inset
34577
34578
34579 \family sans
34580 Program
34581 \family default
34582
34583 \begin_inset space ~
34584 \end_inset
34585
34586 format This is an empty format whose sole purpose is to be the endpoint
34587  of a conversion (which then allows us to set up a converter for it).
34588 \end_layout
34589
34590 \begin_layout Description
34591
34592 \family sans
34593 NoWeb
34594 \family default
34595 ->
34596 \family sans
34597 \SpecialChar LaTeX
34598
34599 \family default
34600  This converter performs the 
34601 \begin_inset Quotes eld
34602 \end_inset
34603
34604 weaving
34605 \begin_inset Quotes erd
34606 \end_inset
34607
34608  of the literate document.
34609  For Noweb, it is set to 
34610 \begin_inset Quotes eld
34611 \end_inset
34612
34613
34614 \family typewriter
34615 noweave -delay -index $$i > $$o
34616 \family default
34617
34618 \begin_inset Quotes erd
34619 \end_inset
34620
34621
34622 \end_layout
34623
34624 \begin_layout Description
34625
34626 \family sans
34627 NoWeb
34628 \family default
34629 ->
34630 \family sans
34631 Program
34632 \family default
34633  This performs the 
34634 \begin_inset Quotes eld
34635 \end_inset
34636
34637 tangling step
34638 \begin_inset Quotes erd
34639 \end_inset
34640
34641 .
34642  As stated above, the Converter is set to 
34643 \begin_inset Quotes eld
34644 \end_inset
34645
34646
34647 \family typewriter
34648 build-script $$i
34649 \family default
34650  $$r
34651 \begin_inset Quotes erd
34652 \end_inset
34653
34654 , with Flags set to
34655 \begin_inset Newline newline
34656 \end_inset
34657
34658
34659 \begin_inset Quotes eld
34660 \end_inset
34661
34662
34663 \family typewriter
34664 parselog=$$s/scripts/listerrors
34665 \family default
34666
34667 \begin_inset Quotes erd
34668 \end_inset
34669
34670 .
34671 \end_layout
34672
34673 \begin_layout Subsubsection
34674 Debug extensions
34675 \end_layout
34676
34677 \begin_layout Standard
34678 There is also a new function implemented in the \SpecialChar LyX
34679  server, the 
34680 \begin_inset Quotes eld
34681 \end_inset
34682
34683 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
34684  
34685 \end_layout
34686
34687 \begin_layout Standard
34688 When debugging code with ddd/gdb, it is possible to invoke a text editor
34689  at the current execution position with a single key stroke.
34690  The default ddd configuration for that is shift-ctrl-V.
34691  It happens that you can define the editor command line invocation in ddd
34692  by accessing the 
34693 \family sans
34694 Edit\SpecialChar menuseparator
34695 Preferences\SpecialChar menuseparator
34696 Helpers
34697 \family default
34698  dialog and changing the "Edit Sources" entry.
34699 \end_layout
34700
34701 \begin_layout Standard
34702 I take advantage of the newly created \SpecialChar LyX
34703  server function and this ddd feature,
34704  and set 
34705 \begin_inset Quotes eld
34706 \end_inset
34707
34708 Edit Sources
34709 \begin_inset Quotes erd
34710 \end_inset
34711
34712  to:
34713 \end_layout
34714
34715 \begin_layout LyX-Code
34716 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
34717 \end_layout
34718
34719 \begin_layout Standard
34720 With this, whenever you are using ddd and find a point in the program that
34721  you want to edit, you just press shift-ctrl-V (in the ddd window), and
34722  ddd will forward this information to \SpecialChar LyX
34723  through the \SpecialChar LyX
34724  server and then the
34725  \SpecialChar LyX
34726  window will show the same file with the cursor at the same position ddd
34727  was pointing to.
34728  No more guessing or long scrolling to locate a point in the program back
34729  from debugging !
34730 \end_layout
34731
34732 \begin_layout Standard
34733 Note however that you must enable the \SpecialChar LyX
34734  server to get this feature working
34735  (it is disabled by default).
34736  Sec.
34737 \begin_inset space ~
34738 \end_inset
34739
34740
34741 \begin_inset CommandInset ref
34742 LatexCommand ref
34743 reference "sec:Starting-the-Server"
34744
34745 \end_inset
34746
34747  explains how to do that.
34748 \end_layout
34749
34750 \begin_layout Subsubsection
34751 Toolbar extensions
34752 \end_layout
34753
34754 \begin_layout Standard
34755 There are six new buttons that can be added to your \SpecialChar LyX
34756  toolbar.
34757  Four of these buttons are short cuts to layout styles: 
34758 \family sans
34759 Standard
34760 \family default
34761
34762 \family sans
34763 Section
34764 \family default
34765
34766 \family sans
34767 \SpecialChar LaTeX
34768
34769 \family default
34770 , and 
34771 \family sans
34772 \SpecialChar LyX
34773 -Code
34774 \family default
34775 , one for the custom inset 
34776 \family sans
34777 Chunk
34778 \family default
34779 .
34780  The last one is a short cut to the 
34781 \begin_inset Quotes eld
34782 \end_inset
34783
34784 Build Program
34785 \begin_inset Quotes erd
34786 \end_inset
34787
34788  File menu entry.
34789  
34790 \end_layout
34791
34792 \begin_layout Standard
34793 \SpecialChar LyX
34794  has a range of buttons that are available for tool bar customization.
34795  In my toolbar I like to combine the six short cuts above with two more:
34796  One for 
34797 \family sans
34798 Document
34799 \family default
34800 \SpecialChar menuseparator
34801
34802 \family sans
34803 Update
34804 \family default
34805 \SpecialChar menuseparator
34806
34807 \family sans
34808 DVI
34809 \family default
34810  and the other for 
34811 \family sans
34812 Document\SpecialChar menuseparator
34813 View\SpecialChar menuseparator
34814 DVI
34815 \family default
34816  File menu entries.
34817  Here is how it looks like:
34818 \end_layout
34819
34820 \begin_layout LyX-Code
34821 Toolbar
34822 \end_layout
34823
34824 \begin_layout LyX-Code
34825   Layouts
34826 \end_layout
34827
34828 \begin_layout LyX-Code
34829   Icon "layout Standard"
34830 \end_layout
34831
34832 \begin_layout LyX-Code
34833   Icon "layout Section"
34834 \end_layout
34835
34836 \begin_layout LyX-Code
34837   Icon "layout \SpecialChar LaTeX
34838 "
34839 \end_layout
34840
34841 \begin_layout LyX-Code
34842   Icon "layout \SpecialChar LyX
34843 -Code"
34844 \end_layout
34845
34846 \begin_layout LyX-Code
34847   Icon "flex.insert Chunk"
34848 \end_layout
34849
34850 \begin_layout LyX-Code
34851   Separator
34852 \end_layout
34853
34854 \begin_layout LyX-Code
34855   Icon "buffer-view"
34856 \end_layout
34857
34858 \begin_layout LyX-Code
34859   Icon "buffer-typeset"
34860 \end_layout
34861
34862 \begin_layout LyX-Code
34863   Icon "build-program"
34864 \end_layout
34865
34866 \begin_layout LyX-Code
34867   Separator
34868 \end_layout
34869
34870 \begin_layout LyX-Code
34871 .
34872 \end_layout
34873
34874 \begin_layout LyX-Code
34875 .
34876 \end_layout
34877
34878 \begin_layout LyX-Code
34879 .
34880 \end_layout
34881
34882 \begin_layout LyX-Code
34883 End
34884 \end_layout
34885
34886 \begin_layout Subsubsection
34887 Colors customization
34888 \end_layout
34889
34890 \begin_layout Standard
34891 There are a number of colors in \SpecialChar LyX
34892  that can be customized in 
34893 \family sans
34894 Preferences
34895 \family default
34896 .
34897  One of the things that bothers people is the \SpecialChar LaTeX
34898  font color.
34899  The default color is red, since the chunks uses \SpecialChar LaTeX
34900  font, and there is a lot
34901  of chunks in literate documents, you may get tired of seeing everything
34902  in red.
34903  You can change it by going to the tabs 
34904 \family sans
34905 Look&Feel
34906 \family default
34907
34908 \family sans
34909 Colors.
34910 \end_layout
34911
34912 \begin_layout Standard
34913 The next thing is the visible presence of the newline character in the screen.
34914  You can choose the color of this particular character and make it blend
34915  in the background.
34916  I recommend you choosing a color that is close to the background but not
34917  equal, that way you still can see it is there, but it is not bothering
34918  you anymore.
34919 \end_layout
34920
34921 \begin_layout Subsection
34922 \SpecialChar LyX
34923  and knitr/Sweave
34924 \end_layout
34925
34926 \begin_layout Standard
34927 Support for 
34928 \family sans
34929 knitr
34930 \family default
34931  and 
34932 \family sans
34933 Sweave
34934 \family default
34935  is documented in
34936 \change_inserted 564990737 1672161863
34937  
34938 \family sans
34939 \lang american
34940 Help\SpecialChar menuseparator
34941 Specific Manuals\SpecialChar menuseparator
34942 Knitr
34943 \family default
34944  and
34945 \change_unchanged
34946
34947 \lang english
34948  
34949 \change_deleted 564990737 1671643409
34950 the 
34951 \emph on
34952 knitr.lyx
34953 \emph default
34954  example file
34955 \change_inserted 564990737 1672161856
34956
34957 \family sans
34958 \lang british
34959 File\SpecialChar menuseparator
34960 Open Example\SpecialChar menuseparator
34961 Modules\SpecialChar menuseparator
34962 Rnw (knitr)
34963 \change_unchanged
34964
34965 \family default
34966 \lang english
34967  and in 
34968 \change_deleted 564990737 1671643461
34969 the Sweave manual (menu 
34970 \family sans
34971 Help\SpecialChar menuseparator
34972 Specific Manuals
34973 \family default
34974 )
34975 \change_inserted 564990737 1672161856
34976
34977 \family sans
34978 \lang british
34979 Help\SpecialChar menuseparator
34980 Specific Manuals\SpecialChar menuseparator
34981 Sweave
34982 \change_deleted 564990737 1672161921
34983
34984 \family default
34985 \lang english
34986 .
34987
34988 \change_inserted 564990737 1672161917
34989  and 
34990 \family sans
34991 \lang american
34992 File\SpecialChar menuseparator
34993 Open Example\SpecialChar menuseparator
34994 Modules\SpecialChar menuseparator
34995 Sweave
34996 \family default
34997 .
34998 \change_unchanged
34999
35000 \end_layout
35001
35002 \begin_layout Chapter
35003
35004 \change_deleted 564990737 1671355343
35005 Special features
35006 \end_layout
35007
35008 \begin_layout Standard
35009
35010 \change_deleted 564990737 1671355343
35011 You can do everything with \SpecialChar LyX
35012  that you can do with \SpecialChar LaTeX
35013 .
35014  However, \SpecialChar LyX
35015  cannot support every \SpecialChar LaTeX
35016  feature directly.
35017  But you can always use \SpecialChar TeX
35018  Code.
35019  This chapter shows you some more special things you might want to use.
35020  For other special things you can do with figures, tables, floats, boxes
35021  and notes, have a look at the 
35022 \emph on
35023 Embedded
35024 \begin_inset space ~
35025 \end_inset
35026
35027 Objects
35028 \emph default
35029  manual.
35030 \change_unchanged
35031
35032 \end_layout
35033
35034 \end_body
35035 \end_document