]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Additional.lyx: address scrbook error re old font
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 614
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 274215730 "scott"
142 \author 564990737 "John Lyx"
143 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
144 \author 1075283030 "Thibaut"
145 \author 1119979965 "Joel A. Kulesza"
146 \end_header
147
148 \begin_body
149
150 \begin_layout Title
151 Additional \SpecialChar LyX
152  Features
153 \end_layout
154
155 \begin_layout Subtitle
156 Version 2.
157 \change_deleted 630872221 1622909155
158 3
159 \change_inserted 630872221 1622909155
160 4
161 \change_unchanged
162 .x
163 \end_layout
164
165 \begin_layout Author
166 by the \SpecialChar LyX
167  Team
168 \begin_inset Foot
169 status collapsed
170
171 \begin_layout Plain Layout
172 \noindent
173 Principal maintainer of this file is
174 \noun on
175  Richard Kimberly Heck
176 \noun default
177 .
178  If you have comments or error corrections,
179  please send them to the \SpecialChar LyX
180  Documentation mailing list,
181  
182 \begin_inset Flex Code
183 status collapsed
184
185 \begin_layout Plain Layout
186 <lyx-docs@lists.lyx.org>
187 \end_layout
188
189 \end_inset
190
191 .
192 \end_layout
193
194 \end_inset
195
196
197 \end_layout
198
199 \begin_layout Standard
200 \begin_inset CommandInset toc
201 LatexCommand tableofcontents
202
203 \end_inset
204
205
206 \end_layout
207
208 \begin_layout Standard
209
210 \change_inserted 5863208 1672865652
211 \begin_inset Note Note
212 status open
213
214 \begin_layout Plain Layout
215
216 \change_inserted 5863208 1672865674
217 Note to all translators:
218 \end_layout
219
220 \begin_layout Plain Layout
221
222 \change_inserted 5863208 1672865817
223 This manual was restructured for LyX 2.4.
224  Attached are notes for translators to help them to find their way round the new structure of Additional.lyx.
225  This note itself will be deleted in the final 2.4 release.
226 \begin_inset Newline newline
227 \end_inset
228
229
230 \end_layout
231
232 \begin_layout Plain Layout
233
234 \change_inserted 5863208 1672865801
235
236 \series bold
237 Additional.lyx 2.4 Changes
238 \end_layout
239
240 \begin_layout Itemize
241
242 \change_inserted 5863208 1672865801
243 Chapter 1:
244  none
245 \end_layout
246
247 \begin_layout Itemize
248
249 \change_inserted 5863208 1672865801
250 Chapter 2:
251  none
252 \end_layout
253
254 \begin_layout Itemize
255
256 \change_inserted 5863208 1672865801
257 Chapter 3:
258  Document classes:
259  new chapter
260 \end_layout
261
262 \begin_deeper
263 \begin_layout Itemize
264
265 \change_inserted 5863208 1672865801
266 AMS LaTeX:
267  moved and minor edits
268 \end_layout
269
270 \begin_layout Itemize
271
272 \change_inserted 5863208 1672865801
273 Extra font styles:
274  new
275 \end_layout
276
277 \begin_layout Itemize
278
279 \change_inserted 5863208 1672865801
280 Hebrew:
281  new
282 \end_layout
283
284 \begin_layout Itemize
285
286 \change_inserted 5863208 1672865801
287 Japanese:
288  new
289 \end_layout
290
291 \begin_layout Itemize
292
293 \change_inserted 5863208 1672865801
294 KOMA-Script:
295  moved and significant edits
296 \end_layout
297
298 \begin_layout Itemize
299
300 \change_inserted 5863208 1672865801
301 Polish:
302  moved and minor edit
303 \end_layout
304
305 \begin_layout Itemize
306
307 \change_inserted 5863208 1672865801
308 Tufte:
309  new
310 \end_layout
311
312 \begin_layout Itemize
313
314 \change_inserted 5863208 1672865801
315 A&A Paper:
316  moved and minor edits
317 \end_layout
318
319 \begin_layout Itemize
320
321 \change_inserted 5863208 1672865801
322 AASTeX:
323  moved
324 \end_layout
325
326 \begin_layout Itemize
327
328 \change_inserted 5863208 1672865801
329 Chess:
330  new
331 \end_layout
332
333 \begin_layout Itemize
334
335 \change_inserted 5863208 1672865801
336 Elsevier:
337  new
338 \end_layout
339
340 \begin_layout Itemize
341
342 \change_inserted 5863208 1672865801
343 Paper:
344  new
345 \end_layout
346
347 \begin_layout Itemize
348
349 \change_inserted 5863208 1672865824
350 RevTeX:
351  moved
352 \end_layout
353
354 \begin_layout Itemize
355
356 \change_inserted 5863208 1672865831
357 Springer:
358  new
359 \end_layout
360
361 \begin_layout Itemize
362
363 \change_inserted 5863208 1672865831
364 Memoir:
365  moved
366 \end_layout
367
368 \begin_layout Itemize
369
370 \change_inserted 5863208 1672865831
371 Recipe Book:
372  new
373 \end_layout
374
375 \begin_layout Itemize
376
377 \change_inserted 5863208 1672865831
378 Curricula vitae:
379  all new
380 \end_layout
381
382 \begin_layout Itemize
383
384 \change_inserted 5863208 1672865831
385 Letters:
386  all new
387 \end_layout
388
389 \begin_layout Itemize
390
391 \change_inserted 5863208 1672865831
392 Beamer:
393  new
394 \end_layout
395
396 \begin_layout Itemize
397
398 \change_inserted 5863208 1672865831
399 Foils:
400  moved with minor edits
401 \end_layout
402
403 \begin_layout Itemize
404
405 \change_inserted 5863208 1672865831
406 Powerdot:
407  new
408 \end_layout
409
410 \begin_layout Itemize
411
412 \change_inserted 5863208 1672865831
413 Seminar:
414  new
415 \end_layout
416
417 \begin_layout Itemize
418
419 \change_inserted 5863208 1672865831
420 Slides:
421  moved with minor edits
422 \end_layout
423
424 \begin_layout Itemize
425
426 \change_inserted 5863208 1672865831
427 Reports:
428  new
429 \end_layout
430
431 \begin_layout Itemize
432
433 \change_inserted 5863208 1672865831
434 Broadway:
435  moved
436 \end_layout
437
438 \begin_layout Itemize
439
440 \change_inserted 5863208 1672865831
441 Hollywood:
442  moved
443 \end_layout
444
445 \begin_layout Itemize
446
447 \change_inserted 5863208 1672865831
448 (Note that document classes which appeared in 2.3 but do not appear in 2.4 were either removed previously or have been removed during this revision because they are no longer available anywhere.)
449 \end_layout
450
451 \end_deeper
452 \begin_layout Itemize
453
454 \change_inserted 5863208 1672865831
455 Chapter 4:
456  Modules:
457  new chapter
458 \end_layout
459
460 \begin_deeper
461 \begin_layout Itemize
462
463 \change_inserted 5863208 1672865831
464 All module descriptions new except:
465 \end_layout
466
467 \begin_layout Itemize
468
469 \change_inserted 5863208 1672865831
470 Customizable lists:
471  moved with minor edits
472 \end_layout
473
474 \begin_layout Itemize
475
476 \change_inserted 5863208 1672865831
477 Custom header/footer text:
478  moved with minor edits
479 \end_layout
480
481 \begin_layout Itemize
482
483 \change_inserted 5863208 1672865831
484 Multiple columns:
485  moved with minor edits
486 \end_layout
487
488 \begin_layout Itemize
489
490 \change_inserted 5863208 1672865831
491 Custom paragraph shapes:
492  moved with minor edits
493 \end_layout
494
495 \begin_layout Itemize
496
497 \change_inserted 5863208 1672865831
498 Initials:
499  moved with minor edits
500 \end_layout
501
502 \end_deeper
503 \begin_layout Itemize
504
505 \change_inserted 5863208 1672865831
506 Chapter 5:
507  Bibliography:
508  new chapter
509 \end_layout
510
511 \begin_deeper
512 \begin_layout Itemize
513
514 \change_inserted 5863208 1672865831
515 Content moved but unchanged
516 \end_layout
517
518 \end_deeper
519 \begin_layout Itemize
520
521 \change_inserted 5863208 1672865831
522 Chapter 6:
523  Bullets:
524  new chapter
525 \end_layout
526
527 \begin_deeper
528 \begin_layout Itemize
529
530 \change_inserted 5863208 1672865845
531 Content moved but unchanged
532 \end_layout
533
534 \end_deeper
535 \begin_layout Itemize
536
537 \change_inserted 5863208 1672865845
538 Chapter 9:
539  DocBook output:
540  new chapter and content
541 \end_layout
542
543 \begin_layout Itemize
544
545 \change_inserted 5863208 1672865845
546 All other chapters unchanged but renumbered except:
547 \end_layout
548
549 \begin_layout Itemize
550
551 \change_inserted 5863208 1672865845
552 section 11.3 Literate programming:
553  minor edits
554 \change_unchanged
555
556 \end_layout
557
558 \end_inset
559
560
561 \end_layout
562
563 \begin_layout Chapter
564 Introduction
565 \end_layout
566
567 \begin_layout Standard
568 This manual is essentially Part II of the 
569 \emph on
570 User's Guide\SpecialChar endofsentence
571
572 \emph default
573  The reason for separating the two documents is simple:
574  the 
575 \emph on
576 User's Guide
577 \emph default
578  is already quite lengthy,
579  and it contains information on all of the basic features one needs to know in order to prepare most documents.
580  However,
581  the \SpecialChar LyX
582  Team has worked to make \SpecialChar LyX
583  extensible through various configuration files and external packages.
584  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
585  package,
586  you can create a layout file (or module) for it without having to alter \SpecialChar LyX
587  itself.
588  We've already had contributions of several new features this way,
589  and some of them are documented here.
590  There are also some more `advanced' features,
591  such as how to control the presentation of bibliographies and how to work with multi-part documents,
592  that are not covered in the 
593 \emph on
594 User's Guide
595 \emph default
596  and are discussed here.
597 \end_layout
598
599 \begin_layout Standard
600 This manual also documents some special features,
601  like fax support
602 \change_deleted 244031559 1603802929
603 ,
604
605 \change_inserted 244031559 1603802931
606  and
607 \change_unchanged
608  version control
609 \change_deleted 244031559 1603802954
610 ,
611  and SGML support
612 \change_unchanged
613 ,
614  which require additional software to work properly.
615  There is also a chapter on \SpecialChar LyX
616 's support for HTML.
617  And lastly,
618  there's a chapter of \SpecialChar LaTeX
619  tools and tips,
620  things you can use to spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
621 .
622  After all,
623  \SpecialChar LyX
624  
625 \emph on
626 is
627 \emph default
628  only WYSIWYM and will only ever interface to some,
629  not all,
630  \SpecialChar LaTeX
631  features.
632 \end_layout
633
634 \begin_layout Standard
635 If you haven't read the 
636 \emph on
637 Introduction
638 \emph default
639  yet,
640  you are definitely in the wrong manual.
641  The 
642 \emph on
643 Introduction
644 \emph default
645  is the first place to go,
646  since it describes the notation and format of all of the manuals.
647  You should also be thoroughly familiar with the 
648 \emph on
649 User's Guide
650 \emph default
651  and all of the basic features of \SpecialChar LyX
652  before attempting to read this one.
653 \end_layout
654
655 \begin_layout Standard
656 Since many of the topics in this manual depend heavily on \SpecialChar LyX
657 's interaction with \SpecialChar LaTeX
658 ,
659  this first chapter covers the inner workings of \SpecialChar LyX
660  and how to direct \SpecialChar LyX
661  to generate exactly the \SpecialChar LaTeX
662  code you want.
663  It is obviously for more seasoned \SpecialChar LyX
664  users.
665 \end_layout
666
667 \begin_layout Chapter
668 \SpecialChar LyX
669  and \SpecialChar LaTeX
670
671 \end_layout
672
673 \begin_layout Section
674 How \SpecialChar LyX
675  Uses \SpecialChar LaTeX
676
677 \end_layout
678
679 \begin_layout Standard
680 This chapter is for both \SpecialChar TeX
681 -nicians and the \SpecialChar LaTeX
682 -curious.
683  In it,
684  we'll explain how \SpecialChar LyX
685  and \SpecialChar LaTeX
686  work together to produce printable output.
687  This is the only place in any of the manuals where we assume you know something about \SpecialChar LaTeX
688 .
689 \end_layout
690
691 \begin_layout Standard
692 At one time,
693  \SpecialChar LyX
694  was called a 
695 \begin_inset Quotes eld
696 \end_inset
697
698 WYSIWYM frontend to \SpecialChar LaTeX
699 ,
700 \begin_inset Quotes erd
701 \end_inset
702
703  but that's no longer true.
704  There are frontends to \SpecialChar LaTeX
705  out there.
706 \begin_inset Foot
707 status collapsed
708
709 \begin_layout Plain Layout
710 Some familar ones are \SpecialChar TeX
711 maker and kile,
712  on Linux,
713  and \SpecialChar TeX
714 shop,
715  OSX.
716  There are also the \SpecialChar LaTeX
717  modes for vi and emacs,
718  of course.
719 \end_layout
720
721 \end_inset
722
723  These are basically text editors with the ability to run \SpecialChar LaTeX
724  and mark any errors in the file you're editing.
725  Although \SpecialChar LyX
726  
727 \emph on
728 is
729 \emph default
730  an editor,
731  and it 
732 \emph on
733 does
734 \emph default
735  run \SpecialChar LaTeX
736 ,
737  and it also indicates errors in the file,
738  it also does much,
739  much more.
740  For one thing,
741  you don't need to know \SpecialChar LaTeX
742  to use \SpecialChar LyX
743  effectively.
744  And \SpecialChar LyX
745  has added its own extensions to \SpecialChar LaTeX
746 .
747  Try the following sometime:
748  select 
749 \begin_inset Flex Noun
750 status collapsed
751
752 \begin_layout Plain Layout
753 Export\SpecialChar menuseparator
754 LaTeX
755 \end_layout
756
757 \end_inset
758
759  from the 
760 \begin_inset Flex Noun
761 status collapsed
762
763 \begin_layout Plain Layout
764 File
765 \end_layout
766
767 \end_inset
768
769  menu (or 
770 \begin_inset Flex Noun
771 status collapsed
772
773 \begin_layout Plain Layout
774 View\SpecialChar menuseparator
775 Source
776 \begin_inset space ~
777 \end_inset
778
779 Pane
780 \end_layout
781
782 \end_inset
783
784 ),
785  then look at the preamble of the resulting 
786 \begin_inset Flex Code
787 status collapsed
788
789 \begin_layout Plain Layout
790 .tex
791 \end_layout
792
793 \end_inset
794
795  file.
796  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
797 .
798  These macros are defined automatically,
799  according to the features you use in the document.
800 \end_layout
801
802 \begin_layout Standard
803 There are several commands that automatically invoke \SpecialChar LaTeX
804 .
805  They are:
806 \end_layout
807
808 \begin_layout Itemize
809 \begin_inset Flex Noun
810 status collapsed
811
812 \begin_layout Plain Layout
813 Document\SpecialChar menuseparator
814 View
815 \end_layout
816
817 \end_inset
818
819
820 \end_layout
821
822 \begin_layout Itemize
823 \begin_inset Flex Noun
824 status collapsed
825
826 \begin_layout Plain Layout
827 Document\SpecialChar menuseparator
828 Update
829 \end_layout
830
831 \end_inset
832
833
834 \end_layout
835
836 \begin_layout Standard
837 They will only invoke \SpecialChar LaTeX
838  if the file has changed since the last time \SpecialChar LaTeX
839  was run.
840  
841 \end_layout
842
843 \begin_layout Standard
844 When \SpecialChar LyX
845  runs \SpecialChar LaTeX
846  on the file you're editing,
847  it performs these steps:
848 \end_layout
849
850 \begin_layout Enumerate
851 Convert the document to \SpecialChar LaTeX
852  and save to a file with the extension 
853 \begin_inset Flex Code
854 status collapsed
855
856 \begin_layout Plain Layout
857 .tex
858 \end_layout
859
860 \end_inset
861
862  in place of 
863 \begin_inset Flex Code
864 status collapsed
865
866 \begin_layout Plain Layout
867 .lyx
868 \end_layout
869
870 \end_inset
871
872 .
873 \end_layout
874
875 \begin_layout Enumerate
876 Run \SpecialChar LaTeX
877  on the 
878 \begin_inset Flex Code
879 status collapsed
880
881 \begin_layout Plain Layout
882 .tex
883 \end_layout
884
885 \end_inset
886
887  file (maybe several times),
888  and run any other commands (such as 
889 \begin_inset Flex Code
890 status collapsed
891
892 \begin_layout Plain Layout
893 bibtex
894 \end_layout
895
896 \end_inset
897
898  or 
899 \begin_inset Flex Code
900 status collapsed
901
902 \begin_layout Plain Layout
903 makeindex
904 \end_layout
905
906 \end_inset
907
908 ) needed to compile the \SpecialChar LaTeX
909  file.
910 \end_layout
911
912 \begin_layout Enumerate
913 If there are any errors,
914  show the error log.
915 \end_layout
916
917 \begin_layout Standard
918 If you have run \SpecialChar LaTeX
919  using 
920 \begin_inset Flex Noun
921 status collapsed
922
923 \begin_layout Plain Layout
924 View\SpecialChar menuseparator
925 DVI
926 \end_layout
927
928 \end_inset
929
930 ,
931  \SpecialChar LyX
932  then runs a DVI viewer to display the DVI-file.
933  If you have used 
934 \begin_inset Flex Noun
935 status collapsed
936
937 \begin_layout Plain Layout
938 View\SpecialChar menuseparator
939 PostScript
940 \end_layout
941
942 \end_inset
943
944 ,
945  \SpecialChar LyX
946  performs further steps:
947 \end_layout
948
949 \begin_layout Enumerate
950 Run 
951 \begin_inset Flex Code
952 status collapsed
953
954 \begin_layout Plain Layout
955 dvips
956 \end_layout
957
958 \end_inset
959
960  to convert the DVI file to PostScript.
961 \end_layout
962
963 \begin_layout Enumerate
964 Run a PostScript viewer,
965  such as 
966 \begin_inset Flex Code
967 status collapsed
968
969 \begin_layout Plain Layout
970 ghostview
971 \end_layout
972
973 \end_inset
974
975 ,
976  to display the PostScript file.
977 \end_layout
978
979 \begin_layout Standard
980 \SpecialChar LyX
981  does similar things when viewing,
982  or exporting,
983  other formats.
984 \end_layout
985
986 \begin_layout Section
987 Translating \SpecialChar LaTeX
988  files into \SpecialChar LyX
989
990 \end_layout
991
992 \begin_layout Standard
993 You can import a \SpecialChar LaTeX
994  file into \SpecialChar LyX
995  by using the 
996 \begin_inset Flex Noun
997 status collapsed
998
999 \begin_layout Plain Layout
1000 File\SpecialChar menuseparator
1001 Import\SpecialChar menuseparator
1002 LaTeX
1003 \end_layout
1004
1005 \end_inset
1006
1007  command in \SpecialChar LyX
1008 .
1009  This will call a program named 
1010 \begin_inset Flex Code
1011 status collapsed
1012
1013 \begin_layout Plain Layout
1014 tex2lyx
1015 \end_layout
1016
1017 \end_inset
1018
1019  which will create a file 
1020 \begin_inset Flex Code
1021 status collapsed
1022
1023 \begin_layout Plain Layout
1024 foo.lyx
1025 \end_layout
1026
1027 \end_inset
1028
1029  from the file 
1030 \begin_inset Flex Code
1031 status collapsed
1032
1033 \begin_layout Plain Layout
1034 foo.tex
1035 \end_layout
1036
1037 \end_inset
1038
1039 .
1040  \SpecialChar LyX
1041  will then open that file.
1042 \begin_inset Foot
1043 status collapsed
1044
1045 \begin_layout Plain Layout
1046 \begin_inset Flex Code
1047 status collapsed
1048
1049 \begin_layout Plain Layout
1050 tex2lyx
1051 \end_layout
1052
1053 \end_inset
1054
1055  can also be run from the command line,
1056  of course.
1057 \end_layout
1058
1059 \end_inset
1060
1061
1062 \end_layout
1063
1064 \begin_layout Standard
1065 \begin_inset Flex Code
1066 status collapsed
1067
1068 \begin_layout Plain Layout
1069 tex2lyx
1070 \end_layout
1071
1072 \end_inset
1073
1074  will translate most legal \SpecialChar LaTeX
1075 ,
1076  but not everything.
1077  It will put things it doesn't understand into \SpecialChar TeX
1078  code,
1079  so after translating a file with 
1080 \begin_inset Flex Code
1081 status collapsed
1082
1083 \begin_layout Plain Layout
1084 tex2lyx
1085 \end_layout
1086
1087 \end_inset
1088
1089 ,
1090  you can look for \SpecialChar TeX
1091  code and hand-edit it until it looks right.
1092 \end_layout
1093
1094 \begin_layout Standard
1095 If you don't know what \SpecialChar TeX
1096  code is,
1097  read the next section.
1098 \end_layout
1099
1100 \begin_layout Section
1101 \begin_inset CommandInset label
1102 LatexCommand label
1103 name "sec:Inserting-TeX-Code"
1104
1105 \end_inset
1106
1107 Inserting \SpecialChar TeX
1108  Code into \SpecialChar LyX
1109  Documents 
1110 \end_layout
1111
1112 \begin_layout Standard
1113 Anything you can do in \SpecialChar LaTeX
1114  you can do in \SpecialChar LyX
1115 ,
1116  for a very simple reason:
1117  You can always insert \SpecialChar TeX
1118  code into any \SpecialChar LyX
1119  document.
1120  \SpecialChar LyX
1121  cannot,
1122  and will never be able to,
1123  display every possible \SpecialChar LaTeX
1124  construct.
1125  If ever you need to insert \SpecialChar LaTeX
1126  commands into your \SpecialChar LyX
1127  document,
1128  you can use the 
1129 \begin_inset Flex Code
1130 status collapsed
1131
1132 \begin_layout Plain Layout
1133 \SpecialChar TeX
1134  Code
1135 \end_layout
1136
1137 \end_inset
1138
1139  box,
1140  which you can insert into your document with 
1141 \begin_inset Flex Noun
1142 status collapsed
1143
1144 \begin_layout Plain Layout
1145 Insert\SpecialChar menuseparator
1146
1147 \family sans
1148 TeX
1149 \family default
1150  Code
1151 \end_layout
1152
1153 \end_inset
1154
1155  or the keyboard shortcut 
1156 \begin_inset Info
1157 type  "shortcut"
1158 arg   "ert-insert"
1159 \end_inset
1160
1161 .
1162 \end_layout
1163
1164 \begin_layout Standard
1165 Here's an example of inserting \SpecialChar LaTeX
1166  commands in a \SpecialChar LyX
1167  document.
1168  The code looks like this:
1169 \end_layout
1170
1171 \begin_layout LyX-Code
1172
1173 \backslash
1174 begin{tabular}{ll}
1175 \begin_inset Newline newline
1176 \end_inset
1177
1178
1179 \backslash
1180 begin{minipage}{5cm}
1181 \begin_inset Newline newline
1182 \end_inset
1183
1184 This is an example of a minipage environment.
1185  You 
1186 \begin_inset Newline newline
1187 \end_inset
1188
1189 can put nearly everything in it,
1190  even (non-floating) 
1191 \begin_inset Newline newline
1192 \end_inset
1193
1194 figures and tables.
1195  
1196 \begin_inset Newline newline
1197 \end_inset
1198
1199
1200 \backslash
1201 end{minipage}
1202 \begin_inset Newline newline
1203 \end_inset
1204
1205 &
1206 \begin_inset Newline newline
1207 \end_inset
1208
1209
1210 \backslash
1211 begin{minipage}{5cm}
1212 \begin_inset Newline newline
1213 \end_inset
1214
1215
1216 \backslash
1217 begin{verbatim}
1218 \begin_inset Newline newline
1219 \end_inset
1220
1221
1222 \backslash
1223 begin{minipage}{5cm}
1224 \begin_inset Newline newline
1225 \end_inset
1226
1227 This ...
1228  
1229 \begin_inset Newline newline
1230 \end_inset
1231
1232
1233 \backslash
1234 end{minipage}
1235 \begin_inset Newline newline
1236 \end_inset
1237
1238
1239 \backslash
1240 end{verbatim}
1241 \begin_inset Newline newline
1242 \end_inset
1243
1244
1245 \backslash
1246 end{minipage}
1247 \begin_inset Newline newline
1248 \end_inset
1249
1250
1251 \backslash
1252 end{tabular}
1253 \end_layout
1254
1255 \begin_layout LyX-Code
1256
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The 
1261 \begin_inset Flex Code
1262 status collapsed
1263
1264 \begin_layout Plain Layout
1265 \SpecialChar TeX
1266  Code
1267 \end_layout
1268
1269 \end_inset
1270
1271  box containing this text is directly after this paragraph.
1272  Those of you reading the manual in \SpecialChar LyX
1273  will only see the \SpecialChar TeX
1274  code inset.
1275  Those reading a printed version of the manuals will see the actual results:
1276 \begin_inset VSpace bigskip
1277 \end_inset
1278
1279
1280 \end_layout
1281
1282 \begin_layout Standard
1283 \begin_inset ERT
1284 status open
1285
1286 \begin_layout Plain Layout
1287
1288
1289 \backslash
1290 begin{tabular}{ll}
1291 \end_layout
1292
1293 \begin_layout Plain Layout
1294
1295
1296 \backslash
1297 begin{minipage}{5cm}
1298 \end_layout
1299
1300 \begin_layout Plain Layout
1301
1302 This is an example of a minipage environment.
1303  You can put nearly everything in it,
1304  even (non-floating) figures and tables.
1305  
1306 \end_layout
1307
1308 \begin_layout Plain Layout
1309
1310
1311 \backslash
1312 end{minipage}
1313 \end_layout
1314
1315 \begin_layout Plain Layout
1316
1317 &
1318 \end_layout
1319
1320 \begin_layout Plain Layout
1321
1322
1323 \backslash
1324 begin{minipage}{5cm}
1325 \end_layout
1326
1327 \begin_layout Plain Layout
1328
1329
1330 \backslash
1331 begin{verbatim}
1332 \end_layout
1333
1334 \begin_layout Plain Layout
1335
1336
1337 \backslash
1338 begin{minipage}{5cm}
1339 \end_layout
1340
1341 \begin_layout Plain Layout
1342
1343 This ...
1344  
1345 \end_layout
1346
1347 \begin_layout Plain Layout
1348
1349
1350 \backslash
1351 end{minipage}
1352 \end_layout
1353
1354 \begin_layout Plain Layout
1355
1356
1357 \backslash
1358 end{verbatim}
1359 \end_layout
1360
1361 \begin_layout Plain Layout
1362
1363
1364 \backslash
1365 end{minipage}
1366 \end_layout
1367
1368 \begin_layout Plain Layout
1369
1370
1371 \backslash
1372 end{tabular}
1373 \end_layout
1374
1375 \end_inset
1376
1377
1378 \begin_inset VSpace bigskip
1379 \end_inset
1380
1381
1382 \end_layout
1383
1384 \begin_layout Standard
1385 In addition to using \SpecialChar TeX
1386  code,
1387  you can also create a separate file containing some complex \SpecialChar LaTeX
1388  structure and then use 
1389 \begin_inset Flex Noun
1390 status collapsed
1391
1392 \begin_layout Plain Layout
1393 Insert\SpecialChar menuseparator
1394 Child
1395 \begin_inset space ~
1396 \end_inset
1397
1398 Document
1399 \end_layout
1400
1401 \end_inset
1402
1403  to include your file (you should select the type 
1404 \begin_inset Flex Code
1405 status collapsed
1406
1407 \begin_layout Plain Layout
1408 Input
1409 \end_layout
1410
1411 \end_inset
1412
1413 ).
1414  We recommend that you only do this if you have a 
1415 \begin_inset Flex Code
1416 status collapsed
1417
1418 \begin_layout Plain Layout
1419 .tex
1420 \end_layout
1421
1422 \end_inset
1423
1424  file which you 
1425 \emph on
1426 know
1427 \emph default
1428  works already.
1429  Otherwise,
1430  you'll have a big job tracking down \SpecialChar LaTeX
1431  errors.
1432 \end_layout
1433
1434 \begin_layout Standard
1435 There are a few last points to emphasize:
1436 \end_layout
1437
1438 \begin_layout Itemize
1439 \SpecialChar LyX
1440  
1441 \emph on
1442 does not
1443 \emph default
1444  check if your \SpecialChar LaTeX
1445  code is correct.
1446 \end_layout
1447
1448 \begin_layout Itemize
1449 Beware of reinventing the wheel.
1450 \end_layout
1451
1452 \begin_layout Standard
1453 On that last point,
1454  \SpecialChar LyX
1455  does have quite a few features tucked into it,
1456  and more are coming.
1457  Be sure to check the manuals to make sure that \SpecialChar LyX
1458  doesn't have such-and-such feature before you decide you have to do it by hand.
1459  Moreover,
1460  there are numerous \SpecialChar LaTeX
1461  packages out there to do all sorts of things,
1462  from labels to envelopes to fancy multipage tables.
1463  Check out 
1464 \change_inserted 244031559 1603815732
1465
1466 \begin_inset CommandInset href
1467 LatexCommand href
1468 name "CTAN"
1469 target "https://www.ctan.org/"
1470 literal "false"
1471
1472 \end_inset
1473
1474
1475 \change_deleted 244031559 1603815732
1476
1477 \begin_inset CommandInset href
1478 LatexCommand href
1479 name "CTAN"
1480 target "http://www.ctan.org/"
1481 literal "false"
1482
1483 \end_inset
1484
1485
1486 \change_unchanged
1487  for details.
1488 \end_layout
1489
1490 \begin_layout Standard
1491 If you do need to do some wild and fancy things within your document,
1492  be sure to check out a good \SpecialChar LaTeX
1493  book for assistance.
1494  There are a number of them listed in the bibliography of the 
1495 \emph on
1496 User's Guide
1497 \emph default
1498 .
1499 \end_layout
1500
1501 \begin_layout Section
1502 \SpecialChar LyX
1503  and the \SpecialChar LaTeX
1504  Preamble
1505 \end_layout
1506
1507 \begin_layout Subsection
1508 About the \SpecialChar LaTeX
1509  Preamble
1510 \end_layout
1511
1512 \begin_layout Standard
1513 If you already know \SpecialChar LaTeX
1514 ,
1515  there is no need to explain here what the preamble is good for.
1516  If you don't,
1517  the following will give you some ideas—
1518 we recommend again that you consult a \SpecialChar LaTeX
1519  book for further information.
1520  In any case,
1521  you should read the points below,
1522  because they explain what you can do and what you don't need to do in the \SpecialChar LaTeX
1523  preamble of a \SpecialChar LyX
1524  document.
1525 \end_layout
1526
1527 \begin_layout Standard
1528 The \SpecialChar LaTeX
1529  preamble comes at the very beginning of a document,
1530  
1531 \emph on
1532 before
1533 \emph default
1534  the text.
1535  It serves to:
1536 \end_layout
1537
1538 \begin_layout Itemize
1539 Declare the document class.
1540  
1541 \begin_inset Newline newline
1542 \end_inset
1543
1544 \SpecialChar LyX
1545  already does this for you.
1546  If you're a seasoned \SpecialChar LaTeX
1547 -nician,
1548  and you have a custom document class you want to use,
1549  check out the 
1550 \emph on
1551 Customization Manual
1552 \emph default
1553  for information on how to make \SpecialChar LyX
1554  interface to it.
1555 \end_layout
1556
1557 \begin_layout Itemize
1558 Declare the usage of packages.
1559  
1560 \begin_inset Newline newline
1561 \end_inset
1562
1563 \SpecialChar LaTeX
1564  packages provide special commands,
1565  which are only available within a document when the package has been declared in the preamble.
1566  In addition to providing special commands,
1567  the inclusion of a package can change the document.
1568  For example,
1569  the package 
1570 \begin_inset Flex Code
1571 status collapsed
1572
1573 \begin_layout Plain Layout
1574 indentfirst
1575 \end_layout
1576
1577 \end_inset
1578
1579  forces all paragraphs to be indented.
1580  There are other packages for labels,
1581  envelopes,
1582  margins,
1583  etc.
1584  
1585 \end_layout
1586
1587 \begin_layout Itemize
1588 Set counters,
1589  variables,
1590  lengths and widths.
1591  
1592 \begin_inset Newline newline
1593 \end_inset
1594
1595 There are several \SpecialChar LaTeX
1596  counters and variables that 
1597 \emph on
1598 must
1599 \emph default
1600  be set globally from within the preamble in order to have the desired effect.
1601  (There are variables that you can set and reset inside the document,
1602  too.) Margins are a good example of something that must be set in the preamble.
1603  Another example is the label format for lists.
1604  You can actually set these just about anywhere,
1605  but it's best to do it just once,
1606  inside the preamble.
1607 \end_layout
1608
1609 \begin_layout Itemize
1610 Declare user defined commands (with 
1611 \begin_inset Flex Code
1612 status collapsed
1613
1614 \begin_layout Plain Layout
1615
1616 \backslash
1617 newcommand
1618 \end_layout
1619
1620 \end_inset
1621
1622  or 
1623 \begin_inset Flex Code
1624 status collapsed
1625
1626 \begin_layout Plain Layout
1627
1628 \backslash
1629 renewcommand
1630 \end_layout
1631
1632 \end_inset
1633
1634 ).
1635 \begin_inset Newline newline
1636 \end_inset
1637
1638 These are abbreviations for \SpecialChar LaTeX
1639  commands which appear very often inside a document.
1640  Although the preamble is a good place to declare such commands,
1641  they 
1642 \emph on
1643 can
1644 \emph default
1645  be declared anywhere (before they are used for the first time,
1646  of course).
1647  This can be useful if there is a lot of raw \SpecialChar LaTeX
1648  code in your document,
1649  which normally should not be the case.
1650 \end_layout
1651
1652 \begin_layout Standard
1653 \SpecialChar LyX
1654  adds its own set of definitions to the preamble of the 
1655 \begin_inset Flex Code
1656 status collapsed
1657
1658 \begin_layout Plain Layout
1659 .tex
1660 \end_layout
1661
1662 \end_inset
1663
1664  file it produces.
1665  This makes \SpecialChar LaTeX
1666  files generated by \SpecialChar LyX
1667  portable.
1668 \end_layout
1669
1670 \begin_layout Subsection
1671 Changing the Preamble
1672 \end_layout
1673
1674 \begin_layout Standard
1675 The commands which \SpecialChar LyX
1676  adds to the preamble of a \SpecialChar LaTeX
1677  file are fixed;
1678  you can't change them without patching \SpecialChar LyX
1679  itself.
1680  You can,
1681  however,
1682  add your own stuff to the preamble by selecting 
1683 \begin_inset Flex Noun
1684 status collapsed
1685
1686 \begin_layout Plain Layout
1687 \SpecialChar LaTeX
1688
1689 \begin_inset space ~
1690 \end_inset
1691
1692 Preamble
1693 \end_layout
1694
1695 \end_inset
1696
1697  in the 
1698 \begin_inset Flex Noun
1699 status collapsed
1700
1701 \begin_layout Plain Layout
1702 Document\SpecialChar menuseparator
1703 Settings
1704 \end_layout
1705
1706 \end_inset
1707
1708  dialog.
1709  \SpecialChar LyX
1710  adds anything in the 
1711 \begin_inset Flex Noun
1712 status collapsed
1713
1714 \begin_layout Plain Layout
1715 Preamble
1716 \end_layout
1717
1718 \end_inset
1719
1720  dialog to its own built-in preamble.
1721  Before adding your own declarations in the preamble,
1722  you should make sure that \SpecialChar LyX
1723  doesn't already support what you want to do.
1724  (Remember what we said about reinventing the wheel?) Also,
1725  
1726 \emph on
1727 make sure your preamble code is correct
1728 \emph default
1729 .
1730  \SpecialChar LyX
1731  doesn't check it for you.
1732  If there is an error,
1733  you're likely to get an error like 
1734 \begin_inset Quotes eld
1735 \end_inset
1736
1737
1738 \begin_inset Flex Code
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Missing 
1743 \backslash
1744 begin{document}
1745 \end_layout
1746
1747 \end_inset
1748
1749
1750 \begin_inset Quotes erd
1751 \end_inset
1752
1753 .
1754  If you see this error,
1755  check your preamble.
1756 \end_layout
1757
1758 \begin_layout Subsection
1759 Examples
1760 \end_layout
1761
1762 \begin_layout Standard
1763 Here are some examples of what you can add to a preamble,
1764  and what they do.
1765 \end_layout
1766
1767 \begin_layout Subsubsection
1768 Example #1:
1769  Offsets
1770 \end_layout
1771
1772 \begin_layout Standard
1773 There are two variables under \SpecialChar LaTeX
1774  that control page position:
1775  
1776 \begin_inset Flex Code
1777 status collapsed
1778
1779 \begin_layout Plain Layout
1780
1781 \backslash
1782 hoffset
1783 \end_layout
1784
1785 \end_inset
1786
1787  and 
1788 \begin_inset Flex Code
1789 status collapsed
1790
1791 \begin_layout Plain Layout
1792
1793 \backslash
1794 voffset
1795 \end_layout
1796
1797 \end_inset
1798
1799 .
1800  Their names should be self-explanatory.
1801  These variables are useful if you think for a moment about computer labels.
1802  Sometimes,
1803  the size of a print medium and the area of the medium that you can actually print on aren't the same.
1804  This is where 
1805 \begin_inset Flex Code
1806 status collapsed
1807
1808 \begin_layout Plain Layout
1809
1810 \backslash
1811 hoffset
1812 \end_layout
1813
1814 \end_inset
1815
1816  and 
1817 \begin_inset Flex Code
1818 status collapsed
1819
1820 \begin_layout Plain Layout
1821
1822 \backslash
1823 voffset
1824 \end_layout
1825
1826 \end_inset
1827
1828  come in.
1829 \end_layout
1830
1831 \begin_layout Standard
1832 The default values for 
1833 \begin_inset Flex Code
1834 status collapsed
1835
1836 \begin_layout Plain Layout
1837
1838 \backslash
1839 hoffset
1840 \end_layout
1841
1842 \end_inset
1843
1844  and 
1845 \begin_inset Flex Code
1846 status collapsed
1847
1848 \begin_layout Plain Layout
1849
1850 \backslash
1851 voffset
1852 \end_layout
1853
1854 \end_inset
1855
1856  are both 0
1857 \begin_inset space \thinspace{}
1858 \end_inset
1859
1860 points,
1861  i.
1862 \begin_inset space \thinspace{}
1863 \end_inset
1864
1865 e.
1866 \begin_inset space \space{}
1867 \end_inset
1868
1869 the page isn't shifted.
1870  Unfortunately,
1871  some DVI drivers always seem to shift the page.
1872  We have no idea why,
1873  or why the sysadmin hasn't fixed such behavior.
1874  If you're using \SpecialChar LyX
1875  on a system that you don't personally maintain,
1876  and your sysadmin is a doofus,
1877  
1878 \begin_inset Flex Code
1879 status collapsed
1880
1881 \begin_layout Plain Layout
1882
1883 \backslash
1884 hoffset
1885 \end_layout
1886
1887 \end_inset
1888
1889  and 
1890 \begin_inset Flex Code
1891 status collapsed
1892
1893 \begin_layout Plain Layout
1894
1895 \backslash
1896 voffset
1897 \end_layout
1898
1899 \end_inset
1900
1901  can save the day.
1902  Suppose your left and top margins are always 0.5
1903 \begin_inset space \thinspace{}
1904 \end_inset
1905
1906 inches too big.
1907  You can add this to the preamble:
1908 \end_layout
1909
1910 \begin_layout LyX-Code
1911
1912 \backslash
1913 setlength{
1914 \backslash
1915 hoffset}{-0.5 in}
1916 \end_layout
1917
1918 \begin_layout LyX-Code
1919
1920 \backslash
1921 setlength{
1922 \backslash
1923 voffset}{-0.5 in}
1924 \end_layout
1925
1926 \begin_layout Standard
1927 and your margins should now be correct.
1928 \end_layout
1929
1930 \begin_layout Subsubsection
1931 Example #2:
1932  Labels
1933 \end_layout
1934
1935 \begin_layout Standard
1936 Speaking of labels,
1937  suppose you wanted to print out a bunch of address labels.
1938  There's a rather nice package,
1939  available at your nearest CTAN archive,
1940  for printing sheets of labels:
1941  
1942 \begin_inset Flex Code
1943 status collapsed
1944
1945 \begin_layout Plain Layout
1946 labels.sty
1947 \end_layout
1948
1949 \end_inset
1950
1951 .
1952  Now,
1953  your system may not have this package installed by default.
1954  We leave that up to you to check.
1955  You'll also want to read the documentation for it;
1956  we're not going to do that for you.
1957  Since this is an example,
1958  however,
1959  we'll give you an example of how you use this package.
1960 \end_layout
1961
1962 \begin_layout Standard
1963 First,
1964  make sure you're using the 
1965 \begin_inset Flex Code
1966 status collapsed
1967
1968 \begin_layout Plain Layout
1969 article
1970 \end_layout
1971
1972 \end_inset
1973
1974  document class.
1975  Next,
1976  you need to put the following in your preamble:
1977 \end_layout
1978
1979 \begin_layout LyX-Code
1980
1981 \backslash
1982 usepackage{labels}
1983 \end_layout
1984
1985 \begin_layout LyX-Code
1986
1987 \backslash
1988 LabelCols=3
1989 \end_layout
1990
1991 \begin_layout LyX-Code
1992
1993 \backslash
1994 LabelRows=7
1995 \end_layout
1996
1997 \begin_layout LyX-Code
1998
1999 \backslash
2000 LeftBorder=8mm
2001 \end_layout
2002
2003 \begin_layout LyX-Code
2004
2005 \backslash
2006 RightBorder=8mm
2007 \end_layout
2008
2009 \begin_layout LyX-Code
2010
2011 \backslash
2012 TopBorder=9mm
2013 \end_layout
2014
2015 \begin_layout LyX-Code
2016
2017 \backslash
2018 BottomBorder=2mm
2019 \end_layout
2020
2021 \begin_layout Standard
2022 This sets things up for Avery label sheets,
2023  stock #5360.
2024  You're now ready to print labels,
2025  but you'll need to insert \SpecialChar LaTeX
2026  code,
2027  placing the commands 
2028 \begin_inset Flex Code
2029 status collapsed
2030
2031 \begin_layout Plain Layout
2032
2033 \backslash
2034 begin{labels}
2035 \end_layout
2036
2037 \end_inset
2038
2039  and 
2040 \begin_inset Flex Code
2041 status collapsed
2042
2043 \begin_layout Plain Layout
2044
2045 \backslash
2046 end{labels}
2047 \end_layout
2048
2049 \end_inset
2050
2051  around each label text.
2052  This and other special features of 
2053 \begin_inset Flex Code
2054 status collapsed
2055
2056 \begin_layout Plain Layout
2057 labels.sty
2058 \end_layout
2059
2060 \end_inset
2061
2062  are explained in its documentation.
2063 \end_layout
2064
2065 \begin_layout Standard
2066 Someday,
2067  someone may write a \SpecialChar LyX
2068  layout file to support this package directly.
2069  Maybe that someone is you.
2070 \end_layout
2071
2072 \begin_layout Subsubsection
2073 Example #3:
2074  Paragraph Indentation
2075 \end_layout
2076
2077 \begin_layout Standard
2078 Americans are trained to indent the first line of 
2079 \emph on
2080 every
2081 \emph default
2082  paragraph.
2083  As with all of their other weird quirks,
2084  most Americans will whine and moan until they can have their way and indent the first line of all paragraphs.
2085  (Yes,
2086  we're joking.
2087  (We are?) 
2088 \emph on
2089 Yeah
2090 \emph default
2091 ,
2092  we are.)
2093 \end_layout
2094
2095 \begin_layout Standard
2096 Of course,
2097  this behavior isn't standard typography.
2098  In books,
2099  you typically only indent the first line of a paragraph 
2100 \emph on
2101 if
2102 \emph default
2103  it follows another one.
2104  The idea behind indenting the first line of a paragraph is to distinguish neighboring paragraphs from one another.
2105  If there is no previous paragraph—
2106 for example,
2107  if it follows a figure or is the first paragraph in a section—
2108 then there is no need for indentation.
2109  
2110 \end_layout
2111
2112 \begin_layout Standard
2113 If you're a typical American (we're still joking!),
2114  though,
2115  you don't care about such esoteric things;
2116  you want your indentation!
2117  Add this to the preamble:
2118 \end_layout
2119
2120 \begin_layout LyX-Code
2121
2122 \backslash
2123 usepackage{indentfirst}
2124 \end_layout
2125
2126 \begin_layout Standard
2127 If your \SpecialChar TeX
2128  distribution isn't braindead,
2129  you'll have this package,
2130  and all of your paragraphs will get the indentation the Founding Fathers intended they should have.
2131 \end_layout
2132
2133 \begin_layout Subsubsection
2134 Example #4:
2135  This Document
2136 \end_layout
2137
2138 \begin_layout Standard
2139 You can also check out the preamble of this document to get an idea of some of the advanced things you can do.
2140 \end_layout
2141
2142 \begin_layout Section
2143 \SpecialChar LyX
2144  and \SpecialChar LaTeX
2145  Errors
2146 \end_layout
2147
2148 \begin_layout Standard
2149 When \SpecialChar LyX
2150  calls \SpecialChar LaTeX
2151 ,
2152  it tells \SpecialChar LaTeX
2153  to blithely ignore any errors and keep going.
2154  It then uses the logfile from the \SpecialChar LaTeX
2155  run to do a post-mortem.
2156  After analyzing the logfile,
2157  \SpecialChar LyX
2158  displays a dialog listing the errors.
2159  Clicking on any one of them will take you to the position in your \SpecialChar LyX
2160  file where the error occurred.
2161 \begin_inset Foot
2162 status collapsed
2163
2164 \begin_layout Plain Layout
2165 Well,
2166  usually.
2167  Analyzing the logfile is a tough job,
2168  and \SpecialChar LyX
2169  doesn't always go to the right line.
2170  There are also cases where \SpecialChar LaTeX
2171  reports the error on one line,
2172  but the actual error is earlier.
2173  This is not unlike forgetting a closing brace in a program:
2174  You'll get an error,
2175  but only later.
2176 \end_layout
2177
2178 \end_inset
2179
2180
2181 \end_layout
2182
2183 \begin_layout Standard
2184 Some folks also like to look at the log file directly:
2185  It is available from 
2186 \begin_inset Flex Noun
2187 status collapsed
2188
2189 \begin_layout Plain Layout
2190 Document\SpecialChar menuseparator
2191 LaTeX
2192 \begin_inset space ~
2193 \end_inset
2194
2195 Log
2196 \end_layout
2197
2198 \end_inset
2199
2200 .
2201  There are some fairly common error messages and warnings.
2202  We'll cover those here.
2203  You should look at a good \SpecialChar LaTeX
2204  book for a complete listing.
2205 \end_layout
2206
2207 \begin_layout Itemize
2208 \begin_inset Flex Code
2209 status collapsed
2210
2211 \begin_layout Plain Layout
2212 LaTeX Warning
2213 \end_layout
2214
2215 \end_inset
2216
2217
2218 \begin_inset Newline newline
2219 \end_inset
2220
2221 Anything beginning with these words is a warning message for the purpose of 
2222 \begin_inset Quotes eld
2223 \end_inset
2224
2225 debugging
2226 \begin_inset Quotes erd
2227 \end_inset
2228
2229  the \SpecialChar LaTeX
2230  code itself.
2231  You'll get messages like this if you added or changed cross-references or bibliography entries,
2232  in which case,
2233  \SpecialChar LaTeX
2234  is trying to tell you that you need to make another run.
2235  You can by-and-large ignore these.
2236 \end_layout
2237
2238 \begin_layout Itemize
2239 \begin_inset Flex Code
2240 status collapsed
2241
2242 \begin_layout Plain Layout
2243 LaTeX Font Warning
2244 \end_layout
2245
2246 \end_inset
2247
2248
2249 \begin_inset Newline newline
2250 \end_inset
2251
2252 Another warning message,
2253  this time about fonts which \SpecialChar LaTeX
2254  couldn't find.
2255  The rest of the message will often say something about a replacement font that \SpecialChar LaTeX
2256  used.
2257  You can safely ignore these,
2258  too.
2259 \end_layout
2260
2261 \begin_layout Itemize
2262 \begin_inset Flex Code
2263 status collapsed
2264
2265 \begin_layout Plain Layout
2266 Overfull 
2267 \backslash
2268 hbox
2269 \end_layout
2270
2271 \end_inset
2272
2273
2274 \begin_inset Newline newline
2275 \end_inset
2276
2277 \SpecialChar LaTeX
2278  absolutely 
2279 \emph on
2280 loves
2281 \emph default
2282  to spew these out.
2283  It seems to generate at least one of these messages for just about any document you write.
2284  They are warnings about lines that were too long and run past the right margin.
2285  This happens if \SpecialChar LaTeX
2286  does not find a reasonable way to break the lines (notoriously often with typewriter font,
2287  since this does not allow for automatic break points).
2288  In many cases,
2289  this is unnoticeable in the final output.
2290  (It can be just a point or two.) Sometimes,
2291  however,
2292  the lines run rather visibly into the margin;
2293  something you will not want to have in your final print.
2294  
2295 \begin_inset Newline newline
2296 \end_inset
2297
2298 There are several global ways to try to minimize the overfull lines.
2299  Clicking 
2300 \family sans
2301 Enable micro-typographic extensions
2302 \family default
2303  in 
2304 \family sans
2305 Document\SpecialChar menuseparator
2306 Settings\SpecialChar menuseparator
2307 Fonts
2308 \family default
2309  might already improve things a lot.
2310  Furthermore,
2311  \SpecialChar LaTeX
2312  code such as the following in 
2313 \family sans
2314 Document\SpecialChar menuseparator
2315 Settings\SpecialChar menuseparator
2316 Preamble
2317 \family default
2318  usually reduces the overfull lines drastically (we use this in the preamble of this document):
2319 \end_layout
2320
2321 \begin_deeper
2322 \begin_layout LyX-Code
2323
2324 \backslash
2325 tolerance 1414
2326 \begin_inset Newline newline
2327 \end_inset
2328
2329
2330 \backslash
2331 hbadness 1414
2332 \begin_inset Newline newline
2333 \end_inset
2334
2335
2336 \backslash
2337 emergencystretch 1.5em
2338 \begin_inset Newline newline
2339 \end_inset
2340
2341
2342 \backslash
2343 hfuzz 0.3pt
2344 \end_layout
2345
2346 \begin_layout Standard
2347 In some cases,
2348  however,
2349  you eventually have to rewrite the text to get the line breaking right.
2350 \begin_inset Foot
2351 status collapsed
2352
2353 \begin_layout Plain Layout
2354 For more information,
2355  see 
2356 \begin_inset Flex URL
2357 status open
2358
2359 \begin_layout Plain Layout
2360
2361 http://www.tex.ac.uk/FAQ-overfull.html
2362 \end_layout
2363
2364 \end_inset
2365
2366
2367 \end_layout
2368
2369 \end_inset
2370
2371
2372 \end_layout
2373
2374 \begin_layout Standard
2375 In any case,
2376  you should check the respective lines,
2377  at least for the final version of your document.
2378  Your eyes will tell you if there's a problem with something that's too wide.
2379 \begin_inset Foot
2380 status collapsed
2381
2382 \begin_layout Plain Layout
2383 You can also enable the `draft' option in 
2384 \begin_inset Flex Noun
2385 status collapsed
2386
2387 \begin_layout Plain Layout
2388 Document\SpecialChar menuseparator
2389 Settings
2390 \end_layout
2391
2392 \end_inset
2393
2394 ,
2395  and then \SpecialChar LaTeX
2396  will draw a black box in the margin of lines that are overfull.
2397 \end_layout
2398
2399 \end_inset
2400
2401  
2402 \end_layout
2403
2404 \end_deeper
2405 \begin_layout Itemize
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410 Underfull 
2411 \backslash
2412 hbox
2413 \end_layout
2414
2415 \end_inset
2416
2417
2418 \begin_inset Newline newline
2419 \end_inset
2420
2421 Not quite as common as its cousin.
2422  This happens again if \SpecialChar LaTeX
2423  does not find a reasonable break point and consequently generates too loose lines.
2424  As with the overfull lines,
2425  you should check if this is a visible problem.
2426 \end_layout
2427
2428 \begin_layout Itemize
2429 \begin_inset Flex Code
2430 status collapsed
2431
2432 \begin_layout Plain Layout
2433 Overfull 
2434 \backslash
2435 vbox
2436 \end_layout
2437
2438 \end_inset
2439
2440  and 
2441 \begin_inset Flex Code
2442 status collapsed
2443
2444 \begin_layout Plain Layout
2445 Underfull 
2446 \backslash
2447 vbox
2448 \end_layout
2449
2450 \end_inset
2451
2452
2453 \begin_inset Newline newline
2454 \end_inset
2455
2456 Warnings about troubles breaking the page.
2457  Once again,
2458  just look at the output.
2459  Your eyes will tell you where something has gone wrong.
2460 \end_layout
2461
2462 \begin_layout Itemize
2463 \begin_inset Flex Code
2464 status collapsed
2465
2466 \begin_layout Plain Layout
2467 LaTeX Error:
2468  File 
2469 \begin_inset Quotes els
2470 \end_inset
2471
2472 Xxxx
2473 \begin_inset Quotes ers
2474 \end_inset
2475
2476  not found
2477 \end_layout
2478
2479 \end_inset
2480
2481
2482 \begin_inset Newline newline
2483 \end_inset
2484
2485 The file 
2486 \begin_inset Quotes eld
2487 \end_inset
2488
2489 Xxxx
2490 \begin_inset Quotes erd
2491 \end_inset
2492
2493  isn't installed on this system.
2494  This usually appears because some package your document needs isn't installed.
2495  If you didn't touch the preamble or didn't use the 
2496 \begin_inset Flex Code
2497 status collapsed
2498
2499 \begin_layout Plain Layout
2500
2501 \backslash
2502 usepackage{}
2503 \end_layout
2504
2505 \end_inset
2506
2507  command,
2508  then one of the packages \SpecialChar LyX
2509  tried to load is missing.
2510  Use 
2511 \begin_inset Flex Noun
2512 status collapsed
2513
2514 \begin_layout Plain Layout
2515 Help\SpecialChar menuseparator
2516 \SpecialChar LaTeX
2517  Configuration
2518 \end_layout
2519
2520 \end_inset
2521
2522  to get a list of packages that \SpecialChar LyX
2523  knows about.
2524  This file is updated whenever you reconfigure \SpecialChar LyX
2525  (using 
2526 \begin_inset Flex Noun
2527 status collapsed
2528
2529 \begin_layout Plain Layout
2530 Tools\SpecialChar menuseparator
2531 Reconfigure
2532 \end_layout
2533
2534 \end_inset
2535
2536 ) and tells you which packages have been detected and what they do.
2537 \begin_inset Newline newline
2538 \end_inset
2539
2540 If you did use the 
2541 \begin_inset Flex Code
2542 status collapsed
2543
2544 \begin_layout Plain Layout
2545
2546 \backslash
2547 usepackage{}
2548 \end_layout
2549
2550 \end_inset
2551
2552  command and the package in question isn't installed,
2553  then you'll need to install it yourself.
2554 \end_layout
2555
2556 \begin_layout Itemize
2557 \begin_inset Flex Code
2558 status collapsed
2559
2560 \begin_layout Plain Layout
2561 LaTeX Error:
2562  Unknown option
2563 \end_layout
2564
2565 \end_inset
2566
2567
2568 \begin_inset Newline newline
2569 \end_inset
2570
2571 Error messages beginning with this are trying to tell you that you specified a bad or undefined option to a package.
2572  Check the package's documentation.
2573 \end_layout
2574
2575 \begin_layout Itemize
2576 \begin_inset Flex Code
2577 status collapsed
2578
2579 \begin_layout Plain Layout
2580 Undefined control sequence
2581 \end_layout
2582
2583 \end_inset
2584
2585
2586 \begin_inset Newline newline
2587 \end_inset
2588
2589 If you've inserted \SpecialChar LaTeX
2590  code into your document,
2591  but made a typo,
2592  you'll get one of these.
2593  You may have forgotten to load a package.
2594  In any case,
2595  this error message usually means that you used an undefined command.
2596  
2597 \end_layout
2598
2599 \begin_layout Standard
2600 There are other error and warning messages.
2601  Some are self-explanatory.
2602  These are usually \SpecialChar LaTeX
2603  messages.
2604  Others are downright cryptic.
2605  These are usually \SpecialChar TeX
2606  error messages,
2607  and we really have 
2608 \emph on
2609 no clue
2610 \emph default
2611  what they mean or how to decipher them.
2612  No-one does.
2613 \end_layout
2614
2615 \begin_layout Standard
2616 There's a general sequence you should follow if you get error messages:
2617 \end_layout
2618
2619 \begin_layout Enumerate
2620 Look at the \SpecialChar LaTeX
2621  code you inserted for typos.
2622 \end_layout
2623
2624 \begin_layout Enumerate
2625 If there are no typos,
2626  check that you used the command(s) correctly.
2627 \end_layout
2628
2629 \begin_layout Enumerate
2630 If you get a bunch of error boxes piled up at the very top of the document—
2631 and especially if you see a 
2632 \begin_inset Quotes eld
2633 \end_inset
2634
2635
2636 \begin_inset Flex Code
2637 status collapsed
2638
2639 \begin_layout Plain Layout
2640 Missing 
2641 \backslash
2642 begin{document}
2643 \end_layout
2644
2645 \end_inset
2646
2647
2648 \begin_inset Quotes erd
2649 \end_inset
2650
2651  error—
2652 it means that there are errors in the preamble.
2653  Start debugging your preamble.
2654 \end_layout
2655
2656 \begin_layout Enumerate
2657 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2658  code to the document,
2659  the first suspect is your \SpecialChar LaTeX
2660  distribution itself.
2661  Check for missing packages and install them.
2662 \end_layout
2663
2664 \begin_layout Enumerate
2665 Okay,
2666  so there are no missing packages.
2667  Did you use any of the fine-tuning options in \SpecialChar LyX
2668 ?
2669  Specifically,
2670  did you 
2671 \emph on
2672 misuse
2673 \emph default
2674  any of them,
2675  like trying to manually insert lots of 
2676 \begin_inset Flex Code
2677 status collapsed
2678
2679 \begin_layout Plain Layout
2680
2681 \change_deleted 177693 1654669036
2682 Protected
2683 \change_inserted 177693 1654669038
2684 Non-Breaking
2685 \change_unchanged
2686
2687 \begin_inset space ~
2688 \end_inset
2689
2690
2691 \change_deleted 177693 1654669040
2692 Blanks
2693 \change_inserted 177693 1654669041
2694 Spaces
2695 \change_unchanged
2696
2697 \end_layout
2698
2699 \end_inset
2700
2701 ,
2702  
2703 \begin_inset Flex Code
2704 status collapsed
2705
2706 \begin_layout Plain Layout
2707 Linebreaks
2708 \end_layout
2709
2710 \end_inset
2711
2712 ,
2713  or 
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Pagebreaks
2719 \end_layout
2720
2721 \end_inset
2722
2723 ?
2724  Did you try to kludge something together with these instead of using the appropriate paragraph environment?
2725 \end_layout
2726
2727 \begin_layout Enumerate
2728 All right,
2729  you didn't use any of the fine-tuning options,
2730  you played by the rules.
2731  Did you try to pull a fancy maneuver?
2732  Did you do something funky inside a table or an equation,
2733  like inserting a graphic into a table cell?
2734 \end_layout
2735
2736 \begin_layout Enumerate
2737 Do you have long sections of text where \SpecialChar LaTeX
2738  cannot find a place to break a line?
2739  By default,
2740  \SpecialChar LaTeX
2741  is rather strict about how much extra inter-word spacing it will add in order to break a line.
2742  Preferably,
2743  you should rework the paragraph to avoid the problem.
2744 \end_layout
2745
2746 \begin_layout Enumerate
2747 Did you go overboard with the nesting?
2748  \SpecialChar LyX
2749  (currently) doesn't check to make sure you're in the limits for nesting environments.
2750  If you nested a bunch of environments to the 
2751 \begin_inset Formula $17^{\mathrm{th}}$
2752 \end_inset
2753
2754  level,
2755  that's the problem.
2756  (The limit in \SpecialChar LaTeX
2757  is five.)
2758 \end_layout
2759
2760 \begin_layout Enumerate
2761 Okay,
2762  you didn't get any error messages,
2763  but your output looks awful.
2764  If you have a table or figure that's too wide or long for the page,
2765  you need to:
2766 \end_layout
2767
2768 \begin_deeper
2769 \begin_layout Enumerate
2770 rescale the figure so it fits.
2771 \end_layout
2772
2773 \begin_layout Enumerate
2774 trim down the table so it fits.
2775 \end_layout
2776
2777 \end_deeper
2778 \begin_layout Enumerate
2779 If something else is wrong with the output,
2780  and you didn't try to pull anything fancy or kludge the fine-tuning options,
2781  we're not sure what's wrong.
2782 \end_layout
2783
2784 \begin_layout Standard
2785 If all this doesn't help—
2786 well,
2787  then 
2788 \emph on
2789 perhaps
2790 \emph default
2791  you might have found a bug in \SpecialChar LyX
2792 \SpecialChar ldots
2793 .
2794 \end_layout
2795
2796 \begin_layout Chapter
2797
2798 \change_inserted 564990737 1672345271
2799 Document classes
2800 \end_layout
2801
2802 \begin_layout Standard
2803
2804 \change_inserted 564990737 1672345272
2805 As explained in the 
2806 \emph on
2807 User's Guide
2808 \emph default
2809 ,
2810  \SpecialChar LaTeX
2811  originally offered four standard document classes,
2812  article,
2813  report,
2814  book and letter,
2815  but individuals and organizations,
2816  most notably the American Mathematical Society in the early days,
2817  have made many contributions to extending the range of document classes.
2818  In this chapter we summarize the main externally maintained classes,
2819  some of which are marked “Unavailable:” in the pull-down 
2820 \family sans
2821 Document
2822 \begin_inset space ~
2823 \end_inset
2824
2825
2826 \bar under
2827 c
2828 \bar default
2829 lass
2830 \family default
2831  list in the 
2832 \family sans
2833 \bar under
2834 D
2835 \bar default
2836 ocument\SpecialChar menuseparator
2837
2838 \bar under
2839 S
2840 \bar default
2841 ettings\SpecialChar menuseparator
2842 Document
2843 \begin_inset space ~
2844 \end_inset
2845
2846 class
2847 \family default
2848  dialog and which you will need to install as described in the 
2849 \emph on
2850 Installing New Document Classes
2851 \emph default
2852  chapter of the 
2853 \emph on
2854 Customization
2855 \emph default
2856  manual if you want to use them.
2857  
2858 \end_layout
2859
2860 \begin_layout Section
2861
2862 \change_inserted 564990737 1670439533
2863 \begin_inset CommandInset label
2864 LatexCommand label
2865 name "sec:Collections"
2866
2867 \end_inset
2868
2869 Collections
2870 \end_layout
2871
2872 \begin_layout Subsection
2873
2874 \change_inserted 564990737 1672345298
2875 \begin_inset CommandInset label
2876 LatexCommand label
2877 name "subsec:AMS-LaTeX-(American-Mathematical"
2878
2879 \end_inset
2880
2881 AMS-\SpecialChar LaTeX
2882  (American Mathematical Society)
2883 \end_layout
2884
2885 \begin_layout Standard
2886
2887 \change_inserted 564990737 1672345298
2888 The \SpecialChar LyX
2889  supported document classes 
2890 \family sans
2891 article (AMS)
2892 \family default
2893  and 
2894 \family sans
2895 book (AMS)
2896 \family default
2897  are maintained by the Society;
2898  use of their features is described in the Math manual and on their website 
2899 \begin_inset Flex URL
2900 status collapsed
2901
2902 \begin_layout Plain Layout
2903
2904 \change_inserted 564990737 1672345298
2905
2906 http://www.ams.org/publications/authors/tex/amslatex
2907 \change_unchanged
2908
2909 \end_layout
2910
2911 \end_inset
2912
2913 .
2914  The following summary was originally provided by 
2915 \noun on
2916 David Johnson
2917 \noun default
2918  and updated by 
2919 \noun on
2920 Richard Heck
2921 \noun default
2922  and the \SpecialChar LyX
2923  Team
2924 \noun on
2925 .
2926 \change_deleted 564990737 1672345297
2927
2928 \noun default
2929 AMS \SpecialChar LaTeX
2930
2931 \end_layout
2932
2933 \begin_layout Standard
2934
2935 \change_deleted 564990737 1672345297
2936 by 
2937 \noun on
2938 David Johnson
2939 \noun default
2940 ;
2941  updated by 
2942 \noun on
2943 Richard Kimberly Heck
2944 \change_unchanged
2945
2946 \end_layout
2947
2948 \begin_layout Standard
2949 \begin_inset VSpace bigskip
2950 \end_inset
2951
2952
2953 \end_layout
2954
2955 \begin_layout Standard
2956 \noindent
2957 The AMS \SpecialChar LaTeX
2958  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
2959  The layouts are not tailored to a specific journal,
2960  but easily can be.
2961  You should refer to the AMS documentation for specific instructions for each journal (usually it will entail only changing a single line in the \SpecialChar TeX
2962  output).
2963  That documentation is available on the Web at 
2964 \begin_inset Flex URL
2965 status open
2966
2967 \begin_layout Plain Layout
2968
2969 http://www.ams.org
2970 \end_layout
2971
2972 \end_inset
2973
2974  or by ftp at 
2975 \begin_inset Flex URL
2976 status open
2977
2978 \begin_layout Plain Layout
2979
2980 ftp://ftp.ams.org/pub/tex/amslatex/
2981 \end_layout
2982
2983 \end_inset
2984
2985 .
2986  These layouts are appropriate,
2987  and useful,
2988  for any mathematical writing.
2989  
2990 \end_layout
2991
2992 \begin_layout Standard
2993 There are two basic AMS \SpecialChar LaTeX
2994  layouts:
2995  
2996 \end_layout
2997
2998 \begin_layout Itemize
2999 amsart:
3000  The standard AMS article format
3001 \change_inserted 564990737 1672345333
3002 ;
3003  see 
3004 \family sans
3005 File\SpecialChar menuseparator
3006 Open Example\SpecialChar menuseparator
3007 Articles\SpecialChar menuseparator
3008 American Mathematical Society (AMS)
3009 \change_unchanged
3010
3011 \family default
3012 .
3013 \end_layout
3014
3015 \begin_layout Itemize
3016 amsbook:
3017  the standard AMS book (really,
3018  monograph) format
3019 \change_inserted 564990737 1672345366
3020 ;
3021  see 
3022 \family sans
3023 File\SpecialChar menuseparator
3024 Open Example\SpecialChar menuseparator
3025 Books\SpecialChar menuseparator
3026 American Mathematical Society (AMS)
3027 \change_unchanged
3028
3029 \family default
3030 .
3031 \change_inserted 564990737 1672345369
3032
3033 \end_layout
3034
3035 \begin_layout Itemize
3036
3037 \change_inserted 564990737 1672345383
3038
3039 \family sans
3040 amsproc
3041 \family default
3042 :
3043  the standard AMS proceedings format.
3044 \end_layout
3045
3046 \begin_layout Standard
3047
3048 \change_inserted 564990737 1672345383
3049 \SpecialChar LyX
3050  only supports the first two natively;
3051  see the 
3052 \emph on
3053 Installing New Document Classes
3054 \emph default
3055  chapter of the 
3056 \emph on
3057 Customization
3058 \emph default
3059  manual if you want to use 
3060 \family sans
3061 amsproc
3062 \family default
3063 .
3064 \end_layout
3065
3066 \begin_layout Standard
3067 The layouts themselves contain only the minimum necessary to use the AMS classes.
3068  They do not,
3069  in particular,
3070  contain any of the `theorem' environments used for setting theorems,
3071  lemmas,
3072  and the like.
3073  These are contained,
3074  instead,
3075  in the 
3076 \change_deleted 564990737 1672345416
3077
3078 \begin_inset Flex Code
3079 status collapsed
3080
3081 \begin_layout Plain Layout
3082 Theorems (AMS)
3083 \end_layout
3084
3085 \end_inset
3086
3087
3088 \change_inserted 564990737 1672345416
3089
3090 \family sans
3091 AMS Theorems
3092 \change_unchanged
3093
3094 \family default
3095  module,
3096  which is loaded by default when you select one of the AMS classes.
3097  (It can also be used with other classes and can be removed,
3098  if you would rather use something else.) Less commonly used environments are in the 
3099 \change_deleted 564990737 1672345436
3100
3101 \begin_inset Flex Code
3102 status collapsed
3103
3104 \begin_layout Plain Layout
3105 Theorems (AMS-Extended)
3106 \end_layout
3107
3108 \end_inset
3109
3110
3111 \change_inserted 564990737 1672345436
3112  
3113 \family sans
3114 AMS Theorems (Extended)
3115 \change_unchanged
3116
3117 \family default
3118  module,
3119  which must be loaded manually.
3120 \end_layout
3121
3122 \begin_layout Standard
3123 By default,
3124  theorems and the like are numbered consecutively throughout the document,
3125  but this may be modified by loading the module 
3126 \change_deleted 564990737 1672345461
3127
3128 \begin_inset Flex Code
3129 status collapsed
3130
3131 \begin_layout Plain Layout
3132 Theorems (Order by Section)
3133 \end_layout
3134
3135 \end_inset
3136
3137
3138 \change_inserted 564990737 1672345461
3139
3140 \family sans
3141 Standard Theorems (Numbered by Section)
3142 \change_unchanged
3143
3144 \family default
3145  or,
3146  if you are using 
3147 \begin_inset Flex Code
3148 status collapsed
3149
3150 \begin_layout Plain Layout
3151 book (AMS)
3152 \end_layout
3153
3154 \end_inset
3155
3156 ,
3157  the module 
3158 \change_deleted 564990737 1672345479
3159
3160 \begin_inset Flex Code
3161 status collapsed
3162
3163 \begin_layout Plain Layout
3164 Theorems (Order by Chapter)
3165 \end_layout
3166
3167 \end_inset
3168
3169
3170 \change_inserted 564990737 1672345480
3171
3172 \family sans
3173 Standard Theorems (Numbered by Chapter)
3174 \change_unchanged
3175
3176 \family default
3177 .
3178  These will number the results as 
3179 \begin_inset Formula $n.m$
3180 \end_inset
3181
3182 ,
3183  where the first number refers to the section (or chapter) and the second refers to the total number of results so far in that section (or chapter).
3184  Many environments are also available unnumbered.
3185  These are indicated by an asterisk at the end.
3186  If you happen to want 
3187 \emph on
3188 only
3189 \emph default
3190  unnumbered results,
3191  the module 
3192 \change_deleted 564990737 1672345498
3193
3194 \begin_inset Flex Code
3195 status collapsed
3196
3197 \begin_layout Plain Layout
3198 Theorems (Starred)
3199 \end_layout
3200
3201 \end_inset
3202
3203
3204 \change_inserted 564990737 1672345498
3205
3206 \family sans
3207 Standard Theorems (Unnumbered)
3208 \change_unchanged
3209
3210 \family default
3211  provides that option.
3212 \end_layout
3213
3214 \begin_layout Standard
3215 Note that these modules do not 
3216 \emph on
3217 have
3218 \emph default
3219  to be used with the AMS classes.
3220  It is perfectly possible to use the 
3221 \change_deleted 564990737 1672345520
3222
3223 \begin_inset Flex Code
3224 status collapsed
3225
3226 \begin_layout Plain Layout
3227 Theorems (AMS)
3228 \end_layout
3229
3230 \end_inset
3231
3232
3233 \change_inserted 564990737 1672345520
3234
3235 \family sans
3236 AMS Theorems
3237 \change_unchanged
3238
3239 \family default
3240  module,
3241  and the others mentioned,
3242  with other classes,
3243  such as 
3244 \begin_inset Flex Code
3245 status collapsed
3246
3247 \begin_layout Plain Layout
3248 article
3249 \end_layout
3250
3251 \end_inset
3252
3253 ,
3254  
3255 \begin_inset Flex Code
3256 status collapsed
3257
3258 \begin_layout Plain Layout
3259 report
3260 \end_layout
3261
3262 \end_inset
3263
3264 ,
3265  
3266 \begin_inset Flex Code
3267 status collapsed
3268
3269 \begin_layout Plain Layout
3270 book (KOMA-script)
3271 \end_layout
3272
3273 \end_inset
3274
3275 ,
3276  and so forth.
3277 \end_layout
3278
3279 \begin_layout Subsubsection
3280 What these layouts provide
3281 \end_layout
3282
3283 \begin_layout Standard
3284 There is a long list of included environments provided by these layouts.
3285  In AMS-\SpecialChar LaTeX
3286 ,
3287  there is,
3288  in fact,
3289  an opportunity to define an unlimited variety of `theorem' environments.
3290  However,
3291  the AMS recommends the environments that are available in \SpecialChar LyX
3292 .
3293  
3294 \end_layout
3295
3296 \begin_layout Standard
3297 The following environments—
3298 as well as the standard environments,
3299  such as 
3300 \begin_inset Flex Noun
3301 status collapsed
3302
3303 \begin_layout Plain Layout
3304 section
3305 \end_layout
3306
3307 \end_inset
3308
3309 ,
3310  
3311 \begin_inset Flex Noun
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315 bibliography
3316 \end_layout
3317
3318 \end_inset
3319
3320 ,
3321  
3322 \begin_inset Flex Noun
3323 status collapsed
3324
3325 \begin_layout Plain Layout
3326 title
3327 \end_layout
3328
3329 \end_inset
3330
3331 ,
3332  
3333 \begin_inset Flex Noun
3334 status collapsed
3335
3336 \begin_layout Plain Layout
3337 author
3338 \end_layout
3339
3340 \end_inset
3341
3342 ,
3343  and 
3344 \begin_inset Flex Noun
3345 status collapsed
3346
3347 \begin_layout Plain Layout
3348 date
3349 \end_layout
3350
3351 \end_inset
3352
3353
3354 are provided by 
3355 \begin_inset Flex Code
3356 status collapsed
3357
3358 \begin_layout Plain Layout
3359 article (AMS)
3360 \end_layout
3361
3362 \end_inset
3363
3364  and 
3365 \begin_inset Flex Code
3366 status collapsed
3367
3368 \begin_layout Plain Layout
3369 book (AMS)
3370 \end_layout
3371
3372 \end_inset
3373
3374 :
3375 \end_layout
3376
3377 \begin_layout Description
3378 Address This should be the author's permanent address.
3379 \end_layout
3380
3381 \begin_layout Description
3382 Current
3383 \begin_inset space ~
3384 \end_inset
3385
3386 Address This should be the author's temporary address at the time of submission,
3387  if different from the Address.
3388 \end_layout
3389
3390 \begin_layout Description
3391 Email Author's e-mail address
3392 \end_layout
3393
3394 \begin_layout Description
3395 URL Author's Web address,
3396  if desired.
3397 \end_layout
3398
3399 \begin_layout Description
3400 Keywords Key words or phrases used to identify specific topics discussed in the paper.
3401 \end_layout
3402
3403 \begin_layout Description
3404 Subjectclass These refer to the AMS Subject Classifications,
3405  published and described in 
3406 \emph on
3407 Mathematical Reviews
3408 \emph default
3409 .
3410  These are also available online at the AMS cites listed above.
3411 \end_layout
3412
3413 \begin_layout Description
3414 Thanks
3415 \end_layout
3416
3417 \begin_layout Description
3418 Dedicatory
3419 \end_layout
3420
3421 \begin_layout Description
3422 Translator
3423 \end_layout
3424
3425 \begin_layout Standard
3426 The following environments are provided by both the 
3427 \change_deleted 564990737 1672345566
3428
3429 \begin_inset Flex Code
3430 status collapsed
3431
3432 \begin_layout Plain Layout
3433 Theorems
3434 \end_layout
3435
3436 \end_inset
3437
3438
3439 \change_inserted 564990737 1672345566
3440
3441 \family sans
3442 Standard Theorems
3443 \change_unchanged
3444
3445 \family default
3446  and 
3447 \change_deleted 564990737 1672345580
3448
3449 \begin_inset Flex Code
3450 status collapsed
3451
3452 \begin_layout Plain Layout
3453 Theorems (AMS)
3454 \end_layout
3455
3456 \end_inset
3457
3458
3459 \change_inserted 564990737 1672345580
3460
3461 \family sans
3462 AMS Theorems
3463 \change_unchanged
3464
3465 \family default
3466  modules,
3467  in the latter case in both starred (unnumbered) and unstarred (numbered) versions.
3468  These same environments are provided only in the starred versions by the 
3469 \change_deleted 564990737 1672345596
3470
3471 \begin_inset Flex Code
3472 status collapsed
3473
3474 \begin_layout Plain Layout
3475 Theorems (Starred)
3476 \end_layout
3477
3478 \end_inset
3479
3480
3481 \change_inserted 564990737 1672345596
3482
3483 \family sans
3484 Standard Theorems
3485 \change_unchanged
3486
3487 \family default
3488  module:
3489 \end_layout
3490
3491 \begin_layout Theorem
3492 This is typically used for the statements of major results.
3493  
3494 \end_layout
3495
3496 \begin_layout Corollary*
3497 This is used for statements which follow fairly directly from previous statements.
3498  Again,
3499  these can be major results.
3500  
3501 \end_layout
3502
3503 \begin_layout Lemma
3504 These are smaller results needed to prove other statements.
3505 \end_layout
3506
3507 \begin_layout Proposition
3508 These are less major results which (hopefully) add to the general theory being discussed.
3509 \end_layout
3510
3511 \begin_layout Conjecture
3512 These are statements provided without justification,
3513  which the author does not know how to prove,
3514  but which seem to be true (to the author,
3515  at least).
3516 \end_layout
3517
3518 \begin_layout Definition*
3519 Guess what this is for.
3520  The font is different for this environment than for the previous ones.
3521  
3522 \end_layout
3523
3524 \begin_layout Example*
3525 Used for examples illustrating proven results.
3526 \end_layout
3527
3528 \begin_layout Problem
3529 It's not really known what this is for.
3530  You should figure it out.
3531 \end_layout
3532
3533 \begin_layout Exercise*
3534 Write a description for this one.
3535 \end_layout
3536
3537 \begin_layout Remark
3538 This environment is also a type of theorem,
3539  usually a lesser sort of observation.
3540 \end_layout
3541
3542 \begin_layout Claim*
3543 Often used in the course of giving a proof of a larger result.
3544 \end_layout
3545
3546 \begin_layout Case
3547 Generally,
3548  these are used to break up long arguments,
3549  using specific instances of some condition.
3550  
3551 \end_layout
3552
3553 \begin_layout Case
3554 The numbering scheme for cases is on its own,
3555  not together with other numbered statements.
3556  
3557 \end_layout
3558
3559 \begin_layout Proof
3560 At the end of this environment,
3561  a QED symbol (usually a square,
3562  but it can vary with different styles) is placed.
3563  If you want to have other environments within this one—
3564 for example,
3565  Case environments—
3566 and have the QED symbol appear only after them,
3567  then the other environments need to be nested within the proof environment.
3568  See the section 
3569 \emph on
3570 Nesting Environments
3571 \emph default
3572  of the 
3573 \emph on
3574 User's Guide
3575 \emph default
3576  for information on nesting.
3577 \end_layout
3578
3579 \begin_layout Fact
3580
3581 \change_inserted 564990737 1672345651
3582 Used in a way similar to Proposition,
3583  though perhaps lower on the scale.
3584 \end_layout
3585
3586 \begin_layout Standard
3587 And these environments are provided by 
3588 \change_deleted 564990737 1672345684
3589
3590 \begin_inset Flex Code
3591 status collapsed
3592
3593 \begin_layout Plain Layout
3594 Theorems (AMS-Extended)
3595 \end_layout
3596
3597 \end_inset
3598
3599
3600 \change_inserted 564990737 1672345689
3601
3602 \family sans
3603 AMS Theorems (Extended
3604 \family default
3605 )
3606 \change_unchanged
3607 :
3608 \end_layout
3609
3610 \begin_layout Criterion*
3611 A required condition.
3612 \end_layout
3613
3614 \begin_layout Algorithm*
3615 A general procedure to be used.
3616 \end_layout
3617
3618 \begin_layout Axiom*
3619 This is a property or statement taken as true within the system being discussed.
3620 \end_layout
3621
3622 \begin_layout Condition*
3623 Sometimes used to state a condition assumed within the present context of discussion.
3624 \end_layout
3625
3626 \begin_layout Note*
3627 Similar to a Remark.
3628 \end_layout
3629
3630 \begin_layout Notation*
3631 Used for the explanation of,
3632  yes,
3633  notation.
3634 \end_layout
3635
3636 \begin_layout Summary
3637 Do we really need to tell you?
3638  
3639 \end_layout
3640
3641 \begin_layout Acknowledgement*
3642 Acknowledgement.
3643 \end_layout
3644
3645 \begin_layout Conclusion*
3646 Sometimes used at the end of a long train of argument.
3647 \change_deleted 564990737 1672345729
3648
3649 \end_layout
3650
3651 \begin_layout Fact
3652
3653 \change_deleted 564990737 1672345638
3654 Used in a way similar to Proposition,
3655  though perhaps lower on the scale.
3656 \change_inserted 564990737 1672345720
3657
3658 \end_layout
3659
3660 \begin_layout Assumption*
3661
3662 \change_inserted 564990737 1672345721
3663 Assumption
3664 \end_layout
3665
3666 \begin_layout Question*
3667
3668 \change_inserted 564990737 1672345721
3669 Question
3670 \end_layout
3671
3672 \begin_layout Standard
3673
3674 \change_inserted 564990737 1672345721
3675 There are ten more Maths modules available including several offering options ordered on 
3676 \family sans
3677 (Numbered by Type \SpecialChar ldots
3678 )
3679 \family default
3680 .
3681 \change_unchanged
3682
3683 \end_layout
3684
3685 \begin_layout Standard
3686 In addition,
3687  the AMS classes automatically provide the AMS \SpecialChar LaTeX
3688  and AMS fonts packages.
3689  They need to be available on your system in order to use these environments.
3690 \end_layout
3691
3692 \begin_layout Subsection
3693
3694 \change_inserted 564990737 1671383236
3695 \begin_inset CommandInset label
3696 LatexCommand label
3697 name "subsec:Extra-font-sizes"
3698
3699 \end_inset
3700
3701 Extra font sizes
3702 \end_layout
3703
3704 \begin_layout Standard
3705
3706 \change_inserted 564990737 1671383236
3707 The “Extra font sizes” collection provides the document classes 
3708 \family sans
3709 article
3710 \begin_inset space \thinspace{}
3711 \end_inset
3712
3713 (with extra font sizes)
3714 \family default
3715 ,
3716  
3717 \family sans
3718 book
3719 \begin_inset space \thinspace{}
3720 \end_inset
3721
3722 (with extra font sizes)
3723 \family default
3724 ,
3725  
3726 \family sans
3727 letter
3728 \begin_inset space \thinspace{}
3729 \end_inset
3730
3731 (with extra font sizes)
3732 \family default
3733  and 
3734 \family sans
3735 report
3736 \begin_inset space \thinspace{}
3737 \end_inset
3738
3739 (with extra font sizes)
3740 \family default
3741  which use the 
3742 \family typewriter
3743 article.cls
3744 \family default
3745 ,
3746  
3747 \family typewriter
3748 book.cls
3749 \family default
3750 ,
3751  
3752 \family typewriter
3753 letter.cls
3754 \family default
3755  and 
3756 \family typewriter
3757 report.cls
3758 \family default
3759  document classes respectively but offer the additional 
3760 \family sans
3761 \bar under
3762 B
3763 \bar default
3764 ase
3765 \begin_inset space ~
3766 \end_inset
3767
3768 Size
3769 \family default
3770  options 8,
3771  9,
3772  14,
3773  17 and 20 in the 
3774 \family sans
3775 \bar under
3776 D
3777 \bar default
3778 ocument\SpecialChar menuseparator
3779
3780 \bar under
3781 S
3782 \bar default
3783 ettings\SpecialChar menuseparator
3784 Fonts
3785 \family default
3786  dialog.
3787 \end_layout
3788
3789 \begin_layout Subsection
3790
3791 \change_inserted 564990737 1671383236
3792 Hebrew
3793 \end_layout
3794
3795 \begin_layout Standard
3796
3797 \change_inserted 564990737 1671383236
3798 The document classes 
3799 \family sans
3800 article
3801 \begin_inset space \thinspace{}
3802 \end_inset
3803
3804 (Hebrew)
3805 \family default
3806  and 
3807 \family sans
3808 letter
3809 \begin_inset space \thinspace{}
3810 \end_inset
3811
3812 (Hebrew)
3813 \family default
3814  use the 
3815 \family typewriter
3816 article.cl
3817 \family sans
3818 s
3819 \family default
3820  and 
3821 \family typewriter
3822 letter.cls
3823 \family default
3824  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3825 .
3826 \end_layout
3827
3828 \begin_layout Subsection
3829
3830 \change_inserted 564990737 1671383236
3831 \begin_inset CommandInset label
3832 LatexCommand label
3833 name "subsec:Japanese"
3834
3835 \end_inset
3836
3837 Japanese
3838 \end_layout
3839
3840 \begin_layout Standard
3841
3842 \change_inserted 564990737 1671383236
3843 The document classes 
3844 \family sans
3845 article
3846 \begin_inset space \thinspace{}
3847 \end_inset
3848
3849 (Japanese JS Class)
3850 \family default
3851 ,
3852
3853 \family sans
3854  article
3855 \begin_inset space \thinspace{}
3856 \end_inset
3857
3858 (Japanese Standard Class Vertical Writing)
3859 \family default
3860 ,
3861  
3862 \family sans
3863 article
3864 \begin_inset space \thinspace{}
3865 \end_inset
3866
3867 (Japanese Standard Class)
3868 \family default
3869 ,
3870  
3871 \family sans
3872 book
3873 \begin_inset space \thinspace{}
3874 \end_inset
3875
3876 (Japanese JS Class)
3877 \family default
3878 ,
3879
3880 \family sans
3881  book
3882 \begin_inset space \thinspace{}
3883 \end_inset
3884
3885 (Japanese Standard Class Vertical Writing)
3886 \family default
3887 ,
3888  
3889 \family sans
3890 book
3891 \begin_inset space \thinspace{}
3892 \end_inset
3893
3894 (Japanese Standard Class)
3895 \family default
3896 ,
3897  
3898 \family sans
3899 report
3900 \begin_inset space \thinspace{}
3901 \end_inset
3902
3903 (Japanese Vertical Writing)
3904 \family default
3905  and 
3906 \family sans
3907 report
3908 \begin_inset space \thinspace{}
3909 \end_inset
3910
3911 (Japanese Standard Class)
3912 \family default
3913  provide document classes for the Japanese language.
3914 \end_layout
3915
3916 \begin_layout Subsection
3917
3918 \change_inserted 564990737 1672429136
3919 \begin_inset CommandInset label
3920 LatexCommand label
3921 name "subsec:KOMA-Script"
3922
3923 \end_inset
3924
3925 KOMA-Script
3926 \end_layout
3927
3928 \begin_layout Standard
3929
3930 \change_inserted 564990737 1672429136
3931 Original by 
3932 \noun on
3933 Bernd Rellermeyer
3934 \noun default
3935 ;
3936  updated by 
3937 \noun on
3938 Jürgen Spitzmüller
3939 \noun default
3940  and the \SpecialChar LyX
3941  Team
3942 \change_deleted 564990737 1672429136
3943 Koma-Script
3944 \end_layout
3945
3946 \begin_layout Standard
3947
3948 \change_deleted 564990737 1672429136
3949 by 
3950 \noun on
3951 Bernd Rellermeyer
3952 \change_unchanged
3953
3954 \end_layout
3955
3956 \begin_layout Subsubsection
3957 Overview
3958 \change_inserted 564990737 1672429161
3959
3960 \end_layout
3961
3962 \begin_layout Standard
3963
3964 \change_inserted 564990737 1672429162
3965 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
3966  it was formally launched with the addition of a letter class in 1994.
3967  Since then,
3968  a second letter class has been added.
3969  Frank Neukam's classes were inspired by the principles of typography and this has been fully integrated into the design of the KOMA-Script classes.
3970  
3971 \change_unchanged
3972
3973 \end_layout
3974
3975 \begin_layout Standard
3976 The \SpecialChar LyX
3977  document classes 
3978 \emph on
3979 article (koma-script)
3980 \emph default
3981 ,
3982  
3983 \emph on
3984 report (koma-script)
3985 \emph default
3986 ,
3987  
3988 \emph on
3989 book
3990 \emph default
3991  
3992 \emph on
3993 (koma-script)
3994 \emph default
3995 ,
3996  and 
3997 \emph on
3998 letter
3999 \emph default
4000  
4001 \emph on
4002 (koma-script)
4003 \emph default
4004  correspond to the \SpecialChar LaTeX
4005  document classes 
4006 \family typewriter
4007 scrartcl.cls
4008 \family default
4009 ,
4010  
4011 \family typewriter
4012 scrreprt.cls
4013 \family default
4014 ,
4015  
4016 \family typewriter
4017 scrbook.cls
4018 \family default
4019 ,
4020  and 
4021 \family typewriter
4022 scrlettr.cls
4023 \family default
4024 ,
4025  resp.
4026 \begin_inset space ~
4027 \end_inset
4028
4029 of the Koma-Script family.
4030  They are replacements for the standard document classes 
4031 \family typewriter
4032 article.cls
4033 \family default
4034 ,
4035  
4036 \family typewriter
4037 report.cls
4038 \family default
4039 ,
4040  
4041 \family typewriter
4042 book.cls
4043 \family default
4044  and 
4045 \family typewriter
4046 letter.cls
4047 \family default
4048 ,
4049  resp.,
4050  and fit better to European typography conventions in a number of points.
4051 \end_layout
4052
4053 \begin_layout Itemize
4054
4055 \change_deleted 564990737 1672429262
4056 Standard character size is
4057 \change_inserted 564990737 1672429263
4058 The base character sizes when you select a KOMA-Script class are
4059 \change_unchanged
4060  11pt in 
4061 \emph on
4062 article (koma-script)
4063 \emph default
4064 ,
4065  
4066 \emph on
4067 report (koma-script)
4068 \emph default
4069 ,
4070  and 
4071 \emph on
4072 book (koma-script)
4073 \change_deleted 564990737 1672429267
4074
4075 \emph default
4076 ,
4077
4078 \change_unchanged
4079  and 12pt in 
4080 \emph on
4081 letter (koma-script)
4082 \emph default
4083 .
4084 \end_layout
4085
4086 \begin_layout Itemize
4087 Headings,
4088  labels of the description environment,
4089  and a number of elements of the 
4090 \emph on
4091 letter (koma-script)
4092 \emph default
4093  document class are set in a bold sans serif font.
4094 \begin_inset Foot
4095 status collapsed
4096
4097 \begin_layout Plain Layout
4098 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
4099  especially in the appearance of headings.
4100  In comparison,
4101  the ec bold sans serif fonts look a bit thin.
4102  Here the \SpecialChar LaTeX
4103  package 
4104 \family typewriter
4105 cmsd.sty by
4106 \family default
4107  
4108 \shape smallcaps
4109 Walter Schmidt
4110 \shape default
4111  helps to produce the 
4112 \begin_inset Quotes eld
4113 \end_inset
4114
4115 usual
4116 \begin_inset Quotes erd
4117 \end_inset
4118
4119  appearance when using the ec fonts.
4120 \end_layout
4121
4122 \end_inset
4123
4124  The numbering of chapter headings is made in the same way as the numbering of section headings,
4125  that is without the extra line 
4126 \begin_inset Quotes eld
4127 \end_inset
4128
4129 Chapter\SpecialChar ldots
4130
4131 \begin_inset Quotes erd
4132 \end_inset
4133
4134 .
4135  In addition,
4136  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
4137  to be entered in the field 
4138 \family sans
4139 Extra
4140 \begin_inset space ~
4141 \end_inset
4142
4143 Options
4144 \family default
4145  of the dialog 
4146 \family sans
4147 Layout\SpecialChar menuseparator
4148 Document
4149 \family default
4150 ).
4151  
4152 \end_layout
4153
4154 \begin_layout Itemize
4155
4156 \change_deleted 564990737 1672429310
4157 The main means in the Koma-Script document classes to design the type area are the options 
4158 \family sans
4159 BCOR
4160 \family default
4161  and 
4162 \family sans
4163 DIV
4164 \family default
4165  (in \SpecialChar LyX
4166  to be entered in the extra class options field in the dialog 
4167 \family sans
4168 Document\SpecialChar menuseparator
4169 Settings
4170 \family default
4171 ).
4172  They make a clearer modification of page margins possible as do the options of the dialog 
4173 \family sans
4174 Document\SpecialChar menuseparator
4175 Settings
4176 \family default
4177 .
4178  
4179 \change_inserted 564990737 1672429310
4180 The layout of a KOMA-Script page follows one of two traditional typesetting conventions based on dividing the page into strips or drawing a circle.
4181  The default is to imagine that a page is divided horizontally and vertically into strips and allocate strips to the margins leaving the unused strips for the text area.
4182  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
4183  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
4184  
4185 \end_layout
4186
4187 \begin_deeper
4188 \begin_layout Standard
4189
4190 \change_inserted 564990737 1672429310
4191 Whatever the factor,
4192  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
4193  leaving a text area occupying around half the page.
4194  Since most two-sided documents have a binding,
4195  this can make the inner margins appear too narrow;
4196  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
4197  
4198 \end_layout
4199
4200 \begin_layout Standard
4201
4202 \change_inserted 564990737 1672429310
4203 The main means in the Koma-Script document classes to design the type area are the options 
4204 \family sans
4205 BCOR
4206 \family default
4207  and 
4208 \family sans
4209 DIV
4210 \family default
4211  entered in 
4212 \family sans
4213 Document\SpecialChar menuseparator
4214 Settings\SpecialChar menuseparator
4215 Document Class\SpecialChar menuseparator
4216 Class Options\SpecialChar menuseparator
4217 Custom
4218 \family default
4219 .
4220  
4221 \end_layout
4222
4223 \begin_layout Standard
4224
4225 \change_inserted 564990737 1672429310
4226 In this document,
4227  the binding correction is 7.5mm which is added in the form 
4228 \family typewriter
4229 BCOR7.5mm
4230 \family default
4231  to 
4232 \family sans
4233 Class
4234 \begin_inset space ~
4235 \end_inset
4236
4237 options\SpecialChar menuseparator
4238 Cus
4239 \bar under
4240 t
4241 \bar default
4242 om
4243 \family default
4244  dialog.
4245  To change the factor to 11,
4246  for example,
4247  add the entry 
4248 \family typewriter
4249 DIV=11
4250 \family default
4251  to the comma separated list of entries in the 
4252 \family sans
4253 Cus
4254 \bar under
4255 t
4256 \bar default
4257 om
4258 \family default
4259  
4260 \family sans
4261 Class
4262 \begin_inset space ~
4263 \end_inset
4264
4265 options
4266 \family default
4267 .
4268  If you want the default value of this factor for a page size other than A4,
4269  add the entry 
4270 \family typewriter
4271 DIV=calc
4272 \family default
4273 .
4274 \end_layout
4275
4276 \begin_layout Standard
4277
4278 \change_inserted 564990737 1672429310
4279 To use the circle method of calculating the page layout,
4280  use 
4281 \family typewriter
4282 DIV=classic
4283 \family default
4284  instead.
4285 \change_unchanged
4286
4287 \end_layout
4288
4289 \end_deeper
4290 \begin_layout Itemize
4291 The \SpecialChar LaTeX
4292  document classes of the Koma-Script family define a number of additional commands.
4293  Those part of it which makes sense in \SpecialChar LyX
4294  is implemented in corresponding paragraph types.
4295 \end_layout
4296
4297 \begin_layout Standard
4298 Detailed descriptions of the \SpecialChar LaTeX
4299  document classes of the Koma-Script family can be found in the Koma-Script documentation 
4300 \emph on
4301 scrguide
4302 \emph default
4303  (German) and 
4304 \emph on
4305 scrguien
4306 \emph default
4307  (English).
4308 \end_layout
4309
4310 \begin_layout Subsubsection
4311
4312 \change_inserted 564990737 1672429358
4313
4314 \series bold
4315 \begin_inset CommandInset label
4316 LatexCommand label
4317 name "subsec:article-(KOMA-Script),-report"
4318
4319 \end_inset
4320
4321
4322 \series default
4323 article (KOMA-Script),
4324  report (KOMA-Script),
4325  and book (KOMA-Script)
4326 \change_deleted 564990737 1672429367
4327 article (koma-script),
4328  report (koma-script),
4329  and book (koma-script)
4330 \change_unchanged
4331
4332 \end_layout
4333
4334 \begin_layout Standard
4335 The document classes 
4336 \emph on
4337 article (koma-script)
4338 \emph default
4339 ,
4340  
4341 \emph on
4342 report (koma-script)
4343 \emph default
4344 ,
4345  and 
4346 \emph on
4347 book
4348 \emph default
4349  
4350 \emph on
4351 (koma-script)
4352 \emph default
4353  are implemented in the layout files 
4354 \family typewriter
4355 scrartcl.layout
4356 \family default
4357 ,
4358  
4359 \family typewriter
4360 scrreprt.layout
4361 \family default
4362 ,
4363  and 
4364 \family typewriter
4365 scrbook.layout
4366 \family default
4367 ,
4368  resp.
4369  They contain all the paragraph types of the corresponding standard document classes 
4370 \emph on
4371 article
4372 \emph default
4373 ,
4374  
4375 \emph on
4376 report
4377 \emph default
4378 ,
4379  and 
4380 \emph on
4381 book
4382 \emph default
4383 ,
4384  resp.,
4385  partly modified,
4386  with the exception of the \SpecialChar LyX
4387  specific 
4388 \family sans
4389 List
4390 \family default
4391 -type,
4392  which is replaced by the new 
4393 \family sans
4394 Labeling
4395 \family default
4396 -type having the same functionality.
4397  Beside the 
4398 \family sans
4399 Labeling
4400 \family default
4401 -Type there is a number of new paragraph types added.
4402  They are 
4403 \emph on
4404 not
4405 \emph default
4406  part of 
4407 \emph on
4408 letter (koma-script)
4409 \emph default
4410 .
4411 \end_layout
4412
4413 \begin_layout Itemize
4414
4415 \family sans
4416 Addpart,
4417  Addchap
4418 \family default
4419 ,
4420  
4421 \family sans
4422 Addsec
4423 \family default
4424 :
4425  are equivalents to 
4426 \family sans
4427 Part*,
4428  Chapter*
4429 \family default
4430  and 
4431 \family sans
4432 Section*
4433 \family default
4434 ,
4435  resp.,
4436  additionally inserting an entry in the table of contents.
4437  
4438 \family sans
4439 Addpart
4440 \family default
4441  and 
4442 \family sans
4443 Addchap
4444 \family default
4445  are not contained in 
4446 \emph on
4447 article (koma-script)
4448 \emph default
4449 .
4450 \end_layout
4451
4452 \begin_layout Itemize
4453
4454 \family sans
4455 Addchap*
4456 \family default
4457 ,
4458  
4459 \family sans
4460 Addsec*
4461 \family default
4462 :
4463  behave exactly as 
4464 \family sans
4465 Addchap
4466 \family default
4467  and 
4468 \family sans
4469 Addsec
4470 \family default
4471 ,
4472  resp.,
4473  additionally clearing running heads.
4474  
4475 \family sans
4476 Addchap*
4477 \family default
4478  is not contained in 
4479 \emph on
4480 article (koma-script)
4481 \emph default
4482 .
4483 \begin_inset Foot
4484 status collapsed
4485
4486 \begin_layout Plain Layout
4487 There is also an 
4488 \family typewriter
4489
4490 \backslash
4491 addpart*
4492 \family default
4493  command in 
4494 \emph on
4495 book (koma-script)
4496 \emph default
4497  and in 
4498 \emph on
4499 report (koma-script)
4500 \emph default
4501 ,
4502  but since this is identical to 
4503 \family sans
4504 Part*
4505 \family default
4506 ,
4507  is has not been implemented in \SpecialChar LyX
4508 .
4509 \end_layout
4510
4511 \end_inset
4512
4513
4514 \end_layout
4515
4516 \begin_layout Itemize
4517
4518 \family sans
4519 Minisec
4520 \family default
4521 :
4522  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4523 \end_layout
4524
4525 \begin_layout Itemize
4526
4527 \family sans
4528 Captionabove
4529 \family default
4530  and 
4531 \family sans
4532 Captionbelow
4533 \family default
4534  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4535  you might want to place table captions always above the table).
4536  You can also use the class option 
4537 \family typewriter
4538 tablecaptionsabove
4539 \family default
4540 ,
4541  which will switch 
4542 \family sans
4543 caption
4544 \family default
4545  to 
4546 \family sans
4547 captionabove
4548 \family default
4549  for tables and 
4550 \family sans
4551 captionbelow
4552 \family default
4553  for figures.
4554  You need at least Koma-Script version 2.8q to use this.
4555 \end_layout
4556
4557 \begin_layout Itemize
4558
4559 \family sans
4560 Dictum
4561 \family default
4562 :
4563  can be used to set a bonmot,
4564  e.
4565 \begin_inset space \thinspace{}
4566 \end_inset
4567
4568 g.
4569 \begin_inset space \space{}
4570 \end_inset
4571
4572 at the beginning of a chapter.
4573  If you use the optional argument (
4574 \family sans
4575 Insert\SpecialChar menuseparator
4576 Dictum
4577 \begin_inset space ~
4578 \end_inset
4579
4580 Author
4581 \family default
4582 ),
4583  you can insert the dictum's author there.
4584  Dictum and author are separated by a line.
4585  You need at least Koma-Script version 2.8q to use this.
4586  
4587 \family sans
4588 Dictum
4589 \family default
4590  is not contained in 
4591 \emph on
4592 article (koma-script)
4593 \emph default
4594 .
4595 \end_layout
4596
4597 \begin_layout Standard
4598 The following types,
4599  together with the standard types 
4600 \family sans
4601 Title
4602 \family default
4603 ,
4604  
4605 \family sans
4606 Author
4607 \family default
4608 ,
4609  and 
4610 \family sans
4611 Date
4612 \family default
4613 ,
4614  form the title area of the document.
4615  They must be entered ahead of the first 
4616 \begin_inset Quotes eld
4617 \end_inset
4618
4619 ordinary
4620 \begin_inset Quotes erd
4621 \end_inset
4622
4623  paragraph.
4624 \begin_inset Foot
4625 status collapsed
4626
4627 \begin_layout Plain Layout
4628 The corresponding \SpecialChar LaTeX
4629  commands must appear before the 
4630 \family typewriter
4631
4632 \backslash
4633 maketitle
4634 \family default
4635  command.
4636 \end_layout
4637
4638 \end_inset
4639
4640  When such a type is used more than once,
4641  the latter usage overwrites the former one,
4642  that means,
4643  for every type only the latest usage is valid.
4644  The order of the different types however has,
4645  like 
4646 \family sans
4647 Title
4648 \family default
4649 ,
4650  
4651 \family sans
4652 Author
4653 \family default
4654 ,
4655  and 
4656 \family sans
4657 Date
4658 \family default
4659 ,
4660  no effect on the appearance of the produced document.
4661 \end_layout
4662
4663 \begin_layout Itemize
4664
4665 \family sans
4666 Subject
4667 \family default
4668 :
4669  produces a centered paragraph above the ordinary title (
4670 \family sans
4671 Title
4672 \family default
4673 ,
4674  
4675 \family sans
4676 Author
4677 \family default
4678 ,
4679  
4680 \family sans
4681 Date
4682 \family default
4683 ) for the subject of the document.
4684 \end_layout
4685
4686 \begin_layout Itemize
4687
4688 \family sans
4689 Publishers
4690 \family default
4691 :
4692  produces a centered paragraph below the ordinary title (
4693 \family sans
4694 Title
4695 \family default
4696 ,
4697  
4698 \family sans
4699 Author
4700 \family default
4701 ,
4702  
4703 \family sans
4704 Date
4705 \family default
4706 ) for the publishers' name.
4707 \end_layout
4708
4709 \begin_layout Itemize
4710
4711 \family sans
4712 Dedication
4713 \family default
4714 :
4715  in 
4716 \emph on
4717 report (koma-script)
4718 \emph default
4719  and 
4720 \emph on
4721 book (koma-script)
4722 \emph default
4723  produces a centered paragraph on its own page behind the title page,
4724  or in 
4725 \emph on
4726 article (koma-script)
4727 \emph default
4728  produces a centered paragraph below the ordinary title (
4729 \family sans
4730 Title
4731 \family default
4732 ,
4733  
4734 \family sans
4735 Author
4736 \family default
4737 ,
4738  
4739 \family sans
4740 Date
4741 \family default
4742 ,
4743  
4744 \family sans
4745 Publishers
4746 \family default
4747 ) for a dedication.
4748 \end_layout
4749
4750 \begin_layout Itemize
4751
4752 \family sans
4753 Titlehead
4754 \family default
4755 :
4756  produces a left aligned paragraph above the ordinary title (
4757 \family sans
4758 Title
4759 \family default
4760 ,
4761  
4762 \family sans
4763 Author
4764 \family default
4765 ,
4766  
4767 \family sans
4768 Date
4769 \family default
4770 ,
4771  
4772 \family sans
4773 Subject
4774 \family default
4775 ) for a document`s head.
4776 \end_layout
4777
4778 \begin_layout Itemize
4779
4780 \family sans
4781 Uppertitleback
4782 \family default
4783 :
4784  produces in a double-sided print in 
4785 \emph on
4786 report (koma-script)
4787 \emph default
4788  and 
4789 \emph on
4790 book (koma-script)
4791 \emph default
4792  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4793 \emph on
4794 article (koma-script)
4795 \emph default
4796 .
4797 \end_layout
4798
4799 \begin_layout Itemize
4800
4801 \family sans
4802 Lowertitleback
4803 \family default
4804 :
4805  produces in a double-sided print in 
4806 \emph on
4807 report (koma-script)
4808 \emph default
4809  and 
4810 \emph on
4811 book (koma-script)
4812 \emph default
4813  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4814 \emph on
4815 article (koma-script)
4816 \emph default
4817 .
4818 \end_layout
4819
4820 \begin_layout Itemize
4821
4822 \family sans
4823 Extratitle
4824 \family default
4825 :
4826  produces a special 
4827 \begin_inset Quotes eld
4828 \end_inset
4829
4830 dirty
4831 \begin_inset Quotes erd
4832 \end_inset
4833
4834  page ahead of the actual document containing a paragraph without special formatting.
4835 \end_layout
4836
4837 \begin_layout Standard
4838
4839 \change_inserted 564990737 1672429680
4840 KOMA-Script offers a wide range of 
4841 \family sans
4842 Cus
4843 \bar under
4844 t
4845 \bar default
4846 om Class
4847 \begin_inset space ~
4848 \end_inset
4849
4850 options
4851 \family default
4852  for the 
4853 \family sans
4854 \bar under
4855 D
4856 \bar default
4857 ocument\SpecialChar menuseparator
4858
4859 \bar under
4860 S
4861 \bar default
4862 ettings\SpecialChar menuseparator
4863 Document
4864 \begin_inset space ~
4865 \end_inset
4866
4867 class
4868 \family default
4869  dialog which you can apply to the whole document,
4870  among them
4871 \end_layout
4872
4873 \begin_layout Description
4874
4875 \change_inserted 564990737 1672429680
4876
4877 \family typewriter
4878 \series medium
4879 draft=true
4880 \family default
4881 \series default
4882  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4883  the default setting is 
4884 \family typewriter
4885 false
4886 \end_layout
4887
4888 \begin_layout Description
4889
4890 \change_inserted 564990737 1672429680
4891
4892 \family typewriter
4893 \series medium
4894 headings=
4895 \family default
4896 \series default
4897  which may take the values 
4898 \family typewriter
4899 big
4900 \family default
4901 ,
4902  
4903 \family typewriter
4904 normal
4905 \family default
4906  or 
4907 \family typewriter
4908 small
4909 \family default
4910 ;
4911  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4912 \end_layout
4913
4914 \begin_layout Description
4915
4916 \change_inserted 564990737 1672429680
4917
4918 \family typewriter
4919 \series medium
4920 numbers=
4921 \family default
4922 \series default
4923  which may take the values 
4924 \family typewriter
4925 auto
4926 \family default
4927  (the default),
4928  
4929 \family typewriter
4930 enddot
4931 \family default
4932  or 
4933 \family typewriter
4934 noenddot
4935 \family default
4936 ;
4937  the first leaves it up to KOMA-Script to add periods after chapter,
4938  section numbers,
4939  etc.;
4940  the second forces the addition of periods and third suppresses them
4941 \end_layout
4942
4943 \begin_layout Standard
4944
4945 \change_inserted 564990737 1672429680
4946 and the math options:
4947 \end_layout
4948
4949 \begin_layout Description
4950
4951 \change_inserted 564990737 1672429680
4952
4953 \family typewriter
4954 \series medium
4955 leqno
4956 \family default
4957 \series default
4958  which causes equations to be numbered on the left rather than on the right,
4959  and
4960 \end_layout
4961
4962 \begin_layout Description
4963
4964 \change_inserted 564990737 1672429680
4965
4966 \family typewriter
4967 \series medium
4968 fleqn
4969 \family default
4970 \series default
4971  which causes equations to be left justified rather than centered.
4972 \end_layout
4973
4974 \begin_layout Standard
4975
4976 \change_inserted 564990737 1672429680
4977 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
4978  commands and packages;
4979  for example,
4980  if you want your captions in bold add
4981 \end_layout
4982
4983 \begin_layout Standard
4984
4985 \change_inserted 564990737 1672429680
4986
4987 \family typewriter
4988
4989 \backslash
4990 setkomafont{captionlabel}{
4991 \backslash
4992 bfseries}
4993 \end_layout
4994
4995 \begin_layout Standard
4996
4997 \change_inserted 564990737 1672429680
4998 to 
4999 \family sans
5000 \bar under
5001 D
5002 \bar default
5003 ocument\SpecialChar menuseparator
5004
5005 \bar under
5006 S
5007 \bar default
5008 ettings
5009 \family default
5010 \SpecialChar menuseparator
5011
5012 \family sans
5013 \SpecialChar LaTeX
5014
5015 \begin_inset space ~
5016 \end_inset
5017
5018 Preamble
5019 \family default
5020 ) and the problem is solved.
5021 \end_layout
5022
5023 \begin_layout Standard
5024
5025 \change_inserted 564990737 1672429680
5026 If you are writing a book,
5027  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
5028  If you use the Chapter* environment,
5029  your Foreword and Preface will not appear in the Table of Contents;
5030  to make them to appear in the Table of contents,
5031  you need to use Chapter environments and add the \SpecialChar TeX
5032  code
5033 \end_layout
5034
5035 \begin_layout Standard
5036
5037 \change_inserted 564990737 1672429680
5038
5039 \family typewriter
5040
5041 \backslash
5042 frontmatter
5043 \end_layout
5044
5045 \begin_layout Standard
5046
5047 \change_inserted 564990737 1672429680
5048 at the very start of the book (not in the \SpecialChar LaTeX
5049  Preamble) and
5050 \end_layout
5051
5052 \begin_layout Standard
5053
5054 \change_inserted 564990737 1672429680
5055
5056 \family typewriter
5057
5058 \backslash
5059 mainmatter
5060 \end_layout
5061
5062 \begin_layout Standard
5063
5064 \change_inserted 564990737 1672429680
5065 before the first chapter of the body of the text.
5066  You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
5067  if any.
5068 \begin_inset Foot
5069 status open
5070
5071 \begin_layout Plain Layout
5072
5073 \change_inserted 564990737 1672429680
5074 Appendices are normally “numbered” with letters.
5075 \end_layout
5076
5077 \end_inset
5078
5079  If you use the Chapter* environment,
5080  they will not appear in the Table of Contents;
5081  so add the \SpecialChar TeX
5082  code
5083 \end_layout
5084
5085 \begin_layout Standard
5086
5087 \change_inserted 564990737 1672429680
5088
5089 \family typewriter
5090
5091 \backslash
5092 backmatter
5093 \end_layout
5094
5095 \begin_layout Standard
5096
5097 \change_inserted 564990737 1672429682
5098 before the first of these headings and use the Chapter environment.
5099  These commands will have no effect on the numbering in \SpecialChar LyX
5100 ,
5101  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
5102 \end_layout
5103
5104 \begin_layout Standard
5105 The layout files for the document classes 
5106 \emph on
5107 article (koma-script)
5108 \emph default
5109 ,
5110  
5111 \emph on
5112 report (koma-script)
5113 \emph default
5114 ,
5115  and 
5116 \emph on
5117 book (koma-script)
5118 \emph default
5119  do include the file 
5120 \family typewriter
5121 scrmacros.inc
5122 \family default
5123 .
5124  This is thought of as a place to define your own types.
5125  Copy scrmacros
5126 \family typewriter
5127 .inc
5128 \family default
5129  in your personal layout directory and edit the file!
5130 \change_deleted 564990737 1672430255
5131
5132 \end_layout
5133
5134 \begin_layout Standard
5135
5136 \change_deleted 564990737 1672430255
5137 letter (koma-script)
5138 \end_layout
5139
5140 \begin_layout Description
5141
5142 \change_deleted 564990737 1672429749
5143 Note:
5144  This section discusses the obsolete 
5145 \family sans
5146 KOMA-Script-Letter (v.
5147 \begin_inset space ~
5148 \end_inset
5149
5150 1)
5151 \family default
5152 ,
5153  which is not even included anymore in recent KOMA releases.
5154  Please refer to the next section for the current KOMA-Script-Letter class (v.
5155 \begin_inset space ~
5156 \end_inset
5157
5158 2)!
5159 \end_layout
5160
5161 \begin_layout Standard
5162 \noindent
5163
5164 \change_deleted 564990737 1672429749
5165 The document class 
5166 \emph on
5167 letter (koma-script)
5168 \emph default
5169  is implemented in the layout file 
5170 \family typewriter
5171 scrlettr.layout
5172 \family default
5173 .
5174  It contains all the paragraph types of the corresponding standard document class 
5175 \emph on
5176 letter
5177 \emph default
5178 ,
5179  partly modified,
5180  with the exception of the \SpecialChar LyX
5181  specific types 
5182 \family sans
5183 \SpecialChar LyX
5184 -Code
5185 \family default
5186  and 
5187 \family sans
5188 Comment
5189 \family default
5190  and the 
5191 \family sans
5192 List
5193 \family default
5194  type,
5195  which is replaced by the new 
5196 \family sans
5197 Labeling
5198 \family default
5199  type.
5200  In addition,
5201  it contains,
5202  in contrast to the standard document class,
5203  the standard types 
5204 \family sans
5205 \SpecialChar LaTeX
5206
5207 \family default
5208 ,
5209  
5210 \family sans
5211 Quotation
5212 \family default
5213 ,
5214  
5215 \family sans
5216 Quote
5217 \family default
5218 ,
5219  and 
5220 \family sans
5221 Verse
5222 \family default
5223 .
5224  Furthermore,
5225  there are a number of new letter specific types.
5226 \end_layout
5227
5228 \begin_layout Standard
5229
5230 \change_deleted 564990737 1672429749
5231 The appearance of the letter produced by this document class can be controlled by a number of \SpecialChar LaTeX
5232  commands,
5233  which you can put in the \SpecialChar LaTeX
5234  preamble.
5235 \begin_inset Foot
5236 status collapsed
5237
5238 \begin_layout Plain Layout
5239 For example,
5240  the standard appearance of the letter`s heading,
5241  consisting of name and address,
5242  is quite self-willed.
5243  An 
5244 \begin_inset Quotes eld
5245 \end_inset
5246
5247 ordinary
5248 \begin_inset Quotes erd
5249 \end_inset
5250
5251  heading is produced by the following \SpecialChar LaTeX
5252  commands in the preamble:
5253 \end_layout
5254
5255 \begin_layout LyX-Code
5256
5257 \backslash
5258 firsthead{
5259 \backslash
5260 parbox[b]{
5261 \backslash
5262 textwidth}
5263 \end_layout
5264
5265 \begin_layout LyX-Code
5266   {
5267 \backslash
5268 ignorespaces 
5269 \backslash
5270 fromname
5271 \backslash
5272
5273 \backslash
5274  
5275 \backslash
5276 ignorespaces 
5277 \backslash
5278 fromaddress}} 
5279 \end_layout
5280
5281 \begin_layout LyX-Code
5282
5283 \backslash
5284 nexthead{
5285 \backslash
5286 parbox[b]{
5287 \backslash
5288 textwidth}
5289 \end_layout
5290
5291 \begin_layout LyX-Code
5292   {
5293 \backslash
5294 ignorespaces 
5295 \backslash
5296 fromname 
5297 \backslash
5298 hfill 
5299 \backslash
5300 ignorespaces 
5301 \backslash
5302 pagename
5303 \backslash
5304  
5305 \backslash
5306 thepage}}
5307 \end_layout
5308
5309 \end_inset
5310
5311  A detailed German description of such \SpecialChar LaTeX
5312  commands can be found in the Koma-Script documentation 
5313 \emph on
5314 scrguide
5315 \emph default
5316 .
5317  With it,
5318  the letter's author can produce his personal letter layout.
5319 \end_layout
5320
5321 \begin_layout Standard
5322
5323 \change_deleted 564990737 1672429749
5324 The types 
5325 \family sans
5326 Letter
5327 \family default
5328  and 
5329 \family sans
5330 Opening
5331 \family default
5332  define the beginning of the letter and must be used in every letter.
5333  To emphasize them in the \SpecialChar LyX
5334  document class,
5335  they are marked with the letter 
5336 \shape italic
5337 L
5338 \shape default
5339  or 
5340 \shape italic
5341 O
5342 \shape default
5343 ,
5344  resp.
5345 \begin_inset space ~
5346 \end_inset
5347
5348 in the left margin.
5349  It is possible to write any number of letters in one file.
5350  An 
5351 \family sans
5352 Opening
5353 \family default
5354  type produces a new letter using the same addressee and a 
5355 \family sans
5356 Letter
5357 \family default
5358  type produces a new addressee.
5359  The types 
5360 \family sans
5361 Closing
5362 \family default
5363 ,
5364  
5365 \family sans
5366 PS
5367 \family default
5368 ,
5369  
5370 \family sans
5371 CC
5372 \family default
5373 ,
5374  and 
5375 \family sans
5376 Encl
5377 \family default
5378  are ordinary paragraph types and can also be used several times in one and the same letter.
5379 \end_layout
5380
5381 \begin_layout Itemize
5382
5383 \change_deleted 564990737 1672429749
5384
5385 \family sans
5386 Letter
5387 \family default
5388 :
5389  produces a paragraph for the addressee and implicitly defines the beginning of the letter.
5390 \end_layout
5391
5392 \begin_layout Itemize
5393
5394 \change_deleted 564990737 1672429749
5395
5396 \family sans
5397 Opening
5398 \family default
5399 :
5400  produces a paragraph for the form of address and implicitly produces a new letter.
5401 \end_layout
5402
5403 \begin_layout Itemize
5404
5405 \change_deleted 564990737 1672429749
5406
5407 \family sans
5408 Closing
5409 \family default
5410 :
5411  produces a paragraph for a close.
5412 \end_layout
5413
5414 \begin_layout Itemize
5415
5416 \change_deleted 564990737 1672429749
5417
5418 \family sans
5419 PS
5420 \family default
5421 :
5422  produces a paragraph for a postscript.
5423 \end_layout
5424
5425 \begin_layout Itemize
5426
5427 \change_deleted 564990737 1672429749
5428
5429 \family sans
5430 CC
5431 \family default
5432 :
5433  produces a paragraph for a distribution list.
5434 \end_layout
5435
5436 \begin_layout Itemize
5437
5438 \change_deleted 564990737 1672429749
5439
5440 \family sans
5441 Encl
5442 \family default
5443 :
5444  produces a paragraph for enclosures.
5445 \end_layout
5446
5447 \begin_layout Standard
5448
5449 \change_deleted 564990737 1672429749
5450 The types 
5451 \family sans
5452 Name
5453 \family default
5454 ,
5455  
5456 \family sans
5457 Signature
5458 \family default
5459 ,
5460  
5461 \family sans
5462 Address
5463 \family default
5464 ,
5465  
5466 \family sans
5467 Telephone
5468 \family default
5469 ,
5470  
5471 \family sans
5472 Place
5473 \family default
5474 ,
5475  
5476 \family sans
5477 Backaddress
5478 \family default
5479 ,
5480  
5481 \family sans
5482 Specialmail
5483 \family default
5484 ,
5485  
5486 \family sans
5487 Location
5488 \family default
5489 ,
5490  
5491 \family sans
5492 Title
5493 \family default
5494 ,
5495  and 
5496 \family sans
5497 Subject
5498 \family default
5499  are input types provided with a label to enter information,
5500  which will be processed by the document class.
5501 \begin_inset Foot
5502 status collapsed
5503
5504 \begin_layout Plain Layout
5505 It could be seen as a matter of inconsequence,
5506  that the types 
5507 \family sans
5508 Letter
5509 \family default
5510  and 
5511 \family sans
5512 Opening
5513 \family default
5514  described above are not such input types as well.
5515  Because of the special meaning of those types,
5516  however,
5517  I have implemented them as ordinary paragraph types with a one letter mark in the left margin.
5518  Moreover,
5519  it would affect my feeling of symmetry,
5520  if the 
5521 \family sans
5522 Opening
5523 \family default
5524  type and the 
5525 \family sans
5526 Closing
5527 \family default
5528  type had such a serious different appearance.
5529 \end_layout
5530
5531 \end_inset
5532
5533  The types must be used ahead of the corresponding 
5534 \family sans
5535 Opening
5536 \family default
5537  type.
5538 \end_layout
5539
5540 \begin_layout Standard
5541
5542 \change_deleted 564990737 1672429749
5543 An implementation of these types in a WYSIWYG fashion does not seem to make sense,
5544  because the real appearance of the produced letter does not only depend on the usage of the particular type,
5545  but also on other factors.
5546  For example,
5547  a signature entered in the 
5548 \family sans
5549 Signature
5550 \family default
5551  type will in the standard behavior appear in the produced letter only,
5552  when in the same letter also a 
5553 \family sans
5554 Closing
5555 \family default
5556  type is used.
5557  The entered value of the 
5558 \family sans
5559 Telephone
5560 \family default
5561  type will in the standard behavior not appear in the produced letter at all.
5562  The possibility to design the letter`s heading freely is already indicated in a footnote above.
5563 \end_layout
5564
5565 \begin_layout Standard
5566
5567 \change_deleted 564990737 1672429749
5568 The input types can also be used as empty paragraphs.
5569  This makes sense e.
5570 \begin_inset space \thinspace{}
5571 \end_inset
5572
5573 g.
5574 \begin_inset space \space{}
5575 \end_inset
5576
5577 for the 
5578 \family sans
5579 Signature
5580 \family default
5581  type.
5582  If the 
5583 \family sans
5584 Signature
5585 \family default
5586  type is not used at all,
5587  in the standard behavior the value of the 
5588 \family sans
5589 Name
5590 \family default
5591  type is used as signature,
5592  whereas if an empty 
5593 \family sans
5594 Signature
5595 \family default
5596  type is used,
5597  no signature value is defined.
5598 \end_layout
5599
5600 \begin_layout Standard
5601
5602 \change_deleted 564990737 1672429749
5603 By using the input types it is possible to write a letter template,
5604  containing filled input types with your personal dates (name,
5605  address,
5606  etc.) and empty input types for other dates you want to enter.
5607 \end_layout
5608
5609 \begin_layout Itemize
5610
5611 \change_deleted 564990737 1672429749
5612
5613 \family sans
5614 Name
5615 \family default
5616 :
5617  sender's name,
5618  in the standard behavior appears as a centered paragraph in small caps in the letter`s heading.
5619 \end_layout
5620
5621 \begin_layout Itemize
5622
5623 \change_deleted 564990737 1672429749
5624
5625 \family sans
5626 Signature
5627 \family default
5628 :
5629  sender's signature,
5630  in the standard behavior appears below the 
5631 \family sans
5632 Closing
5633 \family default
5634  type.
5635  If no 
5636 \family sans
5637 Signature
5638 \family default
5639  type is used,
5640  the value of the 
5641 \family sans
5642 Name
5643 \family default
5644  type appears instead.
5645 \end_layout
5646
5647 \begin_layout Itemize
5648
5649 \change_deleted 564990737 1672429749
5650
5651 \family sans
5652 Address
5653 \family default
5654 :
5655  sender's address,
5656  in the standard behavior appears in a centered paragraph in the letter`s heading below the sender's name.
5657 \end_layout
5658
5659 \begin_layout Itemize
5660
5661 \change_deleted 564990737 1672429749
5662
5663 \family sans
5664 Telephone
5665 \family default
5666 :
5667  sender's telephone number,
5668  in the standard behavior only sets the \SpecialChar LaTeX
5669  variable 
5670 \family typewriter
5671
5672 \backslash
5673 telephonenum
5674 \family default
5675 .
5676 \end_layout
5677
5678 \begin_layout Itemize
5679
5680 \change_deleted 564990737 1672429749
5681
5682 \family sans
5683 Place
5684 \family default
5685 :
5686  place of the letter`s making.
5687 \end_layout
5688
5689 \begin_layout Itemize
5690
5691 \change_deleted 564990737 1672429749
5692
5693 \family sans
5694 Date
5695 \family default
5696 :
5697  date of the letter`s making.
5698  
5699 \family sans
5700 Place
5701 \family default
5702  and 
5703 \family sans
5704 Date
5705 \family default
5706 ,
5707  in the standard behavior,
5708  produce the place and the date in a right-aligned line below the addressee's field.
5709  If an empty 
5710 \family sans
5711 Date
5712 \family default
5713  type is used,
5714  neither place nor date appear,
5715  independent of the value of the 
5716 \family sans
5717 Place
5718 \family default
5719  type.
5720  If no 
5721 \family sans
5722 Date
5723 \family default
5724  type is used,
5725  the date of the letter `s production is used.
5726 \end_layout
5727
5728 \begin_layout Itemize
5729
5730 \change_deleted 564990737 1672429749
5731
5732 \family sans
5733 Backaddress
5734 \family default
5735 :
5736  sender`s back address,
5737  in the standard behavior appears above the addressee's field in a small sans serif font.
5738 \end_layout
5739
5740 \begin_layout Itemize
5741
5742 \change_deleted 564990737 1672429749
5743
5744 \family sans
5745 Specialmail
5746 \family default
5747 :
5748  special mail information,
5749  in the standard behavior appears underlined above the addressee's field below the back address.
5750 \end_layout
5751
5752 \begin_layout Itemize
5753
5754 \change_deleted 564990737 1672429749
5755
5756 \family sans
5757 Location
5758 \family default
5759 :
5760  additional information,
5761  in the standard behavior appears on right side below the addressee`s field.
5762 \end_layout
5763
5764 \begin_layout Itemize
5765
5766 \change_deleted 564990737 1672429749
5767
5768 \family sans
5769 Title
5770 \family default
5771 :
5772  the letter's title,
5773  in the standard behavior appears in a big,
5774  bold,
5775  sans serif font above the subject.
5776 \end_layout
5777
5778 \begin_layout Itemize
5779
5780 \change_deleted 564990737 1672429749
5781
5782 \family sans
5783 Subject
5784 \family default
5785 :
5786  the letter's subject,
5787  in the standard behavior appears in a bold font above the 
5788 \family sans
5789 Opening
5790 \family default
5791  paragraph.
5792 \end_layout
5793
5794 \begin_layout Standard
5795
5796 \change_deleted 564990737 1672429749
5797 The types 
5798 \family sans
5799 Yourref
5800 \family default
5801 ,
5802  
5803 \family sans
5804 Yourmail
5805 \family default
5806 ,
5807  
5808 \family sans
5809 Myref
5810 \family default
5811 ,
5812  
5813 \family sans
5814 Customer
5815 \family default
5816 ,
5817  and 
5818 \family sans
5819 Invoice
5820 \family default
5821  produce a business letter like line above the 
5822 \family sans
5823 Title
5824 \family default
5825  line containing the fields 
5826 \begin_inset Quotes eld
5827 \end_inset
5828
5829 Your ref.
5830 \begin_inset Quotes erd
5831 \end_inset
5832
5833 ,
5834  
5835 \begin_inset Quotes eld
5836 \end_inset
5837
5838 Your letter of
5839 \begin_inset Quotes erd
5840 \end_inset
5841
5842 ,
5843  
5844 \begin_inset Quotes eld
5845 \end_inset
5846
5847 Our ref.
5848 \begin_inset Quotes erd
5849 \end_inset
5850
5851 ,
5852  
5853 \begin_inset Quotes eld
5854 \end_inset
5855
5856 Customer no.
5857 \begin_inset Quotes erd
5858 \end_inset
5859
5860 ,
5861  
5862 \begin_inset Quotes eld
5863 \end_inset
5864
5865 Invoice no.
5866 \begin_inset Quotes erd
5867 \end_inset
5868
5869 ,
5870  and 
5871 \begin_inset Quotes eld
5872 \end_inset
5873
5874 Date
5875 \begin_inset Quotes erd
5876 \end_inset
5877
5878 .
5879  For the date field,
5880  the value of the 
5881 \family sans
5882 Date
5883 \family default
5884  type is used.
5885  If one of these 
5886 \begin_inset Quotes eld
5887 \end_inset
5888
5889 business letter types
5890 \begin_inset Quotes erd
5891 \end_inset
5892
5893  is used,
5894  the value of the 
5895 \family sans
5896 Place
5897 \family default
5898  type however does not appear,
5899  but only the \SpecialChar LaTeX
5900  variable 
5901 \family typewriter
5902
5903 \backslash
5904 fromplace
5905 \family default
5906  is set.
5907  The ordinary output of place and date in a right-aligned line below the addressee`s field is suppressed.
5908  The types are implemented as input types provided with a label and must be used ahead of the corresponding 
5909 \family sans
5910 Opening
5911 \family default
5912  type.
5913 \end_layout
5914
5915 \begin_layout Itemize
5916
5917 \change_deleted 564990737 1672429749
5918
5919 \family sans
5920 Yourref
5921 \family default
5922 :
5923  Your ref.
5924 \end_layout
5925
5926 \begin_layout Itemize
5927
5928 \change_deleted 564990737 1672429749
5929
5930 \family sans
5931 Yourmail
5932 \family default
5933 :
5934  Your letter of.
5935 \end_layout
5936
5937 \begin_layout Itemize
5938
5939 \change_deleted 564990737 1672429749
5940
5941 \family sans
5942 Myref
5943 \family default
5944 :
5945  Our ref.
5946 \end_layout
5947
5948 \begin_layout Itemize
5949
5950 \change_deleted 564990737 1672429749
5951
5952 \family sans
5953 Customer
5954 \family default
5955 :
5956  Customer no.
5957 \end_layout
5958
5959 \begin_layout Itemize
5960
5961 \change_deleted 564990737 1672429749
5962
5963 \family sans
5964 Invoice
5965 \family default
5966 :
5967  Invoice no.
5968 \change_unchanged
5969
5970 \end_layout
5971
5972 \begin_layout Subsubsection
5973
5974 \change_deleted 564990737 1672429773
5975 The new letter class:
5976  letter (koma-script v.2)
5977 \change_inserted 564990737 1672429774
5978
5979 \begin_inset CommandInset label
5980 LatexCommand label
5981 name "subsec:The-new-letter"
5982
5983 \end_inset
5984
5985 The new letter class:
5986  letter (KOMA-Script v.2)
5987 \change_unchanged
5988
5989 \end_layout
5990
5991 \begin_layout Standard
5992 by 
5993 \noun on
5994 Jürgen Spitzmüller
5995 \end_layout
5996
5997 \begin_layout Standard
5998 \begin_inset VSpace medskip
5999 \end_inset
6000
6001
6002 \end_layout
6003
6004 \begin_layout Standard
6005 \noindent
6006 Koma-Script version 2.8 has introduced a new letter class 
6007 \family typewriter
6008 scrlttr2
6009 \family default
6010  which supersedes the now unsupported 
6011 \family typewriter
6012 scrlettr
6013 \family default
6014 .
6015  It has —
6016  on the \SpecialChar LaTeX
6017  side —
6018  a completely new interface and is not compatible with the old class.
6019  Therefore,
6020  \SpecialChar LyX
6021  supports both,
6022  though it is recommended you use the new class.
6023 \end_layout
6024
6025 \begin_layout Standard
6026 This class covers the same functionality as 
6027 \emph on
6028 letter (koma-script),
6029
6030 \emph default
6031  and a few more.
6032  The basic items are 
6033 \family sans
6034 Address
6035 \family default
6036  (receiver's address,
6037  same as 
6038 \family sans
6039 Letter
6040 \family default
6041  in the old layout),
6042  
6043 \family sans
6044 Opening
6045 \family default
6046 ,
6047  and 
6048 \family sans
6049 Closing
6050 \family default
6051 .
6052  
6053 \family sans
6054 NextAddress
6055 \family default
6056  will start a new letter (i.
6057 \begin_inset space \thinspace{}
6058 \end_inset
6059
6060 e.
6061 \begin_inset space \space{}
6062 \end_inset
6063
6064 you can write several letters per document).
6065  New elements are sender's 
6066 \family sans
6067 E-Mail
6068 \family default
6069 ,
6070  
6071 \family sans
6072 URL
6073 \family default
6074 ,
6075  
6076 \family sans
6077 Fax
6078 \family default
6079 ,
6080  
6081 \family sans
6082 Bank
6083 \family default
6084  and the possibility to use a 
6085 \family sans
6086 Logo
6087 \family default
6088  (via 
6089 \family sans
6090 Insert\SpecialChar menuseparator
6091 Graphics
6092 \family default
6093 ) in the header.
6094 \end_layout
6095
6096 \begin_layout Standard
6097 The biggest improvement is,
6098  though,
6099  that the letter's layout is configurable to meet almost any needs.
6100  This can be done via the preamble or with a special style file (Letter Class Option,
6101  extension 
6102 \family typewriter
6103 *.lco
6104 \family default
6105 ),
6106  that will be read in as a class option.
6107 \begin_inset Foot
6108 status collapsed
6109
6110 \begin_layout Plain Layout
6111 The KOMA package comes with some default 
6112 \family typewriter
6113 *.lco
6114 \family default
6115  files.
6116  There is,
6117  for instance,
6118  a 
6119 \family typewriter
6120 DIN.lco
6121 \family default
6122  file that follows german typesetting rules,
6123  or a 
6124 \family typewriter
6125 KOMAold.lco
6126 \family default
6127  that provides the default layout of the old 
6128 \family typewriter
6129 scrlettr
6130 \family default
6131  class.
6132  The latter can be loaded with the class option 
6133 \family typewriter
6134 KOMAold
6135 \family default
6136 ,
6137  inserted via the 
6138 \family sans
6139 Layout\SpecialChar menuseparator
6140 Document\SpecialChar menuseparator
6141 Extra Options
6142 \family default
6143  field.
6144 \end_layout
6145
6146 \end_inset
6147
6148  Have a look at the
6149 \change_deleted 564990737 1671617922
6150  
6151 \emph on
6152 koma-letter2
6153 \change_unchanged
6154
6155 \emph default
6156  template 
6157 \change_deleted 564990737 1671617938
6158 that is included in \SpecialChar LyX
6159  for examples
6160 \change_inserted 564990737 1671617997
6161  in 
6162 \family sans
6163 \bar under
6164 F
6165 \bar default
6166 ile\SpecialChar menuseparator
6167 New
6168 \begin_inset space ~
6169 \end_inset
6170
6171 fro
6172 \bar under
6173 m
6174 \bar default
6175
6176 \begin_inset space ~
6177 \end_inset
6178
6179 Template\SpecialChar menuseparator
6180 Letters\SpecialChar menuseparator
6181 KOMA-Script Letter (V.2)
6182 \change_unchanged
6183
6184 \family default
6185 .
6186  A detailed description is to be found in the Koma-Script documentation (
6187 \emph on
6188 scrguide
6189 \emph default
6190 ).
6191 \end_layout
6192
6193 \begin_layout Subsubsection
6194 Problems
6195 \end_layout
6196
6197 \begin_layout Standard
6198 Visualizing the Koma-Script document classes in \SpecialChar LyX
6199 ,
6200  the \SpecialChar LyX
6201  internals cause some problems.
6202 \end_layout
6203
6204 \begin_layout Itemize
6205 The chapter number of a 
6206 \family sans
6207 Chapter
6208 \family default
6209  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
6210  The cause for that is the \SpecialChar LyX
6211  internal behavior for the labeltype 
6212 \family sans
6213 Counter_Chapter
6214 \family default
6215  in the layout file.
6216 \end_layout
6217
6218 \begin_layout Itemize
6219 The headings of the types 
6220 \family sans
6221 Addchap
6222 \family default
6223  and 
6224 \family sans
6225 Addsec
6226 \family default
6227  are only put in the 
6228 \begin_inset Quotes eld
6229 \end_inset
6230
6231 true
6232 \begin_inset Quotes erd
6233 \end_inset
6234
6235  \SpecialChar LaTeX
6236  table of contents,
6237  but not in the \SpecialChar LyX
6238  table of contents (
6239 \family sans
6240 Document\SpecialChar menuseparator
6241 Table
6242 \begin_inset space ~
6243 \end_inset
6244
6245 of
6246 \begin_inset space ~
6247 \end_inset
6248
6249 Contents
6250 \family default
6251 ).
6252 \end_layout
6253
6254 \begin_layout Itemize
6255 The paragraphs in a 
6256 \emph on
6257 letter
6258 \emph default
6259  document class appear in a skip separation mode,
6260  not indented.
6261  This is the standard behavior,
6262  no special \SpecialChar LaTeX
6263  commands are needed for that.
6264  But in the 
6265 \family sans
6266 Document\SpecialChar menuseparator
6267 Settings
6268 \family default
6269  dialog the corresponding radio button indicates 
6270 \family sans
6271 Indent
6272 \family default
6273 .
6274  A 
6275 \family sans
6276 Skip
6277 \family default
6278  value always has the effect that extra \SpecialChar LaTeX
6279  commands are inserted in the document to produce the gap,
6280  which is not what is wanted in this case.
6281 \end_layout
6282
6283 \begin_layout Subsection
6284
6285 \change_inserted 564990737 1672743555
6286 \begin_inset CommandInset label
6287 LatexCommand label
6288 name "subsec:Polish-M.W.collection"
6289
6290 \end_inset
6291
6292 Polish M.
6293 \begin_inset space \thinspace{}
6294 \end_inset
6295
6296 W.
6297 \begin_inset space \space{}
6298 \end_inset
6299
6300 collection
6301 \change_deleted 564990737 1670924933
6302 Article (mwart),
6303  book (mwbk) and report (mwrep)
6304 \begin_inset Argument status
6305 status collapsed
6306
6307 \begin_layout Plain Layout
6308 The 
6309 \family typewriter
6310 mw
6311 \family default
6312  Classes
6313 \end_layout
6314
6315 \end_inset
6316
6317
6318 \change_unchanged
6319
6320 \end_layout
6321
6322 \begin_layout Standard
6323 by 
6324 \noun on
6325 Tomasz Luczak
6326 \end_layout
6327
6328 \begin_layout Standard
6329 The \SpecialChar LyX
6330  document classes 
6331 \emph on
6332 article (mwart)
6333 \emph default
6334 ,
6335  
6336 \emph on
6337 report (mwrep)
6338 \emph default
6339  and 
6340 \emph on
6341 book
6342 \emph default
6343  
6344 \emph on
6345 (mwbk)
6346 \emph default
6347  correspond to the \SpecialChar LaTeX
6348  document classes 
6349 \family typewriter
6350 mwart.cls
6351 \family default
6352 ,
6353  
6354 \family typewriter
6355 mwrep.cls
6356 \family default
6357  and 
6358 \family typewriter
6359 mwbk.cls
6360 \family default
6361 ,
6362  resp.
6363  They are replacements for the standard document classes 
6364 \family typewriter
6365 article.cls
6366 \family default
6367 ,
6368  
6369 \family typewriter
6370 report.cls
6371 \family default
6372  and 
6373 \family typewriter
6374 book.cls
6375 \family default
6376 ,
6377  resp.,
6378  and fit better to Polish typography conventions in a number of points.
6379  
6380 \end_layout
6381
6382 \begin_layout Standard
6383 Basic differences:
6384 \end_layout
6385
6386 \begin_layout Itemize
6387 Unnumbered titles (with star,
6388  e.
6389 \begin_inset space \thinspace{}
6390 \end_inset
6391
6392 g.
6393 \begin_inset space \space{}
6394 \end_inset
6395
6396
6397 \family sans
6398 Section*
6399 \family default
6400 ) are added into table of contents,
6401 \end_layout
6402
6403 \begin_layout Itemize
6404 Additional page styles:
6405 \end_layout
6406
6407 \begin_deeper
6408 \begin_layout Description
6409 uheadings header with separated lines,
6410 \end_layout
6411
6412 \begin_layout Description
6413 myheadings custom header,
6414  contents headers via commands:
6415  
6416 \family typewriter
6417
6418 \backslash
6419 markright
6420 \family default
6421  and 
6422 \family typewriter
6423
6424 \backslash
6425 markboth
6426 \family default
6427 ,
6428 \end_layout
6429
6430 \begin_layout Description
6431 myuheadings custom header with separated lines,
6432 \end_layout
6433
6434 \begin_layout Description
6435 outer page number is placed on outer side of page
6436 \end_layout
6437
6438 \end_deeper
6439 \begin_layout Itemize
6440 Options 
6441 \end_layout
6442
6443 \begin_deeper
6444 \begin_layout Description
6445 rmheadings serif titles —
6446  default,
6447 \end_layout
6448
6449 \begin_layout Description
6450 sfheadings sansserif titles,
6451 \end_layout
6452
6453 \begin_layout Description
6454 authortitle on title page first placed is author next title —
6455  default,
6456 \end_layout
6457
6458 \begin_layout Description
6459 titleauthor on title page first placed is title next author,
6460 \end_layout
6461
6462 \begin_layout Description
6463 withmarginpar reserve place on page for margins.
6464 \end_layout
6465
6466 \end_deeper
6467 \begin_layout Subsection
6468
6469 \change_inserted 564990737 1672652245
6470 Tufte Collection
6471 \end_layout
6472
6473 \begin_layout Standard
6474
6475 \change_inserted 564990737 1672652245
6476 The document classes 
6477 \family sans
6478 book
6479 \begin_inset space \thinspace{}
6480 \end_inset
6481
6482 (Tufte)
6483 \family default
6484  and 
6485 \family sans
6486 handout
6487 \begin_inset space \thinspace{}
6488 \end_inset
6489
6490 (Tufte)
6491 \family default
6492  use the 
6493 \family typewriter
6494 tufte-book.cls
6495 \family default
6496  and 
6497 \family typewriter
6498 tufte-handout.cls
6499 \family default
6500  document classes.
6501  Detailed information about these document classes can be found in 
6502 \family sans
6503 File\SpecialChar menuseparator
6504 Open Example\SpecialChar menuseparator
6505 Books\SpecialChar menuseparator
6506 Tufte Book
6507 \family default
6508  and 
6509 \family sans
6510 File\SpecialChar menuseparator
6511 Open Example\SpecialChar menuseparator
6512 Handouts\SpecialChar menuseparator
6513 Tufte Handout
6514 \family default
6515 .
6516 \end_layout
6517
6518 \begin_layout Section
6519
6520 \change_inserted 564990737 1670439534
6521 Articles
6522 \end_layout
6523
6524 \begin_layout Standard
6525
6526 \change_inserted 564990737 1670794710
6527 See also the document classes in the Collections (section
6528 \begin_inset space ~
6529 \end_inset
6530
6531
6532 \begin_inset CommandInset ref
6533 LatexCommand ref
6534 reference "sec:Collections"
6535 nolink "false"
6536
6537 \end_inset
6538
6539 ).
6540 \end_layout
6541
6542 \begin_layout Subsection
6543
6544 \change_inserted 564990737 1670794716
6545 A&A Paper
6546 \end_layout
6547
6548 \begin_layout Standard
6549
6550 \change_inserted 564990737 1670794716
6551 Original by 
6552 \noun on
6553 Peter Sütterlin
6554 \noun default
6555 ;
6556  updated by the \SpecialChar LyX
6557  Team
6558 \end_layout
6559
6560 \begin_layout Subsubsection
6561
6562 \change_inserted 564990737 1670794716
6563 Introduction
6564 \end_layout
6565
6566 \begin_layout Standard
6567
6568 \change_inserted 564990737 1670794716
6569 This section describes how \SpecialChar LyX
6570  can be used to write articles for submission to the scientific journal 
6571 \emph on
6572 Astronomy and Astrophysics
6573 \emph default
6574  (
6575 \begin_inset CommandInset href
6576 LatexCommand href
6577 name "aa-package"
6578 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6579 literal "false"
6580
6581 \end_inset
6582
6583 ) using Version 9.1 of the document class 
6584 \family typewriter
6585 aa.cls
6586 \family default
6587 ;
6588  information about it is available at 
6589 \begin_inset Flex URL
6590 status collapsed
6591
6592 \begin_layout Plain Layout
6593
6594 \change_inserted 564990737 1670794716
6595
6596 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
6597 \change_unchanged
6598
6599 \end_layout
6600
6601 \end_inset
6602
6603 .
6604 \end_layout
6605
6606 \begin_layout Standard
6607
6608 \change_inserted 564990737 1670794716
6609 A manual comes together with the package and should be consulted before installing this document class as described in the 
6610 \emph on
6611 Installing New Document Classe
6612 \emph default
6613 s section of the 
6614 \emph on
6615 Customization
6616 \emph default
6617  manual.
6618  
6619 \end_layout
6620
6621 \begin_layout Standard
6622
6623 \change_inserted 564990737 1670794716
6624 \begin_inset Note Greyedout
6625 status open
6626
6627 \begin_layout Plain Layout
6628
6629 \change_inserted 564990737 1670794716
6630 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
6631  2001.
6632  That change also involved some slight changes to the style files,
6633  namely the removal of the thesaurus command.
6634  If you have an older version installed,
6635  please upgrade.
6636  For information about compatibility with the old (version 4) layout,
6637  please refer to the comments in 
6638 \family typewriter
6639 \SpecialChar LyX
6640 Dir/layouts/aapaper.layout
6641 \family default
6642 .
6643 \end_layout
6644
6645 \end_inset
6646
6647
6648 \end_layout
6649
6650 \begin_layout Subsubsection
6651
6652 \change_inserted 564990737 1670794716
6653 Getting started
6654 \end_layout
6655
6656 \begin_layout Standard
6657
6658 \change_inserted 564990737 1671617129
6659 It is recommended you start from the template in the menu 
6660 \family sans
6661 \bar under
6662 F
6663 \bar default
6664 ile\SpecialChar menuseparator
6665 New
6666 \begin_inset space ~
6667 \end_inset
6668
6669 fro
6670 \bar under
6671 m
6672 \bar default
6673
6674 \begin_inset space ~
6675 \end_inset
6676
6677 Template\SpecialChar menuseparator
6678 Articles\SpecialChar menuseparator
6679 Astronomy & Astrophysics
6680 \family default
6681 .
6682  If you are not using the template,
6683  note the following settings:
6684 \end_layout
6685
6686 \begin_layout Itemize
6687
6688 \change_inserted 564990737 1670794716
6689 Select 
6690 \family sans
6691 article (A&A)
6692 \family default
6693  in the 
6694 \family sans
6695 \bar under
6696 D
6697 \bar default
6698 ocument\SpecialChar menuseparator
6699
6700 \bar under
6701 S
6702 \bar default
6703 ettings\SpecialChar menuseparator
6704 Document
6705 \begin_inset space ~
6706 \end_inset
6707
6708 Class
6709 \family default
6710  dialog (OK,
6711  that one was obvious).
6712 \end_layout
6713
6714 \begin_layout Itemize
6715
6716 \change_inserted 564990737 1670794716
6717 Don't change the 
6718 \family sans
6719 Headings
6720 \begin_inset space ~
6721 \end_inset
6722
6723
6724 \bar under
6725 s
6726 \bar default
6727 tyle
6728 \family default
6729  in the 
6730 \family sans
6731 Page
6732 \begin_inset space ~
6733 \end_inset
6734
6735 Layout
6736 \family default
6737  dialog:
6738  leave it set to 
6739 \family sans
6740 Default
6741 \family default
6742 .
6743  The whole layout is done by the macros,
6744  you shouldn't change anything.
6745 \end_layout
6746
6747 \begin_layout Subsubsection
6748
6749 \change_inserted 564990737 1670794716
6750 The header block
6751 \end_layout
6752
6753 \begin_layout Standard
6754
6755 \change_inserted 564990737 1670794716
6756 First thing to enter is the header information.
6757  It consists of five entries,
6758  of which one is optional.
6759  They are
6760 \end_layout
6761
6762 \begin_layout Itemize
6763
6764 \change_inserted 564990737 1670794716
6765
6766 \family sans
6767 Title
6768 \family default
6769 :
6770  [required] 
6771 \end_layout
6772
6773 \begin_layout Itemize
6774
6775 \change_inserted 564990737 1670794716
6776
6777 \family sans
6778 Subtitle
6779 \family default
6780 :
6781  [optional] 
6782 \end_layout
6783
6784 \begin_layout Itemize
6785
6786 \change_inserted 564990737 1670794716
6787
6788 \family sans
6789 Author
6790 \family default
6791 :
6792  [required]
6793 \end_layout
6794
6795 \begin_layout Itemize
6796
6797 \change_inserted 564990737 1670794716
6798
6799 \family typewriter
6800 Institute
6801 \family default
6802 :
6803  [required]
6804 \end_layout
6805
6806 \begin_layout Itemize
6807
6808 \change_inserted 564990737 1670794716
6809
6810 \family sans
6811 Date
6812 \family default
6813 :
6814  [required].
6815  Suggested format is 
6816 \family typewriter
6817 Received:
6818  <date>;
6819  Accepted <date> 
6820 \end_layout
6821
6822 \begin_layout Standard
6823
6824 \change_inserted 564990737 1670794716
6825 Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
6826  just to get the best optics and meets the layout of the real document.
6827 \end_layout
6828
6829 \begin_layout Standard
6830
6831 \change_inserted 564990737 1670794716
6832 If you want to place footnotes in the header block,
6833  e.
6834 \begin_inset space \thinspace{}
6835 \end_inset
6836
6837 g.
6838 \begin_inset space \space{}
6839 \end_inset
6840
6841 to state your present address,
6842  just use the standard footnote via the menu 
6843 \family sans
6844 \bar under
6845 I
6846 \bar default
6847 nsert\SpecialChar menuseparator
6848
6849 \bar under
6850 F
6851 \bar default
6852 ootnote.
6853
6854 \family default
6855  \SpecialChar LyX
6856  will automagically use the term 
6857 \family typewriter
6858
6859 \backslash
6860 thanks{}
6861 \family default
6862  in that case.
6863 \end_layout
6864
6865 \begin_layout Standard
6866
6867 \change_inserted 564990737 1670794716
6868 In addition to these topics,
6869  the macros use three additional \SpecialChar LaTeX
6870  commands that have no counterpart in \SpecialChar LyX
6871 :
6872 \end_layout
6873
6874 \begin_layout Itemize
6875
6876 \change_inserted 564990737 1670794716
6877
6878 \family typewriter
6879
6880 \backslash
6881 and
6882 \family default
6883  to separate different names for more than one author and institute,
6884  respectively.
6885 \end_layout
6886
6887 \begin_layout Itemize
6888
6889 \change_inserted 564990737 1670794716
6890
6891 \family typewriter
6892
6893 \backslash
6894 inst{<nr>}
6895 \family default
6896  to mark corresponding author/institute pairs.
6897  The institutes are numbered sequentially as they appear in the 
6898 \family sans
6899 Institute
6900 \family default
6901  field,
6902  so you have to put a marker to each author.
6903 \end_layout
6904
6905 \begin_layout Itemize
6906
6907 \change_inserted 564990737 1670794716
6908
6909 \family typewriter
6910
6911 \backslash
6912 email{address}
6913 \family default
6914  to supply an email address for fast contact.
6915 \end_layout
6916
6917 \begin_layout Standard
6918
6919 \change_inserted 564990737 1671642374
6920 In all cases,
6921  the appropriate command has to be entered as \SpecialChar TeX
6922  code in \SpecialChar LyX
6923 .
6924  See the examples in the template and in 
6925 \family sans
6926 File\SpecialChar menuseparator
6927 Open Example\SpecialChar menuseparator
6928 Articles\SpecialChar menuseparator
6929 Astronomy & Astrophysics
6930 \family default
6931 .
6932 \change_unchanged
6933
6934 \end_layout
6935
6936 \begin_layout Subsubsection
6937
6938 \change_inserted 564990737 1670794716
6939 The abstract
6940 \end_layout
6941
6942 \begin_layout Standard
6943
6944 \change_inserted 564990737 1670794716
6945 The abstract should immediately follow the header block and must contain five tokens:
6946  
6947 \family typewriter
6948
6949 \backslash
6950 abstract{}{}{}{}{}
6951 \family default
6952  
6953 \end_layout
6954
6955 \begin_layout Enumerate
6956
6957 \change_inserted 564990737 1670794716
6958
6959 \family typewriter
6960 context heading
6961 \family default
6962  (optional) {} leave it empty if necessary 
6963 \end_layout
6964
6965 \begin_layout Enumerate
6966
6967 \change_inserted 564990737 1670794716
6968
6969 \family typewriter
6970 aims heading
6971 \family default
6972  (mandatory) {} 
6973 \end_layout
6974
6975 \begin_layout Enumerate
6976
6977 \change_inserted 564990737 1670794716
6978
6979 \family typewriter
6980 methods heading
6981 \family default
6982  (mandatory) {} 
6983 \end_layout
6984
6985 \begin_layout Enumerate
6986
6987 \change_inserted 564990737 1670794716
6988
6989 \family typewriter
6990 results heading
6991 \family default
6992  (mandatory) {} 
6993 \end_layout
6994
6995 \begin_layout Enumerate
6996
6997 \change_inserted 564990737 1670794716
6998
6999 \family typewriter
7000 conclusions heading
7001 \family default
7002  (optional) {} leave it empty if necessary 
7003 \end_layout
7004
7005 \begin_layout Standard
7006
7007 \change_inserted 564990737 1670794716
7008 (NB.
7009  This structure not shown in 
7010 \emph on
7011 aa_sample.lyx.
7012 \emph default
7013 )
7014 \end_layout
7015
7016 \begin_layout Subsubsection
7017
7018 \change_inserted 564990737 1670794716
7019 Supported environments
7020 \end_layout
7021
7022 \begin_layout Standard
7023
7024 \change_inserted 564990737 1670794716
7025 The A&A paper layout supports the following environments for structuring your text:
7026 \end_layout
7027
7028 \begin_layout Itemize
7029
7030 \change_inserted 564990737 1670794716
7031
7032 \family sans
7033 Standard
7034 \end_layout
7035
7036 \begin_layout Itemize
7037
7038 \change_inserted 564990737 1670794716
7039
7040 \family sans
7041 Section
7042 \end_layout
7043
7044 \begin_layout Itemize
7045
7046 \change_inserted 564990737 1670794716
7047
7048 \family sans
7049 Subsection
7050 \end_layout
7051
7052 \begin_layout Itemize
7053
7054 \change_inserted 564990737 1670794716
7055
7056 \family sans
7057 Subsubsection
7058 \end_layout
7059
7060 \begin_layout Itemize
7061
7062 \change_inserted 564990737 1670794716
7063
7064 \family sans
7065 Itemize
7066 \end_layout
7067
7068 \begin_layout Itemize
7069
7070 \change_inserted 564990737 1670794716
7071
7072 \family sans
7073 Enumerate
7074 \end_layout
7075
7076 \begin_layout Itemize
7077
7078 \change_inserted 564990737 1670794716
7079
7080 \family sans
7081 Description
7082 \end_layout
7083
7084 \begin_layout Itemize
7085
7086 \change_inserted 564990737 1670794716
7087
7088 \family sans
7089 Caption
7090 \end_layout
7091
7092 \begin_layout Itemize
7093
7094 \change_inserted 564990737 1670794716
7095
7096 \family sans
7097 Abstract
7098 \end_layout
7099
7100 \begin_layout Itemize
7101
7102 \change_inserted 564990737 1670794716
7103
7104 \family sans
7105 Acknowledgment
7106 \end_layout
7107
7108 \begin_layout Itemize
7109
7110 \change_inserted 564990737 1670794716
7111
7112 \family sans
7113 Bibliography
7114 \end_layout
7115
7116 \begin_layout Itemize
7117
7118 \change_inserted 564990737 1670794716
7119
7120 \family sans
7121 \SpecialChar LaTeX
7122
7123 \end_layout
7124
7125 \begin_layout Subsubsection
7126
7127 \change_inserted 564990737 1670794716
7128 Commands not supported by \SpecialChar LyX
7129
7130 \end_layout
7131
7132 \begin_layout Standard
7133
7134 \change_inserted 564990737 1670794716
7135 Some commands are not yet supported by the 
7136 \family sans
7137 paper (A&A)
7138 \family default
7139  layout for \SpecialChar LyX
7140 .
7141  Some have already been mentioned.
7142  For the sake of completeness,
7143  they are listed all together here:
7144 \end_layout
7145
7146 \begin_layout Itemize
7147
7148 \change_inserted 564990737 1670794716
7149
7150 \family typewriter
7151
7152 \backslash
7153 and
7154 \end_layout
7155
7156 \begin_layout Itemize
7157
7158 \change_inserted 564990737 1670794716
7159
7160 \family typewriter
7161
7162 \backslash
7163 email
7164 \end_layout
7165
7166 \begin_layout Itemize
7167
7168 \change_inserted 564990737 1670794716
7169
7170 \family typewriter
7171
7172 \backslash
7173 inst{}
7174 \end_layout
7175
7176 \begin_layout Itemize
7177
7178 \change_inserted 564990737 1670794716
7179
7180 \family typewriter
7181
7182 \backslash
7183 keywords{}
7184 \end_layout
7185
7186 \begin_layout Itemize
7187
7188 \change_inserted 564990737 1670794716
7189
7190 \family typewriter
7191
7192 \backslash
7193 object{}
7194 \end_layout
7195
7196 \begin_layout Standard
7197
7198 \change_inserted 564990737 1670794716
7199 If you want to use any of these commands,
7200  you have to enter them yourself.
7201  
7202 \family typewriter
7203 Do not forget to use
7204 \family sans
7205  
7206 \bar under
7207 I
7208 \bar default
7209 nsert\SpecialChar menuseparator
7210 \SpecialChar TeX
7211
7212 \begin_inset space ~
7213 \end_inset
7214
7215 Code
7216 \family default
7217 \series bold
7218 !
7219 \end_layout
7220
7221 \begin_layout Subsubsection
7222
7223 \change_inserted 564990737 1670794716
7224 Figure and Table Floats
7225 \end_layout
7226
7227 \begin_layout Standard
7228
7229 \change_inserted 564990737 1670794716
7230 \SpecialChar LyX
7231  provides support for the necessary float environments 
7232 \family sans
7233 figure,
7234  figure*,
7235  table
7236 \family default
7237  and 
7238 \family sans
7239 table*
7240 \family default
7241 ,
7242  therefore we won't tell much about it here.
7243  Refer to the 
7244 \emph on
7245 User's
7246 \begin_inset space ~
7247 \end_inset
7248
7249 Guide
7250 \emph default
7251 .
7252  Just remember that tables should be left-aligned.
7253  For that,
7254  select the table and change the alignment in 
7255 \family sans
7256 \bar under
7257 E
7258 \bar default
7259 dit\SpecialChar menuseparator
7260
7261 \bar under
7262 P
7263 \bar default
7264 aragraph
7265 \begin_inset space ~
7266 \end_inset
7267
7268 Settings.
7269 \end_layout
7270
7271 \begin_layout Standard
7272
7273 \change_inserted 564990737 1670794716
7274 There is only one special thing:
7275  the figures with a caption beside the figure.
7276  To create such a figure,
7277  you have to do the following:
7278 \end_layout
7279
7280 \begin_layout Enumerate
7281
7282 \change_inserted 564990737 1670794716
7283 Create a wide figure float:
7284  
7285 \family sans
7286 \bar under
7287 I
7288 \bar default
7289 nsert\SpecialChar menuseparator
7290 Flo
7291 \bar under
7292 a
7293 \bar default
7294 t\SpecialChar menuseparator
7295 Figure
7296 \family default
7297 ,
7298  then,
7299  from within the float,
7300  use the menu 
7301 \family sans
7302 \bar under
7303 E
7304 \bar default
7305 dit\SpecialChar menuseparator
7306 Flo
7307 \bar under
7308 a
7309 \bar default
7310 t
7311 \begin_inset space ~
7312 \end_inset
7313
7314 Settings
7315 \family default
7316  and check 
7317 \family sans
7318 \bar under
7319 S
7320 \bar default
7321 pan
7322 \begin_inset space ~
7323 \end_inset
7324
7325 columns
7326 \family default
7327  in the 
7328 \family sans
7329 float
7330 \family default
7331  dialog.
7332 \end_layout
7333
7334 \begin_layout Enumerate
7335
7336 \change_inserted 564990737 1670794716
7337 Enter your caption text.
7338 \end_layout
7339
7340 \begin_layout Enumerate
7341
7342 \change_inserted 564990737 1670794716
7343 Press 
7344 \family sans
7345 Return
7346 \family default
7347  to move the cursor above the caption.
7348 \end_layout
7349
7350 \begin_layout Enumerate
7351
7352 \change_inserted 564990737 1670794716
7353 Insert your figure
7354 \end_layout
7355
7356 \begin_layout Enumerate
7357
7358 \change_inserted 564990737 1670794716
7359 Position the cursor after the figure and insert a horizontal fill by using the menu:
7360  
7361 \family sans
7362 \bar under
7363 I
7364 \bar default
7365 nsert\SpecialChar menuseparator
7366 F
7367 \bar under
7368 o
7369 \bar default
7370 rmatting\SpecialChar menuseparator
7371 H
7372 \bar under
7373 o
7374 \bar default
7375 rizontal
7376 \begin_inset space ~
7377 \end_inset
7378
7379 Space
7380 \family default
7381  to open the 
7382 \family sans
7383 space
7384 \family default
7385  dialog and select the 
7386 \family sans
7387 Horizontal fill
7388 \family default
7389  option from the 
7390 \family sans
7391 \bar under
7392 S
7393 \bar default
7394 pacing
7395 \family default
7396  pull-down menu.
7397 \end_layout
7398
7399 \begin_layout Enumerate
7400
7401 \change_inserted 564990737 1670794716
7402 Switch to \SpecialChar LaTeX
7403  mode:
7404  
7405 \family sans
7406 M-c
7407 \begin_inset space ~
7408 \end_inset
7409
7410 t
7411 \family default
7412 .
7413 \end_layout
7414
7415 \begin_layout Enumerate
7416
7417 \change_inserted 564990737 1670794716
7418 Enter 
7419 \family typewriter
7420
7421 \backslash
7422 parbox[b]{55mm}{
7423 \family default
7424  
7425 \emph on
7426 Do not close the brace!
7427 \end_layout
7428
7429 \begin_layout Enumerate
7430
7431 \change_inserted 564990737 1670794716
7432 Position the cursor behind the caption text,
7433  switch to \SpecialChar LaTeX
7434  mode and insert the closing brace:
7435  
7436 \family sans
7437 M-c
7438 \begin_inset space ~
7439 \end_inset
7440
7441 t
7442 \family default
7443  
7444 \family typewriter
7445 }
7446 \family default
7447 .
7448 \end_layout
7449
7450 \begin_layout Standard
7451
7452 \change_inserted 564990737 1671642458
7453 Also,
7454  refer to the figures in the file in 
7455 \family sans
7456 File\SpecialChar menuseparator
7457 Open Example\SpecialChar menuseparator
7458 Articles\SpecialChar menuseparator
7459 Astronomy & Astrophysics
7460 \family default
7461 .
7462 \end_layout
7463
7464 \begin_layout Subsubsection
7465
7466 \change_inserted 564990737 1670794716
7467 Referee layout
7468 \end_layout
7469
7470 \begin_layout Standard
7471
7472 \change_inserted 564990737 1670794716
7473 For submission,
7474  the paper has to be formatted in a special double-spacing layout.
7475  For this purpose,
7476  you have to add the option 
7477 \family typewriter
7478 referee
7479 \family default
7480  to the 
7481 \family sans
7482 Cus
7483 \bar under
7484 t
7485 \bar default
7486 om Class
7487 \begin_inset space ~
7488 \end_inset
7489
7490 options
7491 \family default
7492  in the 
7493 \family sans
7494 \bar under
7495 D
7496 \bar default
7497 ocument\SpecialChar menuseparator
7498
7499 \bar under
7500 S
7501 \bar default
7502 ettings\SpecialChar menuseparator
7503 Document
7504 \begin_inset space ~
7505 \end_inset
7506
7507 Class
7508 \family default
7509  dialog.
7510  
7511 \end_layout
7512
7513 \begin_layout Subsubsection
7514
7515 \change_inserted 564990737 1670794716
7516 The example paper
7517 \end_layout
7518
7519 \begin_layout Standard
7520
7521 \change_inserted 564990737 1671642520
7522 The example in 
7523 \family sans
7524 File\SpecialChar menuseparator
7525 Open Example\SpecialChar menuseparator
7526 Articles\SpecialChar menuseparator
7527 Astronomy & Astrophysics
7528 \family default
7529  was written with \SpecialChar LyX
7530 .
7531  It is the example paper from the original macro package,
7532  
7533 \family typewriter
7534 aa.dem
7535 \family default
7536  in the 
7537 \begin_inset CommandInset href
7538 LatexCommand href
7539 name "aa-package"
7540 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
7541 literal "false"
7542
7543 \end_inset
7544
7545 ,
7546  but translated to \SpecialChar LyX
7547  using the older unstructured abstract type.
7548  Use it for inspiration,
7549  and compare the \SpecialChar LaTeX
7550  code in 
7551 \family typewriter
7552 aa.dem
7553 \family default
7554  with the \SpecialChar LyX
7555  way of writing.
7556 \end_layout
7557
7558 \begin_layout Subsection
7559 AAS\SpecialChar TeX
7560
7561 \end_layout
7562
7563 \begin_layout Standard
7564 by 
7565 \noun on
7566 Mike Ressler
7567 \end_layout
7568
7569 \begin_layout Subsubsection
7570 Introduction
7571 \end_layout
7572
7573 \begin_layout Standard
7574 AAS\SpecialChar TeX
7575  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
7576  the Astrophysical Journal (including the Letters and Supplement),
7577  the Astronomical Journal,
7578  and the Publications of the Astronomical Society of the Pacific.
7579  \SpecialChar LyX
7580  has proven to be an excellent tool for generating these documents,
7581  especially given its equation,
7582  citation,
7583  and figure handling capabilities.
7584  \SpecialChar LyX
7585  requires version 5.0 (or higher) of these macros;
7586  preferably 6.0,
7587  which is the version described here,
7588  or higher.
7589  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
7590 2.09 and are fundamentally incompatible with \SpecialChar LyX
7591 .
7592  The AAS\SpecialChar TeX
7593  package may be downloaded from the AAS\SpecialChar TeX
7594  Web site
7595 \end_layout
7596
7597 \begin_layout Standard
7598 \begin_inset VSpace medskip
7599 \end_inset
7600
7601
7602 \end_layout
7603
7604 \begin_layout Standard
7605 \align center
7606 \begin_inset Flex URL
7607 status collapsed
7608
7609 \begin_layout Plain Layout
7610
7611 https://aas.org/aastex/aastex-downloads
7612 \end_layout
7613
7614 \end_inset
7615
7616
7617 \end_layout
7618
7619 \begin_layout Standard
7620 \begin_inset VSpace medskip
7621 \end_inset
7622
7623
7624 \end_layout
7625
7626 \begin_layout Standard
7627 A complete user guide is contained in that package and you should familiarize yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
7628 .
7629  \SpecialChar LyX
7630  will not reduce the need to figure out all the AAS\SpecialChar TeX
7631  commands,
7632  it will only reduce the drudgery of typing everything in.
7633  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
7634  document conforms completely to the requirements of the journal to which you are submitting your paper.
7635 \end_layout
7636
7637 \begin_layout Subsubsection
7638 Starting a New Paper
7639 \end_layout
7640
7641 \begin_layout Standard
7642 I strongly suggest that you start with the AAS\SpecialChar TeX
7643  template file.
7644  Click on 
7645 \family sans
7646 File\SpecialChar menuseparator
7647 New from
7648 \family default
7649  
7650 \family sans
7651 Template
7652 \change_inserted 564990737 1671617265
7653 \SpecialChar menuseparator
7654 Articles\SpecialChar menuseparator
7655 American Astronomical Society
7656 \change_deleted 564990737 1671617310
7657
7658 \family default
7659 ,
7660  enter the new file name,
7661  then choose the 
7662 \family typewriter
7663 aastex6.lyx
7664 \family default
7665  template
7666 \change_unchanged
7667 .
7668  This will show the most common fields found in a manuscript.
7669  Simply overwrite the existing text (including the brackets,
7670  
7671 \family typewriter
7672 <>
7673 \family default
7674 ) with the correct information.
7675  Many of the AAS\SpecialChar TeX
7676  commands and environments can be implemented directly in \SpecialChar LyX
7677 ,
7678  but some cannot.
7679  For commands such as these,
7680  the \SpecialChar LaTeX
7681  code must be entered directly and marked as such.
7682  Such commands are referred to as \SpecialChar TeX
7683  code,
7684  or Evil Red Text.
7685  I tried to minimize the amount of \SpecialChar TeX
7686  code needed in an AAS\SpecialChar TeX
7687  document.
7688 \end_layout
7689
7690 \begin_layout Subsubsection
7691 Finishing Your Paper
7692 \end_layout
7693
7694 \begin_layout Standard
7695 When the paper is finished to your satisfaction and previews/prints correctly,
7696  there are a few 
7697 \begin_inset Quotes eld
7698 \end_inset
7699
7700 postprocessing
7701 \begin_inset Quotes erd
7702 \end_inset
7703
7704  actions which need to be done before you submit it to the journals.
7705  
7706 \end_layout
7707
7708 \begin_layout Enumerate
7709 Export your paper as a \SpecialChar LaTeX
7710  file (
7711 \family sans
7712 File\SpecialChar menuseparator
7713 Export\SpecialChar menuseparator
7714 \SpecialChar LaTeX
7715
7716 \family default
7717 ).
7718  
7719 \end_layout
7720
7721 \begin_layout Enumerate
7722 Edit the resulting 
7723 \family typewriter
7724 .tex
7725 \family default
7726  file with your favorite text editor
7727 \end_layout
7728
7729 \begin_deeper
7730 \begin_layout Enumerate
7731 remove the comment lines before the 
7732 \family typewriter
7733
7734 \backslash
7735 documentclass
7736 \family default
7737  command
7738 \end_layout
7739
7740 \begin_layout Enumerate
7741 remove the 
7742 \family typewriter
7743
7744 \backslash
7745 usepackage...{fontenc}
7746 \family default
7747  line if it appears (usually just after 
7748 \family typewriter
7749
7750 \backslash
7751 documentclass
7752 \family default
7753 };
7754  also remove the 
7755 \family typewriter
7756
7757 \backslash
7758 secnumdepth
7759 \family default
7760  line if it appears.
7761 \end_layout
7762
7763 \begin_layout Enumerate
7764 remove everything between (and including) the 
7765 \family typewriter
7766
7767 \backslash
7768 makeatletter
7769 \family default
7770  and 
7771 \family typewriter
7772
7773 \backslash
7774 makeatother
7775 \family default
7776  commands,
7777  except for any commands you specifically put into the \SpecialChar LaTeX
7778  preamble (which should appear immediately after the 
7779 \begin_inset Quotes eld
7780 \end_inset
7781
7782 User specified \SpecialChar LaTeX
7783  commands
7784 \begin_inset Quotes erd
7785 \end_inset
7786
7787  comment in the 
7788 \family typewriter
7789 .tex
7790 \family default
7791  file).
7792 \end_layout
7793
7794 \end_deeper
7795 \begin_layout Enumerate
7796 Run the resulting file through \SpecialChar LaTeX
7797  to make sure it still processes correctly.
7798 \end_layout
7799
7800 \begin_layout Enumerate
7801 Reread the journal requirements to make sure your filenames and formats are correct.
7802 \end_layout
7803
7804 \begin_layout Enumerate
7805 Submit it.
7806 \end_layout
7807
7808 \begin_layout Subsubsection
7809 Comments On Specific Commands
7810 \end_layout
7811
7812 \begin_layout Standard
7813 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
7814  commands:
7815  the AAS\SpecialChar TeX
7816  User Guide (
7817 \family typewriter
7818 aasguide.tex
7819 \family default
7820 ) gives a good description of each.
7821  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
7822  So let's begin \SpecialChar ldots
7823
7824 \end_layout
7825
7826 \begin_layout Paragraph
7827 Things that work as expected
7828 \end_layout
7829
7830 \begin_layout Standard
7831 Because they work as you might expect,
7832  I simply list them and the section they are found in:
7833  
7834 \family typewriter
7835
7836 \backslash
7837 documentclass
7838 \family default
7839  (2.1.1),
7840  
7841 \family typewriter
7842
7843 \backslash
7844 begin{document}
7845 \family default
7846  (2.2),
7847  
7848 \family typewriter
7849
7850 \backslash
7851 title
7852 \family default
7853  (2.3),
7854  
7855 \family typewriter
7856
7857 \backslash
7858 author
7859 \family default
7860  (2.3),
7861  
7862 \family typewriter
7863
7864 \backslash
7865 affil
7866 \family default
7867  (2.3),
7868  
7869 \family typewriter
7870
7871 \backslash
7872 abstract
7873 \family default
7874  (2.4),
7875  
7876 \family typewriter
7877
7878 \backslash
7879 keywords
7880 \family default
7881  (2.5),
7882  
7883 \family typewriter
7884
7885 \backslash
7886 section
7887 \family default
7888  (2.7),
7889  
7890 \family typewriter
7891
7892 \backslash
7893 subsection
7894 \family default
7895  (2.7),
7896  
7897 \family typewriter
7898
7899 \backslash
7900 subsubsection
7901 \family default
7902  (2.7),
7903  
7904 \family typewriter
7905
7906 \backslash
7907 paragraph
7908 \family default
7909  (2.7),
7910  
7911 \family typewriter
7912
7913 \backslash
7914 facility
7915 \family default
7916  (2.10),
7917  
7918 \family typewriter
7919
7920 \backslash
7921 begin{displaymath}
7922 \family default
7923  (2.12),
7924  
7925 \family typewriter
7926
7927 \backslash
7928 begin{equation}
7929 \family default
7930  (2.12),
7931  
7932 \family typewriter
7933
7934 \backslash
7935 begin{eqnarray}
7936 \family default
7937  (2.12),
7938  
7939 \family typewriter
7940
7941 \backslash
7942 begin{mathletters}
7943 \family default
7944  (2.12),
7945  
7946 \family typewriter
7947
7948 \backslash
7949 begin{thebibliography}
7950 \family default
7951  (2.13.1),
7952  
7953 \family typewriter
7954
7955 \backslash
7956 bibitem
7957 \family default
7958  (2.13.2),
7959  all the cite commands and their variations (2.13.2),
7960  the generic graphicx figure commands (2.14.1),
7961  
7962 \family typewriter
7963
7964 \backslash
7965 begin{table}
7966 \family default
7967  (2.15.4),
7968  
7969 \family typewriter
7970
7971 \backslash
7972 begin{tabular}
7973 \family default
7974  (2.15.4),
7975  
7976 \family typewriter
7977
7978 \backslash
7979 caption
7980 \family default
7981  (2.15.4),
7982  
7983 \family typewriter
7984
7985 \backslash
7986 label
7987 \family default
7988  (2.15.4,
7989  amongst other places),
7990  
7991 \family typewriter
7992
7993 \backslash
7994 tablerefs
7995 \family default
7996  (2.15.5),
7997  
7998 \family typewriter
7999
8000 \backslash
8001 tablecomments
8002 \family default
8003  (2.15.5),
8004  
8005 \family typewriter
8006
8007 \backslash
8008 url
8009 \family default
8010  (2.17.4),
8011  
8012 \family typewriter
8013
8014 \backslash
8015 end{document}
8016 \family default
8017  (2.18).
8018 \end_layout
8019
8020 \begin_layout Standard
8021 The following style options also work correctly:
8022  
8023 \family typewriter
8024 longabstract
8025 \family default
8026  (2.4),
8027  
8028 \family typewriter
8029 preprint
8030 \family default
8031  (3.2.1),
8032  
8033 \family typewriter
8034 preprint2
8035 \family default
8036  (3.2.2),
8037  
8038 \family typewriter
8039 eqsecnum
8040 \family default
8041  (3.3),
8042  
8043 \family typewriter
8044 flushrt
8045 \family default
8046  (3.4).
8047  Simply put them in the 
8048 \family sans
8049 Options
8050 \family default
8051  box in 
8052 \family sans
8053 Layout\SpecialChar menuseparator
8054 Document
8055 \family default
8056 .
8057 \end_layout
8058
8059 \begin_layout Paragraph
8060 Things that work,
8061  but require more comment
8062 \end_layout
8063
8064 \begin_layout Standard
8065 The following items work,
8066  but require a little more discussion:
8067 \end_layout
8068
8069 \begin_layout Itemize
8070 These items are reserved for use by the journal editors,
8071  but you can put them into the \SpecialChar LaTeX
8072  preamble if you feel compelled to do so:
8073  
8074 \family typewriter
8075
8076 \backslash
8077 received
8078 \family default
8079 ,
8080  
8081 \family typewriter
8082
8083 \backslash
8084 revised
8085 \family default
8086 ,
8087  
8088 \family typewriter
8089
8090 \backslash
8091 accepted
8092 \family default
8093 ,
8094  
8095 \family typewriter
8096
8097 \backslash
8098 ccc
8099 \family default
8100 ,
8101  
8102 \family typewriter
8103
8104 \backslash
8105 cpright
8106 \family default
8107  (all from 2.1.3)
8108 \end_layout
8109
8110 \begin_layout Itemize
8111 These items may be placed in the \SpecialChar LaTeX
8112  preamble,
8113  and are included as blanks in the template file:
8114  
8115 \family typewriter
8116
8117 \backslash
8118 slugcomment
8119 \family default
8120  (2.1.4),
8121  
8122 \family typewriter
8123
8124 \backslash
8125 shorttitle
8126 \family default
8127  (2.1.5),
8128  
8129 \family typewriter
8130
8131 \backslash
8132 shortauthors
8133 \family default
8134  (2.1.5)
8135 \end_layout
8136
8137 \begin_layout Itemize
8138
8139 \family typewriter
8140
8141 \backslash
8142 email
8143 \family default
8144  (2.3) – can only be used 
8145 \begin_inset Quotes eld
8146 \end_inset
8147
8148 standalone
8149 \begin_inset Quotes erd
8150 \end_inset
8151
8152 ,
8153  not in the middle of a paragraph.
8154  Use \SpecialChar TeX
8155  code if you need to embed it.
8156 \end_layout
8157
8158 \begin_layout Itemize
8159
8160 \family typewriter
8161
8162 \backslash
8163 and
8164 \family default
8165  (2.3) – will have extra {} after it.
8166  This should not cause an error.
8167 \end_layout
8168
8169 \begin_layout Itemize
8170
8171 \family typewriter
8172
8173 \backslash
8174 notetoeditor
8175 \family default
8176  (2.6) – can only be used 
8177 \begin_inset Quotes eld
8178 \end_inset
8179
8180 standalone
8181 \begin_inset Quotes erd
8182 \end_inset
8183
8184 ,
8185  not in the middle of a paragraph.
8186  Use \SpecialChar TeX
8187  code if you need to embed it.
8188 \end_layout
8189
8190 \begin_layout Itemize
8191
8192 \family typewriter
8193
8194 \backslash
8195 placetable
8196 \family default
8197  (2.8) – can't insert a cross-reference tag,
8198  you must type the tag name by hand
8199 \end_layout
8200
8201 \begin_layout Itemize
8202
8203 \family typewriter
8204
8205 \backslash
8206 placefigure
8207 \family default
8208  (2.8) – same as for 
8209 \family typewriter
8210
8211 \backslash
8212 placetable
8213 \end_layout
8214
8215 \begin_layout Itemize
8216
8217 \family typewriter
8218
8219 \backslash
8220 acknowledgements
8221 \family default
8222  (2.9) – will have extra {} after it.
8223  This should not cause an error.
8224 \end_layout
8225
8226 \begin_layout Itemize
8227
8228 \family typewriter
8229
8230 \backslash
8231 appendix
8232 \family default
8233  (2.11) – will have extra {} after it.
8234  This should not cause an error.
8235 \end_layout
8236
8237 \begin_layout Itemize
8238
8239 \family typewriter
8240
8241 \backslash
8242 figcaption
8243 \family default
8244  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
8245 \family sans
8246 Insert\SpecialChar menuseparator
8247 Short Title
8248 \family default
8249 .
8250  
8251 \begin_inset Quotes eld
8252 \end_inset
8253
8254 Short Title
8255 \begin_inset Quotes erd
8256 \end_inset
8257
8258  inserts an optional argument of the type needed by 
8259 \family typewriter
8260
8261 \backslash
8262 figcaption
8263 \family default
8264 .
8265  Hopefully it will be renamed someday.
8266 \end_layout
8267
8268 \begin_layout Itemize
8269
8270 \family typewriter
8271
8272 \backslash
8273 objectname
8274 \family default
8275  (2.17.1) – same as 
8276 \family typewriter
8277
8278 \backslash
8279 figcaption
8280 \family default
8281  for the catalog ID optional parameter
8282 \end_layout
8283
8284 \begin_layout Itemize
8285
8286 \family typewriter
8287
8288 \backslash
8289 dataset
8290 \family default
8291  (2.17.1) – same as 
8292 \family typewriter
8293
8294 \backslash
8295 figcaption
8296 \family default
8297  for the catalog ID optional parameter
8298 \end_layout
8299
8300 \begin_layout Paragraph
8301 Things not implemented,
8302  use \SpecialChar TeX
8303  code
8304 \end_layout
8305
8306 \begin_layout Standard
8307
8308 \family typewriter
8309
8310 \backslash
8311 eqnum
8312 \family default
8313  (2.12),
8314  
8315 \family typewriter
8316
8317 \backslash
8318 setcounter{equation}
8319 \family default
8320  (2.12),
8321  Journal name abbreviations (2.13.4),
8322  
8323 \family typewriter
8324
8325 \backslash
8326 figurenum
8327 \family default
8328  (2.14.1),
8329  
8330 \family typewriter
8331
8332 \backslash
8333 epsscale
8334 \family default
8335  (2.14.1),
8336  
8337 \family typewriter
8338
8339 \backslash
8340 plotone
8341 \family default
8342  (2.14.1),
8343  
8344 \family typewriter
8345
8346 \backslash
8347 plottwo
8348 \family default
8349  (2.14.1),
8350  
8351 \family typewriter
8352
8353 \backslash
8354 tablenum
8355 \family default
8356  (2.15.4),
8357  
8358 \family typewriter
8359
8360 \backslash
8361 tableline
8362 \family default
8363  (2.15.4,
8364  insert it as the first element in the lefthand cell after where you want it.
8365  Don't use any of \SpecialChar LyX
8366 's rules in the table),
8367  
8368 \family typewriter
8369
8370 \backslash
8371 tablenotemark
8372 \family default
8373  (2.15.5),
8374  
8375 \family typewriter
8376
8377 \backslash
8378 tablenotetext
8379 \family default
8380  (2.15.5),
8381  much of Misc (2.17,
8382  except 
8383 \family typewriter
8384
8385 \backslash
8386 objectname
8387 \family default
8388 ,
8389  
8390 \family typewriter
8391
8392 \backslash
8393 dataset
8394 \family default
8395 ,
8396  
8397 \family typewriter
8398
8399 \backslash
8400 url
8401 \family default
8402 ,
8403  and 
8404 \family typewriter
8405
8406 \backslash
8407 email
8408 \family default
8409 ;
8410  see above),
8411  
8412 \family typewriter
8413
8414 \backslash
8415 singlespace
8416 \family default
8417  (3.1),
8418  
8419 \family typewriter
8420
8421 \backslash
8422 doublespace
8423 \family default
8424  (3.1),
8425  
8426 \family typewriter
8427
8428 \backslash
8429 onecolumn
8430 \family default
8431  (3.2),
8432  
8433 \family typewriter
8434
8435 \backslash
8436 twocolumn
8437 \family default
8438  (3.2)
8439 \end_layout
8440
8441 \begin_layout Paragraph
8442 Things that cannot be implemented
8443 \end_layout
8444
8445 \begin_layout Standard
8446 \SpecialChar ldots
8447  at least in any meaningful sort of way,
8448  so I suggest ignoring them.
8449  They are the references environment (2.13.3),
8450  and the deluxetable environment (2.15).
8451  If you really,
8452  really need to use deluxetable,
8453  I suggest editing it in a separate file with a text editor,
8454  then using 
8455 \family sans
8456 Insert\SpecialChar menuseparator
8457 Child
8458 \begin_inset space ~
8459 \end_inset
8460
8461 Document
8462 \family default
8463  to include it in your \SpecialChar LyX
8464  document.
8465  See 
8466 \change_deleted 564990737 1671642564
8467 the 
8468 \family typewriter
8469 aas_sample.lyx
8470 \family default
8471  file to see
8472 \change_inserted 564990737 1671642618
8473
8474 \family sans
8475 File\SpecialChar menuseparator
8476 Open Example\SpecialChar menuseparator
8477 Articles\SpecialChar menuseparator
8478 American Astronomical Society
8479 \change_unchanged
8480
8481 \family default
8482  
8483 \change_inserted 564990737 1671642621
8484 for 
8485 \change_unchanged
8486 an example of this.
8487 \end_layout
8488
8489 \begin_layout Subsubsection
8490 FAQs,
8491  Tips,
8492  Tricks,
8493  and Other Ruminations
8494 \end_layout
8495
8496 \begin_layout Paragraph
8497 Getting \SpecialChar LyX
8498  and AAS\SpecialChar TeX
8499  to cooperate
8500 \end_layout
8501
8502 \begin_layout Standard
8503 It can be a bit tricky to get \SpecialChar LyX
8504  to recognize a new layout and document class.
8505  When all else fails,
8506  do this:
8507 \end_layout
8508
8509 \begin_layout Enumerate
8510 Make certain that \SpecialChar LaTeX
8511  can find AAS\SpecialChar TeX
8512 .
8513  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
8514  distribution into a directory completely unrelated to \SpecialChar LaTeX
8515  or AAS\SpecialChar TeX
8516  and run \SpecialChar LaTeX
8517  on 
8518 \family typewriter
8519 sample.tex
8520 \family default
8521 .
8522 \end_layout
8523
8524 \begin_layout Enumerate
8525 Make certain that 
8526 \family typewriter
8527 aastex.layout
8528 \family default
8529  appears in \SpecialChar LyX
8530 's 
8531 \family typewriter
8532 layouts
8533 \family default
8534  folder
8535 \end_layout
8536
8537 \begin_layout Enumerate
8538 Rerun 
8539 \family sans
8540 Tools\SpecialChar menuseparator
8541 Reconfigure
8542 \family default
8543  in \SpecialChar LyX
8544 ,
8545  then restart \SpecialChar LyX
8546 .
8547 \end_layout
8548
8549 \begin_layout Enumerate
8550 Open a regular new file,
8551  not from a template.
8552  Does AAS\SpecialChar TeX
8553  appear in the class list in 
8554 \family sans
8555 Document\SpecialChar menuseparator
8556 Settings
8557 \family default
8558 ?
8559 \end_layout
8560
8561 \begin_layout Standard
8562 If you get a warning from an existing AAS\SpecialChar TeX
8563  document about not being able to find the AAS\SpecialChar TeX
8564  layout or a message about 
8565 \begin_inset Quotes eld
8566 \end_inset
8567
8568 You should not mix title layouts with normal ones
8569 \begin_inset Quotes erd
8570 \end_inset
8571
8572 ,
8573  things haven't been installed correctly.
8574 \end_layout
8575
8576 \begin_layout Paragraph
8577 \SpecialChar LaTeX
8578  error processing a table 
8579 \end_layout
8580
8581 \begin_layout Standard
8582 \SpecialChar LyX
8583 ,
8584  by default,
8585  attempts to center the table caption/title.
8586  This seems to produce a bad interaction in AAS\SpecialChar TeX
8587  so you should click somewhere in the caption/title,
8588  then select 
8589 \family sans
8590 Edit\SpecialChar menuseparator
8591 Paragraph
8592 \begin_inset space ~
8593 \end_inset
8594
8595 Settings
8596 \family default
8597 ,
8598  then set the 
8599 \family sans
8600 Alignment
8601 \family default
8602  to 
8603 \family sans
8604 Block
8605 \family default
8606 .
8607  This took care of it for me.
8608 \end_layout
8609
8610 \begin_layout Paragraph
8611 References
8612 \end_layout
8613
8614 \begin_layout Standard
8615 A couple of things:
8616  1) I have noticed some funny spacing in the reference entries in the text.
8617  When you enter the bibliography item data,
8618  make sure their is 
8619 \emph on
8620 no
8621 \emph default
8622  space between the last author and the parenthesis setting off the year;
8623  
8624 \emph on
8625 e.
8626 \begin_inset space \thinspace{}
8627 \end_inset
8628
8629 g.
8630 \begin_inset space \space{}
8631 \end_inset
8632
8633
8634 \emph default
8635 type 
8636 \family typewriter
8637 Ressler(1992)
8638 \family default
8639 ,
8640  not 
8641 \family typewriter
8642 Ressler (1992)
8643 \family default
8644 .
8645  2) Entering the references at all is not obvious.
8646  The easiest thing is to start typing your first reference at the end of the document,
8647  then mark it as type 
8648 \family sans
8649 References
8650 \family default
8651 .
8652  That will put a small gray box in front of what you just typed.
8653  Click on the box to fill in the rest of the information.
8654  For new references,
8655  go to the end of an existing reference and press return.
8656  That will create a new line with its own box,
8657  etc.
8658 \end_layout
8659
8660 \begin_layout Paragraph
8661 Including EPS files
8662 \end_layout
8663
8664 \begin_layout Standard
8665 Even though AAS\SpecialChar TeX
8666  provides its own figure commands (
8667 \family typewriter
8668
8669 \backslash
8670 plotone
8671 \family default
8672 ,
8673  for example),
8674  I much prefer \SpecialChar LaTeX
8675 's standard figure commands (with the default graphicx).
8676  You can insert the 
8677 \family typewriter
8678
8679 \backslash
8680 plotone
8681 \family default
8682 ,
8683  etc.
8684 \begin_inset space ~
8685 \end_inset
8686
8687 commands as \SpecialChar TeX
8688  code into a Figure Float box if you desire,
8689  but I never have much luck getting the layout right.
8690  With the standard graphics,
8691  \SpecialChar LyX
8692  will insert a 
8693 \family typewriter
8694
8695 \backslash
8696 usepackage{graphicx}
8697 \family default
8698  command into the \SpecialChar LaTeX
8699  preamble and handle the figures in the standard \SpecialChar LaTeX2e
8700  way,
8701  interspersing the figures in the text.
8702  I believe ApJ accepts figures exactly this way now;
8703  AJ might still use the 
8704 \begin_inset Quotes eld
8705 \end_inset
8706
8707 stack everything at the end
8708 \begin_inset Quotes erd
8709 \end_inset
8710
8711  technique.
8712 \end_layout
8713
8714 \begin_layout Paragraph
8715 Things I could have done,
8716  but didn't
8717 \end_layout
8718
8719 \begin_layout Standard
8720 There are a few 
8721 \begin_inset Quotes eld
8722 \end_inset
8723
8724 pretty
8725 \begin_inset Quotes erd
8726 \end_inset
8727
8728  things I could have implemented,
8729  but chose not to.
8730  For instance,
8731  I saw no point in double-spacing the text in the \SpecialChar LyX
8732  window,
8733  even though it is double-spaced in the paper manuscript.
8734  Also,
8735  I chose not to make separate layouts for the preprint and preprint2 styles.
8736  Since I assume you will spend most of your time in the plain manuscript mode anyway,
8737  I decided not to chew up more disk space with this.
8738  
8739 \end_layout
8740
8741 \begin_layout Subsubsection
8742 Final Caveat
8743 \end_layout
8744
8745 \begin_layout Standard
8746 Your mileage may vary.
8747  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
8748 ;
8749  the last 2% was the \SpecialChar LaTeX
8750  post-processing and a few cleanups.
8751  I have had no trouble with the submission process,
8752  and I'm sure the journals were never aware that there might be a difference.
8753  So,
8754  go forth and publish!
8755 \end_layout
8756
8757 \begin_layout Subsection
8758
8759 \change_inserted 564990737 1671442131
8760 Chess
8761 \end_layout
8762
8763 \begin_layout Standard
8764
8765 \change_inserted 564990737 1671642768
8766 The document class 
8767 \family sans
8768 article
8769 \begin_inset space \thinspace{}
8770 \end_inset
8771
8772 (Chess)
8773 \family default
8774  uses the 
8775 \family typewriter
8776 article.cls
8777 \family default
8778  document class together with the style 
8779 \family sans
8780 lyxskak.sty
8781 \family default
8782  to facilitate the description of chess games.
8783  See 
8784 \family sans
8785 File\SpecialChar menuseparator
8786 Open Example\SpecialChar menuseparator
8787 Articles\SpecialChar menuseparator
8788 Chess
8789 \family default
8790  where you will find 
8791 \family sans
8792 Game 1
8793 \family default
8794  and 
8795 \family sans
8796 Game 2
8797 \family default
8798 .
8799 \end_layout
8800
8801 \begin_layout Subsection
8802
8803 \change_inserted 564990737 1671042028
8804 Elsevier
8805 \end_layout
8806
8807 \begin_layout Standard
8808
8809 \change_inserted 564990737 1671617396
8810 The document class 
8811 \family sans
8812 article
8813 \begin_inset space \thinspace{}
8814 \end_inset
8815
8816 (Elsevier)
8817 \family default
8818  provides the 
8819 \family typewriter
8820 elsarticle.cls
8821 \family default
8822  document class.
8823  This provides the following additional environments:
8824  
8825 \family sans
8826 Title
8827 \begin_inset space ~
8828 \end_inset
8829
8830 footnote
8831 \family default
8832 ,
8833  
8834 \family sans
8835 Author
8836 \begin_inset space ~
8837 \end_inset
8838
8839 footnote
8840 \family default
8841 ,
8842  
8843 \family sans
8844 Corresponding
8845 \begin_inset space ~
8846 \end_inset
8847
8848 author
8849 \family default
8850 ,
8851  
8852 \family sans
8853 Address
8854 \family default
8855 ,
8856  
8857 \family sans
8858 Email
8859 \family default
8860  and 
8861 \family sans
8862 Keywords
8863 \family default
8864 .
8865  A template is available in the menu 
8866 \family sans
8867 \bar under
8868 F
8869 \bar default
8870 ile\SpecialChar menuseparator
8871 New
8872 \begin_inset space ~
8873 \end_inset
8874
8875 fro
8876 \bar under
8877 m
8878 \bar default
8879
8880 \begin_inset space ~
8881 \end_inset
8882
8883 Template\SpecialChar menuseparator
8884 Articles\SpecialChar menuseparator
8885 Elsevier
8886 \family default
8887 .
8888  It has been customized with further environments and contains all the information you may need.
8889  However,
8890  the documentation is also available from 
8891 \begin_inset CommandInset href
8892 LatexCommand href
8893 name "CTAN"
8894 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
8895 literal "false"
8896
8897 \end_inset
8898
8899 .
8900 \end_layout
8901
8902 \begin_layout Subsection
8903
8904 \change_inserted 564990737 1671042046
8905 Paper
8906 \end_layout
8907
8908 \begin_layout Standard
8909
8910 \change_inserted 564990737 1671042046
8911 The document class 
8912 \family sans
8913 article
8914 \begin_inset space \thinspace{}
8915 \end_inset
8916
8917 (paper)
8918 \family default
8919  provides an alternative to the 
8920 \family typewriter
8921 article.cls
8922 \family default
8923  document class.
8924  It provides similar functionality,
8925  but you might prefer this layout with sans serif sections,
8926  headings,
8927  and more.
8928 \end_layout
8929
8930 \begin_layout Subsection
8931 Rev\SpecialChar TeX
8932 4
8933 \end_layout
8934
8935 \begin_layout Standard
8936 by 
8937 \noun on
8938 Amir Karger
8939 \end_layout
8940
8941 \begin_layout Standard
8942 \begin_inset VSpace bigskip
8943 \end_inset
8944
8945
8946 \end_layout
8947
8948 \begin_layout Standard
8949 \noindent
8950 The 
8951 \family sans
8952 Revtex
8953 \begin_inset space ~
8954 \end_inset
8955
8956 4
8957 \family default
8958  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
8959  4.0 (the 
8960 \begin_inset Formula $\beta$
8961 \end_inset
8962
8963  release of May,
8964  1999) class.
8965 \end_layout
8966
8967 \begin_layout Standard
8968 \SpecialChar LyX
8969  has a 
8970 \family sans
8971 Revtex
8972 \family default
8973  textclass,
8974  which works with Rev\SpecialChar TeX
8975  3.1.
8976  However,
8977  v3.1 is basically obsolete,
8978  as it works with \SpecialChar LaTeX
8979  2.09.
8980  That means that it doesn't interact very well with \SpecialChar LyX
8981 ,
8982  which requires \SpecialChar LaTeX2e
8983 ,
8984  although it has been kludged to work.
8985  Since Rev\SpecialChar TeX
8986  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
8987 ,
8988  \SpecialChar LyX
8989  with the 
8990 \family sans
8991 Rev\SpecialChar TeX
8992
8993 \begin_inset space ~
8994 \end_inset
8995
8996 4
8997 \family default
8998  textclass should also be pretty easy to use.
8999 \end_layout
9000
9001 \begin_layout Standard
9002 These documents are supposed to be used in 
9003 \emph on
9004 addition
9005 \emph default
9006  to the Rev\SpecialChar TeX
9007  4.0 documents,
9008  so we don't describe any of the special Rev\SpecialChar TeX
9009  macros,
9010  and assume you'll know what to put in the preamble if necessary.
9011 \end_layout
9012
9013 \begin_layout Subsubsection
9014 Installation
9015 \end_layout
9016
9017 \begin_layout Standard
9018 All you need to do is install Rev\SpecialChar TeX
9019  4,
9020  as described in the package's README file.
9021  The package can be found at The Rev\SpecialChar TeX
9022  4 Web Site 
9023 \begin_inset Flex URL
9024 status collapsed
9025
9026 \begin_layout Plain Layout
9027
9028 http://publish.aps.org/revtex4/
9029 \end_layout
9030
9031 \end_inset
9032
9033 .
9034  Install it somewhere that \SpecialChar LaTeX
9035  can see it.
9036  Test it by trying to \SpecialChar LaTeX
9037  a short Rev\SpecialChar TeX
9038  4 document in some random directory (i.
9039 \begin_inset space \thinspace{}
9040 \end_inset
9041
9042 e.
9043 \begin_inset space \space{}
9044 \end_inset
9045
9046 not the directory where you installed the class file.) Then,
9047  if you reconfigure \SpecialChar LyX
9048 ,
9049  it will find the class file and let you use the Rev\SpecialChar TeX
9050 4 textclass.
9051 \end_layout
9052
9053 \begin_layout Standard
9054 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
9055  4 document using 
9056 \family typewriter
9057 tex2lyx
9058 \family default
9059 ,
9060  or to use the 
9061 \family sans
9062 Revtex
9063 \begin_inset space ~
9064 \end_inset
9065
9066 4
9067 \family default
9068  template,
9069  found in the templates directory.
9070 \end_layout
9071
9072 \begin_layout Subsubsection
9073 Preamble Matter
9074 \end_layout
9075
9076 \begin_layout Standard
9077 Optional arguments to 
9078 \family typewriter
9079
9080 \backslash
9081 documentclass
9082 \family default
9083 ,
9084  like 
9085 \begin_inset Quotes eld
9086 \end_inset
9087
9088 preprint
9089 \begin_inset Quotes erd
9090 \end_inset
9091
9092  and 
9093 \begin_inset Quotes eld
9094 \end_inset
9095
9096 aps
9097 \begin_inset Quotes erd
9098 \end_inset
9099
9100 ,
9101  go in the 
9102 \family sans
9103 Extra
9104 \begin_inset space ~
9105 \end_inset
9106
9107 Options
9108 \family default
9109  field in the 
9110 \family sans
9111 Document
9112 \begin_inset space ~
9113 \end_inset
9114
9115 Layout
9116 \family default
9117  dialog,
9118  as usual.
9119  Remember that in Rev\SpecialChar TeX
9120 ,
9121  at least one optional argument is required!
9122  
9123 \end_layout
9124
9125 \begin_layout Standard
9126 Other preamble matter,
9127  like 
9128 \family typewriter
9129
9130 \backslash
9131 draft
9132 \family default
9133  etc.
9134 \begin_inset space ~
9135 \end_inset
9136
9137 goes in the 
9138 \family sans
9139 \SpecialChar LaTeX
9140
9141 \begin_inset space ~
9142 \end_inset
9143
9144 Preamble
9145 \family default
9146  dialog,
9147  also as usual.
9148 \end_layout
9149
9150 \begin_layout Subsubsection
9151 Layouts
9152 \end_layout
9153
9154 \begin_layout Standard
9155 The layouts basically correspond to the commands in Rev\SpecialChar TeX
9156 4.0.
9157  For example,
9158  the Email layout corresponds to 
9159 \family typewriter
9160
9161 \backslash
9162 email{}
9163 \family default
9164 .
9165  Note that (at least as of Rev\SpecialChar TeX
9166  4.0 Beta),
9167  the 
9168 \family sans
9169 Address
9170 \family default
9171  and 
9172 \family sans
9173 Affiliation
9174 \family default
9175  layouts are exactly equivalent,
9176  so you shouldn't need to use both.
9177 \begin_inset Foot
9178 status collapsed
9179
9180 \begin_layout Plain Layout
9181 In case you're curious,
9182  both were included so that 
9183 \family typewriter
9184 tex2lyx
9185 \family default
9186  would be able to translate both 
9187 \family typewriter
9188
9189 \backslash
9190 address
9191 \family default
9192  and 
9193 \family typewriter
9194
9195 \backslash
9196 affiliation
9197 \family default
9198 .
9199 \end_layout
9200
9201 \end_inset
9202
9203
9204 \end_layout
9205
9206 \begin_layout Subsubsection
9207 Important Notes
9208 \end_layout
9209
9210 \begin_layout Standard
9211 There are a couple of important unique aspects of Rev\SpecialChar TeX
9212  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
9213 .
9214 \end_layout
9215
9216 \begin_layout Standard
9217 In Rev\SpecialChar TeX
9218 ,
9219  the 
9220 \family typewriter
9221
9222 \backslash
9223 thanks
9224 \family default
9225  command goes 
9226 \emph on
9227 outside
9228 \emph default
9229  the 
9230 \family typewriter
9231
9232 \backslash
9233 author
9234 \family default
9235  command.
9236  The \SpecialChar LyX
9237  equivalent is that there is a separate Thanks layout.
9238  Do 
9239 \emph on
9240 not
9241 \emph default
9242  write footnotes in the 
9243 \family sans
9244 Author
9245 \family default
9246  layout,
9247  or weird things may happen.
9248  See the Rev\SpecialChar TeX
9249  4 documentation for more details.
9250 \end_layout
9251
9252 \begin_layout Standard
9253 Also,
9254  the 
9255 \family sans
9256 Author
9257 \begin_inset space ~
9258 \end_inset
9259
9260 Email
9261 \family default
9262 ,
9263  
9264 \family sans
9265 Author
9266 \begin_inset space ~
9267 \end_inset
9268
9269 URL
9270 \family default
9271 ,
9272  and 
9273 \family sans
9274 Thanks
9275 \family default
9276  layouts must be placed 
9277 \emph on
9278 in between
9279 \emph default
9280  the 
9281 \family sans
9282 Author
9283 \family default
9284  layout and the corresponding 
9285 \family sans
9286 Address
9287 \family default
9288  (or equivalent 
9289 \family sans
9290 Affiliation
9291 \family default
9292 ) layout.
9293  If you put the 
9294 \family sans
9295 Thanks
9296 \family default
9297  after the 
9298 \family sans
9299 Address
9300 \family default
9301 ,
9302  the \SpecialChar LaTeX
9303  won't compile.
9304 \end_layout
9305
9306 \begin_layout Subsection
9307
9308 \change_inserted 564990737 1671042072
9309 Springer Journals
9310 \end_layout
9311
9312 \begin_layout Standard
9313
9314 \change_inserted 564990737 1671042072
9315 All the 
9316 \family sans
9317 svj*
9318 \family default
9319  classes were replaced in 2013 with a completely new 
9320 \family sans
9321 sr-vorl.cls
9322 \family default
9323 .
9324  This package provides a \SpecialChar LaTeX
9325  class and templates for books to be published at Springer Gabler Research,
9326  Springer Vieweg Research,
9327  Springer Spektrum Research,
9328  Springer VS Research,
9329  or Springer VS Forschung.
9330  The documentation is available in German from 
9331 \begin_inset CommandInset href
9332 LatexCommand href
9333 name "CTAN"
9334 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
9335 literal "false"
9336
9337 \end_inset
9338
9339 .
9340 \end_layout
9341
9342 \begin_layout Section
9343
9344 \change_inserted 564990737 1670439560
9345 Books
9346 \end_layout
9347
9348 \begin_layout Standard
9349
9350 \change_inserted 564990737 1670439581
9351 See also the document classes in the Collections (section
9352 \begin_inset space ~
9353 \end_inset
9354
9355
9356 \begin_inset CommandInset ref
9357 LatexCommand ref
9358 reference "sec:Collections"
9359 nolink "false"
9360
9361 \end_inset
9362
9363 ).
9364 \end_layout
9365
9366 \begin_layout Subsection
9367 Memoir
9368 \end_layout
9369
9370 \begin_layout Standard
9371 By 
9372 \noun on
9373 Jürgen Spitzmüller
9374 \end_layout
9375
9376 \begin_layout Subsubsection
9377 Overview
9378 \end_layout
9379
9380 \begin_layout Standard
9381 Memoir is a very powerful and constantly evolving class.
9382  It has been designed with regard to fictional and non-fictional literature.
9383  Its aim is to let the user have maximum control over the typesetting of his document.
9384  Memoir is based on the standard book class,
9385  but it can also emulate the article class (see below).
9386 \end_layout
9387
9388 \begin_layout Standard
9389 Peter Wilson,
9390  the developer of Memoir,
9391  is known as the author of lots of useful packages in the \SpecialChar LaTeX
9392  world.
9393  Most of them have been merged with Memoir.
9394  Therefore,
9395  it is much easier to layout the table of contents,
9396  appendices,
9397  chapter designs and such.
9398  \SpecialChar LyX
9399 ,
9400  though,
9401  does not support all of these goodies natively.
9402  Some of them might be added to forthcoming releases
9403 \begin_inset Foot
9404 status collapsed
9405
9406 \begin_layout Plain Layout
9407 You are invited to send suggestions to 
9408 \begin_inset Flex URL
9409 status collapsed
9410
9411 \begin_layout Plain Layout
9412
9413 lyx-devel@lists.lyx.org
9414 \end_layout
9415
9416 \end_inset
9417
9418 .
9419 \end_layout
9420
9421 \end_inset
9422
9423 ,
9424  lots will probably never be supported,
9425  due to the limitations of \SpecialChar LyX
9426 's framework.
9427  Of course you can still use all features with the help of some native \SpecialChar LaTeX
9428  commands (\SpecialChar TeX
9429  code
9430 \begin_inset Foot
9431 status collapsed
9432
9433 \begin_layout Plain Layout
9434 Cf.
9435 \begin_inset ERT
9436 status collapsed
9437
9438 \begin_layout Plain Layout
9439
9440
9441 \backslash
9442  
9443 \end_layout
9444
9445 \end_inset
9446
9447 section
9448 \begin_inset space ~
9449 \end_inset
9450
9451
9452 \begin_inset CommandInset ref
9453 LatexCommand ref
9454 reference "sec:Inserting-TeX-Code"
9455 nolink "false"
9456
9457 \end_inset
9458
9459  for details.
9460 \end_layout
9461
9462 \end_inset
9463
9464 ).
9465  In this section,
9466  we can only list those features that are natively supported by \SpecialChar LyX
9467 .
9468  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
9469 \begin_inset Foot
9470 status collapsed
9471
9472 \begin_layout Plain Layout
9473 Cf.
9474 \begin_inset ERT
9475 status collapsed
9476
9477 \begin_layout Plain Layout
9478
9479
9480 \backslash
9481  
9482 \end_layout
9483
9484 \end_inset
9485
9486
9487 \begin_inset Flex URL
9488 status collapsed
9489
9490 \begin_layout Plain Layout
9491
9492 CTAN:/macros/latex/memoir/memman.pdf
9493 \end_layout
9494
9495 \end_inset
9496
9497 .
9498 \end_layout
9499
9500 \end_inset
9501
9502 ,
9503  which is not only a user guide for the class,
9504  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
9505 \end_layout
9506
9507 \begin_layout Subsubsection
9508 Basic features and restrictions
9509 \end_layout
9510
9511 \begin_layout Standard
9512 Memoir supports basically all features of the standard book classes.
9513  There are,
9514  however,
9515  some differences,
9516  as follows:
9517 \end_layout
9518
9519 \begin_layout Description
9520 Font
9521 \begin_inset space ~
9522 \end_inset
9523
9524 sizes:
9525  Memoir has a broader range of font sizes:
9526  9,
9527  10,
9528  11,
9529  12,
9530  14,
9531  17
9532 \end_layout
9533
9534 \begin_layout Description
9535 Page
9536 \begin_inset space ~
9537 \end_inset
9538
9539 style:
9540  The fancy page style is not supported,
9541  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
9542  which confuses \SpecialChar LaTeX
9543 ).
9544  Instead,
9545  Memoir comes with a number of its own page styles (see 
9546 \family sans
9547 Document\SpecialChar menuseparator
9548 Settings\SpecialChar menuseparator
9549 Page
9550 \begin_inset space ~
9551 \end_inset
9552
9553 Style
9554 \family default
9555 ).
9556  If you want to use these for the chapter pages,
9557  you have to use the command 
9558 \family typewriter
9559
9560 \backslash
9561 chapterstyle
9562 \family default
9563  in the main text or in preamble (e.
9564 \begin_inset space \thinspace{}
9565 \end_inset
9566
9567 g.
9568 \begin_inset space \space{}
9569 \end_inset
9570
9571
9572 \family typewriter
9573
9574 \backslash
9575 chapterstyle{companion}
9576 \family default
9577 ).
9578 \end_layout
9579
9580 \begin_layout Description
9581 Sectioning:
9582  Sectionings (chapter,
9583  section,
9584  subsection etc.) come with an optional argument in the standard classes.
9585  With this,
9586  you can specify an alternative version of the title for the table of contents and the headers (for instance,
9587  if the title is too long).
9588  In \SpecialChar LyX
9589 ,
9590  you can do this via 
9591 \family sans
9592 Insert\SpecialChar menuseparator
9593 Short
9594 \begin_inset space ~
9595 \end_inset
9596
9597 Title
9598 \family default
9599  at the beginning of a chapter/section.
9600  Memoir features a second optional argument and thus separates the table of contents from the header.
9601  You can define three variants of a title with this:
9602  one for the main text,
9603  one for the table of contents,
9604  and one for the headers.
9605  \SpecialChar LyX
9606  makes these available in form of specific 
9607 \family sans
9608 Short Title
9609 \family default
9610  variants in the 
9611 \family sans
9612 Insert
9613 \family default
9614  menu.
9615 \end_layout
9616
9617 \begin_layout Description
9618 TOC/LOT/LOF:
9619  In the standard classes (and in many other classes),
9620  the table of contents,
9621  the list of figures and the list of table start a new page automatically.
9622  Memoir does not follow this route.
9623  You have to insert a page break yourself,
9624  if you want to have one.
9625 \end_layout
9626
9627 \begin_layout Description
9628 Titlepage:
9629  For some unknown reason,
9630  Memoir uses pagination on the title page (in the standard classes,
9631  title pages are 
9632 \begin_inset Quotes eld
9633 \end_inset
9634
9635 empty
9636 \begin_inset Quotes erd
9637 \end_inset
9638
9639 ).
9640  If you want an empty title page,
9641  type 
9642 \family typewriter
9643
9644 \backslash
9645 aliaspagestyle{title}{empty}
9646 \family default
9647  in the preamble.
9648 \end_layout
9649
9650 \begin_layout Description
9651 Article:
9652  With the class option 
9653 \emph on
9654 article
9655 \emph default
9656  (to be inserted in 
9657 \family sans
9658 Document\SpecialChar menuseparator
9659 Settings\SpecialChar menuseparator
9660 Class Settings\SpecialChar menuseparator
9661 Custom
9662 \begin_inset space ~
9663 \end_inset
9664
9665 Options
9666 \family default
9667 ),
9668  you can emulate article style.
9669  That is,
9670  counters (footnotes,
9671  figures,
9672  tables etc.) will not be reset on new chapters,
9673  chapters don't start a new page (but are—
9674 in contrary to 
9675 \begin_inset Quotes eld
9676 \end_inset
9677
9678 real
9679 \begin_inset Quotes erd
9680 \end_inset
9681
9682  article classes—
9683 still allowed),
9684  parts,
9685  though,
9686  use their own page,
9687  as in book.
9688 \end_layout
9689
9690 \begin_layout Description
9691 Oldfontcommands:
9692  By default,
9693  Memoir does not allow the use of the deprecated font commands,
9694  which have been used in the old \SpecialChar LaTeX
9695  version 2.09 (e.
9696 \begin_inset space \thinspace{}
9697 \end_inset
9698
9699 g.
9700 \begin_inset space \space{}
9701 \end_inset
9702
9703
9704 \family typewriter
9705
9706 \backslash
9707 rm
9708 \family default
9709 ,
9710  
9711 \family typewriter
9712
9713 \backslash
9714 it
9715 \family default
9716 ).
9717  It produces an error and stops \SpecialChar LaTeX
9718  whenever such a command appears.
9719  The class option 
9720 \emph on
9721 oldfontcommands
9722 \emph default
9723  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
9724 ).
9725  Since a lot of packages and particularly Bib\SpecialChar TeX
9726  style files are still using those commands,
9727  we have decided to use this option by default.
9728 \end_layout
9729
9730 \begin_layout Subsubsection
9731 Extra features
9732 \end_layout
9733
9734 \begin_layout Standard
9735 We will only describe the features supported by \SpecialChar LyX
9736  (which is not much currently).
9737  Please consult the Memoir manual
9738 \begin_inset Foot
9739 status collapsed
9740
9741 \begin_layout Plain Layout
9742 Cf.
9743 \begin_inset ERT
9744 status collapsed
9745
9746 \begin_layout Plain Layout
9747
9748
9749 \backslash
9750  
9751 \end_layout
9752
9753 \end_inset
9754
9755
9756 \begin_inset Flex URL
9757 status collapsed
9758
9759 \begin_layout Plain Layout
9760
9761 CTAN:/macros/latex/memoir/memman.pdf
9762 \end_layout
9763
9764 \end_inset
9765
9766 .
9767 \end_layout
9768
9769 \end_inset
9770
9771  for details.
9772 \end_layout
9773
9774 \begin_layout Description
9775 Abstract:
9776  You may wonder why an abstract is an extra feature.
9777  Well,
9778  it is in book class.
9779  Usually books don't have abstracts.
9780  Memoir,
9781  however,
9782  has.
9783  You can use it wherever and how often you like.
9784 \end_layout
9785
9786 \begin_layout Description
9787 Chapterprecis:
9788  You may know this older typesetting style:
9789  The contents of a chapter are summarized below the title and also in the table of contents (e.
9790 \begin_inset space \thinspace{}
9791 \end_inset
9792
9793 g.
9794 \begin_inset space \space{}
9795 \end_inset
9796
9797
9798 \emph on
9799 Our hero arrives in Troia;
9800  he loses some friends;
9801  he finds others
9802 \emph default
9803 ).
9804  Chapterprecis does exactly this.
9805  It is therefore only sensible below a chapter.
9806 \end_layout
9807
9808 \begin_layout Description
9809 Epigraph:
9810  An epigraph is a smart slogan or motto at the beginning of a chapter.
9811  The epigraph environment provides an elegant way of typesetting such a motto.
9812  The motto itself (text) and its (optional) author (source) are divided by a short line.
9813  The author (source) can be inserted via 
9814 \family sans
9815 Insert\SpecialChar menuseparator
9816 Epigraph Source
9817 \family default
9818 \emph on
9819 .
9820 \end_layout
9821
9822 \begin_layout Description
9823 Poemtitle:
9824  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
9825  \SpecialChar LyX
9826  can only support a few of them.
9827  One is poemtitle,
9828  which is a centered title for poems,
9829  which will also be added to the table of contents (verse is the standard environment for poems.
9830  Memoir has some enhanced versions of verse,
9831  but you need to use \SpecialChar TeX
9832  code,
9833  because they have to be nested inside regular verse environments,
9834  which is not possible with \SpecialChar LyX
9835 ).
9836 \end_layout
9837
9838 \begin_layout Description
9839 Poemtitle*:
9840  Same as poemtitle,
9841  but it adds no entry to the table of contents.
9842 \end_layout
9843
9844 \begin_layout Subsection
9845
9846 \change_inserted 564990737 1671442175
9847 Recipe Book
9848 \end_layout
9849
9850 \begin_layout Standard
9851
9852 \change_inserted 564990737 1671442175
9853 The document class 
9854 \family typewriter
9855 RecipeBook.cls
9856 \family default
9857  uses the 
9858 \family sans
9859 book
9860 \begin_inset space \thinspace{}
9861 \end_inset
9862
9863 (KOMA-Script)
9864 \family default
9865  document class but adds two environments:
9866 \end_layout
9867
9868 \begin_layout Description
9869
9870 \change_inserted 564990737 1671442175
9871 Recipe a numbered section environment at the 
9872 \family typewriter
9873 Subsubsection
9874 \family default
9875  level which generates a bold centered heading above a double horizontal rule
9876 \end_layout
9877
9878 \begin_layout Description
9879
9880 \change_inserted 564990737 1671442175
9881 Ingredients a 
9882 \family typewriter
9883 Description
9884 \family default
9885  environment where 
9886 \series bold
9887 \emph on
9888 Ingredients
9889 \series default
9890 \emph default
9891  are what are being described and the environment ends with a horizontal rule.
9892 \end_layout
9893
9894 \begin_layout Standard
9895
9896 \change_inserted 564990737 1671642866
9897
9898 \family sans
9899 File\SpecialChar menuseparator
9900 Open Example\SpecialChar menuseparator
9901 Books\SpecialChar menuseparator
9902 Recipe Book
9903 \family default
9904  illustrates its use.
9905 \end_layout
9906
9907 \begin_layout Standard
9908
9909 \change_inserted 564990737 1671442175
9910 It is designed for typesetting one or two recipes per page,
9911  with dimensions of 5.5
9912 \begin_inset Quotes qrd
9913 \end_inset
9914
9915  x 8.5
9916 \begin_inset Quotes qrd
9917 \end_inset
9918
9919 .
9920  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient,
9921  and the pages can be joined together or printed 2 per page to normal letterpaper easily.
9922  The size was chosen to work in half-page 3-ring binder cover sheets,
9923  because un-laminated paper just doesn't last in the kitchen.
9924 \end_layout
9925
9926 \begin_layout Standard
9927
9928 \change_inserted 564990737 1671442175
9929 The half-letter pages can be printed two per page using your printer driver,
9930  or bound together using 
9931 \family typewriter
9932 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
9933 \family default
9934  
9935 \family typewriter
9936 Recipes.pdf
9937 \family default
9938  where 
9939 \family typewriter
9940 Recipes.pdf
9941 \family default
9942  is the compiled version of your recipes.
9943 \end_layout
9944
9945 \begin_layout Section
9946
9947 \change_inserted 564990737 1671442207
9948 Curricula vitarum
9949 \end_layout
9950
9951 \begin_layout Subsection
9952
9953 \change_inserted 564990737 1671442208
9954 Europass
9955 \end_layout
9956
9957 \begin_layout Standard
9958
9959 \change_inserted 564990737 1671642942
9960 The document class 
9961 \family sans
9962 curriculum
9963 \begin_inset space \space{}
9964 \end_inset
9965
9966 vitae
9967 \begin_inset space \thinspace{}
9968 \end_inset
9969
9970 (Europass)
9971 \family default
9972  provides the 
9973 \family typewriter
9974 europasscv.cls
9975 \family default
9976  document class,
9977  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
9978  
9979 \family sans
9980 File\SpecialChar menuseparator
9981 Open Example\SpecialChar menuseparator
9982 Curricula Vitae\SpecialChar menuseparator
9983 Europass CV (2013)
9984 \family default
9985  offers guidance on its use.
9986  Its documentation is available from 
9987 \begin_inset CommandInset href
9988 LatexCommand href
9989 name "CTAN"
9990 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
9991 literal "false"
9992
9993 \end_inset
9994
9995 .
9996 \end_layout
9997
9998 \begin_layout Subsection
9999
10000 \change_inserted 564990737 1671442208
10001 European
10002 \end_layout
10003
10004 \begin_layout Standard
10005
10006 \change_inserted 564990737 1671642984
10007 The document class 
10008 \family sans
10009 curriculum
10010 \begin_inset space \space{}
10011 \end_inset
10012
10013 vitae
10014 \begin_inset space \thinspace{}
10015 \end_inset
10016
10017 (Europe)
10018 \family default
10019  provides the 
10020 \family typewriter
10021 europecv.cls
10022 \family default
10023  document class,
10024  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
10025  
10026 \family sans
10027 File\SpecialChar menuseparator
10028 Open Example\SpecialChar menuseparator
10029 Curricula Vitae\SpecialChar menuseparator
10030 Europe CV
10031 \family default
10032  offers guidance on its use.
10033  Its documentation is available from 
10034 \begin_inset CommandInset href
10035 LatexCommand href
10036 name "CTAN"
10037 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
10038 literal "false"
10039
10040 \end_inset
10041
10042 .
10043 \end_layout
10044
10045 \begin_layout Subsection
10046
10047 \change_inserted 564990737 1671442208
10048 Modern
10049 \end_layout
10050
10051 \begin_layout Standard
10052
10053 \change_inserted 564990737 1671643003
10054 The document class 
10055 \family sans
10056 curriculum
10057 \begin_inset space \space{}
10058 \end_inset
10059
10060 vitae
10061 \begin_inset space \thinspace{}
10062 \end_inset
10063
10064 (modern)
10065 \family default
10066  provides the 
10067 \family typewriter
10068 moderncv.cls
10069 \family default
10070  document class.
10071  This allows the creation of customizable CVs.
10072  
10073 \family sans
10074 File\SpecialChar menuseparator
10075 Open Example\SpecialChar menuseparator
10076 Curricula Vitae\SpecialChar menuseparator
10077 Modern CV
10078 \family default
10079  offers guidance on its use.
10080  Its documentation is available from 
10081 \begin_inset CommandInset href
10082 LatexCommand href
10083 name "CTAN"
10084 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
10085 literal "false"
10086
10087 \end_inset
10088
10089 .
10090 \end_layout
10091
10092 \begin_layout Subsection
10093
10094 \change_inserted 564990737 1671442208
10095 Simple
10096 \end_layout
10097
10098 \begin_layout Standard
10099
10100 \change_inserted 564990737 1671643024
10101 The document class 
10102 \family sans
10103 curriculum
10104 \begin_inset space \space{}
10105 \end_inset
10106
10107 vitae
10108 \begin_inset space \thinspace{}
10109 \end_inset
10110
10111 (simple)
10112 \family default
10113  provides the 
10114 \family typewriter
10115 simplecv.cls
10116 \family default
10117  document class,
10118  originally developed for use with \SpecialChar LyX
10119 .
10120  
10121 \family sans
10122 File\SpecialChar menuseparator
10123 Open Example\SpecialChar menuseparator
10124 Curricula Vitae\SpecialChar menuseparator
10125 Simple CV
10126 \family default
10127  offers guidance on its use.
10128  Its documentation is available from 
10129 \begin_inset CommandInset href
10130 LatexCommand href
10131 name "CTAN"
10132 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
10133 literal "false"
10134
10135 \end_inset
10136
10137
10138 \end_layout
10139
10140 \begin_layout Section
10141
10142 \change_inserted 564990737 1672652454
10143 Letters
10144 \end_layout
10145
10146 \begin_layout Standard
10147
10148 \change_inserted 564990737 1672652455
10149 See also the 
10150 \family typewriter
10151 letter
10152 \begin_inset space \space{}
10153 \end_inset
10154
10155 (KOMA-Script v.2)
10156 \family default
10157  (section
10158 \begin_inset space ~
10159 \end_inset
10160
10161
10162 \begin_inset CommandInset ref
10163 LatexCommand ref
10164 reference "subsec:The-new-letter"
10165 nolink "false"
10166
10167 \end_inset
10168
10169 ) and 
10170 \family typewriter
10171 letter
10172 \begin_inset space \space{}
10173 \end_inset
10174
10175 (with extra font sizes)
10176 \family default
10177  (section
10178 \begin_inset space ~
10179 \end_inset
10180
10181
10182 \begin_inset CommandInset ref
10183 LatexCommand ref
10184 reference "subsec:Extra-font-sizes"
10185 nolink "false"
10186
10187 \end_inset
10188
10189 ) document classes .
10190 \end_layout
10191
10192 \begin_layout Subsection
10193
10194 \change_inserted 564990737 1671041970
10195 Din-Brief
10196 \end_layout
10197
10198 \begin_layout Standard
10199
10200 \change_inserted 564990737 1671617528
10201 The document class 
10202 \family sans
10203 Din-Brief
10204 \family default
10205  provides the 
10206 \family typewriter
10207 dinbrief.cls
10208 \family default
10209  document class for writing letters according to the 
10210 \emph on
10211 Deutsches Institut für Normung
10212 \emph default
10213  conventions.
10214  The file in the menu 
10215 \family sans
10216 \bar under
10217 F
10218 \bar default
10219 ile\SpecialChar menuseparator
10220 New
10221 \begin_inset space ~
10222 \end_inset
10223
10224 fro
10225 \bar under
10226 m
10227 \bar default
10228
10229 \begin_inset space ~
10230 \end_inset
10231
10232 Template\SpecialChar menuseparator
10233 Letters\SpecialChar menuseparator
10234 DIN-Brief
10235 \family default
10236  offers guidance on its use.
10237  The documentation is available from 
10238 \begin_inset CommandInset href
10239 LatexCommand href
10240 name "CTAN"
10241 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
10242 literal "false"
10243
10244 \end_inset
10245
10246 .
10247 \end_layout
10248
10249 \begin_layout Subsection
10250
10251 \change_inserted 564990737 1672652499
10252 frletter
10253 \end_layout
10254
10255 \begin_layout Standard
10256
10257 \change_inserted 564990737 1672652499
10258 The document class 
10259 \family sans
10260 French letter
10261 \begin_inset space \space{}
10262 \end_inset
10263
10264 (frletter)
10265 \family default
10266  provides the 
10267 \family typewriter
10268 frletter.cls
10269 \family default
10270  document class for writing letters according to French conventions.
10271  The file in the menu 
10272 \family sans
10273 \bar under
10274 F
10275 \bar default
10276 ile\SpecialChar menuseparator
10277 New
10278 \begin_inset space ~
10279 \end_inset
10280
10281 fro
10282 \bar under
10283 m
10284 \bar default
10285
10286 \begin_inset space ~
10287 \end_inset
10288
10289 Template\SpecialChar menuseparator
10290 Letters\SpecialChar menuseparator
10291 French letter
10292 \begin_inset space \space{}
10293 \end_inset
10294
10295 (frletter)
10296 \family default
10297  offers guidance on its use.
10298 \end_layout
10299
10300 \begin_layout Subsection
10301
10302 \change_inserted 564990737 1672652499
10303 G-Brief
10304 \end_layout
10305
10306 \begin_layout Standard
10307
10308 \change_inserted 564990737 1672652499
10309 The document class 
10310 \family sans
10311 G-Brief (V.
10312 \begin_inset space \thinspace{}
10313 \end_inset
10314
10315 2)
10316 \family default
10317  provides the newer 
10318 \family typewriter
10319 g-brief2.cls
10320 \family default
10321  document class for writing letters in German.
10322  The file in the menu 
10323 \family sans
10324 \bar under
10325 F
10326 \bar default
10327 ile\SpecialChar menuseparator
10328 New
10329 \begin_inset space ~
10330 \end_inset
10331
10332 fro
10333 \bar under
10334 m
10335 \bar default
10336
10337 \begin_inset space ~
10338 \end_inset
10339
10340 Template\SpecialChar menuseparator
10341 Letters\SpecialChar menuseparator
10342 G-Brief (V.
10343 \begin_inset space \thinspace{}
10344 \end_inset
10345
10346 2)
10347 \family default
10348  offers guidance on its use.
10349  The documentation is available from 
10350 \begin_inset CommandInset href
10351 LatexCommand href
10352 name "CTAN"
10353 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
10354 literal "false"
10355
10356 \end_inset
10357
10358 .
10359 \end_layout
10360
10361 \begin_layout Subsection
10362
10363 \change_inserted 564990737 1671458835
10364 letter
10365 \end_layout
10366
10367 \begin_layout Standard
10368
10369 \change_inserted 564990737 1671617591
10370 The document class 
10371 \family sans
10372 letter
10373 \family default
10374  provides the 
10375 \family sans
10376 letter.cls
10377 \family default
10378  document class for English letters and to create mailing labels.
10379  The file in the menu 
10380 \family sans
10381 \bar under
10382 F
10383 \bar default
10384 ile\SpecialChar menuseparator
10385 New
10386 \begin_inset space ~
10387 \end_inset
10388
10389 fro
10390 \bar under
10391 m
10392 \bar default
10393
10394 \begin_inset space ~
10395 \end_inset
10396
10397 Template\SpecialChar menuseparator
10398 Letters\SpecialChar menuseparator
10399 Letter (Standard Class)
10400 \family default
10401  offers guidance on its use.
10402 \end_layout
10403
10404 \begin_layout Subsection
10405
10406 \change_inserted 564990737 1672652527
10407 lettre
10408 \end_layout
10409
10410 \begin_layout Standard
10411
10412 \change_inserted 564990737 1672652527
10413 The document class 
10414 \family sans
10415 French letter
10416 \begin_inset space \space{}
10417 \end_inset
10418
10419 (lettre)
10420 \family default
10421  provides the 
10422 \family typewriter
10423 lettre.cls
10424 \family default
10425  document class for writing letters,
10426  faxes and envelopes in French.
10427  The file in the menu 
10428 \family sans
10429 \bar under
10430 F
10431 \bar default
10432 ile\SpecialChar menuseparator
10433 New
10434 \begin_inset space ~
10435 \end_inset
10436
10437 fro
10438 \bar under
10439 m
10440 \bar default
10441
10442 \begin_inset space ~
10443 \end_inset
10444
10445 Template\SpecialChar menuseparator
10446 Letters\SpecialChar menuseparator
10447 French letter
10448 \begin_inset space \space{}
10449 \end_inset
10450
10451 (lettre)
10452 \family default
10453  offers guidance on its use.
10454  The documentation is available from 
10455 \begin_inset CommandInset href
10456 LatexCommand href
10457 name "CTAN"
10458 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
10459 literal "false"
10460
10461 \end_inset
10462
10463 .
10464 \end_layout
10465
10466 \begin_layout Section
10467
10468 \change_inserted 564990737 1670439660
10469 Presentations
10470 \end_layout
10471
10472 \begin_layout Subsection
10473
10474 \change_inserted 564990737 1671458922
10475 Beamer
10476 \end_layout
10477
10478 \begin_layout Standard
10479
10480 \change_inserted 564990737 1671617655
10481 The document class 
10482 \family sans
10483 presentation
10484 \begin_inset space \thinspace{}
10485 \end_inset
10486
10487 (beamer)
10488 \family default
10489  uses the 
10490 \family typewriter
10491 beamer.cls
10492 \family default
10493  document class for creating presentations.
10494  The file in the menu 
10495 \family sans
10496 \bar under
10497 F
10498 \bar default
10499 ile\SpecialChar menuseparator
10500 New
10501 \begin_inset space ~
10502 \end_inset
10503
10504 fro
10505 \bar under
10506 m
10507 \bar default
10508
10509 \begin_inset space ~
10510 \end_inset
10511
10512 Template\SpecialChar menuseparator
10513 Presentations\SpecialChar menuseparator
10514 Beamer
10515 \family default
10516  offers guidance on its use.
10517  The documentation is available from 
10518 \begin_inset CommandInset href
10519 LatexCommand href
10520 name "CTAN"
10521 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
10522 literal "false"
10523
10524 \end_inset
10525
10526 .
10527 \end_layout
10528
10529 \begin_layout Subsection
10530 Foils [aka 
10531 \family sans
10532 Foil\SpecialChar TeX
10533
10534 \family default
10535 ]
10536 \begin_inset CommandInset label
10537 LatexCommand label
10538 name "sec:foiltex"
10539
10540 \end_inset
10541
10542
10543 \end_layout
10544
10545 \begin_layout Standard
10546
10547 \change_inserted 564990737 1672743383
10548 Original by 
10549 \noun on
10550 Allan Rae
10551 \noun default
10552 ;
10553  updated by the \SpecialChar LyX
10554  Team
10555 \end_layout
10556
10557 \begin_layout Subsubsection
10558
10559 \change_inserted 564990737 1672743383
10560 Introduction
10561 \end_layout
10562
10563 \begin_layout Standard
10564
10565 \change_inserted 564990737 1672743396
10566 The document class 
10567 \family sans
10568 presentation
10569 \begin_inset space \thinspace{}
10570 \end_inset
10571
10572 (Foil\SpecialChar TeX
10573 )
10574 \family default
10575  uses the 
10576 \family typewriter
10577 foils.cls
10578 \family default
10579  document class to make slides for overhead projectors.
10580  There are two document classes that can do this:
10581  the 
10582 \family sans
10583 presentations
10584 \begin_inset space \thinspace{}
10585 \end_inset
10586
10587 (slides)
10588 \family default
10589  document class (section
10590 \begin_inset space ~
10591 \end_inset
10592
10593
10594 \begin_inset CommandInset ref
10595 LatexCommand ref
10596 reference "sec:slitex"
10597 plural "false"
10598 caps "false"
10599 noprefix "false"
10600 nolink "false"
10601
10602 \end_inset
10603
10604 ) and the 
10605 \family sans
10606 Foil\SpecialChar TeX
10607
10608 \family default
10609  slides class.
10610  As of 2023 the former has continued to be maintained whereas 
10611 \family sans
10612 Foil\SpecialChar TeX
10613
10614 \family default
10615  has not been maintained since 2008.
10616  This section documents the latter.
10617  If your machine doesn’t have the 
10618 \family sans
10619 presentation
10620 \begin_inset space \thinspace{}
10621 \end_inset
10622
10623 (Foil\SpecialChar TeX
10624 )
10625 \family default
10626  document class installed,
10627  you’ll probably have to use the 
10628 \family sans
10629 presentations
10630 \begin_inset space \thinspace{}
10631 \end_inset
10632
10633 (slides)
10634 \family default
10635  document class.
10636  If you want to install the 
10637 \family typewriter
10638 foils.cls
10639 \family default
10640  document class,
10641  it is available from 
10642 \begin_inset CommandInset href
10643 LatexCommand href
10644 name "CTAN"
10645 target "https://www.ctan.org/pkg/foiltex"
10646 literal "false"
10647
10648 \end_inset
10649
10650 .
10651  You should also read the 
10652 \emph on
10653 Installing New Document Classes
10654 \emph default
10655  chapter of the 
10656 \emph on
10657 Customization
10658 \emph default
10659  manual.
10660 \change_deleted 564990737 1672743436
10661 by 
10662 \noun on
10663 Allan Rae
10664 \end_layout
10665
10666 \begin_layout Standard
10667
10668 \change_deleted 564990737 1672743383
10669 Introduction
10670 \end_layout
10671
10672 \begin_layout Standard
10673
10674 \change_deleted 564990737 1672743383
10675 This section describes how to use \SpecialChar LyX
10676  to make slides for overhead projectors.
10677  There are two document classes that can do this:
10678  the default slides class and the 
10679 \family sans
10680 Foil\SpecialChar TeX
10681
10682 \family default
10683  slides class.
10684  This section documents the latter.
10685 \end_layout
10686
10687 \begin_layout Standard
10688
10689 \change_deleted 564990737 1672743383
10690 I'm going to say this again,
10691  nice and clear,
10692  so that there's no misunderstanding:
10693 \end_layout
10694
10695 \begin_layout Standard
10696
10697 \change_deleted 564990737 1672743383
10698 \begin_inset VSpace bigskip
10699 \end_inset
10700
10701
10702 \end_layout
10703
10704 \begin_layout Standard
10705 \align center
10706
10707 \change_deleted 564990737 1672743383
10708
10709 \size large
10710 This section documents the class 
10711 \begin_inset Quotes eld
10712 \end_inset
10713
10714
10715 \family sans
10716 FoilTeX
10717 \family default
10718
10719 \begin_inset Quotes erd
10720 \end_inset
10721
10722  
10723 \emph on
10724 only.
10725 \end_layout
10726
10727 \begin_layout Standard
10728
10729 \change_deleted 564990737 1672743383
10730 \begin_inset VSpace bigskip
10731 \end_inset
10732
10733
10734 \end_layout
10735
10736 \begin_layout Standard
10737
10738 \change_deleted 564990737 1672743383
10739 If you're looking for the documentation for 
10740 \begin_inset Quotes eld
10741 \end_inset
10742
10743
10744 \family sans
10745 slides (default)
10746 \family default
10747
10748 \begin_inset Quotes erd
10749 \end_inset
10750
10751 ,
10752  check out section
10753 \begin_inset space ~
10754 \end_inset
10755
10756
10757 \begin_inset CommandInset ref
10758 LatexCommand ref
10759 reference "sec:slitex"
10760 nolink "false"
10761
10762 \end_inset
10763
10764 .
10765  If your machine doesn't have the 
10766 \family sans
10767 foils
10768 \family default
10769  class 
10770 \family sans
10771 FoilTeX
10772 \family default
10773  installed,
10774  you'll probably have to use the default 
10775 \family sans
10776 slides
10777 \family default
10778  class,
10779  which isn't quite as good as 
10780 \family sans
10781 foils.
10782 \end_layout
10783
10784 \begin_layout Standard
10785
10786 \change_deleted 564990737 1672743383
10787 The 
10788 \family sans
10789 foils
10790 \family default
10791  class is designed for use with version
10792 \begin_inset space ~
10793 \end_inset
10794
10795 2.1 of the 
10796 \family sans
10797 foils.cls
10798 \family default
10799  \SpecialChar LaTeX
10800  class file which is now an integral part of \SpecialChar LaTeX2e
10801 .
10802 \change_unchanged
10803
10804 \end_layout
10805
10806 \begin_layout Subsubsection
10807 Getting Started
10808 \end_layout
10809
10810 \begin_layout Standard
10811 Obviously,
10812  to use this document class,
10813  you need to select 
10814 \family sans
10815 FoilTeX
10816 \family default
10817  from the 
10818 \family sans
10819 Class
10820 \family default
10821  entry in the 
10822 \family sans
10823 Document
10824 \begin_inset space ~
10825 \end_inset
10826
10827 Layout
10828 \family default
10829  dialog.
10830  There are some settings in the 
10831 \family sans
10832 Document
10833 \begin_inset space ~
10834 \end_inset
10835
10836 Layout
10837 \family default
10838  dialog that you should know about that are specific to this class:
10839 \end_layout
10840
10841 \begin_layout Itemize
10842 Don't change the options 
10843 \family sans
10844 Sides
10845 \family default
10846  and 
10847 \family sans
10848 Columns
10849 \family default
10850  on the 
10851 \family sans
10852 Document
10853 \begin_inset space ~
10854 \end_inset
10855
10856 Layout
10857 \family default
10858  dialog.
10859  They're ignored by the 
10860 \family sans
10861 foils
10862 \family default
10863  class.
10864 \end_layout
10865
10866 \begin_layout Itemize
10867 The default font size is 20
10868 \begin_inset space \thinspace{}
10869 \end_inset
10870
10871 pt with the other options being 17
10872 \begin_inset space \thinspace{}
10873 \end_inset
10874
10875 pt,
10876  25
10877 \begin_inset space \thinspace{}
10878 \end_inset
10879
10880 pt and 30
10881 \begin_inset space \thinspace{}
10882 \end_inset
10883
10884 pt.
10885 \end_layout
10886
10887 \begin_layout Itemize
10888 The default font is 
10889 \family sans
10890 sans
10891 \family default
10892  
10893 \family sans
10894 serif
10895 \family default
10896  but all math equations are still typeset in the usual roman font.
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 Foil\SpecialChar TeX
10903
10904 \family default
10905  supports A4 and Letter paper sizes as well as a special size for working with 35
10906 \begin_inset space \thinspace{}
10907 \end_inset
10908
10909 mm slides.
10910  It doesn't support A5,
10911  B5,
10912  legal or executive paper sizes.
10913 \end_layout
10914
10915 \begin_layout Itemize
10916 Don't bother changing the 
10917 \family sans
10918 Float Placement
10919 \family default
10920  settings because they are ignored anyway.
10921  All floats appear where they are defined in the text.
10922 \end_layout
10923
10924 \begin_layout Itemize
10925 The 
10926 \family sans
10927 Pagestyle
10928 \family default
10929  setting behaves a bit differently for this class.
10930  
10931 \family sans
10932 Foil\SpecialChar TeX
10933
10934 \family default
10935  provides extensive footer and header capabilities including a user-defined logo.
10936  See section
10937 \begin_inset space ~
10938 \end_inset
10939
10940
10941 \begin_inset CommandInset ref
10942 LatexCommand ref
10943 reference "sec:foilfoot"
10944 nolink "false"
10945
10946 \end_inset
10947
10948  for more details.
10949  The title page is treated differently to all other pages in the document and is 
10950 \emph on
10951 always
10952 \emph default
10953  unnumbered and 
10954 \emph on
10955 always
10956 \emph default
10957  has the logo centered at the bottom of the page (if one is defined).
10958  The possible page style choices and what they do are as follows:
10959 \end_layout
10960
10961 \begin_deeper
10962 \begin_layout Labeling
10963 \labelwidthstring MMMMMMM
10964
10965 \family sans
10966 \series bold
10967 empty
10968 \family default
10969 \series default
10970  The final output contains no page numbers,
10971  or other headers or footers (except footnotes of course).
10972  
10973 \end_layout
10974
10975 \begin_layout Labeling
10976 \labelwidthstring MMMMMMM
10977
10978 \family sans
10979 \series bold
10980 plain
10981 \family default
10982 \series default
10983  The final output contains page numbers centered at the bottom of the page.
10984  No other headings or footers (other than footnotes).
10985 \end_layout
10986
10987 \begin_layout Labeling
10988 \labelwidthstring MMMMMMM
10989
10990 \series bold
10991 foilheadings
10992 \series default
10993  Page numbers in lower right corner.
10994  Additional headers and footers are also shown.
10995  This is also the default.
10996 \end_layout
10997
10998 \begin_layout Labeling
10999 \labelwidthstring MMMMMMM
11000
11001 \series bold
11002 fancy
11003 \series default
11004  Gives you access to the 
11005 \family sans
11006 fancyheadings
11007 \family default
11008  package although its use with 
11009 \family sans
11010 Foil\SpecialChar TeX
11011
11012 \family default
11013  is discouraged by the writer of the 
11014 \family sans
11015 Foil\SpecialChar TeX
11016
11017 \family default
11018  package because of some potential page layout clashes.
11019 \end_layout
11020
11021 \end_deeper
11022 \begin_layout Paragraph
11023 Extra Options
11024 \end_layout
11025
11026 \begin_layout Standard
11027 The following options may be used in the extra class options in the 
11028 \family sans
11029 Document\SpecialChar menuseparator
11030 Settings
11031 \family default
11032  dialog.
11033 \end_layout
11034
11035 \begin_layout Labeling
11036 \labelwidthstring MMMMMMx
11037
11038 \series bold
11039 35mmSlide
11040 \series default
11041  This sets up the page layout for 7.33
11042 \begin_inset space \thinspace{}
11043 \end_inset
11044
11045 in by 11
11046 \begin_inset space \thinspace{}
11047 \end_inset
11048
11049 in paper,
11050  which is about the same aspect ratio as a 35
11051 \begin_inset space \thinspace{}
11052 \end_inset
11053
11054 mm slide,
11055  making it a bit easier to work with this medium.
11056 \end_layout
11057
11058 \begin_layout Labeling
11059 \labelwidthstring MMMMMMx
11060
11061 \series bold
11062 headrule
11063 \series default
11064  Places a rule across the page below the header on every page except the title page.
11065 \end_layout
11066
11067 \begin_layout Labeling
11068 \labelwidthstring MMMMMMx
11069
11070 \series bold
11071 footrule
11072 \series default
11073  Places a rule across the page above the footer on every page except the title page.
11074 \end_layout
11075
11076 \begin_layout Labeling
11077 \labelwidthstring MMMMMMx
11078
11079 \series bold
11080 dvips
11081 \series default
11082  This is automatically set each time you create a new 
11083 \family sans
11084 foils
11085 \family default
11086  document.
11087  This option tells 
11088 \family sans
11089 Foil\SpecialChar TeX
11090
11091 \family default
11092  to use the dvips driver to rotate those pages that are set as landscape foils.
11093 \end_layout
11094
11095 \begin_layout Labeling
11096 \labelwidthstring MMMMMMx
11097
11098 \series bold
11099 landscape
11100 \series default
11101  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
11102  Thus if you use this option you need to use an external program to rotate each page or feed your paper through your printer as landscape.
11103  Note that this option effectively reverses the roles of the 
11104 \family sans
11105 Foilhead
11106 \family default
11107  and 
11108 \family sans
11109 Rotatefoilhead
11110 \family default
11111  environments (don't worry these are described in the next section).
11112 \end_layout
11113
11114 \begin_layout Labeling
11115 \labelwidthstring MMMMMMx
11116
11117 \series bold
11118 leqno
11119 \series default
11120  Equation numbers on the left.
11121 \end_layout
11122
11123 \begin_layout Labeling
11124 \labelwidthstring MMMMMMx
11125
11126 \series bold
11127 fleqn
11128 \series default
11129  Flush-left equations.
11130 \end_layout
11131
11132 \begin_layout Subsubsection
11133 Supported Environments
11134 \end_layout
11135
11136 \begin_layout Standard
11137 Most of the environments commonly supported in other classes are also supported by the 
11138 \family sans
11139 foils
11140 \family default
11141  class.
11142  There are several additional environments provided by 
11143 \family sans
11144 Foil\SpecialChar TeX
11145
11146 \family default
11147  as well as a couple added by \SpecialChar LyX
11148 .
11149  The following environments are shared with other classes:
11150 \end_layout
11151
11152 \begin_layout Standard
11153 \begin_inset Flex Multiple Columns
11154 status open
11155
11156 \begin_layout Itemize
11157
11158 \family sans
11159 Standard
11160 \end_layout
11161
11162 \begin_layout Itemize
11163
11164 \family sans
11165 Itemize
11166 \end_layout
11167
11168 \begin_layout Itemize
11169
11170 \family sans
11171 Enumerate
11172 \end_layout
11173
11174 \begin_layout Itemize
11175
11176 \family sans
11177 Description
11178 \end_layout
11179
11180 \begin_layout Itemize
11181
11182 \family sans
11183 List
11184 \end_layout
11185
11186 \begin_layout Itemize
11187
11188 \family sans
11189 \SpecialChar LyX
11190 -Code
11191 \end_layout
11192
11193 \begin_layout Itemize
11194
11195 \family sans
11196 Verse
11197 \end_layout
11198
11199 \begin_layout Itemize
11200
11201 \family sans
11202 Quote
11203 \end_layout
11204
11205 \begin_layout Itemize
11206
11207 \family sans
11208 Quotation
11209 \end_layout
11210
11211 \begin_layout Itemize
11212
11213 \family sans
11214 TitleAuthor
11215 \end_layout
11216
11217 \begin_layout Itemize
11218
11219 \family sans
11220 Date
11221 \end_layout
11222
11223 \begin_layout Itemize
11224
11225 \family sans
11226 Abstract
11227 \end_layout
11228
11229 \begin_layout Itemize
11230
11231 \family sans
11232 Bibliography
11233 \end_layout
11234
11235 \begin_layout Itemize
11236
11237 \family sans
11238 Address
11239 \end_layout
11240
11241 \begin_layout Itemize
11242
11243 \family sans
11244 RightAddress
11245 \end_layout
11246
11247 \end_inset
11248
11249
11250 \end_layout
11251
11252 \begin_layout Standard
11253 That is,
11254  all the major environments apart from the sectioning environments.
11255  Since foils are essentially self-contained sections,
11256  with a title and body,
11257  
11258 \family sans
11259 Foil\SpecialChar TeX
11260
11261 \family default
11262  provides specific commands for starting new foils and these are:
11263 \end_layout
11264
11265 \begin_layout Itemize
11266
11267 \family sans
11268 Foilhead
11269 \end_layout
11270
11271 \begin_layout Itemize
11272
11273 \family sans
11274 Rotatefoilhead
11275 \end_layout
11276
11277 \begin_layout Standard
11278 \SpecialChar LyX
11279  also provides slightly modified versions of these two environments called:
11280 \end_layout
11281
11282 \begin_layout Itemize
11283
11284 \family sans
11285 ShortFoilhead
11286 \end_layout
11287
11288 \begin_layout Itemize
11289
11290 \family sans
11291 ShortRotatefoilhead
11292 \end_layout
11293
11294 \begin_layout Standard
11295 and the differences will be explained in the next section.
11296 \end_layout
11297
11298 \begin_layout Standard
11299 Since foils are often used in presenting ideas or new theorems and such 
11300 \family sans
11301 Foil\SpecialChar TeX
11302
11303 \family default
11304  also provides a comprehensive box of goodies for presenting them:
11305 \end_layout
11306
11307 \begin_layout Standard
11308 \begin_inset Flex Multiple Columns
11309 status open
11310
11311 \begin_layout Itemize
11312
11313 \family sans
11314 Theorem
11315 \end_layout
11316
11317 \begin_layout Itemize
11318
11319 \family sans
11320 Lemma
11321 \end_layout
11322
11323 \begin_layout Itemize
11324
11325 \family sans
11326 Corollary
11327 \end_layout
11328
11329 \begin_layout Itemize
11330
11331 \family sans
11332 Proposition
11333 \end_layout
11334
11335 \begin_layout Itemize
11336
11337 \family sans
11338 Definition
11339 \end_layout
11340
11341 \begin_layout Itemize
11342
11343 \family sans
11344 Proof
11345 \end_layout
11346
11347 \begin_layout Itemize
11348
11349 \family sans
11350 Theorem*
11351 \end_layout
11352
11353 \begin_layout Itemize
11354
11355 \family sans
11356 Lemma*
11357 \end_layout
11358
11359 \begin_layout Itemize
11360
11361 \family sans
11362 Corollary*
11363 \end_layout
11364
11365 \begin_layout Itemize
11366
11367 \family sans
11368 Proposition*
11369 \end_layout
11370
11371 \begin_layout Itemize
11372
11373 \family sans
11374 Definition*
11375 \end_layout
11376
11377 \end_inset
11378
11379
11380 \end_layout
11381
11382 \begin_layout Standard
11383 The starred versions are unnumbered while the unstarred versions are numbered.
11384  There are also two list environments added by \SpecialChar LyX
11385  and these are:
11386 \end_layout
11387
11388 \begin_layout Itemize
11389
11390 \family sans
11391 TickList
11392 \end_layout
11393
11394 \begin_layout Itemize
11395
11396 \family sans
11397 CrossList
11398 \end_layout
11399
11400 \begin_layout Standard
11401
11402 \family sans
11403 Foil\SpecialChar TeX
11404
11405 \family default
11406  provides some powerful header and footer capabilities that are best set in the preamble although they may be set at any point in a document.
11407  If you want to change these settings in your document the best place to do so is at the very top of a foil,
11408  i.
11409 \begin_inset space \thinspace{}
11410 \end_inset
11411
11412 e.
11413 \emph on
11414
11415 \begin_inset space \space{}
11416 \end_inset
11417
11418
11419 \emph default
11420 straight after the foilhead.
11421 \end_layout
11422
11423 \begin_layout Standard
11424 For this purpose,
11425  the following command styles are provided [
11426 \shape smallcaps
11427 Martin Vermeer
11428 \shape default
11429 ]:
11430 \end_layout
11431
11432 \begin_layout Standard
11433 \begin_inset Flex Multiple Columns
11434 status open
11435
11436 \begin_layout Itemize
11437
11438 \family sans
11439 My
11440 \begin_inset space ~
11441 \end_inset
11442
11443 Logo
11444 \end_layout
11445
11446 \begin_layout Itemize
11447
11448 \family sans
11449 Restriction
11450 \end_layout
11451
11452 \begin_layout Itemize
11453
11454 \family sans
11455 Right
11456 \begin_inset space ~
11457 \end_inset
11458
11459 Footer
11460 \end_layout
11461
11462 \begin_layout Itemize
11463
11464 \family sans
11465 Right
11466 \begin_inset space ~
11467 \end_inset
11468
11469 Header
11470 \end_layout
11471
11472 \begin_layout Itemize
11473
11474 \family sans
11475 Left
11476 \begin_inset space ~
11477 \end_inset
11478
11479 Header
11480 \end_layout
11481
11482 \begin_deeper
11483 \begin_layout Plain Layout
11484 \begin_inset space ~
11485 \end_inset
11486
11487
11488 \end_layout
11489
11490 \end_deeper
11491 \end_inset
11492
11493
11494 \end_layout
11495
11496 \begin_layout Standard
11497 There are also a few commands provided by 
11498 \family sans
11499 Foil\SpecialChar TeX
11500
11501 \family default
11502  that aren't directly supported by \SpecialChar LyX
11503  but I'll tell you what they do and how to use them in section
11504 \begin_inset space ~
11505 \end_inset
11506
11507
11508 \begin_inset CommandInset ref
11509 LatexCommand ref
11510 reference "sec:unsuppfoils"
11511 nolink "false"
11512
11513 \end_inset
11514
11515 .
11516 \end_layout
11517
11518 \begin_layout Subsubsection
11519 Building a Set of Foils
11520 \end_layout
11521
11522 \begin_layout Standard
11523 This section will give a simple introduction to using the different environments to build a set of foils.
11524  If you want to see an example set of foils,
11525  take a look at 
11526 \change_deleted 564990737 1671643085
11527 the 
11528 \family typewriter
11529 Foils.lyx
11530 \family default
11531  file you find in \SpecialChar LyX
11532 's 
11533 \family typewriter
11534 examples
11535 \family default
11536  folder
11537 \change_inserted 564990737 1671643099
11538
11539 \family sans
11540 File\SpecialChar menuseparator
11541 Open Example\SpecialChar menuseparator
11542 Presentations\SpecialChar menuseparator
11543 Foils
11544 \change_unchanged
11545
11546 \family default
11547 .
11548 \end_layout
11549
11550 \begin_layout Paragraph
11551 Give It a Title Page
11552 \end_layout
11553
11554 \begin_layout Standard
11555 Unlike other classes that provide 
11556 \family sans
11557 Title
11558 \family default
11559 ,
11560  
11561 \family sans
11562 Author
11563 \family default
11564 ,
11565  
11566 \family sans
11567 Date
11568 \family default
11569  and 
11570 \family sans
11571 Abstract
11572 \family default
11573  environments,
11574  
11575 \family sans
11576 foils
11577 \family default
11578  creates the title on a page of its own.
11579  If you leave out the 
11580 \family sans
11581 Date
11582 \family default
11583  environment \SpecialChar LaTeX
11584  will substitute the current date (every time you regenerate the output).
11585 \end_layout
11586
11587 \begin_layout Paragraph
11588 Start a New Foil
11589 \end_layout
11590
11591 \begin_layout Standard
11592 As I mentioned earlier,
11593  there are four ways of starting a new foil.
11594  For portrait foils you should use 
11595 \family sans
11596 Foilhead
11597 \family default
11598  or 
11599 \family sans
11600 ShortFoilhead.
11601
11602 \family default
11603  The difference between these two environments is the amount of space between the title of the foil (the foilhead) and the body of the foil.
11604 \end_layout
11605
11606 \begin_layout Standard
11607 Landscape foils are generated using the 
11608 \family sans
11609 Rotatefoilhead
11610 \family default
11611  and 
11612 \family sans
11613 ShortRotatefoilhead
11614 \family default
11615  environments.
11616  Again the only difference is the spacing between foilhead and body.
11617  Both of the short versions have 0.5
11618 \begin_inset space ~
11619 \end_inset
11620
11621 inches less separation between the foilhead and the body.
11622  
11623 \end_layout
11624
11625 \begin_layout Standard
11626 One problem with the support for landscape foils is the requirement that you have to use the 
11627 \family typewriter
11628 dvips
11629 \family default
11630  driver to generate the PostScript output otherwise the foils won't be rotated.
11631  It is possible to get landscape foils even if you haven't got the 
11632 \family typewriter
11633 dvips
11634 \family default
11635  driver provided you can feed your foils sideways through your printer ;-)
11636 \end_layout
11637
11638 \begin_layout Paragraph
11639 Theorems,
11640  Lemmas,
11641  Proofs and more
11642 \end_layout
11643
11644 \begin_layout Standard
11645 You can't have two of the same type of these environments directly following each other.
11646  If you use a normal paragraph break,
11647  ,
11648  you will just be extending the previous environment as if you had merged the two environments together.
11649  Rather than that,
11650  you need to insert a so-called separator.
11651  Please refer to the section entitled 
11652 \emph on
11653 Separate Nestings
11654 \emph default
11655  in the 
11656 \emph on
11657 User's Guide
11658 \emph default
11659 .
11660 \end_layout
11661
11662 \begin_layout Paragraph
11663 Lists
11664 \end_layout
11665
11666 \begin_layout Standard
11667 You get all the commonly supported list styles found in other classes as well as two new ones.
11668  I'll only describe the new ones here.
11669  If you want to find out more about the other list environments check out the 
11670 \emph on
11671 User's Guide.
11672
11673 \emph default
11674  If you intend to use itemized lists you might also want to read about the 
11675 \family sans
11676 Itemize
11677 \begin_inset space ~
11678 \end_inset
11679
11680 Bullet
11681 \begin_inset space ~
11682 \end_inset
11683
11684 Selection
11685 \family default
11686  dialog described above in section
11687 \begin_inset space ~
11688 \end_inset
11689
11690
11691 \change_inserted 564990737 1671355684
11692
11693 \begin_inset CommandInset ref
11694 LatexCommand ref
11695 reference "chap:bullets"
11696 nolink "false"
11697
11698 \end_inset
11699
11700
11701 \change_deleted 564990737 1671355684
11702
11703 \begin_inset CommandInset ref
11704 LatexCommand ref
11705 reference "sec:bullet"
11706 nolink "false"
11707
11708 \end_inset
11709
11710
11711 \change_unchanged
11712 .
11713 \end_layout
11714
11715 \begin_layout Standard
11716 The two new list styles,
11717  
11718 \family sans
11719 TickList
11720 \family default
11721  and 
11722 \family sans
11723 CrossList
11724 \family default
11725 ,
11726  are designed to make it easier for you to create lists of do's and don'ts or right and wrong by providing dedicated environments that use a tick or a cross as the label of the list.
11727  These lists are in fact dedicated variants of the 
11728 \family sans
11729 Itemize
11730 \family default
11731  environment.
11732  They do however require that you have the 
11733 \family typewriter
11734 psnfss
11735 \family default
11736  packages installed.
11737 \end_layout
11738
11739 \begin_layout Paragraph
11740 Figures and Tables
11741 \end_layout
11742
11743 \begin_layout Standard
11744
11745 \family sans
11746 Foil\SpecialChar TeX
11747
11748 \family default
11749  redefines the floating tables and figures so that they appear exactly where they are in the text rather than pushing them to the top of the page or to some user specified location.
11750  In fact if you change the float placement settings they are simply ignored.
11751 \end_layout
11752
11753 \begin_layout Paragraph
11754 Page Headers and Footers
11755 \begin_inset CommandInset label
11756 LatexCommand label
11757 name "sec:foilfoot"
11758
11759 \end_inset
11760
11761
11762 \end_layout
11763
11764 \begin_layout Standard
11765
11766 \family sans
11767 My
11768 \begin_inset space ~
11769 \end_inset
11770
11771 Logo
11772 \family default
11773  and 
11774 \family sans
11775 Restriction
11776 \family default
11777  are two commands used to control the left-footer text string.
11778  The first is meant to allow you to include a graphic logo on your foils and defaults to 
11779 \begin_inset Quotes eld
11780 \end_inset
11781
11782 -Typeset by 
11783 \family sans
11784 Foil\SpecialChar TeX
11785
11786 \family default
11787 -
11788 \begin_inset Quotes erd
11789 \end_inset
11790
11791 .
11792  While the second is meant to provide a classification for the audience,
11793  
11794 \emph on
11795 e.
11796 \begin_inset space \thinspace{}
11797 \end_inset
11798
11799 g.
11800 \emph default
11801
11802 \begin_inset space \space{}
11803 \end_inset
11804
11805 Confidential.
11806  It is empty by default.
11807 \end_layout
11808
11809 \begin_layout Standard
11810 The remaining page corners can be filled by 
11811 \family sans
11812 Right
11813 \begin_inset space ~
11814 \end_inset
11815
11816 Footer
11817 \family default
11818  (which defaults to page numbers),
11819  
11820 \family sans
11821 Right
11822 \begin_inset space ~
11823 \end_inset
11824
11825 Header
11826 \family default
11827  (top right) and 
11828 \family sans
11829 Left
11830 \begin_inset space ~
11831 \end_inset
11832
11833 Header
11834 \family default
11835  (top left).
11836 \end_layout
11837
11838 \begin_layout Subsubsection
11839 Unsupported 
11840 \family sans
11841 Foil\SpecialChar TeX
11842
11843 \family default
11844  Goodies
11845 \begin_inset CommandInset label
11846 LatexCommand label
11847 name "sec:unsuppfoils"
11848
11849 \end_inset
11850
11851
11852 \end_layout
11853
11854 \begin_layout Standard
11855 All the commands mentioned below need to be set in a 
11856 \family sans
11857 \SpecialChar LaTeX
11858
11859 \family default
11860  environment or as 
11861 \family sans
11862 \SpecialChar TeX
11863
11864 \family default
11865  within another environment.
11866 \end_layout
11867
11868 \begin_layout Paragraph
11869 Lengths
11870 \end_layout
11871
11872 \begin_layout Standard
11873 All lengths are adjusted using the 
11874 \family typewriter
11875
11876 \backslash
11877 setlength{
11878 \family default
11879 \emph on
11880 lengthname
11881 \family typewriter
11882 \emph default
11883 }{
11884 \family default
11885 \emph on
11886 newlength
11887 \family typewriter
11888 \emph default
11889 }
11890 \family default
11891  command.
11892  Where 
11893 \emph on
11894 lengthname
11895 \emph default
11896  should be replaced by the name given to the length you want to change and 
11897 \emph on
11898 newlength
11899 \emph default
11900  is the length value.
11901  All lengths should be specified in units of length such as inches (
11902 \family typewriter
11903 in
11904 \family default
11905 ),
11906  millimeters (
11907 \family typewriter
11908 mm
11909 \family default
11910 ) or points (
11911 \family typewriter
11912 pt
11913 \family default
11914 ) or relative to some document or font-based length such as 
11915 \family typewriter
11916
11917 \backslash
11918 textwidth
11919 \family default
11920 .
11921  
11922 \end_layout
11923
11924 \begin_layout Standard
11925 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
11926 \family typewriter
11927
11928 \backslash
11929 foilheadskip
11930 \family default
11931 .
11932  For example,
11933  to make 
11934 \emph on
11935 all
11936 \emph default
11937  foilheads 0.5
11938 \begin_inset space \space{}
11939 \end_inset
11940
11941 in closer to their bodies put the following in the preamble:
11942  
11943 \family typewriter
11944
11945 \backslash
11946 setlength{
11947 \backslash
11948 foilheadskip}{-0.5in}
11949 \end_layout
11950
11951 \begin_layout Standard
11952 The spacings around floats can be adjusted by setting these lengths:
11953 \end_layout
11954
11955 \begin_layout Labeling
11956 \labelwidthstring MMMMMMMMMMM
11957
11958 \family typewriter
11959
11960 \backslash
11961 abovefloatskip
11962 \family default
11963  Separation between the text and the top of the float
11964 \end_layout
11965
11966 \begin_layout Labeling
11967 \labelwidthstring MMMMMMMMMMM
11968
11969 \family typewriter
11970
11971 \backslash
11972 abovecaptionskip
11973 \family default
11974  Separation between the float and the caption
11975 \end_layout
11976
11977 \begin_layout Labeling
11978 \labelwidthstring MMMMMMMMMMM
11979
11980 \family typewriter
11981
11982 \backslash
11983 belowcaptionskip
11984 \family default
11985  Separation between the caption and the following text
11986 \end_layout
11987
11988 \begin_layout Labeling
11989 \labelwidthstring MMMMMMMMMMM
11990
11991 \family typewriter
11992
11993 \backslash
11994 captionwidth
11995 \family default
11996  You can make the captions narrower than the surrounding text by adjusting this length.
11997  Best done relative to 
11998 \family typewriter
11999
12000 \backslash
12001 textwidth
12002 \family default
12003 .
12004 \end_layout
12005
12006 \begin_layout Standard
12007 There are also several title page related lengths that you may find useful if you have a long title or several authors:
12008 \end_layout
12009
12010 \begin_layout Labeling
12011 \labelwidthstring MMMMMMMMMMM
12012
12013 \family typewriter
12014
12015 \backslash
12016 abovetitleskip
12017 \family default
12018  Separation from headers to 
12019 \family sans
12020 Title
12021 \end_layout
12022
12023 \begin_layout Labeling
12024 \labelwidthstring MMMMMMMMMMM
12025
12026 \family typewriter
12027
12028 \backslash
12029 titleauthorskip
12030 \family default
12031  between 
12032 \family sans
12033 Title
12034 \family default
12035  and 
12036 \family sans
12037 Author
12038 \family default
12039  environments
12040 \end_layout
12041
12042 \begin_layout Labeling
12043 \labelwidthstring MMMMMMMMMMM
12044
12045 \family typewriter
12046
12047 \backslash
12048 authorauthorskip
12049 \family default
12050  between multiple 
12051 \family sans
12052 Author
12053 \family default
12054  lines
12055 \end_layout
12056
12057 \begin_layout Labeling
12058 \labelwidthstring MMMMMMMMMMM
12059
12060 \family typewriter
12061
12062 \backslash
12063 authordateskip
12064 \family default
12065  between the 
12066 \family sans
12067 Author
12068 \family default
12069  and the 
12070 \family sans
12071 Date
12072 \end_layout
12073
12074 \begin_layout Labeling
12075 \labelwidthstring MMMMMMMMMMM
12076
12077 \family typewriter
12078
12079 \backslash
12080 dateabstractskip
12081 \family default
12082  between the 
12083 \family sans
12084 Date
12085 \family default
12086  and the 
12087 \family sans
12088 Abstract
12089 \end_layout
12090
12091 \begin_layout Standard
12092 The last length related command affects all the list environments.
12093  If you place 
12094 \family typewriter
12095
12096 \backslash
12097 zerolistvertdimens
12098 \family default
12099  
12100 \emph on
12101 inside
12102 \emph default
12103  a list environment then all the vertical spacing between the list items is removed.
12104  Note that this is a command not a length so it doesn't require 
12105 \family typewriter
12106
12107 \backslash
12108 setlength
12109 \family default
12110  like the stuff mentioned above.
12111 \end_layout
12112
12113 \begin_layout Paragraph
12114 Headers and Footers
12115 \end_layout
12116
12117 \begin_layout Standard
12118 The 
12119 \family typewriter
12120
12121 \backslash
12122 LogoOn
12123 \family default
12124  and 
12125 \family typewriter
12126
12127 \backslash
12128 LogoOff
12129 \family default
12130  commands control whether the logo in the 
12131 \family sans
12132 MyLogo
12133 \family default
12134  definition appear on a given page.
12135  If you put 
12136 \family typewriter
12137
12138 \backslash
12139 LogoOff
12140 \family default
12141  in the preamble then none of the foils will have the logo on them.
12142  If you don't want the logo on a particular page place the 
12143 \family typewriter
12144
12145 \backslash
12146 LogoOff
12147 \family default
12148  directly after the foilhead of that page and the 
12149 \family typewriter
12150
12151 \backslash
12152 LogoOn
12153 \family default
12154  directly after the next foilhead.
12155 \end_layout
12156
12157 \begin_layout Standard
12158 If you decide to use the 
12159 \family sans
12160 fancy
12161 \family default
12162  page style setting in the 
12163 \family sans
12164 Document
12165 \begin_inset space ~
12166 \end_inset
12167
12168 Layout
12169 \family default
12170  dialog you should probably add 
12171 \family typewriter
12172
12173 \backslash
12174 let
12175 \backslash
12176 headwidth
12177 \backslash
12178 textwidth
12179 \family default
12180  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
12181  This is due to some clashes between the page layouts provided by the 
12182 \family sans
12183 fancyheadings
12184 \family default
12185  package and the 
12186 \family sans
12187 foils
12188 \family default
12189  class.
12190 \end_layout
12191
12192 \begin_layout Subsection
12193
12194 \change_inserted 564990737 1671459032
12195 Powerdot
12196 \end_layout
12197
12198 \begin_layout Standard
12199
12200 \change_inserted 564990737 1671643165
12201 The document class 
12202 \family sans
12203 presentation
12204 \begin_inset space \thinspace{}
12205 \end_inset
12206
12207 (powerdot)
12208 \family default
12209  uses the 
12210 \family typewriter
12211 powerdot.cls
12212 \family default
12213  document class for creating presentations.
12214  
12215 \family sans
12216 File\SpecialChar menuseparator
12217 Open Example\SpecialChar menuseparator
12218 Presentations\SpecialChar menuseparator
12219 Powerdot
12220 \family default
12221  offers guidance on its use.
12222  The documentation is available from 
12223 \begin_inset CommandInset href
12224 LatexCommand href
12225 name "CTAN"
12226 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
12227 literal "false"
12228
12229 \end_inset
12230
12231 .
12232 \end_layout
12233
12234 \begin_layout Subsection
12235
12236 \change_inserted 564990737 1671459032
12237 \begin_inset CommandInset label
12238 LatexCommand label
12239 name "subsec:Seminar"
12240
12241 \end_inset
12242
12243
12244 \family sans
12245 Seminar
12246 \end_layout
12247
12248 \begin_layout Standard
12249
12250 \change_inserted 564990737 1671643194
12251 The document class 
12252 \family sans
12253 presentations
12254 \begin_inset space \thinspace{}
12255 \end_inset
12256
12257 (seminar)
12258 \family default
12259  uses the 
12260 \family typewriter
12261 seminar.cls
12262 \family default
12263  document class for creating presentations.
12264  
12265 \family sans
12266 File\SpecialChar menuseparator
12267 Open Example\SpecialChar menuseparator
12268 Presentations\SpecialChar menuseparator
12269 Seminar
12270 \family default
12271  offers guidance on its use.
12272  The documentation is available from 
12273 \begin_inset CommandInset href
12274 LatexCommand href
12275 name "CTAN"
12276 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
12277 literal "false"
12278
12279 \end_inset
12280
12281 .
12282 \end_layout
12283
12284 \begin_layout Subsection
12285 Slides [aka 
12286 \noun on
12287 Sli\SpecialChar TeX
12288
12289 \noun default
12290 ]
12291 \begin_inset CommandInset label
12292 LatexCommand label
12293 name "sec:slitex"
12294
12295 \end_inset
12296
12297
12298 \end_layout
12299
12300 \begin_layout Standard
12301
12302 \change_inserted 564990737 1672743492
12303 Original by 
12304 \noun on
12305 John Weiss
12306 \noun default
12307 ;
12308  updated by the \SpecialChar LyX
12309  Team
12310 \end_layout
12311
12312 \begin_layout Subsubsection
12313
12314 \change_inserted 564990737 1672743492
12315 Introduction
12316 \end_layout
12317
12318 \begin_layout Standard
12319
12320 \change_inserted 564990737 1672743492
12321 This section describes how to use \SpecialChar LyX
12322  to make slides for overhead projectors.
12323  There are two document classes that can do this:
12324  the 
12325 \family typewriter
12326 presentations
12327 \begin_inset space \thinspace{}
12328 \end_inset
12329
12330 (slides)
12331 \family default
12332  document class and the 
12333 \family sans
12334 presentation
12335 \begin_inset space \thinspace{}
12336 \end_inset
12337
12338 (Foil\SpecialChar TeX
12339 )
12340 \family default
12341  document class.
12342  This section documents the former.
12343  If you’re looking for the documentation for 
12344 \family sans
12345 presentation
12346 \begin_inset space \thinspace{}
12347 \end_inset
12348
12349 (Foil\SpecialChar TeX
12350 )
12351 \family default
12352 ,
12353  check out section
12354 \begin_inset space ~
12355 \end_inset
12356
12357
12358 \begin_inset CommandInset ref
12359 LatexCommand ref
12360 reference "sec:Foiltex"
12361 nolink "false"
12362
12363 \end_inset
12364
12365 .
12366  As of 2023 the former has continued to be maintained whereas 
12367 \family sans
12368 Foil\SpecialChar TeX
12369
12370 \family default
12371  has not been maintained since 2008.
12372  
12373 \change_deleted 564990737 1672743492
12374 by 
12375 \noun on
12376 John Weiss
12377 \noun default
12378  
12379 \end_layout
12380
12381 \begin_layout Standard
12382
12383 \change_deleted 564990737 1672743492
12384 Introduction
12385 \end_layout
12386
12387 \begin_layout Standard
12388
12389 \change_deleted 564990737 1672743492
12390 This section describes how to use \SpecialChar LyX
12391  to make slides for overhead projectors.
12392  There are two document classes that can do this:
12393  the default slides class and the 
12394 \family sans
12395 Foil\SpecialChar TeX
12396
12397 \family default
12398  slides class.
12399  This section documents the former.
12400 \end_layout
12401
12402 \begin_layout Standard
12403
12404 \change_deleted 564990737 1672743492
12405 I'm going to say this again,
12406  nice and clear,
12407  so that there's no misunderstanding:
12408 \end_layout
12409
12410 \begin_layout Standard
12411
12412 \change_deleted 564990737 1672743492
12413 \begin_inset VSpace bigskip
12414 \end_inset
12415
12416
12417 \end_layout
12418
12419 \begin_layout Standard
12420 \align center
12421
12422 \change_deleted 564990737 1672743492
12423
12424 \size large
12425 This section documents the class 
12426 \begin_inset Quotes eld
12427 \end_inset
12428
12429
12430 \family sans
12431 slides (default)
12432 \family default
12433
12434 \begin_inset Quotes erd
12435 \end_inset
12436
12437  
12438 \emph on
12439 only.
12440 \end_layout
12441
12442 \begin_layout Standard
12443
12444 \change_deleted 564990737 1672743492
12445 \begin_inset VSpace bigskip
12446 \end_inset
12447
12448
12449 \end_layout
12450
12451 \begin_layout Standard
12452
12453 \change_deleted 564990737 1672743492
12454 If you're looking for the documentation for 
12455 \begin_inset Quotes eld
12456 \end_inset
12457
12458
12459 \family sans
12460 slides (Foil\SpecialChar TeX
12461 )
12462 \family default
12463
12464 \begin_inset Quotes erd
12465 \end_inset
12466
12467 ,
12468  check out section
12469 \begin_inset space ~
12470 \end_inset
12471
12472
12473 \begin_inset CommandInset ref
12474 LatexCommand ref
12475 reference "sec:foiltex"
12476 nolink "false"
12477
12478 \end_inset
12479
12480 .
12481  The 
12482 \family sans
12483 foils
12484 \family default
12485  class [
12486 \begin_inset Quotes eld
12487 \end_inset
12488
12489
12490 \family sans
12491 slides (Foil\SpecialChar TeX
12492 )
12493 \family default
12494
12495 \begin_inset Quotes erd
12496 \end_inset
12497
12498 ] is actually somewhat better than the default 
12499 \family sans
12500 slides
12501 \family default
12502  class,
12503 \begin_inset Foot
12504 status collapsed
12505
12506 \begin_layout Plain Layout
12507 \SpecialChar ldots
12508 or so I've been told repeatedly by its advocates.
12509  Having never used it,
12510  I have no idea if this claim is true or not.
12511 \end_layout
12512
12513 \end_inset
12514
12515  which this section documents.
12516 \end_layout
12517
12518 \begin_layout Standard
12519
12520 \change_deleted 564990737 1672743492
12521 This class is the \SpecialChar LaTeX2e
12522  improvement of the old 
12523 \noun on
12524 Sli\SpecialChar TeX
12525
12526 \noun default
12527  package.
12528  Every \SpecialChar LaTeX2e
12529  distribution includes this class [which I'll just refer to as 
12530 \begin_inset Quotes eld
12531 \end_inset
12532
12533
12534 \family sans
12535 slides
12536 \family default
12537
12538 \begin_inset Quotes erd
12539 \end_inset
12540
12541  from now on],
12542  so you're bound to have it.
12543  As I noted earlier,
12544  there are other classes,
12545  such as 
12546 \family sans
12547 foils
12548 \family default
12549 ,
12550  which also produce slides for overhead projectors and do a better job at it.
12551  However,
12552  there are some things which 
12553 \family sans
12554 slides
12555 \family default
12556  can do which the others can't,
12557  such as generate overlays.
12558  Read on to learn more!
12559 \change_unchanged
12560
12561 \end_layout
12562
12563 \begin_layout Subsubsection
12564 Getting Started
12565 \begin_inset CommandInset label
12566 LatexCommand label
12567 name "sec:slidesetup"
12568
12569 \end_inset
12570
12571
12572 \end_layout
12573
12574 \begin_layout Standard
12575 Obviously,
12576  to use this document class,
12577  you need to select 
12578 \begin_inset Quotes eld
12579 \end_inset
12580
12581
12582 \family sans
12583 slides (default)
12584 \family default
12585
12586 \begin_inset Quotes erd
12587 \end_inset
12588
12589  from the class list in the 
12590 \family sans
12591 Document\SpecialChar menuseparator
12592 Settings
12593 \family default
12594  dialog.
12595  There are some other special things you should know about this class:
12596 \end_layout
12597
12598 \begin_layout Itemize
12599 Don't bother changing the options 
12600 \family sans
12601 Sides and Columns
12602 \family default
12603 .
12604  They're not supported by the 
12605 \family sans
12606 slides
12607 \family default
12608  class,
12609  anyways.
12610 \end_layout
12611
12612 \begin_layout Itemize
12613 The option 
12614 \family sans
12615 Page
12616 \begin_inset space ~
12617 \end_inset
12618
12619 style
12620 \family default
12621  behaves a bit differently for this class.
12622  The possible choices and what they do are as follows:
12623 \end_layout
12624
12625 \begin_deeper
12626 \begin_layout Description
12627
12628 \family sans
12629 plain
12630 \family default
12631  The final output contains page numbers in the lower right corner.
12632 \end_layout
12633
12634 \begin_layout Description
12635
12636 \family sans
12637 headings
12638 \family default
12639  Like 
12640 \family sans
12641 plain
12642 \family default
12643 ,
12644  but also prints out any time markers you've put in.
12645  This is the default.
12646 \end_layout
12647
12648 \begin_layout Description
12649
12650 \family sans
12651 empty
12652 \family default
12653  The final output contains no page numbers,
12654  time markers,
12655  or alignment markers.
12656 \end_layout
12657
12658 \end_deeper
12659 \begin_layout Itemize
12660 The 
12661 \family sans
12662 slides
12663 \family default
12664  class has an extra option:
12665  
12666 \family typewriter
12667 clock
12668 \family default
12669 .
12670  To use it,
12671  put 
12672 \begin_inset Quotes eld
12673 \end_inset
12674
12675
12676 \family typewriter
12677 clock
12678 \family default
12679
12680 \begin_inset Quotes erd
12681 \end_inset
12682
12683  in the extra class options.
12684 \end_layout
12685
12686 \begin_deeper
12687 \begin_layout Standard
12688 Using this options allows you to add time markers to 
12689 \family sans
12690 Note
12691 \family default
12692 s.
12693  See section
12694 \begin_inset space ~
12695 \end_inset
12696
12697
12698 \begin_inset CommandInset ref
12699 LatexCommand ref
12700 reference "sec:slideNote"
12701 nolink "false"
12702
12703 \end_inset
12704
12705  for more details.
12706 \end_layout
12707
12708 \end_deeper
12709 \begin_layout Standard
12710 You can also use the template file
12711 \change_deleted 564990737 1671617694
12712  
12713 \begin_inset Quotes eld
12714 \end_inset
12715
12716
12717 \family typewriter
12718 slides.lyx
12719 \family default
12720
12721 \begin_inset Quotes erd
12722 \end_inset
12723
12724
12725 \change_unchanged
12726  to automatically set up a document to use the 
12727 \family sans
12728 slides
12729 \family default
12730  class 
12731 \change_deleted 564990737 1671617699
12732 [
12733 \change_unchanged
12734 using 
12735 \family sans
12736 File\SpecialChar menuseparator
12737 New
12738 \begin_inset space ~
12739 \end_inset
12740
12741 from
12742 \begin_inset space ~
12743 \end_inset
12744
12745 Template
12746 \change_inserted 564990737 1671617723
12747 \SpecialChar menuseparator
12748 Presentations\SpecialChar menuseparator
12749 Slides
12750 \change_unchanged
12751
12752 \family default
12753  to open your new document
12754 \change_deleted 564990737 1671617728
12755 ]
12756 \change_unchanged
12757 .
12758  The template file also contains some examples of the special paragraph environments used by this class.
12759  I'll describe those next.
12760 \end_layout
12761
12762 \begin_layout Subsubsection
12763 Paragraph Environments
12764 \end_layout
12765
12766 \begin_layout Paragraph
12767 Supported Environments
12768 \end_layout
12769
12770 \begin_layout Standard
12771 The first thing you'll notice when you start up a new 
12772 \family sans
12773 slides
12774 \family default
12775  document is the font size and type:
12776  it's the equivalent of the size 
12777 \begin_inset Quotes eld
12778 \end_inset
12779
12780
12781 \family sans
12782 Largest
12783 \family default
12784
12785 \begin_inset Quotes erd
12786 \end_inset
12787
12788  in the 
12789 \family sans
12790 Sans
12791 \begin_inset space ~
12792 \end_inset
12793
12794 Serif
12795 \family default
12796  font.
12797  This is also what's used in the output.
12798  Think of this as a 
12799 \begin_inset Quotes eld
12800 \end_inset
12801
12802 visual cue
12803 \begin_inset Quotes erd
12804 \end_inset
12805
12806  to remind you that this is a slide.
12807  Your final slides will use a larger font;
12808  ergo,
12809  you'll have less space.
12810  Of course,
12811  the larger default screen font isn't WYSIWYG,
12812  only a reminder.
12813 \end_layout
12814
12815 \begin_layout Standard
12816 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
12817  Most of the paragraph environments you're used to seeing are missing.
12818  There are also five new ones.
12819  That's because the 
12820 \family sans
12821 slides
12822 \family default
12823  class itself only supports certain paragraph environments:
12824 \end_layout
12825
12826 \begin_layout Itemize
12827
12828 \family sans
12829 Standard
12830 \end_layout
12831
12832 \begin_layout Itemize
12833
12834 \family sans
12835 Itemize
12836 \end_layout
12837
12838 \begin_layout Itemize
12839
12840 \family sans
12841 Enumerate
12842 \end_layout
12843
12844 \begin_layout Itemize
12845
12846 \family sans
12847 Description
12848 \end_layout
12849
12850 \begin_layout Itemize
12851
12852 \family sans
12853 List
12854 \end_layout
12855
12856 \begin_layout Itemize
12857
12858 \family sans
12859 Quotation
12860 \end_layout
12861
12862 \begin_layout Itemize
12863
12864 \family sans
12865 Quote
12866 \end_layout
12867
12868 \begin_layout Itemize
12869
12870 \family sans
12871 Verse
12872 \end_layout
12873
12874 \begin_layout Itemize
12875
12876 \family sans
12877 Caption
12878 \end_layout
12879
12880 \begin_layout Itemize
12881
12882 \family sans
12883 \SpecialChar LyX
12884 -Code
12885 \end_layout
12886
12887 \begin_layout Standard
12888 All of the other standard environments,
12889  including the section-heading environments,
12890  aren't used in the 
12891 \family sans
12892 slides
12893 \family default
12894  class.
12895 \end_layout
12896
12897 \begin_layout Standard
12898 On the other hand,
12899  you'll notice the following new environments:
12900 \end_layout
12901
12902 \begin_layout Itemize
12903
12904 \family sans
12905 Slide
12906 \end_layout
12907
12908 \begin_layout Itemize
12909
12910 \family sans
12911 Overlay
12912 \end_layout
12913
12914 \begin_layout Itemize
12915
12916 \family sans
12917 Note
12918 \end_layout
12919
12920 \begin_layout Itemize
12921
12922 \family sans
12923 InvisibleText
12924 \end_layout
12925
12926 \begin_layout Itemize
12927
12928 \family sans
12929 VisibleText
12930 \end_layout
12931
12932 \begin_layout Standard
12933 These five are kind of quirky,
12934  due to a 
12935 \begin_inset Quotes eld
12936 \end_inset
12937
12938 feature
12939 \begin_inset Quotes erd
12940 \end_inset
12941
12942  in \SpecialChar LyX
12943 .
12944  You see,
12945  \SpecialChar LyX
12946  doesn't permit you to nest any other paragraph environment into an empty environment.
12947  Now,
12948  that's fine and dandy,
12949  but it means that you wouldn't be able to start a slide with anything except plain text.
12950  To deal with this,
12951  I've performed a little 
12952 \begin_inset Quotes eld
12953 \end_inset
12954
12955 \SpecialChar LaTeX
12956  magic.
12957 \begin_inset Quotes erd
12958 \end_inset
12959
12960  
12961 \end_layout
12962
12963 \begin_layout Paragraph
12964 Quirks of the New Environments
12965 \begin_inset CommandInset label
12966 LatexCommand label
12967 name "sec:slideQuirk"
12968
12969 \end_inset
12970
12971
12972 \end_layout
12973
12974 \begin_layout Standard
12975 All five of the new paragraph environments are somewhat quirky due to inherent limitiations in the current version of \SpecialChar LyX
12976 .
12977  As I just mentioned,
12978  \SpecialChar LyX
12979  forbids environments that begin with another environment.
12980  To get around this,
12981  the 
12982 \family sans
12983 Slide
12984 \family default
12985  environment isn't a paragraph environment as described in the 
12986 \emph on
12987 User's Guide
12988 \emph default
12989 .
12990  
12991 \end_layout
12992
12993 \begin_layout Standard
12994 You should consider 
12995 \family sans
12996 Slide
12997 \family default
12998 ,
12999  
13000 \family sans
13001 Overlay
13002 \family default
13003 ,
13004  and 
13005 \family sans
13006 Note
13007 \family default
13008  to be 
13009 \begin_inset Quotes eld
13010 \end_inset
13011
13012 pseudo-environments.
13013 \begin_inset Quotes erd
13014 \end_inset
13015
13016  They look like a section heading or a 
13017 \begin_inset Quotes eld
13018 \end_inset
13019
13020
13021 \family sans
13022 Caption
13023 \family default
13024 ,
13025 \begin_inset Quotes erd
13026 \end_inset
13027
13028  but really begin a [and,
13029  if necessary,
13030  end the previous] paragraph environment.
13031  Likewise,
13032  treat 
13033 \family sans
13034 InvisibleText
13035 \family default
13036  and 
13037 \family sans
13038 VisibleText
13039 \family default
13040  as 
13041 \begin_inset Quotes eld
13042 \end_inset
13043
13044 pseudo-commands.
13045 \begin_inset Quotes erd
13046 \end_inset
13047
13048  These two perform some action.
13049 \end_layout
13050
13051 \begin_layout Standard
13052 A common feature of all five environments,
13053  
13054 \family sans
13055 Slide
13056 \family default
13057 ,
13058  
13059 \family sans
13060 Overlay
13061 \family default
13062 ,
13063  
13064 \family sans
13065 Note
13066 \family default
13067 ,
13068  
13069 \family sans
13070 InvisibleText
13071 \family default
13072  and 
13073 \family sans
13074 VisibleText
13075 \family default
13076 ,
13077  is a rather long-ish label.
13078  The text following this label —
13079  ordinarily the contents of the paragraph environment —
13080  is utterly irrelevant for 
13081 \family sans
13082 Slide
13083 \family default
13084 ,
13085  
13086 \family sans
13087 Overlay
13088 \family default
13089 ,
13090  
13091 \family sans
13092 Note
13093 \family default
13094 ,
13095  
13096 \family sans
13097 InvisibleText
13098 \family default
13099  and 
13100 \family sans
13101 VisibleText
13102 \family default
13103 .
13104  \SpecialChar LyX
13105  completely ignores it.
13106  In fact,
13107  you can leave these five environments completely empty.
13108  
13109 \end_layout
13110
13111 \begin_layout Standard
13112 While you don't 
13113 \emph on
13114 have
13115 \emph default
13116  to put any text after the rather long-ish label,
13117  you might want to.
13118  This could be a short description of the contents of the 
13119 \family sans
13120 Slide
13121 \family default
13122 ,
13123  for example.
13124  In that case,
13125  enter your descriptive comment and hit 
13126 \family sans
13127 Return
13128 \family default
13129  as you normally would.
13130 \end_layout
13131
13132 \begin_layout Standard
13133 If,
13134  on the other hand,
13135  you don't want to enter any descriptive text,
13136  you'll hit another \SpecialChar LyX
13137  quirk.
13138  \SpecialChar LyX
13139 ,
13140  like nature,
13141  abhors a vacuum,
13142  and will not let you start a new paragraph environment until you put something in the old one.
13143  So,
13144  do this:
13145 \end_layout
13146
13147 \begin_layout Itemize
13148 Start entering the text that will 
13149 \emph on
13150 follow
13151 \emph default
13152  the new 
13153 \family sans
13154 Slide
13155 \family default
13156 ,
13157  
13158 \family sans
13159 Overlay
13160 \family default
13161 ,
13162  
13163 \family sans
13164 Note
13165 \family default
13166 ,
13167  
13168 \family sans
13169 InvisibleText
13170 \family default
13171  or 
13172 \family sans
13173 VisibleText
13174 \family default
13175 .
13176  
13177 \end_layout
13178
13179 \begin_layout Itemize
13180 Now move to the beginning of that paragraph.
13181  
13182 \end_layout
13183
13184 \begin_layout Itemize
13185 Next,
13186  hit 
13187 \family sans
13188 Return
13189 \family default
13190 .
13191  
13192 \end_layout
13193
13194 \begin_layout Itemize
13195 Finally,
13196  change this new,
13197  empty paragraph to a 
13198 \family sans
13199 Slide
13200 \family default
13201 ,
13202  
13203 \family sans
13204 Overlay
13205 \family default
13206 ,
13207  
13208 \family sans
13209 Note
13210 \family default
13211 ,
13212  
13213 \family sans
13214 InvisibleText
13215 \family default
13216  or 
13217 \family sans
13218 VisibleText
13219 \family default
13220 .
13221  
13222 \end_layout
13223
13224 \begin_layout Standard
13225 Some future version of \SpecialChar LyX
13226  will,
13227  hopefully,
13228  resolve this quirkiness\SpecialChar ldots
13229
13230 \end_layout
13231
13232 \begin_layout Subsubsection
13233 Making a Presentation with 
13234 \family sans
13235 Slide
13236 \family default
13237 ,
13238  
13239 \family sans
13240 Overlay
13241 \family default
13242  and 
13243 \family sans
13244 Note
13245 \end_layout
13246
13247 \begin_layout Paragraph
13248 Using the 
13249 \family sans
13250 Slide
13251 \family default
13252  Environment
13253 \end_layout
13254
13255 \begin_layout Standard
13256 If you're expecting this section to teach you how to actually make a presentation,
13257  you'll be sorely disappointed.
13258  Naturally,
13259  I'll describe all of the ways the 
13260 \family sans
13261 slides
13262 \family default
13263  class can assist you in preparing the materials for a presentation.
13264  Filling in the contents,
13265  however,
13266  is up to you.
13267  [Then again,
13268  that 
13269 \emph on
13270 is
13271 \emph default
13272  the \SpecialChar LyX
13273  philosophy.]
13274 \end_layout
13275
13276 \begin_layout Standard
13277 Choosing the 
13278 \family sans
13279 Slide
13280 \family default
13281  environment [in the manner described in section
13282 \begin_inset space ~
13283 \end_inset
13284
13285
13286 \begin_inset CommandInset ref
13287 LatexCommand ref
13288 reference "sec:slideQuirk"
13289 nolink "false"
13290
13291 \end_inset
13292
13293 ] tells \SpecialChar LyX
13294  to begin a new slide [duh].
13295  The label for this environment/
13296 \begin_inset Quotes erd
13297 \end_inset
13298
13299 pseudo-command
13300 \begin_inset Quotes erd
13301 \end_inset
13302
13303  is an 
13304 \begin_inset Quotes eld
13305 \end_inset
13306
13307 ASCII line,
13308 \begin_inset Quotes erd
13309 \end_inset
13310
13311  in cool blue,
13312  followed by the label,
13313  
13314 \begin_inset Quotes eld
13315 \end_inset
13316
13317 NewSlide:
13318 \begin_inset Quotes erd
13319 \end_inset
13320
13321 .
13322  Any text or paragraph environments that follow this one go on the new slide.
13323  It's that simple.
13324 \end_layout
13325
13326 \begin_layout Standard
13327 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
13328  (this can be specified in the 
13329 \family sans
13330 Paragraph Layout
13331 \family default
13332  dialog).
13333  In fact,
13334  you'll want to,
13335  once you finish entering the contents of one slide.
13336  If you've entered more text than can physically fit on a slide,
13337  the extra overflows onto a new slide.
13338  I don't recommend doing this,
13339  however,
13340  since the overflow slide won't have any page number on it.
13341  Furthermore,
13342  it may interfere with any 
13343 \family sans
13344 Overlay
13345 \family default
13346  you've made to accompany the oversized 
13347 \family sans
13348 Slide
13349 \family default
13350 .
13351 \end_layout
13352
13353 \begin_layout Standard
13354 The 
13355 \family sans
13356 Overlay
13357 \family default
13358  and 
13359 \family sans
13360 Note
13361 \family default
13362  environments work the same way as the 
13363 \family sans
13364 Slide
13365 \family default
13366  environment.
13367  They both create an 
13368 \begin_inset Quotes eld
13369 \end_inset
13370
13371 ASCII line
13372 \begin_inset Quotes erd
13373 \end_inset
13374
13375  followed by a label [
13376 \begin_inset Quotes eld
13377 \end_inset
13378
13379 NewOverlay:
13380 \begin_inset Quotes erd
13381 \end_inset
13382
13383  and 
13384 \begin_inset Quotes eld
13385 \end_inset
13386
13387 NewNote:
13388 \begin_inset Quotes erd
13389 \end_inset
13390
13391 ,
13392  respectively].
13393  The color is a stunning magenta instead of blue,
13394  and the 
13395 \begin_inset Quotes eld
13396 \end_inset
13397
13398 ASCII line
13399 \begin_inset Quotes erd
13400 \end_inset
13401
13402  will look different,
13403  in style and in length.
13404  The label fonts of all three also differ from one another.
13405 \end_layout
13406
13407 \begin_layout Standard
13408 As with a 
13409 \family sans
13410 Slide
13411 \family default
13412 ,
13413  if the contents of a 
13414 \family sans
13415 Note
13416 \family default
13417  or 
13418 \family sans
13419 Overlay
13420 \family default
13421  exceed the physical size of a slide or sheet of paper,
13422  the extra will overflow onto a new sheet.
13423  Again,
13424  you should avoid this.
13425  It defeats the whole purpose of 
13426 \family sans
13427 Note
13428 \family default
13429 s and 
13430 \family sans
13431 Overlay
13432 \family default
13433 s.
13434 \end_layout
13435
13436 \begin_layout Paragraph
13437 Using 
13438 \family sans
13439 Overlay
13440 \family default
13441  with 
13442 \family sans
13443 Slide
13444 \end_layout
13445
13446 \begin_layout Standard
13447 The idea behind an 
13448 \family sans
13449 Overlay
13450 \family default
13451  is a slide that sits atop another slide.
13452  Perhaps you wish to discuss a figure on the main 
13453 \family sans
13454 Slide
13455 \family default
13456  before displaying the text associated with it.
13457  One way to accomplish this is tape a flap of dark paper over the part of the 
13458 \family sans
13459 Slide
13460 \family default
13461  you want to display later.
13462  This method fails,
13463  however,
13464  if you wish to overlap one graph with another,
13465  for example.
13466  You would then have to fumble while speaking to align the two separate,
13467  overlapping 
13468 \family sans
13469 Slide
13470 \family default
13471 s to align the two graphs.
13472  The use of an 
13473 \family sans
13474 Overlay
13475 \family default
13476  environment in both cases makes life much easier.
13477 \end_layout
13478
13479 \begin_layout Standard
13480 Each 
13481 \family sans
13482 Overlay
13483 \family default
13484  receives the page number of its 
13485 \begin_inset Quotes eld
13486 \end_inset
13487
13488 parent
13489 \begin_inset Quotes erd
13490 \end_inset
13491
13492  
13493 \family sans
13494 Slide
13495 \family default
13496 ,
13497  appended by 
13498 \begin_inset Quotes eld
13499 \end_inset
13500
13501
13502 \family typewriter
13503 -a
13504 \family default
13505
13506 \begin_inset Quotes erd
13507 \end_inset
13508
13509 .
13510 \begin_inset Foot
13511 status collapsed
13512
13513 \begin_layout Plain Layout
13514 Presumably,
13515  mutliple 
13516 \family sans
13517 Overlay
13518 \family default
13519 s would have 
13520 \begin_inset Quotes eld
13521 \end_inset
13522
13523
13524 \family typewriter
13525 -a
13526 \family default
13527
13528 \begin_inset Quotes erd
13529 \end_inset
13530
13531 ,
13532  
13533 \begin_inset Quotes eld
13534 \end_inset
13535
13536
13537 \family typewriter
13538 -b
13539 \family default
13540
13541 \begin_inset Quotes erd
13542 \end_inset
13543
13544 ,
13545  
13546 \begin_inset Quotes eld
13547 \end_inset
13548
13549
13550 \family typewriter
13551 -c
13552 \family default
13553
13554 \begin_inset Quotes erd
13555 \end_inset
13556
13557 ,
13558  etc.
13559 \begin_inset space ~
13560 \end_inset
13561
13562 appended to the page number of the parent 
13563 \family sans
13564 Slide
13565 \family default
13566 .
13567  
13568 \end_layout
13569
13570 \end_inset
13571
13572  Clearly,
13573  you want the contents of both the 
13574 \family sans
13575 Slide
13576 \family default
13577  and the 
13578 \family sans
13579 Overlay
13580 \family default
13581  to each fit on a single physical slide!
13582  You should probably consider an 
13583 \family sans
13584 Overlay
13585 \family default
13586  as 
13587 \begin_inset Quotes eld
13588 \end_inset
13589
13590 part of
13591 \begin_inset Quotes erd
13592 \end_inset
13593
13594  a 
13595 \family sans
13596 Slide
13597 \family default
13598 .
13599  Indeed,
13600  the \SpecialChar LyX
13601  
13602 \family sans
13603 slides
13604 \family default
13605  class provides a visual cue for this:
13606  the label at the start of an 
13607 \family sans
13608 Overlay
13609 \family default
13610  is shorter than that at the start of a 
13611 \family sans
13612 Slide
13613 \family default
13614 .
13615  Lastly,
13616  when you generate printable output,
13617  you'll find alignment markers in all four corners of both the 
13618 \family sans
13619 Overlay
13620 \family default
13621  page and its parent 
13622 \family sans
13623 Slide
13624 \family default
13625 .
13626  These will assist you in lining up the two physical slides.
13627 \end_layout
13628
13629 \begin_layout Standard
13630 The major problem in overlaying two slides is aligning the contents of the two transparencies.
13631  How much space should you leave for that graph on the second slide?
13632  Worse still,
13633  what if you want a graph and a sentence on second slide,
13634  but there is text on the main transparency that goes in between them?
13635  You could try and insert vertical space of the right size.
13636  The better way is to use 
13637 \family sans
13638 InvisibleText
13639 \family default
13640  and 
13641 \family sans
13642 VisibleText
13643 \family default
13644 .
13645 \end_layout
13646
13647 \begin_layout Standard
13648 As their names imply,
13649  
13650 \family sans
13651 InvisibleText
13652 \family default
13653  and 
13654 \family sans
13655 VisibleText
13656 \family default
13657  are two command-like paragraph environments that make all subsequent text invisible and visible,
13658  respectively.
13659  Note from section
13660 \begin_inset space ~
13661 \end_inset
13662
13663
13664 \begin_inset CommandInset ref
13665 LatexCommand ref
13666 reference "sec:slideQuirk"
13667 nolink "false"
13668
13669 \end_inset
13670
13671  that you don't place anything 
13672 \emph on
13673 into
13674 \emph default
13675  these two environments,
13676  however.
13677  When you create an 
13678 \family sans
13679 InvisibleText
13680 \family default
13681 ,
13682  it inserts a centered,
13683  sky-blue label into the page reading 
13684 \begin_inset Quotes eld
13685 \end_inset
13686
13687 <Invisible Text Follows>
13688 \begin_inset Quotes erd
13689 \end_inset
13690
13691 .
13692  For paragraphs following this label,
13693  the parts of the 
13694 \family sans
13695 Slide
13696 \family default
13697  [or 
13698 \family sans
13699 Overlay
13700 \family default
13701 ;
13702  it doesn't matter which] where they would be contain instead blank space.
13703  
13704 \end_layout
13705
13706 \begin_layout Standard
13707 For 
13708 \family sans
13709 VisibleText
13710 \family default
13711 ,
13712  the corresponding centered label is 
13713 \begin_inset Quotes eld
13714 \end_inset
13715
13716 <Visible Text Follows>
13717 \begin_inset Quotes erd
13718 \end_inset
13719
13720  in blazing green.
13721  Paragraphs following this label behave normally.
13722  Note that the beginning of a new 
13723 \family sans
13724 Slide
13725 \family default
13726 ,
13727  
13728 \family sans
13729 Overlay
13730 \family default
13731 ,
13732  or 
13733 \family sans
13734 Note
13735 \family default
13736  automatically shuts off an 
13737 \family sans
13738 InvisibleText
13739 \family default
13740 .
13741  It's therefore not necessary to use 
13742 \family sans
13743 VisibleText
13744 \family default
13745  at the end of a 
13746 \family sans
13747 Slide
13748 \family default
13749 .
13750 \end_layout
13751
13752 \begin_layout Standard
13753 By now,
13754  it should be obvious how to create overlay transparencies using the proper combination of 
13755 \family sans
13756 InvisibleText
13757 \family default
13758  and 
13759 \family sans
13760 VisibleText
13761 \family default
13762  on a 
13763 \family sans
13764 Slide
13765 \family default
13766  and 
13767 \family sans
13768 Overlay
13769 \family default
13770 :
13771 \end_layout
13772
13773 \begin_layout Enumerate
13774 Create a 
13775 \family sans
13776 Slide
13777 \family default
13778 ,
13779  including everything that will appear on it,
13780  whether on the main slide or on the 
13781 \family sans
13782 Overlay
13783 \family default
13784 .
13785 \end_layout
13786
13787 \begin_layout Enumerate
13788 Before each figure or paragraph that will appear only on the 
13789 \family sans
13790 Overlay
13791 \family default
13792 ,
13793  insert an 
13794 \family sans
13795 InvisibleText
13796 \family default
13797  environment.
13798  If necessary,
13799  insert a 
13800 \family sans
13801 VisibleText
13802 \family default
13803  environment after the 
13804 \family sans
13805 Overlay
13806 \family default
13807 -only text.
13808 \end_layout
13809
13810 \begin_layout Enumerate
13811 Start an 
13812 \family sans
13813 Overlay
13814 \family default
13815  immediately following the 
13816 \family sans
13817 Slide
13818 \family default
13819 .
13820 \end_layout
13821
13822 \begin_layout Enumerate
13823 Copy the contents of this 
13824 \family sans
13825 Slide
13826 \family default
13827  into the 
13828 \family sans
13829 Overlay
13830 \family default
13831 .
13832 \end_layout
13833
13834 \begin_layout Enumerate
13835 Within the 
13836 \family sans
13837 Overlay
13838 \family default
13839 ,
13840  change all of the 
13841 \family sans
13842 InvisibleText
13843 \family default
13844  lines to 
13845 \family sans
13846 VisibleText
13847 \family default
13848  and vice-versa.
13849 \end_layout
13850
13851 \begin_layout Standard
13852 That's it.
13853  You've just made an 
13854 \family sans
13855 Overlay
13856 \family default
13857 .
13858 \end_layout
13859
13860 \begin_layout Standard
13861 There's one problem with the way I've designed the \SpecialChar LyX
13862  
13863 \family sans
13864 slides
13865 \family default
13866  class:
13867  you can't make text in the middle of a paragraph invisible,
13868  nor make text in the middle of an invisible paragraph visible again.
13869  To accomplish this feat,
13870  you'll need to use some inlined \SpecialChar LaTeX
13871  codes.
13872 \begin_inset Foot
13873 status collapsed
13874
13875 \begin_layout Plain Layout
13876 The commands of interest are:
13877  
13878 \end_layout
13879
13880 \begin_layout Itemize
13881
13882 \family typewriter
13883 {
13884 \backslash
13885 invisible \SpecialChar ldots
13886  }
13887 \end_layout
13888
13889 \begin_layout Itemize
13890
13891 \family typewriter
13892 {
13893 \backslash
13894 visible \SpecialChar ldots
13895  }
13896 \end_layout
13897
13898 \begin_layout Plain Layout
13899 \SpecialChar ldots
13900 and need to be marked as \SpecialChar TeX
13901 .
13902  The text whose 
13903 \begin_inset Quotes eld
13904 \end_inset
13905
13906 visibility
13907 \begin_inset Quotes erd
13908 \end_inset
13909
13910  you wish to change goes in between the brackets [and after the 
13911 \family typewriter
13912
13913 \backslash
13914 invisible
13915 \family default
13916  or 
13917 \family typewriter
13918
13919 \backslash
13920 visible
13921 \family default
13922  command].
13923  If you don't know how to mark text as \SpecialChar TeX
13924 ,
13925  see the appropriate section of the 
13926 \emph on
13927 User's Guide
13928 \emph default
13929 .
13930 \end_layout
13931
13932 \end_inset
13933
13934
13935 \end_layout
13936
13937 \begin_layout Paragraph
13938 Using 
13939 \family sans
13940 Note
13941 \family default
13942  with 
13943 \family sans
13944 Slide
13945 \family default
13946
13947 \begin_inset CommandInset label
13948 LatexCommand label
13949 name "sec:slideNote"
13950
13951 \end_inset
13952
13953
13954 \end_layout
13955
13956 \begin_layout Standard
13957 Like an 
13958 \family sans
13959 Overlay
13960 \family default
13961 ,
13962  a 
13963 \family sans
13964 Note
13965 \family default
13966  is associated with a 
13967 \begin_inset Quotes eld
13968 \end_inset
13969
13970 parent
13971 \begin_inset Quotes erd
13972 \end_inset
13973
13974  
13975 \family sans
13976 Slide
13977 \family default
13978 .
13979  Here,
13980  too,
13981  the \SpecialChar LyX
13982  
13983 \family sans
13984 slides
13985 \family default
13986  class provides visual cues.
13987  The label for a 
13988 \family sans
13989 Note
13990 \family default
13991  is shorter than that of a 
13992 \family sans
13993 Slide
13994 \family default
13995  [yet longer than that of an 
13996 \family sans
13997 Overlay
13998 \family default
13999 ] and,
14000  like the label of an 
14001 \family sans
14002 Overlay
14003 \family default
14004  is shockingly magenta.
14005  Additionally,
14006  the printed 
14007 \family sans
14008 Note
14009 \family default
14010  has the page number of its 
14011 \begin_inset Quotes eld
14012 \end_inset
14013
14014 parent
14015 \begin_inset Quotes erd
14016 \end_inset
14017
14018  
14019 \family sans
14020 Slide
14021 \family default
14022 ,
14023  appended by 
14024 \begin_inset Quotes eld
14025 \end_inset
14026
14027
14028 \family typewriter
14029 -
14030 \family default
14031 1
14032 \begin_inset Quotes erd
14033 \end_inset
14034
14035 ,
14036  
14037 \begin_inset Quotes eld
14038 \end_inset
14039
14040
14041 \family typewriter
14042 -
14043 \family default
14044 2
14045 \begin_inset Quotes erd
14046 \end_inset
14047
14048 ,
14049  
14050 \begin_inset Quotes eld
14051 \end_inset
14052
14053
14054 \family typewriter
14055 -
14056 \family default
14057 3
14058 \begin_inset Quotes erd
14059 \end_inset
14060
14061 ,
14062  etc.
14063  You can have multiple 
14064 \family sans
14065 Note
14066 \family default
14067 s associated with a single 
14068 \family sans
14069 Slide
14070 \family default
14071 ,
14072  and,
14073  as with 
14074 \family sans
14075 Slide
14076 \family default
14077  and 
14078 \family sans
14079 Overlay
14080 \family default
14081 ,
14082  you'll probably want to break up long 
14083 \family sans
14084 Note
14085 \family default
14086 s so that they fit on a single sheet of paper.
14087 \end_layout
14088
14089 \begin_layout Standard
14090 The purpose of a 
14091 \family sans
14092 Note
14093 \family default
14094  is obvious:
14095  it contains anything additional you might want to say about a 
14096 \family sans
14097 Slide
14098 \family default
14099 .
14100  It could also be used as a sheet of reminders for a particular 
14101 \family sans
14102 Slide
14103 \family default
14104 .
14105  In the case of the latter,
14106  you might want to make use of time markers.
14107  Currently,
14108  the \SpecialChar LyX
14109  
14110 \family sans
14111 slides
14112 \family default
14113  class has no 
14114 \begin_inset Quotes eld
14115 \end_inset
14116
14117 native
14118 \begin_inset Quotes erd
14119 \end_inset
14120
14121  support for time markers,
14122  a 
14123 \noun on
14124 Sli\SpecialChar TeX
14125
14126 \noun default
14127  feature.
14128  So,
14129  you'll have to resort to using the \SpecialChar LaTeX
14130  codes.
14131 \end_layout
14132
14133 \begin_layout Standard
14134 To use time markers,
14135  you'll need to specify the extra class option 
14136 \begin_inset Quotes eld
14137 \end_inset
14138
14139
14140 \family typewriter
14141 clock
14142 \family default
14143
14144 \begin_inset Quotes erd
14145 \end_inset
14146
14147  [see section
14148 \begin_inset space ~
14149 \end_inset
14150
14151
14152 \begin_inset CommandInset ref
14153 LatexCommand ref
14154 reference "sec:slidesetup"
14155 nolink "false"
14156
14157 \end_inset
14158
14159 ].
14160  This option turns on timing marks,
14161  which will appear in the lower-left-hand corner of every 
14162 \family sans
14163 Note
14164 \family default
14165  you generate.
14166  To set what appears in the time marker,
14167  you use the \SpecialChar LaTeX
14168  commands 
14169 \begin_inset Quotes eld
14170 \end_inset
14171
14172
14173 \family typewriter
14174
14175 \backslash
14176 settime{}
14177 \family default
14178
14179 \begin_inset Quotes erd
14180 \end_inset
14181
14182  and 
14183 \begin_inset Quotes eld
14184 \end_inset
14185
14186
14187 \family typewriter
14188
14189 \backslash
14190 addtime{}
14191 \family default
14192
14193 \begin_inset Quotes erd
14194 \end_inset
14195
14196 .
14197  The arguments of both commands are time measured in seconds.
14198  
14199 \begin_inset Quotes eld
14200 \end_inset
14201
14202
14203 \family typewriter
14204
14205 \backslash
14206 settime{}
14207 \family default
14208
14209 \begin_inset Quotes erd
14210 \end_inset
14211
14212  sets the time marker to a given time.
14213  
14214 \begin_inset Quotes eld
14215 \end_inset
14216
14217
14218 \family typewriter
14219
14220 \backslash
14221 addtime{}
14222 \family default
14223
14224 \begin_inset Quotes erd
14225 \end_inset
14226
14227  increments the time marker by the specified amount.
14228  Using time markers and 
14229 \family sans
14230 Note
14231 \family default
14232 s in this fashion,
14233  you can remind yourself how much time to spend on a particular 
14234 \family sans
14235 Slide
14236 \family default
14237 .
14238 \end_layout
14239
14240 \begin_layout Standard
14241 There's one last feature to describe.
14242  Clearly,
14243  you'd like to print out all of your 
14244 \family sans
14245 Slide
14246 \family default
14247 s and 
14248 \family sans
14249 Overlay
14250 \family default
14251 s on transparencies while printing all of your 
14252 \family sans
14253 Note
14254 \family default
14255 s on plain paper.
14256  However,
14257  a 
14258 \family sans
14259 Note
14260 \family default
14261  
14262 \emph on
14263 must
14264 \emph default
14265  follow the 
14266 \family sans
14267 Slide
14268 \family default
14269  with which it is associated.
14270  What's a person to do?
14271 \end_layout
14272
14273 \begin_layout Standard
14274 Luckily,
14275  there are two \SpecialChar LaTeX
14276  commands that allow you to select what to print out.
14277  Both must be placed into the preamble of your document.
14278  The command 
14279 \begin_inset Quotes eld
14280 \end_inset
14281
14282
14283 \family typewriter
14284
14285 \backslash
14286 onlyslides{
14287 \backslash
14288 slides}
14289 \family default
14290
14291 \begin_inset Quotes erd
14292 \end_inset
14293
14294  will cause the output to contain only the 
14295 \family sans
14296 Slide
14297 \family default
14298 s and 
14299 \family sans
14300 Overlay
14301 \family default
14302 s.
14303  Correspondingly,
14304  the command 
14305 \begin_inset Quotes eld
14306 \end_inset
14307
14308
14309 \family typewriter
14310
14311 \backslash
14312 onlynotes{
14313 \backslash
14314 notes}
14315 \family default
14316
14317 \begin_inset Quotes erd
14318 \end_inset
14319
14320  prevents the output of anything but 
14321 \family sans
14322 Note
14323 \family default
14324 s.
14325  I'd advise placing both commands in the preamble and initially comment both out.
14326  You can then preview your entire presentation as you write.
14327  When you're done writing,
14328  you can then uncomment one of the two to select what you want to print.
14329  I like to uncomment 
14330 \begin_inset Quotes eld
14331 \end_inset
14332
14333
14334 \family typewriter
14335
14336 \backslash
14337 onlyslides{
14338 \backslash
14339 slides}
14340 \family default
14341
14342 \begin_inset Quotes erd
14343 \end_inset
14344
14345  ,
14346  print to a file with 
14347 \begin_inset Quotes eld
14348 \end_inset
14349
14350
14351 \family typewriter
14352 -slides
14353 \family default
14354
14355 \begin_inset Quotes erd
14356 \end_inset
14357
14358  in its name,
14359  comment it back out,
14360  then uncomment 
14361 \begin_inset Quotes eld
14362 \end_inset
14363
14364
14365 \family typewriter
14366
14367 \backslash
14368 onlynotes{
14369 \backslash
14370 notes}
14371 \family default
14372
14373 \begin_inset Quotes erd
14374 \end_inset
14375
14376  and print to a 
14377 \begin_inset Quotes eld
14378 \end_inset
14379
14380
14381 \family typewriter
14382 *-notes.ps
14383 \family default
14384
14385 \begin_inset Quotes erd
14386 \end_inset
14387
14388  file.
14389  I can then send either file to a printer,
14390  loading transparencies or plain paper as appropriate.
14391 \end_layout
14392
14393 \begin_layout Standard
14394 You can also provide other arguments to the 
14395 \begin_inset Quotes eld
14396 \end_inset
14397
14398
14399 \family typewriter
14400
14401 \backslash
14402 onlyslides{}
14403 \family default
14404
14405 \begin_inset Quotes erd
14406 \end_inset
14407
14408  and 
14409 \begin_inset Quotes eld
14410 \end_inset
14411
14412
14413 \family typewriter
14414
14415 \backslash
14416 onlynotes{}
14417 \family default
14418
14419 \begin_inset Quotes erd
14420 \end_inset
14421
14422  commands.
14423  See a good \SpecialChar LaTeX
14424  book for details.
14425 \end_layout
14426
14427 \begin_layout Subsubsection
14428 The 
14429 \family sans
14430 slides
14431 \family default
14432  Class Template File
14433 \end_layout
14434
14435 \begin_layout Standard
14436 I have also provided a template file
14437 \change_deleted 564990737 1671617750
14438 ,
14439  
14440 \begin_inset Quotes eld
14441 \end_inset
14442
14443
14444 \family typewriter
14445 slides.lyx
14446 \family default
14447
14448 \begin_inset Quotes erd
14449 \end_inset
14450
14451 ,
14452
14453 \change_unchanged
14454  with the 
14455 \family sans
14456 slides
14457 \family default
14458  class.
14459  To use it,
14460  begin your new presentation with 
14461 \family sans
14462 File\SpecialChar menuseparator
14463 New
14464 \begin_inset space ~
14465 \end_inset
14466
14467 from
14468 \begin_inset space ~
14469 \end_inset
14470
14471 Template
14472 \change_inserted 564990737 1671616988
14473 \SpecialChar menuseparator
14474 Presentations\SpecialChar menuseparator
14475 Slides
14476 \change_unchanged
14477
14478 \family default
14479 .
14480  Your new \SpecialChar LyX
14481  presentation file will contain an example 
14482 \family sans
14483 Slide
14484 \family default
14485  – 
14486 \family sans
14487 Overlay
14488 \family default
14489  – 
14490 \family sans
14491 Note
14492 \family default
14493  triplet.
14494  The 
14495 \family sans
14496 Slide
14497 \family default
14498  and 
14499 \family sans
14500 Overlay
14501 \family default
14502  additionally contain an example of the use of 
14503 \family sans
14504 InvisibleText
14505 \family default
14506  and 
14507 \family sans
14508 VisibleText
14509 \family default
14510 .
14511  Lastly,
14512  the preamble will contain:
14513 \end_layout
14514
14515 \begin_layout LyX-Code
14516 % Uncomment to print out only slides and overlays
14517 \end_layout
14518
14519 \begin_layout LyX-Code
14520 %
14521 \end_layout
14522
14523 \begin_layout LyX-Code
14524 %
14525 \backslash
14526 onlyslides{
14527 \backslash
14528 slides}
14529 \begin_inset Newline newline
14530 \end_inset
14531
14532  
14533 \end_layout
14534
14535 \begin_layout LyX-Code
14536 % Uncomment to print out only notes
14537 \end_layout
14538
14539 \begin_layout LyX-Code
14540 %
14541 \end_layout
14542
14543 \begin_layout LyX-Code
14544 %
14545 \backslash
14546 onlynotes{
14547 \backslash
14548 notes}
14549 \end_layout
14550
14551 \begin_layout Standard
14552 One final thing:
14553  I created this class to support the \SpecialChar LaTeX2e
14554  
14555 \begin_inset Quotes eld
14556 \end_inset
14557
14558
14559 \noun on
14560 Sli\SpecialChar TeX
14561
14562 \noun default
14563  emulation
14564 \begin_inset Quotes erd
14565 \end_inset
14566
14567  class,
14568  one of the built-in \SpecialChar LaTeX2e
14569  classes.
14570  Neither I nor the rest of the \SpecialChar LyX
14571  Team endorse or oppose the use of this built-in slide class.
14572  It's here if you want it or need it.
14573  There exist other \SpecialChar LaTeX2e
14574  classes for creating presentations,
14575  such as the 
14576 \family sans
14577 Foils
14578 \family default
14579  class [see section
14580 \begin_inset space ~
14581 \end_inset
14582
14583
14584 \begin_inset CommandInset ref
14585 LatexCommand ref
14586 reference "sec:foiltex"
14587 nolink "false"
14588
14589 \end_inset
14590
14591 ] or the 
14592 \begin_inset Quotes eld
14593 \end_inset
14594
14595
14596 \family typewriter
14597 seminar
14598 \family default
14599
14600 \begin_inset Quotes erd
14601 \end_inset
14602
14603  package [present on some \SpecialChar TeX
14604  distributions].
14605  The latter is not yet supported under \SpecialChar LyX
14606 .
14607 \begin_inset Foot
14608 status collapsed
14609
14610 \begin_layout Plain Layout
14611 Perhaps you can take on the task\SpecialChar ldots
14612
14613 \end_layout
14614
14615 \end_inset
14616
14617  I know nothing about these other classes.
14618  Try them out to see what sort of alternative they provide.
14619 \end_layout
14620
14621 \begin_layout Section
14622
14623 \change_inserted 564990737 1670439661
14624 Reports
14625 \end_layout
14626
14627 \begin_layout Subsection
14628
14629 \change_inserted 564990737 1670439661
14630 report
14631 \end_layout
14632
14633 \begin_layout Standard
14634
14635 \change_inserted 564990737 1670439661
14636 The document class 
14637 \family sans
14638 report
14639 \family default
14640  provides the 
14641 \family sans
14642 report.cls
14643 \family default
14644  document class for preparing reports.
14645  Like the 
14646 \family sans
14647 book
14648 \family default
14649  document class,
14650  this provides parts,
14651  chapters and sections but does not provide the paragraph styles needed for a book;
14652  like the 
14653 \family sans
14654 article
14655 \family default
14656  document class,
14657  it provides the abstract paragraph style.
14658  In two-sided mode,
14659  it does not start a new chapter on the right hand page.
14660 \end_layout
14661
14662 \begin_layout Standard
14663
14664 \change_inserted 564990737 1672743528
14665 The remaining 
14666 \family sans
14667 report
14668 \family default
14669  document classes are described in the Collections (section
14670 \begin_inset space ~
14671 \end_inset
14672
14673
14674 \begin_inset CommandInset ref
14675 LatexCommand ref
14676 reference "sec:Collections"
14677 nolink "false"
14678
14679 \end_inset
14680
14681 ).
14682 \end_layout
14683
14684 \begin_layout Standard
14685
14686 \change_inserted 564990737 1672743530
14687 For 
14688 \family sans
14689 report
14690 \begin_inset space \thinspace{}
14691 \end_inset
14692
14693 (Japanese in vertical writing)
14694 \family default
14695  and 
14696 \family sans
14697 report
14698 \begin_inset space \thinspace{}
14699 \end_inset
14700
14701 (Japanese)
14702 \family default
14703 ,
14704  see section
14705 \begin_inset space ~
14706 \end_inset
14707
14708
14709 \begin_inset CommandInset ref
14710 LatexCommand ref
14711 reference "subsec:Japanese"
14712 nolink "false"
14713
14714 \end_inset
14715
14716 .
14717 \end_layout
14718
14719 \begin_layout Standard
14720
14721 \change_inserted 564990737 1672743530
14722 For 
14723 \family sans
14724 report
14725 \begin_inset space \thinspace{}
14726 \end_inset
14727
14728 (KOMA-Script)
14729 \family default
14730 ,
14731  see section
14732 \begin_inset space ~
14733 \end_inset
14734
14735
14736 \begin_inset CommandInset ref
14737 LatexCommand ref
14738 reference "subsec:KOMA-Script"
14739 nolink "false"
14740
14741 \end_inset
14742
14743 .
14744 \end_layout
14745
14746 \begin_layout Standard
14747
14748 \change_inserted 564990737 1672743530
14749 For 
14750 \family sans
14751 report
14752 \begin_inset space \thinspace{}
14753 \end_inset
14754
14755 (with extra font sizes)
14756 \family default
14757 ,
14758  see section
14759 \begin_inset space ~
14760 \end_inset
14761
14762
14763 \begin_inset CommandInset ref
14764 LatexCommand ref
14765 reference "subsec:Extra-font-sizes"
14766 nolink "false"
14767
14768 \end_inset
14769
14770 .
14771 \end_layout
14772
14773 \begin_layout Standard
14774
14775 \change_inserted 564990737 1672743569
14776 For 
14777 \family sans
14778 report
14779 \begin_inset space \thinspace{}
14780 \end_inset
14781
14782 (Polish version by M.
14783 \begin_inset space \thinspace{}
14784 \end_inset
14785
14786 W.)
14787 \family default
14788 ,
14789  see section
14790 \begin_inset space ~
14791 \end_inset
14792
14793
14794 \begin_inset CommandInset ref
14795 LatexCommand ref
14796 reference "subsec:Polish-M.W.collection"
14797 plural "false"
14798 caps "false"
14799 noprefix "false"
14800 nolink "false"
14801
14802 \end_inset
14803
14804 .
14805 \end_layout
14806
14807 \begin_layout Section
14808
14809 \change_inserted 564990737 1670439674
14810 Scripts (drama)
14811 \end_layout
14812
14813 \begin_layout Subsection
14814 Broadway
14815 \end_layout
14816
14817 \begin_layout Standard
14818 by 
14819 \shape smallcaps
14820 Garst Reese
14821 \end_layout
14822
14823 \begin_layout Subsubsection
14824 Introduction
14825 \end_layout
14826
14827 \begin_layout Standard
14828 Broadway is for writing plays.
14829  The format is more decorative than Hollywood,
14830  and much less standardized.
14831  This format should be suitable for workshops.
14832 \end_layout
14833
14834 \begin_layout Subsubsection
14835 Special problems
14836 \end_layout
14837
14838 \begin_layout Standard
14839 The same as in Hollywood.
14840 \end_layout
14841
14842 \begin_layout Subsubsection
14843 Special features
14844 \end_layout
14845
14846 \begin_layout Standard
14847 Insert the 
14848 \family sans
14849 Speaker
14850 \family default
14851  names as labels then cross-reference the label to insert the name.
14852  The cross-reference dialog will show the current cast of characters.
14853 \end_layout
14854
14855 \begin_layout Subsubsection
14856 Paper size and Margins
14857 \end_layout
14858
14859 \begin_layout Standard
14860 USLetter,
14861  left 1.6in,
14862  right 0.75in,
14863  top 0.5in,
14864  bottom 0.75in
14865 \end_layout
14866
14867 \begin_layout Subsubsection
14868 Environments
14869 \end_layout
14870
14871 \begin_layout Standard
14872 The following environments are available.
14873  You can use broadway.bind to get the bind keys shown at the right.
14874 \end_layout
14875
14876 \begin_layout Itemize
14877
14878 \family sans
14879 Standard
14880 \begin_inset Newline newline
14881 \end_inset
14882
14883
14884 \family default
14885 You should not have to use this,
14886  but it is here for anything that does not fit otherwise.
14887 \end_layout
14888
14889 \begin_layout Itemize
14890
14891 \family sans
14892 Narrative
14893 \begin_inset space \hfill{}
14894 \end_inset
14895
14896 M-z n
14897 \begin_inset Newline newline
14898 \end_inset
14899
14900
14901 \family default
14902 Used to describe stage setting and the action.
14903  First use of speaker names in all CAPs.
14904 \end_layout
14905
14906 \begin_layout Itemize
14907
14908 \family sans
14909 ACT
14910 \begin_inset space \hfill{}
14911 \end_inset
14912
14913 M-z a
14914 \begin_inset Newline newline
14915 \end_inset
14916
14917
14918 \family default
14919 Automatically numbered.
14920  On screen it will be arabic,
14921  but will print as Roman.
14922 \end_layout
14923
14924 \begin_layout Itemize
14925
14926 \family sans
14927 ACT*
14928 \begin_inset space \hfill{}
14929 \end_inset
14930
14931 M-z S at
14932 \begin_inset Newline newline
14933 \end_inset
14934
14935
14936 \family default
14937 Subtitle for 
14938 \family sans
14939 ACT.
14940
14941 \family default
14942  It is just centered text.
14943 \end_layout
14944
14945 \begin_layout Itemize
14946
14947 \family sans
14948 SCENE
14949 \begin_inset space \hfill{}
14950 \end_inset
14951
14952 M-z S-S
14953 \begin_inset Newline newline
14954 \end_inset
14955
14956
14957 \family default
14958 Not automatically numbered.
14959  You supply the number.
14960  This is because I couldn't figure out how.
14961 \end_layout
14962
14963 \begin_layout Itemize
14964
14965 \family sans
14966 AT_RISE:
14967 \begin_inset space \hfill{}
14968 \end_inset
14969
14970 M-z S-R
14971 \begin_inset Newline newline
14972 \end_inset
14973
14974
14975 \family default
14976 A special case of Narrative to describe the setting and action as the curtain rises.
14977 \end_layout
14978
14979 \begin_layout Itemize
14980
14981 \family sans
14982 Speaker
14983 \begin_inset space \hfill{}
14984 \end_inset
14985
14986 M-z s
14987 \begin_inset Newline newline
14988 \end_inset
14989
14990
14991 \family default
14992 The speaker's (actor's) title,
14993  centered in all CAPS.
14994 \end_layout
14995
14996 \begin_layout Itemize
14997
14998 \family sans
14999 Parenthetical
15000 \begin_inset space \hfill{}
15001 \end_inset
15002
15003 M-z p
15004 \begin_inset Newline newline
15005 \end_inset
15006
15007
15008 \family default
15009 Instructions to the speaker.
15010  The parentheses are automatically inserted.
15011  The ( will appear on screen,
15012  but both will be in the printed play.
15013  This environment is only used within 
15014 \family sans
15015 Dialogue
15016 \family default
15017 .
15018 \end_layout
15019
15020 \begin_layout Itemize
15021
15022 \family sans
15023 Dialogue
15024 \begin_inset space \hfill{}
15025 \end_inset
15026
15027 M-z d
15028 \begin_inset Newline newline
15029 \end_inset
15030
15031
15032 \family default
15033 What the Speaker says.
15034 \end_layout
15035
15036 \begin_layout Itemize
15037
15038 \family sans
15039 CURTAIN
15040 \begin_inset space \hfill{}
15041 \end_inset
15042
15043 M-z S-C
15044 \begin_inset Newline newline
15045 \end_inset
15046
15047
15048 \family default
15049 The curtain comes down.
15050 \end_layout
15051
15052 \begin_layout Itemize
15053
15054 \family sans
15055 Title
15056 \begin_inset space \hfill{}
15057 \end_inset
15058
15059 M-z S-T
15060 \end_layout
15061
15062 \begin_layout Itemize
15063
15064 \family sans
15065 Author
15066 \begin_inset space \hfill{}
15067 \end_inset
15068
15069 M-z S-A
15070 \end_layout
15071
15072 \begin_layout Itemize
15073
15074 \family sans
15075 Right_Address
15076 \begin_inset space \hfill{}
15077 \end_inset
15078
15079 M-z r
15080 \end_layout
15081
15082 \begin_layout Standard
15083 Hello there.
15084 \end_layout
15085
15086 \begin_layout Subsection
15087 Hollywood (Hollywood spec scripts)
15088 \end_layout
15089
15090 \begin_layout Standard
15091 by 
15092 \shape smallcaps
15093 Garst Reese
15094 \end_layout
15095
15096 \begin_layout Subsubsection
15097 Introduction
15098 \end_layout
15099
15100 \begin_layout Standard
15101 Getting the format of a Hollywood script right is a 
15102 \begin_inset Quotes eld
15103 \end_inset
15104
15105 rite of passage.
15106 \begin_inset Quotes erd
15107 \end_inset
15108
15109  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
15110  Each page of a script should be one minute of film.
15111  Nothing goes in a script that you cannot see or hear on screen.
15112  The courier 12 pt font should be used throughout.
15113  No italics.
15114 \end_layout
15115
15116 \begin_layout Subsubsection
15117 Special problems
15118 \end_layout
15119
15120 \begin_layout Standard
15121 Speakers' lines should NEVER break in mid-sentence.
15122  If a speaker's lines continue over a page break,
15123  repeat the 
15124 \family sans
15125 Speaker
15126 \family default
15127  title followed by (Cont'd).
15128 \end_layout
15129
15130 \begin_layout Subsubsection
15131 Special features
15132 \end_layout
15133
15134 \begin_layout Standard
15135 Insert the 
15136 \family sans
15137 Speaker
15138 \family default
15139  names as labels then cross-reference the label to insert the name.
15140  The cross-reference dialog will show the current cast of characters.
15141  You can use this to insert the speaker name in narratives also.
15142 \end_layout
15143
15144 \begin_layout Subsubsection
15145 Paper size and Margins
15146 \end_layout
15147
15148 \begin_layout Standard
15149 USLetter,
15150  left 1.6in,
15151  right 0.75in,
15152  top 0.5in,
15153  bottom 0.75in
15154 \end_layout
15155
15156 \begin_layout Subsubsection
15157 Environments
15158 \end_layout
15159
15160 \begin_layout Standard
15161 The following environments are available.
15162  You can use hollywood.bind to get the bind keys shown at the right.
15163 \end_layout
15164
15165 \begin_layout Itemize
15166
15167 \family sans
15168 Standard
15169 \begin_inset Newline newline
15170 \end_inset
15171
15172
15173 \family default
15174 Used where nothing else works.
15175  Try to avoid it.
15176 \end_layout
15177
15178 \begin_layout Itemize
15179
15180 \family sans
15181 FADE_IN
15182 \family default
15183 :
15184 \begin_inset space \hfill{}
15185 \end_inset
15186
15187
15188 \family sans
15189 M-z S-I
15190 \family default
15191
15192 \begin_inset Newline newline
15193 \end_inset
15194
15195 Usually followed by something like 
15196 \begin_inset Quotes eld
15197 \end_inset
15198
15199 on Sally waking up.
15200 \begin_inset Quotes erd
15201 \end_inset
15202
15203
15204 \end_layout
15205
15206 \begin_layout Itemize
15207
15208 \family sans
15209 INT:
15210 \begin_inset space \hfill{}
15211 \end_inset
15212
15213 M-z i
15214 \begin_inset Newline newline
15215 \end_inset
15216
15217
15218 \family default
15219 Introduces a new INTERIOR camera set-up.
15220  Always followed by DAY or NIGHT,
15221  or something similar to define the lighting required.
15222  Everthing on this line in CAPS.
15223 \end_layout
15224
15225 \begin_layout Itemize
15226
15227 \family sans
15228 EXT:
15229 \begin_inset space \hfill{}
15230 \end_inset
15231
15232 M-z e
15233 \begin_inset Newline newline
15234 \end_inset
15235
15236
15237 \family default
15238 Introduces a new EXTERIOR camera set-up.
15239  Everthing on this line in CAPS.
15240 \end_layout
15241
15242 \begin_layout Itemize
15243
15244 \family sans
15245 Speaker
15246 \begin_inset space \hfill{}
15247 \end_inset
15248
15249 M-z s
15250 \begin_inset Newline newline
15251 \end_inset
15252
15253
15254 \family default
15255 The character speaking.
15256 \end_layout
15257
15258 \begin_layout Itemize
15259
15260 \family sans
15261 Parenthetical
15262 \begin_inset space \hfill{}
15263 \end_inset
15264
15265 M-z p
15266 \begin_inset Newline newline
15267 \end_inset
15268
15269
15270 \family default
15271 Instructions to the speaker.
15272  The () are automatically inserted.
15273 \end_layout
15274
15275 \begin_layout Itemize
15276
15277 \family sans
15278 Dialogue
15279 \begin_inset space \hfill{}
15280 \end_inset
15281
15282 M-z d
15283 \begin_inset Newline newline
15284 \end_inset
15285
15286
15287 \family default
15288 What the 
15289 \family sans
15290 Speaker
15291 \family default
15292  says.
15293 \end_layout
15294
15295 \begin_layout Itemize
15296
15297 \family sans
15298 Transition
15299 \begin_inset space \hfill{}
15300 \end_inset
15301
15302 M-z t
15303 \begin_inset Newline newline
15304 \end_inset
15305
15306
15307 \family default
15308 Camera movement instruction.
15309  e.
15310 \begin_inset space \thinspace{}
15311 \end_inset
15312
15313 g.
15314 \begin_inset space \space{}
15315 \end_inset
15316
15317 CUT TO:
15318 \end_layout
15319
15320 \begin_layout Itemize
15321
15322 \family sans
15323 FADE OUT:
15324 \begin_inset space \hfill{}
15325 \end_inset
15326
15327 M-z S-I
15328 \end_layout
15329
15330 \begin_layout Itemize
15331
15332 \family sans
15333 Author
15334 \begin_inset space \hfill{}
15335 \end_inset
15336
15337 M-z S-A
15338 \end_layout
15339
15340 \begin_layout Itemize
15341
15342 \family sans
15343 Title
15344 \begin_inset space \hfill{}
15345 \end_inset
15346
15347 M-z S-T
15348 \end_layout
15349
15350 \begin_layout Itemize
15351
15352 \family sans
15353 Right_Address
15354 \begin_inset space \hfill{}
15355 \end_inset
15356
15357 M-z r
15358 \end_layout
15359
15360 \begin_layout Subsubsection
15361 Script jargon
15362 \end_layout
15363
15364 \begin_layout Itemize
15365 (O.S) —
15366  off screen
15367 \end_layout
15368
15369 \begin_layout Itemize
15370 (V.0) —
15371  voice over
15372 \end_layout
15373
15374 \begin_layout Itemize
15375 b.
15376 \begin_inset space \thinspace{}
15377 \end_inset
15378
15379 g.
15380  —
15381  background
15382 \end_layout
15383
15384 \begin_layout Itemize
15385 C.U.
15386  —
15387  close-up
15388 \end_layout
15389
15390 \begin_layout Itemize
15391 PAN —
15392  camera movement
15393 \end_layout
15394
15395 \begin_layout Itemize
15396 INSERT —
15397  cut to close-up of
15398 \end_layout
15399
15400 \begin_layout Chapter
15401
15402 \change_inserted 564990737 1671185876
15403 Modules
15404 \end_layout
15405
15406 \begin_layout Section
15407
15408 \change_inserted 564990737 1671716212
15409 Academic Field Specifics
15410 \end_layout
15411
15412 \begin_layout Subsection
15413
15414 \change_inserted 564990737 1671716212
15415 Chemistry:
15416  Hazard and Precautionary Statements 
15417 \end_layout
15418
15419 \begin_layout Standard
15420
15421 \change_inserted 564990737 1671716212
15422 This module provides two insets to typeset numbers and phrases of chemical hazard and precautionary statements.
15423  For a description see 
15424 \family sans
15425 File\SpecialChar menuseparator
15426 Open Example\SpecialChar menuseparator
15427 Modules\SpecialChar menuseparator
15428 Hazard and Precautionary Statements
15429 \family default
15430  and 
15431 \family sans
15432 Help\SpecialChar menuseparator
15433 Specific Manuals\SpecialChar menuseparator
15434 Hazard and Precautionary Statements
15435 \family default
15436 .
15437 \end_layout
15438
15439 \begin_layout Subsection
15440
15441 \change_inserted 564990737 1671716212
15442
15443 \series bold
15444 Chemistry:
15445  Risk and Safety Statements
15446 \end_layout
15447
15448 \begin_layout Standard
15449
15450 \change_inserted 564990737 1671716212
15451 This module provides two insets,
15452  
15453 \family sans
15454 R-S number
15455 \family default
15456  and 
15457 \family sans
15458 R-S phrase
15459 \family default
15460 ,
15461  accessible via the menu 
15462 \family sans
15463 \bar under
15464 I
15465 \bar default
15466 nsert\SpecialChar menuseparator
15467 Custom
15468 \begin_inset space ~
15469 \end_inset
15470
15471 Insets
15472 \family default
15473  and an environment to typeset numbers and phrases of chemical risk and safety statements.
15474 \end_layout
15475
15476 \begin_layout Subsection
15477
15478 \change_inserted 564990737 1671716212
15479 Linguistics
15480 \end_layout
15481
15482 \begin_layout Standard
15483
15484 \change_inserted 564990737 1671716212
15485 This module uses the 
15486 \family sans
15487 covington.sty
15488 \family default
15489  package to add environments useful for linguistics (numbered examples,
15490  glosses,
15491  semantic markup,
15492  tableau floats).
15493  You can obtain information about this module in 
15494 \family sans
15495 \bar under
15496 H
15497 \bar default
15498 elp\SpecialChar menuseparator
15499 S
15500 \bar under
15501 p
15502 \bar default
15503 ecific
15504 \begin_inset space ~
15505 \end_inset
15506
15507 Manuals\SpecialChar menuseparator
15508
15509 \bar under
15510 L
15511 \bar default
15512 inguistics
15513 \family default
15514  and 
15515 \family sans
15516 File\SpecialChar menuseparator
15517 Open Example\SpecialChar menuseparator
15518 Modules\SpecialChar menuseparator
15519 Linguistics
15520 \family default
15521 .
15522 \end_layout
15523
15524 \begin_layout Section
15525
15526 \change_inserted 564990737 1671788778
15527 Accessibility
15528 \end_layout
15529
15530 \begin_layout Subsection
15531
15532 \change_inserted 564990737 1671788778
15533 Braille
15534 \end_layout
15535
15536 \begin_layout Standard
15537
15538 \change_inserted 564990737 1671788778
15539 This module supports the Braille writing system.
15540  It requires the \SpecialChar LaTeX
15541  package 
15542 \family typewriter
15543 braille.sty
15544 \family default
15545 .
15546  This and its documentation can be obtained from 
15547 \begin_inset CommandInset href
15548 LatexCommand href
15549 name "CTAN"
15550 target "https://www.ctan.org/pkg/braille"
15551 literal "false"
15552
15553 \end_inset
15554
15555 .
15556  You do not have to reconfigure your system after installing it.
15557  See 
15558 \family sans
15559 \bar under
15560 H
15561 \bar default
15562 elp\SpecialChar menuseparator
15563 S
15564 \bar under
15565 p
15566 \bar default
15567 ecific
15568 \begin_inset space ~
15569 \end_inset
15570
15571 Manuals\SpecialChar menuseparator
15572
15573 \bar under
15574 B
15575 \bar default
15576 raille
15577 \family default
15578  and 
15579 \family sans
15580 File\SpecialChar menuseparator
15581 Open Example\SpecialChar menuseparator
15582 Modules\SpecialChar menuseparator
15583 Braille
15584 \family default
15585 .
15586 \end_layout
15587
15588 \begin_layout Section
15589
15590 \change_inserted 564990737 1671788778
15591 Annotation & Revision
15592 \end_layout
15593
15594 \begin_layout Subsection
15595
15596 \change_inserted 564990737 1671788778
15597 FiXme Notes
15598 \end_layout
15599
15600 \begin_layout Standard
15601
15602 \change_inserted 564990737 1671788778
15603 This module provides “FiXme” (marginal) annotations for document revision purposes.
15604  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
15605  The annotations are customizable via the LaTeX preamble.
15606  See the FiXme documentation which can be obtained from 
15607 \begin_inset CommandInset href
15608 LatexCommand href
15609 name "CTAN"
15610 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
15611 literal "false"
15612
15613 \end_inset
15614
15615 .
15616  
15617 \end_layout
15618
15619 \begin_layout Paragraph
15620
15621 \change_inserted 564990737 1671788778
15622 Note:
15623 \end_layout
15624
15625 \begin_layout Standard
15626
15627 \change_inserted 564990737 1671788778
15628 by default,
15629  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
15630 \family sans
15631 Document\SpecialChar menuseparator
15632 Settings\SpecialChar menuseparator
15633 Document Class\SpecialChar menuseparator
15634 Class Options\SpecialChar menuseparator
15635 Custom
15636 \family default
15637 ).
15638  To display them always,
15639  insert 
15640 \family typewriter
15641
15642 \backslash
15643 fxsetup{draft}
15644 \family default
15645  in 
15646 \family sans
15647 Document\SpecialChar menuseparator
15648 Settings\SpecialChar menuseparator
15649 \SpecialChar LaTeX
15650  Preamble
15651 \family default
15652 .
15653  
15654 \end_layout
15655
15656 \begin_layout Subsection
15657
15658 \change_inserted 564990737 1671788778
15659 PDF Comments
15660 \end_layout
15661
15662 \begin_layout Standard
15663
15664 \change_inserted 564990737 1671788778
15665 This module provides various kinds of annotations for PDF output.
15666  See 
15667 \family sans
15668 Help\SpecialChar menuseparator
15669 Specific Manuals\SpecialChar menuseparator
15670 PDF comments and File\SpecialChar menuseparator
15671 Open Example\SpecialChar menuseparator
15672 Modules\SpecialChar menuseparator
15673 PDF Comments
15674 \family default
15675 .
15676 \end_layout
15677
15678 \begin_layout Subsection
15679
15680 \change_inserted 564990737 1671788778
15681
15682 \series bold
15683 PDF Form
15684 \end_layout
15685
15686 \begin_layout Standard
15687
15688 \change_inserted 564990737 1671788778
15689 This module provides fields and buttons for PDF forms.
15690  See the 
15691 \begin_inset CommandInset href
15692 LatexCommand href
15693 name "hyperref documentation"
15694 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
15695 literal "false"
15696
15697 \end_inset
15698
15699 ,
15700  
15701 \family sans
15702 Help\SpecialChar menuseparator
15703 Specific Manuals\SpecialChar menuseparator
15704 PDF forms and File\SpecialChar menuseparator
15705 Open Example\SpecialChar menuseparator
15706 Modules\SpecialChar menuseparator
15707 PDF Form
15708 \family default
15709 .
15710 \end_layout
15711
15712 \begin_layout Subsection
15713
15714 \change_inserted 564990737 1671788778
15715
15716 \series bold
15717 Ruby (Furigana)
15718 \end_layout
15719
15720 \begin_layout Standard
15721
15722 \change_inserted 564990737 1671788778
15723 This module defines an inset to typeset reading aids (ruby,
15724  furigana) to Chinese characters.
15725  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on the TeX engine) or a fallback definition.
15726  
15727 \end_layout
15728
15729 \begin_layout Subsection
15730
15731 \change_inserted 564990737 1671788778
15732
15733 \series bold
15734 TODO notes
15735 \end_layout
15736
15737 \begin_layout Standard
15738
15739 \change_inserted 564990737 1671788778
15740 This module provides custom insets to insert TODO items in your document.
15741  In order to generate a “List of TODOs,” the module provides a paragraph style.
15742  Inserting “final” in 
15743 \family sans
15744 Document\SpecialChar menuseparator
15745 Settings\SpecialChar menuseparator
15746 Document Class\SpecialChar menuseparator
15747 Class Options\SpecialChar menuseparator
15748 Custom
15749 \family default
15750 ) suppresses the output of TODO notes.
15751  See the 
15752 \begin_inset CommandInset href
15753 LatexCommand href
15754 name "todonotes documentation"
15755 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
15756 literal "false"
15757
15758 \end_inset
15759
15760 .
15761 \end_layout
15762
15763 \begin_layout Section
15764
15765 \change_inserted 564990737 1671829045
15766 Bibliography 
15767 \end_layout
15768
15769 \begin_layout Subsection
15770
15771 \change_inserted 564990737 1671829045
15772 APA Style with NatBib
15773 \end_layout
15774
15775 \begin_layout Standard
15776
15777 \change_inserted 564990737 1671829045
15778 This module adds support for using natbib together with apacite (the bibliography style need not be apacite —
15779  it could be apacite,
15780  apacitex,
15781  or any bibliography that works with both the natbib and apacite packages.) 
15782 \end_layout
15783
15784 \begin_layout Section
15785
15786 \change_inserted 564990737 1671829045
15787 Boxes
15788 \end_layout
15789
15790 \begin_layout Subsection
15791
15792 \change_inserted 564990737 1671829045
15793 Fancy Colored Boxes
15794 \end_layout
15795
15796 \begin_layout Standard
15797
15798 \change_inserted 564990737 1671829045
15799 This module adds ten custom insets that support colored boxes via the tcolorbox package.
15800  See 
15801 \family sans
15802 Help\SpecialChar menuseparator
15803 Specific Manuals\SpecialChar menuseparator
15804 Colored boxes
15805 \family default
15806 ,
15807  
15808 \family sans
15809 File\SpecialChar menuseparator
15810 Open Example\SpecialChar menuseparator
15811 Modules\SpecialChar menuseparator
15812 Fancy Color Boxes
15813 \family default
15814  the 
15815 \begin_inset CommandInset href
15816 LatexCommand href
15817 name "tcolorbox documentation"
15818 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
15819 literal "false"
15820
15821 \end_inset
15822
15823  for details.
15824  
15825 \end_layout
15826
15827 \begin_layout Subsection
15828
15829 \change_inserted 564990737 1671829045
15830 Graphic boxes
15831 \end_layout
15832
15833 \begin_layout Standard
15834
15835 \change_inserted 564990737 1671829045
15836 This provides the custom insets 
15837 \family sans
15838 Reflectbox
15839 \family default
15840 ,
15841  
15842 \family sans
15843 Resizebox
15844 \family default
15845 ,
15846  
15847 \family sans
15848 Rotatebox
15849 \family default
15850  and 
15851 \family sans
15852 Scalebox
15853 \family default
15854  to scale and rotate its content.
15855 \end_layout
15856
15857 \begin_layout Standard
15858
15859 \change_inserted 564990737 1671829045
15860
15861 \family sans
15862 Reflectbox
15863 \family default
15864  is a simple way of reversing text without any other enhancement:
15865 \end_layout
15866
15867 \begin_layout Standard
15868
15869 \change_inserted 564990737 1671829045
15870 \begin_inset Flex Reflectbox
15871 status open
15872
15873 \begin_layout Plain Layout
15874
15875 \change_inserted 564990737 1671829045
15876 Great Western Railway
15877 \change_unchanged
15878
15879 \end_layout
15880
15881 \end_inset
15882
15883
15884 \end_layout
15885
15886 \begin_layout Standard
15887
15888 \change_inserted 564990737 1671829045
15889 (You will need to use Ctrl-R to see any of these examples.)
15890 \end_layout
15891
15892 \begin_layout Standard
15893
15894 \change_inserted 564990737 1671829045
15895
15896 \family sans
15897 Resizebox
15898 \family default
15899  allows you to specify the dimensions of the text or image;
15900  permissible units are em,
15901  ex,
15902  in,
15903  pt,
15904  pc,
15905  cm,
15906  mm,
15907  dd,
15908  cc,
15909  nd,
15910  nc,
15911  bp,
15912  or sp;
15913  if you enter 
15914 \family typewriter
15915 !
15916
15917 \family default
15918  for 
15919 \family typewriter
15920 Height
15921 \family default
15922  it scales by the width factor:
15923 \end_layout
15924
15925 \begin_layout Standard
15926
15927 \change_inserted 564990737 1671829045
15928 \begin_inset Flex Resizebox
15929 status open
15930
15931 \begin_layout Plain Layout
15932
15933 \change_inserted 564990737 1671829045
15934 \begin_inset Argument 1
15935 status open
15936
15937 \begin_layout Plain Layout
15938
15939 \change_inserted 564990737 1671829045
15940 48mm
15941 \change_unchanged
15942
15943 \end_layout
15944
15945 \end_inset
15946
15947
15948 \begin_inset Argument 2
15949 status open
15950
15951 \begin_layout Plain Layout
15952
15953 \change_inserted 564990737 1671829045
15954 !
15955 \change_unchanged
15956
15957 \end_layout
15958
15959 \end_inset
15960
15961 Great Western Railway
15962 \change_unchanged
15963
15964 \end_layout
15965
15966 \end_inset
15967
15968
15969 \end_layout
15970
15971 \begin_layout Standard
15972
15973 \change_inserted 564990737 1671829045
15974
15975 \family sans
15976 Rotatebox
15977 \family default
15978  allows you to rotate text around the reference point of the box.
15979  If you wish to rotate the box around a different origin,
15980  place the cursor inside the box and select Insert\SpecialChar menuseparator
15981 Origin;
15982  o
15983 \family typewriter
15984 rigin
15985 \family default
15986  is specified as 
15987 \family typewriter
15988 c
15989 \family default
15990 ,
15991
15992 \family typewriter
15993  l
15994 \family default
15995 ,
15996
15997 \family typewriter
15998  r
15999 \family default
16000 ,
16001
16002 \family typewriter
16003  b
16004 \family default
16005 ,
16006
16007 \family typewriter
16008  t
16009 \family default
16010  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
16011  For example:
16012 \end_layout
16013
16014 \begin_layout Standard
16015
16016 \change_inserted 564990737 1671829045
16017 \begin_inset Flex Rotatebox
16018 status open
16019
16020 \begin_layout Plain Layout
16021
16022 \change_inserted 564990737 1671829045
16023 \begin_inset Argument 1
16024 status open
16025
16026 \begin_layout Plain Layout
16027
16028 \change_inserted 274215730 1672888693
16029 origin
16030 \change_inserted 564990737 1671829045
16031 =c
16032 \change_unchanged
16033
16034 \end_layout
16035
16036 \end_inset
16037
16038
16039 \begin_inset Argument 2
16040 status open
16041
16042 \begin_layout Plain Layout
16043
16044 \change_inserted 564990737 1671829045
16045 30
16046 \change_unchanged
16047
16048 \end_layout
16049
16050 \end_inset
16051
16052 Great Western Railway
16053 \change_unchanged
16054
16055 \end_layout
16056
16057 \end_inset
16058
16059
16060 \end_layout
16061
16062 \begin_layout Standard
16063
16064 \change_inserted 564990737 1671829045
16065 You can combine boxes as in:
16066 \end_layout
16067
16068 \begin_layout Standard
16069
16070 \change_inserted 564990737 1671829045
16071 \begin_inset Flex Rotatebox
16072 status open
16073
16074 \begin_layout Plain Layout
16075
16076 \change_inserted 564990737 1671829045
16077 \begin_inset Argument 1
16078 status open
16079
16080 \begin_layout Plain Layout
16081
16082 \change_inserted 274215730 1672888702
16083 origin
16084 \change_inserted 564990737 1671829045
16085 =c
16086 \change_unchanged
16087
16088 \end_layout
16089
16090 \end_inset
16091
16092
16093 \begin_inset Argument 2
16094 status open
16095
16096 \begin_layout Plain Layout
16097
16098 \change_inserted 564990737 1671829045
16099 -15
16100 \change_unchanged
16101
16102 \end_layout
16103
16104 \end_inset
16105
16106
16107 \begin_inset Flex Resizebox
16108 status open
16109
16110 \begin_layout Plain Layout
16111
16112 \change_inserted 564990737 1671829045
16113 \begin_inset Argument 1
16114 status open
16115
16116 \begin_layout Plain Layout
16117
16118 \change_inserted 564990737 1671829045
16119 48mm
16120 \change_unchanged
16121
16122 \end_layout
16123
16124 \end_inset
16125
16126
16127 \begin_inset Argument 2
16128 status open
16129
16130 \begin_layout Plain Layout
16131
16132 \change_inserted 564990737 1671829045
16133 !
16134 \change_unchanged
16135
16136 \end_layout
16137
16138 \end_inset
16139
16140
16141 \begin_inset Flex Reflectbox
16142 status open
16143
16144 \begin_layout Plain Layout
16145
16146 \change_inserted 564990737 1671829045
16147 Great Western Railway
16148 \change_unchanged
16149
16150 \end_layout
16151
16152 \end_inset
16153
16154
16155 \change_unchanged
16156
16157 \end_layout
16158
16159 \end_inset
16160
16161
16162 \change_unchanged
16163
16164 \end_layout
16165
16166 \end_inset
16167
16168
16169 \end_layout
16170
16171 \begin_layout Standard
16172
16173 \change_inserted 564990737 1671829045
16174
16175 \family sans
16176 Scalebox
16177 \family default
16178  scales text;
16179  select Insert\SpecialChar menuseparator
16180 V-Factor to add a vertical factor.
16181  If the vertical factor is omitted,
16182  the horizontal is used.
16183  Adding different horizontal and vertical values creates distortion as in 
16184 \end_layout
16185
16186 \begin_layout Standard
16187
16188 \change_inserted 564990737 1671829045
16189
16190 \family typewriter
16191 \begin_inset Flex Scalebox
16192 status open
16193
16194 \begin_layout Plain Layout
16195
16196 \change_inserted 564990737 1671829045
16197 \begin_inset Argument 1
16198 status open
16199
16200 \begin_layout Plain Layout
16201
16202 \change_inserted 564990737 1671829045
16203 2
16204 \change_unchanged
16205
16206 \end_layout
16207
16208 \end_inset
16209
16210
16211 \begin_inset Argument 2
16212 status open
16213
16214 \begin_layout Plain Layout
16215
16216 \change_inserted 564990737 1671829045
16217 1.5
16218 \change_unchanged
16219
16220 \end_layout
16221
16222 \end_inset
16223
16224
16225 \family roman
16226 Great Western Railway
16227 \change_unchanged
16228
16229 \end_layout
16230
16231 \end_inset
16232
16233 .
16234 \end_layout
16235
16236 \begin_layout Standard
16237
16238 \change_inserted 564990737 1671829045
16239 A negative horizontal value reverses the text and a negative vertical value inverts it so that you get 
16240 \end_layout
16241
16242 \begin_layout Standard
16243
16244 \change_inserted 564990737 1671829045
16245 \begin_inset Flex Scalebox
16246 status open
16247
16248 \begin_layout Plain Layout
16249
16250 \change_inserted 564990737 1671829045
16251 \begin_inset Argument 1
16252 status open
16253
16254 \begin_layout Plain Layout
16255
16256 \change_inserted 564990737 1671829045
16257 -1
16258 \change_unchanged
16259
16260 \end_layout
16261
16262 \end_inset
16263
16264
16265 \begin_inset Argument 2
16266 status open
16267
16268 \begin_layout Plain Layout
16269
16270 \change_inserted 564990737 1671829045
16271 1
16272 \change_unchanged
16273
16274 \end_layout
16275
16276 \end_inset
16277
16278 Great Western Railway
16279 \change_unchanged
16280
16281 \end_layout
16282
16283 \end_inset
16284
16285  and 
16286 \begin_inset Flex Scalebox
16287 status open
16288
16289 \begin_layout Plain Layout
16290
16291 \change_inserted 564990737 1671829045
16292 \begin_inset Argument 1
16293 status open
16294
16295 \begin_layout Plain Layout
16296
16297 \change_inserted 564990737 1671829045
16298 1
16299 \change_unchanged
16300
16301 \end_layout
16302
16303 \end_inset
16304
16305
16306 \begin_inset Argument 2
16307 status open
16308
16309 \begin_layout Plain Layout
16310
16311 \change_inserted 564990737 1671829045
16312 -1
16313 \change_unchanged
16314
16315 \end_layout
16316
16317 \end_inset
16318
16319 Great Western Railway
16320 \change_unchanged
16321
16322 \end_layout
16323
16324 \end_inset
16325
16326 .
16327 \end_layout
16328
16329 \begin_layout Subsection
16330
16331 \change_inserted 564990737 1671884699
16332 Section Boxes
16333 \end_layout
16334
16335 \begin_layout Standard
16336
16337 \change_inserted 564990737 1671884699
16338 This module defines Boxes with section header.
16339  It is mainly intended for the SciPoster Document class.
16340  
16341 \end_layout
16342
16343 \begin_layout Subsection
16344
16345 \change_inserted 564990737 1671884699
16346 Variable-width Minipages
16347 \end_layout
16348
16349 \begin_layout Standard
16350
16351 \change_inserted 564990737 1671884699
16352 This module adds a 
16353 \family sans
16354 Minipage (Var.
16355 \begin_inset space \thinspace{}
16356 \end_inset
16357
16358 Width)
16359 \family default
16360  inset to 
16361 \family sans
16362 Insert\SpecialChar menuseparator
16363 Custom Inset
16364 \family default
16365  using the 
16366 \family sans
16367 varwidth
16368 \family default
16369  LaTeX package.
16370  The 
16371 \family sans
16372 varwidth
16373 \family default
16374  package provides a variable-width minipage,
16375  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
16376  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
16377 \family sans
16378 Insert\SpecialChar menuseparator
16379 Vert.
16380 \begin_inset space \thinspace{}
16381 \end_inset
16382
16383 Adjustment
16384 \family default
16385  (
16386 \family typewriter
16387 c|t|b
16388 \family default
16389 ) or 
16390 \family sans
16391 Insert\SpecialChar menuseparator
16392 Max.
16393 \begin_inset space \thinspace{}
16394 \end_inset
16395
16396 Width
16397 \family default
16398  (defaults to 
16399 \family typewriter
16400
16401 \backslash
16402 linewidth
16403 \family default
16404 ).
16405  See 
16406 \family sans
16407 File\SpecialChar menuseparator
16408 Open Example\SpecialChar menuseparator
16409 Variable-width Minipages
16410 \family default
16411 .
16412  
16413 \end_layout
16414
16415 \begin_layout Section
16416
16417 \change_inserted 564990737 1671884699
16418 Fixes & Hacks
16419 \end_layout
16420
16421 \begin_layout Subsection
16422
16423 \change_inserted 564990737 1671884699
16424 Fix Computer Modern Fonts
16425 \end_layout
16426
16427 \begin_layout Standard
16428
16429 \change_inserted 564990737 1671884699
16430 This module uses the 
16431 \family sans
16432 fix-cm
16433 \family default
16434  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
16435  See the 
16436 \begin_inset CommandInset href
16437 LatexCommand href
16438 name "fix-cm documentation"
16439 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
16440 literal "false"
16441
16442 \end_inset
16443
16444 .
16445  
16446 \end_layout
16447
16448 \begin_layout Subsection
16449
16450 \change_inserted 564990737 1671884699
16451 \SpecialChar LaTeX
16452  Kernel Fixes (Obsolete)
16453 \end_layout
16454
16455 \begin_layout Standard
16456
16457 \change_inserted 564990737 1671884699
16458 This module loads the \SpecialChar LaTeX
16459  package 
16460 \family sans
16461 fixltx2e
16462 \family default
16463  which contains some bug fixes for \SpecialChar LaTeX
16464 .
16465  If you use this module your typeset document may look different when you process it,
16466  depending on the respective version of 
16467 \family sans
16468 fixltx2e
16469 \family default
16470 .
16471  
16472 \end_layout
16473
16474 \begin_layout Paragraph
16475
16476 \change_inserted 564990737 1671884699
16477 Note:
16478 \end_layout
16479
16480 \begin_layout Standard
16481
16482 \change_inserted 564990737 1671884699
16483 recent \SpecialChar LaTeX
16484  kernels (as of 2015/01/01) include the functionality of 
16485 \family sans
16486 fixltx2e
16487 \family default
16488 ,
16489  so the 
16490 \family sans
16491 fixltx2e
16492 \family default
16493  module is obsolete with newer \SpecialChar LaTeX
16494  distributions.
16495  
16496 \end_layout
16497
16498 \begin_layout Subsection
16499
16500 \change_inserted 564990737 1671884699
16501 Minimalistic Insets
16502 \end_layout
16503
16504 \begin_layout Standard
16505
16506 \change_inserted 564990737 1671884699
16507 This module redefines several insets (Index,
16508  Branch,
16509  URL) as being Minimalistic.
16510 \end_layout
16511
16512 \begin_layout Subsection
16513
16514 \change_inserted 564990737 1671884699
16515 Title and Preamble Hacks
16516 \end_layout
16517
16518 \begin_layout Standard
16519
16520 \change_inserted 564990737 1671884699
16521 This module provides two new paragraph styles:
16522  
16523 \end_layout
16524
16525 \begin_layout Enumerate
16526
16527 \change_inserted 564990737 1671884699
16528
16529 \family sans
16530 In Preamble
16531 \family default
16532  which puts whatever is entered into it into the preamble.
16533  This can be used,
16534  if one wishes,
16535  to include preamble code in the body of a LyX document.
16536  
16537 \end_layout
16538
16539 \begin_layout Enumerate
16540
16541 \change_inserted 564990737 1671884699
16542
16543 \family sans
16544 In Title
16545 \family default
16546  which that will put its contents into the body of the LaTeX document,
16547  but before 
16548 \family typewriter
16549
16550 \backslash
16551 maketitle
16552 \family default
16553  is issued.
16554  This is useful for making branches and notes in title-related material.
16555  (However,
16556  if you put these in a Standard layout,
16557  this signals to LyX to output 
16558 \family typewriter
16559
16560 \backslash
16561 maketitle
16562 \family default
16563 ,
16564  which may then come too early.)
16565 \end_layout
16566
16567 \begin_layout Section
16568
16569 \change_inserted 564990737 1672081439
16570 Floats & captions
16571 \end_layout
16572
16573 \begin_layout Subsection
16574
16575 \change_inserted 564990737 1672081439
16576 Algorithm2e Float
16577 \end_layout
16578
16579 \begin_layout Standard
16580
16581 \change_inserted 564990737 1672081439
16582 This module uses the 
16583 \family sans
16584 algorithm2e
16585 \family default
16586  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
16587  Use the Algorithm paragraph style to enter and indent the algorithm.
16588  See the 
16589 \begin_inset CommandInset href
16590 LatexCommand href
16591 name "algorithm2e documentation"
16592 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
16593 literal "false"
16594
16595 \end_inset
16596
16597 .
16598 \end_layout
16599
16600 \begin_layout Subsection
16601
16602 \change_inserted 564990737 1672081439
16603 Bilingual Captions AKA Multilingual Captions
16604 \end_layout
16605
16606 \begin_layout Standard
16607
16608 \change_inserted 564990737 1672081439
16609 This module provides the paragraph style 
16610 \family sans
16611 Caption
16612 \begin_inset space ~
16613 \end_inset
16614
16615 setup
16616 \family default
16617  with which to typeset multilingual captions.
16618  Within this paragraph style 
16619 \family sans
16620 Insert\SpecialChar menuseparator
16621 Language
16622 \family default
16623  allows you to enter the desired language using one of the babel names.
16624  See 
16625 \family sans
16626 File\SpecialChar menuseparator
16627 Open Example\SpecialChar menuseparator
16628 Multilingual Captions
16629 \family default
16630  and 
16631 \family sans
16632 Help\SpecialChar menuseparator
16633 Specific Manuals\SpecialChar menuseparator
16634 Multilingual Captions
16635 \family default
16636  further information on its use.
16637 \end_layout
16638
16639 \begin_layout Subsection
16640
16641 \change_inserted 564990737 1672081439
16642 Number Figures by Section
16643 \end_layout
16644
16645 \begin_layout Standard
16646
16647 \change_inserted 564990737 1672081439
16648 This module resets the figure number at section start and prepends the section number to the figure number,
16649  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
16650 \end_layout
16651
16652 \begin_layout Subsection
16653
16654 \change_inserted 564990737 1672081439
16655 Number Tables by Section
16656 \end_layout
16657
16658 \begin_layout Standard
16659
16660 \change_inserted 564990737 1672081439
16661 This module resets the table number at section start and prepends the section number to the table number,
16662  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
16663 \end_layout
16664
16665 \begin_layout Section
16666
16667 \change_inserted 564990737 1672081439
16668 Foot- and Endnotes
16669 \end_layout
16670
16671 \begin_layout Subsection
16672
16673 \change_inserted 564990737 1672081439
16674 Endnotes (Basic)
16675 \end_layout
16676
16677 \begin_layout Standard
16678
16679 \change_inserted 564990737 1672081439
16680 This module adds an endnote inset,
16681  in addition to footnotes.
16682  This uses the 
16683 \family sans
16684 endnotes
16685 \family default
16686  package,
16687  which has some limitations but works with older LaTeX distributions as well.
16688  Use 
16689 \family sans
16690 Insert\SpecialChar menuseparator
16691 Custom Inset\SpecialChar menuseparator
16692 Endnote
16693 \family default
16694  to insert an endnote and 
16695 \family sans
16696 Insert\SpecialChar menuseparator
16697 List/Contents/References\SpecialChar menuseparator
16698 Endnotes
16699 \family default
16700  to insert the endnotes list where you want the endnotes to appear.
16701  See also 
16702 \family sans
16703 Help\SpecialChar menuseparator
16704 Embedded\SpecialChar menuseparator
16705  Objects\SpecialChar menuseparator
16706 Notes\SpecialChar menuseparator
16707 Footnotes
16708 \family default
16709 .
16710 \end_layout
16711
16712 \begin_layout Subsection
16713
16714 \change_inserted 564990737 1672081439
16715 Endnotes (Extended)
16716 \end_layout
16717
16718 \begin_layout Standard
16719
16720 \change_inserted 564990737 1672081439
16721 This module adds an endnote inset,
16722  in addition to footnotes.
16723  This uses the 
16724 \family sans
16725 enotez
16726 \family default
16727  package which is more powerful and customizable than the 
16728 \family sans
16729 endnotes
16730 \family default
16731  package,
16732  but requires a fairly modern LaTeX distribution (with LaTeX3).
16733  Use 
16734 \family sans
16735 Insert\SpecialChar menuseparator
16736 Custom Inset\SpecialChar menuseparator
16737 Endnote
16738 \family default
16739  to insert an endnote and 
16740 \family sans
16741 Insert\SpecialChar menuseparator
16742 List/Contents/References\SpecialChar menuseparator
16743 Endnotes
16744 \family default
16745  to insert the endnotes list where you want the endnotes to appear.
16746  See also 
16747 \family sans
16748 Help\SpecialChar menuseparator
16749 Embedded\SpecialChar menuseparator
16750  Objects\SpecialChar menuseparator
16751 Notes\SpecialChar menuseparator
16752 Footnotes
16753 \family default
16754 .
16755 \end_layout
16756
16757 \begin_layout Subsection
16758
16759 \change_inserted 564990737 1672081439
16760 Footnotes as Endnotes (Basic)
16761 \end_layout
16762
16763 \begin_layout Standard
16764
16765 \change_inserted 564990737 1672081439
16766 This module sets all footnotes as endnotes.
16767  This uses the 
16768 \family sans
16769 endnotes
16770 \family default
16771  package,
16772  which has some limitations but works with older LaTeX distributions as well.
16773  Use 
16774 \family sans
16775 Insert\SpecialChar menuseparator
16776 List/Contents/References\SpecialChar menuseparator
16777 Endnotes
16778 \family default
16779  to insert the endnotes list where you want the endnotes to appear.
16780  See also 
16781 \family sans
16782 Help\SpecialChar menuseparator
16783 Embedded\SpecialChar menuseparator
16784  Objects\SpecialChar menuseparator
16785 Notes\SpecialChar menuseparator
16786 Footnotes
16787 \family default
16788 .
16789 \end_layout
16790
16791 \begin_layout Subsection
16792
16793 \change_inserted 564990737 1672081439
16794 Footnotes as Endnotes (Extended)
16795 \end_layout
16796
16797 \begin_layout Standard
16798
16799 \change_inserted 564990737 1672081439
16800 This module sets all footnotes as endnotes.
16801  This uses the 
16802 \family sans
16803 enotez
16804 \family default
16805  package which is more powerful and customizable than then 
16806 \family sans
16807 endnotes
16808 \family default
16809  package,
16810  but requires a fairly modern LaTeX distribution (with LaTeX3).
16811  Use 
16812 \family sans
16813 Insert\SpecialChar menuseparator
16814 List/Contents/References\SpecialChar menuseparator
16815 Endnotes
16816 \family default
16817  to insert the endnotes list where you want the endnotes to appear.
16818  See also 
16819 \family sans
16820 Help\SpecialChar menuseparator
16821 Embedded\SpecialChar menuseparator
16822  Objects\SpecialChar menuseparator
16823 Notes\SpecialChar menuseparator
16824 Footnotes
16825 \family default
16826 .
16827 \end_layout
16828
16829 \begin_layout Section
16830
16831 \change_inserted 564990737 1672081439
16832 Leisure,
16833  Sports and Music
16834 \end_layout
16835
16836 \begin_layout Subsection
16837
16838 \change_inserted 564990737 1672081439
16839 Chess Board
16840 \end_layout
16841
16842 \begin_layout Standard
16843
16844 \change_inserted 564990737 1672081439
16845 This module provides support for the 
16846 \family sans
16847 chessboard
16848 \family default
16849  package to print chess games.
16850  See 
16851 \family sans
16852 File\SpecialChar menuseparator
16853 Open Example\SpecialChar menuseparator
16854 Articles\SpecialChar menuseparator
16855 Chess
16856 \family default
16857  where you will find 
16858 \family sans
16859 Game 1
16860 \family default
16861  and 
16862 \family sans
16863 Game 2
16864 \family default
16865  and the 
16866 \begin_inset CommandInset href
16867 LatexCommand href
16868 name "chessboard documentation"
16869 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
16870 literal "false"
16871
16872 \end_inset
16873
16874 .
16875 \end_layout
16876
16877 \begin_layout Subsection
16878
16879 \change_inserted 564990737 1672081439
16880 Lilypond Music Notation
16881 \end_layout
16882
16883 \begin_layout Standard
16884
16885 \change_inserted 564990737 1672081439
16886 This module provides an inset via 
16887 \family sans
16888 \bar under
16889 I
16890 \bar default
16891 nsert\SpecialChar menuseparator
16892 Custom Inset\SpecialChar menuseparator
16893 Lilypond
16894 \family default
16895  in which to enter code for the LilyPond music editor.
16896  It will then be processed in the output.
16897  See 
16898 \family sans
16899 Help\SpecialChar menuseparator
16900 Specific Manuals\SpecialChar menuseparator
16901 Lilypond
16902 \family default
16903  and 
16904 \family sans
16905 File\SpecialChar menuseparator
16906 Open Example\SpecialChar menuseparator
16907 Modules\SpecialChar menuseparator
16908 Lilypond Book
16909 \family default
16910 .
16911  It cannot be used if the modules 
16912 \family sans
16913 Rnw
16914 \begin_inset space \thinspace{}
16915 \end_inset
16916
16917 (knitr) or Sweave
16918 \family default
16919  have been loaded.
16920 \end_layout
16921
16922 \begin_layout Section
16923
16924 \change_inserted 564990737 1672138150
16925 List enhancements
16926 \end_layout
16927
16928 \begin_layout Subsection
16929
16930 \change_inserted 564990737 1672138150
16931 Customizable Lists
16932 \begin_inset CommandInset label
16933 LatexCommand label
16934 name "subsec:Customizable-Lists"
16935
16936 \end_inset
16937
16938
16939 \end_layout
16940
16941 \begin_layout Standard
16942
16943 \change_inserted 564990737 1672138150
16944 This module uses the
16945 \family sans
16946  enumitem
16947 \family default
16948  package to enable the customization of various list environments.
16949 \end_layout
16950
16951 \begin_layout Subsubsection
16952
16953 \change_inserted 564990737 1672138150
16954 Custom Enumerate Lists
16955 \end_layout
16956
16957 \begin_layout Standard
16958 \noindent
16959
16960 \change_inserted 564990737 1672138150
16961 The default numbering of numbered lists can be changed by adding an optional argument (menu 
16962 \family sans
16963 \bar under
16964 I
16965 \bar default
16966 nsert\SpecialChar menuseparator
16967
16968 \bar under
16969 S
16970 \bar default
16971 hort Title
16972 \family default
16973 ) to the first item of each level in the list.
16974  There you add the command
16975 \end_layout
16976
16977 \begin_layout Standard
16978
16979 \change_inserted 564990737 1672138150
16980
16981 \family sans
16982 label=
16983 \backslash
16984 roman{enumi}
16985 \end_layout
16986
16987 \begin_layout Standard
16988
16989 \change_inserted 564990737 1672138150
16990 in \SpecialChar TeX
16991  Code (shortcut 
16992 \begin_inset Info
16993 type  "shortcut"
16994 arg   "ert-insert"
16995 \end_inset
16996
16997 ).
16998 \end_layout
16999
17000 \begin_layout Standard
17001
17002 \change_inserted 564990737 1672138150
17003
17004 \family sans
17005 enumi
17006 \family default
17007  is the first level counter of the enumeration.
17008  To change the numbering for the list sublevels,
17009  replace the “
17010 \family sans
17011 i
17012 \family default
17013 ” in the command by the small Roman numeral of the level (
17014 \family sans
17015 enumi
17016 \family default
17017 ,
17018  
17019 \family sans
17020 enumii
17021 \family default
17022 ,
17023  
17024 \family sans
17025 enumiii
17026 \family default
17027 ,
17028  
17029 \family sans
17030 enumiv
17031 \family default
17032 ).
17033 \end_layout
17034
17035 \begin_layout Standard
17036
17037 \change_inserted 564990737 1672138150
17038 The command 
17039 \family sans
17040
17041 \backslash
17042 roman
17043 \family default
17044  outputs the counter as a small Roman numeral.
17045  For capital Roman numerals replace 
17046 \family sans
17047
17048 \backslash
17049 roman
17050 \family default
17051  with 
17052 \family sans
17053
17054 \backslash
17055 Roman
17056 \family default
17057  in the command above.
17058  For Arabic numerals use 
17059 \family sans
17060
17061 \backslash
17062 arabic
17063 \family default
17064 .
17065  To 
17066 \begin_inset Quotes eld
17067 \end_inset
17068
17069 number
17070 \begin_inset Quotes erd
17071 \end_inset
17072
17073  items with capital or small Latin letters use 
17074 \family sans
17075
17076 \backslash
17077 Alph
17078 \family default
17079  or 
17080 \family sans
17081
17082 \backslash
17083 alph
17084 \family default
17085 ,
17086  respectively.
17087 \end_layout
17088
17089 \begin_layout Standard
17090 \noindent
17091
17092 \change_inserted 564990737 1672138150
17093 \begin_inset Note Greyedout
17094 status collapsed
17095
17096 \begin_layout Plain Layout
17097
17098 \change_inserted 564990737 1672138150
17099
17100 \series bold
17101 Note:
17102
17103 \series default
17104  You can only number 26
17105 \begin_inset space ~
17106 \end_inset
17107
17108 items with Latin letters,
17109  because this numbering is limited to single letters.
17110 \end_layout
17111
17112 \end_inset
17113
17114
17115 \end_layout
17116
17117 \begin_layout Standard
17118
17119 \change_inserted 564990737 1672138150
17120 Here is a list with custom numbering:
17121 \end_layout
17122
17123 \begin_layout Enumerate
17124
17125 \change_inserted 564990737 1672138150
17126 \begin_inset Argument 1
17127 status collapsed
17128
17129 \begin_layout Plain Layout
17130
17131 \change_inserted 564990737 1672138150
17132 \begin_inset ERT
17133 status collapsed
17134
17135 \begin_layout Plain Layout
17136
17137 \change_inserted 564990737 1672138150
17138
17139 label=
17140 \backslash
17141 #
17142 \backslash
17143 Alph{enumi}
17144 \backslash
17145 #
17146 \end_layout
17147
17148 \end_inset
17149
17150
17151 \change_unchanged
17152
17153 \end_layout
17154
17155 \end_inset
17156
17157 Level 1
17158 \begin_inset Separator latexpar
17159 \end_inset
17160
17161
17162 \end_layout
17163
17164 \begin_deeper
17165 \begin_layout Enumerate
17166
17167 \change_inserted 564990737 1672138150
17168 \begin_inset Argument 1
17169 status collapsed
17170
17171 \begin_layout Plain Layout
17172
17173 \change_inserted 564990737 1672138150
17174 \begin_inset ERT
17175 status collapsed
17176
17177 \begin_layout Plain Layout
17178
17179 \change_inserted 564990737 1672138150
17180
17181 label=
17182 \backslash
17183 Alph{enumi}.
17184 \backslash
17185 arabic{enumii}
17186 \end_layout
17187
17188 \end_inset
17189
17190
17191 \change_unchanged
17192
17193 \end_layout
17194
17195 \end_inset
17196
17197 Level 2
17198 \end_layout
17199
17200 \begin_layout Enumerate
17201
17202 \change_inserted 564990737 1672138150
17203 Level 2
17204 \begin_inset Separator latexpar
17205 \end_inset
17206
17207
17208 \end_layout
17209
17210 \begin_deeper
17211 \begin_layout Enumerate
17212
17213 \change_inserted 564990737 1672138150
17214 \begin_inset Argument 1
17215 status collapsed
17216
17217 \begin_layout Plain Layout
17218
17219 \change_inserted 564990737 1672138150
17220 \begin_inset ERT
17221 status collapsed
17222
17223 \begin_layout Plain Layout
17224
17225 \change_inserted 564990737 1672138150
17226
17227 label=
17228 \change_deleted 274215730 1672889016
17229
17230 \backslash
17231 bf
17232 \change_inserted 274215730 1672889016
17233
17234 \backslash
17235 bfseries
17236 \change_inserted 564990737 1672138150
17237 {
17238 \backslash
17239 arabic{enumiii}}
17240 \end_layout
17241
17242 \end_inset
17243
17244
17245 \change_unchanged
17246
17247 \end_layout
17248
17249 \end_inset
17250
17251 Level 3
17252 \begin_inset Separator latexpar
17253 \end_inset
17254
17255
17256 \end_layout
17257
17258 \begin_deeper
17259 \begin_layout Enumerate
17260
17261 \change_inserted 564990737 1672138150
17262 \begin_inset Argument 1
17263 status collapsed
17264
17265 \begin_layout Plain Layout
17266
17267 \change_inserted 564990737 1672138150
17268 \begin_inset ERT
17269 status collapsed
17270
17271 \begin_layout Plain Layout
17272
17273 \change_inserted 564990737 1672138150
17274
17275 label=
17276 \backslash
17277 emph{
17278 \backslash
17279 roman{enumiv})}
17280 \end_layout
17281
17282 \end_inset
17283
17284
17285 \change_unchanged
17286
17287 \end_layout
17288
17289 \end_inset
17290
17291 Level 4
17292 \end_layout
17293
17294 \end_deeper
17295 \end_deeper
17296 \end_deeper
17297 \begin_layout Standard
17298
17299 \change_inserted 564990737 1672138150
17300 For this list these commands were used:
17301 \end_layout
17302
17303 \begin_layout Standard
17304 \noindent
17305
17306 \change_inserted 564990737 1672138150
17307
17308 \family sans
17309 label=
17310 \backslash
17311 #
17312 \backslash
17313 Alph{enumi}
17314 \backslash
17315 #
17316 \begin_inset Newline newline
17317 \end_inset
17318
17319 label=
17320 \backslash
17321 Alph{enumi}.
17322 \backslash
17323 arabic{enumii}
17324 \begin_inset Newline newline
17325 \end_inset
17326
17327 label=
17328 \change_deleted 274215730 1672889037
17329
17330 \backslash
17331 bf
17332 \change_inserted 274215730 1672889037
17333
17334 \backslash
17335 bfseries
17336 \change_inserted 564990737 1672138150
17337 {
17338 \backslash
17339 arabic{enumiii}}
17340 \begin_inset Newline newline
17341 \end_inset
17342
17343 label=
17344 \backslash
17345 emph{
17346 \backslash
17347 roman{enumiv})}
17348 \end_layout
17349
17350 \begin_layout Standard
17351
17352 \change_inserted 564990737 1672138150
17353 where the command 
17354 \family sans
17355
17356 \backslash
17357 emph{}
17358 \family default
17359  makes the label emphasized and 
17360 \change_deleted 274215730 1672889045
17361
17362 \family sans
17363
17364 \backslash
17365 bf{}
17366 \change_inserted 274215730 1672889046
17367
17368 \backslash
17369 bfseries{}
17370 \change_inserted 564990737 1672138150
17371
17372 \family default
17373  makes it bold.
17374 \end_layout
17375
17376 \begin_layout Standard
17377
17378 \change_inserted 564990737 1672138150
17379 \begin_inset Note Greyedout
17380 status collapsed
17381
17382 \begin_layout Plain Layout
17383
17384 \change_inserted 564990737 1672138150
17385
17386 \series bold
17387 Note:
17388
17389 \series default
17390  When you change the label of a list level,
17391  it will be used for all following lists until you change the definition.
17392 \end_layout
17393
17394 \end_inset
17395
17396
17397 \end_layout
17398
17399 \begin_layout Standard
17400
17401 \change_inserted 564990737 1672138150
17402 \begin_inset ERT
17403 status open
17404
17405 \begin_layout Plain Layout
17406
17407 \change_inserted 564990737 1672138150
17408
17409
17410 \backslash
17411 renewcommand{
17412 \backslash
17413 labelenumi}{
17414 \backslash
17415 thesection.
17416 \backslash
17417 arabic{enumi}}
17418 \end_layout
17419
17420 \end_inset
17421
17422
17423 \end_layout
17424
17425 \begin_layout Subsubsection
17426
17427 \change_inserted 564990737 1672138150
17428 Numbered Paragraphs in Reports
17429 \end_layout
17430
17431 \begin_layout Enumerate
17432
17433 \change_inserted 564990737 1672138213
17434 Official reports often include numbered paragraphs;
17435  you can achieve this with a variation on the approach outlined in the footnote
17436 \begin_inset space ~
17437 \end_inset
17438
17439
17440 \begin_inset CommandInset ref
17441 LatexCommand ref
17442 reference "fn:If-you-really"
17443 plural "false"
17444 caps "false"
17445 noprefix "false"
17446 nolink "false"
17447
17448 \end_inset
17449
17450 .
17451  Replace 
17452 \family sans
17453 item
17454 \family default
17455  in each command with 
17456 \family sans
17457 enum
17458 \family default
17459 .
17460 \end_layout
17461
17462 \begin_layout Enumerate
17463
17464 \change_inserted 564990737 1672138150
17465 These numbered paragraphs were generated by inserting the \SpecialChar TeX
17466  Code
17467 \begin_inset Separator latexpar
17468 \end_inset
17469
17470
17471 \end_layout
17472
17473 \begin_deeper
17474 \begin_layout Standard
17475
17476 \change_inserted 564990737 1672138150
17477
17478 \family sans
17479
17480 \backslash
17481 renewcommand{
17482 \backslash
17483 labelenumi}{
17484 \backslash
17485 thesection.
17486 \backslash
17487 arabic{enumi}}
17488 \end_layout
17489
17490 \begin_layout Standard
17491
17492 \change_inserted 564990737 1672138150
17493 before the start of the section;
17494  
17495 \family sans
17496
17497 \backslash
17498 thesection
17499 \family default
17500  uses the \SpecialChar LaTeX
17501  section counter to generate the first part of the number.
17502 \end_layout
17503
17504 \end_deeper
17505 \begin_layout Enumerate
17506
17507 \change_inserted 564990737 1672138150
17508 I have ignored the subsection heading in this example because,
17509  with paragraphs numbered in this way,
17510  subsections are less likely to be used.
17511 \end_layout
17512
17513 \begin_layout Subsubsection
17514
17515 \change_inserted 564990737 1672138150
17516 Resumed Enumeration
17517 \end_layout
17518
17519 \begin_layout Standard
17520
17521 \change_inserted 564990737 1672138150
17522 \begin_inset ERT
17523 status open
17524
17525 \begin_layout Plain Layout
17526
17527 \change_inserted 564990737 1672138150
17528
17529
17530 \backslash
17531 renewcommand{
17532 \backslash
17533 labelenumi}{
17534 \backslash
17535 arabic{enumi}}
17536 \end_layout
17537
17538 \end_inset
17539
17540
17541 \end_layout
17542
17543 \begin_layout Standard
17544
17545 \change_inserted 564990737 1672138150
17546 Enumerations can be resumed after intermediate paragraphs:
17547 \end_layout
17548
17549 \begin_layout Enumerate
17550
17551 \change_inserted 564990737 1672138150
17552 \begin_inset Argument 1
17553 status collapsed
17554
17555 \begin_layout Plain Layout
17556
17557 \change_inserted 564990737 1672138150
17558 \begin_inset ERT
17559 status collapsed
17560
17561 \begin_layout Plain Layout
17562
17563 \change_inserted 564990737 1672138150
17564
17565 label=
17566 \backslash
17567 arabic{enumi}.
17568 \end_layout
17569
17570 \end_inset
17571
17572
17573 \change_unchanged
17574
17575 \end_layout
17576
17577 \end_inset
17578
17579 first
17580 \begin_inset Note Note
17581 status collapsed
17582
17583 \begin_layout Plain Layout
17584
17585 \change_inserted 564990737 1672138150
17586 goes back to default numbering
17587 \end_layout
17588
17589 \end_inset
17590
17591
17592 \end_layout
17593
17594 \begin_layout Enumerate
17595
17596 \change_inserted 564990737 1672138150
17597 second
17598 \end_layout
17599
17600 \begin_layout Standard
17601
17602 \change_inserted 564990737 1672138150
17603 regular text
17604 \end_layout
17605
17606 \begin_layout Enumerate-Resume
17607
17608 \change_inserted 564990737 1672138150
17609 resumed
17610 \end_layout
17611
17612 \begin_layout Standard
17613
17614 \change_inserted 564990737 1672138150
17615 To resume an enumeration,
17616  use the style 
17617 \family sans
17618 Enumerate-Resume
17619 \family default
17620 .
17621  Its numbering appears in blue within \SpecialChar LyX
17622  to indicate that it is a resumed list and that the numbering will not be correct in \SpecialChar LyX
17623 ,
17624  but in the output.
17625 \end_layout
17626
17627 \begin_layout Standard
17628
17629 \change_inserted 564990737 1672138150
17630 \begin_inset Note Greyedout
17631 status collapsed
17632
17633 \begin_layout Plain Layout
17634
17635 \change_inserted 564990737 1672138150
17636
17637 \series bold
17638 Note:
17639
17640 \series default
17641  If there is no previous enumeration to resume,
17642  you will get a \SpecialChar LaTeX
17643  error.
17644 \end_layout
17645
17646 \end_inset
17647
17648
17649 \end_layout
17650
17651 \begin_layout Standard
17652
17653 \change_inserted 564990737 1672138150
17654 Perhaps you might want to resume the list with a different number from the next one.
17655  Or you want to start a new enumeration with a defined number.
17656  This is possible by adding an optional argument to the first list item of a normal enumeration.
17657  There,
17658  insert the command
17659 \end_layout
17660
17661 \begin_layout Standard
17662
17663 \change_inserted 564990737 1672138150
17664
17665 \family sans
17666 start=number
17667 \end_layout
17668
17669 \begin_layout Standard
17670
17671 \change_inserted 564990737 1672138150
17672 where 
17673 \family sans
17674 number
17675 \family default
17676  is the number with which you want to resume the list.
17677  An example:
17678 \end_layout
17679
17680 \begin_layout Enumerate
17681
17682 \change_inserted 564990737 1672138150
17683 first item
17684 \end_layout
17685
17686 \begin_layout Enumerate
17687
17688 \change_inserted 564990737 1672138150
17689 second item
17690 \end_layout
17691
17692 \begin_layout Standard
17693
17694 \change_inserted 564990737 1672138150
17695 Enumeration starting at a given value:
17696 \end_layout
17697
17698 \begin_layout Enumerate
17699
17700 \change_inserted 564990737 1672138150
17701 \begin_inset Argument 1
17702 status open
17703
17704 \begin_layout Plain Layout
17705
17706 \change_inserted 564990737 1672138150
17707 \begin_inset ERT
17708 status collapsed
17709
17710 \begin_layout Plain Layout
17711
17712 \change_inserted 564990737 1672138150
17713
17714 start=4
17715 \end_layout
17716
17717 \end_inset
17718
17719
17720 \change_unchanged
17721
17722 \end_layout
17723
17724 \end_inset
17725
17726 This enumeration starts at 4
17727 \end_layout
17728
17729 \begin_layout Subsubsection
17730
17731 \change_inserted 564990737 1672138150
17732 List Spacing
17733 \begin_inset Index idx
17734 range none
17735 pageformat default
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739
17740 \change_inserted 564990737 1672138150
17741 Lists !
17742  Spacing
17743 \change_unchanged
17744
17745 \end_layout
17746
17747 \end_inset
17748
17749
17750 \end_layout
17751
17752 \begin_layout Standard
17753
17754 \change_inserted 564990737 1672138150
17755 In some cases you might want less or more vertical space between the items of a list.
17756  For example if the default space is too much in your opinion in this case:
17757 \end_layout
17758
17759 \begin_layout Itemize
17760
17761 \change_inserted 564990737 1672138150
17762 A bullet list
17763 \end_layout
17764
17765 \begin_layout Itemize
17766
17767 \change_inserted 564990737 1672138150
17768 with standard spacing 
17769 \end_layout
17770
17771 \begin_layout Standard
17772
17773 \change_inserted 564990737 1672138150
17774 You can decrease the space by adding an optional argument to the first item of the list.
17775  Add there the command 
17776 \family sans
17777 nolistsep
17778 \family default
17779  to get no additional list space like in this example:
17780 \end_layout
17781
17782 \begin_layout Itemize
17783
17784 \change_inserted 564990737 1672138150
17785 \begin_inset Argument 1
17786 status open
17787
17788 \begin_layout Plain Layout
17789
17790 \change_inserted 564990737 1672138150
17791 \begin_inset ERT
17792 status collapsed
17793
17794 \begin_layout Plain Layout
17795
17796 \change_inserted 564990737 1672138150
17797
17798 nolistsep
17799 \end_layout
17800
17801 \end_inset
17802
17803
17804 \change_unchanged
17805
17806 \end_layout
17807
17808 \end_inset
17809
17810 A bullet list
17811 \end_layout
17812
17813 \begin_layout Itemize
17814
17815 \change_inserted 564990737 1672138150
17816 without additional
17817 \end_layout
17818
17819 \begin_layout Itemize
17820
17821 \change_inserted 564990737 1672138150
17822 vertical space
17823 \end_layout
17824
17825 \begin_layout Standard
17826
17827 \change_inserted 564990737 1672138150
17828 To add space you can use several other commands provided by the 
17829 \family sans
17830 enumitem
17831 \family default
17832
17833 \begin_inset Index idx
17834 range none
17835 pageformat default
17836 status collapsed
17837
17838 \begin_layout Plain Layout
17839
17840 \change_inserted 564990737 1672138150
17841 \SpecialChar LaTeX
17842 -packages !
17843  enumitem
17844 \change_unchanged
17845
17846 \end_layout
17847
17848 \end_inset
17849
17850  package.
17851  For more information see the 
17852 \begin_inset CommandInset href
17853 LatexCommand href
17854 name "enumitem documentation"
17855 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
17856 literal "false"
17857
17858 \end_inset
17859
17860 .
17861 \end_layout
17862
17863 \begin_layout Standard
17864
17865 \change_inserted 564990737 1672138150
17866 There are also many commands available to change the horizontal spacing and indentation.
17867  Here is an example where the indentation was changed to that of the paragraphs in the document and the label separation was set to 2
17868 \begin_inset space \thinspace{}
17869 \end_inset
17870
17871 cm so that the number is in the page margin:
17872 \end_layout
17873
17874 \begin_layout Enumerate
17875
17876 \change_inserted 564990737 1672138150
17877 \begin_inset Argument 1
17878 status open
17879
17880 \begin_layout Plain Layout
17881
17882 \change_inserted 564990737 1672138150
17883 \begin_inset ERT
17884 status collapsed
17885
17886 \begin_layout Plain Layout
17887
17888 \change_inserted 564990737 1672138150
17889
17890 labelindent=
17891 \backslash
17892 parindent,
17893  labelsep=2cm
17894 \end_layout
17895
17896 \end_inset
17897
17898
17899 \change_unchanged
17900
17901 \end_layout
17902
17903 \end_inset
17904
17905 An enumeration
17906 \end_layout
17907
17908 \begin_layout Enumerate
17909
17910 \change_inserted 564990737 1672138150
17911 with negative indentation
17912 \end_layout
17913
17914 \begin_layout Subsubsection
17915
17916 \change_inserted 564990737 1672138150
17917 Further Customization
17918 \begin_inset Index idx
17919 range none
17920 pageformat default
17921 status collapsed
17922
17923 \begin_layout Plain Layout
17924
17925 \change_inserted 564990737 1672138150
17926 Lists !
17927  Customization
17928 \change_unchanged
17929
17930 \end_layout
17931
17932 \end_inset
17933
17934
17935 \end_layout
17936
17937 \begin_layout Standard
17938
17939 \change_inserted 564990737 1672138150
17940 You can also change the style of description lists.
17941  The command
17942 \end_layout
17943
17944 \begin_layout Standard
17945
17946 \change_inserted 564990737 1672138150
17947
17948 \family sans
17949 font=definition
17950 \end_layout
17951
17952 \begin_layout Standard
17953
17954 \change_inserted 564990737 1672138150
17955 changes the description label font,
17956  the command
17957 \end_layout
17958
17959 \begin_layout Standard
17960
17961 \change_inserted 564990737 1672138150
17962
17963 \family sans
17964 style=definitio
17965 \family default
17966 \series bold
17967 n
17968 \end_layout
17969
17970 \begin_layout Standard
17971
17972 \change_inserted 564990737 1672138150
17973 sets the list style.
17974 \end_layout
17975
17976 \begin_layout Standard
17977
17978 \change_inserted 564990737 1672138150
17979 An example where the command
17980 \end_layout
17981
17982 \begin_layout Standard
17983
17984 \change_inserted 564990737 1672138150
17985
17986 \family sans
17987 font=
17988 \backslash
17989 itshape,
17990  style=nextline
17991 \end_layout
17992
17993 \begin_layout Standard
17994
17995 \change_inserted 564990737 1672138150
17996 is used:
17997 \end_layout
17998
17999 \begin_layout Description
18000
18001 \change_inserted 564990737 1672138150
18002 Ionizing
18003 \begin_inset space ~
18004 \end_inset
18005
18006 radiation:
18007  
18008 \begin_inset Argument 1
18009 status collapsed
18010
18011 \begin_layout Plain Layout
18012
18013 \change_inserted 564990737 1672138150
18014 \begin_inset ERT
18015 status collapsed
18016
18017 \begin_layout Plain Layout
18018
18019 \change_inserted 564990737 1672138150
18020
18021 labelindent=0pt,
18022  labelsep=1cm,
18023  font=
18024 \backslash
18025 itshape,
18026  style=nextline
18027 \end_layout
18028
18029 \end_inset
18030
18031
18032 \change_unchanged
18033
18034 \end_layout
18035
18036 \end_inset
18037
18038 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
18039  therefore ionizing them.
18040 \end_layout
18041
18042 \begin_layout Description
18043
18044 \change_inserted 564990737 1672138150
18045 Reference
18046 \begin_inset space ~
18047 \end_inset
18048
18049 counting:
18050  In computer science,
18051  reference counting is a technique of storing the number of references,
18052  pointers,
18053  or handles to a resource such as an object,
18054  block of memory,
18055  disk space or other resource.
18056 \end_layout
18057
18058 \begin_layout Standard
18059
18060 \change_inserted 564990737 1672138150
18061 There are many more commands and features provided by the 
18062 \family sans
18063 enumitem
18064 \family default
18065
18066 \begin_inset Index idx
18067 range none
18068 pageformat default
18069 status collapsed
18070
18071 \begin_layout Plain Layout
18072
18073 \change_inserted 564990737 1672138150
18074 \SpecialChar LaTeX
18075 -packages !
18076  enumitem
18077 \change_unchanged
18078
18079 \end_layout
18080
18081 \end_inset
18082
18083  package.
18084  For more information see the 
18085 \begin_inset CommandInset href
18086 LatexCommand href
18087 name "enumitem documentation"
18088 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
18089 literal "false"
18090
18091 \end_inset
18092
18093 .
18094 \end_layout
18095
18096 \begin_layout Subsection
18097
18098 \change_inserted 564990737 1672138150
18099
18100 \series bold
18101 Paragraph Lists
18102 \end_layout
18103
18104 \begin_layout Standard
18105
18106 \change_inserted 564990737 1672138150
18107 This module uses the package 
18108 \family sans
18109 paralist
18110 \family default
18111  to provide nine new list environments.
18112  Itemized and enumerated lists can be typeset within paragraphs,
18113  as paragraphs and in a compact version.
18114  Most environments have optional arguments to format the labels.
18115  Additionally,
18116  the \SpecialChar LaTeX
18117  list environments itemize and enumerate are extended to use a similar optional argument.
18118  For further details see 
18119 \family sans
18120 File\SpecialChar menuseparator
18121 Open Example\SpecialChar menuseparator
18122 Modules\SpecialChar menuseparator
18123 Paragraph Lists (paralist)
18124 \family default
18125 ,
18126  
18127 \family sans
18128 Help\SpecialChar menuseparator
18129 Specific Manuals\SpecialChar menuseparator
18130 Paralist
18131 \family default
18132  and the 
18133 \begin_inset CommandInset href
18134 LatexCommand href
18135 name "paralist documentation"
18136 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
18137 literal "false"
18138
18139 \end_inset
18140
18141 .
18142 \end_layout
18143
18144 \begin_layout Section
18145
18146 \change_inserted 564990737 1672161542
18147 Literate Programming 
18148 \end_layout
18149
18150 \begin_layout Subsection
18151
18152 \change_inserted 564990737 1672161542
18153 Noweb
18154 \end_layout
18155
18156 \begin_layout Standard
18157
18158 \change_inserted 564990737 1672161542
18159 This module allows the use of Noweb as a literate programming tool.
18160  The files and the documentation for Noweb can be obtained from 
18161 \begin_inset CommandInset href
18162 LatexCommand href
18163 name "CTAN"
18164 target "https://www.ctan.org/pkg/noweb"
18165 literal "false"
18166
18167 \end_inset
18168
18169 .
18170  Literate programming is described in section
18171 \begin_inset space ~
18172 \end_inset
18173
18174
18175 \begin_inset CommandInset ref
18176 LatexCommand ref
18177 reference "sec:Literate-Programming"
18178 nolink "false"
18179
18180 \end_inset
18181
18182  and there are three example files:
18183  
18184 \family sans
18185 File\SpecialChar menuseparator
18186 Open Example\SpecialChar menuseparator
18187 Modules\SpecialChar menuseparator
18188 Noweb
18189 \family default
18190 ,
18191  
18192 \family sans
18193 File\SpecialChar menuseparator
18194 Open Example\SpecialChar menuseparator
18195 Modules\SpecialChar menuseparator
18196 Noweb Listerrors
18197 \family default
18198  and 
18199 \family sans
18200 File\SpecialChar menuseparator
18201 Open Example\SpecialChar menuseparator
18202 Modules\SpecialChar menuseparator
18203 Noweb2\SpecialChar LyX
18204
18205 \family default
18206 .
18207 \end_layout
18208
18209 \begin_layout Subsection
18210
18211 \change_inserted 564990737 1672161542
18212 Rnw (knitr)
18213 \end_layout
18214
18215 \begin_layout Standard
18216
18217 \change_inserted 564990737 1672161542
18218 This module uses the 
18219 \family typewriter
18220 knitr
18221 \family default
18222  and 
18223 \family sans
18224 includernw
18225 \family default
18226  packages.
18227  The
18228 \begin_inset Flex Code
18229 status collapsed
18230
18231 \begin_layout Plain Layout
18232
18233 \change_inserted 564990737 1672161542
18234 knitr
18235 \change_unchanged
18236
18237 \end_layout
18238
18239 \end_inset
18240
18241  package in R for dynamic report generation has to be installed for this module to work:
18242  
18243 \begin_inset Flex Code
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247
18248 \change_inserted 564990737 1672161542
18249 install.packages(“knitr”)
18250 \change_unchanged
18251
18252 \end_layout
18253
18254 \end_inset
18255
18256 .
18257  
18258 \end_layout
18259
18260 \begin_layout Paragraph
18261
18262 \change_inserted 564990737 1672161542
18263 Note 
18264 \end_layout
18265
18266 \begin_layout Standard
18267
18268 \change_inserted 564990737 1672161542
18269 it depends on R >= 2.14.1.
18270  For more info see 
18271 \begin_inset Flex URL
18272 status collapsed
18273
18274 \begin_layout Plain Layout
18275
18276 \change_inserted 564990737 1672161542
18277
18278 http://yihui.name/knitr
18279 \change_unchanged
18280
18281 \end_layout
18282
18283 \end_inset
18284
18285 .
18286  
18287 \end_layout
18288
18289 \begin_layout Standard
18290
18291 \change_inserted 564990737 1672161542
18292 The package 
18293 \family sans
18294 includernw
18295 \family default
18296  also has to be installed.
18297  It cannot be used if the modules 
18298 \family sans
18299 LilyPond
18300 \begin_inset space ~
18301 \end_inset
18302
18303 Book
18304 \family default
18305  or 
18306 \family sans
18307 Sweave
18308 \family default
18309  are loaded.
18310  See 
18311 \family sans
18312 Help\SpecialChar menuseparator
18313 Specific Manuals\SpecialChar menuseparator
18314 Knitr
18315 \family default
18316 ,
18317  
18318 \family sans
18319 File\SpecialChar menuseparator
18320 Open Example\SpecialChar menuseparator
18321 Modules\SpecialChar menuseparator
18322 Rnw (knitr)
18323 \family default
18324  and section
18325 \begin_inset space ~
18326 \end_inset
18327
18328
18329 \begin_inset CommandInset ref
18330 LatexCommand ref
18331 reference "sec:Literate-Programming"
18332 nolink "false"
18333
18334 \end_inset
18335
18336  for information about literate programming.
18337 \end_layout
18338
18339 \begin_layout Subsection
18340
18341 \change_inserted 564990737 1672161542
18342 Sweave
18343 \end_layout
18344
18345 \begin_layout Standard
18346
18347 \change_inserted 564990737 1672161542
18348 This module allows the use of the statistical language S/R as a literate programming tool.
18349  It requires the 
18350 \family sans
18351 includernw
18352 \family default
18353  and 
18354 \family sans
18355 fancyvrb
18356 \family default
18357  packages.
18358  Both 
18359 \begin_inset CommandInset href
18360 LatexCommand href
18361 name "includernw"
18362 target "https://www.ctan.org/pkg/includernw"
18363 literal "false"
18364
18365 \end_inset
18366
18367  and 
18368 \begin_inset CommandInset href
18369 LatexCommand href
18370 name "fancyvrb"
18371 target "https://www.ctan.org/pkg/fancyvrb"
18372 literal "false"
18373
18374 \end_inset
18375
18376  are available from CTAN.
18377  It cannot be used if the module 
18378 \family sans
18379 LilyPond
18380 \begin_inset space ~
18381 \end_inset
18382
18383 Book
18384 \family default
18385  has been loaded.
18386  See 
18387 \family sans
18388 Help\SpecialChar menuseparator
18389 Specific Manuals\SpecialChar menuseparator
18390 Sweave,
18391
18392 \family default
18393  
18394 \family sans
18395 File\SpecialChar menuseparator
18396 Open Example\SpecialChar menuseparator
18397 Modules\SpecialChar menuseparator
18398 Sweave
18399 \family default
18400  and section
18401 \begin_inset space ~
18402 \end_inset
18403
18404
18405 \begin_inset CommandInset ref
18406 LatexCommand ref
18407 reference "sec:Literate-Programming"
18408 nolink "false"
18409
18410 \end_inset
18411
18412  for information about literate programming.
18413 \end_layout
18414
18415 \begin_layout Section
18416
18417 \change_inserted 564990737 1672224959
18418 Maths
18419 \end_layout
18420
18421 \begin_layout Subsection
18422
18423 \change_inserted 564990737 1672224959
18424 AMS Theorems
18425 \end_layout
18426
18427 \begin_layout Standard
18428
18429 \change_inserted 564990737 1672224959
18430 This modules defines theorem environments and the proof environment using the extended AMS machinery.
18431  Both numbered and unnumbered types are provided.
18432  By default,
18433  the theorems are numbered consecutively throughout the document.
18434  This can be changed by loading one of the 
18435 \family sans
18436 AMS Theorems (Numbered by \SpecialChar ldots
18437 )
18438 \family default
18439  modules.
18440  It cannot be used if the modules 
18441 \family sans
18442 Standard Theorems
18443 \family default
18444  or 
18445 \family sans
18446 Standard Theorems (Unnumbered)
18447 \family default
18448  have been loaded.
18449 \end_layout
18450
18451 \begin_layout Subsection
18452
18453 \change_inserted 564990737 1672224959
18454 AMS Theorems (Extended)
18455 \end_layout
18456
18457 \begin_layout Standard
18458
18459 \change_inserted 564990737 1672224959
18460 This module defines some additional theorem environments for use with the 
18461 \family sans
18462 AMS Theorems
18463 \family default
18464  package (which must be loaded).
18465  It includes Criterion,
18466  Algorithm,
18467  Axiom,
18468  Condition,
18469  Note,
18470  Notation,
18471  Summary,
18472  Acknowledgement,
18473  Conclusion,
18474  Fact,
18475  Assumption,
18476  Case and Question in both numbered and unnumbered forms.
18477 \end_layout
18478
18479 \begin_layout Subsection
18480
18481 \change_inserted 564990737 1672224959
18482 AMS Theorems (Extended,
18483  Numbered by Type within Chapters)
18484 \end_layout
18485
18486 \begin_layout Standard
18487
18488 \change_inserted 564990737 1672224959
18489 This module defines some additional theorem environments for use with the 
18490 \family sans
18491 AMS Theorems (Numbered by Type within Chapters)
18492 \family default
18493  package (which must be loaded).
18494  It includes Criterion,
18495  Algorithm,
18496  Axiom,
18497  Condition,
18498  Note,
18499  Notation,
18500  Summary,
18501  Acknowledgement,
18502  Conclusion,
18503  Assumption and Case in both numbered and unnumbered forms.
18504  Unlike the 
18505 \family sans
18506 AMS Theorems (Extended)
18507 \family default
18508  module,
18509  the different theorem types provided here each have a separate counter,
18510  restarted with each new chapter (e.g.,
18511  criterion 1.1,
18512  criterion 1.2,
18513  axiom 1.1,
18514  assumption 1.1,
18515  criterion 2.1,
18516  criterion 2.2,
18517  axiom 2.1\SpecialChar ldots
18518 ,
18519  as opposed to criterion 1,
18520  criterion 2,
18521  axiom 3,
18522  assumption 4...).
18523 \end_layout
18524
18525 \begin_layout Subsection
18526
18527 \change_inserted 564990737 1672224959
18528 AMS Theorems (Extended,
18529  Numbered by Type)
18530 \end_layout
18531
18532 \begin_layout Standard
18533
18534 \change_inserted 564990737 1672224959
18535 This module defines some additional theorem environments for use with the 
18536 \family sans
18537 AMS Theorems (Numbered by Type)
18538 \family default
18539  package (which must be loaded).
18540  It includes Criterion,
18541  Algorithm,
18542  Axiom,
18543  Condition,
18544  Note,
18545  Notation,
18546  Summary,
18547  Acknowledgement,
18548  Conclusion,
18549  Assumption and Case in both numbered and unnumbered forms.
18550  Unlike the 
18551 \family sans
18552 AMS Theorems (Extended)
18553 \family default
18554  module,
18555  the different theorem types provided here each have a separate counter (e.g.,
18556  criterion 1,
18557  criterion 2,
18558  axiom 1,
18559  assumption 1,
18560  criterion 3,
18561  \SpecialChar ldots
18562 ,
18563  as opposed to criterion 1,
18564  criterion 2,
18565  axiom 3,
18566  assumption 4,
18567  \SpecialChar ldots
18568 ).
18569 \end_layout
18570
18571 \begin_layout Subsection
18572
18573 \change_inserted 564990737 1672224959
18574 AMS Theorems (Numbered by Type within Chapters) 
18575 \end_layout
18576
18577 \begin_layout Standard
18578
18579 \change_inserted 564990737 1672224959
18580 This module defines theorem environments and the proof environment using the extended AMS machinery.
18581  Both numbered and unnumbered types are provided.
18582  Unlike the 
18583 \family sans
18584 AMS Theorems
18585 \family default
18586  module,
18587  the different theorem types provided here each have a separate counter (e.g.,
18588  theorem 1.1,
18589  theorem 1.2,
18590  lemma 1.1,
18591  proposition 1.1,
18592  theorem 1.3,
18593  lemma 1.2,
18594  \SpecialChar ldots
18595 ,
18596  as opposed to theorem 1,
18597  theorem 2,
18598  lemma 3,
18599  proposition 4,
18600  \SpecialChar ldots
18601 ).
18602  The numbering restarts for each chapter:
18603  theorem 1.1,
18604  theorem 2.1,
18605  \SpecialChar ldots
18606  It cannot be used if the modules 
18607 \family sans
18608 AMS Theorems
18609 \family default
18610 ,
18611  
18612 \family sans
18613 Standard Theorems
18614 \family default
18615 ,
18616
18617 \family sans
18618  Standard Theorems (Numbered by Type)
18619 \family default
18620  or
18621 \family sans
18622  Standard Theorems (Unnumbered)
18623 \family default
18624  have been loaded.
18625 \end_layout
18626
18627 \begin_layout Subsection
18628
18629 \change_inserted 564990737 1672224959
18630 AMS Theorems (Numbered by Type)
18631 \end_layout
18632
18633 \begin_layout Standard
18634
18635 \change_inserted 564990737 1672224959
18636 This module defines theorem environments and the proof environment using the extended AMS machinery.
18637  Both numbered and unnumbered types are provided.
18638  Unlike the 
18639 \family sans
18640 AMS Theorems
18641 \family default
18642  module,
18643  the different theorem types provided here each have a separate counter (e.g.,
18644  theorem 1,
18645  theorem 2,
18646  lemma 1,
18647  proposition 1,
18648  theorem 3,
18649  lemma 2,
18650  \SpecialChar ldots
18651 ,
18652  as opposed to theorem 1,
18653  theorem 2,
18654  lemma 3,
18655  proposition 4,
18656  \SpecialChar ldots
18657 ).
18658  The numbering’s scope is the whole document.
18659  For chapter- and section-wide numbering,
18660  use one of the ‘within Sections’/‘within Chapters’ modules,
18661  respectively.
18662  It cannot be used if the modules 
18663 \family sans
18664 AMS Theorems
18665 \family default
18666 ,
18667  
18668 \family sans
18669 Standard Theorems
18670 \family default
18671 ,
18672
18673 \family sans
18674  Standard Theorems (Numbered by Type)
18675 \family default
18676  or
18677 \family sans
18678  Standard Theorems (Unnumbered)
18679 \family default
18680  have been loaded.
18681 \end_layout
18682
18683 \begin_layout Subsection
18684
18685 \change_inserted 564990737 1672224959
18686 Number Equations by Section
18687 \end_layout
18688
18689 \begin_layout Standard
18690
18691 \change_inserted 564990737 1672224959
18692 This module resets the equation number at section start and prepends the section number to the equation number,
18693  as in “(2.1).” 
18694 \end_layout
18695
18696 \begin_layout Subsection
18697
18698 \change_inserted 564990737 1672224959
18699 Standard Theorems
18700 \end_layout
18701
18702 \begin_layout Standard
18703
18704 \change_inserted 564990737 1672224959
18705 This module defines some theorem environments for use with non-AMS classes.
18706  By default,
18707  the theorems are numbered consecutively throughout the document.
18708  This can be changed by loading one of the 
18709 \family sans
18710 Standard Theorems (Numbered by \SpecialChar ldots
18711 )
18712 \family default
18713  modules.
18714  It cannot be used if the modules 
18715 \family sans
18716 AMS Theorems
18717 \family default
18718  or
18719 \family sans
18720  Standard Theorems (Unnumbered)
18721 \family default
18722  have been loaded.
18723  
18724 \end_layout
18725
18726 \begin_layout Subsection
18727
18728 \change_inserted 564990737 1672224959
18729 Standard Theorems (Nameable)
18730 \end_layout
18731
18732 \begin_layout Standard
18733
18734 \change_inserted 564990737 1672224959
18735 This module facilitates the use of named theorems.
18736  The name of the theorem goes into the “Additional Theorem Text” argument.
18737  
18738 \end_layout
18739
18740 \begin_layout Subsection
18741
18742 \change_inserted 564990737 1672224959
18743 Standard Theorems (Numbered by Chapter)
18744 \end_layout
18745
18746 \begin_layout Standard
18747
18748 \change_inserted 564990737 1672224959
18749 This module numbers theorems and the like by chapter (i.e.,
18750  the counter is reset at each chapter start).
18751  Use this module only with document classes that provide a chapter environment.
18752  One of the modules 
18753 \family sans
18754 AMS Theorems
18755 \family default
18756  or 
18757 \family sans
18758 Standard Theorems
18759 \family default
18760  must be loaded.
18761  It cannot be used if the module
18762 \family sans
18763  Standard Theorems (Numbered by Section)
18764 \family default
18765  has been loaded.
18766 \end_layout
18767
18768 \begin_layout Subsection
18769
18770 \change_inserted 564990737 1672224959
18771 Standard Theorems (Numbered by Section)
18772 \end_layout
18773
18774 \begin_layout Standard
18775
18776 \change_inserted 564990737 1672224959
18777 This module numbers theorems and the like by section (i.e.,
18778  the counter is reset at each section start).
18779  One of the modules 
18780 \family sans
18781 AMS Theorems
18782 \family default
18783  or 
18784 \family sans
18785 Standard Theorems
18786 \family default
18787  must be loaded.
18788  It cannot be used if the module
18789 \family sans
18790  Standard Theorems (Numbered by Chapter)
18791 \family default
18792  has been loaded.
18793 \end_layout
18794
18795 \begin_layout Subsection
18796
18797 \change_inserted 564990737 1672224959
18798 Standard Theorems (Numbered by Type within Chapters) 
18799 \end_layout
18800
18801 \begin_layout Standard
18802
18803 \change_inserted 564990737 1672224959
18804 This module defines some theorem environments for use with non-AMS classes.
18805  Unlike the
18806 \family sans
18807  AMS Theorems
18808 \family default
18809  and 
18810 \family sans
18811 Standard Theorems
18812 \family default
18813  modules,
18814  the different theorem types provided here each have a separate counter (e.g.,
18815  theorem 1,
18816  theorem 2,
18817  lemma 1,
18818  proposition 1,
18819  theorem 3,
18820  lemma 2,
18821  \SpecialChar ldots
18822 ,
18823  as opposed to theorem 1,
18824  theorem 2,
18825  lemma 3,
18826  proposition 4,
18827  \SpecialChar ldots
18828 ).
18829  The numbering is reset at each chapter start.
18830  One of the modules 
18831 \family sans
18832 AMS Theorems (Numbered by Type)
18833 \family default
18834  or 
18835 \family sans
18836 Standard Theorems (Numbered by Type)
18837 \family default
18838  must be loaded.
18839  It cannot be used if any of the modules
18840 \family sans
18841  AMS Theorems
18842 \family default
18843 ,
18844  
18845 \family sans
18846 Standard Theorems
18847 \family default
18848 ,
18849  
18850 \family sans
18851 Standard Theorems (Unnumbered)
18852 \family default
18853 ,
18854
18855 \family sans
18856  Standard Theorems (Numbered by Sections)
18857 \family default
18858  or 
18859 \family sans
18860 Standard Theorems (Numbered by Type within Sections)
18861 \family default
18862  have been loaded.
18863 \end_layout
18864
18865 \begin_layout Subsection
18866
18867 \change_inserted 564990737 1672224959
18868 Standard Theorems (Numbered by Type within Sections) 
18869 \end_layout
18870
18871 \begin_layout Standard
18872
18873 \change_inserted 564990737 1672224959
18874 This module defines some theorem environments for use with non-AMS classes.
18875  Unlike the
18876 \family sans
18877  AMS Theorems
18878 \family default
18879  and 
18880 \family sans
18881 Standard Theorems
18882 \family default
18883  modules,
18884  the different theorem types provided here each have a separate counter (e.g.,
18885  theorem 1,
18886  theorem 2,
18887  lemma 1,
18888  proposition 1,
18889  theorem 3,
18890  lemma 2,
18891  \SpecialChar ldots
18892 ,
18893  as opposed to theorem 1,
18894  theorem 2,
18895  lemma 3,
18896  proposition 4,
18897  \SpecialChar ldots
18898 ).
18899  The numbering is reset at each section start.
18900  One of the modules 
18901 \family sans
18902 AMS Theorems (Numbered by Type)
18903 \family default
18904  or 
18905 \family sans
18906 Standard Theorems (Numbered by Type)
18907 \family default
18908  must be loaded.
18909  It cannot be used if any of the modules
18910 \family sans
18911  AMS Theorems
18912 \family default
18913 ,
18914  
18915 \family sans
18916 Standard Theorems
18917 \family default
18918 ,
18919  
18920 \family sans
18921 Standard Theorems (Unnumbered)
18922 \family default
18923 ,
18924
18925 \family sans
18926  Standard Theorems (Numbered by Chapters)
18927 \family default
18928  or 
18929 \family sans
18930 Standard Theorems (Numbered by Type within Chapters)
18931 \family default
18932  have been loaded.
18933 \end_layout
18934
18935 \begin_layout Subsection
18936
18937 \change_inserted 564990737 1672224959
18938 Standard Theorems (Numbered by Type)
18939 \end_layout
18940
18941 \begin_layout Standard
18942
18943 \change_inserted 564990737 1672224959
18944 This module defines some theorem environments for use with non-AMS classes.
18945  Unlike the 
18946 \family sans
18947 AMS Theorems
18948 \family default
18949  and 
18950 \family sans
18951 Standard Theorems
18952 \family default
18953  modules,
18954  the different theorem types provided here each have a separate counter (e.g.,
18955  theorem 1,
18956  theorem 2,
18957  lemma 1,
18958  proposition 1,
18959  theorem 3,
18960  lemma 2,
18961  \SpecialChar ldots
18962 ,
18963  as opposed to theorem 1,
18964  theorem 2,
18965  lemma 3,
18966  proposition 4,
18967  \SpecialChar ldots
18968 ).
18969  The numbering’s scope is the whole document.
18970  For chapter- and section-wide numbering,
18971  use one of the “within Chapters”/“within Sections” modules,
18972  respectively.
18973  It cannot be used if any of the modules
18974 \family sans
18975  AMS Theorems
18976 \family default
18977 ,
18978  
18979 \family sans
18980 Standard Theorems
18981 \family default
18982 ,
18983  
18984 \family sans
18985 Standard Theorems (Unnumbered)
18986 \family default
18987  or
18988 \family sans
18989  AMS Theorems (Numbered by Type)
18990 \family default
18991  have been loaded.
18992 \end_layout
18993
18994 \begin_layout Subsection
18995
18996 \change_inserted 564990737 1672224959
18997 Standard Theorems (Unnumbered)
18998 \end_layout
18999
19000 \begin_layout Standard
19001
19002 \change_inserted 564990737 1672224959
19003 This module defines only unnumbered theorem environments and the proof environment,
19004  using the extended AMS machinery.
19005  It cannot be used if either of the modules
19006 \family sans
19007  AMS Theorems
19008 \family default
19009  or
19010 \family sans
19011  Standard Theorems
19012 \family default
19013  have been loaded.
19014 \end_layout
19015
19016 \begin_layout Subsection
19017
19018 \change_inserted 564990737 1672224959
19019 Subequations
19020 \end_layout
19021
19022 \begin_layout Standard
19023
19024 \change_inserted 564990737 1672224959
19025 This module provides a straightforward way to segregate subequations in LyX.
19026  See 
19027 \family sans
19028 Help\SpecialChar menuseparator
19029 Math\SpecialChar menuseparator
19030 Subnumbering
19031 \family default
19032 .
19033  
19034 \end_layout
19035
19036 \begin_layout Section
19037
19038 \change_inserted 564990737 1672236008
19039 Page Layout
19040 \end_layout
19041
19042 \begin_layout Subsection
19043
19044 \change_inserted 564990737 1672236008
19045 Custom Header/Footer Text
19046 \end_layout
19047
19048 \begin_layout Standard
19049
19050 \change_inserted 564990737 1672236008
19051 This module requires the 
19052 \family sans
19053 Page
19054 \begin_inset space ~
19055 \end_inset
19056
19057
19058 \bar under
19059 s
19060 \bar default
19061 tyle
19062 \family default
19063  option in the 
19064 \family sans
19065 \bar under
19066 D
19067 \bar default
19068 ocument\SpecialChar menuseparator
19069
19070 \bar under
19071 S
19072 \bar default
19073 ettings\SpecialChar menuseparator
19074 Page
19075 \begin_inset space ~
19076 \end_inset
19077
19078 Layout
19079 \family default
19080  dialog to be set to 
19081 \family typewriter
19082 fancy
19083 \family default
19084 .
19085  It adds six environments to document classes which support the 
19086 \family typewriter
19087 fancyhdr
19088 \family default
19089  package:
19090 \end_layout
19091
19092 \begin_layout Itemize
19093
19094 \change_inserted 564990737 1672236008
19095
19096 \family sans
19097 Left Header
19098 \end_layout
19099
19100 \begin_layout Itemize
19101
19102 \change_inserted 564990737 1672236008
19103
19104 \family sans
19105 Center Header
19106 \end_layout
19107
19108 \begin_layout Itemize
19109
19110 \change_inserted 564990737 1672236008
19111
19112 \family sans
19113 Right Header
19114 \end_layout
19115
19116 \begin_layout Itemize
19117
19118 \change_inserted 564990737 1672236008
19119
19120 \family sans
19121 Left Footer
19122 \end_layout
19123
19124 \begin_layout Itemize
19125
19126 \change_inserted 564990737 1672236008
19127
19128 \family sans
19129 Center Footer
19130 \end_layout
19131
19132 \begin_layout Itemize
19133
19134 \change_inserted 564990737 1672236008
19135
19136 \family sans
19137 Right Footer
19138 \end_layout
19139
19140 \begin_layout Subsubsection
19141
19142 \change_inserted 564990737 1672236008
19143 Fancy Headers and Footers
19144 \end_layout
19145
19146 \begin_layout Standard
19147
19148 \change_inserted 564990737 1672236008
19149 The default page layout is rather plain;
19150  for an 
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155
19156 \change_inserted 564990737 1672236008
19157 article
19158 \change_unchanged
19159
19160 \end_layout
19161
19162 \end_inset
19163
19164  document class,
19165  all you get is a centered page number at the bottom of the page.
19166  This document uses KOMA-script’s book class;
19167  so it appears to be a bit fancier.
19168  Once the 
19169 \family sans
19170 Page
19171 \begin_inset space ~
19172 \end_inset
19173
19174
19175 \bar under
19176 s
19177 \bar default
19178 tyle
19179 \family default
19180  in 
19181 \family sans
19182 \bar under
19183 D
19184 \bar default
19185 ocument\SpecialChar menuseparator
19186
19187 \bar under
19188 S
19189 \bar default
19190 ettings\SpecialChar menuseparator
19191 Page Layout
19192 \family default
19193  is set to 
19194 \begin_inset Quotes eld
19195 \end_inset
19196
19197 fancy
19198 \begin_inset Quotes erd
19199 \end_inset
19200
19201 ,
19202  you will find that the page header is divided into three fields,
19203  not surprisingly labeled 
19204 \begin_inset Quotes eld
19205 \end_inset
19206
19207 left
19208 \begin_inset Quotes erd
19209 \end_inset
19210
19211 ,
19212  
19213 \begin_inset Quotes eld
19214 \end_inset
19215
19216 center
19217 \begin_inset Quotes erd
19218 \end_inset
19219
19220 ,
19221  and 
19222 \begin_inset Quotes eld
19223 \end_inset
19224
19225 right
19226 \begin_inset Quotes erd
19227 \end_inset
19228
19229 .
19230  The footer is also divided into these three fields.
19231  The \SpecialChar LaTeX
19232  commands to set these fields in the simplest manner are 
19233 \family sans
19234
19235 \backslash
19236 lhead
19237 \family default
19238 ,
19239  
19240 \family sans
19241
19242 \backslash
19243 chead
19244 \family default
19245 ,
19246  
19247 \family sans
19248
19249 \backslash
19250 rhead
19251 \family default
19252 ,
19253  
19254 \family sans
19255
19256 \backslash
19257 lfoot
19258 \family default
19259 ,
19260  etc.
19261  Suppose you wish to put your name in the upper left hand corner of each page.
19262  Simply insert the following command in the preamble:
19263  
19264 \end_layout
19265
19266 \begin_layout Standard
19267
19268 \change_inserted 564990737 1672236008
19269
19270 \family sans
19271
19272 \backslash
19273 lhead
19274 \family default
19275 \series bold
19276 {
19277 \series default
19278 John Q.
19279  DocWriter
19280 \series bold
19281 }
19282 \end_layout
19283
19284 \begin_layout Standard
19285
19286 \change_inserted 564990737 1672236008
19287 You will now see your name in the upper left.
19288  If a field has a default entry that you would like to get rid of (often the page number appears in the central footer) simply include a command with a blank argument,
19289  e.
19290 \begin_inset space \thinspace{}
19291 \end_inset
19292
19293 g.:
19294 \end_layout
19295
19296 \begin_layout Standard
19297
19298 \change_inserted 564990737 1672236008
19299
19300 \family sans
19301
19302 \backslash
19303 cfoot{}
19304 \end_layout
19305
19306 \begin_layout Standard
19307
19308 \change_inserted 564990737 1672236008
19309 There is,
19310  however,
19311  an easier way to make simple changes.
19312  If you load the 
19313 \family sans
19314 \bar under
19315 D
19316 \bar default
19317 ocument\SpecialChar menuseparator
19318
19319 \bar under
19320 S
19321 \bar default
19322 ettings\SpecialChar menuseparator
19323 Modules\SpecialChar menuseparator
19324 Page Layout\SpecialChar menuseparator
19325 Custom Header/Footer Text
19326 \family default
19327  module,
19328  you will find you have six new environments corresponding to the six fields described above.
19329 \end_layout
19330
19331 \begin_layout Standard
19332
19333 \change_inserted 564990737 1672236008
19334 Let's get really fancy:
19335  lets put the section number with the word 
19336 \begin_inset Quotes eld
19337 \end_inset
19338
19339 Section
19340 \begin_inset Quotes erd
19341 \end_inset
19342
19343  (e.
19344 \begin_inset space \thinspace{}
19345 \end_inset
19346
19347 g.
19348 \begin_inset space \space{}
19349 \end_inset
19350
19351 Section 3) in the upper left,
19352  the page number (e.
19353 \begin_inset space \thinspace{}
19354 \end_inset
19355
19356 g.
19357 \begin_inset space \space{}
19358 \end_inset
19359
19360 Page 4) in the upper right,
19361  your name in the lower left,
19362  and the date in the lower right.
19363  Use your newly enabled environments to add these entries:
19364 \end_layout
19365
19366 \begin_layout Standard
19367
19368 \change_inserted 564990737 1672236008
19369 \begin_inset VSpace defskip
19370 \end_inset
19371
19372
19373 \end_layout
19374
19375 \begin_layout Standard
19376
19377 \change_inserted 564990737 1672236008
19378
19379 \color green
19380 Left
19381 \begin_inset space ~
19382 \end_inset
19383
19384 header:
19385
19386 \series bold
19387 \color inherit
19388  
19389 \series default
19390 Section
19391 \family typewriter
19392  
19393 \family sans
19394
19395 \backslash
19396 thesection
19397 \end_layout
19398
19399 \begin_layout Standard
19400
19401 \change_inserted 564990737 1672236008
19402
19403 \color green
19404 Center header:
19405 \end_layout
19406
19407 \begin_layout Standard
19408
19409 \change_inserted 564990737 1672236008
19410
19411 \color green
19412 Right header:
19413
19414 \color inherit
19415  Page
19416 \family typewriter
19417  
19418 \family sans
19419
19420 \backslash
19421 thepage
19422 \end_layout
19423
19424 \begin_layout Standard
19425
19426 \change_inserted 564990737 1672236008
19427
19428 \color green
19429 Left footer:
19430
19431 \color inherit
19432  John Q.
19433  DocWriter
19434 \end_layout
19435
19436 \begin_layout Standard
19437
19438 \change_inserted 564990737 1672236008
19439
19440 \color green
19441 Center footer:
19442 \end_layout
19443
19444 \begin_layout Standard
19445
19446 \change_inserted 564990737 1672236008
19447
19448 \color green
19449 Right footer:
19450
19451 \series bold
19452 \color inherit
19453  
19454 \family sans
19455 \series default
19456
19457 \backslash
19458 today
19459 \end_layout
19460
19461 \begin_layout Standard
19462
19463 \change_inserted 564990737 1672236008
19464 \begin_inset VSpace defskip
19465 \end_inset
19466
19467
19468 \end_layout
19469
19470 \begin_layout Standard
19471
19472 \change_inserted 564990737 1672236008
19473 Make sure you enter the commands 
19474 \family sans
19475
19476 \backslash
19477 thesection
19478 \family default
19479 ,
19480  
19481 \family sans
19482
19483 \backslash
19484 thepage
19485 \family default
19486  and 
19487 \family sans
19488
19489 \backslash
19490 today
19491 \family default
19492  as \SpecialChar TeX
19493  Code commands
19494 \series bold
19495 .
19496
19497 \series default
19498  The commands 
19499 \family sans
19500
19501 \backslash
19502 thesection
19503 \family default
19504  and 
19505 \family sans
19506
19507 \backslash
19508 thepage
19509 \family default
19510  access \SpecialChar LaTeX
19511 ’s section and page counters,
19512  and so print out the current section and page numbers.
19513  
19514 \family sans
19515
19516 \backslash
19517 today
19518 \family default
19519  simply prints out today’s date.
19520 \end_layout
19521
19522 \begin_layout Standard
19523
19524 \change_inserted 564990737 1672236008
19525 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
19526  If you don't want one of the rules,
19527  set its thickness to 0.
19528  The header rule has a default thickness of 0.4pt,
19529  the footer rule is 0pt.
19530  For this you will need to use \SpecialChar TeX
19531  Code commands like 
19532 \end_layout
19533
19534 \begin_layout Standard
19535
19536 \change_inserted 564990737 1672236008
19537
19538 \family sans
19539
19540 \backslash
19541 renewcommand{
19542 \backslash
19543 headrulewidth}{0.4pt}
19544 \family default
19545  and 
19546 \end_layout
19547
19548 \begin_layout Standard
19549
19550 \change_inserted 564990737 1672236008
19551
19552 \family sans
19553
19554 \backslash
19555 renewcommand{
19556 \backslash
19557 footrulewidth}{0.4pt}
19558 \family default
19559  to set the thicknesses.
19560 \end_layout
19561
19562 \begin_layout Standard
19563
19564 \change_inserted 564990737 1672236008
19565 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
19566  Code commands like 
19567 \family sans
19568
19569 \backslash
19570 thispagestyle{empty}
19571 \family default
19572 ,
19573  
19574 \family sans
19575
19576 \backslash
19577 thispagestyle{plain}
19578 \family default
19579 ,
19580  and 
19581 \family sans
19582
19583 \backslash
19584 thispagestyle{fancy}
19585 \family default
19586 .
19587  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
19588  code.
19589  In fact,
19590  title pages are marked as plain by default,
19591  while following pages are marked fancy when using the global fancy setting.
19592  
19593 \end_layout
19594
19595 \begin_layout Standard
19596
19597 \change_inserted 564990737 1672236008
19598 If you want a header or footer to be on the outer side of a two sided document,
19599  you need to use something like:
19600 \end_layout
19601
19602 \begin_layout Standard
19603
19604 \change_inserted 564990737 1672236008
19605
19606 \family sans
19607 \begin_inset Flex Strong
19608 status collapsed
19609
19610 \begin_layout Plain Layout
19611
19612 \change_inserted 564990737 1672236008
19613
19614 \family sans
19615 \series medium
19616
19617 \backslash
19618 fancyfoot{}
19619 \change_unchanged
19620
19621 \end_layout
19622
19623 \end_inset
19624
19625
19626 \end_layout
19627
19628 \begin_layout Standard
19629
19630 \change_inserted 564990737 1672236008
19631
19632 \family sans
19633 \begin_inset Flex Strong
19634 status collapsed
19635
19636 \begin_layout Plain Layout
19637
19638 \change_inserted 564990737 1672236008
19639
19640 \family sans
19641 \series medium
19642
19643 \backslash
19644 fancyfoot[LE,RO]{
19645 \backslash
19646 thepage}
19647 \change_unchanged
19648
19649 \end_layout
19650
19651 \end_inset
19652
19653
19654 \end_layout
19655
19656 \begin_layout Standard
19657
19658 \change_inserted 564990737 1672236008
19659 The first command clears all existing footers avoiding any conflicts with your new command.
19660 \end_layout
19661
19662 \begin_layout Standard
19663
19664 \change_inserted 564990737 1672236008
19665 You can enter any of these commands,
19666  the simpler ones in any of your new environments,
19667  the more complex ones as \SpecialChar TeX
19668  Code commands,
19669  at any point in your document and they will take effect on the next page.
19670 \end_layout
19671
19672 \begin_layout Standard
19673
19674 \change_inserted 564990737 1672236008
19675 As a final example,
19676  it is possible to include an image in the header or footer.
19677  Suppose you want to put a company logo in the upper left hand corner.
19678  You might try something like
19679 \end_layout
19680
19681 \begin_layout Standard
19682
19683 \change_inserted 564990737 1672236008
19684
19685 \family sans
19686
19687 \backslash
19688 lhead{
19689 \backslash
19690 resizebox{1in}{!}{
19691 \backslash
19692 includegraphics{logo.eps}}}
19693 \end_layout
19694
19695 \begin_layout Standard
19696 \noindent
19697
19698 \change_inserted 564990737 1672236008
19699 (you may need to preface this with 
19700 \family sans
19701
19702 \backslash
19703 usepackage{graphics}
19704 \family default
19705  if you don't include graphics elsewhere in your document).
19706 \end_layout
19707
19708 \begin_layout Standard
19709
19710 \change_inserted 564990737 1672236008
19711 For more information on fancy headers,
19712  you can get the 
19713 \begin_inset Flex Code
19714 status collapsed
19715
19716 \begin_layout Plain Layout
19717
19718 \change_inserted 564990737 1672236008
19719 fancyhdr
19720 \change_unchanged
19721
19722 \end_layout
19723
19724 \end_inset
19725
19726  documentation from 
19727 \begin_inset CommandInset href
19728 LatexCommand href
19729 name "CTAN"
19730 target "http://www.ctan.org/pkg/fancyhdr"
19731 literal "false"
19732
19733 \end_inset
19734
19735 .
19736  
19737 \end_layout
19738
19739 \begin_layout Subsection
19740
19741 \change_inserted 564990737 1672236008
19742 Landscape Document Parts
19743 \end_layout
19744
19745 \begin_layout Standard
19746
19747 \change_inserted 564990737 1672236008
19748 This module outputs parts of the document in landscape mode using 
19749 \family sans
19750 Insert\SpecialChar menuseparator
19751 Custom Insets\SpecialChar menuseparator
19752 Landscape
19753 \family default
19754  or 
19755 \family sans
19756 Insert\SpecialChar menuseparator
19757 Custom Insets\SpecialChar menuseparator
19758 Landscape (Floating)
19759 \family default
19760 .
19761 \end_layout
19762
19763 \begin_layout Subsection
19764
19765 \change_inserted 564990737 1672236008
19766 \begin_inset CommandInset label
19767 LatexCommand label
19768 name "sec:Multiple-Columns"
19769
19770 \end_inset
19771
19772 Multiple Columns
19773 \end_layout
19774
19775 \begin_layout Standard
19776
19777 \change_inserted 564990737 1672236008
19778 This module uses the 
19779 \family sans
19780 multicol
19781 \family default
19782
19783 \begin_inset Index idx
19784 range none
19785 pageformat default
19786 status collapsed
19787
19788 \begin_layout Plain Layout
19789
19790 \change_inserted 564990737 1672236008
19791 \SpecialChar LaTeX
19792 -packages !
19793  multicol
19794 \change_unchanged
19795
19796 \end_layout
19797
19798 \end_inset
19799
19800  package and is independent of the option 
19801 \family sans
19802 Two-
19803 \bar under
19804 c
19805 \bar default
19806 olumn document
19807 \family default
19808  in the 
19809 \family sans
19810 \bar under
19811 D
19812 \bar default
19813 ocument\SpecialChar menuseparator
19814
19815 \bar under
19816 S
19817 \bar default
19818 ettings\SpecialChar menuseparator
19819 Text
19820 \begin_inset space ~
19821 \end_inset
19822
19823 Layout
19824 \family default
19825  dialog.
19826  If you want to have two columns for the whole document,
19827  you are recommended to use the 
19828 \family sans
19829 Two-
19830 \bar under
19831 c
19832 \bar default
19833 olumn document
19834 \family default
19835  option.
19836  For all other cases use this module.
19837 \change_deleted 564990737 1672236008
19838 Multiple Text Columns
19839 \end_layout
19840
19841 \begin_layout Standard
19842
19843 \change_deleted 564990737 1672236008
19844 This feature is independent of the option 
19845 \family sans
19846 Two-column document
19847 \family default
19848  in the document settings under 
19849 \family sans
19850 Text Layout
19851 \family default
19852 .
19853  If you want to have 2
19854 \begin_inset space ~
19855 \end_inset
19856
19857 columns for the whole document,
19858  it is recommended to use the 
19859 \family sans
19860 Two-column document
19861 \family default
19862  option.
19863  For all other cases use this feature.
19864 \end_layout
19865
19866 \begin_layout Standard
19867
19868 \change_deleted 564990737 1672236008
19869 To use multiple text columns in your document,
19870  you have to load the module 
19871 \family sans
19872 Multiple Columns
19873 \family default
19874  (menu 
19875 \family sans
19876 Document\SpecialChar menuseparator
19877 Settings\SpecialChar menuseparator
19878 Modules
19879 \family default
19880 ) and must have the \SpecialChar LaTeX
19881 -package 
19882 \begin_inset Flex Code
19883 status collapsed
19884
19885 \begin_layout Plain Layout
19886 multicol
19887 \end_layout
19888
19889 \end_inset
19890
19891  installed.
19892 \change_unchanged
19893
19894 \end_layout
19895
19896 \begin_layout Standard
19897 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
19898  Within the different columns you can use everything,
19899  with the limitation that for floats you need to 
19900 \change_deleted 564990737 1672236179
19901 use the float option 
19902 \family sans
19903 Span columns
19904 \change_inserted 564990737 1672236179
19905
19906 \family default
19907 check the option 
19908 \family sans
19909 \bar under
19910 S
19911 \bar default
19912 pan
19913 \begin_inset space ~
19914 \end_inset
19915
19916 columns
19917 \family default
19918  in 
19919 \family sans
19920 \bar under
19921 E
19922 \bar default
19923 dit\SpecialChar menuseparator
19924 Flo
19925 \bar under
19926 a
19927 \bar default
19928 t
19929 \begin_inset space ~
19930 \end_inset
19931
19932 Settings
19933 \change_unchanged
19934
19935 \family default
19936 .
19937 \end_layout
19938
19939 \begin_layout Subsubsection
19940 Basics
19941 \end_layout
19942
19943 \begin_layout Standard
19944 If you want to have 2
19945 \begin_inset space ~
19946 \end_inset
19947
19948 columns in your text,
19949  insert a multicolumn inset via the menu 
19950 \family sans
19951 Insert\SpecialChar menuseparator
19952 Custom
19953 \begin_inset space ~
19954 \end_inset
19955
19956 Insets\SpecialChar menuseparator
19957 Multiple
19958 \begin_inset space ~
19959 \end_inset
19960
19961 Columns
19962 \family default
19963  where the columns should start.
19964  Write all text that should be printed in 2
19965 \begin_inset space ~
19966 \end_inset
19967
19968 columns into this inset.
19969 \end_layout
19970
19971 \begin_layout Standard
19972 Here is an example:
19973 \end_layout
19974
19975 \begin_layout Standard
19976 \noindent
19977 \begin_inset Flex Multiple Columns
19978 status open
19979
19980 \begin_layout Plain Layout
19981 \noindent
19982
19983 \series bold
19984 \size small
19985 The Adventure of the Empty House
19986 \series default
19987
19988 \begin_inset Newline newline
19989 \end_inset
19990
19991 by Sir Arthur Conan Doyle
19992 \end_layout
19993
19994 \begin_layout Plain Layout
19995
19996 \size small
19997 It was in the spring of the year 1894 that all London was interested,
19998  and the fashionable world dismayed,
19999  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
20000  The public has already learned those particulars of the crime which came out in the police investigation,
20001  but a good deal was suppressed upon that occasion,
20002  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
20003  Only now,
20004  at the end of nearly ten years,
20005  am I allowed to supply those missing links which make up the whole of that remarkable chain.
20006  The crime was of interest in itself,
20007  but that interest was as nothing to me compared to the inconceivable sequel,
20008  which afforded me the greatest shock and surprise of any event in my adventurous life.
20009  Even now,
20010  after this long interval,
20011  I find myself thrilling as I think of it,
20012  and feeling once more that sudden flood of joy,
20013  amazement,
20014  and incredulity which utterly submerged my mind.
20015  Let me say to that public,
20016  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
20017  that they are not to blame me if I have not shared my knowledge with them,
20018  for I should have considered it my first duty to do so,
20019  had I not been barred by a positive prohibition from his own lips,
20020  which was only withdrawn upon the third of last month.
20021 \end_layout
20022
20023 \end_inset
20024
20025
20026 \end_layout
20027
20028 \begin_layout Standard
20029 To get 3 or more columns,
20030  set the cursor into the multicolumn inset and use the menu 
20031 \family sans
20032 Insert\SpecialChar menuseparator
20033 Number
20034 \begin_inset space ~
20035 \end_inset
20036
20037 of
20038 \begin_inset space ~
20039 \end_inset
20040
20041 Columns
20042 \family default
20043 .
20044  The number of the desired columns is written into that inset (for 3
20045 \begin_inset space ~
20046 \end_inset
20047
20048 columns write 
20049 \begin_inset Quotes eld
20050 \end_inset
20051
20052 3
20053 \begin_inset Quotes erd
20054 \end_inset
20055
20056 ).
20057 \begin_inset Newline newline
20058 \end_inset
20059
20060 Here is an example with 3
20061 \begin_inset space ~
20062 \end_inset
20063
20064 columns:
20065 \end_layout
20066
20067 \begin_layout Standard
20068 \begin_inset Flex Multiple Columns
20069 status open
20070
20071 \begin_layout Plain Layout
20072
20073 \size footnotesize
20074 \begin_inset Argument 1
20075 status open
20076
20077 \begin_layout Plain Layout
20078
20079 3
20080 \end_layout
20081
20082 \end_inset
20083
20084 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
20085  and that after his disappearance I never failed to read with care the various problems which came before the public.
20086  And I even attempted,
20087  more than once,
20088  for my own private satisfaction,
20089  to employ his methods in their solution,
20090  though with indifferent success.
20091  There was none,
20092  however,
20093  which appealed to me like this tragedy of Ronald Adair.
20094  As I read the evidence at the inquest,
20095  which led up to a verdict of willful murder against some person or persons unknown,
20096  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
20097  There were points about this strange business which would,
20098  I was sure,
20099  have specially appealed to him,
20100  and the efforts of the police would have been supplemented,
20101  or more probably anticipated,
20102  by the trained observation and the alert mind of the first criminal agent in Europe.
20103  All day,
20104  as I drove upon my round,
20105  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
20106  At the risk of telling a twice-told tale,
20107  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
20108 \end_layout
20109
20110 \end_inset
20111
20112
20113 \end_layout
20114
20115 \begin_layout Standard
20116 You can have up to 10
20117 \begin_inset space ~
20118 \end_inset
20119
20120 columns if you want to,
20121  but that might not be very pleasant for the readers of your document.
20122 \end_layout
20123
20124 \begin_layout Standard
20125
20126 \change_deleted 564990737 1672236245
20127 \begin_inset Newpage newpage
20128 \end_inset
20129
20130
20131 \change_unchanged
20132
20133 \end_layout
20134
20135 \begin_layout Subsubsection
20136 Columns inside Columns
20137 \end_layout
20138
20139 \begin_layout Standard
20140 You can also have columns inside columns:
20141 \end_layout
20142
20143 \begin_layout Standard
20144 \begin_inset Flex Multiple Columns
20145 status open
20146
20147 \begin_layout Plain Layout
20148
20149 \size footnotesize
20150 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20151  at that time governor of one of the Australian colonies.
20152  Adair's mother had returned from Australia to undergo the operation for cataract,
20153  and she,
20154  her son Ronald,
20155  and her daughter Hilda were living together at 427 Park Lane.
20156 \end_layout
20157
20158 \begin_layout Plain Layout
20159 \begin_inset Flex Multiple Columns
20160 status open
20161
20162 \begin_layout Plain Layout
20163
20164 \size footnotesize
20165 The youth moved in the best society
20166 \begin_inset space ~
20167 \end_inset
20168
20169 – had,
20170  so far as was known,
20171  no enemies and no particular vices.
20172  He had been engaged to Miss Edith Woodley,
20173  of Carstairs,
20174  but the engagement had been broken off by mutual consent some months before,
20175  and there was no sign that it had left any very profound feeling behind it.
20176  For the rest {sic} the man's life moved in a narrow and conventional circle,
20177  for his habits were quiet and his nature unemotional.
20178  Yet it was upon this easy-going young aristocrat that death came,
20179  in most strange and unexpected form,
20180  between the hours of ten and eleven-twenty on the night of March 30,
20181  1894.
20182 \end_layout
20183
20184 \end_inset
20185
20186
20187 \end_layout
20188
20189 \begin_layout Plain Layout
20190
20191 \size footnotesize
20192 Ronald Adair was fond of cards
20193 \begin_inset space ~
20194 \end_inset
20195
20196 – playing continually,
20197  but never for such stakes as would hurt him.
20198  He was a member of the Baldwin,
20199  the Cavendish,
20200  and the Bagatelle card clubs.
20201  It was shown that,
20202  after dinner on the day of his death,
20203  he had played a rubber of whist at the latter club.
20204  He had also played there in the afternoon.
20205
20206 \size default
20207  
20208 \size footnotesize
20209 The evidence of those who had played with him
20210 \begin_inset space ~
20211 \end_inset
20212
20213 – Mr.
20214  Murray,
20215  Sir John Hardy,
20216  and Colonel Moran
20217 \begin_inset space ~
20218 \end_inset
20219
20220 – showed that the game was whist,
20221  and that there was a fairly equal fall of the cards.
20222  Adair might have lost five pounds,
20223  but not more.
20224  His fortune was a considerable one,
20225  and such a loss could not in any way affect him.
20226  He had played nearly every day at one club or other,
20227  but he was a cautious player,
20228  and usually rose a winner.
20229  It came out in evidence that,
20230  in partnership with Colonel Moran,
20231  he had actually won as much as four hundred and twenty pounds in a sitting,
20232  some weeks before,
20233  from Godfrey Milner and Lord Balmoral.
20234  So much for his recent history as it came out at the inquest.
20235 \end_layout
20236
20237 \end_inset
20238
20239
20240 \end_layout
20241
20242 \begin_layout Subsubsection
20243 Advanced Examples
20244 \end_layout
20245
20246 \begin_layout Standard
20247 The examples in this section show some more special features of multiple columns.
20248 \end_layout
20249
20250 \begin_layout Standard
20251 For more features of multiple columns,
20252  have a look at the 
20253 \begin_inset CommandInset href
20254 LatexCommand href
20255 name "documentation"
20256 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
20257 literal "false"
20258
20259 \end_inset
20260
20261  of the \SpecialChar LaTeX
20262 -package 
20263 \begin_inset Flex Code
20264 status collapsed
20265
20266 \begin_layout Plain Layout
20267 multicol
20268 \end_layout
20269
20270 \end_inset
20271
20272 .
20273 \end_layout
20274
20275 \begin_layout Paragraph
20276 Preface
20277 \end_layout
20278
20279 \begin_layout Standard
20280 To add a preface text for multiple columns,
20281  set the cursor into the multicolumn inset and use the menu 
20282 \family sans
20283 Insert\SpecialChar menuseparator
20284 Preface
20285 \family default
20286 .
20287  Write your preface text into that inset.
20288 \begin_inset Newline newline
20289 \end_inset
20290
20291 This is an example with some preface text:
20292 \end_layout
20293
20294 \begin_layout Standard
20295 \begin_inset VSpace bigskip
20296 \end_inset
20297
20298
20299 \end_layout
20300
20301 \begin_layout Standard
20302 \begin_inset Flex Multiple Columns
20303 status open
20304
20305 \begin_layout Plain Layout
20306 \begin_inset Argument 2
20307 status open
20308
20309 \begin_layout Plain Layout
20310 And the story continues and continues and continues and continues\SpecialChar ldots
20311
20312 \end_layout
20313
20314 \end_inset
20315
20316
20317 \size small
20318 On the evening of the crime,
20319  he returned from the club exactly at ten.
20320  His mother and sister were out spending the evening with a relation.
20321  The servant deposed that she heard him enter the front room on the second floor,
20322  generally used as his sitting-room.
20323  She had lit a fire there,
20324  and as it smoked she had opened the window.
20325  No sound was heard from the room until eleven-twenty,
20326  the hour of the return of Lady Maynooth and her daughter.
20327  Desiring to say good-night,
20328  she attempted to enter her son's room.
20329  The door was locked on the inside,
20330  and no answer could be got to their cries and knocking.
20331  Help was obtained,
20332  and the door forced.
20333  The unfortunate young man was found lying near the table.
20334  His head had been horribly mutilated by an expanding revolver bullet,
20335  but no weapon of any sort was to be found in the room.
20336 \end_layout
20337
20338 \end_inset
20339
20340
20341 \end_layout
20342
20343 \begin_layout Standard
20344 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
20345  Code.
20346  For example the command
20347 \end_layout
20348
20349 \begin_layout LyX-Code
20350
20351 \backslash
20352 subsection{subsection title}
20353 \end_layout
20354
20355 \begin_layout Standard
20356 creates a subsection.
20357  In this example the preface is a subsubsection:
20358 \end_layout
20359
20360 \begin_layout Standard
20361 \begin_inset Flex Multiple Columns
20362 status open
20363
20364 \begin_layout Plain Layout
20365 \begin_inset Argument 2
20366 status open
20367
20368 \begin_layout Plain Layout
20369 \begin_inset ERT
20370 status collapsed
20371
20372 \begin_layout Plain Layout
20373
20374
20375 \backslash
20376 subsubsection{
20377 \end_layout
20378
20379 \end_inset
20380
20381 This is a subsubsection heading as a preface
20382 \begin_inset ERT
20383 status collapsed
20384
20385 \begin_layout Plain Layout
20386
20387 }
20388 \end_layout
20389
20390 \end_inset
20391
20392
20393 \end_layout
20394
20395 \end_inset
20396
20397
20398 \size small
20399 A minute examination of the circumstances served only to make the case more complex.
20400  In the first place,
20401  no reason could be given why the young man should have fastened the door upon the inside.
20402  There was the possibility that the murderer had done this,
20403  and had afterwards escaped by the window.
20404  The drop was at least twenty feet,
20405  however,
20406  and a bed of crocuses in full bloom lay beneath.
20407  Neither the flowers nor the earth showed any sign of having been disturbed,
20408  nor were there any marks upon the narrow strip of grass which separated the house from the road.
20409  Apparently,
20410  therefore,
20411  it was the young man himself who had fastened the door.
20412  But how did he come by his death?
20413  No one could have climbed up to the window without leaving traces.
20414  Suppose a man had fired through the window,
20415  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
20416  Again,
20417  Park Lane is a frequented thoroughfare;
20418  there is a cab stand within a hundred yards of the house.
20419  No one had heard a shot.
20420 \end_layout
20421
20422 \end_inset
20423
20424
20425 \end_layout
20426
20427 \begin_layout Standard
20428 If there is less vertical space than 6
20429 \begin_inset space ~
20430 \end_inset
20431
20432 text lines is left on the page at the beginning of the multiple columns,
20433  a page break will be inserted before the multiple columns.
20434  Depending on the number of lines of the preface text,
20435  you might want to change this space.
20436  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
20437 \family sans
20438 Insert\SpecialChar menuseparator
20439 Space
20440 \begin_inset space ~
20441 \end_inset
20442
20443 Before
20444 \begin_inset space ~
20445 \end_inset
20446
20447 Page
20448 \begin_inset space ~
20449 \end_inset
20450
20451 Break
20452 \family default
20453 .
20454  Insert into that inset the amount of space like e.
20455 \begin_inset space \thinspace{}
20456 \end_inset
20457
20458 g.
20459 \begin_inset space \space{}
20460 \end_inset
20461
20462
20463 \begin_inset Quotes eld
20464 \end_inset
20465
20466 5cm
20467 \begin_inset Quotes erd
20468 \end_inset
20469
20470 .
20471 \begin_inset Newline newline
20472 \end_inset
20473
20474 In this example the space is set to 7
20475 \begin_inset space ~
20476 \end_inset
20477
20478 text lines by using 
20479 \begin_inset Flex Code
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 7
20484 \backslash
20485 baselineskip
20486 \end_layout
20487
20488 \end_inset
20489
20490  (where the command 
20491 \begin_inset Flex Code
20492 status collapsed
20493
20494 \begin_layout Plain Layout
20495
20496 \backslash
20497 baselineskip
20498 \end_layout
20499
20500 \end_inset
20501
20502  needs to be inserted as \SpecialChar TeX
20503  code):
20504 \end_layout
20505
20506 \begin_layout Standard
20507 \begin_inset Flex Multiple Columns
20508 status open
20509
20510 \begin_layout Plain Layout
20511 \begin_inset Argument 3
20512 status open
20513
20514 \begin_layout Plain Layout
20515 7
20516 \begin_inset ERT
20517 status collapsed
20518
20519 \begin_layout Plain Layout
20520
20521
20522 \backslash
20523 baselineskip
20524 \end_layout
20525
20526 \end_inset
20527
20528
20529 \end_layout
20530
20531 \end_inset
20532
20533
20534 \size small
20535 On the evening of the crime,
20536  he returned from the club exactly at ten.
20537  His mother and sister were out spending the evening with a relation.
20538  The servant deposed that she heard him enter the front room on the second floor,
20539  generally used as his sitting-room.
20540  She had lit a fire there,
20541  and as it smoked she had opened the window.
20542  No sound was heard from the room until eleven-twenty,
20543  the hour of the return of Lady Maynooth and her daughter.
20544  Desiring to say good-night,
20545  she attempted to enter her son's room.
20546  The door was locked on the inside,
20547  and no answer could be got to their cries and knocking.
20548  Help was obtained,
20549  and the door forced.
20550  The unfortunate young man was found lying near the table.
20551  His head had been horribly mutilated by an expanding revolver bullet,
20552  but no weapon of any sort was to be found in the room.
20553 \end_layout
20554
20555 \end_inset
20556
20557
20558 \end_layout
20559
20560 \begin_layout Paragraph
20561 Surrounding Space
20562 \end_layout
20563
20564 \begin_layout Standard
20565 The amount of space before and after multiple columns can be changed by changing the length 
20566 \begin_inset Flex Code
20567 status collapsed
20568
20569 \begin_layout Plain Layout
20570
20571 \backslash
20572 multicolsep
20573 \end_layout
20574
20575 \end_inset
20576
20577 .
20578  For example the command
20579 \end_layout
20580
20581 \begin_layout LyX-Code
20582
20583 \backslash
20584 setlength{
20585 \backslash
20586 multicolsep}{3cm}
20587 \end_layout
20588
20589 \begin_layout Standard
20590 in \SpecialChar TeX
20591  Code changes its value to 3
20592 \begin_inset space \thinspace{}
20593 \end_inset
20594
20595 cm.
20596  The change must be made before the multiple columns' start.
20597  The predefined value is 13
20598 \begin_inset space \thinspace{}
20599 \end_inset
20600
20601 pt.
20602 \end_layout
20603
20604 \begin_layout Standard
20605 For this example 
20606 \begin_inset Flex Code
20607 status collapsed
20608
20609 \begin_layout Plain Layout
20610
20611 \backslash
20612 multicolsep
20613 \end_layout
20614
20615 \end_inset
20616
20617  was set to 2.5
20618 \begin_inset space \thinspace{}
20619 \end_inset
20620
20621 cm:
20622 \end_layout
20623
20624 \begin_layout Standard
20625 \begin_inset ERT
20626 status open
20627
20628 \begin_layout Plain Layout
20629
20630
20631 \backslash
20632 setlength{
20633 \backslash
20634 multicolsep}{2.5cm}
20635 \end_layout
20636
20637 \end_inset
20638
20639
20640 \end_layout
20641
20642 \begin_layout Standard
20643 \begin_inset Flex Multiple Columns
20644 status open
20645
20646 \begin_layout Plain Layout
20647
20648 \size small
20649 All day I turned these facts over in my mind,
20650  endeavouring to hit upon some theory which could reconcile them all,
20651  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
20652  I confess that I made little progress.
20653  In the evening I strolled across the Park,
20654  and found myself about six o'clock at the Oxford Street end of Park Lane.
20655  A group of loafers upon the pavements,
20656  all staring up at a particular window,
20657  directed me to the house which I had come to see.
20658  A tall,
20659  thin man with coloured glasses,
20660  whom I strongly suspected of being a plain-clothes detective,
20661  was pointing out some theory of his own,
20662  while the others crowded round to listen to what he said.
20663  I got as near him as I could,
20664  but his observations seemed to me to be absurd,
20665  so I withdrew again in some disgust.
20666  As I did so I struck against an elderly,
20667  deformed man,
20668  who had been behind me,
20669  and I knocked down several books which he was carrying.
20670 \end_layout
20671
20672 \end_inset
20673
20674
20675 \end_layout
20676
20677 \begin_layout Standard
20678 \begin_inset Note Greyedout
20679 status open
20680
20681 \begin_layout Plain Layout
20682
20683 \series bold
20684 Note:
20685
20686 \series default
20687  The values you set with 
20688 \begin_inset Flex Code
20689 status collapsed
20690
20691 \begin_layout Plain Layout
20692
20693 \backslash
20694 setlength
20695 \end_layout
20696
20697 \end_inset
20698
20699  will be used for all following multiple columns until you change them again.
20700 \end_layout
20701
20702 \end_inset
20703
20704
20705 \end_layout
20706
20707 \begin_layout Standard
20708 \begin_inset ERT
20709 status collapsed
20710
20711 \begin_layout Plain Layout
20712
20713
20714 \backslash
20715 setlength{
20716 \backslash
20717 multicolsep}{13pt}
20718 \end_layout
20719
20720 \end_inset
20721
20722
20723 \begin_inset Note Note
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727 go back to the default
20728 \end_layout
20729
20730 \end_inset
20731
20732
20733 \end_layout
20734
20735 \begin_layout Standard
20736
20737 \change_deleted 564990737 1672236355
20738 \begin_inset Newpage newpage
20739 \end_inset
20740
20741
20742 \change_unchanged
20743
20744 \end_layout
20745
20746 \begin_layout Paragraph
20747 Column Breaks
20748 \end_layout
20749
20750 \begin_layout Standard
20751 A column break can be forced by inserting the command 
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756
20757 \backslash
20758 columnbreak{}
20759 \end_layout
20760
20761 \end_inset
20762
20763  as \SpecialChar TeX
20764  Code to that position in the text where the column should be broken.
20765  Note that this leads in most cases to whitespace in the text.
20766 \begin_inset Newline newline
20767 \end_inset
20768
20769 Here is an example:
20770 \end_layout
20771
20772 \begin_layout Standard
20773 \begin_inset Flex Multiple Columns
20774 status open
20775
20776 \begin_layout Plain Layout
20777
20778 \size small
20779 \begin_inset Quotes eld
20780 \end_inset
20781
20782 You're surprised to see me,
20783  sir,
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787  said he,
20788  in a strange,
20789  croaking voice.
20790 \end_layout
20791
20792 \begin_layout Plain Layout
20793
20794 \size small
20795 I acknowledged that I was.
20796 \end_layout
20797
20798 \begin_layout Plain Layout
20799
20800 \size small
20801 \begin_inset Quotes eld
20802 \end_inset
20803
20804 Well,
20805  I've a conscience,
20806  sir,
20807  and when I chanced to see you go into this house,
20808  as I came hobbling after you,
20809  I thought to myself,
20810  I'll just step in and see that kind gentleman,
20811  and tell him that if I was a bit gruff in my manner there was not any harm meant,
20812  and that I am much obliged to him for picking up my books.
20813 \begin_inset Quotes erd
20814 \end_inset
20815
20816
20817 \end_layout
20818
20819 \begin_layout Plain Layout
20820
20821 \size small
20822 \begin_inset Quotes eld
20823 \end_inset
20824
20825 You make too much of a trifle,
20826 \begin_inset Quotes erd
20827 \end_inset
20828
20829  said I.
20830  
20831 \begin_inset Quotes eld
20832 \end_inset
20833
20834 May I ask how you knew who I was?
20835 \begin_inset Quotes erd
20836 \end_inset
20837
20838  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
20839 \begin_inset ERT
20840 status collapsed
20841
20842 \begin_layout Plain Layout
20843
20844
20845 \backslash
20846 columnbreak{}
20847 \end_layout
20848
20849 \end_inset
20850
20851
20852 \end_layout
20853
20854 \begin_layout Plain Layout
20855
20856 \size small
20857 \begin_inset Quotes eld
20858 \end_inset
20859
20860 Well,
20861  sir,
20862  if it isn't too great a liberty,
20863  I am a neighbour of yours,
20864  for you'll find my little bookshop at the corner of Church Street,
20865  and very happy to see you,
20866  I am sure.
20867  Maybe you collect yourself,
20868  sir.
20869  Here's 
20870 \noun on
20871 British
20872 \begin_inset space ~
20873 \end_inset
20874
20875 Birds
20876 \noun default
20877 ,
20878  and 
20879 \noun on
20880 Catullus
20881 \noun default
20882 ,
20883  and 
20884 \noun on
20885 The Holy War
20886 \noun default
20887
20888 \begin_inset space ~
20889 \end_inset
20890
20891 – a bargain,
20892  every one of them.
20893  With five volumes you could just fill that gap on that second shelf.
20894  It looks untidy,
20895  does it not,
20896  sir?
20897 \begin_inset Quotes erd
20898 \end_inset
20899
20900
20901 \end_layout
20902
20903 \end_inset
20904
20905
20906 \end_layout
20907
20908 \begin_layout Paragraph
20909 Column Separation
20910 \end_layout
20911
20912 \begin_layout Standard
20913 The width of the columns is automatically calculated,
20914  but you can modify the space between the columns.
20915  This is done by changing the length 
20916 \begin_inset Flex Code
20917 status collapsed
20918
20919 \begin_layout Plain Layout
20920
20921 \backslash
20922 columnsep
20923 \end_layout
20924
20925 \end_inset
20926
20927 .
20928  Its predefined value is 10
20929 \begin_inset space \thinspace{}
20930 \end_inset
20931
20932 pt.
20933  Here is an example where 
20934 \begin_inset Flex Code
20935 status collapsed
20936
20937 \begin_layout Plain Layout
20938
20939 \backslash
20940 columnsep
20941 \end_layout
20942
20943 \end_inset
20944
20945  is set to 3
20946 \begin_inset space \thinspace{}
20947 \end_inset
20948
20949 cm:
20950 \end_layout
20951
20952 \begin_layout Standard
20953 \begin_inset ERT
20954 status open
20955
20956 \begin_layout Plain Layout
20957
20958
20959 \backslash
20960 setlength{
20961 \backslash
20962 columnsep}{3cm}
20963 \end_layout
20964
20965 \end_inset
20966
20967
20968 \end_layout
20969
20970 \begin_layout Standard
20971 \begin_inset Flex Multiple Columns
20972 status open
20973
20974 \begin_layout Plain Layout
20975
20976 \size small
20977 My observations of No.
20978 \begin_inset space \space{}
20979 \end_inset
20980
20981 427 Park Lane did little to clear up the problem in which I was interested.
20982  The house was separated from the street by a low wall and railing,
20983  the whole not more than five feet high.
20984  It was perfectly easy,
20985  therefore,
20986  for anyone to get into the garden,
20987  but the window was entirely inaccessible,
20988  since there was no water pipe or anything which could help the most active man to climb it.
20989  More puzzled than ever,
20990  I retraced my steps to Kensington.
20991  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
20992  To my astonishment it was none other than my strange old book collector,
20993  his sharp,
20994  wizened face peering out from a frame of white hair,
20995  and his precious volumes,
20996  a dozen of them at least,
20997  wedged under his right arm.
20998 \end_layout
20999
21000 \end_inset
21001
21002
21003 \end_layout
21004
21005 \begin_layout Standard
21006 \begin_inset ERT
21007 status collapsed
21008
21009 \begin_layout Plain Layout
21010
21011
21012 \backslash
21013 setlength{
21014 \backslash
21015 columnsep}{10pt}
21016 \end_layout
21017
21018 \end_inset
21019
21020
21021 \begin_inset Note Note
21022 status collapsed
21023
21024 \begin_layout Plain Layout
21025 go back to the default
21026 \end_layout
21027
21028 \end_inset
21029
21030
21031 \end_layout
21032
21033 \begin_layout Paragraph
21034 Vertical Lines
21035 \end_layout
21036
21037 \begin_layout Standard
21038 Between the columns a rule with a width of the length 
21039 \begin_inset Flex Code
21040 status collapsed
21041
21042 \begin_layout Plain Layout
21043
21044 \backslash
21045 columnseprule
21046 \end_layout
21047
21048 \end_inset
21049
21050  is placed.
21051  If this rule width is set to 0
21052 \begin_inset space \thinspace{}
21053 \end_inset
21054
21055 pt (this is the default),
21056  the rule is suppressed.
21057  In the following example the rule is 2
21058 \begin_inset space \thinspace{}
21059 \end_inset
21060
21061 pt wide:
21062 \end_layout
21063
21064 \begin_layout Standard
21065 \begin_inset ERT
21066 status open
21067
21068 \begin_layout Plain Layout
21069
21070
21071 \backslash
21072 setlength{
21073 \backslash
21074 columnseprule}{2pt}
21075 \end_layout
21076
21077 \end_inset
21078
21079
21080 \end_layout
21081
21082 \begin_layout Standard
21083 \begin_inset Flex Multiple Columns
21084 status open
21085
21086 \begin_layout Plain Layout
21087
21088 \size small
21089 \begin_inset Quotes eld
21090 \end_inset
21091
21092 You're surprised to see me,
21093  sir,
21094 \begin_inset Quotes erd
21095 \end_inset
21096
21097  said he,
21098  in a strange,
21099  croaking voice.
21100 \end_layout
21101
21102 \begin_layout Plain Layout
21103
21104 \size small
21105 I acknowledged that I was.
21106 \end_layout
21107
21108 \begin_layout Plain Layout
21109
21110 \size small
21111 \begin_inset Quotes eld
21112 \end_inset
21113
21114 Well,
21115  I've a conscience,
21116  sir,
21117  and when I chanced to see you go into this house,
21118  as I came hobbling after you,
21119  I thought to myself,
21120  I'll just step in and see that kind gentleman,
21121  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21122  and that I am much obliged to him for picking up my books.
21123 \begin_inset Quotes erd
21124 \end_inset
21125
21126
21127 \end_layout
21128
21129 \begin_layout Plain Layout
21130
21131 \size small
21132 \begin_inset Quotes eld
21133 \end_inset
21134
21135 You make too much of a trifle,
21136 \begin_inset Quotes erd
21137 \end_inset
21138
21139  said I.
21140  
21141 \begin_inset Quotes eld
21142 \end_inset
21143
21144 May I ask how you knew who I was?
21145 \begin_inset Quotes erd
21146 \end_inset
21147
21148
21149 \end_layout
21150
21151 \begin_layout Plain Layout
21152
21153 \size small
21154 \begin_inset Quotes eld
21155 \end_inset
21156
21157 Well,
21158  sir,
21159  if it isn't too great a liberty,
21160  I am a neighbour of yours,
21161  for you'll find my little bookshop at the corner of Church Street,
21162  and very happy to see you,
21163  I am sure.
21164  Maybe you collect yourself,
21165  sir.
21166  Here's 
21167 \noun on
21168 British
21169 \begin_inset space ~
21170 \end_inset
21171
21172 Birds
21173 \noun default
21174 ,
21175  and 
21176 \noun on
21177 Catullus
21178 \noun default
21179 ,
21180  and 
21181 \noun on
21182 The Holy War
21183 \noun default
21184
21185 \begin_inset space ~
21186 \end_inset
21187
21188 – a bargain,
21189  every one of them.
21190  With five volumes you could just fill that gap on that second shelf.
21191  It looks untidy,
21192  does it not,
21193  sir?
21194 \begin_inset Quotes erd
21195 \end_inset
21196
21197
21198 \end_layout
21199
21200 \end_inset
21201
21202
21203 \end_layout
21204
21205 \begin_layout Standard
21206 \begin_inset VSpace defskip
21207 \end_inset
21208
21209
21210 \end_layout
21211
21212 \begin_layout Standard
21213 The rule can be colored by redefining the command 
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218
21219 \backslash
21220 columnseprulecolor
21221 \end_layout
21222
21223 \end_inset
21224
21225 .
21226  This is done by inserting the command
21227 \end_layout
21228
21229 \begin_layout LyX-Code
21230
21231 \backslash
21232 renewcommand{
21233 \backslash
21234 columnseprulecolor}{
21235 \backslash
21236 color{red}}
21237 \end_layout
21238
21239 \begin_layout Standard
21240 as \SpecialChar TeX
21241  Code before the multicolumn inset.
21242  Replace 
21243 \begin_inset Flex Code
21244 status collapsed
21245
21246 \begin_layout Plain Layout
21247 red
21248 \end_layout
21249
21250 \end_inset
21251
21252  in this command by a color of your choice.
21253  You can use all pre- and self-defined colors.
21254  See the 
21255 \emph on
21256 EmbeddedObjects
21257 \emph default
21258  manual,
21259  section 
21260 \emph on
21261 Colored
21262 \begin_inset space ~
21263 \end_inset
21264
21265 Tables
21266 \emph default
21267  for more information about pre- and self-defined colors.
21268  To go back to the default color insert the command
21269 \end_layout
21270
21271 \begin_layout LyX-Code
21272
21273 \backslash
21274 renewcommand{
21275 \backslash
21276 columnseprulecolor}{
21277 \backslash
21278 normalcolor}
21279 \end_layout
21280
21281 \begin_layout Standard
21282 Here is the example with a cyan rule and 1
21283 \begin_inset space \thinspace{}
21284 \end_inset
21285
21286 cm column separation:
21287 \end_layout
21288
21289 \begin_layout Standard
21290 \begin_inset ERT
21291 status open
21292
21293 \begin_layout Plain Layout
21294
21295
21296 \backslash
21297 setlength{
21298 \backslash
21299 columnsep}{1cm}
21300 \end_layout
21301
21302 \begin_layout Plain Layout
21303
21304
21305 \backslash
21306 renewcommand{
21307 \backslash
21308 columnseprulecolor}{
21309 \backslash
21310 color{cyan}}
21311 \end_layout
21312
21313 \end_inset
21314
21315
21316 \end_layout
21317
21318 \begin_layout Standard
21319 \begin_inset Flex Multiple Columns
21320 status open
21321
21322 \begin_layout Plain Layout
21323
21324 \size small
21325 \begin_inset Quotes eld
21326 \end_inset
21327
21328 You're surprised to see me,
21329  sir,
21330 \begin_inset Quotes erd
21331 \end_inset
21332
21333  said he,
21334  in a strange,
21335  croaking voice.
21336 \end_layout
21337
21338 \begin_layout Plain Layout
21339
21340 \size small
21341 I acknowledged that I was.
21342 \end_layout
21343
21344 \begin_layout Plain Layout
21345
21346 \size small
21347 \begin_inset Quotes eld
21348 \end_inset
21349
21350 Well,
21351  I've a conscience,
21352  sir,
21353  and when I chanced to see you go into this house,
21354  as I came hobbling after you,
21355  I thought to myself,
21356  I'll just step in and see that kind gentleman,
21357  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21358  and that I am much obliged to him for picking up my books.
21359 \begin_inset Quotes erd
21360 \end_inset
21361
21362
21363 \end_layout
21364
21365 \begin_layout Plain Layout
21366
21367 \size small
21368 \begin_inset Quotes eld
21369 \end_inset
21370
21371 You make too much of a trifle,
21372 \begin_inset Quotes erd
21373 \end_inset
21374
21375  said I.
21376  
21377 \begin_inset Quotes eld
21378 \end_inset
21379
21380 May I ask how you knew who I was?
21381 \begin_inset Quotes erd
21382 \end_inset
21383
21384
21385 \end_layout
21386
21387 \begin_layout Plain Layout
21388
21389 \size small
21390 \begin_inset Quotes eld
21391 \end_inset
21392
21393 Well,
21394  sir,
21395  if it isn't too great a liberty,
21396  I am a neighbour of yours,
21397  for you'll find my little bookshop at the corner of Church Street,
21398  and very happy to see you,
21399  I am sure.
21400  Maybe you collect yourself,
21401  sir.
21402  Here's 
21403 \noun on
21404 British
21405 \begin_inset space ~
21406 \end_inset
21407
21408 Birds
21409 \noun default
21410 ,
21411  and 
21412 \noun on
21413 Catullus
21414 \noun default
21415 ,
21416  and 
21417 \noun on
21418 The Holy War
21419 \noun default
21420
21421 \begin_inset space ~
21422 \end_inset
21423
21424 – a bargain,
21425  every one of them.
21426  With five volumes you could just fill that gap on that second shelf.
21427  It looks untidy,
21428  does it not,
21429  sir?
21430 \begin_inset Quotes erd
21431 \end_inset
21432
21433
21434 \end_layout
21435
21436 \end_inset
21437
21438
21439 \end_layout
21440
21441 \begin_layout Standard
21442 \begin_inset ERT
21443 status collapsed
21444
21445 \begin_layout Plain Layout
21446
21447
21448 \backslash
21449 setlength{
21450 \backslash
21451 columnseprule}{0pt}
21452 \end_layout
21453
21454 \begin_layout Plain Layout
21455
21456
21457 \backslash
21458 renewcommand{
21459 \backslash
21460 columnseprulecolor}{
21461 \backslash
21462 normalcolor}
21463 \end_layout
21464
21465 \end_inset
21466
21467
21468 \begin_inset Note Note
21469 status collapsed
21470
21471 \begin_layout Plain Layout
21472 go back to the default
21473 \end_layout
21474
21475 \end_inset
21476
21477
21478 \end_layout
21479
21480 \begin_layout Section
21481
21482 \change_inserted 564990737 1671270380
21483 Paragraph Styles
21484 \end_layout
21485
21486 \begin_layout Subsection
21487
21488 \change_inserted 564990737 1671270398
21489 Custom
21490 \change_deleted 564990737 1671270396
21491 Non-standard
21492 \change_unchanged
21493  Paragraph Shapes
21494 \end_layout
21495
21496 \begin_layout Standard
21497 \noindent
21498 \SpecialChar LaTeX
21499  as well as any other text processor uses by default rectangular paragraphs.
21500  For special cases like for example posters,
21501  invitation cards or poems you can modify the paragraph shape to one of your choice.
21502  
21503 \change_deleted 564990737 1672311802
21504 This can be done by using the \SpecialChar LaTeX
21505 -package 
21506 \begin_inset Flex Code
21507 status collapsed
21508
21509 \begin_layout Plain Layout
21510 shapepar
21511 \end_layout
21512
21513 \end_inset
21514
21515  which is loaded by using in the document settings the module 
21516 \family sans
21517 Custom paragraph shapes
21518 \family default
21519 .
21520 \change_inserted 564990737 1672311802
21521 This module uses the 
21522 \family sans
21523 shapepar
21524 \family default
21525  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
21526  
21527 \change_unchanged
21528
21529 \end_layout
21530
21531 \begin_layout Subsubsection
21532 Predefined shapes
21533 \end_layout
21534
21535 \begin_layout Standard
21536
21537 \series bold
21538 shapepar
21539 \series default
21540  provides the following shapes:
21541 \end_layout
21542
21543 \begin_layout Standard
21544 \begin_inset Tabular
21545 <lyxtabular version="3" rows="13" columns="3">
21546 <features booktabs="true" islongtable="true" longtabularalignment="center">
21547 <column alignment="left" valignment="middle" width="16col%">
21548 <column alignment="left" valignment="middle" width="40col%">
21549 <column alignment="left" valignment="middle" width="35col%">
21550 <row endhead="true">
21551 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21552 \begin_inset Text
21553
21554 \begin_layout Plain Layout
21555
21556 \series bold
21557 \size small
21558 Name
21559 \end_layout
21560
21561 \end_inset
21562 </cell>
21563 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21564 \begin_inset Text
21565
21566 \begin_layout Plain Layout
21567
21568 \series bold
21569 \size small
21570 Description
21571 \end_layout
21572
21573 \end_inset
21574 </cell>
21575 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21576 \begin_inset Text
21577
21578 \begin_layout Plain Layout
21579
21580 \series bold
21581 \size small
21582 Annotation
21583 \end_layout
21584
21585 \end_inset
21586 </cell>
21587 </row>
21588 <row interlinespace="default">
21589 <cell alignment="left" valignment="top" usebox="none">
21590 \begin_inset Text
21591
21592 \begin_layout Plain Layout
21593
21594 \size small
21595 CDlabel
21596 \end_layout
21597
21598 \end_inset
21599 </cell>
21600 <cell alignment="left" valignment="top" usebox="none">
21601 \begin_inset Text
21602
21603 \begin_layout Plain Layout
21604
21605 \size small
21606 Circle with circular hole (in the size of a CD/DVD)
21607 \end_layout
21608
21609 \end_inset
21610 </cell>
21611 <cell alignment="left" valignment="top" usebox="none">
21612 \begin_inset Text
21613
21614 \begin_layout Plain Layout
21615
21616 \size small
21617 Cannot be scaled,
21618  take care there is not too much text
21619 \end_layout
21620
21621 \end_inset
21622 </cell>
21623 </row>
21624 <row interlinespace="default">
21625 <cell alignment="left" valignment="top" usebox="none">
21626 \begin_inset Text
21627
21628 \begin_layout Plain Layout
21629
21630 \size small
21631 Circle
21632 \end_layout
21633
21634 \end_inset
21635 </cell>
21636 <cell alignment="left" valignment="top" usebox="none">
21637 \begin_inset Text
21638
21639 \begin_layout Plain Layout
21640
21641 \size small
21642 Circle
21643 \end_layout
21644
21645 \end_inset
21646 </cell>
21647 <cell alignment="left" valignment="top" usebox="none">
21648 \begin_inset Text
21649
21650 \begin_layout Plain Layout
21651
21652 \size small
21653 Fragile,
21654  calculation might fail
21655 \end_layout
21656
21657 \end_inset
21658 </cell>
21659 </row>
21660 <row interlinespace="default">
21661 <cell alignment="left" valignment="top" usebox="none">
21662 \begin_inset Text
21663
21664 \begin_layout Plain Layout
21665
21666 \size small
21667 Diamond
21668 \end_layout
21669
21670 \end_inset
21671 </cell>
21672 <cell alignment="left" valignment="top" usebox="none">
21673 \begin_inset Text
21674
21675 \begin_layout Plain Layout
21676
21677 \size small
21678 Rhomboid (symbolizing a 
21679 \begin_inset Quotes eld
21680 \end_inset
21681
21682 diamond
21683 \begin_inset Quotes erd
21684 \end_inset
21685
21686 )
21687 \end_layout
21688
21689 \end_inset
21690 </cell>
21691 <cell alignment="left" valignment="top" usebox="none">
21692 \begin_inset Text
21693
21694 \begin_layout Plain Layout
21695
21696 \size small
21697 -
21698 \end_layout
21699
21700 \end_inset
21701 </cell>
21702 </row>
21703 <row interlinespace="default">
21704 <cell alignment="left" valignment="top" usebox="none">
21705 \begin_inset Text
21706
21707 \begin_layout Plain Layout
21708
21709 \size small
21710 Heart
21711 \end_layout
21712
21713 \end_inset
21714 </cell>
21715 <cell alignment="left" valignment="top" usebox="none">
21716 \begin_inset Text
21717
21718 \begin_layout Plain Layout
21719
21720 \size small
21721 Heart-like shape
21722 \end_layout
21723
21724 \end_inset
21725 </cell>
21726 <cell alignment="left" valignment="top" usebox="none">
21727 \begin_inset Text
21728
21729 \begin_layout Plain Layout
21730
21731 \size small
21732 -
21733 \end_layout
21734
21735 \end_inset
21736 </cell>
21737 </row>
21738 <row interlinespace="default">
21739 <cell alignment="left" valignment="top" usebox="none">
21740 \begin_inset Text
21741
21742 \begin_layout Plain Layout
21743
21744 \size small
21745 Hexagon
21746 \end_layout
21747
21748 \end_inset
21749 </cell>
21750 <cell alignment="left" valignment="top" usebox="none">
21751 \begin_inset Text
21752
21753 \begin_layout Plain Layout
21754
21755 \size small
21756 Hexagon
21757 \end_layout
21758
21759 \end_inset
21760 </cell>
21761 <cell alignment="left" valignment="top" usebox="none">
21762 \begin_inset Text
21763
21764 \begin_layout Plain Layout
21765
21766 \size small
21767 -
21768 \end_layout
21769
21770 \end_inset
21771 </cell>
21772 </row>
21773 <row interlinespace="default">
21774 <cell alignment="left" valignment="top" usebox="none">
21775 \begin_inset Text
21776
21777 \begin_layout Plain Layout
21778
21779 \size small
21780 Nut
21781 \end_layout
21782
21783 \end_inset
21784 </cell>
21785 <cell alignment="left" valignment="top" usebox="none">
21786 \begin_inset Text
21787
21788 \begin_layout Plain Layout
21789
21790 \size small
21791 Nut for bolt (hexagon with circular hole)
21792 \end_layout
21793
21794 \end_inset
21795 </cell>
21796 <cell alignment="left" valignment="top" usebox="none">
21797 \begin_inset Text
21798
21799 \begin_layout Plain Layout
21800
21801 \size small
21802 -
21803 \end_layout
21804
21805 \end_inset
21806 </cell>
21807 </row>
21808 <row interlinespace="default">
21809 <cell alignment="left" valignment="top" usebox="none">
21810 \begin_inset Text
21811
21812 \begin_layout Plain Layout
21813
21814 \size small
21815 Square
21816 \end_layout
21817
21818 \end_inset
21819 </cell>
21820 <cell alignment="left" valignment="top" usebox="none">
21821 \begin_inset Text
21822
21823 \begin_layout Plain Layout
21824
21825 \size small
21826 Square
21827 \end_layout
21828
21829 \end_inset
21830 </cell>
21831 <cell alignment="left" valignment="top" usebox="none">
21832 \begin_inset Text
21833
21834 \begin_layout Plain Layout
21835
21836 \size small
21837 -
21838 \end_layout
21839
21840 \end_inset
21841 </cell>
21842 </row>
21843 <row interlinespace="default">
21844 <cell alignment="left" valignment="top" usebox="none">
21845 \begin_inset Text
21846
21847 \begin_layout Plain Layout
21848
21849 \size small
21850 Star
21851 \end_layout
21852
21853 \end_inset
21854 </cell>
21855 <cell alignment="left" valignment="top" usebox="none">
21856 \begin_inset Text
21857
21858 \begin_layout Plain Layout
21859
21860 \size small
21861 Five-point star
21862 \end_layout
21863
21864 \end_inset
21865 </cell>
21866 <cell alignment="left" valignment="top" usebox="none">
21867 \begin_inset Text
21868
21869 \begin_layout Plain Layout
21870
21871 \size small
21872 -
21873 \end_layout
21874
21875 \end_inset
21876 </cell>
21877 </row>
21878 <row interlinespace="default">
21879 <cell alignment="left" valignment="top" usebox="none">
21880 \begin_inset Text
21881
21882 \begin_layout Plain Layout
21883
21884 \size small
21885 Candle
21886 \end_layout
21887
21888 \end_inset
21889 </cell>
21890 <cell alignment="left" valignment="top" usebox="none">
21891 \begin_inset Text
21892
21893 \begin_layout Plain Layout
21894
21895 \size small
21896 Burning candle
21897 \end_layout
21898
21899 \end_inset
21900 </cell>
21901 <cell alignment="left" valignment="top" usebox="none">
21902 \begin_inset Text
21903
21904 \begin_layout Plain Layout
21905
21906 \size small
21907 -
21908 \end_layout
21909
21910 \end_inset
21911 </cell>
21912 </row>
21913 <row interlinespace="default">
21914 <cell alignment="left" valignment="top" usebox="none">
21915 \begin_inset Text
21916
21917 \begin_layout Plain Layout
21918
21919 \size small
21920 Drop down/up
21921 \end_layout
21922
21923 \end_inset
21924 </cell>
21925 <cell alignment="left" valignment="top" usebox="none">
21926 \begin_inset Text
21927
21928 \begin_layout Plain Layout
21929
21930 \size small
21931 Normal/reversed rain drop
21932 \end_layout
21933
21934 \end_inset
21935 </cell>
21936 <cell alignment="left" valignment="top" usebox="none">
21937 \begin_inset Text
21938
21939 \begin_layout Plain Layout
21940
21941 \size small
21942 Fragile,
21943  calculation might fail
21944 \end_layout
21945
21946 \end_inset
21947 </cell>
21948 </row>
21949 <row interlinespace="default">
21950 <cell alignment="left" valignment="top" usebox="none">
21951 \begin_inset Text
21952
21953 \begin_layout Plain Layout
21954
21955 \size small
21956 \SpecialChar TeX
21957
21958 \end_layout
21959
21960 \end_inset
21961 </cell>
21962 <cell alignment="left" valignment="top" usebox="none">
21963 \begin_inset Text
21964
21965 \begin_layout Plain Layout
21966
21967 \size small
21968 The \SpecialChar TeX
21969  logo
21970 \end_layout
21971
21972 \end_inset
21973 </cell>
21974 <cell alignment="left" valignment="top" usebox="none">
21975 \begin_inset Text
21976
21977 \begin_layout Plain Layout
21978
21979 \size small
21980 -
21981 \end_layout
21982
21983 \end_inset
21984 </cell>
21985 </row>
21986 <row interlinespace="default">
21987 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21988 \begin_inset Text
21989
21990 \begin_layout Plain Layout
21991
21992 \size small
21993 Triangle up/down/
21994 \begin_inset Newline newline
21995 \end_inset
21996
21997 left/right
21998 \end_layout
21999
22000 \end_inset
22001 </cell>
22002 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
22003 \begin_inset Text
22004
22005 \begin_layout Plain Layout
22006
22007 \size small
22008 Triangles in different orientations
22009 \end_layout
22010
22011 \end_inset
22012 </cell>
22013 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
22014 \begin_inset Text
22015
22016 \begin_layout Plain Layout
22017
22018 \size small
22019 -
22020 \end_layout
22021
22022 \end_inset
22023 </cell>
22024 </row>
22025 </lyxtabular>
22026
22027 \end_inset
22028
22029
22030 \end_layout
22031
22032 \begin_layout Standard
22033 To use a shape for your paragraph,
22034  simply select it in \SpecialChar LyX
22035 's pull-down box for environments in the toolbar.
22036 \end_layout
22037
22038 \begin_layout Standard
22039 \begin_inset Newpage newpage
22040 \end_inset
22041
22042
22043 \end_layout
22044
22045 \begin_layout Standard
22046 Here is an example paragraph in the shape of a nut:
22047 \end_layout
22048
22049 \begin_layout Standard
22050 \begin_inset VSpace bigskip
22051 \end_inset
22052
22053
22054 \end_layout
22055
22056 \begin_layout Nut
22057
22058 \lang latin
22059 Lorem ipsum dolor sit amet,
22060  consetetur sadipscing elitr,
22061  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22062  sed diam voluptua.
22063  At vero eos et accusam et justo duo dolores et ea rebum.
22064  Stet clita kasd gubergren,
22065  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22066  Lorem ipsum dolor sit amet,
22067  consetetur sadipscing elitr,
22068  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22069  sed diam voluptua.
22070 \end_layout
22071
22072 \begin_layout Standard
22073 \begin_inset VSpace bigskip
22074 \end_inset
22075
22076
22077 \end_layout
22078
22079 \begin_layout Standard
22080 \begin_inset Note Greyedout
22081 status open
22082
22083 \begin_layout Plain Layout
22084
22085 \series bold
22086 Note
22087 \series default
22088 :
22089  
22090 \family sans
22091 shapepar
22092 \family default
22093  paragraphs cannot run over a page break.
22094 \end_layout
22095
22096 \end_inset
22097
22098
22099 \end_layout
22100
22101 \begin_layout Standard
22102 \begin_inset VSpace bigskip
22103 \end_inset
22104
22105
22106 \end_layout
22107
22108 \begin_layout Standard
22109 The package 
22110 \begin_inset Flex Code
22111 status collapsed
22112
22113 \begin_layout Plain Layout
22114 shapepar
22115 \end_layout
22116
22117 \end_inset
22118
22119  takes care that the shape will always be preserved,
22120  no matter how much text is in the paragraph.
22121  Therefore the paragraph size changes with the amount of contained text.
22122  This can lead to paragraph sizes exceeding the page margins.
22123  To demonstrate the size scaling,
22124  here is the same example paragraph but with twice as much text:
22125 \end_layout
22126
22127 \begin_layout Standard
22128 \begin_inset Newpage newpage
22129 \end_inset
22130
22131
22132 \end_layout
22133
22134 \begin_layout Nut
22135
22136 \lang latin
22137 Lorem ipsum dolor sit amet,
22138  consetetur sadipscing elitr,
22139  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22140  sed diam voluptua.
22141  At vero eos et accusam et justo duo dolores et ea rebum.
22142  Stet clita kasd gubergren,
22143  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22144  Lorem ipsum dolor sit amet,
22145  consetetur sadipscing elitr,
22146  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22147  sed diam voluptua.
22148  Lorem ipsum dolor sit amet,
22149  consetetur sadipscing elitr,
22150  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22151  sed diam voluptua.
22152  At vero eos et accusam et justo duo dolores et ea rebum.
22153  Stet clita kasd gubergren,
22154  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22155  Lorem ipsum dolor sit amet,
22156  consetetur sadipscing elitr,
22157  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22158  sed diam voluptua.
22159 \end_layout
22160
22161 \begin_layout Standard
22162 \begin_inset VSpace bigskip
22163 \end_inset
22164
22165
22166 \end_layout
22167
22168 \begin_layout Standard
22169 An exception is the shape 
22170 \family sans
22171 CDlabel
22172 \family default
22173 .
22174  It cannot be scaled because it must fit the size of a CD/DVD.
22175  Therefore the amount of text that fits into the shape is limited.
22176 \begin_inset Newline newline
22177 \end_inset
22178
22179 The 
22180 \family sans
22181 drop
22182 \family default
22183  shapes and the 
22184 \family sans
22185 circle
22186 \family default
22187  shape are fragile,
22188  meaning that the calculation of their size can fail,
22189  depending on the amount of text.
22190  You will then get the \SpecialChar LaTeX
22191  error 
22192 \begin_inset Quotes eld
22193 \end_inset
22194
22195 Arithmetic overflow
22196 \begin_inset Quotes erd
22197 \end_inset
22198
22199 .
22200  In this case one can try to remove or add some text;
22201  if nothing works one has to use another shape.
22202 \end_layout
22203
22204 \begin_layout Standard
22205 \begin_inset VSpace bigskip
22206 \end_inset
22207
22208
22209 \end_layout
22210
22211 \begin_layout Standard
22212 For shapes with tips you will maybe see that \SpecialChar LaTeX
22213 's hyphenation routine fails for text in the tips.
22214  Therefore it is often necessary to add hyphenation points 
22215 \family sans
22216 (
22217 \begin_inset Info
22218 type  "shortcut"
22219 arg   "specialchar-insert hyphenation"
22220 \end_inset
22221
22222
22223 \family default
22224 ) to the corresponding text parts.
22225 \end_layout
22226
22227 \begin_layout Standard
22228 \begin_inset VSpace bigskip
22229 \end_inset
22230
22231
22232 \end_layout
22233
22234 \begin_layout Standard
22235 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
22236  You can therefore not use the paragraph dialog to align such paragraphs.
22237  A solution is to put the paragraph into a minipage or parbox and align the box.
22238  The problem is hereby to find the right width for the box.
22239  Because if it is too wide and you center the box,
22240  the paragraph is not centered too because it sticks at the left side of the box.
22241  So you might have to play a bit with the width until it fits.
22242  Here are two heart-shaped paragraphs,
22243  the first one is not aligned,
22244  the second one is right-aligned:
22245 \end_layout
22246
22247 \begin_layout Standard
22248 \begin_inset Newpage newpage
22249 \end_inset
22250
22251
22252 \end_layout
22253
22254 \begin_layout Heart
22255 \noindent
22256
22257 \lang latin
22258 Lo\SpecialChar softhyphen
22259 rem ipsum dolor sit amet,
22260  consetetur sadipscing elitr,
22261  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22262  sed diam voluptua.
22263  At vero eos et accusam et justo duo dolores et ea rebum.
22264  Stet clita kasd gubergren,
22265  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22266 \end_layout
22267
22268 \begin_layout Standard
22269 \begin_inset VSpace bigskip
22270 \end_inset
22271
22272
22273 \end_layout
22274
22275 \begin_layout Standard
22276 \noindent
22277 \align right
22278 \begin_inset Box Frameless
22279 position "t"
22280 hor_pos "c"
22281 has_inner_box 1
22282 inner_pos "t"
22283 use_parbox 1
22284 use_makebox 0
22285 width "42col%"
22286 special "none"
22287 height "1in"
22288 height_special "totalheight"
22289 thickness "0.4pt"
22290 separation "3pt"
22291 shadowsize "4pt"
22292 framecolor "black"
22293 backgroundcolor "none"
22294 status open
22295
22296 \begin_layout Heart
22297 \noindent
22298
22299 \lang latin
22300 Lo\SpecialChar softhyphen
22301 rem ipsum dolor sit amet,
22302  consetetur sadipscing elitr,
22303  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22304  sed diam voluptua.
22305  At vero eos et accusam et justo duo dolores et ea rebum.
22306  Stet clita kasd gubergren,
22307  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22308 \end_layout
22309
22310 \end_inset
22311
22312
22313 \end_layout
22314
22315 \begin_layout Subsubsection
22316 Custom shapes
22317 \end_layout
22318
22319 \begin_layout Standard
22320 You can define any shape you want.
22321  Doing this manually is a lot of work because every coordinate must be specified.
22322  But there is a way to let the computer calculate the coordinates:
22323 \end_layout
22324
22325 \begin_layout Enumerate
22326 Install the program 
22327 \begin_inset CommandInset href
22328 LatexCommand href
22329 name "Jpgfdraw"
22330 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
22331 literal "false"
22332
22333 \end_inset
22334
22335 .
22336 \end_layout
22337
22338 \begin_layout Enumerate
22339 In 
22340 \family sans
22341 Jpgfdraw
22342 \family default
22343  go to the menu 
22344 \family sans
22345 TeX/LaTeX\SpecialChar menuseparator
22346 Settings\SpecialChar menuseparator
22347 Set Normal Size
22348 \family default
22349  and select the font size you are using in your document.
22350  For example this document uses the size 12
22351 \begin_inset space \thinspace{}
22352 \end_inset
22353
22354 pt.
22355 \end_layout
22356
22357 \begin_layout Enumerate
22358 Draw a shape.
22359 \end_layout
22360
22361 \begin_layout Enumerate
22362 Use the menu 
22363 \family sans
22364 TeX/LaTeX\SpecialChar menuseparator
22365 Shapepar
22366 \family default
22367  to export the shape to coordinates.
22368  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
22369 \begin_inset Foot
22370 status collapsed
22371
22372 \begin_layout Plain Layout
22373 For more information see 
22374 \begin_inset CommandInset href
22375 LatexCommand href
22376 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
22377 literal "false"
22378
22379 \end_inset
22380
22381
22382 \end_layout
22383
22384 \end_inset
22385
22386
22387 \end_layout
22388
22389 \begin_layout Standard
22390 The coordinates are written into a \SpecialChar TeX
22391  file.
22392  To use it for your \SpecialChar LyX
22393  document
22394 \end_layout
22395
22396 \begin_layout Enumerate
22397 Place the cursor before the first character of your paragraph (or into a new empty one).
22398 \end_layout
22399
22400 \begin_layout Enumerate
22401 Open in \SpecialChar LyX
22402  the menu 
22403 \family sans
22404 Insert\SpecialChar menuseparator
22405 File\SpecialChar menuseparator
22406 Child
22407 \begin_inset space ~
22408 \end_inset
22409
22410 Document
22411 \family default
22412 ,
22413  select the file and use 
22414 \family sans
22415 Input
22416 \family default
22417  as 
22418 \family sans
22419 Include Type.
22420 \end_layout
22421
22422 \begin_layout Standard
22423 \begin_inset VSpace defskip
22424 \end_inset
22425
22426
22427 \end_layout
22428
22429 \begin_layout Standard
22430 \begin_inset Note Greyedout
22431 status open
22432
22433 \begin_layout Plain Layout
22434
22435 \series bold
22436 Note
22437 \series default
22438 :
22439  The changed shape only applies to the current paragraph;
22440  everything is reset to normal for the next paragraph.
22441  Therefore the shape definition file must be input into every paragraph with the desired shape.
22442 \end_layout
22443
22444 \end_inset
22445
22446
22447 \end_layout
22448
22449 \begin_layout Standard
22450 \begin_inset VSpace bigskip
22451 \end_inset
22452
22453
22454 \end_layout
22455
22456 \begin_layout Standard
22457 Here is an example:
22458 \end_layout
22459
22460 \begin_layout Standard
22461 \begin_inset VSpace bigskip
22462 \end_inset
22463
22464
22465 \end_layout
22466
22467 \begin_layout Standard
22468 \begin_inset CommandInset include
22469 LatexCommand input
22470 filename "SpecialParagraphShape.tex"
22471 literal "true"
22472
22473 \end_inset
22474
22475
22476 \lang latin
22477 Lorem ipsum dolor sit amet,
22478  consetetur sadipscing elitr,
22479  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22480  sed diam voluptua.
22481  At vero eos et accusam et justo duo dolores et ea rebum.
22482  Stet clita kasd gubergren,
22483  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22484  Lorem ipsum dolor sit amet,
22485  consetetur sadipscing elitr,
22486  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22487  sed diam voluptua.
22488 \end_layout
22489
22490 \begin_layout Standard
22491 \begin_inset VSpace bigskip
22492 \end_inset
22493
22494
22495 \end_layout
22496
22497 \begin_layout Standard
22498
22499 \series bold
22500 A tip:
22501
22502 \series default
22503  to draw complexer shapes in 
22504 \family sans
22505 Jpgfdraw
22506 \family default
22507  you can draw the shape in a program of your choice and import the resulting image to 
22508 \family sans
22509 Jpgfdraw
22510 \family default
22511 .
22512  Then you only need to draw a line or spline along the outline of the image.
22513 \end_layout
22514
22515 \begin_layout Standard
22516 \begin_inset VSpace bigskip
22517 \end_inset
22518
22519
22520 \end_layout
22521
22522 \begin_layout Standard
22523 The module 
22524 \family sans
22525 Custom paragraph shapes
22526 \family default
22527  also provides the two commands 
22528 \family sans
22529 shapepar
22530 \family default
22531  and 
22532 \family sans
22533 Shapepar
22534 \family default
22535  which can be used to define custom shapes coordinate by coordinate.
22536 \begin_inset Foot
22537 status collapsed
22538
22539 \begin_layout Plain Layout
22540 These commands are internally used for all shapes described here.
22541 \end_layout
22542
22543 \end_inset
22544
22545  For information how these styles are used and about further customization possibilities,
22546  have a look at the 
22547 \begin_inset CommandInset href
22548 LatexCommand href
22549 name "documentation"
22550 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
22551 literal "false"
22552
22553 \end_inset
22554
22555  of the package 
22556 \begin_inset Flex Code
22557 status collapsed
22558
22559 \begin_layout Plain Layout
22560 shapepar
22561 \end_layout
22562
22563 \end_inset
22564
22565 .
22566 \end_layout
22567
22568 \begin_layout Subsection
22569
22570 \change_inserted 564990737 1672311925
22571 Hanging Paragraphs
22572 \end_layout
22573
22574 \begin_layout Hanging
22575
22576 \change_inserted 564990737 1672311925
22577 This module adds the 
22578 \family sans
22579 Hanging
22580 \family default
22581  paragraph style,
22582  that is,
22583  one where all but the first line of the paragraph is indented.
22584  This may not appear in your \SpecialChar LyX
22585  document but will appear in the final output.
22586 \end_layout
22587
22588 \begin_layout Subsection
22589
22590 \change_inserted 564990737 1672311925
22591 \begin_inset CommandInset label
22592 LatexCommand label
22593 name "subsec:Initials"
22594
22595 \end_inset
22596
22597 Initials (Drop Caps)
22598 \end_layout
22599
22600 \begin_layout Initial
22601
22602 \change_inserted 564990737 1672311925
22603 \begin_inset Argument 2
22604 status open
22605
22606 \begin_layout Plain Layout
22607
22608 \change_inserted 564990737 1672311925
22609 T
22610 \change_unchanged
22611
22612 \end_layout
22613
22614 \end_inset
22615
22616
22617 \begin_inset Argument 3
22618 status open
22619
22620 \begin_layout Plain Layout
22621
22622 \change_inserted 564990737 1672311925
22623 his
22624 \change_unchanged
22625
22626 \end_layout
22627
22628 \end_inset
22629
22630  module adds a drop capitals paragraph style 
22631 \family sans
22632 Initials
22633 \family default
22634  for paragraph environments which you can use wherever you want to have drop capitals.
22635  You then have three more items in the 
22636 \family sans
22637 Insert
22638 \family default
22639  menu:
22640 \end_layout
22641
22642 \begin_layout Itemize
22643
22644 \change_inserted 564990737 1672311925
22645
22646 \family sans
22647 Initial
22648 \family default
22649  which creates an inset for the drop capital
22650 \end_layout
22651
22652 \begin_layout Itemize
22653
22654 \change_inserted 564990737 1672311925
22655
22656 \family sans
22657 Rest of initial
22658 \family default
22659  which creates an inset for the rest of the word
22660 \end_layout
22661
22662 \begin_layout Itemize
22663
22664 \change_inserted 564990737 1672311925
22665
22666 \family sans
22667 Options
22668 \family default
22669  which allow you configure the formatting of the drop capital.
22670 \end_layout
22671
22672 \begin_layout Standard
22673
22674 \change_inserted 564990737 1672311925
22675 To customize the appearance of the style,
22676  see 
22677 \family sans
22678 Help\SpecialChar menuseparator
22679 Embedded Objects\SpecialChar menuseparator
22680 Objects Surrounded by Text\SpecialChar menuseparator
22681 Initials
22682 \family default
22683 .
22684 \end_layout
22685
22686 \begin_layout Section
22687
22688 \change_inserted 564990737 1672312011
22689 Text Markup
22690 \end_layout
22691
22692 \begin_layout Subsection
22693
22694 \change_inserted 564990737 1672312011
22695 Hyphenatable Text Markup
22696 \end_layout
22697
22698 \begin_layout Standard
22699
22700 \change_inserted 564990737 1672312011
22701 This package defines text styles to highlight,
22702  space-out,
22703  strike-through,
22704  underline and capitalize/small-cap text by means of the 
22705 \family sans
22706 soul
22707 \family default
22708  package.
22709  As opposed to the markup provided by the Text Properties dialog,
22710  words marked-up with 
22711 \family sans
22712 soul
22713 \family default
22714  are hyphenated.
22715  See the 
22716 \begin_inset CommandInset href
22717 LatexCommand href
22718 name "soul documentation"
22719 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
22720 literal "false"
22721
22722 \end_inset
22723
22724 .
22725 \end_layout
22726
22727 \begin_layout Subsection
22728
22729 \change_inserted 564990737 1672312011
22730 Logical Markup
22731 \end_layout
22732
22733 \begin_layout Standard
22734
22735 \change_inserted 564990737 1672312011
22736 This module defines some character styles for logical markup:
22737  
22738 \noun on
22739
22740 \begin_inset Flex Noun
22741 status collapsed
22742
22743 \begin_layout Plain Layout
22744
22745 \change_inserted 564990737 1672312011
22746
22747 \noun on
22748 noun
22749 \change_unchanged
22750
22751 \end_layout
22752
22753 \end_inset
22754
22755
22756 \noun default
22757 ,
22758  
22759 \emph on
22760
22761 \begin_inset Flex Emph
22762 status collapsed
22763
22764 \begin_layout Plain Layout
22765
22766 \change_inserted 564990737 1672312011
22767
22768 \emph on
22769 emph
22770 \change_unchanged
22771
22772 \end_layout
22773
22774 \end_inset
22775
22776
22777 \emph default
22778 ,
22779  
22780 \begin_inset Flex Strong
22781 status collapsed
22782
22783 \begin_layout Plain Layout
22784
22785 \change_inserted 564990737 1672312011
22786 strong
22787 \change_unchanged
22788
22789 \end_layout
22790
22791 \end_inset
22792
22793 ,
22794  and 
22795 \begin_inset Flex Code
22796 status collapsed
22797
22798 \begin_layout Plain Layout
22799
22800 \change_inserted 564990737 1672312011
22801 code
22802 \change_unchanged
22803
22804 \end_layout
22805
22806 \end_inset
22807
22808  which are accessed via the 
22809 \family sans
22810 \bar under
22811 E
22812 \bar default
22813 dit\SpecialChar menuseparator
22814 Custom
22815 \begin_inset space ~
22816 \end_inset
22817
22818 Text
22819 \begin_inset space ~
22820 \end_inset
22821
22822
22823 \bar under
22824 S
22825 \bar default
22826 tyles
22827 \family default
22828  menu.
22829 \end_layout
22830
22831 \begin_layout Chapter
22832
22833 \change_deleted 564990737 1671304317
22834 Customizing 
22835 \change_unchanged
22836 Bibliograph
22837 \change_inserted 564990737 1671304322
22838 y
22839 \change_deleted 564990737 1671304331
22840 ies with Bib\SpecialChar TeX
22841  or Biblatex
22842 \change_unchanged
22843
22844 \end_layout
22845
22846 \begin_layout Standard
22847 The most basic information about how to use Bib\SpecialChar TeX
22848  or 
22849 \family sans
22850 Biblatex
22851 \family default
22852  with \SpecialChar LyX
22853  is contained in the section 
22854 \emph on
22855 Bibliography databases
22856 \emph default
22857  of the 
22858 \emph on
22859 User's Guide
22860 \emph default
22861 .
22862  The following subsections explain special bibliography features supported by \SpecialChar LyX
22863 .
22864 \end_layout
22865
22866 \begin_layout Section
22867 Alternative Citation Styles
22868 \end_layout
22869
22870 \begin_layout Standard
22871 Standard Bib\SpecialChar TeX
22872  uses numbers (e.
22873 \begin_inset space \thinspace{}
22874 \end_inset
22875
22876 g.
22877 \begin_inset space \space{}
22878 \end_inset
22879
22880
22881 \begin_inset Quotes eld
22882 \end_inset
22883
22884 [12]
22885 \begin_inset Quotes erd
22886 \end_inset
22887
22888 ) to refer to a cited work.
22889  However,
22890  in many scientific disciplines,
22891  other citation styles are in use.
22892  The most common one is the author-year style (e.
22893 \begin_inset space \thinspace{}
22894 \end_inset
22895
22896 g.
22897 \begin_inset space \space{}
22898 \end_inset
22899
22900
22901 \begin_inset Quotes eld
22902 \end_inset
22903
22904 Knuth 1984a
22905 \begin_inset Quotes erd
22906 \end_inset
22907
22908 ).
22909  \SpecialChar LyX
22910  supports three packages that provide this style,
22911  
22912 \begin_inset Flex Code
22913 status collapsed
22914
22915 \begin_layout Plain Layout
22916 biblatex
22917 \end_layout
22918
22919 \end_inset
22920
22921 ,
22922  
22923 \begin_inset Flex Code
22924 status collapsed
22925
22926 \begin_layout Plain Layout
22927 natbib
22928 \end_layout
22929
22930 \end_inset
22931
22932 ,
22933  and 
22934 \begin_inset Flex Code
22935 status collapsed
22936
22937 \begin_layout Plain Layout
22938 jurabib
22939 \end_layout
22940
22941 \end_inset
22942
22943 .
22944  Each of these packages has their pros and cons,
22945  which cannot be listed in detail.
22946  If you only want to have simple author-year (or author-numerical) style,
22947  or if you want to use one of the countless style files for 
22948 \begin_inset Flex Code
22949 status collapsed
22950
22951 \begin_layout Plain Layout
22952 natbib
22953 \end_layout
22954
22955 \end_inset
22956
22957 ,
22958  then the established 
22959 \begin_inset Flex Code
22960 status collapsed
22961
22962 \begin_layout Plain Layout
22963 natbib
22964 \end_layout
22965
22966 \end_inset
22967
22968  package is probably your choice.
22969  If you look for specific citation styles common in law studies,
22970  you might consider the 
22971 \begin_inset Flex Code
22972 status collapsed
22973
22974 \begin_layout Plain Layout
22975 jurabib
22976 \end_layout
22977
22978 \end_inset
22979
22980  package.
22981  If you want to have full control over the formatting or look for advanced features such as ibidem,
22982  footnote citations,
22983  full title citations,
22984  advanced date formats (such as 400 BC) or full localization to other languages than English,
22985  you should definitely consider 
22986 \begin_inset Flex Code
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 biblatex
22991 \end_layout
22992
22993 \end_inset
22994
22995 ,
22996  which exceeds all other packages in terms of features,
22997  but is also quite heavy and more resource-hungry.
22998 \end_layout
22999
23000 \begin_layout Standard
23001 The handling of these packages in \SpecialChar LyX
23002  is basically the same.
23003  Go to 
23004 \begin_inset Flex Noun
23005 status collapsed
23006
23007 \begin_layout Plain Layout
23008 Document\SpecialChar menuseparator
23009 Settings
23010 \end_layout
23011
23012 \end_inset
23013
23014  and select under 
23015 \begin_inset Flex Noun
23016 status collapsed
23017
23018 \begin_layout Plain Layout
23019 Bibliography
23020 \end_layout
23021
23022 \end_inset
23023
23024  the 
23025 \begin_inset Flex Noun
23026 status collapsed
23027
23028 \begin_layout Plain Layout
23029 Style Format
23030 \end_layout
23031
23032 \end_inset
23033
23034  
23035 \begin_inset Flex Noun
23036 status collapsed
23037
23038 \begin_layout Plain Layout
23039 Basic (BibTeX)
23040 \end_layout
23041
23042 \end_inset
23043
23044 ,
23045  
23046 \begin_inset Flex Noun
23047 status collapsed
23048
23049 \begin_layout Plain Layout
23050 Biblatex
23051 \end_layout
23052
23053 \end_inset
23054
23055 ,
23056  
23057 \begin_inset Flex Noun
23058 status collapsed
23059
23060 \begin_layout Plain Layout
23061 Biblatex (Natbib mode)
23062 \end_layout
23063
23064 \end_inset
23065
23066 ,
23067  
23068 \begin_inset Flex Noun
23069 status collapsed
23070
23071 \begin_layout Plain Layout
23072 Natbib (BibTeX)
23073 \end_layout
23074
23075 \end_inset
23076
23077  or 
23078 \begin_inset Flex Noun
23079 status collapsed
23080
23081 \begin_layout Plain Layout
23082 Jurabib (BibTeX)
23083 \end_layout
23084
23085 \end_inset
23086
23087  (see sec.
23088 \begin_inset space ~
23089 \end_inset
23090
23091 6.5.3 in the User's Guide for more information on these choices).
23092  With all these packages,
23093  you will get some extra features in the citation dialog and you can select the style of the reference (
23094 \begin_inset Quotes eld
23095 \end_inset
23096
23097 Knuth 1984
23098 \begin_inset Quotes erd
23099 \end_inset
23100
23101 ,
23102  
23103 \begin_inset Quotes eld
23104 \end_inset
23105
23106 Knuth (1984)
23107 \begin_inset Quotes erd
23108 \end_inset
23109
23110 ,
23111  
23112 \begin_inset Quotes eld
23113 \end_inset
23114
23115 Knuth,
23116  1984
23117 \begin_inset Quotes erd
23118 \end_inset
23119
23120 ,
23121  
23122 \begin_inset Quotes eld
23123 \end_inset
23124
23125 1984
23126 \begin_inset Quotes erd
23127 \end_inset
23128
23129  etc.).
23130  Note that either package needs specifically designed style files.
23131  They all ship their own,
23132  but there are lots of additional style files,
23133  and there is even an interactive style file builder
23134 \begin_inset Foot
23135 status collapsed
23136
23137 \begin_layout Plain Layout
23138 See 
23139 \begin_inset Flex URL
23140 status open
23141
23142 \begin_layout Plain Layout
23143
23144 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
23145 \end_layout
23146
23147 \end_inset
23148
23149
23150 \end_layout
23151
23152 \end_inset
23153
23154  for 
23155 \begin_inset Flex Code
23156 status collapsed
23157
23158 \begin_layout Plain Layout
23159 natbib
23160 \end_layout
23161
23162 \end_inset
23163
23164 .
23165 \end_layout
23166
23167 \begin_layout Section
23168 Subdivided Bibliographies
23169 \end_layout
23170
23171 \begin_layout Standard
23172 Sometimes you might need to divide your bibliography into several sections.
23173  If you are for instance a historian,
23174  the possibility to separate sources and scientific works is most likely a 
23175 \begin_inset Quotes eld
23176 \end_inset
23177
23178 must have
23179 \begin_inset Quotes erd
23180 \end_inset
23181
23182 .
23183  Unfortunately,
23184  Bib\SpecialChar TeX
23185  itself does not allow you to do this.
23186  But with the help of some \SpecialChar LaTeX
23187  packages,
23188  Bib\SpecialChar TeX
23189  can be extended to fit your needs.
23190 \end_layout
23191
23192 \begin_layout Standard
23193 \SpecialChar LyX
23194  provides native support for one of these packages,
23195  
23196 \family typewriter
23197 bibtopic
23198 \family default
23199 .
23200 \begin_inset Foot
23201 status collapsed
23202
23203 \begin_layout Plain Layout
23204 Available from 
23205 \begin_inset Flex URL
23206 status open
23207
23208 \begin_layout Plain Layout
23209
23210 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
23211 \end_layout
23212
23213 \end_inset
23214
23215
23216 \end_layout
23217
23218 \end_inset
23219
23220  The advantage of this package (compared to other packages such as 
23221 \family typewriter
23222 multibib
23223 \family default
23224 ) is that you don't need to define new citation commands.
23225  Instead,
23226  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
23227  For example:
23228  If you want to divide your bibliography into the sections 
23229 \begin_inset Quotes eld
23230 \end_inset
23231
23232 Sources
23233 \begin_inset Quotes erd
23234 \end_inset
23235
23236  and 
23237 \begin_inset Quotes eld
23238 \end_inset
23239
23240 Scientific works
23241 \begin_inset Quotes erd
23242 \end_inset
23243
23244 ,
23245  you first need to create two bibliographic databases,
23246  e.
23247 \begin_inset space \thinspace{}
23248 \end_inset
23249
23250 g.
23251 \begin_inset space \space{}
23252 \end_inset
23253
23254
23255 \begin_inset Flex Code
23256 status collapsed
23257
23258 \begin_layout Plain Layout
23259 sources.bib
23260 \end_layout
23261
23262 \end_inset
23263
23264  and 
23265 \begin_inset Flex Code
23266 status collapsed
23267
23268 \begin_layout Plain Layout
23269 scientific.bib
23270 \end_layout
23271
23272 \end_inset
23273
23274 .
23275  
23276 \end_layout
23277
23278 \begin_layout Standard
23279 Go to 
23280 \begin_inset Flex Noun
23281 status collapsed
23282
23283 \begin_layout Plain Layout
23284 Document\SpecialChar menuseparator
23285 Settings
23286 \end_layout
23287
23288 \end_inset
23289
23290  and check under 
23291 \begin_inset Flex Noun
23292 status collapsed
23293
23294 \begin_layout Plain Layout
23295 Bibliography
23296 \end_layout
23297
23298 \end_inset
23299
23300  the option 
23301 \begin_inset Flex Noun
23302 status collapsed
23303
23304 \begin_layout Plain Layout
23305 Subdivided bibliography
23306 \end_layout
23307
23308 \end_inset
23309
23310 .
23311  Now you can insert multiple Bib\SpecialChar TeX
23312  bibliographies,
23313  one for each section of your bibliography.
23314  Returning to our example:
23315  Insert the Bib\SpecialChar TeX
23316  bibliography 
23317 \begin_inset Flex Code
23318 status collapsed
23319
23320 \begin_layout Plain Layout
23321 sources.bib
23322 \end_layout
23323
23324 \end_inset
23325
23326  and a second one for the database 
23327 \begin_inset Flex Code
23328 status collapsed
23329
23330 \begin_layout Plain Layout
23331 scientific.bib
23332 \end_layout
23333
23334 \end_inset
23335
23336 .
23337  You are free to use the same or different styles for each section.
23338  Additionally,
23339  you can choose if the bibliography section should contain 
23340 \begin_inset Quotes eld
23341 \end_inset
23342
23343 all cited references
23344 \begin_inset Quotes erd
23345 \end_inset
23346
23347  of the specified database(s) (which is the default),
23348  
23349 \begin_inset Quotes eld
23350 \end_inset
23351
23352 all uncited references
23353 \begin_inset Quotes erd
23354 \end_inset
23355
23356  or even 
23357 \begin_inset Quotes eld
23358 \end_inset
23359
23360 all references
23361 \begin_inset Quotes erd
23362 \end_inset
23363
23364 .
23365  This might be useful if you would like to separate your bibliography into three sections:
23366  
23367 \begin_inset Quotes eld
23368 \end_inset
23369
23370 Cited sources
23371 \begin_inset Quotes erd
23372 \end_inset
23373
23374 ,
23375  
23376 \begin_inset Quotes eld
23377 \end_inset
23378
23379 Uncited sources
23380 \begin_inset Quotes erd
23381 \end_inset
23382
23383 ,
23384  and 
23385 \begin_inset Quotes eld
23386 \end_inset
23387
23388 Scientific works
23389 \begin_inset Quotes erd
23390 \end_inset
23391
23392 .
23393  The titles for the sections can be added as ordinary sections or subsections.
23394  Since 
23395 \begin_inset Flex Code
23396 status collapsed
23397
23398 \begin_layout Plain Layout
23399 bibtopic
23400 \end_layout
23401
23402 \end_inset
23403
23404  removes the bibliography title,
23405  you have to manually re-add that,
23406  too (as a chapter* or section*,
23407  for instance).
23408 \end_layout
23409
23410 \begin_layout Standard
23411 With 
23412 \family sans
23413 Biblatex
23414 \family default
23415 ,
23416  the procedure is a bit different.
23417  Since 
23418 \family typewriter
23419 bibtopic
23420 \family default
23421  does not work with 
23422 \family sans
23423 Biblatex
23424 \family default
23425 ,
23426  the aforementioned 
23427 \begin_inset Flex Noun
23428 status collapsed
23429
23430 \begin_layout Plain Layout
23431 Subdivided bibliography
23432 \end_layout
23433
23434 \end_inset
23435
23436  option is disabled if you use 
23437 \family sans
23438 Biblatex
23439 \family default
23440 .
23441  However,
23442  
23443 \family sans
23444 Biblatex
23445 \family default
23446  provides its own means to generate subdivided bibliographies.
23447  You can either add keywords to bibliography entries via the 
23448 \begin_inset Flex Code
23449 status collapsed
23450
23451 \begin_layout Plain Layout
23452 keywords
23453 \end_layout
23454
23455 \end_inset
23456
23457  entry option and then filter bibliography sections by keyword (by adding 
23458 \begin_inset Flex Code
23459 status collapsed
23460
23461 \begin_layout Plain Layout
23462 keyword=mykeyword
23463 \end_layout
23464
23465 \end_inset
23466
23467  to the 
23468 \begin_inset Flex Noun
23469 status collapsed
23470
23471 \begin_layout Plain Layout
23472 Options
23473 \end_layout
23474
23475 \end_inset
23476
23477  field of the dialog that opens if you left-click on the 
23478 \begin_inset Flex Noun
23479 status collapsed
23480
23481 \begin_layout Plain Layout
23482 Biblatex Generated Bibliography
23483 \end_layout
23484
23485 \end_inset
23486
23487  button),
23488  or you can filter by entry types (such as 
23489 \emph on
23490 book
23491 \emph default
23492  or 
23493 \emph on
23494 article
23495 \emph default
23496 ) by entering e.
23497 \begin_inset space \thinspace{}
23498 \end_inset
23499
23500 g.
23501  
23502 \begin_inset Flex Code
23503 status collapsed
23504
23505 \begin_layout Plain Layout
23506 type=book
23507 \end_layout
23508
23509 \end_inset
23510
23511  or 
23512 \begin_inset Flex Code
23513 status collapsed
23514
23515 \begin_layout Plain Layout
23516 nottype=collection
23517 \end_layout
23518
23519 \end_inset
23520
23521  to the mentioned 
23522 \begin_inset Flex Noun
23523 status collapsed
23524
23525 \begin_layout Plain Layout
23526 Options
23527 \end_layout
23528
23529 \end_inset
23530
23531  field,
23532  or you can create so-called 
23533 \begin_inset Quotes eld
23534 \end_inset
23535
23536 Bibliography Categories
23537 \begin_inset Quotes erd
23538 \end_inset
23539
23540  to which you can assign individual entries.
23541  Please refer to the Biblatex manual,
23542  section 
23543 \emph on
23544 Subdivided Bibliographies
23545 \emph default
23546 ,
23547  for details.
23548 \end_layout
23549
23550 \begin_layout Section
23551 Multiple Bibliographies
23552 \begin_inset CommandInset label
23553 LatexCommand label
23554 name "subsec:Multiple-Bibliographies"
23555
23556 \end_inset
23557
23558
23559 \end_layout
23560
23561 \begin_layout Standard
23562 Multiple bibliographies,
23563  e.
23564 \begin_inset space \thinspace{}
23565 \end_inset
23566
23567 g.
23568 \begin_inset space \space{}
23569 \end_inset
23570
23571 a bibliography for each part,
23572  chapter,
23573  section,
23574  subsection or child (sub-document) of the document,
23575  are also supported by \SpecialChar LyX
23576 .
23577  In order to enable it,
23578  go to 
23579 \begin_inset Flex Noun
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583 Document\SpecialChar menuseparator
23584 Settings\SpecialChar menuseparator
23585 Bibliography
23586 \end_layout
23587
23588 \end_inset
23589
23590  and select the relevant unit (e.
23591 \begin_inset space \thinspace{}
23592 \end_inset
23593
23594 g.,
23595  
23596 \begin_inset Quotes eld
23597 \end_inset
23598
23599 per section
23600 \begin_inset Quotes erd
23601 \end_inset
23602
23603 ) in the 
23604 \begin_inset Flex Noun
23605 status collapsed
23606
23607 \begin_layout Plain Layout
23608 Multiple Bibliographies
23609 \end_layout
23610
23611 \end_inset
23612
23613  combo box.
23614  Then add a Bib(la)\SpecialChar TeX
23615  bibliography to each unit (e.
23616 \begin_inset space \thinspace{}
23617 \end_inset
23618
23619 g.,
23620  section) of your document.
23621  In the output,
23622  a separate bibliography,
23623  containing only the references done in the current unit is generated.
23624 \end_layout
23625
23626 \begin_layout Standard
23627 If you use Bib\SpecialChar TeX
23628 ,
23629  either the 
23630 \begin_inset Flex Code
23631 status collapsed
23632
23633 \begin_layout Plain Layout
23634 chapterbib
23635 \end_layout
23636
23637 \end_inset
23638
23639  or the 
23640 \begin_inset Flex Code
23641 status collapsed
23642
23643 \begin_layout Plain Layout
23644 bibtopic
23645 \end_layout
23646
23647 \end_inset
23648
23649  package is used to create multiple bibliographies.
23650  The former package is used if you select 
23651 \begin_inset Quotes eld
23652 \end_inset
23653
23654 per child document
23655 \begin_inset Quotes erd
23656 \end_inset
23657
23658  and do 
23659 \emph on
23660 not
23661 \emph default
23662  check 
23663 \begin_inset Flex Noun
23664 status collapsed
23665
23666 \begin_layout Plain Layout
23667 Sectioned Bibliography
23668 \end_layout
23669
23670 \end_inset
23671
23672 .
23673  In all other cases,
23674  
23675 \begin_inset Flex Code
23676 status collapsed
23677
23678 \begin_layout Plain Layout
23679 bibtopic
23680 \end_layout
23681
23682 \end_inset
23683
23684  is used.
23685 \begin_inset Foot
23686 status collapsed
23687
23688 \begin_layout Plain Layout
23689 An alternative approach,
23690  if you are willing to use some 
23691 \begin_inset Flex Noun
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 \SpecialChar TeX
23696  Code
23697 \end_layout
23698
23699 \end_inset
23700
23701  (see section
23702 \begin_inset space ~
23703 \end_inset
23704
23705
23706 \begin_inset CommandInset ref
23707 LatexCommand ref
23708 reference "sec:Inserting-TeX-Code"
23709 nolink "false"
23710
23711 \end_inset
23712
23713 ),
23714  is to use the 
23715 \begin_inset Flex Code
23716 status collapsed
23717
23718 \begin_layout Plain Layout
23719 bibunits
23720 \end_layout
23721
23722 \end_inset
23723
23724  package.
23725 \end_layout
23726
23727 \end_inset
23728
23729  If 
23730 \begin_inset Flex Code
23731 status collapsed
23732
23733 \begin_layout Plain Layout
23734 bibtopic
23735 \end_layout
23736
23737 \end_inset
23738
23739  is used,
23740  \SpecialChar LyX
23741  encloses the specified units in 
23742 \begin_inset Flex Code
23743 status collapsed
23744
23745 \begin_layout Plain Layout
23746 bibtopic
23747 \end_layout
23748
23749 \end_inset
23750
23751 's 
23752 \begin_inset Flex Code
23753 status collapsed
23754
23755 \begin_layout Plain Layout
23756
23757 \backslash
23758 begin{btUnit}
23759 \end_layout
23760
23761 \end_inset
23762
23763  and 
23764 \begin_inset Flex Code
23765 status collapsed
23766
23767 \begin_layout Plain Layout
23768
23769 \backslash
23770 end{btUnit}
23771 \end_layout
23772
23773 \end_inset
23774
23775  in order to create the units.
23776  Note that this approach has some limitations.
23777  First,
23778  every citation reference has to be inside some 
23779 \begin_inset Flex Code
23780 status collapsed
23781
23782 \begin_layout Plain Layout
23783 btUnit
23784 \end_layout
23785
23786 \end_inset
23787
23788 .
23789  So citations outside a defined unit (e.
23790 \begin_inset space \thinspace{}
23791 \end_inset
23792
23793 g.,
23794  before the first section if you use 
23795 \begin_inset Quotes eld
23796 \end_inset
23797
23798 by section
23799 \begin_inset Quotes erd
23800 \end_inset
23801
23802 ) will appear as 
23803 \begin_inset Quotes eld
23804 \end_inset
23805
23806 ???
23807 \begin_inset Quotes erd
23808 \end_inset
23809
23810 .
23811  You can also create your own units by entering 
23812 \begin_inset Flex Code
23813 status collapsed
23814
23815 \begin_layout Plain Layout
23816
23817 \backslash
23818 begin{btUnit}
23819 \end_layout
23820
23821 \end_inset
23822
23823  and 
23824 \begin_inset Flex Code
23825 status collapsed
23826
23827 \begin_layout Plain Layout
23828
23829 \backslash
23830 end{btUnit}
23831 \end_layout
23832
23833 \end_inset
23834
23835  as \SpecialChar TeX
23836  code (for instance to work around the mentioned limitation).
23837  Note,
23838  though,
23839  that 
23840 \begin_inset Flex Code
23841 status collapsed
23842
23843 \begin_layout Plain Layout
23844 btUnit
23845 \end_layout
23846
23847 \end_inset
23848
23849 s cannot be nested.
23850  A second limitation is that 
23851 \begin_inset Flex Code
23852 status collapsed
23853
23854 \begin_layout Plain Layout
23855 bibtopic
23856 \end_layout
23857
23858 \end_inset
23859
23860  always processes all references of a bibliography database,
23861  even if they are not cited.
23862  This can result in odd labels (e.
23863 \begin_inset space \thinspace{}
23864 \end_inset
23865
23866 g.
23867  
23868 \begin_inset Quotes eld
23869 \end_inset
23870
23871 Miller 2014b
23872 \begin_inset Quotes erd
23873 \end_inset
23874
23875  if two works of this author from 2014 are in the database,
23876  even if only one is cited).
23877 \end_layout
23878
23879 \begin_layout Standard
23880 If you use 
23881 \family sans
23882 Biblatex
23883 \family default
23884 ,
23885  the 
23886 \begin_inset Flex Code
23887 status collapsed
23888
23889 \begin_layout Plain Layout
23890 refsection
23891 \end_layout
23892
23893 \end_inset
23894
23895  option is used instead.
23896  If you need specific units,
23897  you can start them with the \SpecialChar TeX
23898  code 
23899 \begin_inset Flex Code
23900 status collapsed
23901
23902 \begin_layout Plain Layout
23903
23904 \backslash
23905 newrefsection
23906 \end_layout
23907
23908 \end_inset
23909
23910  or 
23911 \begin_inset Flex Code
23912 status collapsed
23913
23914 \begin_layout Plain Layout
23915
23916 \backslash
23917 newrefsegment
23918 \end_layout
23919
23920 \end_inset
23921
23922 ,
23923  respectively.
23924  If you also want to control the end of the unit,
23925  use the environment 
23926 \begin_inset Flex Code
23927 status collapsed
23928
23929 \begin_layout Plain Layout
23930
23931 \backslash
23932 begin{refsection}
23933 \end_layout
23934
23935 \end_inset
23936
23937  \SpecialChar ldots
23938  
23939 \begin_inset Flex Code
23940 status collapsed
23941
23942 \begin_layout Plain Layout
23943
23944 \backslash
23945 end{refsection}
23946 \end_layout
23947
23948 \end_inset
23949
23950  instead.
23951  Note,
23952  though,
23953  that 
23954 \begin_inset Flex Code
23955 status collapsed
23956
23957 \begin_layout Plain Layout
23958 refsection
23959 \end_layout
23960
23961 \end_inset
23962
23963 s cannot be nested.
23964  In addition to the individual bibliography of the current unit,
23965  
23966 \family sans
23967 Biblatex
23968 \family default
23969  also provides an easy way to output all bibliographies,
23970  subsequently,
23971  at one place (e.
23972 \begin_inset space \thinspace{}
23973 \end_inset
23974
23975 g.,
23976  at the end of the document).
23977  Select 
23978 \begin_inset Quotes eld
23979 \end_inset
23980
23981 all reference units
23982 \begin_inset Quotes erd
23983 \end_inset
23984
23985  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
23986  Please refer to the 
23987 \family sans
23988 Biblatex
23989 \family default
23990  manual for more information on this topic.
23991 \end_layout
23992
23993 \begin_layout Chapter
23994
23995 \change_deleted 564990737 1671355654
23996 Itemize 
23997 \change_unchanged
23998 Bullet
23999 \change_inserted 564990737 1671355667
24000 s
24001 \change_deleted 564990737 1671355661
24002  Selection
24003 \change_inserted 564990737 1671355684
24004
24005 \begin_inset CommandInset label
24006 LatexCommand label
24007 name "chap:bullets"
24008
24009 \end_inset
24010
24011
24012 \change_deleted 564990737 1671355684
24013
24014 \begin_inset CommandInset label
24015 LatexCommand label
24016 name "sec:bullet"
24017
24018 \end_inset
24019
24020
24021 \change_unchanged
24022
24023 \end_layout
24024
24025 \begin_layout Standard
24026 by
24027 \noun on
24028  Allan Rae
24029 \end_layout
24030
24031 \begin_layout Section
24032 Introduction
24033 \end_layout
24034
24035 \begin_layout Standard
24036 \SpecialChar LyX
24037  provides 216 bullet shapes that can be accessed from a simple dialog.
24038  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
24039  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
24040 \begin_inset Foot
24041 status collapsed
24042
24043 \begin_layout Plain Layout
24044 Well,
24045  actually you can but you'll have to do it by hand.
24046 \end_layout
24047
24048 \end_inset
24049
24050
24051 \end_layout
24052
24053 \begin_layout Section
24054 How it looks
24055 \end_layout
24056
24057 \begin_layout Standard
24058 Open the dialog by selecting the 
24059 \begin_inset Flex Noun
24060 status collapsed
24061
24062 \begin_layout Plain Layout
24063 Document\SpecialChar menuseparator
24064 Settings
24065 \end_layout
24066
24067 \end_inset
24068
24069  menu item and then select the 
24070 \begin_inset Flex Noun
24071 status collapsed
24072
24073 \begin_layout Plain Layout
24074 Bullets
24075 \end_layout
24076
24077 \end_inset
24078
24079  tab.
24080 \end_layout
24081
24082 \begin_layout Standard
24083 The dialog provides you with a table of bullet shapes.
24084  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
24085  The row of buttons across the top is used to select which bullet depth you are changing.
24086
24087 \change_deleted 244031559 1603875981
24088  A text entry under the table shows the currently selected bullet shape's \SpecialChar LaTeX
24089  equivalent and this can be edited if desired.
24090  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
24091  preamble.
24092 \change_unchanged
24093
24094 \end_layout
24095
24096 \begin_layout Standard
24097 The six panels are divided up by the packages they require.
24098  The following table shows the mappings from button name to \SpecialChar LaTeX
24099  package.
24100 \end_layout
24101
24102 \begin_layout Standard
24103 \align center
24104 \begin_inset Tabular
24105 <lyxtabular version="3" rows="7" columns="2">
24106 <features tabularvalignment="middle">
24107 <column alignment="center" valignment="top" width="0pt">
24108 <column alignment="center" valignment="top" width="0pt">
24109 <row>
24110 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24111 \begin_inset Text
24112
24113 \begin_layout Plain Layout
24114
24115 \family roman
24116 \series medium
24117 \shape up
24118 \size normal
24119 \emph off
24120 \bar no
24121 \noun off
24122 \color none
24123 Button
24124 \end_layout
24125
24126 \end_inset
24127 </cell>
24128 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24129 \begin_inset Text
24130
24131 \begin_layout Plain Layout
24132
24133 \family roman
24134 \series medium
24135 \shape up
24136 \size normal
24137 \emph off
24138 \bar no
24139 \noun off
24140 \color none
24141 Packages Required
24142 \end_layout
24143
24144 \end_inset
24145 </cell>
24146 </row>
24147 <row>
24148 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24149 \begin_inset Text
24150
24151 \begin_layout Plain Layout
24152
24153 \family sans
24154 \series medium
24155 \shape up
24156 \size normal
24157 \emph off
24158 \bar no
24159 \noun off
24160 \color none
24161 Standard
24162 \end_layout
24163
24164 \end_inset
24165 </cell>
24166 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24167 \begin_inset Text
24168
24169 \begin_layout Plain Layout
24170
24171 \series medium
24172 \shape up
24173 \size normal
24174 \emph off
24175 \bar no
24176 \noun off
24177 \color none
24178 base \SpecialChar LaTeX
24179
24180 \end_layout
24181
24182 \end_inset
24183 </cell>
24184 </row>
24185 <row>
24186 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24187 \begin_inset Text
24188
24189 \begin_layout Plain Layout
24190
24191 \family sans
24192 \series medium
24193 \shape up
24194 \size normal
24195 \emph off
24196 \bar no
24197 \noun off
24198 \color none
24199 Maths
24200 \end_layout
24201
24202 \end_inset
24203 </cell>
24204 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24205 \begin_inset Text
24206
24207 \begin_layout Plain Layout
24208
24209 \family typewriter
24210 \series medium
24211 \shape up
24212 \size normal
24213 \emph off
24214 \bar no
24215 \noun off
24216 \color none
24217 amssymb.sty
24218 \end_layout
24219
24220 \end_inset
24221 </cell>
24222 </row>
24223 <row>
24224 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24225 \begin_inset Text
24226
24227 \begin_layout Plain Layout
24228
24229 \family sans
24230 \series medium
24231 \shape up
24232 \size normal
24233 \emph off
24234 \bar no
24235 \noun off
24236 \color none
24237 Ding1
24238 \end_layout
24239
24240 \end_inset
24241 </cell>
24242 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24243 \begin_inset Text
24244
24245 \begin_layout Plain Layout
24246
24247 \family typewriter
24248 \series medium
24249 \shape up
24250 \size normal
24251 \emph off
24252 \bar no
24253 \noun off
24254 \color none
24255 pifont.sty
24256 \end_layout
24257
24258 \end_inset
24259 </cell>
24260 </row>
24261 <row>
24262 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24263 \begin_inset Text
24264
24265 \begin_layout Plain Layout
24266
24267 \family sans
24268 \series medium
24269 \shape up
24270 \size normal
24271 \emph off
24272 \bar no
24273 \noun off
24274 \color none
24275 Ding2
24276 \end_layout
24277
24278 \end_inset
24279 </cell>
24280 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24281 \begin_inset Text
24282
24283 \begin_layout Plain Layout
24284
24285 \family typewriter
24286 \series medium
24287 \shape up
24288 \size normal
24289 \emph off
24290 \bar no
24291 \noun off
24292 \color none
24293 pifont.sty
24294 \end_layout
24295
24296 \end_inset
24297 </cell>
24298 </row>
24299 <row>
24300 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24301 \begin_inset Text
24302
24303 \begin_layout Plain Layout
24304
24305 \family sans
24306 \series medium
24307 \shape up
24308 \size normal
24309 \emph off
24310 \bar no
24311 \noun off
24312 \color none
24313 Ding3
24314 \end_layout
24315
24316 \end_inset
24317 </cell>
24318 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24319 \begin_inset Text
24320
24321 \begin_layout Plain Layout
24322
24323 \family typewriter
24324 \series medium
24325 \shape up
24326 \size normal
24327 \emph off
24328 \bar no
24329 \noun off
24330 \color none
24331 pifont.sty
24332 \end_layout
24333
24334 \end_inset
24335 </cell>
24336 </row>
24337 <row>
24338 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24339 \begin_inset Text
24340
24341 \begin_layout Plain Layout
24342
24343 \family sans
24344 \series medium
24345 \shape up
24346 \size normal
24347 \emph off
24348 \bar no
24349 \noun off
24350 \color none
24351 Ding4
24352 \end_layout
24353
24354 \end_inset
24355 </cell>
24356 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24357 \begin_inset Text
24358
24359 \begin_layout Plain Layout
24360
24361 \family typewriter
24362 \series medium
24363 \shape up
24364 \size normal
24365 \emph off
24366 \bar no
24367 \noun off
24368 \color none
24369 pifont.sty
24370 \end_layout
24371
24372 \end_inset
24373 </cell>
24374 </row>
24375 </lyxtabular>
24376
24377 \end_inset
24378
24379
24380 \end_layout
24381
24382 \begin_layout Standard
24383 \SpecialChar LyX
24384  doesn't stop you using bullets from packages you don't have.
24385  If you get errors from \SpecialChar LaTeX
24386  when you try to view or print the file,
24387  then it is likely you are missing a package.
24388 \begin_inset Foot
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 \SpecialChar LyX
24393  doesn't restrict your use since you may be editing locally and exporting elsewhere.
24394 \end_layout
24395
24396 \end_inset
24397
24398
24399 \end_layout
24400
24401 \begin_layout Section
24402 How to use it
24403 \end_layout
24404
24405 \begin_layout Standard
24406 Select which bullet depth you want to change then select the bullet shape and size.
24407  Any changes will not be visible in \SpecialChar LyX
24408 ,
24409  but are visible when viewing the document.
24410 \end_layout
24411
24412 \begin_layout Standard
24413 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
24414 \begin_inset Foot
24415 status open
24416
24417 \begin_layout Plain Layout
24418
24419 \change_inserted 564990737 1672138075
24420 \begin_inset CommandInset label
24421 LatexCommand label
24422 name "fn:If-you-really"
24423
24424 \end_inset
24425
24426
24427 \change_unchanged
24428 If you 
24429 \emph on
24430 really
24431 \emph default
24432  want to have multiple sets of paragraphs with different sets of bullets in each,
24433  then you're going to have to get your hands dirty with \SpecialChar TeX
24434  code.
24435  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
24436  code for a wide range of bullet shapes.
24437  To make your own custom paragraphs you have the following options:
24438 \end_layout
24439
24440 \begin_layout Plain Layout
24441 \begin_inset ERT
24442 status open
24443
24444 \begin_layout Plain Layout
24445
24446
24447 \backslash
24448 let
24449 \backslash
24450 savelabelitemi=
24451 \backslash
24452 labelitemi
24453 \end_layout
24454
24455 \end_inset
24456
24457
24458 \end_layout
24459
24460 \begin_layout Plain Layout
24461 \begin_inset ERT
24462 status open
24463
24464 \begin_layout Plain Layout
24465
24466
24467 \backslash
24468 renewcommand
24469 \backslash
24470 labelitemi[0]{
24471 \backslash
24472 small
24473 \backslash
24474 (
24475 \backslash
24476 sharp
24477 \backslash
24478 )}
24479 \end_layout
24480
24481 \end_inset
24482
24483
24484 \end_layout
24485
24486 \begin_layout Itemize
24487 Use the \SpecialChar LaTeX
24488  command 
24489 \begin_inset Flex Code
24490 status collapsed
24491
24492 \begin_layout Plain Layout
24493
24494 \backslash
24495 renewcommand{}{}
24496 \end_layout
24497
24498 \end_inset
24499
24500  to specify a new bullet shape for a given depth.
24501  You'll also need to save the current bullet shape so you can restore it again afterwards.
24502  In this itemized list the following \SpecialChar LaTeX
24503  code was used to change the bullet used for the first depth.
24504 \end_layout
24505
24506 \begin_deeper
24507 \begin_layout LyX-Code
24508
24509 \backslash
24510 let
24511 \backslash
24512 savelabelitemi=
24513 \backslash
24514 labelitemi 
24515 \end_layout
24516
24517 \begin_layout LyX-Code
24518
24519 \backslash
24520 renewcommand
24521 \backslash
24522 labelitemi[0]{
24523 \backslash
24524 small
24525 \backslash
24526 (
24527 \backslash
24528 sharp
24529 \backslash
24530 )}
24531 \end_layout
24532
24533 \end_deeper
24534 \begin_layout Itemize
24535 Note that the itemize depth is specified in Roman numerals as part of the 
24536 \family typewriter
24537
24538 \backslash
24539 labelitem
24540 \family default
24541  command.
24542 \end_layout
24543
24544 \begin_layout Itemize
24545 \begin_inset Argument item:1
24546 status open
24547
24548 \begin_layout Plain Layout
24549 \begin_inset ERT
24550 status open
24551
24552 \begin_layout Plain Layout
24553
24554
24555 \backslash
24556 (
24557 \backslash
24558 star
24559 \backslash
24560 )
24561 \end_layout
24562
24563 \end_inset
24564
24565
24566 \end_layout
24567
24568 \end_inset
24569
24570  Specify each individual entry by starting each item with the bullet shape enclosed in a 
24571 \begin_inset Quotes eld
24572 \end_inset
24573
24574 Custom Item
24575 \begin_inset Quotes erd
24576 \end_inset
24577
24578  inset (available at 
24579 \family sans
24580 Insert\SpecialChar menuseparator
24581 Custom Item
24582 \family default
24583 ) and set as 
24584 \begin_inset Flex Noun
24585 status collapsed
24586
24587 \begin_layout Plain Layout
24588 \SpecialChar TeX
24589  Code
24590 \end_layout
24591
24592 \end_inset
24593
24594 .
24595  For example,
24596  this item was started with 
24597 \begin_inset Flex Code
24598 status collapsed
24599
24600 \begin_layout Plain Layout
24601
24602 \backslash
24603 (
24604 \backslash
24605 star
24606 \backslash
24607 )
24608 \end_layout
24609
24610 \end_inset
24611
24612 .
24613 \end_layout
24614
24615 \begin_layout Plain Layout
24616 \begin_inset ERT
24617 status open
24618
24619 \begin_layout Plain Layout
24620
24621
24622 \backslash
24623 renewcommand
24624 \backslash
24625 labelitemi[0]{
24626 \backslash
24627 savelabelitemi}
24628 \end_layout
24629
24630 \end_inset
24631
24632
24633 \end_layout
24634
24635 \begin_layout Plain Layout
24636 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
24637  The way used here was:
24638 \end_layout
24639
24640 \begin_layout LyX-Code
24641
24642 \backslash
24643 renewcommand
24644 \backslash
24645 labelitemi[0]{
24646 \backslash
24647 savelabelitemi}
24648 \end_layout
24649
24650 \end_inset
24651
24652
24653 \end_layout
24654
24655 \begin_layout Chapter
24656 Supplemental Tools
24657 \end_layout
24658
24659 \begin_layout Section
24660 Multipart Documents
24661 \end_layout
24662
24663 \begin_layout Subsection
24664 General Operation
24665 \end_layout
24666
24667 \begin_layout Standard
24668 When you are working on a large file with many sections,
24669  it is often convenient to break up the document into several files,
24670  or perhaps you have something where a table may change from time to time,
24671  but the preceding text does not.
24672  In these cases,
24673  you should seriously consider using multipart documents.
24674  For example,
24675  scientific papers often have five major sections:
24676  the introduction,
24677  observations,
24678  results,
24679  discussion,
24680  and conclusion.
24681  Each of these could be its own separate \SpecialChar LyX
24682  file,
24683  with one 
24684 \begin_inset Quotes eld
24685 \end_inset
24686
24687 master
24688 \begin_inset Quotes erd
24689 \end_inset
24690
24691  file which contains the title,
24692  authors,
24693  abstract,
24694  references,
24695  etc.,
24696  plus the five included files.
24697  It is important to note that each of these files is a full \SpecialChar LyX
24698  file which can be formatted and printed on its own,
24699  as well as included in a master file.
24700  Each of these files must have the same document class,
24701  however—
24702 don't attempt to mix book classes with article classes.
24703  You may also include \SpecialChar LaTeX
24704  files;
24705  however,
24706  these files must not have their own preamble (i.
24707 \begin_inset space \thinspace{}
24708 \end_inset
24709
24710 e.
24711 \begin_inset space \space{}
24712 \end_inset
24713
24714 everything up to and including the 
24715 \begin_inset Flex Code
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719
24720 \backslash
24721 begin{document}
24722 \end_layout
24723
24724 \end_inset
24725
24726  line as well as the 
24727 \begin_inset Flex Code
24728 status collapsed
24729
24730 \begin_layout Plain Layout
24731
24732 \backslash
24733 end{document}
24734 \end_layout
24735
24736 \end_inset
24737
24738  line must be deleted) or else errors will be generated when you try to make a DVI file.
24739 \end_layout
24740
24741 \begin_layout Standard
24742 \SpecialChar LyX
24743  allows you to include files quite easily with 
24744 \begin_inset Flex Noun
24745 status collapsed
24746
24747 \begin_layout Plain Layout
24748 Insert\SpecialChar menuseparator
24749 Child
24750 \begin_inset space ~
24751 \end_inset
24752
24753 Document
24754 \end_layout
24755
24756 \end_inset
24757
24758 .
24759  When you click on this selection a small box is inserted into the file at the current cursor location.
24760  Clicking on the box raises a dialog which allows you to select the file to be included,
24761  and the method of its inclusion.
24762  
24763 \end_layout
24764
24765 \begin_layout Standard
24766 The file selection box should by now be obvious.
24767  The three inclusion methods are 
24768 \begin_inset Quotes eld
24769 \end_inset
24770
24771 include
24772 \begin_inset Quotes erd
24773 \end_inset
24774
24775 ,
24776  
24777 \begin_inset Quotes eld
24778 \end_inset
24779
24780 input
24781 \begin_inset Quotes erd
24782 \end_inset
24783
24784 ,
24785  and 
24786 \begin_inset Quotes eld
24787 \end_inset
24788
24789 verbatim
24790 \begin_inset Quotes erd
24791 \end_inset
24792
24793 .
24794  The methods 
24795 \begin_inset Quotes eld
24796 \end_inset
24797
24798 include
24799 \begin_inset Quotes erd
24800 \end_inset
24801
24802  and 
24803 \begin_inset Quotes eld
24804 \end_inset
24805
24806 input
24807 \begin_inset Quotes erd
24808 \end_inset
24809
24810  are similar in many ways,
24811  but there are also some notable differences:
24812 \end_layout
24813
24814 \begin_layout Enumerate
24815 Files that are 
24816 \begin_inset Quotes eld
24817 \end_inset
24818
24819 included
24820 \begin_inset Quotes erd
24821 \end_inset
24822
24823  are typeset beginning on a new page,
24824  while files that are 
24825 \begin_inset Quotes eld
24826 \end_inset
24827
24828 inputted
24829 \begin_inset Quotes erd
24830 \end_inset
24831
24832  are typeset starting on the current page.
24833 \end_layout
24834
24835 \begin_layout Enumerate
24836 \begin_inset Quotes eld
24837 \end_inset
24838
24839 Included
24840 \begin_inset Quotes erd
24841 \end_inset
24842
24843  files cannot themselves 
24844 \begin_inset Quotes eld
24845 \end_inset
24846
24847 include
24848 \begin_inset Quotes erd
24849 \end_inset
24850
24851  further files (
24852 \begin_inset Quotes eld
24853 \end_inset
24854
24855 grandchilds
24856 \begin_inset Quotes erd
24857 \end_inset
24858
24859 ).
24860  With 
24861 \begin_inset Quotes eld
24862 \end_inset
24863
24864 input
24865 \begin_inset Quotes erd
24866 \end_inset
24867
24868 ,
24869  on the other hand,
24870  infinite sub-inputting is possible.
24871 \end_layout
24872
24873 \begin_layout Enumerate
24874 \begin_inset Quotes eld
24875 \end_inset
24876
24877 Include
24878 \begin_inset Quotes erd
24879 \end_inset
24880
24881  allow for the output of only selected 
24882 \begin_inset Quotes eld
24883 \end_inset
24884
24885 included
24886 \begin_inset Quotes erd
24887 \end_inset
24888
24889  files,
24890  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
24891 \emph on
24892 Child
24893 \begin_inset space ~
24894 \end_inset
24895
24896 Documents
24897 \emph default
24898  of the 
24899 \emph on
24900 Embedded
24901 \begin_inset space ~
24902 \end_inset
24903
24904 Objects
24905 \emph default
24906  manual for details).
24907 \end_layout
24908
24909 \begin_layout Standard
24910 Hence,
24911  
24912 \begin_inset Quotes eld
24913 \end_inset
24914
24915 include
24916 \begin_inset Quotes erd
24917 \end_inset
24918
24919  is the preferred method for chapters that are outsourced to child documents,
24920  while 
24921 \begin_inset Quotes eld
24922 \end_inset
24923
24924 input
24925 \begin_inset Quotes erd
24926 \end_inset
24927
24928  is more suitable for arbitrary file inheritance.
24929 \end_layout
24930
24931 \begin_layout Standard
24932
24933 \begin_inset Quotes eld
24934 \end_inset
24935
24936 verbatim
24937 \begin_inset Quotes erd
24938 \end_inset
24939
24940  included file allows you to include a file typeset exactly as it appears in the file,
24941  i.
24942 \begin_inset space \thinspace{}
24943 \end_inset
24944
24945 e.
24946 \begin_inset space \space{}
24947 \end_inset
24948
24949 in 
24950 \begin_inset Flex Code
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954 verbatim
24955 \end_layout
24956
24957 \end_inset
24958
24959  mode,
24960  with the characters set in a fixed-width typewriter font.
24961  Normally,
24962  spaces in this file are invisible,
24963  though two consecutive spaces are conserved,
24964  unlike \SpecialChar LyX
24965 's normal treatment of spaces.
24966  However,
24967  setting the 
24968 \begin_inset Flex Noun
24969 status collapsed
24970
24971 \begin_layout Plain Layout
24972 Mark
24973 \begin_inset space ~
24974 \end_inset
24975
24976 spaces
24977 \begin_inset space ~
24978 \end_inset
24979
24980 in
24981 \begin_inset space ~
24982 \end_inset
24983
24984 output
24985 \end_layout
24986
24987 \end_inset
24988
24989  checkbox typesets a mark to unambiguously define the presence of a space.
24990  
24991 \end_layout
24992
24993 \begin_layout Standard
24994 Generally,
24995  the master file is converted into a full \SpecialChar LaTeX
24996  file before typesetting,
24997  while the included files are converted to \SpecialChar LaTeX
24998  files that do not have all the preamble information.
24999 \end_layout
25000
25001 \begin_layout Subsection
25002 Cross-References Between Files
25003 \end_layout
25004
25005 \begin_layout Standard
25006 \begin_inset Box Shadowbox
25007 position "t"
25008 hor_pos "c"
25009 has_inner_box 1
25010 inner_pos "t"
25011 use_parbox 0
25012 use_makebox 0
25013 width "100col%"
25014 special "none"
25015 height "1in"
25016 height_special "totalheight"
25017 thickness "0.4pt"
25018 separation "3pt"
25019 shadowsize "4pt"
25020 framecolor "black"
25021 backgroundcolor "none"
25022 status open
25023
25024 \begin_layout Plain Layout
25025 This section is somewhat out of date.
25026  Need to describe default master documents and how children are opened when the master is.
25027  [[FIXME]]
25028 \end_layout
25029
25030 \end_inset
25031
25032
25033 \end_layout
25034
25035 \begin_layout Standard
25036 It is possible to set up cross-references between the different files.
25037  First,
25038  open all the files in question:
25039  let's call them A and B in a two file example,
25040  where B is included in A.
25041  Let's say you insert a label in A,
25042  then want to reference it in B.
25043  Open the cross-reference dialog whilst in document B,
25044  and you can select the 
25045 \begin_inset Quotes eld
25046 \end_inset
25047
25048 buffer
25049 \begin_inset Quotes erd
25050 \end_inset
25051
25052  to use.
25053 \end_layout
25054
25055 \begin_layout Subsection
25056 Bibliography Lists in all Subdocuments
25057 \end_layout
25058
25059 \begin_layout Standard
25060 If you work with child documents,
25061  you might want to have only one main bibliography at the end,
25062  but still be able to have a selected bibliography for the child if you output it on its own.
25063  Here is how to achieve this.
25064 \end_layout
25065
25066 \begin_layout Standard
25067 For the main document,
25068  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
25069  If the bibliography inset is in the master file,
25070  the references will be inherited by all children,
25071  so they are available in the citation dialog within each child.
25072 \end_layout
25073
25074 \begin_layout Standard
25075 For child-specific bibliographies,
25076  insert bibliography insets within the child documents,
25077  at the place where the bibliography should appear when the child is compiled separately.
25078  However,
25079  the trick is to insert them into a branch (
25080 \family sans
25081 Insert\SpecialChar menuseparator
25082 Branch\SpecialChar menuseparator
25083 Insert New Branch...
25084 \family default
25085 ),
25086  e.
25087 \begin_inset space \thinspace{}
25088 \end_inset
25089
25090 g.
25091  called 
25092 \begin_inset Quotes eld
25093 \end_inset
25094
25095 Childonly
25096 \begin_inset Quotes erd
25097 \end_inset
25098
25099 .
25100  Within the children,
25101  activate the branch (
25102 \family sans
25103 Document\SpecialChar menuseparator
25104 Settings...\SpecialChar menuseparator
25105 Branches
25106 \family default
25107 ).
25108  Within the master,
25109  deactivate the branch (
25110 \family sans
25111 Document\SpecialChar menuseparator
25112 Settings...\SpecialChar menuseparator
25113 Branches
25114 \family default
25115 ).
25116  Now the child's bibliography will be ignored by the master,
25117  but considered by the child.
25118 \end_layout
25119
25120 \begin_layout Standard
25121 If you need multiple bibliographies (e.
25122 \begin_inset space \thinspace{}
25123 \end_inset
25124
25125 g.,
25126  one per child in the 
25127 \emph on
25128 main document
25129 \emph default
25130 ),
25131  please refer to sec.
25132 \begin_inset space ~
25133 \end_inset
25134
25135
25136 \begin_inset CommandInset ref
25137 LatexCommand ref
25138 reference "subsec:Multiple-Bibliographies"
25139 nolink "false"
25140
25141 \end_inset
25142
25143 .
25144 \end_layout
25145
25146 \begin_layout Section
25147 \SpecialChar LyX
25148  Archives
25149 \end_layout
25150
25151 \begin_layout Standard
25152 Users sometimes need to be able to 
25153 \begin_inset Quotes eld
25154 \end_inset
25155
25156 bundle
25157 \begin_inset Quotes erd
25158 \end_inset
25159
25160  a \SpecialChar LyX
25161  file together with all the images (and other files) on which it depends,
25162  either for sending to a publisher or for sharing with a co-author.
25163  \SpecialChar LyX
25164  includes a Python script (
25165 \begin_inset Flex Code
25166 status collapsed
25167
25168 \begin_layout Plain Layout
25169 lyxpak.py
25170 \end_layout
25171
25172 \end_inset
25173
25174 ) that automates this process.
25175  To use it,
25176  you must have either the 
25177 \begin_inset Flex Code
25178 status collapsed
25179
25180 \begin_layout Plain Layout
25181 zipfile
25182 \end_layout
25183
25184 \end_inset
25185
25186  or 
25187 \begin_inset Flex Code
25188 status collapsed
25189
25190 \begin_layout Plain Layout
25191 tarfile
25192 \end_layout
25193
25194 \end_inset
25195
25196  python modules installed on your system.
25197  By default,
25198  the script prefers the 
25199 \begin_inset Flex Code
25200 status collapsed
25201
25202 \begin_layout Plain Layout
25203 gzip
25204 \end_layout
25205
25206 \end_inset
25207
25208 -compressed 
25209 \begin_inset Flex Code
25210 status collapsed
25211
25212 \begin_layout Plain Layout
25213 tar
25214 \end_layout
25215
25216 \end_inset
25217
25218  format on Unix-like systems and the 
25219 \begin_inset Flex Code
25220 status collapsed
25221
25222 \begin_layout Plain Layout
25223 zip
25224 \end_layout
25225
25226 \end_inset
25227
25228  format on Windows.
25229 \end_layout
25230
25231 \begin_layout Standard
25232 \SpecialChar LyX
25233 's configuration process will set the script up to export a `\SpecialChar LyX
25234  Archive',
25235  and this format will then be available under 
25236 \begin_inset Flex Code
25237 status collapsed
25238
25239 \begin_layout Plain Layout
25240 File\SpecialChar menuseparator
25241 Export
25242 \end_layout
25243
25244 \end_inset
25245
25246 .
25247 \end_layout
25248
25249 \begin_layout Standard
25250 Independently of the platform,
25251  the generation of a particular archive format can be forced by adding either the 
25252 \begin_inset Flex Code
25253 status collapsed
25254
25255 \begin_layout Plain Layout
25256 -t
25257 \end_layout
25258
25259 \end_inset
25260
25261  (for the 
25262 \begin_inset Flex Code
25263 status collapsed
25264
25265 \begin_layout Plain Layout
25266 tar
25267 \end_layout
25268
25269 \end_inset
25270
25271  format) or 
25272 \begin_inset Flex Code
25273 status collapsed
25274
25275 \begin_layout Plain Layout
25276 -z
25277 \end_layout
25278
25279 \end_inset
25280
25281  (for the 
25282 \begin_inset Flex Code
25283 status collapsed
25284
25285 \begin_layout Plain Layout
25286 zip
25287 \end_layout
25288
25289 \end_inset
25290
25291  format) switch to the 
25292 \begin_inset Flex Code
25293 status collapsed
25294
25295 \begin_layout Plain Layout
25296 \SpecialChar LyX
25297 \SpecialChar menuseparator
25298 \SpecialChar LyX
25299  Archive
25300 \end_layout
25301
25302 \end_inset
25303
25304  converter in 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 Tools\SpecialChar menuseparator
25310 Preferences\SpecialChar menuseparator
25311 File Handling\SpecialChar menuseparator
25312 Converters
25313 \end_layout
25314
25315 \end_inset
25316
25317 .
25318  (Make sure you add the switch after the script name,
25319  not before it.)
25320 \end_layout
25321
25322 \begin_layout Section
25323 Fancy Headers and Footers
25324 \end_layout
25325
25326 \begin_layout Standard
25327 The default page layout is rather plain;
25328  for an 
25329 \begin_inset Flex Code
25330 status collapsed
25331
25332 \begin_layout Plain Layout
25333 article
25334 \end_layout
25335
25336 \end_inset
25337
25338  document class,
25339  all you get is a centered page number at the bottom of the page.
25340  This document uses KOMA-script's book class,
25341  so it appears to be a bit fancier.
25342  But to really put on a show,
25343  you need to set the document page style to 
25344 \begin_inset Quotes eld
25345 \end_inset
25346
25347 fancy
25348 \begin_inset Quotes erd
25349 \end_inset
25350
25351 ,
25352  as mentioned in the 
25353 \emph on
25354 User Guide
25355 \emph default
25356 .
25357  This section describes the \SpecialChar LaTeX
25358  code you need to insert in your \SpecialChar LaTeX
25359  preamble in order to get the desired effects.
25360 \end_layout
25361
25362 \begin_layout Standard
25363 For more information on fancy headers,
25364  see the 
25365 \begin_inset Flex Code
25366 status collapsed
25367
25368 \begin_layout Plain Layout
25369 fancyhdr
25370 \end_layout
25371
25372 \end_inset
25373
25374  package documentation.
25375  (
25376 \begin_inset Flex URL
25377 status collapsed
25378
25379 \begin_layout Plain Layout
25380
25381 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
25382 \end_layout
25383
25384 \end_inset
25385
25386 )
25387 \end_layout
25388
25389 \begin_layout Standard
25390 The page header is divided into three fields,
25391  not surprisingly labeled 
25392 \begin_inset Quotes eld
25393 \end_inset
25394
25395 left
25396 \begin_inset Quotes erd
25397 \end_inset
25398
25399 ,
25400  
25401 \begin_inset Quotes eld
25402 \end_inset
25403
25404 center
25405 \begin_inset Quotes erd
25406 \end_inset
25407
25408 ,
25409  and 
25410 \begin_inset Quotes eld
25411 \end_inset
25412
25413 right
25414 \begin_inset Quotes erd
25415 \end_inset
25416
25417 .
25418  The footer is also divided into these three fields.
25419  The \SpecialChar LaTeX
25420  commands to set these fields in the simplest manner are 
25421 \begin_inset Flex Code
25422 status collapsed
25423
25424 \begin_layout Plain Layout
25425
25426 \backslash
25427 lhead
25428 \end_layout
25429
25430 \end_inset
25431
25432 ,
25433  
25434 \begin_inset Flex Code
25435 status collapsed
25436
25437 \begin_layout Plain Layout
25438
25439 \backslash
25440 chead
25441 \end_layout
25442
25443 \end_inset
25444
25445 ,
25446  
25447 \begin_inset Flex Code
25448 status collapsed
25449
25450 \begin_layout Plain Layout
25451
25452 \backslash
25453 rhead
25454 \end_layout
25455
25456 \end_inset
25457
25458 ,
25459  
25460 \begin_inset Flex Code
25461 status collapsed
25462
25463 \begin_layout Plain Layout
25464
25465 \backslash
25466 lfoot
25467 \end_layout
25468
25469 \end_inset
25470
25471 ,
25472  etc.
25473  Suppose you wish to put your name in the upper left hand corner of each page.
25474  Simply insert the following command in the preamble:
25475  
25476 \end_layout
25477
25478 \begin_layout Standard
25479
25480 \family typewriter
25481
25482 \backslash
25483 lhead{John Q.
25484  DocWriter}
25485 \end_layout
25486
25487 \begin_layout Standard
25488 You will now see your name in the upper left.
25489  If a field has a default entry that you would like to get rid of (often the page number appears in the central footer) simply include a command with a blank argument,
25490  e.
25491 \begin_inset space \thinspace{}
25492 \end_inset
25493
25494 g.:
25495 \end_layout
25496
25497 \begin_layout Standard
25498
25499 \family typewriter
25500
25501 \backslash
25502 cfoot{}
25503 \end_layout
25504
25505 \begin_layout Standard
25506 Let's get really fancy:
25507  lets put the section number with the word 
25508 \begin_inset Quotes eld
25509 \end_inset
25510
25511 Section
25512 \begin_inset Quotes erd
25513 \end_inset
25514
25515  (e.
25516 \begin_inset space \thinspace{}
25517 \end_inset
25518
25519 g.
25520 \begin_inset space \space{}
25521 \end_inset
25522
25523 Section 3) in the upper left,
25524  the page number (e.
25525 \begin_inset space \thinspace{}
25526 \end_inset
25527
25528 g.
25529 \begin_inset space \space{}
25530 \end_inset
25531
25532 Page 4) in the upper right,
25533  your name in the lower left,
25534  and the date in the lower right.
25535  The following commands should now appear in the preamble:
25536 \end_layout
25537
25538 \begin_layout Standard
25539
25540 \family typewriter
25541
25542 \backslash
25543 lhead{Section 
25544 \backslash
25545 thesection}
25546 \end_layout
25547
25548 \begin_layout Standard
25549
25550 \family typewriter
25551
25552 \backslash
25553 chead{}
25554 \end_layout
25555
25556 \begin_layout Standard
25557
25558 \family typewriter
25559
25560 \backslash
25561 rhead{Page 
25562 \backslash
25563 thepage}
25564 \end_layout
25565
25566 \begin_layout Standard
25567
25568 \family typewriter
25569
25570 \backslash
25571 lfoot{John Q.
25572  DocWriter}
25573 \end_layout
25574
25575 \begin_layout Standard
25576
25577 \family typewriter
25578
25579 \backslash
25580 cfoot{}
25581 \end_layout
25582
25583 \begin_layout Standard
25584
25585 \family typewriter
25586
25587 \backslash
25588 rfoot{
25589 \backslash
25590 today}
25591 \end_layout
25592
25593 \begin_layout Standard
25594 The commands 
25595 \begin_inset Flex Code
25596 status collapsed
25597
25598 \begin_layout Plain Layout
25599
25600 \backslash
25601 thesection
25602 \end_layout
25603
25604 \end_inset
25605
25606  and 
25607 \begin_inset Flex Code
25608 status collapsed
25609
25610 \begin_layout Plain Layout
25611
25612 \backslash
25613 thepage
25614 \end_layout
25615
25616 \end_inset
25617
25618  access \SpecialChar LaTeX
25619 's section and page counters,
25620  and so print out the current section and page number.
25621  
25622 \begin_inset Flex Code
25623 status collapsed
25624
25625 \begin_layout Plain Layout
25626
25627 \backslash
25628 today
25629 \end_layout
25630
25631 \end_inset
25632
25633  simply prints out today's date.
25634 \end_layout
25635
25636 \begin_layout Standard
25637 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
25638  If you don't want one of the rules,
25639  set its thickness to 0.
25640  The header rule has a default thickness of 0.4pt,
25641  the footer rule is 0pt.
25642  Use commands
25643 \family typewriter
25644  
25645 \family default
25646 like 
25647 \begin_inset Flex Code
25648 status collapsed
25649
25650 \begin_layout Plain Layout
25651
25652 \backslash
25653 renewcommand{
25654 \backslash
25655 headrulewidth}{0.4pt}
25656 \end_layout
25657
25658 \end_inset
25659
25660  and 
25661 \begin_inset Flex Code
25662 status collapsed
25663
25664 \begin_layout Plain Layout
25665
25666 \backslash
25667 renewcommand{
25668 \backslash
25669 footrulewidth}{0.4pt}
25670 \end_layout
25671
25672 \end_inset
25673
25674  to set the thicknesses.
25675 \end_layout
25676
25677 \begin_layout Standard
25678 You can switch the header/footer settings on and off for individual pages using commands like 
25679 \begin_inset Flex Code
25680 status collapsed
25681
25682 \begin_layout Plain Layout
25683
25684 \backslash
25685 thispagestyle{empty}
25686 \end_layout
25687
25688 \end_inset
25689
25690 ,
25691  
25692 \begin_inset Flex Code
25693 status collapsed
25694
25695 \begin_layout Plain Layout
25696
25697 \backslash
25698 thispagestyle{plain}
25699 \end_layout
25700
25701 \end_inset
25702
25703 ,
25704  and 
25705 \begin_inset Flex Code
25706 status collapsed
25707
25708 \begin_layout Plain Layout
25709
25710 \backslash
25711 thispagestyle{fancy}
25712 \end_layout
25713
25714 \end_inset
25715
25716 .
25717  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
25718  code.
25719  In fact,
25720  title pages are marked as plain by default,
25721  while following pages are marked fancy when using the global fancy setting.
25722 \end_layout
25723
25724 \begin_layout Standard
25725 As a final example,
25726  it is possible to include an image in the header or footer.
25727  Suppose you want to put a company logo in the upper lefthand corner.
25728  You might try something like
25729 \end_layout
25730
25731 \begin_layout Standard
25732
25733 \family typewriter
25734
25735 \backslash
25736 lhead{
25737 \backslash
25738 resizebox{1in}{!}{
25739 \backslash
25740 includegraphics{logo.eps}}}
25741 \end_layout
25742
25743 \begin_layout Standard
25744 \noindent
25745 (you may need to preface this with 
25746 \begin_inset Flex Code
25747 status collapsed
25748
25749 \begin_layout Plain Layout
25750
25751 \backslash
25752 usepackage{graphics}
25753 \end_layout
25754
25755 \end_inset
25756
25757  if you don't include graphics elsewhere in your document).
25758 \end_layout
25759
25760 \begin_layout Chapter
25761 \SpecialChar LyX
25762  and the World Wide Web
25763 \end_layout
25764
25765 \begin_layout Standard
25766 \SpecialChar LyX
25767  has long supported the export of documents to various web-friendly formats,
25768  such as HTML.
25769  Before version 2.0,
25770  however,
25771  HTML export was always accomplished by the use of external converters.
25772 \begin_inset Foot
25773 status collapsed
25774
25775 \begin_layout Plain Layout
25776 For details on the use of external converters with \SpecialChar LyX
25777 ,
25778  see the 
25779 \emph on
25780 Converters
25781 \emph default
25782  section of the Customization manual.
25783 \end_layout
25784
25785 \end_inset
25786
25787  These fall into two large groups:
25788  there are converters that use \SpecialChar LaTeX
25789  as an intermediate format,
25790  such as 
25791 \begin_inset Flex Code
25792 status collapsed
25793
25794 \begin_layout Plain Layout
25795 htlatex
25796 \end_layout
25797
25798 \end_inset
25799
25800 ,
25801  
25802 \begin_inset Flex Code
25803 status collapsed
25804
25805 \begin_layout Plain Layout
25806 html2latex
25807 \end_layout
25808
25809 \end_inset
25810
25811 ,
25812  and 
25813 \begin_inset Flex Code
25814 status collapsed
25815
25816 \begin_layout Plain Layout
25817 plastex
25818 \end_layout
25819
25820 \end_inset
25821
25822 ,
25823  relying upon \SpecialChar LyX
25824  to produce the \SpecialChar LaTeX
25825 ;
25826  and there is a converter that works directly on \SpecialChar LyX
25827  files,
25828  
25829 \begin_inset Flex Code
25830 status collapsed
25831
25832 \begin_layout Plain Layout
25833 e\SpecialChar LyX
25834 er
25835 \end_layout
25836
25837 \end_inset
25838
25839 .
25840  All of these have different advantages and disadvantages.
25841  
25842 \end_layout
25843
25844 \begin_layout Standard
25845 The \SpecialChar LaTeX
25846 -based converters have the advantage that,
25847  in principle,
25848  they know everything about the exported document that \SpecialChar LaTeX
25849  does.
25850  Such converters do not care,
25851  for example,
25852  if a certain block of code was produced by \SpecialChar LyX
25853  or was Evil Red Text.
25854  These converters know about 
25855 \begin_inset Flex Code
25856 status collapsed
25857
25858 \begin_layout Plain Layout
25859 aux
25860 \end_layout
25861
25862 \end_inset
25863
25864  files,
25865  counters,
25866  and references,
25867  and can often make use of the 
25868 \begin_inset Flex Code
25869 status collapsed
25870
25871 \begin_layout Plain Layout
25872 bbl
25873 \end_layout
25874
25875 \end_inset
25876
25877  files generated by Bib\SpecialChar TeX
25878 .
25879  On the other hand,
25880  \SpecialChar LaTeX
25881  is a very hard language to parse—
25882 it is sometimes said that only \SpecialChar TeX
25883  itself understands \SpecialChar TeX
25884
25885 and \SpecialChar LaTeX
25886 -based converters will often choke on what seem to be quite simple constructs;
25887  complex ones can throw them completely,
25888  and as of this writing,
25889  for example,
25890  the 
25891 \emph on
25892 Embedded Objects
25893 \emph default
25894  manual will not export with 
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 htlatex
25900 \end_layout
25901
25902 \end_inset
25903
25904 ,
25905  though the others will.
25906  The other issue concerns how math is handled.
25907  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
25908  Since these are actually generated by \SpecialChar LaTeX
25909 ,
25910  they are accurate.
25911  But they do not scale well,
25912  and just getting them to look as if they are actually meant to be in your document—
25913 so that the font sizes seem to be roughly the same—
25914 can be a challenge.
25915 \end_layout
25916
25917 \begin_layout Standard
25918 Alex Fernandez's 
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 e\SpecialChar LyX
25924 er
25925 \end_layout
25926
25927 \end_inset
25928
25929  (
25930 \begin_inset CommandInset href
25931 LatexCommand href
25932 name "http://pinchito.es/elyxer/"
25933 target "http://pinchito.es/elyxer/"
25934 literal "false"
25935
25936 \end_inset
25937
25938 ) solves some of these problems.
25939  In particular,
25940  the formulae it produces scale perfectly,
25941  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
25942  But even moderately complex formula are rendered less well than with 
25943 \begin_inset Flex Code
25944 status collapsed
25945
25946 \begin_layout Plain Layout
25947 htlatex
25948 \end_layout
25949
25950 \end_inset
25951
25952 ;
25953  this reflects the limitations of HTML.
25954 \begin_inset Foot
25955 status collapsed
25956
25957 \begin_layout Plain Layout
25958 That said,
25959  
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964 e\SpecialChar LyX
25965 er
25966 \end_layout
25967
25968 \end_inset
25969
25970  can also use jsMath and MathJax for equations,
25971  but this setting is only available globally and requires one to have access to a server that runs the backend.
25972 \end_layout
25973
25974 \end_inset
25975
25976  More importantly (as of version 1.1.1,
25977  at least),
25978  
25979 \begin_inset Flex Code
25980 status collapsed
25981
25982 \begin_layout Plain Layout
25983 e\SpecialChar LyX
25984 er
25985 \end_layout
25986
25987 \end_inset
25988
25989  has limited support for math macros and no support for user-defined paragraph or character styles.
25990  These limitations make 
25991 \begin_inset Flex Code
25992 status collapsed
25993
25994 \begin_layout Plain Layout
25995 e\SpecialChar LyX
25996 er
25997 \end_layout
25998
25999 \end_inset
26000
26001  unsuitable for many of the documents \SpecialChar LyX
26002  users produce.
26003  In principle,
26004  of course,
26005  these problems could be solved,
26006  but the \SpecialChar LyX
26007  developers have decided to follow a different path and have made \SpecialChar LyX
26008  itself capable of writing XHTML,
26009  just as it is capable of writing \SpecialChar LaTeX
26010 ,
26011  DocBook,
26012  and plaintext.
26013 \end_layout
26014
26015 \begin_layout Standard
26016 As of this writing,
26017  XHTML output remains under development and should probably be regarded as 
26018 \begin_inset Quotes eld
26019 \end_inset
26020
26021 experimental
26022 \begin_inset Quotes erd
26023 \end_inset
26024
26025 .
26026 \begin_inset Foot
26027 status collapsed
26028
26029 \begin_layout Plain Layout
26030 The file 
26031 \begin_inset Flex Code
26032 status collapsed
26033
26034 \begin_layout Plain Layout
26035 development/HTML/HTML.notes
26036 \end_layout
26037
26038 \end_inset
26039
26040 ,
26041  which can be found in the \SpecialChar LyX
26042  source tree or 
26043 \begin_inset CommandInset href
26044 LatexCommand href
26045 name "accessed online"
26046 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
26047 literal "false"
26048
26049 \end_inset
26050
26051 ,
26052  usually contains up-to-date information about the state of XHTML output.
26053  See also the list of XHTML bugs on 
26054 \begin_inset CommandInset href
26055 LatexCommand href
26056 name "the bug tracker"
26057 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"
26058 literal "false"
26059
26060 \end_inset
26061
26062 .
26063 \end_layout
26064
26065 \end_inset
26066
26067  Still,
26068  the developers have chosen this approach because it has several potential advantages over the other two.
26069 \end_layout
26070
26071 \begin_layout Standard
26072 These advantages are primarily due to the fact that the XHTML output routines,
26073  since they are part of \SpecialChar LyX
26074 ,
26075  know everything \SpecialChar LyX
26076  knows about the document being exported.
26077 \begin_inset Foot
26078 status collapsed
26079
26080 \begin_layout Plain Layout
26081 Another advantage is that,
26082  since these routines are internal to \SpecialChar LyX
26083 ,
26084  they are immune to changes in \SpecialChar LyX
26085 's file format,
26086  or to changes in the semantics of existing insets.
26087 \end_layout
26088
26089 \end_inset
26090
26091  So they know about the table of contents (as displayed in the outline),
26092  about the counters associated with different paragraph styles,
26093  and about user-defined styles.
26094  The XHTML output routines know what \SpecialChar LyX
26095  knows about internationalization,
26096  too,
26097  so they will output 
26098 \begin_inset Quotes eld
26099 \end_inset
26100
26101 Chapter 1
26102 \begin_inset Quotes erd
26103 \end_inset
26104
26105  or 
26106 \begin_inset Quotes eld
26107 \end_inset
26108
26109
26110 \lang ngerman
26111 Kapitel
26112 \lang english
26113  1
26114 \begin_inset Quotes erd
26115 \end_inset
26116
26117 ,
26118  depending upon the language in effect at the time.
26119  
26120 \end_layout
26121
26122 \begin_layout Standard
26123 Quite generally,
26124  the output routines know what \SpecialChar LyX
26125  knows about document layout,
26126  that is,
26127  about how the document is to be rendered on screen.
26128  We use this information when we output the document as XHTML.
26129  In particular,
26130  \SpecialChar LyX
26131  
26132 \emph on
26133 automatically
26134 \emph default
26135  generates CSS style information corresponding to the layout information it uses to render the document on screen:
26136  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
26137 ,
26138  then (by default) they will be sans-serif and bold when viewed in a web browser,
26139  too.
26140  And this is true not just for pre-defined styles,
26141  like Section,
26142  but for any style,
26143  including user-defined styles.
26144  Indeed,
26145  the XHTML output routines make no distinction between user-defined paragraph and 
26146 \change_deleted 244031559 1603876931
26147 character
26148 \change_inserted 244031559 1603876940
26149 text
26150 \change_unchanged
26151  styles and \SpecialChar LyX
26152 's own pre-defined styles:
26153  in each case,
26154  everything \SpecialChar LyX
26155  knows about the styles is contained in the layout files.
26156  And much the same is true as regards pre-defined textual insets,
26157  such as footnotes,
26158  and various custom insets.
26159  
26160 \end_layout
26161
26162 \begin_layout Standard
26163 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
26164  output can be customized and extended:
26165  through layout files and modules.
26166  See chapter five of the 
26167 \emph on
26168 Customization 
26169 \emph default
26170 manual for the details.
26171 \end_layout
26172
26173 \begin_layout Standard
26174 The remainder of this chapter contains more detailed information on XHTML output,
26175  its limitations,
26176  and ways to work around those limitations.
26177 \end_layout
26178
26179 \begin_layout Section
26180 Math Output in XHTML
26181 \end_layout
26182
26183 \begin_layout Standard
26184 \SpecialChar LyX
26185  offers four choices for how math is rendered.
26186  These have various advantages and disadvantages:
26187 \end_layout
26188
26189 \begin_layout Itemize
26190 MathML
26191 \begin_inset Newline newline
26192 \end_inset
26193
26194 MathML is a dialect of XML designed specifically for mathematics on the web,
26195  and it typically renders very well in browsers that support it.
26196  The disadvantage is that not all browsers support MathML,
26197  and support is not complete even in the Gecko-based browsers,
26198  such as Firefox.
26199 \begin_inset Newline newline
26200 \end_inset
26201
26202 If \SpecialChar LyX
26203  is unable to render a formula as MathML—
26204 for example,
26205  if the formula uses the 
26206 \begin_inset Flex Code
26207 status collapsed
26208
26209 \begin_layout Plain Layout
26210 xymatrix
26211 \end_layout
26212
26213 \end_inset
26214
26215  package or ERT—
26216 then it will instead output the formula as an image.
26217  
26218 \end_layout
26219
26220 \begin_layout Itemize
26221 HTML
26222 \begin_inset Newline newline
26223 \end_inset
26224
26225 As mentioned above,
26226  
26227 \begin_inset Flex Code
26228 status collapsed
26229
26230 \begin_layout Plain Layout
26231 elyxer
26232 \end_layout
26233
26234 \end_inset
26235
26236  outputs math as HTML,
26237  styled by CSS.
26238 \begin_inset Foot
26239 status collapsed
26240
26241 \begin_layout Plain Layout
26242 \SpecialChar LyX
26243  has borrowed some of the CSS for its HTML output from 
26244 \begin_inset Flex Code
26245 status collapsed
26246
26247 \begin_layout Plain Layout
26248 elyxer
26249 \end_layout
26250
26251 \end_inset
26252
26253 .
26254 \end_layout
26255
26256 \end_inset
26257
26258  For simple formulae,
26259  this can work quite well,
26260  though with more complicated formulae it tends to break down.
26261  Still,
26262  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
26263  fairly simple math.
26264 \begin_inset Newline newline
26265 \end_inset
26266
26267 If Lyx is unable to render a formula as HTML—
26268 for example,
26269  if the formula uses the 
26270 \begin_inset Flex Code
26271 status collapsed
26272
26273 \begin_layout Plain Layout
26274 xymatrix
26275 \end_layout
26276
26277 \end_inset
26278
26279  package or ERT—
26280 then it will instead output the formula as an image.
26281  
26282 \end_layout
26283
26284 \begin_layout Itemize
26285 Images
26286 \begin_inset Newline newline
26287 \end_inset
26288
26289 Like 
26290 \begin_inset Flex Code
26291 status collapsed
26292
26293 \begin_layout Plain Layout
26294 htlatex
26295 \end_layout
26296
26297 \end_inset
26298
26299 ,
26300  \SpecialChar LyX
26301  will output formulae as images,
26302  the very same images,
26303  in fact,
26304  that are used for instant preview.
26305 \begin_inset Foot
26306 status collapsed
26307
26308 \begin_layout Plain Layout
26309 Instant preview does 
26310 \emph on
26311 not 
26312 \emph default
26313 have to be on for images to be output,
26314  however.
26315 \end_layout
26316
26317 \end_inset
26318
26319  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
26320 ,
26321  so they are very accurate.
26322  The disadvantage,
26323  as mentioned earlier,
26324  is that these are bitmapped images,
26325  so they do not scale terribly well,
26326  and one cannot copy them,
26327  etc.
26328 \begin_inset Newline newline
26329 \end_inset
26330
26331 The size of the images can be controlled by setting the 
26332 \begin_inset Quotes eld
26333 \end_inset
26334
26335 Math Images Scaling
26336 \begin_inset Quotes erd
26337 \end_inset
26338
26339  parameter under 
26340 \begin_inset Flex Noun
26341 status collapsed
26342
26343 \begin_layout Plain Layout
26344 Document\SpecialChar menuseparator
26345 Settings\SpecialChar menuseparator
26346 Formats
26347 \end_layout
26348
26349 \end_inset
26350
26351 .
26352 \begin_inset Foot
26353 status collapsed
26354
26355 \begin_layout Plain Layout
26356 For those who want to know,
26357  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
26358 \end_layout
26359
26360 \end_inset
26361
26362
26363 \begin_inset Newline newline
26364 \end_inset
26365
26366 If \SpecialChar LyX
26367  for some reason fails to create an image for a formula (e.g.,
26368  if a required \SpecialChar LaTeX
26369  package is not installed),
26370  then it will fall back to outputing the raw \SpecialChar LaTeX
26371 .
26372 \end_layout
26373
26374 \begin_layout Itemize
26375 \SpecialChar LaTeX
26376
26377 \begin_inset Newline newline
26378 \end_inset
26379
26380 Finally,
26381  \SpecialChar LyX
26382  will happily output math as \SpecialChar LaTeX
26383 .
26384  As well as being the output of last resort,
26385  this method can be used with such tools as 
26386 \begin_inset CommandInset href
26387 LatexCommand href
26388 name "jsMath"
26389 target "http://www.math.union.edu/~dpvc/jsMath/"
26390 literal "false"
26391
26392 \end_inset
26393
26394 ,
26395  which uses JavaScript to render \SpecialChar LaTeX
26396  embedded in HTML documents.
26397  \SpecialChar LyX
26398  wraps the \SpecialChar LaTeX
26399  in either a 
26400 \begin_inset Flex Code
26401 status collapsed
26402
26403 \begin_layout Plain Layout
26404 span
26405 \end_layout
26406
26407 \end_inset
26408
26409  (for inline formulas) or 
26410 \begin_inset Flex Code
26411 status collapsed
26412
26413 \begin_layout Plain Layout
26414 div
26415 \end_layout
26416
26417 \end_inset
26418
26419  (for displayed formulas) with 
26420 \begin_inset Flex Code
26421 status collapsed
26422
26423 \begin_layout Plain Layout
26424 class='math'
26425 \end_layout
26426
26427 \end_inset
26428
26429 ,
26430  as is required for jsMath.
26431 \end_layout
26432
26433 \begin_layout Standard
26434 One of these output methods must be selected under 
26435 \begin_inset Flex Noun
26436 status collapsed
26437
26438 \begin_layout Plain Layout
26439 Document\SpecialChar menuseparator
26440 Settings\SpecialChar menuseparator
26441 Formats
26442 \end_layout
26443
26444 \end_inset
26445
26446 .
26447  By default,
26448  \SpecialChar LyX
26449  outputs MathML.
26450  This is a document-wide setting,
26451  therefore.
26452 \end_layout
26453
26454 \begin_layout Standard
26455 Eventually,
26456  \SpecialChar LyX
26457  will offer the user the option to select an alternate output method for a particular inset,
26458  say,
26459  one that isn't being rendered very well by MathML.
26460 \begin_inset Foot
26461 status collapsed
26462
26463 \begin_layout Plain Layout
26464 That said,
26465  since \SpecialChar LyX
26466  falls back to images if the inset contains ERT,
26467  then one can force output as an image by putting some harmless ERT into the math,
26468  for example:
26469  
26470 \begin_inset Formula $a=b\relax$
26471 \end_inset
26472
26473 .
26474 \end_layout
26475
26476 \end_inset
26477
26478
26479 \end_layout
26480
26481 \begin_layout Section
26482 Bibliography and Citations
26483 \end_layout
26484
26485 \begin_layout Standard
26486 XHTML output fully supports bibliographies and citations.
26487  
26488 \end_layout
26489
26490 \begin_layout Standard
26491 Citation labels are generated by the same machinery that generates \SpecialChar LyX
26492 's on-screen labels,
26493  so the labels will look in the output much as they do in \SpecialChar LyX
26494 ,
26495  though better.
26496  If you are using numerical citations,
26497  then \SpecialChar LyX
26498  will output numerical labels,
26499  such as [1] or [17],
26500  rather than simply showing the citation key in square brackets,
26501  as it does on-screen.
26502  If you are using author-year citations,
26503  then \SpecialChar LyX
26504  will add lowercase letters to the years,
26505  just as Bib\SpecialChar TeX
26506  does,
26507  if it finds more than one citation for a given author-year combination.
26508  The labels will be printed with the bibliography entries.
26509  Note that there is,
26510  at present,
26511  no way to customize the appearance of the labels,
26512  for example,
26513  to choose between square brackets and parentheses.
26514 \end_layout
26515
26516 \begin_layout Standard
26517 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
26518  so you will see in the XHTML output pretty much what you would see if you were to look at a given entry in the citation dialog.
26519  The formatting can be customized in your layout file or,
26520  preferably,
26521  in a module.
26522  See the 
26523 \emph on
26524 Customization
26525 \emph default
26526  manual for the details.
26527 \end_layout
26528
26529 \begin_layout Standard
26530 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
26531  So you can see things like this:
26532 \end_layout
26533
26534 \begin_layout Quote
26535 Jason Stanley,
26536  
26537 \begin_inset Quotes eld
26538 \end_inset
26539
26540 Context and Logical Form
26541 \begin_inset Quotes erd
26542 \end_inset
26543
26544 ,
26545  in 
26546 \emph on
26547 Language in Context:
26548  Selected Essays
26549 \emph default
26550  (Oxford:
26551  Oxford University Press,
26552  2007),
26553  pp.
26554  30–68.
26555 \end_layout
26556
26557 \begin_layout Quote
26558 Jason Stanley,
26559  
26560 \begin_inset Quotes eld
26561 \end_inset
26562
26563 Semantics in Context
26564 \begin_inset Quotes erd
26565 \end_inset
26566
26567 ,
26568  in 
26569 \emph on
26570 Language in Context:
26571  Selected Essays
26572 \emph default
26573  (Oxford:
26574  Oxford University Press,
26575  2007),
26576  pp.
26577  201–30.
26578 \end_layout
26579
26580 \begin_layout Standard
26581 This should be fixed before long.
26582 \end_layout
26583
26584 \begin_layout Standard
26585 There is no support at present for sectioned bibliographies.
26586  If you have multiple bibliographies,
26587  then \SpecialChar LyX
26588  will print the same bibliography over and over.
26589 \end_layout
26590
26591 \begin_layout Section
26592 Indexes
26593 \end_layout
26594
26595 \begin_layout Standard
26596 \SpecialChar LyX
26597  will happily export indexes as XHTML,
26598  but with certain limitations at the moment.
26599 \end_layout
26600
26601 \begin_layout Standard
26602 Index export will be most reliable when you do not attempt to use the fancy constructs that are described in the section on indexes in the 
26603 \emph on
26604 User's Guide
26605 \emph default
26606 .
26607 \begin_inset Foot
26608 status collapsed
26609
26610 \begin_layout Plain Layout
26611 The main issue here is that \SpecialChar LyX
26612  itself does not really handle these.
26613  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
26614 .
26615 \end_layout
26616
26617 \end_inset
26618
26619  We'll describe how they are handled using the subsection headings from that section.
26620 \end_layout
26621
26622 \begin_layout Itemize
26623 Grouping Index Entries (aka,
26624  sub-entries):
26625  \SpecialChar LyX
26626  makes an effort to support these,
26627  but the entries must be separated by 
26628 \begin_inset Quotes eld
26629 \end_inset
26630
26631  !
26632  
26633 \begin_inset Quotes erd
26634 \end_inset
26635
26636 ,
26637  that is,
26638  there must be spaces around the exclamation point.
26639  This is because it is otherwise too difficult to check for escaped exclamation points,
26640  ones in math,
26641  and so forth.
26642 \end_layout
26643
26644 \begin_layout Itemize
26645 Page Ranges:
26646  There is no support at all for page ranges,
26647  since these make no sense with XHMTL.
26648  Instead,
26649  you will just get two index entries,
26650  one at either end.
26651 \end_layout
26652
26653 \begin_layout Itemize
26654 Cross-referencing:
26655  There is no support for cross-referencing.
26656  If \SpecialChar LyX
26657  finds an entry containing the 
26658 \begin_inset Quotes eld
26659 \end_inset
26660
26661 |see\SpecialChar ldots
26662
26663 \begin_inset Quotes erd
26664 \end_inset
26665
26666  construct,
26667  it is just dropped,
26668  and the rest is treated as an ordinary index entry.
26669 \end_layout
26670
26671 \begin_layout Itemize
26672 Index Entry Order:
26673  \SpecialChar LyX
26674  does support attempts to fix the sorting order.
26675  It will take what is before the first `@' it finds and use that for sorting,
26676  taking what follows the first `@' to be the actual entry.
26677  At present,
26678  \SpecialChar LyX
26679  does not check for escaped `@',
26680  so do not try to index email addresses.
26681 \end_layout
26682
26683 \begin_layout Itemize
26684 Index Entry Layout:
26685  You can format entries by using the text style dialog,
26686  or by using any other method available within \SpecialChar LyX
26687  itself.
26688  There is no support for constructs like:
26689  
26690 \begin_inset Quotes eld
26691 \end_inset
26692
26693 entry|textbf
26694 \begin_inset Quotes erd
26695 \end_inset
26696
26697 .
26698  Indeed,
26699  if \SpecialChar LyX
26700  finds a pipe symbol,
26701  `|',
26702  in an entry,
26703  it will delete it and everything that follows it.
26704 \end_layout
26705
26706 \begin_layout Itemize
26707 Multiple Indexes:
26708  There is no support for multiple indexes.
26709  Rather,
26710  all index entries will be printed as one large index.
26711  To avoid our printing several versions of the index,
26712  we print only the main index,
26713  so make sure you have one.
26714 \end_layout
26715
26716 \begin_layout Section
26717 Nomenclature and Glossary
26718 \end_layout
26719
26720 \begin_layout Standard
26721 There is at present no support for glossaries.
26722  Adding it would be fairly trivial,
26723  and welcome.
26724 \end_layout
26725
26726 \begin_layout Chapter
26727
26728 \change_inserted 1075283030 1616534180
26729 DocBook Output
26730 \end_layout
26731
26732 \begin_layout Standard
26733
26734 \change_inserted 1075283030 1616534386
26735 Apart from HTML,
26736  \SpecialChar LyX
26737  can generate documents in the DocBook XML vocabulary.
26738  With versions 2.3 and before,
26739  only select templates could be used to generate DocBook documents (only version 4).
26740  Starting with \SpecialChar LyX
26741  2.4,
26742  most \SpecialChar LyX
26743  layouts can generate valid DocBook documents (only version 5).
26744  This feature is built into \SpecialChar LyX
26745  and does not require the use of external tools.
26746 \end_layout
26747
26748 \begin_layout Standard
26749
26750 \change_inserted 1075283030 1616534437
26751 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
26752  output can be customized and extended:
26753  through layout files and modules.
26754  See chapter five of the 
26755 \emph on
26756 Customization 
26757 \emph default
26758 manual for the details.
26759 \end_layout
26760
26761 \begin_layout Standard
26762
26763 \change_inserted 1075283030 1616534475
26764 Most \SpecialChar LyX
26765  features are supported with DocBook,
26766  like math output.
26767 \end_layout
26768
26769 \begin_layout Itemize
26770
26771 \change_inserted 1075283030 1616534741
26772 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
26773 ,
26774  i.e.
26775  ERTs).
26776  All formulae are also available in raw \SpecialChar TeX
26777  in the DocBook output for further processing.
26778 \end_layout
26779
26780 \begin_layout Itemize
26781
26782 \change_inserted 1075283030 1616534852
26783 Bibliographies and citations are implemented,
26784  including with an external BibTeX file.
26785  Bibliography entries are not prerendered when the detailed information are available,
26786  but rather output with the standard DocBook constructs.
26787  The external DocBook processor is expected to handle the rendering of entries.
26788 \end_layout
26789
26790 \begin_layout Itemize
26791
26792 \change_inserted 1075283030 1616534863
26793 Indexes are supported,
26794  including multiple indices.
26795  Grouping (with 
26796 \family typewriter
26797 !
26798 \family default
26799 ),
26800  page ranges,
26801  and cross-references (
26802 \family typewriter
26803 |see
26804 \family default
26805 ) are supported,
26806  with the exception of the same symbols escaped.
26807  Entry order (
26808 \family typewriter
26809 @
26810 \family default
26811 ) and layout (
26812 \family typewriter
26813 |mathbf
26814 \family default
26815 ) are not supported.
26816  There is no support for escaping of index entries.
26817 \end_layout
26818
26819 \begin_layout Itemize
26820
26821 \change_inserted 1075283030 1616534884
26822 Glossaries are implemented.
26823 \end_layout
26824
26825 \begin_layout Standard
26826
26827 \change_inserted 1075283030 1616534894
26828 Two major parameters can be set at the document level.
26829 \end_layout
26830
26831 \begin_layout Itemize
26832
26833 \change_inserted 1075283030 1616534948
26834 Format for tables:
26835  \SpecialChar LyX
26836  can generate tables either as HTML (default value) or CALS,
26837  depending on the user's requirements.
26838  Most DocBook processors accept both formats.
26839 \end_layout
26840
26841 \begin_layout Itemize
26842
26843 \change_inserted 1075283030 1616535006
26844 MathML prefix:
26845  in DocBook,
26846  MathML is included within its own name space,
26847  unlike HTML.
26848  The implication is that there must be an indication of the tags belonging to the MathML standard.
26849  Three choices are offered:
26850  
26851 \end_layout
26852
26853 \begin_deeper
26854 \begin_layout Itemize
26855
26856 \change_inserted 1075283030 1616535044
26857 Inline:
26858  the MathML name space is defined for each formula (using the 
26859 \family typewriter
26860 xmlns
26861 \family default
26862  attribute on each formula)
26863 \end_layout
26864
26865 \begin_layout Itemize
26866
26867 \change_inserted 1075283030 1616535090
26868 With the 
26869 \family typewriter
26870 m
26871 \family default
26872  prefix (default):
26873  the MathML name space is defined at the document level (using the 
26874 \family typewriter
26875 xmlns:m
26876 \family default
26877  attribute on the root element).
26878  Each MathML is prefixed with 
26879 \family typewriter
26880 m
26881 \family default
26882 :
26883  for instance,
26884  
26885 \family typewriter
26886 m:math
26887 \end_layout
26888
26889 \begin_layout Itemize
26890
26891 \change_inserted 1075283030 1616620405
26892 With the 
26893 \family typewriter
26894 mml
26895 \family default
26896  prefix:
26897  similar to the 
26898 \family typewriter
26899 m
26900 \family default
26901  option,
26902  but with 
26903 \family typewriter
26904 mml
26905 \end_layout
26906
26907 \begin_layout Standard
26908
26909 \change_inserted 1075283030 1616620470
26910 This option is especially useful if you want \SpecialChar LyX
26911  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
26912 \change_unchanged
26913
26914 \end_layout
26915
26916 \end_deeper
26917 \begin_layout Chapter
26918 The \SpecialChar LyX
26919  Server
26920 \end_layout
26921
26922 \begin_layout Section
26923 Introduction
26924 \end_layout
26925
26926 \begin_layout Standard
26927 The `\SpecialChar LyX
26928  server' allows other programs to talk to \SpecialChar LyX
26929 ,
26930  invoke \SpecialChar LyX
26931  commands,
26932  and retrieve information about the \SpecialChar LyX
26933  internal state.
26934  This is only intended for advanced users,
26935  but they should find it useful.
26936  It is by writing to the \SpecialChar LyX
26937  server,
26938  for example,
26939  that bibliography managers,
26940  such as JabRef,
26941  are able to 
26942 \begin_inset Quotes eld
26943 \end_inset
26944
26945 push
26946 \begin_inset Quotes erd
26947 \end_inset
26948
26949  citations to \SpecialChar LyX
26950 .
26951 \end_layout
26952
26953 \begin_layout Section
26954 Starting the \SpecialChar LyX
26955  Server
26956 \begin_inset CommandInset label
26957 LatexCommand label
26958 name "sec:Starting-the-Server"
26959
26960 \end_inset
26961
26962
26963 \end_layout
26964
26965 \begin_layout Standard
26966 The \SpecialChar LyX
26967  server works through the use of a pair of named pipes.
26968  These are usually located in 
26969 \begin_inset Flex Code
26970 status collapsed
26971
26972 \begin_layout Plain Layout
26973 UserDir
26974 \end_layout
26975
26976 \end_inset
26977
26978 ,
26979  (except on Windows,
26980  where 
26981 \emph on
26982 local
26983 \emph default
26984  named pipes are special objects located in 
26985 \begin_inset Flex Code
26986 status collapsed
26987
26988 \begin_layout Plain Layout
26989
26990 \backslash
26991
26992 \backslash
26993 .
26994 \backslash
26995 pipe
26996 \end_layout
26997
26998 \end_inset
26999
27000 ) and have the names 
27001 \begin_inset Quotes eld
27002 \end_inset
27003
27004
27005 \begin_inset Flex Code
27006 status collapsed
27007
27008 \begin_layout Plain Layout
27009 lyxpipe.in
27010 \end_layout
27011
27012 \end_inset
27013
27014
27015 \begin_inset Quotes erd
27016 \end_inset
27017
27018  and 
27019 \begin_inset Quotes eld
27020 \end_inset
27021
27022
27023 \begin_inset Flex Code
27024 status collapsed
27025
27026 \begin_layout Plain Layout
27027 lyxpipe.out
27028 \end_layout
27029
27030 \end_inset
27031
27032
27033 \begin_inset Quotes erd
27034 \end_inset
27035
27036 .
27037  External programs write into 
27038 \begin_inset Flex Code
27039 status collapsed
27040
27041 \begin_layout Plain Layout
27042 lyxpipe.in
27043 \end_layout
27044
27045 \end_inset
27046
27047  and read back data from 
27048 \begin_inset Flex Code
27049 status collapsed
27050
27051 \begin_layout Plain Layout
27052 lyxpipe.out
27053 \end_layout
27054
27055 \end_inset
27056
27057 .
27058  The stem of the pipe names can be defined in the 
27059 \begin_inset Flex Noun
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 Tools\SpecialChar menuseparator
27064 Preferences
27065 \end_layout
27066
27067 \end_inset
27068
27069  dialog,
27070  for example 
27071 \begin_inset Flex Code
27072 status collapsed
27073
27074 \begin_layout Plain Layout
27075 "/home/myhome/lyxpipe"
27076 \end_layout
27077
27078 \end_inset
27079
27080 ,
27081  or 
27082 \begin_inset Flex Code
27083 status collapsed
27084
27085 \begin_layout Plain Layout
27086 "
27087 \backslash
27088
27089 \backslash
27090 .
27091 \backslash
27092 pipe
27093 \backslash
27094 lyxpipe"
27095 \end_layout
27096
27097 \end_inset
27098
27099  on Windows (where any working path instead of lyxpipe can be used,
27100  for example 
27101 \begin_inset Flex Code
27102 status collapsed
27103
27104 \begin_layout Plain Layout
27105 "
27106 \backslash
27107
27108 \backslash
27109 .
27110 \backslash
27111 pipe
27112 \backslash
27113 my
27114 \backslash
27115 lyx
27116 \backslash
27117 pipe"
27118 \end_layout
27119
27120 \end_inset
27121
27122  would also work).
27123  You 
27124 \emph on
27125 must
27126 \emph default
27127  configure this manually in order for the server to start.
27128 \end_layout
27129
27130 \begin_layout Standard
27131 \SpecialChar LyX
27132  will add the '
27133 \begin_inset Flex Code
27134 status collapsed
27135
27136 \begin_layout Plain Layout
27137 .in
27138 \end_layout
27139
27140 \end_inset
27141
27142 ' and '
27143 \begin_inset Flex Code
27144 status collapsed
27145
27146 \begin_layout Plain Layout
27147 .out
27148 \end_layout
27149
27150 \end_inset
27151
27152 ' to create the pipes.
27153  If one of the pipes already exists,
27154  \SpecialChar LyX
27155  will assume that another \SpecialChar LyX
27156  process is already running and will not start the server.
27157  On POSIX (Unix like) systems,
27158  if for some other reason,
27159  an unused 
27160 \begin_inset Quotes eld
27161 \end_inset
27162
27163 stale
27164 \begin_inset Quotes erd
27165 \end_inset
27166
27167  pipe is left in existence when \SpecialChar LyX
27168  closes,
27169  then \SpecialChar LyX
27170  will try to delete it.
27171  If this fails for some reason,
27172  you will need to delete the pipes manually and then restart \SpecialChar LyX
27173 .
27174  On Windows,
27175  pipes are deleted by the OS on program termination or crash,
27176  so 
27177 \begin_inset Quotes eld
27178 \end_inset
27179
27180 stale
27181 \begin_inset Quotes erd
27182 \end_inset
27183
27184  pipes should not be possible.
27185 \end_layout
27186
27187 \begin_layout Standard
27188 To have several \SpecialChar LyX
27189  processes with servers at the same time,
27190  you have to use different configurations,
27191  perhaps by using separate user directories,
27192  each with its own 
27193 \begin_inset Flex Code
27194 status collapsed
27195
27196 \begin_layout Plain Layout
27197 preferences
27198 \end_layout
27199
27200 \end_inset
27201
27202  file,
27203  for each process.
27204 \end_layout
27205
27206 \begin_layout Standard
27207 If you are developing a client program,
27208  you might find it useful to enable debugging information from the \SpecialChar LyX
27209  server.
27210  Do this by starting \SpecialChar LyX
27211  as 
27212 \begin_inset Flex Code
27213 status collapsed
27214
27215 \begin_layout Plain Layout
27216 lyx -dbg lyxserver
27217 \end_layout
27218
27219 \end_inset
27220
27221 .
27222 \end_layout
27223
27224 \begin_layout Standard
27225 You can find a complete example client written in C++ in the source distribution as 
27226 \begin_inset Flex Code
27227 status collapsed
27228
27229 \begin_layout Plain Layout
27230 development/lyxserver/server_monitor.cpp
27231 \end_layout
27232
27233 \end_inset
27234
27235 .
27236 \end_layout
27237
27238 \begin_layout Standard
27239 Another useful tool is the command-line based client found in 
27240 \begin_inset Flex Code
27241 status collapsed
27242
27243 \begin_layout Plain Layout
27244 src/client/lyxclient
27245 \end_layout
27246
27247 \end_inset
27248
27249 .
27250 \end_layout
27251
27252 \begin_layout Section
27253 Normal communication
27254 \end_layout
27255
27256 \begin_layout Standard
27257 To issue a \SpecialChar LyX
27258  call,
27259  the client writes a line of ASCII text into the input pipe.
27260  This line has the following format:
27261 \end_layout
27262
27263 \begin_layout Quote
27264 LYXCMD:
27265 \emph on
27266 clientname
27267 \emph default
27268 :
27269 \emph on
27270 function
27271 \emph default
27272 :
27273 \emph on
27274 argument
27275 \end_layout
27276
27277 \begin_layout Description
27278 clientname is a name that the client can choose arbitrarily.
27279  Its only use is that \SpecialChar LyX
27280  will echo it if it sends an answer—
27281 so a client can dispatch results from different requesters.
27282 \end_layout
27283
27284 \begin_layout Description
27285 function is the function you want \SpecialChar LyX
27286  to perform.
27287  It is the same as the commands you'd use in the minibuffer.
27288 \end_layout
27289
27290 \begin_layout Description
27291 argument is an optional argument which is meaningful only to some functions (for instance,
27292  the 
27293 \begin_inset Quotes eld
27294 \end_inset
27295
27296 self-insert
27297 \begin_inset Quotes erd
27298 \end_inset
27299
27300  LFUN will insert the argument as text at the cursor position).
27301 \end_layout
27302
27303 \begin_layout Standard
27304 The answer from \SpecialChar LyX
27305  will arrive in the output pipe and be of the form
27306 \end_layout
27307
27308 \begin_layout Quote
27309 INFO:
27310 \emph on
27311 clientname
27312 \emph default
27313 :
27314 \emph on
27315 function
27316 \emph default
27317 :
27318 \emph on
27319 data
27320 \end_layout
27321
27322 \begin_layout Standard
27323 where 
27324 \emph on
27325 clientname
27326 \emph default
27327  and 
27328 \emph on
27329 function
27330 \emph default
27331  are just echoed from the command request,
27332  while 
27333 \emph on
27334 data
27335 \emph default
27336  is more or less useful information filled according to how the command execution worked out.
27337  Some commands,
27338  such as 
27339 \begin_inset Quotes eld
27340 \end_inset
27341
27342 font-state
27343 \begin_inset Quotes erd
27344 \end_inset
27345
27346 ,
27347  will return information about the internal state of \SpecialChar LyX
27348 ,
27349  while other will return an empty data-response.
27350  This means that the command execution went fine.
27351 \end_layout
27352
27353 \begin_layout Standard
27354 In case of errors,
27355  the response from \SpecialChar LyX
27356  will have this form
27357 \end_layout
27358
27359 \begin_layout Quote
27360 ERROR:
27361 \emph on
27362 clientname
27363 \emph default
27364 :
27365 \emph on
27366 function
27367 \emph default
27368 :
27369 \emph on
27370 error message
27371 \end_layout
27372
27373 \begin_layout Standard
27374 where the 
27375 \emph on
27376 error message
27377 \emph default
27378  should contain an explanation of why the command failed.
27379 \end_layout
27380
27381 \begin_layout Standard
27382 Examples:
27383 \end_layout
27384
27385 \begin_layout LyX-Code
27386 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
27387 \begin_inset Newline newline
27388 \end_inset
27389
27390 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
27391 \begin_inset Newline newline
27392 \end_inset
27393
27394 read a <~/.lyxpipe.out
27395 \begin_inset Newline newline
27396 \end_inset
27397
27398 echo $a
27399 \end_layout
27400
27401 \begin_layout Subsection
27402 AppleScript (Mac OS X)
27403 \end_layout
27404
27405 \begin_layout Standard
27406 Since \SpecialChar LyX
27407  2.1,
27408  \SpecialChar LyX
27409  supports basic interactions with AppleScript for normal communication through the command run.
27410  This command takes a direct argument (the 
27411 \series bold
27412 function
27413 \series default
27414  to perform) and an optional argument.
27415  It either returns the output of the function or triggers an error with the error message and code.
27416 \end_layout
27417
27418 \begin_layout Standard
27419 Example:
27420 \end_layout
27421
27422 \begin_layout LyX-Code
27423 tell application "\SpecialChar LyX
27424 "
27425 \end_layout
27426
27427 \begin_layout LyX-Code
27428   try
27429 \end_layout
27430
27431 \begin_layout LyX-Code
27432     -- Stores the current file name into f
27433 \end_layout
27434
27435 \begin_layout LyX-Code
27436     set f to (run "server-get-filename" with argument "")
27437 \end_layout
27438
27439 \begin_layout LyX-Code
27440     on error the error_message number the error_number
27441 \end_layout
27442
27443 \begin_layout LyX-Code
27444       display dialog "Error:
27445  " & the error_number & ".
27446  " ¬
27447 \end_layout
27448
27449 \begin_layout LyX-Code
27450               & the error_message buttons {"OK"} default button 1
27451 \end_layout
27452
27453 \begin_layout LyX-Code
27454   end try
27455 \end_layout
27456
27457 \begin_layout LyX-Code
27458 end tell
27459 \end_layout
27460
27461 \begin_layout Section
27462 Notification
27463 \end_layout
27464
27465 \begin_layout Standard
27466 \SpecialChar LyX
27467  can notify clients of events going on asynchronously.
27468  Currently it will only do this if the user binds a key sequence with the function 
27469 \begin_inset Quotes eld
27470 \end_inset
27471
27472 notify
27473 \begin_inset Quotes erd
27474 \end_inset
27475
27476 .
27477  The format of the string \SpecialChar LyX
27478  sends is as follows:
27479 \end_layout
27480
27481 \begin_layout Quote
27482 \begin_inset Flex Code
27483 status collapsed
27484
27485 \begin_layout Plain Layout
27486 NOTIFY:
27487 \end_layout
27488
27489 \end_inset
27490
27491
27492 \emph on
27493 key-sequence
27494 \end_layout
27495
27496 \begin_layout Standard
27497 where 
27498 \emph on
27499 key-sequence
27500 \emph default
27501  is the printed representation of the key sequence that was actually typed by the user.
27502 \end_layout
27503
27504 \begin_layout Standard
27505 This mechanism can be used to extend \SpecialChar LyX
27506 's command set and implement macros.
27507  Bind some key sequence to 
27508 \begin_inset Quotes eld
27509 \end_inset
27510
27511 notify
27512 \begin_inset Quotes erd
27513 \end_inset
27514
27515 .
27516  Then start a client that listens on the output pipe,
27517  dispatches the command according to the sequence,
27518  and starts a function that may use \SpecialChar LyX
27519  calls and \SpecialChar LyX
27520  requests to issue a command or a series of commands to \SpecialChar LyX
27521 .
27522 \end_layout
27523
27524 \begin_layout Section
27525 The simple \SpecialChar LyX
27526  Server Protocol
27527 \end_layout
27528
27529 \begin_layout Standard
27530 \SpecialChar LyX
27531  implements a simple protocol that can be used for session management.
27532  All messages are of the form
27533 \end_layout
27534
27535 \begin_layout Quote
27536 LYXSRV:
27537 \emph on
27538 clientname
27539 \emph default
27540 :
27541 \emph on
27542 protocol message
27543 \end_layout
27544
27545 \begin_layout Standard
27546 where 
27547 \emph on
27548 protocol message
27549 \emph default
27550  can be 
27551 \begin_inset Quotes eld
27552 \end_inset
27553
27554 hello
27555 \begin_inset Quotes erd
27556 \end_inset
27557
27558  or 
27559 \begin_inset Quotes eld
27560 \end_inset
27561
27562 bye
27563 \begin_inset Quotes erd
27564 \end_inset
27565
27566 .
27567  If 
27568 \begin_inset Quotes eld
27569 \end_inset
27570
27571 hello
27572 \begin_inset Quotes erd
27573 \end_inset
27574
27575  is received from a client,
27576  \SpecialChar LyX
27577  will report back to inform the client that it's listening to it's messages,
27578  while 
27579 \begin_inset Quotes eld
27580 \end_inset
27581
27582 bye
27583 \begin_inset Quotes erd
27584 \end_inset
27585
27586  sent from \SpecialChar LyX
27587  will inform clients that \SpecialChar LyX
27588  is closing.
27589 \end_layout
27590
27591 \begin_layout Section
27592 Reverse DVI/PDF search
27593 \end_layout
27594
27595 \begin_layout Standard
27596 Some DVI/PDF viewers
27597 \begin_inset Foot
27598 status collapsed
27599
27600 \begin_layout Plain Layout
27601 The following viewers offer the reverse PDF search feature:
27602  Okular on KDE/Linux,
27603  Qpdfview on Unix,
27604  Skim on Mac OSX and SumatraPDF on Windows.
27605 \end_layout
27606
27607 \end_inset
27608
27609  provide 
27610 \emph on
27611 reverse search
27612 \emph default
27613  facility (also called 
27614 \emph on
27615 inverse search
27616 \emph default
27617 ).
27618  This means that you can tell \SpecialChar LyX
27619  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
27620  To achieve this,
27621  the viewer must be able to communicate with \SpecialChar LyX
27622 .
27623  This is done via the \SpecialChar LyX
27624  server either by using the named pipe (
27625 \emph on
27626 lyxpipe
27627 \emph default
27628 ),
27629  or the UNIX domain socket (
27630 \emph on
27631 lyxsocket
27632 \emph default
27633 ) that \SpecialChar LyX
27634  creates in its temporary directory (this is the way the 
27635 \begin_inset Flex Code
27636 status collapsed
27637
27638 \begin_layout Plain Layout
27639 lyxclient
27640 \end_layout
27641
27642 \end_inset
27643
27644  program communicates with \SpecialChar LyX
27645 ).
27646  In some cases,
27647  you need a helper script that mediates between the viewer and \SpecialChar LyX
27648 ,
27649  in others,
27650  the viewer can communicate with \SpecialChar LyX
27651  directly.
27652  This depends on the selected viewer and on your operating system.
27653  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
27654  In what follows,
27655  we will thus describe how to setup reverse search for specific viewers.
27656  Before we turn to this,
27657  though,
27658  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
27659 \end_layout
27660
27661 \begin_layout Subsection
27662 Automatic setup
27663 \begin_inset CommandInset label
27664 LatexCommand label
27665 name "subsec:rev-search"
27666
27667 \end_inset
27668
27669
27670 \end_layout
27671
27672 \begin_layout Standard
27673 In most cases \SpecialChar LyX
27674  will do the work for you by pressing the following button in the toolbar:
27675  
27676 \begin_inset Info
27677 type  "icon"
27678 arg   "buffer-toggle-output-sync"
27679 \end_inset
27680
27681 .
27682  Alternatively,
27683  you can also enable the feature by checking 
27684 \family sans
27685 Synchronize with Output
27686 \family default
27687  in 
27688 \begin_inset Flex Noun
27689 status collapsed
27690
27691 \begin_layout Plain Layout
27692 Document\SpecialChar menuseparator
27693 Settings\SpecialChar menuseparator
27694 Formats
27695 \end_layout
27696
27697 \end_inset
27698
27699 .
27700  In such a case \SpecialChar LyX
27701  will automatically insert the necessary Sync\SpecialChar TeX
27702  macro (for PDF) or load the srcltx package (for DVI) respectively.
27703  This option can be easily reached also on 
27704 \begin_inset Flex Code
27705 status collapsed
27706
27707 \begin_layout Plain Layout
27708 View/Update
27709 \end_layout
27710
27711 \end_inset
27712
27713  Toolbar.
27714 \end_layout
27715
27716 \begin_layout Standard
27717 If you need a different setting,
27718  you can select or input a custom macro from the drop down box just below 
27719 \begin_inset Flex Noun
27720 status collapsed
27721
27722 \begin_layout Plain Layout
27723 Document\SpecialChar menuseparator
27724 Settings\SpecialChar menuseparator
27725 Output\SpecialChar menuseparator
27726 Synchronize with Output
27727 \end_layout
27728
27729 \end_inset
27730
27731 .
27732 \end_layout
27733
27734 \begin_layout Standard
27735 Note that the method 
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740
27741 \backslash
27742 synctex=1
27743 \end_layout
27744
27745 \end_inset
27746
27747  enables gzip compression.
27748  If your viewer does not support it,
27749  you should instead use 
27750 \begin_inset Flex Code
27751 status collapsed
27752
27753 \begin_layout Plain Layout
27754
27755 \backslash
27756 synctex=-1
27757 \end_layout
27758
27759 \end_inset
27760
27761 .
27762 \end_layout
27763
27764 \begin_layout Standard
27765 Please also note that including the 
27766 \begin_inset Flex Code
27767 status collapsed
27768
27769 \begin_layout Plain Layout
27770 srcltx
27771 \end_layout
27772
27773 \end_inset
27774
27775  package or 
27776 \begin_inset Flex Code
27777 status collapsed
27778
27779 \begin_layout Plain Layout
27780 src-specials
27781 \end_layout
27782
27783 \end_inset
27784
27785  sometimes has an undesired impact on the typesetting.
27786  Thus,
27787  you should switch output synchronization off for the final typesetting if you use the 
27788 \begin_inset Flex Code
27789 status collapsed
27790
27791 \begin_layout Plain Layout
27792 srcltx
27793 \end_layout
27794
27795 \end_inset
27796
27797  package or 
27798 \begin_inset Flex Code
27799 status collapsed
27800
27801 \begin_layout Plain Layout
27802 src-specials
27803 \end_layout
27804
27805 \end_inset
27806
27807 .
27808  
27809 \end_layout
27810
27811 \begin_layout Standard
27812 In case you need some more special settings that are not covered by the automatic settings,
27813  read the next section about how to set up output synchronization manually.
27814  If the automatic setup suits your needs,
27815  you can readily jump to section
27816 \begin_inset space ~
27817 \end_inset
27818
27819
27820 \begin_inset CommandInset ref
27821 LatexCommand ref
27822 reference "subsec:configuring-viewers"
27823 nolink "false"
27824
27825 \end_inset
27826
27827 ,
27828  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
27829 \end_layout
27830
27831 \begin_layout Subsection
27832 Manual setup
27833 \end_layout
27834
27835 \begin_layout Standard
27836 \SpecialChar LaTeX
27837  provides several different methods for reverse search.
27838  Some are built-in in the 
27839 \begin_inset Flex Code
27840 status collapsed
27841
27842 \begin_layout Plain Layout
27843 latex/pdflatex
27844 \end_layout
27845
27846 \end_inset
27847
27848  program,
27849  some are provided by external packages.
27850  Your choice depends on whether your \SpecialChar LaTeX
27851  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
27852  The available methods are described in the following.
27853 \end_layout
27854
27855 \begin_layout Subsubsection*
27856 Built-in DVI-search via src-specials (DVI only) 
27857 \end_layout
27858
27859 \begin_layout Standard
27860 This method provides the DVI file with the necessary information for reverse search.
27861  It is available in \SpecialChar LaTeX
27862  since quite some time (any somewhat recent \SpecialChar LaTeX
27863  distribution should include it),
27864  and it works reliably.
27865  To enable it,
27866  change the 
27867 \begin_inset Flex Noun
27868 status collapsed
27869
27870 \begin_layout Plain Layout
27871 La
27872 \family sans
27873 TeX
27874 \family default
27875  (plain)->DVI
27876 \end_layout
27877
27878 \end_inset
27879
27880  or 
27881 \begin_inset Flex Noun
27882 status collapsed
27883
27884 \begin_layout Plain Layout
27885 La
27886 \family sans
27887 TeX
27888 \family default
27889  (plain)->DraftDVI
27890 \end_layout
27891
27892 \end_inset
27893
27894  converter in 
27895 \begin_inset Flex Noun
27896 status collapsed
27897
27898 \begin_layout Plain Layout
27899 Preferences\SpecialChar menuseparator
27900 File Handling\SpecialChar menuseparator
27901 Converters
27902 \end_layout
27903
27904 \end_inset
27905
27906  to 
27907 \begin_inset Flex Code
27908 status collapsed
27909
27910 \begin_layout Plain Layout
27911 latex -src-specials $$i
27912 \end_layout
27913
27914 \end_inset
27915
27916 .
27917  If this doesn't work,
27918  check if your \SpecialChar TeX
27919  engine needs different options (the syntax might differ in some distributions).
27920 \end_layout
27921
27922 \begin_layout Subsubsection*
27923 External Packages (PDFSync and scrltx) 
27924 \end_layout
27925
27926 \begin_layout Standard
27927 The packages 
27928 \emph on
27929 pdfsync
27930 \emph default
27931  and 
27932 \emph on
27933 scrltx
27934 \emph default
27935  provide reverse search facility for PDF output (via pdflatex) and DVI output,
27936  respectively.
27937  In order to enable it,
27938  load the packages in the \SpecialChar LyX
27939  preamble:
27940  
27941 \end_layout
27942
27943 \begin_layout Itemize
27944 \begin_inset Flex Code
27945 status collapsed
27946
27947 \begin_layout Plain Layout
27948
27949 \backslash
27950 usepackage{pdfsync}
27951 \end_layout
27952
27953 \end_inset
27954
27955  for reverse PDF search,
27956 \end_layout
27957
27958 \begin_layout Itemize
27959 \begin_inset Flex Code
27960 status collapsed
27961
27962 \begin_layout Plain Layout
27963
27964 \backslash
27965 usepackage[active]{srcltx}
27966 \end_layout
27967
27968 \end_inset
27969
27970  for reverse DVI search.
27971 \end_layout
27972
27973 \begin_layout Standard
27974 If you want to be able to perform both DVI and PDF reverse searches,
27975  you can also insert in the preamble the following lines
27976 \end_layout
27977
27978 \begin_layout LyX-Code
27979
27980 \backslash
27981 usepackage{ifpdf}
27982 \begin_inset Newline newline
27983 \end_inset
27984
27985
27986 \backslash
27987 ifpdf
27988 \begin_inset Newline newline
27989 \end_inset
27990
27991   
27992 \backslash
27993 usepackage{pdfsync}
27994 \begin_inset Newline newline
27995 \end_inset
27996
27997
27998 \backslash
27999 else
28000 \begin_inset Newline newline
28001 \end_inset
28002
28003   
28004 \backslash
28005 usepackage[active]{srcltx}
28006 \begin_inset Newline newline
28007 \end_inset
28008
28009
28010 \backslash
28011 fi
28012 \end_layout
28013
28014 \begin_layout Standard
28015 This way,
28016  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
28017 \end_layout
28018
28019 \begin_layout Standard
28020 Note that PDFSync might affect the output layout of your document.
28021  It is therefore advised to disable PDFsync for final documents.
28022 \end_layout
28023
28024 \begin_layout Subsubsection*
28025 Built-in reverse search via Sync\SpecialChar TeX
28026  (DVI and PDF) 
28027 \end_layout
28028
28029 \begin_layout Standard
28030 Recent versions of 
28031 \begin_inset Flex Code
28032 status collapsed
28033
28034 \begin_layout Plain Layout
28035 (pdf)latex
28036 \end_layout
28037
28038 \end_inset
28039
28040  have built-in support for both PDF and DVI reverse search.
28041  This so-called 
28042 \emph on
28043 Sync\SpecialChar TeX
28044
28045 \emph default
28046  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
28047 \emph on
28048 scr-specials
28049 \emph default
28050  approach.
28051  You need at least \SpecialChar TeX
28052 Live 2008 or a recent Mik\SpecialChar TeX
28053  distribution in order to use it.
28054 \begin_inset Foot
28055 status collapsed
28056
28057 \begin_layout Plain Layout
28058 For some reason,
28059  Mik\SpecialChar TeX
28060  does not understand/obey the command \SpecialChar LyX
28061  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
28062 \end_layout
28063
28064 \begin_layout Plain Layout
28065 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
28066  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
28067  by adding the -synctex=1 switch).
28068 \end_layout
28069
28070 \end_inset
28071
28072  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
28073  Skim on the Mac,
28074  SumatraPDF on Windows;
28075  see the next section for details) already provide Sync\SpecialChar TeX
28076  support.
28077 \end_layout
28078
28079 \begin_layout Standard
28080 To enable Sync\SpecialChar TeX
28081  for DVI output,
28082  change the 
28083 \begin_inset Flex Noun
28084 status collapsed
28085
28086 \begin_layout Plain Layout
28087 La
28088 \family sans
28089 TeX
28090 \family default
28091  (plain) -> DVI
28092 \end_layout
28093
28094 \end_inset
28095
28096  or 
28097 \begin_inset Flex Noun
28098 status collapsed
28099
28100 \begin_layout Plain Layout
28101 La
28102 \family sans
28103 TeX
28104 \family default
28105  (plain) -> DraftDVI
28106 \end_layout
28107
28108 \end_inset
28109
28110  converter in 
28111 \begin_inset Flex Noun
28112 status collapsed
28113
28114 \begin_layout Plain Layout
28115 Preferences\SpecialChar menuseparator
28116 File Handling\SpecialChar menuseparator
28117 Converters
28118 \end_layout
28119
28120 \end_inset
28121
28122  to 
28123 \begin_inset Flex Code
28124 status collapsed
28125
28126 \begin_layout Plain Layout
28127 latex -synctex=1 $$i
28128 \end_layout
28129
28130 \end_inset
28131
28132 ,
28133  and for PDF output,
28134  change the 
28135 \begin_inset Flex Noun
28136 status collapsed
28137
28138 \begin_layout Plain Layout
28139 La
28140 \family sans
28141 TeX
28142 \family default
28143  (pdflatex) -> PDF (pdflatex)
28144 \end_layout
28145
28146 \end_inset
28147
28148  converter to 
28149 \begin_inset Flex Code
28150 status collapsed
28151
28152 \begin_layout Plain Layout
28153 pdflatex -synctex=1 $$i
28154 \end_layout
28155
28156 \end_inset
28157
28158 .
28159  Should your viewer not be considered in the following description,
28160  or in case of missing success,
28161  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
28162 .
28163 \begin_inset Foot
28164 status collapsed
28165
28166 \begin_layout Plain Layout
28167 Note that the option 
28168 \begin_inset Flex Code
28169 status collapsed
28170
28171 \begin_layout Plain Layout
28172 -synctex=1
28173 \end_layout
28174
28175 \end_inset
28176
28177  option enables gzip compression.
28178  If your viewer does not support it,
28179  you should instead use 
28180 \begin_inset Flex Code
28181 status collapsed
28182
28183 \begin_layout Plain Layout
28184 -synctex=-1
28185 \end_layout
28186
28187 \end_inset
28188
28189 .
28190 \end_layout
28191
28192 \end_inset
28193
28194
28195 \end_layout
28196
28197 \begin_layout Subsection
28198 Configuring and using specific viewers
28199 \begin_inset CommandInset label
28200 LatexCommand label
28201 name "subsec:configuring-viewers"
28202
28203 \end_inset
28204
28205
28206 \end_layout
28207
28208 \begin_layout Subsubsection*
28209 Xdvi (all platforms)
28210 \end_layout
28211
28212 \begin_layout Standard
28213 If you use 
28214 \begin_inset Flex Code
28215 status collapsed
28216
28217 \begin_layout Plain Layout
28218 xdvi
28219 \end_layout
28220
28221 \end_inset
28222
28223 ,
28224  you don't need to do anything else for performing a reverse DVI search,
28225  as \SpecialChar LyX
28226  already provides the necessary hooks for automatically using the 
28227 \begin_inset Flex Code
28228 status collapsed
28229
28230 \begin_layout Plain Layout
28231 lyxclient
28232 \end_layout
28233
28234 \end_inset
28235
28236  program.
28237  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
28238  respectively).
28239 \end_layout
28240
28241 \begin_layout Standard
28242 However,
28243  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
28244 ,
28245  simply change the DVI viewer in 
28246 \begin_inset Flex Noun
28247 status collapsed
28248
28249 \begin_layout Plain Layout
28250 Preferences\SpecialChar menuseparator
28251 File Handling\SpecialChar menuseparator
28252 File formats
28253 \end_layout
28254
28255 \end_inset
28256
28257  to
28258 \begin_inset Foot
28259 status collapsed
28260
28261 \begin_layout Plain Layout
28262 On Mac OSX you have to use 
28263 \begin_inset Flex Code
28264 status collapsed
28265
28266 \begin_layout Plain Layout
28267 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
28268 \end_layout
28269
28270 \end_inset
28271
28272
28273 \end_layout
28274
28275 \end_inset
28276
28277  
28278 \begin_inset Flex Code
28279 status collapsed
28280
28281 \begin_layout Plain Layout
28282 xdvi -editor "lyxeditor.sh %f %l"
28283 \end_layout
28284
28285 \end_inset
28286
28287 ,
28288  where 
28289 \begin_inset Flex Code
28290 status collapsed
28291
28292 \begin_layout Plain Layout
28293 lyxeditor.sh
28294 \end_layout
28295
28296 \end_inset
28297
28298  is a suitable script.
28299  For example,
28300  a minimal shell script is the following one:
28301 \end_layout
28302
28303 \begin_layout LyX-Code
28304 #!/bin/sh
28305 \begin_inset Newline newline
28306 \end_inset
28307
28308 LYXPIPE="/path/to/lyxpipe"
28309 \begin_inset Newline newline
28310 \end_inset
28311
28312 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
28313 \begin_inset Newline newline
28314 \end_inset
28315
28316 echo "$COMMAND" > "${LYXPIPE}".in || exit
28317 \begin_inset Newline newline
28318 \end_inset
28319
28320 read TMP < "${LYXPIPE}".out || exit
28321 \end_layout
28322
28323 \begin_layout Standard
28324 where 
28325 \begin_inset Flex Code
28326 status collapsed
28327
28328 \begin_layout Plain Layout
28329 /path/to/lyxpipe
28330 \end_layout
28331
28332 \end_inset
28333
28334  is the LyXServer pipe path specified in 
28335 \begin_inset Flex Noun
28336 status collapsed
28337
28338 \begin_layout Plain Layout
28339 Preferences\SpecialChar menuseparator
28340 Paths
28341 \end_layout
28342
28343 \end_inset
28344
28345 .
28346 \begin_inset Foot
28347 status collapsed
28348
28349 \begin_layout Plain Layout
28350 In the 
28351 \begin_inset Flex Code
28352 status collapsed
28353
28354 \begin_layout Plain Layout
28355 development/tools
28356 \end_layout
28357
28358 \end_inset
28359
28360  folder of a source distribution you can find a 
28361 \begin_inset Flex Code
28362 status collapsed
28363
28364 \begin_layout Plain Layout
28365 lyxeditor
28366 \end_layout
28367
28368 \end_inset
28369
28370  script which is able to locate the 
28371 \emph on
28372 lyxpipe
28373 \emph default
28374  based on your preferences.
28375 \end_layout
28376
28377 \end_inset
28378
28379
28380 \end_layout
28381
28382 \begin_layout Subsubsection*
28383 MacDviX (Mac OSX)
28384 \end_layout
28385
28386 \begin_layout Standard
28387 At the end of 
28388 \begin_inset Flex Code
28389 status collapsed
28390
28391 \begin_layout Plain Layout
28392 /Applications/MacDviX_Folder/calleditor.script
28393 \end_layout
28394
28395 \end_inset
28396
28397 ,
28398  add the following lines:
28399 \end_layout
28400
28401 \begin_layout LyX-Code
28402 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
28403 \begin_inset Newline newline
28404 \end_inset
28405
28406 exit 1
28407 \end_layout
28408
28409 \begin_layout Standard
28410 Modify the lines accordingly if you install \SpecialChar LyX
28411  somewhere else than in the Applications folder.
28412 \end_layout
28413
28414 \begin_layout Standard
28415 Reverse search is triggered by Alt-click (OPTION-click).
28416 \end_layout
28417
28418 \begin_layout Subsubsection*
28419 Skim (Mac OSX)
28420 \end_layout
28421
28422 \begin_layout Standard
28423 Enter 
28424 \begin_inset Flex Code
28425 status collapsed
28426
28427 \begin_layout Plain Layout
28428 open -a Skim.app $$i
28429 \end_layout
28430
28431 \end_inset
28432
28433  to the viewer setting in 
28434 \begin_inset Flex Noun
28435 status collapsed
28436
28437 \begin_layout Plain Layout
28438 Preferences\SpecialChar menuseparator
28439 File Handling\SpecialChar menuseparator
28440 File formats\SpecialChar menuseparator
28441 PDF (pdflatex)
28442 \end_layout
28443
28444 \end_inset
28445
28446 ,
28447  and then in 
28448 \begin_inset Flex Noun
28449 status collapsed
28450
28451 \begin_layout Plain Layout
28452 Skim\SpecialChar menuseparator
28453 Preferences\SpecialChar menuseparator
28454 Sync
28455 \end_layout
28456
28457 \end_inset
28458
28459  choose 
28460 \begin_inset Flex Noun
28461 status collapsed
28462
28463 \begin_layout Plain Layout
28464 custom
28465 \end_layout
28466
28467 \end_inset
28468
28469  preset and enter command 
28470 \begin_inset Flex Noun
28471 status collapsed
28472
28473 \begin_layout Plain Layout
28474 /Applications/\SpecialChar LyX
28475 .app/Contents/MacOS/lyxeditor
28476 \end_layout
28477
28478 \end_inset
28479
28480 .
28481 \end_layout
28482
28483 \begin_layout Standard
28484 Reverse search is triggered by COMMAND-SHIFT-click
28485 \end_layout
28486
28487 \begin_layout Subsubsection*
28488 Evince (GNOME)
28489 \end_layout
28490
28491 \begin_layout Standard
28492 Reverse search with evince does not work out of the box,
28493  but it can be achieved by means of some third party helper scripts.
28494  Please refer to 
28495 \begin_inset CommandInset href
28496 LatexCommand href
28497 target "https://wiki.lyx.org/LyX/SyncTeX"
28498 literal "false"
28499
28500 \end_inset
28501
28502  for details.
28503 \end_layout
28504
28505 \begin_layout Subsubsection*
28506 Okular (KDE)
28507 \end_layout
28508
28509 \begin_layout Standard
28510 Go to 
28511 \begin_inset Flex Noun
28512 status collapsed
28513
28514 \begin_layout Plain Layout
28515 Settings\SpecialChar menuseparator
28516 Configure Okular\SpecialChar menuseparator
28517 Editor
28518 \end_layout
28519
28520 \end_inset
28521
28522  and select LyX
28523 \begin_inset Quotes erd
28524 \end_inset
28525
28526  as editor.
28527  This inserts the appropriate command (
28528 \begin_inset Flex Code
28529 status collapsed
28530
28531 \begin_layout Plain Layout
28532 lyxclient -g %f %l
28533 \end_layout
28534
28535 \end_inset
28536
28537 ).
28538 \end_layout
28539
28540 \begin_layout Standard
28541 Reverse search is triggered by SHIFT-click.
28542
28543 \change_inserted -712698321 1578211026
28544  Note that this only works if Okular is in 
28545 \begin_inset Quotes eld
28546 \end_inset
28547
28548 Browse
28549 \begin_inset Quotes erd
28550 \end_inset
28551
28552  mode (i.
28553 \begin_inset space \thinspace{}
28554 \end_inset
28555
28556 e.,
28557  the hand symbol is clicked).
28558 \change_unchanged
28559
28560 \end_layout
28561
28562 \begin_layout Subsubsection*
28563 Qpdfview (Unix)
28564 \end_layout
28565
28566 \begin_layout Standard
28567 Qpdfview supports Sync\SpecialChar TeX
28568  since version 0.3.5.
28569  Go to 
28570 \begin_inset Flex Noun
28571 status collapsed
28572
28573 \begin_layout Plain Layout
28574 Edit\SpecialChar menuseparator
28575 Settings\SpecialChar menuseparator
28576 Behavior
28577 \end_layout
28578
28579 \end_inset
28580
28581 ,
28582  click on the input field of the 
28583 \begin_inset Quotes eld
28584 \end_inset
28585
28586 Source editor
28587 \begin_inset Quotes erd
28588 \end_inset
28589
28590  item and add the command 
28591 \begin_inset Flex Code
28592 status collapsed
28593
28594 \begin_layout Plain Layout
28595 lyxclient -g %1 %2
28596 \end_layout
28597
28598 \end_inset
28599
28600 .
28601 \end_layout
28602
28603 \begin_layout Standard
28604 Reverse search is triggered by double-click or,
28605  in more recent versions,
28606  by context menu.
28607 \end_layout
28608
28609 \begin_layout Subsubsection*
28610 YAP (Windows)
28611 \end_layout
28612
28613 \begin_layout Standard
28614 Launch yap,
28615  choose its 
28616 \begin_inset Flex Noun
28617 status collapsed
28618
28619 \begin_layout Plain Layout
28620 View\SpecialChar menuseparator
28621 Options
28622 \end_layout
28623
28624 \end_inset
28625
28626  menu and select the 
28627 \begin_inset Quotes eld
28628 \end_inset
28629
28630 Inverse DVI Search
28631 \begin_inset Quotes erd
28632 \end_inset
28633
28634  tab.
28635  Click on the 
28636 \begin_inset Quotes eld
28637 \end_inset
28638
28639 New\SpecialChar ldots
28640
28641 \begin_inset Quotes erd
28642 \end_inset
28643
28644  button and,
28645  in the window that opens,
28646  enter 
28647 \begin_inset Quotes eld
28648 \end_inset
28649
28650 \SpecialChar LyX
28651  Editor
28652 \begin_inset Quotes erd
28653 \end_inset
28654
28655  (or any other name you like) in the 
28656 \begin_inset Quotes eld
28657 \end_inset
28658
28659 Name:
28660 \begin_inset Quotes erd
28661 \end_inset
28662
28663  field.
28664  Now click on the button labeled 
28665 \begin_inset Quotes eld
28666 \end_inset
28667
28668 \SpecialChar ldots
28669
28670 \begin_inset Quotes erd
28671 \end_inset
28672
28673  to open a file dialog and navigate to the directory containing the batch file 
28674 \begin_inset Flex Code
28675 status collapsed
28676
28677 \begin_layout Plain Layout
28678 lyxeditor.bat
28679 \end_layout
28680
28681 \end_inset
28682
28683  (see below).
28684  Select 
28685 \begin_inset Flex Code
28686 status collapsed
28687
28688 \begin_layout Plain Layout
28689 lyxeditor.bat
28690 \end_layout
28691
28692 \end_inset
28693
28694  and then specify the program arguments as 
28695 \begin_inset Flex Code
28696 status collapsed
28697
28698 \begin_layout Plain Layout
28699 %f %l
28700 \end_layout
28701
28702 \end_inset
28703
28704 .
28705  The 
28706 \begin_inset Flex Code
28707 status collapsed
28708
28709 \begin_layout Plain Layout
28710 lyxeditor.bat
28711 \end_layout
28712
28713 \end_inset
28714
28715  wrapper is used for communicating with \SpecialChar LyX
28716  through the 
28717 \emph on
28718 lyxpipe
28719 \emph default
28720  and is as follows:
28721 \end_layout
28722
28723 \begin_layout LyX-Code
28724 @echo off
28725 \begin_inset Newline newline
28726 \end_inset
28727
28728 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
28729 \backslash
28730
28731 \backslash
28732 .
28733 \backslash
28734 pipe
28735 \backslash
28736 lyxpipe.in
28737 \begin_inset Newline newline
28738 \end_inset
28739
28740 type 
28741 \backslash
28742
28743 \backslash
28744 .
28745 \backslash
28746 pipe
28747 \backslash
28748 lyxpipe.out
28749 \end_layout
28750
28751 \begin_layout Standard
28752 Make sure that the \SpecialChar LyX
28753 Server pipe path you specified in \SpecialChar LyX
28754  is 
28755 \begin_inset Flex Code
28756 status collapsed
28757
28758 \begin_layout Plain Layout
28759
28760 \backslash
28761
28762 \backslash
28763 .
28764 \backslash
28765 pipe
28766 \backslash
28767 lyxpipe
28768 \end_layout
28769
28770 \end_inset
28771
28772 ,
28773  otherwise change the 
28774 \begin_inset Flex Code
28775 status collapsed
28776
28777 \begin_layout Plain Layout
28778 lyxeditor.bat
28779 \end_layout
28780
28781 \end_inset
28782
28783  wrapper accordingly.
28784 \end_layout
28785
28786 \begin_layout Standard
28787 In yap,
28788  reverse search is triggered by double-click.
28789 \end_layout
28790
28791 \begin_layout Subsubsection*
28792 SumatraPDF (Windows)
28793 \end_layout
28794
28795 \begin_layout Standard
28796 In order to use SumatraPDF for inverse search,
28797  enter 
28798 \begin_inset Flex Code
28799 status collapsed
28800
28801 \begin_layout Plain Layout
28802 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
28803 \end_layout
28804
28805 \end_inset
28806
28807  in the viewer setting in 
28808 \begin_inset Flex Noun
28809 status collapsed
28810
28811 \begin_layout Plain Layout
28812 Preferences\SpecialChar menuseparator
28813 File Handling\SpecialChar menuseparator
28814 File formats\SpecialChar menuseparator
28815 PDF (pdflatex)
28816 \end_layout
28817
28818 \end_inset
28819
28820 ,
28821  where 
28822 \begin_inset Flex Code
28823 status collapsed
28824
28825 \begin_layout Plain Layout
28826 lyxeditor.bat
28827 \end_layout
28828
28829 \end_inset
28830
28831  is the previous wrapper.
28832  If SumatraPDF.exe is not in your command PATH,
28833  use its full file name.
28834 \end_layout
28835
28836 \begin_layout Standard
28837 Reverse search is triggered by double-click.
28838 \end_layout
28839
28840 \begin_layout Subsubsection*
28841 YAP (Cygwin)
28842 \end_layout
28843
28844 \begin_layout Standard
28845 First of all,
28846  make sure that yap is your default DVI viewer in the Windows environment,
28847  then launch it,
28848  choose its 
28849 \begin_inset Flex Noun
28850 status collapsed
28851
28852 \begin_layout Plain Layout
28853 View\SpecialChar menuseparator
28854 Options
28855 \end_layout
28856
28857 \end_inset
28858
28859  menu and select the 
28860 \begin_inset Quotes eld
28861 \end_inset
28862
28863 Inverse DVI Search
28864 \begin_inset Quotes erd
28865 \end_inset
28866
28867  tab.
28868  Click on the 
28869 \begin_inset Quotes eld
28870 \end_inset
28871
28872 New\SpecialChar ldots
28873
28874 \begin_inset Quotes erd
28875 \end_inset
28876
28877  button and,
28878  in the window that opens,
28879  enter 
28880 \begin_inset Quotes eld
28881 \end_inset
28882
28883 \SpecialChar LyX
28884  Editor
28885 \begin_inset Quotes erd
28886 \end_inset
28887
28888  (or any other name you like) in the 
28889 \begin_inset Quotes eld
28890 \end_inset
28891
28892 Name:
28893 \begin_inset Quotes erd
28894 \end_inset
28895
28896  field.
28897  Now click on the button labeled 
28898 \begin_inset Quotes eld
28899 \end_inset
28900
28901 \SpecialChar ldots
28902
28903 \begin_inset Quotes erd
28904 \end_inset
28905
28906  to open a file dialog and navigate to the directory containing the 
28907 \begin_inset Flex Code
28908 status collapsed
28909
28910 \begin_layout Plain Layout
28911 lyxeditor.exe
28912 \end_layout
28913
28914 \end_inset
28915
28916  program (which is installed by default on Cygwin along with the \SpecialChar LyX
28917  executable).
28918  Select 
28919 \begin_inset Flex Code
28920 status collapsed
28921
28922 \begin_layout Plain Layout
28923 lyxeditor.exe
28924 \end_layout
28925
28926 \end_inset
28927
28928  and then specify the program arguments as 
28929 \begin_inset Flex Code
28930 status collapsed
28931
28932 \begin_layout Plain Layout
28933 -g %f %l
28934 \end_layout
28935
28936 \end_inset
28937
28938 .
28939  In this way,
28940  you will be using the 
28941 \emph on
28942 lyxsocket
28943 \emph default
28944  for communicating with \SpecialChar LyX
28945 .
28946  If,
28947  for whatever reason,
28948  you want to use the 
28949 \emph on
28950 lyxpipe
28951 \emph default
28952 ,
28953  omit the 
28954 \begin_inset Flex Code
28955 status collapsed
28956
28957 \begin_layout Plain Layout
28958 -g
28959 \end_layout
28960
28961 \end_inset
28962
28963  option and be sure to specify the \SpecialChar LyX
28964 Server pipe path in the \SpecialChar LyX
28965  preferences.
28966 \end_layout
28967
28968 \begin_layout Standard
28969 In yap,
28970  reverse search is triggered by double-click.
28971 \end_layout
28972
28973 \begin_layout Subsubsection*
28974 SumatraPDF (Cygwin)
28975 \end_layout
28976
28977 \begin_layout Standard
28978 In order to use SumatraPDF for inverse search,
28979  enter 
28980 \begin_inset Flex Code
28981 status collapsed
28982
28983 \begin_layout Plain Layout
28984 SumatraPDF -inverse-search "lyxeditor -g %f %l"
28985 \end_layout
28986
28987 \end_inset
28988
28989  in the viewer setting in 
28990 \begin_inset Flex Noun
28991 status collapsed
28992
28993 \begin_layout Plain Layout
28994 Preferences\SpecialChar menuseparator
28995 File Handling\SpecialChar menuseparator
28996 File formats\SpecialChar menuseparator
28997 PDF (pdflatex)
28998 \end_layout
28999
29000 \end_inset
29001
29002 .
29003  If SumatraPDF.exe is not in your command PATH,
29004  use its full posix path.
29005  The 
29006 \begin_inset Flex Code
29007 status collapsed
29008
29009 \begin_layout Plain Layout
29010 -g
29011 \end_layout
29012
29013 \end_inset
29014
29015  enables communication via the 
29016 \emph on
29017 lyxsocket
29018 \emph default
29019 .
29020  Again,
29021  omit the 
29022 \begin_inset Flex Code
29023 status collapsed
29024
29025 \begin_layout Plain Layout
29026 -g
29027 \end_layout
29028
29029 \end_inset
29030
29031  option if you want to use the 
29032 \emph on
29033 lyxpipe
29034 \emph default
29035 ,
29036  and be sure to specify the \SpecialChar LyX
29037 Server pipe path in the \SpecialChar LyX
29038  preferences.
29039 \end_layout
29040
29041 \begin_layout Standard
29042 Reverse search is triggered by double-click.
29043 \end_layout
29044
29045 \begin_layout Section
29046 Forward search
29047 \end_layout
29048
29049 \begin_layout Standard
29050 Forward search is,
29051  as the name implies,
29052  in a sense the 
29053 \begin_inset Quotes eld
29054 \end_inset
29055
29056 opposite
29057 \begin_inset Quotes erd
29058 \end_inset
29059
29060  of reverse search.
29061  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
29062 .
29063  If forward search is set up (as described in what follows),
29064  you can put the cursor anywhere in your \SpecialChar LyX
29065  document,
29066  and hit 
29067 \begin_inset Flex Noun
29068 status collapsed
29069
29070 \begin_layout Plain Layout
29071 Navigate\SpecialChar menuseparator
29072 Forward search
29073 \end_layout
29074
29075 \end_inset
29076
29077  (or select 
29078 \begin_inset Flex Noun
29079 status collapsed
29080
29081 \begin_layout Plain Layout
29082 Forward search
29083 \end_layout
29084
29085 \end_inset
29086
29087  in the context menu via right mouse click),
29088  and then the viewer will jump to that position as well.
29089  This implies,
29090  of course,
29091  that your viewer supports this function.
29092 \end_layout
29093
29094 \begin_layout Standard
29095 To make forward search possible,
29096  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
29097  sources.
29098  This can be done via the methods described in the section 
29099 \begin_inset CommandInset ref
29100 LatexCommand ref
29101 reference "subsec:rev-search"
29102 nolink "false"
29103
29104 \end_inset
29105
29106 .
29107 \end_layout
29108
29109 \begin_layout Standard
29110 Additionally,
29111  you need to configure \SpecialChar LyX
29112  for using your viewers in 
29113 \begin_inset Flex Noun
29114 status collapsed
29115
29116 \begin_layout Plain Layout
29117 Tools\SpecialChar menuseparator
29118 Preferences\SpecialChar menuseparator
29119 Output\SpecialChar menuseparator
29120 General
29121 \end_layout
29122
29123 \end_inset
29124
29125 .
29126  We provide a range of tested configurations for some viewers,
29127  which you can select from the drop down list.
29128  If none of these configurations suits you,
29129  you have to find out and enter a suitable configuration yourself.
29130  The definition syntax uses the following placeholders:
29131 \end_layout
29132
29133 \begin_layout Itemize
29134 \noindent
29135 \begin_inset Flex Code
29136 status collapsed
29137
29138 \begin_layout Plain Layout
29139 $$n
29140 \end_layout
29141
29142 \end_inset
29143
29144 :
29145  row number
29146 \end_layout
29147
29148 \begin_layout Itemize
29149 \noindent
29150 \begin_inset Flex Code
29151 status collapsed
29152
29153 \begin_layout Plain Layout
29154 $$t
29155 \end_layout
29156
29157 \end_inset
29158
29159 :
29160  name of the (temporary) exported .tex file (without path)
29161 \end_layout
29162
29163 \begin_layout Itemize
29164 \noindent
29165 \begin_inset Flex Code
29166 status collapsed
29167
29168 \begin_layout Plain Layout
29169 $$f
29170 \end_layout
29171
29172 \end_inset
29173
29174 :
29175  name of the (temporary) exported .tex file (including path)
29176 \end_layout
29177
29178 \begin_layout Itemize
29179 \noindent
29180 \begin_inset Flex Code
29181 status collapsed
29182
29183 \begin_layout Plain Layout
29184 $$o
29185 \end_layout
29186
29187 \end_inset
29188
29189 :
29190  name of the exported output file (either dvi or pdf,
29191  depending on which one exists in the temporary directory)
29192 \end_layout
29193
29194 \begin_layout Standard
29195 Note that only some of the viewers provide full and usable forward search functionality out of the box,
29196  among them yap,
29197  xdvi,
29198  okular
29199 \begin_inset Foot
29200 status collapsed
29201
29202 \begin_layout Plain Layout
29203 You might want to set 
29204 \begin_inset Flex Code
29205 status collapsed
29206
29207 \begin_layout Plain Layout
29208 okular --unique
29209 \end_layout
29210
29211 \end_inset
29212
29213  in 
29214 \begin_inset Flex Noun
29215 status collapsed
29216
29217 \begin_layout Plain Layout
29218 Tools\SpecialChar menuseparator
29219 Preferences\SpecialChar menuseparator
29220 File Handling\SpecialChar menuseparator
29221 File
29222 \begin_inset space ~
29223 \end_inset
29224
29225 Formats
29226 \end_layout
29227
29228 \end_inset
29229
29230
29231 \end_layout
29232
29233 \end_inset
29234
29235 ,
29236  qpdfview,
29237  and SumatraPDF
29238 \begin_inset Foot
29239 status collapsed
29240
29241 \begin_layout Plain Layout
29242 SumatraPDF can also use DDE commands through the external program CMCDDE —
29243  downloadable from 
29244 \begin_inset CommandInset href
29245 LatexCommand href
29246 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
29247 literal "false"
29248
29249 \end_inset
29250
29251
29252 \end_layout
29253
29254 \end_inset
29255
29256 .
29257  Others,
29258  such as evince
29259 \begin_inset Foot
29260 status collapsed
29261
29262 \begin_layout Plain Layout
29263 Forward search with evince can be achieved by means of third party helper scripts.
29264  Please refer to 
29265 \begin_inset CommandInset href
29266 LatexCommand href
29267 target "https://wiki.lyx.org/LyX/SyncTeX"
29268 literal "false"
29269
29270 \end_inset
29271
29272  for details.
29273 \end_layout
29274
29275 \end_inset
29276
29277 ,
29278  require some extra tools in order to use forward search.
29279  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
29280  some other viewers – e.
29281 \begin_inset space \thinspace{}
29282 \end_inset
29283
29284 g.
29285  xpdf – allow at least to reload the document and jump to a specific page of the file,
29286  so you can at least navigate 
29287 \begin_inset Quotes eld
29288 \end_inset
29289
29290 near
29291 \begin_inset Quotes erd
29292 \end_inset
29293
29294 .
29295  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
29296  
29297 \end_layout
29298
29299 \begin_layout Standard
29300 Forward search works both with DVI and PDF output.
29301  \SpecialChar LyX
29302  simply checks which preview format you have used before (i.
29303 \begin_inset space \thinspace{}
29304 \end_inset
29305
29306 e.,
29307  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
29308 \change_deleted 564990737 1672743015
29309
29310 \end_layout
29311
29312 \begin_layout Standard
29313
29314 \change_deleted 564990737 1672743015
29315 Special Document Classes
29316 \end_layout
29317
29318 \begin_layout Standard
29319
29320 \change_deleted 564990737 1669742044
29321 A&A Paper
29322 \end_layout
29323
29324 \begin_layout Standard
29325
29326 \change_deleted 564990737 1669742044
29327 by 
29328 \noun on
29329 Peter Sütterlin
29330 \end_layout
29331
29332 \begin_layout Standard
29333
29334 \change_deleted 564990737 1669742044
29335 Introduction
29336 \end_layout
29337
29338 \begin_layout Standard
29339
29340 \change_deleted 564990737 1669742044
29341 This section describes how \SpecialChar LyX
29342  can be used to write articles for submission to the scientific journal 
29343 \emph on
29344 Astronomy and Astrophysics
29345 \emph default
29346  (
29347 \begin_inset Flex URL
29348 status collapsed
29349
29350 \begin_layout Plain Layout
29351
29352 https://www.aanda.org/
29353 \end_layout
29354
29355 \end_inset
29356
29357 ) using Version 5.01 of the document class 
29358 \family typewriter
29359 aa.cls
29360 \family default
29361 .
29362  This package can be downloaded from the ftp site
29363 \end_layout
29364
29365 \begin_layout Standard
29366
29367 \change_deleted 564990737 1669742044
29368 \begin_inset VSpace medskip
29369 \end_inset
29370
29371
29372 \end_layout
29373
29374 \begin_layout Standard
29375 \align center
29376
29377 \change_deleted 564990737 1669742044
29378 \begin_inset Flex URL
29379 status collapsed
29380
29381 \begin_layout Plain Layout
29382
29383 ftp://ftp.edpsciences.org/pub/aa/readme.html
29384 \end_layout
29385
29386 \end_inset
29387
29388
29389 \end_layout
29390
29391 \begin_layout Standard
29392
29393 \change_deleted 564990737 1669742044
29394 \begin_inset VSpace medskip
29395 \end_inset
29396
29397
29398 \end_layout
29399
29400 \begin_layout Standard
29401
29402 \change_deleted 564990737 1669742044
29403 A manual comes together with that package,
29404  and this text is not meant to replace the original manual but is merely a short guide in how to realize the correct form of your paper.
29405  
29406 \end_layout
29407
29408 \begin_layout Standard
29409
29410 \change_deleted 564990737 1669742044
29411 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
29412  2001.
29413  That change involved also some slight changes to the style files,
29414  namely the removal of the thesaurus command.
29415  The \SpecialChar LyX
29416  class aa supports the newest version of these style files,
29417  V 5.01.
29418  If you have an older version installed,
29419  please upgrade.
29420  For compatibility,
29421  the old (version 4) layout has been kept as 
29422 \family sans
29423 article (A&A V4)
29424 \family default
29425 .
29426  Please refer to the comments in 
29427 \family typewriter
29428 \SpecialChar LyX
29429 Dir/layouts/aapaper.layout
29430 \family default
29431 .
29432 \end_layout
29433
29434 \begin_layout Standard
29435
29436 \change_deleted 564990737 1669742044
29437 Getting started
29438 \end_layout
29439
29440 \begin_layout Standard
29441
29442 \change_deleted 564990737 1669742044
29443 It is recommended you start from the example template distributed with \SpecialChar LyX
29444 .
29445  If you are not using a template,
29446  note the following settings:
29447 \end_layout
29448
29449 \begin_layout Itemize
29450
29451 \change_deleted 564990737 1669742044
29452 Select 
29453 \family sans
29454 article (A&A)
29455 \family default
29456  in the 
29457 \family sans
29458 Document\SpecialChar menuseparator
29459 Settings
29460 \family default
29461  dialog (OK,
29462  that one was obvious).
29463 \end_layout
29464
29465 \begin_layout Itemize
29466
29467 \change_deleted 564990737 1669742044
29468 Don't change the option 
29469 \family sans
29470 Page
29471 \begin_inset space ~
29472 \end_inset
29473
29474 style
29475 \family default
29476 :
29477  Leave it set to 
29478 \family sans
29479 default
29480 \family default
29481 .
29482  The whole layout is done by the macros,
29483  you shouldn't change anything.
29484 \end_layout
29485
29486 \begin_layout Standard
29487
29488 \change_deleted 564990737 1669742044
29489 The header block
29490 \end_layout
29491
29492 \begin_layout Standard
29493
29494 \change_deleted 564990737 1669742044
29495 First thing to enter is the header information.
29496  It consists of seven entries,
29497  of which some are optional.
29498  They are
29499 \end_layout
29500
29501 \begin_layout Itemize
29502
29503 \change_deleted 564990737 1669742044
29504
29505 \family sans
29506 Title
29507 \family default
29508 :
29509  [required] 
29510 \end_layout
29511
29512 \begin_layout Itemize
29513
29514 \change_deleted 564990737 1669742044
29515
29516 \family sans
29517 Subtitle
29518 \family default
29519 :
29520  [optional] 
29521 \end_layout
29522
29523 \begin_layout Itemize
29524
29525 \change_deleted 564990737 1669742044
29526
29527 \family sans
29528 Author
29529 \family default
29530 :
29531  [required]
29532 \end_layout
29533
29534 \begin_layout Itemize
29535
29536 \change_deleted 564990737 1669742044
29537
29538 \family sans
29539 Address
29540 \family default
29541 :
29542  [required]
29543 \end_layout
29544
29545 \begin_layout Itemize
29546
29547 \change_deleted 564990737 1669742044
29548
29549 \family sans
29550 Offprints
29551 \family default
29552 :
29553  [optional] if more than one author:
29554  whom to contact for offprint requests.
29555 \end_layout
29556
29557 \begin_layout Itemize
29558
29559 \change_deleted 564990737 1669742044
29560
29561 \family sans
29562 Mail
29563 \family default
29564 :
29565  [optional] mail address for contacts.
29566 \end_layout
29567
29568 \begin_layout Itemize
29569
29570 \change_deleted 564990737 1669742044
29571
29572 \family sans
29573 Date
29574 \family default
29575 :
29576  [required].
29577  Suggested format is 
29578 \family typewriter
29579 Received:
29580  <date>;
29581  Accepted <date> 
29582 \end_layout
29583
29584 \begin_layout Standard
29585
29586 \change_deleted 564990737 1669742044
29587 There is no need to issue the 
29588 \family typewriter
29589
29590 \backslash
29591 maketitle
29592 \family default
29593  command,
29594  this is done automatically by \SpecialChar LyX
29595  when the header is finished.
29596  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
29597  just to get the best optics and meets the layout of the real document.
29598 \end_layout
29599
29600 \begin_layout Standard
29601
29602 \change_deleted 564990737 1669742044
29603 If you want to place footnotes in the header block,
29604  e.
29605 \begin_inset space \thinspace{}
29606 \end_inset
29607
29608 g.
29609 \begin_inset space \space{}
29610 \end_inset
29611
29612 to state your present address,
29613  just use the standard footnote via the menu 
29614 \family sans
29615 Insert\SpecialChar menuseparator
29616 Footnote.
29617
29618 \family default
29619  \SpecialChar LyX
29620  will automagically use the term 
29621 \family typewriter
29622
29623 \backslash
29624 thanks{}
29625 \family default
29626  in that case.
29627 \end_layout
29628
29629 \begin_layout Standard
29630
29631 \change_deleted 564990737 1669742044
29632 Under 
29633 \family sans
29634 Edit\SpecialChar menuseparator
29635 Text Style
29636 \family default
29637 ,
29638  you'll find two insets which are relevant for the titling:
29639 \end_layout
29640
29641 \begin_layout Itemize
29642
29643 \change_deleted 564990737 1669742044
29644
29645 \family sans
29646 Institute
29647 \family typewriter
29648  
29649 \family default
29650 to mark corresponding author\SpecialChar breakableslash
29651 institute pairs.
29652  The institutes are numbered sequentially as they appear in the 
29653 \family sans
29654 Address
29655 \family default
29656  field,
29657  so you have to put a marker to each author.
29658 \end_layout
29659
29660 \begin_layout Itemize
29661
29662 \change_deleted 564990737 1669742044
29663
29664 \family sans
29665 Email
29666 \family default
29667  to supply an email address for fast contact.
29668 \end_layout
29669
29670 \begin_layout Standard
29671
29672 \change_deleted 564990737 1669742044
29673 In addition to these topics,
29674  the macros use one additional \SpecialChar LaTeX
29675  command that has no counterpart in \SpecialChar LyX
29676 :
29677 \end_layout
29678
29679 \begin_layout Itemize
29680
29681 \change_deleted 564990737 1669742044
29682
29683 \family typewriter
29684
29685 \backslash
29686 and
29687 \family default
29688  to separate different names for more than one author and institute,
29689  respectively.
29690 \end_layout
29691
29692 \begin_layout Standard
29693
29694 \change_deleted 564990737 1669742044
29695 The appropriate command has to be entered in \SpecialChar LyX
29696  and marked as \SpecialChar LaTeX
29697  code.
29698  See the examples.
29699  
29700 \end_layout
29701
29702 \begin_layout Standard
29703
29704 \change_deleted 564990737 1669742044
29705 The abstract
29706 \end_layout
29707
29708 \begin_layout Standard
29709
29710 \change_deleted 564990737 1669742044
29711 The abstract should immediately follow the header block.
29712  With version 5 the abstract environment was changed to a command,
29713  and there is now a restriction to only one paragraph.
29714  In addition,
29715  it should contain an entry with the keywords.
29716  This is done via the paragraph style 
29717 \family sans
29718 Keywords
29719 \family default
29720 .
29721  Refer to the example paper.
29722 \end_layout
29723
29724 \begin_layout Standard
29725
29726 \change_deleted 564990737 1669742044
29727 Supported environments
29728 \end_layout
29729
29730 \begin_layout Standard
29731
29732 \change_deleted 564990737 1669742044
29733 The A&A paper layout supports the following environments for structuring your text:
29734 \end_layout
29735
29736 \begin_layout Itemize
29737
29738 \change_deleted 564990737 1669742044
29739
29740 \family sans
29741 Standard
29742 \end_layout
29743
29744 \begin_layout Itemize
29745
29746 \change_deleted 564990737 1669742044
29747
29748 \family sans
29749 Section
29750 \end_layout
29751
29752 \begin_layout Itemize
29753
29754 \change_deleted 564990737 1669742044
29755
29756 \family sans
29757 Subsection
29758 \end_layout
29759
29760 \begin_layout Itemize
29761
29762 \change_deleted 564990737 1669742044
29763
29764 \family sans
29765 Subsubsection
29766 \end_layout
29767
29768 \begin_layout Itemize
29769
29770 \change_deleted 564990737 1669742044
29771
29772 \family sans
29773 Itemize
29774 \end_layout
29775
29776 \begin_layout Itemize
29777
29778 \change_deleted 564990737 1669742044
29779
29780 \family sans
29781 Enumerate
29782 \end_layout
29783
29784 \begin_layout Itemize
29785
29786 \change_deleted 564990737 1669742044
29787
29788 \family sans
29789 Description
29790 \end_layout
29791
29792 \begin_layout Itemize
29793
29794 \change_deleted 564990737 1669742044
29795
29796 \family sans
29797 Caption
29798 \end_layout
29799
29800 \begin_layout Itemize
29801
29802 \change_deleted 564990737 1669742044
29803
29804 \family sans
29805 Abstract
29806 \end_layout
29807
29808 \begin_layout Itemize
29809
29810 \change_deleted 564990737 1669742044
29811
29812 \family sans
29813 Acknowledgment
29814 \end_layout
29815
29816 \begin_layout Itemize
29817
29818 \change_deleted 564990737 1669742044
29819
29820 \family sans
29821 Bibliography
29822 \end_layout
29823
29824 \begin_layout Itemize
29825
29826 \change_deleted 564990737 1669742044
29827
29828 \family sans
29829 \SpecialChar LaTeX
29830
29831 \end_layout
29832
29833 \begin_layout Standard
29834
29835 \change_deleted 564990737 1669742044
29836 Commands not supported by \SpecialChar LyX
29837
29838 \end_layout
29839
29840 \begin_layout Standard
29841
29842 \change_deleted 564990737 1669742044
29843 Some commands are not yet supported by the 
29844 \family sans
29845 paper (A&A)
29846 \family default
29847  layout for \SpecialChar LyX
29848 .
29849  Some have already been mentioned.
29850  For the sake of completeness,
29851  they are listed all together here:
29852 \end_layout
29853
29854 \begin_layout Itemize
29855
29856 \change_deleted 564990737 1669742044
29857
29858 \family typewriter
29859
29860 \backslash
29861 and
29862 \end_layout
29863
29864 \begin_layout Itemize
29865
29866 \change_deleted 564990737 1669742044
29867
29868 \family typewriter
29869
29870 \backslash
29871 authorrunning
29872 \end_layout
29873
29874 \begin_layout Itemize
29875
29876 \change_deleted 564990737 1669742044
29877
29878 \family typewriter
29879
29880 \backslash
29881 object{}
29882 \end_layout
29883
29884 \begin_layout Itemize
29885
29886 \change_deleted 564990737 1669742044
29887
29888 \family typewriter
29889
29890 \backslash
29891 titlerunning{}
29892 \end_layout
29893
29894 \begin_layout Standard
29895
29896 \change_deleted 564990737 1669742044
29897 If you want to use any of these commands,
29898  you have to enter them yourself.
29899  
29900 \series bold
29901 Do not forget to mark them as \SpecialChar LaTeX
29902  code!
29903 \end_layout
29904
29905 \begin_layout Standard
29906
29907 \change_deleted 564990737 1669742044
29908 Figure and Table Floats
29909 \end_layout
29910
29911 \begin_layout Standard
29912
29913 \change_deleted 564990737 1669742044
29914 \SpecialChar LyX
29915  provides support for the necessary float environments 
29916 \family sans
29917 figure,
29918  figure*,
29919  table
29920 \family default
29921  and 
29922 \family sans
29923 table*
29924 \family default
29925 ,
29926  therefore we won't tell much about it here.
29927  Refer to the 
29928 \emph on
29929 User's
29930 \begin_inset space ~
29931 \end_inset
29932
29933 Guide
29934 \emph default
29935 .
29936  Just remember that tables should be left-aligned.
29937  For that,
29938  select the table and change the alignment in 
29939 \family sans
29940 Edit\SpecialChar menuseparator
29941 Paragraph
29942 \begin_inset space ~
29943 \end_inset
29944
29945 Settings.
29946 \end_layout
29947
29948 \begin_layout Standard
29949
29950 \change_deleted 564990737 1669742044
29951 There is only one special thing:
29952  the figures with caption besides the figure.
29953  To create such a figure,
29954  you have to do the following:
29955 \end_layout
29956
29957 \begin_layout Enumerate
29958
29959 \change_deleted 564990737 1669742044
29960 Create a wide figure float:
29961  
29962 \family sans
29963 Insert\SpecialChar menuseparator
29964 Float\SpecialChar menuseparator
29965 Figure
29966 \family default
29967 ,
29968  then right click in the figure and select 
29969 \family sans
29970 Span
29971 \begin_inset space ~
29972 \end_inset
29973
29974 columns
29975 \family default
29976 .
29977 \end_layout
29978
29979 \begin_layout Enumerate
29980
29981 \change_deleted 564990737 1669742044
29982 Enter your caption text.
29983 \end_layout
29984
29985 \begin_layout Enumerate
29986
29987 \change_deleted 564990737 1669742044
29988 Press 
29989 \family sans
29990 Return
29991 \family default
29992  to move the cursor above the caption.
29993 \end_layout
29994
29995 \begin_layout Enumerate
29996
29997 \change_deleted 564990737 1669742044
29998 Insert your figure
29999 \end_layout
30000
30001 \begin_layout Enumerate
30002
30003 \change_deleted 564990737 1669742044
30004 Position the cursor behind the figure and insert a horizontal fill:
30005  
30006 \family sans
30007 Insert\SpecialChar menuseparator
30008 Special
30009 \begin_inset space ~
30010 \end_inset
30011
30012 Character\SpecialChar menuseparator
30013 Horizontal
30014 \begin_inset space ~
30015 \end_inset
30016
30017 Fill
30018 \family default
30019 .
30020 \end_layout
30021
30022 \begin_layout Enumerate
30023
30024 \change_deleted 564990737 1669742044
30025 Switch to \SpecialChar LaTeX
30026  mode:
30027  
30028 \family sans
30029 M-c
30030 \begin_inset space ~
30031 \end_inset
30032
30033 t
30034 \family default
30035 .
30036 \end_layout
30037
30038 \begin_layout Enumerate
30039
30040 \change_deleted 564990737 1669742044
30041 Enter 
30042 \family typewriter
30043
30044 \backslash
30045 parbox[b]{55mm}{
30046 \family default
30047 .
30048  
30049 \series bold
30050 Do not close the brace!
30051 \end_layout
30052
30053 \begin_layout Enumerate
30054
30055 \change_deleted 564990737 1669742044
30056 Position the cursor behind the caption text,
30057  switch to \SpecialChar LaTeX
30058  mode and insert the closing brace:
30059  
30060 \family sans
30061 M-c
30062 \begin_inset space ~
30063 \end_inset
30064
30065 t
30066 \family default
30067  
30068 \family typewriter
30069 }
30070 \family default
30071 .
30072 \end_layout
30073
30074 \begin_layout Standard
30075
30076 \change_deleted 564990737 1669742044
30077 Also,
30078  refer to the figures in the example paper.
30079 \end_layout
30080
30081 \begin_layout Standard
30082
30083 \change_deleted 564990737 1669742044
30084 Referee layout
30085 \end_layout
30086
30087 \begin_layout Standard
30088
30089 \change_deleted 564990737 1669742044
30090 For submission,
30091  the paper has to be formated in a special double-spacing layout.
30092  For this purpose,
30093  you have to give the option 
30094 \family typewriter
30095 referee
30096 \family default
30097  to the document class.
30098  This must be done using the custom class options field in the 
30099 \family sans
30100 Document\SpecialChar menuseparator
30101 Settings
30102 \family default
30103  dialog.
30104  Just enter the string 
30105 \family typewriter
30106 referee
30107 \family default
30108  there.
30109 \end_layout
30110
30111 \begin_layout Standard
30112
30113 \change_deleted 564990737 1669742044
30114 The example paper
30115 \end_layout
30116
30117 \begin_layout Standard
30118
30119 \change_deleted 564990737 1669742044
30120 The 
30121 \family sans
30122 Examples
30123 \family default
30124  directory contains an example paper written with \SpecialChar LyX
30125 .
30126  It is the example paper from the original macro package,
30127  translated to \SpecialChar LyX
30128 .
30129  Use it for inspiration,
30130  and compare the original \SpecialChar LaTeX
30131  code with \SpecialChar LyX
30132  way of writing.
30133 \end_layout
30134
30135 \begin_layout Standard
30136
30137 \change_deleted 564990737 1671097429
30138 Dinbrief
30139 \end_layout
30140
30141 \begin_layout Standard
30142
30143 \change_deleted 564990737 1671097429
30144 The document class 
30145 \family sans
30146 dinbrief
30147 \family default
30148  can be used to type letters according to German conventions.
30149  A template file is included in 
30150 \family typewriter
30151 .../lyx/share/templates
30152 \family default
30153  for you to use as a starting point.
30154 \end_layout
30155
30156 \begin_layout Standard
30157
30158 \change_deleted 564990737 1671097429
30159 Elsevier Journals
30160 \end_layout
30161
30162 \begin_layout Standard
30163
30164 \change_deleted 564990737 1671097429
30165 See the \SpecialChar LyX
30166  template file 
30167 \family typewriter
30168 elsarticle.lyx
30169 \family default
30170 .
30171  It contains all infos you need.
30172 \end_layout
30173
30174 \begin_layout Standard
30175
30176 \change_deleted 564990737 1669755802
30177 ijmpc and ijmpd
30178 \end_layout
30179
30180 \begin_layout Standard
30181
30182 \change_deleted 564990737 1669755802
30183 by 
30184 \noun on
30185 Panayotis Papasotiriou
30186 \end_layout
30187
30188 \begin_layout Standard
30189
30190 \change_deleted 564990737 1669755802
30191 Overview
30192 \end_layout
30193
30194 \begin_layout Standard
30195
30196 \change_deleted 564990737 1669755802
30197 The ijmpc package is a set of macros that facilitates electronic manuscript submission to the 
30198 \emph on
30199 International Journal of Modern Physics C
30200 \emph default
30201 .
30202  Similarly,
30203  the ijmpd package is for creating manuscripts to be submitted to the 
30204 \emph on
30205 International Journal of Modern Physics D
30206 \emph default
30207 .
30208  Both journals are published by World Scientific.
30209  The corresponding document classes are named 
30210 \family typewriter
30211 ws-ijmpc.cls
30212 \family default
30213  and 
30214 \family typewriter
30215 ws-ijmpd.cls
30216 \family default
30217 ,
30218  respectively.
30219  These files,
30220  together with instructions for the authors,
30221  can be downloaded from the sites 
30222 \begin_inset Flex URL
30223 status collapsed
30224
30225 \begin_layout Plain Layout
30226
30227 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
30228 \end_layout
30229
30230 \end_inset
30231
30232  and 
30233 \begin_inset Flex URL
30234 status collapsed
30235
30236 \begin_layout Plain Layout
30237
30238 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
30239 \end_layout
30240
30241 \end_inset
30242
30243 .
30244  Both packages are modified versions of the standard 
30245 \begin_inset Quotes eld
30246 \end_inset
30247
30248 article
30249 \begin_inset Quotes erd
30250 \end_inset
30251
30252  package,
30253  and they are almost (but not exactly) identical.
30254  Most of their features are supported by \SpecialChar LyX
30255 .
30256  I have used \SpecialChar LyX
30257  successfully to write articles submitted to both journals without any problem.
30258 \end_layout
30259
30260 \begin_layout Standard
30261
30262 \change_deleted 564990737 1669755802
30263 Writing a paper
30264 \end_layout
30265
30266 \begin_layout Standard
30267
30268 \change_deleted 564990737 1669755802
30269 As usual,
30270  the easiest way to write a paper is to start with a template.
30271  Click on 
30272 \family sans
30273 File\SpecialChar menuseparator
30274 New from
30275 \family default
30276  
30277 \family sans
30278 Template
30279 \family default
30280 ,
30281  then choose the 
30282 \family typewriter
30283 ijmpc.lyx
30284 \family default
30285  or 
30286 \family typewriter
30287 ijmpd.lyx
30288 \family default
30289  template.
30290  This will give an (almost) empty document that includes the most common fields found in a manuscript.
30291  Simply overwrite the existing text (including the brackets,
30292  
30293 \family typewriter
30294 <>
30295 \family default
30296 ) with your text.
30297  You should keep in mind the following remarks.
30298 \end_layout
30299
30300 \begin_layout Enumerate
30301
30302 \change_deleted 564990737 1669755802
30303 \SpecialChar LyX
30304  won't let you change the font size and the page style of the document,
30305  because such modifications are not allowed by both packages.
30306 \end_layout
30307
30308 \begin_layout Enumerate
30309
30310 \change_deleted 564990737 1669755802
30311 The language of the document should not be changed.
30312  Before previewing your paper,
30313  be sure that the babel package is not used.
30314  To do this,
30315  click on 
30316 \begin_inset Info
30317 type  "menu"
30318 arg   "dialog-show document"
30319 \end_inset
30320
30321  
30322 \family sans
30323 \SpecialChar menuseparator
30324 Language
30325 \family default
30326 ,
30327  and select 
30328 \begin_inset Quotes eld
30329 \end_inset
30330
30331 None
30332 \begin_inset Quotes erd
30333 \end_inset
30334
30335  as 
30336 \family sans
30337 Language Package
30338 \family default
30339 .
30340 \end_layout
30341
30342 \begin_layout Enumerate
30343
30344 \change_deleted 564990737 1669755802
30345 The 
30346 \begin_inset Quotes eld
30347 \end_inset
30348
30349 Keywords
30350 \begin_inset Quotes erd
30351 \end_inset
30352
30353  style must be used to define keywords.
30354 \end_layout
30355
30356 \begin_layout Enumerate
30357
30358 \change_deleted 564990737 1669755802
30359 The ijmpc package provides a style named 
30360 \begin_inset Quotes eld
30361 \end_inset
30362
30363 Classification Codes
30364 \begin_inset Quotes erd
30365 \end_inset
30366
30367 ,
30368  which can be used to define classification codes,
30369  such as PACS numbers.
30370  Note that this facility is not supported by the ijmpd package.
30371 \end_layout
30372
30373 \begin_layout Enumerate
30374
30375 \change_deleted 564990737 1669755802
30376 Several new environments are available:
30377  
30378 \begin_inset Quotes eld
30379 \end_inset
30380
30381 Definition
30382 \begin_inset Quotes erd
30383 \end_inset
30384
30385 ,
30386  
30387 \begin_inset Quotes eld
30388 \end_inset
30389
30390 Step
30391 \begin_inset Quotes erd
30392 \end_inset
30393
30394 ,
30395  
30396 \begin_inset Quotes eld
30397 \end_inset
30398
30399 Example
30400 \begin_inset Quotes erd
30401 \end_inset
30402
30403 ,
30404  
30405 \begin_inset Quotes eld
30406 \end_inset
30407
30408 Remark
30409 \begin_inset Quotes erd
30410 \end_inset
30411
30412 ,
30413  
30414 \begin_inset Quotes eld
30415 \end_inset
30416
30417 Notation
30418 \begin_inset Quotes erd
30419 \end_inset
30420
30421 ,
30422  
30423 \begin_inset Quotes eld
30424 \end_inset
30425
30426 Theorem
30427 \begin_inset Quotes erd
30428 \end_inset
30429
30430 ,
30431  
30432 \begin_inset Quotes eld
30433 \end_inset
30434
30435 Proof
30436 \begin_inset Quotes erd
30437 \end_inset
30438
30439 ,
30440  
30441 \begin_inset Quotes eld
30442 \end_inset
30443
30444 Corollary
30445 \begin_inset Quotes erd
30446 \end_inset
30447
30448 ,
30449  
30450 \begin_inset Quotes eld
30451 \end_inset
30452
30453 Lemma
30454 \begin_inset Quotes erd
30455 \end_inset
30456
30457 ,
30458  
30459 \begin_inset Quotes eld
30460 \end_inset
30461
30462 Proposition
30463 \begin_inset Quotes erd
30464 \end_inset
30465
30466 ,
30467  
30468 \begin_inset Quotes eld
30469 \end_inset
30470
30471 Prop
30472 \begin_inset Quotes erd
30473 \end_inset
30474
30475 ,
30476  
30477 \begin_inset Quotes eld
30478 \end_inset
30479
30480 Question
30481 \begin_inset Quotes erd
30482 \end_inset
30483
30484 ,
30485  
30486 \begin_inset Quotes eld
30487 \end_inset
30488
30489 Claim
30490 \begin_inset Quotes erd
30491 \end_inset
30492
30493 ,
30494  and 
30495 \begin_inset Quotes eld
30496 \end_inset
30497
30498 Conjecture
30499 \begin_inset Quotes erd
30500 \end_inset
30501
30502 .
30503  Their use is more or less obvious.
30504  \SpecialChar LyX
30505  supports all these environments;
30506  it will use the proper label,
30507  text style,
30508  and numbering scheme for each of them.
30509 \end_layout
30510
30511 \begin_layout Enumerate
30512
30513 \change_deleted 564990737 1669755802
30514 Both packages use basic citations;
30515  the natbib package should not be used.
30516  In \SpecialChar LyX
30517 ,
30518  citation references are shown as usual;
30519  in the output,
30520  citations are shown as superscripts.
30521  If you want to use a citation as normal text,
30522  you should use the 
30523 \family typewriter
30524 refcite
30525 \family default
30526  command,
30527  e.
30528 \begin_inset space \thinspace{}
30529 \end_inset
30530
30531 g.
30532 \begin_inset space \space{}
30533 \end_inset
30534
30535
30536 \begin_inset Quotes eld
30537 \end_inset
30538
30539 See Ref.
30540 \begin_inset space \space{}
30541 \end_inset
30542
30543
30544 \family typewriter
30545
30546 \backslash
30547 refcite{key}
30548 \family default
30549
30550 \begin_inset Quotes erd
30551 \end_inset
30552
30553 .
30554 \end_layout
30555
30556 \begin_layout Enumerate
30557
30558 \change_deleted 564990737 1669755802
30559 There is no 
30560 \begin_inset Quotes eld
30561 \end_inset
30562
30563 Acknowledgments
30564 \begin_inset Quotes erd
30565 \end_inset
30566
30567  section in both packages.
30568  To put acknowledgments,
30569  just use the 
30570 \begin_inset Quotes eld
30571 \end_inset
30572
30573 Section*
30574 \begin_inset Quotes erd
30575 \end_inset
30576
30577  environment.
30578 \end_layout
30579
30580 \begin_layout Enumerate
30581
30582 \change_deleted 564990737 1669755802
30583 Appendices may be added to the paper,
30584  
30585 \emph on
30586 after
30587 \emph default
30588  the Acknowledgments and 
30589 \shape italic
30590 before
30591 \shape default
30592  the References.
30593  \SpecialChar LyX
30594  provides a special environment,
30595  called 
30596 \begin_inset Quotes eld
30597 \end_inset
30598
30599 Appendices Section
30600 \begin_inset Quotes erd
30601 \end_inset
30602
30603  which marks the beginning of the appendices.
30604  This environment should be left blank;
30605  it just sends a \SpecialChar LaTeX
30606  command,
30607  but nothing is really printed.
30608  In \SpecialChar LyX
30609 ,
30610  the word 
30611 \begin_inset Quotes eld
30612 \end_inset
30613
30614 Appendix
30615 \begin_inset Quotes erd
30616 \end_inset
30617
30618  is printed with blue letters,
30619  as a signal that all sections after that point are appendices.
30620  To write an appendix,
30621  use the 
30622 \begin_inset Quotes eld
30623 \end_inset
30624
30625 Appendix
30626 \begin_inset Quotes erd
30627 \end_inset
30628
30629  environment.
30630  \SpecialChar LyX
30631  will number each appendix with capital letters,
30632  as required by both journals.
30633  Note that 
30634 \begin_inset Quotes eld
30635 \end_inset
30636
30637 Appendices Section
30638 \begin_inset Quotes erd
30639 \end_inset
30640
30641  
30642 \emph on
30643 must
30644 \emph default
30645  be present before the first appendix;
30646  if not,
30647  all appendices will be numbered as normal sections in the output.
30648 \end_layout
30649
30650 \begin_layout Enumerate
30651
30652 \change_deleted 564990737 1669755802
30653 The ijmpc and the ijmpd packages use the 
30654 \family typewriter
30655 tbl
30656 \family default
30657  command to implement table captions.
30658  As a result,
30659  a table created by \SpecialChar LyX
30660  is printed correctly,
30661  but its caption is ignored.
30662  However,
30663  you can use some \SpecialChar TeX
30664  code to overcome this problem,
30665  so that captions are printed as expected.
30666  To do so,
30667  create a float table as usual,
30668  remove the caption,
30669  and replace it with the \SpecialChar TeX
30670  code 
30671 \family typewriter
30672
30673 \backslash
30674 tbl{
30675 \emph on
30676 your table caption
30677 \emph default
30678 }{
30679 \family default
30680  (sic);
30681  you must also the \SpecialChar TeX
30682  code 
30683 \family typewriter
30684 }
30685 \family default
30686  immediately after the tabular material.
30687  Study the example table included in the template files to see how this trick is implemented.
30688  Alternatively,
30689  If you need table captions,
30690  you should implement the whole table float in a 
30691 \family typewriter
30692 .tex
30693 \family default
30694  file,
30695  then include this file to the \SpecialChar LyX
30696  document (
30697 \family sans
30698 Insert\SpecialChar menuseparator
30699 File\SpecialChar menuseparator
30700 Child
30701 \begin_inset space ~
30702 \end_inset
30703
30704 Document
30705 \family default
30706 ).
30707  Details on how to create a table float can be found in the files 
30708 \family typewriter
30709 ws-ijmpc.tex
30710 \family default
30711  and 
30712 \family typewriter
30713 ws-ijmpd.tex
30714 \family default
30715 ,
30716  included in the corresponding packages.
30717 \end_layout
30718
30719 \begin_layout Standard
30720
30721 \change_deleted 564990737 1669755802
30722 Preparing a paper for submission
30723 \end_layout
30724
30725 \begin_layout Standard
30726
30727 \change_deleted 564990737 1669755802
30728 Before you submit your paper you must export the \SpecialChar LyX
30729  document as a \SpecialChar LaTeX
30730  file (
30731 \family sans
30732 File\SpecialChar menuseparator
30733 Export\SpecialChar menuseparator
30734 \SpecialChar LaTeX
30735
30736 \family default
30737 )
30738 \begin_inset Foot
30739 status open
30740
30741 \begin_layout Plain Layout
30742 Actually you have the choice between \SpecialChar LaTeX
30743  (plain) and pdflatex.
30744  If you intend to use pdflatex to prepare the paper,
30745  you should use the pdflatex option so that included graphics are converted to PDF format,
30746  ready for use by pdflatex.
30747 \end_layout
30748
30749 \end_inset
30750
30751 ,
30752  then make the following changes to the resulting 
30753 \family typewriter
30754 .tex
30755 \family default
30756  file.
30757 \end_layout
30758
30759 \begin_layout Enumerate
30760
30761 \change_deleted 564990737 1669755802
30762 Remove the comment lines before the 
30763 \family typewriter
30764
30765 \backslash
30766 documentclass
30767 \family default
30768  command.
30769 \end_layout
30770
30771 \begin_layout Enumerate
30772
30773 \change_deleted 564990737 1669755802
30774 Remove everything between (and including) the 
30775 \family typewriter
30776
30777 \backslash
30778 makeatletter
30779 \family default
30780  and 
30781 \family typewriter
30782
30783 \backslash
30784 makeatother
30785 \family default
30786  commands,
30787  except for any commands you specifically put into the \SpecialChar LaTeX
30788  preamble.
30789 \end_layout
30790
30791 \begin_layout Standard
30792
30793 \change_deleted 564990737 1672743015
30794 The modified 
30795 \family typewriter
30796 .tex
30797 \family default
30798  file should be saved and processed through \SpecialChar LaTeX
30799  as many times as necessary.
30800  You may also want to check the resulting 
30801 \family typewriter
30802 .dvi
30803 \family default
30804  document.
30805 \end_layout
30806
30807 \begin_layout Standard
30808
30809 \change_deleted 564990737 1669801478
30810 iopart
30811 \end_layout
30812
30813 \begin_layout Standard
30814
30815 \change_deleted 564990737 1669801478
30816 by 
30817 \noun on
30818 Uwe Stöhr
30819 \end_layout
30820
30821 \begin_layout Standard
30822
30823 \change_deleted 564990737 1669801478
30824 Overview
30825 \end_layout
30826
30827 \begin_layout Standard
30828
30829 \change_deleted 564990737 1669801478
30830 The iopart package provides a document class to create electronic manuscript submission to the journals published by the Institute of Physics.
30831  Instructions for the authors how to create a paper using the iopart class can be downloaded together with the iopart package from the site 
30832 \begin_inset Flex URL
30833 status collapsed
30834
30835 \begin_layout Plain Layout
30836
30837 ftp://ftp.iop.org/pub/journals/latex2e
30838 \end_layout
30839
30840 \end_inset
30841
30842 .
30843 \end_layout
30844
30845 \begin_layout Standard
30846
30847 \change_deleted 564990737 1669801478
30848 Writing a paper
30849 \end_layout
30850
30851 \begin_layout Standard
30852
30853 \change_deleted 564990737 1669801478
30854 The easiest way to write a paper is to start with the template 
30855 \emph on
30856 IOP-article.lyx
30857 \emph default
30858  that is available via 
30859 \family sans
30860 File\SpecialChar menuseparator
30861 New From Template
30862 \family default
30863  The template explains how to use the special text environments.
30864  Here are the most important advices:
30865 \end_layout
30866
30867 \begin_layout Itemize
30868
30869 \change_deleted 564990737 1669801478
30870 To be able to compile your document to a PDF,
30871  PS,
30872  or DVI,
30873  ensure that the no AMS packages are loaded in 
30874 \family sans
30875 Document\SpecialChar menuseparator
30876 Settings\SpecialChar menuseparator
30877 Math Options
30878 \family default
30879 !
30880 \end_layout
30881
30882 \begin_layout Itemize
30883
30884 \change_deleted 564990737 1669801478
30885
30886 \size normal
30887 The title environment defines the kind of your paper.
30888  So use one of the following environments for the title:
30889 \end_layout
30890
30891 \begin_deeper
30892 \begin_layout Itemize
30893
30894 \change_deleted 564990737 1669801478
30895
30896 \family sans
30897 \size normal
30898 Title
30899 \family default
30900  for a Paper
30901 \end_layout
30902
30903 \begin_layout Itemize
30904
30905 \change_deleted 564990737 1669801478
30906
30907 \family sans
30908 \size normal
30909 Review
30910 \family default
30911  for a Review
30912 \end_layout
30913
30914 \begin_layout Itemize
30915
30916 \change_deleted 564990737 1669801478
30917
30918 \family sans
30919 \size normal
30920 Topical
30921 \family default
30922  for a Topical review
30923 \end_layout
30924
30925 \begin_layout Itemize
30926
30927 \change_deleted 564990737 1669801478
30928
30929 \family sans
30930 \size normal
30931 Comment
30932 \family default
30933  for a Comment
30934 \end_layout
30935
30936 \begin_layout Itemize
30937
30938 \change_deleted 564990737 1669801478
30939
30940 \family sans
30941 \size normal
30942 Note
30943 \family default
30944  for a Note
30945 \end_layout
30946
30947 \begin_layout Itemize
30948
30949 \change_deleted 564990737 1669801478
30950
30951 \family sans
30952 \size normal
30953 Paper
30954 \family default
30955  for a Paper (same as Title)
30956 \end_layout
30957
30958 \begin_layout Itemize
30959
30960 \change_deleted 564990737 1669801478
30961
30962 \family sans
30963 \size normal
30964 Prelim
30965 \family default
30966  for a Preliminary communication
30967 \end_layout
30968
30969 \begin_layout Itemize
30970
30971 \change_deleted 564990737 1669801478
30972
30973 \family sans
30974 \size normal
30975 Rapid
30976 \family default
30977  for a Rapid communication
30978 \end_layout
30979
30980 \begin_layout Itemize
30981
30982 \change_deleted 564990737 1669801478
30983
30984 \family sans
30985 \size normal
30986 Letter
30987 \family default
30988  for a Letter to the editor
30989 \end_layout
30990
30991 \end_deeper
30992 \begin_layout Itemize
30993
30994 \change_deleted 564990737 1669801478
30995
30996 \size normal
30997 All title environments except of 
30998 \family sans
30999 Letter
31000 \family default
31001  can have an optional short title.
31002 \end_layout
31003
31004 \begin_layout Itemize
31005
31006 \change_deleted 564990737 1669801478
31007 There is a general title environment 
31008 \family sans
31009 Article
31010 \family default
31011  which is not directly supported by \SpecialChar LyX
31012 .
31013  This can be used as \SpecialChar TeX
31014  code when your document doesn't fit into one of the other title types.
31015 \end_layout
31016
31017 \begin_layout Standard
31018
31019 \change_deleted 564990737 1672743015
31020 For more informations like hints for special table and formula formatting,
31021  look at the IOP author guidelines.
31022 \end_layout
31023
31024 \begin_layout Standard
31025
31026 \change_deleted 564990737 1670317155
31027 Kluwer
31028 \end_layout
31029
31030 \begin_layout Standard
31031
31032 \change_deleted 564990737 1670317155
31033 by 
31034 \noun on
31035 Panayotis Papasotiriou
31036 \end_layout
31037
31038 \begin_layout Standard
31039
31040 \change_deleted 564990737 1670317155
31041 Overview
31042 \end_layout
31043
31044 \begin_layout Standard
31045
31046 \change_deleted 564990737 1670317155
31047 The Kluwer package is a set of macros produced by Kluwer Academic Publishers that facilitates electronic manuscript submission to the journals they publish.
31048  Most known of them (at least in my domain of interest) are 
31049 \emph on
31050 Astrophysics and Space Science
31051 \emph default
31052  and 
31053 \emph on
31054 Solar Physics
31055 \emph default
31056 ,
31057  but there are many others (see a complete list at 
31058 \begin_inset Flex URL
31059 status collapsed
31060
31061 \begin_layout Plain Layout
31062
31063 http://www.wkap.nl/jrnllist.htm/JRNLHOME
31064 \end_layout
31065
31066 \end_inset
31067
31068 ).
31069  The Kluwer package may be downloaded from the site 
31070 \begin_inset Flex URL
31071 status collapsed
31072
31073 \begin_layout Plain Layout
31074
31075 http://www.wkap.nl/kaphtml.htm/STYLEFILES
31076 \end_layout
31077
31078 \end_inset
31079
31080 .
31081  A complete user guide is contained in that package (but it can also be downloaded separately).
31082 \end_layout
31083
31084 \begin_layout Standard
31085
31086 \change_deleted 564990737 1670317155
31087 \SpecialChar LyX
31088  supports many features of the package but not everything.
31089  However,
31090  the \SpecialChar TeX
31091  code needed is reduced to some 
31092 \begin_inset Quotes eld
31093 \end_inset
31094
31095 peculiar
31096 \begin_inset Quotes erd
31097 \end_inset
31098
31099  commands of the package (see
31100 \begin_inset space ~
31101 \end_inset
31102
31103
31104 \begin_inset CommandInset ref
31105 LatexCommand ref
31106 reference "subsec:kluwer_peculiarities"
31107 nolink "false"
31108
31109 \end_inset
31110
31111 ).
31112  I have recently used \SpecialChar LyX
31113  to write an article submitted to the 
31114 \emph on
31115 Astrophysics and Space Science
31116 \emph default
31117  without any problem.
31118 \end_layout
31119
31120 \begin_layout Standard
31121
31122 \change_deleted 564990737 1670317155
31123 Writing a paper
31124 \end_layout
31125
31126 \begin_layout Standard
31127
31128 \change_deleted 564990737 1670317155
31129 The easiest way to write a paper is to start with the Kluwer template file.
31130  Click on 
31131 \family sans
31132 File\SpecialChar menuseparator
31133 New from
31134 \family default
31135  
31136 \family sans
31137 Template
31138 \family default
31139 ,
31140  then choose the 
31141 \family typewriter
31142 kluwer.lyx
31143 \family default
31144  template.
31145  This will give an (almost) empty document that includes the most common fields found in a manuscript and a short description of their use.
31146  As in most templates,
31147  simply overwrite the existing text (including the brackets,
31148  
31149 \family typewriter
31150 <>
31151 \family default
31152 ) with the correct information.
31153 \end_layout
31154
31155 \begin_layout Standard
31156
31157 \change_deleted 564990737 1670317155
31158 Preparing a paper for submission
31159 \end_layout
31160
31161 \begin_layout Standard
31162
31163 \change_deleted 564990737 1670317155
31164 As in the AAS\SpecialChar TeX
31165  package,
31166  before you submit your paper to a journal you must 
31167 \begin_inset Quotes eld
31168 \end_inset
31169
31170 postprocess
31171 \begin_inset Quotes erd
31172 \end_inset
31173
31174  it as follows.
31175 \end_layout
31176
31177 \begin_layout Enumerate
31178
31179 \change_deleted 564990737 1670317155
31180 Export your paper as a \SpecialChar LaTeX
31181  file.
31182  To do this,
31183  click on 
31184 \family sans
31185 File\SpecialChar menuseparator
31186 Export\SpecialChar menuseparator
31187 \SpecialChar LaTeX
31188
31189 \family default
31190 .
31191  
31192 \end_layout
31193
31194 \begin_layout Enumerate
31195
31196 \change_deleted 564990737 1670317155
31197 Edit the resulting 
31198 \family typewriter
31199 .tex
31200 \family default
31201  file with a text editor and make the following changes
31202 \end_layout
31203
31204 \begin_deeper
31205 \begin_layout Enumerate
31206
31207 \change_deleted 564990737 1670317155
31208 remove the comment lines before the 
31209 \family typewriter
31210
31211 \backslash
31212 documentclass
31213 \family default
31214  command,
31215 \end_layout
31216
31217 \begin_layout Enumerate
31218
31219 \change_deleted 564990737 1670317155
31220 remove everything between (and including) the 
31221 \family typewriter
31222
31223 \backslash
31224 makeatletter
31225 \family default
31226  and 
31227 \family typewriter
31228
31229 \backslash
31230 makeatother
31231 \family default
31232  commands,
31233  except for any commands you specifically put into the \SpecialChar LaTeX
31234  preamble.
31235 \end_layout
31236
31237 \begin_layout Standard
31238
31239 \change_deleted 564990737 1670317155
31240 Save the resulting 
31241 \family typewriter
31242 .tex
31243 \family default
31244  file.
31245 \end_layout
31246
31247 \end_deeper
31248 \begin_layout Enumerate
31249
31250 \change_deleted 564990737 1670317155
31251 Run the 
31252 \family typewriter
31253 .tex
31254 \family default
31255  file through \SpecialChar LaTeX
31256  as many times as necessary (usually up to three).
31257 \end_layout
31258
31259 \begin_layout Enumerate
31260
31261 \change_deleted 564990737 1670317155
31262 View the resulting 
31263 \family typewriter
31264 .dvi
31265 \family default
31266  document using,
31267  e.
31268 \begin_inset space \thinspace{}
31269 \end_inset
31270
31271 g.
31272 \begin_inset space \space{}
31273 \end_inset
31274
31275
31276 \family sans
31277 xdvi
31278 \family default
31279 ,
31280  and check if everything is OK (it should,
31281  if you didn't make any mistake).
31282 \end_layout
31283
31284 \begin_layout Standard
31285
31286 \change_deleted 564990737 1670317155
31287 \begin_inset Quotes eld
31288 \end_inset
31289
31290 Peculiarities
31291 \begin_inset Quotes erd
31292 \end_inset
31293
31294  of the Kluwer package
31295 \begin_inset CommandInset label
31296 LatexCommand label
31297 name "subsec:kluwer_peculiarities"
31298
31299 \end_inset
31300
31301
31302 \end_layout
31303
31304 \begin_layout Standard
31305
31306 \change_deleted 564990737 1670317155
31307 The Kluwer package has the following 
31308 \begin_inset Quotes eld
31309 \end_inset
31310
31311 peculiarities
31312 \begin_inset Quotes erd
31313 \end_inset
31314
31315 .
31316 \end_layout
31317
31318 \begin_layout Enumerate
31319
31320 \change_deleted 564990737 1670317155
31321 It is possible to write multiple articles in the same \SpecialChar LaTeX
31322  file
31323 \begin_inset Foot
31324 status collapsed
31325
31326 \begin_layout Plain Layout
31327 I can't imagine any good reason to do this.
31328 \end_layout
31329
31330 \end_inset
31331
31332 .
31333  Each article must be included in the environment 
31334 \begin_inset Quotes eld
31335 \end_inset
31336
31337 article
31338 \begin_inset Quotes erd
31339 \end_inset
31340
31341 .
31342  Unfortunately,
31343  this environment cannot be omitted,
31344  even if you write just one article.
31345  Therefore,
31346  each article starts with the command 
31347 \family typewriter
31348
31349 \backslash
31350 begin{article}
31351 \family default
31352  and,
31353  obviously,
31354  ends with the command 
31355 \family typewriter
31356
31357 \backslash
31358 end{article}
31359 \family default
31360 .
31361  Although this can be implemented in \SpecialChar LyX
31362 ,
31363  I didn't included it,
31364  since it looks ugly and can confuse the novice user.
31365  Therefore,
31366  you need to enter them directly and mark them as \SpecialChar LaTeX
31367  code (the well-known 
31368 \begin_inset Quotes eld
31369 \end_inset
31370
31371 \SpecialChar TeX
31372  code
31373 \begin_inset Quotes erd
31374 \end_inset
31375
31376 ).
31377 \end_layout
31378
31379 \begin_layout Enumerate
31380
31381 \change_deleted 564990737 1670317155
31382 Information given at the beginning of the article (i.
31383 \begin_inset space \thinspace{}
31384 \end_inset
31385
31386 e.
31387 \begin_inset space \space{}
31388 \end_inset
31389
31390 title,
31391  subtitle,
31392  author,
31393  institution,
31394  running title,
31395  running author,
31396  abstract and keywords) must be included in an environment called 
31397 \begin_inset Quotes eld
31398 \end_inset
31399
31400 opening
31401 \begin_inset Quotes erd
31402 \end_inset
31403
31404 .
31405  This is not implemented in \SpecialChar LyX
31406 ,
31407  so you must enter title,
31408  subtitle etc.
31409 \begin_inset space ~
31410 \end_inset
31411
31412 between two \SpecialChar TeX
31413  code lines (
31414 \family typewriter
31415
31416 \backslash
31417 begin{opening}
31418 \family default
31419  and 
31420 \family typewriter
31421
31422 \backslash
31423 end{opening}
31424 \family default
31425 ).
31426 \end_layout
31427
31428 \begin_layout Enumerate
31429
31430 \change_deleted 564990737 1670317155
31431 According to the user manual,
31432  the label of each bibliography item must be written as 
31433 \family typewriter
31434
31435 \backslash
31436 protect
31437 \backslash
31438 citeauthoryear{
31439 \family default
31440 \emph on
31441 author(s)
31442 \family typewriter
31443 \emph default
31444 }{
31445 \family default
31446 \emph on
31447 year
31448 \family typewriter
31449 \emph default
31450 }
31451 \family default
31452 .
31453 \end_layout
31454
31455 \begin_layout Standard
31456
31457 \change_deleted 564990737 1670317155
31458 The 
31459 \family typewriter
31460 kluwer.lyx
31461 \family default
31462  template takes care of all these 
31463 \begin_inset Quotes eld
31464 \end_inset
31465
31466 peculiarities
31467 \begin_inset Quotes erd
31468 \end_inset
31469
31470 .
31471  If you start a new paper using this template you don't need to do anything special.
31472  Just 
31473 \end_layout
31474
31475 \begin_layout Enumerate
31476
31477 \change_deleted 564990737 1670317155
31478 don't delete the \SpecialChar TeX
31479  code included in the template,
31480  and
31481 \end_layout
31482
31483 \begin_layout Enumerate
31484
31485 \change_deleted 564990737 1670317155
31486 copy the example bibliography item included in the template and modify it as necessary to enter new bibliography items.
31487 \end_layout
31488
31489 \begin_layout Standard
31490
31491 \change_deleted 564990737 1671097446
31492 Paper
31493 \end_layout
31494
31495 \begin_layout Standard
31496
31497 \change_deleted 564990737 1671097446
31498 The document class 
31499 \family sans
31500 paper
31501 \family default
31502  provides an alternative to the standard 
31503 \family sans
31504 article
31505 \family default
31506  class.
31507  It provides similar functionality,
31508  but you might prefer this layout with sans serif sections,
31509  headings,
31510  and more.
31511 \end_layout
31512
31513 \begin_layout Standard
31514
31515 \change_deleted 564990737 1671097446
31516 Springer Journals (
31517 \family sans
31518 svjour
31519 \family default
31520 )
31521 \end_layout
31522
31523 \begin_layout Standard
31524
31525 \change_deleted 564990737 1671097446
31526 by 
31527 \noun on
31528 Martin Vermeer
31529 \end_layout
31530
31531 \begin_layout Standard
31532
31533 \change_deleted 564990737 1671097446
31534 Description
31535 \end_layout
31536
31537 \begin_layout Standard
31538
31539 \change_deleted 564990737 1671097446
31540 These are the layout files for some of the journal formats used by Springer Verlag and listed on 
31541 \begin_inset Flex URL
31542 status collapsed
31543
31544 \begin_layout Plain Layout
31545
31546 http://www.springer.de/author/tex/help-journals.html
31547 \end_layout
31548
31549 \end_inset
31550
31551 ,
31552  where you should also go to fetch the class files (yes,
31553  these are \SpecialChar LaTeX2e
31554  now!).
31555  It is a modular system:
31556  the things common to all journals are implemented in 
31557 \family typewriter
31558 svjour.inc
31559 \family default
31560 ,
31561  which journal-specific layout files (such as,
31562  e.
31563 \begin_inset space \thinspace{}
31564 \end_inset
31565
31566 g.
31567 \begin_inset space \space{}
31568 \end_inset
31569
31570
31571 \family typewriter
31572 svjog.layout
31573 \family default
31574  for Journal of Geodesy) can include.
31575 \end_layout
31576
31577 \begin_layout Standard
31578
31579 \change_deleted 564990737 1671097446
31580 This means that implementing support for any other Springer journal on this list is as simple as writing your own 
31581 \family typewriter
31582 sv
31583 \family default
31584 <myjournal>
31585 \family typewriter
31586 .layout
31587 \family default
31588  file following the outline given in 
31589 \family typewriter
31590 svjog.layout
31591 \family default
31592 .
31593  
31594 \end_layout
31595
31596 \begin_layout Standard
31597
31598 \change_deleted 564990737 1671097446
31599 It is reasonably well tested only for the Journal of Geodesy.
31600  
31601 \family typewriter
31602 svjour
31603 \family default
31604  and 
31605 \family typewriter
31606 svjog
31607 \family default
31608  come with the standard \SpecialChar LyX
31609  distribution.
31610  Install the relevant class file (downloaded from Springer) in a proper directory,
31611  reconfigure \SpecialChar LaTeX
31612  (in the te\SpecialChar TeX
31613  case by running 
31614 \family typewriter
31615 texhash
31616 \family default
31617 ,
31618  as root if necessary —
31619  doesn't \SpecialChar LyX
31620  take care of this?),
31621  reconfigure \SpecialChar LyX
31622  and it should work.
31623 \end_layout
31624
31625 \begin_layout Standard
31626
31627 \change_deleted 564990737 1671097446
31628 New styles
31629 \end_layout
31630
31631 \begin_layout Standard
31632
31633 \change_deleted 564990737 1671097446
31634 A large number of theorem-like styles —
31635  
31636 \family sans
31637 Claim,
31638  Conjecture,
31639
31640 \family default
31641  
31642 \family sans
31643 \SpecialChar ldots
31644 Theorem
31645 \family default
31646 .
31647 \end_layout
31648
31649 \begin_layout Standard
31650
31651 \change_deleted 564990737 1671097446
31652
31653 \family sans
31654 Headnote,
31655  Dedication,
31656  Subtitle,
31657  Running_\SpecialChar LaTeX
31658 _Title,
31659  Author_Running,
31660  Institute,
31661  Mail,
31662  Offprints,
31663  Keywords,
31664  Acknowledgements,
31665  Acknowledgement
31666 \family default
31667 .
31668  See the Springer class file documentation for details.
31669 \end_layout
31670
31671 \begin_layout Standard
31672
31673 \change_deleted 564990737 1671097446
31674 Supported journals
31675 \end_layout
31676
31677 \begin_layout Itemize
31678
31679 \change_deleted 564990737 1671097446
31680
31681 \emph on
31682 Journal of Geodesy
31683 \emph default
31684 :
31685  
31686 \family typewriter
31687 svjog.layout
31688 \family default
31689  —
31690  Martin Vermeer
31691 \end_layout
31692
31693 \begin_layout Itemize
31694
31695 \change_deleted 564990737 1671097446
31696
31697 \emph on
31698 Probability Theory and Related Fields
31699 \emph default
31700 :
31701  
31702 \family typewriter
31703 svprobth.layout
31704 \family default
31705  —
31706  Jean-Marc Lasgouttes
31707 \end_layout
31708
31709 \begin_layout Standard
31710
31711 \change_deleted 564990737 1671097446
31712 Add your own,
31713  it isn't so hard!
31714 \end_layout
31715
31716 \begin_layout Standard
31717
31718 \change_deleted 564990737 1671097446
31719 Credits
31720 \end_layout
31721
31722 \begin_layout Standard
31723
31724 \change_deleted 564990737 1671097446
31725 These files are partly based on the older 
31726 \family typewriter
31727 ejour2.layout
31728 \family default
31729 ,
31730  which was again based on a tinkered-with version of an old \SpecialChar LaTeX
31731  2.09 style file from Springer.
31732  All this,
31733  and the 
31734 \family typewriter
31735 ejour2
31736 \family default
31737  layout,
31738  are now defunct.
31739  Jean-Marc Lasgouttes helped out big in making me find my way around the \SpecialChar LyX
31740  layout file mechanism.
31741 \end_layout
31742
31743 \begin_layout Standard
31744
31745 \change_deleted 564990737 1671097446
31746 Bugs
31747 \end_layout
31748
31749 \begin_layout Standard
31750
31751 \change_deleted 564990737 1671097446
31752 Probably.
31753  But probably less than in the old hacked-\SpecialChar LaTeX
31754  
31755 \family typewriter
31756 ejour2
31757 \family default
31758 .
31759 \end_layout
31760
31761 \begin_layout Chapter
31762 \SpecialChar LyX
31763  Features needing Extra Software
31764 \end_layout
31765
31766 \begin_layout Section
31767 Checking \SpecialChar TeX
31768
31769 \end_layout
31770
31771 \begin_layout Standard
31772 by 
31773 \noun on
31774 Asger Alstrup
31775 \end_layout
31776
31777 \begin_layout Subsection
31778 Introduction
31779 \end_layout
31780
31781 \begin_layout Standard
31782 If you have the 
31783 \family typewriter
31784 chktex
31785 \family default
31786  program installed
31787 \begin_inset Foot
31788 status collapsed
31789
31790 \begin_layout Plain Layout
31791
31792 \family typewriter
31793 chktex
31794 \family default
31795  is not yet available when you are using the \SpecialChar LaTeX
31796  distribution MiK\SpecialChar TeX
31797 .
31798 \end_layout
31799
31800 \end_inset
31801
31802 ,
31803  you'll find in the 
31804 \family sans
31805 Tools
31806 \family default
31807  menu the entry:
31808  
31809 \family sans
31810 Check
31811 \begin_inset space ~
31812 \end_inset
31813
31814 TeX
31815 \family default
31816 .
31817  You can get 
31818 \family typewriter
31819 chktex
31820 \family default
31821  from CTAN,
31822 \begin_inset Newline newline
31823 \end_inset
31824
31825
31826 \begin_inset CommandInset href
31827 LatexCommand href
31828 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
31829 literal "false"
31830
31831 \end_inset
31832
31833 .
31834 \end_layout
31835
31836 \begin_layout Standard
31837 The 
31838 \family sans
31839 Chk\SpecialChar TeX
31840
31841 \family default
31842  package is a program that was written by 
31843 \begin_inset Flex Noun
31844 status collapsed
31845
31846 \begin_layout Plain Layout
31847 Jens T.
31848 \begin_inset space ~
31849 \end_inset
31850
31851 Berger Thielemann
31852 \end_layout
31853
31854 \end_inset
31855
31856  in frustration because some constructs in \SpecialChar LaTeX
31857  are sometimes non-intuitive,
31858  and easy to forget.
31859  The program runs over your \SpecialChar LaTeX
31860  file,
31861  checks the integrity of the file,
31862  and flags some common errors.
31863  In other technical words,
31864  it is 
31865 \family typewriter
31866 lint
31867 \family default
31868  for \SpecialChar LaTeX
31869 .
31870 \end_layout
31871
31872 \begin_layout Standard
31873 Well,
31874  what is a syntax checker doing in \SpecialChar LyX
31875  which is supposed to produce correct \SpecialChar LaTeX
31876  anyways?
31877  The answer is simple:
31878  Just as 
31879 \family typewriter
31880 Lint
31881 \family default
31882  not only checks the 
31883 \emph on
31884 syntax
31885 \emph default
31886  of C programs,
31887  but also does 
31888 \emph on
31889 semantic
31890 \emph default
31891  checks for type-errors,
31892  
31893 \family sans
31894 Chk\SpecialChar TeX
31895
31896 \family default
31897  catches some common 
31898 \emph on
31899 typographic
31900 \emph default
31901  errors,
31902  in addition to the syntactical ones.
31903  Specifically,
31904  
31905 \family sans
31906 Chk\SpecialChar TeX
31907
31908 \family default
31909  is capable of detecting several common errors,
31910  such as
31911 \end_layout
31912
31913 \begin_layout Itemize
31914 Ellipsis detection:
31915 \begin_inset Newline newline
31916 \end_inset
31917
31918 Use \SpecialChar ldots
31919  instead of ...
31920 \end_layout
31921
31922 \begin_layout Itemize
31923 No space in front of/after parenthesis:
31924 \begin_inset Newline newline
31925 \end_inset
31926
31927 ( wrong spacing )
31928 \end_layout
31929
31930 \begin_layout Itemize
31931 Enforcement of normal space after common abbreviations:
31932 \begin_inset Newline newline
31933 \end_inset
31934
31935 e.
31936 \begin_inset space \thinspace{}
31937 \end_inset
31938
31939 g.
31940 \begin_inset space \space{}
31941 \end_inset
31942
31943 is too wide spacing.
31944 \end_layout
31945
31946 \begin_layout Itemize
31947 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
31948 \begin_inset Newline newline
31949 \end_inset
31950
31951 This is a TEST.
31952  And this is wrong spacing.
31953 \end_layout
31954
31955 \begin_layout Itemize
31956 Space in front of labels and similar commands:
31957 \begin_inset Newline newline
31958 \end_inset
31959
31960 The label should stick right up to the text to avoid falling to a wrong page.
31961  
31962 \begin_inset CommandInset label
31963 LatexCommand label
31964 name "sec:chktex"
31965
31966 \end_inset
31967
31968  
31969 \begin_inset Foot
31970 status collapsed
31971
31972 \begin_layout Plain Layout
31973 This footnote is in danger of falling off to a wrong page
31974 \end_layout
31975
31976 \end_inset
31977
31978  The label is separated too much.
31979 \end_layout
31980
31981 \begin_layout Itemize
31982 Space in front of references,
31983  instead of hard spaces:
31984 \begin_inset Newline newline
31985 \end_inset
31986
31987 If you have bad luck,
31988  the text will break right between the referenced text and reference number,
31989  and that's a pity.
31990  See section 
31991 \begin_inset CommandInset ref
31992 LatexCommand ref
31993 reference "sec:chktex"
31994 nolink "false"
31995
31996 \end_inset
31997
31998 .
31999 \end_layout
32000
32001 \begin_layout Itemize
32002 Use of 
32003 \begin_inset Quotes eld
32004 \end_inset
32005
32006 x
32007 \begin_inset Quotes erd
32008 \end_inset
32009
32010  instead of 
32011 \begin_inset Formula $\times$
32012 \end_inset
32013
32014  between numbers:
32015 \begin_inset Newline newline
32016 \end_inset
32017
32018 2x2 looks cheap compared to 
32019 \begin_inset Formula $2\times2$
32020 \end_inset
32021
32022 .
32023 \end_layout
32024
32025 \begin_layout Standard
32026 and more \SpecialChar ldots
32027  It is an invaluable tool when you are 
32028 \begin_inset Quotes eld
32029 \end_inset
32030
32031 finishing up
32032 \begin_inset Quotes erd
32033 \end_inset
32034
32035  your document before printing,
32036  and you should run it right after the obligatory spelling check,
32037  and before you go fine tuning the typesetting.
32038 \end_layout
32039
32040 \begin_layout Subsection
32041 How to use it
32042 \end_layout
32043
32044 \begin_layout Standard
32045 If you have the program installed,
32046  usage is as simple as choosing 
32047 \family sans
32048 Tools\SpecialChar menuseparator
32049 Check
32050 \begin_inset space ~
32051 \end_inset
32052
32053 TeX
32054 \family default
32055 .
32056  This will make \SpecialChar LyX
32057  generate a \SpecialChar LaTeX
32058  file of your document,
32059  start 
32060 \family sans
32061 Chk\SpecialChar TeX
32062
32063 \family default
32064  to check it,
32065  and then make \SpecialChar LyX
32066  insert 
32067 \begin_inset Quotes eld
32068 \end_inset
32069
32070 error boxes
32071 \begin_inset Quotes erd
32072 \end_inset
32073
32074  with the warnings from 
32075 \family sans
32076 Chk\SpecialChar TeX
32077
32078 \family default
32079 ,
32080  if there were any.
32081  The warnings will be placed close to the point of the mistake,
32082  and you can quickly find them by using the 
32083 \family sans
32084 Navigate\SpecialChar menuseparator
32085 Error
32086 \family default
32087  menu item,
32088  or the shortcut key 
32089 \family sans
32090 C-g
32091 \family default
32092  from the default 
32093 \family typewriter
32094 cua
32095 \family default
32096  bind file.
32097  Open the error boxes by clicking on them with the mouse,
32098  or use the shortcut key 
32099 \family sans
32100 C-i
32101 \family default
32102  from 
32103 \family typewriter
32104 cua
32105 \family default
32106  bindings,
32107  or the corresponding 
32108 \family sans
32109 C-o
32110 \family default
32111  for the alternate 
32112 \family typewriter
32113 emacs
32114 \family default
32115  bind file.
32116  Read the warning and correct the mistake,
32117  if it is a mistake.
32118  If you have trouble understanding what the warning is about,
32119  you can safely ignore it.
32120  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
32121 \family sans
32122 Chk\SpecialChar TeX
32123
32124 \family default
32125 ,
32126  and this gap can make some warnings seem arcane or just plain silly.
32127 \end_layout
32128
32129 \begin_layout Standard
32130 This document is an excellent testing bed for the feature,
32131  and it should provide quite a few warnings for you to fiddle with.
32132  Since computers are only so smart,
32133  expect most of the warnings to be false alarms,
32134  though.
32135 \end_layout
32136
32137 \begin_layout Subsection
32138 How to fine tune it
32139 \end_layout
32140
32141 \begin_layout Standard
32142 Sometimes,
32143  you'll find that 
32144 \family sans
32145 Chk\SpecialChar TeX
32146
32147 \family default
32148  makes more noise than suits your mood.
32149  Then you can choose not to use it,
32150  wait until your mood changes,
32151  or try to customize 
32152 \family sans
32153 Chk\SpecialChar TeX
32154
32155 \family default
32156  to get better along with you.
32157 \end_layout
32158
32159 \begin_layout Standard
32160 Although 
32161 \family sans
32162 Chk\SpecialChar TeX
32163
32164 \family default
32165  
32166 \emph on
32167 is
32168 \emph default
32169  very configurable and extensible,
32170  you should not expect to solve all problems with 
32171 \family sans
32172 Chk\SpecialChar TeX
32173
32174 \family default
32175  in \SpecialChar LyX
32176  this way.
32177  Since \SpecialChar LyX
32178  has to generate a somewhat special \SpecialChar LaTeX
32179  file to be able to match the line numbers from the 
32180 \family sans
32181 Chk\SpecialChar TeX
32182
32183 \family default
32184  output
32185 \begin_inset Foot
32186 status collapsed
32187
32188 \begin_layout Plain Layout
32189 You can inspect the specific output from 
32190 \family sans
32191 chktex
32192 \family default
32193  by using 
32194 \family sans
32195 Document\SpecialChar menuseparator
32196 \SpecialChar LaTeX
32197
32198 \begin_inset space ~
32199 \end_inset
32200
32201 Log
32202 \family default
32203  right after a 
32204 \family sans
32205 chktex
32206 \family default
32207  run.
32208 \end_layout
32209
32210 \end_inset
32211
32212  to the internal document structure,
32213  some of the warnings will not appear correctly.
32214  There are two things you can do about this:
32215 \end_layout
32216
32217 \begin_layout Itemize
32218 Fine tune the 
32219 \family sans
32220 Chk\SpecialChar TeX
32221
32222 \family default
32223  invocation command line in 
32224 \begin_inset Flex Noun
32225 status collapsed
32226
32227 \begin_layout Plain Layout
32228 Tools\SpecialChar menuseparator
32229 Preferences\SpecialChar menuseparator
32230 Output\SpecialChar menuseparator
32231 LaTeX\SpecialChar menuseparator
32232 CheckTeX command
32233 \end_layout
32234
32235 \end_inset
32236
32237 ,
32238  or the global 
32239 \family sans
32240 Chk\SpecialChar TeX
32241
32242 \family default
32243  installation configuration file (usually with the file 
32244 \family typewriter
32245 chktexrc
32246 \family default
32247 ).
32248  See below to learn what warnings can be enabled and disabled on the command line.
32249 \end_layout
32250
32251 \begin_layout Itemize
32252 Export your document as a raw \SpecialChar LaTeX
32253  file using 
32254 \family sans
32255 File\SpecialChar menuseparator
32256 Export\SpecialChar menuseparator
32257 \SpecialChar LaTeX
32258
32259 \family default
32260  and run 
32261 \family typewriter
32262 chktex
32263 \family default
32264  manually on that.
32265  Invoked in this way,
32266  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
32267 ,
32268  but with a little patience,
32269  you should be able to do it.
32270 \end_layout
32271
32272 \begin_layout Standard
32273 Here follows the warning messages that can be enabled and disabled in 
32274 \family sans
32275 Preferences
32276 \family default
32277 .
32278  Use 
32279 \family typewriter
32280 -n#
32281 \family default
32282  to disable a warning,
32283  and 
32284 \family typewriter
32285 -w#
32286 \family default
32287  to enable a warning.
32288  The emphasized entries are disabled by default,
32289  because the default is "
32290 \family typewriter
32291 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
32292 \family default
32293 ".
32294 \end_layout
32295
32296 \begin_layout Standard
32297 Notice that you should only use the options that enable and disable warnings,
32298  because \SpecialChar LyX
32299  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
32300 \family typewriter
32301 chktex
32302 \family default
32303 .
32304 \end_layout
32305
32306 \begin_layout Enumerate
32307
32308 \size small
32309 \emph on
32310 Command terminated with space.
32311 \end_layout
32312
32313 \begin_layout Enumerate
32314
32315 \size small
32316 Non-breaking space (
32317 \begin_inset Quotes eld
32318 \end_inset
32319
32320
32321 \family typewriter
32322 ~
32323 \family default
32324
32325 \begin_inset Quotes erd
32326 \end_inset
32327
32328 ) should have been used.
32329 \end_layout
32330
32331 \begin_layout Enumerate
32332
32333 \size small
32334 \emph on
32335 You should enclose the previous parenthesis with 
32336 \begin_inset Quotes eld
32337 \end_inset
32338
32339
32340 \family typewriter
32341 {}
32342 \family default
32343
32344 \begin_inset Quotes erd
32345 \end_inset
32346
32347 .
32348 \end_layout
32349
32350 \begin_layout Enumerate
32351
32352 \size small
32353 Italic correction (
32354 \begin_inset Quotes eld
32355 \end_inset
32356
32357
32358 \family typewriter
32359
32360 \backslash
32361 /
32362 \family default
32363
32364 \begin_inset Quotes erd
32365 \end_inset
32366
32367 ) found in non-italic buffer.
32368 \end_layout
32369
32370 \begin_layout Enumerate
32371
32372 \size small
32373 Italic correction (
32374 \begin_inset Quotes eld
32375 \end_inset
32376
32377
32378 \family typewriter
32379
32380 \backslash
32381 /
32382 \family default
32383
32384 \begin_inset Quotes erd
32385 \end_inset
32386
32387 ) found more than once.
32388 \end_layout
32389
32390 \begin_layout Enumerate
32391
32392 \size small
32393 \emph on
32394 No italic correction (
32395 \begin_inset Quotes eld
32396 \end_inset
32397
32398
32399 \family typewriter
32400
32401 \backslash
32402 /
32403 \family default
32404
32405 \begin_inset Quotes erd
32406 \end_inset
32407
32408 ) found.
32409 \end_layout
32410
32411 \begin_layout Enumerate
32412
32413 \size small
32414 Accent command 
32415 \begin_inset Quotes eld
32416 \end_inset
32417
32418
32419 \family typewriter
32420 cmd
32421 \family default
32422
32423 \begin_inset Quotes erd
32424 \end_inset
32425
32426  needs use of 
32427 \begin_inset Quotes eld
32428 \end_inset
32429
32430
32431 \family typewriter
32432 cmd
32433 \family default
32434
32435 \begin_inset Quotes erd
32436 \end_inset
32437
32438 .
32439 \end_layout
32440
32441 \begin_layout Enumerate
32442
32443 \size small
32444 Wrong length of dash may have been used.
32445 \end_layout
32446
32447 \begin_layout Enumerate
32448
32449 \size small
32450 \emph on
32451 \begin_inset Quotes eld
32452 \end_inset
32453
32454
32455 \family typewriter
32456 %s
32457 \family default
32458
32459 \begin_inset Quotes erd
32460 \end_inset
32461
32462  expected,
32463  found 
32464 \begin_inset Quotes eld
32465 \end_inset
32466
32467
32468 \family typewriter
32469 %s
32470 \family default
32471
32472 \begin_inset Quotes erd
32473 \end_inset
32474
32475 .
32476 \end_layout
32477
32478 \begin_layout Enumerate
32479
32480 \size small
32481 Solo 
32482 \begin_inset Quotes eld
32483 \end_inset
32484
32485
32486 \family typewriter
32487 %s
32488 \family default
32489
32490 \begin_inset Quotes erd
32491 \end_inset
32492
32493  found.
32494 \end_layout
32495
32496 \begin_layout Enumerate
32497
32498 \size small
32499 You should use 
32500 \begin_inset Quotes eld
32501 \end_inset
32502
32503
32504 \family typewriter
32505 %s
32506 \family default
32507
32508 \begin_inset Quotes erd
32509 \end_inset
32510
32511  to achieve an ellipsis.
32512 \end_layout
32513
32514 \begin_layout Enumerate
32515
32516 \size small
32517 Inter-word spacing (
32518 \begin_inset Quotes eld
32519 \end_inset
32520
32521
32522 \family typewriter
32523
32524 \backslash
32525
32526 \family default
32527  
32528 \begin_inset Quotes eld
32529 \end_inset
32530
32531 ) should perhaps be used.
32532 \end_layout
32533
32534 \begin_layout Enumerate
32535
32536 \size small
32537 Inter-sentence spacing (
32538 \begin_inset Quotes eld
32539 \end_inset
32540
32541
32542 \family typewriter
32543
32544 \backslash
32545 @
32546 \family default
32547
32548 \begin_inset Quotes erd
32549 \end_inset
32550
32551 ) should perhaps be used.
32552 \end_layout
32553
32554 \begin_layout Enumerate
32555
32556 \size small
32557 Could not find argument for command.
32558 \end_layout
32559
32560 \begin_layout Enumerate
32561
32562 \size small
32563 No match found for 
32564 \begin_inset Quotes eld
32565 \end_inset
32566
32567
32568 \family typewriter
32569 %s
32570 \family default
32571
32572 \begin_inset Quotes erd
32573 \end_inset
32574
32575 .
32576 \end_layout
32577
32578 \begin_layout Enumerate
32579
32580 \size small
32581 Math mode still on at end of \SpecialChar LaTeX
32582  file.
32583 \end_layout
32584
32585 \begin_layout Enumerate
32586
32587 \size small
32588 Number of 
32589 \begin_inset Quotes eld
32590 \end_inset
32591
32592
32593 \family typewriter
32594 char
32595 \family default
32596
32597 \begin_inset Quotes erd
32598 \end_inset
32599
32600  doesn't match the number of 
32601 \begin_inset Quotes eld
32602 \end_inset
32603
32604
32605 \family typewriter
32606 char
32607 \family default
32608
32609 \begin_inset Quotes erd
32610 \end_inset
32611
32612 .
32613 \end_layout
32614
32615 \begin_layout Enumerate
32616
32617 \size small
32618 You should use either 
32619 \family typewriter
32620
32621 \begin_inset Quotes eld
32622 \end_inset
32623
32624
32625 \family default
32626  or 
32627 \family typewriter
32628
32629 \begin_inset Quotes erd
32630 \end_inset
32631
32632
32633 \family default
32634  as an alternative to 
32635 \begin_inset Quotes eld
32636 \end_inset
32637
32638
32639 \family typewriter
32640 "
32641 \family default
32642
32643 \begin_inset Quotes erd
32644 \end_inset
32645
32646 .
32647 \end_layout
32648
32649 \begin_layout Enumerate
32650
32651 \size small
32652 You should use "
32653 \family typewriter
32654 '
32655 \family default
32656 " (ASCII 39) instead of "
32657 \family typewriter
32658 ´
32659 \family default
32660 " (ASCII 180).
32661 \end_layout
32662
32663 \begin_layout Enumerate
32664
32665 \size small
32666 User-specified pattern found.
32667 \end_layout
32668
32669 \begin_layout Enumerate
32670
32671 \size small
32672 This command might not be intended.
32673 \end_layout
32674
32675 \begin_layout Enumerate
32676
32677 \size small
32678 \emph on
32679 Comment displayed.
32680 \end_layout
32681
32682 \begin_layout Enumerate
32683
32684 \size small
32685 Either 
32686 \family typewriter
32687 ''
32688 \backslash
32689 ,'
32690 \family default
32691  or 
32692 \family typewriter
32693 '
32694 \backslash
32695 ,''
32696 \family default
32697  will look better.
32698 \end_layout
32699
32700 \begin_layout Enumerate
32701
32702 \size small
32703 Delete this space to maintain correct page references.
32704 \end_layout
32705
32706 \begin_layout Enumerate
32707
32708 \size small
32709 \emph on
32710 You might wish to put this between a pair of 
32711 \begin_inset Quotes eld
32712 \end_inset
32713
32714
32715 \family typewriter
32716 {}
32717 \family default
32718
32719 \begin_inset Quotes erd
32720 \end_inset
32721
32722 .
32723 \end_layout
32724
32725 \begin_layout Enumerate
32726
32727 \size small
32728 You ought to remove spaces in front of punctuation.
32729 \end_layout
32730
32731 \begin_layout Enumerate
32732
32733 \size small
32734 Could not execute \SpecialChar LaTeX
32735  command.
32736 \end_layout
32737
32738 \begin_layout Enumerate
32739
32740 \size small
32741 Don't use 
32742 \family typewriter
32743
32744 \backslash
32745 /
32746 \family default
32747  in front of small punctuation.
32748 \end_layout
32749
32750 \begin_layout Enumerate
32751
32752 \family typewriter
32753 \size small
32754 $
32755 \backslash
32756 times$
32757 \family default
32758  may look prettier here.
32759 \end_layout
32760
32761 \begin_layout Enumerate
32762
32763 \size small
32764 \emph on
32765 Multiple spaces detected in output.
32766 \end_layout
32767
32768 \begin_layout Enumerate
32769
32770 \size small
32771 This text may be ignored.
32772 \end_layout
32773
32774 \begin_layout Enumerate
32775
32776 \size small
32777 Use 
32778 \family typewriter
32779
32780 \begin_inset Quotes eld
32781 \end_inset
32782
32783
32784 \family default
32785  to begin quotation,
32786  not 
32787 \family typewriter
32788 '
32789 \family default
32790 .
32791 \end_layout
32792
32793 \begin_layout Enumerate
32794
32795 \size small
32796 Use 
32797 \family typewriter
32798 '
32799 \family default
32800  to end quotation,
32801  not 
32802 \family typewriter
32803
32804 \begin_inset Quotes eld
32805 \end_inset
32806
32807
32808 \family default
32809 .
32810 \end_layout
32811
32812 \begin_layout Enumerate
32813
32814 \size small
32815 Don't mix quotes.
32816 \end_layout
32817
32818 \begin_layout Enumerate
32819
32820 \size small
32821 You should perhaps use 
32822 \begin_inset Quotes eld
32823 \end_inset
32824
32825
32826 \family typewriter
32827 cmd
32828 \family default
32829
32830 \begin_inset Quotes erd
32831 \end_inset
32832
32833  instead.
32834 \end_layout
32835
32836 \begin_layout Enumerate
32837
32838 \size small
32839 You should put a space in front of/after parenthesis.
32840 \end_layout
32841
32842 \begin_layout Enumerate
32843
32844 \size small
32845 You should avoid spaces in front of/after parenthesis.
32846 \end_layout
32847
32848 \begin_layout Enumerate
32849
32850 \size small
32851 \emph on
32852 You should not use punctuation in front of/after quotes.
32853 \end_layout
32854
32855 \begin_layout Enumerate
32856
32857 \size small
32858 Double space found.
32859 \end_layout
32860
32861 \begin_layout Enumerate
32862
32863 \size small
32864 You should put punctuation outside inner/inside display math mode.
32865 \end_layout
32866
32867 \begin_layout Enumerate
32868
32869 \size small
32870 You ought to not use primitive \SpecialChar TeX
32871  in \SpecialChar LaTeX
32872  code.
32873 \end_layout
32874
32875 \begin_layout Enumerate
32876
32877 \size small
32878 You should remove spaces in front of 
32879 \begin_inset Quotes eld
32880 \end_inset
32881
32882
32883 \family typewriter
32884 %s
32885 \family default
32886
32887 \begin_inset Quotes erd
32888 \end_inset
32889
32890
32891 \end_layout
32892
32893 \begin_layout Enumerate
32894
32895 \size small
32896 \begin_inset Quotes eld
32897 \end_inset
32898
32899
32900 \family typewriter
32901 %s
32902 \family default
32903
32904 \begin_inset Quotes erd
32905 \end_inset
32906
32907  is normally not followed by 
32908 \begin_inset Quotes eld
32909 \end_inset
32910
32911
32912 \family typewriter
32913 %c
32914 \family default
32915
32916 \begin_inset Quotes erd
32917 \end_inset
32918
32919 .
32920 \end_layout
32921
32922 \begin_layout Standard
32923 In later versions of \SpecialChar LyX
32924 ,
32925  we hope to provide a more complete interface to this tool (and it's smaller cousin 
32926 \family typewriter
32927 lacheck
32928 \family default
32929 ) to exploit the full power of it.
32930  But it's not exactly useless as it is now:
32931  go try it on one of your existing documents of a certain length and be surprised.
32932 \end_layout
32933
32934 \begin_layout Section
32935 Version Control in \SpecialChar LyX
32936
32937 \end_layout
32938
32939 \begin_layout Standard
32940 by
32941 \noun on
32942  Lars Gullik Bjønnes 
32943 \noun default
32944 and 
32945 \noun on
32946 Pavel Sanda
32947 \end_layout
32948
32949 \begin_layout Subsection
32950 Introduction
32951 \end_layout
32952
32953 \begin_layout Standard
32954 \SpecialChar LyX
32955  supports some of the most basic RCS/CVS/SVN/GIT commands.
32956  If you need something a bit more sophisticated you will have to do that manually in a terminal.
32957 \end_layout
32958
32959 \begin_layout Standard
32960 Also note that CVS support is not as good as subversion support,
32961  so we advise using SVN instead.
32962  A good place to start learning Subversion is the SVN Book
32963 \begin_inset Foot
32964 status collapsed
32965
32966 \begin_layout Plain Layout
32967 \begin_inset CommandInset href
32968 LatexCommand href
32969 target "http://svnbook.red-bean.com/"
32970 literal "false"
32971
32972 \end_inset
32973
32974
32975 \end_layout
32976
32977 \end_inset
32978
32979 .
32980  In the case of RCS you should read 
32981 \begin_inset Quotes eld
32982 \end_inset
32983
32984 rcsintro
32985 \begin_inset Quotes erd
32986 \end_inset
32987
32988  (a man file,
32989  read it with 
32990 \family typewriter
32991 man rcsintro
32992 \family default
32993 ).
32994  This file describes all the basic features of RCS.
32995  You should especially notice the comment about a RCS directory,
32996  and the notion of a master RCS file (the file ending in 
32997 \family typewriter
32998 ,v
32999 \family default
33000 ).
33001 \end_layout
33002
33003 \begin_layout Standard
33004 Before you begin to use the version control features in \SpecialChar LyX
33005 ,
33006  you should be familiar with RCS/CVS/SVN/GIT usage.
33007  The implementation in \SpecialChar LyX
33008  assumes a recent version of the GNU RCS or CVS/SVN package —
33009  no guarantees are made for older versions.
33010  Most of the log messages are not currently displayed after operations —
33011  you can check them in the Messages pane if you are unsure.
33012  Regular users of version control will appreciate the VC toolbar,
33013  which can be enabled via 
33014 \family sans
33015 View\SpecialChar menuseparator
33016 Toolbars\SpecialChar menuseparator
33017 Version
33018 \begin_inset space ~
33019 \end_inset
33020
33021 Control
33022 \family default
33023 .
33024 \end_layout
33025
33026 \begin_layout Standard
33027 For introducing your own external commands consult 
33028 \begin_inset Flex Code
33029 status collapsed
33030
33031 \begin_layout Plain Layout
33032 vc-command
33033 \end_layout
33034
33035 \end_inset
33036
33037  in the manual 
33038 \emph on
33039 \SpecialChar LyX
33040  Functions
33041 \emph default
33042 .
33043 \end_layout
33044
33045 \begin_layout Standard
33046 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
33047 \family sans
33048 Document\SpecialChar menuseparator
33049 Compressed
33050 \family default
33051  if it is checked):
33052  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
33053  Compressed LyX documents are binary files,
33054  which cannot be merged by version control systems.
33055 \end_layout
33056
33057 \begin_layout Subsection
33058 RCS commands in \SpecialChar LyX
33059
33060 \end_layout
33061
33062 \begin_layout Standard
33063 The following sections describe the RCS commands supported by \SpecialChar LyX
33064 .
33065  You can find them in the 
33066 \family sans
33067 File\SpecialChar menuseparator
33068 Version
33069 \begin_inset space ~
33070 \end_inset
33071
33072 Control
33073 \family default
33074  submenu.
33075  \SpecialChar LyX
33076  was tested against RCS 5.7/5.8.
33077 \end_layout
33078
33079 \begin_layout Subsubsection
33080
33081 \family sans
33082 Register
33083 \end_layout
33084
33085 \begin_layout Standard
33086 If your document is not under revision control,
33087  this is the only item shown in the menu.
33088  And if it is under revision control,
33089  the 
33090 \family sans
33091 Register
33092 \family default
33093  item is not visible.
33094  
33095 \end_layout
33096
33097 \begin_layout Standard
33098 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
33099  You are asked interactively to supply an initial description of the document.
33100  The document is now set in Read-Only mode and you have to 
33101 \family sans
33102 Check
33103 \begin_inset space ~
33104 \end_inset
33105
33106 Out
33107 \begin_inset space ~
33108 \end_inset
33109
33110 For
33111 \begin_inset space ~
33112 \end_inset
33113
33114 Edit
33115 \family default
33116 ,
33117  before making any changes to it.
33118  A document under revision control has a 
33119 \begin_inset Quotes eld
33120 \end_inset
33121
33122 [RCS:<version> <locker>]
33123 \begin_inset Quotes erd
33124 \end_inset
33125
33126  item tagged to the filename in the minibuffer.
33127 \end_layout
33128
33129 \begin_layout Standard
33130 RCS command that is run:
33131 \end_layout
33132
33133 \begin_layout LyX-Code
33134
33135 \family typewriter
33136 ci -q -u -i -t-"<initial description>" <file-name>
33137 \end_layout
33138
33139 \begin_layout Standard
33140 Read 
33141 \family typewriter
33142 man ci
33143 \family default
33144  to understand the switches.
33145  
33146 \end_layout
33147
33148 \begin_layout Subsubsection
33149
33150 \family sans
33151 Check In Changes
33152 \end_layout
33153
33154 \begin_layout Standard
33155 When you are finished editing a file,
33156  you check in your changes.
33157  When you do this,
33158  you are asked for a description of the changes.
33159  This is stored in the history log.
33160  The version number is bumped,
33161  your changes are applied to the master RCS file,
33162  the document is unlocked and set to Read-Only mode.
33163 \end_layout
33164
33165 \begin_layout Itemize
33166 RCS command:
33167  
33168 \family typewriter
33169 ci -q -u -m"<description>" <file-name>
33170 \end_layout
33171
33172 \begin_layout Subsubsection
33173
33174 \family sans
33175 Check Out For Edit
33176 \end_layout
33177
33178 \begin_layout Standard
33179 By doing this you lock the document so that only you can edit it.
33180  This will also make the document Read-Write only for you.
33181  You will usually continue editing for a while and when you are finished you check in your changes.
33182  The status line is changed to reflect that you have locked the file.
33183 \end_layout
33184
33185 \begin_layout Itemize
33186 RCS command:
33187  
33188 \family typewriter
33189 co -q -l <file-name>
33190 \end_layout
33191
33192 \begin_layout Subsubsection
33193
33194 \family sans
33195 Revert To Repository Version
33196 \end_layout
33197
33198 \begin_layout Standard
33199 This will discard all changes made to the document since the last check in.
33200  You get a warning before changes are discarded.
33201 \end_layout
33202
33203 \begin_layout Itemize
33204 RCS command:
33205  
33206 \family typewriter
33207 co -f -u<version> <file-name>
33208 \end_layout
33209
33210 \begin_layout Subsubsection
33211
33212 \family sans
33213 Copy
33214 \end_layout
33215
33216 \begin_layout Standard
33217 This will create a copy of the current document.
33218  Since RCS does not support copy operations natively,
33219  the version history is not preserved,
33220  and the copy is added as a new file.
33221  It requires a clean document without any changes since the last checkin.
33222  You are asked for a file name and a description of the copy operation.
33223  After that the copy is created,
33224  both locally and in the repository.
33225  If the parent directories of the copied and original document differ,
33226  all relative paths of included files of the copy are adjusted (like in 
33227 \family sans
33228 File\SpecialChar menuseparator
33229 Save As
33230 \family default
33231 \SpecialChar ldots
33232 ).
33233  Finally,
33234  the copy is loaded instead of the original document.
33235 \end_layout
33236
33237 \begin_layout Labeling
33238 \labelwidthstring 00.00.0000
33239 RCS
33240 \begin_inset space ~
33241 \end_inset
33242
33243 commands:
33244  
33245 \begin_inset space ~
33246 \end_inset
33247
33248
33249 \begin_inset Newline newline
33250 \end_inset
33251
33252 Copy 
33253 \begin_inset Flex Code
33254 status collapsed
33255
33256 \begin_layout Plain Layout
33257
33258 \family typewriter
33259 \begin_inset Quotes qld
33260 \end_inset
33261
33262 <file-name>
33263 \begin_inset Quotes qld
33264 \end_inset
33265
33266
33267 \end_layout
33268
33269 \end_inset
33270
33271  to 
33272 \begin_inset Flex Code
33273 status collapsed
33274
33275 \begin_layout Plain Layout
33276
33277 \family typewriter
33278 \begin_inset Quotes qld
33279 \end_inset
33280
33281 <new-file-name>
33282 \begin_inset Quotes qld
33283 \end_inset
33284
33285
33286 \end_layout
33287
33288 \end_inset
33289
33290
33291 \begin_inset Newline newline
33292 \end_inset
33293
33294
33295 \begin_inset Flex Code
33296 status collapsed
33297
33298 \begin_layout Plain Layout
33299 ci -q -u 
33300 \family typewriter
33301 -i 
33302 \begin_inset Quotes qld
33303 \end_inset
33304
33305 <new-file-name>
33306 \begin_inset Quotes qld
33307 \end_inset
33308
33309
33310 \end_layout
33311
33312 \end_inset
33313
33314
33315 \end_layout
33316
33317 \begin_layout Subsubsection
33318
33319 \family sans
33320 Undo Last Checkin
33321 \end_layout
33322
33323 \begin_layout Standard
33324 This makes as if the last check in never happened.
33325  No changes are made to the document loaded into \SpecialChar LyX
33326 ,
33327  but the last version is removed from the master RCS file.
33328 \end_layout
33329
33330 \begin_layout Itemize
33331 RCS command:
33332  
33333 \family typewriter
33334 rcs -o<version> <file-name>
33335 \end_layout
33336
33337 \begin_layout Subsubsection
33338
33339 \family sans
33340 Show History
33341 \end_layout
33342
33343 \begin_layout Standard
33344 This shows the complete history of the RCS document.
33345  The output of 
33346 \family typewriter
33347 rlog <file-name>
33348 \family default
33349  is shown in a browser.
33350  See 
33351 \family typewriter
33352 man rlog
33353 \family default
33354  for more info.
33355 \end_layout
33356
33357 \begin_layout Subsubsection
33358 Revision info
33359 \end_layout
33360
33361 \begin_layout Standard
33362 \SpecialChar LyX
33363  supports RCS version number,
33364  author name,
33365  date and time of last commit.
33366  All those are extracted from 
33367 \family typewriter
33368 rlog -r <file-name>
33369 \family default
33370 .
33371  See 
33372 \begin_inset CommandInset ref
33373 LatexCommand ref
33374 reference "subsec:VCS-Revision-Information"
33375 nolink "false"
33376
33377 \end_inset
33378
33379  for details.
33380 \end_layout
33381
33382 \begin_layout Subsection
33383 CVS commands in \SpecialChar LyX
33384
33385 \end_layout
33386
33387 \begin_layout Standard
33388 A subset of CVS operations is supported by \SpecialChar LyX
33389 .
33390  You can find the commands in the 
33391 \family sans
33392 File\SpecialChar menuseparator
33393 Version
33394 \begin_inset space ~
33395 \end_inset
33396
33397 Control
33398 \family default
33399  submenu.
33400  The version control system SVN is more powerful,
33401  so please use it instead of CVS if possible.
33402 \end_layout
33403
33404 \begin_layout Subsubsection
33405
33406 \family sans
33407 General CVS usage
33408 \end_layout
33409
33410 \begin_layout Standard
33411 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
33412  If you're using a client-server setup you may need to login before doing the first repository checkout.
33413 \end_layout
33414
33415 \begin_layout Standard
33416 If your documents are under revision control and others are using the same repository problems arise when different changes to the same document at the same location happen.
33417  Standard CVS repositories don't operate with a file locking mechanism.
33418  This may be surprising,
33419  but conflicts only occur if people disagree on the proper content of the same part of a document.
33420  So,
33421  if co-workers are used to communicate regularly,
33422  these conflicts occur rarely.
33423  If they don't communicate they have a fundamental problem anyway.
33424  Nevertheless some people like to work with so called 
33425 \begin_inset Quotes eld
33426 \end_inset
33427
33428 reserved checkouts
33429 \begin_inset Quotes erd
33430 \end_inset
33431
33432 .
33433  If they do so the working copy of all files is readonly when checked out first and the user starts editing after using a special command to make the working copy writable.
33434  When the changes are checked in the working copy returns to readonly state.
33435  With \SpecialChar LyX
33436  one has to edit the 
33437 \begin_inset Flex Code
33438 status collapsed
33439
33440 \begin_layout Plain Layout
33441 .cvsrc
33442 \end_layout
33443
33444 \end_inset
33445
33446  file and add the line 
33447 \begin_inset Flex Code
33448 status collapsed
33449
33450 \begin_layout Plain Layout
33451 cvs -r
33452 \end_layout
33453
33454 \end_inset
33455
33456  to work with reserved checkouts.
33457  The benefit is the possibility to see who is using a writable copy of some document.
33458  It's not guaranteed only one user makes a copy writable.
33459 \end_layout
33460
33461 \begin_layout Standard
33462 \SpecialChar LyX
33463  tries to guess if you're using reserved or non-reserved checkouts.
33464  If your working copy is readonly or it is writable and an additional copy of your document exists in the CVS/Base sub-directory a reserved otherwise a non-reserved checkout is assumed.
33465  When a reserved checkout is detected you have to use 
33466 \begin_inset Flex Noun
33467 status collapsed
33468
33469 \begin_layout Plain Layout
33470 Check Out
33471 \end_layout
33472
33473 \end_inset
33474
33475  to make your working copy writable if it's readonly.
33476  After doing so the 
33477 \begin_inset Flex Noun
33478 status collapsed
33479
33480 \begin_layout Plain Layout
33481 Check In
33482 \end_layout
33483
33484 \end_inset
33485
33486  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
33487 \end_layout
33488
33489 \begin_layout Standard
33490 More information about CVS can be found here 
33491 \begin_inset Flex URL
33492 status collapsed
33493
33494 \begin_layout Plain Layout
33495
33496 http://www.nongnu.org/cvs
33497 \end_layout
33498
33499 \end_inset
33500
33501  and here 
33502 \begin_inset Flex URL
33503 status collapsed
33504
33505 \begin_layout Plain Layout
33506
33507 http://ximbiot.com/cvs
33508 \end_layout
33509
33510 \end_inset
33511
33512 .
33513 \end_layout
33514
33515 \begin_layout Standard
33516 Read 
33517 \family typewriter
33518 man cvs
33519 \family default
33520  to understand the sub-commands and the switches mentioned below.
33521 \end_layout
33522
33523 \begin_layout Subsubsection
33524
33525 \family sans
33526 Register
33527 \end_layout
33528
33529 \begin_layout Standard
33530 If your document is not under revision control,
33531  this is the only item shown in the menu.
33532  And if it is under revision control,
33533  the 
33534 \family sans
33535 Register
33536 \family default
33537  item is not visible.
33538  
33539 \end_layout
33540
33541 \begin_layout Standard
33542 This command registers in CVS your document 
33543 \begin_inset Flex Strong
33544 status collapsed
33545
33546 \begin_layout Plain Layout
33547
33548 \emph on
33549 only
33550 \end_layout
33551
33552 \end_inset
33553
33554  in the case you have already the documents directory under CVS control (in particular 
33555 \family typewriter
33556 CVS/Entries
33557 \family default
33558  file exists).
33559  This means you have to create or checkout the archive by yourself using external tools.
33560  (In case you forget that step \SpecialChar LyX
33561  registers the document with RCS.)
33562 \end_layout
33563
33564 \begin_layout Standard
33565 Then you are asked interactively to supply an initial description of the document.
33566  Don't forget that registered file is not yet checked in.
33567 \end_layout
33568
33569 \begin_layout Standard
33570 CVS command that is run:
33571  
33572 \family typewriter
33573 cvs -q add -m"<entered message>" "<file-name>"
33574 \end_layout
33575
33576 \begin_layout Standard
33577 The term 
33578 \family typewriter
33579 "<file-name>"
33580 \family default
33581  above and for all other CVS commands is an abbreviation for 
33582 \begin_inset Quotes eld
33583 \end_inset
33584
33585 change the current working directory to file location and use the file name without path component as argument
33586 \begin_inset Quotes erd
33587 \end_inset
33588
33589 .
33590 \end_layout
33591
33592 \begin_layout Subsubsection
33593
33594 \family sans
33595 Check In Changes
33596 \end_layout
33597
33598 \begin_layout Standard
33599 When you are finished editing a file,
33600  you commit your changes.
33601  When you do this and you had changed the document,
33602  you are asked for a description of the changes.
33603  After that changes are written to the repository.
33604  In case you didn't change the document and a reserved checkout is detected the reservation made on 
33605 \begin_inset Flex Noun
33606 status collapsed
33607
33608 \begin_layout Plain Layout
33609 Check Out
33610 \end_layout
33611
33612 \end_inset
33613
33614  is undone.
33615 \end_layout
33616
33617 \begin_layout Labeling
33618 \labelwidthstring 00.00.0000
33619 CVS
33620 \begin_inset space ~
33621 \end_inset
33622
33623 command:
33624  
33625 \begin_inset space ~
33626 \end_inset
33627
33628
33629 \begin_inset Newline newline
33630 \end_inset
33631
33632
33633 \begin_inset Flex Code
33634 status collapsed
33635
33636 \begin_layout Plain Layout
33637 cvs 
33638 \family typewriter
33639 -q commit -m"<description>" "<file-name>"
33640 \end_layout
33641
33642 \end_inset
33643
33644  or
33645 \begin_inset Newline newline
33646 \end_inset
33647
33648
33649 \begin_inset Flex Code
33650 status collapsed
33651
33652 \begin_layout Plain Layout
33653 cvs -q unedit 
33654 \family typewriter
33655 "<file-name>"
33656 \end_layout
33657
33658 \end_inset
33659
33660
33661 \end_layout
33662
33663 \begin_layout Subsubsection
33664
33665 \family sans
33666 Check Out Changes
33667 \end_layout
33668
33669 \begin_layout Standard
33670 When you are sharing a repository with others,
33671  you may have to incorporate their changes into your working copy.
33672 \end_layout
33673
33674 \begin_layout Standard
33675 CVS command:
33676  
33677 \family typewriter
33678 cvs -q update "<file-name>"
33679 \end_layout
33680
33681 \begin_layout Standard
33682 If a readonly checkout is detected the working copy is made writable and reserved.
33683 \end_layout
33684
33685 \begin_layout Standard
33686 CVS command:
33687  
33688 \family typewriter
33689 cvs -q edit "<file-name>"
33690 \end_layout
33691
33692 \begin_layout Subsubsection
33693
33694 \family sans
33695 Revert To Repository Version
33696 \end_layout
33697
33698 \begin_layout Standard
33699 This will discard all changes made to the document since the last check in.
33700  You get a warning before changes are discarded.
33701  Firstly the file is deleted,
33702  secondly CVS update command is run.
33703 \end_layout
33704
33705 \begin_layout Standard
33706 CVS command:
33707  
33708 \family typewriter
33709 cvs -q update "<file-name>"
33710 \end_layout
33711
33712 \begin_layout Standard
33713 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
33714 \end_layout
33715
33716 \begin_layout Standard
33717 CVS command:
33718  
33719 \family typewriter
33720 cvs -q unedit "<file-name>"
33721 \end_layout
33722
33723 \begin_layout Subsubsection
33724
33725 \family sans
33726 Copy
33727 \end_layout
33728
33729 \begin_layout Standard
33730 This will create a copy of the current document.
33731  Since CVS does not support copy operations natively,
33732  the version history is not preserved,
33733  and the copy is added as a new file.
33734  It requires a clean document without any changes since the last checkin.
33735  You are asked for a file name and a description of the copy operation.
33736  After that the copy is created,
33737  both locally and in the repository.
33738  If the parent directories of the copied and original document differ,
33739  all relative paths of included files of the copy are adjusted (like in 
33740 \family sans
33741 File\SpecialChar menuseparator
33742 Save As
33743 \family default
33744 \SpecialChar ldots
33745 ).
33746  Finally,
33747  the copy is loaded instead of the original document.
33748 \end_layout
33749
33750 \begin_layout Labeling
33751 \labelwidthstring 00.00.0000
33752 CVS
33753 \begin_inset space ~
33754 \end_inset
33755
33756 commands:
33757  
33758 \begin_inset space ~
33759 \end_inset
33760
33761
33762 \begin_inset Newline newline
33763 \end_inset
33764
33765 Copy 
33766 \begin_inset Flex Code
33767 status collapsed
33768
33769 \begin_layout Plain Layout
33770 "<file-name>"
33771 \end_layout
33772
33773 \end_inset
33774
33775  to 
33776 \begin_inset Flex Code
33777 status collapsed
33778
33779 \begin_layout Plain Layout
33780 "<new-file-name>"
33781 \end_layout
33782
33783 \end_inset
33784
33785
33786 \begin_inset Newline newline
33787 \end_inset
33788
33789
33790 \begin_inset Flex Code
33791 status collapsed
33792
33793 \begin_layout Plain Layout
33794 cvs -q add "<new-file-name>"
33795 \end_layout
33796
33797 \end_inset
33798
33799
33800 \end_layout
33801
33802 \begin_layout Subsubsection
33803
33804 \family sans
33805 Rename
33806 \end_layout
33807
33808 \begin_layout Standard
33809 This will rename the current document.
33810  Since CVS does not support rename operations natively,
33811  the version history is not preserved,
33812  the renamed document is added as a new file,
33813  and the original document is deleted.
33814  It requires a clean document without any changes since the last checkin.
33815  You are asked for a file name and a description of the rename operation.
33816  After that the document is renamed,
33817  both locally and in the repository.
33818  If the parent directories of the new and old file names differ,
33819  all relative paths of included files are adjusted (like in 
33820 \family sans
33821 File\SpecialChar menuseparator
33822 Save As
33823 \family default
33824 \SpecialChar ldots
33825 ).
33826  Finally,
33827  the document is reloaded using the new name.
33828 \end_layout
33829
33830 \begin_layout Labeling
33831 \labelwidthstring 00.00.0000
33832 CVS
33833 \begin_inset space ~
33834 \end_inset
33835
33836 commands:
33837  
33838 \begin_inset space ~
33839 \end_inset
33840
33841
33842 \begin_inset Newline newline
33843 \end_inset
33844
33845 Rename 
33846 \begin_inset Flex Code
33847 status collapsed
33848
33849 \begin_layout Plain Layout
33850 "<file-name>"
33851 \end_layout
33852
33853 \end_inset
33854
33855  to 
33856 \begin_inset Flex Code
33857 status collapsed
33858
33859 \begin_layout Plain Layout
33860 "<new-file-name>"
33861 \end_layout
33862
33863 \end_inset
33864
33865
33866 \begin_inset Newline newline
33867 \end_inset
33868
33869
33870 \begin_inset Flex Code
33871 status collapsed
33872
33873 \begin_layout Plain Layout
33874 cvs -q add "<new-file-name>"
33875 \end_layout
33876
33877 \end_inset
33878
33879
33880 \begin_inset Newline newline
33881 \end_inset
33882
33883
33884 \begin_inset Flex Code
33885 status collapsed
33886
33887 \begin_layout Plain Layout
33888 cvs -q remove "<file-name>"
33889 \end_layout
33890
33891 \end_inset
33892
33893
33894 \end_layout
33895
33896 \begin_layout Subsubsection
33897 Update of the local directory checkout from repository
33898 \end_layout
33899
33900 \begin_layout Standard
33901 Once your documents gets more complex,
33902  containing sub-documents and pictures,
33903  including external 
33904 \begin_inset Flex Code
33905 status collapsed
33906
33907 \begin_layout Plain Layout
33908 .tex
33909 \end_layout
33910
33911 \end_inset
33912
33913  files and so on using version control becomes more complicated.
33914  \SpecialChar LyX
33915  supports updating the whole tree in which resides the document.
33916  This become especially useful once you cooperate with people which neither have detailed knowledge about CVS usage nor they have ambition to commit additional material to the repository.
33917  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
33918  It's good practice anyway to store multipart documents in an extra directory.
33919 \end_layout
33920
33921 \begin_layout Standard
33922 The 
33923 \begin_inset Flex Code
33924 status collapsed
33925
33926 \begin_layout Plain Layout
33927 Update local directory from repository
33928 \end_layout
33929
33930 \end_inset
33931
33932  command updates the whole directory.
33933  If local changes are detected user is warned before update starts.
33934  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
33935  You have to review and correct the result of the merge.
33936  You'll find the conflicts enclosed in pairs of 
33937 \begin_inset Flex Code
33938 status collapsed
33939
33940 \begin_layout Plain Layout
33941 <<<<<<<
33942 \end_layout
33943
33944 \end_inset
33945
33946  and 
33947 \begin_inset Flex Code
33948 status collapsed
33949
33950 \begin_layout Plain Layout
33951 >>>>>>>
33952 \end_layout
33953
33954 \end_inset
33955
33956  separated by 
33957 \begin_inset Flex Code
33958 status collapsed
33959
33960 \begin_layout Plain Layout
33961 =======
33962 \end_layout
33963
33964 \end_inset
33965
33966 .
33967  The first part is your version as before the update operation with the document name prepended.
33968  The second one is the repository version with the version number after the sequence of 
33969 \begin_inset Flex Code
33970 status collapsed
33971
33972 \begin_layout Plain Layout
33973 >
33974 \end_layout
33975
33976 \end_inset
33977
33978  signs.
33979 \end_layout
33980
33981 \begin_layout Labeling
33982 \labelwidthstring 00.00.0000
33983 CVS
33984 \begin_inset space ~
33985 \end_inset
33986
33987 commands:
33988  
33989 \begin_inset space ~
33990 \end_inset
33991
33992
33993 \begin_inset Newline newline
33994 \end_inset
33995
33996
33997 \begin_inset Flex Code
33998 status collapsed
33999
34000 \begin_layout Plain Layout
34001 cd $path;
34002  cvs diff 
34003 \family typewriter
34004 "."
34005 \end_layout
34006
34007 \end_inset
34008
34009  (Ask if changes are detected.)
34010 \begin_inset Newline newline
34011 \end_inset
34012
34013
34014 \begin_inset Flex Code
34015 status collapsed
34016
34017 \begin_layout Plain Layout
34018 cd $path;
34019  cvs -q update 
34020 \family typewriter
34021 "."
34022 \end_layout
34023
34024 \end_inset
34025
34026
34027 \end_layout
34028
34029 \begin_layout Standard
34030 where 
34031 \begin_inset Flex Code
34032 status collapsed
34033
34034 \begin_layout Plain Layout
34035 $path
34036 \end_layout
34037
34038 \end_inset
34039
34040  stands for the path to the document.
34041 \end_layout
34042
34043 \begin_layout Subsubsection
34044
34045 \family sans
34046 Show History
34047 \end_layout
34048
34049 \begin_layout Standard
34050 This shows the complete history of the CVS document.
34051  The output of 
34052 \family typewriter
34053 cvs log "<file-name>"
34054 \family default
34055  is shown in a browser.
34056 \end_layout
34057
34058 \begin_layout Subsubsection
34059 Revision info
34060 \end_layout
34061
34062 \begin_layout Standard
34063 \SpecialChar LyX
34064  supports CVS version number,
34065  author name,
34066  date and time of last commit.
34067  All those are extracted from 
34068 \family typewriter
34069 cvs log -r <file-name>
34070 \family default
34071 .
34072  See 
34073 \begin_inset CommandInset ref
34074 LatexCommand ref
34075 reference "subsec:VCS-Revision-Information"
34076 nolink "false"
34077
34078 \end_inset
34079
34080  for details.
34081 \end_layout
34082
34083 \begin_layout Subsection
34084 SVN commands in \SpecialChar LyX
34085
34086 \end_layout
34087
34088 \begin_layout Standard
34089 SVN is now partially supported by \SpecialChar LyX
34090 .
34091  You can find the commands in the 
34092 \family sans
34093 File\SpecialChar menuseparator
34094 Version
34095 \begin_inset space ~
34096 \end_inset
34097
34098 Control
34099 \family default
34100  submenu.
34101  Please note that if you use password protected access to repository via ssh,
34102  you will be asked in terminal window.
34103  \SpecialChar LyX
34104  was tested against SVN 1.5,
34105  1.6,
34106  1.7 and 1.8
34107 \begin_inset Foot
34108 status collapsed
34109
34110 \begin_layout Plain Layout
34111 Most of the commands will work with 1.4 too,
34112  see 
34113 \begin_inset CommandInset ref
34114 LatexCommand ref
34115 reference "subsec:SVN-Repo-Update"
34116 nolink "false"
34117
34118 \end_inset
34119
34120 .
34121  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
34122 \end_layout
34123
34124 \end_inset
34125
34126
34127 \end_layout
34128
34129 \begin_layout Subsubsection
34130
34131 \family sans
34132 Register
34133 \end_layout
34134
34135 \begin_layout Standard
34136 If your document is not under revision control,
34137  this is the only item shown in the menu.
34138  And if it is under revision control,
34139  the 
34140 \family sans
34141 Register
34142 \family default
34143  item is not visible.
34144 \end_layout
34145
34146 \begin_layout Standard
34147 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
34148 \family typewriter
34149 .svn/entries
34150 \family default
34151  file exists).
34152  This means you have to checkout the archive by yourself.
34153 \end_layout
34154
34155 \begin_layout Standard
34156 Then you are asked interactively to supply an initial description of the document.
34157  Don't forget that registered file is not yet commited.
34158 \end_layout
34159
34160 \begin_layout Standard
34161 SVN command that is run:
34162  
34163 \family typewriter
34164 svn add -q 
34165 \begin_inset Quotes qld
34166 \end_inset
34167
34168 <file-name>
34169 \begin_inset Quotes qld
34170 \end_inset
34171
34172
34173 \end_layout
34174
34175 \begin_layout Standard
34176 Read 
34177 \family typewriter
34178 man svn
34179 \family default
34180  to understand the switches.
34181 \end_layout
34182
34183 \begin_layout Subsubsection
34184
34185 \family sans
34186 Check In Changes
34187 \end_layout
34188
34189 \begin_layout Standard
34190 When you are finished editing a file,
34191  you commit your changes.
34192  When you do this,
34193  you are asked for a description of the changes.
34194  After that changes are commited.
34195 \end_layout
34196
34197 \begin_layout Standard
34198 SVN command:
34199 \begin_inset Foot
34200 status collapsed
34201
34202 \begin_layout Plain Layout
34203 In case locking is not enabled.
34204  See Section 
34205 \begin_inset CommandInset ref
34206 LatexCommand ref
34207 reference "subsec:SVN-File-Locking"
34208 nolink "false"
34209
34210 \end_inset
34211
34212 .
34213 \end_layout
34214
34215 \end_inset
34216
34217  
34218 \family typewriter
34219 svn commit -q -m"<description>" <file-name>
34220 \end_layout
34221
34222 \begin_layout Subsubsection
34223
34224 \family sans
34225 Check Out For Edit
34226 \end_layout
34227
34228 \begin_layout Standard
34229 Updates the changes of this file from the repository.
34230  Be sure you understand SVN merging and conflicts resolving before using this function,
34231  because all conflicts has to be resolved manually by you!
34232 \end_layout
34233
34234 \begin_layout Standard
34235 SVN command:
34236 \begin_inset Foot
34237 status collapsed
34238
34239 \begin_layout Plain Layout
34240 Ditto.
34241 \end_layout
34242
34243 \end_inset
34244
34245  
34246 \family typewriter
34247 svn update --non-interactive 
34248 \begin_inset Quotes qld
34249 \end_inset
34250
34251 <file-name>
34252 \begin_inset Quotes qld
34253 \end_inset
34254
34255
34256 \end_layout
34257
34258 \begin_layout Subsubsection
34259
34260 \family sans
34261 Revert To Repository Version
34262 \end_layout
34263
34264 \begin_layout Standard
34265 This will discard all changes made to the document since the last check in.
34266  You get a warning before changes are discarded.
34267 \end_layout
34268
34269 \begin_layout Standard
34270 SVN command:
34271  
34272 \family typewriter
34273 svn revert -q 
34274 \begin_inset Quotes qld
34275 \end_inset
34276
34277 <file-name>
34278 \begin_inset Quotes qld
34279 \end_inset
34280
34281
34282 \end_layout
34283
34284 \begin_layout Subsubsection
34285
34286 \family sans
34287 Copy
34288 \end_layout
34289
34290 \begin_layout Standard
34291 This will create a copy of the current document including the version history.
34292  It requires a clean document without any changes since the last checkin.
34293  You are asked for a file name and a description of the copy operation.
34294  After that the copy is created,
34295  both locally and in the repository.
34296  If the parent directories of the copied and original document differ,
34297  all relative paths of included files of the copy are adjusted (like in 
34298 \family sans
34299 File\SpecialChar menuseparator
34300 Save As
34301 \family default
34302 \SpecialChar ldots
34303 ).
34304  Finally,
34305  the copy is loaded instead of the original document.
34306 \end_layout
34307
34308 \begin_layout Labeling
34309 \labelwidthstring 00.00.0000
34310 SVN
34311 \begin_inset space ~
34312 \end_inset
34313
34314 commands:
34315  
34316 \begin_inset space ~
34317 \end_inset
34318
34319
34320 \begin_inset Newline newline
34321 \end_inset
34322
34323
34324 \begin_inset Flex Code
34325 status collapsed
34326
34327 \begin_layout Plain Layout
34328 svn copy -q 
34329 \family typewriter
34330
34331 \begin_inset Quotes qld
34332 \end_inset
34333
34334 <file-name>
34335 \begin_inset Quotes qld
34336 \end_inset
34337
34338  
34339 \begin_inset Quotes qld
34340 \end_inset
34341
34342 <new-file-name>
34343 \begin_inset Quotes qld
34344 \end_inset
34345
34346
34347 \end_layout
34348
34349 \end_inset
34350
34351
34352 \begin_inset Newline newline
34353 \end_inset
34354
34355
34356 \begin_inset Flex Code
34357 status collapsed
34358
34359 \begin_layout Plain Layout
34360 svn commit
34361 \end_layout
34362
34363 \end_inset
34364
34365
34366 \end_layout
34367
34368 \begin_layout Subsubsection
34369
34370 \family sans
34371 Rename
34372 \end_layout
34373
34374 \begin_layout Standard
34375 This will rename the current document including the version history.
34376  It requires a clean document without any changes since the last checkin.
34377  You are asked for a file name and a description of the rename operation.
34378  After that the document is renamed,
34379  both locally and in the repository.
34380  If the parent directories of the new and old file names differ,
34381  all relative paths of included files are adjusted (like in 
34382 \family sans
34383 File\SpecialChar menuseparator
34384 Save As
34385 \family default
34386 \SpecialChar ldots
34387 ).
34388  Finally,
34389  the document is reloaded using the new name.
34390 \end_layout
34391
34392 \begin_layout Labeling
34393 \labelwidthstring 00.00.0000
34394 SVN
34395 \begin_inset space ~
34396 \end_inset
34397
34398 commands:
34399  
34400 \begin_inset space ~
34401 \end_inset
34402
34403
34404 \begin_inset Newline newline
34405 \end_inset
34406
34407
34408 \begin_inset Flex Code
34409 status collapsed
34410
34411 \begin_layout Plain Layout
34412 svn move -q 
34413 \family typewriter
34414
34415 \begin_inset Quotes qld
34416 \end_inset
34417
34418 <file-name>
34419 \begin_inset Quotes qld
34420 \end_inset
34421
34422  
34423 \begin_inset Quotes qld
34424 \end_inset
34425
34426 <new-file-name>
34427 \begin_inset Quotes qld
34428 \end_inset
34429
34430
34431 \end_layout
34432
34433 \end_inset
34434
34435
34436 \begin_inset Newline newline
34437 \end_inset
34438
34439
34440 \begin_inset Flex Code
34441 status collapsed
34442
34443 \begin_layout Plain Layout
34444 svn commit
34445 \end_layout
34446
34447 \end_inset
34448
34449
34450 \end_layout
34451
34452 \begin_layout Subsubsection
34453 \begin_inset CommandInset label
34454 LatexCommand label
34455 name "subsec:SVN-Repo-Update"
34456
34457 \end_inset
34458
34459 Update of the local directory checkout from repository
34460 \begin_inset Foot
34461 status collapsed
34462
34463 \begin_layout Plain Layout
34464 Note that this command will work only with subversion 
34465 \begin_inset Formula $\geqq1.5$
34466 \end_inset
34467
34468
34469 \end_layout
34470
34471 \end_inset
34472
34473
34474 \end_layout
34475
34476 \begin_layout Standard
34477 All the commands above have one shortcoming – they deal with the current document only.
34478  Once your document contains pictures,
34479  includes external 
34480 \begin_inset Flex Code
34481 status collapsed
34482
34483 \begin_layout Plain Layout
34484 .tex
34485 \end_layout
34486
34487 \end_inset
34488
34489  files and so on administration becomes more complicated.
34490  \SpecialChar LyX
34491  now supports updating the whole tree in which resides the document
34492 \begin_inset Foot
34493 status collapsed
34494
34495 \begin_layout Plain Layout
34496 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
34497  
34498 \end_layout
34499
34500 \end_inset
34501
34502 .
34503  This become especially useful once you cooperate with people which neither know about subversion management nor they have ambition to commit additional material to the repository.
34504  
34505 \end_layout
34506
34507 \begin_layout Standard
34508 \begin_inset Flex Code
34509 status collapsed
34510
34511 \begin_layout Plain Layout
34512 Update local directory from repository
34513 \end_layout
34514
34515 \end_inset
34516
34517  command updates the whole directory and in case of merge conflicts local version of the files are left,
34518  so no unintended data loss occurs.
34519  If local changes are detected user is warned before update starts.
34520 \end_layout
34521
34522 \begin_layout Labeling
34523 \labelwidthstring 00.00.0000
34524 SVN
34525 \begin_inset space ~
34526 \end_inset
34527
34528 commands:
34529  
34530 \begin_inset space ~
34531 \end_inset
34532
34533
34534 \begin_inset Newline newline
34535 \end_inset
34536
34537
34538 \begin_inset Flex Code
34539 status collapsed
34540
34541 \begin_layout Plain Layout
34542 svn diff $path
34543 \end_layout
34544
34545 \end_inset
34546
34547  (Ask if changes are detected.)
34548 \begin_inset Newline newline
34549 \end_inset
34550
34551
34552 \begin_inset Flex Code
34553 status collapsed
34554
34555 \begin_layout Plain Layout
34556 svn update --accept mine-full $path
34557 \end_layout
34558
34559 \end_inset
34560
34561
34562 \end_layout
34563
34564 \begin_layout Standard
34565 where 
34566 \begin_inset Flex Code
34567 status collapsed
34568
34569 \begin_layout Plain Layout
34570 $path
34571 \end_layout
34572
34573 \end_inset
34574
34575  stands for the path to the document.
34576 \end_layout
34577
34578 \begin_layout Subsubsection
34579
34580 \family sans
34581 Show History
34582 \end_layout
34583
34584 \begin_layout Standard
34585 This shows the complete history of the SVN document.
34586  The output of 
34587 \family typewriter
34588 svn log 
34589 \begin_inset Quotes qld
34590 \end_inset
34591
34592 <file-name>
34593 \begin_inset Quotes qld
34594 \end_inset
34595
34596
34597 \family default
34598  is shown in a browser.
34599 \end_layout
34600
34601 \begin_layout Subsubsection
34602 File Locking
34603 \begin_inset CommandInset label
34604 LatexCommand label
34605 name "subsec:SVN-File-Locking"
34606
34607 \end_inset
34608
34609
34610 \end_layout
34611
34612 \begin_layout Standard
34613 The file exchange through various revision control systems brings the problem of merge conflicts in case two different users try to edit the same (parts of) document.
34614  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
34615  which guarantees that only one user is allowed to edit file at the given time.
34616 \end_layout
34617
34618 \begin_layout Standard
34619 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
34620  
34621 \begin_inset CommandInset ref
34622 LatexCommand ref
34623 reference "subsec:Automatical-Locking-Property"
34624 nolink "false"
34625
34626 \end_inset
34627
34628 ) based on 
34629 \begin_inset Flex Code
34630 status collapsed
34631
34632 \begin_layout Plain Layout
34633 svn:needs-lock
34634 \end_layout
34635
34636 \end_inset
34637
34638  file svn property
34639 \begin_inset Foot
34640 status collapsed
34641
34642 \begin_layout Plain Layout
34643 \begin_inset Flex URL
34644 status open
34645
34646 \begin_layout Plain Layout
34647
34648 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
34649 \end_layout
34650
34651 \end_inset
34652
34653
34654 \end_layout
34655
34656 \end_inset
34657
34658 .
34659  If this property is detected for a given document \SpecialChar LyX
34660  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
34661  This in particular means there are two different modes of file use in \SpecialChar LyX
34662 :
34663 \end_layout
34664
34665 \begin_layout Itemize
34666 Unlocked state.
34667  The loaded file is in the read-only mode.
34668  For editing on needs to check-out.
34669  
34670 \emph on
34671 Check-out
34672 \emph default
34673  consists of updating from the repository and gaining write lock.
34674  If the lock is not possible to obtain,
34675  we remain in unlocked state.
34676 \end_layout
34677
34678 \begin_layout Itemize
34679 Locked state.
34680  The loaded file is in the 
34681 \begin_inset Quotes els
34682 \end_inset
34683
34684 normal
34685 \begin_inset Quotes ers
34686 \end_inset
34687
34688  edit mode.
34689  No other user is allowed to edit the file.
34690  
34691 \emph on
34692 Check-in
34693 \emph default
34694  consists of commiting changes and releasing write-lock.
34695  If no changes have been made to the document,
34696  no commit will be produced
34697 \begin_inset Foot
34698 status collapsed
34699
34700 \begin_layout Plain Layout
34701 Don't be puzzled by the fact that you will be asked for commit message anyway.
34702 \end_layout
34703
34704 \end_inset
34705
34706  and only the write-lock will be released.
34707 \end_layout
34708
34709 \begin_layout Standard
34710 SVN commands:
34711 \end_layout
34712
34713 \begin_layout Labeling
34714 \labelwidthstring 00.00.0000
34715 Check-in:
34716
34717 \family typewriter
34718  svn commit -q -m"<description>" "<file-name>"
34719 \begin_inset Newline newline
34720 \end_inset
34721
34722 svn unlock "<file-name>"
34723 \end_layout
34724
34725 \begin_layout Labeling
34726 \labelwidthstring 00.00.0000
34727 Check-out:
34728  
34729 \family typewriter
34730 svn update "<file-name>"
34731 \begin_inset Newline newline
34732 \end_inset
34733
34734 svn lock "<file-name>"
34735 \end_layout
34736
34737 \begin_layout Subsubsection
34738
34739 \family typewriter
34740 \begin_inset CommandInset label
34741 LatexCommand label
34742 name "subsec:Automatical-Locking-Property"
34743
34744 \end_inset
34745
34746
34747 \family default
34748 Automatic Locking Property
34749 \end_layout
34750
34751 \begin_layout Standard
34752 The above mentioned automatic setting of write permissions of the .lyx file can be set through
34753 \family sans
34754  File\SpecialChar menuseparator
34755 Version
34756 \begin_inset space ~
34757 \end_inset
34758
34759 Control\SpecialChar menuseparator
34760 Use Locking Property
34761 \family default
34762 .
34763  This command is active only when the file is not locked on the svn server (i.e.
34764  you need to check-out before proceeding).
34765 \end_layout
34766
34767 \begin_layout Labeling
34768 \labelwidthstring 00.00.0000
34769 SVN
34770 \begin_inset space ~
34771 \end_inset
34772
34773 commands:
34774 \end_layout
34775
34776 \begin_layout Labeling
34777 \labelwidthstring 00.00.0000
34778 Set:
34779
34780 \family typewriter
34781  svn propset svn:needs-lock ON "<file-name>"
34782 \end_layout
34783
34784 \begin_layout Labeling
34785 \labelwidthstring 00.00.0000
34786 Unset:
34787  
34788 \family typewriter
34789 svn propdel svn:needs-lock "<file-name>"
34790 \end_layout
34791
34792 \begin_layout Subsubsection
34793 \begin_inset CommandInset label
34794 LatexCommand label
34795 name "subsec:VCS-Revision-Information"
34796
34797 \end_inset
34798
34799 Revision Information in Documents
34800 \end_layout
34801
34802 \begin_layout Standard
34803 There are more possibilities how to activate revision information in our document.
34804 \end_layout
34805
34806 \begin_layout Itemize
34807 \SpecialChar LyX
34808  supports directly:
34809 \end_layout
34810
34811 \begin_deeper
34812 \begin_layout Itemize
34813 tree revision information (
34814 \begin_inset Flex Code
34815 status collapsed
34816
34817 \begin_layout Plain Layout
34818 vcs-tree-revision
34819 \end_layout
34820
34821 \end_inset
34822
34823 ).
34824  The result is the output of the 
34825 \begin_inset Flex Code
34826 status collapsed
34827
34828 \begin_layout Plain Layout
34829 svnversion
34830 \end_layout
34831
34832 \end_inset
34833
34834  command,
34835  the following table gives you an idea,
34836  how to read the results.
34837 \end_layout
34838
34839 \begin_layout Standard
34840 \align center
34841 \begin_inset Tabular
34842 <lyxtabular version="3" rows="6" columns="2">
34843 <features tabularvalignment="middle">
34844 <column alignment="left" valignment="top">
34845 <column alignment="left" valignment="top">
34846 <row>
34847 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34848 \begin_inset Text
34849
34850 \begin_layout Plain Layout
34851
34852 \series bold
34853 Output
34854 \end_layout
34855
34856 \end_inset
34857 </cell>
34858 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34859 \begin_inset Text
34860
34861 \begin_layout Plain Layout
34862
34863 \series bold
34864 Meaning
34865 \end_layout
34866
34867 \end_inset
34868 </cell>
34869 </row>
34870 <row>
34871 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34872 \begin_inset Text
34873
34874 \begin_layout Plain Layout
34875 4123:4168
34876 \end_layout
34877
34878 \end_inset
34879 </cell>
34880 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34881 \begin_inset Text
34882
34883 \begin_layout Plain Layout
34884 mixed revision working copy
34885 \end_layout
34886
34887 \end_inset
34888 </cell>
34889 </row>
34890 <row>
34891 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34892 \begin_inset Text
34893
34894 \begin_layout Plain Layout
34895 4168M
34896 \end_layout
34897
34898 \end_inset
34899 </cell>
34900 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34901 \begin_inset Text
34902
34903 \begin_layout Plain Layout
34904 modified working copy
34905 \end_layout
34906
34907 \end_inset
34908 </cell>
34909 </row>
34910 <row>
34911 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34912 \begin_inset Text
34913
34914 \begin_layout Plain Layout
34915 4123S
34916 \end_layout
34917
34918 \end_inset
34919 </cell>
34920 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34921 \begin_inset Text
34922
34923 \begin_layout Plain Layout
34924 switched working copy
34925 \end_layout
34926
34927 \end_inset
34928 </cell>
34929 </row>
34930 <row>
34931 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34932 \begin_inset Text
34933
34934 \begin_layout Plain Layout
34935 4123P
34936 \end_layout
34937
34938 \end_inset
34939 </cell>
34940 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34941 \begin_inset Text
34942
34943 \begin_layout Plain Layout
34944 partial working copy,
34945  from a sparse checkout
34946 \end_layout
34947
34948 \end_inset
34949 </cell>
34950 </row>
34951 <row>
34952 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34953 \begin_inset Text
34954
34955 \begin_layout Plain Layout
34956 4123:4168MS
34957 \end_layout
34958
34959 \end_inset
34960 </cell>
34961 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34962 \begin_inset Text
34963
34964 \begin_layout Plain Layout
34965 mixed revision,
34966  modified,
34967  switched working copy
34968 \end_layout
34969
34970 \end_inset
34971 </cell>
34972 </row>
34973 </lyxtabular>
34974
34975 \end_inset
34976
34977
34978 \end_layout
34979
34980 \begin_layout Itemize
34981 file revision information.
34982  The result comes from parsing the output of 
34983 \begin_inset Flex Code
34984 status collapsed
34985
34986 \begin_layout Plain Layout
34987 svn
34988 \begin_inset space ~
34989 \end_inset
34990
34991 info
34992 \begin_inset space ~
34993 \end_inset
34994
34995 --xml
34996 \begin_inset space ~
34997 \end_inset
34998
34999 file.lyx
35000 \end_layout
35001
35002 \end_inset
35003
35004 .
35005  Supported flags are:
35006 \end_layout
35007
35008 \begin_deeper
35009 \begin_layout Itemize
35010 version number of the last commit (
35011 \begin_inset Flex Code
35012 status collapsed
35013
35014 \begin_layout Plain Layout
35015 vcs-revision
35016 \end_layout
35017
35018 \end_inset
35019
35020 )
35021 \end_layout
35022
35023 \begin_layout Itemize
35024 author of the last commit (
35025 \begin_inset Flex Code
35026 status collapsed
35027
35028 \begin_layout Plain Layout
35029 vcs-author
35030 \end_layout
35031
35032 \end_inset
35033
35034 )
35035 \end_layout
35036
35037 \begin_layout Itemize
35038 date of the last commit (
35039 \begin_inset Flex Code
35040 status collapsed
35041
35042 \begin_layout Plain Layout
35043 vcs-date
35044 \end_layout
35045
35046 \end_inset
35047
35048 )
35049 \end_layout
35050
35051 \begin_layout Itemize
35052 time of the last commit (
35053 \begin_inset Flex Code
35054 status collapsed
35055
35056 \begin_layout Plain Layout
35057 vcs-time
35058 \end_layout
35059
35060 \end_inset
35061
35062 )
35063 \end_layout
35064
35065 \end_deeper
35066 \begin_layout Standard
35067 You can obtain this info via InsetInfo (
35068 \change_inserted 5863208 1564400022
35069 Insert\SpecialChar menuseparator
35070 Field\SpecialChar menuseparator
35071 Version Control Revision
35072 \change_deleted 5863208 1564399852
35073 e.g.
35074  
35075 \begin_inset Flex Code
35076 status collapsed
35077
35078 \begin_layout Plain Layout
35079 info-insert buffer vcs-date
35080 \end_layout
35081
35082 \end_inset
35083
35084
35085 \change_unchanged
35086 ).
35087  The information will be available only when you have the file stored under svn managment (i.e.
35088  the 
35089 \begin_inset Flex Code
35090 status collapsed
35091
35092 \begin_layout Plain Layout
35093 .svn
35094 \end_layout
35095
35096 \end_inset
35097
35098  directory is available with your document).
35099 \end_layout
35100
35101 \end_deeper
35102 \begin_layout Itemize
35103 Another—
35104 a hacking one—
35105 possibility is to use svn keywords
35106 \begin_inset Foot
35107 status collapsed
35108
35109 \begin_layout Plain Layout
35110 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
35111 \end_layout
35112
35113 \end_inset
35114
35115 .
35116  In short – you set file keywords property (e.g.
35117  
35118 \family sans
35119 svn propset svn:keywords 'Rev' file.lyx
35120 \family default
35121 ) and then paste keyword \SpecialChar TeX
35122  code
35123 \begin_inset Foot
35124 status collapsed
35125
35126 \begin_layout Plain Layout
35127 This is an easy way how to ensure that \SpecialChar LyX
35128  won't break the line in the middle of keyword tag.
35129 \end_layout
35130
35131 \end_inset
35132
35133  tag in your document (e.g.
35134  
35135 \begin_inset Flex Code
35136 status collapsed
35137
35138 \begin_layout Plain Layout
35139 $Rev$
35140 \end_layout
35141
35142 \end_inset
35143
35144 ).
35145  This way svn client will automatically substitute revision number (e.g.
35146  
35147 \begin_inset Flex Code
35148 status collapsed
35149
35150 \begin_layout Plain Layout
35151 $Rev:
35152  59 $
35153 \end_layout
35154
35155 \end_inset
35156
35157 ) after each update and commit.
35158  There are more problems with this approach.
35159  Firstly,
35160  the '$' character is used in \SpecialChar TeX
35161  world for math equations,
35162  so any occurence of math formula 
35163 \begin_inset Formula $Rev$
35164 \end_inset
35165
35166  become 
35167 \begin_inset Formula $Rev:59$
35168 \end_inset
35169
35170  in your \SpecialChar LyX
35171  document.
35172  Similarly for other keywords like Id,
35173  Date,
35174  Author,
35175  etc.
35176  Secondly svn output is dependent on your locales,
35177  so its very easy that svn would produce some problematic strings once Date is used.
35178  Thirdly you get the whole 'Rev:
35179  59' string in your document instead of the plain number.
35180  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
35181  to support it directly.
35182 \end_layout
35183
35184 \begin_layout Subsection
35185 SVN and Windows Environment
35186 \end_layout
35187
35188 \begin_layout Quote
35189 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
35190  they would be well advised to use TortoiseSVN.
35191  —
35192 P.
35193  A.
35194  Rubin
35195 \end_layout
35196
35197 \begin_layout Subsubsection
35198 Preparation
35199 \end_layout
35200
35201 \begin_layout Standard
35202 In addition to installing \SpecialChar LyX
35203 ,
35204  and having access to a Subversion repository,
35205  the user will need to install the Subversion client program.
35206  A Windows installer for the client program is available from 
35207 \begin_inset CommandInset href
35208 LatexCommand href
35209 name "CollabNet"
35210 target "http://www.collab.net/nonav/downloads/subversion/"
35211 literal "false"
35212
35213 \end_inset
35214
35215 .
35216  The user may also want to install 
35217 \begin_inset CommandInset href
35218 LatexCommand href
35219 name "TortoiseSVN"
35220 target "http://tortoisesvn.tigris.org/"
35221 literal "false"
35222
35223 \end_inset
35224
35225 ,
35226  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
35227  Operations done outside \SpecialChar LyX
35228  will typically be more convenient using the Explorer context menu.
35229  Note that TortoiseSVN is not a replacement for the client program,
35230  which is what \SpecialChar LyX
35231  itself will use.
35232 \end_layout
35233
35234 \begin_layout Subsubsection
35235 Bringing a document under Subversion control
35236 \end_layout
35237
35238 \begin_layout Standard
35239 Before a \SpecialChar LyX
35240  document can be brought under version control in Subversion,
35241  its parent directory needs to be under version control.
35242  If the document is being added to a project already in the repository,
35243  this is accomplished by checking the project out to the directory where the new document will be placed.
35244  If the project itself is not yet under version control (for instance,
35245  if this document starts a new project),
35246  the directory must be imported into the repository.
35247  This is done outside \SpecialChar LyX
35248 .
35249  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
35250  or alternatively can be done using the command line client at a DOS prompt.
35251  The procedure for importing the project using TortoiseSVN is described below,
35252  assuming an existing repository and a new project being started in 
35253 \family typewriter
35254 C:
35255 \backslash
35256 new project
35257 \family default
35258 .
35259  For information on using the Subversion client program,
35260  run 
35261 \family typewriter
35262 svn --help 
35263 \family default
35264 in a DOS shell.
35265 \end_layout
35266
35267 \begin_layout Enumerate
35268 Locate 
35269 \family typewriter
35270 C:
35271 \backslash
35272 new project 
35273 \family default
35274 in Windows Explorer,
35275  right click it,
35276  and select 
35277 \family sans
35278 TortoiseSVN\SpecialChar menuseparator
35279 Repo-browser
35280 \family default
35281 .
35282  If necessary,
35283  adjust the URL for the repository,
35284  then click OK.
35285 \end_layout
35286
35287 \begin_layout Enumerate
35288 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
35289 \family sans
35290 Create folder
35291 \family default
35292  Supply a name for the project folder and click OK.
35293  Add a message for the log file if desired,
35294  then click OK again.
35295  The new project folder should appear in the repository.
35296  Finally,
35297  click OK again to exit the repository browser.
35298 \end_layout
35299
35300 \begin_layout Enumerate
35301 Once again right click 
35302 \family typewriter
35303 C:
35304 \backslash
35305 new project
35306 \family default
35307 ,
35308  this time selecting SVN Checkout\SpecialChar ldots
35309  Select the URL of the project folder you just created in the repository,
35310  and set the checkout directory to 
35311 \family typewriter
35312 C:
35313 \backslash
35314 new project.
35315
35316 \family default
35317  Click OK.
35318  You will be warned about a non-empty folder;
35319  click OK to proceed.
35320  You should now have a 
35321 \family typewriter
35322 .svn
35323 \family default
35324  directory under 
35325 \family typewriter
35326 C:
35327 \backslash
35328 new project.
35329 \end_layout
35330
35331 \begin_layout Enumerate
35332 Create or open your document in \SpecialChar LyX
35333  and click 
35334 \family sans
35335 File\SpecialChar menuseparator
35336 Version
35337 \begin_inset space ~
35338 \end_inset
35339
35340 Control\SpecialChar menuseparator
35341 Register.
35342  
35343 \family default
35344 Add a log message and click OK to commit the document to version control.
35345 \end_layout
35346
35347 \begin_layout Standard
35348 From this point onward,
35349  you should have full functionality in the 
35350 \family sans
35351 File\SpecialChar menuseparator
35352 Version
35353 \begin_inset space ~
35354 \end_inset
35355
35356 Control
35357 \family default
35358  menu.
35359  You also have the option of checking the document in and out,
35360  viewing its history,
35361  etc.
35362  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
35363 \end_layout
35364
35365 \begin_layout Subsubsection
35366 SSH tunnel used with SVN under Windows
35367 \end_layout
35368
35369 \begin_layout Standard
35370 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
35371  We will at least offer some hints how to setup the client side but prior knowledge about ssh and the Windows command line is needed,
35372  also be prepared for a great deal of frustration\SpecialChar ldots
35373
35374 \end_layout
35375
35376 \begin_layout Enumerate
35377 Get an svn client for windows,
35378  as described in the previous sections.
35379  When it is a fresh install run some svn command (e.g.
35380  
35381 \begin_inset Flex Code
35382 status collapsed
35383
35384 \begin_layout Plain Layout
35385 svn --version
35386 \end_layout
35387
35388 \end_inset
35389
35390 ) to create config files,
35391  which you will need to change later on.
35392 \end_layout
35393
35394 \begin_layout Enumerate
35395 Choose an ssh client for Windows.
35396  There are several possibilities,
35397  we will use the one from Putty tools
35398 \begin_inset Foot
35399 status collapsed
35400
35401 \begin_layout Plain Layout
35402 \begin_inset Flex URL
35403 status collapsed
35404
35405 \begin_layout Plain Layout
35406
35407 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
35408 \end_layout
35409
35410 \end_inset
35411
35412
35413 \end_layout
35414
35415 \end_inset
35416
35417 .
35418  You will need to set the connection up so that the client doesn't ask for any password from you.
35419  To keep things easy we will use only keys without any additional password protection etc.
35420 \end_layout
35421
35422 \begin_deeper
35423 \begin_layout Enumerate
35424 Generate keys by 
35425 \begin_inset Flex Code
35426 status collapsed
35427
35428 \begin_layout Plain Layout
35429 puttygen
35430 \end_layout
35431
35432 \end_inset
35433
35434 .
35435  Save your private .ppk key file and put the public one on the server side.
35436  If the SVN server runs on Linux,
35437  note that the format of the public key is not compatible with Linux openssh and you will need to direcly copy-paste the key from the 
35438 \begin_inset Quotes eld
35439 \end_inset
35440
35441
35442 \emph on
35443 Public key for pasting into OpenSSH authorized_keys file
35444 \emph default
35445 :
35446 \begin_inset Quotes erd
35447 \end_inset
35448
35449  edit field into the server's 
35450 \begin_inset Flex Code
35451 status collapsed
35452
35453 \begin_layout Plain Layout
35454 ~/.ssh/authorized_keys
35455 \end_layout
35456
35457 \end_inset
35458
35459  / 
35460 \begin_inset Flex Code
35461 status collapsed
35462
35463 \begin_layout Plain Layout
35464 authorized_keys2
35465 \end_layout
35466
35467 \end_inset
35468
35469  file.
35470 \end_layout
35471
35472 \begin_layout Enumerate
35473 Get the Putty's 
35474 \begin_inset Flex Code
35475 status collapsed
35476
35477 \begin_layout Plain Layout
35478 plink
35479 \end_layout
35480
35481 \end_inset
35482
35483 .
35484  In the SVN config file
35485 \begin_inset Foot
35486 status collapsed
35487
35488 \begin_layout Plain Layout
35489 Exact path depends on Windows version,
35490  usually somewhere around 
35491 \begin_inset Flex Code
35492 status collapsed
35493
35494 \begin_layout Plain Layout
35495 c:
35496 \backslash
35497 Documents and Settings
35498 \backslash
35499 user
35500 \backslash
35501 Application Data
35502 \backslash
35503 Subversion
35504 \backslash
35505 config
35506 \end_layout
35507
35508 \end_inset
35509
35510  / 
35511 \begin_inset Flex Code
35512 status collapsed
35513
35514 \begin_layout Plain Layout
35515 AppData
35516 \backslash
35517 Roaming
35518 \backslash
35519 Subversion
35520 \end_layout
35521
35522 \end_inset
35523
35524 .
35525 \end_layout
35526
35527 \end_inset
35528
35529 ,
35530  section [tunnels],
35531  setup ssh command,
35532  e.g.
35533  
35534 \begin_inset Flex Code
35535 status collapsed
35536
35537 \begin_layout Plain Layout
35538 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
35539 \end_layout
35540
35541 \end_inset
35542
35543 .
35544 \begin_inset Foot
35545 status collapsed
35546
35547 \begin_layout Plain Layout
35548 It will usually take a lot of time to get exact command right and it depends on many things.
35549  For example do not have some remote server saved as a default session in Putty etc.
35550  If things fail,
35551  try to connect via plink without SVN first.
35552 \end_layout
35553
35554 \end_inset
35555
35556
35557 \end_layout
35558
35559 \end_deeper
35560 \begin_layout Enumerate
35561 Checkout the SVN archive,
35562  e.
35563 \begin_inset space \thinspace{}
35564 \end_inset
35565
35566 g.
35567 \begin_inset Newline newline
35568 \end_inset
35569
35570
35571 \begin_inset Flex Code
35572 status collapsed
35573
35574 \begin_layout Plain Layout
35575 svn co svn+ssh://user@server/repository_path
35576 \end_layout
35577
35578 \end_inset
35579
35580 .
35581 \end_layout
35582
35583 \begin_layout Subsubsection
35584 End-of-Line Conversions
35585 \end_layout
35586
35587 \begin_layout Standard
35588 When the collaborators are mixing Linux and Windows environments,
35589  \SpecialChar LyX
35590  will use different line endings inside the .lyx files.
35591  This is not a problem as far as \SpecialChar LyX
35592  functionality is concerned,
35593  but the commit diffs will be huge and merge-conflicts prone.
35594  Fortunately SVN itself knows
35595 \begin_inset Foot
35596 status collapsed
35597
35598 \begin_layout Plain Layout
35599 \begin_inset Flex URL
35600 status collapsed
35601
35602 \begin_layout Plain Layout
35603
35604 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
35605 \end_layout
35606
35607 \end_inset
35608
35609
35610 \end_layout
35611
35612 \end_inset
35613
35614  how to deal with CR/LF problems when switching .lyx files to the 
35615 \begin_inset Flex Code
35616 status collapsed
35617
35618 \begin_layout Plain Layout
35619 native
35620 \end_layout
35621
35622 \end_inset
35623
35624  mode.
35625 \begin_inset Foot
35626 status collapsed
35627
35628 \begin_layout Plain Layout
35629 For the lazy guys:
35630  
35631 \begin_inset Flex Code
35632 status collapsed
35633
35634 \begin_layout Plain Layout
35635 svn propset svn:eol-style native FILE_NAME
35636 \end_layout
35637
35638 \end_inset
35639
35640
35641 \end_layout
35642
35643 \end_inset
35644
35645
35646 \end_layout
35647
35648 \begin_layout Subsection
35649 GIT commands in \SpecialChar LyX
35650
35651 \end_layout
35652
35653 \begin_layout Standard
35654 A minimal subset of GIT commands is now supported by \SpecialChar LyX
35655 .
35656  You can find the commands in the 
35657 \family sans
35658 File\SpecialChar menuseparator
35659 Version
35660 \begin_inset space ~
35661 \end_inset
35662
35663 Control
35664 \family default
35665  submenu.
35666  Please note that if you use password protected access to repository via ssh,
35667  you will be asked in terminal window.
35668  \SpecialChar LyX
35669  was tested against GIT 1.7.
35670 \begin_inset Foot
35671 status collapsed
35672
35673 \begin_layout Plain Layout
35674 Windows users please note that you need to ensure that git is on the path.
35675  This can be set from within \SpecialChar LyX
35676  at 
35677 \family sans
35678 Tools\SpecialChar menuseparator
35679 Preferences\SpecialChar menuseparator
35680 Paths\SpecialChar menuseparator
35681 PATH prefix
35682 \family default
35683 .
35684 \end_layout
35685
35686 \end_inset
35687
35688
35689 \end_layout
35690
35691 \begin_layout Standard
35692 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
35693  With traditional version control systems there is one central server which hosts the repository.
35694  Users commit their changes to the server,
35695  and get updates made by other users from it.
35696  With GIT,
35697  users commit to a local repository.
35698  The local repository can be synchronized with one or more remote repositories using the 
35699 \begin_inset Flex Code
35700 status collapsed
35701
35702 \begin_layout Plain Layout
35703 pull
35704 \end_layout
35705
35706 \end_inset
35707
35708  and 
35709 \begin_inset Flex Code
35710 status collapsed
35711
35712 \begin_layout Plain Layout
35713 push
35714 \end_layout
35715
35716 \end_inset
35717
35718  GIT commands.
35719  \SpecialChar LyX
35720  does not interact in any way with remote GIT repositories.
35721  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
35722  If you use remote GIT repositories you need to do the 
35723 \begin_inset Flex Code
35724 status collapsed
35725
35726 \begin_layout Plain Layout
35727 pull
35728 \end_layout
35729
35730 \end_inset
35731
35732  and 
35733 \begin_inset Flex Code
35734 status collapsed
35735
35736 \begin_layout Plain Layout
35737 push
35738 \end_layout
35739
35740 \end_inset
35741
35742  operations with your favourite GIT client.
35743 \end_layout
35744
35745 \begin_layout Subsubsection
35746
35747 \family sans
35748 Register
35749 \end_layout
35750
35751 \begin_layout Standard
35752 If your document is not under revision control,
35753  this is the only item shown in the menu.
35754  And if it is under revision control,
35755  the 
35756 \family sans
35757 Register
35758 \family default
35759  item is not visible.
35760 \end_layout
35761
35762 \begin_layout Standard
35763 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
35764 \family typewriter
35765 .git/index
35766 \family default
35767  file exists).
35768  This means you have to checkout the archive by yourself.
35769 \end_layout
35770
35771 \begin_layout Standard
35772 Then you are asked interactively to supply an initial description of the document.
35773  Don't forget that registered file is not yet committed.
35774 \end_layout
35775
35776 \begin_layout Standard
35777 GIT command that is run:
35778  
35779 \family typewriter
35780 git add 
35781 \begin_inset Quotes qld
35782 \end_inset
35783
35784 <file-name>
35785 \begin_inset Quotes qld
35786 \end_inset
35787
35788
35789 \end_layout
35790
35791 \begin_layout Standard
35792 Read 
35793 \family typewriter
35794 man git
35795 \family default
35796  to understand the switches.
35797 \end_layout
35798
35799 \begin_layout Subsubsection
35800
35801 \family sans
35802 Check In Changes
35803 \end_layout
35804
35805 \begin_layout Standard
35806 When you are finished editing a file,
35807  you commit your changes.
35808  When you do this,
35809  you are asked for a description of the changes.
35810  After that changes are committed.
35811 \end_layout
35812
35813 \begin_layout Standard
35814 GIT command:
35815  
35816 \family typewriter
35817 git commit -q -m"<description>" <file-name>
35818 \end_layout
35819
35820 \begin_layout Subsubsection
35821
35822 \family sans
35823 Revert To Repository Version
35824 \end_layout
35825
35826 \begin_layout Standard
35827 This will discard all changes made to the document since the last check in.
35828  You get a warning before changes are discarded.
35829 \end_layout
35830
35831 \begin_layout Standard
35832 GIT command:
35833  
35834 \family typewriter
35835 git checkout -q 
35836 \begin_inset Quotes qld
35837 \end_inset
35838
35839 <file-name>
35840 \begin_inset Quotes qld
35841 \end_inset
35842
35843
35844 \end_layout
35845
35846 \begin_layout Subsubsection
35847
35848 \family sans
35849 Rename
35850 \end_layout
35851
35852 \begin_layout Standard
35853 This will rename the current document including the version history.
35854  It requires a clean document without any changes since the last checkin.
35855  You are asked for a file name and a description of the rename operation.
35856  After that the document is renamed,
35857  both locally and in the repository.
35858  If the parent directories of the new and old file names differ,
35859  all relative paths of included files are adjusted (like in 
35860 \family sans
35861 File\SpecialChar menuseparator
35862 Save As
35863 \family default
35864 \SpecialChar ldots
35865 ).
35866  Finally,
35867  the document is reloaded using the new name.
35868 \end_layout
35869
35870 \begin_layout Labeling
35871 \labelwidthstring 00.00.0000
35872 GIT
35873 \begin_inset space ~
35874 \end_inset
35875
35876 commands:
35877  
35878 \begin_inset space ~
35879 \end_inset
35880
35881
35882 \begin_inset Newline newline
35883 \end_inset
35884
35885
35886 \begin_inset Flex Code
35887 status collapsed
35888
35889 \begin_layout Plain Layout
35890 git mv 
35891 \family typewriter
35892
35893 \begin_inset Quotes qld
35894 \end_inset
35895
35896 <file-name>
35897 \begin_inset Quotes qld
35898 \end_inset
35899
35900  
35901 \begin_inset Quotes qld
35902 \end_inset
35903
35904 <new-file-name>
35905 \begin_inset Quotes qld
35906 \end_inset
35907
35908
35909 \end_layout
35910
35911 \end_inset
35912
35913
35914 \begin_inset Newline newline
35915 \end_inset
35916
35917
35918 \begin_inset Flex Code
35919 status collapsed
35920
35921 \begin_layout Plain Layout
35922 git commit
35923 \end_layout
35924
35925 \end_inset
35926
35927
35928 \end_layout
35929
35930 \begin_layout Subsubsection
35931
35932 \family sans
35933 Show History
35934 \end_layout
35935
35936 \begin_layout Standard
35937 This shows the complete history of the GIT document.
35938  The output of 
35939 \family typewriter
35940 git log 
35941 \begin_inset Quotes qld
35942 \end_inset
35943
35944 <file-name>
35945 \begin_inset Quotes qld
35946 \end_inset
35947
35948
35949 \family default
35950  is shown in a browser.
35951 \end_layout
35952
35953 \begin_layout Subsubsection
35954 Version Info
35955 \end_layout
35956
35957 \begin_layout Standard
35958 \SpecialChar LyX
35959  supports GIT hash number of the last commit to the file,
35960  
35961 \change_inserted 1119979965 1564297456
35962 its abbreviated form,
35963  
35964 \change_unchanged
35965 author name,
35966  date and time of last commit.
35967  All those are extracted from 
35968 \family typewriter
35969 git log -n 1 --pretty=format:%H%n
35970 \change_inserted 1119979965 1564297427
35971 %h%n
35972 \change_unchanged
35973 %an%n%ai
35974 \family default
35975 .
35976  Tree version information is obtained via 
35977 \family typewriter
35978 git describe --abbrev --dirty --long
35979 \family default
35980 .
35981  See 
35982 \begin_inset CommandInset ref
35983 LatexCommand ref
35984 reference "subsec:VCS-Revision-Information"
35985 nolink "false"
35986
35987 \end_inset
35988
35989  for other details.
35990 \end_layout
35991
35992 \begin_layout Subsection
35993 Further tuning
35994 \end_layout
35995
35996 \begin_layout Standard
35997 With the recent addition of the 
35998 \begin_inset Flex Code
35999 status collapsed
36000
36001 \begin_layout Plain Layout
36002 vc-command
36003 \end_layout
36004
36005 \end_inset
36006
36007  function \SpecialChar LyX
36008  power users are allowed to create their own commands for revision control.
36009 \end_layout
36010
36011 \begin_layout Standard
36012 As an example you can see how two TortoiseSVN commands could be integrated directly:
36013 \end_layout
36014
36015 \begin_layout Description
36016 Commit:
36017  
36018 \begin_inset Flex Code
36019 status collapsed
36020
36021 \begin_layout Plain Layout
36022 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
36023 \end_layout
36024
36025 \end_inset
36026
36027
36028 \end_layout
36029
36030 \begin_layout Description
36031 Revert:
36032  
36033 \begin_inset Flex Code
36034 status collapsed
36035
36036 \begin_layout Plain Layout
36037 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
36038 \end_layout
36039
36040 \end_inset
36041
36042
36043 \end_layout
36044
36045 \begin_layout Subsection
36046 Version control and Document comparison
36047 \end_layout
36048
36049 \begin_layout Standard
36050 One of the typical uses of version control is to inspect the changes between revisions,
36051  usually by creating 
36052 \begin_inset Flex Code
36053 status collapsed
36054
36055 \begin_layout Plain Layout
36056 diff
36057 \end_layout
36058
36059 \end_inset
36060
36061  dumps.
36062  While this is useful for plain text files,
36063  it is much less useful in the case of \SpecialChar LyX
36064  files,
36065  which have more a complicated structure.
36066  Hence we provide binding to the Document comparison feature.
36067  There are two ways of calling this feature – either by direct call of 
36068 \begin_inset Flex Code
36069 status collapsed
36070
36071 \begin_layout Plain Layout
36072 vc-compare
36073 \end_layout
36074
36075 \end_inset
36076
36077  \SpecialChar LyX
36078  function (for details see \SpecialChar LyX
36079  functions manual) or by the toolbar icon 
36080 \begin_inset Info
36081 type  "icon"
36082 arg   "vc-compare"
36083 \end_inset
36084
36085  or the menu item 
36086 \begin_inset Info
36087 type  "menu"
36088 arg   "vc-compare"
36089 \end_inset
36090
36091 ,
36092  respectively.
36093  One can either compare two chosen revisions of the document or he can simply compare the current version of edited text with older revisions (where '
36094 \begin_inset Flex Noun
36095 status collapsed
36096
36097 \begin_layout Plain Layout
36098 0
36099 \end_layout
36100
36101 \end_inset
36102
36103 ' revisions back means comparison of the edited file with last commited revision).
36104  
36105 \end_layout
36106
36107 \begin_layout Standard
36108 This feature is supported for SVN and RCS though due to the more complicated versioning scheme of RCS there is a constraint – when addressing the revisions in dialog,
36109  numbers always point to the last number in RCS revision number,
36110  i.e.
36111  '35' in '1.2.35'.
36112  We don't currently support GIT addressing of revisions,
36113  one can just compare edited document with its revision X steps backs,
36114  where X is addressed as 
36115 \begin_inset Flex Code
36116 status collapsed
36117
36118 \begin_layout Plain Layout
36119 HEAD~X
36120 \end_layout
36121
36122 \end_inset
36123
36124 .
36125 \end_layout
36126
36127 \begin_layout Section
36128
36129 \change_inserted 564990737 1672161575
36130 \begin_inset CommandInset label
36131 LatexCommand label
36132 name "sec:Literate-Programming"
36133
36134 \end_inset
36135
36136
36137 \change_unchanged
36138 Literate Programming
36139 \end_layout
36140
36141 \begin_layout Standard
36142 Updated by 
36143 \noun on
36144 Kayvan Sylvan 
36145 \noun default
36146 (kayvan@sylvan.com)
36147 \noun on
36148 ,
36149  
36150 \noun default
36151 original documentation written by 
36152 \noun on
36153 Edmar Wienskoski Jr.
36154
36155 \noun default
36156  (edmar-w-jr@technologist.com)
36157 \end_layout
36158
36159 \begin_layout Subsection
36160 Introduction
36161 \end_layout
36162
36163 \begin_layout Standard
36164 The main purpose of this documentation is to show you how to use \SpecialChar LyX
36165  for literate programming,
36166  where it is assumed that you are familiar with this programming technique,
36167  and know what 
36168 \begin_inset Quotes eld
36169 \end_inset
36170
36171 tangling
36172 \begin_inset Quotes erd
36173 \end_inset
36174
36175  and 
36176 \begin_inset Quotes eld
36177 \end_inset
36178
36179 weaving
36180 \begin_inset Quotes erd
36181 \end_inset
36182
36183  means.
36184  If that is not the case,
36185  please follow the web links provided in the following sections.
36186  There is a lot of good documentation out there covering old development history to the latest tools tips.
36187 \end_layout
36188
36189 \begin_layout Standard
36190 It is also assumed that you are familiar with \SpecialChar LyX
36191  itself to a point that you are comfortable changing your \SpecialChar LyX
36192  preferences,
36193  and X resources file.
36194  If that is not the case please refer to other \SpecialChar LyX
36195  documentation to cover your specific needs.
36196 \end_layout
36197
36198 \begin_layout Subsection
36199 Literate Programming
36200 \end_layout
36201
36202 \begin_layout Standard
36203 From the Literate Programming FAQ:
36204  
36205 \end_layout
36206
36207 \begin_layout Quotation
36208 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
36209  In fact,
36210  literate programs should be enjoyable reading,
36211  even inviting!
36212  (Sorry Bob,
36213  I couldn't resist!) In general,
36214  literate programs combine source and documentation in a single file.
36215  Literate programming tools then parse the file to produce either readable documentation or compilable source.
36216  The WEB style of literate programming was created by D.
36217 \begin_inset space \thinspace{}
36218 \end_inset
36219
36220 E.
36221  Knuth during the development of his \SpecialChar TeX
36222  typesetting software.
36223  
36224 \end_layout
36225
36226 \begin_layout Standard
36227 Another excerpt says:
36228 \end_layout
36229
36230 \begin_layout Quotation
36231
36232 \emph on
36233 How is literate programming different from verbose commenting?
36234 \end_layout
36235
36236 \begin_layout Quotation
36237 There are three distinguishing characteristics.
36238  In order of importance,
36239  they are:
36240  
36241 \end_layout
36242
36243 \begin_deeper
36244 \begin_layout Itemize
36245 flexible order of elaboration 
36246 \end_layout
36247
36248 \begin_layout Itemize
36249 automatic support for browsing 
36250 \end_layout
36251
36252 \begin_layout Itemize
36253 typeset documentation,
36254  especially diagrams and mathematics 
36255 \end_layout
36256
36257 \end_deeper
36258 \begin_layout Standard
36259 Now that I sparked your curiosity,
36260  take a look in the references.
36261 \end_layout
36262
36263 \begin_layout Subsubsection
36264 References
36265 \end_layout
36266
36267 \begin_layout Standard
36268 The complete Literate Programming FAQ can be found at:
36269 \end_layout
36270
36271 \begin_layout Quote
36272 Literate Programming FAQ 
36273 \begin_inset Flex URL
36274 status open
36275
36276 \begin_layout Plain Layout
36277
36278 http://www.literateprogramming.com/lpfaq.pdf
36279 \end_layout
36280
36281 \end_inset
36282
36283
36284 \end_layout
36285
36286 \begin_layout Standard
36287 The FAQ lists 23 (twenty three!) different literate programming tools.
36288  Where some are specialized or 
36289 \begin_inset Quotes eld
36290 \end_inset
36291
36292 tailored
36293 \begin_inset Quotes erd
36294 \end_inset
36295
36296  for particular programming languages,
36297  while other have general scope.
36298  I selected 
36299 \noun on
36300 Noweb
36301 \noun default
36302  for my own use for several reasons:
36303 \end_layout
36304
36305 \begin_layout Itemize
36306 It can generate the documentation either in \SpecialChar LaTeX
36307  or HTML.
36308 \end_layout
36309
36310 \begin_layout Itemize
36311 It has a open architecture,
36312  i.
36313 \begin_inset space \thinspace{}
36314 \end_inset
36315
36316 e.
36317 \begin_inset space \space{}
36318 \end_inset
36319
36320 it is easy to plug in new filters
36321 \begin_inset Foot
36322 status collapsed
36323
36324 \begin_layout Plain Layout
36325
36326 \emph on
36327 Filters 
36328 \emph default
36329 are programs that read a given data stream and output a manipulated data stream.
36330  That way,
36331  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
36332  code.
36333 \end_layout
36334
36335 \end_inset
36336
36337  and to perform special processing that you may need.
36338  
36339 \end_layout
36340
36341 \begin_layout Itemize
36342 There is a good selection of filters available already (the HTML is one of them).
36343 \end_layout
36344
36345 \begin_layout Itemize
36346 It is free.
36347 \end_layout
36348
36349 \begin_layout Standard
36350 The Noweb web page can be found at:
36351  
36352 \end_layout
36353
36354 \begin_layout Quote
36355 Noweb home page 
36356 \begin_inset Flex URL
36357 status collapsed
36358
36359 \begin_layout Plain Layout
36360
36361 https://www.cs.tufts.edu/~nr/noweb/
36362 \end_layout
36363
36364 \end_inset
36365
36366
36367 \end_layout
36368
36369 \begin_layout Standard
36370 Starting from there you can reach many other interesting links and even some literate program examples.
36371 \end_layout
36372
36373 \begin_layout Subsection
36374 \SpecialChar LyX
36375  and Literate Programming with Noweb
36376 \end_layout
36377
36378 \begin_layout Standard
36379 The \SpecialChar LyX
36380  support for Literate Programming is provided by using the generic \SpecialChar LyX
36381  converters mechanism.
36382  This support is provided in a 
36383 \begin_inset Quotes eld
36384 \end_inset
36385
36386 Noweb independent
36387 \begin_inset Quotes erd
36388 \end_inset
36389
36390  way,
36391  i.
36392 \begin_inset space \thinspace{}
36393 \end_inset
36394
36395 e.
36396 \begin_inset space \space{}
36397 \end_inset
36398
36399 you will be able to use this new \SpecialChar LyX
36400  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
36401  preferences.
36402 \end_layout
36403
36404 \begin_layout Subsubsection
36405 Generating documents and code (weaving and tangling)
36406 \end_layout
36407
36408 \begin_layout Paragraph
36409 Using the noweb module
36410 \end_layout
36411
36412 \begin_layout Standard
36413 If you have installed Noweb and \SpecialChar LyX
36414  successfully,
36415  whenever you open a new document,
36416  after you have chosen its document class,
36417  use the 
36418 \family sans
36419 Document\SpecialChar menuseparator
36420 Settings
36421 \family default
36422  menu to add the 
36423 \begin_inset Quotes eld
36424 \end_inset
36425
36426 noweb
36427 \begin_inset Quotes erd
36428 \end_inset
36429
36430  module.
36431  If Noweb is correctly installed,
36432  when you click on the 
36433 \begin_inset Quotes eld
36434 \end_inset
36435
36436 Modules
36437 \begin_inset Quotes erd
36438 \end_inset
36439
36440  link,
36441  you will see the 
36442 \begin_inset Quotes eld
36443 \end_inset
36444
36445 noweb
36446 \begin_inset Quotes erd
36447 \end_inset
36448
36449  module in the available list and you can add it to your document.
36450 \end_layout
36451
36452 \begin_layout Paragraph
36453 Typing code in
36454 \end_layout
36455
36456 \begin_layout Standard
36457 \SpecialChar LyX
36458  enables you to write code with a custom inset named 
36459 \begin_inset Flex Noun
36460 status collapsed
36461
36462 \begin_layout Plain Layout
36463 Chunk
36464 \end_layout
36465
36466 \end_inset
36467
36468 .
36469  Noweb delimits chunks like this:
36470 \end_layout
36471
36472 \begin_layout LyX-Code
36473 <<My code>>=
36474 \end_layout
36475
36476 \begin_layout LyX-Code
36477   code
36478 \end_layout
36479
36480 \begin_layout LyX-Code
36481   more code
36482 \end_layout
36483
36484 \begin_layout LyX-Code
36485   even more code
36486 \end_layout
36487
36488 \begin_layout LyX-Code
36489   @
36490 \end_layout
36491
36492 \begin_layout Standard
36493 The problem is that whatever is written in between the << and the 
36494 \family typewriter
36495 @
36496 \family default
36497  must be taken literally,
36498  i.
36499 \begin_inset space \thinspace{}
36500 \end_inset
36501
36502 e.
36503 \begin_inset space \space{}
36504 \end_inset
36505
36506 \SpecialChar LyX
36507  should be prevented from making any special interpretation of what has been written.
36508  This is also handled by 
36509 \begin_inset Flex Noun
36510 status collapsed
36511
36512 \begin_layout Plain Layout
36513 Chunk
36514 \end_layout
36515
36516 \end_inset
36517
36518 ,
36519  that works like a normal text inset but has a free spacing capability.
36520 \end_layout
36521
36522 \begin_layout Standard
36523 As a special note,
36524  you can also use the 
36525 \begin_inset Quotes eld
36526 \end_inset
36527
36528 %def
36529 \begin_inset Quotes erd
36530 \end_inset
36531
36532  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
36533 \end_layout
36534
36535 \begin_layout LyX-Code
36536 <<My chunk>>=
36537 \end_layout
36538
36539 \begin_layout LyX-Code
36540 def some_function(args):
36541 \end_layout
36542
36543 \begin_layout LyX-Code
36544    "This is the doc string for this function."
36545 \end_layout
36546
36547 \begin_layout LyX-Code
36548    print "My args:
36549  ",
36550  args
36551 \end_layout
36552
36553 \begin_layout LyX-Code
36554 @ %def some_function
36555 \end_layout
36556
36557 \begin_layout Standard
36558 For an example of this usage and the resulting cross-reference output,
36559  look at the Literate python program in 
36560 \emph on
36561 LIBDIR/examples/listerrors.lyx
36562 \emph default
36563  which should make this all clear.
36564 \end_layout
36565
36566 \begin_layout Paragraph
36567 Generating the documentation
36568 \end_layout
36569
36570 \begin_layout Standard
36571 At this point you already have a new document file with a proper document class,
36572  and with some code and text on it.
36573  How do I print it?
36574  The answer is simple,
36575  you select 
36576 \family sans
36577 View\SpecialChar menuseparator
36578 DVI,
36579
36580 \family default
36581  etc.
36582  Just like you would do for a plain document.
36583  No special procedure is required.
36584 \end_layout
36585
36586 \begin_layout Standard
36587 To help orientate you,
36588  I will now explain what happens inside \SpecialChar LyX
36589 :
36590 \end_layout
36591
36592 \begin_layout Enumerate
36593 When the 
36594 \family sans
36595 Update\SpecialChar menuseparator
36596 DVI
36597 \family default
36598  menu option is chosen,
36599  a \SpecialChar LaTeX
36600  file is generated.
36601  
36602 \end_layout
36603
36604 \begin_deeper
36605 \begin_layout Standard
36606 If the document is of any literate class the generated file will be named with an extension name defined by the 
36607 \begin_inset Quotes eld
36608 \end_inset
36609
36610 literate
36611 \begin_inset Quotes erd
36612 \end_inset
36613
36614  format (defined in the Preferences panel),
36615  otherwise the file will have the usual 
36616 \family typewriter
36617 .tex
36618 \family default
36619  extension.
36620 \end_layout
36621
36622 \end_deeper
36623 \begin_layout Enumerate
36624 Note that the only difference so far is in the name of the file,
36625  no special processing is required by \SpecialChar LyX
36626 .
36627  Given that you formatted the code using the 
36628 \begin_inset Flex Noun
36629 status collapsed
36630
36631 \begin_layout Plain Layout
36632 Chunk
36633 \end_layout
36634
36635 \end_inset
36636
36637  inset that,
36638  by itself,
36639  takes care of the business.
36640 \end_layout
36641
36642 \begin_layout Enumerate
36643 If the document is of any literate class \SpecialChar LyX
36644  will then use the internal \SpecialChar LyX
36645  to Noweb converter,
36646  followed by the Noweb to \SpecialChar LaTeX
36647  converter
36648 \begin_inset Foot
36649 status collapsed
36650
36651 \begin_layout Plain Layout
36652 The converters are defined in the 
36653 \family sans
36654 Tools\SpecialChar menuseparator
36655 Preferences
36656 \family default
36657  panel,
36658  under the 
36659 \begin_inset Quotes eld
36660 \end_inset
36661
36662 Conversion
36663 \begin_inset Quotes erd
36664 \end_inset
36665
36666  tab.
36667  See section 
36668 \emph on
36669 Converters
36670 \emph default
36671  of the 
36672 \emph on
36673 Customization
36674 \emph default
36675  manual for general information about converters.
36676 \end_layout
36677
36678 \end_inset
36679
36680  to generate the \SpecialChar LaTeX
36681  file.
36682 \end_layout
36683
36684 \begin_deeper
36685 \begin_layout Standard
36686 Otherwise it will just skip this step.
36687 \end_layout
36688
36689 \end_deeper
36690 \begin_layout Enumerate
36691 Finally,
36692  \SpecialChar LaTeX
36693  is invoked and the regular post processing continues as in a plain document.
36694 \end_layout
36695
36696 \begin_layout Standard
36697 Independence from a particular 
36698 \begin_inset Quotes eld
36699 \end_inset
36700
36701 literate tool
36702 \begin_inset Quotes erd
36703 \end_inset
36704
36705  is easily achieved by changing the commands that are run by the various converters.
36706 \end_layout
36707
36708 \begin_layout Paragraph
36709 Generating the code
36710 \end_layout
36711
36712 \begin_layout Standard
36713 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
36714  a \SpecialChar LaTeX
36715  file is generated just like step 1 above.
36716  Next,
36717  \SpecialChar LyX
36718  invokes the 
36719 \family typewriter
36720 Noweb->Program
36721 \family default
36722  converter.
36723  This converter needs to be defined by the user and is not installed by default,
36724  though the Program format is.
36725  This converter (like any other converter) will have two parts:
36726 \end_layout
36727
36728 \begin_layout Enumerate
36729 The converter program itself.
36730  This program performs the conversion from the one format to the other (in this case,
36731  from the Noweb format to the Program pseudo-format).
36732 \end_layout
36733
36734 \begin_layout Enumerate
36735 The error log parser.
36736  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
36737  understands.
36738  This makes it possible for \SpecialChar LyX
36739  to place error boxes in the right places in the file buffer.
36740 \end_layout
36741
36742 \begin_layout Standard
36743 The first part,
36744  the 
36745 \begin_inset Quotes eld
36746 \end_inset
36747
36748 Converter
36749 \begin_inset Quotes erd
36750 \end_inset
36751
36752  setting,
36753  should be set to
36754 \end_layout
36755
36756 \begin_layout LyX-Code
36757
36758 \family typewriter
36759 build-script $$i
36760 \family default
36761  $$r
36762 \end_layout
36763
36764 \begin_layout Standard
36765 This basically means that \SpecialChar LyX
36766  will call 
36767 \begin_inset Quotes eld
36768 \end_inset
36769
36770 build-script
36771 \begin_inset Quotes erd
36772 \end_inset
36773
36774  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
36775  temp directory) and the directory path of the original \SpecialChar LyX
36776  file.
36777  
36778 \end_layout
36779
36780 \begin_layout Standard
36781 This is an implementation of 
36782 \begin_inset Quotes eld
36783 \end_inset
36784
36785 build-script
36786 \begin_inset Quotes erd
36787 \end_inset
36788
36789  that you can place in a directory on your path:
36790 \end_layout
36791
36792 \begin_layout LyX-Code
36793
36794 \family sans
36795 #!/bin/sh
36796 \end_layout
36797
36798 \begin_layout LyX-Code
36799
36800 \family sans
36801 #
36802 \end_layout
36803
36804 \begin_layout LyX-Code
36805
36806 \family sans
36807 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
36808 \end_layout
36809
36810 \begin_layout Standard
36811 The next part of the converter setting is the 
36812 \begin_inset Quotes eld
36813 \end_inset
36814
36815 Flags
36816 \begin_inset Quotes erd
36817 \end_inset
36818
36819  which is to be set to
36820 \end_layout
36821
36822 \begin_layout LyX-Code
36823
36824 \family typewriter
36825 parselog=$$s/scripts/listerrors
36826 \end_layout
36827
36828 \begin_layout Standard
36829 This will run any errors that are generated by the 
36830 \begin_inset Quotes eld
36831 \end_inset
36832
36833 build-script
36834 \begin_inset Quotes erd
36835 \end_inset
36836
36837  process through the 
36838 \begin_inset Quotes eld
36839 \end_inset
36840
36841 listerrors
36842 \begin_inset Quotes erd
36843 \end_inset
36844
36845  program.
36846 \end_layout
36847
36848 \begin_layout Standard
36849 The build will normally take place in \SpecialChar LyX
36850 's temporary directory,
36851  so the files produced by the conversion will be in that directory.
36852  \SpecialChar LyX
36853  will copy out what it regards as the `main' file,
36854  but the 
36855 \family typewriter
36856 Noweb->Program
36857 \family default
36858  conversion may produce several files,
36859  and so most of these would then be deleted when \SpecialChar LyX
36860  was closed.
36861  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that the build-script chunk can place the generated files in that location.
36862 \end_layout
36863
36864 \begin_layout Paragraph
36865 Build instructions in the document
36866 \end_layout
36867
36868 \begin_layout Standard
36869 The last piece of the integration between \SpecialChar LyX
36870  and noweb is the 
36871 \begin_inset Quotes eld
36872 \end_inset
36873
36874 build-script
36875 \begin_inset Quotes erd
36876 \end_inset
36877
36878  chunk.
36879  Generally,
36880  the instructions for building your program should be embedded in a chunk of its own.
36881  The noweb-specific 
36882 \begin_inset Quotes eld
36883 \end_inset
36884
36885 build-script
36886 \begin_inset Quotes erd
36887 \end_inset
36888
36889  above uses the notangle command to look for this chunk (called 
36890 \begin_inset Quotes eld
36891 \end_inset
36892
36893 build-script
36894 \begin_inset Quotes erd
36895 \end_inset
36896
36897 ) and runs its contents through 
36898 \begin_inset Quotes eld
36899 \end_inset
36900
36901 sh
36902 \begin_inset Quotes erd
36903 \end_inset
36904
36905 .
36906 \end_layout
36907
36908 \begin_layout Standard
36909 Typically,
36910  such a chunk would look something like this:
36911 \end_layout
36912
36913 \begin_layout LyX-Code
36914 <<build-script>>=
36915 \end_layout
36916
36917 \begin_layout LyX-Code
36918 #!/bin/sh
36919 \begin_inset Newline newline
36920 \end_inset
36921
36922 if [ -z "${NOWEB_SOURCE}" ]
36923 \begin_inset Newline newline
36924 \end_inset
36925
36926 then
36927 \end_layout
36928
36929 \begin_layout LyX-Code
36930 NOWEB_SOURCE=myfile.nw
36931 \begin_inset Newline newline
36932 \end_inset
36933
36934 fi
36935 \begin_inset Newline newline
36936 \end_inset
36937
36938 [...
36939  code to extract files ...
36940  use NOWEB_OUTPUT_DIR here ...]
36941 \begin_inset Newline newline
36942 \end_inset
36943
36944 [...
36945  code to compile files ...]
36946 \begin_inset Newline newline
36947 \end_inset
36948
36949 @
36950 \end_layout
36951
36952 \begin_layout Standard
36953 Look in 
36954 \change_deleted 564990737 1672161716
36955
36956 \emph on
36957 LIBDIR/examples/listerrors.lyx
36958 \emph default
36959  or in 
36960 \emph on
36961 LIBDIR/examples/Literate.lyx
36962 \change_inserted 564990737 1672161716
36963
36964 \family sans
36965 \emph default
36966 File\SpecialChar menuseparator
36967 Open Example\SpecialChar menuseparator
36968 Modules\SpecialChar menuseparator
36969 Noweb Listerrors
36970 \change_unchanged
36971
36972 \family default
36973  which implement 
36974 \change_deleted 564990737 1672161729
36975 two 
36976 \change_unchanged
36977 versions of the 
36978 \begin_inset Quotes eld
36979 \end_inset
36980
36981 listerrors
36982 \begin_inset Quotes erd
36983 \end_inset
36984
36985  program for some illustrations of how all of these pieces go together or in 
36986 \change_deleted 564990737 1672161756
36987
36988 \emph on
36989 LIBDIR/examples/noweb2lyx.lyx
36990 \change_inserted 564990737 1672161756
36991
36992 \family sans
36993 \emph default
36994 File\SpecialChar menuseparator
36995 Open Example\SpecialChar menuseparator
36996 Modules\SpecialChar menuseparator
36997 Noweb2\SpecialChar LyX
36998
36999 \change_unchanged
37000
37001 \family default
37002 \emph on
37003 .
37004
37005 \emph default
37006  Interestingly,
37007  these 
37008 \change_deleted 564990737 1672161767
37009 three 
37010 \change_unchanged
37011 files show off the language-indepence of the \SpecialChar LyX
37012  literate programming support since they are written in Python
37013 \change_deleted 564990737 1672161782
37014 ,
37015  C
37016 \change_unchanged
37017  and Perl respectively.
37018 \end_layout
37019
37020 \begin_layout Subsubsection
37021 Configuring \SpecialChar LyX
37022
37023 \end_layout
37024
37025 \begin_layout Standard
37026 All the Literate Programming support is configured by the 
37027 \family sans
37028 Tools\SpecialChar menuseparator
37029 Preferences
37030 \family default
37031  panel in the 
37032 \begin_inset Quotes eld
37033 \end_inset
37034
37035 File Handling
37036 \begin_inset Quotes erd
37037 \end_inset
37038
37039  tab.
37040  The important parts are:
37041 \end_layout
37042
37043 \begin_layout Description
37044 the
37045 \begin_inset space ~
37046 \end_inset
37047
37048
37049 \begin_inset Quotes eld
37050 \end_inset
37051
37052 NoWeb
37053 \begin_inset Quotes erd
37054 \end_inset
37055
37056
37057 \begin_inset space ~
37058 \end_inset
37059
37060 format Set up via the File Formats tab,
37061  this is where the Noweb-specific pieces are set up.
37062  The 
37063 \family sans
37064 GUI Name
37065 \family default
37066  is set to 
37067 \family typewriter
37068 NoWeb
37069 \family default
37070 ,
37071  the file extension is set to 
37072 \family typewriter
37073 .nw
37074 \family default
37075 .
37076  This tells \SpecialChar LyX
37077  to create a file with a 
37078 \family typewriter
37079 .nw
37080 \family default
37081  extension in the first step of the conversion process.
37082 \end_layout
37083
37084 \begin_layout Description
37085 the
37086 \begin_inset space ~
37087 \end_inset
37088
37089
37090 \family sans
37091 Program
37092 \family default
37093
37094 \begin_inset space ~
37095 \end_inset
37096
37097 format This is an empty format whose sole purpose is to be the endpoint of a conversion (which then allows us to set up a converter for it).
37098 \end_layout
37099
37100 \begin_layout Description
37101
37102 \family sans
37103 NoWeb
37104 \family default
37105 ->
37106 \family sans
37107 \SpecialChar LaTeX
37108
37109 \family default
37110  This converter performs the 
37111 \begin_inset Quotes eld
37112 \end_inset
37113
37114 weaving
37115 \begin_inset Quotes erd
37116 \end_inset
37117
37118  of the literate document.
37119  For Noweb,
37120  it is set to 
37121 \begin_inset Quotes eld
37122 \end_inset
37123
37124
37125 \family typewriter
37126 noweave -delay -index $$i > $$o
37127 \family default
37128
37129 \begin_inset Quotes erd
37130 \end_inset
37131
37132
37133 \end_layout
37134
37135 \begin_layout Description
37136
37137 \family sans
37138 NoWeb
37139 \family default
37140 ->
37141 \family sans
37142 Program
37143 \family default
37144  This performs the 
37145 \begin_inset Quotes eld
37146 \end_inset
37147
37148 tangling step
37149 \begin_inset Quotes erd
37150 \end_inset
37151
37152 .
37153  As stated above,
37154  the Converter is set to 
37155 \begin_inset Quotes eld
37156 \end_inset
37157
37158
37159 \family typewriter
37160 build-script $$i
37161 \family default
37162  $$r
37163 \begin_inset Quotes erd
37164 \end_inset
37165
37166 ,
37167  with Flags set to
37168 \begin_inset Newline newline
37169 \end_inset
37170
37171
37172 \begin_inset Quotes eld
37173 \end_inset
37174
37175
37176 \family typewriter
37177 parselog=$$s/scripts/listerrors
37178 \family default
37179
37180 \begin_inset Quotes erd
37181 \end_inset
37182
37183 .
37184 \end_layout
37185
37186 \begin_layout Subsubsection
37187 Debug extensions
37188 \end_layout
37189
37190 \begin_layout Standard
37191 There is also a new function implemented in the \SpecialChar LyX
37192  server,
37193  the 
37194 \begin_inset Quotes eld
37195 \end_inset
37196
37197 server-goto-file-row" function,
37198  to be used with ddd/gdb or other debugger.
37199  
37200 \end_layout
37201
37202 \begin_layout Standard
37203 When debugging code with ddd/gdb,
37204  it is possible to invoke a text editor at the current execution position with a single key stroke.
37205  The default ddd configuration for that is shift-ctrl-V.
37206  It happens that you can define the editor command line invocation in ddd by accessing the 
37207 \family sans
37208 Edit\SpecialChar menuseparator
37209 Preferences\SpecialChar menuseparator
37210 Helpers
37211 \family default
37212  dialog and changing the "Edit Sources" entry.
37213 \end_layout
37214
37215 \begin_layout Standard
37216 I take advantage of the newly created \SpecialChar LyX
37217  server function and this ddd feature,
37218  and set 
37219 \begin_inset Quotes eld
37220 \end_inset
37221
37222 Edit Sources
37223 \begin_inset Quotes erd
37224 \end_inset
37225
37226  to:
37227 \end_layout
37228
37229 \begin_layout LyX-Code
37230 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
37231 \end_layout
37232
37233 \begin_layout Standard
37234 With this,
37235  whenever you are using ddd and find a point in the program that you want to edit,
37236  you just press shift-ctrl-V (in the ddd window),
37237  and ddd will forward this information to \SpecialChar LyX
37238  through the \SpecialChar LyX
37239  server and then the \SpecialChar LyX
37240  window will show the same file with the cursor at the same position ddd was pointing to.
37241  No more guessing or long scrolling to locate a point in the program back from debugging !
37242 \end_layout
37243
37244 \begin_layout Standard
37245 Note however that you must enable the \SpecialChar LyX
37246  server to get this feature working (it is disabled by default).
37247  Sec.
37248 \begin_inset space ~
37249 \end_inset
37250
37251
37252 \begin_inset CommandInset ref
37253 LatexCommand ref
37254 reference "sec:Starting-the-Server"
37255 nolink "false"
37256
37257 \end_inset
37258
37259  explains how to do that.
37260 \end_layout
37261
37262 \begin_layout Subsubsection
37263 Toolbar extensions
37264 \end_layout
37265
37266 \begin_layout Standard
37267 There are six new buttons that can be added to your \SpecialChar LyX
37268  toolbar.
37269  Four of these buttons are short cuts to layout styles:
37270  
37271 \family sans
37272 Standard
37273 \family default
37274 ,
37275  
37276 \family sans
37277 Section
37278 \family default
37279 ,
37280  
37281 \family sans
37282 \SpecialChar LaTeX
37283
37284 \family default
37285 ,
37286  and 
37287 \family sans
37288 \SpecialChar LyX
37289 -Code
37290 \family default
37291 ,
37292  one for the custom inset 
37293 \family sans
37294 Chunk
37295 \family default
37296 .
37297  The last one is a short cut to the 
37298 \begin_inset Quotes eld
37299 \end_inset
37300
37301 Build Program
37302 \begin_inset Quotes erd
37303 \end_inset
37304
37305  File menu entry.
37306  
37307 \end_layout
37308
37309 \begin_layout Standard
37310 \SpecialChar LyX
37311  has a range of buttons that are available for tool bar customization.
37312  In my toolbar I like to combine the six short cuts above with two more:
37313  One for 
37314 \family sans
37315 Document
37316 \family default
37317 \SpecialChar menuseparator
37318
37319 \family sans
37320 Update
37321 \family default
37322 \SpecialChar menuseparator
37323
37324 \family sans
37325 DVI
37326 \family default
37327  and the other for 
37328 \family sans
37329 Document\SpecialChar menuseparator
37330 View\SpecialChar menuseparator
37331 DVI
37332 \family default
37333  File menu entries.
37334  Here is how it looks like:
37335 \end_layout
37336
37337 \begin_layout LyX-Code
37338 Toolbar
37339 \end_layout
37340
37341 \begin_layout LyX-Code
37342   Layouts
37343 \end_layout
37344
37345 \begin_layout LyX-Code
37346   Icon "layout Standard"
37347 \end_layout
37348
37349 \begin_layout LyX-Code
37350   Icon "layout Section"
37351 \end_layout
37352
37353 \begin_layout LyX-Code
37354   Icon "layout \SpecialChar LaTeX
37355 "
37356 \end_layout
37357
37358 \begin_layout LyX-Code
37359   Icon "layout \SpecialChar LyX
37360 -Code"
37361 \end_layout
37362
37363 \begin_layout LyX-Code
37364   Icon "flex.insert Chunk"
37365 \end_layout
37366
37367 \begin_layout LyX-Code
37368   Separator
37369 \end_layout
37370
37371 \begin_layout LyX-Code
37372   Icon "buffer-view"
37373 \end_layout
37374
37375 \begin_layout LyX-Code
37376   Icon "buffer-typeset"
37377 \end_layout
37378
37379 \begin_layout LyX-Code
37380   Icon "build-program"
37381 \end_layout
37382
37383 \begin_layout LyX-Code
37384   Separator
37385 \end_layout
37386
37387 \begin_layout LyX-Code
37388 .
37389 \end_layout
37390
37391 \begin_layout LyX-Code
37392 .
37393 \end_layout
37394
37395 \begin_layout LyX-Code
37396 .
37397 \end_layout
37398
37399 \begin_layout LyX-Code
37400 End
37401 \end_layout
37402
37403 \begin_layout Subsubsection
37404 Colors customization
37405 \end_layout
37406
37407 \begin_layout Standard
37408 There are a number of colors in \SpecialChar LyX
37409  that can be customized in 
37410 \family sans
37411 Preferences
37412 \family default
37413 .
37414  One of the things that bothers people is the \SpecialChar LaTeX
37415  font color.
37416  The default color is red,
37417  since the chunks uses \SpecialChar LaTeX
37418  font,
37419  and there is a lot of chunks in literate documents,
37420  you may get tired of seeing everything in red.
37421  You can change it by going to the tabs 
37422 \family sans
37423 Look&Feel
37424 \family default
37425 ,
37426  
37427 \family sans
37428 Colors.
37429 \end_layout
37430
37431 \begin_layout Standard
37432 The next thing is the visible presence of the newline character in the screen.
37433  You can choose the color of this particular character and make it blend in the background.
37434  I recommend you choosing a color that is close to the background but not equal,
37435  that way you still can see it is there,
37436  but it is not bothering you anymore.
37437 \end_layout
37438
37439 \begin_layout Subsection
37440 \SpecialChar LyX
37441  and knitr/Sweave
37442 \end_layout
37443
37444 \begin_layout Standard
37445 Support for 
37446 \family sans
37447 knitr
37448 \family default
37449  and 
37450 \family sans
37451 Sweave
37452 \family default
37453  is documented in
37454 \change_inserted 564990737 1672161863
37455  
37456 \family sans
37457 Help\SpecialChar menuseparator
37458 Specific Manuals\SpecialChar menuseparator
37459 Knitr
37460 \family default
37461  and
37462 \change_unchanged
37463  
37464 \change_deleted 564990737 1671643409
37465 the 
37466 \emph on
37467 knitr.lyx
37468 \emph default
37469  example file
37470 \change_inserted 564990737 1672161856
37471
37472 \family sans
37473 File\SpecialChar menuseparator
37474 Open Example\SpecialChar menuseparator
37475 Modules\SpecialChar menuseparator
37476 Rnw (knitr)
37477 \change_unchanged
37478
37479 \family default
37480  and in 
37481 \change_deleted 564990737 1671643461
37482 the Sweave manual (menu 
37483 \family sans
37484 Help\SpecialChar menuseparator
37485 Specific Manuals
37486 \family default
37487 )
37488 \change_inserted 564990737 1672161856
37489
37490 \family sans
37491 Help\SpecialChar menuseparator
37492 Specific Manuals\SpecialChar menuseparator
37493 Sweave
37494 \change_deleted 564990737 1672161921
37495
37496 \family default
37497 .
37498
37499 \change_inserted 564990737 1672161917
37500  and 
37501 \family sans
37502 File\SpecialChar menuseparator
37503 Open Example\SpecialChar menuseparator
37504 Modules\SpecialChar menuseparator
37505 Sweave
37506 \family default
37507 .
37508 \change_deleted 564990737 1672742969
37509
37510 \end_layout
37511
37512 \begin_layout Standard
37513
37514 \change_deleted 564990737 1671355343
37515 Special features
37516 \end_layout
37517
37518 \begin_layout Standard
37519
37520 \change_deleted 564990737 1671355343
37521 You can do everything with \SpecialChar LyX
37522  that you can do with \SpecialChar LaTeX
37523 .
37524  However,
37525  \SpecialChar LyX
37526  cannot support every \SpecialChar LaTeX
37527  feature directly.
37528  But you can always use \SpecialChar TeX
37529  Code.
37530  This chapter shows you some more special things you might want to use.
37531  For other special things you can do with figures,
37532  tables,
37533  floats,
37534  boxes and notes,
37535  have a look at the 
37536 \emph on
37537 Embedded
37538 \begin_inset space ~
37539 \end_inset
37540
37541 Objects
37542 \emph default
37543  manual.
37544 \change_unchanged
37545
37546 \end_layout
37547
37548 \end_body
37549 \end_document