]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Additional.lyx: fix "origin" arg of rotate box
[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 \backslash
17229 bf{
17230 \backslash
17231 arabic{enumiii}}
17232 \end_layout
17233
17234 \end_inset
17235
17236
17237 \change_unchanged
17238
17239 \end_layout
17240
17241 \end_inset
17242
17243 Level 3
17244 \begin_inset Separator latexpar
17245 \end_inset
17246
17247
17248 \end_layout
17249
17250 \begin_deeper
17251 \begin_layout Enumerate
17252
17253 \change_inserted 564990737 1672138150
17254 \begin_inset Argument 1
17255 status collapsed
17256
17257 \begin_layout Plain Layout
17258
17259 \change_inserted 564990737 1672138150
17260 \begin_inset ERT
17261 status collapsed
17262
17263 \begin_layout Plain Layout
17264
17265 \change_inserted 564990737 1672138150
17266
17267 label=
17268 \backslash
17269 emph{
17270 \backslash
17271 roman{enumiv})}
17272 \end_layout
17273
17274 \end_inset
17275
17276
17277 \change_unchanged
17278
17279 \end_layout
17280
17281 \end_inset
17282
17283 Level 4
17284 \end_layout
17285
17286 \end_deeper
17287 \end_deeper
17288 \end_deeper
17289 \begin_layout Standard
17290
17291 \change_inserted 564990737 1672138150
17292 For this list these commands were used:
17293 \end_layout
17294
17295 \begin_layout Standard
17296 \noindent
17297
17298 \change_inserted 564990737 1672138150
17299
17300 \family sans
17301 label=
17302 \backslash
17303 #
17304 \backslash
17305 Alph{enumi}
17306 \backslash
17307 #
17308 \begin_inset Newline newline
17309 \end_inset
17310
17311 label=
17312 \backslash
17313 Alph{enumi}.
17314 \backslash
17315 arabic{enumii}
17316 \begin_inset Newline newline
17317 \end_inset
17318
17319 label=
17320 \backslash
17321 bf{
17322 \backslash
17323 arabic{enumiii}}
17324 \begin_inset Newline newline
17325 \end_inset
17326
17327 label=
17328 \backslash
17329 emph{
17330 \backslash
17331 roman{enumiv})}
17332 \end_layout
17333
17334 \begin_layout Standard
17335
17336 \change_inserted 564990737 1672138150
17337 where the command 
17338 \family sans
17339
17340 \backslash
17341 emph{}
17342 \family default
17343  makes the label emphasized and 
17344 \family sans
17345
17346 \backslash
17347 bf{}
17348 \family default
17349  makes it bold.
17350 \end_layout
17351
17352 \begin_layout Standard
17353
17354 \change_inserted 564990737 1672138150
17355 \begin_inset Note Greyedout
17356 status collapsed
17357
17358 \begin_layout Plain Layout
17359
17360 \change_inserted 564990737 1672138150
17361
17362 \series bold
17363 Note:
17364
17365 \series default
17366  When you change the label of a list level,
17367  it will be used for all following lists until you change the definition.
17368 \end_layout
17369
17370 \end_inset
17371
17372
17373 \end_layout
17374
17375 \begin_layout Standard
17376
17377 \change_inserted 564990737 1672138150
17378 \begin_inset ERT
17379 status open
17380
17381 \begin_layout Plain Layout
17382
17383 \change_inserted 564990737 1672138150
17384
17385
17386 \backslash
17387 renewcommand{
17388 \backslash
17389 labelenumi}{
17390 \backslash
17391 thesection.
17392 \backslash
17393 arabic{enumi}}
17394 \end_layout
17395
17396 \end_inset
17397
17398
17399 \end_layout
17400
17401 \begin_layout Subsubsection
17402
17403 \change_inserted 564990737 1672138150
17404 Numbered Paragraphs in Reports
17405 \end_layout
17406
17407 \begin_layout Enumerate
17408
17409 \change_inserted 564990737 1672138213
17410 Official reports often include numbered paragraphs;
17411  you can achieve this with a variation on the approach outlined in the footnote
17412 \begin_inset space ~
17413 \end_inset
17414
17415
17416 \begin_inset CommandInset ref
17417 LatexCommand ref
17418 reference "fn:If-you-really"
17419 plural "false"
17420 caps "false"
17421 noprefix "false"
17422 nolink "false"
17423
17424 \end_inset
17425
17426 .
17427  Replace 
17428 \family sans
17429 item
17430 \family default
17431  in each command with 
17432 \family sans
17433 enum
17434 \family default
17435 .
17436 \end_layout
17437
17438 \begin_layout Enumerate
17439
17440 \change_inserted 564990737 1672138150
17441 These numbered paragraphs were generated by inserting the \SpecialChar TeX
17442  Code
17443 \begin_inset Separator latexpar
17444 \end_inset
17445
17446
17447 \end_layout
17448
17449 \begin_deeper
17450 \begin_layout Standard
17451
17452 \change_inserted 564990737 1672138150
17453
17454 \family sans
17455
17456 \backslash
17457 renewcommand{
17458 \backslash
17459 labelenumi}{
17460 \backslash
17461 thesection.
17462 \backslash
17463 arabic{enumi}}
17464 \end_layout
17465
17466 \begin_layout Standard
17467
17468 \change_inserted 564990737 1672138150
17469 before the start of the section;
17470  
17471 \family sans
17472
17473 \backslash
17474 thesection
17475 \family default
17476  uses the \SpecialChar LaTeX
17477  section counter to generate the first part of the number.
17478 \end_layout
17479
17480 \end_deeper
17481 \begin_layout Enumerate
17482
17483 \change_inserted 564990737 1672138150
17484 I have ignored the subsection heading in this example because,
17485  with paragraphs numbered in this way,
17486  subsections are less likely to be used.
17487 \end_layout
17488
17489 \begin_layout Subsubsection
17490
17491 \change_inserted 564990737 1672138150
17492 Resumed Enumeration
17493 \end_layout
17494
17495 \begin_layout Standard
17496
17497 \change_inserted 564990737 1672138150
17498 \begin_inset ERT
17499 status open
17500
17501 \begin_layout Plain Layout
17502
17503 \change_inserted 564990737 1672138150
17504
17505
17506 \backslash
17507 renewcommand{
17508 \backslash
17509 labelenumi}{
17510 \backslash
17511 arabic{enumi}}
17512 \end_layout
17513
17514 \end_inset
17515
17516
17517 \end_layout
17518
17519 \begin_layout Standard
17520
17521 \change_inserted 564990737 1672138150
17522 Enumerations can be resumed after intermediate paragraphs:
17523 \end_layout
17524
17525 \begin_layout Enumerate
17526
17527 \change_inserted 564990737 1672138150
17528 \begin_inset Argument 1
17529 status collapsed
17530
17531 \begin_layout Plain Layout
17532
17533 \change_inserted 564990737 1672138150
17534 \begin_inset ERT
17535 status collapsed
17536
17537 \begin_layout Plain Layout
17538
17539 \change_inserted 564990737 1672138150
17540
17541 label=
17542 \backslash
17543 arabic{enumi}.
17544 \end_layout
17545
17546 \end_inset
17547
17548
17549 \change_unchanged
17550
17551 \end_layout
17552
17553 \end_inset
17554
17555 first
17556 \begin_inset Note Note
17557 status collapsed
17558
17559 \begin_layout Plain Layout
17560
17561 \change_inserted 564990737 1672138150
17562 goes back to default numbering
17563 \end_layout
17564
17565 \end_inset
17566
17567
17568 \end_layout
17569
17570 \begin_layout Enumerate
17571
17572 \change_inserted 564990737 1672138150
17573 second
17574 \end_layout
17575
17576 \begin_layout Standard
17577
17578 \change_inserted 564990737 1672138150
17579 regular text
17580 \end_layout
17581
17582 \begin_layout Enumerate-Resume
17583
17584 \change_inserted 564990737 1672138150
17585 resumed
17586 \end_layout
17587
17588 \begin_layout Standard
17589
17590 \change_inserted 564990737 1672138150
17591 To resume an enumeration,
17592  use the style 
17593 \family sans
17594 Enumerate-Resume
17595 \family default
17596 .
17597  Its numbering appears in blue within \SpecialChar LyX
17598  to indicate that it is a resumed list and that the numbering will not be correct in \SpecialChar LyX
17599 ,
17600  but in the output.
17601 \end_layout
17602
17603 \begin_layout Standard
17604
17605 \change_inserted 564990737 1672138150
17606 \begin_inset Note Greyedout
17607 status collapsed
17608
17609 \begin_layout Plain Layout
17610
17611 \change_inserted 564990737 1672138150
17612
17613 \series bold
17614 Note:
17615
17616 \series default
17617  If there is no previous enumeration to resume,
17618  you will get a \SpecialChar LaTeX
17619  error.
17620 \end_layout
17621
17622 \end_inset
17623
17624
17625 \end_layout
17626
17627 \begin_layout Standard
17628
17629 \change_inserted 564990737 1672138150
17630 Perhaps you might want to resume the list with a different number from the next one.
17631  Or you want to start a new enumeration with a defined number.
17632  This is possible by adding an optional argument to the first list item of a normal enumeration.
17633  There,
17634  insert the command
17635 \end_layout
17636
17637 \begin_layout Standard
17638
17639 \change_inserted 564990737 1672138150
17640
17641 \family sans
17642 start=number
17643 \end_layout
17644
17645 \begin_layout Standard
17646
17647 \change_inserted 564990737 1672138150
17648 where 
17649 \family sans
17650 number
17651 \family default
17652  is the number with which you want to resume the list.
17653  An example:
17654 \end_layout
17655
17656 \begin_layout Enumerate
17657
17658 \change_inserted 564990737 1672138150
17659 first item
17660 \end_layout
17661
17662 \begin_layout Enumerate
17663
17664 \change_inserted 564990737 1672138150
17665 second item
17666 \end_layout
17667
17668 \begin_layout Standard
17669
17670 \change_inserted 564990737 1672138150
17671 Enumeration starting at a given value:
17672 \end_layout
17673
17674 \begin_layout Enumerate
17675
17676 \change_inserted 564990737 1672138150
17677 \begin_inset Argument 1
17678 status open
17679
17680 \begin_layout Plain Layout
17681
17682 \change_inserted 564990737 1672138150
17683 \begin_inset ERT
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687
17688 \change_inserted 564990737 1672138150
17689
17690 start=4
17691 \end_layout
17692
17693 \end_inset
17694
17695
17696 \change_unchanged
17697
17698 \end_layout
17699
17700 \end_inset
17701
17702 This enumeration starts at 4
17703 \end_layout
17704
17705 \begin_layout Subsubsection
17706
17707 \change_inserted 564990737 1672138150
17708 List Spacing
17709 \begin_inset Index idx
17710 range none
17711 pageformat default
17712 status collapsed
17713
17714 \begin_layout Plain Layout
17715
17716 \change_inserted 564990737 1672138150
17717 Lists !
17718  Spacing
17719 \change_unchanged
17720
17721 \end_layout
17722
17723 \end_inset
17724
17725
17726 \end_layout
17727
17728 \begin_layout Standard
17729
17730 \change_inserted 564990737 1672138150
17731 In some cases you might want less or more vertical space between the items of a list.
17732  For example if the default space is too much in your opinion in this case:
17733 \end_layout
17734
17735 \begin_layout Itemize
17736
17737 \change_inserted 564990737 1672138150
17738 A bullet list
17739 \end_layout
17740
17741 \begin_layout Itemize
17742
17743 \change_inserted 564990737 1672138150
17744 with standard spacing 
17745 \end_layout
17746
17747 \begin_layout Standard
17748
17749 \change_inserted 564990737 1672138150
17750 You can decrease the space by adding an optional argument to the first item of the list.
17751  Add there the command 
17752 \family sans
17753 nolistsep
17754 \family default
17755  to get no additional list space like in this example:
17756 \end_layout
17757
17758 \begin_layout Itemize
17759
17760 \change_inserted 564990737 1672138150
17761 \begin_inset Argument 1
17762 status open
17763
17764 \begin_layout Plain Layout
17765
17766 \change_inserted 564990737 1672138150
17767 \begin_inset ERT
17768 status collapsed
17769
17770 \begin_layout Plain Layout
17771
17772 \change_inserted 564990737 1672138150
17773
17774 nolistsep
17775 \end_layout
17776
17777 \end_inset
17778
17779
17780 \change_unchanged
17781
17782 \end_layout
17783
17784 \end_inset
17785
17786 A bullet list
17787 \end_layout
17788
17789 \begin_layout Itemize
17790
17791 \change_inserted 564990737 1672138150
17792 without additional
17793 \end_layout
17794
17795 \begin_layout Itemize
17796
17797 \change_inserted 564990737 1672138150
17798 vertical space
17799 \end_layout
17800
17801 \begin_layout Standard
17802
17803 \change_inserted 564990737 1672138150
17804 To add space you can use several other commands provided by the 
17805 \family sans
17806 enumitem
17807 \family default
17808
17809 \begin_inset Index idx
17810 range none
17811 pageformat default
17812 status collapsed
17813
17814 \begin_layout Plain Layout
17815
17816 \change_inserted 564990737 1672138150
17817 \SpecialChar LaTeX
17818 -packages !
17819  enumitem
17820 \change_unchanged
17821
17822 \end_layout
17823
17824 \end_inset
17825
17826  package.
17827  For more information see the 
17828 \begin_inset CommandInset href
17829 LatexCommand href
17830 name "enumitem documentation"
17831 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
17832 literal "false"
17833
17834 \end_inset
17835
17836 .
17837 \end_layout
17838
17839 \begin_layout Standard
17840
17841 \change_inserted 564990737 1672138150
17842 There are also many commands available to change the horizontal spacing and indentation.
17843  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
17844 \begin_inset space \thinspace{}
17845 \end_inset
17846
17847 cm so that the number is in the page margin:
17848 \end_layout
17849
17850 \begin_layout Enumerate
17851
17852 \change_inserted 564990737 1672138150
17853 \begin_inset Argument 1
17854 status open
17855
17856 \begin_layout Plain Layout
17857
17858 \change_inserted 564990737 1672138150
17859 \begin_inset ERT
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863
17864 \change_inserted 564990737 1672138150
17865
17866 labelindent=
17867 \backslash
17868 parindent,
17869  labelsep=2cm
17870 \end_layout
17871
17872 \end_inset
17873
17874
17875 \change_unchanged
17876
17877 \end_layout
17878
17879 \end_inset
17880
17881 An enumeration
17882 \end_layout
17883
17884 \begin_layout Enumerate
17885
17886 \change_inserted 564990737 1672138150
17887 with negative indentation
17888 \end_layout
17889
17890 \begin_layout Subsubsection
17891
17892 \change_inserted 564990737 1672138150
17893 Further Customization
17894 \begin_inset Index idx
17895 range none
17896 pageformat default
17897 status collapsed
17898
17899 \begin_layout Plain Layout
17900
17901 \change_inserted 564990737 1672138150
17902 Lists !
17903  Customization
17904 \change_unchanged
17905
17906 \end_layout
17907
17908 \end_inset
17909
17910
17911 \end_layout
17912
17913 \begin_layout Standard
17914
17915 \change_inserted 564990737 1672138150
17916 You can also change the style of description lists.
17917  The command
17918 \end_layout
17919
17920 \begin_layout Standard
17921
17922 \change_inserted 564990737 1672138150
17923
17924 \family sans
17925 font=definition
17926 \end_layout
17927
17928 \begin_layout Standard
17929
17930 \change_inserted 564990737 1672138150
17931 changes the description label font,
17932  the command
17933 \end_layout
17934
17935 \begin_layout Standard
17936
17937 \change_inserted 564990737 1672138150
17938
17939 \family sans
17940 style=definitio
17941 \family default
17942 \series bold
17943 n
17944 \end_layout
17945
17946 \begin_layout Standard
17947
17948 \change_inserted 564990737 1672138150
17949 sets the list style.
17950 \end_layout
17951
17952 \begin_layout Standard
17953
17954 \change_inserted 564990737 1672138150
17955 An example where the command
17956 \end_layout
17957
17958 \begin_layout Standard
17959
17960 \change_inserted 564990737 1672138150
17961
17962 \family sans
17963 font=
17964 \backslash
17965 itshape,
17966  style=nextline
17967 \end_layout
17968
17969 \begin_layout Standard
17970
17971 \change_inserted 564990737 1672138150
17972 is used:
17973 \end_layout
17974
17975 \begin_layout Description
17976
17977 \change_inserted 564990737 1672138150
17978 Ionizing
17979 \begin_inset space ~
17980 \end_inset
17981
17982 radiation:
17983  
17984 \begin_inset Argument 1
17985 status collapsed
17986
17987 \begin_layout Plain Layout
17988
17989 \change_inserted 564990737 1672138150
17990 \begin_inset ERT
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994
17995 \change_inserted 564990737 1672138150
17996
17997 labelindent=0pt,
17998  labelsep=1cm,
17999  font=
18000 \backslash
18001 itshape,
18002  style=nextline
18003 \end_layout
18004
18005 \end_inset
18006
18007
18008 \change_unchanged
18009
18010 \end_layout
18011
18012 \end_inset
18013
18014 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
18015  therefore ionizing them.
18016 \end_layout
18017
18018 \begin_layout Description
18019
18020 \change_inserted 564990737 1672138150
18021 Reference
18022 \begin_inset space ~
18023 \end_inset
18024
18025 counting:
18026  In computer science,
18027  reference counting is a technique of storing the number of references,
18028  pointers,
18029  or handles to a resource such as an object,
18030  block of memory,
18031  disk space or other resource.
18032 \end_layout
18033
18034 \begin_layout Standard
18035
18036 \change_inserted 564990737 1672138150
18037 There are many more commands and features provided by the 
18038 \family sans
18039 enumitem
18040 \family default
18041
18042 \begin_inset Index idx
18043 range none
18044 pageformat default
18045 status collapsed
18046
18047 \begin_layout Plain Layout
18048
18049 \change_inserted 564990737 1672138150
18050 \SpecialChar LaTeX
18051 -packages !
18052  enumitem
18053 \change_unchanged
18054
18055 \end_layout
18056
18057 \end_inset
18058
18059  package.
18060  For more information see the 
18061 \begin_inset CommandInset href
18062 LatexCommand href
18063 name "enumitem documentation"
18064 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
18065 literal "false"
18066
18067 \end_inset
18068
18069 .
18070 \end_layout
18071
18072 \begin_layout Subsection
18073
18074 \change_inserted 564990737 1672138150
18075
18076 \series bold
18077 Paragraph Lists
18078 \end_layout
18079
18080 \begin_layout Standard
18081
18082 \change_inserted 564990737 1672138150
18083 This module uses the package 
18084 \family sans
18085 paralist
18086 \family default
18087  to provide nine new list environments.
18088  Itemized and enumerated lists can be typeset within paragraphs,
18089  as paragraphs and in a compact version.
18090  Most environments have optional arguments to format the labels.
18091  Additionally,
18092  the \SpecialChar LaTeX
18093  list environments itemize and enumerate are extended to use a similar optional argument.
18094  For further details see 
18095 \family sans
18096 File\SpecialChar menuseparator
18097 Open Example\SpecialChar menuseparator
18098 Modules\SpecialChar menuseparator
18099 Paragraph Lists (paralist)
18100 \family default
18101 ,
18102  
18103 \family sans
18104 Help\SpecialChar menuseparator
18105 Specific Manuals\SpecialChar menuseparator
18106 Paralist
18107 \family default
18108  and the 
18109 \begin_inset CommandInset href
18110 LatexCommand href
18111 name "paralist documentation"
18112 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
18113 literal "false"
18114
18115 \end_inset
18116
18117 .
18118 \end_layout
18119
18120 \begin_layout Section
18121
18122 \change_inserted 564990737 1672161542
18123 Literate Programming 
18124 \end_layout
18125
18126 \begin_layout Subsection
18127
18128 \change_inserted 564990737 1672161542
18129 Noweb
18130 \end_layout
18131
18132 \begin_layout Standard
18133
18134 \change_inserted 564990737 1672161542
18135 This module allows the use of Noweb as a literate programming tool.
18136  The files and the documentation for Noweb can be obtained from 
18137 \begin_inset CommandInset href
18138 LatexCommand href
18139 name "CTAN"
18140 target "https://www.ctan.org/pkg/noweb"
18141 literal "false"
18142
18143 \end_inset
18144
18145 .
18146  Literate programming is described in section
18147 \begin_inset space ~
18148 \end_inset
18149
18150
18151 \begin_inset CommandInset ref
18152 LatexCommand ref
18153 reference "sec:Literate-Programming"
18154 nolink "false"
18155
18156 \end_inset
18157
18158  and there are three example files:
18159  
18160 \family sans
18161 File\SpecialChar menuseparator
18162 Open Example\SpecialChar menuseparator
18163 Modules\SpecialChar menuseparator
18164 Noweb
18165 \family default
18166 ,
18167  
18168 \family sans
18169 File\SpecialChar menuseparator
18170 Open Example\SpecialChar menuseparator
18171 Modules\SpecialChar menuseparator
18172 Noweb Listerrors
18173 \family default
18174  and 
18175 \family sans
18176 File\SpecialChar menuseparator
18177 Open Example\SpecialChar menuseparator
18178 Modules\SpecialChar menuseparator
18179 Noweb2\SpecialChar LyX
18180
18181 \family default
18182 .
18183 \end_layout
18184
18185 \begin_layout Subsection
18186
18187 \change_inserted 564990737 1672161542
18188 Rnw (knitr)
18189 \end_layout
18190
18191 \begin_layout Standard
18192
18193 \change_inserted 564990737 1672161542
18194 This module uses the 
18195 \family typewriter
18196 knitr
18197 \family default
18198  and 
18199 \family sans
18200 includernw
18201 \family default
18202  packages.
18203  The
18204 \begin_inset Flex Code
18205 status collapsed
18206
18207 \begin_layout Plain Layout
18208
18209 \change_inserted 564990737 1672161542
18210 knitr
18211 \change_unchanged
18212
18213 \end_layout
18214
18215 \end_inset
18216
18217  package in R for dynamic report generation has to be installed for this module to work:
18218  
18219 \begin_inset Flex Code
18220 status collapsed
18221
18222 \begin_layout Plain Layout
18223
18224 \change_inserted 564990737 1672161542
18225 install.packages(“knitr”)
18226 \change_unchanged
18227
18228 \end_layout
18229
18230 \end_inset
18231
18232 .
18233  
18234 \end_layout
18235
18236 \begin_layout Paragraph
18237
18238 \change_inserted 564990737 1672161542
18239 Note 
18240 \end_layout
18241
18242 \begin_layout Standard
18243
18244 \change_inserted 564990737 1672161542
18245 it depends on R >= 2.14.1.
18246  For more info see 
18247 \begin_inset Flex URL
18248 status collapsed
18249
18250 \begin_layout Plain Layout
18251
18252 \change_inserted 564990737 1672161542
18253
18254 http://yihui.name/knitr
18255 \change_unchanged
18256
18257 \end_layout
18258
18259 \end_inset
18260
18261 .
18262  
18263 \end_layout
18264
18265 \begin_layout Standard
18266
18267 \change_inserted 564990737 1672161542
18268 The package 
18269 \family sans
18270 includernw
18271 \family default
18272  also has to be installed.
18273  It cannot be used if the modules 
18274 \family sans
18275 LilyPond
18276 \begin_inset space ~
18277 \end_inset
18278
18279 Book
18280 \family default
18281  or 
18282 \family sans
18283 Sweave
18284 \family default
18285  are loaded.
18286  See 
18287 \family sans
18288 Help\SpecialChar menuseparator
18289 Specific Manuals\SpecialChar menuseparator
18290 Knitr
18291 \family default
18292 ,
18293  
18294 \family sans
18295 File\SpecialChar menuseparator
18296 Open Example\SpecialChar menuseparator
18297 Modules\SpecialChar menuseparator
18298 Rnw (knitr)
18299 \family default
18300  and section
18301 \begin_inset space ~
18302 \end_inset
18303
18304
18305 \begin_inset CommandInset ref
18306 LatexCommand ref
18307 reference "sec:Literate-Programming"
18308 nolink "false"
18309
18310 \end_inset
18311
18312  for information about literate programming.
18313 \end_layout
18314
18315 \begin_layout Subsection
18316
18317 \change_inserted 564990737 1672161542
18318 Sweave
18319 \end_layout
18320
18321 \begin_layout Standard
18322
18323 \change_inserted 564990737 1672161542
18324 This module allows the use of the statistical language S/R as a literate programming tool.
18325  It requires the 
18326 \family sans
18327 includernw
18328 \family default
18329  and 
18330 \family sans
18331 fancyvrb
18332 \family default
18333  packages.
18334  Both 
18335 \begin_inset CommandInset href
18336 LatexCommand href
18337 name "includernw"
18338 target "https://www.ctan.org/pkg/includernw"
18339 literal "false"
18340
18341 \end_inset
18342
18343  and 
18344 \begin_inset CommandInset href
18345 LatexCommand href
18346 name "fancyvrb"
18347 target "https://www.ctan.org/pkg/fancyvrb"
18348 literal "false"
18349
18350 \end_inset
18351
18352  are available from CTAN.
18353  It cannot be used if the module 
18354 \family sans
18355 LilyPond
18356 \begin_inset space ~
18357 \end_inset
18358
18359 Book
18360 \family default
18361  has been loaded.
18362  See 
18363 \family sans
18364 Help\SpecialChar menuseparator
18365 Specific Manuals\SpecialChar menuseparator
18366 Sweave,
18367
18368 \family default
18369  
18370 \family sans
18371 File\SpecialChar menuseparator
18372 Open Example\SpecialChar menuseparator
18373 Modules\SpecialChar menuseparator
18374 Sweave
18375 \family default
18376  and section
18377 \begin_inset space ~
18378 \end_inset
18379
18380
18381 \begin_inset CommandInset ref
18382 LatexCommand ref
18383 reference "sec:Literate-Programming"
18384 nolink "false"
18385
18386 \end_inset
18387
18388  for information about literate programming.
18389 \end_layout
18390
18391 \begin_layout Section
18392
18393 \change_inserted 564990737 1672224959
18394 Maths
18395 \end_layout
18396
18397 \begin_layout Subsection
18398
18399 \change_inserted 564990737 1672224959
18400 AMS Theorems
18401 \end_layout
18402
18403 \begin_layout Standard
18404
18405 \change_inserted 564990737 1672224959
18406 This modules defines theorem environments and the proof environment using the extended AMS machinery.
18407  Both numbered and unnumbered types are provided.
18408  By default,
18409  the theorems are numbered consecutively throughout the document.
18410  This can be changed by loading one of the 
18411 \family sans
18412 AMS Theorems (Numbered by \SpecialChar ldots
18413 )
18414 \family default
18415  modules.
18416  It cannot be used if the modules 
18417 \family sans
18418 Standard Theorems
18419 \family default
18420  or 
18421 \family sans
18422 Standard Theorems (Unnumbered)
18423 \family default
18424  have been loaded.
18425 \end_layout
18426
18427 \begin_layout Subsection
18428
18429 \change_inserted 564990737 1672224959
18430 AMS Theorems (Extended)
18431 \end_layout
18432
18433 \begin_layout Standard
18434
18435 \change_inserted 564990737 1672224959
18436 This module defines some additional theorem environments for use with the 
18437 \family sans
18438 AMS Theorems
18439 \family default
18440  package (which must be loaded).
18441  It includes Criterion,
18442  Algorithm,
18443  Axiom,
18444  Condition,
18445  Note,
18446  Notation,
18447  Summary,
18448  Acknowledgement,
18449  Conclusion,
18450  Fact,
18451  Assumption,
18452  Case and Question in both numbered and unnumbered forms.
18453 \end_layout
18454
18455 \begin_layout Subsection
18456
18457 \change_inserted 564990737 1672224959
18458 AMS Theorems (Extended,
18459  Numbered by Type within Chapters)
18460 \end_layout
18461
18462 \begin_layout Standard
18463
18464 \change_inserted 564990737 1672224959
18465 This module defines some additional theorem environments for use with the 
18466 \family sans
18467 AMS Theorems (Numbered by Type within Chapters)
18468 \family default
18469  package (which must be loaded).
18470  It includes Criterion,
18471  Algorithm,
18472  Axiom,
18473  Condition,
18474  Note,
18475  Notation,
18476  Summary,
18477  Acknowledgement,
18478  Conclusion,
18479  Assumption and Case in both numbered and unnumbered forms.
18480  Unlike the 
18481 \family sans
18482 AMS Theorems (Extended)
18483 \family default
18484  module,
18485  the different theorem types provided here each have a separate counter,
18486  restarted with each new chapter (e.g.,
18487  criterion 1.1,
18488  criterion 1.2,
18489  axiom 1.1,
18490  assumption 1.1,
18491  criterion 2.1,
18492  criterion 2.2,
18493  axiom 2.1\SpecialChar ldots
18494 ,
18495  as opposed to criterion 1,
18496  criterion 2,
18497  axiom 3,
18498  assumption 4...).
18499 \end_layout
18500
18501 \begin_layout Subsection
18502
18503 \change_inserted 564990737 1672224959
18504 AMS Theorems (Extended,
18505  Numbered by Type)
18506 \end_layout
18507
18508 \begin_layout Standard
18509
18510 \change_inserted 564990737 1672224959
18511 This module defines some additional theorem environments for use with the 
18512 \family sans
18513 AMS Theorems (Numbered by Type)
18514 \family default
18515  package (which must be loaded).
18516  It includes Criterion,
18517  Algorithm,
18518  Axiom,
18519  Condition,
18520  Note,
18521  Notation,
18522  Summary,
18523  Acknowledgement,
18524  Conclusion,
18525  Assumption and Case in both numbered and unnumbered forms.
18526  Unlike the 
18527 \family sans
18528 AMS Theorems (Extended)
18529 \family default
18530  module,
18531  the different theorem types provided here each have a separate counter (e.g.,
18532  criterion 1,
18533  criterion 2,
18534  axiom 1,
18535  assumption 1,
18536  criterion 3,
18537  \SpecialChar ldots
18538 ,
18539  as opposed to criterion 1,
18540  criterion 2,
18541  axiom 3,
18542  assumption 4,
18543  \SpecialChar ldots
18544 ).
18545 \end_layout
18546
18547 \begin_layout Subsection
18548
18549 \change_inserted 564990737 1672224959
18550 AMS Theorems (Numbered by Type within Chapters) 
18551 \end_layout
18552
18553 \begin_layout Standard
18554
18555 \change_inserted 564990737 1672224959
18556 This module defines theorem environments and the proof environment using the extended AMS machinery.
18557  Both numbered and unnumbered types are provided.
18558  Unlike the 
18559 \family sans
18560 AMS Theorems
18561 \family default
18562  module,
18563  the different theorem types provided here each have a separate counter (e.g.,
18564  theorem 1.1,
18565  theorem 1.2,
18566  lemma 1.1,
18567  proposition 1.1,
18568  theorem 1.3,
18569  lemma 1.2,
18570  \SpecialChar ldots
18571 ,
18572  as opposed to theorem 1,
18573  theorem 2,
18574  lemma 3,
18575  proposition 4,
18576  \SpecialChar ldots
18577 ).
18578  The numbering restarts for each chapter:
18579  theorem 1.1,
18580  theorem 2.1,
18581  \SpecialChar ldots
18582  It cannot be used if the modules 
18583 \family sans
18584 AMS Theorems
18585 \family default
18586 ,
18587  
18588 \family sans
18589 Standard Theorems
18590 \family default
18591 ,
18592
18593 \family sans
18594  Standard Theorems (Numbered by Type)
18595 \family default
18596  or
18597 \family sans
18598  Standard Theorems (Unnumbered)
18599 \family default
18600  have been loaded.
18601 \end_layout
18602
18603 \begin_layout Subsection
18604
18605 \change_inserted 564990737 1672224959
18606 AMS Theorems (Numbered by Type)
18607 \end_layout
18608
18609 \begin_layout Standard
18610
18611 \change_inserted 564990737 1672224959
18612 This module defines theorem environments and the proof environment using the extended AMS machinery.
18613  Both numbered and unnumbered types are provided.
18614  Unlike the 
18615 \family sans
18616 AMS Theorems
18617 \family default
18618  module,
18619  the different theorem types provided here each have a separate counter (e.g.,
18620  theorem 1,
18621  theorem 2,
18622  lemma 1,
18623  proposition 1,
18624  theorem 3,
18625  lemma 2,
18626  \SpecialChar ldots
18627 ,
18628  as opposed to theorem 1,
18629  theorem 2,
18630  lemma 3,
18631  proposition 4,
18632  \SpecialChar ldots
18633 ).
18634  The numbering’s scope is the whole document.
18635  For chapter- and section-wide numbering,
18636  use one of the ‘within Sections’/‘within Chapters’ modules,
18637  respectively.
18638  It cannot be used if the modules 
18639 \family sans
18640 AMS Theorems
18641 \family default
18642 ,
18643  
18644 \family sans
18645 Standard Theorems
18646 \family default
18647 ,
18648
18649 \family sans
18650  Standard Theorems (Numbered by Type)
18651 \family default
18652  or
18653 \family sans
18654  Standard Theorems (Unnumbered)
18655 \family default
18656  have been loaded.
18657 \end_layout
18658
18659 \begin_layout Subsection
18660
18661 \change_inserted 564990737 1672224959
18662 Number Equations by Section
18663 \end_layout
18664
18665 \begin_layout Standard
18666
18667 \change_inserted 564990737 1672224959
18668 This module resets the equation number at section start and prepends the section number to the equation number,
18669  as in “(2.1).” 
18670 \end_layout
18671
18672 \begin_layout Subsection
18673
18674 \change_inserted 564990737 1672224959
18675 Standard Theorems
18676 \end_layout
18677
18678 \begin_layout Standard
18679
18680 \change_inserted 564990737 1672224959
18681 This module defines some theorem environments for use with non-AMS classes.
18682  By default,
18683  the theorems are numbered consecutively throughout the document.
18684  This can be changed by loading one of the 
18685 \family sans
18686 Standard Theorems (Numbered by \SpecialChar ldots
18687 )
18688 \family default
18689  modules.
18690  It cannot be used if the modules 
18691 \family sans
18692 AMS Theorems
18693 \family default
18694  or
18695 \family sans
18696  Standard Theorems (Unnumbered)
18697 \family default
18698  have been loaded.
18699  
18700 \end_layout
18701
18702 \begin_layout Subsection
18703
18704 \change_inserted 564990737 1672224959
18705 Standard Theorems (Nameable)
18706 \end_layout
18707
18708 \begin_layout Standard
18709
18710 \change_inserted 564990737 1672224959
18711 This module facilitates the use of named theorems.
18712  The name of the theorem goes into the “Additional Theorem Text” argument.
18713  
18714 \end_layout
18715
18716 \begin_layout Subsection
18717
18718 \change_inserted 564990737 1672224959
18719 Standard Theorems (Numbered by Chapter)
18720 \end_layout
18721
18722 \begin_layout Standard
18723
18724 \change_inserted 564990737 1672224959
18725 This module numbers theorems and the like by chapter (i.e.,
18726  the counter is reset at each chapter start).
18727  Use this module only with document classes that provide a chapter environment.
18728  One of the modules 
18729 \family sans
18730 AMS Theorems
18731 \family default
18732  or 
18733 \family sans
18734 Standard Theorems
18735 \family default
18736  must be loaded.
18737  It cannot be used if the module
18738 \family sans
18739  Standard Theorems (Numbered by Section)
18740 \family default
18741  has been loaded.
18742 \end_layout
18743
18744 \begin_layout Subsection
18745
18746 \change_inserted 564990737 1672224959
18747 Standard Theorems (Numbered by Section)
18748 \end_layout
18749
18750 \begin_layout Standard
18751
18752 \change_inserted 564990737 1672224959
18753 This module numbers theorems and the like by section (i.e.,
18754  the counter is reset at each section start).
18755  One of the modules 
18756 \family sans
18757 AMS Theorems
18758 \family default
18759  or 
18760 \family sans
18761 Standard Theorems
18762 \family default
18763  must be loaded.
18764  It cannot be used if the module
18765 \family sans
18766  Standard Theorems (Numbered by Chapter)
18767 \family default
18768  has been loaded.
18769 \end_layout
18770
18771 \begin_layout Subsection
18772
18773 \change_inserted 564990737 1672224959
18774 Standard Theorems (Numbered by Type within Chapters) 
18775 \end_layout
18776
18777 \begin_layout Standard
18778
18779 \change_inserted 564990737 1672224959
18780 This module defines some theorem environments for use with non-AMS classes.
18781  Unlike the
18782 \family sans
18783  AMS Theorems
18784 \family default
18785  and 
18786 \family sans
18787 Standard Theorems
18788 \family default
18789  modules,
18790  the different theorem types provided here each have a separate counter (e.g.,
18791  theorem 1,
18792  theorem 2,
18793  lemma 1,
18794  proposition 1,
18795  theorem 3,
18796  lemma 2,
18797  \SpecialChar ldots
18798 ,
18799  as opposed to theorem 1,
18800  theorem 2,
18801  lemma 3,
18802  proposition 4,
18803  \SpecialChar ldots
18804 ).
18805  The numbering is reset at each chapter start.
18806  One of the modules 
18807 \family sans
18808 AMS Theorems (Numbered by Type)
18809 \family default
18810  or 
18811 \family sans
18812 Standard Theorems (Numbered by Type)
18813 \family default
18814  must be loaded.
18815  It cannot be used if any of the modules
18816 \family sans
18817  AMS Theorems
18818 \family default
18819 ,
18820  
18821 \family sans
18822 Standard Theorems
18823 \family default
18824 ,
18825  
18826 \family sans
18827 Standard Theorems (Unnumbered)
18828 \family default
18829 ,
18830
18831 \family sans
18832  Standard Theorems (Numbered by Sections)
18833 \family default
18834  or 
18835 \family sans
18836 Standard Theorems (Numbered by Type within Sections)
18837 \family default
18838  have been loaded.
18839 \end_layout
18840
18841 \begin_layout Subsection
18842
18843 \change_inserted 564990737 1672224959
18844 Standard Theorems (Numbered by Type within Sections) 
18845 \end_layout
18846
18847 \begin_layout Standard
18848
18849 \change_inserted 564990737 1672224959
18850 This module defines some theorem environments for use with non-AMS classes.
18851  Unlike the
18852 \family sans
18853  AMS Theorems
18854 \family default
18855  and 
18856 \family sans
18857 Standard Theorems
18858 \family default
18859  modules,
18860  the different theorem types provided here each have a separate counter (e.g.,
18861  theorem 1,
18862  theorem 2,
18863  lemma 1,
18864  proposition 1,
18865  theorem 3,
18866  lemma 2,
18867  \SpecialChar ldots
18868 ,
18869  as opposed to theorem 1,
18870  theorem 2,
18871  lemma 3,
18872  proposition 4,
18873  \SpecialChar ldots
18874 ).
18875  The numbering is reset at each section start.
18876  One of the modules 
18877 \family sans
18878 AMS Theorems (Numbered by Type)
18879 \family default
18880  or 
18881 \family sans
18882 Standard Theorems (Numbered by Type)
18883 \family default
18884  must be loaded.
18885  It cannot be used if any of the modules
18886 \family sans
18887  AMS Theorems
18888 \family default
18889 ,
18890  
18891 \family sans
18892 Standard Theorems
18893 \family default
18894 ,
18895  
18896 \family sans
18897 Standard Theorems (Unnumbered)
18898 \family default
18899 ,
18900
18901 \family sans
18902  Standard Theorems (Numbered by Chapters)
18903 \family default
18904  or 
18905 \family sans
18906 Standard Theorems (Numbered by Type within Chapters)
18907 \family default
18908  have been loaded.
18909 \end_layout
18910
18911 \begin_layout Subsection
18912
18913 \change_inserted 564990737 1672224959
18914 Standard Theorems (Numbered by Type)
18915 \end_layout
18916
18917 \begin_layout Standard
18918
18919 \change_inserted 564990737 1672224959
18920 This module defines some theorem environments for use with non-AMS classes.
18921  Unlike the 
18922 \family sans
18923 AMS Theorems
18924 \family default
18925  and 
18926 \family sans
18927 Standard Theorems
18928 \family default
18929  modules,
18930  the different theorem types provided here each have a separate counter (e.g.,
18931  theorem 1,
18932  theorem 2,
18933  lemma 1,
18934  proposition 1,
18935  theorem 3,
18936  lemma 2,
18937  \SpecialChar ldots
18938 ,
18939  as opposed to theorem 1,
18940  theorem 2,
18941  lemma 3,
18942  proposition 4,
18943  \SpecialChar ldots
18944 ).
18945  The numbering’s scope is the whole document.
18946  For chapter- and section-wide numbering,
18947  use one of the “within Chapters”/“within Sections” modules,
18948  respectively.
18949  It cannot be used if any of the modules
18950 \family sans
18951  AMS Theorems
18952 \family default
18953 ,
18954  
18955 \family sans
18956 Standard Theorems
18957 \family default
18958 ,
18959  
18960 \family sans
18961 Standard Theorems (Unnumbered)
18962 \family default
18963  or
18964 \family sans
18965  AMS Theorems (Numbered by Type)
18966 \family default
18967  have been loaded.
18968 \end_layout
18969
18970 \begin_layout Subsection
18971
18972 \change_inserted 564990737 1672224959
18973 Standard Theorems (Unnumbered)
18974 \end_layout
18975
18976 \begin_layout Standard
18977
18978 \change_inserted 564990737 1672224959
18979 This module defines only unnumbered theorem environments and the proof environment,
18980  using the extended AMS machinery.
18981  It cannot be used if either of the modules
18982 \family sans
18983  AMS Theorems
18984 \family default
18985  or
18986 \family sans
18987  Standard Theorems
18988 \family default
18989  have been loaded.
18990 \end_layout
18991
18992 \begin_layout Subsection
18993
18994 \change_inserted 564990737 1672224959
18995 Subequations
18996 \end_layout
18997
18998 \begin_layout Standard
18999
19000 \change_inserted 564990737 1672224959
19001 This module provides a straightforward way to segregate subequations in LyX.
19002  See 
19003 \family sans
19004 Help\SpecialChar menuseparator
19005 Math\SpecialChar menuseparator
19006 Subnumbering
19007 \family default
19008 .
19009  
19010 \end_layout
19011
19012 \begin_layout Section
19013
19014 \change_inserted 564990737 1672236008
19015 Page Layout
19016 \end_layout
19017
19018 \begin_layout Subsection
19019
19020 \change_inserted 564990737 1672236008
19021 Custom Header/Footer Text
19022 \end_layout
19023
19024 \begin_layout Standard
19025
19026 \change_inserted 564990737 1672236008
19027 This module requires the 
19028 \family sans
19029 Page
19030 \begin_inset space ~
19031 \end_inset
19032
19033
19034 \bar under
19035 s
19036 \bar default
19037 tyle
19038 \family default
19039  option in the 
19040 \family sans
19041 \bar under
19042 D
19043 \bar default
19044 ocument\SpecialChar menuseparator
19045
19046 \bar under
19047 S
19048 \bar default
19049 ettings\SpecialChar menuseparator
19050 Page
19051 \begin_inset space ~
19052 \end_inset
19053
19054 Layout
19055 \family default
19056  dialog to be set to 
19057 \family typewriter
19058 fancy
19059 \family default
19060 .
19061  It adds six environments to document classes which support the 
19062 \family typewriter
19063 fancyhdr
19064 \family default
19065  package:
19066 \end_layout
19067
19068 \begin_layout Itemize
19069
19070 \change_inserted 564990737 1672236008
19071
19072 \family sans
19073 Left Header
19074 \end_layout
19075
19076 \begin_layout Itemize
19077
19078 \change_inserted 564990737 1672236008
19079
19080 \family sans
19081 Center Header
19082 \end_layout
19083
19084 \begin_layout Itemize
19085
19086 \change_inserted 564990737 1672236008
19087
19088 \family sans
19089 Right Header
19090 \end_layout
19091
19092 \begin_layout Itemize
19093
19094 \change_inserted 564990737 1672236008
19095
19096 \family sans
19097 Left Footer
19098 \end_layout
19099
19100 \begin_layout Itemize
19101
19102 \change_inserted 564990737 1672236008
19103
19104 \family sans
19105 Center Footer
19106 \end_layout
19107
19108 \begin_layout Itemize
19109
19110 \change_inserted 564990737 1672236008
19111
19112 \family sans
19113 Right Footer
19114 \end_layout
19115
19116 \begin_layout Subsubsection
19117
19118 \change_inserted 564990737 1672236008
19119 Fancy Headers and Footers
19120 \end_layout
19121
19122 \begin_layout Standard
19123
19124 \change_inserted 564990737 1672236008
19125 The default page layout is rather plain;
19126  for an 
19127 \begin_inset Flex Code
19128 status collapsed
19129
19130 \begin_layout Plain Layout
19131
19132 \change_inserted 564990737 1672236008
19133 article
19134 \change_unchanged
19135
19136 \end_layout
19137
19138 \end_inset
19139
19140  document class,
19141  all you get is a centered page number at the bottom of the page.
19142  This document uses KOMA-script’s book class;
19143  so it appears to be a bit fancier.
19144  Once the 
19145 \family sans
19146 Page
19147 \begin_inset space ~
19148 \end_inset
19149
19150
19151 \bar under
19152 s
19153 \bar default
19154 tyle
19155 \family default
19156  in 
19157 \family sans
19158 \bar under
19159 D
19160 \bar default
19161 ocument\SpecialChar menuseparator
19162
19163 \bar under
19164 S
19165 \bar default
19166 ettings\SpecialChar menuseparator
19167 Page Layout
19168 \family default
19169  is set to 
19170 \begin_inset Quotes eld
19171 \end_inset
19172
19173 fancy
19174 \begin_inset Quotes erd
19175 \end_inset
19176
19177 ,
19178  you will find that the page header is divided into three fields,
19179  not surprisingly labeled 
19180 \begin_inset Quotes eld
19181 \end_inset
19182
19183 left
19184 \begin_inset Quotes erd
19185 \end_inset
19186
19187 ,
19188  
19189 \begin_inset Quotes eld
19190 \end_inset
19191
19192 center
19193 \begin_inset Quotes erd
19194 \end_inset
19195
19196 ,
19197  and 
19198 \begin_inset Quotes eld
19199 \end_inset
19200
19201 right
19202 \begin_inset Quotes erd
19203 \end_inset
19204
19205 .
19206  The footer is also divided into these three fields.
19207  The \SpecialChar LaTeX
19208  commands to set these fields in the simplest manner are 
19209 \family sans
19210
19211 \backslash
19212 lhead
19213 \family default
19214 ,
19215  
19216 \family sans
19217
19218 \backslash
19219 chead
19220 \family default
19221 ,
19222  
19223 \family sans
19224
19225 \backslash
19226 rhead
19227 \family default
19228 ,
19229  
19230 \family sans
19231
19232 \backslash
19233 lfoot
19234 \family default
19235 ,
19236  etc.
19237  Suppose you wish to put your name in the upper left hand corner of each page.
19238  Simply insert the following command in the preamble:
19239  
19240 \end_layout
19241
19242 \begin_layout Standard
19243
19244 \change_inserted 564990737 1672236008
19245
19246 \family sans
19247
19248 \backslash
19249 lhead
19250 \family default
19251 \series bold
19252 {
19253 \series default
19254 John Q.
19255  DocWriter
19256 \series bold
19257 }
19258 \end_layout
19259
19260 \begin_layout Standard
19261
19262 \change_inserted 564990737 1672236008
19263 You will now see your name in the upper left.
19264  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,
19265  e.
19266 \begin_inset space \thinspace{}
19267 \end_inset
19268
19269 g.:
19270 \end_layout
19271
19272 \begin_layout Standard
19273
19274 \change_inserted 564990737 1672236008
19275
19276 \family sans
19277
19278 \backslash
19279 cfoot{}
19280 \end_layout
19281
19282 \begin_layout Standard
19283
19284 \change_inserted 564990737 1672236008
19285 There is,
19286  however,
19287  an easier way to make simple changes.
19288  If you load the 
19289 \family sans
19290 \bar under
19291 D
19292 \bar default
19293 ocument\SpecialChar menuseparator
19294
19295 \bar under
19296 S
19297 \bar default
19298 ettings\SpecialChar menuseparator
19299 Modules\SpecialChar menuseparator
19300 Page Layout\SpecialChar menuseparator
19301 Custom Header/Footer Text
19302 \family default
19303  module,
19304  you will find you have six new environments corresponding to the six fields described above.
19305 \end_layout
19306
19307 \begin_layout Standard
19308
19309 \change_inserted 564990737 1672236008
19310 Let's get really fancy:
19311  lets put the section number with the word 
19312 \begin_inset Quotes eld
19313 \end_inset
19314
19315 Section
19316 \begin_inset Quotes erd
19317 \end_inset
19318
19319  (e.
19320 \begin_inset space \thinspace{}
19321 \end_inset
19322
19323 g.
19324 \begin_inset space \space{}
19325 \end_inset
19326
19327 Section 3) in the upper left,
19328  the page number (e.
19329 \begin_inset space \thinspace{}
19330 \end_inset
19331
19332 g.
19333 \begin_inset space \space{}
19334 \end_inset
19335
19336 Page 4) in the upper right,
19337  your name in the lower left,
19338  and the date in the lower right.
19339  Use your newly enabled environments to add these entries:
19340 \end_layout
19341
19342 \begin_layout Standard
19343
19344 \change_inserted 564990737 1672236008
19345 \begin_inset VSpace defskip
19346 \end_inset
19347
19348
19349 \end_layout
19350
19351 \begin_layout Standard
19352
19353 \change_inserted 564990737 1672236008
19354
19355 \color green
19356 Left
19357 \begin_inset space ~
19358 \end_inset
19359
19360 header:
19361
19362 \series bold
19363 \color inherit
19364  
19365 \series default
19366 Section
19367 \family typewriter
19368  
19369 \family sans
19370
19371 \backslash
19372 thesection
19373 \end_layout
19374
19375 \begin_layout Standard
19376
19377 \change_inserted 564990737 1672236008
19378
19379 \color green
19380 Center header:
19381 \end_layout
19382
19383 \begin_layout Standard
19384
19385 \change_inserted 564990737 1672236008
19386
19387 \color green
19388 Right header:
19389
19390 \color inherit
19391  Page
19392 \family typewriter
19393  
19394 \family sans
19395
19396 \backslash
19397 thepage
19398 \end_layout
19399
19400 \begin_layout Standard
19401
19402 \change_inserted 564990737 1672236008
19403
19404 \color green
19405 Left footer:
19406
19407 \color inherit
19408  John Q.
19409  DocWriter
19410 \end_layout
19411
19412 \begin_layout Standard
19413
19414 \change_inserted 564990737 1672236008
19415
19416 \color green
19417 Center footer:
19418 \end_layout
19419
19420 \begin_layout Standard
19421
19422 \change_inserted 564990737 1672236008
19423
19424 \color green
19425 Right footer:
19426
19427 \series bold
19428 \color inherit
19429  
19430 \family sans
19431 \series default
19432
19433 \backslash
19434 today
19435 \end_layout
19436
19437 \begin_layout Standard
19438
19439 \change_inserted 564990737 1672236008
19440 \begin_inset VSpace defskip
19441 \end_inset
19442
19443
19444 \end_layout
19445
19446 \begin_layout Standard
19447
19448 \change_inserted 564990737 1672236008
19449 Make sure you enter the commands 
19450 \family sans
19451
19452 \backslash
19453 thesection
19454 \family default
19455 ,
19456  
19457 \family sans
19458
19459 \backslash
19460 thepage
19461 \family default
19462  and 
19463 \family sans
19464
19465 \backslash
19466 today
19467 \family default
19468  as \SpecialChar TeX
19469  Code commands
19470 \series bold
19471 .
19472
19473 \series default
19474  The commands 
19475 \family sans
19476
19477 \backslash
19478 thesection
19479 \family default
19480  and 
19481 \family sans
19482
19483 \backslash
19484 thepage
19485 \family default
19486  access \SpecialChar LaTeX
19487 ’s section and page counters,
19488  and so print out the current section and page numbers.
19489  
19490 \family sans
19491
19492 \backslash
19493 today
19494 \family default
19495  simply prints out today’s date.
19496 \end_layout
19497
19498 \begin_layout Standard
19499
19500 \change_inserted 564990737 1672236008
19501 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
19502  If you don't want one of the rules,
19503  set its thickness to 0.
19504  The header rule has a default thickness of 0.4pt,
19505  the footer rule is 0pt.
19506  For this you will need to use \SpecialChar TeX
19507  Code commands like 
19508 \end_layout
19509
19510 \begin_layout Standard
19511
19512 \change_inserted 564990737 1672236008
19513
19514 \family sans
19515
19516 \backslash
19517 renewcommand{
19518 \backslash
19519 headrulewidth}{0.4pt}
19520 \family default
19521  and 
19522 \end_layout
19523
19524 \begin_layout Standard
19525
19526 \change_inserted 564990737 1672236008
19527
19528 \family sans
19529
19530 \backslash
19531 renewcommand{
19532 \backslash
19533 footrulewidth}{0.4pt}
19534 \family default
19535  to set the thicknesses.
19536 \end_layout
19537
19538 \begin_layout Standard
19539
19540 \change_inserted 564990737 1672236008
19541 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
19542  Code commands like 
19543 \family sans
19544
19545 \backslash
19546 thispagestyle{empty}
19547 \family default
19548 ,
19549  
19550 \family sans
19551
19552 \backslash
19553 thispagestyle{plain}
19554 \family default
19555 ,
19556  and 
19557 \family sans
19558
19559 \backslash
19560 thispagestyle{fancy}
19561 \family default
19562 .
19563  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
19564  code.
19565  In fact,
19566  title pages are marked as plain by default,
19567  while following pages are marked fancy when using the global fancy setting.
19568  
19569 \end_layout
19570
19571 \begin_layout Standard
19572
19573 \change_inserted 564990737 1672236008
19574 If you want a header or footer to be on the outer side of a two sided document,
19575  you need to use something like:
19576 \end_layout
19577
19578 \begin_layout Standard
19579
19580 \change_inserted 564990737 1672236008
19581
19582 \family sans
19583 \begin_inset Flex Strong
19584 status collapsed
19585
19586 \begin_layout Plain Layout
19587
19588 \change_inserted 564990737 1672236008
19589
19590 \family sans
19591 \series medium
19592
19593 \backslash
19594 fancyfoot{}
19595 \change_unchanged
19596
19597 \end_layout
19598
19599 \end_inset
19600
19601
19602 \end_layout
19603
19604 \begin_layout Standard
19605
19606 \change_inserted 564990737 1672236008
19607
19608 \family sans
19609 \begin_inset Flex Strong
19610 status collapsed
19611
19612 \begin_layout Plain Layout
19613
19614 \change_inserted 564990737 1672236008
19615
19616 \family sans
19617 \series medium
19618
19619 \backslash
19620 fancyfoot[LE,RO]{
19621 \backslash
19622 thepage}
19623 \change_unchanged
19624
19625 \end_layout
19626
19627 \end_inset
19628
19629
19630 \end_layout
19631
19632 \begin_layout Standard
19633
19634 \change_inserted 564990737 1672236008
19635 The first command clears all existing footers avoiding any conflicts with your new command.
19636 \end_layout
19637
19638 \begin_layout Standard
19639
19640 \change_inserted 564990737 1672236008
19641 You can enter any of these commands,
19642  the simpler ones in any of your new environments,
19643  the more complex ones as \SpecialChar TeX
19644  Code commands,
19645  at any point in your document and they will take effect on the next page.
19646 \end_layout
19647
19648 \begin_layout Standard
19649
19650 \change_inserted 564990737 1672236008
19651 As a final example,
19652  it is possible to include an image in the header or footer.
19653  Suppose you want to put a company logo in the upper left hand corner.
19654  You might try something like
19655 \end_layout
19656
19657 \begin_layout Standard
19658
19659 \change_inserted 564990737 1672236008
19660
19661 \family sans
19662
19663 \backslash
19664 lhead{
19665 \backslash
19666 resizebox{1in}{!}{
19667 \backslash
19668 includegraphics{logo.eps}}}
19669 \end_layout
19670
19671 \begin_layout Standard
19672 \noindent
19673
19674 \change_inserted 564990737 1672236008
19675 (you may need to preface this with 
19676 \family sans
19677
19678 \backslash
19679 usepackage{graphics}
19680 \family default
19681  if you don't include graphics elsewhere in your document).
19682 \end_layout
19683
19684 \begin_layout Standard
19685
19686 \change_inserted 564990737 1672236008
19687 For more information on fancy headers,
19688  you can get the 
19689 \begin_inset Flex Code
19690 status collapsed
19691
19692 \begin_layout Plain Layout
19693
19694 \change_inserted 564990737 1672236008
19695 fancyhdr
19696 \change_unchanged
19697
19698 \end_layout
19699
19700 \end_inset
19701
19702  documentation from 
19703 \begin_inset CommandInset href
19704 LatexCommand href
19705 name "CTAN"
19706 target "http://www.ctan.org/pkg/fancyhdr"
19707 literal "false"
19708
19709 \end_inset
19710
19711 .
19712  
19713 \end_layout
19714
19715 \begin_layout Subsection
19716
19717 \change_inserted 564990737 1672236008
19718 Landscape Document Parts
19719 \end_layout
19720
19721 \begin_layout Standard
19722
19723 \change_inserted 564990737 1672236008
19724 This module outputs parts of the document in landscape mode using 
19725 \family sans
19726 Insert\SpecialChar menuseparator
19727 Custom Insets\SpecialChar menuseparator
19728 Landscape
19729 \family default
19730  or 
19731 \family sans
19732 Insert\SpecialChar menuseparator
19733 Custom Insets\SpecialChar menuseparator
19734 Landscape (Floating)
19735 \family default
19736 .
19737 \end_layout
19738
19739 \begin_layout Subsection
19740
19741 \change_inserted 564990737 1672236008
19742 \begin_inset CommandInset label
19743 LatexCommand label
19744 name "sec:Multiple-Columns"
19745
19746 \end_inset
19747
19748 Multiple Columns
19749 \end_layout
19750
19751 \begin_layout Standard
19752
19753 \change_inserted 564990737 1672236008
19754 This module uses the 
19755 \family sans
19756 multicol
19757 \family default
19758
19759 \begin_inset Index idx
19760 range none
19761 pageformat default
19762 status collapsed
19763
19764 \begin_layout Plain Layout
19765
19766 \change_inserted 564990737 1672236008
19767 \SpecialChar LaTeX
19768 -packages !
19769  multicol
19770 \change_unchanged
19771
19772 \end_layout
19773
19774 \end_inset
19775
19776  package and is independent of the option 
19777 \family sans
19778 Two-
19779 \bar under
19780 c
19781 \bar default
19782 olumn document
19783 \family default
19784  in the 
19785 \family sans
19786 \bar under
19787 D
19788 \bar default
19789 ocument\SpecialChar menuseparator
19790
19791 \bar under
19792 S
19793 \bar default
19794 ettings\SpecialChar menuseparator
19795 Text
19796 \begin_inset space ~
19797 \end_inset
19798
19799 Layout
19800 \family default
19801  dialog.
19802  If you want to have two columns for the whole document,
19803  you are recommended to use the 
19804 \family sans
19805 Two-
19806 \bar under
19807 c
19808 \bar default
19809 olumn document
19810 \family default
19811  option.
19812  For all other cases use this module.
19813 \change_deleted 564990737 1672236008
19814 Multiple Text Columns
19815 \end_layout
19816
19817 \begin_layout Standard
19818
19819 \change_deleted 564990737 1672236008
19820 This feature is independent of the option 
19821 \family sans
19822 Two-column document
19823 \family default
19824  in the document settings under 
19825 \family sans
19826 Text Layout
19827 \family default
19828 .
19829  If you want to have 2
19830 \begin_inset space ~
19831 \end_inset
19832
19833 columns for the whole document,
19834  it is recommended to use the 
19835 \family sans
19836 Two-column document
19837 \family default
19838  option.
19839  For all other cases use this feature.
19840 \end_layout
19841
19842 \begin_layout Standard
19843
19844 \change_deleted 564990737 1672236008
19845 To use multiple text columns in your document,
19846  you have to load the module 
19847 \family sans
19848 Multiple Columns
19849 \family default
19850  (menu 
19851 \family sans
19852 Document\SpecialChar menuseparator
19853 Settings\SpecialChar menuseparator
19854 Modules
19855 \family default
19856 ) and must have the \SpecialChar LaTeX
19857 -package 
19858 \begin_inset Flex Code
19859 status collapsed
19860
19861 \begin_layout Plain Layout
19862 multicol
19863 \end_layout
19864
19865 \end_inset
19866
19867  installed.
19868 \change_unchanged
19869
19870 \end_layout
19871
19872 \begin_layout Standard
19873 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
19874  Within the different columns you can use everything,
19875  with the limitation that for floats you need to 
19876 \change_deleted 564990737 1672236179
19877 use the float option 
19878 \family sans
19879 Span columns
19880 \change_inserted 564990737 1672236179
19881
19882 \family default
19883 check the option 
19884 \family sans
19885 \bar under
19886 S
19887 \bar default
19888 pan
19889 \begin_inset space ~
19890 \end_inset
19891
19892 columns
19893 \family default
19894  in 
19895 \family sans
19896 \bar under
19897 E
19898 \bar default
19899 dit\SpecialChar menuseparator
19900 Flo
19901 \bar under
19902 a
19903 \bar default
19904 t
19905 \begin_inset space ~
19906 \end_inset
19907
19908 Settings
19909 \change_unchanged
19910
19911 \family default
19912 .
19913 \end_layout
19914
19915 \begin_layout Subsubsection
19916 Basics
19917 \end_layout
19918
19919 \begin_layout Standard
19920 If you want to have 2
19921 \begin_inset space ~
19922 \end_inset
19923
19924 columns in your text,
19925  insert a multicolumn inset via the menu 
19926 \family sans
19927 Insert\SpecialChar menuseparator
19928 Custom
19929 \begin_inset space ~
19930 \end_inset
19931
19932 Insets\SpecialChar menuseparator
19933 Multiple
19934 \begin_inset space ~
19935 \end_inset
19936
19937 Columns
19938 \family default
19939  where the columns should start.
19940  Write all text that should be printed in 2
19941 \begin_inset space ~
19942 \end_inset
19943
19944 columns into this inset.
19945 \end_layout
19946
19947 \begin_layout Standard
19948 Here is an example:
19949 \end_layout
19950
19951 \begin_layout Standard
19952 \noindent
19953 \begin_inset Flex Multiple Columns
19954 status open
19955
19956 \begin_layout Plain Layout
19957 \noindent
19958
19959 \series bold
19960 \size small
19961 The Adventure of the Empty House
19962 \series default
19963
19964 \begin_inset Newline newline
19965 \end_inset
19966
19967 by Sir Arthur Conan Doyle
19968 \end_layout
19969
19970 \begin_layout Plain Layout
19971
19972 \size small
19973 It was in the spring of the year 1894 that all London was interested,
19974  and the fashionable world dismayed,
19975  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
19976  The public has already learned those particulars of the crime which came out in the police investigation,
19977  but a good deal was suppressed upon that occasion,
19978  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
19979  Only now,
19980  at the end of nearly ten years,
19981  am I allowed to supply those missing links which make up the whole of that remarkable chain.
19982  The crime was of interest in itself,
19983  but that interest was as nothing to me compared to the inconceivable sequel,
19984  which afforded me the greatest shock and surprise of any event in my adventurous life.
19985  Even now,
19986  after this long interval,
19987  I find myself thrilling as I think of it,
19988  and feeling once more that sudden flood of joy,
19989  amazement,
19990  and incredulity which utterly submerged my mind.
19991  Let me say to that public,
19992  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
19993  that they are not to blame me if I have not shared my knowledge with them,
19994  for I should have considered it my first duty to do so,
19995  had I not been barred by a positive prohibition from his own lips,
19996  which was only withdrawn upon the third of last month.
19997 \end_layout
19998
19999 \end_inset
20000
20001
20002 \end_layout
20003
20004 \begin_layout Standard
20005 To get 3 or more columns,
20006  set the cursor into the multicolumn inset and use the menu 
20007 \family sans
20008 Insert\SpecialChar menuseparator
20009 Number
20010 \begin_inset space ~
20011 \end_inset
20012
20013 of
20014 \begin_inset space ~
20015 \end_inset
20016
20017 Columns
20018 \family default
20019 .
20020  The number of the desired columns is written into that inset (for 3
20021 \begin_inset space ~
20022 \end_inset
20023
20024 columns write 
20025 \begin_inset Quotes eld
20026 \end_inset
20027
20028 3
20029 \begin_inset Quotes erd
20030 \end_inset
20031
20032 ).
20033 \begin_inset Newline newline
20034 \end_inset
20035
20036 Here is an example with 3
20037 \begin_inset space ~
20038 \end_inset
20039
20040 columns:
20041 \end_layout
20042
20043 \begin_layout Standard
20044 \begin_inset Flex Multiple Columns
20045 status open
20046
20047 \begin_layout Plain Layout
20048
20049 \size footnotesize
20050 \begin_inset Argument 1
20051 status open
20052
20053 \begin_layout Plain Layout
20054
20055 3
20056 \end_layout
20057
20058 \end_inset
20059
20060 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
20061  and that after his disappearance I never failed to read with care the various problems which came before the public.
20062  And I even attempted,
20063  more than once,
20064  for my own private satisfaction,
20065  to employ his methods in their solution,
20066  though with indifferent success.
20067  There was none,
20068  however,
20069  which appealed to me like this tragedy of Ronald Adair.
20070  As I read the evidence at the inquest,
20071  which led up to a verdict of willful murder against some person or persons unknown,
20072  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
20073  There were points about this strange business which would,
20074  I was sure,
20075  have specially appealed to him,
20076  and the efforts of the police would have been supplemented,
20077  or more probably anticipated,
20078  by the trained observation and the alert mind of the first criminal agent in Europe.
20079  All day,
20080  as I drove upon my round,
20081  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
20082  At the risk of telling a twice-told tale,
20083  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
20084 \end_layout
20085
20086 \end_inset
20087
20088
20089 \end_layout
20090
20091 \begin_layout Standard
20092 You can have up to 10
20093 \begin_inset space ~
20094 \end_inset
20095
20096 columns if you want to,
20097  but that might not be very pleasant for the readers of your document.
20098 \end_layout
20099
20100 \begin_layout Standard
20101
20102 \change_deleted 564990737 1672236245
20103 \begin_inset Newpage newpage
20104 \end_inset
20105
20106
20107 \change_unchanged
20108
20109 \end_layout
20110
20111 \begin_layout Subsubsection
20112 Columns inside Columns
20113 \end_layout
20114
20115 \begin_layout Standard
20116 You can also have columns inside columns:
20117 \end_layout
20118
20119 \begin_layout Standard
20120 \begin_inset Flex Multiple Columns
20121 status open
20122
20123 \begin_layout Plain Layout
20124
20125 \size footnotesize
20126 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20127  at that time governor of one of the Australian colonies.
20128  Adair's mother had returned from Australia to undergo the operation for cataract,
20129  and she,
20130  her son Ronald,
20131  and her daughter Hilda were living together at 427 Park Lane.
20132 \end_layout
20133
20134 \begin_layout Plain Layout
20135 \begin_inset Flex Multiple Columns
20136 status open
20137
20138 \begin_layout Plain Layout
20139
20140 \size footnotesize
20141 The youth moved in the best society
20142 \begin_inset space ~
20143 \end_inset
20144
20145 – had,
20146  so far as was known,
20147  no enemies and no particular vices.
20148  He had been engaged to Miss Edith Woodley,
20149  of Carstairs,
20150  but the engagement had been broken off by mutual consent some months before,
20151  and there was no sign that it had left any very profound feeling behind it.
20152  For the rest {sic} the man's life moved in a narrow and conventional circle,
20153  for his habits were quiet and his nature unemotional.
20154  Yet it was upon this easy-going young aristocrat that death came,
20155  in most strange and unexpected form,
20156  between the hours of ten and eleven-twenty on the night of March 30,
20157  1894.
20158 \end_layout
20159
20160 \end_inset
20161
20162
20163 \end_layout
20164
20165 \begin_layout Plain Layout
20166
20167 \size footnotesize
20168 Ronald Adair was fond of cards
20169 \begin_inset space ~
20170 \end_inset
20171
20172 – playing continually,
20173  but never for such stakes as would hurt him.
20174  He was a member of the Baldwin,
20175  the Cavendish,
20176  and the Bagatelle card clubs.
20177  It was shown that,
20178  after dinner on the day of his death,
20179  he had played a rubber of whist at the latter club.
20180  He had also played there in the afternoon.
20181
20182 \size default
20183  
20184 \size footnotesize
20185 The evidence of those who had played with him
20186 \begin_inset space ~
20187 \end_inset
20188
20189 – Mr.
20190  Murray,
20191  Sir John Hardy,
20192  and Colonel Moran
20193 \begin_inset space ~
20194 \end_inset
20195
20196 – showed that the game was whist,
20197  and that there was a fairly equal fall of the cards.
20198  Adair might have lost five pounds,
20199  but not more.
20200  His fortune was a considerable one,
20201  and such a loss could not in any way affect him.
20202  He had played nearly every day at one club or other,
20203  but he was a cautious player,
20204  and usually rose a winner.
20205  It came out in evidence that,
20206  in partnership with Colonel Moran,
20207  he had actually won as much as four hundred and twenty pounds in a sitting,
20208  some weeks before,
20209  from Godfrey Milner and Lord Balmoral.
20210  So much for his recent history as it came out at the inquest.
20211 \end_layout
20212
20213 \end_inset
20214
20215
20216 \end_layout
20217
20218 \begin_layout Subsubsection
20219 Advanced Examples
20220 \end_layout
20221
20222 \begin_layout Standard
20223 The examples in this section show some more special features of multiple columns.
20224 \end_layout
20225
20226 \begin_layout Standard
20227 For more features of multiple columns,
20228  have a look at the 
20229 \begin_inset CommandInset href
20230 LatexCommand href
20231 name "documentation"
20232 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
20233 literal "false"
20234
20235 \end_inset
20236
20237  of the \SpecialChar LaTeX
20238 -package 
20239 \begin_inset Flex Code
20240 status collapsed
20241
20242 \begin_layout Plain Layout
20243 multicol
20244 \end_layout
20245
20246 \end_inset
20247
20248 .
20249 \end_layout
20250
20251 \begin_layout Paragraph
20252 Preface
20253 \end_layout
20254
20255 \begin_layout Standard
20256 To add a preface text for multiple columns,
20257  set the cursor into the multicolumn inset and use the menu 
20258 \family sans
20259 Insert\SpecialChar menuseparator
20260 Preface
20261 \family default
20262 .
20263  Write your preface text into that inset.
20264 \begin_inset Newline newline
20265 \end_inset
20266
20267 This is an example with some preface text:
20268 \end_layout
20269
20270 \begin_layout Standard
20271 \begin_inset VSpace bigskip
20272 \end_inset
20273
20274
20275 \end_layout
20276
20277 \begin_layout Standard
20278 \begin_inset Flex Multiple Columns
20279 status open
20280
20281 \begin_layout Plain Layout
20282 \begin_inset Argument 2
20283 status open
20284
20285 \begin_layout Plain Layout
20286 And the story continues and continues and continues and continues\SpecialChar ldots
20287
20288 \end_layout
20289
20290 \end_inset
20291
20292
20293 \size small
20294 On the evening of the crime,
20295  he returned from the club exactly at ten.
20296  His mother and sister were out spending the evening with a relation.
20297  The servant deposed that she heard him enter the front room on the second floor,
20298  generally used as his sitting-room.
20299  She had lit a fire there,
20300  and as it smoked she had opened the window.
20301  No sound was heard from the room until eleven-twenty,
20302  the hour of the return of Lady Maynooth and her daughter.
20303  Desiring to say good-night,
20304  she attempted to enter her son's room.
20305  The door was locked on the inside,
20306  and no answer could be got to their cries and knocking.
20307  Help was obtained,
20308  and the door forced.
20309  The unfortunate young man was found lying near the table.
20310  His head had been horribly mutilated by an expanding revolver bullet,
20311  but no weapon of any sort was to be found in the room.
20312 \end_layout
20313
20314 \end_inset
20315
20316
20317 \end_layout
20318
20319 \begin_layout Standard
20320 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
20321  Code.
20322  For example the command
20323 \end_layout
20324
20325 \begin_layout LyX-Code
20326
20327 \backslash
20328 subsection{subsection title}
20329 \end_layout
20330
20331 \begin_layout Standard
20332 creates a subsection.
20333  In this example the preface is a subsubsection:
20334 \end_layout
20335
20336 \begin_layout Standard
20337 \begin_inset Flex Multiple Columns
20338 status open
20339
20340 \begin_layout Plain Layout
20341 \begin_inset Argument 2
20342 status open
20343
20344 \begin_layout Plain Layout
20345 \begin_inset ERT
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349
20350
20351 \backslash
20352 subsubsection{
20353 \end_layout
20354
20355 \end_inset
20356
20357 This is a subsubsection heading as a preface
20358 \begin_inset ERT
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362
20363 }
20364 \end_layout
20365
20366 \end_inset
20367
20368
20369 \end_layout
20370
20371 \end_inset
20372
20373
20374 \size small
20375 A minute examination of the circumstances served only to make the case more complex.
20376  In the first place,
20377  no reason could be given why the young man should have fastened the door upon the inside.
20378  There was the possibility that the murderer had done this,
20379  and had afterwards escaped by the window.
20380  The drop was at least twenty feet,
20381  however,
20382  and a bed of crocuses in full bloom lay beneath.
20383  Neither the flowers nor the earth showed any sign of having been disturbed,
20384  nor were there any marks upon the narrow strip of grass which separated the house from the road.
20385  Apparently,
20386  therefore,
20387  it was the young man himself who had fastened the door.
20388  But how did he come by his death?
20389  No one could have climbed up to the window without leaving traces.
20390  Suppose a man had fired through the window,
20391  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
20392  Again,
20393  Park Lane is a frequented thoroughfare;
20394  there is a cab stand within a hundred yards of the house.
20395  No one had heard a shot.
20396 \end_layout
20397
20398 \end_inset
20399
20400
20401 \end_layout
20402
20403 \begin_layout Standard
20404 If there is less vertical space than 6
20405 \begin_inset space ~
20406 \end_inset
20407
20408 text lines is left on the page at the beginning of the multiple columns,
20409  a page break will be inserted before the multiple columns.
20410  Depending on the number of lines of the preface text,
20411  you might want to change this space.
20412  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
20413 \family sans
20414 Insert\SpecialChar menuseparator
20415 Space
20416 \begin_inset space ~
20417 \end_inset
20418
20419 Before
20420 \begin_inset space ~
20421 \end_inset
20422
20423 Page
20424 \begin_inset space ~
20425 \end_inset
20426
20427 Break
20428 \family default
20429 .
20430  Insert into that inset the amount of space like e.
20431 \begin_inset space \thinspace{}
20432 \end_inset
20433
20434 g.
20435 \begin_inset space \space{}
20436 \end_inset
20437
20438
20439 \begin_inset Quotes eld
20440 \end_inset
20441
20442 5cm
20443 \begin_inset Quotes erd
20444 \end_inset
20445
20446 .
20447 \begin_inset Newline newline
20448 \end_inset
20449
20450 In this example the space is set to 7
20451 \begin_inset space ~
20452 \end_inset
20453
20454 text lines by using 
20455 \begin_inset Flex Code
20456 status collapsed
20457
20458 \begin_layout Plain Layout
20459 7
20460 \backslash
20461 baselineskip
20462 \end_layout
20463
20464 \end_inset
20465
20466  (where the command 
20467 \begin_inset Flex Code
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471
20472 \backslash
20473 baselineskip
20474 \end_layout
20475
20476 \end_inset
20477
20478  needs to be inserted as \SpecialChar TeX
20479  code):
20480 \end_layout
20481
20482 \begin_layout Standard
20483 \begin_inset Flex Multiple Columns
20484 status open
20485
20486 \begin_layout Plain Layout
20487 \begin_inset Argument 3
20488 status open
20489
20490 \begin_layout Plain Layout
20491 7
20492 \begin_inset ERT
20493 status collapsed
20494
20495 \begin_layout Plain Layout
20496
20497
20498 \backslash
20499 baselineskip
20500 \end_layout
20501
20502 \end_inset
20503
20504
20505 \end_layout
20506
20507 \end_inset
20508
20509
20510 \size small
20511 On the evening of the crime,
20512  he returned from the club exactly at ten.
20513  His mother and sister were out spending the evening with a relation.
20514  The servant deposed that she heard him enter the front room on the second floor,
20515  generally used as his sitting-room.
20516  She had lit a fire there,
20517  and as it smoked she had opened the window.
20518  No sound was heard from the room until eleven-twenty,
20519  the hour of the return of Lady Maynooth and her daughter.
20520  Desiring to say good-night,
20521  she attempted to enter her son's room.
20522  The door was locked on the inside,
20523  and no answer could be got to their cries and knocking.
20524  Help was obtained,
20525  and the door forced.
20526  The unfortunate young man was found lying near the table.
20527  His head had been horribly mutilated by an expanding revolver bullet,
20528  but no weapon of any sort was to be found in the room.
20529 \end_layout
20530
20531 \end_inset
20532
20533
20534 \end_layout
20535
20536 \begin_layout Paragraph
20537 Surrounding Space
20538 \end_layout
20539
20540 \begin_layout Standard
20541 The amount of space before and after multiple columns can be changed by changing the length 
20542 \begin_inset Flex Code
20543 status collapsed
20544
20545 \begin_layout Plain Layout
20546
20547 \backslash
20548 multicolsep
20549 \end_layout
20550
20551 \end_inset
20552
20553 .
20554  For example the command
20555 \end_layout
20556
20557 \begin_layout LyX-Code
20558
20559 \backslash
20560 setlength{
20561 \backslash
20562 multicolsep}{3cm}
20563 \end_layout
20564
20565 \begin_layout Standard
20566 in \SpecialChar TeX
20567  Code changes its value to 3
20568 \begin_inset space \thinspace{}
20569 \end_inset
20570
20571 cm.
20572  The change must be made before the multiple columns' start.
20573  The predefined value is 13
20574 \begin_inset space \thinspace{}
20575 \end_inset
20576
20577 pt.
20578 \end_layout
20579
20580 \begin_layout Standard
20581 For this example 
20582 \begin_inset Flex Code
20583 status collapsed
20584
20585 \begin_layout Plain Layout
20586
20587 \backslash
20588 multicolsep
20589 \end_layout
20590
20591 \end_inset
20592
20593  was set to 2.5
20594 \begin_inset space \thinspace{}
20595 \end_inset
20596
20597 cm:
20598 \end_layout
20599
20600 \begin_layout Standard
20601 \begin_inset ERT
20602 status open
20603
20604 \begin_layout Plain Layout
20605
20606
20607 \backslash
20608 setlength{
20609 \backslash
20610 multicolsep}{2.5cm}
20611 \end_layout
20612
20613 \end_inset
20614
20615
20616 \end_layout
20617
20618 \begin_layout Standard
20619 \begin_inset Flex Multiple Columns
20620 status open
20621
20622 \begin_layout Plain Layout
20623
20624 \size small
20625 All day I turned these facts over in my mind,
20626  endeavouring to hit upon some theory which could reconcile them all,
20627  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
20628  I confess that I made little progress.
20629  In the evening I strolled across the Park,
20630  and found myself about six o'clock at the Oxford Street end of Park Lane.
20631  A group of loafers upon the pavements,
20632  all staring up at a particular window,
20633  directed me to the house which I had come to see.
20634  A tall,
20635  thin man with coloured glasses,
20636  whom I strongly suspected of being a plain-clothes detective,
20637  was pointing out some theory of his own,
20638  while the others crowded round to listen to what he said.
20639  I got as near him as I could,
20640  but his observations seemed to me to be absurd,
20641  so I withdrew again in some disgust.
20642  As I did so I struck against an elderly,
20643  deformed man,
20644  who had been behind me,
20645  and I knocked down several books which he was carrying.
20646 \end_layout
20647
20648 \end_inset
20649
20650
20651 \end_layout
20652
20653 \begin_layout Standard
20654 \begin_inset Note Greyedout
20655 status open
20656
20657 \begin_layout Plain Layout
20658
20659 \series bold
20660 Note:
20661
20662 \series default
20663  The values you set with 
20664 \begin_inset Flex Code
20665 status collapsed
20666
20667 \begin_layout Plain Layout
20668
20669 \backslash
20670 setlength
20671 \end_layout
20672
20673 \end_inset
20674
20675  will be used for all following multiple columns until you change them again.
20676 \end_layout
20677
20678 \end_inset
20679
20680
20681 \end_layout
20682
20683 \begin_layout Standard
20684 \begin_inset ERT
20685 status collapsed
20686
20687 \begin_layout Plain Layout
20688
20689
20690 \backslash
20691 setlength{
20692 \backslash
20693 multicolsep}{13pt}
20694 \end_layout
20695
20696 \end_inset
20697
20698
20699 \begin_inset Note Note
20700 status collapsed
20701
20702 \begin_layout Plain Layout
20703 go back to the default
20704 \end_layout
20705
20706 \end_inset
20707
20708
20709 \end_layout
20710
20711 \begin_layout Standard
20712
20713 \change_deleted 564990737 1672236355
20714 \begin_inset Newpage newpage
20715 \end_inset
20716
20717
20718 \change_unchanged
20719
20720 \end_layout
20721
20722 \begin_layout Paragraph
20723 Column Breaks
20724 \end_layout
20725
20726 \begin_layout Standard
20727 A column break can be forced by inserting the command 
20728 \begin_inset Flex Code
20729 status collapsed
20730
20731 \begin_layout Plain Layout
20732
20733 \backslash
20734 columnbreak{}
20735 \end_layout
20736
20737 \end_inset
20738
20739  as \SpecialChar TeX
20740  Code to that position in the text where the column should be broken.
20741  Note that this leads in most cases to whitespace in the text.
20742 \begin_inset Newline newline
20743 \end_inset
20744
20745 Here is an example:
20746 \end_layout
20747
20748 \begin_layout Standard
20749 \begin_inset Flex Multiple Columns
20750 status open
20751
20752 \begin_layout Plain Layout
20753
20754 \size small
20755 \begin_inset Quotes eld
20756 \end_inset
20757
20758 You're surprised to see me,
20759  sir,
20760 \begin_inset Quotes erd
20761 \end_inset
20762
20763  said he,
20764  in a strange,
20765  croaking voice.
20766 \end_layout
20767
20768 \begin_layout Plain Layout
20769
20770 \size small
20771 I acknowledged that I was.
20772 \end_layout
20773
20774 \begin_layout Plain Layout
20775
20776 \size small
20777 \begin_inset Quotes eld
20778 \end_inset
20779
20780 Well,
20781  I've a conscience,
20782  sir,
20783  and when I chanced to see you go into this house,
20784  as I came hobbling after you,
20785  I thought to myself,
20786  I'll just step in and see that kind gentleman,
20787  and tell him that if I was a bit gruff in my manner there was not any harm meant,
20788  and that I am much obliged to him for picking up my books.
20789 \begin_inset Quotes erd
20790 \end_inset
20791
20792
20793 \end_layout
20794
20795 \begin_layout Plain Layout
20796
20797 \size small
20798 \begin_inset Quotes eld
20799 \end_inset
20800
20801 You make too much of a trifle,
20802 \begin_inset Quotes erd
20803 \end_inset
20804
20805  said I.
20806  
20807 \begin_inset Quotes eld
20808 \end_inset
20809
20810 May I ask how you knew who I was?
20811 \begin_inset Quotes erd
20812 \end_inset
20813
20814  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
20815 \begin_inset ERT
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819
20820
20821 \backslash
20822 columnbreak{}
20823 \end_layout
20824
20825 \end_inset
20826
20827
20828 \end_layout
20829
20830 \begin_layout Plain Layout
20831
20832 \size small
20833 \begin_inset Quotes eld
20834 \end_inset
20835
20836 Well,
20837  sir,
20838  if it isn't too great a liberty,
20839  I am a neighbour of yours,
20840  for you'll find my little bookshop at the corner of Church Street,
20841  and very happy to see you,
20842  I am sure.
20843  Maybe you collect yourself,
20844  sir.
20845  Here's 
20846 \noun on
20847 British
20848 \begin_inset space ~
20849 \end_inset
20850
20851 Birds
20852 \noun default
20853 ,
20854  and 
20855 \noun on
20856 Catullus
20857 \noun default
20858 ,
20859  and 
20860 \noun on
20861 The Holy War
20862 \noun default
20863
20864 \begin_inset space ~
20865 \end_inset
20866
20867 – a bargain,
20868  every one of them.
20869  With five volumes you could just fill that gap on that second shelf.
20870  It looks untidy,
20871  does it not,
20872  sir?
20873 \begin_inset Quotes erd
20874 \end_inset
20875
20876
20877 \end_layout
20878
20879 \end_inset
20880
20881
20882 \end_layout
20883
20884 \begin_layout Paragraph
20885 Column Separation
20886 \end_layout
20887
20888 \begin_layout Standard
20889 The width of the columns is automatically calculated,
20890  but you can modify the space between the columns.
20891  This is done by changing the length 
20892 \begin_inset Flex Code
20893 status collapsed
20894
20895 \begin_layout Plain Layout
20896
20897 \backslash
20898 columnsep
20899 \end_layout
20900
20901 \end_inset
20902
20903 .
20904  Its predefined value is 10
20905 \begin_inset space \thinspace{}
20906 \end_inset
20907
20908 pt.
20909  Here is an example where 
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914
20915 \backslash
20916 columnsep
20917 \end_layout
20918
20919 \end_inset
20920
20921  is set to 3
20922 \begin_inset space \thinspace{}
20923 \end_inset
20924
20925 cm:
20926 \end_layout
20927
20928 \begin_layout Standard
20929 \begin_inset ERT
20930 status open
20931
20932 \begin_layout Plain Layout
20933
20934
20935 \backslash
20936 setlength{
20937 \backslash
20938 columnsep}{3cm}
20939 \end_layout
20940
20941 \end_inset
20942
20943
20944 \end_layout
20945
20946 \begin_layout Standard
20947 \begin_inset Flex Multiple Columns
20948 status open
20949
20950 \begin_layout Plain Layout
20951
20952 \size small
20953 My observations of No.
20954 \begin_inset space \space{}
20955 \end_inset
20956
20957 427 Park Lane did little to clear up the problem in which I was interested.
20958  The house was separated from the street by a low wall and railing,
20959  the whole not more than five feet high.
20960  It was perfectly easy,
20961  therefore,
20962  for anyone to get into the garden,
20963  but the window was entirely inaccessible,
20964  since there was no water pipe or anything which could help the most active man to climb it.
20965  More puzzled than ever,
20966  I retraced my steps to Kensington.
20967  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
20968  To my astonishment it was none other than my strange old book collector,
20969  his sharp,
20970  wizened face peering out from a frame of white hair,
20971  and his precious volumes,
20972  a dozen of them at least,
20973  wedged under his right arm.
20974 \end_layout
20975
20976 \end_inset
20977
20978
20979 \end_layout
20980
20981 \begin_layout Standard
20982 \begin_inset ERT
20983 status collapsed
20984
20985 \begin_layout Plain Layout
20986
20987
20988 \backslash
20989 setlength{
20990 \backslash
20991 columnsep}{10pt}
20992 \end_layout
20993
20994 \end_inset
20995
20996
20997 \begin_inset Note Note
20998 status collapsed
20999
21000 \begin_layout Plain Layout
21001 go back to the default
21002 \end_layout
21003
21004 \end_inset
21005
21006
21007 \end_layout
21008
21009 \begin_layout Paragraph
21010 Vertical Lines
21011 \end_layout
21012
21013 \begin_layout Standard
21014 Between the columns a rule with a width of the length 
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019
21020 \backslash
21021 columnseprule
21022 \end_layout
21023
21024 \end_inset
21025
21026  is placed.
21027  If this rule width is set to 0
21028 \begin_inset space \thinspace{}
21029 \end_inset
21030
21031 pt (this is the default),
21032  the rule is suppressed.
21033  In the following example the rule is 2
21034 \begin_inset space \thinspace{}
21035 \end_inset
21036
21037 pt wide:
21038 \end_layout
21039
21040 \begin_layout Standard
21041 \begin_inset ERT
21042 status open
21043
21044 \begin_layout Plain Layout
21045
21046
21047 \backslash
21048 setlength{
21049 \backslash
21050 columnseprule}{2pt}
21051 \end_layout
21052
21053 \end_inset
21054
21055
21056 \end_layout
21057
21058 \begin_layout Standard
21059 \begin_inset Flex Multiple Columns
21060 status open
21061
21062 \begin_layout Plain Layout
21063
21064 \size small
21065 \begin_inset Quotes eld
21066 \end_inset
21067
21068 You're surprised to see me,
21069  sir,
21070 \begin_inset Quotes erd
21071 \end_inset
21072
21073  said he,
21074  in a strange,
21075  croaking voice.
21076 \end_layout
21077
21078 \begin_layout Plain Layout
21079
21080 \size small
21081 I acknowledged that I was.
21082 \end_layout
21083
21084 \begin_layout Plain Layout
21085
21086 \size small
21087 \begin_inset Quotes eld
21088 \end_inset
21089
21090 Well,
21091  I've a conscience,
21092  sir,
21093  and when I chanced to see you go into this house,
21094  as I came hobbling after you,
21095  I thought to myself,
21096  I'll just step in and see that kind gentleman,
21097  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21098  and that I am much obliged to him for picking up my books.
21099 \begin_inset Quotes erd
21100 \end_inset
21101
21102
21103 \end_layout
21104
21105 \begin_layout Plain Layout
21106
21107 \size small
21108 \begin_inset Quotes eld
21109 \end_inset
21110
21111 You make too much of a trifle,
21112 \begin_inset Quotes erd
21113 \end_inset
21114
21115  said I.
21116  
21117 \begin_inset Quotes eld
21118 \end_inset
21119
21120 May I ask how you knew who I was?
21121 \begin_inset Quotes erd
21122 \end_inset
21123
21124
21125 \end_layout
21126
21127 \begin_layout Plain Layout
21128
21129 \size small
21130 \begin_inset Quotes eld
21131 \end_inset
21132
21133 Well,
21134  sir,
21135  if it isn't too great a liberty,
21136  I am a neighbour of yours,
21137  for you'll find my little bookshop at the corner of Church Street,
21138  and very happy to see you,
21139  I am sure.
21140  Maybe you collect yourself,
21141  sir.
21142  Here's 
21143 \noun on
21144 British
21145 \begin_inset space ~
21146 \end_inset
21147
21148 Birds
21149 \noun default
21150 ,
21151  and 
21152 \noun on
21153 Catullus
21154 \noun default
21155 ,
21156  and 
21157 \noun on
21158 The Holy War
21159 \noun default
21160
21161 \begin_inset space ~
21162 \end_inset
21163
21164 – a bargain,
21165  every one of them.
21166  With five volumes you could just fill that gap on that second shelf.
21167  It looks untidy,
21168  does it not,
21169  sir?
21170 \begin_inset Quotes erd
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \end_inset
21177
21178
21179 \end_layout
21180
21181 \begin_layout Standard
21182 \begin_inset VSpace defskip
21183 \end_inset
21184
21185
21186 \end_layout
21187
21188 \begin_layout Standard
21189 The rule can be colored by redefining the command 
21190 \begin_inset Flex Code
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194
21195 \backslash
21196 columnseprulecolor
21197 \end_layout
21198
21199 \end_inset
21200
21201 .
21202  This is done by inserting the command
21203 \end_layout
21204
21205 \begin_layout LyX-Code
21206
21207 \backslash
21208 renewcommand{
21209 \backslash
21210 columnseprulecolor}{
21211 \backslash
21212 color{red}}
21213 \end_layout
21214
21215 \begin_layout Standard
21216 as \SpecialChar TeX
21217  Code before the multicolumn inset.
21218  Replace 
21219 \begin_inset Flex Code
21220 status collapsed
21221
21222 \begin_layout Plain Layout
21223 red
21224 \end_layout
21225
21226 \end_inset
21227
21228  in this command by a color of your choice.
21229  You can use all pre- and self-defined colors.
21230  See the 
21231 \emph on
21232 EmbeddedObjects
21233 \emph default
21234  manual,
21235  section 
21236 \emph on
21237 Colored
21238 \begin_inset space ~
21239 \end_inset
21240
21241 Tables
21242 \emph default
21243  for more information about pre- and self-defined colors.
21244  To go back to the default color insert the command
21245 \end_layout
21246
21247 \begin_layout LyX-Code
21248
21249 \backslash
21250 renewcommand{
21251 \backslash
21252 columnseprulecolor}{
21253 \backslash
21254 normalcolor}
21255 \end_layout
21256
21257 \begin_layout Standard
21258 Here is the example with a cyan rule and 1
21259 \begin_inset space \thinspace{}
21260 \end_inset
21261
21262 cm column separation:
21263 \end_layout
21264
21265 \begin_layout Standard
21266 \begin_inset ERT
21267 status open
21268
21269 \begin_layout Plain Layout
21270
21271
21272 \backslash
21273 setlength{
21274 \backslash
21275 columnsep}{1cm}
21276 \end_layout
21277
21278 \begin_layout Plain Layout
21279
21280
21281 \backslash
21282 renewcommand{
21283 \backslash
21284 columnseprulecolor}{
21285 \backslash
21286 color{cyan}}
21287 \end_layout
21288
21289 \end_inset
21290
21291
21292 \end_layout
21293
21294 \begin_layout Standard
21295 \begin_inset Flex Multiple Columns
21296 status open
21297
21298 \begin_layout Plain Layout
21299
21300 \size small
21301 \begin_inset Quotes eld
21302 \end_inset
21303
21304 You're surprised to see me,
21305  sir,
21306 \begin_inset Quotes erd
21307 \end_inset
21308
21309  said he,
21310  in a strange,
21311  croaking voice.
21312 \end_layout
21313
21314 \begin_layout Plain Layout
21315
21316 \size small
21317 I acknowledged that I was.
21318 \end_layout
21319
21320 \begin_layout Plain Layout
21321
21322 \size small
21323 \begin_inset Quotes eld
21324 \end_inset
21325
21326 Well,
21327  I've a conscience,
21328  sir,
21329  and when I chanced to see you go into this house,
21330  as I came hobbling after you,
21331  I thought to myself,
21332  I'll just step in and see that kind gentleman,
21333  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21334  and that I am much obliged to him for picking up my books.
21335 \begin_inset Quotes erd
21336 \end_inset
21337
21338
21339 \end_layout
21340
21341 \begin_layout Plain Layout
21342
21343 \size small
21344 \begin_inset Quotes eld
21345 \end_inset
21346
21347 You make too much of a trifle,
21348 \begin_inset Quotes erd
21349 \end_inset
21350
21351  said I.
21352  
21353 \begin_inset Quotes eld
21354 \end_inset
21355
21356 May I ask how you knew who I was?
21357 \begin_inset Quotes erd
21358 \end_inset
21359
21360
21361 \end_layout
21362
21363 \begin_layout Plain Layout
21364
21365 \size small
21366 \begin_inset Quotes eld
21367 \end_inset
21368
21369 Well,
21370  sir,
21371  if it isn't too great a liberty,
21372  I am a neighbour of yours,
21373  for you'll find my little bookshop at the corner of Church Street,
21374  and very happy to see you,
21375  I am sure.
21376  Maybe you collect yourself,
21377  sir.
21378  Here's 
21379 \noun on
21380 British
21381 \begin_inset space ~
21382 \end_inset
21383
21384 Birds
21385 \noun default
21386 ,
21387  and 
21388 \noun on
21389 Catullus
21390 \noun default
21391 ,
21392  and 
21393 \noun on
21394 The Holy War
21395 \noun default
21396
21397 \begin_inset space ~
21398 \end_inset
21399
21400 – a bargain,
21401  every one of them.
21402  With five volumes you could just fill that gap on that second shelf.
21403  It looks untidy,
21404  does it not,
21405  sir?
21406 \begin_inset Quotes erd
21407 \end_inset
21408
21409
21410 \end_layout
21411
21412 \end_inset
21413
21414
21415 \end_layout
21416
21417 \begin_layout Standard
21418 \begin_inset ERT
21419 status collapsed
21420
21421 \begin_layout Plain Layout
21422
21423
21424 \backslash
21425 setlength{
21426 \backslash
21427 columnseprule}{0pt}
21428 \end_layout
21429
21430 \begin_layout Plain Layout
21431
21432
21433 \backslash
21434 renewcommand{
21435 \backslash
21436 columnseprulecolor}{
21437 \backslash
21438 normalcolor}
21439 \end_layout
21440
21441 \end_inset
21442
21443
21444 \begin_inset Note Note
21445 status collapsed
21446
21447 \begin_layout Plain Layout
21448 go back to the default
21449 \end_layout
21450
21451 \end_inset
21452
21453
21454 \end_layout
21455
21456 \begin_layout Section
21457
21458 \change_inserted 564990737 1671270380
21459 Paragraph Styles
21460 \end_layout
21461
21462 \begin_layout Subsection
21463
21464 \change_inserted 564990737 1671270398
21465 Custom
21466 \change_deleted 564990737 1671270396
21467 Non-standard
21468 \change_unchanged
21469  Paragraph Shapes
21470 \end_layout
21471
21472 \begin_layout Standard
21473 \noindent
21474 \SpecialChar LaTeX
21475  as well as any other text processor uses by default rectangular paragraphs.
21476  For special cases like for example posters,
21477  invitation cards or poems you can modify the paragraph shape to one of your choice.
21478  
21479 \change_deleted 564990737 1672311802
21480 This can be done by using the \SpecialChar LaTeX
21481 -package 
21482 \begin_inset Flex Code
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 shapepar
21487 \end_layout
21488
21489 \end_inset
21490
21491  which is loaded by using in the document settings the module 
21492 \family sans
21493 Custom paragraph shapes
21494 \family default
21495 .
21496 \change_inserted 564990737 1672311802
21497 This module uses the 
21498 \family sans
21499 shapepar
21500 \family default
21501  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
21502  
21503 \change_unchanged
21504
21505 \end_layout
21506
21507 \begin_layout Subsubsection
21508 Predefined shapes
21509 \end_layout
21510
21511 \begin_layout Standard
21512
21513 \series bold
21514 shapepar
21515 \series default
21516  provides the following shapes:
21517 \end_layout
21518
21519 \begin_layout Standard
21520 \begin_inset Tabular
21521 <lyxtabular version="3" rows="13" columns="3">
21522 <features booktabs="true" islongtable="true" longtabularalignment="center">
21523 <column alignment="left" valignment="middle" width="16col%">
21524 <column alignment="left" valignment="middle" width="40col%">
21525 <column alignment="left" valignment="middle" width="35col%">
21526 <row endhead="true">
21527 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21528 \begin_inset Text
21529
21530 \begin_layout Plain Layout
21531
21532 \series bold
21533 \size small
21534 Name
21535 \end_layout
21536
21537 \end_inset
21538 </cell>
21539 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21540 \begin_inset Text
21541
21542 \begin_layout Plain Layout
21543
21544 \series bold
21545 \size small
21546 Description
21547 \end_layout
21548
21549 \end_inset
21550 </cell>
21551 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21552 \begin_inset Text
21553
21554 \begin_layout Plain Layout
21555
21556 \series bold
21557 \size small
21558 Annotation
21559 \end_layout
21560
21561 \end_inset
21562 </cell>
21563 </row>
21564 <row interlinespace="default">
21565 <cell alignment="left" valignment="top" usebox="none">
21566 \begin_inset Text
21567
21568 \begin_layout Plain Layout
21569
21570 \size small
21571 CDlabel
21572 \end_layout
21573
21574 \end_inset
21575 </cell>
21576 <cell alignment="left" valignment="top" usebox="none">
21577 \begin_inset Text
21578
21579 \begin_layout Plain Layout
21580
21581 \size small
21582 Circle with circular hole (in the size of a CD/DVD)
21583 \end_layout
21584
21585 \end_inset
21586 </cell>
21587 <cell alignment="left" valignment="top" usebox="none">
21588 \begin_inset Text
21589
21590 \begin_layout Plain Layout
21591
21592 \size small
21593 Cannot be scaled,
21594  take care there is not too much text
21595 \end_layout
21596
21597 \end_inset
21598 </cell>
21599 </row>
21600 <row interlinespace="default">
21601 <cell alignment="left" valignment="top" usebox="none">
21602 \begin_inset Text
21603
21604 \begin_layout Plain Layout
21605
21606 \size small
21607 Circle
21608 \end_layout
21609
21610 \end_inset
21611 </cell>
21612 <cell alignment="left" valignment="top" usebox="none">
21613 \begin_inset Text
21614
21615 \begin_layout Plain Layout
21616
21617 \size small
21618 Circle
21619 \end_layout
21620
21621 \end_inset
21622 </cell>
21623 <cell alignment="left" valignment="top" usebox="none">
21624 \begin_inset Text
21625
21626 \begin_layout Plain Layout
21627
21628 \size small
21629 Fragile,
21630  calculation might fail
21631 \end_layout
21632
21633 \end_inset
21634 </cell>
21635 </row>
21636 <row interlinespace="default">
21637 <cell alignment="left" valignment="top" usebox="none">
21638 \begin_inset Text
21639
21640 \begin_layout Plain Layout
21641
21642 \size small
21643 Diamond
21644 \end_layout
21645
21646 \end_inset
21647 </cell>
21648 <cell alignment="left" valignment="top" usebox="none">
21649 \begin_inset Text
21650
21651 \begin_layout Plain Layout
21652
21653 \size small
21654 Rhomboid (symbolizing a 
21655 \begin_inset Quotes eld
21656 \end_inset
21657
21658 diamond
21659 \begin_inset Quotes erd
21660 \end_inset
21661
21662 )
21663 \end_layout
21664
21665 \end_inset
21666 </cell>
21667 <cell alignment="left" valignment="top" usebox="none">
21668 \begin_inset Text
21669
21670 \begin_layout Plain Layout
21671
21672 \size small
21673 -
21674 \end_layout
21675
21676 \end_inset
21677 </cell>
21678 </row>
21679 <row interlinespace="default">
21680 <cell alignment="left" valignment="top" usebox="none">
21681 \begin_inset Text
21682
21683 \begin_layout Plain Layout
21684
21685 \size small
21686 Heart
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 Heart-like shape
21698 \end_layout
21699
21700 \end_inset
21701 </cell>
21702 <cell alignment="left" valignment="top" usebox="none">
21703 \begin_inset Text
21704
21705 \begin_layout Plain Layout
21706
21707 \size small
21708 -
21709 \end_layout
21710
21711 \end_inset
21712 </cell>
21713 </row>
21714 <row interlinespace="default">
21715 <cell alignment="left" valignment="top" usebox="none">
21716 \begin_inset Text
21717
21718 \begin_layout Plain Layout
21719
21720 \size small
21721 Hexagon
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 Hexagon
21733 \end_layout
21734
21735 \end_inset
21736 </cell>
21737 <cell alignment="left" valignment="top" usebox="none">
21738 \begin_inset Text
21739
21740 \begin_layout Plain Layout
21741
21742 \size small
21743 -
21744 \end_layout
21745
21746 \end_inset
21747 </cell>
21748 </row>
21749 <row interlinespace="default">
21750 <cell alignment="left" valignment="top" usebox="none">
21751 \begin_inset Text
21752
21753 \begin_layout Plain Layout
21754
21755 \size small
21756 Nut
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 Nut for bolt (hexagon with circular hole)
21768 \end_layout
21769
21770 \end_inset
21771 </cell>
21772 <cell alignment="left" valignment="top" usebox="none">
21773 \begin_inset Text
21774
21775 \begin_layout Plain Layout
21776
21777 \size small
21778 -
21779 \end_layout
21780
21781 \end_inset
21782 </cell>
21783 </row>
21784 <row interlinespace="default">
21785 <cell alignment="left" valignment="top" usebox="none">
21786 \begin_inset Text
21787
21788 \begin_layout Plain Layout
21789
21790 \size small
21791 Square
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 Square
21803 \end_layout
21804
21805 \end_inset
21806 </cell>
21807 <cell alignment="left" valignment="top" usebox="none">
21808 \begin_inset Text
21809
21810 \begin_layout Plain Layout
21811
21812 \size small
21813 -
21814 \end_layout
21815
21816 \end_inset
21817 </cell>
21818 </row>
21819 <row interlinespace="default">
21820 <cell alignment="left" valignment="top" usebox="none">
21821 \begin_inset Text
21822
21823 \begin_layout Plain Layout
21824
21825 \size small
21826 Star
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 Five-point star
21838 \end_layout
21839
21840 \end_inset
21841 </cell>
21842 <cell alignment="left" valignment="top" usebox="none">
21843 \begin_inset Text
21844
21845 \begin_layout Plain Layout
21846
21847 \size small
21848 -
21849 \end_layout
21850
21851 \end_inset
21852 </cell>
21853 </row>
21854 <row interlinespace="default">
21855 <cell alignment="left" valignment="top" usebox="none">
21856 \begin_inset Text
21857
21858 \begin_layout Plain Layout
21859
21860 \size small
21861 Candle
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 Burning candle
21873 \end_layout
21874
21875 \end_inset
21876 </cell>
21877 <cell alignment="left" valignment="top" usebox="none">
21878 \begin_inset Text
21879
21880 \begin_layout Plain Layout
21881
21882 \size small
21883 -
21884 \end_layout
21885
21886 \end_inset
21887 </cell>
21888 </row>
21889 <row interlinespace="default">
21890 <cell alignment="left" valignment="top" usebox="none">
21891 \begin_inset Text
21892
21893 \begin_layout Plain Layout
21894
21895 \size small
21896 Drop down/up
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 Normal/reversed rain drop
21908 \end_layout
21909
21910 \end_inset
21911 </cell>
21912 <cell alignment="left" valignment="top" usebox="none">
21913 \begin_inset Text
21914
21915 \begin_layout Plain Layout
21916
21917 \size small
21918 Fragile,
21919  calculation might fail
21920 \end_layout
21921
21922 \end_inset
21923 </cell>
21924 </row>
21925 <row interlinespace="default">
21926 <cell alignment="left" valignment="top" usebox="none">
21927 \begin_inset Text
21928
21929 \begin_layout Plain Layout
21930
21931 \size small
21932 \SpecialChar TeX
21933
21934 \end_layout
21935
21936 \end_inset
21937 </cell>
21938 <cell alignment="left" valignment="top" usebox="none">
21939 \begin_inset Text
21940
21941 \begin_layout Plain Layout
21942
21943 \size small
21944 The \SpecialChar TeX
21945  logo
21946 \end_layout
21947
21948 \end_inset
21949 </cell>
21950 <cell alignment="left" valignment="top" usebox="none">
21951 \begin_inset Text
21952
21953 \begin_layout Plain Layout
21954
21955 \size small
21956 -
21957 \end_layout
21958
21959 \end_inset
21960 </cell>
21961 </row>
21962 <row interlinespace="default">
21963 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21964 \begin_inset Text
21965
21966 \begin_layout Plain Layout
21967
21968 \size small
21969 Triangle up/down/
21970 \begin_inset Newline newline
21971 \end_inset
21972
21973 left/right
21974 \end_layout
21975
21976 \end_inset
21977 </cell>
21978 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21979 \begin_inset Text
21980
21981 \begin_layout Plain Layout
21982
21983 \size small
21984 Triangles in different orientations
21985 \end_layout
21986
21987 \end_inset
21988 </cell>
21989 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21990 \begin_inset Text
21991
21992 \begin_layout Plain Layout
21993
21994 \size small
21995 -
21996 \end_layout
21997
21998 \end_inset
21999 </cell>
22000 </row>
22001 </lyxtabular>
22002
22003 \end_inset
22004
22005
22006 \end_layout
22007
22008 \begin_layout Standard
22009 To use a shape for your paragraph,
22010  simply select it in \SpecialChar LyX
22011 's pull-down box for environments in the toolbar.
22012 \end_layout
22013
22014 \begin_layout Standard
22015 \begin_inset Newpage newpage
22016 \end_inset
22017
22018
22019 \end_layout
22020
22021 \begin_layout Standard
22022 Here is an example paragraph in the shape of a nut:
22023 \end_layout
22024
22025 \begin_layout Standard
22026 \begin_inset VSpace bigskip
22027 \end_inset
22028
22029
22030 \end_layout
22031
22032 \begin_layout Nut
22033
22034 \lang latin
22035 Lorem ipsum dolor sit amet,
22036  consetetur sadipscing elitr,
22037  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22038  sed diam voluptua.
22039  At vero eos et accusam et justo duo dolores et ea rebum.
22040  Stet clita kasd gubergren,
22041  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22042  Lorem ipsum dolor sit amet,
22043  consetetur sadipscing elitr,
22044  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22045  sed diam voluptua.
22046 \end_layout
22047
22048 \begin_layout Standard
22049 \begin_inset VSpace bigskip
22050 \end_inset
22051
22052
22053 \end_layout
22054
22055 \begin_layout Standard
22056 \begin_inset Note Greyedout
22057 status open
22058
22059 \begin_layout Plain Layout
22060
22061 \series bold
22062 Note
22063 \series default
22064 :
22065  
22066 \family sans
22067 shapepar
22068 \family default
22069  paragraphs cannot run over a page break.
22070 \end_layout
22071
22072 \end_inset
22073
22074
22075 \end_layout
22076
22077 \begin_layout Standard
22078 \begin_inset VSpace bigskip
22079 \end_inset
22080
22081
22082 \end_layout
22083
22084 \begin_layout Standard
22085 The package 
22086 \begin_inset Flex Code
22087 status collapsed
22088
22089 \begin_layout Plain Layout
22090 shapepar
22091 \end_layout
22092
22093 \end_inset
22094
22095  takes care that the shape will always be preserved,
22096  no matter how much text is in the paragraph.
22097  Therefore the paragraph size changes with the amount of contained text.
22098  This can lead to paragraph sizes exceeding the page margins.
22099  To demonstrate the size scaling,
22100  here is the same example paragraph but with twice as much text:
22101 \end_layout
22102
22103 \begin_layout Standard
22104 \begin_inset Newpage newpage
22105 \end_inset
22106
22107
22108 \end_layout
22109
22110 \begin_layout Nut
22111
22112 \lang latin
22113 Lorem ipsum dolor sit amet,
22114  consetetur sadipscing elitr,
22115  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22116  sed diam voluptua.
22117  At vero eos et accusam et justo duo dolores et ea rebum.
22118  Stet clita kasd gubergren,
22119  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22120  Lorem ipsum dolor sit amet,
22121  consetetur sadipscing elitr,
22122  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22123  sed diam voluptua.
22124  Lorem ipsum dolor sit amet,
22125  consetetur sadipscing elitr,
22126  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22127  sed diam voluptua.
22128  At vero eos et accusam et justo duo dolores et ea rebum.
22129  Stet clita kasd gubergren,
22130  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22131  Lorem ipsum dolor sit amet,
22132  consetetur sadipscing elitr,
22133  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22134  sed diam voluptua.
22135 \end_layout
22136
22137 \begin_layout Standard
22138 \begin_inset VSpace bigskip
22139 \end_inset
22140
22141
22142 \end_layout
22143
22144 \begin_layout Standard
22145 An exception is the shape 
22146 \family sans
22147 CDlabel
22148 \family default
22149 .
22150  It cannot be scaled because it must fit the size of a CD/DVD.
22151  Therefore the amount of text that fits into the shape is limited.
22152 \begin_inset Newline newline
22153 \end_inset
22154
22155 The 
22156 \family sans
22157 drop
22158 \family default
22159  shapes and the 
22160 \family sans
22161 circle
22162 \family default
22163  shape are fragile,
22164  meaning that the calculation of their size can fail,
22165  depending on the amount of text.
22166  You will then get the \SpecialChar LaTeX
22167  error 
22168 \begin_inset Quotes eld
22169 \end_inset
22170
22171 Arithmetic overflow
22172 \begin_inset Quotes erd
22173 \end_inset
22174
22175 .
22176  In this case one can try to remove or add some text;
22177  if nothing works one has to use another shape.
22178 \end_layout
22179
22180 \begin_layout Standard
22181 \begin_inset VSpace bigskip
22182 \end_inset
22183
22184
22185 \end_layout
22186
22187 \begin_layout Standard
22188 For shapes with tips you will maybe see that \SpecialChar LaTeX
22189 's hyphenation routine fails for text in the tips.
22190  Therefore it is often necessary to add hyphenation points 
22191 \family sans
22192 (
22193 \begin_inset Info
22194 type  "shortcut"
22195 arg   "specialchar-insert hyphenation"
22196 \end_inset
22197
22198
22199 \family default
22200 ) to the corresponding text parts.
22201 \end_layout
22202
22203 \begin_layout Standard
22204 \begin_inset VSpace bigskip
22205 \end_inset
22206
22207
22208 \end_layout
22209
22210 \begin_layout Standard
22211 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
22212  You can therefore not use the paragraph dialog to align such paragraphs.
22213  A solution is to put the paragraph into a minipage or parbox and align the box.
22214  The problem is hereby to find the right width for the box.
22215  Because if it is too wide and you center the box,
22216  the paragraph is not centered too because it sticks at the left side of the box.
22217  So you might have to play a bit with the width until it fits.
22218  Here are two heart-shaped paragraphs,
22219  the first one is not aligned,
22220  the second one is right-aligned:
22221 \end_layout
22222
22223 \begin_layout Standard
22224 \begin_inset Newpage newpage
22225 \end_inset
22226
22227
22228 \end_layout
22229
22230 \begin_layout Heart
22231 \noindent
22232
22233 \lang latin
22234 Lo\SpecialChar softhyphen
22235 rem ipsum dolor sit amet,
22236  consetetur sadipscing elitr,
22237  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22238  sed diam voluptua.
22239  At vero eos et accusam et justo duo dolores et ea rebum.
22240  Stet clita kasd gubergren,
22241  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22242 \end_layout
22243
22244 \begin_layout Standard
22245 \begin_inset VSpace bigskip
22246 \end_inset
22247
22248
22249 \end_layout
22250
22251 \begin_layout Standard
22252 \noindent
22253 \align right
22254 \begin_inset Box Frameless
22255 position "t"
22256 hor_pos "c"
22257 has_inner_box 1
22258 inner_pos "t"
22259 use_parbox 1
22260 use_makebox 0
22261 width "42col%"
22262 special "none"
22263 height "1in"
22264 height_special "totalheight"
22265 thickness "0.4pt"
22266 separation "3pt"
22267 shadowsize "4pt"
22268 framecolor "black"
22269 backgroundcolor "none"
22270 status open
22271
22272 \begin_layout Heart
22273 \noindent
22274
22275 \lang latin
22276 Lo\SpecialChar softhyphen
22277 rem ipsum dolor sit amet,
22278  consetetur sadipscing elitr,
22279  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22280  sed diam voluptua.
22281  At vero eos et accusam et justo duo dolores et ea rebum.
22282  Stet clita kasd gubergren,
22283  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22284 \end_layout
22285
22286 \end_inset
22287
22288
22289 \end_layout
22290
22291 \begin_layout Subsubsection
22292 Custom shapes
22293 \end_layout
22294
22295 \begin_layout Standard
22296 You can define any shape you want.
22297  Doing this manually is a lot of work because every coordinate must be specified.
22298  But there is a way to let the computer calculate the coordinates:
22299 \end_layout
22300
22301 \begin_layout Enumerate
22302 Install the program 
22303 \begin_inset CommandInset href
22304 LatexCommand href
22305 name "Jpgfdraw"
22306 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
22307 literal "false"
22308
22309 \end_inset
22310
22311 .
22312 \end_layout
22313
22314 \begin_layout Enumerate
22315 In 
22316 \family sans
22317 Jpgfdraw
22318 \family default
22319  go to the menu 
22320 \family sans
22321 TeX/LaTeX\SpecialChar menuseparator
22322 Settings\SpecialChar menuseparator
22323 Set Normal Size
22324 \family default
22325  and select the font size you are using in your document.
22326  For example this document uses the size 12
22327 \begin_inset space \thinspace{}
22328 \end_inset
22329
22330 pt.
22331 \end_layout
22332
22333 \begin_layout Enumerate
22334 Draw a shape.
22335 \end_layout
22336
22337 \begin_layout Enumerate
22338 Use the menu 
22339 \family sans
22340 TeX/LaTeX\SpecialChar menuseparator
22341 Shapepar
22342 \family default
22343  to export the shape to coordinates.
22344  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
22345 \begin_inset Foot
22346 status collapsed
22347
22348 \begin_layout Plain Layout
22349 For more information see 
22350 \begin_inset CommandInset href
22351 LatexCommand href
22352 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
22353 literal "false"
22354
22355 \end_inset
22356
22357
22358 \end_layout
22359
22360 \end_inset
22361
22362
22363 \end_layout
22364
22365 \begin_layout Standard
22366 The coordinates are written into a \SpecialChar TeX
22367  file.
22368  To use it for your \SpecialChar LyX
22369  document
22370 \end_layout
22371
22372 \begin_layout Enumerate
22373 Place the cursor before the first character of your paragraph (or into a new empty one).
22374 \end_layout
22375
22376 \begin_layout Enumerate
22377 Open in \SpecialChar LyX
22378  the menu 
22379 \family sans
22380 Insert\SpecialChar menuseparator
22381 File\SpecialChar menuseparator
22382 Child
22383 \begin_inset space ~
22384 \end_inset
22385
22386 Document
22387 \family default
22388 ,
22389  select the file and use 
22390 \family sans
22391 Input
22392 \family default
22393  as 
22394 \family sans
22395 Include Type.
22396 \end_layout
22397
22398 \begin_layout Standard
22399 \begin_inset VSpace defskip
22400 \end_inset
22401
22402
22403 \end_layout
22404
22405 \begin_layout Standard
22406 \begin_inset Note Greyedout
22407 status open
22408
22409 \begin_layout Plain Layout
22410
22411 \series bold
22412 Note
22413 \series default
22414 :
22415  The changed shape only applies to the current paragraph;
22416  everything is reset to normal for the next paragraph.
22417  Therefore the shape definition file must be input into every paragraph with the desired shape.
22418 \end_layout
22419
22420 \end_inset
22421
22422
22423 \end_layout
22424
22425 \begin_layout Standard
22426 \begin_inset VSpace bigskip
22427 \end_inset
22428
22429
22430 \end_layout
22431
22432 \begin_layout Standard
22433 Here is an example:
22434 \end_layout
22435
22436 \begin_layout Standard
22437 \begin_inset VSpace bigskip
22438 \end_inset
22439
22440
22441 \end_layout
22442
22443 \begin_layout Standard
22444 \begin_inset CommandInset include
22445 LatexCommand input
22446 filename "SpecialParagraphShape.tex"
22447 literal "true"
22448
22449 \end_inset
22450
22451
22452 \lang latin
22453 Lorem ipsum dolor sit amet,
22454  consetetur sadipscing elitr,
22455  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22456  sed diam voluptua.
22457  At vero eos et accusam et justo duo dolores et ea rebum.
22458  Stet clita kasd gubergren,
22459  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22460  Lorem ipsum dolor sit amet,
22461  consetetur sadipscing elitr,
22462  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22463  sed diam voluptua.
22464 \end_layout
22465
22466 \begin_layout Standard
22467 \begin_inset VSpace bigskip
22468 \end_inset
22469
22470
22471 \end_layout
22472
22473 \begin_layout Standard
22474
22475 \series bold
22476 A tip:
22477
22478 \series default
22479  to draw complexer shapes in 
22480 \family sans
22481 Jpgfdraw
22482 \family default
22483  you can draw the shape in a program of your choice and import the resulting image to 
22484 \family sans
22485 Jpgfdraw
22486 \family default
22487 .
22488  Then you only need to draw a line or spline along the outline of the image.
22489 \end_layout
22490
22491 \begin_layout Standard
22492 \begin_inset VSpace bigskip
22493 \end_inset
22494
22495
22496 \end_layout
22497
22498 \begin_layout Standard
22499 The module 
22500 \family sans
22501 Custom paragraph shapes
22502 \family default
22503  also provides the two commands 
22504 \family sans
22505 shapepar
22506 \family default
22507  and 
22508 \family sans
22509 Shapepar
22510 \family default
22511  which can be used to define custom shapes coordinate by coordinate.
22512 \begin_inset Foot
22513 status collapsed
22514
22515 \begin_layout Plain Layout
22516 These commands are internally used for all shapes described here.
22517 \end_layout
22518
22519 \end_inset
22520
22521  For information how these styles are used and about further customization possibilities,
22522  have a look at the 
22523 \begin_inset CommandInset href
22524 LatexCommand href
22525 name "documentation"
22526 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
22527 literal "false"
22528
22529 \end_inset
22530
22531  of the package 
22532 \begin_inset Flex Code
22533 status collapsed
22534
22535 \begin_layout Plain Layout
22536 shapepar
22537 \end_layout
22538
22539 \end_inset
22540
22541 .
22542 \end_layout
22543
22544 \begin_layout Subsection
22545
22546 \change_inserted 564990737 1672311925
22547 Hanging Paragraphs
22548 \end_layout
22549
22550 \begin_layout Hanging
22551
22552 \change_inserted 564990737 1672311925
22553 This module adds the 
22554 \family sans
22555 Hanging
22556 \family default
22557  paragraph style,
22558  that is,
22559  one where all but the first line of the paragraph is indented.
22560  This may not appear in your \SpecialChar LyX
22561  document but will appear in the final output.
22562 \end_layout
22563
22564 \begin_layout Subsection
22565
22566 \change_inserted 564990737 1672311925
22567 \begin_inset CommandInset label
22568 LatexCommand label
22569 name "subsec:Initials"
22570
22571 \end_inset
22572
22573 Initials (Drop Caps)
22574 \end_layout
22575
22576 \begin_layout Initial
22577
22578 \change_inserted 564990737 1672311925
22579 \begin_inset Argument 2
22580 status open
22581
22582 \begin_layout Plain Layout
22583
22584 \change_inserted 564990737 1672311925
22585 T
22586 \change_unchanged
22587
22588 \end_layout
22589
22590 \end_inset
22591
22592
22593 \begin_inset Argument 3
22594 status open
22595
22596 \begin_layout Plain Layout
22597
22598 \change_inserted 564990737 1672311925
22599 his
22600 \change_unchanged
22601
22602 \end_layout
22603
22604 \end_inset
22605
22606  module adds a drop capitals paragraph style 
22607 \family sans
22608 Initials
22609 \family default
22610  for paragraph environments which you can use wherever you want to have drop capitals.
22611  You then have three more items in the 
22612 \family sans
22613 Insert
22614 \family default
22615  menu:
22616 \end_layout
22617
22618 \begin_layout Itemize
22619
22620 \change_inserted 564990737 1672311925
22621
22622 \family sans
22623 Initial
22624 \family default
22625  which creates an inset for the drop capital
22626 \end_layout
22627
22628 \begin_layout Itemize
22629
22630 \change_inserted 564990737 1672311925
22631
22632 \family sans
22633 Rest of initial
22634 \family default
22635  which creates an inset for the rest of the word
22636 \end_layout
22637
22638 \begin_layout Itemize
22639
22640 \change_inserted 564990737 1672311925
22641
22642 \family sans
22643 Options
22644 \family default
22645  which allow you configure the formatting of the drop capital.
22646 \end_layout
22647
22648 \begin_layout Standard
22649
22650 \change_inserted 564990737 1672311925
22651 To customize the appearance of the style,
22652  see 
22653 \family sans
22654 Help\SpecialChar menuseparator
22655 Embedded Objects\SpecialChar menuseparator
22656 Objects Surrounded by Text\SpecialChar menuseparator
22657 Initials
22658 \family default
22659 .
22660 \end_layout
22661
22662 \begin_layout Section
22663
22664 \change_inserted 564990737 1672312011
22665 Text Markup
22666 \end_layout
22667
22668 \begin_layout Subsection
22669
22670 \change_inserted 564990737 1672312011
22671 Hyphenatable Text Markup
22672 \end_layout
22673
22674 \begin_layout Standard
22675
22676 \change_inserted 564990737 1672312011
22677 This package defines text styles to highlight,
22678  space-out,
22679  strike-through,
22680  underline and capitalize/small-cap text by means of the 
22681 \family sans
22682 soul
22683 \family default
22684  package.
22685  As opposed to the markup provided by the Text Properties dialog,
22686  words marked-up with 
22687 \family sans
22688 soul
22689 \family default
22690  are hyphenated.
22691  See the 
22692 \begin_inset CommandInset href
22693 LatexCommand href
22694 name "soul documentation"
22695 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
22696 literal "false"
22697
22698 \end_inset
22699
22700 .
22701 \end_layout
22702
22703 \begin_layout Subsection
22704
22705 \change_inserted 564990737 1672312011
22706 Logical Markup
22707 \end_layout
22708
22709 \begin_layout Standard
22710
22711 \change_inserted 564990737 1672312011
22712 This module defines some character styles for logical markup:
22713  
22714 \noun on
22715
22716 \begin_inset Flex Noun
22717 status collapsed
22718
22719 \begin_layout Plain Layout
22720
22721 \change_inserted 564990737 1672312011
22722
22723 \noun on
22724 noun
22725 \change_unchanged
22726
22727 \end_layout
22728
22729 \end_inset
22730
22731
22732 \noun default
22733 ,
22734  
22735 \emph on
22736
22737 \begin_inset Flex Emph
22738 status collapsed
22739
22740 \begin_layout Plain Layout
22741
22742 \change_inserted 564990737 1672312011
22743
22744 \emph on
22745 emph
22746 \change_unchanged
22747
22748 \end_layout
22749
22750 \end_inset
22751
22752
22753 \emph default
22754 ,
22755  
22756 \begin_inset Flex Strong
22757 status collapsed
22758
22759 \begin_layout Plain Layout
22760
22761 \change_inserted 564990737 1672312011
22762 strong
22763 \change_unchanged
22764
22765 \end_layout
22766
22767 \end_inset
22768
22769 ,
22770  and 
22771 \begin_inset Flex Code
22772 status collapsed
22773
22774 \begin_layout Plain Layout
22775
22776 \change_inserted 564990737 1672312011
22777 code
22778 \change_unchanged
22779
22780 \end_layout
22781
22782 \end_inset
22783
22784  which are accessed via the 
22785 \family sans
22786 \bar under
22787 E
22788 \bar default
22789 dit\SpecialChar menuseparator
22790 Custom
22791 \begin_inset space ~
22792 \end_inset
22793
22794 Text
22795 \begin_inset space ~
22796 \end_inset
22797
22798
22799 \bar under
22800 S
22801 \bar default
22802 tyles
22803 \family default
22804  menu.
22805 \end_layout
22806
22807 \begin_layout Chapter
22808
22809 \change_deleted 564990737 1671304317
22810 Customizing 
22811 \change_unchanged
22812 Bibliograph
22813 \change_inserted 564990737 1671304322
22814 y
22815 \change_deleted 564990737 1671304331
22816 ies with Bib\SpecialChar TeX
22817  or Biblatex
22818 \change_unchanged
22819
22820 \end_layout
22821
22822 \begin_layout Standard
22823 The most basic information about how to use Bib\SpecialChar TeX
22824  or 
22825 \family sans
22826 Biblatex
22827 \family default
22828  with \SpecialChar LyX
22829  is contained in the section 
22830 \emph on
22831 Bibliography databases
22832 \emph default
22833  of the 
22834 \emph on
22835 User's Guide
22836 \emph default
22837 .
22838  The following subsections explain special bibliography features supported by \SpecialChar LyX
22839 .
22840 \end_layout
22841
22842 \begin_layout Section
22843 Alternative Citation Styles
22844 \end_layout
22845
22846 \begin_layout Standard
22847 Standard Bib\SpecialChar TeX
22848  uses numbers (e.
22849 \begin_inset space \thinspace{}
22850 \end_inset
22851
22852 g.
22853 \begin_inset space \space{}
22854 \end_inset
22855
22856
22857 \begin_inset Quotes eld
22858 \end_inset
22859
22860 [12]
22861 \begin_inset Quotes erd
22862 \end_inset
22863
22864 ) to refer to a cited work.
22865  However,
22866  in many scientific disciplines,
22867  other citation styles are in use.
22868  The most common one is the author-year style (e.
22869 \begin_inset space \thinspace{}
22870 \end_inset
22871
22872 g.
22873 \begin_inset space \space{}
22874 \end_inset
22875
22876
22877 \begin_inset Quotes eld
22878 \end_inset
22879
22880 Knuth 1984a
22881 \begin_inset Quotes erd
22882 \end_inset
22883
22884 ).
22885  \SpecialChar LyX
22886  supports three packages that provide this style,
22887  
22888 \begin_inset Flex Code
22889 status collapsed
22890
22891 \begin_layout Plain Layout
22892 biblatex
22893 \end_layout
22894
22895 \end_inset
22896
22897 ,
22898  
22899 \begin_inset Flex Code
22900 status collapsed
22901
22902 \begin_layout Plain Layout
22903 natbib
22904 \end_layout
22905
22906 \end_inset
22907
22908 ,
22909  and 
22910 \begin_inset Flex Code
22911 status collapsed
22912
22913 \begin_layout Plain Layout
22914 jurabib
22915 \end_layout
22916
22917 \end_inset
22918
22919 .
22920  Each of these packages has their pros and cons,
22921  which cannot be listed in detail.
22922  If you only want to have simple author-year (or author-numerical) style,
22923  or if you want to use one of the countless style files for 
22924 \begin_inset Flex Code
22925 status collapsed
22926
22927 \begin_layout Plain Layout
22928 natbib
22929 \end_layout
22930
22931 \end_inset
22932
22933 ,
22934  then the established 
22935 \begin_inset Flex Code
22936 status collapsed
22937
22938 \begin_layout Plain Layout
22939 natbib
22940 \end_layout
22941
22942 \end_inset
22943
22944  package is probably your choice.
22945  If you look for specific citation styles common in law studies,
22946  you might consider the 
22947 \begin_inset Flex Code
22948 status collapsed
22949
22950 \begin_layout Plain Layout
22951 jurabib
22952 \end_layout
22953
22954 \end_inset
22955
22956  package.
22957  If you want to have full control over the formatting or look for advanced features such as ibidem,
22958  footnote citations,
22959  full title citations,
22960  advanced date formats (such as 400 BC) or full localization to other languages than English,
22961  you should definitely consider 
22962 \begin_inset Flex Code
22963 status collapsed
22964
22965 \begin_layout Plain Layout
22966 biblatex
22967 \end_layout
22968
22969 \end_inset
22970
22971 ,
22972  which exceeds all other packages in terms of features,
22973  but is also quite heavy and more resource-hungry.
22974 \end_layout
22975
22976 \begin_layout Standard
22977 The handling of these packages in \SpecialChar LyX
22978  is basically the same.
22979  Go to 
22980 \begin_inset Flex Noun
22981 status collapsed
22982
22983 \begin_layout Plain Layout
22984 Document\SpecialChar menuseparator
22985 Settings
22986 \end_layout
22987
22988 \end_inset
22989
22990  and select under 
22991 \begin_inset Flex Noun
22992 status collapsed
22993
22994 \begin_layout Plain Layout
22995 Bibliography
22996 \end_layout
22997
22998 \end_inset
22999
23000  the 
23001 \begin_inset Flex Noun
23002 status collapsed
23003
23004 \begin_layout Plain Layout
23005 Style Format
23006 \end_layout
23007
23008 \end_inset
23009
23010  
23011 \begin_inset Flex Noun
23012 status collapsed
23013
23014 \begin_layout Plain Layout
23015 Basic (BibTeX)
23016 \end_layout
23017
23018 \end_inset
23019
23020 ,
23021  
23022 \begin_inset Flex Noun
23023 status collapsed
23024
23025 \begin_layout Plain Layout
23026 Biblatex
23027 \end_layout
23028
23029 \end_inset
23030
23031 ,
23032  
23033 \begin_inset Flex Noun
23034 status collapsed
23035
23036 \begin_layout Plain Layout
23037 Biblatex (Natbib mode)
23038 \end_layout
23039
23040 \end_inset
23041
23042 ,
23043  
23044 \begin_inset Flex Noun
23045 status collapsed
23046
23047 \begin_layout Plain Layout
23048 Natbib (BibTeX)
23049 \end_layout
23050
23051 \end_inset
23052
23053  or 
23054 \begin_inset Flex Noun
23055 status collapsed
23056
23057 \begin_layout Plain Layout
23058 Jurabib (BibTeX)
23059 \end_layout
23060
23061 \end_inset
23062
23063  (see sec.
23064 \begin_inset space ~
23065 \end_inset
23066
23067 6.5.3 in the User's Guide for more information on these choices).
23068  With all these packages,
23069  you will get some extra features in the citation dialog and you can select the style of the reference (
23070 \begin_inset Quotes eld
23071 \end_inset
23072
23073 Knuth 1984
23074 \begin_inset Quotes erd
23075 \end_inset
23076
23077 ,
23078  
23079 \begin_inset Quotes eld
23080 \end_inset
23081
23082 Knuth (1984)
23083 \begin_inset Quotes erd
23084 \end_inset
23085
23086 ,
23087  
23088 \begin_inset Quotes eld
23089 \end_inset
23090
23091 Knuth,
23092  1984
23093 \begin_inset Quotes erd
23094 \end_inset
23095
23096 ,
23097  
23098 \begin_inset Quotes eld
23099 \end_inset
23100
23101 1984
23102 \begin_inset Quotes erd
23103 \end_inset
23104
23105  etc.).
23106  Note that either package needs specifically designed style files.
23107  They all ship their own,
23108  but there are lots of additional style files,
23109  and there is even an interactive style file builder
23110 \begin_inset Foot
23111 status collapsed
23112
23113 \begin_layout Plain Layout
23114 See 
23115 \begin_inset Flex URL
23116 status open
23117
23118 \begin_layout Plain Layout
23119
23120 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
23121 \end_layout
23122
23123 \end_inset
23124
23125
23126 \end_layout
23127
23128 \end_inset
23129
23130  for 
23131 \begin_inset Flex Code
23132 status collapsed
23133
23134 \begin_layout Plain Layout
23135 natbib
23136 \end_layout
23137
23138 \end_inset
23139
23140 .
23141 \end_layout
23142
23143 \begin_layout Section
23144 Subdivided Bibliographies
23145 \end_layout
23146
23147 \begin_layout Standard
23148 Sometimes you might need to divide your bibliography into several sections.
23149  If you are for instance a historian,
23150  the possibility to separate sources and scientific works is most likely a 
23151 \begin_inset Quotes eld
23152 \end_inset
23153
23154 must have
23155 \begin_inset Quotes erd
23156 \end_inset
23157
23158 .
23159  Unfortunately,
23160  Bib\SpecialChar TeX
23161  itself does not allow you to do this.
23162  But with the help of some \SpecialChar LaTeX
23163  packages,
23164  Bib\SpecialChar TeX
23165  can be extended to fit your needs.
23166 \end_layout
23167
23168 \begin_layout Standard
23169 \SpecialChar LyX
23170  provides native support for one of these packages,
23171  
23172 \family typewriter
23173 bibtopic
23174 \family default
23175 .
23176 \begin_inset Foot
23177 status collapsed
23178
23179 \begin_layout Plain Layout
23180 Available from 
23181 \begin_inset Flex URL
23182 status open
23183
23184 \begin_layout Plain Layout
23185
23186 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
23187 \end_layout
23188
23189 \end_inset
23190
23191
23192 \end_layout
23193
23194 \end_inset
23195
23196  The advantage of this package (compared to other packages such as 
23197 \family typewriter
23198 multibib
23199 \family default
23200 ) is that you don't need to define new citation commands.
23201  Instead,
23202  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
23203  For example:
23204  If you want to divide your bibliography into the sections 
23205 \begin_inset Quotes eld
23206 \end_inset
23207
23208 Sources
23209 \begin_inset Quotes erd
23210 \end_inset
23211
23212  and 
23213 \begin_inset Quotes eld
23214 \end_inset
23215
23216 Scientific works
23217 \begin_inset Quotes erd
23218 \end_inset
23219
23220 ,
23221  you first need to create two bibliographic databases,
23222  e.
23223 \begin_inset space \thinspace{}
23224 \end_inset
23225
23226 g.
23227 \begin_inset space \space{}
23228 \end_inset
23229
23230
23231 \begin_inset Flex Code
23232 status collapsed
23233
23234 \begin_layout Plain Layout
23235 sources.bib
23236 \end_layout
23237
23238 \end_inset
23239
23240  and 
23241 \begin_inset Flex Code
23242 status collapsed
23243
23244 \begin_layout Plain Layout
23245 scientific.bib
23246 \end_layout
23247
23248 \end_inset
23249
23250 .
23251  
23252 \end_layout
23253
23254 \begin_layout Standard
23255 Go to 
23256 \begin_inset Flex Noun
23257 status collapsed
23258
23259 \begin_layout Plain Layout
23260 Document\SpecialChar menuseparator
23261 Settings
23262 \end_layout
23263
23264 \end_inset
23265
23266  and check under 
23267 \begin_inset Flex Noun
23268 status collapsed
23269
23270 \begin_layout Plain Layout
23271 Bibliography
23272 \end_layout
23273
23274 \end_inset
23275
23276  the option 
23277 \begin_inset Flex Noun
23278 status collapsed
23279
23280 \begin_layout Plain Layout
23281 Subdivided bibliography
23282 \end_layout
23283
23284 \end_inset
23285
23286 .
23287  Now you can insert multiple Bib\SpecialChar TeX
23288  bibliographies,
23289  one for each section of your bibliography.
23290  Returning to our example:
23291  Insert the Bib\SpecialChar TeX
23292  bibliography 
23293 \begin_inset Flex Code
23294 status collapsed
23295
23296 \begin_layout Plain Layout
23297 sources.bib
23298 \end_layout
23299
23300 \end_inset
23301
23302  and a second one for the database 
23303 \begin_inset Flex Code
23304 status collapsed
23305
23306 \begin_layout Plain Layout
23307 scientific.bib
23308 \end_layout
23309
23310 \end_inset
23311
23312 .
23313  You are free to use the same or different styles for each section.
23314  Additionally,
23315  you can choose if the bibliography section should contain 
23316 \begin_inset Quotes eld
23317 \end_inset
23318
23319 all cited references
23320 \begin_inset Quotes erd
23321 \end_inset
23322
23323  of the specified database(s) (which is the default),
23324  
23325 \begin_inset Quotes eld
23326 \end_inset
23327
23328 all uncited references
23329 \begin_inset Quotes erd
23330 \end_inset
23331
23332  or even 
23333 \begin_inset Quotes eld
23334 \end_inset
23335
23336 all references
23337 \begin_inset Quotes erd
23338 \end_inset
23339
23340 .
23341  This might be useful if you would like to separate your bibliography into three sections:
23342  
23343 \begin_inset Quotes eld
23344 \end_inset
23345
23346 Cited sources
23347 \begin_inset Quotes erd
23348 \end_inset
23349
23350 ,
23351  
23352 \begin_inset Quotes eld
23353 \end_inset
23354
23355 Uncited sources
23356 \begin_inset Quotes erd
23357 \end_inset
23358
23359 ,
23360  and 
23361 \begin_inset Quotes eld
23362 \end_inset
23363
23364 Scientific works
23365 \begin_inset Quotes erd
23366 \end_inset
23367
23368 .
23369  The titles for the sections can be added as ordinary sections or subsections.
23370  Since 
23371 \begin_inset Flex Code
23372 status collapsed
23373
23374 \begin_layout Plain Layout
23375 bibtopic
23376 \end_layout
23377
23378 \end_inset
23379
23380  removes the bibliography title,
23381  you have to manually re-add that,
23382  too (as a chapter* or section*,
23383  for instance).
23384 \end_layout
23385
23386 \begin_layout Standard
23387 With 
23388 \family sans
23389 Biblatex
23390 \family default
23391 ,
23392  the procedure is a bit different.
23393  Since 
23394 \family typewriter
23395 bibtopic
23396 \family default
23397  does not work with 
23398 \family sans
23399 Biblatex
23400 \family default
23401 ,
23402  the aforementioned 
23403 \begin_inset Flex Noun
23404 status collapsed
23405
23406 \begin_layout Plain Layout
23407 Subdivided bibliography
23408 \end_layout
23409
23410 \end_inset
23411
23412  option is disabled if you use 
23413 \family sans
23414 Biblatex
23415 \family default
23416 .
23417  However,
23418  
23419 \family sans
23420 Biblatex
23421 \family default
23422  provides its own means to generate subdivided bibliographies.
23423  You can either add keywords to bibliography entries via the 
23424 \begin_inset Flex Code
23425 status collapsed
23426
23427 \begin_layout Plain Layout
23428 keywords
23429 \end_layout
23430
23431 \end_inset
23432
23433  entry option and then filter bibliography sections by keyword (by adding 
23434 \begin_inset Flex Code
23435 status collapsed
23436
23437 \begin_layout Plain Layout
23438 keyword=mykeyword
23439 \end_layout
23440
23441 \end_inset
23442
23443  to the 
23444 \begin_inset Flex Noun
23445 status collapsed
23446
23447 \begin_layout Plain Layout
23448 Options
23449 \end_layout
23450
23451 \end_inset
23452
23453  field of the dialog that opens if you left-click on the 
23454 \begin_inset Flex Noun
23455 status collapsed
23456
23457 \begin_layout Plain Layout
23458 Biblatex Generated Bibliography
23459 \end_layout
23460
23461 \end_inset
23462
23463  button),
23464  or you can filter by entry types (such as 
23465 \emph on
23466 book
23467 \emph default
23468  or 
23469 \emph on
23470 article
23471 \emph default
23472 ) by entering e.
23473 \begin_inset space \thinspace{}
23474 \end_inset
23475
23476 g.
23477  
23478 \begin_inset Flex Code
23479 status collapsed
23480
23481 \begin_layout Plain Layout
23482 type=book
23483 \end_layout
23484
23485 \end_inset
23486
23487  or 
23488 \begin_inset Flex Code
23489 status collapsed
23490
23491 \begin_layout Plain Layout
23492 nottype=collection
23493 \end_layout
23494
23495 \end_inset
23496
23497  to the mentioned 
23498 \begin_inset Flex Noun
23499 status collapsed
23500
23501 \begin_layout Plain Layout
23502 Options
23503 \end_layout
23504
23505 \end_inset
23506
23507  field,
23508  or you can create so-called 
23509 \begin_inset Quotes eld
23510 \end_inset
23511
23512 Bibliography Categories
23513 \begin_inset Quotes erd
23514 \end_inset
23515
23516  to which you can assign individual entries.
23517  Please refer to the Biblatex manual,
23518  section 
23519 \emph on
23520 Subdivided Bibliographies
23521 \emph default
23522 ,
23523  for details.
23524 \end_layout
23525
23526 \begin_layout Section
23527 Multiple Bibliographies
23528 \begin_inset CommandInset label
23529 LatexCommand label
23530 name "subsec:Multiple-Bibliographies"
23531
23532 \end_inset
23533
23534
23535 \end_layout
23536
23537 \begin_layout Standard
23538 Multiple bibliographies,
23539  e.
23540 \begin_inset space \thinspace{}
23541 \end_inset
23542
23543 g.
23544 \begin_inset space \space{}
23545 \end_inset
23546
23547 a bibliography for each part,
23548  chapter,
23549  section,
23550  subsection or child (sub-document) of the document,
23551  are also supported by \SpecialChar LyX
23552 .
23553  In order to enable it,
23554  go to 
23555 \begin_inset Flex Noun
23556 status collapsed
23557
23558 \begin_layout Plain Layout
23559 Document\SpecialChar menuseparator
23560 Settings\SpecialChar menuseparator
23561 Bibliography
23562 \end_layout
23563
23564 \end_inset
23565
23566  and select the relevant unit (e.
23567 \begin_inset space \thinspace{}
23568 \end_inset
23569
23570 g.,
23571  
23572 \begin_inset Quotes eld
23573 \end_inset
23574
23575 per section
23576 \begin_inset Quotes erd
23577 \end_inset
23578
23579 ) in the 
23580 \begin_inset Flex Noun
23581 status collapsed
23582
23583 \begin_layout Plain Layout
23584 Multiple Bibliographies
23585 \end_layout
23586
23587 \end_inset
23588
23589  combo box.
23590  Then add a Bib(la)\SpecialChar TeX
23591  bibliography to each unit (e.
23592 \begin_inset space \thinspace{}
23593 \end_inset
23594
23595 g.,
23596  section) of your document.
23597  In the output,
23598  a separate bibliography,
23599  containing only the references done in the current unit is generated.
23600 \end_layout
23601
23602 \begin_layout Standard
23603 If you use Bib\SpecialChar TeX
23604 ,
23605  either the 
23606 \begin_inset Flex Code
23607 status collapsed
23608
23609 \begin_layout Plain Layout
23610 chapterbib
23611 \end_layout
23612
23613 \end_inset
23614
23615  or the 
23616 \begin_inset Flex Code
23617 status collapsed
23618
23619 \begin_layout Plain Layout
23620 bibtopic
23621 \end_layout
23622
23623 \end_inset
23624
23625  package is used to create multiple bibliographies.
23626  The former package is used if you select 
23627 \begin_inset Quotes eld
23628 \end_inset
23629
23630 per child document
23631 \begin_inset Quotes erd
23632 \end_inset
23633
23634  and do 
23635 \emph on
23636 not
23637 \emph default
23638  check 
23639 \begin_inset Flex Noun
23640 status collapsed
23641
23642 \begin_layout Plain Layout
23643 Sectioned Bibliography
23644 \end_layout
23645
23646 \end_inset
23647
23648 .
23649  In all other cases,
23650  
23651 \begin_inset Flex Code
23652 status collapsed
23653
23654 \begin_layout Plain Layout
23655 bibtopic
23656 \end_layout
23657
23658 \end_inset
23659
23660  is used.
23661 \begin_inset Foot
23662 status collapsed
23663
23664 \begin_layout Plain Layout
23665 An alternative approach,
23666  if you are willing to use some 
23667 \begin_inset Flex Noun
23668 status collapsed
23669
23670 \begin_layout Plain Layout
23671 \SpecialChar TeX
23672  Code
23673 \end_layout
23674
23675 \end_inset
23676
23677  (see section
23678 \begin_inset space ~
23679 \end_inset
23680
23681
23682 \begin_inset CommandInset ref
23683 LatexCommand ref
23684 reference "sec:Inserting-TeX-Code"
23685 nolink "false"
23686
23687 \end_inset
23688
23689 ),
23690  is to use the 
23691 \begin_inset Flex Code
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695 bibunits
23696 \end_layout
23697
23698 \end_inset
23699
23700  package.
23701 \end_layout
23702
23703 \end_inset
23704
23705  If 
23706 \begin_inset Flex Code
23707 status collapsed
23708
23709 \begin_layout Plain Layout
23710 bibtopic
23711 \end_layout
23712
23713 \end_inset
23714
23715  is used,
23716  \SpecialChar LyX
23717  encloses the specified units in 
23718 \begin_inset Flex Code
23719 status collapsed
23720
23721 \begin_layout Plain Layout
23722 bibtopic
23723 \end_layout
23724
23725 \end_inset
23726
23727 's 
23728 \begin_inset Flex Code
23729 status collapsed
23730
23731 \begin_layout Plain Layout
23732
23733 \backslash
23734 begin{btUnit}
23735 \end_layout
23736
23737 \end_inset
23738
23739  and 
23740 \begin_inset Flex Code
23741 status collapsed
23742
23743 \begin_layout Plain Layout
23744
23745 \backslash
23746 end{btUnit}
23747 \end_layout
23748
23749 \end_inset
23750
23751  in order to create the units.
23752  Note that this approach has some limitations.
23753  First,
23754  every citation reference has to be inside some 
23755 \begin_inset Flex Code
23756 status collapsed
23757
23758 \begin_layout Plain Layout
23759 btUnit
23760 \end_layout
23761
23762 \end_inset
23763
23764 .
23765  So citations outside a defined unit (e.
23766 \begin_inset space \thinspace{}
23767 \end_inset
23768
23769 g.,
23770  before the first section if you use 
23771 \begin_inset Quotes eld
23772 \end_inset
23773
23774 by section
23775 \begin_inset Quotes erd
23776 \end_inset
23777
23778 ) will appear as 
23779 \begin_inset Quotes eld
23780 \end_inset
23781
23782 ???
23783 \begin_inset Quotes erd
23784 \end_inset
23785
23786 .
23787  You can also create your own units by entering 
23788 \begin_inset Flex Code
23789 status collapsed
23790
23791 \begin_layout Plain Layout
23792
23793 \backslash
23794 begin{btUnit}
23795 \end_layout
23796
23797 \end_inset
23798
23799  and 
23800 \begin_inset Flex Code
23801 status collapsed
23802
23803 \begin_layout Plain Layout
23804
23805 \backslash
23806 end{btUnit}
23807 \end_layout
23808
23809 \end_inset
23810
23811  as \SpecialChar TeX
23812  code (for instance to work around the mentioned limitation).
23813  Note,
23814  though,
23815  that 
23816 \begin_inset Flex Code
23817 status collapsed
23818
23819 \begin_layout Plain Layout
23820 btUnit
23821 \end_layout
23822
23823 \end_inset
23824
23825 s cannot be nested.
23826  A second limitation is that 
23827 \begin_inset Flex Code
23828 status collapsed
23829
23830 \begin_layout Plain Layout
23831 bibtopic
23832 \end_layout
23833
23834 \end_inset
23835
23836  always processes all references of a bibliography database,
23837  even if they are not cited.
23838  This can result in odd labels (e.
23839 \begin_inset space \thinspace{}
23840 \end_inset
23841
23842 g.
23843  
23844 \begin_inset Quotes eld
23845 \end_inset
23846
23847 Miller 2014b
23848 \begin_inset Quotes erd
23849 \end_inset
23850
23851  if two works of this author from 2014 are in the database,
23852  even if only one is cited).
23853 \end_layout
23854
23855 \begin_layout Standard
23856 If you use 
23857 \family sans
23858 Biblatex
23859 \family default
23860 ,
23861  the 
23862 \begin_inset Flex Code
23863 status collapsed
23864
23865 \begin_layout Plain Layout
23866 refsection
23867 \end_layout
23868
23869 \end_inset
23870
23871  option is used instead.
23872  If you need specific units,
23873  you can start them with the \SpecialChar TeX
23874  code 
23875 \begin_inset Flex Code
23876 status collapsed
23877
23878 \begin_layout Plain Layout
23879
23880 \backslash
23881 newrefsection
23882 \end_layout
23883
23884 \end_inset
23885
23886  or 
23887 \begin_inset Flex Code
23888 status collapsed
23889
23890 \begin_layout Plain Layout
23891
23892 \backslash
23893 newrefsegment
23894 \end_layout
23895
23896 \end_inset
23897
23898 ,
23899  respectively.
23900  If you also want to control the end of the unit,
23901  use the environment 
23902 \begin_inset Flex Code
23903 status collapsed
23904
23905 \begin_layout Plain Layout
23906
23907 \backslash
23908 begin{refsection}
23909 \end_layout
23910
23911 \end_inset
23912
23913  \SpecialChar ldots
23914  
23915 \begin_inset Flex Code
23916 status collapsed
23917
23918 \begin_layout Plain Layout
23919
23920 \backslash
23921 end{refsection}
23922 \end_layout
23923
23924 \end_inset
23925
23926  instead.
23927  Note,
23928  though,
23929  that 
23930 \begin_inset Flex Code
23931 status collapsed
23932
23933 \begin_layout Plain Layout
23934 refsection
23935 \end_layout
23936
23937 \end_inset
23938
23939 s cannot be nested.
23940  In addition to the individual bibliography of the current unit,
23941  
23942 \family sans
23943 Biblatex
23944 \family default
23945  also provides an easy way to output all bibliographies,
23946  subsequently,
23947  at one place (e.
23948 \begin_inset space \thinspace{}
23949 \end_inset
23950
23951 g.,
23952  at the end of the document).
23953  Select 
23954 \begin_inset Quotes eld
23955 \end_inset
23956
23957 all reference units
23958 \begin_inset Quotes erd
23959 \end_inset
23960
23961  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
23962  Please refer to the 
23963 \family sans
23964 Biblatex
23965 \family default
23966  manual for more information on this topic.
23967 \end_layout
23968
23969 \begin_layout Chapter
23970
23971 \change_deleted 564990737 1671355654
23972 Itemize 
23973 \change_unchanged
23974 Bullet
23975 \change_inserted 564990737 1671355667
23976 s
23977 \change_deleted 564990737 1671355661
23978  Selection
23979 \change_inserted 564990737 1671355684
23980
23981 \begin_inset CommandInset label
23982 LatexCommand label
23983 name "chap:bullets"
23984
23985 \end_inset
23986
23987
23988 \change_deleted 564990737 1671355684
23989
23990 \begin_inset CommandInset label
23991 LatexCommand label
23992 name "sec:bullet"
23993
23994 \end_inset
23995
23996
23997 \change_unchanged
23998
23999 \end_layout
24000
24001 \begin_layout Standard
24002 by
24003 \noun on
24004  Allan Rae
24005 \end_layout
24006
24007 \begin_layout Section
24008 Introduction
24009 \end_layout
24010
24011 \begin_layout Standard
24012 \SpecialChar LyX
24013  provides 216 bullet shapes that can be accessed from a simple dialog.
24014  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
24015  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
24016 \begin_inset Foot
24017 status collapsed
24018
24019 \begin_layout Plain Layout
24020 Well,
24021  actually you can but you'll have to do it by hand.
24022 \end_layout
24023
24024 \end_inset
24025
24026
24027 \end_layout
24028
24029 \begin_layout Section
24030 How it looks
24031 \end_layout
24032
24033 \begin_layout Standard
24034 Open the dialog by selecting the 
24035 \begin_inset Flex Noun
24036 status collapsed
24037
24038 \begin_layout Plain Layout
24039 Document\SpecialChar menuseparator
24040 Settings
24041 \end_layout
24042
24043 \end_inset
24044
24045  menu item and then select the 
24046 \begin_inset Flex Noun
24047 status collapsed
24048
24049 \begin_layout Plain Layout
24050 Bullets
24051 \end_layout
24052
24053 \end_inset
24054
24055  tab.
24056 \end_layout
24057
24058 \begin_layout Standard
24059 The dialog provides you with a table of bullet shapes.
24060  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
24061  The row of buttons across the top is used to select which bullet depth you are changing.
24062
24063 \change_deleted 244031559 1603875981
24064  A text entry under the table shows the currently selected bullet shape's \SpecialChar LaTeX
24065  equivalent and this can be edited if desired.
24066  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
24067  preamble.
24068 \change_unchanged
24069
24070 \end_layout
24071
24072 \begin_layout Standard
24073 The six panels are divided up by the packages they require.
24074  The following table shows the mappings from button name to \SpecialChar LaTeX
24075  package.
24076 \end_layout
24077
24078 \begin_layout Standard
24079 \align center
24080 \begin_inset Tabular
24081 <lyxtabular version="3" rows="7" columns="2">
24082 <features tabularvalignment="middle">
24083 <column alignment="center" valignment="top" width="0pt">
24084 <column alignment="center" valignment="top" width="0pt">
24085 <row>
24086 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24087 \begin_inset Text
24088
24089 \begin_layout Plain Layout
24090
24091 \family roman
24092 \series medium
24093 \shape up
24094 \size normal
24095 \emph off
24096 \bar no
24097 \noun off
24098 \color none
24099 Button
24100 \end_layout
24101
24102 \end_inset
24103 </cell>
24104 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24105 \begin_inset Text
24106
24107 \begin_layout Plain Layout
24108
24109 \family roman
24110 \series medium
24111 \shape up
24112 \size normal
24113 \emph off
24114 \bar no
24115 \noun off
24116 \color none
24117 Packages Required
24118 \end_layout
24119
24120 \end_inset
24121 </cell>
24122 </row>
24123 <row>
24124 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24125 \begin_inset Text
24126
24127 \begin_layout Plain Layout
24128
24129 \family sans
24130 \series medium
24131 \shape up
24132 \size normal
24133 \emph off
24134 \bar no
24135 \noun off
24136 \color none
24137 Standard
24138 \end_layout
24139
24140 \end_inset
24141 </cell>
24142 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24143 \begin_inset Text
24144
24145 \begin_layout Plain Layout
24146
24147 \series medium
24148 \shape up
24149 \size normal
24150 \emph off
24151 \bar no
24152 \noun off
24153 \color none
24154 base \SpecialChar LaTeX
24155
24156 \end_layout
24157
24158 \end_inset
24159 </cell>
24160 </row>
24161 <row>
24162 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24163 \begin_inset Text
24164
24165 \begin_layout Plain Layout
24166
24167 \family sans
24168 \series medium
24169 \shape up
24170 \size normal
24171 \emph off
24172 \bar no
24173 \noun off
24174 \color none
24175 Maths
24176 \end_layout
24177
24178 \end_inset
24179 </cell>
24180 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24181 \begin_inset Text
24182
24183 \begin_layout Plain Layout
24184
24185 \family typewriter
24186 \series medium
24187 \shape up
24188 \size normal
24189 \emph off
24190 \bar no
24191 \noun off
24192 \color none
24193 amssymb.sty
24194 \end_layout
24195
24196 \end_inset
24197 </cell>
24198 </row>
24199 <row>
24200 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24201 \begin_inset Text
24202
24203 \begin_layout Plain Layout
24204
24205 \family sans
24206 \series medium
24207 \shape up
24208 \size normal
24209 \emph off
24210 \bar no
24211 \noun off
24212 \color none
24213 Ding1
24214 \end_layout
24215
24216 \end_inset
24217 </cell>
24218 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24219 \begin_inset Text
24220
24221 \begin_layout Plain Layout
24222
24223 \family typewriter
24224 \series medium
24225 \shape up
24226 \size normal
24227 \emph off
24228 \bar no
24229 \noun off
24230 \color none
24231 pifont.sty
24232 \end_layout
24233
24234 \end_inset
24235 </cell>
24236 </row>
24237 <row>
24238 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24239 \begin_inset Text
24240
24241 \begin_layout Plain Layout
24242
24243 \family sans
24244 \series medium
24245 \shape up
24246 \size normal
24247 \emph off
24248 \bar no
24249 \noun off
24250 \color none
24251 Ding2
24252 \end_layout
24253
24254 \end_inset
24255 </cell>
24256 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24257 \begin_inset Text
24258
24259 \begin_layout Plain Layout
24260
24261 \family typewriter
24262 \series medium
24263 \shape up
24264 \size normal
24265 \emph off
24266 \bar no
24267 \noun off
24268 \color none
24269 pifont.sty
24270 \end_layout
24271
24272 \end_inset
24273 </cell>
24274 </row>
24275 <row>
24276 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24277 \begin_inset Text
24278
24279 \begin_layout Plain Layout
24280
24281 \family sans
24282 \series medium
24283 \shape up
24284 \size normal
24285 \emph off
24286 \bar no
24287 \noun off
24288 \color none
24289 Ding3
24290 \end_layout
24291
24292 \end_inset
24293 </cell>
24294 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24295 \begin_inset Text
24296
24297 \begin_layout Plain Layout
24298
24299 \family typewriter
24300 \series medium
24301 \shape up
24302 \size normal
24303 \emph off
24304 \bar no
24305 \noun off
24306 \color none
24307 pifont.sty
24308 \end_layout
24309
24310 \end_inset
24311 </cell>
24312 </row>
24313 <row>
24314 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24315 \begin_inset Text
24316
24317 \begin_layout Plain Layout
24318
24319 \family sans
24320 \series medium
24321 \shape up
24322 \size normal
24323 \emph off
24324 \bar no
24325 \noun off
24326 \color none
24327 Ding4
24328 \end_layout
24329
24330 \end_inset
24331 </cell>
24332 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24333 \begin_inset Text
24334
24335 \begin_layout Plain Layout
24336
24337 \family typewriter
24338 \series medium
24339 \shape up
24340 \size normal
24341 \emph off
24342 \bar no
24343 \noun off
24344 \color none
24345 pifont.sty
24346 \end_layout
24347
24348 \end_inset
24349 </cell>
24350 </row>
24351 </lyxtabular>
24352
24353 \end_inset
24354
24355
24356 \end_layout
24357
24358 \begin_layout Standard
24359 \SpecialChar LyX
24360  doesn't stop you using bullets from packages you don't have.
24361  If you get errors from \SpecialChar LaTeX
24362  when you try to view or print the file,
24363  then it is likely you are missing a package.
24364 \begin_inset Foot
24365 status collapsed
24366
24367 \begin_layout Plain Layout
24368 \SpecialChar LyX
24369  doesn't restrict your use since you may be editing locally and exporting elsewhere.
24370 \end_layout
24371
24372 \end_inset
24373
24374
24375 \end_layout
24376
24377 \begin_layout Section
24378 How to use it
24379 \end_layout
24380
24381 \begin_layout Standard
24382 Select which bullet depth you want to change then select the bullet shape and size.
24383  Any changes will not be visible in \SpecialChar LyX
24384 ,
24385  but are visible when viewing the document.
24386 \end_layout
24387
24388 \begin_layout Standard
24389 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
24390 \begin_inset Foot
24391 status open
24392
24393 \begin_layout Plain Layout
24394
24395 \change_inserted 564990737 1672138075
24396 \begin_inset CommandInset label
24397 LatexCommand label
24398 name "fn:If-you-really"
24399
24400 \end_inset
24401
24402
24403 \change_unchanged
24404 If you 
24405 \emph on
24406 really
24407 \emph default
24408  want to have multiple sets of paragraphs with different sets of bullets in each,
24409  then you're going to have to get your hands dirty with \SpecialChar TeX
24410  code.
24411  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
24412  code for a wide range of bullet shapes.
24413  To make your own custom paragraphs you have the following options:
24414 \end_layout
24415
24416 \begin_layout Plain Layout
24417 \begin_inset ERT
24418 status open
24419
24420 \begin_layout Plain Layout
24421
24422
24423 \backslash
24424 let
24425 \backslash
24426 savelabelitemi=
24427 \backslash
24428 labelitemi
24429 \end_layout
24430
24431 \end_inset
24432
24433
24434 \end_layout
24435
24436 \begin_layout Plain Layout
24437 \begin_inset ERT
24438 status open
24439
24440 \begin_layout Plain Layout
24441
24442
24443 \backslash
24444 renewcommand
24445 \backslash
24446 labelitemi[0]{
24447 \backslash
24448 small
24449 \backslash
24450 (
24451 \backslash
24452 sharp
24453 \backslash
24454 )}
24455 \end_layout
24456
24457 \end_inset
24458
24459
24460 \end_layout
24461
24462 \begin_layout Itemize
24463 Use the \SpecialChar LaTeX
24464  command 
24465 \begin_inset Flex Code
24466 status collapsed
24467
24468 \begin_layout Plain Layout
24469
24470 \backslash
24471 renewcommand{}{}
24472 \end_layout
24473
24474 \end_inset
24475
24476  to specify a new bullet shape for a given depth.
24477  You'll also need to save the current bullet shape so you can restore it again afterwards.
24478  In this itemized list the following \SpecialChar LaTeX
24479  code was used to change the bullet used for the first depth.
24480 \end_layout
24481
24482 \begin_deeper
24483 \begin_layout LyX-Code
24484
24485 \backslash
24486 let
24487 \backslash
24488 savelabelitemi=
24489 \backslash
24490 labelitemi 
24491 \end_layout
24492
24493 \begin_layout LyX-Code
24494
24495 \backslash
24496 renewcommand
24497 \backslash
24498 labelitemi[0]{
24499 \backslash
24500 small
24501 \backslash
24502 (
24503 \backslash
24504 sharp
24505 \backslash
24506 )}
24507 \end_layout
24508
24509 \end_deeper
24510 \begin_layout Itemize
24511 Note that the itemize depth is specified in Roman numerals as part of the 
24512 \family typewriter
24513
24514 \backslash
24515 labelitem
24516 \family default
24517  command.
24518 \end_layout
24519
24520 \begin_layout Itemize
24521 \begin_inset Argument item:1
24522 status open
24523
24524 \begin_layout Plain Layout
24525 \begin_inset ERT
24526 status open
24527
24528 \begin_layout Plain Layout
24529
24530
24531 \backslash
24532 (
24533 \backslash
24534 star
24535 \backslash
24536 )
24537 \end_layout
24538
24539 \end_inset
24540
24541
24542 \end_layout
24543
24544 \end_inset
24545
24546  Specify each individual entry by starting each item with the bullet shape enclosed in a 
24547 \begin_inset Quotes eld
24548 \end_inset
24549
24550 Custom Item
24551 \begin_inset Quotes erd
24552 \end_inset
24553
24554  inset (available at 
24555 \family sans
24556 Insert\SpecialChar menuseparator
24557 Custom Item
24558 \family default
24559 ) and set as 
24560 \begin_inset Flex Noun
24561 status collapsed
24562
24563 \begin_layout Plain Layout
24564 \SpecialChar TeX
24565  Code
24566 \end_layout
24567
24568 \end_inset
24569
24570 .
24571  For example,
24572  this item was started with 
24573 \begin_inset Flex Code
24574 status collapsed
24575
24576 \begin_layout Plain Layout
24577
24578 \backslash
24579 (
24580 \backslash
24581 star
24582 \backslash
24583 )
24584 \end_layout
24585
24586 \end_inset
24587
24588 .
24589 \end_layout
24590
24591 \begin_layout Plain Layout
24592 \begin_inset ERT
24593 status open
24594
24595 \begin_layout Plain Layout
24596
24597
24598 \backslash
24599 renewcommand
24600 \backslash
24601 labelitemi[0]{
24602 \backslash
24603 savelabelitemi}
24604 \end_layout
24605
24606 \end_inset
24607
24608
24609 \end_layout
24610
24611 \begin_layout Plain Layout
24612 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
24613  The way used here was:
24614 \end_layout
24615
24616 \begin_layout LyX-Code
24617
24618 \backslash
24619 renewcommand
24620 \backslash
24621 labelitemi[0]{
24622 \backslash
24623 savelabelitemi}
24624 \end_layout
24625
24626 \end_inset
24627
24628
24629 \end_layout
24630
24631 \begin_layout Chapter
24632 Supplemental Tools
24633 \end_layout
24634
24635 \begin_layout Section
24636 Multipart Documents
24637 \end_layout
24638
24639 \begin_layout Subsection
24640 General Operation
24641 \end_layout
24642
24643 \begin_layout Standard
24644 When you are working on a large file with many sections,
24645  it is often convenient to break up the document into several files,
24646  or perhaps you have something where a table may change from time to time,
24647  but the preceding text does not.
24648  In these cases,
24649  you should seriously consider using multipart documents.
24650  For example,
24651  scientific papers often have five major sections:
24652  the introduction,
24653  observations,
24654  results,
24655  discussion,
24656  and conclusion.
24657  Each of these could be its own separate \SpecialChar LyX
24658  file,
24659  with one 
24660 \begin_inset Quotes eld
24661 \end_inset
24662
24663 master
24664 \begin_inset Quotes erd
24665 \end_inset
24666
24667  file which contains the title,
24668  authors,
24669  abstract,
24670  references,
24671  etc.,
24672  plus the five included files.
24673  It is important to note that each of these files is a full \SpecialChar LyX
24674  file which can be formatted and printed on its own,
24675  as well as included in a master file.
24676  Each of these files must have the same document class,
24677  however—
24678 don't attempt to mix book classes with article classes.
24679  You may also include \SpecialChar LaTeX
24680  files;
24681  however,
24682  these files must not have their own preamble (i.
24683 \begin_inset space \thinspace{}
24684 \end_inset
24685
24686 e.
24687 \begin_inset space \space{}
24688 \end_inset
24689
24690 everything up to and including the 
24691 \begin_inset Flex Code
24692 status collapsed
24693
24694 \begin_layout Plain Layout
24695
24696 \backslash
24697 begin{document}
24698 \end_layout
24699
24700 \end_inset
24701
24702  line as well as the 
24703 \begin_inset Flex Code
24704 status collapsed
24705
24706 \begin_layout Plain Layout
24707
24708 \backslash
24709 end{document}
24710 \end_layout
24711
24712 \end_inset
24713
24714  line must be deleted) or else errors will be generated when you try to make a DVI file.
24715 \end_layout
24716
24717 \begin_layout Standard
24718 \SpecialChar LyX
24719  allows you to include files quite easily with 
24720 \begin_inset Flex Noun
24721 status collapsed
24722
24723 \begin_layout Plain Layout
24724 Insert\SpecialChar menuseparator
24725 Child
24726 \begin_inset space ~
24727 \end_inset
24728
24729 Document
24730 \end_layout
24731
24732 \end_inset
24733
24734 .
24735  When you click on this selection a small box is inserted into the file at the current cursor location.
24736  Clicking on the box raises a dialog which allows you to select the file to be included,
24737  and the method of its inclusion.
24738  
24739 \end_layout
24740
24741 \begin_layout Standard
24742 The file selection box should by now be obvious.
24743  The three inclusion methods are 
24744 \begin_inset Quotes eld
24745 \end_inset
24746
24747 include
24748 \begin_inset Quotes erd
24749 \end_inset
24750
24751 ,
24752  
24753 \begin_inset Quotes eld
24754 \end_inset
24755
24756 input
24757 \begin_inset Quotes erd
24758 \end_inset
24759
24760 ,
24761  and 
24762 \begin_inset Quotes eld
24763 \end_inset
24764
24765 verbatim
24766 \begin_inset Quotes erd
24767 \end_inset
24768
24769 .
24770  The methods 
24771 \begin_inset Quotes eld
24772 \end_inset
24773
24774 include
24775 \begin_inset Quotes erd
24776 \end_inset
24777
24778  and 
24779 \begin_inset Quotes eld
24780 \end_inset
24781
24782 input
24783 \begin_inset Quotes erd
24784 \end_inset
24785
24786  are similar in many ways,
24787  but there are also some notable differences:
24788 \end_layout
24789
24790 \begin_layout Enumerate
24791 Files that are 
24792 \begin_inset Quotes eld
24793 \end_inset
24794
24795 included
24796 \begin_inset Quotes erd
24797 \end_inset
24798
24799  are typeset beginning on a new page,
24800  while files that are 
24801 \begin_inset Quotes eld
24802 \end_inset
24803
24804 inputted
24805 \begin_inset Quotes erd
24806 \end_inset
24807
24808  are typeset starting on the current page.
24809 \end_layout
24810
24811 \begin_layout Enumerate
24812 \begin_inset Quotes eld
24813 \end_inset
24814
24815 Included
24816 \begin_inset Quotes erd
24817 \end_inset
24818
24819  files cannot themselves 
24820 \begin_inset Quotes eld
24821 \end_inset
24822
24823 include
24824 \begin_inset Quotes erd
24825 \end_inset
24826
24827  further files (
24828 \begin_inset Quotes eld
24829 \end_inset
24830
24831 grandchilds
24832 \begin_inset Quotes erd
24833 \end_inset
24834
24835 ).
24836  With 
24837 \begin_inset Quotes eld
24838 \end_inset
24839
24840 input
24841 \begin_inset Quotes erd
24842 \end_inset
24843
24844 ,
24845  on the other hand,
24846  infinite sub-inputting is possible.
24847 \end_layout
24848
24849 \begin_layout Enumerate
24850 \begin_inset Quotes eld
24851 \end_inset
24852
24853 Include
24854 \begin_inset Quotes erd
24855 \end_inset
24856
24857  allow for the output of only selected 
24858 \begin_inset Quotes eld
24859 \end_inset
24860
24861 included
24862 \begin_inset Quotes erd
24863 \end_inset
24864
24865  files,
24866  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
24867 \emph on
24868 Child
24869 \begin_inset space ~
24870 \end_inset
24871
24872 Documents
24873 \emph default
24874  of the 
24875 \emph on
24876 Embedded
24877 \begin_inset space ~
24878 \end_inset
24879
24880 Objects
24881 \emph default
24882  manual for details).
24883 \end_layout
24884
24885 \begin_layout Standard
24886 Hence,
24887  
24888 \begin_inset Quotes eld
24889 \end_inset
24890
24891 include
24892 \begin_inset Quotes erd
24893 \end_inset
24894
24895  is the preferred method for chapters that are outsourced to child documents,
24896  while 
24897 \begin_inset Quotes eld
24898 \end_inset
24899
24900 input
24901 \begin_inset Quotes erd
24902 \end_inset
24903
24904  is more suitable for arbitrary file inheritance.
24905 \end_layout
24906
24907 \begin_layout Standard
24908
24909 \begin_inset Quotes eld
24910 \end_inset
24911
24912 verbatim
24913 \begin_inset Quotes erd
24914 \end_inset
24915
24916  included file allows you to include a file typeset exactly as it appears in the file,
24917  i.
24918 \begin_inset space \thinspace{}
24919 \end_inset
24920
24921 e.
24922 \begin_inset space \space{}
24923 \end_inset
24924
24925 in 
24926 \begin_inset Flex Code
24927 status collapsed
24928
24929 \begin_layout Plain Layout
24930 verbatim
24931 \end_layout
24932
24933 \end_inset
24934
24935  mode,
24936  with the characters set in a fixed-width typewriter font.
24937  Normally,
24938  spaces in this file are invisible,
24939  though two consecutive spaces are conserved,
24940  unlike \SpecialChar LyX
24941 's normal treatment of spaces.
24942  However,
24943  setting the 
24944 \begin_inset Flex Noun
24945 status collapsed
24946
24947 \begin_layout Plain Layout
24948 Mark
24949 \begin_inset space ~
24950 \end_inset
24951
24952 spaces
24953 \begin_inset space ~
24954 \end_inset
24955
24956 in
24957 \begin_inset space ~
24958 \end_inset
24959
24960 output
24961 \end_layout
24962
24963 \end_inset
24964
24965  checkbox typesets a mark to unambiguously define the presence of a space.
24966  
24967 \end_layout
24968
24969 \begin_layout Standard
24970 Generally,
24971  the master file is converted into a full \SpecialChar LaTeX
24972  file before typesetting,
24973  while the included files are converted to \SpecialChar LaTeX
24974  files that do not have all the preamble information.
24975 \end_layout
24976
24977 \begin_layout Subsection
24978 Cross-References Between Files
24979 \end_layout
24980
24981 \begin_layout Standard
24982 \begin_inset Box Shadowbox
24983 position "t"
24984 hor_pos "c"
24985 has_inner_box 1
24986 inner_pos "t"
24987 use_parbox 0
24988 use_makebox 0
24989 width "100col%"
24990 special "none"
24991 height "1in"
24992 height_special "totalheight"
24993 thickness "0.4pt"
24994 separation "3pt"
24995 shadowsize "4pt"
24996 framecolor "black"
24997 backgroundcolor "none"
24998 status open
24999
25000 \begin_layout Plain Layout
25001 This section is somewhat out of date.
25002  Need to describe default master documents and how children are opened when the master is.
25003  [[FIXME]]
25004 \end_layout
25005
25006 \end_inset
25007
25008
25009 \end_layout
25010
25011 \begin_layout Standard
25012 It is possible to set up cross-references between the different files.
25013  First,
25014  open all the files in question:
25015  let's call them A and B in a two file example,
25016  where B is included in A.
25017  Let's say you insert a label in A,
25018  then want to reference it in B.
25019  Open the cross-reference dialog whilst in document B,
25020  and you can select the 
25021 \begin_inset Quotes eld
25022 \end_inset
25023
25024 buffer
25025 \begin_inset Quotes erd
25026 \end_inset
25027
25028  to use.
25029 \end_layout
25030
25031 \begin_layout Subsection
25032 Bibliography Lists in all Subdocuments
25033 \end_layout
25034
25035 \begin_layout Standard
25036 If you work with child documents,
25037  you might want to have only one main bibliography at the end,
25038  but still be able to have a selected bibliography for the child if you output it on its own.
25039  Here is how to achieve this.
25040 \end_layout
25041
25042 \begin_layout Standard
25043 For the main document,
25044  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
25045  If the bibliography inset is in the master file,
25046  the references will be inherited by all children,
25047  so they are available in the citation dialog within each child.
25048 \end_layout
25049
25050 \begin_layout Standard
25051 For child-specific bibliographies,
25052  insert bibliography insets within the child documents,
25053  at the place where the bibliography should appear when the child is compiled separately.
25054  However,
25055  the trick is to insert them into a branch (
25056 \family sans
25057 Insert\SpecialChar menuseparator
25058 Branch\SpecialChar menuseparator
25059 Insert New Branch...
25060 \family default
25061 ),
25062  e.
25063 \begin_inset space \thinspace{}
25064 \end_inset
25065
25066 g.
25067  called 
25068 \begin_inset Quotes eld
25069 \end_inset
25070
25071 Childonly
25072 \begin_inset Quotes erd
25073 \end_inset
25074
25075 .
25076  Within the children,
25077  activate the branch (
25078 \family sans
25079 Document\SpecialChar menuseparator
25080 Settings...\SpecialChar menuseparator
25081 Branches
25082 \family default
25083 ).
25084  Within the master,
25085  deactivate the branch (
25086 \family sans
25087 Document\SpecialChar menuseparator
25088 Settings...\SpecialChar menuseparator
25089 Branches
25090 \family default
25091 ).
25092  Now the child's bibliography will be ignored by the master,
25093  but considered by the child.
25094 \end_layout
25095
25096 \begin_layout Standard
25097 If you need multiple bibliographies (e.
25098 \begin_inset space \thinspace{}
25099 \end_inset
25100
25101 g.,
25102  one per child in the 
25103 \emph on
25104 main document
25105 \emph default
25106 ),
25107  please refer to sec.
25108 \begin_inset space ~
25109 \end_inset
25110
25111
25112 \begin_inset CommandInset ref
25113 LatexCommand ref
25114 reference "subsec:Multiple-Bibliographies"
25115 nolink "false"
25116
25117 \end_inset
25118
25119 .
25120 \end_layout
25121
25122 \begin_layout Section
25123 \SpecialChar LyX
25124  Archives
25125 \end_layout
25126
25127 \begin_layout Standard
25128 Users sometimes need to be able to 
25129 \begin_inset Quotes eld
25130 \end_inset
25131
25132 bundle
25133 \begin_inset Quotes erd
25134 \end_inset
25135
25136  a \SpecialChar LyX
25137  file together with all the images (and other files) on which it depends,
25138  either for sending to a publisher or for sharing with a co-author.
25139  \SpecialChar LyX
25140  includes a Python script (
25141 \begin_inset Flex Code
25142 status collapsed
25143
25144 \begin_layout Plain Layout
25145 lyxpak.py
25146 \end_layout
25147
25148 \end_inset
25149
25150 ) that automates this process.
25151  To use it,
25152  you must have either the 
25153 \begin_inset Flex Code
25154 status collapsed
25155
25156 \begin_layout Plain Layout
25157 zipfile
25158 \end_layout
25159
25160 \end_inset
25161
25162  or 
25163 \begin_inset Flex Code
25164 status collapsed
25165
25166 \begin_layout Plain Layout
25167 tarfile
25168 \end_layout
25169
25170 \end_inset
25171
25172  python modules installed on your system.
25173  By default,
25174  the script prefers the 
25175 \begin_inset Flex Code
25176 status collapsed
25177
25178 \begin_layout Plain Layout
25179 gzip
25180 \end_layout
25181
25182 \end_inset
25183
25184 -compressed 
25185 \begin_inset Flex Code
25186 status collapsed
25187
25188 \begin_layout Plain Layout
25189 tar
25190 \end_layout
25191
25192 \end_inset
25193
25194  format on Unix-like systems and the 
25195 \begin_inset Flex Code
25196 status collapsed
25197
25198 \begin_layout Plain Layout
25199 zip
25200 \end_layout
25201
25202 \end_inset
25203
25204  format on Windows.
25205 \end_layout
25206
25207 \begin_layout Standard
25208 \SpecialChar LyX
25209 's configuration process will set the script up to export a `\SpecialChar LyX
25210  Archive',
25211  and this format will then be available under 
25212 \begin_inset Flex Code
25213 status collapsed
25214
25215 \begin_layout Plain Layout
25216 File\SpecialChar menuseparator
25217 Export
25218 \end_layout
25219
25220 \end_inset
25221
25222 .
25223 \end_layout
25224
25225 \begin_layout Standard
25226 Independently of the platform,
25227  the generation of a particular archive format can be forced by adding either the 
25228 \begin_inset Flex Code
25229 status collapsed
25230
25231 \begin_layout Plain Layout
25232 -t
25233 \end_layout
25234
25235 \end_inset
25236
25237  (for the 
25238 \begin_inset Flex Code
25239 status collapsed
25240
25241 \begin_layout Plain Layout
25242 tar
25243 \end_layout
25244
25245 \end_inset
25246
25247  format) or 
25248 \begin_inset Flex Code
25249 status collapsed
25250
25251 \begin_layout Plain Layout
25252 -z
25253 \end_layout
25254
25255 \end_inset
25256
25257  (for the 
25258 \begin_inset Flex Code
25259 status collapsed
25260
25261 \begin_layout Plain Layout
25262 zip
25263 \end_layout
25264
25265 \end_inset
25266
25267  format) switch to the 
25268 \begin_inset Flex Code
25269 status collapsed
25270
25271 \begin_layout Plain Layout
25272 \SpecialChar LyX
25273 \SpecialChar menuseparator
25274 \SpecialChar LyX
25275  Archive
25276 \end_layout
25277
25278 \end_inset
25279
25280  converter in 
25281 \begin_inset Flex Code
25282 status collapsed
25283
25284 \begin_layout Plain Layout
25285 Tools\SpecialChar menuseparator
25286 Preferences\SpecialChar menuseparator
25287 File Handling\SpecialChar menuseparator
25288 Converters
25289 \end_layout
25290
25291 \end_inset
25292
25293 .
25294  (Make sure you add the switch after the script name,
25295  not before it.)
25296 \end_layout
25297
25298 \begin_layout Section
25299 Fancy Headers and Footers
25300 \end_layout
25301
25302 \begin_layout Standard
25303 The default page layout is rather plain;
25304  for an 
25305 \begin_inset Flex Code
25306 status collapsed
25307
25308 \begin_layout Plain Layout
25309 article
25310 \end_layout
25311
25312 \end_inset
25313
25314  document class,
25315  all you get is a centered page number at the bottom of the page.
25316  This document uses KOMA-script's book class,
25317  so it appears to be a bit fancier.
25318  But to really put on a show,
25319  you need to set the document page style to 
25320 \begin_inset Quotes eld
25321 \end_inset
25322
25323 fancy
25324 \begin_inset Quotes erd
25325 \end_inset
25326
25327 ,
25328  as mentioned in the 
25329 \emph on
25330 User Guide
25331 \emph default
25332 .
25333  This section describes the \SpecialChar LaTeX
25334  code you need to insert in your \SpecialChar LaTeX
25335  preamble in order to get the desired effects.
25336 \end_layout
25337
25338 \begin_layout Standard
25339 For more information on fancy headers,
25340  see the 
25341 \begin_inset Flex Code
25342 status collapsed
25343
25344 \begin_layout Plain Layout
25345 fancyhdr
25346 \end_layout
25347
25348 \end_inset
25349
25350  package documentation.
25351  (
25352 \begin_inset Flex URL
25353 status collapsed
25354
25355 \begin_layout Plain Layout
25356
25357 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
25358 \end_layout
25359
25360 \end_inset
25361
25362 )
25363 \end_layout
25364
25365 \begin_layout Standard
25366 The page header is divided into three fields,
25367  not surprisingly labeled 
25368 \begin_inset Quotes eld
25369 \end_inset
25370
25371 left
25372 \begin_inset Quotes erd
25373 \end_inset
25374
25375 ,
25376  
25377 \begin_inset Quotes eld
25378 \end_inset
25379
25380 center
25381 \begin_inset Quotes erd
25382 \end_inset
25383
25384 ,
25385  and 
25386 \begin_inset Quotes eld
25387 \end_inset
25388
25389 right
25390 \begin_inset Quotes erd
25391 \end_inset
25392
25393 .
25394  The footer is also divided into these three fields.
25395  The \SpecialChar LaTeX
25396  commands to set these fields in the simplest manner are 
25397 \begin_inset Flex Code
25398 status collapsed
25399
25400 \begin_layout Plain Layout
25401
25402 \backslash
25403 lhead
25404 \end_layout
25405
25406 \end_inset
25407
25408 ,
25409  
25410 \begin_inset Flex Code
25411 status collapsed
25412
25413 \begin_layout Plain Layout
25414
25415 \backslash
25416 chead
25417 \end_layout
25418
25419 \end_inset
25420
25421 ,
25422  
25423 \begin_inset Flex Code
25424 status collapsed
25425
25426 \begin_layout Plain Layout
25427
25428 \backslash
25429 rhead
25430 \end_layout
25431
25432 \end_inset
25433
25434 ,
25435  
25436 \begin_inset Flex Code
25437 status collapsed
25438
25439 \begin_layout Plain Layout
25440
25441 \backslash
25442 lfoot
25443 \end_layout
25444
25445 \end_inset
25446
25447 ,
25448  etc.
25449  Suppose you wish to put your name in the upper left hand corner of each page.
25450  Simply insert the following command in the preamble:
25451  
25452 \end_layout
25453
25454 \begin_layout Standard
25455
25456 \family typewriter
25457
25458 \backslash
25459 lhead{John Q.
25460  DocWriter}
25461 \end_layout
25462
25463 \begin_layout Standard
25464 You will now see your name in the upper left.
25465  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,
25466  e.
25467 \begin_inset space \thinspace{}
25468 \end_inset
25469
25470 g.:
25471 \end_layout
25472
25473 \begin_layout Standard
25474
25475 \family typewriter
25476
25477 \backslash
25478 cfoot{}
25479 \end_layout
25480
25481 \begin_layout Standard
25482 Let's get really fancy:
25483  lets put the section number with the word 
25484 \begin_inset Quotes eld
25485 \end_inset
25486
25487 Section
25488 \begin_inset Quotes erd
25489 \end_inset
25490
25491  (e.
25492 \begin_inset space \thinspace{}
25493 \end_inset
25494
25495 g.
25496 \begin_inset space \space{}
25497 \end_inset
25498
25499 Section 3) in the upper left,
25500  the page number (e.
25501 \begin_inset space \thinspace{}
25502 \end_inset
25503
25504 g.
25505 \begin_inset space \space{}
25506 \end_inset
25507
25508 Page 4) in the upper right,
25509  your name in the lower left,
25510  and the date in the lower right.
25511  The following commands should now appear in the preamble:
25512 \end_layout
25513
25514 \begin_layout Standard
25515
25516 \family typewriter
25517
25518 \backslash
25519 lhead{Section 
25520 \backslash
25521 thesection}
25522 \end_layout
25523
25524 \begin_layout Standard
25525
25526 \family typewriter
25527
25528 \backslash
25529 chead{}
25530 \end_layout
25531
25532 \begin_layout Standard
25533
25534 \family typewriter
25535
25536 \backslash
25537 rhead{Page 
25538 \backslash
25539 thepage}
25540 \end_layout
25541
25542 \begin_layout Standard
25543
25544 \family typewriter
25545
25546 \backslash
25547 lfoot{John Q.
25548  DocWriter}
25549 \end_layout
25550
25551 \begin_layout Standard
25552
25553 \family typewriter
25554
25555 \backslash
25556 cfoot{}
25557 \end_layout
25558
25559 \begin_layout Standard
25560
25561 \family typewriter
25562
25563 \backslash
25564 rfoot{
25565 \backslash
25566 today}
25567 \end_layout
25568
25569 \begin_layout Standard
25570 The commands 
25571 \begin_inset Flex Code
25572 status collapsed
25573
25574 \begin_layout Plain Layout
25575
25576 \backslash
25577 thesection
25578 \end_layout
25579
25580 \end_inset
25581
25582  and 
25583 \begin_inset Flex Code
25584 status collapsed
25585
25586 \begin_layout Plain Layout
25587
25588 \backslash
25589 thepage
25590 \end_layout
25591
25592 \end_inset
25593
25594  access \SpecialChar LaTeX
25595 's section and page counters,
25596  and so print out the current section and page number.
25597  
25598 \begin_inset Flex Code
25599 status collapsed
25600
25601 \begin_layout Plain Layout
25602
25603 \backslash
25604 today
25605 \end_layout
25606
25607 \end_inset
25608
25609  simply prints out today's date.
25610 \end_layout
25611
25612 \begin_layout Standard
25613 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
25614  If you don't want one of the rules,
25615  set its thickness to 0.
25616  The header rule has a default thickness of 0.4pt,
25617  the footer rule is 0pt.
25618  Use commands
25619 \family typewriter
25620  
25621 \family default
25622 like 
25623 \begin_inset Flex Code
25624 status collapsed
25625
25626 \begin_layout Plain Layout
25627
25628 \backslash
25629 renewcommand{
25630 \backslash
25631 headrulewidth}{0.4pt}
25632 \end_layout
25633
25634 \end_inset
25635
25636  and 
25637 \begin_inset Flex Code
25638 status collapsed
25639
25640 \begin_layout Plain Layout
25641
25642 \backslash
25643 renewcommand{
25644 \backslash
25645 footrulewidth}{0.4pt}
25646 \end_layout
25647
25648 \end_inset
25649
25650  to set the thicknesses.
25651 \end_layout
25652
25653 \begin_layout Standard
25654 You can switch the header/footer settings on and off for individual pages using commands like 
25655 \begin_inset Flex Code
25656 status collapsed
25657
25658 \begin_layout Plain Layout
25659
25660 \backslash
25661 thispagestyle{empty}
25662 \end_layout
25663
25664 \end_inset
25665
25666 ,
25667  
25668 \begin_inset Flex Code
25669 status collapsed
25670
25671 \begin_layout Plain Layout
25672
25673 \backslash
25674 thispagestyle{plain}
25675 \end_layout
25676
25677 \end_inset
25678
25679 ,
25680  and 
25681 \begin_inset Flex Code
25682 status collapsed
25683
25684 \begin_layout Plain Layout
25685
25686 \backslash
25687 thispagestyle{fancy}
25688 \end_layout
25689
25690 \end_inset
25691
25692 .
25693  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
25694  code.
25695  In fact,
25696  title pages are marked as plain by default,
25697  while following pages are marked fancy when using the global fancy setting.
25698 \end_layout
25699
25700 \begin_layout Standard
25701 As a final example,
25702  it is possible to include an image in the header or footer.
25703  Suppose you want to put a company logo in the upper lefthand corner.
25704  You might try something like
25705 \end_layout
25706
25707 \begin_layout Standard
25708
25709 \family typewriter
25710
25711 \backslash
25712 lhead{
25713 \backslash
25714 resizebox{1in}{!}{
25715 \backslash
25716 includegraphics{logo.eps}}}
25717 \end_layout
25718
25719 \begin_layout Standard
25720 \noindent
25721 (you may need to preface this with 
25722 \begin_inset Flex Code
25723 status collapsed
25724
25725 \begin_layout Plain Layout
25726
25727 \backslash
25728 usepackage{graphics}
25729 \end_layout
25730
25731 \end_inset
25732
25733  if you don't include graphics elsewhere in your document).
25734 \end_layout
25735
25736 \begin_layout Chapter
25737 \SpecialChar LyX
25738  and the World Wide Web
25739 \end_layout
25740
25741 \begin_layout Standard
25742 \SpecialChar LyX
25743  has long supported the export of documents to various web-friendly formats,
25744  such as HTML.
25745  Before version 2.0,
25746  however,
25747  HTML export was always accomplished by the use of external converters.
25748 \begin_inset Foot
25749 status collapsed
25750
25751 \begin_layout Plain Layout
25752 For details on the use of external converters with \SpecialChar LyX
25753 ,
25754  see the 
25755 \emph on
25756 Converters
25757 \emph default
25758  section of the Customization manual.
25759 \end_layout
25760
25761 \end_inset
25762
25763  These fall into two large groups:
25764  there are converters that use \SpecialChar LaTeX
25765  as an intermediate format,
25766  such as 
25767 \begin_inset Flex Code
25768 status collapsed
25769
25770 \begin_layout Plain Layout
25771 htlatex
25772 \end_layout
25773
25774 \end_inset
25775
25776 ,
25777  
25778 \begin_inset Flex Code
25779 status collapsed
25780
25781 \begin_layout Plain Layout
25782 html2latex
25783 \end_layout
25784
25785 \end_inset
25786
25787 ,
25788  and 
25789 \begin_inset Flex Code
25790 status collapsed
25791
25792 \begin_layout Plain Layout
25793 plastex
25794 \end_layout
25795
25796 \end_inset
25797
25798 ,
25799  relying upon \SpecialChar LyX
25800  to produce the \SpecialChar LaTeX
25801 ;
25802  and there is a converter that works directly on \SpecialChar LyX
25803  files,
25804  
25805 \begin_inset Flex Code
25806 status collapsed
25807
25808 \begin_layout Plain Layout
25809 e\SpecialChar LyX
25810 er
25811 \end_layout
25812
25813 \end_inset
25814
25815 .
25816  All of these have different advantages and disadvantages.
25817  
25818 \end_layout
25819
25820 \begin_layout Standard
25821 The \SpecialChar LaTeX
25822 -based converters have the advantage that,
25823  in principle,
25824  they know everything about the exported document that \SpecialChar LaTeX
25825  does.
25826  Such converters do not care,
25827  for example,
25828  if a certain block of code was produced by \SpecialChar LyX
25829  or was Evil Red Text.
25830  These converters know about 
25831 \begin_inset Flex Code
25832 status collapsed
25833
25834 \begin_layout Plain Layout
25835 aux
25836 \end_layout
25837
25838 \end_inset
25839
25840  files,
25841  counters,
25842  and references,
25843  and can often make use of the 
25844 \begin_inset Flex Code
25845 status collapsed
25846
25847 \begin_layout Plain Layout
25848 bbl
25849 \end_layout
25850
25851 \end_inset
25852
25853  files generated by Bib\SpecialChar TeX
25854 .
25855  On the other hand,
25856  \SpecialChar LaTeX
25857  is a very hard language to parse—
25858 it is sometimes said that only \SpecialChar TeX
25859  itself understands \SpecialChar TeX
25860
25861 and \SpecialChar LaTeX
25862 -based converters will often choke on what seem to be quite simple constructs;
25863  complex ones can throw them completely,
25864  and as of this writing,
25865  for example,
25866  the 
25867 \emph on
25868 Embedded Objects
25869 \emph default
25870  manual will not export with 
25871 \begin_inset Flex Code
25872 status collapsed
25873
25874 \begin_layout Plain Layout
25875 htlatex
25876 \end_layout
25877
25878 \end_inset
25879
25880 ,
25881  though the others will.
25882  The other issue concerns how math is handled.
25883  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
25884  Since these are actually generated by \SpecialChar LaTeX
25885 ,
25886  they are accurate.
25887  But they do not scale well,
25888  and just getting them to look as if they are actually meant to be in your document—
25889 so that the font sizes seem to be roughly the same—
25890 can be a challenge.
25891 \end_layout
25892
25893 \begin_layout Standard
25894 Alex Fernandez's 
25895 \begin_inset Flex Code
25896 status collapsed
25897
25898 \begin_layout Plain Layout
25899 e\SpecialChar LyX
25900 er
25901 \end_layout
25902
25903 \end_inset
25904
25905  (
25906 \begin_inset CommandInset href
25907 LatexCommand href
25908 name "http://pinchito.es/elyxer/"
25909 target "http://pinchito.es/elyxer/"
25910 literal "false"
25911
25912 \end_inset
25913
25914 ) solves some of these problems.
25915  In particular,
25916  the formulae it produces scale perfectly,
25917  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
25918  But even moderately complex formula are rendered less well than with 
25919 \begin_inset Flex Code
25920 status collapsed
25921
25922 \begin_layout Plain Layout
25923 htlatex
25924 \end_layout
25925
25926 \end_inset
25927
25928 ;
25929  this reflects the limitations of HTML.
25930 \begin_inset Foot
25931 status collapsed
25932
25933 \begin_layout Plain Layout
25934 That said,
25935  
25936 \begin_inset Flex Code
25937 status collapsed
25938
25939 \begin_layout Plain Layout
25940 e\SpecialChar LyX
25941 er
25942 \end_layout
25943
25944 \end_inset
25945
25946  can also use jsMath and MathJax for equations,
25947  but this setting is only available globally and requires one to have access to a server that runs the backend.
25948 \end_layout
25949
25950 \end_inset
25951
25952  More importantly (as of version 1.1.1,
25953  at least),
25954  
25955 \begin_inset Flex Code
25956 status collapsed
25957
25958 \begin_layout Plain Layout
25959 e\SpecialChar LyX
25960 er
25961 \end_layout
25962
25963 \end_inset
25964
25965  has limited support for math macros and no support for user-defined paragraph or character styles.
25966  These limitations make 
25967 \begin_inset Flex Code
25968 status collapsed
25969
25970 \begin_layout Plain Layout
25971 e\SpecialChar LyX
25972 er
25973 \end_layout
25974
25975 \end_inset
25976
25977  unsuitable for many of the documents \SpecialChar LyX
25978  users produce.
25979  In principle,
25980  of course,
25981  these problems could be solved,
25982  but the \SpecialChar LyX
25983  developers have decided to follow a different path and have made \SpecialChar LyX
25984  itself capable of writing XHTML,
25985  just as it is capable of writing \SpecialChar LaTeX
25986 ,
25987  DocBook,
25988  and plaintext.
25989 \end_layout
25990
25991 \begin_layout Standard
25992 As of this writing,
25993  XHTML output remains under development and should probably be regarded as 
25994 \begin_inset Quotes eld
25995 \end_inset
25996
25997 experimental
25998 \begin_inset Quotes erd
25999 \end_inset
26000
26001 .
26002 \begin_inset Foot
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 The file 
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 development/HTML/HTML.notes
26012 \end_layout
26013
26014 \end_inset
26015
26016 ,
26017  which can be found in the \SpecialChar LyX
26018  source tree or 
26019 \begin_inset CommandInset href
26020 LatexCommand href
26021 name "accessed online"
26022 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
26023 literal "false"
26024
26025 \end_inset
26026
26027 ,
26028  usually contains up-to-date information about the state of XHTML output.
26029  See also the list of XHTML bugs on 
26030 \begin_inset CommandInset href
26031 LatexCommand href
26032 name "the bug tracker"
26033 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"
26034 literal "false"
26035
26036 \end_inset
26037
26038 .
26039 \end_layout
26040
26041 \end_inset
26042
26043  Still,
26044  the developers have chosen this approach because it has several potential advantages over the other two.
26045 \end_layout
26046
26047 \begin_layout Standard
26048 These advantages are primarily due to the fact that the XHTML output routines,
26049  since they are part of \SpecialChar LyX
26050 ,
26051  know everything \SpecialChar LyX
26052  knows about the document being exported.
26053 \begin_inset Foot
26054 status collapsed
26055
26056 \begin_layout Plain Layout
26057 Another advantage is that,
26058  since these routines are internal to \SpecialChar LyX
26059 ,
26060  they are immune to changes in \SpecialChar LyX
26061 's file format,
26062  or to changes in the semantics of existing insets.
26063 \end_layout
26064
26065 \end_inset
26066
26067  So they know about the table of contents (as displayed in the outline),
26068  about the counters associated with different paragraph styles,
26069  and about user-defined styles.
26070  The XHTML output routines know what \SpecialChar LyX
26071  knows about internationalization,
26072  too,
26073  so they will output 
26074 \begin_inset Quotes eld
26075 \end_inset
26076
26077 Chapter 1
26078 \begin_inset Quotes erd
26079 \end_inset
26080
26081  or 
26082 \begin_inset Quotes eld
26083 \end_inset
26084
26085
26086 \lang ngerman
26087 Kapitel
26088 \lang english
26089  1
26090 \begin_inset Quotes erd
26091 \end_inset
26092
26093 ,
26094  depending upon the language in effect at the time.
26095  
26096 \end_layout
26097
26098 \begin_layout Standard
26099 Quite generally,
26100  the output routines know what \SpecialChar LyX
26101  knows about document layout,
26102  that is,
26103  about how the document is to be rendered on screen.
26104  We use this information when we output the document as XHTML.
26105  In particular,
26106  \SpecialChar LyX
26107  
26108 \emph on
26109 automatically
26110 \emph default
26111  generates CSS style information corresponding to the layout information it uses to render the document on screen:
26112  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
26113 ,
26114  then (by default) they will be sans-serif and bold when viewed in a web browser,
26115  too.
26116  And this is true not just for pre-defined styles,
26117  like Section,
26118  but for any style,
26119  including user-defined styles.
26120  Indeed,
26121  the XHTML output routines make no distinction between user-defined paragraph and 
26122 \change_deleted 244031559 1603876931
26123 character
26124 \change_inserted 244031559 1603876940
26125 text
26126 \change_unchanged
26127  styles and \SpecialChar LyX
26128 's own pre-defined styles:
26129  in each case,
26130  everything \SpecialChar LyX
26131  knows about the styles is contained in the layout files.
26132  And much the same is true as regards pre-defined textual insets,
26133  such as footnotes,
26134  and various custom insets.
26135  
26136 \end_layout
26137
26138 \begin_layout Standard
26139 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
26140  output can be customized and extended:
26141  through layout files and modules.
26142  See chapter five of the 
26143 \emph on
26144 Customization 
26145 \emph default
26146 manual for the details.
26147 \end_layout
26148
26149 \begin_layout Standard
26150 The remainder of this chapter contains more detailed information on XHTML output,
26151  its limitations,
26152  and ways to work around those limitations.
26153 \end_layout
26154
26155 \begin_layout Section
26156 Math Output in XHTML
26157 \end_layout
26158
26159 \begin_layout Standard
26160 \SpecialChar LyX
26161  offers four choices for how math is rendered.
26162  These have various advantages and disadvantages:
26163 \end_layout
26164
26165 \begin_layout Itemize
26166 MathML
26167 \begin_inset Newline newline
26168 \end_inset
26169
26170 MathML is a dialect of XML designed specifically for mathematics on the web,
26171  and it typically renders very well in browsers that support it.
26172  The disadvantage is that not all browsers support MathML,
26173  and support is not complete even in the Gecko-based browsers,
26174  such as Firefox.
26175 \begin_inset Newline newline
26176 \end_inset
26177
26178 If \SpecialChar LyX
26179  is unable to render a formula as MathML—
26180 for example,
26181  if the formula uses the 
26182 \begin_inset Flex Code
26183 status collapsed
26184
26185 \begin_layout Plain Layout
26186 xymatrix
26187 \end_layout
26188
26189 \end_inset
26190
26191  package or ERT—
26192 then it will instead output the formula as an image.
26193  
26194 \end_layout
26195
26196 \begin_layout Itemize
26197 HTML
26198 \begin_inset Newline newline
26199 \end_inset
26200
26201 As mentioned above,
26202  
26203 \begin_inset Flex Code
26204 status collapsed
26205
26206 \begin_layout Plain Layout
26207 elyxer
26208 \end_layout
26209
26210 \end_inset
26211
26212  outputs math as HTML,
26213  styled by CSS.
26214 \begin_inset Foot
26215 status collapsed
26216
26217 \begin_layout Plain Layout
26218 \SpecialChar LyX
26219  has borrowed some of the CSS for its HTML output from 
26220 \begin_inset Flex Code
26221 status collapsed
26222
26223 \begin_layout Plain Layout
26224 elyxer
26225 \end_layout
26226
26227 \end_inset
26228
26229 .
26230 \end_layout
26231
26232 \end_inset
26233
26234  For simple formulae,
26235  this can work quite well,
26236  though with more complicated formulae it tends to break down.
26237  Still,
26238  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
26239  fairly simple math.
26240 \begin_inset Newline newline
26241 \end_inset
26242
26243 If Lyx is unable to render a formula as HTML—
26244 for example,
26245  if the formula uses the 
26246 \begin_inset Flex Code
26247 status collapsed
26248
26249 \begin_layout Plain Layout
26250 xymatrix
26251 \end_layout
26252
26253 \end_inset
26254
26255  package or ERT—
26256 then it will instead output the formula as an image.
26257  
26258 \end_layout
26259
26260 \begin_layout Itemize
26261 Images
26262 \begin_inset Newline newline
26263 \end_inset
26264
26265 Like 
26266 \begin_inset Flex Code
26267 status collapsed
26268
26269 \begin_layout Plain Layout
26270 htlatex
26271 \end_layout
26272
26273 \end_inset
26274
26275 ,
26276  \SpecialChar LyX
26277  will output formulae as images,
26278  the very same images,
26279  in fact,
26280  that are used for instant preview.
26281 \begin_inset Foot
26282 status collapsed
26283
26284 \begin_layout Plain Layout
26285 Instant preview does 
26286 \emph on
26287 not 
26288 \emph default
26289 have to be on for images to be output,
26290  however.
26291 \end_layout
26292
26293 \end_inset
26294
26295  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
26296 ,
26297  so they are very accurate.
26298  The disadvantage,
26299  as mentioned earlier,
26300  is that these are bitmapped images,
26301  so they do not scale terribly well,
26302  and one cannot copy them,
26303  etc.
26304 \begin_inset Newline newline
26305 \end_inset
26306
26307 The size of the images can be controlled by setting the 
26308 \begin_inset Quotes eld
26309 \end_inset
26310
26311 Math Images Scaling
26312 \begin_inset Quotes erd
26313 \end_inset
26314
26315  parameter under 
26316 \begin_inset Flex Noun
26317 status collapsed
26318
26319 \begin_layout Plain Layout
26320 Document\SpecialChar menuseparator
26321 Settings\SpecialChar menuseparator
26322 Formats
26323 \end_layout
26324
26325 \end_inset
26326
26327 .
26328 \begin_inset Foot
26329 status collapsed
26330
26331 \begin_layout Plain Layout
26332 For those who want to know,
26333  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
26334 \end_layout
26335
26336 \end_inset
26337
26338
26339 \begin_inset Newline newline
26340 \end_inset
26341
26342 If \SpecialChar LyX
26343  for some reason fails to create an image for a formula (e.g.,
26344  if a required \SpecialChar LaTeX
26345  package is not installed),
26346  then it will fall back to outputing the raw \SpecialChar LaTeX
26347 .
26348 \end_layout
26349
26350 \begin_layout Itemize
26351 \SpecialChar LaTeX
26352
26353 \begin_inset Newline newline
26354 \end_inset
26355
26356 Finally,
26357  \SpecialChar LyX
26358  will happily output math as \SpecialChar LaTeX
26359 .
26360  As well as being the output of last resort,
26361  this method can be used with such tools as 
26362 \begin_inset CommandInset href
26363 LatexCommand href
26364 name "jsMath"
26365 target "http://www.math.union.edu/~dpvc/jsMath/"
26366 literal "false"
26367
26368 \end_inset
26369
26370 ,
26371  which uses JavaScript to render \SpecialChar LaTeX
26372  embedded in HTML documents.
26373  \SpecialChar LyX
26374  wraps the \SpecialChar LaTeX
26375  in either a 
26376 \begin_inset Flex Code
26377 status collapsed
26378
26379 \begin_layout Plain Layout
26380 span
26381 \end_layout
26382
26383 \end_inset
26384
26385  (for inline formulas) or 
26386 \begin_inset Flex Code
26387 status collapsed
26388
26389 \begin_layout Plain Layout
26390 div
26391 \end_layout
26392
26393 \end_inset
26394
26395  (for displayed formulas) with 
26396 \begin_inset Flex Code
26397 status collapsed
26398
26399 \begin_layout Plain Layout
26400 class='math'
26401 \end_layout
26402
26403 \end_inset
26404
26405 ,
26406  as is required for jsMath.
26407 \end_layout
26408
26409 \begin_layout Standard
26410 One of these output methods must be selected under 
26411 \begin_inset Flex Noun
26412 status collapsed
26413
26414 \begin_layout Plain Layout
26415 Document\SpecialChar menuseparator
26416 Settings\SpecialChar menuseparator
26417 Formats
26418 \end_layout
26419
26420 \end_inset
26421
26422 .
26423  By default,
26424  \SpecialChar LyX
26425  outputs MathML.
26426  This is a document-wide setting,
26427  therefore.
26428 \end_layout
26429
26430 \begin_layout Standard
26431 Eventually,
26432  \SpecialChar LyX
26433  will offer the user the option to select an alternate output method for a particular inset,
26434  say,
26435  one that isn't being rendered very well by MathML.
26436 \begin_inset Foot
26437 status collapsed
26438
26439 \begin_layout Plain Layout
26440 That said,
26441  since \SpecialChar LyX
26442  falls back to images if the inset contains ERT,
26443  then one can force output as an image by putting some harmless ERT into the math,
26444  for example:
26445  
26446 \begin_inset Formula $a=b\relax$
26447 \end_inset
26448
26449 .
26450 \end_layout
26451
26452 \end_inset
26453
26454
26455 \end_layout
26456
26457 \begin_layout Section
26458 Bibliography and Citations
26459 \end_layout
26460
26461 \begin_layout Standard
26462 XHTML output fully supports bibliographies and citations.
26463  
26464 \end_layout
26465
26466 \begin_layout Standard
26467 Citation labels are generated by the same machinery that generates \SpecialChar LyX
26468 's on-screen labels,
26469  so the labels will look in the output much as they do in \SpecialChar LyX
26470 ,
26471  though better.
26472  If you are using numerical citations,
26473  then \SpecialChar LyX
26474  will output numerical labels,
26475  such as [1] or [17],
26476  rather than simply showing the citation key in square brackets,
26477  as it does on-screen.
26478  If you are using author-year citations,
26479  then \SpecialChar LyX
26480  will add lowercase letters to the years,
26481  just as Bib\SpecialChar TeX
26482  does,
26483  if it finds more than one citation for a given author-year combination.
26484  The labels will be printed with the bibliography entries.
26485  Note that there is,
26486  at present,
26487  no way to customize the appearance of the labels,
26488  for example,
26489  to choose between square brackets and parentheses.
26490 \end_layout
26491
26492 \begin_layout Standard
26493 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
26494  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.
26495  The formatting can be customized in your layout file or,
26496  preferably,
26497  in a module.
26498  See the 
26499 \emph on
26500 Customization
26501 \emph default
26502  manual for the details.
26503 \end_layout
26504
26505 \begin_layout Standard
26506 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
26507  So you can see things like this:
26508 \end_layout
26509
26510 \begin_layout Quote
26511 Jason Stanley,
26512  
26513 \begin_inset Quotes eld
26514 \end_inset
26515
26516 Context and Logical Form
26517 \begin_inset Quotes erd
26518 \end_inset
26519
26520 ,
26521  in 
26522 \emph on
26523 Language in Context:
26524  Selected Essays
26525 \emph default
26526  (Oxford:
26527  Oxford University Press,
26528  2007),
26529  pp.
26530  30–68.
26531 \end_layout
26532
26533 \begin_layout Quote
26534 Jason Stanley,
26535  
26536 \begin_inset Quotes eld
26537 \end_inset
26538
26539 Semantics in Context
26540 \begin_inset Quotes erd
26541 \end_inset
26542
26543 ,
26544  in 
26545 \emph on
26546 Language in Context:
26547  Selected Essays
26548 \emph default
26549  (Oxford:
26550  Oxford University Press,
26551  2007),
26552  pp.
26553  201–30.
26554 \end_layout
26555
26556 \begin_layout Standard
26557 This should be fixed before long.
26558 \end_layout
26559
26560 \begin_layout Standard
26561 There is no support at present for sectioned bibliographies.
26562  If you have multiple bibliographies,
26563  then \SpecialChar LyX
26564  will print the same bibliography over and over.
26565 \end_layout
26566
26567 \begin_layout Section
26568 Indexes
26569 \end_layout
26570
26571 \begin_layout Standard
26572 \SpecialChar LyX
26573  will happily export indexes as XHTML,
26574  but with certain limitations at the moment.
26575 \end_layout
26576
26577 \begin_layout Standard
26578 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 
26579 \emph on
26580 User's Guide
26581 \emph default
26582 .
26583 \begin_inset Foot
26584 status collapsed
26585
26586 \begin_layout Plain Layout
26587 The main issue here is that \SpecialChar LyX
26588  itself does not really handle these.
26589  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
26590 .
26591 \end_layout
26592
26593 \end_inset
26594
26595  We'll describe how they are handled using the subsection headings from that section.
26596 \end_layout
26597
26598 \begin_layout Itemize
26599 Grouping Index Entries (aka,
26600  sub-entries):
26601  \SpecialChar LyX
26602  makes an effort to support these,
26603  but the entries must be separated by 
26604 \begin_inset Quotes eld
26605 \end_inset
26606
26607  !
26608  
26609 \begin_inset Quotes erd
26610 \end_inset
26611
26612 ,
26613  that is,
26614  there must be spaces around the exclamation point.
26615  This is because it is otherwise too difficult to check for escaped exclamation points,
26616  ones in math,
26617  and so forth.
26618 \end_layout
26619
26620 \begin_layout Itemize
26621 Page Ranges:
26622  There is no support at all for page ranges,
26623  since these make no sense with XHMTL.
26624  Instead,
26625  you will just get two index entries,
26626  one at either end.
26627 \end_layout
26628
26629 \begin_layout Itemize
26630 Cross-referencing:
26631  There is no support for cross-referencing.
26632  If \SpecialChar LyX
26633  finds an entry containing the 
26634 \begin_inset Quotes eld
26635 \end_inset
26636
26637 |see\SpecialChar ldots
26638
26639 \begin_inset Quotes erd
26640 \end_inset
26641
26642  construct,
26643  it is just dropped,
26644  and the rest is treated as an ordinary index entry.
26645 \end_layout
26646
26647 \begin_layout Itemize
26648 Index Entry Order:
26649  \SpecialChar LyX
26650  does support attempts to fix the sorting order.
26651  It will take what is before the first `@' it finds and use that for sorting,
26652  taking what follows the first `@' to be the actual entry.
26653  At present,
26654  \SpecialChar LyX
26655  does not check for escaped `@',
26656  so do not try to index email addresses.
26657 \end_layout
26658
26659 \begin_layout Itemize
26660 Index Entry Layout:
26661  You can format entries by using the text style dialog,
26662  or by using any other method available within \SpecialChar LyX
26663  itself.
26664  There is no support for constructs like:
26665  
26666 \begin_inset Quotes eld
26667 \end_inset
26668
26669 entry|textbf
26670 \begin_inset Quotes erd
26671 \end_inset
26672
26673 .
26674  Indeed,
26675  if \SpecialChar LyX
26676  finds a pipe symbol,
26677  `|',
26678  in an entry,
26679  it will delete it and everything that follows it.
26680 \end_layout
26681
26682 \begin_layout Itemize
26683 Multiple Indexes:
26684  There is no support for multiple indexes.
26685  Rather,
26686  all index entries will be printed as one large index.
26687  To avoid our printing several versions of the index,
26688  we print only the main index,
26689  so make sure you have one.
26690 \end_layout
26691
26692 \begin_layout Section
26693 Nomenclature and Glossary
26694 \end_layout
26695
26696 \begin_layout Standard
26697 There is at present no support for glossaries.
26698  Adding it would be fairly trivial,
26699  and welcome.
26700 \end_layout
26701
26702 \begin_layout Chapter
26703
26704 \change_inserted 1075283030 1616534180
26705 DocBook Output
26706 \end_layout
26707
26708 \begin_layout Standard
26709
26710 \change_inserted 1075283030 1616534386
26711 Apart from HTML,
26712  \SpecialChar LyX
26713  can generate documents in the DocBook XML vocabulary.
26714  With versions 2.3 and before,
26715  only select templates could be used to generate DocBook documents (only version 4).
26716  Starting with \SpecialChar LyX
26717  2.4,
26718  most \SpecialChar LyX
26719  layouts can generate valid DocBook documents (only version 5).
26720  This feature is built into \SpecialChar LyX
26721  and does not require the use of external tools.
26722 \end_layout
26723
26724 \begin_layout Standard
26725
26726 \change_inserted 1075283030 1616534437
26727 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
26728  output can be customized and extended:
26729  through layout files and modules.
26730  See chapter five of the 
26731 \emph on
26732 Customization 
26733 \emph default
26734 manual for the details.
26735 \end_layout
26736
26737 \begin_layout Standard
26738
26739 \change_inserted 1075283030 1616534475
26740 Most \SpecialChar LyX
26741  features are supported with DocBook,
26742  like math output.
26743 \end_layout
26744
26745 \begin_layout Itemize
26746
26747 \change_inserted 1075283030 1616534741
26748 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
26749 ,
26750  i.e.
26751  ERTs).
26752  All formulae are also available in raw \SpecialChar TeX
26753  in the DocBook output for further processing.
26754 \end_layout
26755
26756 \begin_layout Itemize
26757
26758 \change_inserted 1075283030 1616534852
26759 Bibliographies and citations are implemented,
26760  including with an external BibTeX file.
26761  Bibliography entries are not prerendered when the detailed information are available,
26762  but rather output with the standard DocBook constructs.
26763  The external DocBook processor is expected to handle the rendering of entries.
26764 \end_layout
26765
26766 \begin_layout Itemize
26767
26768 \change_inserted 1075283030 1616534863
26769 Indexes are supported,
26770  including multiple indices.
26771  Grouping (with 
26772 \family typewriter
26773 !
26774 \family default
26775 ),
26776  page ranges,
26777  and cross-references (
26778 \family typewriter
26779 |see
26780 \family default
26781 ) are supported,
26782  with the exception of the same symbols escaped.
26783  Entry order (
26784 \family typewriter
26785 @
26786 \family default
26787 ) and layout (
26788 \family typewriter
26789 |mathbf
26790 \family default
26791 ) are not supported.
26792  There is no support for escaping of index entries.
26793 \end_layout
26794
26795 \begin_layout Itemize
26796
26797 \change_inserted 1075283030 1616534884
26798 Glossaries are implemented.
26799 \end_layout
26800
26801 \begin_layout Standard
26802
26803 \change_inserted 1075283030 1616534894
26804 Two major parameters can be set at the document level.
26805 \end_layout
26806
26807 \begin_layout Itemize
26808
26809 \change_inserted 1075283030 1616534948
26810 Format for tables:
26811  \SpecialChar LyX
26812  can generate tables either as HTML (default value) or CALS,
26813  depending on the user's requirements.
26814  Most DocBook processors accept both formats.
26815 \end_layout
26816
26817 \begin_layout Itemize
26818
26819 \change_inserted 1075283030 1616535006
26820 MathML prefix:
26821  in DocBook,
26822  MathML is included within its own name space,
26823  unlike HTML.
26824  The implication is that there must be an indication of the tags belonging to the MathML standard.
26825  Three choices are offered:
26826  
26827 \end_layout
26828
26829 \begin_deeper
26830 \begin_layout Itemize
26831
26832 \change_inserted 1075283030 1616535044
26833 Inline:
26834  the MathML name space is defined for each formula (using the 
26835 \family typewriter
26836 xmlns
26837 \family default
26838  attribute on each formula)
26839 \end_layout
26840
26841 \begin_layout Itemize
26842
26843 \change_inserted 1075283030 1616535090
26844 With the 
26845 \family typewriter
26846 m
26847 \family default
26848  prefix (default):
26849  the MathML name space is defined at the document level (using the 
26850 \family typewriter
26851 xmlns:m
26852 \family default
26853  attribute on the root element).
26854  Each MathML is prefixed with 
26855 \family typewriter
26856 m
26857 \family default
26858 :
26859  for instance,
26860  
26861 \family typewriter
26862 m:math
26863 \end_layout
26864
26865 \begin_layout Itemize
26866
26867 \change_inserted 1075283030 1616620405
26868 With the 
26869 \family typewriter
26870 mml
26871 \family default
26872  prefix:
26873  similar to the 
26874 \family typewriter
26875 m
26876 \family default
26877  option,
26878  but with 
26879 \family typewriter
26880 mml
26881 \end_layout
26882
26883 \begin_layout Standard
26884
26885 \change_inserted 1075283030 1616620470
26886 This option is especially useful if you want \SpecialChar LyX
26887  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
26888 \change_unchanged
26889
26890 \end_layout
26891
26892 \end_deeper
26893 \begin_layout Chapter
26894 The \SpecialChar LyX
26895  Server
26896 \end_layout
26897
26898 \begin_layout Section
26899 Introduction
26900 \end_layout
26901
26902 \begin_layout Standard
26903 The `\SpecialChar LyX
26904  server' allows other programs to talk to \SpecialChar LyX
26905 ,
26906  invoke \SpecialChar LyX
26907  commands,
26908  and retrieve information about the \SpecialChar LyX
26909  internal state.
26910  This is only intended for advanced users,
26911  but they should find it useful.
26912  It is by writing to the \SpecialChar LyX
26913  server,
26914  for example,
26915  that bibliography managers,
26916  such as JabRef,
26917  are able to 
26918 \begin_inset Quotes eld
26919 \end_inset
26920
26921 push
26922 \begin_inset Quotes erd
26923 \end_inset
26924
26925  citations to \SpecialChar LyX
26926 .
26927 \end_layout
26928
26929 \begin_layout Section
26930 Starting the \SpecialChar LyX
26931  Server
26932 \begin_inset CommandInset label
26933 LatexCommand label
26934 name "sec:Starting-the-Server"
26935
26936 \end_inset
26937
26938
26939 \end_layout
26940
26941 \begin_layout Standard
26942 The \SpecialChar LyX
26943  server works through the use of a pair of named pipes.
26944  These are usually located in 
26945 \begin_inset Flex Code
26946 status collapsed
26947
26948 \begin_layout Plain Layout
26949 UserDir
26950 \end_layout
26951
26952 \end_inset
26953
26954 ,
26955  (except on Windows,
26956  where 
26957 \emph on
26958 local
26959 \emph default
26960  named pipes are special objects located in 
26961 \begin_inset Flex Code
26962 status collapsed
26963
26964 \begin_layout Plain Layout
26965
26966 \backslash
26967
26968 \backslash
26969 .
26970 \backslash
26971 pipe
26972 \end_layout
26973
26974 \end_inset
26975
26976 ) and have the names 
26977 \begin_inset Quotes eld
26978 \end_inset
26979
26980
26981 \begin_inset Flex Code
26982 status collapsed
26983
26984 \begin_layout Plain Layout
26985 lyxpipe.in
26986 \end_layout
26987
26988 \end_inset
26989
26990
26991 \begin_inset Quotes erd
26992 \end_inset
26993
26994  and 
26995 \begin_inset Quotes eld
26996 \end_inset
26997
26998
26999 \begin_inset Flex Code
27000 status collapsed
27001
27002 \begin_layout Plain Layout
27003 lyxpipe.out
27004 \end_layout
27005
27006 \end_inset
27007
27008
27009 \begin_inset Quotes erd
27010 \end_inset
27011
27012 .
27013  External programs write into 
27014 \begin_inset Flex Code
27015 status collapsed
27016
27017 \begin_layout Plain Layout
27018 lyxpipe.in
27019 \end_layout
27020
27021 \end_inset
27022
27023  and read back data from 
27024 \begin_inset Flex Code
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 lyxpipe.out
27029 \end_layout
27030
27031 \end_inset
27032
27033 .
27034  The stem of the pipe names can be defined in the 
27035 \begin_inset Flex Noun
27036 status collapsed
27037
27038 \begin_layout Plain Layout
27039 Tools\SpecialChar menuseparator
27040 Preferences
27041 \end_layout
27042
27043 \end_inset
27044
27045  dialog,
27046  for example 
27047 \begin_inset Flex Code
27048 status collapsed
27049
27050 \begin_layout Plain Layout
27051 "/home/myhome/lyxpipe"
27052 \end_layout
27053
27054 \end_inset
27055
27056 ,
27057  or 
27058 \begin_inset Flex Code
27059 status collapsed
27060
27061 \begin_layout Plain Layout
27062 "
27063 \backslash
27064
27065 \backslash
27066 .
27067 \backslash
27068 pipe
27069 \backslash
27070 lyxpipe"
27071 \end_layout
27072
27073 \end_inset
27074
27075  on Windows (where any working path instead of lyxpipe can be used,
27076  for example 
27077 \begin_inset Flex Code
27078 status collapsed
27079
27080 \begin_layout Plain Layout
27081 "
27082 \backslash
27083
27084 \backslash
27085 .
27086 \backslash
27087 pipe
27088 \backslash
27089 my
27090 \backslash
27091 lyx
27092 \backslash
27093 pipe"
27094 \end_layout
27095
27096 \end_inset
27097
27098  would also work).
27099  You 
27100 \emph on
27101 must
27102 \emph default
27103  configure this manually in order for the server to start.
27104 \end_layout
27105
27106 \begin_layout Standard
27107 \SpecialChar LyX
27108  will add the '
27109 \begin_inset Flex Code
27110 status collapsed
27111
27112 \begin_layout Plain Layout
27113 .in
27114 \end_layout
27115
27116 \end_inset
27117
27118 ' and '
27119 \begin_inset Flex Code
27120 status collapsed
27121
27122 \begin_layout Plain Layout
27123 .out
27124 \end_layout
27125
27126 \end_inset
27127
27128 ' to create the pipes.
27129  If one of the pipes already exists,
27130  \SpecialChar LyX
27131  will assume that another \SpecialChar LyX
27132  process is already running and will not start the server.
27133  On POSIX (Unix like) systems,
27134  if for some other reason,
27135  an unused 
27136 \begin_inset Quotes eld
27137 \end_inset
27138
27139 stale
27140 \begin_inset Quotes erd
27141 \end_inset
27142
27143  pipe is left in existence when \SpecialChar LyX
27144  closes,
27145  then \SpecialChar LyX
27146  will try to delete it.
27147  If this fails for some reason,
27148  you will need to delete the pipes manually and then restart \SpecialChar LyX
27149 .
27150  On Windows,
27151  pipes are deleted by the OS on program termination or crash,
27152  so 
27153 \begin_inset Quotes eld
27154 \end_inset
27155
27156 stale
27157 \begin_inset Quotes erd
27158 \end_inset
27159
27160  pipes should not be possible.
27161 \end_layout
27162
27163 \begin_layout Standard
27164 To have several \SpecialChar LyX
27165  processes with servers at the same time,
27166  you have to use different configurations,
27167  perhaps by using separate user directories,
27168  each with its own 
27169 \begin_inset Flex Code
27170 status collapsed
27171
27172 \begin_layout Plain Layout
27173 preferences
27174 \end_layout
27175
27176 \end_inset
27177
27178  file,
27179  for each process.
27180 \end_layout
27181
27182 \begin_layout Standard
27183 If you are developing a client program,
27184  you might find it useful to enable debugging information from the \SpecialChar LyX
27185  server.
27186  Do this by starting \SpecialChar LyX
27187  as 
27188 \begin_inset Flex Code
27189 status collapsed
27190
27191 \begin_layout Plain Layout
27192 lyx -dbg lyxserver
27193 \end_layout
27194
27195 \end_inset
27196
27197 .
27198 \end_layout
27199
27200 \begin_layout Standard
27201 You can find a complete example client written in C++ in the source distribution as 
27202 \begin_inset Flex Code
27203 status collapsed
27204
27205 \begin_layout Plain Layout
27206 development/lyxserver/server_monitor.cpp
27207 \end_layout
27208
27209 \end_inset
27210
27211 .
27212 \end_layout
27213
27214 \begin_layout Standard
27215 Another useful tool is the command-line based client found in 
27216 \begin_inset Flex Code
27217 status collapsed
27218
27219 \begin_layout Plain Layout
27220 src/client/lyxclient
27221 \end_layout
27222
27223 \end_inset
27224
27225 .
27226 \end_layout
27227
27228 \begin_layout Section
27229 Normal communication
27230 \end_layout
27231
27232 \begin_layout Standard
27233 To issue a \SpecialChar LyX
27234  call,
27235  the client writes a line of ASCII text into the input pipe.
27236  This line has the following format:
27237 \end_layout
27238
27239 \begin_layout Quote
27240 LYXCMD:
27241 \emph on
27242 clientname
27243 \emph default
27244 :
27245 \emph on
27246 function
27247 \emph default
27248 :
27249 \emph on
27250 argument
27251 \end_layout
27252
27253 \begin_layout Description
27254 clientname is a name that the client can choose arbitrarily.
27255  Its only use is that \SpecialChar LyX
27256  will echo it if it sends an answer—
27257 so a client can dispatch results from different requesters.
27258 \end_layout
27259
27260 \begin_layout Description
27261 function is the function you want \SpecialChar LyX
27262  to perform.
27263  It is the same as the commands you'd use in the minibuffer.
27264 \end_layout
27265
27266 \begin_layout Description
27267 argument is an optional argument which is meaningful only to some functions (for instance,
27268  the 
27269 \begin_inset Quotes eld
27270 \end_inset
27271
27272 self-insert
27273 \begin_inset Quotes erd
27274 \end_inset
27275
27276  LFUN will insert the argument as text at the cursor position).
27277 \end_layout
27278
27279 \begin_layout Standard
27280 The answer from \SpecialChar LyX
27281  will arrive in the output pipe and be of the form
27282 \end_layout
27283
27284 \begin_layout Quote
27285 INFO:
27286 \emph on
27287 clientname
27288 \emph default
27289 :
27290 \emph on
27291 function
27292 \emph default
27293 :
27294 \emph on
27295 data
27296 \end_layout
27297
27298 \begin_layout Standard
27299 where 
27300 \emph on
27301 clientname
27302 \emph default
27303  and 
27304 \emph on
27305 function
27306 \emph default
27307  are just echoed from the command request,
27308  while 
27309 \emph on
27310 data
27311 \emph default
27312  is more or less useful information filled according to how the command execution worked out.
27313  Some commands,
27314  such as 
27315 \begin_inset Quotes eld
27316 \end_inset
27317
27318 font-state
27319 \begin_inset Quotes erd
27320 \end_inset
27321
27322 ,
27323  will return information about the internal state of \SpecialChar LyX
27324 ,
27325  while other will return an empty data-response.
27326  This means that the command execution went fine.
27327 \end_layout
27328
27329 \begin_layout Standard
27330 In case of errors,
27331  the response from \SpecialChar LyX
27332  will have this form
27333 \end_layout
27334
27335 \begin_layout Quote
27336 ERROR:
27337 \emph on
27338 clientname
27339 \emph default
27340 :
27341 \emph on
27342 function
27343 \emph default
27344 :
27345 \emph on
27346 error message
27347 \end_layout
27348
27349 \begin_layout Standard
27350 where the 
27351 \emph on
27352 error message
27353 \emph default
27354  should contain an explanation of why the command failed.
27355 \end_layout
27356
27357 \begin_layout Standard
27358 Examples:
27359 \end_layout
27360
27361 \begin_layout LyX-Code
27362 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
27363 \begin_inset Newline newline
27364 \end_inset
27365
27366 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
27367 \begin_inset Newline newline
27368 \end_inset
27369
27370 read a <~/.lyxpipe.out
27371 \begin_inset Newline newline
27372 \end_inset
27373
27374 echo $a
27375 \end_layout
27376
27377 \begin_layout Subsection
27378 AppleScript (Mac OS X)
27379 \end_layout
27380
27381 \begin_layout Standard
27382 Since \SpecialChar LyX
27383  2.1,
27384  \SpecialChar LyX
27385  supports basic interactions with AppleScript for normal communication through the command run.
27386  This command takes a direct argument (the 
27387 \series bold
27388 function
27389 \series default
27390  to perform) and an optional argument.
27391  It either returns the output of the function or triggers an error with the error message and code.
27392 \end_layout
27393
27394 \begin_layout Standard
27395 Example:
27396 \end_layout
27397
27398 \begin_layout LyX-Code
27399 tell application "\SpecialChar LyX
27400 "
27401 \end_layout
27402
27403 \begin_layout LyX-Code
27404   try
27405 \end_layout
27406
27407 \begin_layout LyX-Code
27408     -- Stores the current file name into f
27409 \end_layout
27410
27411 \begin_layout LyX-Code
27412     set f to (run "server-get-filename" with argument "")
27413 \end_layout
27414
27415 \begin_layout LyX-Code
27416     on error the error_message number the error_number
27417 \end_layout
27418
27419 \begin_layout LyX-Code
27420       display dialog "Error:
27421  " & the error_number & ".
27422  " ¬
27423 \end_layout
27424
27425 \begin_layout LyX-Code
27426               & the error_message buttons {"OK"} default button 1
27427 \end_layout
27428
27429 \begin_layout LyX-Code
27430   end try
27431 \end_layout
27432
27433 \begin_layout LyX-Code
27434 end tell
27435 \end_layout
27436
27437 \begin_layout Section
27438 Notification
27439 \end_layout
27440
27441 \begin_layout Standard
27442 \SpecialChar LyX
27443  can notify clients of events going on asynchronously.
27444  Currently it will only do this if the user binds a key sequence with the function 
27445 \begin_inset Quotes eld
27446 \end_inset
27447
27448 notify
27449 \begin_inset Quotes erd
27450 \end_inset
27451
27452 .
27453  The format of the string \SpecialChar LyX
27454  sends is as follows:
27455 \end_layout
27456
27457 \begin_layout Quote
27458 \begin_inset Flex Code
27459 status collapsed
27460
27461 \begin_layout Plain Layout
27462 NOTIFY:
27463 \end_layout
27464
27465 \end_inset
27466
27467
27468 \emph on
27469 key-sequence
27470 \end_layout
27471
27472 \begin_layout Standard
27473 where 
27474 \emph on
27475 key-sequence
27476 \emph default
27477  is the printed representation of the key sequence that was actually typed by the user.
27478 \end_layout
27479
27480 \begin_layout Standard
27481 This mechanism can be used to extend \SpecialChar LyX
27482 's command set and implement macros.
27483  Bind some key sequence to 
27484 \begin_inset Quotes eld
27485 \end_inset
27486
27487 notify
27488 \begin_inset Quotes erd
27489 \end_inset
27490
27491 .
27492  Then start a client that listens on the output pipe,
27493  dispatches the command according to the sequence,
27494  and starts a function that may use \SpecialChar LyX
27495  calls and \SpecialChar LyX
27496  requests to issue a command or a series of commands to \SpecialChar LyX
27497 .
27498 \end_layout
27499
27500 \begin_layout Section
27501 The simple \SpecialChar LyX
27502  Server Protocol
27503 \end_layout
27504
27505 \begin_layout Standard
27506 \SpecialChar LyX
27507  implements a simple protocol that can be used for session management.
27508  All messages are of the form
27509 \end_layout
27510
27511 \begin_layout Quote
27512 LYXSRV:
27513 \emph on
27514 clientname
27515 \emph default
27516 :
27517 \emph on
27518 protocol message
27519 \end_layout
27520
27521 \begin_layout Standard
27522 where 
27523 \emph on
27524 protocol message
27525 \emph default
27526  can be 
27527 \begin_inset Quotes eld
27528 \end_inset
27529
27530 hello
27531 \begin_inset Quotes erd
27532 \end_inset
27533
27534  or 
27535 \begin_inset Quotes eld
27536 \end_inset
27537
27538 bye
27539 \begin_inset Quotes erd
27540 \end_inset
27541
27542 .
27543  If 
27544 \begin_inset Quotes eld
27545 \end_inset
27546
27547 hello
27548 \begin_inset Quotes erd
27549 \end_inset
27550
27551  is received from a client,
27552  \SpecialChar LyX
27553  will report back to inform the client that it's listening to it's messages,
27554  while 
27555 \begin_inset Quotes eld
27556 \end_inset
27557
27558 bye
27559 \begin_inset Quotes erd
27560 \end_inset
27561
27562  sent from \SpecialChar LyX
27563  will inform clients that \SpecialChar LyX
27564  is closing.
27565 \end_layout
27566
27567 \begin_layout Section
27568 Reverse DVI/PDF search
27569 \end_layout
27570
27571 \begin_layout Standard
27572 Some DVI/PDF viewers
27573 \begin_inset Foot
27574 status collapsed
27575
27576 \begin_layout Plain Layout
27577 The following viewers offer the reverse PDF search feature:
27578  Okular on KDE/Linux,
27579  Qpdfview on Unix,
27580  Skim on Mac OSX and SumatraPDF on Windows.
27581 \end_layout
27582
27583 \end_inset
27584
27585  provide 
27586 \emph on
27587 reverse search
27588 \emph default
27589  facility (also called 
27590 \emph on
27591 inverse search
27592 \emph default
27593 ).
27594  This means that you can tell \SpecialChar LyX
27595  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
27596  To achieve this,
27597  the viewer must be able to communicate with \SpecialChar LyX
27598 .
27599  This is done via the \SpecialChar LyX
27600  server either by using the named pipe (
27601 \emph on
27602 lyxpipe
27603 \emph default
27604 ),
27605  or the UNIX domain socket (
27606 \emph on
27607 lyxsocket
27608 \emph default
27609 ) that \SpecialChar LyX
27610  creates in its temporary directory (this is the way the 
27611 \begin_inset Flex Code
27612 status collapsed
27613
27614 \begin_layout Plain Layout
27615 lyxclient
27616 \end_layout
27617
27618 \end_inset
27619
27620  program communicates with \SpecialChar LyX
27621 ).
27622  In some cases,
27623  you need a helper script that mediates between the viewer and \SpecialChar LyX
27624 ,
27625  in others,
27626  the viewer can communicate with \SpecialChar LyX
27627  directly.
27628  This depends on the selected viewer and on your operating system.
27629  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
27630  In what follows,
27631  we will thus describe how to setup reverse search for specific viewers.
27632  Before we turn to this,
27633  though,
27634  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
27635 \end_layout
27636
27637 \begin_layout Subsection
27638 Automatic setup
27639 \begin_inset CommandInset label
27640 LatexCommand label
27641 name "subsec:rev-search"
27642
27643 \end_inset
27644
27645
27646 \end_layout
27647
27648 \begin_layout Standard
27649 In most cases \SpecialChar LyX
27650  will do the work for you by pressing the following button in the toolbar:
27651  
27652 \begin_inset Info
27653 type  "icon"
27654 arg   "buffer-toggle-output-sync"
27655 \end_inset
27656
27657 .
27658  Alternatively,
27659  you can also enable the feature by checking 
27660 \family sans
27661 Synchronize with Output
27662 \family default
27663  in 
27664 \begin_inset Flex Noun
27665 status collapsed
27666
27667 \begin_layout Plain Layout
27668 Document\SpecialChar menuseparator
27669 Settings\SpecialChar menuseparator
27670 Formats
27671 \end_layout
27672
27673 \end_inset
27674
27675 .
27676  In such a case \SpecialChar LyX
27677  will automatically insert the necessary Sync\SpecialChar TeX
27678  macro (for PDF) or load the srcltx package (for DVI) respectively.
27679  This option can be easily reached also on 
27680 \begin_inset Flex Code
27681 status collapsed
27682
27683 \begin_layout Plain Layout
27684 View/Update
27685 \end_layout
27686
27687 \end_inset
27688
27689  Toolbar.
27690 \end_layout
27691
27692 \begin_layout Standard
27693 If you need a different setting,
27694  you can select or input a custom macro from the drop down box just below 
27695 \begin_inset Flex Noun
27696 status collapsed
27697
27698 \begin_layout Plain Layout
27699 Document\SpecialChar menuseparator
27700 Settings\SpecialChar menuseparator
27701 Output\SpecialChar menuseparator
27702 Synchronize with Output
27703 \end_layout
27704
27705 \end_inset
27706
27707 .
27708 \end_layout
27709
27710 \begin_layout Standard
27711 Note that the method 
27712 \begin_inset Flex Code
27713 status collapsed
27714
27715 \begin_layout Plain Layout
27716
27717 \backslash
27718 synctex=1
27719 \end_layout
27720
27721 \end_inset
27722
27723  enables gzip compression.
27724  If your viewer does not support it,
27725  you should instead use 
27726 \begin_inset Flex Code
27727 status collapsed
27728
27729 \begin_layout Plain Layout
27730
27731 \backslash
27732 synctex=-1
27733 \end_layout
27734
27735 \end_inset
27736
27737 .
27738 \end_layout
27739
27740 \begin_layout Standard
27741 Please also note that including the 
27742 \begin_inset Flex Code
27743 status collapsed
27744
27745 \begin_layout Plain Layout
27746 srcltx
27747 \end_layout
27748
27749 \end_inset
27750
27751  package or 
27752 \begin_inset Flex Code
27753 status collapsed
27754
27755 \begin_layout Plain Layout
27756 src-specials
27757 \end_layout
27758
27759 \end_inset
27760
27761  sometimes has an undesired impact on the typesetting.
27762  Thus,
27763  you should switch output synchronization off for the final typesetting if you use the 
27764 \begin_inset Flex Code
27765 status collapsed
27766
27767 \begin_layout Plain Layout
27768 srcltx
27769 \end_layout
27770
27771 \end_inset
27772
27773  package or 
27774 \begin_inset Flex Code
27775 status collapsed
27776
27777 \begin_layout Plain Layout
27778 src-specials
27779 \end_layout
27780
27781 \end_inset
27782
27783 .
27784  
27785 \end_layout
27786
27787 \begin_layout Standard
27788 In case you need some more special settings that are not covered by the automatic settings,
27789  read the next section about how to set up output synchronization manually.
27790  If the automatic setup suits your needs,
27791  you can readily jump to section
27792 \begin_inset space ~
27793 \end_inset
27794
27795
27796 \begin_inset CommandInset ref
27797 LatexCommand ref
27798 reference "subsec:configuring-viewers"
27799 nolink "false"
27800
27801 \end_inset
27802
27803 ,
27804  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
27805 \end_layout
27806
27807 \begin_layout Subsection
27808 Manual setup
27809 \end_layout
27810
27811 \begin_layout Standard
27812 \SpecialChar LaTeX
27813  provides several different methods for reverse search.
27814  Some are built-in in the 
27815 \begin_inset Flex Code
27816 status collapsed
27817
27818 \begin_layout Plain Layout
27819 latex/pdflatex
27820 \end_layout
27821
27822 \end_inset
27823
27824  program,
27825  some are provided by external packages.
27826  Your choice depends on whether your \SpecialChar LaTeX
27827  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
27828  The available methods are described in the following.
27829 \end_layout
27830
27831 \begin_layout Subsubsection*
27832 Built-in DVI-search via src-specials (DVI only) 
27833 \end_layout
27834
27835 \begin_layout Standard
27836 This method provides the DVI file with the necessary information for reverse search.
27837  It is available in \SpecialChar LaTeX
27838  since quite some time (any somewhat recent \SpecialChar LaTeX
27839  distribution should include it),
27840  and it works reliably.
27841  To enable it,
27842  change the 
27843 \begin_inset Flex Noun
27844 status collapsed
27845
27846 \begin_layout Plain Layout
27847 La
27848 \family sans
27849 TeX
27850 \family default
27851  (plain)->DVI
27852 \end_layout
27853
27854 \end_inset
27855
27856  or 
27857 \begin_inset Flex Noun
27858 status collapsed
27859
27860 \begin_layout Plain Layout
27861 La
27862 \family sans
27863 TeX
27864 \family default
27865  (plain)->DraftDVI
27866 \end_layout
27867
27868 \end_inset
27869
27870  converter in 
27871 \begin_inset Flex Noun
27872 status collapsed
27873
27874 \begin_layout Plain Layout
27875 Preferences\SpecialChar menuseparator
27876 File Handling\SpecialChar menuseparator
27877 Converters
27878 \end_layout
27879
27880 \end_inset
27881
27882  to 
27883 \begin_inset Flex Code
27884 status collapsed
27885
27886 \begin_layout Plain Layout
27887 latex -src-specials $$i
27888 \end_layout
27889
27890 \end_inset
27891
27892 .
27893  If this doesn't work,
27894  check if your \SpecialChar TeX
27895  engine needs different options (the syntax might differ in some distributions).
27896 \end_layout
27897
27898 \begin_layout Subsubsection*
27899 External Packages (PDFSync and scrltx) 
27900 \end_layout
27901
27902 \begin_layout Standard
27903 The packages 
27904 \emph on
27905 pdfsync
27906 \emph default
27907  and 
27908 \emph on
27909 scrltx
27910 \emph default
27911  provide reverse search facility for PDF output (via pdflatex) and DVI output,
27912  respectively.
27913  In order to enable it,
27914  load the packages in the \SpecialChar LyX
27915  preamble:
27916  
27917 \end_layout
27918
27919 \begin_layout Itemize
27920 \begin_inset Flex Code
27921 status collapsed
27922
27923 \begin_layout Plain Layout
27924
27925 \backslash
27926 usepackage{pdfsync}
27927 \end_layout
27928
27929 \end_inset
27930
27931  for reverse PDF search,
27932 \end_layout
27933
27934 \begin_layout Itemize
27935 \begin_inset Flex Code
27936 status collapsed
27937
27938 \begin_layout Plain Layout
27939
27940 \backslash
27941 usepackage[active]{srcltx}
27942 \end_layout
27943
27944 \end_inset
27945
27946  for reverse DVI search.
27947 \end_layout
27948
27949 \begin_layout Standard
27950 If you want to be able to perform both DVI and PDF reverse searches,
27951  you can also insert in the preamble the following lines
27952 \end_layout
27953
27954 \begin_layout LyX-Code
27955
27956 \backslash
27957 usepackage{ifpdf}
27958 \begin_inset Newline newline
27959 \end_inset
27960
27961
27962 \backslash
27963 ifpdf
27964 \begin_inset Newline newline
27965 \end_inset
27966
27967   
27968 \backslash
27969 usepackage{pdfsync}
27970 \begin_inset Newline newline
27971 \end_inset
27972
27973
27974 \backslash
27975 else
27976 \begin_inset Newline newline
27977 \end_inset
27978
27979   
27980 \backslash
27981 usepackage[active]{srcltx}
27982 \begin_inset Newline newline
27983 \end_inset
27984
27985
27986 \backslash
27987 fi
27988 \end_layout
27989
27990 \begin_layout Standard
27991 This way,
27992  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
27993 \end_layout
27994
27995 \begin_layout Standard
27996 Note that PDFSync might affect the output layout of your document.
27997  It is therefore advised to disable PDFsync for final documents.
27998 \end_layout
27999
28000 \begin_layout Subsubsection*
28001 Built-in reverse search via Sync\SpecialChar TeX
28002  (DVI and PDF) 
28003 \end_layout
28004
28005 \begin_layout Standard
28006 Recent versions of 
28007 \begin_inset Flex Code
28008 status collapsed
28009
28010 \begin_layout Plain Layout
28011 (pdf)latex
28012 \end_layout
28013
28014 \end_inset
28015
28016  have built-in support for both PDF and DVI reverse search.
28017  This so-called 
28018 \emph on
28019 Sync\SpecialChar TeX
28020
28021 \emph default
28022  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
28023 \emph on
28024 scr-specials
28025 \emph default
28026  approach.
28027  You need at least \SpecialChar TeX
28028 Live 2008 or a recent Mik\SpecialChar TeX
28029  distribution in order to use it.
28030 \begin_inset Foot
28031 status collapsed
28032
28033 \begin_layout Plain Layout
28034 For some reason,
28035  Mik\SpecialChar TeX
28036  does not understand/obey the command \SpecialChar LyX
28037  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
28038 \end_layout
28039
28040 \begin_layout Plain Layout
28041 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
28042  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
28043  by adding the -synctex=1 switch).
28044 \end_layout
28045
28046 \end_inset
28047
28048  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
28049  Skim on the Mac,
28050  SumatraPDF on Windows;
28051  see the next section for details) already provide Sync\SpecialChar TeX
28052  support.
28053 \end_layout
28054
28055 \begin_layout Standard
28056 To enable Sync\SpecialChar TeX
28057  for DVI output,
28058  change the 
28059 \begin_inset Flex Noun
28060 status collapsed
28061
28062 \begin_layout Plain Layout
28063 La
28064 \family sans
28065 TeX
28066 \family default
28067  (plain) -> DVI
28068 \end_layout
28069
28070 \end_inset
28071
28072  or 
28073 \begin_inset Flex Noun
28074 status collapsed
28075
28076 \begin_layout Plain Layout
28077 La
28078 \family sans
28079 TeX
28080 \family default
28081  (plain) -> DraftDVI
28082 \end_layout
28083
28084 \end_inset
28085
28086  converter in 
28087 \begin_inset Flex Noun
28088 status collapsed
28089
28090 \begin_layout Plain Layout
28091 Preferences\SpecialChar menuseparator
28092 File Handling\SpecialChar menuseparator
28093 Converters
28094 \end_layout
28095
28096 \end_inset
28097
28098  to 
28099 \begin_inset Flex Code
28100 status collapsed
28101
28102 \begin_layout Plain Layout
28103 latex -synctex=1 $$i
28104 \end_layout
28105
28106 \end_inset
28107
28108 ,
28109  and for PDF output,
28110  change the 
28111 \begin_inset Flex Noun
28112 status collapsed
28113
28114 \begin_layout Plain Layout
28115 La
28116 \family sans
28117 TeX
28118 \family default
28119  (pdflatex) -> PDF (pdflatex)
28120 \end_layout
28121
28122 \end_inset
28123
28124  converter to 
28125 \begin_inset Flex Code
28126 status collapsed
28127
28128 \begin_layout Plain Layout
28129 pdflatex -synctex=1 $$i
28130 \end_layout
28131
28132 \end_inset
28133
28134 .
28135  Should your viewer not be considered in the following description,
28136  or in case of missing success,
28137  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
28138 .
28139 \begin_inset Foot
28140 status collapsed
28141
28142 \begin_layout Plain Layout
28143 Note that the option 
28144 \begin_inset Flex Code
28145 status collapsed
28146
28147 \begin_layout Plain Layout
28148 -synctex=1
28149 \end_layout
28150
28151 \end_inset
28152
28153  option enables gzip compression.
28154  If your viewer does not support it,
28155  you should instead use 
28156 \begin_inset Flex Code
28157 status collapsed
28158
28159 \begin_layout Plain Layout
28160 -synctex=-1
28161 \end_layout
28162
28163 \end_inset
28164
28165 .
28166 \end_layout
28167
28168 \end_inset
28169
28170
28171 \end_layout
28172
28173 \begin_layout Subsection
28174 Configuring and using specific viewers
28175 \begin_inset CommandInset label
28176 LatexCommand label
28177 name "subsec:configuring-viewers"
28178
28179 \end_inset
28180
28181
28182 \end_layout
28183
28184 \begin_layout Subsubsection*
28185 Xdvi (all platforms)
28186 \end_layout
28187
28188 \begin_layout Standard
28189 If you use 
28190 \begin_inset Flex Code
28191 status collapsed
28192
28193 \begin_layout Plain Layout
28194 xdvi
28195 \end_layout
28196
28197 \end_inset
28198
28199 ,
28200  you don't need to do anything else for performing a reverse DVI search,
28201  as \SpecialChar LyX
28202  already provides the necessary hooks for automatically using the 
28203 \begin_inset Flex Code
28204 status collapsed
28205
28206 \begin_layout Plain Layout
28207 lyxclient
28208 \end_layout
28209
28210 \end_inset
28211
28212  program.
28213  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
28214  respectively).
28215 \end_layout
28216
28217 \begin_layout Standard
28218 However,
28219  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
28220 ,
28221  simply change the DVI viewer in 
28222 \begin_inset Flex Noun
28223 status collapsed
28224
28225 \begin_layout Plain Layout
28226 Preferences\SpecialChar menuseparator
28227 File Handling\SpecialChar menuseparator
28228 File formats
28229 \end_layout
28230
28231 \end_inset
28232
28233  to
28234 \begin_inset Foot
28235 status collapsed
28236
28237 \begin_layout Plain Layout
28238 On Mac OSX you have to use 
28239 \begin_inset Flex Code
28240 status collapsed
28241
28242 \begin_layout Plain Layout
28243 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
28244 \end_layout
28245
28246 \end_inset
28247
28248
28249 \end_layout
28250
28251 \end_inset
28252
28253  
28254 \begin_inset Flex Code
28255 status collapsed
28256
28257 \begin_layout Plain Layout
28258 xdvi -editor "lyxeditor.sh %f %l"
28259 \end_layout
28260
28261 \end_inset
28262
28263 ,
28264  where 
28265 \begin_inset Flex Code
28266 status collapsed
28267
28268 \begin_layout Plain Layout
28269 lyxeditor.sh
28270 \end_layout
28271
28272 \end_inset
28273
28274  is a suitable script.
28275  For example,
28276  a minimal shell script is the following one:
28277 \end_layout
28278
28279 \begin_layout LyX-Code
28280 #!/bin/sh
28281 \begin_inset Newline newline
28282 \end_inset
28283
28284 LYXPIPE="/path/to/lyxpipe"
28285 \begin_inset Newline newline
28286 \end_inset
28287
28288 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
28289 \begin_inset Newline newline
28290 \end_inset
28291
28292 echo "$COMMAND" > "${LYXPIPE}".in || exit
28293 \begin_inset Newline newline
28294 \end_inset
28295
28296 read TMP < "${LYXPIPE}".out || exit
28297 \end_layout
28298
28299 \begin_layout Standard
28300 where 
28301 \begin_inset Flex Code
28302 status collapsed
28303
28304 \begin_layout Plain Layout
28305 /path/to/lyxpipe
28306 \end_layout
28307
28308 \end_inset
28309
28310  is the LyXServer pipe path specified in 
28311 \begin_inset Flex Noun
28312 status collapsed
28313
28314 \begin_layout Plain Layout
28315 Preferences\SpecialChar menuseparator
28316 Paths
28317 \end_layout
28318
28319 \end_inset
28320
28321 .
28322 \begin_inset Foot
28323 status collapsed
28324
28325 \begin_layout Plain Layout
28326 In the 
28327 \begin_inset Flex Code
28328 status collapsed
28329
28330 \begin_layout Plain Layout
28331 development/tools
28332 \end_layout
28333
28334 \end_inset
28335
28336  folder of a source distribution you can find a 
28337 \begin_inset Flex Code
28338 status collapsed
28339
28340 \begin_layout Plain Layout
28341 lyxeditor
28342 \end_layout
28343
28344 \end_inset
28345
28346  script which is able to locate the 
28347 \emph on
28348 lyxpipe
28349 \emph default
28350  based on your preferences.
28351 \end_layout
28352
28353 \end_inset
28354
28355
28356 \end_layout
28357
28358 \begin_layout Subsubsection*
28359 MacDviX (Mac OSX)
28360 \end_layout
28361
28362 \begin_layout Standard
28363 At the end of 
28364 \begin_inset Flex Code
28365 status collapsed
28366
28367 \begin_layout Plain Layout
28368 /Applications/MacDviX_Folder/calleditor.script
28369 \end_layout
28370
28371 \end_inset
28372
28373 ,
28374  add the following lines:
28375 \end_layout
28376
28377 \begin_layout LyX-Code
28378 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
28379 \begin_inset Newline newline
28380 \end_inset
28381
28382 exit 1
28383 \end_layout
28384
28385 \begin_layout Standard
28386 Modify the lines accordingly if you install \SpecialChar LyX
28387  somewhere else than in the Applications folder.
28388 \end_layout
28389
28390 \begin_layout Standard
28391 Reverse search is triggered by Alt-click (OPTION-click).
28392 \end_layout
28393
28394 \begin_layout Subsubsection*
28395 Skim (Mac OSX)
28396 \end_layout
28397
28398 \begin_layout Standard
28399 Enter 
28400 \begin_inset Flex Code
28401 status collapsed
28402
28403 \begin_layout Plain Layout
28404 open -a Skim.app $$i
28405 \end_layout
28406
28407 \end_inset
28408
28409  to the viewer setting in 
28410 \begin_inset Flex Noun
28411 status collapsed
28412
28413 \begin_layout Plain Layout
28414 Preferences\SpecialChar menuseparator
28415 File Handling\SpecialChar menuseparator
28416 File formats\SpecialChar menuseparator
28417 PDF (pdflatex)
28418 \end_layout
28419
28420 \end_inset
28421
28422 ,
28423  and then in 
28424 \begin_inset Flex Noun
28425 status collapsed
28426
28427 \begin_layout Plain Layout
28428 Skim\SpecialChar menuseparator
28429 Preferences\SpecialChar menuseparator
28430 Sync
28431 \end_layout
28432
28433 \end_inset
28434
28435  choose 
28436 \begin_inset Flex Noun
28437 status collapsed
28438
28439 \begin_layout Plain Layout
28440 custom
28441 \end_layout
28442
28443 \end_inset
28444
28445  preset and enter command 
28446 \begin_inset Flex Noun
28447 status collapsed
28448
28449 \begin_layout Plain Layout
28450 /Applications/\SpecialChar LyX
28451 .app/Contents/MacOS/lyxeditor
28452 \end_layout
28453
28454 \end_inset
28455
28456 .
28457 \end_layout
28458
28459 \begin_layout Standard
28460 Reverse search is triggered by COMMAND-SHIFT-click
28461 \end_layout
28462
28463 \begin_layout Subsubsection*
28464 Evince (GNOME)
28465 \end_layout
28466
28467 \begin_layout Standard
28468 Reverse search with evince does not work out of the box,
28469  but it can be achieved by means of some third party helper scripts.
28470  Please refer to 
28471 \begin_inset CommandInset href
28472 LatexCommand href
28473 target "https://wiki.lyx.org/LyX/SyncTeX"
28474 literal "false"
28475
28476 \end_inset
28477
28478  for details.
28479 \end_layout
28480
28481 \begin_layout Subsubsection*
28482 Okular (KDE)
28483 \end_layout
28484
28485 \begin_layout Standard
28486 Go to 
28487 \begin_inset Flex Noun
28488 status collapsed
28489
28490 \begin_layout Plain Layout
28491 Settings\SpecialChar menuseparator
28492 Configure Okular\SpecialChar menuseparator
28493 Editor
28494 \end_layout
28495
28496 \end_inset
28497
28498  and select LyX
28499 \begin_inset Quotes erd
28500 \end_inset
28501
28502  as editor.
28503  This inserts the appropriate command (
28504 \begin_inset Flex Code
28505 status collapsed
28506
28507 \begin_layout Plain Layout
28508 lyxclient -g %f %l
28509 \end_layout
28510
28511 \end_inset
28512
28513 ).
28514 \end_layout
28515
28516 \begin_layout Standard
28517 Reverse search is triggered by SHIFT-click.
28518
28519 \change_inserted -712698321 1578211026
28520  Note that this only works if Okular is in 
28521 \begin_inset Quotes eld
28522 \end_inset
28523
28524 Browse
28525 \begin_inset Quotes erd
28526 \end_inset
28527
28528  mode (i.
28529 \begin_inset space \thinspace{}
28530 \end_inset
28531
28532 e.,
28533  the hand symbol is clicked).
28534 \change_unchanged
28535
28536 \end_layout
28537
28538 \begin_layout Subsubsection*
28539 Qpdfview (Unix)
28540 \end_layout
28541
28542 \begin_layout Standard
28543 Qpdfview supports Sync\SpecialChar TeX
28544  since version 0.3.5.
28545  Go to 
28546 \begin_inset Flex Noun
28547 status collapsed
28548
28549 \begin_layout Plain Layout
28550 Edit\SpecialChar menuseparator
28551 Settings\SpecialChar menuseparator
28552 Behavior
28553 \end_layout
28554
28555 \end_inset
28556
28557 ,
28558  click on the input field of the 
28559 \begin_inset Quotes eld
28560 \end_inset
28561
28562 Source editor
28563 \begin_inset Quotes erd
28564 \end_inset
28565
28566  item and add the command 
28567 \begin_inset Flex Code
28568 status collapsed
28569
28570 \begin_layout Plain Layout
28571 lyxclient -g %1 %2
28572 \end_layout
28573
28574 \end_inset
28575
28576 .
28577 \end_layout
28578
28579 \begin_layout Standard
28580 Reverse search is triggered by double-click or,
28581  in more recent versions,
28582  by context menu.
28583 \end_layout
28584
28585 \begin_layout Subsubsection*
28586 YAP (Windows)
28587 \end_layout
28588
28589 \begin_layout Standard
28590 Launch yap,
28591  choose its 
28592 \begin_inset Flex Noun
28593 status collapsed
28594
28595 \begin_layout Plain Layout
28596 View\SpecialChar menuseparator
28597 Options
28598 \end_layout
28599
28600 \end_inset
28601
28602  menu and select the 
28603 \begin_inset Quotes eld
28604 \end_inset
28605
28606 Inverse DVI Search
28607 \begin_inset Quotes erd
28608 \end_inset
28609
28610  tab.
28611  Click on the 
28612 \begin_inset Quotes eld
28613 \end_inset
28614
28615 New\SpecialChar ldots
28616
28617 \begin_inset Quotes erd
28618 \end_inset
28619
28620  button and,
28621  in the window that opens,
28622  enter 
28623 \begin_inset Quotes eld
28624 \end_inset
28625
28626 \SpecialChar LyX
28627  Editor
28628 \begin_inset Quotes erd
28629 \end_inset
28630
28631  (or any other name you like) in the 
28632 \begin_inset Quotes eld
28633 \end_inset
28634
28635 Name:
28636 \begin_inset Quotes erd
28637 \end_inset
28638
28639  field.
28640  Now click on the button labeled 
28641 \begin_inset Quotes eld
28642 \end_inset
28643
28644 \SpecialChar ldots
28645
28646 \begin_inset Quotes erd
28647 \end_inset
28648
28649  to open a file dialog and navigate to the directory containing the batch file 
28650 \begin_inset Flex Code
28651 status collapsed
28652
28653 \begin_layout Plain Layout
28654 lyxeditor.bat
28655 \end_layout
28656
28657 \end_inset
28658
28659  (see below).
28660  Select 
28661 \begin_inset Flex Code
28662 status collapsed
28663
28664 \begin_layout Plain Layout
28665 lyxeditor.bat
28666 \end_layout
28667
28668 \end_inset
28669
28670  and then specify the program arguments as 
28671 \begin_inset Flex Code
28672 status collapsed
28673
28674 \begin_layout Plain Layout
28675 %f %l
28676 \end_layout
28677
28678 \end_inset
28679
28680 .
28681  The 
28682 \begin_inset Flex Code
28683 status collapsed
28684
28685 \begin_layout Plain Layout
28686 lyxeditor.bat
28687 \end_layout
28688
28689 \end_inset
28690
28691  wrapper is used for communicating with \SpecialChar LyX
28692  through the 
28693 \emph on
28694 lyxpipe
28695 \emph default
28696  and is as follows:
28697 \end_layout
28698
28699 \begin_layout LyX-Code
28700 @echo off
28701 \begin_inset Newline newline
28702 \end_inset
28703
28704 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
28705 \backslash
28706
28707 \backslash
28708 .
28709 \backslash
28710 pipe
28711 \backslash
28712 lyxpipe.in
28713 \begin_inset Newline newline
28714 \end_inset
28715
28716 type 
28717 \backslash
28718
28719 \backslash
28720 .
28721 \backslash
28722 pipe
28723 \backslash
28724 lyxpipe.out
28725 \end_layout
28726
28727 \begin_layout Standard
28728 Make sure that the \SpecialChar LyX
28729 Server pipe path you specified in \SpecialChar LyX
28730  is 
28731 \begin_inset Flex Code
28732 status collapsed
28733
28734 \begin_layout Plain Layout
28735
28736 \backslash
28737
28738 \backslash
28739 .
28740 \backslash
28741 pipe
28742 \backslash
28743 lyxpipe
28744 \end_layout
28745
28746 \end_inset
28747
28748 ,
28749  otherwise change the 
28750 \begin_inset Flex Code
28751 status collapsed
28752
28753 \begin_layout Plain Layout
28754 lyxeditor.bat
28755 \end_layout
28756
28757 \end_inset
28758
28759  wrapper accordingly.
28760 \end_layout
28761
28762 \begin_layout Standard
28763 In yap,
28764  reverse search is triggered by double-click.
28765 \end_layout
28766
28767 \begin_layout Subsubsection*
28768 SumatraPDF (Windows)
28769 \end_layout
28770
28771 \begin_layout Standard
28772 In order to use SumatraPDF for inverse search,
28773  enter 
28774 \begin_inset Flex Code
28775 status collapsed
28776
28777 \begin_layout Plain Layout
28778 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
28779 \end_layout
28780
28781 \end_inset
28782
28783  in the viewer setting in 
28784 \begin_inset Flex Noun
28785 status collapsed
28786
28787 \begin_layout Plain Layout
28788 Preferences\SpecialChar menuseparator
28789 File Handling\SpecialChar menuseparator
28790 File formats\SpecialChar menuseparator
28791 PDF (pdflatex)
28792 \end_layout
28793
28794 \end_inset
28795
28796 ,
28797  where 
28798 \begin_inset Flex Code
28799 status collapsed
28800
28801 \begin_layout Plain Layout
28802 lyxeditor.bat
28803 \end_layout
28804
28805 \end_inset
28806
28807  is the previous wrapper.
28808  If SumatraPDF.exe is not in your command PATH,
28809  use its full file name.
28810 \end_layout
28811
28812 \begin_layout Standard
28813 Reverse search is triggered by double-click.
28814 \end_layout
28815
28816 \begin_layout Subsubsection*
28817 YAP (Cygwin)
28818 \end_layout
28819
28820 \begin_layout Standard
28821 First of all,
28822  make sure that yap is your default DVI viewer in the Windows environment,
28823  then launch it,
28824  choose its 
28825 \begin_inset Flex Noun
28826 status collapsed
28827
28828 \begin_layout Plain Layout
28829 View\SpecialChar menuseparator
28830 Options
28831 \end_layout
28832
28833 \end_inset
28834
28835  menu and select the 
28836 \begin_inset Quotes eld
28837 \end_inset
28838
28839 Inverse DVI Search
28840 \begin_inset Quotes erd
28841 \end_inset
28842
28843  tab.
28844  Click on the 
28845 \begin_inset Quotes eld
28846 \end_inset
28847
28848 New\SpecialChar ldots
28849
28850 \begin_inset Quotes erd
28851 \end_inset
28852
28853  button and,
28854  in the window that opens,
28855  enter 
28856 \begin_inset Quotes eld
28857 \end_inset
28858
28859 \SpecialChar LyX
28860  Editor
28861 \begin_inset Quotes erd
28862 \end_inset
28863
28864  (or any other name you like) in the 
28865 \begin_inset Quotes eld
28866 \end_inset
28867
28868 Name:
28869 \begin_inset Quotes erd
28870 \end_inset
28871
28872  field.
28873  Now click on the button labeled 
28874 \begin_inset Quotes eld
28875 \end_inset
28876
28877 \SpecialChar ldots
28878
28879 \begin_inset Quotes erd
28880 \end_inset
28881
28882  to open a file dialog and navigate to the directory containing the 
28883 \begin_inset Flex Code
28884 status collapsed
28885
28886 \begin_layout Plain Layout
28887 lyxeditor.exe
28888 \end_layout
28889
28890 \end_inset
28891
28892  program (which is installed by default on Cygwin along with the \SpecialChar LyX
28893  executable).
28894  Select 
28895 \begin_inset Flex Code
28896 status collapsed
28897
28898 \begin_layout Plain Layout
28899 lyxeditor.exe
28900 \end_layout
28901
28902 \end_inset
28903
28904  and then specify the program arguments as 
28905 \begin_inset Flex Code
28906 status collapsed
28907
28908 \begin_layout Plain Layout
28909 -g %f %l
28910 \end_layout
28911
28912 \end_inset
28913
28914 .
28915  In this way,
28916  you will be using the 
28917 \emph on
28918 lyxsocket
28919 \emph default
28920  for communicating with \SpecialChar LyX
28921 .
28922  If,
28923  for whatever reason,
28924  you want to use the 
28925 \emph on
28926 lyxpipe
28927 \emph default
28928 ,
28929  omit the 
28930 \begin_inset Flex Code
28931 status collapsed
28932
28933 \begin_layout Plain Layout
28934 -g
28935 \end_layout
28936
28937 \end_inset
28938
28939  option and be sure to specify the \SpecialChar LyX
28940 Server pipe path in the \SpecialChar LyX
28941  preferences.
28942 \end_layout
28943
28944 \begin_layout Standard
28945 In yap,
28946  reverse search is triggered by double-click.
28947 \end_layout
28948
28949 \begin_layout Subsubsection*
28950 SumatraPDF (Cygwin)
28951 \end_layout
28952
28953 \begin_layout Standard
28954 In order to use SumatraPDF for inverse search,
28955  enter 
28956 \begin_inset Flex Code
28957 status collapsed
28958
28959 \begin_layout Plain Layout
28960 SumatraPDF -inverse-search "lyxeditor -g %f %l"
28961 \end_layout
28962
28963 \end_inset
28964
28965  in the viewer setting in 
28966 \begin_inset Flex Noun
28967 status collapsed
28968
28969 \begin_layout Plain Layout
28970 Preferences\SpecialChar menuseparator
28971 File Handling\SpecialChar menuseparator
28972 File formats\SpecialChar menuseparator
28973 PDF (pdflatex)
28974 \end_layout
28975
28976 \end_inset
28977
28978 .
28979  If SumatraPDF.exe is not in your command PATH,
28980  use its full posix path.
28981  The 
28982 \begin_inset Flex Code
28983 status collapsed
28984
28985 \begin_layout Plain Layout
28986 -g
28987 \end_layout
28988
28989 \end_inset
28990
28991  enables communication via the 
28992 \emph on
28993 lyxsocket
28994 \emph default
28995 .
28996  Again,
28997  omit the 
28998 \begin_inset Flex Code
28999 status collapsed
29000
29001 \begin_layout Plain Layout
29002 -g
29003 \end_layout
29004
29005 \end_inset
29006
29007  option if you want to use the 
29008 \emph on
29009 lyxpipe
29010 \emph default
29011 ,
29012  and be sure to specify the \SpecialChar LyX
29013 Server pipe path in the \SpecialChar LyX
29014  preferences.
29015 \end_layout
29016
29017 \begin_layout Standard
29018 Reverse search is triggered by double-click.
29019 \end_layout
29020
29021 \begin_layout Section
29022 Forward search
29023 \end_layout
29024
29025 \begin_layout Standard
29026 Forward search is,
29027  as the name implies,
29028  in a sense the 
29029 \begin_inset Quotes eld
29030 \end_inset
29031
29032 opposite
29033 \begin_inset Quotes erd
29034 \end_inset
29035
29036  of reverse search.
29037  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
29038 .
29039  If forward search is set up (as described in what follows),
29040  you can put the cursor anywhere in your \SpecialChar LyX
29041  document,
29042  and hit 
29043 \begin_inset Flex Noun
29044 status collapsed
29045
29046 \begin_layout Plain Layout
29047 Navigate\SpecialChar menuseparator
29048 Forward search
29049 \end_layout
29050
29051 \end_inset
29052
29053  (or select 
29054 \begin_inset Flex Noun
29055 status collapsed
29056
29057 \begin_layout Plain Layout
29058 Forward search
29059 \end_layout
29060
29061 \end_inset
29062
29063  in the context menu via right mouse click),
29064  and then the viewer will jump to that position as well.
29065  This implies,
29066  of course,
29067  that your viewer supports this function.
29068 \end_layout
29069
29070 \begin_layout Standard
29071 To make forward search possible,
29072  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
29073  sources.
29074  This can be done via the methods described in the section 
29075 \begin_inset CommandInset ref
29076 LatexCommand ref
29077 reference "subsec:rev-search"
29078 nolink "false"
29079
29080 \end_inset
29081
29082 .
29083 \end_layout
29084
29085 \begin_layout Standard
29086 Additionally,
29087  you need to configure \SpecialChar LyX
29088  for using your viewers in 
29089 \begin_inset Flex Noun
29090 status collapsed
29091
29092 \begin_layout Plain Layout
29093 Tools\SpecialChar menuseparator
29094 Preferences\SpecialChar menuseparator
29095 Output\SpecialChar menuseparator
29096 General
29097 \end_layout
29098
29099 \end_inset
29100
29101 .
29102  We provide a range of tested configurations for some viewers,
29103  which you can select from the drop down list.
29104  If none of these configurations suits you,
29105  you have to find out and enter a suitable configuration yourself.
29106  The definition syntax uses the following placeholders:
29107 \end_layout
29108
29109 \begin_layout Itemize
29110 \noindent
29111 \begin_inset Flex Code
29112 status collapsed
29113
29114 \begin_layout Plain Layout
29115 $$n
29116 \end_layout
29117
29118 \end_inset
29119
29120 :
29121  row number
29122 \end_layout
29123
29124 \begin_layout Itemize
29125 \noindent
29126 \begin_inset Flex Code
29127 status collapsed
29128
29129 \begin_layout Plain Layout
29130 $$t
29131 \end_layout
29132
29133 \end_inset
29134
29135 :
29136  name of the (temporary) exported .tex file (without path)
29137 \end_layout
29138
29139 \begin_layout Itemize
29140 \noindent
29141 \begin_inset Flex Code
29142 status collapsed
29143
29144 \begin_layout Plain Layout
29145 $$f
29146 \end_layout
29147
29148 \end_inset
29149
29150 :
29151  name of the (temporary) exported .tex file (including path)
29152 \end_layout
29153
29154 \begin_layout Itemize
29155 \noindent
29156 \begin_inset Flex Code
29157 status collapsed
29158
29159 \begin_layout Plain Layout
29160 $$o
29161 \end_layout
29162
29163 \end_inset
29164
29165 :
29166  name of the exported output file (either dvi or pdf,
29167  depending on which one exists in the temporary directory)
29168 \end_layout
29169
29170 \begin_layout Standard
29171 Note that only some of the viewers provide full and usable forward search functionality out of the box,
29172  among them yap,
29173  xdvi,
29174  okular
29175 \begin_inset Foot
29176 status collapsed
29177
29178 \begin_layout Plain Layout
29179 You might want to set 
29180 \begin_inset Flex Code
29181 status collapsed
29182
29183 \begin_layout Plain Layout
29184 okular --unique
29185 \end_layout
29186
29187 \end_inset
29188
29189  in 
29190 \begin_inset Flex Noun
29191 status collapsed
29192
29193 \begin_layout Plain Layout
29194 Tools\SpecialChar menuseparator
29195 Preferences\SpecialChar menuseparator
29196 File Handling\SpecialChar menuseparator
29197 File
29198 \begin_inset space ~
29199 \end_inset
29200
29201 Formats
29202 \end_layout
29203
29204 \end_inset
29205
29206
29207 \end_layout
29208
29209 \end_inset
29210
29211 ,
29212  qpdfview,
29213  and SumatraPDF
29214 \begin_inset Foot
29215 status collapsed
29216
29217 \begin_layout Plain Layout
29218 SumatraPDF can also use DDE commands through the external program CMCDDE —
29219  downloadable from 
29220 \begin_inset CommandInset href
29221 LatexCommand href
29222 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
29223 literal "false"
29224
29225 \end_inset
29226
29227
29228 \end_layout
29229
29230 \end_inset
29231
29232 .
29233  Others,
29234  such as evince
29235 \begin_inset Foot
29236 status collapsed
29237
29238 \begin_layout Plain Layout
29239 Forward search with evince can be achieved by means of third party helper scripts.
29240  Please refer to 
29241 \begin_inset CommandInset href
29242 LatexCommand href
29243 target "https://wiki.lyx.org/LyX/SyncTeX"
29244 literal "false"
29245
29246 \end_inset
29247
29248  for details.
29249 \end_layout
29250
29251 \end_inset
29252
29253 ,
29254  require some extra tools in order to use forward search.
29255  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
29256  some other viewers – e.
29257 \begin_inset space \thinspace{}
29258 \end_inset
29259
29260 g.
29261  xpdf – allow at least to reload the document and jump to a specific page of the file,
29262  so you can at least navigate 
29263 \begin_inset Quotes eld
29264 \end_inset
29265
29266 near
29267 \begin_inset Quotes erd
29268 \end_inset
29269
29270 .
29271  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
29272  
29273 \end_layout
29274
29275 \begin_layout Standard
29276 Forward search works both with DVI and PDF output.
29277  \SpecialChar LyX
29278  simply checks which preview format you have used before (i.
29279 \begin_inset space \thinspace{}
29280 \end_inset
29281
29282 e.,
29283  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
29284 \change_deleted 564990737 1672743015
29285
29286 \end_layout
29287
29288 \begin_layout Standard
29289
29290 \change_deleted 564990737 1672743015
29291 Special Document Classes
29292 \end_layout
29293
29294 \begin_layout Standard
29295
29296 \change_deleted 564990737 1669742044
29297 A&A Paper
29298 \end_layout
29299
29300 \begin_layout Standard
29301
29302 \change_deleted 564990737 1669742044
29303 by 
29304 \noun on
29305 Peter Sütterlin
29306 \end_layout
29307
29308 \begin_layout Standard
29309
29310 \change_deleted 564990737 1669742044
29311 Introduction
29312 \end_layout
29313
29314 \begin_layout Standard
29315
29316 \change_deleted 564990737 1669742044
29317 This section describes how \SpecialChar LyX
29318  can be used to write articles for submission to the scientific journal 
29319 \emph on
29320 Astronomy and Astrophysics
29321 \emph default
29322  (
29323 \begin_inset Flex URL
29324 status collapsed
29325
29326 \begin_layout Plain Layout
29327
29328 https://www.aanda.org/
29329 \end_layout
29330
29331 \end_inset
29332
29333 ) using Version 5.01 of the document class 
29334 \family typewriter
29335 aa.cls
29336 \family default
29337 .
29338  This package can be downloaded from the ftp site
29339 \end_layout
29340
29341 \begin_layout Standard
29342
29343 \change_deleted 564990737 1669742044
29344 \begin_inset VSpace medskip
29345 \end_inset
29346
29347
29348 \end_layout
29349
29350 \begin_layout Standard
29351 \align center
29352
29353 \change_deleted 564990737 1669742044
29354 \begin_inset Flex URL
29355 status collapsed
29356
29357 \begin_layout Plain Layout
29358
29359 ftp://ftp.edpsciences.org/pub/aa/readme.html
29360 \end_layout
29361
29362 \end_inset
29363
29364
29365 \end_layout
29366
29367 \begin_layout Standard
29368
29369 \change_deleted 564990737 1669742044
29370 \begin_inset VSpace medskip
29371 \end_inset
29372
29373
29374 \end_layout
29375
29376 \begin_layout Standard
29377
29378 \change_deleted 564990737 1669742044
29379 A manual comes together with that package,
29380  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.
29381  
29382 \end_layout
29383
29384 \begin_layout Standard
29385
29386 \change_deleted 564990737 1669742044
29387 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
29388  2001.
29389  That change involved also some slight changes to the style files,
29390  namely the removal of the thesaurus command.
29391  The \SpecialChar LyX
29392  class aa supports the newest version of these style files,
29393  V 5.01.
29394  If you have an older version installed,
29395  please upgrade.
29396  For compatibility,
29397  the old (version 4) layout has been kept as 
29398 \family sans
29399 article (A&A V4)
29400 \family default
29401 .
29402  Please refer to the comments in 
29403 \family typewriter
29404 \SpecialChar LyX
29405 Dir/layouts/aapaper.layout
29406 \family default
29407 .
29408 \end_layout
29409
29410 \begin_layout Standard
29411
29412 \change_deleted 564990737 1669742044
29413 Getting started
29414 \end_layout
29415
29416 \begin_layout Standard
29417
29418 \change_deleted 564990737 1669742044
29419 It is recommended you start from the example template distributed with \SpecialChar LyX
29420 .
29421  If you are not using a template,
29422  note the following settings:
29423 \end_layout
29424
29425 \begin_layout Itemize
29426
29427 \change_deleted 564990737 1669742044
29428 Select 
29429 \family sans
29430 article (A&A)
29431 \family default
29432  in the 
29433 \family sans
29434 Document\SpecialChar menuseparator
29435 Settings
29436 \family default
29437  dialog (OK,
29438  that one was obvious).
29439 \end_layout
29440
29441 \begin_layout Itemize
29442
29443 \change_deleted 564990737 1669742044
29444 Don't change the option 
29445 \family sans
29446 Page
29447 \begin_inset space ~
29448 \end_inset
29449
29450 style
29451 \family default
29452 :
29453  Leave it set to 
29454 \family sans
29455 default
29456 \family default
29457 .
29458  The whole layout is done by the macros,
29459  you shouldn't change anything.
29460 \end_layout
29461
29462 \begin_layout Standard
29463
29464 \change_deleted 564990737 1669742044
29465 The header block
29466 \end_layout
29467
29468 \begin_layout Standard
29469
29470 \change_deleted 564990737 1669742044
29471 First thing to enter is the header information.
29472  It consists of seven entries,
29473  of which some are optional.
29474  They are
29475 \end_layout
29476
29477 \begin_layout Itemize
29478
29479 \change_deleted 564990737 1669742044
29480
29481 \family sans
29482 Title
29483 \family default
29484 :
29485  [required] 
29486 \end_layout
29487
29488 \begin_layout Itemize
29489
29490 \change_deleted 564990737 1669742044
29491
29492 \family sans
29493 Subtitle
29494 \family default
29495 :
29496  [optional] 
29497 \end_layout
29498
29499 \begin_layout Itemize
29500
29501 \change_deleted 564990737 1669742044
29502
29503 \family sans
29504 Author
29505 \family default
29506 :
29507  [required]
29508 \end_layout
29509
29510 \begin_layout Itemize
29511
29512 \change_deleted 564990737 1669742044
29513
29514 \family sans
29515 Address
29516 \family default
29517 :
29518  [required]
29519 \end_layout
29520
29521 \begin_layout Itemize
29522
29523 \change_deleted 564990737 1669742044
29524
29525 \family sans
29526 Offprints
29527 \family default
29528 :
29529  [optional] if more than one author:
29530  whom to contact for offprint requests.
29531 \end_layout
29532
29533 \begin_layout Itemize
29534
29535 \change_deleted 564990737 1669742044
29536
29537 \family sans
29538 Mail
29539 \family default
29540 :
29541  [optional] mail address for contacts.
29542 \end_layout
29543
29544 \begin_layout Itemize
29545
29546 \change_deleted 564990737 1669742044
29547
29548 \family sans
29549 Date
29550 \family default
29551 :
29552  [required].
29553  Suggested format is 
29554 \family typewriter
29555 Received:
29556  <date>;
29557  Accepted <date> 
29558 \end_layout
29559
29560 \begin_layout Standard
29561
29562 \change_deleted 564990737 1669742044
29563 There is no need to issue the 
29564 \family typewriter
29565
29566 \backslash
29567 maketitle
29568 \family default
29569  command,
29570  this is done automatically by \SpecialChar LyX
29571  when the header is finished.
29572  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
29573  just to get the best optics and meets the layout of the real document.
29574 \end_layout
29575
29576 \begin_layout Standard
29577
29578 \change_deleted 564990737 1669742044
29579 If you want to place footnotes in the header block,
29580  e.
29581 \begin_inset space \thinspace{}
29582 \end_inset
29583
29584 g.
29585 \begin_inset space \space{}
29586 \end_inset
29587
29588 to state your present address,
29589  just use the standard footnote via the menu 
29590 \family sans
29591 Insert\SpecialChar menuseparator
29592 Footnote.
29593
29594 \family default
29595  \SpecialChar LyX
29596  will automagically use the term 
29597 \family typewriter
29598
29599 \backslash
29600 thanks{}
29601 \family default
29602  in that case.
29603 \end_layout
29604
29605 \begin_layout Standard
29606
29607 \change_deleted 564990737 1669742044
29608 Under 
29609 \family sans
29610 Edit\SpecialChar menuseparator
29611 Text Style
29612 \family default
29613 ,
29614  you'll find two insets which are relevant for the titling:
29615 \end_layout
29616
29617 \begin_layout Itemize
29618
29619 \change_deleted 564990737 1669742044
29620
29621 \family sans
29622 Institute
29623 \family typewriter
29624  
29625 \family default
29626 to mark corresponding author\SpecialChar breakableslash
29627 institute pairs.
29628  The institutes are numbered sequentially as they appear in the 
29629 \family sans
29630 Address
29631 \family default
29632  field,
29633  so you have to put a marker to each author.
29634 \end_layout
29635
29636 \begin_layout Itemize
29637
29638 \change_deleted 564990737 1669742044
29639
29640 \family sans
29641 Email
29642 \family default
29643  to supply an email address for fast contact.
29644 \end_layout
29645
29646 \begin_layout Standard
29647
29648 \change_deleted 564990737 1669742044
29649 In addition to these topics,
29650  the macros use one additional \SpecialChar LaTeX
29651  command that has no counterpart in \SpecialChar LyX
29652 :
29653 \end_layout
29654
29655 \begin_layout Itemize
29656
29657 \change_deleted 564990737 1669742044
29658
29659 \family typewriter
29660
29661 \backslash
29662 and
29663 \family default
29664  to separate different names for more than one author and institute,
29665  respectively.
29666 \end_layout
29667
29668 \begin_layout Standard
29669
29670 \change_deleted 564990737 1669742044
29671 The appropriate command has to be entered in \SpecialChar LyX
29672  and marked as \SpecialChar LaTeX
29673  code.
29674  See the examples.
29675  
29676 \end_layout
29677
29678 \begin_layout Standard
29679
29680 \change_deleted 564990737 1669742044
29681 The abstract
29682 \end_layout
29683
29684 \begin_layout Standard
29685
29686 \change_deleted 564990737 1669742044
29687 The abstract should immediately follow the header block.
29688  With version 5 the abstract environment was changed to a command,
29689  and there is now a restriction to only one paragraph.
29690  In addition,
29691  it should contain an entry with the keywords.
29692  This is done via the paragraph style 
29693 \family sans
29694 Keywords
29695 \family default
29696 .
29697  Refer to the example paper.
29698 \end_layout
29699
29700 \begin_layout Standard
29701
29702 \change_deleted 564990737 1669742044
29703 Supported environments
29704 \end_layout
29705
29706 \begin_layout Standard
29707
29708 \change_deleted 564990737 1669742044
29709 The A&A paper layout supports the following environments for structuring your text:
29710 \end_layout
29711
29712 \begin_layout Itemize
29713
29714 \change_deleted 564990737 1669742044
29715
29716 \family sans
29717 Standard
29718 \end_layout
29719
29720 \begin_layout Itemize
29721
29722 \change_deleted 564990737 1669742044
29723
29724 \family sans
29725 Section
29726 \end_layout
29727
29728 \begin_layout Itemize
29729
29730 \change_deleted 564990737 1669742044
29731
29732 \family sans
29733 Subsection
29734 \end_layout
29735
29736 \begin_layout Itemize
29737
29738 \change_deleted 564990737 1669742044
29739
29740 \family sans
29741 Subsubsection
29742 \end_layout
29743
29744 \begin_layout Itemize
29745
29746 \change_deleted 564990737 1669742044
29747
29748 \family sans
29749 Itemize
29750 \end_layout
29751
29752 \begin_layout Itemize
29753
29754 \change_deleted 564990737 1669742044
29755
29756 \family sans
29757 Enumerate
29758 \end_layout
29759
29760 \begin_layout Itemize
29761
29762 \change_deleted 564990737 1669742044
29763
29764 \family sans
29765 Description
29766 \end_layout
29767
29768 \begin_layout Itemize
29769
29770 \change_deleted 564990737 1669742044
29771
29772 \family sans
29773 Caption
29774 \end_layout
29775
29776 \begin_layout Itemize
29777
29778 \change_deleted 564990737 1669742044
29779
29780 \family sans
29781 Abstract
29782 \end_layout
29783
29784 \begin_layout Itemize
29785
29786 \change_deleted 564990737 1669742044
29787
29788 \family sans
29789 Acknowledgment
29790 \end_layout
29791
29792 \begin_layout Itemize
29793
29794 \change_deleted 564990737 1669742044
29795
29796 \family sans
29797 Bibliography
29798 \end_layout
29799
29800 \begin_layout Itemize
29801
29802 \change_deleted 564990737 1669742044
29803
29804 \family sans
29805 \SpecialChar LaTeX
29806
29807 \end_layout
29808
29809 \begin_layout Standard
29810
29811 \change_deleted 564990737 1669742044
29812 Commands not supported by \SpecialChar LyX
29813
29814 \end_layout
29815
29816 \begin_layout Standard
29817
29818 \change_deleted 564990737 1669742044
29819 Some commands are not yet supported by the 
29820 \family sans
29821 paper (A&A)
29822 \family default
29823  layout for \SpecialChar LyX
29824 .
29825  Some have already been mentioned.
29826  For the sake of completeness,
29827  they are listed all together here:
29828 \end_layout
29829
29830 \begin_layout Itemize
29831
29832 \change_deleted 564990737 1669742044
29833
29834 \family typewriter
29835
29836 \backslash
29837 and
29838 \end_layout
29839
29840 \begin_layout Itemize
29841
29842 \change_deleted 564990737 1669742044
29843
29844 \family typewriter
29845
29846 \backslash
29847 authorrunning
29848 \end_layout
29849
29850 \begin_layout Itemize
29851
29852 \change_deleted 564990737 1669742044
29853
29854 \family typewriter
29855
29856 \backslash
29857 object{}
29858 \end_layout
29859
29860 \begin_layout Itemize
29861
29862 \change_deleted 564990737 1669742044
29863
29864 \family typewriter
29865
29866 \backslash
29867 titlerunning{}
29868 \end_layout
29869
29870 \begin_layout Standard
29871
29872 \change_deleted 564990737 1669742044
29873 If you want to use any of these commands,
29874  you have to enter them yourself.
29875  
29876 \series bold
29877 Do not forget to mark them as \SpecialChar LaTeX
29878  code!
29879 \end_layout
29880
29881 \begin_layout Standard
29882
29883 \change_deleted 564990737 1669742044
29884 Figure and Table Floats
29885 \end_layout
29886
29887 \begin_layout Standard
29888
29889 \change_deleted 564990737 1669742044
29890 \SpecialChar LyX
29891  provides support for the necessary float environments 
29892 \family sans
29893 figure,
29894  figure*,
29895  table
29896 \family default
29897  and 
29898 \family sans
29899 table*
29900 \family default
29901 ,
29902  therefore we won't tell much about it here.
29903  Refer to the 
29904 \emph on
29905 User's
29906 \begin_inset space ~
29907 \end_inset
29908
29909 Guide
29910 \emph default
29911 .
29912  Just remember that tables should be left-aligned.
29913  For that,
29914  select the table and change the alignment in 
29915 \family sans
29916 Edit\SpecialChar menuseparator
29917 Paragraph
29918 \begin_inset space ~
29919 \end_inset
29920
29921 Settings.
29922 \end_layout
29923
29924 \begin_layout Standard
29925
29926 \change_deleted 564990737 1669742044
29927 There is only one special thing:
29928  the figures with caption besides the figure.
29929  To create such a figure,
29930  you have to do the following:
29931 \end_layout
29932
29933 \begin_layout Enumerate
29934
29935 \change_deleted 564990737 1669742044
29936 Create a wide figure float:
29937  
29938 \family sans
29939 Insert\SpecialChar menuseparator
29940 Float\SpecialChar menuseparator
29941 Figure
29942 \family default
29943 ,
29944  then right click in the figure and select 
29945 \family sans
29946 Span
29947 \begin_inset space ~
29948 \end_inset
29949
29950 columns
29951 \family default
29952 .
29953 \end_layout
29954
29955 \begin_layout Enumerate
29956
29957 \change_deleted 564990737 1669742044
29958 Enter your caption text.
29959 \end_layout
29960
29961 \begin_layout Enumerate
29962
29963 \change_deleted 564990737 1669742044
29964 Press 
29965 \family sans
29966 Return
29967 \family default
29968  to move the cursor above the caption.
29969 \end_layout
29970
29971 \begin_layout Enumerate
29972
29973 \change_deleted 564990737 1669742044
29974 Insert your figure
29975 \end_layout
29976
29977 \begin_layout Enumerate
29978
29979 \change_deleted 564990737 1669742044
29980 Position the cursor behind the figure and insert a horizontal fill:
29981  
29982 \family sans
29983 Insert\SpecialChar menuseparator
29984 Special
29985 \begin_inset space ~
29986 \end_inset
29987
29988 Character\SpecialChar menuseparator
29989 Horizontal
29990 \begin_inset space ~
29991 \end_inset
29992
29993 Fill
29994 \family default
29995 .
29996 \end_layout
29997
29998 \begin_layout Enumerate
29999
30000 \change_deleted 564990737 1669742044
30001 Switch to \SpecialChar LaTeX
30002  mode:
30003  
30004 \family sans
30005 M-c
30006 \begin_inset space ~
30007 \end_inset
30008
30009 t
30010 \family default
30011 .
30012 \end_layout
30013
30014 \begin_layout Enumerate
30015
30016 \change_deleted 564990737 1669742044
30017 Enter 
30018 \family typewriter
30019
30020 \backslash
30021 parbox[b]{55mm}{
30022 \family default
30023 .
30024  
30025 \series bold
30026 Do not close the brace!
30027 \end_layout
30028
30029 \begin_layout Enumerate
30030
30031 \change_deleted 564990737 1669742044
30032 Position the cursor behind the caption text,
30033  switch to \SpecialChar LaTeX
30034  mode and insert the closing brace:
30035  
30036 \family sans
30037 M-c
30038 \begin_inset space ~
30039 \end_inset
30040
30041 t
30042 \family default
30043  
30044 \family typewriter
30045 }
30046 \family default
30047 .
30048 \end_layout
30049
30050 \begin_layout Standard
30051
30052 \change_deleted 564990737 1669742044
30053 Also,
30054  refer to the figures in the example paper.
30055 \end_layout
30056
30057 \begin_layout Standard
30058
30059 \change_deleted 564990737 1669742044
30060 Referee layout
30061 \end_layout
30062
30063 \begin_layout Standard
30064
30065 \change_deleted 564990737 1669742044
30066 For submission,
30067  the paper has to be formated in a special double-spacing layout.
30068  For this purpose,
30069  you have to give the option 
30070 \family typewriter
30071 referee
30072 \family default
30073  to the document class.
30074  This must be done using the custom class options field in the 
30075 \family sans
30076 Document\SpecialChar menuseparator
30077 Settings
30078 \family default
30079  dialog.
30080  Just enter the string 
30081 \family typewriter
30082 referee
30083 \family default
30084  there.
30085 \end_layout
30086
30087 \begin_layout Standard
30088
30089 \change_deleted 564990737 1669742044
30090 The example paper
30091 \end_layout
30092
30093 \begin_layout Standard
30094
30095 \change_deleted 564990737 1669742044
30096 The 
30097 \family sans
30098 Examples
30099 \family default
30100  directory contains an example paper written with \SpecialChar LyX
30101 .
30102  It is the example paper from the original macro package,
30103  translated to \SpecialChar LyX
30104 .
30105  Use it for inspiration,
30106  and compare the original \SpecialChar LaTeX
30107  code with \SpecialChar LyX
30108  way of writing.
30109 \end_layout
30110
30111 \begin_layout Standard
30112
30113 \change_deleted 564990737 1671097429
30114 Dinbrief
30115 \end_layout
30116
30117 \begin_layout Standard
30118
30119 \change_deleted 564990737 1671097429
30120 The document class 
30121 \family sans
30122 dinbrief
30123 \family default
30124  can be used to type letters according to German conventions.
30125  A template file is included in 
30126 \family typewriter
30127 .../lyx/share/templates
30128 \family default
30129  for you to use as a starting point.
30130 \end_layout
30131
30132 \begin_layout Standard
30133
30134 \change_deleted 564990737 1671097429
30135 Elsevier Journals
30136 \end_layout
30137
30138 \begin_layout Standard
30139
30140 \change_deleted 564990737 1671097429
30141 See the \SpecialChar LyX
30142  template file 
30143 \family typewriter
30144 elsarticle.lyx
30145 \family default
30146 .
30147  It contains all infos you need.
30148 \end_layout
30149
30150 \begin_layout Standard
30151
30152 \change_deleted 564990737 1669755802
30153 ijmpc and ijmpd
30154 \end_layout
30155
30156 \begin_layout Standard
30157
30158 \change_deleted 564990737 1669755802
30159 by 
30160 \noun on
30161 Panayotis Papasotiriou
30162 \end_layout
30163
30164 \begin_layout Standard
30165
30166 \change_deleted 564990737 1669755802
30167 Overview
30168 \end_layout
30169
30170 \begin_layout Standard
30171
30172 \change_deleted 564990737 1669755802
30173 The ijmpc package is a set of macros that facilitates electronic manuscript submission to the 
30174 \emph on
30175 International Journal of Modern Physics C
30176 \emph default
30177 .
30178  Similarly,
30179  the ijmpd package is for creating manuscripts to be submitted to the 
30180 \emph on
30181 International Journal of Modern Physics D
30182 \emph default
30183 .
30184  Both journals are published by World Scientific.
30185  The corresponding document classes are named 
30186 \family typewriter
30187 ws-ijmpc.cls
30188 \family default
30189  and 
30190 \family typewriter
30191 ws-ijmpd.cls
30192 \family default
30193 ,
30194  respectively.
30195  These files,
30196  together with instructions for the authors,
30197  can be downloaded from the sites 
30198 \begin_inset Flex URL
30199 status collapsed
30200
30201 \begin_layout Plain Layout
30202
30203 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
30204 \end_layout
30205
30206 \end_inset
30207
30208  and 
30209 \begin_inset Flex URL
30210 status collapsed
30211
30212 \begin_layout Plain Layout
30213
30214 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
30215 \end_layout
30216
30217 \end_inset
30218
30219 .
30220  Both packages are modified versions of the standard 
30221 \begin_inset Quotes eld
30222 \end_inset
30223
30224 article
30225 \begin_inset Quotes erd
30226 \end_inset
30227
30228  package,
30229  and they are almost (but not exactly) identical.
30230  Most of their features are supported by \SpecialChar LyX
30231 .
30232  I have used \SpecialChar LyX
30233  successfully to write articles submitted to both journals without any problem.
30234 \end_layout
30235
30236 \begin_layout Standard
30237
30238 \change_deleted 564990737 1669755802
30239 Writing a paper
30240 \end_layout
30241
30242 \begin_layout Standard
30243
30244 \change_deleted 564990737 1669755802
30245 As usual,
30246  the easiest way to write a paper is to start with a template.
30247  Click on 
30248 \family sans
30249 File\SpecialChar menuseparator
30250 New from
30251 \family default
30252  
30253 \family sans
30254 Template
30255 \family default
30256 ,
30257  then choose the 
30258 \family typewriter
30259 ijmpc.lyx
30260 \family default
30261  or 
30262 \family typewriter
30263 ijmpd.lyx
30264 \family default
30265  template.
30266  This will give an (almost) empty document that includes the most common fields found in a manuscript.
30267  Simply overwrite the existing text (including the brackets,
30268  
30269 \family typewriter
30270 <>
30271 \family default
30272 ) with your text.
30273  You should keep in mind the following remarks.
30274 \end_layout
30275
30276 \begin_layout Enumerate
30277
30278 \change_deleted 564990737 1669755802
30279 \SpecialChar LyX
30280  won't let you change the font size and the page style of the document,
30281  because such modifications are not allowed by both packages.
30282 \end_layout
30283
30284 \begin_layout Enumerate
30285
30286 \change_deleted 564990737 1669755802
30287 The language of the document should not be changed.
30288  Before previewing your paper,
30289  be sure that the babel package is not used.
30290  To do this,
30291  click on 
30292 \begin_inset Info
30293 type  "menu"
30294 arg   "dialog-show document"
30295 \end_inset
30296
30297  
30298 \family sans
30299 \SpecialChar menuseparator
30300 Language
30301 \family default
30302 ,
30303  and select 
30304 \begin_inset Quotes eld
30305 \end_inset
30306
30307 None
30308 \begin_inset Quotes erd
30309 \end_inset
30310
30311  as 
30312 \family sans
30313 Language Package
30314 \family default
30315 .
30316 \end_layout
30317
30318 \begin_layout Enumerate
30319
30320 \change_deleted 564990737 1669755802
30321 The 
30322 \begin_inset Quotes eld
30323 \end_inset
30324
30325 Keywords
30326 \begin_inset Quotes erd
30327 \end_inset
30328
30329  style must be used to define keywords.
30330 \end_layout
30331
30332 \begin_layout Enumerate
30333
30334 \change_deleted 564990737 1669755802
30335 The ijmpc package provides a style named 
30336 \begin_inset Quotes eld
30337 \end_inset
30338
30339 Classification Codes
30340 \begin_inset Quotes erd
30341 \end_inset
30342
30343 ,
30344  which can be used to define classification codes,
30345  such as PACS numbers.
30346  Note that this facility is not supported by the ijmpd package.
30347 \end_layout
30348
30349 \begin_layout Enumerate
30350
30351 \change_deleted 564990737 1669755802
30352 Several new environments are available:
30353  
30354 \begin_inset Quotes eld
30355 \end_inset
30356
30357 Definition
30358 \begin_inset Quotes erd
30359 \end_inset
30360
30361 ,
30362  
30363 \begin_inset Quotes eld
30364 \end_inset
30365
30366 Step
30367 \begin_inset Quotes erd
30368 \end_inset
30369
30370 ,
30371  
30372 \begin_inset Quotes eld
30373 \end_inset
30374
30375 Example
30376 \begin_inset Quotes erd
30377 \end_inset
30378
30379 ,
30380  
30381 \begin_inset Quotes eld
30382 \end_inset
30383
30384 Remark
30385 \begin_inset Quotes erd
30386 \end_inset
30387
30388 ,
30389  
30390 \begin_inset Quotes eld
30391 \end_inset
30392
30393 Notation
30394 \begin_inset Quotes erd
30395 \end_inset
30396
30397 ,
30398  
30399 \begin_inset Quotes eld
30400 \end_inset
30401
30402 Theorem
30403 \begin_inset Quotes erd
30404 \end_inset
30405
30406 ,
30407  
30408 \begin_inset Quotes eld
30409 \end_inset
30410
30411 Proof
30412 \begin_inset Quotes erd
30413 \end_inset
30414
30415 ,
30416  
30417 \begin_inset Quotes eld
30418 \end_inset
30419
30420 Corollary
30421 \begin_inset Quotes erd
30422 \end_inset
30423
30424 ,
30425  
30426 \begin_inset Quotes eld
30427 \end_inset
30428
30429 Lemma
30430 \begin_inset Quotes erd
30431 \end_inset
30432
30433 ,
30434  
30435 \begin_inset Quotes eld
30436 \end_inset
30437
30438 Proposition
30439 \begin_inset Quotes erd
30440 \end_inset
30441
30442 ,
30443  
30444 \begin_inset Quotes eld
30445 \end_inset
30446
30447 Prop
30448 \begin_inset Quotes erd
30449 \end_inset
30450
30451 ,
30452  
30453 \begin_inset Quotes eld
30454 \end_inset
30455
30456 Question
30457 \begin_inset Quotes erd
30458 \end_inset
30459
30460 ,
30461  
30462 \begin_inset Quotes eld
30463 \end_inset
30464
30465 Claim
30466 \begin_inset Quotes erd
30467 \end_inset
30468
30469 ,
30470  and 
30471 \begin_inset Quotes eld
30472 \end_inset
30473
30474 Conjecture
30475 \begin_inset Quotes erd
30476 \end_inset
30477
30478 .
30479  Their use is more or less obvious.
30480  \SpecialChar LyX
30481  supports all these environments;
30482  it will use the proper label,
30483  text style,
30484  and numbering scheme for each of them.
30485 \end_layout
30486
30487 \begin_layout Enumerate
30488
30489 \change_deleted 564990737 1669755802
30490 Both packages use basic citations;
30491  the natbib package should not be used.
30492  In \SpecialChar LyX
30493 ,
30494  citation references are shown as usual;
30495  in the output,
30496  citations are shown as superscripts.
30497  If you want to use a citation as normal text,
30498  you should use the 
30499 \family typewriter
30500 refcite
30501 \family default
30502  command,
30503  e.
30504 \begin_inset space \thinspace{}
30505 \end_inset
30506
30507 g.
30508 \begin_inset space \space{}
30509 \end_inset
30510
30511
30512 \begin_inset Quotes eld
30513 \end_inset
30514
30515 See Ref.
30516 \begin_inset space \space{}
30517 \end_inset
30518
30519
30520 \family typewriter
30521
30522 \backslash
30523 refcite{key}
30524 \family default
30525
30526 \begin_inset Quotes erd
30527 \end_inset
30528
30529 .
30530 \end_layout
30531
30532 \begin_layout Enumerate
30533
30534 \change_deleted 564990737 1669755802
30535 There is no 
30536 \begin_inset Quotes eld
30537 \end_inset
30538
30539 Acknowledgments
30540 \begin_inset Quotes erd
30541 \end_inset
30542
30543  section in both packages.
30544  To put acknowledgments,
30545  just use the 
30546 \begin_inset Quotes eld
30547 \end_inset
30548
30549 Section*
30550 \begin_inset Quotes erd
30551 \end_inset
30552
30553  environment.
30554 \end_layout
30555
30556 \begin_layout Enumerate
30557
30558 \change_deleted 564990737 1669755802
30559 Appendices may be added to the paper,
30560  
30561 \emph on
30562 after
30563 \emph default
30564  the Acknowledgments and 
30565 \shape italic
30566 before
30567 \shape default
30568  the References.
30569  \SpecialChar LyX
30570  provides a special environment,
30571  called 
30572 \begin_inset Quotes eld
30573 \end_inset
30574
30575 Appendices Section
30576 \begin_inset Quotes erd
30577 \end_inset
30578
30579  which marks the beginning of the appendices.
30580  This environment should be left blank;
30581  it just sends a \SpecialChar LaTeX
30582  command,
30583  but nothing is really printed.
30584  In \SpecialChar LyX
30585 ,
30586  the word 
30587 \begin_inset Quotes eld
30588 \end_inset
30589
30590 Appendix
30591 \begin_inset Quotes erd
30592 \end_inset
30593
30594  is printed with blue letters,
30595  as a signal that all sections after that point are appendices.
30596  To write an appendix,
30597  use the 
30598 \begin_inset Quotes eld
30599 \end_inset
30600
30601 Appendix
30602 \begin_inset Quotes erd
30603 \end_inset
30604
30605  environment.
30606  \SpecialChar LyX
30607  will number each appendix with capital letters,
30608  as required by both journals.
30609  Note that 
30610 \begin_inset Quotes eld
30611 \end_inset
30612
30613 Appendices Section
30614 \begin_inset Quotes erd
30615 \end_inset
30616
30617  
30618 \emph on
30619 must
30620 \emph default
30621  be present before the first appendix;
30622  if not,
30623  all appendices will be numbered as normal sections in the output.
30624 \end_layout
30625
30626 \begin_layout Enumerate
30627
30628 \change_deleted 564990737 1669755802
30629 The ijmpc and the ijmpd packages use the 
30630 \family typewriter
30631 tbl
30632 \family default
30633  command to implement table captions.
30634  As a result,
30635  a table created by \SpecialChar LyX
30636  is printed correctly,
30637  but its caption is ignored.
30638  However,
30639  you can use some \SpecialChar TeX
30640  code to overcome this problem,
30641  so that captions are printed as expected.
30642  To do so,
30643  create a float table as usual,
30644  remove the caption,
30645  and replace it with the \SpecialChar TeX
30646  code 
30647 \family typewriter
30648
30649 \backslash
30650 tbl{
30651 \emph on
30652 your table caption
30653 \emph default
30654 }{
30655 \family default
30656  (sic);
30657  you must also the \SpecialChar TeX
30658  code 
30659 \family typewriter
30660 }
30661 \family default
30662  immediately after the tabular material.
30663  Study the example table included in the template files to see how this trick is implemented.
30664  Alternatively,
30665  If you need table captions,
30666  you should implement the whole table float in a 
30667 \family typewriter
30668 .tex
30669 \family default
30670  file,
30671  then include this file to the \SpecialChar LyX
30672  document (
30673 \family sans
30674 Insert\SpecialChar menuseparator
30675 File\SpecialChar menuseparator
30676 Child
30677 \begin_inset space ~
30678 \end_inset
30679
30680 Document
30681 \family default
30682 ).
30683  Details on how to create a table float can be found in the files 
30684 \family typewriter
30685 ws-ijmpc.tex
30686 \family default
30687  and 
30688 \family typewriter
30689 ws-ijmpd.tex
30690 \family default
30691 ,
30692  included in the corresponding packages.
30693 \end_layout
30694
30695 \begin_layout Standard
30696
30697 \change_deleted 564990737 1669755802
30698 Preparing a paper for submission
30699 \end_layout
30700
30701 \begin_layout Standard
30702
30703 \change_deleted 564990737 1669755802
30704 Before you submit your paper you must export the \SpecialChar LyX
30705  document as a \SpecialChar LaTeX
30706  file (
30707 \family sans
30708 File\SpecialChar menuseparator
30709 Export\SpecialChar menuseparator
30710 \SpecialChar LaTeX
30711
30712 \family default
30713 )
30714 \begin_inset Foot
30715 status open
30716
30717 \begin_layout Plain Layout
30718 Actually you have the choice between \SpecialChar LaTeX
30719  (plain) and pdflatex.
30720  If you intend to use pdflatex to prepare the paper,
30721  you should use the pdflatex option so that included graphics are converted to PDF format,
30722  ready for use by pdflatex.
30723 \end_layout
30724
30725 \end_inset
30726
30727 ,
30728  then make the following changes to the resulting 
30729 \family typewriter
30730 .tex
30731 \family default
30732  file.
30733 \end_layout
30734
30735 \begin_layout Enumerate
30736
30737 \change_deleted 564990737 1669755802
30738 Remove the comment lines before the 
30739 \family typewriter
30740
30741 \backslash
30742 documentclass
30743 \family default
30744  command.
30745 \end_layout
30746
30747 \begin_layout Enumerate
30748
30749 \change_deleted 564990737 1669755802
30750 Remove everything between (and including) the 
30751 \family typewriter
30752
30753 \backslash
30754 makeatletter
30755 \family default
30756  and 
30757 \family typewriter
30758
30759 \backslash
30760 makeatother
30761 \family default
30762  commands,
30763  except for any commands you specifically put into the \SpecialChar LaTeX
30764  preamble.
30765 \end_layout
30766
30767 \begin_layout Standard
30768
30769 \change_deleted 564990737 1672743015
30770 The modified 
30771 \family typewriter
30772 .tex
30773 \family default
30774  file should be saved and processed through \SpecialChar LaTeX
30775  as many times as necessary.
30776  You may also want to check the resulting 
30777 \family typewriter
30778 .dvi
30779 \family default
30780  document.
30781 \end_layout
30782
30783 \begin_layout Standard
30784
30785 \change_deleted 564990737 1669801478
30786 iopart
30787 \end_layout
30788
30789 \begin_layout Standard
30790
30791 \change_deleted 564990737 1669801478
30792 by 
30793 \noun on
30794 Uwe Stöhr
30795 \end_layout
30796
30797 \begin_layout Standard
30798
30799 \change_deleted 564990737 1669801478
30800 Overview
30801 \end_layout
30802
30803 \begin_layout Standard
30804
30805 \change_deleted 564990737 1669801478
30806 The iopart package provides a document class to create electronic manuscript submission to the journals published by the Institute of Physics.
30807  Instructions for the authors how to create a paper using the iopart class can be downloaded together with the iopart package from the site 
30808 \begin_inset Flex URL
30809 status collapsed
30810
30811 \begin_layout Plain Layout
30812
30813 ftp://ftp.iop.org/pub/journals/latex2e
30814 \end_layout
30815
30816 \end_inset
30817
30818 .
30819 \end_layout
30820
30821 \begin_layout Standard
30822
30823 \change_deleted 564990737 1669801478
30824 Writing a paper
30825 \end_layout
30826
30827 \begin_layout Standard
30828
30829 \change_deleted 564990737 1669801478
30830 The easiest way to write a paper is to start with the template 
30831 \emph on
30832 IOP-article.lyx
30833 \emph default
30834  that is available via 
30835 \family sans
30836 File\SpecialChar menuseparator
30837 New From Template
30838 \family default
30839  The template explains how to use the special text environments.
30840  Here are the most important advices:
30841 \end_layout
30842
30843 \begin_layout Itemize
30844
30845 \change_deleted 564990737 1669801478
30846 To be able to compile your document to a PDF,
30847  PS,
30848  or DVI,
30849  ensure that the no AMS packages are loaded in 
30850 \family sans
30851 Document\SpecialChar menuseparator
30852 Settings\SpecialChar menuseparator
30853 Math Options
30854 \family default
30855 !
30856 \end_layout
30857
30858 \begin_layout Itemize
30859
30860 \change_deleted 564990737 1669801478
30861
30862 \size normal
30863 The title environment defines the kind of your paper.
30864  So use one of the following environments for the title:
30865 \end_layout
30866
30867 \begin_deeper
30868 \begin_layout Itemize
30869
30870 \change_deleted 564990737 1669801478
30871
30872 \family sans
30873 \size normal
30874 Title
30875 \family default
30876  for a Paper
30877 \end_layout
30878
30879 \begin_layout Itemize
30880
30881 \change_deleted 564990737 1669801478
30882
30883 \family sans
30884 \size normal
30885 Review
30886 \family default
30887  for a Review
30888 \end_layout
30889
30890 \begin_layout Itemize
30891
30892 \change_deleted 564990737 1669801478
30893
30894 \family sans
30895 \size normal
30896 Topical
30897 \family default
30898  for a Topical review
30899 \end_layout
30900
30901 \begin_layout Itemize
30902
30903 \change_deleted 564990737 1669801478
30904
30905 \family sans
30906 \size normal
30907 Comment
30908 \family default
30909  for a Comment
30910 \end_layout
30911
30912 \begin_layout Itemize
30913
30914 \change_deleted 564990737 1669801478
30915
30916 \family sans
30917 \size normal
30918 Note
30919 \family default
30920  for a Note
30921 \end_layout
30922
30923 \begin_layout Itemize
30924
30925 \change_deleted 564990737 1669801478
30926
30927 \family sans
30928 \size normal
30929 Paper
30930 \family default
30931  for a Paper (same as Title)
30932 \end_layout
30933
30934 \begin_layout Itemize
30935
30936 \change_deleted 564990737 1669801478
30937
30938 \family sans
30939 \size normal
30940 Prelim
30941 \family default
30942  for a Preliminary communication
30943 \end_layout
30944
30945 \begin_layout Itemize
30946
30947 \change_deleted 564990737 1669801478
30948
30949 \family sans
30950 \size normal
30951 Rapid
30952 \family default
30953  for a Rapid communication
30954 \end_layout
30955
30956 \begin_layout Itemize
30957
30958 \change_deleted 564990737 1669801478
30959
30960 \family sans
30961 \size normal
30962 Letter
30963 \family default
30964  for a Letter to the editor
30965 \end_layout
30966
30967 \end_deeper
30968 \begin_layout Itemize
30969
30970 \change_deleted 564990737 1669801478
30971
30972 \size normal
30973 All title environments except of 
30974 \family sans
30975 Letter
30976 \family default
30977  can have an optional short title.
30978 \end_layout
30979
30980 \begin_layout Itemize
30981
30982 \change_deleted 564990737 1669801478
30983 There is a general title environment 
30984 \family sans
30985 Article
30986 \family default
30987  which is not directly supported by \SpecialChar LyX
30988 .
30989  This can be used as \SpecialChar TeX
30990  code when your document doesn't fit into one of the other title types.
30991 \end_layout
30992
30993 \begin_layout Standard
30994
30995 \change_deleted 564990737 1672743015
30996 For more informations like hints for special table and formula formatting,
30997  look at the IOP author guidelines.
30998 \end_layout
30999
31000 \begin_layout Standard
31001
31002 \change_deleted 564990737 1670317155
31003 Kluwer
31004 \end_layout
31005
31006 \begin_layout Standard
31007
31008 \change_deleted 564990737 1670317155
31009 by 
31010 \noun on
31011 Panayotis Papasotiriou
31012 \end_layout
31013
31014 \begin_layout Standard
31015
31016 \change_deleted 564990737 1670317155
31017 Overview
31018 \end_layout
31019
31020 \begin_layout Standard
31021
31022 \change_deleted 564990737 1670317155
31023 The Kluwer package is a set of macros produced by Kluwer Academic Publishers that facilitates electronic manuscript submission to the journals they publish.
31024  Most known of them (at least in my domain of interest) are 
31025 \emph on
31026 Astrophysics and Space Science
31027 \emph default
31028  and 
31029 \emph on
31030 Solar Physics
31031 \emph default
31032 ,
31033  but there are many others (see a complete list at 
31034 \begin_inset Flex URL
31035 status collapsed
31036
31037 \begin_layout Plain Layout
31038
31039 http://www.wkap.nl/jrnllist.htm/JRNLHOME
31040 \end_layout
31041
31042 \end_inset
31043
31044 ).
31045  The Kluwer package may be downloaded from the site 
31046 \begin_inset Flex URL
31047 status collapsed
31048
31049 \begin_layout Plain Layout
31050
31051 http://www.wkap.nl/kaphtml.htm/STYLEFILES
31052 \end_layout
31053
31054 \end_inset
31055
31056 .
31057  A complete user guide is contained in that package (but it can also be downloaded separately).
31058 \end_layout
31059
31060 \begin_layout Standard
31061
31062 \change_deleted 564990737 1670317155
31063 \SpecialChar LyX
31064  supports many features of the package but not everything.
31065  However,
31066  the \SpecialChar TeX
31067  code needed is reduced to some 
31068 \begin_inset Quotes eld
31069 \end_inset
31070
31071 peculiar
31072 \begin_inset Quotes erd
31073 \end_inset
31074
31075  commands of the package (see
31076 \begin_inset space ~
31077 \end_inset
31078
31079
31080 \begin_inset CommandInset ref
31081 LatexCommand ref
31082 reference "subsec:kluwer_peculiarities"
31083 nolink "false"
31084
31085 \end_inset
31086
31087 ).
31088  I have recently used \SpecialChar LyX
31089  to write an article submitted to the 
31090 \emph on
31091 Astrophysics and Space Science
31092 \emph default
31093  without any problem.
31094 \end_layout
31095
31096 \begin_layout Standard
31097
31098 \change_deleted 564990737 1670317155
31099 Writing a paper
31100 \end_layout
31101
31102 \begin_layout Standard
31103
31104 \change_deleted 564990737 1670317155
31105 The easiest way to write a paper is to start with the Kluwer template file.
31106  Click on 
31107 \family sans
31108 File\SpecialChar menuseparator
31109 New from
31110 \family default
31111  
31112 \family sans
31113 Template
31114 \family default
31115 ,
31116  then choose the 
31117 \family typewriter
31118 kluwer.lyx
31119 \family default
31120  template.
31121  This will give an (almost) empty document that includes the most common fields found in a manuscript and a short description of their use.
31122  As in most templates,
31123  simply overwrite the existing text (including the brackets,
31124  
31125 \family typewriter
31126 <>
31127 \family default
31128 ) with the correct information.
31129 \end_layout
31130
31131 \begin_layout Standard
31132
31133 \change_deleted 564990737 1670317155
31134 Preparing a paper for submission
31135 \end_layout
31136
31137 \begin_layout Standard
31138
31139 \change_deleted 564990737 1670317155
31140 As in the AAS\SpecialChar TeX
31141  package,
31142  before you submit your paper to a journal you must 
31143 \begin_inset Quotes eld
31144 \end_inset
31145
31146 postprocess
31147 \begin_inset Quotes erd
31148 \end_inset
31149
31150  it as follows.
31151 \end_layout
31152
31153 \begin_layout Enumerate
31154
31155 \change_deleted 564990737 1670317155
31156 Export your paper as a \SpecialChar LaTeX
31157  file.
31158  To do this,
31159  click on 
31160 \family sans
31161 File\SpecialChar menuseparator
31162 Export\SpecialChar menuseparator
31163 \SpecialChar LaTeX
31164
31165 \family default
31166 .
31167  
31168 \end_layout
31169
31170 \begin_layout Enumerate
31171
31172 \change_deleted 564990737 1670317155
31173 Edit the resulting 
31174 \family typewriter
31175 .tex
31176 \family default
31177  file with a text editor and make the following changes
31178 \end_layout
31179
31180 \begin_deeper
31181 \begin_layout Enumerate
31182
31183 \change_deleted 564990737 1670317155
31184 remove the comment lines before the 
31185 \family typewriter
31186
31187 \backslash
31188 documentclass
31189 \family default
31190  command,
31191 \end_layout
31192
31193 \begin_layout Enumerate
31194
31195 \change_deleted 564990737 1670317155
31196 remove everything between (and including) the 
31197 \family typewriter
31198
31199 \backslash
31200 makeatletter
31201 \family default
31202  and 
31203 \family typewriter
31204
31205 \backslash
31206 makeatother
31207 \family default
31208  commands,
31209  except for any commands you specifically put into the \SpecialChar LaTeX
31210  preamble.
31211 \end_layout
31212
31213 \begin_layout Standard
31214
31215 \change_deleted 564990737 1670317155
31216 Save the resulting 
31217 \family typewriter
31218 .tex
31219 \family default
31220  file.
31221 \end_layout
31222
31223 \end_deeper
31224 \begin_layout Enumerate
31225
31226 \change_deleted 564990737 1670317155
31227 Run the 
31228 \family typewriter
31229 .tex
31230 \family default
31231  file through \SpecialChar LaTeX
31232  as many times as necessary (usually up to three).
31233 \end_layout
31234
31235 \begin_layout Enumerate
31236
31237 \change_deleted 564990737 1670317155
31238 View the resulting 
31239 \family typewriter
31240 .dvi
31241 \family default
31242  document using,
31243  e.
31244 \begin_inset space \thinspace{}
31245 \end_inset
31246
31247 g.
31248 \begin_inset space \space{}
31249 \end_inset
31250
31251
31252 \family sans
31253 xdvi
31254 \family default
31255 ,
31256  and check if everything is OK (it should,
31257  if you didn't make any mistake).
31258 \end_layout
31259
31260 \begin_layout Standard
31261
31262 \change_deleted 564990737 1670317155
31263 \begin_inset Quotes eld
31264 \end_inset
31265
31266 Peculiarities
31267 \begin_inset Quotes erd
31268 \end_inset
31269
31270  of the Kluwer package
31271 \begin_inset CommandInset label
31272 LatexCommand label
31273 name "subsec:kluwer_peculiarities"
31274
31275 \end_inset
31276
31277
31278 \end_layout
31279
31280 \begin_layout Standard
31281
31282 \change_deleted 564990737 1670317155
31283 The Kluwer package has the following 
31284 \begin_inset Quotes eld
31285 \end_inset
31286
31287 peculiarities
31288 \begin_inset Quotes erd
31289 \end_inset
31290
31291 .
31292 \end_layout
31293
31294 \begin_layout Enumerate
31295
31296 \change_deleted 564990737 1670317155
31297 It is possible to write multiple articles in the same \SpecialChar LaTeX
31298  file
31299 \begin_inset Foot
31300 status collapsed
31301
31302 \begin_layout Plain Layout
31303 I can't imagine any good reason to do this.
31304 \end_layout
31305
31306 \end_inset
31307
31308 .
31309  Each article must be included in the environment 
31310 \begin_inset Quotes eld
31311 \end_inset
31312
31313 article
31314 \begin_inset Quotes erd
31315 \end_inset
31316
31317 .
31318  Unfortunately,
31319  this environment cannot be omitted,
31320  even if you write just one article.
31321  Therefore,
31322  each article starts with the command 
31323 \family typewriter
31324
31325 \backslash
31326 begin{article}
31327 \family default
31328  and,
31329  obviously,
31330  ends with the command 
31331 \family typewriter
31332
31333 \backslash
31334 end{article}
31335 \family default
31336 .
31337  Although this can be implemented in \SpecialChar LyX
31338 ,
31339  I didn't included it,
31340  since it looks ugly and can confuse the novice user.
31341  Therefore,
31342  you need to enter them directly and mark them as \SpecialChar LaTeX
31343  code (the well-known 
31344 \begin_inset Quotes eld
31345 \end_inset
31346
31347 \SpecialChar TeX
31348  code
31349 \begin_inset Quotes erd
31350 \end_inset
31351
31352 ).
31353 \end_layout
31354
31355 \begin_layout Enumerate
31356
31357 \change_deleted 564990737 1670317155
31358 Information given at the beginning of the article (i.
31359 \begin_inset space \thinspace{}
31360 \end_inset
31361
31362 e.
31363 \begin_inset space \space{}
31364 \end_inset
31365
31366 title,
31367  subtitle,
31368  author,
31369  institution,
31370  running title,
31371  running author,
31372  abstract and keywords) must be included in an environment called 
31373 \begin_inset Quotes eld
31374 \end_inset
31375
31376 opening
31377 \begin_inset Quotes erd
31378 \end_inset
31379
31380 .
31381  This is not implemented in \SpecialChar LyX
31382 ,
31383  so you must enter title,
31384  subtitle etc.
31385 \begin_inset space ~
31386 \end_inset
31387
31388 between two \SpecialChar TeX
31389  code lines (
31390 \family typewriter
31391
31392 \backslash
31393 begin{opening}
31394 \family default
31395  and 
31396 \family typewriter
31397
31398 \backslash
31399 end{opening}
31400 \family default
31401 ).
31402 \end_layout
31403
31404 \begin_layout Enumerate
31405
31406 \change_deleted 564990737 1670317155
31407 According to the user manual,
31408  the label of each bibliography item must be written as 
31409 \family typewriter
31410
31411 \backslash
31412 protect
31413 \backslash
31414 citeauthoryear{
31415 \family default
31416 \emph on
31417 author(s)
31418 \family typewriter
31419 \emph default
31420 }{
31421 \family default
31422 \emph on
31423 year
31424 \family typewriter
31425 \emph default
31426 }
31427 \family default
31428 .
31429 \end_layout
31430
31431 \begin_layout Standard
31432
31433 \change_deleted 564990737 1670317155
31434 The 
31435 \family typewriter
31436 kluwer.lyx
31437 \family default
31438  template takes care of all these 
31439 \begin_inset Quotes eld
31440 \end_inset
31441
31442 peculiarities
31443 \begin_inset Quotes erd
31444 \end_inset
31445
31446 .
31447  If you start a new paper using this template you don't need to do anything special.
31448  Just 
31449 \end_layout
31450
31451 \begin_layout Enumerate
31452
31453 \change_deleted 564990737 1670317155
31454 don't delete the \SpecialChar TeX
31455  code included in the template,
31456  and
31457 \end_layout
31458
31459 \begin_layout Enumerate
31460
31461 \change_deleted 564990737 1670317155
31462 copy the example bibliography item included in the template and modify it as necessary to enter new bibliography items.
31463 \end_layout
31464
31465 \begin_layout Standard
31466
31467 \change_deleted 564990737 1671097446
31468 Paper
31469 \end_layout
31470
31471 \begin_layout Standard
31472
31473 \change_deleted 564990737 1671097446
31474 The document class 
31475 \family sans
31476 paper
31477 \family default
31478  provides an alternative to the standard 
31479 \family sans
31480 article
31481 \family default
31482  class.
31483  It provides similar functionality,
31484  but you might prefer this layout with sans serif sections,
31485  headings,
31486  and more.
31487 \end_layout
31488
31489 \begin_layout Standard
31490
31491 \change_deleted 564990737 1671097446
31492 Springer Journals (
31493 \family sans
31494 svjour
31495 \family default
31496 )
31497 \end_layout
31498
31499 \begin_layout Standard
31500
31501 \change_deleted 564990737 1671097446
31502 by 
31503 \noun on
31504 Martin Vermeer
31505 \end_layout
31506
31507 \begin_layout Standard
31508
31509 \change_deleted 564990737 1671097446
31510 Description
31511 \end_layout
31512
31513 \begin_layout Standard
31514
31515 \change_deleted 564990737 1671097446
31516 These are the layout files for some of the journal formats used by Springer Verlag and listed on 
31517 \begin_inset Flex URL
31518 status collapsed
31519
31520 \begin_layout Plain Layout
31521
31522 http://www.springer.de/author/tex/help-journals.html
31523 \end_layout
31524
31525 \end_inset
31526
31527 ,
31528  where you should also go to fetch the class files (yes,
31529  these are \SpecialChar LaTeX2e
31530  now!).
31531  It is a modular system:
31532  the things common to all journals are implemented in 
31533 \family typewriter
31534 svjour.inc
31535 \family default
31536 ,
31537  which journal-specific layout files (such as,
31538  e.
31539 \begin_inset space \thinspace{}
31540 \end_inset
31541
31542 g.
31543 \begin_inset space \space{}
31544 \end_inset
31545
31546
31547 \family typewriter
31548 svjog.layout
31549 \family default
31550  for Journal of Geodesy) can include.
31551 \end_layout
31552
31553 \begin_layout Standard
31554
31555 \change_deleted 564990737 1671097446
31556 This means that implementing support for any other Springer journal on this list is as simple as writing your own 
31557 \family typewriter
31558 sv
31559 \family default
31560 <myjournal>
31561 \family typewriter
31562 .layout
31563 \family default
31564  file following the outline given in 
31565 \family typewriter
31566 svjog.layout
31567 \family default
31568 .
31569  
31570 \end_layout
31571
31572 \begin_layout Standard
31573
31574 \change_deleted 564990737 1671097446
31575 It is reasonably well tested only for the Journal of Geodesy.
31576  
31577 \family typewriter
31578 svjour
31579 \family default
31580  and 
31581 \family typewriter
31582 svjog
31583 \family default
31584  come with the standard \SpecialChar LyX
31585  distribution.
31586  Install the relevant class file (downloaded from Springer) in a proper directory,
31587  reconfigure \SpecialChar LaTeX
31588  (in the te\SpecialChar TeX
31589  case by running 
31590 \family typewriter
31591 texhash
31592 \family default
31593 ,
31594  as root if necessary —
31595  doesn't \SpecialChar LyX
31596  take care of this?),
31597  reconfigure \SpecialChar LyX
31598  and it should work.
31599 \end_layout
31600
31601 \begin_layout Standard
31602
31603 \change_deleted 564990737 1671097446
31604 New styles
31605 \end_layout
31606
31607 \begin_layout Standard
31608
31609 \change_deleted 564990737 1671097446
31610 A large number of theorem-like styles —
31611  
31612 \family sans
31613 Claim,
31614  Conjecture,
31615
31616 \family default
31617  
31618 \family sans
31619 \SpecialChar ldots
31620 Theorem
31621 \family default
31622 .
31623 \end_layout
31624
31625 \begin_layout Standard
31626
31627 \change_deleted 564990737 1671097446
31628
31629 \family sans
31630 Headnote,
31631  Dedication,
31632  Subtitle,
31633  Running_\SpecialChar LaTeX
31634 _Title,
31635  Author_Running,
31636  Institute,
31637  Mail,
31638  Offprints,
31639  Keywords,
31640  Acknowledgements,
31641  Acknowledgement
31642 \family default
31643 .
31644  See the Springer class file documentation for details.
31645 \end_layout
31646
31647 \begin_layout Standard
31648
31649 \change_deleted 564990737 1671097446
31650 Supported journals
31651 \end_layout
31652
31653 \begin_layout Itemize
31654
31655 \change_deleted 564990737 1671097446
31656
31657 \emph on
31658 Journal of Geodesy
31659 \emph default
31660 :
31661  
31662 \family typewriter
31663 svjog.layout
31664 \family default
31665  —
31666  Martin Vermeer
31667 \end_layout
31668
31669 \begin_layout Itemize
31670
31671 \change_deleted 564990737 1671097446
31672
31673 \emph on
31674 Probability Theory and Related Fields
31675 \emph default
31676 :
31677  
31678 \family typewriter
31679 svprobth.layout
31680 \family default
31681  —
31682  Jean-Marc Lasgouttes
31683 \end_layout
31684
31685 \begin_layout Standard
31686
31687 \change_deleted 564990737 1671097446
31688 Add your own,
31689  it isn't so hard!
31690 \end_layout
31691
31692 \begin_layout Standard
31693
31694 \change_deleted 564990737 1671097446
31695 Credits
31696 \end_layout
31697
31698 \begin_layout Standard
31699
31700 \change_deleted 564990737 1671097446
31701 These files are partly based on the older 
31702 \family typewriter
31703 ejour2.layout
31704 \family default
31705 ,
31706  which was again based on a tinkered-with version of an old \SpecialChar LaTeX
31707  2.09 style file from Springer.
31708  All this,
31709  and the 
31710 \family typewriter
31711 ejour2
31712 \family default
31713  layout,
31714  are now defunct.
31715  Jean-Marc Lasgouttes helped out big in making me find my way around the \SpecialChar LyX
31716  layout file mechanism.
31717 \end_layout
31718
31719 \begin_layout Standard
31720
31721 \change_deleted 564990737 1671097446
31722 Bugs
31723 \end_layout
31724
31725 \begin_layout Standard
31726
31727 \change_deleted 564990737 1671097446
31728 Probably.
31729  But probably less than in the old hacked-\SpecialChar LaTeX
31730  
31731 \family typewriter
31732 ejour2
31733 \family default
31734 .
31735 \end_layout
31736
31737 \begin_layout Chapter
31738 \SpecialChar LyX
31739  Features needing Extra Software
31740 \end_layout
31741
31742 \begin_layout Section
31743 Checking \SpecialChar TeX
31744
31745 \end_layout
31746
31747 \begin_layout Standard
31748 by 
31749 \noun on
31750 Asger Alstrup
31751 \end_layout
31752
31753 \begin_layout Subsection
31754 Introduction
31755 \end_layout
31756
31757 \begin_layout Standard
31758 If you have the 
31759 \family typewriter
31760 chktex
31761 \family default
31762  program installed
31763 \begin_inset Foot
31764 status collapsed
31765
31766 \begin_layout Plain Layout
31767
31768 \family typewriter
31769 chktex
31770 \family default
31771  is not yet available when you are using the \SpecialChar LaTeX
31772  distribution MiK\SpecialChar TeX
31773 .
31774 \end_layout
31775
31776 \end_inset
31777
31778 ,
31779  you'll find in the 
31780 \family sans
31781 Tools
31782 \family default
31783  menu the entry:
31784  
31785 \family sans
31786 Check
31787 \begin_inset space ~
31788 \end_inset
31789
31790 TeX
31791 \family default
31792 .
31793  You can get 
31794 \family typewriter
31795 chktex
31796 \family default
31797  from CTAN,
31798 \begin_inset Newline newline
31799 \end_inset
31800
31801
31802 \begin_inset CommandInset href
31803 LatexCommand href
31804 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
31805 literal "false"
31806
31807 \end_inset
31808
31809 .
31810 \end_layout
31811
31812 \begin_layout Standard
31813 The 
31814 \family sans
31815 Chk\SpecialChar TeX
31816
31817 \family default
31818  package is a program that was written by 
31819 \begin_inset Flex Noun
31820 status collapsed
31821
31822 \begin_layout Plain Layout
31823 Jens T.
31824 \begin_inset space ~
31825 \end_inset
31826
31827 Berger Thielemann
31828 \end_layout
31829
31830 \end_inset
31831
31832  in frustration because some constructs in \SpecialChar LaTeX
31833  are sometimes non-intuitive,
31834  and easy to forget.
31835  The program runs over your \SpecialChar LaTeX
31836  file,
31837  checks the integrity of the file,
31838  and flags some common errors.
31839  In other technical words,
31840  it is 
31841 \family typewriter
31842 lint
31843 \family default
31844  for \SpecialChar LaTeX
31845 .
31846 \end_layout
31847
31848 \begin_layout Standard
31849 Well,
31850  what is a syntax checker doing in \SpecialChar LyX
31851  which is supposed to produce correct \SpecialChar LaTeX
31852  anyways?
31853  The answer is simple:
31854  Just as 
31855 \family typewriter
31856 Lint
31857 \family default
31858  not only checks the 
31859 \emph on
31860 syntax
31861 \emph default
31862  of C programs,
31863  but also does 
31864 \emph on
31865 semantic
31866 \emph default
31867  checks for type-errors,
31868  
31869 \family sans
31870 Chk\SpecialChar TeX
31871
31872 \family default
31873  catches some common 
31874 \emph on
31875 typographic
31876 \emph default
31877  errors,
31878  in addition to the syntactical ones.
31879  Specifically,
31880  
31881 \family sans
31882 Chk\SpecialChar TeX
31883
31884 \family default
31885  is capable of detecting several common errors,
31886  such as
31887 \end_layout
31888
31889 \begin_layout Itemize
31890 Ellipsis detection:
31891 \begin_inset Newline newline
31892 \end_inset
31893
31894 Use \SpecialChar ldots
31895  instead of ...
31896 \end_layout
31897
31898 \begin_layout Itemize
31899 No space in front of/after parenthesis:
31900 \begin_inset Newline newline
31901 \end_inset
31902
31903 ( wrong spacing )
31904 \end_layout
31905
31906 \begin_layout Itemize
31907 Enforcement of normal space after common abbreviations:
31908 \begin_inset Newline newline
31909 \end_inset
31910
31911 e.
31912 \begin_inset space \thinspace{}
31913 \end_inset
31914
31915 g.
31916 \begin_inset space \space{}
31917 \end_inset
31918
31919 is too wide spacing.
31920 \end_layout
31921
31922 \begin_layout Itemize
31923 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
31924 \begin_inset Newline newline
31925 \end_inset
31926
31927 This is a TEST.
31928  And this is wrong spacing.
31929 \end_layout
31930
31931 \begin_layout Itemize
31932 Space in front of labels and similar commands:
31933 \begin_inset Newline newline
31934 \end_inset
31935
31936 The label should stick right up to the text to avoid falling to a wrong page.
31937  
31938 \begin_inset CommandInset label
31939 LatexCommand label
31940 name "sec:chktex"
31941
31942 \end_inset
31943
31944  
31945 \begin_inset Foot
31946 status collapsed
31947
31948 \begin_layout Plain Layout
31949 This footnote is in danger of falling off to a wrong page
31950 \end_layout
31951
31952 \end_inset
31953
31954  The label is separated too much.
31955 \end_layout
31956
31957 \begin_layout Itemize
31958 Space in front of references,
31959  instead of hard spaces:
31960 \begin_inset Newline newline
31961 \end_inset
31962
31963 If you have bad luck,
31964  the text will break right between the referenced text and reference number,
31965  and that's a pity.
31966  See section 
31967 \begin_inset CommandInset ref
31968 LatexCommand ref
31969 reference "sec:chktex"
31970 nolink "false"
31971
31972 \end_inset
31973
31974 .
31975 \end_layout
31976
31977 \begin_layout Itemize
31978 Use of 
31979 \begin_inset Quotes eld
31980 \end_inset
31981
31982 x
31983 \begin_inset Quotes erd
31984 \end_inset
31985
31986  instead of 
31987 \begin_inset Formula $\times$
31988 \end_inset
31989
31990  between numbers:
31991 \begin_inset Newline newline
31992 \end_inset
31993
31994 2x2 looks cheap compared to 
31995 \begin_inset Formula $2\times2$
31996 \end_inset
31997
31998 .
31999 \end_layout
32000
32001 \begin_layout Standard
32002 and more \SpecialChar ldots
32003  It is an invaluable tool when you are 
32004 \begin_inset Quotes eld
32005 \end_inset
32006
32007 finishing up
32008 \begin_inset Quotes erd
32009 \end_inset
32010
32011  your document before printing,
32012  and you should run it right after the obligatory spelling check,
32013  and before you go fine tuning the typesetting.
32014 \end_layout
32015
32016 \begin_layout Subsection
32017 How to use it
32018 \end_layout
32019
32020 \begin_layout Standard
32021 If you have the program installed,
32022  usage is as simple as choosing 
32023 \family sans
32024 Tools\SpecialChar menuseparator
32025 Check
32026 \begin_inset space ~
32027 \end_inset
32028
32029 TeX
32030 \family default
32031 .
32032  This will make \SpecialChar LyX
32033  generate a \SpecialChar LaTeX
32034  file of your document,
32035  start 
32036 \family sans
32037 Chk\SpecialChar TeX
32038
32039 \family default
32040  to check it,
32041  and then make \SpecialChar LyX
32042  insert 
32043 \begin_inset Quotes eld
32044 \end_inset
32045
32046 error boxes
32047 \begin_inset Quotes erd
32048 \end_inset
32049
32050  with the warnings from 
32051 \family sans
32052 Chk\SpecialChar TeX
32053
32054 \family default
32055 ,
32056  if there were any.
32057  The warnings will be placed close to the point of the mistake,
32058  and you can quickly find them by using the 
32059 \family sans
32060 Navigate\SpecialChar menuseparator
32061 Error
32062 \family default
32063  menu item,
32064  or the shortcut key 
32065 \family sans
32066 C-g
32067 \family default
32068  from the default 
32069 \family typewriter
32070 cua
32071 \family default
32072  bind file.
32073  Open the error boxes by clicking on them with the mouse,
32074  or use the shortcut key 
32075 \family sans
32076 C-i
32077 \family default
32078  from 
32079 \family typewriter
32080 cua
32081 \family default
32082  bindings,
32083  or the corresponding 
32084 \family sans
32085 C-o
32086 \family default
32087  for the alternate 
32088 \family typewriter
32089 emacs
32090 \family default
32091  bind file.
32092  Read the warning and correct the mistake,
32093  if it is a mistake.
32094  If you have trouble understanding what the warning is about,
32095  you can safely ignore it.
32096  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
32097 \family sans
32098 Chk\SpecialChar TeX
32099
32100 \family default
32101 ,
32102  and this gap can make some warnings seem arcane or just plain silly.
32103 \end_layout
32104
32105 \begin_layout Standard
32106 This document is an excellent testing bed for the feature,
32107  and it should provide quite a few warnings for you to fiddle with.
32108  Since computers are only so smart,
32109  expect most of the warnings to be false alarms,
32110  though.
32111 \end_layout
32112
32113 \begin_layout Subsection
32114 How to fine tune it
32115 \end_layout
32116
32117 \begin_layout Standard
32118 Sometimes,
32119  you'll find that 
32120 \family sans
32121 Chk\SpecialChar TeX
32122
32123 \family default
32124  makes more noise than suits your mood.
32125  Then you can choose not to use it,
32126  wait until your mood changes,
32127  or try to customize 
32128 \family sans
32129 Chk\SpecialChar TeX
32130
32131 \family default
32132  to get better along with you.
32133 \end_layout
32134
32135 \begin_layout Standard
32136 Although 
32137 \family sans
32138 Chk\SpecialChar TeX
32139
32140 \family default
32141  
32142 \emph on
32143 is
32144 \emph default
32145  very configurable and extensible,
32146  you should not expect to solve all problems with 
32147 \family sans
32148 Chk\SpecialChar TeX
32149
32150 \family default
32151  in \SpecialChar LyX
32152  this way.
32153  Since \SpecialChar LyX
32154  has to generate a somewhat special \SpecialChar LaTeX
32155  file to be able to match the line numbers from the 
32156 \family sans
32157 Chk\SpecialChar TeX
32158
32159 \family default
32160  output
32161 \begin_inset Foot
32162 status collapsed
32163
32164 \begin_layout Plain Layout
32165 You can inspect the specific output from 
32166 \family sans
32167 chktex
32168 \family default
32169  by using 
32170 \family sans
32171 Document\SpecialChar menuseparator
32172 \SpecialChar LaTeX
32173
32174 \begin_inset space ~
32175 \end_inset
32176
32177 Log
32178 \family default
32179  right after a 
32180 \family sans
32181 chktex
32182 \family default
32183  run.
32184 \end_layout
32185
32186 \end_inset
32187
32188  to the internal document structure,
32189  some of the warnings will not appear correctly.
32190  There are two things you can do about this:
32191 \end_layout
32192
32193 \begin_layout Itemize
32194 Fine tune the 
32195 \family sans
32196 Chk\SpecialChar TeX
32197
32198 \family default
32199  invocation command line in 
32200 \begin_inset Flex Noun
32201 status collapsed
32202
32203 \begin_layout Plain Layout
32204 Tools\SpecialChar menuseparator
32205 Preferences\SpecialChar menuseparator
32206 Output\SpecialChar menuseparator
32207 LaTeX\SpecialChar menuseparator
32208 CheckTeX command
32209 \end_layout
32210
32211 \end_inset
32212
32213 ,
32214  or the global 
32215 \family sans
32216 Chk\SpecialChar TeX
32217
32218 \family default
32219  installation configuration file (usually with the file 
32220 \family typewriter
32221 chktexrc
32222 \family default
32223 ).
32224  See below to learn what warnings can be enabled and disabled on the command line.
32225 \end_layout
32226
32227 \begin_layout Itemize
32228 Export your document as a raw \SpecialChar LaTeX
32229  file using 
32230 \family sans
32231 File\SpecialChar menuseparator
32232 Export\SpecialChar menuseparator
32233 \SpecialChar LaTeX
32234
32235 \family default
32236  and run 
32237 \family typewriter
32238 chktex
32239 \family default
32240  manually on that.
32241  Invoked in this way,
32242  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
32243 ,
32244  but with a little patience,
32245  you should be able to do it.
32246 \end_layout
32247
32248 \begin_layout Standard
32249 Here follows the warning messages that can be enabled and disabled in 
32250 \family sans
32251 Preferences
32252 \family default
32253 .
32254  Use 
32255 \family typewriter
32256 -n#
32257 \family default
32258  to disable a warning,
32259  and 
32260 \family typewriter
32261 -w#
32262 \family default
32263  to enable a warning.
32264  The emphasized entries are disabled by default,
32265  because the default is "
32266 \family typewriter
32267 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
32268 \family default
32269 ".
32270 \end_layout
32271
32272 \begin_layout Standard
32273 Notice that you should only use the options that enable and disable warnings,
32274  because \SpecialChar LyX
32275  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
32276 \family typewriter
32277 chktex
32278 \family default
32279 .
32280 \end_layout
32281
32282 \begin_layout Enumerate
32283
32284 \size small
32285 \emph on
32286 Command terminated with space.
32287 \end_layout
32288
32289 \begin_layout Enumerate
32290
32291 \size small
32292 Non-breaking space (
32293 \begin_inset Quotes eld
32294 \end_inset
32295
32296
32297 \family typewriter
32298 ~
32299 \family default
32300
32301 \begin_inset Quotes erd
32302 \end_inset
32303
32304 ) should have been used.
32305 \end_layout
32306
32307 \begin_layout Enumerate
32308
32309 \size small
32310 \emph on
32311 You should enclose the previous parenthesis with 
32312 \begin_inset Quotes eld
32313 \end_inset
32314
32315
32316 \family typewriter
32317 {}
32318 \family default
32319
32320 \begin_inset Quotes erd
32321 \end_inset
32322
32323 .
32324 \end_layout
32325
32326 \begin_layout Enumerate
32327
32328 \size small
32329 Italic correction (
32330 \begin_inset Quotes eld
32331 \end_inset
32332
32333
32334 \family typewriter
32335
32336 \backslash
32337 /
32338 \family default
32339
32340 \begin_inset Quotes erd
32341 \end_inset
32342
32343 ) found in non-italic buffer.
32344 \end_layout
32345
32346 \begin_layout Enumerate
32347
32348 \size small
32349 Italic correction (
32350 \begin_inset Quotes eld
32351 \end_inset
32352
32353
32354 \family typewriter
32355
32356 \backslash
32357 /
32358 \family default
32359
32360 \begin_inset Quotes erd
32361 \end_inset
32362
32363 ) found more than once.
32364 \end_layout
32365
32366 \begin_layout Enumerate
32367
32368 \size small
32369 \emph on
32370 No italic correction (
32371 \begin_inset Quotes eld
32372 \end_inset
32373
32374
32375 \family typewriter
32376
32377 \backslash
32378 /
32379 \family default
32380
32381 \begin_inset Quotes erd
32382 \end_inset
32383
32384 ) found.
32385 \end_layout
32386
32387 \begin_layout Enumerate
32388
32389 \size small
32390 Accent command 
32391 \begin_inset Quotes eld
32392 \end_inset
32393
32394
32395 \family typewriter
32396 cmd
32397 \family default
32398
32399 \begin_inset Quotes erd
32400 \end_inset
32401
32402  needs use of 
32403 \begin_inset Quotes eld
32404 \end_inset
32405
32406
32407 \family typewriter
32408 cmd
32409 \family default
32410
32411 \begin_inset Quotes erd
32412 \end_inset
32413
32414 .
32415 \end_layout
32416
32417 \begin_layout Enumerate
32418
32419 \size small
32420 Wrong length of dash may have been used.
32421 \end_layout
32422
32423 \begin_layout Enumerate
32424
32425 \size small
32426 \emph on
32427 \begin_inset Quotes eld
32428 \end_inset
32429
32430
32431 \family typewriter
32432 %s
32433 \family default
32434
32435 \begin_inset Quotes erd
32436 \end_inset
32437
32438  expected,
32439  found 
32440 \begin_inset Quotes eld
32441 \end_inset
32442
32443
32444 \family typewriter
32445 %s
32446 \family default
32447
32448 \begin_inset Quotes erd
32449 \end_inset
32450
32451 .
32452 \end_layout
32453
32454 \begin_layout Enumerate
32455
32456 \size small
32457 Solo 
32458 \begin_inset Quotes eld
32459 \end_inset
32460
32461
32462 \family typewriter
32463 %s
32464 \family default
32465
32466 \begin_inset Quotes erd
32467 \end_inset
32468
32469  found.
32470 \end_layout
32471
32472 \begin_layout Enumerate
32473
32474 \size small
32475 You should use 
32476 \begin_inset Quotes eld
32477 \end_inset
32478
32479
32480 \family typewriter
32481 %s
32482 \family default
32483
32484 \begin_inset Quotes erd
32485 \end_inset
32486
32487  to achieve an ellipsis.
32488 \end_layout
32489
32490 \begin_layout Enumerate
32491
32492 \size small
32493 Inter-word spacing (
32494 \begin_inset Quotes eld
32495 \end_inset
32496
32497
32498 \family typewriter
32499
32500 \backslash
32501
32502 \family default
32503  
32504 \begin_inset Quotes eld
32505 \end_inset
32506
32507 ) should perhaps be used.
32508 \end_layout
32509
32510 \begin_layout Enumerate
32511
32512 \size small
32513 Inter-sentence spacing (
32514 \begin_inset Quotes eld
32515 \end_inset
32516
32517
32518 \family typewriter
32519
32520 \backslash
32521 @
32522 \family default
32523
32524 \begin_inset Quotes erd
32525 \end_inset
32526
32527 ) should perhaps be used.
32528 \end_layout
32529
32530 \begin_layout Enumerate
32531
32532 \size small
32533 Could not find argument for command.
32534 \end_layout
32535
32536 \begin_layout Enumerate
32537
32538 \size small
32539 No match found for 
32540 \begin_inset Quotes eld
32541 \end_inset
32542
32543
32544 \family typewriter
32545 %s
32546 \family default
32547
32548 \begin_inset Quotes erd
32549 \end_inset
32550
32551 .
32552 \end_layout
32553
32554 \begin_layout Enumerate
32555
32556 \size small
32557 Math mode still on at end of \SpecialChar LaTeX
32558  file.
32559 \end_layout
32560
32561 \begin_layout Enumerate
32562
32563 \size small
32564 Number of 
32565 \begin_inset Quotes eld
32566 \end_inset
32567
32568
32569 \family typewriter
32570 char
32571 \family default
32572
32573 \begin_inset Quotes erd
32574 \end_inset
32575
32576  doesn't match the number of 
32577 \begin_inset Quotes eld
32578 \end_inset
32579
32580
32581 \family typewriter
32582 char
32583 \family default
32584
32585 \begin_inset Quotes erd
32586 \end_inset
32587
32588 .
32589 \end_layout
32590
32591 \begin_layout Enumerate
32592
32593 \size small
32594 You should use either 
32595 \family typewriter
32596
32597 \begin_inset Quotes eld
32598 \end_inset
32599
32600
32601 \family default
32602  or 
32603 \family typewriter
32604
32605 \begin_inset Quotes erd
32606 \end_inset
32607
32608
32609 \family default
32610  as an alternative to 
32611 \begin_inset Quotes eld
32612 \end_inset
32613
32614
32615 \family typewriter
32616 "
32617 \family default
32618
32619 \begin_inset Quotes erd
32620 \end_inset
32621
32622 .
32623 \end_layout
32624
32625 \begin_layout Enumerate
32626
32627 \size small
32628 You should use "
32629 \family typewriter
32630 '
32631 \family default
32632 " (ASCII 39) instead of "
32633 \family typewriter
32634 ´
32635 \family default
32636 " (ASCII 180).
32637 \end_layout
32638
32639 \begin_layout Enumerate
32640
32641 \size small
32642 User-specified pattern found.
32643 \end_layout
32644
32645 \begin_layout Enumerate
32646
32647 \size small
32648 This command might not be intended.
32649 \end_layout
32650
32651 \begin_layout Enumerate
32652
32653 \size small
32654 \emph on
32655 Comment displayed.
32656 \end_layout
32657
32658 \begin_layout Enumerate
32659
32660 \size small
32661 Either 
32662 \family typewriter
32663 ''
32664 \backslash
32665 ,'
32666 \family default
32667  or 
32668 \family typewriter
32669 '
32670 \backslash
32671 ,''
32672 \family default
32673  will look better.
32674 \end_layout
32675
32676 \begin_layout Enumerate
32677
32678 \size small
32679 Delete this space to maintain correct page references.
32680 \end_layout
32681
32682 \begin_layout Enumerate
32683
32684 \size small
32685 \emph on
32686 You might wish to put this between a pair of 
32687 \begin_inset Quotes eld
32688 \end_inset
32689
32690
32691 \family typewriter
32692 {}
32693 \family default
32694
32695 \begin_inset Quotes erd
32696 \end_inset
32697
32698 .
32699 \end_layout
32700
32701 \begin_layout Enumerate
32702
32703 \size small
32704 You ought to remove spaces in front of punctuation.
32705 \end_layout
32706
32707 \begin_layout Enumerate
32708
32709 \size small
32710 Could not execute \SpecialChar LaTeX
32711  command.
32712 \end_layout
32713
32714 \begin_layout Enumerate
32715
32716 \size small
32717 Don't use 
32718 \family typewriter
32719
32720 \backslash
32721 /
32722 \family default
32723  in front of small punctuation.
32724 \end_layout
32725
32726 \begin_layout Enumerate
32727
32728 \family typewriter
32729 \size small
32730 $
32731 \backslash
32732 times$
32733 \family default
32734  may look prettier here.
32735 \end_layout
32736
32737 \begin_layout Enumerate
32738
32739 \size small
32740 \emph on
32741 Multiple spaces detected in output.
32742 \end_layout
32743
32744 \begin_layout Enumerate
32745
32746 \size small
32747 This text may be ignored.
32748 \end_layout
32749
32750 \begin_layout Enumerate
32751
32752 \size small
32753 Use 
32754 \family typewriter
32755
32756 \begin_inset Quotes eld
32757 \end_inset
32758
32759
32760 \family default
32761  to begin quotation,
32762  not 
32763 \family typewriter
32764 '
32765 \family default
32766 .
32767 \end_layout
32768
32769 \begin_layout Enumerate
32770
32771 \size small
32772 Use 
32773 \family typewriter
32774 '
32775 \family default
32776  to end quotation,
32777  not 
32778 \family typewriter
32779
32780 \begin_inset Quotes eld
32781 \end_inset
32782
32783
32784 \family default
32785 .
32786 \end_layout
32787
32788 \begin_layout Enumerate
32789
32790 \size small
32791 Don't mix quotes.
32792 \end_layout
32793
32794 \begin_layout Enumerate
32795
32796 \size small
32797 You should perhaps use 
32798 \begin_inset Quotes eld
32799 \end_inset
32800
32801
32802 \family typewriter
32803 cmd
32804 \family default
32805
32806 \begin_inset Quotes erd
32807 \end_inset
32808
32809  instead.
32810 \end_layout
32811
32812 \begin_layout Enumerate
32813
32814 \size small
32815 You should put a space in front of/after parenthesis.
32816 \end_layout
32817
32818 \begin_layout Enumerate
32819
32820 \size small
32821 You should avoid spaces in front of/after parenthesis.
32822 \end_layout
32823
32824 \begin_layout Enumerate
32825
32826 \size small
32827 \emph on
32828 You should not use punctuation in front of/after quotes.
32829 \end_layout
32830
32831 \begin_layout Enumerate
32832
32833 \size small
32834 Double space found.
32835 \end_layout
32836
32837 \begin_layout Enumerate
32838
32839 \size small
32840 You should put punctuation outside inner/inside display math mode.
32841 \end_layout
32842
32843 \begin_layout Enumerate
32844
32845 \size small
32846 You ought to not use primitive \SpecialChar TeX
32847  in \SpecialChar LaTeX
32848  code.
32849 \end_layout
32850
32851 \begin_layout Enumerate
32852
32853 \size small
32854 You should remove spaces in front of 
32855 \begin_inset Quotes eld
32856 \end_inset
32857
32858
32859 \family typewriter
32860 %s
32861 \family default
32862
32863 \begin_inset Quotes erd
32864 \end_inset
32865
32866
32867 \end_layout
32868
32869 \begin_layout Enumerate
32870
32871 \size small
32872 \begin_inset Quotes eld
32873 \end_inset
32874
32875
32876 \family typewriter
32877 %s
32878 \family default
32879
32880 \begin_inset Quotes erd
32881 \end_inset
32882
32883  is normally not followed by 
32884 \begin_inset Quotes eld
32885 \end_inset
32886
32887
32888 \family typewriter
32889 %c
32890 \family default
32891
32892 \begin_inset Quotes erd
32893 \end_inset
32894
32895 .
32896 \end_layout
32897
32898 \begin_layout Standard
32899 In later versions of \SpecialChar LyX
32900 ,
32901  we hope to provide a more complete interface to this tool (and it's smaller cousin 
32902 \family typewriter
32903 lacheck
32904 \family default
32905 ) to exploit the full power of it.
32906  But it's not exactly useless as it is now:
32907  go try it on one of your existing documents of a certain length and be surprised.
32908 \end_layout
32909
32910 \begin_layout Section
32911 Version Control in \SpecialChar LyX
32912
32913 \end_layout
32914
32915 \begin_layout Standard
32916 by
32917 \noun on
32918  Lars Gullik Bjønnes 
32919 \noun default
32920 and 
32921 \noun on
32922 Pavel Sanda
32923 \end_layout
32924
32925 \begin_layout Subsection
32926 Introduction
32927 \end_layout
32928
32929 \begin_layout Standard
32930 \SpecialChar LyX
32931  supports some of the most basic RCS/CVS/SVN/GIT commands.
32932  If you need something a bit more sophisticated you will have to do that manually in a terminal.
32933 \end_layout
32934
32935 \begin_layout Standard
32936 Also note that CVS support is not as good as subversion support,
32937  so we advise using SVN instead.
32938  A good place to start learning Subversion is the SVN Book
32939 \begin_inset Foot
32940 status collapsed
32941
32942 \begin_layout Plain Layout
32943 \begin_inset CommandInset href
32944 LatexCommand href
32945 target "http://svnbook.red-bean.com/"
32946 literal "false"
32947
32948 \end_inset
32949
32950
32951 \end_layout
32952
32953 \end_inset
32954
32955 .
32956  In the case of RCS you should read 
32957 \begin_inset Quotes eld
32958 \end_inset
32959
32960 rcsintro
32961 \begin_inset Quotes erd
32962 \end_inset
32963
32964  (a man file,
32965  read it with 
32966 \family typewriter
32967 man rcsintro
32968 \family default
32969 ).
32970  This file describes all the basic features of RCS.
32971  You should especially notice the comment about a RCS directory,
32972  and the notion of a master RCS file (the file ending in 
32973 \family typewriter
32974 ,v
32975 \family default
32976 ).
32977 \end_layout
32978
32979 \begin_layout Standard
32980 Before you begin to use the version control features in \SpecialChar LyX
32981 ,
32982  you should be familiar with RCS/CVS/SVN/GIT usage.
32983  The implementation in \SpecialChar LyX
32984  assumes a recent version of the GNU RCS or CVS/SVN package —
32985  no guarantees are made for older versions.
32986  Most of the log messages are not currently displayed after operations —
32987  you can check them in the Messages pane if you are unsure.
32988  Regular users of version control will appreciate the VC toolbar,
32989  which can be enabled via 
32990 \family sans
32991 View\SpecialChar menuseparator
32992 Toolbars\SpecialChar menuseparator
32993 Version
32994 \begin_inset space ~
32995 \end_inset
32996
32997 Control
32998 \family default
32999 .
33000 \end_layout
33001
33002 \begin_layout Standard
33003 For introducing your own external commands consult 
33004 \begin_inset Flex Code
33005 status collapsed
33006
33007 \begin_layout Plain Layout
33008 vc-command
33009 \end_layout
33010
33011 \end_inset
33012
33013  in the manual 
33014 \emph on
33015 \SpecialChar LyX
33016  Functions
33017 \emph default
33018 .
33019 \end_layout
33020
33021 \begin_layout Standard
33022 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
33023 \family sans
33024 Document\SpecialChar menuseparator
33025 Compressed
33026 \family default
33027  if it is checked):
33028  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
33029  Compressed LyX documents are binary files,
33030  which cannot be merged by version control systems.
33031 \end_layout
33032
33033 \begin_layout Subsection
33034 RCS commands in \SpecialChar LyX
33035
33036 \end_layout
33037
33038 \begin_layout Standard
33039 The following sections describe the RCS commands supported by \SpecialChar LyX
33040 .
33041  You can find them in the 
33042 \family sans
33043 File\SpecialChar menuseparator
33044 Version
33045 \begin_inset space ~
33046 \end_inset
33047
33048 Control
33049 \family default
33050  submenu.
33051  \SpecialChar LyX
33052  was tested against RCS 5.7/5.8.
33053 \end_layout
33054
33055 \begin_layout Subsubsection
33056
33057 \family sans
33058 Register
33059 \end_layout
33060
33061 \begin_layout Standard
33062 If your document is not under revision control,
33063  this is the only item shown in the menu.
33064  And if it is under revision control,
33065  the 
33066 \family sans
33067 Register
33068 \family default
33069  item is not visible.
33070  
33071 \end_layout
33072
33073 \begin_layout Standard
33074 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
33075  You are asked interactively to supply an initial description of the document.
33076  The document is now set in Read-Only mode and you have to 
33077 \family sans
33078 Check
33079 \begin_inset space ~
33080 \end_inset
33081
33082 Out
33083 \begin_inset space ~
33084 \end_inset
33085
33086 For
33087 \begin_inset space ~
33088 \end_inset
33089
33090 Edit
33091 \family default
33092 ,
33093  before making any changes to it.
33094  A document under revision control has a 
33095 \begin_inset Quotes eld
33096 \end_inset
33097
33098 [RCS:<version> <locker>]
33099 \begin_inset Quotes erd
33100 \end_inset
33101
33102  item tagged to the filename in the minibuffer.
33103 \end_layout
33104
33105 \begin_layout Standard
33106 RCS command that is run:
33107 \end_layout
33108
33109 \begin_layout LyX-Code
33110
33111 \family typewriter
33112 ci -q -u -i -t-"<initial description>" <file-name>
33113 \end_layout
33114
33115 \begin_layout Standard
33116 Read 
33117 \family typewriter
33118 man ci
33119 \family default
33120  to understand the switches.
33121  
33122 \end_layout
33123
33124 \begin_layout Subsubsection
33125
33126 \family sans
33127 Check In Changes
33128 \end_layout
33129
33130 \begin_layout Standard
33131 When you are finished editing a file,
33132  you check in your changes.
33133  When you do this,
33134  you are asked for a description of the changes.
33135  This is stored in the history log.
33136  The version number is bumped,
33137  your changes are applied to the master RCS file,
33138  the document is unlocked and set to Read-Only mode.
33139 \end_layout
33140
33141 \begin_layout Itemize
33142 RCS command:
33143  
33144 \family typewriter
33145 ci -q -u -m"<description>" <file-name>
33146 \end_layout
33147
33148 \begin_layout Subsubsection
33149
33150 \family sans
33151 Check Out For Edit
33152 \end_layout
33153
33154 \begin_layout Standard
33155 By doing this you lock the document so that only you can edit it.
33156  This will also make the document Read-Write only for you.
33157  You will usually continue editing for a while and when you are finished you check in your changes.
33158  The status line is changed to reflect that you have locked the file.
33159 \end_layout
33160
33161 \begin_layout Itemize
33162 RCS command:
33163  
33164 \family typewriter
33165 co -q -l <file-name>
33166 \end_layout
33167
33168 \begin_layout Subsubsection
33169
33170 \family sans
33171 Revert To Repository Version
33172 \end_layout
33173
33174 \begin_layout Standard
33175 This will discard all changes made to the document since the last check in.
33176  You get a warning before changes are discarded.
33177 \end_layout
33178
33179 \begin_layout Itemize
33180 RCS command:
33181  
33182 \family typewriter
33183 co -f -u<version> <file-name>
33184 \end_layout
33185
33186 \begin_layout Subsubsection
33187
33188 \family sans
33189 Copy
33190 \end_layout
33191
33192 \begin_layout Standard
33193 This will create a copy of the current document.
33194  Since RCS does not support copy operations natively,
33195  the version history is not preserved,
33196  and the copy is added as a new file.
33197  It requires a clean document without any changes since the last checkin.
33198  You are asked for a file name and a description of the copy operation.
33199  After that the copy is created,
33200  both locally and in the repository.
33201  If the parent directories of the copied and original document differ,
33202  all relative paths of included files of the copy are adjusted (like in 
33203 \family sans
33204 File\SpecialChar menuseparator
33205 Save As
33206 \family default
33207 \SpecialChar ldots
33208 ).
33209  Finally,
33210  the copy is loaded instead of the original document.
33211 \end_layout
33212
33213 \begin_layout Labeling
33214 \labelwidthstring 00.00.0000
33215 RCS
33216 \begin_inset space ~
33217 \end_inset
33218
33219 commands:
33220  
33221 \begin_inset space ~
33222 \end_inset
33223
33224
33225 \begin_inset Newline newline
33226 \end_inset
33227
33228 Copy 
33229 \begin_inset Flex Code
33230 status collapsed
33231
33232 \begin_layout Plain Layout
33233
33234 \family typewriter
33235 \begin_inset Quotes qld
33236 \end_inset
33237
33238 <file-name>
33239 \begin_inset Quotes qld
33240 \end_inset
33241
33242
33243 \end_layout
33244
33245 \end_inset
33246
33247  to 
33248 \begin_inset Flex Code
33249 status collapsed
33250
33251 \begin_layout Plain Layout
33252
33253 \family typewriter
33254 \begin_inset Quotes qld
33255 \end_inset
33256
33257 <new-file-name>
33258 \begin_inset Quotes qld
33259 \end_inset
33260
33261
33262 \end_layout
33263
33264 \end_inset
33265
33266
33267 \begin_inset Newline newline
33268 \end_inset
33269
33270
33271 \begin_inset Flex Code
33272 status collapsed
33273
33274 \begin_layout Plain Layout
33275 ci -q -u 
33276 \family typewriter
33277 -i 
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 \end_layout
33292
33293 \begin_layout Subsubsection
33294
33295 \family sans
33296 Undo Last Checkin
33297 \end_layout
33298
33299 \begin_layout Standard
33300 This makes as if the last check in never happened.
33301  No changes are made to the document loaded into \SpecialChar LyX
33302 ,
33303  but the last version is removed from the master RCS file.
33304 \end_layout
33305
33306 \begin_layout Itemize
33307 RCS command:
33308  
33309 \family typewriter
33310 rcs -o<version> <file-name>
33311 \end_layout
33312
33313 \begin_layout Subsubsection
33314
33315 \family sans
33316 Show History
33317 \end_layout
33318
33319 \begin_layout Standard
33320 This shows the complete history of the RCS document.
33321  The output of 
33322 \family typewriter
33323 rlog <file-name>
33324 \family default
33325  is shown in a browser.
33326  See 
33327 \family typewriter
33328 man rlog
33329 \family default
33330  for more info.
33331 \end_layout
33332
33333 \begin_layout Subsubsection
33334 Revision info
33335 \end_layout
33336
33337 \begin_layout Standard
33338 \SpecialChar LyX
33339  supports RCS version number,
33340  author name,
33341  date and time of last commit.
33342  All those are extracted from 
33343 \family typewriter
33344 rlog -r <file-name>
33345 \family default
33346 .
33347  See 
33348 \begin_inset CommandInset ref
33349 LatexCommand ref
33350 reference "subsec:VCS-Revision-Information"
33351 nolink "false"
33352
33353 \end_inset
33354
33355  for details.
33356 \end_layout
33357
33358 \begin_layout Subsection
33359 CVS commands in \SpecialChar LyX
33360
33361 \end_layout
33362
33363 \begin_layout Standard
33364 A subset of CVS operations is supported by \SpecialChar LyX
33365 .
33366  You can find the commands in the 
33367 \family sans
33368 File\SpecialChar menuseparator
33369 Version
33370 \begin_inset space ~
33371 \end_inset
33372
33373 Control
33374 \family default
33375  submenu.
33376  The version control system SVN is more powerful,
33377  so please use it instead of CVS if possible.
33378 \end_layout
33379
33380 \begin_layout Subsubsection
33381
33382 \family sans
33383 General CVS usage
33384 \end_layout
33385
33386 \begin_layout Standard
33387 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
33388  If you're using a client-server setup you may need to login before doing the first repository checkout.
33389 \end_layout
33390
33391 \begin_layout Standard
33392 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.
33393  Standard CVS repositories don't operate with a file locking mechanism.
33394  This may be surprising,
33395  but conflicts only occur if people disagree on the proper content of the same part of a document.
33396  So,
33397  if co-workers are used to communicate regularly,
33398  these conflicts occur rarely.
33399  If they don't communicate they have a fundamental problem anyway.
33400  Nevertheless some people like to work with so called 
33401 \begin_inset Quotes eld
33402 \end_inset
33403
33404 reserved checkouts
33405 \begin_inset Quotes erd
33406 \end_inset
33407
33408 .
33409  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.
33410  When the changes are checked in the working copy returns to readonly state.
33411  With \SpecialChar LyX
33412  one has to edit the 
33413 \begin_inset Flex Code
33414 status collapsed
33415
33416 \begin_layout Plain Layout
33417 .cvsrc
33418 \end_layout
33419
33420 \end_inset
33421
33422  file and add the line 
33423 \begin_inset Flex Code
33424 status collapsed
33425
33426 \begin_layout Plain Layout
33427 cvs -r
33428 \end_layout
33429
33430 \end_inset
33431
33432  to work with reserved checkouts.
33433  The benefit is the possibility to see who is using a writable copy of some document.
33434  It's not guaranteed only one user makes a copy writable.
33435 \end_layout
33436
33437 \begin_layout Standard
33438 \SpecialChar LyX
33439  tries to guess if you're using reserved or non-reserved checkouts.
33440  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.
33441  When a reserved checkout is detected you have to use 
33442 \begin_inset Flex Noun
33443 status collapsed
33444
33445 \begin_layout Plain Layout
33446 Check Out
33447 \end_layout
33448
33449 \end_inset
33450
33451  to make your working copy writable if it's readonly.
33452  After doing so the 
33453 \begin_inset Flex Noun
33454 status collapsed
33455
33456 \begin_layout Plain Layout
33457 Check In
33458 \end_layout
33459
33460 \end_inset
33461
33462  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
33463 \end_layout
33464
33465 \begin_layout Standard
33466 More information about CVS can be found here 
33467 \begin_inset Flex URL
33468 status collapsed
33469
33470 \begin_layout Plain Layout
33471
33472 http://www.nongnu.org/cvs
33473 \end_layout
33474
33475 \end_inset
33476
33477  and here 
33478 \begin_inset Flex URL
33479 status collapsed
33480
33481 \begin_layout Plain Layout
33482
33483 http://ximbiot.com/cvs
33484 \end_layout
33485
33486 \end_inset
33487
33488 .
33489 \end_layout
33490
33491 \begin_layout Standard
33492 Read 
33493 \family typewriter
33494 man cvs
33495 \family default
33496  to understand the sub-commands and the switches mentioned below.
33497 \end_layout
33498
33499 \begin_layout Subsubsection
33500
33501 \family sans
33502 Register
33503 \end_layout
33504
33505 \begin_layout Standard
33506 If your document is not under revision control,
33507  this is the only item shown in the menu.
33508  And if it is under revision control,
33509  the 
33510 \family sans
33511 Register
33512 \family default
33513  item is not visible.
33514  
33515 \end_layout
33516
33517 \begin_layout Standard
33518 This command registers in CVS your document 
33519 \begin_inset Flex Strong
33520 status collapsed
33521
33522 \begin_layout Plain Layout
33523
33524 \emph on
33525 only
33526 \end_layout
33527
33528 \end_inset
33529
33530  in the case you have already the documents directory under CVS control (in particular 
33531 \family typewriter
33532 CVS/Entries
33533 \family default
33534  file exists).
33535  This means you have to create or checkout the archive by yourself using external tools.
33536  (In case you forget that step \SpecialChar LyX
33537  registers the document with RCS.)
33538 \end_layout
33539
33540 \begin_layout Standard
33541 Then you are asked interactively to supply an initial description of the document.
33542  Don't forget that registered file is not yet checked in.
33543 \end_layout
33544
33545 \begin_layout Standard
33546 CVS command that is run:
33547  
33548 \family typewriter
33549 cvs -q add -m"<entered message>" "<file-name>"
33550 \end_layout
33551
33552 \begin_layout Standard
33553 The term 
33554 \family typewriter
33555 "<file-name>"
33556 \family default
33557  above and for all other CVS commands is an abbreviation for 
33558 \begin_inset Quotes eld
33559 \end_inset
33560
33561 change the current working directory to file location and use the file name without path component as argument
33562 \begin_inset Quotes erd
33563 \end_inset
33564
33565 .
33566 \end_layout
33567
33568 \begin_layout Subsubsection
33569
33570 \family sans
33571 Check In Changes
33572 \end_layout
33573
33574 \begin_layout Standard
33575 When you are finished editing a file,
33576  you commit your changes.
33577  When you do this and you had changed the document,
33578  you are asked for a description of the changes.
33579  After that changes are written to the repository.
33580  In case you didn't change the document and a reserved checkout is detected the reservation made on 
33581 \begin_inset Flex Noun
33582 status collapsed
33583
33584 \begin_layout Plain Layout
33585 Check Out
33586 \end_layout
33587
33588 \end_inset
33589
33590  is undone.
33591 \end_layout
33592
33593 \begin_layout Labeling
33594 \labelwidthstring 00.00.0000
33595 CVS
33596 \begin_inset space ~
33597 \end_inset
33598
33599 command:
33600  
33601 \begin_inset space ~
33602 \end_inset
33603
33604
33605 \begin_inset Newline newline
33606 \end_inset
33607
33608
33609 \begin_inset Flex Code
33610 status collapsed
33611
33612 \begin_layout Plain Layout
33613 cvs 
33614 \family typewriter
33615 -q commit -m"<description>" "<file-name>"
33616 \end_layout
33617
33618 \end_inset
33619
33620  or
33621 \begin_inset Newline newline
33622 \end_inset
33623
33624
33625 \begin_inset Flex Code
33626 status collapsed
33627
33628 \begin_layout Plain Layout
33629 cvs -q unedit 
33630 \family typewriter
33631 "<file-name>"
33632 \end_layout
33633
33634 \end_inset
33635
33636
33637 \end_layout
33638
33639 \begin_layout Subsubsection
33640
33641 \family sans
33642 Check Out Changes
33643 \end_layout
33644
33645 \begin_layout Standard
33646 When you are sharing a repository with others,
33647  you may have to incorporate their changes into your working copy.
33648 \end_layout
33649
33650 \begin_layout Standard
33651 CVS command:
33652  
33653 \family typewriter
33654 cvs -q update "<file-name>"
33655 \end_layout
33656
33657 \begin_layout Standard
33658 If a readonly checkout is detected the working copy is made writable and reserved.
33659 \end_layout
33660
33661 \begin_layout Standard
33662 CVS command:
33663  
33664 \family typewriter
33665 cvs -q edit "<file-name>"
33666 \end_layout
33667
33668 \begin_layout Subsubsection
33669
33670 \family sans
33671 Revert To Repository Version
33672 \end_layout
33673
33674 \begin_layout Standard
33675 This will discard all changes made to the document since the last check in.
33676  You get a warning before changes are discarded.
33677  Firstly the file is deleted,
33678  secondly CVS update command is run.
33679 \end_layout
33680
33681 \begin_layout Standard
33682 CVS command:
33683  
33684 \family typewriter
33685 cvs -q update "<file-name>"
33686 \end_layout
33687
33688 \begin_layout Standard
33689 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
33690 \end_layout
33691
33692 \begin_layout Standard
33693 CVS command:
33694  
33695 \family typewriter
33696 cvs -q unedit "<file-name>"
33697 \end_layout
33698
33699 \begin_layout Subsubsection
33700
33701 \family sans
33702 Copy
33703 \end_layout
33704
33705 \begin_layout Standard
33706 This will create a copy of the current document.
33707  Since CVS does not support copy operations natively,
33708  the version history is not preserved,
33709  and the copy is added as a new file.
33710  It requires a clean document without any changes since the last checkin.
33711  You are asked for a file name and a description of the copy operation.
33712  After that the copy is created,
33713  both locally and in the repository.
33714  If the parent directories of the copied and original document differ,
33715  all relative paths of included files of the copy are adjusted (like in 
33716 \family sans
33717 File\SpecialChar menuseparator
33718 Save As
33719 \family default
33720 \SpecialChar ldots
33721 ).
33722  Finally,
33723  the copy is loaded instead of the original document.
33724 \end_layout
33725
33726 \begin_layout Labeling
33727 \labelwidthstring 00.00.0000
33728 CVS
33729 \begin_inset space ~
33730 \end_inset
33731
33732 commands:
33733  
33734 \begin_inset space ~
33735 \end_inset
33736
33737
33738 \begin_inset Newline newline
33739 \end_inset
33740
33741 Copy 
33742 \begin_inset Flex Code
33743 status collapsed
33744
33745 \begin_layout Plain Layout
33746 "<file-name>"
33747 \end_layout
33748
33749 \end_inset
33750
33751  to 
33752 \begin_inset Flex Code
33753 status collapsed
33754
33755 \begin_layout Plain Layout
33756 "<new-file-name>"
33757 \end_layout
33758
33759 \end_inset
33760
33761
33762 \begin_inset Newline newline
33763 \end_inset
33764
33765
33766 \begin_inset Flex Code
33767 status collapsed
33768
33769 \begin_layout Plain Layout
33770 cvs -q add "<new-file-name>"
33771 \end_layout
33772
33773 \end_inset
33774
33775
33776 \end_layout
33777
33778 \begin_layout Subsubsection
33779
33780 \family sans
33781 Rename
33782 \end_layout
33783
33784 \begin_layout Standard
33785 This will rename the current document.
33786  Since CVS does not support rename operations natively,
33787  the version history is not preserved,
33788  the renamed document is added as a new file,
33789  and the original document is deleted.
33790  It requires a clean document without any changes since the last checkin.
33791  You are asked for a file name and a description of the rename operation.
33792  After that the document is renamed,
33793  both locally and in the repository.
33794  If the parent directories of the new and old file names differ,
33795  all relative paths of included files are adjusted (like in 
33796 \family sans
33797 File\SpecialChar menuseparator
33798 Save As
33799 \family default
33800 \SpecialChar ldots
33801 ).
33802  Finally,
33803  the document is reloaded using the new name.
33804 \end_layout
33805
33806 \begin_layout Labeling
33807 \labelwidthstring 00.00.0000
33808 CVS
33809 \begin_inset space ~
33810 \end_inset
33811
33812 commands:
33813  
33814 \begin_inset space ~
33815 \end_inset
33816
33817
33818 \begin_inset Newline newline
33819 \end_inset
33820
33821 Rename 
33822 \begin_inset Flex Code
33823 status collapsed
33824
33825 \begin_layout Plain Layout
33826 "<file-name>"
33827 \end_layout
33828
33829 \end_inset
33830
33831  to 
33832 \begin_inset Flex Code
33833 status collapsed
33834
33835 \begin_layout Plain Layout
33836 "<new-file-name>"
33837 \end_layout
33838
33839 \end_inset
33840
33841
33842 \begin_inset Newline newline
33843 \end_inset
33844
33845
33846 \begin_inset Flex Code
33847 status collapsed
33848
33849 \begin_layout Plain Layout
33850 cvs -q add "<new-file-name>"
33851 \end_layout
33852
33853 \end_inset
33854
33855
33856 \begin_inset Newline newline
33857 \end_inset
33858
33859
33860 \begin_inset Flex Code
33861 status collapsed
33862
33863 \begin_layout Plain Layout
33864 cvs -q remove "<file-name>"
33865 \end_layout
33866
33867 \end_inset
33868
33869
33870 \end_layout
33871
33872 \begin_layout Subsubsection
33873 Update of the local directory checkout from repository
33874 \end_layout
33875
33876 \begin_layout Standard
33877 Once your documents gets more complex,
33878  containing sub-documents and pictures,
33879  including external 
33880 \begin_inset Flex Code
33881 status collapsed
33882
33883 \begin_layout Plain Layout
33884 .tex
33885 \end_layout
33886
33887 \end_inset
33888
33889  files and so on using version control becomes more complicated.
33890  \SpecialChar LyX
33891  supports updating the whole tree in which resides the document.
33892  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.
33893  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
33894  It's good practice anyway to store multipart documents in an extra directory.
33895 \end_layout
33896
33897 \begin_layout Standard
33898 The 
33899 \begin_inset Flex Code
33900 status collapsed
33901
33902 \begin_layout Plain Layout
33903 Update local directory from repository
33904 \end_layout
33905
33906 \end_inset
33907
33908  command updates the whole directory.
33909  If local changes are detected user is warned before update starts.
33910  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
33911  You have to review and correct the result of the merge.
33912  You'll find the conflicts enclosed in pairs of 
33913 \begin_inset Flex Code
33914 status collapsed
33915
33916 \begin_layout Plain Layout
33917 <<<<<<<
33918 \end_layout
33919
33920 \end_inset
33921
33922  and 
33923 \begin_inset Flex Code
33924 status collapsed
33925
33926 \begin_layout Plain Layout
33927 >>>>>>>
33928 \end_layout
33929
33930 \end_inset
33931
33932  separated by 
33933 \begin_inset Flex Code
33934 status collapsed
33935
33936 \begin_layout Plain Layout
33937 =======
33938 \end_layout
33939
33940 \end_inset
33941
33942 .
33943  The first part is your version as before the update operation with the document name prepended.
33944  The second one is the repository version with the version number after the sequence of 
33945 \begin_inset Flex Code
33946 status collapsed
33947
33948 \begin_layout Plain Layout
33949 >
33950 \end_layout
33951
33952 \end_inset
33953
33954  signs.
33955 \end_layout
33956
33957 \begin_layout Labeling
33958 \labelwidthstring 00.00.0000
33959 CVS
33960 \begin_inset space ~
33961 \end_inset
33962
33963 commands:
33964  
33965 \begin_inset space ~
33966 \end_inset
33967
33968
33969 \begin_inset Newline newline
33970 \end_inset
33971
33972
33973 \begin_inset Flex Code
33974 status collapsed
33975
33976 \begin_layout Plain Layout
33977 cd $path;
33978  cvs diff 
33979 \family typewriter
33980 "."
33981 \end_layout
33982
33983 \end_inset
33984
33985  (Ask if changes are detected.)
33986 \begin_inset Newline newline
33987 \end_inset
33988
33989
33990 \begin_inset Flex Code
33991 status collapsed
33992
33993 \begin_layout Plain Layout
33994 cd $path;
33995  cvs -q update 
33996 \family typewriter
33997 "."
33998 \end_layout
33999
34000 \end_inset
34001
34002
34003 \end_layout
34004
34005 \begin_layout Standard
34006 where 
34007 \begin_inset Flex Code
34008 status collapsed
34009
34010 \begin_layout Plain Layout
34011 $path
34012 \end_layout
34013
34014 \end_inset
34015
34016  stands for the path to the document.
34017 \end_layout
34018
34019 \begin_layout Subsubsection
34020
34021 \family sans
34022 Show History
34023 \end_layout
34024
34025 \begin_layout Standard
34026 This shows the complete history of the CVS document.
34027  The output of 
34028 \family typewriter
34029 cvs log "<file-name>"
34030 \family default
34031  is shown in a browser.
34032 \end_layout
34033
34034 \begin_layout Subsubsection
34035 Revision info
34036 \end_layout
34037
34038 \begin_layout Standard
34039 \SpecialChar LyX
34040  supports CVS version number,
34041  author name,
34042  date and time of last commit.
34043  All those are extracted from 
34044 \family typewriter
34045 cvs log -r <file-name>
34046 \family default
34047 .
34048  See 
34049 \begin_inset CommandInset ref
34050 LatexCommand ref
34051 reference "subsec:VCS-Revision-Information"
34052 nolink "false"
34053
34054 \end_inset
34055
34056  for details.
34057 \end_layout
34058
34059 \begin_layout Subsection
34060 SVN commands in \SpecialChar LyX
34061
34062 \end_layout
34063
34064 \begin_layout Standard
34065 SVN is now partially supported by \SpecialChar LyX
34066 .
34067  You can find the commands in the 
34068 \family sans
34069 File\SpecialChar menuseparator
34070 Version
34071 \begin_inset space ~
34072 \end_inset
34073
34074 Control
34075 \family default
34076  submenu.
34077  Please note that if you use password protected access to repository via ssh,
34078  you will be asked in terminal window.
34079  \SpecialChar LyX
34080  was tested against SVN 1.5,
34081  1.6,
34082  1.7 and 1.8
34083 \begin_inset Foot
34084 status collapsed
34085
34086 \begin_layout Plain Layout
34087 Most of the commands will work with 1.4 too,
34088  see 
34089 \begin_inset CommandInset ref
34090 LatexCommand ref
34091 reference "subsec:SVN-Repo-Update"
34092 nolink "false"
34093
34094 \end_inset
34095
34096 .
34097  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
34098 \end_layout
34099
34100 \end_inset
34101
34102
34103 \end_layout
34104
34105 \begin_layout Subsubsection
34106
34107 \family sans
34108 Register
34109 \end_layout
34110
34111 \begin_layout Standard
34112 If your document is not under revision control,
34113  this is the only item shown in the menu.
34114  And if it is under revision control,
34115  the 
34116 \family sans
34117 Register
34118 \family default
34119  item is not visible.
34120 \end_layout
34121
34122 \begin_layout Standard
34123 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
34124 \family typewriter
34125 .svn/entries
34126 \family default
34127  file exists).
34128  This means you have to checkout the archive by yourself.
34129 \end_layout
34130
34131 \begin_layout Standard
34132 Then you are asked interactively to supply an initial description of the document.
34133  Don't forget that registered file is not yet commited.
34134 \end_layout
34135
34136 \begin_layout Standard
34137 SVN command that is run:
34138  
34139 \family typewriter
34140 svn add -q 
34141 \begin_inset Quotes qld
34142 \end_inset
34143
34144 <file-name>
34145 \begin_inset Quotes qld
34146 \end_inset
34147
34148
34149 \end_layout
34150
34151 \begin_layout Standard
34152 Read 
34153 \family typewriter
34154 man svn
34155 \family default
34156  to understand the switches.
34157 \end_layout
34158
34159 \begin_layout Subsubsection
34160
34161 \family sans
34162 Check In Changes
34163 \end_layout
34164
34165 \begin_layout Standard
34166 When you are finished editing a file,
34167  you commit your changes.
34168  When you do this,
34169  you are asked for a description of the changes.
34170  After that changes are commited.
34171 \end_layout
34172
34173 \begin_layout Standard
34174 SVN command:
34175 \begin_inset Foot
34176 status collapsed
34177
34178 \begin_layout Plain Layout
34179 In case locking is not enabled.
34180  See Section 
34181 \begin_inset CommandInset ref
34182 LatexCommand ref
34183 reference "subsec:SVN-File-Locking"
34184 nolink "false"
34185
34186 \end_inset
34187
34188 .
34189 \end_layout
34190
34191 \end_inset
34192
34193  
34194 \family typewriter
34195 svn commit -q -m"<description>" <file-name>
34196 \end_layout
34197
34198 \begin_layout Subsubsection
34199
34200 \family sans
34201 Check Out For Edit
34202 \end_layout
34203
34204 \begin_layout Standard
34205 Updates the changes of this file from the repository.
34206  Be sure you understand SVN merging and conflicts resolving before using this function,
34207  because all conflicts has to be resolved manually by you!
34208 \end_layout
34209
34210 \begin_layout Standard
34211 SVN command:
34212 \begin_inset Foot
34213 status collapsed
34214
34215 \begin_layout Plain Layout
34216 Ditto.
34217 \end_layout
34218
34219 \end_inset
34220
34221  
34222 \family typewriter
34223 svn update --non-interactive 
34224 \begin_inset Quotes qld
34225 \end_inset
34226
34227 <file-name>
34228 \begin_inset Quotes qld
34229 \end_inset
34230
34231
34232 \end_layout
34233
34234 \begin_layout Subsubsection
34235
34236 \family sans
34237 Revert To Repository Version
34238 \end_layout
34239
34240 \begin_layout Standard
34241 This will discard all changes made to the document since the last check in.
34242  You get a warning before changes are discarded.
34243 \end_layout
34244
34245 \begin_layout Standard
34246 SVN command:
34247  
34248 \family typewriter
34249 svn revert -q 
34250 \begin_inset Quotes qld
34251 \end_inset
34252
34253 <file-name>
34254 \begin_inset Quotes qld
34255 \end_inset
34256
34257
34258 \end_layout
34259
34260 \begin_layout Subsubsection
34261
34262 \family sans
34263 Copy
34264 \end_layout
34265
34266 \begin_layout Standard
34267 This will create a copy of the current document including the version history.
34268  It requires a clean document without any changes since the last checkin.
34269  You are asked for a file name and a description of the copy operation.
34270  After that the copy is created,
34271  both locally and in the repository.
34272  If the parent directories of the copied and original document differ,
34273  all relative paths of included files of the copy are adjusted (like in 
34274 \family sans
34275 File\SpecialChar menuseparator
34276 Save As
34277 \family default
34278 \SpecialChar ldots
34279 ).
34280  Finally,
34281  the copy is loaded instead of the original document.
34282 \end_layout
34283
34284 \begin_layout Labeling
34285 \labelwidthstring 00.00.0000
34286 SVN
34287 \begin_inset space ~
34288 \end_inset
34289
34290 commands:
34291  
34292 \begin_inset space ~
34293 \end_inset
34294
34295
34296 \begin_inset Newline newline
34297 \end_inset
34298
34299
34300 \begin_inset Flex Code
34301 status collapsed
34302
34303 \begin_layout Plain Layout
34304 svn copy -q 
34305 \family typewriter
34306
34307 \begin_inset Quotes qld
34308 \end_inset
34309
34310 <file-name>
34311 \begin_inset Quotes qld
34312 \end_inset
34313
34314  
34315 \begin_inset Quotes qld
34316 \end_inset
34317
34318 <new-file-name>
34319 \begin_inset Quotes qld
34320 \end_inset
34321
34322
34323 \end_layout
34324
34325 \end_inset
34326
34327
34328 \begin_inset Newline newline
34329 \end_inset
34330
34331
34332 \begin_inset Flex Code
34333 status collapsed
34334
34335 \begin_layout Plain Layout
34336 svn commit
34337 \end_layout
34338
34339 \end_inset
34340
34341
34342 \end_layout
34343
34344 \begin_layout Subsubsection
34345
34346 \family sans
34347 Rename
34348 \end_layout
34349
34350 \begin_layout Standard
34351 This will rename the current document including the version history.
34352  It requires a clean document without any changes since the last checkin.
34353  You are asked for a file name and a description of the rename operation.
34354  After that the document is renamed,
34355  both locally and in the repository.
34356  If the parent directories of the new and old file names differ,
34357  all relative paths of included files are adjusted (like in 
34358 \family sans
34359 File\SpecialChar menuseparator
34360 Save As
34361 \family default
34362 \SpecialChar ldots
34363 ).
34364  Finally,
34365  the document is reloaded using the new name.
34366 \end_layout
34367
34368 \begin_layout Labeling
34369 \labelwidthstring 00.00.0000
34370 SVN
34371 \begin_inset space ~
34372 \end_inset
34373
34374 commands:
34375  
34376 \begin_inset space ~
34377 \end_inset
34378
34379
34380 \begin_inset Newline newline
34381 \end_inset
34382
34383
34384 \begin_inset Flex Code
34385 status collapsed
34386
34387 \begin_layout Plain Layout
34388 svn move -q 
34389 \family typewriter
34390
34391 \begin_inset Quotes qld
34392 \end_inset
34393
34394 <file-name>
34395 \begin_inset Quotes qld
34396 \end_inset
34397
34398  
34399 \begin_inset Quotes qld
34400 \end_inset
34401
34402 <new-file-name>
34403 \begin_inset Quotes qld
34404 \end_inset
34405
34406
34407 \end_layout
34408
34409 \end_inset
34410
34411
34412 \begin_inset Newline newline
34413 \end_inset
34414
34415
34416 \begin_inset Flex Code
34417 status collapsed
34418
34419 \begin_layout Plain Layout
34420 svn commit
34421 \end_layout
34422
34423 \end_inset
34424
34425
34426 \end_layout
34427
34428 \begin_layout Subsubsection
34429 \begin_inset CommandInset label
34430 LatexCommand label
34431 name "subsec:SVN-Repo-Update"
34432
34433 \end_inset
34434
34435 Update of the local directory checkout from repository
34436 \begin_inset Foot
34437 status collapsed
34438
34439 \begin_layout Plain Layout
34440 Note that this command will work only with subversion 
34441 \begin_inset Formula $\geqq1.5$
34442 \end_inset
34443
34444
34445 \end_layout
34446
34447 \end_inset
34448
34449
34450 \end_layout
34451
34452 \begin_layout Standard
34453 All the commands above have one shortcoming – they deal with the current document only.
34454  Once your document contains pictures,
34455  includes external 
34456 \begin_inset Flex Code
34457 status collapsed
34458
34459 \begin_layout Plain Layout
34460 .tex
34461 \end_layout
34462
34463 \end_inset
34464
34465  files and so on administration becomes more complicated.
34466  \SpecialChar LyX
34467  now supports updating the whole tree in which resides the document
34468 \begin_inset Foot
34469 status collapsed
34470
34471 \begin_layout Plain Layout
34472 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
34473  
34474 \end_layout
34475
34476 \end_inset
34477
34478 .
34479  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.
34480  
34481 \end_layout
34482
34483 \begin_layout Standard
34484 \begin_inset Flex Code
34485 status collapsed
34486
34487 \begin_layout Plain Layout
34488 Update local directory from repository
34489 \end_layout
34490
34491 \end_inset
34492
34493  command updates the whole directory and in case of merge conflicts local version of the files are left,
34494  so no unintended data loss occurs.
34495  If local changes are detected user is warned before update starts.
34496 \end_layout
34497
34498 \begin_layout Labeling
34499 \labelwidthstring 00.00.0000
34500 SVN
34501 \begin_inset space ~
34502 \end_inset
34503
34504 commands:
34505  
34506 \begin_inset space ~
34507 \end_inset
34508
34509
34510 \begin_inset Newline newline
34511 \end_inset
34512
34513
34514 \begin_inset Flex Code
34515 status collapsed
34516
34517 \begin_layout Plain Layout
34518 svn diff $path
34519 \end_layout
34520
34521 \end_inset
34522
34523  (Ask if changes are detected.)
34524 \begin_inset Newline newline
34525 \end_inset
34526
34527
34528 \begin_inset Flex Code
34529 status collapsed
34530
34531 \begin_layout Plain Layout
34532 svn update --accept mine-full $path
34533 \end_layout
34534
34535 \end_inset
34536
34537
34538 \end_layout
34539
34540 \begin_layout Standard
34541 where 
34542 \begin_inset Flex Code
34543 status collapsed
34544
34545 \begin_layout Plain Layout
34546 $path
34547 \end_layout
34548
34549 \end_inset
34550
34551  stands for the path to the document.
34552 \end_layout
34553
34554 \begin_layout Subsubsection
34555
34556 \family sans
34557 Show History
34558 \end_layout
34559
34560 \begin_layout Standard
34561 This shows the complete history of the SVN document.
34562  The output of 
34563 \family typewriter
34564 svn log 
34565 \begin_inset Quotes qld
34566 \end_inset
34567
34568 <file-name>
34569 \begin_inset Quotes qld
34570 \end_inset
34571
34572
34573 \family default
34574  is shown in a browser.
34575 \end_layout
34576
34577 \begin_layout Subsubsection
34578 File Locking
34579 \begin_inset CommandInset label
34580 LatexCommand label
34581 name "subsec:SVN-File-Locking"
34582
34583 \end_inset
34584
34585
34586 \end_layout
34587
34588 \begin_layout Standard
34589 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.
34590  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
34591  which guarantees that only one user is allowed to edit file at the given time.
34592 \end_layout
34593
34594 \begin_layout Standard
34595 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
34596  
34597 \begin_inset CommandInset ref
34598 LatexCommand ref
34599 reference "subsec:Automatical-Locking-Property"
34600 nolink "false"
34601
34602 \end_inset
34603
34604 ) based on 
34605 \begin_inset Flex Code
34606 status collapsed
34607
34608 \begin_layout Plain Layout
34609 svn:needs-lock
34610 \end_layout
34611
34612 \end_inset
34613
34614  file svn property
34615 \begin_inset Foot
34616 status collapsed
34617
34618 \begin_layout Plain Layout
34619 \begin_inset Flex URL
34620 status open
34621
34622 \begin_layout Plain Layout
34623
34624 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
34625 \end_layout
34626
34627 \end_inset
34628
34629
34630 \end_layout
34631
34632 \end_inset
34633
34634 .
34635  If this property is detected for a given document \SpecialChar LyX
34636  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
34637  This in particular means there are two different modes of file use in \SpecialChar LyX
34638 :
34639 \end_layout
34640
34641 \begin_layout Itemize
34642 Unlocked state.
34643  The loaded file is in the read-only mode.
34644  For editing on needs to check-out.
34645  
34646 \emph on
34647 Check-out
34648 \emph default
34649  consists of updating from the repository and gaining write lock.
34650  If the lock is not possible to obtain,
34651  we remain in unlocked state.
34652 \end_layout
34653
34654 \begin_layout Itemize
34655 Locked state.
34656  The loaded file is in the 
34657 \begin_inset Quotes els
34658 \end_inset
34659
34660 normal
34661 \begin_inset Quotes ers
34662 \end_inset
34663
34664  edit mode.
34665  No other user is allowed to edit the file.
34666  
34667 \emph on
34668 Check-in
34669 \emph default
34670  consists of commiting changes and releasing write-lock.
34671  If no changes have been made to the document,
34672  no commit will be produced
34673 \begin_inset Foot
34674 status collapsed
34675
34676 \begin_layout Plain Layout
34677 Don't be puzzled by the fact that you will be asked for commit message anyway.
34678 \end_layout
34679
34680 \end_inset
34681
34682  and only the write-lock will be released.
34683 \end_layout
34684
34685 \begin_layout Standard
34686 SVN commands:
34687 \end_layout
34688
34689 \begin_layout Labeling
34690 \labelwidthstring 00.00.0000
34691 Check-in:
34692
34693 \family typewriter
34694  svn commit -q -m"<description>" "<file-name>"
34695 \begin_inset Newline newline
34696 \end_inset
34697
34698 svn unlock "<file-name>"
34699 \end_layout
34700
34701 \begin_layout Labeling
34702 \labelwidthstring 00.00.0000
34703 Check-out:
34704  
34705 \family typewriter
34706 svn update "<file-name>"
34707 \begin_inset Newline newline
34708 \end_inset
34709
34710 svn lock "<file-name>"
34711 \end_layout
34712
34713 \begin_layout Subsubsection
34714
34715 \family typewriter
34716 \begin_inset CommandInset label
34717 LatexCommand label
34718 name "subsec:Automatical-Locking-Property"
34719
34720 \end_inset
34721
34722
34723 \family default
34724 Automatic Locking Property
34725 \end_layout
34726
34727 \begin_layout Standard
34728 The above mentioned automatic setting of write permissions of the .lyx file can be set through
34729 \family sans
34730  File\SpecialChar menuseparator
34731 Version
34732 \begin_inset space ~
34733 \end_inset
34734
34735 Control\SpecialChar menuseparator
34736 Use Locking Property
34737 \family default
34738 .
34739  This command is active only when the file is not locked on the svn server (i.e.
34740  you need to check-out before proceeding).
34741 \end_layout
34742
34743 \begin_layout Labeling
34744 \labelwidthstring 00.00.0000
34745 SVN
34746 \begin_inset space ~
34747 \end_inset
34748
34749 commands:
34750 \end_layout
34751
34752 \begin_layout Labeling
34753 \labelwidthstring 00.00.0000
34754 Set:
34755
34756 \family typewriter
34757  svn propset svn:needs-lock ON "<file-name>"
34758 \end_layout
34759
34760 \begin_layout Labeling
34761 \labelwidthstring 00.00.0000
34762 Unset:
34763  
34764 \family typewriter
34765 svn propdel svn:needs-lock "<file-name>"
34766 \end_layout
34767
34768 \begin_layout Subsubsection
34769 \begin_inset CommandInset label
34770 LatexCommand label
34771 name "subsec:VCS-Revision-Information"
34772
34773 \end_inset
34774
34775 Revision Information in Documents
34776 \end_layout
34777
34778 \begin_layout Standard
34779 There are more possibilities how to activate revision information in our document.
34780 \end_layout
34781
34782 \begin_layout Itemize
34783 \SpecialChar LyX
34784  supports directly:
34785 \end_layout
34786
34787 \begin_deeper
34788 \begin_layout Itemize
34789 tree revision information (
34790 \begin_inset Flex Code
34791 status collapsed
34792
34793 \begin_layout Plain Layout
34794 vcs-tree-revision
34795 \end_layout
34796
34797 \end_inset
34798
34799 ).
34800  The result is the output of the 
34801 \begin_inset Flex Code
34802 status collapsed
34803
34804 \begin_layout Plain Layout
34805 svnversion
34806 \end_layout
34807
34808 \end_inset
34809
34810  command,
34811  the following table gives you an idea,
34812  how to read the results.
34813 \end_layout
34814
34815 \begin_layout Standard
34816 \align center
34817 \begin_inset Tabular
34818 <lyxtabular version="3" rows="6" columns="2">
34819 <features tabularvalignment="middle">
34820 <column alignment="left" valignment="top">
34821 <column alignment="left" valignment="top">
34822 <row>
34823 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34824 \begin_inset Text
34825
34826 \begin_layout Plain Layout
34827
34828 \series bold
34829 Output
34830 \end_layout
34831
34832 \end_inset
34833 </cell>
34834 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34835 \begin_inset Text
34836
34837 \begin_layout Plain Layout
34838
34839 \series bold
34840 Meaning
34841 \end_layout
34842
34843 \end_inset
34844 </cell>
34845 </row>
34846 <row>
34847 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34848 \begin_inset Text
34849
34850 \begin_layout Plain Layout
34851 4123:4168
34852 \end_layout
34853
34854 \end_inset
34855 </cell>
34856 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34857 \begin_inset Text
34858
34859 \begin_layout Plain Layout
34860 mixed revision working copy
34861 \end_layout
34862
34863 \end_inset
34864 </cell>
34865 </row>
34866 <row>
34867 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34868 \begin_inset Text
34869
34870 \begin_layout Plain Layout
34871 4168M
34872 \end_layout
34873
34874 \end_inset
34875 </cell>
34876 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34877 \begin_inset Text
34878
34879 \begin_layout Plain Layout
34880 modified working copy
34881 \end_layout
34882
34883 \end_inset
34884 </cell>
34885 </row>
34886 <row>
34887 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34888 \begin_inset Text
34889
34890 \begin_layout Plain Layout
34891 4123S
34892 \end_layout
34893
34894 \end_inset
34895 </cell>
34896 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34897 \begin_inset Text
34898
34899 \begin_layout Plain Layout
34900 switched working copy
34901 \end_layout
34902
34903 \end_inset
34904 </cell>
34905 </row>
34906 <row>
34907 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34908 \begin_inset Text
34909
34910 \begin_layout Plain Layout
34911 4123P
34912 \end_layout
34913
34914 \end_inset
34915 </cell>
34916 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34917 \begin_inset Text
34918
34919 \begin_layout Plain Layout
34920 partial working copy,
34921  from a sparse checkout
34922 \end_layout
34923
34924 \end_inset
34925 </cell>
34926 </row>
34927 <row>
34928 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34929 \begin_inset Text
34930
34931 \begin_layout Plain Layout
34932 4123:4168MS
34933 \end_layout
34934
34935 \end_inset
34936 </cell>
34937 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34938 \begin_inset Text
34939
34940 \begin_layout Plain Layout
34941 mixed revision,
34942  modified,
34943  switched working copy
34944 \end_layout
34945
34946 \end_inset
34947 </cell>
34948 </row>
34949 </lyxtabular>
34950
34951 \end_inset
34952
34953
34954 \end_layout
34955
34956 \begin_layout Itemize
34957 file revision information.
34958  The result comes from parsing the output of 
34959 \begin_inset Flex Code
34960 status collapsed
34961
34962 \begin_layout Plain Layout
34963 svn
34964 \begin_inset space ~
34965 \end_inset
34966
34967 info
34968 \begin_inset space ~
34969 \end_inset
34970
34971 --xml
34972 \begin_inset space ~
34973 \end_inset
34974
34975 file.lyx
34976 \end_layout
34977
34978 \end_inset
34979
34980 .
34981  Supported flags are:
34982 \end_layout
34983
34984 \begin_deeper
34985 \begin_layout Itemize
34986 version number of the last commit (
34987 \begin_inset Flex Code
34988 status collapsed
34989
34990 \begin_layout Plain Layout
34991 vcs-revision
34992 \end_layout
34993
34994 \end_inset
34995
34996 )
34997 \end_layout
34998
34999 \begin_layout Itemize
35000 author of the last commit (
35001 \begin_inset Flex Code
35002 status collapsed
35003
35004 \begin_layout Plain Layout
35005 vcs-author
35006 \end_layout
35007
35008 \end_inset
35009
35010 )
35011 \end_layout
35012
35013 \begin_layout Itemize
35014 date of the last commit (
35015 \begin_inset Flex Code
35016 status collapsed
35017
35018 \begin_layout Plain Layout
35019 vcs-date
35020 \end_layout
35021
35022 \end_inset
35023
35024 )
35025 \end_layout
35026
35027 \begin_layout Itemize
35028 time of the last commit (
35029 \begin_inset Flex Code
35030 status collapsed
35031
35032 \begin_layout Plain Layout
35033 vcs-time
35034 \end_layout
35035
35036 \end_inset
35037
35038 )
35039 \end_layout
35040
35041 \end_deeper
35042 \begin_layout Standard
35043 You can obtain this info via InsetInfo (
35044 \change_inserted 5863208 1564400022
35045 Insert\SpecialChar menuseparator
35046 Field\SpecialChar menuseparator
35047 Version Control Revision
35048 \change_deleted 5863208 1564399852
35049 e.g.
35050  
35051 \begin_inset Flex Code
35052 status collapsed
35053
35054 \begin_layout Plain Layout
35055 info-insert buffer vcs-date
35056 \end_layout
35057
35058 \end_inset
35059
35060
35061 \change_unchanged
35062 ).
35063  The information will be available only when you have the file stored under svn managment (i.e.
35064  the 
35065 \begin_inset Flex Code
35066 status collapsed
35067
35068 \begin_layout Plain Layout
35069 .svn
35070 \end_layout
35071
35072 \end_inset
35073
35074  directory is available with your document).
35075 \end_layout
35076
35077 \end_deeper
35078 \begin_layout Itemize
35079 Another—
35080 a hacking one—
35081 possibility is to use svn keywords
35082 \begin_inset Foot
35083 status collapsed
35084
35085 \begin_layout Plain Layout
35086 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
35087 \end_layout
35088
35089 \end_inset
35090
35091 .
35092  In short – you set file keywords property (e.g.
35093  
35094 \family sans
35095 svn propset svn:keywords 'Rev' file.lyx
35096 \family default
35097 ) and then paste keyword \SpecialChar TeX
35098  code
35099 \begin_inset Foot
35100 status collapsed
35101
35102 \begin_layout Plain Layout
35103 This is an easy way how to ensure that \SpecialChar LyX
35104  won't break the line in the middle of keyword tag.
35105 \end_layout
35106
35107 \end_inset
35108
35109  tag in your document (e.g.
35110  
35111 \begin_inset Flex Code
35112 status collapsed
35113
35114 \begin_layout Plain Layout
35115 $Rev$
35116 \end_layout
35117
35118 \end_inset
35119
35120 ).
35121  This way svn client will automatically substitute revision number (e.g.
35122  
35123 \begin_inset Flex Code
35124 status collapsed
35125
35126 \begin_layout Plain Layout
35127 $Rev:
35128  59 $
35129 \end_layout
35130
35131 \end_inset
35132
35133 ) after each update and commit.
35134  There are more problems with this approach.
35135  Firstly,
35136  the '$' character is used in \SpecialChar TeX
35137  world for math equations,
35138  so any occurence of math formula 
35139 \begin_inset Formula $Rev$
35140 \end_inset
35141
35142  become 
35143 \begin_inset Formula $Rev:59$
35144 \end_inset
35145
35146  in your \SpecialChar LyX
35147  document.
35148  Similarly for other keywords like Id,
35149  Date,
35150  Author,
35151  etc.
35152  Secondly svn output is dependent on your locales,
35153  so its very easy that svn would produce some problematic strings once Date is used.
35154  Thirdly you get the whole 'Rev:
35155  59' string in your document instead of the plain number.
35156  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
35157  to support it directly.
35158 \end_layout
35159
35160 \begin_layout Subsection
35161 SVN and Windows Environment
35162 \end_layout
35163
35164 \begin_layout Quote
35165 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
35166  they would be well advised to use TortoiseSVN.
35167  —
35168 P.
35169  A.
35170  Rubin
35171 \end_layout
35172
35173 \begin_layout Subsubsection
35174 Preparation
35175 \end_layout
35176
35177 \begin_layout Standard
35178 In addition to installing \SpecialChar LyX
35179 ,
35180  and having access to a Subversion repository,
35181  the user will need to install the Subversion client program.
35182  A Windows installer for the client program is available from 
35183 \begin_inset CommandInset href
35184 LatexCommand href
35185 name "CollabNet"
35186 target "http://www.collab.net/nonav/downloads/subversion/"
35187 literal "false"
35188
35189 \end_inset
35190
35191 .
35192  The user may also want to install 
35193 \begin_inset CommandInset href
35194 LatexCommand href
35195 name "TortoiseSVN"
35196 target "http://tortoisesvn.tigris.org/"
35197 literal "false"
35198
35199 \end_inset
35200
35201 ,
35202  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
35203  Operations done outside \SpecialChar LyX
35204  will typically be more convenient using the Explorer context menu.
35205  Note that TortoiseSVN is not a replacement for the client program,
35206  which is what \SpecialChar LyX
35207  itself will use.
35208 \end_layout
35209
35210 \begin_layout Subsubsection
35211 Bringing a document under Subversion control
35212 \end_layout
35213
35214 \begin_layout Standard
35215 Before a \SpecialChar LyX
35216  document can be brought under version control in Subversion,
35217  its parent directory needs to be under version control.
35218  If the document is being added to a project already in the repository,
35219  this is accomplished by checking the project out to the directory where the new document will be placed.
35220  If the project itself is not yet under version control (for instance,
35221  if this document starts a new project),
35222  the directory must be imported into the repository.
35223  This is done outside \SpecialChar LyX
35224 .
35225  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
35226  or alternatively can be done using the command line client at a DOS prompt.
35227  The procedure for importing the project using TortoiseSVN is described below,
35228  assuming an existing repository and a new project being started in 
35229 \family typewriter
35230 C:
35231 \backslash
35232 new project
35233 \family default
35234 .
35235  For information on using the Subversion client program,
35236  run 
35237 \family typewriter
35238 svn --help 
35239 \family default
35240 in a DOS shell.
35241 \end_layout
35242
35243 \begin_layout Enumerate
35244 Locate 
35245 \family typewriter
35246 C:
35247 \backslash
35248 new project 
35249 \family default
35250 in Windows Explorer,
35251  right click it,
35252  and select 
35253 \family sans
35254 TortoiseSVN\SpecialChar menuseparator
35255 Repo-browser
35256 \family default
35257 .
35258  If necessary,
35259  adjust the URL for the repository,
35260  then click OK.
35261 \end_layout
35262
35263 \begin_layout Enumerate
35264 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
35265 \family sans
35266 Create folder
35267 \family default
35268  Supply a name for the project folder and click OK.
35269  Add a message for the log file if desired,
35270  then click OK again.
35271  The new project folder should appear in the repository.
35272  Finally,
35273  click OK again to exit the repository browser.
35274 \end_layout
35275
35276 \begin_layout Enumerate
35277 Once again right click 
35278 \family typewriter
35279 C:
35280 \backslash
35281 new project
35282 \family default
35283 ,
35284  this time selecting SVN Checkout\SpecialChar ldots
35285  Select the URL of the project folder you just created in the repository,
35286  and set the checkout directory to 
35287 \family typewriter
35288 C:
35289 \backslash
35290 new project.
35291
35292 \family default
35293  Click OK.
35294  You will be warned about a non-empty folder;
35295  click OK to proceed.
35296  You should now have a 
35297 \family typewriter
35298 .svn
35299 \family default
35300  directory under 
35301 \family typewriter
35302 C:
35303 \backslash
35304 new project.
35305 \end_layout
35306
35307 \begin_layout Enumerate
35308 Create or open your document in \SpecialChar LyX
35309  and click 
35310 \family sans
35311 File\SpecialChar menuseparator
35312 Version
35313 \begin_inset space ~
35314 \end_inset
35315
35316 Control\SpecialChar menuseparator
35317 Register.
35318  
35319 \family default
35320 Add a log message and click OK to commit the document to version control.
35321 \end_layout
35322
35323 \begin_layout Standard
35324 From this point onward,
35325  you should have full functionality in the 
35326 \family sans
35327 File\SpecialChar menuseparator
35328 Version
35329 \begin_inset space ~
35330 \end_inset
35331
35332 Control
35333 \family default
35334  menu.
35335  You also have the option of checking the document in and out,
35336  viewing its history,
35337  etc.
35338  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
35339 \end_layout
35340
35341 \begin_layout Subsubsection
35342 SSH tunnel used with SVN under Windows
35343 \end_layout
35344
35345 \begin_layout Standard
35346 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
35347  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,
35348  also be prepared for a great deal of frustration\SpecialChar ldots
35349
35350 \end_layout
35351
35352 \begin_layout Enumerate
35353 Get an svn client for windows,
35354  as described in the previous sections.
35355  When it is a fresh install run some svn command (e.g.
35356  
35357 \begin_inset Flex Code
35358 status collapsed
35359
35360 \begin_layout Plain Layout
35361 svn --version
35362 \end_layout
35363
35364 \end_inset
35365
35366 ) to create config files,
35367  which you will need to change later on.
35368 \end_layout
35369
35370 \begin_layout Enumerate
35371 Choose an ssh client for Windows.
35372  There are several possibilities,
35373  we will use the one from Putty tools
35374 \begin_inset Foot
35375 status collapsed
35376
35377 \begin_layout Plain Layout
35378 \begin_inset Flex URL
35379 status collapsed
35380
35381 \begin_layout Plain Layout
35382
35383 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
35384 \end_layout
35385
35386 \end_inset
35387
35388
35389 \end_layout
35390
35391 \end_inset
35392
35393 .
35394  You will need to set the connection up so that the client doesn't ask for any password from you.
35395  To keep things easy we will use only keys without any additional password protection etc.
35396 \end_layout
35397
35398 \begin_deeper
35399 \begin_layout Enumerate
35400 Generate keys by 
35401 \begin_inset Flex Code
35402 status collapsed
35403
35404 \begin_layout Plain Layout
35405 puttygen
35406 \end_layout
35407
35408 \end_inset
35409
35410 .
35411  Save your private .ppk key file and put the public one on the server side.
35412  If the SVN server runs on Linux,
35413  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 
35414 \begin_inset Quotes eld
35415 \end_inset
35416
35417
35418 \emph on
35419 Public key for pasting into OpenSSH authorized_keys file
35420 \emph default
35421 :
35422 \begin_inset Quotes erd
35423 \end_inset
35424
35425  edit field into the server's 
35426 \begin_inset Flex Code
35427 status collapsed
35428
35429 \begin_layout Plain Layout
35430 ~/.ssh/authorized_keys
35431 \end_layout
35432
35433 \end_inset
35434
35435  / 
35436 \begin_inset Flex Code
35437 status collapsed
35438
35439 \begin_layout Plain Layout
35440 authorized_keys2
35441 \end_layout
35442
35443 \end_inset
35444
35445  file.
35446 \end_layout
35447
35448 \begin_layout Enumerate
35449 Get the Putty's 
35450 \begin_inset Flex Code
35451 status collapsed
35452
35453 \begin_layout Plain Layout
35454 plink
35455 \end_layout
35456
35457 \end_inset
35458
35459 .
35460  In the SVN config file
35461 \begin_inset Foot
35462 status collapsed
35463
35464 \begin_layout Plain Layout
35465 Exact path depends on Windows version,
35466  usually somewhere around 
35467 \begin_inset Flex Code
35468 status collapsed
35469
35470 \begin_layout Plain Layout
35471 c:
35472 \backslash
35473 Documents and Settings
35474 \backslash
35475 user
35476 \backslash
35477 Application Data
35478 \backslash
35479 Subversion
35480 \backslash
35481 config
35482 \end_layout
35483
35484 \end_inset
35485
35486  / 
35487 \begin_inset Flex Code
35488 status collapsed
35489
35490 \begin_layout Plain Layout
35491 AppData
35492 \backslash
35493 Roaming
35494 \backslash
35495 Subversion
35496 \end_layout
35497
35498 \end_inset
35499
35500 .
35501 \end_layout
35502
35503 \end_inset
35504
35505 ,
35506  section [tunnels],
35507  setup ssh command,
35508  e.g.
35509  
35510 \begin_inset Flex Code
35511 status collapsed
35512
35513 \begin_layout Plain Layout
35514 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
35515 \end_layout
35516
35517 \end_inset
35518
35519 .
35520 \begin_inset Foot
35521 status collapsed
35522
35523 \begin_layout Plain Layout
35524 It will usually take a lot of time to get exact command right and it depends on many things.
35525  For example do not have some remote server saved as a default session in Putty etc.
35526  If things fail,
35527  try to connect via plink without SVN first.
35528 \end_layout
35529
35530 \end_inset
35531
35532
35533 \end_layout
35534
35535 \end_deeper
35536 \begin_layout Enumerate
35537 Checkout the SVN archive,
35538  e.
35539 \begin_inset space \thinspace{}
35540 \end_inset
35541
35542 g.
35543 \begin_inset Newline newline
35544 \end_inset
35545
35546
35547 \begin_inset Flex Code
35548 status collapsed
35549
35550 \begin_layout Plain Layout
35551 svn co svn+ssh://user@server/repository_path
35552 \end_layout
35553
35554 \end_inset
35555
35556 .
35557 \end_layout
35558
35559 \begin_layout Subsubsection
35560 End-of-Line Conversions
35561 \end_layout
35562
35563 \begin_layout Standard
35564 When the collaborators are mixing Linux and Windows environments,
35565  \SpecialChar LyX
35566  will use different line endings inside the .lyx files.
35567  This is not a problem as far as \SpecialChar LyX
35568  functionality is concerned,
35569  but the commit diffs will be huge and merge-conflicts prone.
35570  Fortunately SVN itself knows
35571 \begin_inset Foot
35572 status collapsed
35573
35574 \begin_layout Plain Layout
35575 \begin_inset Flex URL
35576 status collapsed
35577
35578 \begin_layout Plain Layout
35579
35580 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
35581 \end_layout
35582
35583 \end_inset
35584
35585
35586 \end_layout
35587
35588 \end_inset
35589
35590  how to deal with CR/LF problems when switching .lyx files to the 
35591 \begin_inset Flex Code
35592 status collapsed
35593
35594 \begin_layout Plain Layout
35595 native
35596 \end_layout
35597
35598 \end_inset
35599
35600  mode.
35601 \begin_inset Foot
35602 status collapsed
35603
35604 \begin_layout Plain Layout
35605 For the lazy guys:
35606  
35607 \begin_inset Flex Code
35608 status collapsed
35609
35610 \begin_layout Plain Layout
35611 svn propset svn:eol-style native FILE_NAME
35612 \end_layout
35613
35614 \end_inset
35615
35616
35617 \end_layout
35618
35619 \end_inset
35620
35621
35622 \end_layout
35623
35624 \begin_layout Subsection
35625 GIT commands in \SpecialChar LyX
35626
35627 \end_layout
35628
35629 \begin_layout Standard
35630 A minimal subset of GIT commands is now supported by \SpecialChar LyX
35631 .
35632  You can find the commands in the 
35633 \family sans
35634 File\SpecialChar menuseparator
35635 Version
35636 \begin_inset space ~
35637 \end_inset
35638
35639 Control
35640 \family default
35641  submenu.
35642  Please note that if you use password protected access to repository via ssh,
35643  you will be asked in terminal window.
35644  \SpecialChar LyX
35645  was tested against GIT 1.7.
35646 \begin_inset Foot
35647 status collapsed
35648
35649 \begin_layout Plain Layout
35650 Windows users please note that you need to ensure that git is on the path.
35651  This can be set from within \SpecialChar LyX
35652  at 
35653 \family sans
35654 Tools\SpecialChar menuseparator
35655 Preferences\SpecialChar menuseparator
35656 Paths\SpecialChar menuseparator
35657 PATH prefix
35658 \family default
35659 .
35660 \end_layout
35661
35662 \end_inset
35663
35664
35665 \end_layout
35666
35667 \begin_layout Standard
35668 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
35669  With traditional version control systems there is one central server which hosts the repository.
35670  Users commit their changes to the server,
35671  and get updates made by other users from it.
35672  With GIT,
35673  users commit to a local repository.
35674  The local repository can be synchronized with one or more remote repositories using the 
35675 \begin_inset Flex Code
35676 status collapsed
35677
35678 \begin_layout Plain Layout
35679 pull
35680 \end_layout
35681
35682 \end_inset
35683
35684  and 
35685 \begin_inset Flex Code
35686 status collapsed
35687
35688 \begin_layout Plain Layout
35689 push
35690 \end_layout
35691
35692 \end_inset
35693
35694  GIT commands.
35695  \SpecialChar LyX
35696  does not interact in any way with remote GIT repositories.
35697  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
35698  If you use remote GIT repositories you need to do 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  operations with your favourite GIT client.
35719 \end_layout
35720
35721 \begin_layout Subsubsection
35722
35723 \family sans
35724 Register
35725 \end_layout
35726
35727 \begin_layout Standard
35728 If your document is not under revision control,
35729  this is the only item shown in the menu.
35730  And if it is under revision control,
35731  the 
35732 \family sans
35733 Register
35734 \family default
35735  item is not visible.
35736 \end_layout
35737
35738 \begin_layout Standard
35739 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
35740 \family typewriter
35741 .git/index
35742 \family default
35743  file exists).
35744  This means you have to checkout the archive by yourself.
35745 \end_layout
35746
35747 \begin_layout Standard
35748 Then you are asked interactively to supply an initial description of the document.
35749  Don't forget that registered file is not yet committed.
35750 \end_layout
35751
35752 \begin_layout Standard
35753 GIT command that is run:
35754  
35755 \family typewriter
35756 git add 
35757 \begin_inset Quotes qld
35758 \end_inset
35759
35760 <file-name>
35761 \begin_inset Quotes qld
35762 \end_inset
35763
35764
35765 \end_layout
35766
35767 \begin_layout Standard
35768 Read 
35769 \family typewriter
35770 man git
35771 \family default
35772  to understand the switches.
35773 \end_layout
35774
35775 \begin_layout Subsubsection
35776
35777 \family sans
35778 Check In Changes
35779 \end_layout
35780
35781 \begin_layout Standard
35782 When you are finished editing a file,
35783  you commit your changes.
35784  When you do this,
35785  you are asked for a description of the changes.
35786  After that changes are committed.
35787 \end_layout
35788
35789 \begin_layout Standard
35790 GIT command:
35791  
35792 \family typewriter
35793 git commit -q -m"<description>" <file-name>
35794 \end_layout
35795
35796 \begin_layout Subsubsection
35797
35798 \family sans
35799 Revert To Repository Version
35800 \end_layout
35801
35802 \begin_layout Standard
35803 This will discard all changes made to the document since the last check in.
35804  You get a warning before changes are discarded.
35805 \end_layout
35806
35807 \begin_layout Standard
35808 GIT command:
35809  
35810 \family typewriter
35811 git checkout -q 
35812 \begin_inset Quotes qld
35813 \end_inset
35814
35815 <file-name>
35816 \begin_inset Quotes qld
35817 \end_inset
35818
35819
35820 \end_layout
35821
35822 \begin_layout Subsubsection
35823
35824 \family sans
35825 Rename
35826 \end_layout
35827
35828 \begin_layout Standard
35829 This will rename the current document including the version history.
35830  It requires a clean document without any changes since the last checkin.
35831  You are asked for a file name and a description of the rename operation.
35832  After that the document is renamed,
35833  both locally and in the repository.
35834  If the parent directories of the new and old file names differ,
35835  all relative paths of included files are adjusted (like in 
35836 \family sans
35837 File\SpecialChar menuseparator
35838 Save As
35839 \family default
35840 \SpecialChar ldots
35841 ).
35842  Finally,
35843  the document is reloaded using the new name.
35844 \end_layout
35845
35846 \begin_layout Labeling
35847 \labelwidthstring 00.00.0000
35848 GIT
35849 \begin_inset space ~
35850 \end_inset
35851
35852 commands:
35853  
35854 \begin_inset space ~
35855 \end_inset
35856
35857
35858 \begin_inset Newline newline
35859 \end_inset
35860
35861
35862 \begin_inset Flex Code
35863 status collapsed
35864
35865 \begin_layout Plain Layout
35866 git mv 
35867 \family typewriter
35868
35869 \begin_inset Quotes qld
35870 \end_inset
35871
35872 <file-name>
35873 \begin_inset Quotes qld
35874 \end_inset
35875
35876  
35877 \begin_inset Quotes qld
35878 \end_inset
35879
35880 <new-file-name>
35881 \begin_inset Quotes qld
35882 \end_inset
35883
35884
35885 \end_layout
35886
35887 \end_inset
35888
35889
35890 \begin_inset Newline newline
35891 \end_inset
35892
35893
35894 \begin_inset Flex Code
35895 status collapsed
35896
35897 \begin_layout Plain Layout
35898 git commit
35899 \end_layout
35900
35901 \end_inset
35902
35903
35904 \end_layout
35905
35906 \begin_layout Subsubsection
35907
35908 \family sans
35909 Show History
35910 \end_layout
35911
35912 \begin_layout Standard
35913 This shows the complete history of the GIT document.
35914  The output of 
35915 \family typewriter
35916 git log 
35917 \begin_inset Quotes qld
35918 \end_inset
35919
35920 <file-name>
35921 \begin_inset Quotes qld
35922 \end_inset
35923
35924
35925 \family default
35926  is shown in a browser.
35927 \end_layout
35928
35929 \begin_layout Subsubsection
35930 Version Info
35931 \end_layout
35932
35933 \begin_layout Standard
35934 \SpecialChar LyX
35935  supports GIT hash number of the last commit to the file,
35936  
35937 \change_inserted 1119979965 1564297456
35938 its abbreviated form,
35939  
35940 \change_unchanged
35941 author name,
35942  date and time of last commit.
35943  All those are extracted from 
35944 \family typewriter
35945 git log -n 1 --pretty=format:%H%n
35946 \change_inserted 1119979965 1564297427
35947 %h%n
35948 \change_unchanged
35949 %an%n%ai
35950 \family default
35951 .
35952  Tree version information is obtained via 
35953 \family typewriter
35954 git describe --abbrev --dirty --long
35955 \family default
35956 .
35957  See 
35958 \begin_inset CommandInset ref
35959 LatexCommand ref
35960 reference "subsec:VCS-Revision-Information"
35961 nolink "false"
35962
35963 \end_inset
35964
35965  for other details.
35966 \end_layout
35967
35968 \begin_layout Subsection
35969 Further tuning
35970 \end_layout
35971
35972 \begin_layout Standard
35973 With the recent addition of the 
35974 \begin_inset Flex Code
35975 status collapsed
35976
35977 \begin_layout Plain Layout
35978 vc-command
35979 \end_layout
35980
35981 \end_inset
35982
35983  function \SpecialChar LyX
35984  power users are allowed to create their own commands for revision control.
35985 \end_layout
35986
35987 \begin_layout Standard
35988 As an example you can see how two TortoiseSVN commands could be integrated directly:
35989 \end_layout
35990
35991 \begin_layout Description
35992 Commit:
35993  
35994 \begin_inset Flex Code
35995 status collapsed
35996
35997 \begin_layout Plain Layout
35998 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
35999 \end_layout
36000
36001 \end_inset
36002
36003
36004 \end_layout
36005
36006 \begin_layout Description
36007 Revert:
36008  
36009 \begin_inset Flex Code
36010 status collapsed
36011
36012 \begin_layout Plain Layout
36013 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
36014 \end_layout
36015
36016 \end_inset
36017
36018
36019 \end_layout
36020
36021 \begin_layout Subsection
36022 Version control and Document comparison
36023 \end_layout
36024
36025 \begin_layout Standard
36026 One of the typical uses of version control is to inspect the changes between revisions,
36027  usually by creating 
36028 \begin_inset Flex Code
36029 status collapsed
36030
36031 \begin_layout Plain Layout
36032 diff
36033 \end_layout
36034
36035 \end_inset
36036
36037  dumps.
36038  While this is useful for plain text files,
36039  it is much less useful in the case of \SpecialChar LyX
36040  files,
36041  which have more a complicated structure.
36042  Hence we provide binding to the Document comparison feature.
36043  There are two ways of calling this feature – either by direct call of 
36044 \begin_inset Flex Code
36045 status collapsed
36046
36047 \begin_layout Plain Layout
36048 vc-compare
36049 \end_layout
36050
36051 \end_inset
36052
36053  \SpecialChar LyX
36054  function (for details see \SpecialChar LyX
36055  functions manual) or by the toolbar icon 
36056 \begin_inset Info
36057 type  "icon"
36058 arg   "vc-compare"
36059 \end_inset
36060
36061  or the menu item 
36062 \begin_inset Info
36063 type  "menu"
36064 arg   "vc-compare"
36065 \end_inset
36066
36067 ,
36068  respectively.
36069  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 '
36070 \begin_inset Flex Noun
36071 status collapsed
36072
36073 \begin_layout Plain Layout
36074 0
36075 \end_layout
36076
36077 \end_inset
36078
36079 ' revisions back means comparison of the edited file with last commited revision).
36080  
36081 \end_layout
36082
36083 \begin_layout Standard
36084 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,
36085  numbers always point to the last number in RCS revision number,
36086  i.e.
36087  '35' in '1.2.35'.
36088  We don't currently support GIT addressing of revisions,
36089  one can just compare edited document with its revision X steps backs,
36090  where X is addressed as 
36091 \begin_inset Flex Code
36092 status collapsed
36093
36094 \begin_layout Plain Layout
36095 HEAD~X
36096 \end_layout
36097
36098 \end_inset
36099
36100 .
36101 \end_layout
36102
36103 \begin_layout Section
36104
36105 \change_inserted 564990737 1672161575
36106 \begin_inset CommandInset label
36107 LatexCommand label
36108 name "sec:Literate-Programming"
36109
36110 \end_inset
36111
36112
36113 \change_unchanged
36114 Literate Programming
36115 \end_layout
36116
36117 \begin_layout Standard
36118 Updated by 
36119 \noun on
36120 Kayvan Sylvan 
36121 \noun default
36122 (kayvan@sylvan.com)
36123 \noun on
36124 ,
36125  
36126 \noun default
36127 original documentation written by 
36128 \noun on
36129 Edmar Wienskoski Jr.
36130
36131 \noun default
36132  (edmar-w-jr@technologist.com)
36133 \end_layout
36134
36135 \begin_layout Subsection
36136 Introduction
36137 \end_layout
36138
36139 \begin_layout Standard
36140 The main purpose of this documentation is to show you how to use \SpecialChar LyX
36141  for literate programming,
36142  where it is assumed that you are familiar with this programming technique,
36143  and know what 
36144 \begin_inset Quotes eld
36145 \end_inset
36146
36147 tangling
36148 \begin_inset Quotes erd
36149 \end_inset
36150
36151  and 
36152 \begin_inset Quotes eld
36153 \end_inset
36154
36155 weaving
36156 \begin_inset Quotes erd
36157 \end_inset
36158
36159  means.
36160  If that is not the case,
36161  please follow the web links provided in the following sections.
36162  There is a lot of good documentation out there covering old development history to the latest tools tips.
36163 \end_layout
36164
36165 \begin_layout Standard
36166 It is also assumed that you are familiar with \SpecialChar LyX
36167  itself to a point that you are comfortable changing your \SpecialChar LyX
36168  preferences,
36169  and X resources file.
36170  If that is not the case please refer to other \SpecialChar LyX
36171  documentation to cover your specific needs.
36172 \end_layout
36173
36174 \begin_layout Subsection
36175 Literate Programming
36176 \end_layout
36177
36178 \begin_layout Standard
36179 From the Literate Programming FAQ:
36180  
36181 \end_layout
36182
36183 \begin_layout Quotation
36184 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
36185  In fact,
36186  literate programs should be enjoyable reading,
36187  even inviting!
36188  (Sorry Bob,
36189  I couldn't resist!) In general,
36190  literate programs combine source and documentation in a single file.
36191  Literate programming tools then parse the file to produce either readable documentation or compilable source.
36192  The WEB style of literate programming was created by D.
36193 \begin_inset space \thinspace{}
36194 \end_inset
36195
36196 E.
36197  Knuth during the development of his \SpecialChar TeX
36198  typesetting software.
36199  
36200 \end_layout
36201
36202 \begin_layout Standard
36203 Another excerpt says:
36204 \end_layout
36205
36206 \begin_layout Quotation
36207
36208 \emph on
36209 How is literate programming different from verbose commenting?
36210 \end_layout
36211
36212 \begin_layout Quotation
36213 There are three distinguishing characteristics.
36214  In order of importance,
36215  they are:
36216  
36217 \end_layout
36218
36219 \begin_deeper
36220 \begin_layout Itemize
36221 flexible order of elaboration 
36222 \end_layout
36223
36224 \begin_layout Itemize
36225 automatic support for browsing 
36226 \end_layout
36227
36228 \begin_layout Itemize
36229 typeset documentation,
36230  especially diagrams and mathematics 
36231 \end_layout
36232
36233 \end_deeper
36234 \begin_layout Standard
36235 Now that I sparked your curiosity,
36236  take a look in the references.
36237 \end_layout
36238
36239 \begin_layout Subsubsection
36240 References
36241 \end_layout
36242
36243 \begin_layout Standard
36244 The complete Literate Programming FAQ can be found at:
36245 \end_layout
36246
36247 \begin_layout Quote
36248 Literate Programming FAQ 
36249 \begin_inset Flex URL
36250 status open
36251
36252 \begin_layout Plain Layout
36253
36254 http://www.literateprogramming.com/lpfaq.pdf
36255 \end_layout
36256
36257 \end_inset
36258
36259
36260 \end_layout
36261
36262 \begin_layout Standard
36263 The FAQ lists 23 (twenty three!) different literate programming tools.
36264  Where some are specialized or 
36265 \begin_inset Quotes eld
36266 \end_inset
36267
36268 tailored
36269 \begin_inset Quotes erd
36270 \end_inset
36271
36272  for particular programming languages,
36273  while other have general scope.
36274  I selected 
36275 \noun on
36276 Noweb
36277 \noun default
36278  for my own use for several reasons:
36279 \end_layout
36280
36281 \begin_layout Itemize
36282 It can generate the documentation either in \SpecialChar LaTeX
36283  or HTML.
36284 \end_layout
36285
36286 \begin_layout Itemize
36287 It has a open architecture,
36288  i.
36289 \begin_inset space \thinspace{}
36290 \end_inset
36291
36292 e.
36293 \begin_inset space \space{}
36294 \end_inset
36295
36296 it is easy to plug in new filters
36297 \begin_inset Foot
36298 status collapsed
36299
36300 \begin_layout Plain Layout
36301
36302 \emph on
36303 Filters 
36304 \emph default
36305 are programs that read a given data stream and output a manipulated data stream.
36306  That way,
36307  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
36308  code.
36309 \end_layout
36310
36311 \end_inset
36312
36313  and to perform special processing that you may need.
36314  
36315 \end_layout
36316
36317 \begin_layout Itemize
36318 There is a good selection of filters available already (the HTML is one of them).
36319 \end_layout
36320
36321 \begin_layout Itemize
36322 It is free.
36323 \end_layout
36324
36325 \begin_layout Standard
36326 The Noweb web page can be found at:
36327  
36328 \end_layout
36329
36330 \begin_layout Quote
36331 Noweb home page 
36332 \begin_inset Flex URL
36333 status collapsed
36334
36335 \begin_layout Plain Layout
36336
36337 https://www.cs.tufts.edu/~nr/noweb/
36338 \end_layout
36339
36340 \end_inset
36341
36342
36343 \end_layout
36344
36345 \begin_layout Standard
36346 Starting from there you can reach many other interesting links and even some literate program examples.
36347 \end_layout
36348
36349 \begin_layout Subsection
36350 \SpecialChar LyX
36351  and Literate Programming with Noweb
36352 \end_layout
36353
36354 \begin_layout Standard
36355 The \SpecialChar LyX
36356  support for Literate Programming is provided by using the generic \SpecialChar LyX
36357  converters mechanism.
36358  This support is provided in a 
36359 \begin_inset Quotes eld
36360 \end_inset
36361
36362 Noweb independent
36363 \begin_inset Quotes erd
36364 \end_inset
36365
36366  way,
36367  i.
36368 \begin_inset space \thinspace{}
36369 \end_inset
36370
36371 e.
36372 \begin_inset space \space{}
36373 \end_inset
36374
36375 you will be able to use this new \SpecialChar LyX
36376  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
36377  preferences.
36378 \end_layout
36379
36380 \begin_layout Subsubsection
36381 Generating documents and code (weaving and tangling)
36382 \end_layout
36383
36384 \begin_layout Paragraph
36385 Using the noweb module
36386 \end_layout
36387
36388 \begin_layout Standard
36389 If you have installed Noweb and \SpecialChar LyX
36390  successfully,
36391  whenever you open a new document,
36392  after you have chosen its document class,
36393  use the 
36394 \family sans
36395 Document\SpecialChar menuseparator
36396 Settings
36397 \family default
36398  menu to add the 
36399 \begin_inset Quotes eld
36400 \end_inset
36401
36402 noweb
36403 \begin_inset Quotes erd
36404 \end_inset
36405
36406  module.
36407  If Noweb is correctly installed,
36408  when you click on the 
36409 \begin_inset Quotes eld
36410 \end_inset
36411
36412 Modules
36413 \begin_inset Quotes erd
36414 \end_inset
36415
36416  link,
36417  you will see the 
36418 \begin_inset Quotes eld
36419 \end_inset
36420
36421 noweb
36422 \begin_inset Quotes erd
36423 \end_inset
36424
36425  module in the available list and you can add it to your document.
36426 \end_layout
36427
36428 \begin_layout Paragraph
36429 Typing code in
36430 \end_layout
36431
36432 \begin_layout Standard
36433 \SpecialChar LyX
36434  enables you to write code with a custom inset named 
36435 \begin_inset Flex Noun
36436 status collapsed
36437
36438 \begin_layout Plain Layout
36439 Chunk
36440 \end_layout
36441
36442 \end_inset
36443
36444 .
36445  Noweb delimits chunks like this:
36446 \end_layout
36447
36448 \begin_layout LyX-Code
36449 <<My code>>=
36450 \end_layout
36451
36452 \begin_layout LyX-Code
36453   code
36454 \end_layout
36455
36456 \begin_layout LyX-Code
36457   more code
36458 \end_layout
36459
36460 \begin_layout LyX-Code
36461   even more code
36462 \end_layout
36463
36464 \begin_layout LyX-Code
36465   @
36466 \end_layout
36467
36468 \begin_layout Standard
36469 The problem is that whatever is written in between the << and the 
36470 \family typewriter
36471 @
36472 \family default
36473  must be taken literally,
36474  i.
36475 \begin_inset space \thinspace{}
36476 \end_inset
36477
36478 e.
36479 \begin_inset space \space{}
36480 \end_inset
36481
36482 \SpecialChar LyX
36483  should be prevented from making any special interpretation of what has been written.
36484  This is also handled by 
36485 \begin_inset Flex Noun
36486 status collapsed
36487
36488 \begin_layout Plain Layout
36489 Chunk
36490 \end_layout
36491
36492 \end_inset
36493
36494 ,
36495  that works like a normal text inset but has a free spacing capability.
36496 \end_layout
36497
36498 \begin_layout Standard
36499 As a special note,
36500  you can also use the 
36501 \begin_inset Quotes eld
36502 \end_inset
36503
36504 %def
36505 \begin_inset Quotes erd
36506 \end_inset
36507
36508  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
36509 \end_layout
36510
36511 \begin_layout LyX-Code
36512 <<My chunk>>=
36513 \end_layout
36514
36515 \begin_layout LyX-Code
36516 def some_function(args):
36517 \end_layout
36518
36519 \begin_layout LyX-Code
36520    "This is the doc string for this function."
36521 \end_layout
36522
36523 \begin_layout LyX-Code
36524    print "My args:
36525  ",
36526  args
36527 \end_layout
36528
36529 \begin_layout LyX-Code
36530 @ %def some_function
36531 \end_layout
36532
36533 \begin_layout Standard
36534 For an example of this usage and the resulting cross-reference output,
36535  look at the Literate python program in 
36536 \emph on
36537 LIBDIR/examples/listerrors.lyx
36538 \emph default
36539  which should make this all clear.
36540 \end_layout
36541
36542 \begin_layout Paragraph
36543 Generating the documentation
36544 \end_layout
36545
36546 \begin_layout Standard
36547 At this point you already have a new document file with a proper document class,
36548  and with some code and text on it.
36549  How do I print it?
36550  The answer is simple,
36551  you select 
36552 \family sans
36553 View\SpecialChar menuseparator
36554 DVI,
36555
36556 \family default
36557  etc.
36558  Just like you would do for a plain document.
36559  No special procedure is required.
36560 \end_layout
36561
36562 \begin_layout Standard
36563 To help orientate you,
36564  I will now explain what happens inside \SpecialChar LyX
36565 :
36566 \end_layout
36567
36568 \begin_layout Enumerate
36569 When the 
36570 \family sans
36571 Update\SpecialChar menuseparator
36572 DVI
36573 \family default
36574  menu option is chosen,
36575  a \SpecialChar LaTeX
36576  file is generated.
36577  
36578 \end_layout
36579
36580 \begin_deeper
36581 \begin_layout Standard
36582 If the document is of any literate class the generated file will be named with an extension name defined by the 
36583 \begin_inset Quotes eld
36584 \end_inset
36585
36586 literate
36587 \begin_inset Quotes erd
36588 \end_inset
36589
36590  format (defined in the Preferences panel),
36591  otherwise the file will have the usual 
36592 \family typewriter
36593 .tex
36594 \family default
36595  extension.
36596 \end_layout
36597
36598 \end_deeper
36599 \begin_layout Enumerate
36600 Note that the only difference so far is in the name of the file,
36601  no special processing is required by \SpecialChar LyX
36602 .
36603  Given that you formatted the code using the 
36604 \begin_inset Flex Noun
36605 status collapsed
36606
36607 \begin_layout Plain Layout
36608 Chunk
36609 \end_layout
36610
36611 \end_inset
36612
36613  inset that,
36614  by itself,
36615  takes care of the business.
36616 \end_layout
36617
36618 \begin_layout Enumerate
36619 If the document is of any literate class \SpecialChar LyX
36620  will then use the internal \SpecialChar LyX
36621  to Noweb converter,
36622  followed by the Noweb to \SpecialChar LaTeX
36623  converter
36624 \begin_inset Foot
36625 status collapsed
36626
36627 \begin_layout Plain Layout
36628 The converters are defined in the 
36629 \family sans
36630 Tools\SpecialChar menuseparator
36631 Preferences
36632 \family default
36633  panel,
36634  under the 
36635 \begin_inset Quotes eld
36636 \end_inset
36637
36638 Conversion
36639 \begin_inset Quotes erd
36640 \end_inset
36641
36642  tab.
36643  See section 
36644 \emph on
36645 Converters
36646 \emph default
36647  of the 
36648 \emph on
36649 Customization
36650 \emph default
36651  manual for general information about converters.
36652 \end_layout
36653
36654 \end_inset
36655
36656  to generate the \SpecialChar LaTeX
36657  file.
36658 \end_layout
36659
36660 \begin_deeper
36661 \begin_layout Standard
36662 Otherwise it will just skip this step.
36663 \end_layout
36664
36665 \end_deeper
36666 \begin_layout Enumerate
36667 Finally,
36668  \SpecialChar LaTeX
36669  is invoked and the regular post processing continues as in a plain document.
36670 \end_layout
36671
36672 \begin_layout Standard
36673 Independence from a particular 
36674 \begin_inset Quotes eld
36675 \end_inset
36676
36677 literate tool
36678 \begin_inset Quotes erd
36679 \end_inset
36680
36681  is easily achieved by changing the commands that are run by the various converters.
36682 \end_layout
36683
36684 \begin_layout Paragraph
36685 Generating the code
36686 \end_layout
36687
36688 \begin_layout Standard
36689 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
36690  a \SpecialChar LaTeX
36691  file is generated just like step 1 above.
36692  Next,
36693  \SpecialChar LyX
36694  invokes the 
36695 \family typewriter
36696 Noweb->Program
36697 \family default
36698  converter.
36699  This converter needs to be defined by the user and is not installed by default,
36700  though the Program format is.
36701  This converter (like any other converter) will have two parts:
36702 \end_layout
36703
36704 \begin_layout Enumerate
36705 The converter program itself.
36706  This program performs the conversion from the one format to the other (in this case,
36707  from the Noweb format to the Program pseudo-format).
36708 \end_layout
36709
36710 \begin_layout Enumerate
36711 The error log parser.
36712  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
36713  understands.
36714  This makes it possible for \SpecialChar LyX
36715  to place error boxes in the right places in the file buffer.
36716 \end_layout
36717
36718 \begin_layout Standard
36719 The first part,
36720  the 
36721 \begin_inset Quotes eld
36722 \end_inset
36723
36724 Converter
36725 \begin_inset Quotes erd
36726 \end_inset
36727
36728  setting,
36729  should be set to
36730 \end_layout
36731
36732 \begin_layout LyX-Code
36733
36734 \family typewriter
36735 build-script $$i
36736 \family default
36737  $$r
36738 \end_layout
36739
36740 \begin_layout Standard
36741 This basically means that \SpecialChar LyX
36742  will call 
36743 \begin_inset Quotes eld
36744 \end_inset
36745
36746 build-script
36747 \begin_inset Quotes erd
36748 \end_inset
36749
36750  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
36751  temp directory) and the directory path of the original \SpecialChar LyX
36752  file.
36753  
36754 \end_layout
36755
36756 \begin_layout Standard
36757 This is an implementation of 
36758 \begin_inset Quotes eld
36759 \end_inset
36760
36761 build-script
36762 \begin_inset Quotes erd
36763 \end_inset
36764
36765  that you can place in a directory on your path:
36766 \end_layout
36767
36768 \begin_layout LyX-Code
36769
36770 \family sans
36771 #!/bin/sh
36772 \end_layout
36773
36774 \begin_layout LyX-Code
36775
36776 \family sans
36777 #
36778 \end_layout
36779
36780 \begin_layout LyX-Code
36781
36782 \family sans
36783 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
36784 \end_layout
36785
36786 \begin_layout Standard
36787 The next part of the converter setting is the 
36788 \begin_inset Quotes eld
36789 \end_inset
36790
36791 Flags
36792 \begin_inset Quotes erd
36793 \end_inset
36794
36795  which is to be set to
36796 \end_layout
36797
36798 \begin_layout LyX-Code
36799
36800 \family typewriter
36801 parselog=$$s/scripts/listerrors
36802 \end_layout
36803
36804 \begin_layout Standard
36805 This will run any errors that are generated by the 
36806 \begin_inset Quotes eld
36807 \end_inset
36808
36809 build-script
36810 \begin_inset Quotes erd
36811 \end_inset
36812
36813  process through the 
36814 \begin_inset Quotes eld
36815 \end_inset
36816
36817 listerrors
36818 \begin_inset Quotes erd
36819 \end_inset
36820
36821  program.
36822 \end_layout
36823
36824 \begin_layout Standard
36825 The build will normally take place in \SpecialChar LyX
36826 's temporary directory,
36827  so the files produced by the conversion will be in that directory.
36828  \SpecialChar LyX
36829  will copy out what it regards as the `main' file,
36830  but the 
36831 \family typewriter
36832 Noweb->Program
36833 \family default
36834  conversion may produce several files,
36835  and so most of these would then be deleted when \SpecialChar LyX
36836  was closed.
36837  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.
36838 \end_layout
36839
36840 \begin_layout Paragraph
36841 Build instructions in the document
36842 \end_layout
36843
36844 \begin_layout Standard
36845 The last piece of the integration between \SpecialChar LyX
36846  and noweb is the 
36847 \begin_inset Quotes eld
36848 \end_inset
36849
36850 build-script
36851 \begin_inset Quotes erd
36852 \end_inset
36853
36854  chunk.
36855  Generally,
36856  the instructions for building your program should be embedded in a chunk of its own.
36857  The noweb-specific 
36858 \begin_inset Quotes eld
36859 \end_inset
36860
36861 build-script
36862 \begin_inset Quotes erd
36863 \end_inset
36864
36865  above uses the notangle command to look for this chunk (called 
36866 \begin_inset Quotes eld
36867 \end_inset
36868
36869 build-script
36870 \begin_inset Quotes erd
36871 \end_inset
36872
36873 ) and runs its contents through 
36874 \begin_inset Quotes eld
36875 \end_inset
36876
36877 sh
36878 \begin_inset Quotes erd
36879 \end_inset
36880
36881 .
36882 \end_layout
36883
36884 \begin_layout Standard
36885 Typically,
36886  such a chunk would look something like this:
36887 \end_layout
36888
36889 \begin_layout LyX-Code
36890 <<build-script>>=
36891 \end_layout
36892
36893 \begin_layout LyX-Code
36894 #!/bin/sh
36895 \begin_inset Newline newline
36896 \end_inset
36897
36898 if [ -z "${NOWEB_SOURCE}" ]
36899 \begin_inset Newline newline
36900 \end_inset
36901
36902 then
36903 \end_layout
36904
36905 \begin_layout LyX-Code
36906 NOWEB_SOURCE=myfile.nw
36907 \begin_inset Newline newline
36908 \end_inset
36909
36910 fi
36911 \begin_inset Newline newline
36912 \end_inset
36913
36914 [...
36915  code to extract files ...
36916  use NOWEB_OUTPUT_DIR here ...]
36917 \begin_inset Newline newline
36918 \end_inset
36919
36920 [...
36921  code to compile files ...]
36922 \begin_inset Newline newline
36923 \end_inset
36924
36925 @
36926 \end_layout
36927
36928 \begin_layout Standard
36929 Look in 
36930 \change_deleted 564990737 1672161716
36931
36932 \emph on
36933 LIBDIR/examples/listerrors.lyx
36934 \emph default
36935  or in 
36936 \emph on
36937 LIBDIR/examples/Literate.lyx
36938 \change_inserted 564990737 1672161716
36939
36940 \family sans
36941 \emph default
36942 File\SpecialChar menuseparator
36943 Open Example\SpecialChar menuseparator
36944 Modules\SpecialChar menuseparator
36945 Noweb Listerrors
36946 \change_unchanged
36947
36948 \family default
36949  which implement 
36950 \change_deleted 564990737 1672161729
36951 two 
36952 \change_unchanged
36953 versions of the 
36954 \begin_inset Quotes eld
36955 \end_inset
36956
36957 listerrors
36958 \begin_inset Quotes erd
36959 \end_inset
36960
36961  program for some illustrations of how all of these pieces go together or in 
36962 \change_deleted 564990737 1672161756
36963
36964 \emph on
36965 LIBDIR/examples/noweb2lyx.lyx
36966 \change_inserted 564990737 1672161756
36967
36968 \family sans
36969 \emph default
36970 File\SpecialChar menuseparator
36971 Open Example\SpecialChar menuseparator
36972 Modules\SpecialChar menuseparator
36973 Noweb2\SpecialChar LyX
36974
36975 \change_unchanged
36976
36977 \family default
36978 \emph on
36979 .
36980
36981 \emph default
36982  Interestingly,
36983  these 
36984 \change_deleted 564990737 1672161767
36985 three 
36986 \change_unchanged
36987 files show off the language-indepence of the \SpecialChar LyX
36988  literate programming support since they are written in Python
36989 \change_deleted 564990737 1672161782
36990 ,
36991  C
36992 \change_unchanged
36993  and Perl respectively.
36994 \end_layout
36995
36996 \begin_layout Subsubsection
36997 Configuring \SpecialChar LyX
36998
36999 \end_layout
37000
37001 \begin_layout Standard
37002 All the Literate Programming support is configured by the 
37003 \family sans
37004 Tools\SpecialChar menuseparator
37005 Preferences
37006 \family default
37007  panel in the 
37008 \begin_inset Quotes eld
37009 \end_inset
37010
37011 File Handling
37012 \begin_inset Quotes erd
37013 \end_inset
37014
37015  tab.
37016  The important parts are:
37017 \end_layout
37018
37019 \begin_layout Description
37020 the
37021 \begin_inset space ~
37022 \end_inset
37023
37024
37025 \begin_inset Quotes eld
37026 \end_inset
37027
37028 NoWeb
37029 \begin_inset Quotes erd
37030 \end_inset
37031
37032
37033 \begin_inset space ~
37034 \end_inset
37035
37036 format Set up via the File Formats tab,
37037  this is where the Noweb-specific pieces are set up.
37038  The 
37039 \family sans
37040 GUI Name
37041 \family default
37042  is set to 
37043 \family typewriter
37044 NoWeb
37045 \family default
37046 ,
37047  the file extension is set to 
37048 \family typewriter
37049 .nw
37050 \family default
37051 .
37052  This tells \SpecialChar LyX
37053  to create a file with a 
37054 \family typewriter
37055 .nw
37056 \family default
37057  extension in the first step of the conversion process.
37058 \end_layout
37059
37060 \begin_layout Description
37061 the
37062 \begin_inset space ~
37063 \end_inset
37064
37065
37066 \family sans
37067 Program
37068 \family default
37069
37070 \begin_inset space ~
37071 \end_inset
37072
37073 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).
37074 \end_layout
37075
37076 \begin_layout Description
37077
37078 \family sans
37079 NoWeb
37080 \family default
37081 ->
37082 \family sans
37083 \SpecialChar LaTeX
37084
37085 \family default
37086  This converter performs the 
37087 \begin_inset Quotes eld
37088 \end_inset
37089
37090 weaving
37091 \begin_inset Quotes erd
37092 \end_inset
37093
37094  of the literate document.
37095  For Noweb,
37096  it is set to 
37097 \begin_inset Quotes eld
37098 \end_inset
37099
37100
37101 \family typewriter
37102 noweave -delay -index $$i > $$o
37103 \family default
37104
37105 \begin_inset Quotes erd
37106 \end_inset
37107
37108
37109 \end_layout
37110
37111 \begin_layout Description
37112
37113 \family sans
37114 NoWeb
37115 \family default
37116 ->
37117 \family sans
37118 Program
37119 \family default
37120  This performs the 
37121 \begin_inset Quotes eld
37122 \end_inset
37123
37124 tangling step
37125 \begin_inset Quotes erd
37126 \end_inset
37127
37128 .
37129  As stated above,
37130  the Converter is set to 
37131 \begin_inset Quotes eld
37132 \end_inset
37133
37134
37135 \family typewriter
37136 build-script $$i
37137 \family default
37138  $$r
37139 \begin_inset Quotes erd
37140 \end_inset
37141
37142 ,
37143  with Flags set to
37144 \begin_inset Newline newline
37145 \end_inset
37146
37147
37148 \begin_inset Quotes eld
37149 \end_inset
37150
37151
37152 \family typewriter
37153 parselog=$$s/scripts/listerrors
37154 \family default
37155
37156 \begin_inset Quotes erd
37157 \end_inset
37158
37159 .
37160 \end_layout
37161
37162 \begin_layout Subsubsection
37163 Debug extensions
37164 \end_layout
37165
37166 \begin_layout Standard
37167 There is also a new function implemented in the \SpecialChar LyX
37168  server,
37169  the 
37170 \begin_inset Quotes eld
37171 \end_inset
37172
37173 server-goto-file-row" function,
37174  to be used with ddd/gdb or other debugger.
37175  
37176 \end_layout
37177
37178 \begin_layout Standard
37179 When debugging code with ddd/gdb,
37180  it is possible to invoke a text editor at the current execution position with a single key stroke.
37181  The default ddd configuration for that is shift-ctrl-V.
37182  It happens that you can define the editor command line invocation in ddd by accessing the 
37183 \family sans
37184 Edit\SpecialChar menuseparator
37185 Preferences\SpecialChar menuseparator
37186 Helpers
37187 \family default
37188  dialog and changing the "Edit Sources" entry.
37189 \end_layout
37190
37191 \begin_layout Standard
37192 I take advantage of the newly created \SpecialChar LyX
37193  server function and this ddd feature,
37194  and set 
37195 \begin_inset Quotes eld
37196 \end_inset
37197
37198 Edit Sources
37199 \begin_inset Quotes erd
37200 \end_inset
37201
37202  to:
37203 \end_layout
37204
37205 \begin_layout LyX-Code
37206 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
37207 \end_layout
37208
37209 \begin_layout Standard
37210 With this,
37211  whenever you are using ddd and find a point in the program that you want to edit,
37212  you just press shift-ctrl-V (in the ddd window),
37213  and ddd will forward this information to \SpecialChar LyX
37214  through the \SpecialChar LyX
37215  server and then the \SpecialChar LyX
37216  window will show the same file with the cursor at the same position ddd was pointing to.
37217  No more guessing or long scrolling to locate a point in the program back from debugging !
37218 \end_layout
37219
37220 \begin_layout Standard
37221 Note however that you must enable the \SpecialChar LyX
37222  server to get this feature working (it is disabled by default).
37223  Sec.
37224 \begin_inset space ~
37225 \end_inset
37226
37227
37228 \begin_inset CommandInset ref
37229 LatexCommand ref
37230 reference "sec:Starting-the-Server"
37231 nolink "false"
37232
37233 \end_inset
37234
37235  explains how to do that.
37236 \end_layout
37237
37238 \begin_layout Subsubsection
37239 Toolbar extensions
37240 \end_layout
37241
37242 \begin_layout Standard
37243 There are six new buttons that can be added to your \SpecialChar LyX
37244  toolbar.
37245  Four of these buttons are short cuts to layout styles:
37246  
37247 \family sans
37248 Standard
37249 \family default
37250 ,
37251  
37252 \family sans
37253 Section
37254 \family default
37255 ,
37256  
37257 \family sans
37258 \SpecialChar LaTeX
37259
37260 \family default
37261 ,
37262  and 
37263 \family sans
37264 \SpecialChar LyX
37265 -Code
37266 \family default
37267 ,
37268  one for the custom inset 
37269 \family sans
37270 Chunk
37271 \family default
37272 .
37273  The last one is a short cut to the 
37274 \begin_inset Quotes eld
37275 \end_inset
37276
37277 Build Program
37278 \begin_inset Quotes erd
37279 \end_inset
37280
37281  File menu entry.
37282  
37283 \end_layout
37284
37285 \begin_layout Standard
37286 \SpecialChar LyX
37287  has a range of buttons that are available for tool bar customization.
37288  In my toolbar I like to combine the six short cuts above with two more:
37289  One for 
37290 \family sans
37291 Document
37292 \family default
37293 \SpecialChar menuseparator
37294
37295 \family sans
37296 Update
37297 \family default
37298 \SpecialChar menuseparator
37299
37300 \family sans
37301 DVI
37302 \family default
37303  and the other for 
37304 \family sans
37305 Document\SpecialChar menuseparator
37306 View\SpecialChar menuseparator
37307 DVI
37308 \family default
37309  File menu entries.
37310  Here is how it looks like:
37311 \end_layout
37312
37313 \begin_layout LyX-Code
37314 Toolbar
37315 \end_layout
37316
37317 \begin_layout LyX-Code
37318   Layouts
37319 \end_layout
37320
37321 \begin_layout LyX-Code
37322   Icon "layout Standard"
37323 \end_layout
37324
37325 \begin_layout LyX-Code
37326   Icon "layout Section"
37327 \end_layout
37328
37329 \begin_layout LyX-Code
37330   Icon "layout \SpecialChar LaTeX
37331 "
37332 \end_layout
37333
37334 \begin_layout LyX-Code
37335   Icon "layout \SpecialChar LyX
37336 -Code"
37337 \end_layout
37338
37339 \begin_layout LyX-Code
37340   Icon "flex.insert Chunk"
37341 \end_layout
37342
37343 \begin_layout LyX-Code
37344   Separator
37345 \end_layout
37346
37347 \begin_layout LyX-Code
37348   Icon "buffer-view"
37349 \end_layout
37350
37351 \begin_layout LyX-Code
37352   Icon "buffer-typeset"
37353 \end_layout
37354
37355 \begin_layout LyX-Code
37356   Icon "build-program"
37357 \end_layout
37358
37359 \begin_layout LyX-Code
37360   Separator
37361 \end_layout
37362
37363 \begin_layout LyX-Code
37364 .
37365 \end_layout
37366
37367 \begin_layout LyX-Code
37368 .
37369 \end_layout
37370
37371 \begin_layout LyX-Code
37372 .
37373 \end_layout
37374
37375 \begin_layout LyX-Code
37376 End
37377 \end_layout
37378
37379 \begin_layout Subsubsection
37380 Colors customization
37381 \end_layout
37382
37383 \begin_layout Standard
37384 There are a number of colors in \SpecialChar LyX
37385  that can be customized in 
37386 \family sans
37387 Preferences
37388 \family default
37389 .
37390  One of the things that bothers people is the \SpecialChar LaTeX
37391  font color.
37392  The default color is red,
37393  since the chunks uses \SpecialChar LaTeX
37394  font,
37395  and there is a lot of chunks in literate documents,
37396  you may get tired of seeing everything in red.
37397  You can change it by going to the tabs 
37398 \family sans
37399 Look&Feel
37400 \family default
37401 ,
37402  
37403 \family sans
37404 Colors.
37405 \end_layout
37406
37407 \begin_layout Standard
37408 The next thing is the visible presence of the newline character in the screen.
37409  You can choose the color of this particular character and make it blend in the background.
37410  I recommend you choosing a color that is close to the background but not equal,
37411  that way you still can see it is there,
37412  but it is not bothering you anymore.
37413 \end_layout
37414
37415 \begin_layout Subsection
37416 \SpecialChar LyX
37417  and knitr/Sweave
37418 \end_layout
37419
37420 \begin_layout Standard
37421 Support for 
37422 \family sans
37423 knitr
37424 \family default
37425  and 
37426 \family sans
37427 Sweave
37428 \family default
37429  is documented in
37430 \change_inserted 564990737 1672161863
37431  
37432 \family sans
37433 Help\SpecialChar menuseparator
37434 Specific Manuals\SpecialChar menuseparator
37435 Knitr
37436 \family default
37437  and
37438 \change_unchanged
37439  
37440 \change_deleted 564990737 1671643409
37441 the 
37442 \emph on
37443 knitr.lyx
37444 \emph default
37445  example file
37446 \change_inserted 564990737 1672161856
37447
37448 \family sans
37449 File\SpecialChar menuseparator
37450 Open Example\SpecialChar menuseparator
37451 Modules\SpecialChar menuseparator
37452 Rnw (knitr)
37453 \change_unchanged
37454
37455 \family default
37456  and in 
37457 \change_deleted 564990737 1671643461
37458 the Sweave manual (menu 
37459 \family sans
37460 Help\SpecialChar menuseparator
37461 Specific Manuals
37462 \family default
37463 )
37464 \change_inserted 564990737 1672161856
37465
37466 \family sans
37467 Help\SpecialChar menuseparator
37468 Specific Manuals\SpecialChar menuseparator
37469 Sweave
37470 \change_deleted 564990737 1672161921
37471
37472 \family default
37473 .
37474
37475 \change_inserted 564990737 1672161917
37476  and 
37477 \family sans
37478 File\SpecialChar menuseparator
37479 Open Example\SpecialChar menuseparator
37480 Modules\SpecialChar menuseparator
37481 Sweave
37482 \family default
37483 .
37484 \change_deleted 564990737 1672742969
37485
37486 \end_layout
37487
37488 \begin_layout Standard
37489
37490 \change_deleted 564990737 1671355343
37491 Special features
37492 \end_layout
37493
37494 \begin_layout Standard
37495
37496 \change_deleted 564990737 1671355343
37497 You can do everything with \SpecialChar LyX
37498  that you can do with \SpecialChar LaTeX
37499 .
37500  However,
37501  \SpecialChar LyX
37502  cannot support every \SpecialChar LaTeX
37503  feature directly.
37504  But you can always use \SpecialChar TeX
37505  Code.
37506  This chapter shows you some more special things you might want to use.
37507  For other special things you can do with figures,
37508  tables,
37509  floats,
37510  boxes and notes,
37511  have a look at the 
37512 \emph on
37513 Embedded
37514 \begin_inset space ~
37515 \end_inset
37516
37517 Objects
37518 \emph default
37519  manual.
37520 \change_unchanged
37521
37522 \end_layout
37523
37524 \end_body
37525 \end_document