]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Additional.lyx: resave with LyX binary
[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 564990737 "John Lyx"
142 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
143 \author 1075283030 "Thibaut"
144 \author 1119979965 "Joel A. Kulesza"
145 \end_header
146
147 \begin_body
148
149 \begin_layout Title
150 Additional \SpecialChar LyX
151  Features
152 \end_layout
153
154 \begin_layout Subtitle
155 Version 2.
156 \change_deleted 630872221 1622909155
157 3
158 \change_inserted 630872221 1622909155
159 4
160 \change_unchanged
161 .x
162 \end_layout
163
164 \begin_layout Author
165 by the \SpecialChar LyX
166  Team
167 \begin_inset Foot
168 status collapsed
169
170 \begin_layout Plain Layout
171 \noindent
172 Principal maintainer of this file is
173 \noun on
174  Richard Kimberly Heck
175 \noun default
176 .
177  If you have comments or error corrections,
178  please send them to the \SpecialChar LyX
179  Documentation mailing list,
180  
181 \begin_inset Flex Code
182 status collapsed
183
184 \begin_layout Plain Layout
185 <lyx-docs@lists.lyx.org>
186 \end_layout
187
188 \end_inset
189
190 .
191 \end_layout
192
193 \end_inset
194
195
196 \end_layout
197
198 \begin_layout Standard
199 \begin_inset CommandInset toc
200 LatexCommand tableofcontents
201
202 \end_inset
203
204
205 \end_layout
206
207 \begin_layout Standard
208
209 \change_inserted 5863208 1672865652
210 \begin_inset Note Note
211 status open
212
213 \begin_layout Plain Layout
214
215 \change_inserted 5863208 1672865674
216 Note to all translators:
217 \end_layout
218
219 \begin_layout Plain Layout
220
221 \change_inserted 5863208 1672865817
222 This manual was restructured for LyX 2.4.
223  Attached are notes for translators to help them to find their way round the new structure of Additional.lyx.
224  This note itself will be deleted in the final 2.4 release.
225 \begin_inset Newline newline
226 \end_inset
227
228
229 \end_layout
230
231 \begin_layout Plain Layout
232
233 \change_inserted 5863208 1672865801
234
235 \series bold
236 Additional.lyx 2.4 Changes
237 \end_layout
238
239 \begin_layout Itemize
240
241 \change_inserted 5863208 1672865801
242 Chapter 1:
243  none
244 \end_layout
245
246 \begin_layout Itemize
247
248 \change_inserted 5863208 1672865801
249 Chapter 2:
250  none
251 \end_layout
252
253 \begin_layout Itemize
254
255 \change_inserted 5863208 1672865801
256 Chapter 3:
257  Document classes:
258  new chapter
259 \end_layout
260
261 \begin_deeper
262 \begin_layout Itemize
263
264 \change_inserted 5863208 1672865801
265 AMS LaTeX:
266  moved and minor edits
267 \end_layout
268
269 \begin_layout Itemize
270
271 \change_inserted 5863208 1672865801
272 Extra font styles:
273  new
274 \end_layout
275
276 \begin_layout Itemize
277
278 \change_inserted 5863208 1672865801
279 Hebrew:
280  new
281 \end_layout
282
283 \begin_layout Itemize
284
285 \change_inserted 5863208 1672865801
286 Japanese:
287  new
288 \end_layout
289
290 \begin_layout Itemize
291
292 \change_inserted 5863208 1672865801
293 KOMA-Script:
294  moved and significant edits
295 \end_layout
296
297 \begin_layout Itemize
298
299 \change_inserted 5863208 1672865801
300 Polish:
301  moved and minor edit
302 \end_layout
303
304 \begin_layout Itemize
305
306 \change_inserted 5863208 1672865801
307 Tufte:
308  new
309 \end_layout
310
311 \begin_layout Itemize
312
313 \change_inserted 5863208 1672865801
314 A&A Paper:
315  moved and minor edits
316 \end_layout
317
318 \begin_layout Itemize
319
320 \change_inserted 5863208 1672865801
321 AASTeX:
322  moved
323 \end_layout
324
325 \begin_layout Itemize
326
327 \change_inserted 5863208 1672865801
328 Chess:
329  new
330 \end_layout
331
332 \begin_layout Itemize
333
334 \change_inserted 5863208 1672865801
335 Elsevier:
336  new
337 \end_layout
338
339 \begin_layout Itemize
340
341 \change_inserted 5863208 1672865801
342 Paper:
343  new
344 \end_layout
345
346 \begin_layout Itemize
347
348 \change_inserted 5863208 1672865824
349 RevTeX:
350  moved
351 \end_layout
352
353 \begin_layout Itemize
354
355 \change_inserted 5863208 1672865831
356 Springer:
357  new
358 \end_layout
359
360 \begin_layout Itemize
361
362 \change_inserted 5863208 1672865831
363 Memoir:
364  moved
365 \end_layout
366
367 \begin_layout Itemize
368
369 \change_inserted 5863208 1672865831
370 Recipe Book:
371  new
372 \end_layout
373
374 \begin_layout Itemize
375
376 \change_inserted 5863208 1672865831
377 Curricula vitae:
378  all new
379 \end_layout
380
381 \begin_layout Itemize
382
383 \change_inserted 5863208 1672865831
384 Letters:
385  all new
386 \end_layout
387
388 \begin_layout Itemize
389
390 \change_inserted 5863208 1672865831
391 Beamer:
392  new
393 \end_layout
394
395 \begin_layout Itemize
396
397 \change_inserted 5863208 1672865831
398 Foils:
399  moved with minor edits
400 \end_layout
401
402 \begin_layout Itemize
403
404 \change_inserted 5863208 1672865831
405 Powerdot:
406  new
407 \end_layout
408
409 \begin_layout Itemize
410
411 \change_inserted 5863208 1672865831
412 Seminar:
413  new
414 \end_layout
415
416 \begin_layout Itemize
417
418 \change_inserted 5863208 1672865831
419 Slides:
420  moved with minor edits
421 \end_layout
422
423 \begin_layout Itemize
424
425 \change_inserted 5863208 1672865831
426 Reports:
427  new
428 \end_layout
429
430 \begin_layout Itemize
431
432 \change_inserted 5863208 1672865831
433 Broadway:
434  moved
435 \end_layout
436
437 \begin_layout Itemize
438
439 \change_inserted 5863208 1672865831
440 Hollywood:
441  moved
442 \end_layout
443
444 \begin_layout Itemize
445
446 \change_inserted 5863208 1672865831
447 (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.)
448 \end_layout
449
450 \end_deeper
451 \begin_layout Itemize
452
453 \change_inserted 5863208 1672865831
454 Chapter 4:
455  Modules:
456  new chapter
457 \end_layout
458
459 \begin_deeper
460 \begin_layout Itemize
461
462 \change_inserted 5863208 1672865831
463 All module descriptions new except:
464 \end_layout
465
466 \begin_layout Itemize
467
468 \change_inserted 5863208 1672865831
469 Customizable lists:
470  moved with minor edits
471 \end_layout
472
473 \begin_layout Itemize
474
475 \change_inserted 5863208 1672865831
476 Custom header/footer text:
477  moved with minor edits
478 \end_layout
479
480 \begin_layout Itemize
481
482 \change_inserted 5863208 1672865831
483 Multiple columns:
484  moved with minor edits
485 \end_layout
486
487 \begin_layout Itemize
488
489 \change_inserted 5863208 1672865831
490 Custom paragraph shapes:
491  moved with minor edits
492 \end_layout
493
494 \begin_layout Itemize
495
496 \change_inserted 5863208 1672865831
497 Initials:
498  moved with minor edits
499 \end_layout
500
501 \end_deeper
502 \begin_layout Itemize
503
504 \change_inserted 5863208 1672865831
505 Chapter 5:
506  Bibliography:
507  new chapter
508 \end_layout
509
510 \begin_deeper
511 \begin_layout Itemize
512
513 \change_inserted 5863208 1672865831
514 Content moved but unchanged
515 \end_layout
516
517 \end_deeper
518 \begin_layout Itemize
519
520 \change_inserted 5863208 1672865831
521 Chapter 6:
522  Bullets:
523  new chapter
524 \end_layout
525
526 \begin_deeper
527 \begin_layout Itemize
528
529 \change_inserted 5863208 1672865845
530 Content moved but unchanged
531 \end_layout
532
533 \end_deeper
534 \begin_layout Itemize
535
536 \change_inserted 5863208 1672865845
537 Chapter 9:
538  DocBook output:
539  new chapter and content
540 \end_layout
541
542 \begin_layout Itemize
543
544 \change_inserted 5863208 1672865845
545 All other chapters unchanged but renumbered except:
546 \end_layout
547
548 \begin_layout Itemize
549
550 \change_inserted 5863208 1672865845
551 section 11.3 Literate programming:
552  minor edits
553 \change_unchanged
554
555 \end_layout
556
557 \end_inset
558
559
560 \end_layout
561
562 \begin_layout Chapter
563 Introduction
564 \end_layout
565
566 \begin_layout Standard
567 This manual is essentially Part II of the 
568 \emph on
569 User's Guide\SpecialChar endofsentence
570
571 \emph default
572  The reason for separating the two documents is simple:
573  the 
574 \emph on
575 User's Guide
576 \emph default
577  is already quite lengthy,
578  and it contains information on all of the basic features one needs to know in order to prepare most documents.
579  However,
580  the \SpecialChar LyX
581  Team has worked to make \SpecialChar LyX
582  extensible through various configuration files and external packages.
583  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
584  package,
585  you can create a layout file (or module) for it without having to alter \SpecialChar LyX
586  itself.
587  We've already had contributions of several new features this way,
588  and some of them are documented here.
589  There are also some more `advanced' features,
590  such as how to control the presentation of bibliographies and how to work with multi-part documents,
591  that are not covered in the 
592 \emph on
593 User's Guide
594 \emph default
595  and are discussed here.
596 \end_layout
597
598 \begin_layout Standard
599 This manual also documents some special features,
600  like fax support
601 \change_deleted 244031559 1603802929
602 ,
603
604 \change_inserted 244031559 1603802931
605  and
606 \change_unchanged
607  version control
608 \change_deleted 244031559 1603802954
609 ,
610  and SGML support
611 \change_unchanged
612 ,
613  which require additional software to work properly.
614  There is also a chapter on \SpecialChar LyX
615 's support for HTML.
616  And lastly,
617  there's a chapter of \SpecialChar LaTeX
618  tools and tips,
619  things you can use to spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
620 .
621  After all,
622  \SpecialChar LyX
623  
624 \emph on
625 is
626 \emph default
627  only WYSIWYM and will only ever interface to some,
628  not all,
629  \SpecialChar LaTeX
630  features.
631 \end_layout
632
633 \begin_layout Standard
634 If you haven't read the 
635 \emph on
636 Introduction
637 \emph default
638  yet,
639  you are definitely in the wrong manual.
640  The 
641 \emph on
642 Introduction
643 \emph default
644  is the first place to go,
645  since it describes the notation and format of all of the manuals.
646  You should also be thoroughly familiar with the 
647 \emph on
648 User's Guide
649 \emph default
650  and all of the basic features of \SpecialChar LyX
651  before attempting to read this one.
652 \end_layout
653
654 \begin_layout Standard
655 Since many of the topics in this manual depend heavily on \SpecialChar LyX
656 's interaction with \SpecialChar LaTeX
657 ,
658  this first chapter covers the inner workings of \SpecialChar LyX
659  and how to direct \SpecialChar LyX
660  to generate exactly the \SpecialChar LaTeX
661  code you want.
662  It is obviously for more seasoned \SpecialChar LyX
663  users.
664 \end_layout
665
666 \begin_layout Chapter
667 \SpecialChar LyX
668  and \SpecialChar LaTeX
669
670 \end_layout
671
672 \begin_layout Section
673 How \SpecialChar LyX
674  Uses \SpecialChar LaTeX
675
676 \end_layout
677
678 \begin_layout Standard
679 This chapter is for both \SpecialChar TeX
680 -nicians and the \SpecialChar LaTeX
681 -curious.
682  In it,
683  we'll explain how \SpecialChar LyX
684  and \SpecialChar LaTeX
685  work together to produce printable output.
686  This is the only place in any of the manuals where we assume you know something about \SpecialChar LaTeX
687 .
688 \end_layout
689
690 \begin_layout Standard
691 At one time,
692  \SpecialChar LyX
693  was called a 
694 \begin_inset Quotes eld
695 \end_inset
696
697 WYSIWYM frontend to \SpecialChar LaTeX
698 ,
699 \begin_inset Quotes erd
700 \end_inset
701
702  but that's no longer true.
703  There are frontends to \SpecialChar LaTeX
704  out there.
705 \begin_inset Foot
706 status collapsed
707
708 \begin_layout Plain Layout
709 Some familar ones are \SpecialChar TeX
710 maker and kile,
711  on Linux,
712  and \SpecialChar TeX
713 shop,
714  OSX.
715  There are also the \SpecialChar LaTeX
716  modes for vi and emacs,
717  of course.
718 \end_layout
719
720 \end_inset
721
722  These are basically text editors with the ability to run \SpecialChar LaTeX
723  and mark any errors in the file you're editing.
724  Although \SpecialChar LyX
725  
726 \emph on
727 is
728 \emph default
729  an editor,
730  and it 
731 \emph on
732 does
733 \emph default
734  run \SpecialChar LaTeX
735 ,
736  and it also indicates errors in the file,
737  it also does much,
738  much more.
739  For one thing,
740  you don't need to know \SpecialChar LaTeX
741  to use \SpecialChar LyX
742  effectively.
743  And \SpecialChar LyX
744  has added its own extensions to \SpecialChar LaTeX
745 .
746  Try the following sometime:
747  select 
748 \begin_inset Flex Noun
749 status collapsed
750
751 \begin_layout Plain Layout
752 Export\SpecialChar menuseparator
753 LaTeX
754 \end_layout
755
756 \end_inset
757
758  from the 
759 \begin_inset Flex Noun
760 status collapsed
761
762 \begin_layout Plain Layout
763 File
764 \end_layout
765
766 \end_inset
767
768  menu (or 
769 \begin_inset Flex Noun
770 status collapsed
771
772 \begin_layout Plain Layout
773 View\SpecialChar menuseparator
774 Source
775 \begin_inset space ~
776 \end_inset
777
778 Pane
779 \end_layout
780
781 \end_inset
782
783 ),
784  then look at the preamble of the resulting 
785 \begin_inset Flex Code
786 status collapsed
787
788 \begin_layout Plain Layout
789 .tex
790 \end_layout
791
792 \end_inset
793
794  file.
795  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
796 .
797  These macros are defined automatically,
798  according to the features you use in the document.
799 \end_layout
800
801 \begin_layout Standard
802 There are several commands that automatically invoke \SpecialChar LaTeX
803 .
804  They are:
805 \end_layout
806
807 \begin_layout Itemize
808 \begin_inset Flex Noun
809 status collapsed
810
811 \begin_layout Plain Layout
812 Document\SpecialChar menuseparator
813 View
814 \end_layout
815
816 \end_inset
817
818
819 \end_layout
820
821 \begin_layout Itemize
822 \begin_inset Flex Noun
823 status collapsed
824
825 \begin_layout Plain Layout
826 Document\SpecialChar menuseparator
827 Update
828 \end_layout
829
830 \end_inset
831
832
833 \end_layout
834
835 \begin_layout Standard
836 They will only invoke \SpecialChar LaTeX
837  if the file has changed since the last time \SpecialChar LaTeX
838  was run.
839  
840 \end_layout
841
842 \begin_layout Standard
843 When \SpecialChar LyX
844  runs \SpecialChar LaTeX
845  on the file you're editing,
846  it performs these steps:
847 \end_layout
848
849 \begin_layout Enumerate
850 Convert the document to \SpecialChar LaTeX
851  and save to a file with the extension 
852 \begin_inset Flex Code
853 status collapsed
854
855 \begin_layout Plain Layout
856 .tex
857 \end_layout
858
859 \end_inset
860
861  in place of 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 .lyx
867 \end_layout
868
869 \end_inset
870
871 .
872 \end_layout
873
874 \begin_layout Enumerate
875 Run \SpecialChar LaTeX
876  on the 
877 \begin_inset Flex Code
878 status collapsed
879
880 \begin_layout Plain Layout
881 .tex
882 \end_layout
883
884 \end_inset
885
886  file (maybe several times),
887  and run any other commands (such as 
888 \begin_inset Flex Code
889 status collapsed
890
891 \begin_layout Plain Layout
892 bibtex
893 \end_layout
894
895 \end_inset
896
897  or 
898 \begin_inset Flex Code
899 status collapsed
900
901 \begin_layout Plain Layout
902 makeindex
903 \end_layout
904
905 \end_inset
906
907 ) needed to compile the \SpecialChar LaTeX
908  file.
909 \end_layout
910
911 \begin_layout Enumerate
912 If there are any errors,
913  show the error log.
914 \end_layout
915
916 \begin_layout Standard
917 If you have run \SpecialChar LaTeX
918  using 
919 \begin_inset Flex Noun
920 status collapsed
921
922 \begin_layout Plain Layout
923 View\SpecialChar menuseparator
924 DVI
925 \end_layout
926
927 \end_inset
928
929 ,
930  \SpecialChar LyX
931  then runs a DVI viewer to display the DVI-file.
932  If you have used 
933 \begin_inset Flex Noun
934 status collapsed
935
936 \begin_layout Plain Layout
937 View\SpecialChar menuseparator
938 PostScript
939 \end_layout
940
941 \end_inset
942
943 ,
944  \SpecialChar LyX
945  performs further steps:
946 \end_layout
947
948 \begin_layout Enumerate
949 Run 
950 \begin_inset Flex Code
951 status collapsed
952
953 \begin_layout Plain Layout
954 dvips
955 \end_layout
956
957 \end_inset
958
959  to convert the DVI file to PostScript.
960 \end_layout
961
962 \begin_layout Enumerate
963 Run a PostScript viewer,
964  such as 
965 \begin_inset Flex Code
966 status collapsed
967
968 \begin_layout Plain Layout
969 ghostview
970 \end_layout
971
972 \end_inset
973
974 ,
975  to display the PostScript file.
976 \end_layout
977
978 \begin_layout Standard
979 \SpecialChar LyX
980  does similar things when viewing,
981  or exporting,
982  other formats.
983 \end_layout
984
985 \begin_layout Section
986 Translating \SpecialChar LaTeX
987  files into \SpecialChar LyX
988
989 \end_layout
990
991 \begin_layout Standard
992 You can import a \SpecialChar LaTeX
993  file into \SpecialChar LyX
994  by using the 
995 \begin_inset Flex Noun
996 status collapsed
997
998 \begin_layout Plain Layout
999 File\SpecialChar menuseparator
1000 Import\SpecialChar menuseparator
1001 LaTeX
1002 \end_layout
1003
1004 \end_inset
1005
1006  command in \SpecialChar LyX
1007 .
1008  This will call a program named 
1009 \begin_inset Flex Code
1010 status collapsed
1011
1012 \begin_layout Plain Layout
1013 tex2lyx
1014 \end_layout
1015
1016 \end_inset
1017
1018  which will create a file 
1019 \begin_inset Flex Code
1020 status collapsed
1021
1022 \begin_layout Plain Layout
1023 foo.lyx
1024 \end_layout
1025
1026 \end_inset
1027
1028  from the file 
1029 \begin_inset Flex Code
1030 status collapsed
1031
1032 \begin_layout Plain Layout
1033 foo.tex
1034 \end_layout
1035
1036 \end_inset
1037
1038 .
1039  \SpecialChar LyX
1040  will then open that file.
1041 \begin_inset Foot
1042 status collapsed
1043
1044 \begin_layout Plain Layout
1045 \begin_inset Flex Code
1046 status collapsed
1047
1048 \begin_layout Plain Layout
1049 tex2lyx
1050 \end_layout
1051
1052 \end_inset
1053
1054  can also be run from the command line,
1055  of course.
1056 \end_layout
1057
1058 \end_inset
1059
1060
1061 \end_layout
1062
1063 \begin_layout Standard
1064 \begin_inset Flex Code
1065 status collapsed
1066
1067 \begin_layout Plain Layout
1068 tex2lyx
1069 \end_layout
1070
1071 \end_inset
1072
1073  will translate most legal \SpecialChar LaTeX
1074 ,
1075  but not everything.
1076  It will put things it doesn't understand into \SpecialChar TeX
1077  code,
1078  so after translating a file with 
1079 \begin_inset Flex Code
1080 status collapsed
1081
1082 \begin_layout Plain Layout
1083 tex2lyx
1084 \end_layout
1085
1086 \end_inset
1087
1088 ,
1089  you can look for \SpecialChar TeX
1090  code and hand-edit it until it looks right.
1091 \end_layout
1092
1093 \begin_layout Standard
1094 If you don't know what \SpecialChar TeX
1095  code is,
1096  read the next section.
1097 \end_layout
1098
1099 \begin_layout Section
1100 \begin_inset CommandInset label
1101 LatexCommand label
1102 name "sec:Inserting-TeX-Code"
1103
1104 \end_inset
1105
1106 Inserting \SpecialChar TeX
1107  Code into \SpecialChar LyX
1108  Documents 
1109 \end_layout
1110
1111 \begin_layout Standard
1112 Anything you can do in \SpecialChar LaTeX
1113  you can do in \SpecialChar LyX
1114 ,
1115  for a very simple reason:
1116  You can always insert \SpecialChar TeX
1117  code into any \SpecialChar LyX
1118  document.
1119  \SpecialChar LyX
1120  cannot,
1121  and will never be able to,
1122  display every possible \SpecialChar LaTeX
1123  construct.
1124  If ever you need to insert \SpecialChar LaTeX
1125  commands into your \SpecialChar LyX
1126  document,
1127  you can use the 
1128 \begin_inset Flex Code
1129 status collapsed
1130
1131 \begin_layout Plain Layout
1132 \SpecialChar TeX
1133  Code
1134 \end_layout
1135
1136 \end_inset
1137
1138  box,
1139  which you can insert into your document with 
1140 \begin_inset Flex Noun
1141 status collapsed
1142
1143 \begin_layout Plain Layout
1144 Insert\SpecialChar menuseparator
1145
1146 \family sans
1147 TeX
1148 \family default
1149  Code
1150 \end_layout
1151
1152 \end_inset
1153
1154  or the keyboard shortcut 
1155 \begin_inset Info
1156 type  "shortcut"
1157 arg   "ert-insert"
1158 \end_inset
1159
1160 .
1161 \end_layout
1162
1163 \begin_layout Standard
1164 Here's an example of inserting \SpecialChar LaTeX
1165  commands in a \SpecialChar LyX
1166  document.
1167  The code looks like this:
1168 \end_layout
1169
1170 \begin_layout LyX-Code
1171
1172 \backslash
1173 begin{tabular}{ll}
1174 \begin_inset Newline newline
1175 \end_inset
1176
1177
1178 \backslash
1179 begin{minipage}{5cm}
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 This is an example of a minipage environment.
1184  You 
1185 \begin_inset Newline newline
1186 \end_inset
1187
1188 can put nearly everything in it,
1189  even (non-floating) 
1190 \begin_inset Newline newline
1191 \end_inset
1192
1193 figures and tables.
1194  
1195 \begin_inset Newline newline
1196 \end_inset
1197
1198
1199 \backslash
1200 end{minipage}
1201 \begin_inset Newline newline
1202 \end_inset
1203
1204 &
1205 \begin_inset Newline newline
1206 \end_inset
1207
1208
1209 \backslash
1210 begin{minipage}{5cm}
1211 \begin_inset Newline newline
1212 \end_inset
1213
1214
1215 \backslash
1216 begin{verbatim}
1217 \begin_inset Newline newline
1218 \end_inset
1219
1220
1221 \backslash
1222 begin{minipage}{5cm}
1223 \begin_inset Newline newline
1224 \end_inset
1225
1226 This ...
1227  
1228 \begin_inset Newline newline
1229 \end_inset
1230
1231
1232 \backslash
1233 end{minipage}
1234 \begin_inset Newline newline
1235 \end_inset
1236
1237
1238 \backslash
1239 end{verbatim}
1240 \begin_inset Newline newline
1241 \end_inset
1242
1243
1244 \backslash
1245 end{minipage}
1246 \begin_inset Newline newline
1247 \end_inset
1248
1249
1250 \backslash
1251 end{tabular}
1252 \end_layout
1253
1254 \begin_layout LyX-Code
1255
1256 \end_layout
1257
1258 \begin_layout Standard
1259 The 
1260 \begin_inset Flex Code
1261 status collapsed
1262
1263 \begin_layout Plain Layout
1264 \SpecialChar TeX
1265  Code
1266 \end_layout
1267
1268 \end_inset
1269
1270  box containing this text is directly after this paragraph.
1271  Those of you reading the manual in \SpecialChar LyX
1272  will only see the \SpecialChar TeX
1273  code inset.
1274  Those reading a printed version of the manuals will see the actual results:
1275 \begin_inset VSpace bigskip
1276 \end_inset
1277
1278
1279 \end_layout
1280
1281 \begin_layout Standard
1282 \begin_inset ERT
1283 status open
1284
1285 \begin_layout Plain Layout
1286
1287
1288 \backslash
1289 begin{tabular}{ll}
1290 \end_layout
1291
1292 \begin_layout Plain Layout
1293
1294
1295 \backslash
1296 begin{minipage}{5cm}
1297 \end_layout
1298
1299 \begin_layout Plain Layout
1300
1301 This is an example of a minipage environment.
1302  You can put nearly everything in it,
1303  even (non-floating) figures and tables.
1304  
1305 \end_layout
1306
1307 \begin_layout Plain Layout
1308
1309
1310 \backslash
1311 end{minipage}
1312 \end_layout
1313
1314 \begin_layout Plain Layout
1315
1316 &
1317 \end_layout
1318
1319 \begin_layout Plain Layout
1320
1321
1322 \backslash
1323 begin{minipage}{5cm}
1324 \end_layout
1325
1326 \begin_layout Plain Layout
1327
1328
1329 \backslash
1330 begin{verbatim}
1331 \end_layout
1332
1333 \begin_layout Plain Layout
1334
1335
1336 \backslash
1337 begin{minipage}{5cm}
1338 \end_layout
1339
1340 \begin_layout Plain Layout
1341
1342 This ...
1343  
1344 \end_layout
1345
1346 \begin_layout Plain Layout
1347
1348
1349 \backslash
1350 end{minipage}
1351 \end_layout
1352
1353 \begin_layout Plain Layout
1354
1355
1356 \backslash
1357 end{verbatim}
1358 \end_layout
1359
1360 \begin_layout Plain Layout
1361
1362
1363 \backslash
1364 end{minipage}
1365 \end_layout
1366
1367 \begin_layout Plain Layout
1368
1369
1370 \backslash
1371 end{tabular}
1372 \end_layout
1373
1374 \end_inset
1375
1376
1377 \begin_inset VSpace bigskip
1378 \end_inset
1379
1380
1381 \end_layout
1382
1383 \begin_layout Standard
1384 In addition to using \SpecialChar TeX
1385  code,
1386  you can also create a separate file containing some complex \SpecialChar LaTeX
1387  structure and then use 
1388 \begin_inset Flex Noun
1389 status collapsed
1390
1391 \begin_layout Plain Layout
1392 Insert\SpecialChar menuseparator
1393 Child
1394 \begin_inset space ~
1395 \end_inset
1396
1397 Document
1398 \end_layout
1399
1400 \end_inset
1401
1402  to include your file (you should select the type 
1403 \begin_inset Flex Code
1404 status collapsed
1405
1406 \begin_layout Plain Layout
1407 Input
1408 \end_layout
1409
1410 \end_inset
1411
1412 ).
1413  We recommend that you only do this if you have a 
1414 \begin_inset Flex Code
1415 status collapsed
1416
1417 \begin_layout Plain Layout
1418 .tex
1419 \end_layout
1420
1421 \end_inset
1422
1423  file which you 
1424 \emph on
1425 know
1426 \emph default
1427  works already.
1428  Otherwise,
1429  you'll have a big job tracking down \SpecialChar LaTeX
1430  errors.
1431 \end_layout
1432
1433 \begin_layout Standard
1434 There are a few last points to emphasize:
1435 \end_layout
1436
1437 \begin_layout Itemize
1438 \SpecialChar LyX
1439  
1440 \emph on
1441 does not
1442 \emph default
1443  check if your \SpecialChar LaTeX
1444  code is correct.
1445 \end_layout
1446
1447 \begin_layout Itemize
1448 Beware of reinventing the wheel.
1449 \end_layout
1450
1451 \begin_layout Standard
1452 On that last point,
1453  \SpecialChar LyX
1454  does have quite a few features tucked into it,
1455  and more are coming.
1456  Be sure to check the manuals to make sure that \SpecialChar LyX
1457  doesn't have such-and-such feature before you decide you have to do it by hand.
1458  Moreover,
1459  there are numerous \SpecialChar LaTeX
1460  packages out there to do all sorts of things,
1461  from labels to envelopes to fancy multipage tables.
1462  Check out 
1463 \change_inserted 244031559 1603815732
1464
1465 \begin_inset CommandInset href
1466 LatexCommand href
1467 name "CTAN"
1468 target "https://www.ctan.org/"
1469 literal "false"
1470
1471 \end_inset
1472
1473
1474 \change_deleted 244031559 1603815732
1475
1476 \begin_inset CommandInset href
1477 LatexCommand href
1478 name "CTAN"
1479 target "http://www.ctan.org/"
1480 literal "false"
1481
1482 \end_inset
1483
1484
1485 \change_unchanged
1486  for details.
1487 \end_layout
1488
1489 \begin_layout Standard
1490 If you do need to do some wild and fancy things within your document,
1491  be sure to check out a good \SpecialChar LaTeX
1492  book for assistance.
1493  There are a number of them listed in the bibliography of the 
1494 \emph on
1495 User's Guide
1496 \emph default
1497 .
1498 \end_layout
1499
1500 \begin_layout Section
1501 \SpecialChar LyX
1502  and the \SpecialChar LaTeX
1503  Preamble
1504 \end_layout
1505
1506 \begin_layout Subsection
1507 About the \SpecialChar LaTeX
1508  Preamble
1509 \end_layout
1510
1511 \begin_layout Standard
1512 If you already know \SpecialChar LaTeX
1513 ,
1514  there is no need to explain here what the preamble is good for.
1515  If you don't,
1516  the following will give you some ideas—
1517 we recommend again that you consult a \SpecialChar LaTeX
1518  book for further information.
1519  In any case,
1520  you should read the points below,
1521  because they explain what you can do and what you don't need to do in the \SpecialChar LaTeX
1522  preamble of a \SpecialChar LyX
1523  document.
1524 \end_layout
1525
1526 \begin_layout Standard
1527 The \SpecialChar LaTeX
1528  preamble comes at the very beginning of a document,
1529  
1530 \emph on
1531 before
1532 \emph default
1533  the text.
1534  It serves to:
1535 \end_layout
1536
1537 \begin_layout Itemize
1538 Declare the document class.
1539  
1540 \begin_inset Newline newline
1541 \end_inset
1542
1543 \SpecialChar LyX
1544  already does this for you.
1545  If you're a seasoned \SpecialChar LaTeX
1546 -nician,
1547  and you have a custom document class you want to use,
1548  check out the 
1549 \emph on
1550 Customization Manual
1551 \emph default
1552  for information on how to make \SpecialChar LyX
1553  interface to it.
1554 \end_layout
1555
1556 \begin_layout Itemize
1557 Declare the usage of packages.
1558  
1559 \begin_inset Newline newline
1560 \end_inset
1561
1562 \SpecialChar LaTeX
1563  packages provide special commands,
1564  which are only available within a document when the package has been declared in the preamble.
1565  In addition to providing special commands,
1566  the inclusion of a package can change the document.
1567  For example,
1568  the package 
1569 \begin_inset Flex Code
1570 status collapsed
1571
1572 \begin_layout Plain Layout
1573 indentfirst
1574 \end_layout
1575
1576 \end_inset
1577
1578  forces all paragraphs to be indented.
1579  There are other packages for labels,
1580  envelopes,
1581  margins,
1582  etc.
1583  
1584 \end_layout
1585
1586 \begin_layout Itemize
1587 Set counters,
1588  variables,
1589  lengths and widths.
1590  
1591 \begin_inset Newline newline
1592 \end_inset
1593
1594 There are several \SpecialChar LaTeX
1595  counters and variables that 
1596 \emph on
1597 must
1598 \emph default
1599  be set globally from within the preamble in order to have the desired effect.
1600  (There are variables that you can set and reset inside the document,
1601  too.) Margins are a good example of something that must be set in the preamble.
1602  Another example is the label format for lists.
1603  You can actually set these just about anywhere,
1604  but it's best to do it just once,
1605  inside the preamble.
1606 \end_layout
1607
1608 \begin_layout Itemize
1609 Declare user defined commands (with 
1610 \begin_inset Flex Code
1611 status collapsed
1612
1613 \begin_layout Plain Layout
1614
1615 \backslash
1616 newcommand
1617 \end_layout
1618
1619 \end_inset
1620
1621  or 
1622 \begin_inset Flex Code
1623 status collapsed
1624
1625 \begin_layout Plain Layout
1626
1627 \backslash
1628 renewcommand
1629 \end_layout
1630
1631 \end_inset
1632
1633 ).
1634 \begin_inset Newline newline
1635 \end_inset
1636
1637 These are abbreviations for \SpecialChar LaTeX
1638  commands which appear very often inside a document.
1639  Although the preamble is a good place to declare such commands,
1640  they 
1641 \emph on
1642 can
1643 \emph default
1644  be declared anywhere (before they are used for the first time,
1645  of course).
1646  This can be useful if there is a lot of raw \SpecialChar LaTeX
1647  code in your document,
1648  which normally should not be the case.
1649 \end_layout
1650
1651 \begin_layout Standard
1652 \SpecialChar LyX
1653  adds its own set of definitions to the preamble of the 
1654 \begin_inset Flex Code
1655 status collapsed
1656
1657 \begin_layout Plain Layout
1658 .tex
1659 \end_layout
1660
1661 \end_inset
1662
1663  file it produces.
1664  This makes \SpecialChar LaTeX
1665  files generated by \SpecialChar LyX
1666  portable.
1667 \end_layout
1668
1669 \begin_layout Subsection
1670 Changing the Preamble
1671 \end_layout
1672
1673 \begin_layout Standard
1674 The commands which \SpecialChar LyX
1675  adds to the preamble of a \SpecialChar LaTeX
1676  file are fixed;
1677  you can't change them without patching \SpecialChar LyX
1678  itself.
1679  You can,
1680  however,
1681  add your own stuff to the preamble by selecting 
1682 \begin_inset Flex Noun
1683 status collapsed
1684
1685 \begin_layout Plain Layout
1686 \SpecialChar LaTeX
1687
1688 \begin_inset space ~
1689 \end_inset
1690
1691 Preamble
1692 \end_layout
1693
1694 \end_inset
1695
1696  in the 
1697 \begin_inset Flex Noun
1698 status collapsed
1699
1700 \begin_layout Plain Layout
1701 Document\SpecialChar menuseparator
1702 Settings
1703 \end_layout
1704
1705 \end_inset
1706
1707  dialog.
1708  \SpecialChar LyX
1709  adds anything in the 
1710 \begin_inset Flex Noun
1711 status collapsed
1712
1713 \begin_layout Plain Layout
1714 Preamble
1715 \end_layout
1716
1717 \end_inset
1718
1719  dialog to its own built-in preamble.
1720  Before adding your own declarations in the preamble,
1721  you should make sure that \SpecialChar LyX
1722  doesn't already support what you want to do.
1723  (Remember what we said about reinventing the wheel?) Also,
1724  
1725 \emph on
1726 make sure your preamble code is correct
1727 \emph default
1728 .
1729  \SpecialChar LyX
1730  doesn't check it for you.
1731  If there is an error,
1732  you're likely to get an error like 
1733 \begin_inset Quotes eld
1734 \end_inset
1735
1736
1737 \begin_inset Flex Code
1738 status collapsed
1739
1740 \begin_layout Plain Layout
1741 Missing 
1742 \backslash
1743 begin{document}
1744 \end_layout
1745
1746 \end_inset
1747
1748
1749 \begin_inset Quotes erd
1750 \end_inset
1751
1752 .
1753  If you see this error,
1754  check your preamble.
1755 \end_layout
1756
1757 \begin_layout Subsection
1758 Examples
1759 \end_layout
1760
1761 \begin_layout Standard
1762 Here are some examples of what you can add to a preamble,
1763  and what they do.
1764 \end_layout
1765
1766 \begin_layout Subsubsection
1767 Example #1:
1768  Offsets
1769 \end_layout
1770
1771 \begin_layout Standard
1772 There are two variables under \SpecialChar LaTeX
1773  that control page position:
1774  
1775 \begin_inset Flex Code
1776 status collapsed
1777
1778 \begin_layout Plain Layout
1779
1780 \backslash
1781 hoffset
1782 \end_layout
1783
1784 \end_inset
1785
1786  and 
1787 \begin_inset Flex Code
1788 status collapsed
1789
1790 \begin_layout Plain Layout
1791
1792 \backslash
1793 voffset
1794 \end_layout
1795
1796 \end_inset
1797
1798 .
1799  Their names should be self-explanatory.
1800  These variables are useful if you think for a moment about computer labels.
1801  Sometimes,
1802  the size of a print medium and the area of the medium that you can actually print on aren't the same.
1803  This is where 
1804 \begin_inset Flex Code
1805 status collapsed
1806
1807 \begin_layout Plain Layout
1808
1809 \backslash
1810 hoffset
1811 \end_layout
1812
1813 \end_inset
1814
1815  and 
1816 \begin_inset Flex Code
1817 status collapsed
1818
1819 \begin_layout Plain Layout
1820
1821 \backslash
1822 voffset
1823 \end_layout
1824
1825 \end_inset
1826
1827  come in.
1828 \end_layout
1829
1830 \begin_layout Standard
1831 The default values for 
1832 \begin_inset Flex Code
1833 status collapsed
1834
1835 \begin_layout Plain Layout
1836
1837 \backslash
1838 hoffset
1839 \end_layout
1840
1841 \end_inset
1842
1843  and 
1844 \begin_inset Flex Code
1845 status collapsed
1846
1847 \begin_layout Plain Layout
1848
1849 \backslash
1850 voffset
1851 \end_layout
1852
1853 \end_inset
1854
1855  are both 0
1856 \begin_inset space \thinspace{}
1857 \end_inset
1858
1859 points,
1860  i.
1861 \begin_inset space \thinspace{}
1862 \end_inset
1863
1864 e.
1865 \begin_inset space \space{}
1866 \end_inset
1867
1868 the page isn't shifted.
1869  Unfortunately,
1870  some DVI drivers always seem to shift the page.
1871  We have no idea why,
1872  or why the sysadmin hasn't fixed such behavior.
1873  If you're using \SpecialChar LyX
1874  on a system that you don't personally maintain,
1875  and your sysadmin is a doofus,
1876  
1877 \begin_inset Flex Code
1878 status collapsed
1879
1880 \begin_layout Plain Layout
1881
1882 \backslash
1883 hoffset
1884 \end_layout
1885
1886 \end_inset
1887
1888  and 
1889 \begin_inset Flex Code
1890 status collapsed
1891
1892 \begin_layout Plain Layout
1893
1894 \backslash
1895 voffset
1896 \end_layout
1897
1898 \end_inset
1899
1900  can save the day.
1901  Suppose your left and top margins are always 0.5
1902 \begin_inset space \thinspace{}
1903 \end_inset
1904
1905 inches too big.
1906  You can add this to the preamble:
1907 \end_layout
1908
1909 \begin_layout LyX-Code
1910
1911 \backslash
1912 setlength{
1913 \backslash
1914 hoffset}{-0.5 in}
1915 \end_layout
1916
1917 \begin_layout LyX-Code
1918
1919 \backslash
1920 setlength{
1921 \backslash
1922 voffset}{-0.5 in}
1923 \end_layout
1924
1925 \begin_layout Standard
1926 and your margins should now be correct.
1927 \end_layout
1928
1929 \begin_layout Subsubsection
1930 Example #2:
1931  Labels
1932 \end_layout
1933
1934 \begin_layout Standard
1935 Speaking of labels,
1936  suppose you wanted to print out a bunch of address labels.
1937  There's a rather nice package,
1938  available at your nearest CTAN archive,
1939  for printing sheets of labels:
1940  
1941 \begin_inset Flex Code
1942 status collapsed
1943
1944 \begin_layout Plain Layout
1945 labels.sty
1946 \end_layout
1947
1948 \end_inset
1949
1950 .
1951  Now,
1952  your system may not have this package installed by default.
1953  We leave that up to you to check.
1954  You'll also want to read the documentation for it;
1955  we're not going to do that for you.
1956  Since this is an example,
1957  however,
1958  we'll give you an example of how you use this package.
1959 \end_layout
1960
1961 \begin_layout Standard
1962 First,
1963  make sure you're using the 
1964 \begin_inset Flex Code
1965 status collapsed
1966
1967 \begin_layout Plain Layout
1968 article
1969 \end_layout
1970
1971 \end_inset
1972
1973  document class.
1974  Next,
1975  you need to put the following in your preamble:
1976 \end_layout
1977
1978 \begin_layout LyX-Code
1979
1980 \backslash
1981 usepackage{labels}
1982 \end_layout
1983
1984 \begin_layout LyX-Code
1985
1986 \backslash
1987 LabelCols=3
1988 \end_layout
1989
1990 \begin_layout LyX-Code
1991
1992 \backslash
1993 LabelRows=7
1994 \end_layout
1995
1996 \begin_layout LyX-Code
1997
1998 \backslash
1999 LeftBorder=8mm
2000 \end_layout
2001
2002 \begin_layout LyX-Code
2003
2004 \backslash
2005 RightBorder=8mm
2006 \end_layout
2007
2008 \begin_layout LyX-Code
2009
2010 \backslash
2011 TopBorder=9mm
2012 \end_layout
2013
2014 \begin_layout LyX-Code
2015
2016 \backslash
2017 BottomBorder=2mm
2018 \end_layout
2019
2020 \begin_layout Standard
2021 This sets things up for Avery label sheets,
2022  stock #5360.
2023  You're now ready to print labels,
2024  but you'll need to insert \SpecialChar LaTeX
2025  code,
2026  placing the commands 
2027 \begin_inset Flex Code
2028 status collapsed
2029
2030 \begin_layout Plain Layout
2031
2032 \backslash
2033 begin{labels}
2034 \end_layout
2035
2036 \end_inset
2037
2038  and 
2039 \begin_inset Flex Code
2040 status collapsed
2041
2042 \begin_layout Plain Layout
2043
2044 \backslash
2045 end{labels}
2046 \end_layout
2047
2048 \end_inset
2049
2050  around each label text.
2051  This and other special features of 
2052 \begin_inset Flex Code
2053 status collapsed
2054
2055 \begin_layout Plain Layout
2056 labels.sty
2057 \end_layout
2058
2059 \end_inset
2060
2061  are explained in its documentation.
2062 \end_layout
2063
2064 \begin_layout Standard
2065 Someday,
2066  someone may write a \SpecialChar LyX
2067  layout file to support this package directly.
2068  Maybe that someone is you.
2069 \end_layout
2070
2071 \begin_layout Subsubsection
2072 Example #3:
2073  Paragraph Indentation
2074 \end_layout
2075
2076 \begin_layout Standard
2077 Americans are trained to indent the first line of 
2078 \emph on
2079 every
2080 \emph default
2081  paragraph.
2082  As with all of their other weird quirks,
2083  most Americans will whine and moan until they can have their way and indent the first line of all paragraphs.
2084  (Yes,
2085  we're joking.
2086  (We are?) 
2087 \emph on
2088 Yeah
2089 \emph default
2090 ,
2091  we are.)
2092 \end_layout
2093
2094 \begin_layout Standard
2095 Of course,
2096  this behavior isn't standard typography.
2097  In books,
2098  you typically only indent the first line of a paragraph 
2099 \emph on
2100 if
2101 \emph default
2102  it follows another one.
2103  The idea behind indenting the first line of a paragraph is to distinguish neighboring paragraphs from one another.
2104  If there is no previous paragraph—
2105 for example,
2106  if it follows a figure or is the first paragraph in a section—
2107 then there is no need for indentation.
2108  
2109 \end_layout
2110
2111 \begin_layout Standard
2112 If you're a typical American (we're still joking!),
2113  though,
2114  you don't care about such esoteric things;
2115  you want your indentation!
2116  Add this to the preamble:
2117 \end_layout
2118
2119 \begin_layout LyX-Code
2120
2121 \backslash
2122 usepackage{indentfirst}
2123 \end_layout
2124
2125 \begin_layout Standard
2126 If your \SpecialChar TeX
2127  distribution isn't braindead,
2128  you'll have this package,
2129  and all of your paragraphs will get the indentation the Founding Fathers intended they should have.
2130 \end_layout
2131
2132 \begin_layout Subsubsection
2133 Example #4:
2134  This Document
2135 \end_layout
2136
2137 \begin_layout Standard
2138 You can also check out the preamble of this document to get an idea of some of the advanced things you can do.
2139 \end_layout
2140
2141 \begin_layout Section
2142 \SpecialChar LyX
2143  and \SpecialChar LaTeX
2144  Errors
2145 \end_layout
2146
2147 \begin_layout Standard
2148 When \SpecialChar LyX
2149  calls \SpecialChar LaTeX
2150 ,
2151  it tells \SpecialChar LaTeX
2152  to blithely ignore any errors and keep going.
2153  It then uses the logfile from the \SpecialChar LaTeX
2154  run to do a post-mortem.
2155  After analyzing the logfile,
2156  \SpecialChar LyX
2157  displays a dialog listing the errors.
2158  Clicking on any one of them will take you to the position in your \SpecialChar LyX
2159  file where the error occurred.
2160 \begin_inset Foot
2161 status collapsed
2162
2163 \begin_layout Plain Layout
2164 Well,
2165  usually.
2166  Analyzing the logfile is a tough job,
2167  and \SpecialChar LyX
2168  doesn't always go to the right line.
2169  There are also cases where \SpecialChar LaTeX
2170  reports the error on one line,
2171  but the actual error is earlier.
2172  This is not unlike forgetting a closing brace in a program:
2173  You'll get an error,
2174  but only later.
2175 \end_layout
2176
2177 \end_inset
2178
2179
2180 \end_layout
2181
2182 \begin_layout Standard
2183 Some folks also like to look at the log file directly:
2184  It is available from 
2185 \begin_inset Flex Noun
2186 status collapsed
2187
2188 \begin_layout Plain Layout
2189 Document\SpecialChar menuseparator
2190 LaTeX
2191 \begin_inset space ~
2192 \end_inset
2193
2194 Log
2195 \end_layout
2196
2197 \end_inset
2198
2199 .
2200  There are some fairly common error messages and warnings.
2201  We'll cover those here.
2202  You should look at a good \SpecialChar LaTeX
2203  book for a complete listing.
2204 \end_layout
2205
2206 \begin_layout Itemize
2207 \begin_inset Flex Code
2208 status collapsed
2209
2210 \begin_layout Plain Layout
2211 LaTeX Warning
2212 \end_layout
2213
2214 \end_inset
2215
2216
2217 \begin_inset Newline newline
2218 \end_inset
2219
2220 Anything beginning with these words is a warning message for the purpose of 
2221 \begin_inset Quotes eld
2222 \end_inset
2223
2224 debugging
2225 \begin_inset Quotes erd
2226 \end_inset
2227
2228  the \SpecialChar LaTeX
2229  code itself.
2230  You'll get messages like this if you added or changed cross-references or bibliography entries,
2231  in which case,
2232  \SpecialChar LaTeX
2233  is trying to tell you that you need to make another run.
2234  You can by-and-large ignore these.
2235 \end_layout
2236
2237 \begin_layout Itemize
2238 \begin_inset Flex Code
2239 status collapsed
2240
2241 \begin_layout Plain Layout
2242 LaTeX Font Warning
2243 \end_layout
2244
2245 \end_inset
2246
2247
2248 \begin_inset Newline newline
2249 \end_inset
2250
2251 Another warning message,
2252  this time about fonts which \SpecialChar LaTeX
2253  couldn't find.
2254  The rest of the message will often say something about a replacement font that \SpecialChar LaTeX
2255  used.
2256  You can safely ignore these,
2257  too.
2258 \end_layout
2259
2260 \begin_layout Itemize
2261 \begin_inset Flex Code
2262 status collapsed
2263
2264 \begin_layout Plain Layout
2265 Overfull 
2266 \backslash
2267 hbox
2268 \end_layout
2269
2270 \end_inset
2271
2272
2273 \begin_inset Newline newline
2274 \end_inset
2275
2276 \SpecialChar LaTeX
2277  absolutely 
2278 \emph on
2279 loves
2280 \emph default
2281  to spew these out.
2282  It seems to generate at least one of these messages for just about any document you write.
2283  They are warnings about lines that were too long and run past the right margin.
2284  This happens if \SpecialChar LaTeX
2285  does not find a reasonable way to break the lines (notoriously often with typewriter font,
2286  since this does not allow for automatic break points).
2287  In many cases,
2288  this is unnoticeable in the final output.
2289  (It can be just a point or two.) Sometimes,
2290  however,
2291  the lines run rather visibly into the margin;
2292  something you will not want to have in your final print.
2293  
2294 \begin_inset Newline newline
2295 \end_inset
2296
2297 There are several global ways to try to minimize the overfull lines.
2298  Clicking 
2299 \family sans
2300 Enable micro-typographic extensions
2301 \family default
2302  in 
2303 \family sans
2304 Document\SpecialChar menuseparator
2305 Settings\SpecialChar menuseparator
2306 Fonts
2307 \family default
2308  might already improve things a lot.
2309  Furthermore,
2310  \SpecialChar LaTeX
2311  code such as the following in 
2312 \family sans
2313 Document\SpecialChar menuseparator
2314 Settings\SpecialChar menuseparator
2315 Preamble
2316 \family default
2317  usually reduces the overfull lines drastically (we use this in the preamble of this document):
2318 \end_layout
2319
2320 \begin_deeper
2321 \begin_layout LyX-Code
2322
2323 \backslash
2324 tolerance 1414
2325 \begin_inset Newline newline
2326 \end_inset
2327
2328
2329 \backslash
2330 hbadness 1414
2331 \begin_inset Newline newline
2332 \end_inset
2333
2334
2335 \backslash
2336 emergencystretch 1.5em
2337 \begin_inset Newline newline
2338 \end_inset
2339
2340
2341 \backslash
2342 hfuzz 0.3pt
2343 \end_layout
2344
2345 \begin_layout Standard
2346 In some cases,
2347  however,
2348  you eventually have to rewrite the text to get the line breaking right.
2349 \begin_inset Foot
2350 status collapsed
2351
2352 \begin_layout Plain Layout
2353 For more information,
2354  see 
2355 \begin_inset Flex URL
2356 status open
2357
2358 \begin_layout Plain Layout
2359
2360 http://www.tex.ac.uk/FAQ-overfull.html
2361 \end_layout
2362
2363 \end_inset
2364
2365
2366 \end_layout
2367
2368 \end_inset
2369
2370
2371 \end_layout
2372
2373 \begin_layout Standard
2374 In any case,
2375  you should check the respective lines,
2376  at least for the final version of your document.
2377  Your eyes will tell you if there's a problem with something that's too wide.
2378 \begin_inset Foot
2379 status collapsed
2380
2381 \begin_layout Plain Layout
2382 You can also enable the `draft' option in 
2383 \begin_inset Flex Noun
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 Document\SpecialChar menuseparator
2388 Settings
2389 \end_layout
2390
2391 \end_inset
2392
2393 ,
2394  and then \SpecialChar LaTeX
2395  will draw a black box in the margin of lines that are overfull.
2396 \end_layout
2397
2398 \end_inset
2399
2400  
2401 \end_layout
2402
2403 \end_deeper
2404 \begin_layout Itemize
2405 \begin_inset Flex Code
2406 status collapsed
2407
2408 \begin_layout Plain Layout
2409 Underfull 
2410 \backslash
2411 hbox
2412 \end_layout
2413
2414 \end_inset
2415
2416
2417 \begin_inset Newline newline
2418 \end_inset
2419
2420 Not quite as common as its cousin.
2421  This happens again if \SpecialChar LaTeX
2422  does not find a reasonable break point and consequently generates too loose lines.
2423  As with the overfull lines,
2424  you should check if this is a visible problem.
2425 \end_layout
2426
2427 \begin_layout Itemize
2428 \begin_inset Flex Code
2429 status collapsed
2430
2431 \begin_layout Plain Layout
2432 Overfull 
2433 \backslash
2434 vbox
2435 \end_layout
2436
2437 \end_inset
2438
2439  and 
2440 \begin_inset Flex Code
2441 status collapsed
2442
2443 \begin_layout Plain Layout
2444 Underfull 
2445 \backslash
2446 vbox
2447 \end_layout
2448
2449 \end_inset
2450
2451
2452 \begin_inset Newline newline
2453 \end_inset
2454
2455 Warnings about troubles breaking the page.
2456  Once again,
2457  just look at the output.
2458  Your eyes will tell you where something has gone wrong.
2459 \end_layout
2460
2461 \begin_layout Itemize
2462 \begin_inset Flex Code
2463 status collapsed
2464
2465 \begin_layout Plain Layout
2466 LaTeX Error:
2467  File 
2468 \begin_inset Quotes els
2469 \end_inset
2470
2471 Xxxx
2472 \begin_inset Quotes ers
2473 \end_inset
2474
2475  not found
2476 \end_layout
2477
2478 \end_inset
2479
2480
2481 \begin_inset Newline newline
2482 \end_inset
2483
2484 The file 
2485 \begin_inset Quotes eld
2486 \end_inset
2487
2488 Xxxx
2489 \begin_inset Quotes erd
2490 \end_inset
2491
2492  isn't installed on this system.
2493  This usually appears because some package your document needs isn't installed.
2494  If you didn't touch the preamble or didn't use the 
2495 \begin_inset Flex Code
2496 status collapsed
2497
2498 \begin_layout Plain Layout
2499
2500 \backslash
2501 usepackage{}
2502 \end_layout
2503
2504 \end_inset
2505
2506  command,
2507  then one of the packages \SpecialChar LyX
2508  tried to load is missing.
2509  Use 
2510 \begin_inset Flex Noun
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Help\SpecialChar menuseparator
2515 \SpecialChar LaTeX
2516  Configuration
2517 \end_layout
2518
2519 \end_inset
2520
2521  to get a list of packages that \SpecialChar LyX
2522  knows about.
2523  This file is updated whenever you reconfigure \SpecialChar LyX
2524  (using 
2525 \begin_inset Flex Noun
2526 status collapsed
2527
2528 \begin_layout Plain Layout
2529 Tools\SpecialChar menuseparator
2530 Reconfigure
2531 \end_layout
2532
2533 \end_inset
2534
2535 ) and tells you which packages have been detected and what they do.
2536 \begin_inset Newline newline
2537 \end_inset
2538
2539 If you did use the 
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544
2545 \backslash
2546 usepackage{}
2547 \end_layout
2548
2549 \end_inset
2550
2551  command and the package in question isn't installed,
2552  then you'll need to install it yourself.
2553 \end_layout
2554
2555 \begin_layout Itemize
2556 \begin_inset Flex Code
2557 status collapsed
2558
2559 \begin_layout Plain Layout
2560 LaTeX Error:
2561  Unknown option
2562 \end_layout
2563
2564 \end_inset
2565
2566
2567 \begin_inset Newline newline
2568 \end_inset
2569
2570 Error messages beginning with this are trying to tell you that you specified a bad or undefined option to a package.
2571  Check the package's documentation.
2572 \end_layout
2573
2574 \begin_layout Itemize
2575 \begin_inset Flex Code
2576 status collapsed
2577
2578 \begin_layout Plain Layout
2579 Undefined control sequence
2580 \end_layout
2581
2582 \end_inset
2583
2584
2585 \begin_inset Newline newline
2586 \end_inset
2587
2588 If you've inserted \SpecialChar LaTeX
2589  code into your document,
2590  but made a typo,
2591  you'll get one of these.
2592  You may have forgotten to load a package.
2593  In any case,
2594  this error message usually means that you used an undefined command.
2595  
2596 \end_layout
2597
2598 \begin_layout Standard
2599 There are other error and warning messages.
2600  Some are self-explanatory.
2601  These are usually \SpecialChar LaTeX
2602  messages.
2603  Others are downright cryptic.
2604  These are usually \SpecialChar TeX
2605  error messages,
2606  and we really have 
2607 \emph on
2608 no clue
2609 \emph default
2610  what they mean or how to decipher them.
2611  No-one does.
2612 \end_layout
2613
2614 \begin_layout Standard
2615 There's a general sequence you should follow if you get error messages:
2616 \end_layout
2617
2618 \begin_layout Enumerate
2619 Look at the \SpecialChar LaTeX
2620  code you inserted for typos.
2621 \end_layout
2622
2623 \begin_layout Enumerate
2624 If there are no typos,
2625  check that you used the command(s) correctly.
2626 \end_layout
2627
2628 \begin_layout Enumerate
2629 If you get a bunch of error boxes piled up at the very top of the document—
2630 and especially if you see a 
2631 \begin_inset Quotes eld
2632 \end_inset
2633
2634
2635 \begin_inset Flex Code
2636 status collapsed
2637
2638 \begin_layout Plain Layout
2639 Missing 
2640 \backslash
2641 begin{document}
2642 \end_layout
2643
2644 \end_inset
2645
2646
2647 \begin_inset Quotes erd
2648 \end_inset
2649
2650  error—
2651 it means that there are errors in the preamble.
2652  Start debugging your preamble.
2653 \end_layout
2654
2655 \begin_layout Enumerate
2656 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2657  code to the document,
2658  the first suspect is your \SpecialChar LaTeX
2659  distribution itself.
2660  Check for missing packages and install them.
2661 \end_layout
2662
2663 \begin_layout Enumerate
2664 Okay,
2665  so there are no missing packages.
2666  Did you use any of the fine-tuning options in \SpecialChar LyX
2667 ?
2668  Specifically,
2669  did you 
2670 \emph on
2671 misuse
2672 \emph default
2673  any of them,
2674  like trying to manually insert lots of 
2675 \begin_inset Flex Code
2676 status collapsed
2677
2678 \begin_layout Plain Layout
2679
2680 \change_deleted 177693 1654669036
2681 Protected
2682 \change_inserted 177693 1654669038
2683 Non-Breaking
2684 \change_unchanged
2685
2686 \begin_inset space ~
2687 \end_inset
2688
2689
2690 \change_deleted 177693 1654669040
2691 Blanks
2692 \change_inserted 177693 1654669041
2693 Spaces
2694 \change_unchanged
2695
2696 \end_layout
2697
2698 \end_inset
2699
2700 ,
2701  
2702 \begin_inset Flex Code
2703 status collapsed
2704
2705 \begin_layout Plain Layout
2706 Linebreaks
2707 \end_layout
2708
2709 \end_inset
2710
2711 ,
2712  or 
2713 \begin_inset Flex Code
2714 status collapsed
2715
2716 \begin_layout Plain Layout
2717 Pagebreaks
2718 \end_layout
2719
2720 \end_inset
2721
2722 ?
2723  Did you try to kludge something together with these instead of using the appropriate paragraph environment?
2724 \end_layout
2725
2726 \begin_layout Enumerate
2727 All right,
2728  you didn't use any of the fine-tuning options,
2729  you played by the rules.
2730  Did you try to pull a fancy maneuver?
2731  Did you do something funky inside a table or an equation,
2732  like inserting a graphic into a table cell?
2733 \end_layout
2734
2735 \begin_layout Enumerate
2736 Do you have long sections of text where \SpecialChar LaTeX
2737  cannot find a place to break a line?
2738  By default,
2739  \SpecialChar LaTeX
2740  is rather strict about how much extra inter-word spacing it will add in order to break a line.
2741  Preferably,
2742  you should rework the paragraph to avoid the problem.
2743 \end_layout
2744
2745 \begin_layout Enumerate
2746 Did you go overboard with the nesting?
2747  \SpecialChar LyX
2748  (currently) doesn't check to make sure you're in the limits for nesting environments.
2749  If you nested a bunch of environments to the 
2750 \begin_inset Formula $17^{\mathrm{th}}$
2751 \end_inset
2752
2753  level,
2754  that's the problem.
2755  (The limit in \SpecialChar LaTeX
2756  is five.)
2757 \end_layout
2758
2759 \begin_layout Enumerate
2760 Okay,
2761  you didn't get any error messages,
2762  but your output looks awful.
2763  If you have a table or figure that's too wide or long for the page,
2764  you need to:
2765 \end_layout
2766
2767 \begin_deeper
2768 \begin_layout Enumerate
2769 rescale the figure so it fits.
2770 \end_layout
2771
2772 \begin_layout Enumerate
2773 trim down the table so it fits.
2774 \end_layout
2775
2776 \end_deeper
2777 \begin_layout Enumerate
2778 If something else is wrong with the output,
2779  and you didn't try to pull anything fancy or kludge the fine-tuning options,
2780  we're not sure what's wrong.
2781 \end_layout
2782
2783 \begin_layout Standard
2784 If all this doesn't help—
2785 well,
2786  then 
2787 \emph on
2788 perhaps
2789 \emph default
2790  you might have found a bug in \SpecialChar LyX
2791 \SpecialChar ldots
2792 .
2793 \end_layout
2794
2795 \begin_layout Chapter
2796
2797 \change_inserted 564990737 1672345271
2798 Document classes
2799 \end_layout
2800
2801 \begin_layout Standard
2802
2803 \change_inserted 564990737 1672345272
2804 As explained in the 
2805 \emph on
2806 User's Guide
2807 \emph default
2808 ,
2809  \SpecialChar LaTeX
2810  originally offered four standard document classes,
2811  article,
2812  report,
2813  book and letter,
2814  but individuals and organizations,
2815  most notably the American Mathematical Society in the early days,
2816  have made many contributions to extending the range of document classes.
2817  In this chapter we summarize the main externally maintained classes,
2818  some of which are marked “Unavailable:” in the pull-down 
2819 \family sans
2820 Document
2821 \begin_inset space ~
2822 \end_inset
2823
2824
2825 \bar under
2826 c
2827 \bar default
2828 lass
2829 \family default
2830  list in the 
2831 \family sans
2832 \bar under
2833 D
2834 \bar default
2835 ocument\SpecialChar menuseparator
2836
2837 \bar under
2838 S
2839 \bar default
2840 ettings\SpecialChar menuseparator
2841 Document
2842 \begin_inset space ~
2843 \end_inset
2844
2845 class
2846 \family default
2847  dialog and which you will need to install as described in the 
2848 \emph on
2849 Installing New Document Classes
2850 \emph default
2851  chapter of the 
2852 \emph on
2853 Customization
2854 \emph default
2855  manual if you want to use them.
2856  
2857 \end_layout
2858
2859 \begin_layout Section
2860
2861 \change_inserted 564990737 1670439533
2862 \begin_inset CommandInset label
2863 LatexCommand label
2864 name "sec:Collections"
2865
2866 \end_inset
2867
2868 Collections
2869 \end_layout
2870
2871 \begin_layout Subsection
2872
2873 \change_inserted 564990737 1672345298
2874 \begin_inset CommandInset label
2875 LatexCommand label
2876 name "subsec:AMS-LaTeX-(American-Mathematical"
2877
2878 \end_inset
2879
2880 AMS-\SpecialChar LaTeX
2881  (American Mathematical Society)
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \change_inserted 564990737 1672345298
2887 The \SpecialChar LyX
2888  supported document classes 
2889 \family sans
2890 article (AMS)
2891 \family default
2892  and 
2893 \family sans
2894 book (AMS)
2895 \family default
2896  are maintained by the Society;
2897  use of their features is described in the Math manual and on their website 
2898 \begin_inset Flex URL
2899 status collapsed
2900
2901 \begin_layout Plain Layout
2902
2903 \change_inserted 564990737 1672345298
2904
2905 http://www.ams.org/publications/authors/tex/amslatex
2906 \change_unchanged
2907
2908 \end_layout
2909
2910 \end_inset
2911
2912 .
2913  The following summary was originally provided by 
2914 \noun on
2915 David Johnson
2916 \noun default
2917  and updated by 
2918 \noun on
2919 Richard Heck
2920 \noun default
2921  and the \SpecialChar LyX
2922  Team
2923 \noun on
2924 .
2925 \change_deleted 564990737 1672345297
2926
2927 \noun default
2928 AMS \SpecialChar LaTeX
2929
2930 \end_layout
2931
2932 \begin_layout Standard
2933
2934 \change_deleted 564990737 1672345297
2935 by 
2936 \noun on
2937 David Johnson
2938 \noun default
2939 ;
2940  updated by 
2941 \noun on
2942 Richard Kimberly Heck
2943 \change_unchanged
2944
2945 \end_layout
2946
2947 \begin_layout Standard
2948 \begin_inset VSpace bigskip
2949 \end_inset
2950
2951
2952 \end_layout
2953
2954 \begin_layout Standard
2955 \noindent
2956 The AMS \SpecialChar LaTeX
2957  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
2958  The layouts are not tailored to a specific journal,
2959  but easily can be.
2960  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
2961  output).
2962  That documentation is available on the Web at 
2963 \begin_inset Flex URL
2964 status open
2965
2966 \begin_layout Plain Layout
2967
2968 http://www.ams.org
2969 \end_layout
2970
2971 \end_inset
2972
2973  or by ftp at 
2974 \begin_inset Flex URL
2975 status open
2976
2977 \begin_layout Plain Layout
2978
2979 ftp://ftp.ams.org/pub/tex/amslatex/
2980 \end_layout
2981
2982 \end_inset
2983
2984 .
2985  These layouts are appropriate,
2986  and useful,
2987  for any mathematical writing.
2988  
2989 \end_layout
2990
2991 \begin_layout Standard
2992 There are two basic AMS \SpecialChar LaTeX
2993  layouts:
2994  
2995 \end_layout
2996
2997 \begin_layout Itemize
2998 amsart:
2999  The standard AMS article format
3000 \change_inserted 564990737 1672345333
3001 ;
3002  see 
3003 \family sans
3004 File\SpecialChar menuseparator
3005 Open Example\SpecialChar menuseparator
3006 Articles\SpecialChar menuseparator
3007 American Mathematical Society (AMS)
3008 \change_unchanged
3009
3010 \family default
3011 .
3012 \end_layout
3013
3014 \begin_layout Itemize
3015 amsbook:
3016  the standard AMS book (really,
3017  monograph) format
3018 \change_inserted 564990737 1672345366
3019 ;
3020  see 
3021 \family sans
3022 File\SpecialChar menuseparator
3023 Open Example\SpecialChar menuseparator
3024 Books\SpecialChar menuseparator
3025 American Mathematical Society (AMS)
3026 \change_unchanged
3027
3028 \family default
3029 .
3030 \change_inserted 564990737 1672345369
3031
3032 \end_layout
3033
3034 \begin_layout Itemize
3035
3036 \change_inserted 564990737 1672345383
3037
3038 \family sans
3039 amsproc
3040 \family default
3041 :
3042  the standard AMS proceedings format.
3043 \end_layout
3044
3045 \begin_layout Standard
3046
3047 \change_inserted 564990737 1672345383
3048 \SpecialChar LyX
3049  only supports the first two natively;
3050  see the 
3051 \emph on
3052 Installing New Document Classes
3053 \emph default
3054  chapter of the 
3055 \emph on
3056 Customization
3057 \emph default
3058  manual if you want to use 
3059 \family sans
3060 amsproc
3061 \family default
3062 .
3063 \end_layout
3064
3065 \begin_layout Standard
3066 The layouts themselves contain only the minimum necessary to use the AMS classes.
3067  They do not,
3068  in particular,
3069  contain any of the `theorem' environments used for setting theorems,
3070  lemmas,
3071  and the like.
3072  These are contained,
3073  instead,
3074  in the 
3075 \change_deleted 564990737 1672345416
3076
3077 \begin_inset Flex Code
3078 status collapsed
3079
3080 \begin_layout Plain Layout
3081 Theorems (AMS)
3082 \end_layout
3083
3084 \end_inset
3085
3086
3087 \change_inserted 564990737 1672345416
3088
3089 \family sans
3090 AMS Theorems
3091 \change_unchanged
3092
3093 \family default
3094  module,
3095  which is loaded by default when you select one of the AMS classes.
3096  (It can also be used with other classes and can be removed,
3097  if you would rather use something else.) Less commonly used environments are in the 
3098 \change_deleted 564990737 1672345436
3099
3100 \begin_inset Flex Code
3101 status collapsed
3102
3103 \begin_layout Plain Layout
3104 Theorems (AMS-Extended)
3105 \end_layout
3106
3107 \end_inset
3108
3109
3110 \change_inserted 564990737 1672345436
3111  
3112 \family sans
3113 AMS Theorems (Extended)
3114 \change_unchanged
3115
3116 \family default
3117  module,
3118  which must be loaded manually.
3119 \end_layout
3120
3121 \begin_layout Standard
3122 By default,
3123  theorems and the like are numbered consecutively throughout the document,
3124  but this may be modified by loading the module 
3125 \change_deleted 564990737 1672345461
3126
3127 \begin_inset Flex Code
3128 status collapsed
3129
3130 \begin_layout Plain Layout
3131 Theorems (Order by Section)
3132 \end_layout
3133
3134 \end_inset
3135
3136
3137 \change_inserted 564990737 1672345461
3138
3139 \family sans
3140 Standard Theorems (Numbered by Section)
3141 \change_unchanged
3142
3143 \family default
3144  or,
3145  if you are using 
3146 \begin_inset Flex Code
3147 status collapsed
3148
3149 \begin_layout Plain Layout
3150 book (AMS)
3151 \end_layout
3152
3153 \end_inset
3154
3155 ,
3156  the module 
3157 \change_deleted 564990737 1672345479
3158
3159 \begin_inset Flex Code
3160 status collapsed
3161
3162 \begin_layout Plain Layout
3163 Theorems (Order by Chapter)
3164 \end_layout
3165
3166 \end_inset
3167
3168
3169 \change_inserted 564990737 1672345480
3170
3171 \family sans
3172 Standard Theorems (Numbered by Chapter)
3173 \change_unchanged
3174
3175 \family default
3176 .
3177  These will number the results as 
3178 \begin_inset Formula $n.m$
3179 \end_inset
3180
3181 ,
3182  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).
3183  Many environments are also available unnumbered.
3184  These are indicated by an asterisk at the end.
3185  If you happen to want 
3186 \emph on
3187 only
3188 \emph default
3189  unnumbered results,
3190  the module 
3191 \change_deleted 564990737 1672345498
3192
3193 \begin_inset Flex Code
3194 status collapsed
3195
3196 \begin_layout Plain Layout
3197 Theorems (Starred)
3198 \end_layout
3199
3200 \end_inset
3201
3202
3203 \change_inserted 564990737 1672345498
3204
3205 \family sans
3206 Standard Theorems (Unnumbered)
3207 \change_unchanged
3208
3209 \family default
3210  provides that option.
3211 \end_layout
3212
3213 \begin_layout Standard
3214 Note that these modules do not 
3215 \emph on
3216 have
3217 \emph default
3218  to be used with the AMS classes.
3219  It is perfectly possible to use the 
3220 \change_deleted 564990737 1672345520
3221
3222 \begin_inset Flex Code
3223 status collapsed
3224
3225 \begin_layout Plain Layout
3226 Theorems (AMS)
3227 \end_layout
3228
3229 \end_inset
3230
3231
3232 \change_inserted 564990737 1672345520
3233
3234 \family sans
3235 AMS Theorems
3236 \change_unchanged
3237
3238 \family default
3239  module,
3240  and the others mentioned,
3241  with other classes,
3242  such as 
3243 \begin_inset Flex Code
3244 status collapsed
3245
3246 \begin_layout Plain Layout
3247 article
3248 \end_layout
3249
3250 \end_inset
3251
3252 ,
3253  
3254 \begin_inset Flex Code
3255 status collapsed
3256
3257 \begin_layout Plain Layout
3258 report
3259 \end_layout
3260
3261 \end_inset
3262
3263 ,
3264  
3265 \begin_inset Flex Code
3266 status collapsed
3267
3268 \begin_layout Plain Layout
3269 book (KOMA-script)
3270 \end_layout
3271
3272 \end_inset
3273
3274 ,
3275  and so forth.
3276 \end_layout
3277
3278 \begin_layout Subsubsection
3279 What these layouts provide
3280 \end_layout
3281
3282 \begin_layout Standard
3283 There is a long list of included environments provided by these layouts.
3284  In AMS-\SpecialChar LaTeX
3285 ,
3286  there is,
3287  in fact,
3288  an opportunity to define an unlimited variety of `theorem' environments.
3289  However,
3290  the AMS recommends the environments that are available in \SpecialChar LyX
3291 .
3292  
3293 \end_layout
3294
3295 \begin_layout Standard
3296 The following environments—
3297 as well as the standard environments,
3298  such as 
3299 \begin_inset Flex Noun
3300 status collapsed
3301
3302 \begin_layout Plain Layout
3303 section
3304 \end_layout
3305
3306 \end_inset
3307
3308 ,
3309  
3310 \begin_inset Flex Noun
3311 status collapsed
3312
3313 \begin_layout Plain Layout
3314 bibliography
3315 \end_layout
3316
3317 \end_inset
3318
3319 ,
3320  
3321 \begin_inset Flex Noun
3322 status collapsed
3323
3324 \begin_layout Plain Layout
3325 title
3326 \end_layout
3327
3328 \end_inset
3329
3330 ,
3331  
3332 \begin_inset Flex Noun
3333 status collapsed
3334
3335 \begin_layout Plain Layout
3336 author
3337 \end_layout
3338
3339 \end_inset
3340
3341 ,
3342  and 
3343 \begin_inset Flex Noun
3344 status collapsed
3345
3346 \begin_layout Plain Layout
3347 date
3348 \end_layout
3349
3350 \end_inset
3351
3352
3353 are provided by 
3354 \begin_inset Flex Code
3355 status collapsed
3356
3357 \begin_layout Plain Layout
3358 article (AMS)
3359 \end_layout
3360
3361 \end_inset
3362
3363  and 
3364 \begin_inset Flex Code
3365 status collapsed
3366
3367 \begin_layout Plain Layout
3368 book (AMS)
3369 \end_layout
3370
3371 \end_inset
3372
3373 :
3374 \end_layout
3375
3376 \begin_layout Description
3377 Address This should be the author's permanent address.
3378 \end_layout
3379
3380 \begin_layout Description
3381 Current
3382 \begin_inset space ~
3383 \end_inset
3384
3385 Address This should be the author's temporary address at the time of submission,
3386  if different from the Address.
3387 \end_layout
3388
3389 \begin_layout Description
3390 Email Author's e-mail address
3391 \end_layout
3392
3393 \begin_layout Description
3394 URL Author's Web address,
3395  if desired.
3396 \end_layout
3397
3398 \begin_layout Description
3399 Keywords Key words or phrases used to identify specific topics discussed in the paper.
3400 \end_layout
3401
3402 \begin_layout Description
3403 Subjectclass These refer to the AMS Subject Classifications,
3404  published and described in 
3405 \emph on
3406 Mathematical Reviews
3407 \emph default
3408 .
3409  These are also available online at the AMS cites listed above.
3410 \end_layout
3411
3412 \begin_layout Description
3413 Thanks
3414 \end_layout
3415
3416 \begin_layout Description
3417 Dedicatory
3418 \end_layout
3419
3420 \begin_layout Description
3421 Translator
3422 \end_layout
3423
3424 \begin_layout Standard
3425 The following environments are provided by both the 
3426 \change_deleted 564990737 1672345566
3427
3428 \begin_inset Flex Code
3429 status collapsed
3430
3431 \begin_layout Plain Layout
3432 Theorems
3433 \end_layout
3434
3435 \end_inset
3436
3437
3438 \change_inserted 564990737 1672345566
3439
3440 \family sans
3441 Standard Theorems
3442 \change_unchanged
3443
3444 \family default
3445  and 
3446 \change_deleted 564990737 1672345580
3447
3448 \begin_inset Flex Code
3449 status collapsed
3450
3451 \begin_layout Plain Layout
3452 Theorems (AMS)
3453 \end_layout
3454
3455 \end_inset
3456
3457
3458 \change_inserted 564990737 1672345580
3459
3460 \family sans
3461 AMS Theorems
3462 \change_unchanged
3463
3464 \family default
3465  modules,
3466  in the latter case in both starred (unnumbered) and unstarred (numbered) versions.
3467  These same environments are provided only in the starred versions by the 
3468 \change_deleted 564990737 1672345596
3469
3470 \begin_inset Flex Code
3471 status collapsed
3472
3473 \begin_layout Plain Layout
3474 Theorems (Starred)
3475 \end_layout
3476
3477 \end_inset
3478
3479
3480 \change_inserted 564990737 1672345596
3481
3482 \family sans
3483 Standard Theorems
3484 \change_unchanged
3485
3486 \family default
3487  module:
3488 \end_layout
3489
3490 \begin_layout Theorem
3491 This is typically used for the statements of major results.
3492  
3493 \end_layout
3494
3495 \begin_layout Corollary*
3496 This is used for statements which follow fairly directly from previous statements.
3497  Again,
3498  these can be major results.
3499  
3500 \end_layout
3501
3502 \begin_layout Lemma
3503 These are smaller results needed to prove other statements.
3504 \end_layout
3505
3506 \begin_layout Proposition
3507 These are less major results which (hopefully) add to the general theory being discussed.
3508 \end_layout
3509
3510 \begin_layout Conjecture
3511 These are statements provided without justification,
3512  which the author does not know how to prove,
3513  but which seem to be true (to the author,
3514  at least).
3515 \end_layout
3516
3517 \begin_layout Definition*
3518 Guess what this is for.
3519  The font is different for this environment than for the previous ones.
3520  
3521 \end_layout
3522
3523 \begin_layout Example*
3524 Used for examples illustrating proven results.
3525 \end_layout
3526
3527 \begin_layout Problem
3528 It's not really known what this is for.
3529  You should figure it out.
3530 \end_layout
3531
3532 \begin_layout Exercise*
3533 Write a description for this one.
3534 \end_layout
3535
3536 \begin_layout Remark
3537 This environment is also a type of theorem,
3538  usually a lesser sort of observation.
3539 \end_layout
3540
3541 \begin_layout Claim*
3542 Often used in the course of giving a proof of a larger result.
3543 \end_layout
3544
3545 \begin_layout Case
3546 Generally,
3547  these are used to break up long arguments,
3548  using specific instances of some condition.
3549  
3550 \end_layout
3551
3552 \begin_layout Case
3553 The numbering scheme for cases is on its own,
3554  not together with other numbered statements.
3555  
3556 \end_layout
3557
3558 \begin_layout Proof
3559 At the end of this environment,
3560  a QED symbol (usually a square,
3561  but it can vary with different styles) is placed.
3562  If you want to have other environments within this one—
3563 for example,
3564  Case environments—
3565 and have the QED symbol appear only after them,
3566  then the other environments need to be nested within the proof environment.
3567  See the section 
3568 \emph on
3569 Nesting Environments
3570 \emph default
3571  of the 
3572 \emph on
3573 User's Guide
3574 \emph default
3575  for information on nesting.
3576 \end_layout
3577
3578 \begin_layout Fact
3579
3580 \change_inserted 564990737 1672345651
3581 Used in a way similar to Proposition,
3582  though perhaps lower on the scale.
3583 \end_layout
3584
3585 \begin_layout Standard
3586 And these environments are provided by 
3587 \change_deleted 564990737 1672345684
3588
3589 \begin_inset Flex Code
3590 status collapsed
3591
3592 \begin_layout Plain Layout
3593 Theorems (AMS-Extended)
3594 \end_layout
3595
3596 \end_inset
3597
3598
3599 \change_inserted 564990737 1672345689
3600
3601 \family sans
3602 AMS Theorems (Extended
3603 \family default
3604 )
3605 \change_unchanged
3606 :
3607 \end_layout
3608
3609 \begin_layout Criterion*
3610 A required condition.
3611 \end_layout
3612
3613 \begin_layout Algorithm*
3614 A general procedure to be used.
3615 \end_layout
3616
3617 \begin_layout Axiom*
3618 This is a property or statement taken as true within the system being discussed.
3619 \end_layout
3620
3621 \begin_layout Condition*
3622 Sometimes used to state a condition assumed within the present context of discussion.
3623 \end_layout
3624
3625 \begin_layout Note*
3626 Similar to a Remark.
3627 \end_layout
3628
3629 \begin_layout Notation*
3630 Used for the explanation of,
3631  yes,
3632  notation.
3633 \end_layout
3634
3635 \begin_layout Summary
3636 Do we really need to tell you?
3637  
3638 \end_layout
3639
3640 \begin_layout Acknowledgement*
3641 Acknowledgement.
3642 \end_layout
3643
3644 \begin_layout Conclusion*
3645 Sometimes used at the end of a long train of argument.
3646 \change_deleted 564990737 1672345729
3647
3648 \end_layout
3649
3650 \begin_layout Fact
3651
3652 \change_deleted 564990737 1672345638
3653 Used in a way similar to Proposition,
3654  though perhaps lower on the scale.
3655 \change_inserted 564990737 1672345720
3656
3657 \end_layout
3658
3659 \begin_layout Assumption*
3660
3661 \change_inserted 564990737 1672345721
3662 Assumption
3663 \end_layout
3664
3665 \begin_layout Question*
3666
3667 \change_inserted 564990737 1672345721
3668 Question
3669 \end_layout
3670
3671 \begin_layout Standard
3672
3673 \change_inserted 564990737 1672345721
3674 There are ten more Maths modules available including several offering options ordered on 
3675 \family sans
3676 (Numbered by Type \SpecialChar ldots
3677 )
3678 \family default
3679 .
3680 \change_unchanged
3681
3682 \end_layout
3683
3684 \begin_layout Standard
3685 In addition,
3686  the AMS classes automatically provide the AMS \SpecialChar LaTeX
3687  and AMS fonts packages.
3688  They need to be available on your system in order to use these environments.
3689 \end_layout
3690
3691 \begin_layout Subsection
3692
3693 \change_inserted 564990737 1671383236
3694 \begin_inset CommandInset label
3695 LatexCommand label
3696 name "subsec:Extra-font-sizes"
3697
3698 \end_inset
3699
3700 Extra font sizes
3701 \end_layout
3702
3703 \begin_layout Standard
3704
3705 \change_inserted 564990737 1671383236
3706 The “Extra font sizes” collection provides the document classes 
3707 \family sans
3708 article
3709 \begin_inset space \thinspace{}
3710 \end_inset
3711
3712 (with extra font sizes)
3713 \family default
3714 ,
3715  
3716 \family sans
3717 book
3718 \begin_inset space \thinspace{}
3719 \end_inset
3720
3721 (with extra font sizes)
3722 \family default
3723 ,
3724  
3725 \family sans
3726 letter
3727 \begin_inset space \thinspace{}
3728 \end_inset
3729
3730 (with extra font sizes)
3731 \family default
3732  and 
3733 \family sans
3734 report
3735 \begin_inset space \thinspace{}
3736 \end_inset
3737
3738 (with extra font sizes)
3739 \family default
3740  which use the 
3741 \family typewriter
3742 article.cls
3743 \family default
3744 ,
3745  
3746 \family typewriter
3747 book.cls
3748 \family default
3749 ,
3750  
3751 \family typewriter
3752 letter.cls
3753 \family default
3754  and 
3755 \family typewriter
3756 report.cls
3757 \family default
3758  document classes respectively but offer the additional 
3759 \family sans
3760 \bar under
3761 B
3762 \bar default
3763 ase
3764 \begin_inset space ~
3765 \end_inset
3766
3767 Size
3768 \family default
3769  options 8,
3770  9,
3771  14,
3772  17 and 20 in the 
3773 \family sans
3774 \bar under
3775 D
3776 \bar default
3777 ocument\SpecialChar menuseparator
3778
3779 \bar under
3780 S
3781 \bar default
3782 ettings\SpecialChar menuseparator
3783 Fonts
3784 \family default
3785  dialog.
3786 \end_layout
3787
3788 \begin_layout Subsection
3789
3790 \change_inserted 564990737 1671383236
3791 Hebrew
3792 \end_layout
3793
3794 \begin_layout Standard
3795
3796 \change_inserted 564990737 1671383236
3797 The document classes 
3798 \family sans
3799 article
3800 \begin_inset space \thinspace{}
3801 \end_inset
3802
3803 (Hebrew)
3804 \family default
3805  and 
3806 \family sans
3807 letter
3808 \begin_inset space \thinspace{}
3809 \end_inset
3810
3811 (Hebrew)
3812 \family default
3813  use the 
3814 \family typewriter
3815 article.cl
3816 \family sans
3817 s
3818 \family default
3819  and 
3820 \family typewriter
3821 letter.cls
3822 \family default
3823  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3824 .
3825 \end_layout
3826
3827 \begin_layout Subsection
3828
3829 \change_inserted 564990737 1671383236
3830 \begin_inset CommandInset label
3831 LatexCommand label
3832 name "subsec:Japanese"
3833
3834 \end_inset
3835
3836 Japanese
3837 \end_layout
3838
3839 \begin_layout Standard
3840
3841 \change_inserted 564990737 1671383236
3842 The document classes 
3843 \family sans
3844 article
3845 \begin_inset space \thinspace{}
3846 \end_inset
3847
3848 (Japanese JS Class)
3849 \family default
3850 ,
3851
3852 \family sans
3853  article
3854 \begin_inset space \thinspace{}
3855 \end_inset
3856
3857 (Japanese Standard Class Vertical Writing)
3858 \family default
3859 ,
3860  
3861 \family sans
3862 article
3863 \begin_inset space \thinspace{}
3864 \end_inset
3865
3866 (Japanese Standard Class)
3867 \family default
3868 ,
3869  
3870 \family sans
3871 book
3872 \begin_inset space \thinspace{}
3873 \end_inset
3874
3875 (Japanese JS Class)
3876 \family default
3877 ,
3878
3879 \family sans
3880  book
3881 \begin_inset space \thinspace{}
3882 \end_inset
3883
3884 (Japanese Standard Class Vertical Writing)
3885 \family default
3886 ,
3887  
3888 \family sans
3889 book
3890 \begin_inset space \thinspace{}
3891 \end_inset
3892
3893 (Japanese Standard Class)
3894 \family default
3895 ,
3896  
3897 \family sans
3898 report
3899 \begin_inset space \thinspace{}
3900 \end_inset
3901
3902 (Japanese Vertical Writing)
3903 \family default
3904  and 
3905 \family sans
3906 report
3907 \begin_inset space \thinspace{}
3908 \end_inset
3909
3910 (Japanese Standard Class)
3911 \family default
3912  provide document classes for the Japanese language.
3913 \end_layout
3914
3915 \begin_layout Subsection
3916
3917 \change_inserted 564990737 1672429136
3918 \begin_inset CommandInset label
3919 LatexCommand label
3920 name "subsec:KOMA-Script"
3921
3922 \end_inset
3923
3924 KOMA-Script
3925 \end_layout
3926
3927 \begin_layout Standard
3928
3929 \change_inserted 564990737 1672429136
3930 Original by 
3931 \noun on
3932 Bernd Rellermeyer
3933 \noun default
3934 ;
3935  updated by 
3936 \noun on
3937 Jürgen Spitzmüller
3938 \noun default
3939  and the \SpecialChar LyX
3940  Team
3941 \change_deleted 564990737 1672429136
3942 Koma-Script
3943 \end_layout
3944
3945 \begin_layout Standard
3946
3947 \change_deleted 564990737 1672429136
3948 by 
3949 \noun on
3950 Bernd Rellermeyer
3951 \change_unchanged
3952
3953 \end_layout
3954
3955 \begin_layout Subsubsection
3956 Overview
3957 \change_inserted 564990737 1672429161
3958
3959 \end_layout
3960
3961 \begin_layout Standard
3962
3963 \change_inserted 564990737 1672429162
3964 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
3965  it was formally launched with the addition of a letter class in 1994.
3966  Since then,
3967  a second letter class has been added.
3968  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.
3969  
3970 \change_unchanged
3971
3972 \end_layout
3973
3974 \begin_layout Standard
3975 The \SpecialChar LyX
3976  document classes 
3977 \emph on
3978 article (koma-script)
3979 \emph default
3980 ,
3981  
3982 \emph on
3983 report (koma-script)
3984 \emph default
3985 ,
3986  
3987 \emph on
3988 book
3989 \emph default
3990  
3991 \emph on
3992 (koma-script)
3993 \emph default
3994 ,
3995  and 
3996 \emph on
3997 letter
3998 \emph default
3999  
4000 \emph on
4001 (koma-script)
4002 \emph default
4003  correspond to the \SpecialChar LaTeX
4004  document classes 
4005 \family typewriter
4006 scrartcl.cls
4007 \family default
4008 ,
4009  
4010 \family typewriter
4011 scrreprt.cls
4012 \family default
4013 ,
4014  
4015 \family typewriter
4016 scrbook.cls
4017 \family default
4018 ,
4019  and 
4020 \family typewriter
4021 scrlettr.cls
4022 \family default
4023 ,
4024  resp.
4025 \begin_inset space ~
4026 \end_inset
4027
4028 of the Koma-Script family.
4029  They are replacements for the standard document classes 
4030 \family typewriter
4031 article.cls
4032 \family default
4033 ,
4034  
4035 \family typewriter
4036 report.cls
4037 \family default
4038 ,
4039  
4040 \family typewriter
4041 book.cls
4042 \family default
4043  and 
4044 \family typewriter
4045 letter.cls
4046 \family default
4047 ,
4048  resp.,
4049  and fit better to European typography conventions in a number of points.
4050 \end_layout
4051
4052 \begin_layout Itemize
4053
4054 \change_deleted 564990737 1672429262
4055 Standard character size is
4056 \change_inserted 564990737 1672429263
4057 The base character sizes when you select a KOMA-Script class are
4058 \change_unchanged
4059  11pt in 
4060 \emph on
4061 article (koma-script)
4062 \emph default
4063 ,
4064  
4065 \emph on
4066 report (koma-script)
4067 \emph default
4068 ,
4069  and 
4070 \emph on
4071 book (koma-script)
4072 \change_deleted 564990737 1672429267
4073
4074 \emph default
4075 ,
4076
4077 \change_unchanged
4078  and 12pt in 
4079 \emph on
4080 letter (koma-script)
4081 \emph default
4082 .
4083 \end_layout
4084
4085 \begin_layout Itemize
4086 Headings,
4087  labels of the description environment,
4088  and a number of elements of the 
4089 \emph on
4090 letter (koma-script)
4091 \emph default
4092  document class are set in a bold sans serif font.
4093 \begin_inset Foot
4094 status collapsed
4095
4096 \begin_layout Plain Layout
4097 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
4098  especially in the appearance of headings.
4099  In comparison,
4100  the ec bold sans serif fonts look a bit thin.
4101  Here the \SpecialChar LaTeX
4102  package 
4103 \family typewriter
4104 cmsd.sty by
4105 \family default
4106  
4107 \shape smallcaps
4108 Walter Schmidt
4109 \shape default
4110  helps to produce the 
4111 \begin_inset Quotes eld
4112 \end_inset
4113
4114 usual
4115 \begin_inset Quotes erd
4116 \end_inset
4117
4118  appearance when using the ec fonts.
4119 \end_layout
4120
4121 \end_inset
4122
4123  The numbering of chapter headings is made in the same way as the numbering of section headings,
4124  that is without the extra line 
4125 \begin_inset Quotes eld
4126 \end_inset
4127
4128 Chapter\SpecialChar ldots
4129
4130 \begin_inset Quotes erd
4131 \end_inset
4132
4133 .
4134  In addition,
4135  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
4136  to be entered in the field 
4137 \family sans
4138 Extra
4139 \begin_inset space ~
4140 \end_inset
4141
4142 Options
4143 \family default
4144  of the dialog 
4145 \family sans
4146 Layout\SpecialChar menuseparator
4147 Document
4148 \family default
4149 ).
4150  
4151 \end_layout
4152
4153 \begin_layout Itemize
4154
4155 \change_deleted 564990737 1672429310
4156 The main means in the Koma-Script document classes to design the type area are the options 
4157 \family sans
4158 BCOR
4159 \family default
4160  and 
4161 \family sans
4162 DIV
4163 \family default
4164  (in \SpecialChar LyX
4165  to be entered in the extra class options field in the dialog 
4166 \family sans
4167 Document\SpecialChar menuseparator
4168 Settings
4169 \family default
4170 ).
4171  They make a clearer modification of page margins possible as do the options of the dialog 
4172 \family sans
4173 Document\SpecialChar menuseparator
4174 Settings
4175 \family default
4176 .
4177  
4178 \change_inserted 564990737 1672429310
4179 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.
4180  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.
4181  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
4182  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
4183  
4184 \end_layout
4185
4186 \begin_deeper
4187 \begin_layout Standard
4188
4189 \change_inserted 564990737 1672429310
4190 Whatever the factor,
4191  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
4192  leaving a text area occupying around half the page.
4193  Since most two-sided documents have a binding,
4194  this can make the inner margins appear too narrow;
4195  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
4196  
4197 \end_layout
4198
4199 \begin_layout Standard
4200
4201 \change_inserted 564990737 1672429310
4202 The main means in the Koma-Script document classes to design the type area are the options 
4203 \family sans
4204 BCOR
4205 \family default
4206  and 
4207 \family sans
4208 DIV
4209 \family default
4210  entered in 
4211 \family sans
4212 Document\SpecialChar menuseparator
4213 Settings\SpecialChar menuseparator
4214 Document Class\SpecialChar menuseparator
4215 Class Options\SpecialChar menuseparator
4216 Custom
4217 \family default
4218 .
4219  
4220 \end_layout
4221
4222 \begin_layout Standard
4223
4224 \change_inserted 564990737 1672429310
4225 In this document,
4226  the binding correction is 7.5mm which is added in the form 
4227 \family typewriter
4228 BCOR7.5mm
4229 \family default
4230  to 
4231 \family sans
4232 Class
4233 \begin_inset space ~
4234 \end_inset
4235
4236 options\SpecialChar menuseparator
4237 Cus
4238 \bar under
4239 t
4240 \bar default
4241 om
4242 \family default
4243  dialog.
4244  To change the factor to 11,
4245  for example,
4246  add the entry 
4247 \family typewriter
4248 DIV=11
4249 \family default
4250  to the comma separated list of entries in the 
4251 \family sans
4252 Cus
4253 \bar under
4254 t
4255 \bar default
4256 om
4257 \family default
4258  
4259 \family sans
4260 Class
4261 \begin_inset space ~
4262 \end_inset
4263
4264 options
4265 \family default
4266 .
4267  If you want the default value of this factor for a page size other than A4,
4268  add the entry 
4269 \family typewriter
4270 DIV=calc
4271 \family default
4272 .
4273 \end_layout
4274
4275 \begin_layout Standard
4276
4277 \change_inserted 564990737 1672429310
4278 To use the circle method of calculating the page layout,
4279  use 
4280 \family typewriter
4281 DIV=classic
4282 \family default
4283  instead.
4284 \change_unchanged
4285
4286 \end_layout
4287
4288 \end_deeper
4289 \begin_layout Itemize
4290 The \SpecialChar LaTeX
4291  document classes of the Koma-Script family define a number of additional commands.
4292  Those part of it which makes sense in \SpecialChar LyX
4293  is implemented in corresponding paragraph types.
4294 \end_layout
4295
4296 \begin_layout Standard
4297 Detailed descriptions of the \SpecialChar LaTeX
4298  document classes of the Koma-Script family can be found in the Koma-Script documentation 
4299 \emph on
4300 scrguide
4301 \emph default
4302  (German) and 
4303 \emph on
4304 scrguien
4305 \emph default
4306  (English).
4307 \end_layout
4308
4309 \begin_layout Subsubsection
4310
4311 \change_inserted 564990737 1672429358
4312
4313 \series bold
4314 \begin_inset CommandInset label
4315 LatexCommand label
4316 name "subsec:article-(KOMA-Script),-report"
4317
4318 \end_inset
4319
4320
4321 \series default
4322 article (KOMA-Script),
4323  report (KOMA-Script),
4324  and book (KOMA-Script)
4325 \change_deleted 564990737 1672429367
4326 article (koma-script),
4327  report (koma-script),
4328  and book (koma-script)
4329 \change_unchanged
4330
4331 \end_layout
4332
4333 \begin_layout Standard
4334 The document classes 
4335 \emph on
4336 article (koma-script)
4337 \emph default
4338 ,
4339  
4340 \emph on
4341 report (koma-script)
4342 \emph default
4343 ,
4344  and 
4345 \emph on
4346 book
4347 \emph default
4348  
4349 \emph on
4350 (koma-script)
4351 \emph default
4352  are implemented in the layout files 
4353 \family typewriter
4354 scrartcl.layout
4355 \family default
4356 ,
4357  
4358 \family typewriter
4359 scrreprt.layout
4360 \family default
4361 ,
4362  and 
4363 \family typewriter
4364 scrbook.layout
4365 \family default
4366 ,
4367  resp.
4368  They contain all the paragraph types of the corresponding standard document classes 
4369 \emph on
4370 article
4371 \emph default
4372 ,
4373  
4374 \emph on
4375 report
4376 \emph default
4377 ,
4378  and 
4379 \emph on
4380 book
4381 \emph default
4382 ,
4383  resp.,
4384  partly modified,
4385  with the exception of the \SpecialChar LyX
4386  specific 
4387 \family sans
4388 List
4389 \family default
4390 -type,
4391  which is replaced by the new 
4392 \family sans
4393 Labeling
4394 \family default
4395 -type having the same functionality.
4396  Beside the 
4397 \family sans
4398 Labeling
4399 \family default
4400 -Type there is a number of new paragraph types added.
4401  They are 
4402 \emph on
4403 not
4404 \emph default
4405  part of 
4406 \emph on
4407 letter (koma-script)
4408 \emph default
4409 .
4410 \end_layout
4411
4412 \begin_layout Itemize
4413
4414 \family sans
4415 Addpart,
4416  Addchap
4417 \family default
4418 ,
4419  
4420 \family sans
4421 Addsec
4422 \family default
4423 :
4424  are equivalents to 
4425 \family sans
4426 Part*,
4427  Chapter*
4428 \family default
4429  and 
4430 \family sans
4431 Section*
4432 \family default
4433 ,
4434  resp.,
4435  additionally inserting an entry in the table of contents.
4436  
4437 \family sans
4438 Addpart
4439 \family default
4440  and 
4441 \family sans
4442 Addchap
4443 \family default
4444  are not contained in 
4445 \emph on
4446 article (koma-script)
4447 \emph default
4448 .
4449 \end_layout
4450
4451 \begin_layout Itemize
4452
4453 \family sans
4454 Addchap*
4455 \family default
4456 ,
4457  
4458 \family sans
4459 Addsec*
4460 \family default
4461 :
4462  behave exactly as 
4463 \family sans
4464 Addchap
4465 \family default
4466  and 
4467 \family sans
4468 Addsec
4469 \family default
4470 ,
4471  resp.,
4472  additionally clearing running heads.
4473  
4474 \family sans
4475 Addchap*
4476 \family default
4477  is not contained in 
4478 \emph on
4479 article (koma-script)
4480 \emph default
4481 .
4482 \begin_inset Foot
4483 status collapsed
4484
4485 \begin_layout Plain Layout
4486 There is also an 
4487 \family typewriter
4488
4489 \backslash
4490 addpart*
4491 \family default
4492  command in 
4493 \emph on
4494 book (koma-script)
4495 \emph default
4496  and in 
4497 \emph on
4498 report (koma-script)
4499 \emph default
4500 ,
4501  but since this is identical to 
4502 \family sans
4503 Part*
4504 \family default
4505 ,
4506  is has not been implemented in \SpecialChar LyX
4507 .
4508 \end_layout
4509
4510 \end_inset
4511
4512
4513 \end_layout
4514
4515 \begin_layout Itemize
4516
4517 \family sans
4518 Minisec
4519 \family default
4520 :
4521  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4522 \end_layout
4523
4524 \begin_layout Itemize
4525
4526 \family sans
4527 Captionabove
4528 \family default
4529  and 
4530 \family sans
4531 Captionbelow
4532 \family default
4533  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4534  you might want to place table captions always above the table).
4535  You can also use the class option 
4536 \family typewriter
4537 tablecaptionsabove
4538 \family default
4539 ,
4540  which will switch 
4541 \family sans
4542 caption
4543 \family default
4544  to 
4545 \family sans
4546 captionabove
4547 \family default
4548  for tables and 
4549 \family sans
4550 captionbelow
4551 \family default
4552  for figures.
4553  You need at least Koma-Script version 2.8q to use this.
4554 \end_layout
4555
4556 \begin_layout Itemize
4557
4558 \family sans
4559 Dictum
4560 \family default
4561 :
4562  can be used to set a bonmot,
4563  e.
4564 \begin_inset space \thinspace{}
4565 \end_inset
4566
4567 g.
4568 \begin_inset space \space{}
4569 \end_inset
4570
4571 at the beginning of a chapter.
4572  If you use the optional argument (
4573 \family sans
4574 Insert\SpecialChar menuseparator
4575 Dictum
4576 \begin_inset space ~
4577 \end_inset
4578
4579 Author
4580 \family default
4581 ),
4582  you can insert the dictum's author there.
4583  Dictum and author are separated by a line.
4584  You need at least Koma-Script version 2.8q to use this.
4585  
4586 \family sans
4587 Dictum
4588 \family default
4589  is not contained in 
4590 \emph on
4591 article (koma-script)
4592 \emph default
4593 .
4594 \end_layout
4595
4596 \begin_layout Standard
4597 The following types,
4598  together with the standard types 
4599 \family sans
4600 Title
4601 \family default
4602 ,
4603  
4604 \family sans
4605 Author
4606 \family default
4607 ,
4608  and 
4609 \family sans
4610 Date
4611 \family default
4612 ,
4613  form the title area of the document.
4614  They must be entered ahead of the first 
4615 \begin_inset Quotes eld
4616 \end_inset
4617
4618 ordinary
4619 \begin_inset Quotes erd
4620 \end_inset
4621
4622  paragraph.
4623 \begin_inset Foot
4624 status collapsed
4625
4626 \begin_layout Plain Layout
4627 The corresponding \SpecialChar LaTeX
4628  commands must appear before the 
4629 \family typewriter
4630
4631 \backslash
4632 maketitle
4633 \family default
4634  command.
4635 \end_layout
4636
4637 \end_inset
4638
4639  When such a type is used more than once,
4640  the latter usage overwrites the former one,
4641  that means,
4642  for every type only the latest usage is valid.
4643  The order of the different types however has,
4644  like 
4645 \family sans
4646 Title
4647 \family default
4648 ,
4649  
4650 \family sans
4651 Author
4652 \family default
4653 ,
4654  and 
4655 \family sans
4656 Date
4657 \family default
4658 ,
4659  no effect on the appearance of the produced document.
4660 \end_layout
4661
4662 \begin_layout Itemize
4663
4664 \family sans
4665 Subject
4666 \family default
4667 :
4668  produces a centered paragraph above the ordinary title (
4669 \family sans
4670 Title
4671 \family default
4672 ,
4673  
4674 \family sans
4675 Author
4676 \family default
4677 ,
4678  
4679 \family sans
4680 Date
4681 \family default
4682 ) for the subject of the document.
4683 \end_layout
4684
4685 \begin_layout Itemize
4686
4687 \family sans
4688 Publishers
4689 \family default
4690 :
4691  produces a centered paragraph below the ordinary title (
4692 \family sans
4693 Title
4694 \family default
4695 ,
4696  
4697 \family sans
4698 Author
4699 \family default
4700 ,
4701  
4702 \family sans
4703 Date
4704 \family default
4705 ) for the publishers' name.
4706 \end_layout
4707
4708 \begin_layout Itemize
4709
4710 \family sans
4711 Dedication
4712 \family default
4713 :
4714  in 
4715 \emph on
4716 report (koma-script)
4717 \emph default
4718  and 
4719 \emph on
4720 book (koma-script)
4721 \emph default
4722  produces a centered paragraph on its own page behind the title page,
4723  or in 
4724 \emph on
4725 article (koma-script)
4726 \emph default
4727  produces a centered paragraph below the ordinary title (
4728 \family sans
4729 Title
4730 \family default
4731 ,
4732  
4733 \family sans
4734 Author
4735 \family default
4736 ,
4737  
4738 \family sans
4739 Date
4740 \family default
4741 ,
4742  
4743 \family sans
4744 Publishers
4745 \family default
4746 ) for a dedication.
4747 \end_layout
4748
4749 \begin_layout Itemize
4750
4751 \family sans
4752 Titlehead
4753 \family default
4754 :
4755  produces a left aligned paragraph above the ordinary title (
4756 \family sans
4757 Title
4758 \family default
4759 ,
4760  
4761 \family sans
4762 Author
4763 \family default
4764 ,
4765  
4766 \family sans
4767 Date
4768 \family default
4769 ,
4770  
4771 \family sans
4772 Subject
4773 \family default
4774 ) for a document`s head.
4775 \end_layout
4776
4777 \begin_layout Itemize
4778
4779 \family sans
4780 Uppertitleback
4781 \family default
4782 :
4783  produces in a double-sided print in 
4784 \emph on
4785 report (koma-script)
4786 \emph default
4787  and 
4788 \emph on
4789 book (koma-script)
4790 \emph default
4791  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4792 \emph on
4793 article (koma-script)
4794 \emph default
4795 .
4796 \end_layout
4797
4798 \begin_layout Itemize
4799
4800 \family sans
4801 Lowertitleback
4802 \family default
4803 :
4804  produces in a double-sided print in 
4805 \emph on
4806 report (koma-script)
4807 \emph default
4808  and 
4809 \emph on
4810 book (koma-script)
4811 \emph default
4812  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4813 \emph on
4814 article (koma-script)
4815 \emph default
4816 .
4817 \end_layout
4818
4819 \begin_layout Itemize
4820
4821 \family sans
4822 Extratitle
4823 \family default
4824 :
4825  produces a special 
4826 \begin_inset Quotes eld
4827 \end_inset
4828
4829 dirty
4830 \begin_inset Quotes erd
4831 \end_inset
4832
4833  page ahead of the actual document containing a paragraph without special formatting.
4834 \end_layout
4835
4836 \begin_layout Standard
4837
4838 \change_inserted 564990737 1672429680
4839 KOMA-Script offers a wide range of 
4840 \family sans
4841 Cus
4842 \bar under
4843 t
4844 \bar default
4845 om Class
4846 \begin_inset space ~
4847 \end_inset
4848
4849 options
4850 \family default
4851  for the 
4852 \family sans
4853 \bar under
4854 D
4855 \bar default
4856 ocument\SpecialChar menuseparator
4857
4858 \bar under
4859 S
4860 \bar default
4861 ettings\SpecialChar menuseparator
4862 Document
4863 \begin_inset space ~
4864 \end_inset
4865
4866 class
4867 \family default
4868  dialog which you can apply to the whole document,
4869  among them
4870 \end_layout
4871
4872 \begin_layout Description
4873
4874 \change_inserted 564990737 1672429680
4875
4876 \family typewriter
4877 \series medium
4878 draft=true
4879 \family default
4880 \series default
4881  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4882  the default setting is 
4883 \family typewriter
4884 false
4885 \end_layout
4886
4887 \begin_layout Description
4888
4889 \change_inserted 564990737 1672429680
4890
4891 \family typewriter
4892 \series medium
4893 headings=
4894 \family default
4895 \series default
4896  which may take the values 
4897 \family typewriter
4898 big
4899 \family default
4900 ,
4901  
4902 \family typewriter
4903 normal
4904 \family default
4905  or 
4906 \family typewriter
4907 small
4908 \family default
4909 ;
4910  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4911 \end_layout
4912
4913 \begin_layout Description
4914
4915 \change_inserted 564990737 1672429680
4916
4917 \family typewriter
4918 \series medium
4919 numbers=
4920 \family default
4921 \series default
4922  which may take the values 
4923 \family typewriter
4924 auto
4925 \family default
4926  (the default),
4927  
4928 \family typewriter
4929 enddot
4930 \family default
4931  or 
4932 \family typewriter
4933 noenddot
4934 \family default
4935 ;
4936  the first leaves it up to KOMA-Script to add periods after chapter,
4937  section numbers,
4938  etc.;
4939  the second forces the addition of periods and third suppresses them
4940 \end_layout
4941
4942 \begin_layout Standard
4943
4944 \change_inserted 564990737 1672429680
4945 and the math options:
4946 \end_layout
4947
4948 \begin_layout Description
4949
4950 \change_inserted 564990737 1672429680
4951
4952 \family typewriter
4953 \series medium
4954 leqno
4955 \family default
4956 \series default
4957  which causes equations to be numbered on the left rather than on the right,
4958  and
4959 \end_layout
4960
4961 \begin_layout Description
4962
4963 \change_inserted 564990737 1672429680
4964
4965 \family typewriter
4966 \series medium
4967 fleqn
4968 \family default
4969 \series default
4970  which causes equations to be left justified rather than centered.
4971 \end_layout
4972
4973 \begin_layout Standard
4974
4975 \change_inserted 564990737 1672429680
4976 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
4977  commands and packages;
4978  for example,
4979  if you want your captions in bold add
4980 \end_layout
4981
4982 \begin_layout Standard
4983
4984 \change_inserted 564990737 1672429680
4985
4986 \family typewriter
4987
4988 \backslash
4989 setkomafont{captionlabel}{
4990 \backslash
4991 bfseries}
4992 \end_layout
4993
4994 \begin_layout Standard
4995
4996 \change_inserted 564990737 1672429680
4997 to 
4998 \family sans
4999 \bar under
5000 D
5001 \bar default
5002 ocument\SpecialChar menuseparator
5003
5004 \bar under
5005 S
5006 \bar default
5007 ettings
5008 \family default
5009 \SpecialChar menuseparator
5010
5011 \family sans
5012 \SpecialChar LaTeX
5013
5014 \begin_inset space ~
5015 \end_inset
5016
5017 Preamble
5018 \family default
5019 ) and the problem is solved.
5020 \end_layout
5021
5022 \begin_layout Standard
5023
5024 \change_inserted 564990737 1672429680
5025 If you are writing a book,
5026  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
5027  If you use the Chapter* environment,
5028  your Foreword and Preface will not appear in the Table of Contents;
5029  to make them to appear in the Table of contents,
5030  you need to use Chapter environments and add the \SpecialChar TeX
5031  code
5032 \end_layout
5033
5034 \begin_layout Standard
5035
5036 \change_inserted 564990737 1672429680
5037
5038 \family typewriter
5039
5040 \backslash
5041 frontmatter
5042 \end_layout
5043
5044 \begin_layout Standard
5045
5046 \change_inserted 564990737 1672429680
5047 at the very start of the book (not in the \SpecialChar LaTeX
5048  Preamble) and
5049 \end_layout
5050
5051 \begin_layout Standard
5052
5053 \change_inserted 564990737 1672429680
5054
5055 \family typewriter
5056
5057 \backslash
5058 mainmatter
5059 \end_layout
5060
5061 \begin_layout Standard
5062
5063 \change_inserted 564990737 1672429680
5064 before the first chapter of the body of the text.
5065  You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
5066  if any.
5067 \begin_inset Foot
5068 status open
5069
5070 \begin_layout Plain Layout
5071
5072 \change_inserted 564990737 1672429680
5073 Appendices are normally “numbered” with letters.
5074 \end_layout
5075
5076 \end_inset
5077
5078  If you use the Chapter* environment,
5079  they will not appear in the Table of Contents;
5080  so add the \SpecialChar TeX
5081  code
5082 \end_layout
5083
5084 \begin_layout Standard
5085
5086 \change_inserted 564990737 1672429680
5087
5088 \family typewriter
5089
5090 \backslash
5091 backmatter
5092 \end_layout
5093
5094 \begin_layout Standard
5095
5096 \change_inserted 564990737 1672429682
5097 before the first of these headings and use the Chapter environment.
5098  These commands will have no effect on the numbering in \SpecialChar LyX
5099 ,
5100  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
5101 \end_layout
5102
5103 \begin_layout Standard
5104 The layout files for the document classes 
5105 \emph on
5106 article (koma-script)
5107 \emph default
5108 ,
5109  
5110 \emph on
5111 report (koma-script)
5112 \emph default
5113 ,
5114  and 
5115 \emph on
5116 book (koma-script)
5117 \emph default
5118  do include the file 
5119 \family typewriter
5120 scrmacros.inc
5121 \family default
5122 .
5123  This is thought of as a place to define your own types.
5124  Copy scrmacros
5125 \family typewriter
5126 .inc
5127 \family default
5128  in your personal layout directory and edit the file!
5129 \change_deleted 564990737 1672430255
5130
5131 \end_layout
5132
5133 \begin_layout Standard
5134
5135 \change_deleted 564990737 1672430255
5136 letter (koma-script)
5137 \end_layout
5138
5139 \begin_layout Description
5140
5141 \change_deleted 564990737 1672429749
5142 Note:
5143  This section discusses the obsolete 
5144 \family sans
5145 KOMA-Script-Letter (v.
5146 \begin_inset space ~
5147 \end_inset
5148
5149 1)
5150 \family default
5151 ,
5152  which is not even included anymore in recent KOMA releases.
5153  Please refer to the next section for the current KOMA-Script-Letter class (v.
5154 \begin_inset space ~
5155 \end_inset
5156
5157 2)!
5158 \end_layout
5159
5160 \begin_layout Standard
5161 \noindent
5162
5163 \change_deleted 564990737 1672429749
5164 The document class 
5165 \emph on
5166 letter (koma-script)
5167 \emph default
5168  is implemented in the layout file 
5169 \family typewriter
5170 scrlettr.layout
5171 \family default
5172 .
5173  It contains all the paragraph types of the corresponding standard document class 
5174 \emph on
5175 letter
5176 \emph default
5177 ,
5178  partly modified,
5179  with the exception of the \SpecialChar LyX
5180  specific types 
5181 \family sans
5182 \SpecialChar LyX
5183 -Code
5184 \family default
5185  and 
5186 \family sans
5187 Comment
5188 \family default
5189  and the 
5190 \family sans
5191 List
5192 \family default
5193  type,
5194  which is replaced by the new 
5195 \family sans
5196 Labeling
5197 \family default
5198  type.
5199  In addition,
5200  it contains,
5201  in contrast to the standard document class,
5202  the standard types 
5203 \family sans
5204 \SpecialChar LaTeX
5205
5206 \family default
5207 ,
5208  
5209 \family sans
5210 Quotation
5211 \family default
5212 ,
5213  
5214 \family sans
5215 Quote
5216 \family default
5217 ,
5218  and 
5219 \family sans
5220 Verse
5221 \family default
5222 .
5223  Furthermore,
5224  there are a number of new letter specific types.
5225 \end_layout
5226
5227 \begin_layout Standard
5228
5229 \change_deleted 564990737 1672429749
5230 The appearance of the letter produced by this document class can be controlled by a number of \SpecialChar LaTeX
5231  commands,
5232  which you can put in the \SpecialChar LaTeX
5233  preamble.
5234 \begin_inset Foot
5235 status collapsed
5236
5237 \begin_layout Plain Layout
5238 For example,
5239  the standard appearance of the letter`s heading,
5240  consisting of name and address,
5241  is quite self-willed.
5242  An 
5243 \begin_inset Quotes eld
5244 \end_inset
5245
5246 ordinary
5247 \begin_inset Quotes erd
5248 \end_inset
5249
5250  heading is produced by the following \SpecialChar LaTeX
5251  commands in the preamble:
5252 \end_layout
5253
5254 \begin_layout LyX-Code
5255
5256 \backslash
5257 firsthead{
5258 \backslash
5259 parbox[b]{
5260 \backslash
5261 textwidth}
5262 \end_layout
5263
5264 \begin_layout LyX-Code
5265   {
5266 \backslash
5267 ignorespaces 
5268 \backslash
5269 fromname
5270 \backslash
5271
5272 \backslash
5273  
5274 \backslash
5275 ignorespaces 
5276 \backslash
5277 fromaddress}} 
5278 \end_layout
5279
5280 \begin_layout LyX-Code
5281
5282 \backslash
5283 nexthead{
5284 \backslash
5285 parbox[b]{
5286 \backslash
5287 textwidth}
5288 \end_layout
5289
5290 \begin_layout LyX-Code
5291   {
5292 \backslash
5293 ignorespaces 
5294 \backslash
5295 fromname 
5296 \backslash
5297 hfill 
5298 \backslash
5299 ignorespaces 
5300 \backslash
5301 pagename
5302 \backslash
5303  
5304 \backslash
5305 thepage}}
5306 \end_layout
5307
5308 \end_inset
5309
5310  A detailed German description of such \SpecialChar LaTeX
5311  commands can be found in the Koma-Script documentation 
5312 \emph on
5313 scrguide
5314 \emph default
5315 .
5316  With it,
5317  the letter's author can produce his personal letter layout.
5318 \end_layout
5319
5320 \begin_layout Standard
5321
5322 \change_deleted 564990737 1672429749
5323 The types 
5324 \family sans
5325 Letter
5326 \family default
5327  and 
5328 \family sans
5329 Opening
5330 \family default
5331  define the beginning of the letter and must be used in every letter.
5332  To emphasize them in the \SpecialChar LyX
5333  document class,
5334  they are marked with the letter 
5335 \shape italic
5336 L
5337 \shape default
5338  or 
5339 \shape italic
5340 O
5341 \shape default
5342 ,
5343  resp.
5344 \begin_inset space ~
5345 \end_inset
5346
5347 in the left margin.
5348  It is possible to write any number of letters in one file.
5349  An 
5350 \family sans
5351 Opening
5352 \family default
5353  type produces a new letter using the same addressee and a 
5354 \family sans
5355 Letter
5356 \family default
5357  type produces a new addressee.
5358  The types 
5359 \family sans
5360 Closing
5361 \family default
5362 ,
5363  
5364 \family sans
5365 PS
5366 \family default
5367 ,
5368  
5369 \family sans
5370 CC
5371 \family default
5372 ,
5373  and 
5374 \family sans
5375 Encl
5376 \family default
5377  are ordinary paragraph types and can also be used several times in one and the same letter.
5378 \end_layout
5379
5380 \begin_layout Itemize
5381
5382 \change_deleted 564990737 1672429749
5383
5384 \family sans
5385 Letter
5386 \family default
5387 :
5388  produces a paragraph for the addressee and implicitly defines the beginning of the letter.
5389 \end_layout
5390
5391 \begin_layout Itemize
5392
5393 \change_deleted 564990737 1672429749
5394
5395 \family sans
5396 Opening
5397 \family default
5398 :
5399  produces a paragraph for the form of address and implicitly produces a new letter.
5400 \end_layout
5401
5402 \begin_layout Itemize
5403
5404 \change_deleted 564990737 1672429749
5405
5406 \family sans
5407 Closing
5408 \family default
5409 :
5410  produces a paragraph for a close.
5411 \end_layout
5412
5413 \begin_layout Itemize
5414
5415 \change_deleted 564990737 1672429749
5416
5417 \family sans
5418 PS
5419 \family default
5420 :
5421  produces a paragraph for a postscript.
5422 \end_layout
5423
5424 \begin_layout Itemize
5425
5426 \change_deleted 564990737 1672429749
5427
5428 \family sans
5429 CC
5430 \family default
5431 :
5432  produces a paragraph for a distribution list.
5433 \end_layout
5434
5435 \begin_layout Itemize
5436
5437 \change_deleted 564990737 1672429749
5438
5439 \family sans
5440 Encl
5441 \family default
5442 :
5443  produces a paragraph for enclosures.
5444 \end_layout
5445
5446 \begin_layout Standard
5447
5448 \change_deleted 564990737 1672429749
5449 The types 
5450 \family sans
5451 Name
5452 \family default
5453 ,
5454  
5455 \family sans
5456 Signature
5457 \family default
5458 ,
5459  
5460 \family sans
5461 Address
5462 \family default
5463 ,
5464  
5465 \family sans
5466 Telephone
5467 \family default
5468 ,
5469  
5470 \family sans
5471 Place
5472 \family default
5473 ,
5474  
5475 \family sans
5476 Backaddress
5477 \family default
5478 ,
5479  
5480 \family sans
5481 Specialmail
5482 \family default
5483 ,
5484  
5485 \family sans
5486 Location
5487 \family default
5488 ,
5489  
5490 \family sans
5491 Title
5492 \family default
5493 ,
5494  and 
5495 \family sans
5496 Subject
5497 \family default
5498  are input types provided with a label to enter information,
5499  which will be processed by the document class.
5500 \begin_inset Foot
5501 status collapsed
5502
5503 \begin_layout Plain Layout
5504 It could be seen as a matter of inconsequence,
5505  that the types 
5506 \family sans
5507 Letter
5508 \family default
5509  and 
5510 \family sans
5511 Opening
5512 \family default
5513  described above are not such input types as well.
5514  Because of the special meaning of those types,
5515  however,
5516  I have implemented them as ordinary paragraph types with a one letter mark in the left margin.
5517  Moreover,
5518  it would affect my feeling of symmetry,
5519  if the 
5520 \family sans
5521 Opening
5522 \family default
5523  type and the 
5524 \family sans
5525 Closing
5526 \family default
5527  type had such a serious different appearance.
5528 \end_layout
5529
5530 \end_inset
5531
5532  The types must be used ahead of the corresponding 
5533 \family sans
5534 Opening
5535 \family default
5536  type.
5537 \end_layout
5538
5539 \begin_layout Standard
5540
5541 \change_deleted 564990737 1672429749
5542 An implementation of these types in a WYSIWYG fashion does not seem to make sense,
5543  because the real appearance of the produced letter does not only depend on the usage of the particular type,
5544  but also on other factors.
5545  For example,
5546  a signature entered in the 
5547 \family sans
5548 Signature
5549 \family default
5550  type will in the standard behavior appear in the produced letter only,
5551  when in the same letter also a 
5552 \family sans
5553 Closing
5554 \family default
5555  type is used.
5556  The entered value of the 
5557 \family sans
5558 Telephone
5559 \family default
5560  type will in the standard behavior not appear in the produced letter at all.
5561  The possibility to design the letter`s heading freely is already indicated in a footnote above.
5562 \end_layout
5563
5564 \begin_layout Standard
5565
5566 \change_deleted 564990737 1672429749
5567 The input types can also be used as empty paragraphs.
5568  This makes sense e.
5569 \begin_inset space \thinspace{}
5570 \end_inset
5571
5572 g.
5573 \begin_inset space \space{}
5574 \end_inset
5575
5576 for the 
5577 \family sans
5578 Signature
5579 \family default
5580  type.
5581  If the 
5582 \family sans
5583 Signature
5584 \family default
5585  type is not used at all,
5586  in the standard behavior the value of the 
5587 \family sans
5588 Name
5589 \family default
5590  type is used as signature,
5591  whereas if an empty 
5592 \family sans
5593 Signature
5594 \family default
5595  type is used,
5596  no signature value is defined.
5597 \end_layout
5598
5599 \begin_layout Standard
5600
5601 \change_deleted 564990737 1672429749
5602 By using the input types it is possible to write a letter template,
5603  containing filled input types with your personal dates (name,
5604  address,
5605  etc.) and empty input types for other dates you want to enter.
5606 \end_layout
5607
5608 \begin_layout Itemize
5609
5610 \change_deleted 564990737 1672429749
5611
5612 \family sans
5613 Name
5614 \family default
5615 :
5616  sender's name,
5617  in the standard behavior appears as a centered paragraph in small caps in the letter`s heading.
5618 \end_layout
5619
5620 \begin_layout Itemize
5621
5622 \change_deleted 564990737 1672429749
5623
5624 \family sans
5625 Signature
5626 \family default
5627 :
5628  sender's signature,
5629  in the standard behavior appears below the 
5630 \family sans
5631 Closing
5632 \family default
5633  type.
5634  If no 
5635 \family sans
5636 Signature
5637 \family default
5638  type is used,
5639  the value of the 
5640 \family sans
5641 Name
5642 \family default
5643  type appears instead.
5644 \end_layout
5645
5646 \begin_layout Itemize
5647
5648 \change_deleted 564990737 1672429749
5649
5650 \family sans
5651 Address
5652 \family default
5653 :
5654  sender's address,
5655  in the standard behavior appears in a centered paragraph in the letter`s heading below the sender's name.
5656 \end_layout
5657
5658 \begin_layout Itemize
5659
5660 \change_deleted 564990737 1672429749
5661
5662 \family sans
5663 Telephone
5664 \family default
5665 :
5666  sender's telephone number,
5667  in the standard behavior only sets the \SpecialChar LaTeX
5668  variable 
5669 \family typewriter
5670
5671 \backslash
5672 telephonenum
5673 \family default
5674 .
5675 \end_layout
5676
5677 \begin_layout Itemize
5678
5679 \change_deleted 564990737 1672429749
5680
5681 \family sans
5682 Place
5683 \family default
5684 :
5685  place of the letter`s making.
5686 \end_layout
5687
5688 \begin_layout Itemize
5689
5690 \change_deleted 564990737 1672429749
5691
5692 \family sans
5693 Date
5694 \family default
5695 :
5696  date of the letter`s making.
5697  
5698 \family sans
5699 Place
5700 \family default
5701  and 
5702 \family sans
5703 Date
5704 \family default
5705 ,
5706  in the standard behavior,
5707  produce the place and the date in a right-aligned line below the addressee's field.
5708  If an empty 
5709 \family sans
5710 Date
5711 \family default
5712  type is used,
5713  neither place nor date appear,
5714  independent of the value of the 
5715 \family sans
5716 Place
5717 \family default
5718  type.
5719  If no 
5720 \family sans
5721 Date
5722 \family default
5723  type is used,
5724  the date of the letter `s production is used.
5725 \end_layout
5726
5727 \begin_layout Itemize
5728
5729 \change_deleted 564990737 1672429749
5730
5731 \family sans
5732 Backaddress
5733 \family default
5734 :
5735  sender`s back address,
5736  in the standard behavior appears above the addressee's field in a small sans serif font.
5737 \end_layout
5738
5739 \begin_layout Itemize
5740
5741 \change_deleted 564990737 1672429749
5742
5743 \family sans
5744 Specialmail
5745 \family default
5746 :
5747  special mail information,
5748  in the standard behavior appears underlined above the addressee's field below the back address.
5749 \end_layout
5750
5751 \begin_layout Itemize
5752
5753 \change_deleted 564990737 1672429749
5754
5755 \family sans
5756 Location
5757 \family default
5758 :
5759  additional information,
5760  in the standard behavior appears on right side below the addressee`s field.
5761 \end_layout
5762
5763 \begin_layout Itemize
5764
5765 \change_deleted 564990737 1672429749
5766
5767 \family sans
5768 Title
5769 \family default
5770 :
5771  the letter's title,
5772  in the standard behavior appears in a big,
5773  bold,
5774  sans serif font above the subject.
5775 \end_layout
5776
5777 \begin_layout Itemize
5778
5779 \change_deleted 564990737 1672429749
5780
5781 \family sans
5782 Subject
5783 \family default
5784 :
5785  the letter's subject,
5786  in the standard behavior appears in a bold font above the 
5787 \family sans
5788 Opening
5789 \family default
5790  paragraph.
5791 \end_layout
5792
5793 \begin_layout Standard
5794
5795 \change_deleted 564990737 1672429749
5796 The types 
5797 \family sans
5798 Yourref
5799 \family default
5800 ,
5801  
5802 \family sans
5803 Yourmail
5804 \family default
5805 ,
5806  
5807 \family sans
5808 Myref
5809 \family default
5810 ,
5811  
5812 \family sans
5813 Customer
5814 \family default
5815 ,
5816  and 
5817 \family sans
5818 Invoice
5819 \family default
5820  produce a business letter like line above the 
5821 \family sans
5822 Title
5823 \family default
5824  line containing the fields 
5825 \begin_inset Quotes eld
5826 \end_inset
5827
5828 Your ref.
5829 \begin_inset Quotes erd
5830 \end_inset
5831
5832 ,
5833  
5834 \begin_inset Quotes eld
5835 \end_inset
5836
5837 Your letter of
5838 \begin_inset Quotes erd
5839 \end_inset
5840
5841 ,
5842  
5843 \begin_inset Quotes eld
5844 \end_inset
5845
5846 Our ref.
5847 \begin_inset Quotes erd
5848 \end_inset
5849
5850 ,
5851  
5852 \begin_inset Quotes eld
5853 \end_inset
5854
5855 Customer no.
5856 \begin_inset Quotes erd
5857 \end_inset
5858
5859 ,
5860  
5861 \begin_inset Quotes eld
5862 \end_inset
5863
5864 Invoice no.
5865 \begin_inset Quotes erd
5866 \end_inset
5867
5868 ,
5869  and 
5870 \begin_inset Quotes eld
5871 \end_inset
5872
5873 Date
5874 \begin_inset Quotes erd
5875 \end_inset
5876
5877 .
5878  For the date field,
5879  the value of the 
5880 \family sans
5881 Date
5882 \family default
5883  type is used.
5884  If one of these 
5885 \begin_inset Quotes eld
5886 \end_inset
5887
5888 business letter types
5889 \begin_inset Quotes erd
5890 \end_inset
5891
5892  is used,
5893  the value of the 
5894 \family sans
5895 Place
5896 \family default
5897  type however does not appear,
5898  but only the \SpecialChar LaTeX
5899  variable 
5900 \family typewriter
5901
5902 \backslash
5903 fromplace
5904 \family default
5905  is set.
5906  The ordinary output of place and date in a right-aligned line below the addressee`s field is suppressed.
5907  The types are implemented as input types provided with a label and must be used ahead of the corresponding 
5908 \family sans
5909 Opening
5910 \family default
5911  type.
5912 \end_layout
5913
5914 \begin_layout Itemize
5915
5916 \change_deleted 564990737 1672429749
5917
5918 \family sans
5919 Yourref
5920 \family default
5921 :
5922  Your ref.
5923 \end_layout
5924
5925 \begin_layout Itemize
5926
5927 \change_deleted 564990737 1672429749
5928
5929 \family sans
5930 Yourmail
5931 \family default
5932 :
5933  Your letter of.
5934 \end_layout
5935
5936 \begin_layout Itemize
5937
5938 \change_deleted 564990737 1672429749
5939
5940 \family sans
5941 Myref
5942 \family default
5943 :
5944  Our ref.
5945 \end_layout
5946
5947 \begin_layout Itemize
5948
5949 \change_deleted 564990737 1672429749
5950
5951 \family sans
5952 Customer
5953 \family default
5954 :
5955  Customer no.
5956 \end_layout
5957
5958 \begin_layout Itemize
5959
5960 \change_deleted 564990737 1672429749
5961
5962 \family sans
5963 Invoice
5964 \family default
5965 :
5966  Invoice no.
5967 \change_unchanged
5968
5969 \end_layout
5970
5971 \begin_layout Subsubsection
5972
5973 \change_deleted 564990737 1672429773
5974 The new letter class:
5975  letter (koma-script v.2)
5976 \change_inserted 564990737 1672429774
5977
5978 \begin_inset CommandInset label
5979 LatexCommand label
5980 name "subsec:The-new-letter"
5981
5982 \end_inset
5983
5984 The new letter class:
5985  letter (KOMA-Script v.2)
5986 \change_unchanged
5987
5988 \end_layout
5989
5990 \begin_layout Standard
5991 by 
5992 \noun on
5993 Jürgen Spitzmüller
5994 \end_layout
5995
5996 \begin_layout Standard
5997 \begin_inset VSpace medskip
5998 \end_inset
5999
6000
6001 \end_layout
6002
6003 \begin_layout Standard
6004 \noindent
6005 Koma-Script version 2.8 has introduced a new letter class 
6006 \family typewriter
6007 scrlttr2
6008 \family default
6009  which supersedes the now unsupported 
6010 \family typewriter
6011 scrlettr
6012 \family default
6013 .
6014  It has —
6015  on the \SpecialChar LaTeX
6016  side —
6017  a completely new interface and is not compatible with the old class.
6018  Therefore,
6019  \SpecialChar LyX
6020  supports both,
6021  though it is recommended you use the new class.
6022 \end_layout
6023
6024 \begin_layout Standard
6025 This class covers the same functionality as 
6026 \emph on
6027 letter (koma-script),
6028
6029 \emph default
6030  and a few more.
6031  The basic items are 
6032 \family sans
6033 Address
6034 \family default
6035  (receiver's address,
6036  same as 
6037 \family sans
6038 Letter
6039 \family default
6040  in the old layout),
6041  
6042 \family sans
6043 Opening
6044 \family default
6045 ,
6046  and 
6047 \family sans
6048 Closing
6049 \family default
6050 .
6051  
6052 \family sans
6053 NextAddress
6054 \family default
6055  will start a new letter (i.
6056 \begin_inset space \thinspace{}
6057 \end_inset
6058
6059 e.
6060 \begin_inset space \space{}
6061 \end_inset
6062
6063 you can write several letters per document).
6064  New elements are sender's 
6065 \family sans
6066 E-Mail
6067 \family default
6068 ,
6069  
6070 \family sans
6071 URL
6072 \family default
6073 ,
6074  
6075 \family sans
6076 Fax
6077 \family default
6078 ,
6079  
6080 \family sans
6081 Bank
6082 \family default
6083  and the possibility to use a 
6084 \family sans
6085 Logo
6086 \family default
6087  (via 
6088 \family sans
6089 Insert\SpecialChar menuseparator
6090 Graphics
6091 \family default
6092 ) in the header.
6093 \end_layout
6094
6095 \begin_layout Standard
6096 The biggest improvement is,
6097  though,
6098  that the letter's layout is configurable to meet almost any needs.
6099  This can be done via the preamble or with a special style file (Letter Class Option,
6100  extension 
6101 \family typewriter
6102 *.lco
6103 \family default
6104 ),
6105  that will be read in as a class option.
6106 \begin_inset Foot
6107 status collapsed
6108
6109 \begin_layout Plain Layout
6110 The KOMA package comes with some default 
6111 \family typewriter
6112 *.lco
6113 \family default
6114  files.
6115  There is,
6116  for instance,
6117  a 
6118 \family typewriter
6119 DIN.lco
6120 \family default
6121  file that follows german typesetting rules,
6122  or a 
6123 \family typewriter
6124 KOMAold.lco
6125 \family default
6126  that provides the default layout of the old 
6127 \family typewriter
6128 scrlettr
6129 \family default
6130  class.
6131  The latter can be loaded with the class option 
6132 \family typewriter
6133 KOMAold
6134 \family default
6135 ,
6136  inserted via the 
6137 \family sans
6138 Layout\SpecialChar menuseparator
6139 Document\SpecialChar menuseparator
6140 Extra Options
6141 \family default
6142  field.
6143 \end_layout
6144
6145 \end_inset
6146
6147  Have a look at the
6148 \change_deleted 564990737 1671617922
6149  
6150 \emph on
6151 koma-letter2
6152 \change_unchanged
6153
6154 \emph default
6155  template 
6156 \change_deleted 564990737 1671617938
6157 that is included in \SpecialChar LyX
6158  for examples
6159 \change_inserted 564990737 1671617997
6160  in 
6161 \family sans
6162 \bar under
6163 F
6164 \bar default
6165 ile\SpecialChar menuseparator
6166 New
6167 \begin_inset space ~
6168 \end_inset
6169
6170 fro
6171 \bar under
6172 m
6173 \bar default
6174
6175 \begin_inset space ~
6176 \end_inset
6177
6178 Template\SpecialChar menuseparator
6179 Letters\SpecialChar menuseparator
6180 KOMA-Script Letter (V.2)
6181 \change_unchanged
6182
6183 \family default
6184 .
6185  A detailed description is to be found in the Koma-Script documentation (
6186 \emph on
6187 scrguide
6188 \emph default
6189 ).
6190 \end_layout
6191
6192 \begin_layout Subsubsection
6193 Problems
6194 \end_layout
6195
6196 \begin_layout Standard
6197 Visualizing the Koma-Script document classes in \SpecialChar LyX
6198 ,
6199  the \SpecialChar LyX
6200  internals cause some problems.
6201 \end_layout
6202
6203 \begin_layout Itemize
6204 The chapter number of a 
6205 \family sans
6206 Chapter
6207 \family default
6208  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
6209  The cause for that is the \SpecialChar LyX
6210  internal behavior for the labeltype 
6211 \family sans
6212 Counter_Chapter
6213 \family default
6214  in the layout file.
6215 \end_layout
6216
6217 \begin_layout Itemize
6218 The headings of the types 
6219 \family sans
6220 Addchap
6221 \family default
6222  and 
6223 \family sans
6224 Addsec
6225 \family default
6226  are only put in the 
6227 \begin_inset Quotes eld
6228 \end_inset
6229
6230 true
6231 \begin_inset Quotes erd
6232 \end_inset
6233
6234  \SpecialChar LaTeX
6235  table of contents,
6236  but not in the \SpecialChar LyX
6237  table of contents (
6238 \family sans
6239 Document\SpecialChar menuseparator
6240 Table
6241 \begin_inset space ~
6242 \end_inset
6243
6244 of
6245 \begin_inset space ~
6246 \end_inset
6247
6248 Contents
6249 \family default
6250 ).
6251 \end_layout
6252
6253 \begin_layout Itemize
6254 The paragraphs in a 
6255 \emph on
6256 letter
6257 \emph default
6258  document class appear in a skip separation mode,
6259  not indented.
6260  This is the standard behavior,
6261  no special \SpecialChar LaTeX
6262  commands are needed for that.
6263  But in the 
6264 \family sans
6265 Document\SpecialChar menuseparator
6266 Settings
6267 \family default
6268  dialog the corresponding radio button indicates 
6269 \family sans
6270 Indent
6271 \family default
6272 .
6273  A 
6274 \family sans
6275 Skip
6276 \family default
6277  value always has the effect that extra \SpecialChar LaTeX
6278  commands are inserted in the document to produce the gap,
6279  which is not what is wanted in this case.
6280 \end_layout
6281
6282 \begin_layout Subsection
6283
6284 \change_inserted 564990737 1672743555
6285 \begin_inset CommandInset label
6286 LatexCommand label
6287 name "subsec:Polish-M.W.collection"
6288
6289 \end_inset
6290
6291 Polish M.
6292 \begin_inset space \thinspace{}
6293 \end_inset
6294
6295 W.
6296 \begin_inset space \space{}
6297 \end_inset
6298
6299 collection
6300 \change_deleted 564990737 1670924933
6301 Article (mwart),
6302  book (mwbk) and report (mwrep)
6303 \begin_inset Argument status
6304 status collapsed
6305
6306 \begin_layout Plain Layout
6307 The 
6308 \family typewriter
6309 mw
6310 \family default
6311  Classes
6312 \end_layout
6313
6314 \end_inset
6315
6316
6317 \change_unchanged
6318
6319 \end_layout
6320
6321 \begin_layout Standard
6322 by 
6323 \noun on
6324 Tomasz Luczak
6325 \end_layout
6326
6327 \begin_layout Standard
6328 The \SpecialChar LyX
6329  document classes 
6330 \emph on
6331 article (mwart)
6332 \emph default
6333 ,
6334  
6335 \emph on
6336 report (mwrep)
6337 \emph default
6338  and 
6339 \emph on
6340 book
6341 \emph default
6342  
6343 \emph on
6344 (mwbk)
6345 \emph default
6346  correspond to the \SpecialChar LaTeX
6347  document classes 
6348 \family typewriter
6349 mwart.cls
6350 \family default
6351 ,
6352  
6353 \family typewriter
6354 mwrep.cls
6355 \family default
6356  and 
6357 \family typewriter
6358 mwbk.cls
6359 \family default
6360 ,
6361  resp.
6362  They are replacements for the standard document classes 
6363 \family typewriter
6364 article.cls
6365 \family default
6366 ,
6367  
6368 \family typewriter
6369 report.cls
6370 \family default
6371  and 
6372 \family typewriter
6373 book.cls
6374 \family default
6375 ,
6376  resp.,
6377  and fit better to Polish typography conventions in a number of points.
6378  
6379 \end_layout
6380
6381 \begin_layout Standard
6382 Basic differences:
6383 \end_layout
6384
6385 \begin_layout Itemize
6386 Unnumbered titles (with star,
6387  e.
6388 \begin_inset space \thinspace{}
6389 \end_inset
6390
6391 g.
6392 \begin_inset space \space{}
6393 \end_inset
6394
6395
6396 \family sans
6397 Section*
6398 \family default
6399 ) are added into table of contents,
6400 \end_layout
6401
6402 \begin_layout Itemize
6403 Additional page styles:
6404 \end_layout
6405
6406 \begin_deeper
6407 \begin_layout Description
6408 uheadings header with separated lines,
6409 \end_layout
6410
6411 \begin_layout Description
6412 myheadings custom header,
6413  contents headers via commands:
6414  
6415 \family typewriter
6416
6417 \backslash
6418 markright
6419 \family default
6420  and 
6421 \family typewriter
6422
6423 \backslash
6424 markboth
6425 \family default
6426 ,
6427 \end_layout
6428
6429 \begin_layout Description
6430 myuheadings custom header with separated lines,
6431 \end_layout
6432
6433 \begin_layout Description
6434 outer page number is placed on outer side of page
6435 \end_layout
6436
6437 \end_deeper
6438 \begin_layout Itemize
6439 Options 
6440 \end_layout
6441
6442 \begin_deeper
6443 \begin_layout Description
6444 rmheadings serif titles —
6445  default,
6446 \end_layout
6447
6448 \begin_layout Description
6449 sfheadings sansserif titles,
6450 \end_layout
6451
6452 \begin_layout Description
6453 authortitle on title page first placed is author next title —
6454  default,
6455 \end_layout
6456
6457 \begin_layout Description
6458 titleauthor on title page first placed is title next author,
6459 \end_layout
6460
6461 \begin_layout Description
6462 withmarginpar reserve place on page for margins.
6463 \end_layout
6464
6465 \end_deeper
6466 \begin_layout Subsection
6467
6468 \change_inserted 564990737 1672652245
6469 Tufte Collection
6470 \end_layout
6471
6472 \begin_layout Standard
6473
6474 \change_inserted 564990737 1672652245
6475 The document classes 
6476 \family sans
6477 book
6478 \begin_inset space \thinspace{}
6479 \end_inset
6480
6481 (Tufte)
6482 \family default
6483  and 
6484 \family sans
6485 handout
6486 \begin_inset space \thinspace{}
6487 \end_inset
6488
6489 (Tufte)
6490 \family default
6491  use the 
6492 \family typewriter
6493 tufte-book.cls
6494 \family default
6495  and 
6496 \family typewriter
6497 tufte-handout.cls
6498 \family default
6499  document classes.
6500  Detailed information about these document classes can be found in 
6501 \family sans
6502 File\SpecialChar menuseparator
6503 Open Example\SpecialChar menuseparator
6504 Books\SpecialChar menuseparator
6505 Tufte Book
6506 \family default
6507  and 
6508 \family sans
6509 File\SpecialChar menuseparator
6510 Open Example\SpecialChar menuseparator
6511 Handouts\SpecialChar menuseparator
6512 Tufte Handout
6513 \family default
6514 .
6515 \end_layout
6516
6517 \begin_layout Section
6518
6519 \change_inserted 564990737 1670439534
6520 Articles
6521 \end_layout
6522
6523 \begin_layout Standard
6524
6525 \change_inserted 564990737 1670794710
6526 See also the document classes in the Collections (section
6527 \begin_inset space ~
6528 \end_inset
6529
6530
6531 \begin_inset CommandInset ref
6532 LatexCommand ref
6533 reference "sec:Collections"
6534 nolink "false"
6535
6536 \end_inset
6537
6538 ).
6539 \end_layout
6540
6541 \begin_layout Subsection
6542
6543 \change_inserted 564990737 1670794716
6544 A&A Paper
6545 \end_layout
6546
6547 \begin_layout Standard
6548
6549 \change_inserted 564990737 1670794716
6550 Original by 
6551 \noun on
6552 Peter Sütterlin
6553 \noun default
6554 ;
6555  updated by the \SpecialChar LyX
6556  Team
6557 \end_layout
6558
6559 \begin_layout Subsubsection
6560
6561 \change_inserted 564990737 1670794716
6562 Introduction
6563 \end_layout
6564
6565 \begin_layout Standard
6566
6567 \change_inserted 564990737 1670794716
6568 This section describes how \SpecialChar LyX
6569  can be used to write articles for submission to the scientific journal 
6570 \emph on
6571 Astronomy and Astrophysics
6572 \emph default
6573  (
6574 \begin_inset CommandInset href
6575 LatexCommand href
6576 name "aa-package"
6577 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6578 literal "false"
6579
6580 \end_inset
6581
6582 ) using Version 9.1 of the document class 
6583 \family typewriter
6584 aa.cls
6585 \family default
6586 ;
6587  information about it is available at 
6588 \begin_inset Flex URL
6589 status collapsed
6590
6591 \begin_layout Plain Layout
6592
6593 \change_inserted 564990737 1670794716
6594
6595 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
6596 \change_unchanged
6597
6598 \end_layout
6599
6600 \end_inset
6601
6602 .
6603 \end_layout
6604
6605 \begin_layout Standard
6606
6607 \change_inserted 564990737 1670794716
6608 A manual comes together with the package and should be consulted before installing this document class as described in the 
6609 \emph on
6610 Installing New Document Classe
6611 \emph default
6612 s section of the 
6613 \emph on
6614 Customization
6615 \emph default
6616  manual.
6617  
6618 \end_layout
6619
6620 \begin_layout Standard
6621
6622 \change_inserted 564990737 1670794716
6623 \begin_inset Note Greyedout
6624 status open
6625
6626 \begin_layout Plain Layout
6627
6628 \change_inserted 564990737 1670794716
6629 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
6630  2001.
6631  That change also involved some slight changes to the style files,
6632  namely the removal of the thesaurus command.
6633  If you have an older version installed,
6634  please upgrade.
6635  For information about compatibility with the old (version 4) layout,
6636  please refer to the comments in 
6637 \family typewriter
6638 \SpecialChar LyX
6639 Dir/layouts/aapaper.layout
6640 \family default
6641 .
6642 \end_layout
6643
6644 \end_inset
6645
6646
6647 \end_layout
6648
6649 \begin_layout Subsubsection
6650
6651 \change_inserted 564990737 1670794716
6652 Getting started
6653 \end_layout
6654
6655 \begin_layout Standard
6656
6657 \change_inserted 564990737 1671617129
6658 It is recommended you start from the template in the menu 
6659 \family sans
6660 \bar under
6661 F
6662 \bar default
6663 ile\SpecialChar menuseparator
6664 New
6665 \begin_inset space ~
6666 \end_inset
6667
6668 fro
6669 \bar under
6670 m
6671 \bar default
6672
6673 \begin_inset space ~
6674 \end_inset
6675
6676 Template\SpecialChar menuseparator
6677 Articles\SpecialChar menuseparator
6678 Astronomy & Astrophysics
6679 \family default
6680 .
6681  If you are not using the template,
6682  note the following settings:
6683 \end_layout
6684
6685 \begin_layout Itemize
6686
6687 \change_inserted 564990737 1670794716
6688 Select 
6689 \family sans
6690 article (A&A)
6691 \family default
6692  in the 
6693 \family sans
6694 \bar under
6695 D
6696 \bar default
6697 ocument\SpecialChar menuseparator
6698
6699 \bar under
6700 S
6701 \bar default
6702 ettings\SpecialChar menuseparator
6703 Document
6704 \begin_inset space ~
6705 \end_inset
6706
6707 Class
6708 \family default
6709  dialog (OK,
6710  that one was obvious).
6711 \end_layout
6712
6713 \begin_layout Itemize
6714
6715 \change_inserted 564990737 1670794716
6716 Don't change the 
6717 \family sans
6718 Headings
6719 \begin_inset space ~
6720 \end_inset
6721
6722
6723 \bar under
6724 s
6725 \bar default
6726 tyle
6727 \family default
6728  in the 
6729 \family sans
6730 Page
6731 \begin_inset space ~
6732 \end_inset
6733
6734 Layout
6735 \family default
6736  dialog:
6737  leave it set to 
6738 \family sans
6739 Default
6740 \family default
6741 .
6742  The whole layout is done by the macros,
6743  you shouldn't change anything.
6744 \end_layout
6745
6746 \begin_layout Subsubsection
6747
6748 \change_inserted 564990737 1670794716
6749 The header block
6750 \end_layout
6751
6752 \begin_layout Standard
6753
6754 \change_inserted 564990737 1670794716
6755 First thing to enter is the header information.
6756  It consists of five entries,
6757  of which one is optional.
6758  They are
6759 \end_layout
6760
6761 \begin_layout Itemize
6762
6763 \change_inserted 564990737 1670794716
6764
6765 \family sans
6766 Title
6767 \family default
6768 :
6769  [required] 
6770 \end_layout
6771
6772 \begin_layout Itemize
6773
6774 \change_inserted 564990737 1670794716
6775
6776 \family sans
6777 Subtitle
6778 \family default
6779 :
6780  [optional] 
6781 \end_layout
6782
6783 \begin_layout Itemize
6784
6785 \change_inserted 564990737 1670794716
6786
6787 \family sans
6788 Author
6789 \family default
6790 :
6791  [required]
6792 \end_layout
6793
6794 \begin_layout Itemize
6795
6796 \change_inserted 564990737 1670794716
6797
6798 \family typewriter
6799 Institute
6800 \family default
6801 :
6802  [required]
6803 \end_layout
6804
6805 \begin_layout Itemize
6806
6807 \change_inserted 564990737 1670794716
6808
6809 \family sans
6810 Date
6811 \family default
6812 :
6813  [required].
6814  Suggested format is 
6815 \family typewriter
6816 Received:
6817  <date>;
6818  Accepted <date> 
6819 \end_layout
6820
6821 \begin_layout Standard
6822
6823 \change_inserted 564990737 1670794716
6824 Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
6825  just to get the best optics and meets the layout of the real document.
6826 \end_layout
6827
6828 \begin_layout Standard
6829
6830 \change_inserted 564990737 1670794716
6831 If you want to place footnotes in the header block,
6832  e.
6833 \begin_inset space \thinspace{}
6834 \end_inset
6835
6836 g.
6837 \begin_inset space \space{}
6838 \end_inset
6839
6840 to state your present address,
6841  just use the standard footnote via the menu 
6842 \family sans
6843 \bar under
6844 I
6845 \bar default
6846 nsert\SpecialChar menuseparator
6847
6848 \bar under
6849 F
6850 \bar default
6851 ootnote.
6852
6853 \family default
6854  \SpecialChar LyX
6855  will automagically use the term 
6856 \family typewriter
6857
6858 \backslash
6859 thanks{}
6860 \family default
6861  in that case.
6862 \end_layout
6863
6864 \begin_layout Standard
6865
6866 \change_inserted 564990737 1670794716
6867 In addition to these topics,
6868  the macros use three additional \SpecialChar LaTeX
6869  commands that have no counterpart in \SpecialChar LyX
6870 :
6871 \end_layout
6872
6873 \begin_layout Itemize
6874
6875 \change_inserted 564990737 1670794716
6876
6877 \family typewriter
6878
6879 \backslash
6880 and
6881 \family default
6882  to separate different names for more than one author and institute,
6883  respectively.
6884 \end_layout
6885
6886 \begin_layout Itemize
6887
6888 \change_inserted 564990737 1670794716
6889
6890 \family typewriter
6891
6892 \backslash
6893 inst{<nr>}
6894 \family default
6895  to mark corresponding author/institute pairs.
6896  The institutes are numbered sequentially as they appear in the 
6897 \family sans
6898 Institute
6899 \family default
6900  field,
6901  so you have to put a marker to each author.
6902 \end_layout
6903
6904 \begin_layout Itemize
6905
6906 \change_inserted 564990737 1670794716
6907
6908 \family typewriter
6909
6910 \backslash
6911 email{address}
6912 \family default
6913  to supply an email address for fast contact.
6914 \end_layout
6915
6916 \begin_layout Standard
6917
6918 \change_inserted 564990737 1671642374
6919 In all cases,
6920  the appropriate command has to be entered as \SpecialChar TeX
6921  code in \SpecialChar LyX
6922 .
6923  See the examples in the template and in 
6924 \family sans
6925 File\SpecialChar menuseparator
6926 Open Example\SpecialChar menuseparator
6927 Articles\SpecialChar menuseparator
6928 Astronomy & Astrophysics
6929 \family default
6930 .
6931 \change_unchanged
6932
6933 \end_layout
6934
6935 \begin_layout Subsubsection
6936
6937 \change_inserted 564990737 1670794716
6938 The abstract
6939 \end_layout
6940
6941 \begin_layout Standard
6942
6943 \change_inserted 564990737 1670794716
6944 The abstract should immediately follow the header block and must contain five tokens:
6945  
6946 \family typewriter
6947
6948 \backslash
6949 abstract{}{}{}{}{}
6950 \family default
6951  
6952 \end_layout
6953
6954 \begin_layout Enumerate
6955
6956 \change_inserted 564990737 1670794716
6957
6958 \family typewriter
6959 context heading
6960 \family default
6961  (optional) {} leave it empty if necessary 
6962 \end_layout
6963
6964 \begin_layout Enumerate
6965
6966 \change_inserted 564990737 1670794716
6967
6968 \family typewriter
6969 aims heading
6970 \family default
6971  (mandatory) {} 
6972 \end_layout
6973
6974 \begin_layout Enumerate
6975
6976 \change_inserted 564990737 1670794716
6977
6978 \family typewriter
6979 methods heading
6980 \family default
6981  (mandatory) {} 
6982 \end_layout
6983
6984 \begin_layout Enumerate
6985
6986 \change_inserted 564990737 1670794716
6987
6988 \family typewriter
6989 results heading
6990 \family default
6991  (mandatory) {} 
6992 \end_layout
6993
6994 \begin_layout Enumerate
6995
6996 \change_inserted 564990737 1670794716
6997
6998 \family typewriter
6999 conclusions heading
7000 \family default
7001  (optional) {} leave it empty if necessary 
7002 \end_layout
7003
7004 \begin_layout Standard
7005
7006 \change_inserted 564990737 1670794716
7007 (NB.
7008  This structure not shown in 
7009 \emph on
7010 aa_sample.lyx.
7011 \emph default
7012 )
7013 \end_layout
7014
7015 \begin_layout Subsubsection
7016
7017 \change_inserted 564990737 1670794716
7018 Supported environments
7019 \end_layout
7020
7021 \begin_layout Standard
7022
7023 \change_inserted 564990737 1670794716
7024 The A&A paper layout supports the following environments for structuring your text:
7025 \end_layout
7026
7027 \begin_layout Itemize
7028
7029 \change_inserted 564990737 1670794716
7030
7031 \family sans
7032 Standard
7033 \end_layout
7034
7035 \begin_layout Itemize
7036
7037 \change_inserted 564990737 1670794716
7038
7039 \family sans
7040 Section
7041 \end_layout
7042
7043 \begin_layout Itemize
7044
7045 \change_inserted 564990737 1670794716
7046
7047 \family sans
7048 Subsection
7049 \end_layout
7050
7051 \begin_layout Itemize
7052
7053 \change_inserted 564990737 1670794716
7054
7055 \family sans
7056 Subsubsection
7057 \end_layout
7058
7059 \begin_layout Itemize
7060
7061 \change_inserted 564990737 1670794716
7062
7063 \family sans
7064 Itemize
7065 \end_layout
7066
7067 \begin_layout Itemize
7068
7069 \change_inserted 564990737 1670794716
7070
7071 \family sans
7072 Enumerate
7073 \end_layout
7074
7075 \begin_layout Itemize
7076
7077 \change_inserted 564990737 1670794716
7078
7079 \family sans
7080 Description
7081 \end_layout
7082
7083 \begin_layout Itemize
7084
7085 \change_inserted 564990737 1670794716
7086
7087 \family sans
7088 Caption
7089 \end_layout
7090
7091 \begin_layout Itemize
7092
7093 \change_inserted 564990737 1670794716
7094
7095 \family sans
7096 Abstract
7097 \end_layout
7098
7099 \begin_layout Itemize
7100
7101 \change_inserted 564990737 1670794716
7102
7103 \family sans
7104 Acknowledgment
7105 \end_layout
7106
7107 \begin_layout Itemize
7108
7109 \change_inserted 564990737 1670794716
7110
7111 \family sans
7112 Bibliography
7113 \end_layout
7114
7115 \begin_layout Itemize
7116
7117 \change_inserted 564990737 1670794716
7118
7119 \family sans
7120 \SpecialChar LaTeX
7121
7122 \end_layout
7123
7124 \begin_layout Subsubsection
7125
7126 \change_inserted 564990737 1670794716
7127 Commands not supported by \SpecialChar LyX
7128
7129 \end_layout
7130
7131 \begin_layout Standard
7132
7133 \change_inserted 564990737 1670794716
7134 Some commands are not yet supported by the 
7135 \family sans
7136 paper (A&A)
7137 \family default
7138  layout for \SpecialChar LyX
7139 .
7140  Some have already been mentioned.
7141  For the sake of completeness,
7142  they are listed all together here:
7143 \end_layout
7144
7145 \begin_layout Itemize
7146
7147 \change_inserted 564990737 1670794716
7148
7149 \family typewriter
7150
7151 \backslash
7152 and
7153 \end_layout
7154
7155 \begin_layout Itemize
7156
7157 \change_inserted 564990737 1670794716
7158
7159 \family typewriter
7160
7161 \backslash
7162 email
7163 \end_layout
7164
7165 \begin_layout Itemize
7166
7167 \change_inserted 564990737 1670794716
7168
7169 \family typewriter
7170
7171 \backslash
7172 inst{}
7173 \end_layout
7174
7175 \begin_layout Itemize
7176
7177 \change_inserted 564990737 1670794716
7178
7179 \family typewriter
7180
7181 \backslash
7182 keywords{}
7183 \end_layout
7184
7185 \begin_layout Itemize
7186
7187 \change_inserted 564990737 1670794716
7188
7189 \family typewriter
7190
7191 \backslash
7192 object{}
7193 \end_layout
7194
7195 \begin_layout Standard
7196
7197 \change_inserted 564990737 1670794716
7198 If you want to use any of these commands,
7199  you have to enter them yourself.
7200  
7201 \family typewriter
7202 Do not forget to use
7203 \family sans
7204  
7205 \bar under
7206 I
7207 \bar default
7208 nsert\SpecialChar menuseparator
7209 \SpecialChar TeX
7210
7211 \begin_inset space ~
7212 \end_inset
7213
7214 Code
7215 \family default
7216 \series bold
7217 !
7218 \end_layout
7219
7220 \begin_layout Subsubsection
7221
7222 \change_inserted 564990737 1670794716
7223 Figure and Table Floats
7224 \end_layout
7225
7226 \begin_layout Standard
7227
7228 \change_inserted 564990737 1670794716
7229 \SpecialChar LyX
7230  provides support for the necessary float environments 
7231 \family sans
7232 figure,
7233  figure*,
7234  table
7235 \family default
7236  and 
7237 \family sans
7238 table*
7239 \family default
7240 ,
7241  therefore we won't tell much about it here.
7242  Refer to the 
7243 \emph on
7244 User's
7245 \begin_inset space ~
7246 \end_inset
7247
7248 Guide
7249 \emph default
7250 .
7251  Just remember that tables should be left-aligned.
7252  For that,
7253  select the table and change the alignment in 
7254 \family sans
7255 \bar under
7256 E
7257 \bar default
7258 dit\SpecialChar menuseparator
7259
7260 \bar under
7261 P
7262 \bar default
7263 aragraph
7264 \begin_inset space ~
7265 \end_inset
7266
7267 Settings.
7268 \end_layout
7269
7270 \begin_layout Standard
7271
7272 \change_inserted 564990737 1670794716
7273 There is only one special thing:
7274  the figures with a caption beside the figure.
7275  To create such a figure,
7276  you have to do the following:
7277 \end_layout
7278
7279 \begin_layout Enumerate
7280
7281 \change_inserted 564990737 1670794716
7282 Create a wide figure float:
7283  
7284 \family sans
7285 \bar under
7286 I
7287 \bar default
7288 nsert\SpecialChar menuseparator
7289 Flo
7290 \bar under
7291 a
7292 \bar default
7293 t\SpecialChar menuseparator
7294 Figure
7295 \family default
7296 ,
7297  then,
7298  from within the float,
7299  use the menu 
7300 \family sans
7301 \bar under
7302 E
7303 \bar default
7304 dit\SpecialChar menuseparator
7305 Flo
7306 \bar under
7307 a
7308 \bar default
7309 t
7310 \begin_inset space ~
7311 \end_inset
7312
7313 Settings
7314 \family default
7315  and check 
7316 \family sans
7317 \bar under
7318 S
7319 \bar default
7320 pan
7321 \begin_inset space ~
7322 \end_inset
7323
7324 columns
7325 \family default
7326  in the 
7327 \family sans
7328 float
7329 \family default
7330  dialog.
7331 \end_layout
7332
7333 \begin_layout Enumerate
7334
7335 \change_inserted 564990737 1670794716
7336 Enter your caption text.
7337 \end_layout
7338
7339 \begin_layout Enumerate
7340
7341 \change_inserted 564990737 1670794716
7342 Press 
7343 \family sans
7344 Return
7345 \family default
7346  to move the cursor above the caption.
7347 \end_layout
7348
7349 \begin_layout Enumerate
7350
7351 \change_inserted 564990737 1670794716
7352 Insert your figure
7353 \end_layout
7354
7355 \begin_layout Enumerate
7356
7357 \change_inserted 564990737 1670794716
7358 Position the cursor after the figure and insert a horizontal fill by using the menu:
7359  
7360 \family sans
7361 \bar under
7362 I
7363 \bar default
7364 nsert\SpecialChar menuseparator
7365 F
7366 \bar under
7367 o
7368 \bar default
7369 rmatting\SpecialChar menuseparator
7370 H
7371 \bar under
7372 o
7373 \bar default
7374 rizontal
7375 \begin_inset space ~
7376 \end_inset
7377
7378 Space
7379 \family default
7380  to open the 
7381 \family sans
7382 space
7383 \family default
7384  dialog and select the 
7385 \family sans
7386 Horizontal fill
7387 \family default
7388  option from the 
7389 \family sans
7390 \bar under
7391 S
7392 \bar default
7393 pacing
7394 \family default
7395  pull-down menu.
7396 \end_layout
7397
7398 \begin_layout Enumerate
7399
7400 \change_inserted 564990737 1670794716
7401 Switch to \SpecialChar LaTeX
7402  mode:
7403  
7404 \family sans
7405 M-c
7406 \begin_inset space ~
7407 \end_inset
7408
7409 t
7410 \family default
7411 .
7412 \end_layout
7413
7414 \begin_layout Enumerate
7415
7416 \change_inserted 564990737 1670794716
7417 Enter 
7418 \family typewriter
7419
7420 \backslash
7421 parbox[b]{55mm}{
7422 \family default
7423  
7424 \emph on
7425 Do not close the brace!
7426 \end_layout
7427
7428 \begin_layout Enumerate
7429
7430 \change_inserted 564990737 1670794716
7431 Position the cursor behind the caption text,
7432  switch to \SpecialChar LaTeX
7433  mode and insert the closing brace:
7434  
7435 \family sans
7436 M-c
7437 \begin_inset space ~
7438 \end_inset
7439
7440 t
7441 \family default
7442  
7443 \family typewriter
7444 }
7445 \family default
7446 .
7447 \end_layout
7448
7449 \begin_layout Standard
7450
7451 \change_inserted 564990737 1671642458
7452 Also,
7453  refer to the figures in the file in 
7454 \family sans
7455 File\SpecialChar menuseparator
7456 Open Example\SpecialChar menuseparator
7457 Articles\SpecialChar menuseparator
7458 Astronomy & Astrophysics
7459 \family default
7460 .
7461 \end_layout
7462
7463 \begin_layout Subsubsection
7464
7465 \change_inserted 564990737 1670794716
7466 Referee layout
7467 \end_layout
7468
7469 \begin_layout Standard
7470
7471 \change_inserted 564990737 1670794716
7472 For submission,
7473  the paper has to be formatted in a special double-spacing layout.
7474  For this purpose,
7475  you have to add the option 
7476 \family typewriter
7477 referee
7478 \family default
7479  to the 
7480 \family sans
7481 Cus
7482 \bar under
7483 t
7484 \bar default
7485 om Class
7486 \begin_inset space ~
7487 \end_inset
7488
7489 options
7490 \family default
7491  in the 
7492 \family sans
7493 \bar under
7494 D
7495 \bar default
7496 ocument\SpecialChar menuseparator
7497
7498 \bar under
7499 S
7500 \bar default
7501 ettings\SpecialChar menuseparator
7502 Document
7503 \begin_inset space ~
7504 \end_inset
7505
7506 Class
7507 \family default
7508  dialog.
7509  
7510 \end_layout
7511
7512 \begin_layout Subsubsection
7513
7514 \change_inserted 564990737 1670794716
7515 The example paper
7516 \end_layout
7517
7518 \begin_layout Standard
7519
7520 \change_inserted 564990737 1671642520
7521 The example in 
7522 \family sans
7523 File\SpecialChar menuseparator
7524 Open Example\SpecialChar menuseparator
7525 Articles\SpecialChar menuseparator
7526 Astronomy & Astrophysics
7527 \family default
7528  was written with \SpecialChar LyX
7529 .
7530  It is the example paper from the original macro package,
7531  
7532 \family typewriter
7533 aa.dem
7534 \family default
7535  in the 
7536 \begin_inset CommandInset href
7537 LatexCommand href
7538 name "aa-package"
7539 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
7540 literal "false"
7541
7542 \end_inset
7543
7544 ,
7545  but translated to \SpecialChar LyX
7546  using the older unstructured abstract type.
7547  Use it for inspiration,
7548  and compare the \SpecialChar LaTeX
7549  code in 
7550 \family typewriter
7551 aa.dem
7552 \family default
7553  with the \SpecialChar LyX
7554  way of writing.
7555 \end_layout
7556
7557 \begin_layout Subsection
7558 AAS\SpecialChar TeX
7559
7560 \end_layout
7561
7562 \begin_layout Standard
7563 by 
7564 \noun on
7565 Mike Ressler
7566 \end_layout
7567
7568 \begin_layout Subsubsection
7569 Introduction
7570 \end_layout
7571
7572 \begin_layout Standard
7573 AAS\SpecialChar TeX
7574  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
7575  the Astrophysical Journal (including the Letters and Supplement),
7576  the Astronomical Journal,
7577  and the Publications of the Astronomical Society of the Pacific.
7578  \SpecialChar LyX
7579  has proven to be an excellent tool for generating these documents,
7580  especially given its equation,
7581  citation,
7582  and figure handling capabilities.
7583  \SpecialChar LyX
7584  requires version 5.0 (or higher) of these macros;
7585  preferably 6.0,
7586  which is the version described here,
7587  or higher.
7588  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
7589 2.09 and are fundamentally incompatible with \SpecialChar LyX
7590 .
7591  The AAS\SpecialChar TeX
7592  package may be downloaded from the AAS\SpecialChar TeX
7593  Web site
7594 \end_layout
7595
7596 \begin_layout Standard
7597 \begin_inset VSpace medskip
7598 \end_inset
7599
7600
7601 \end_layout
7602
7603 \begin_layout Standard
7604 \align center
7605 \begin_inset Flex URL
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609
7610 https://aas.org/aastex/aastex-downloads
7611 \end_layout
7612
7613 \end_inset
7614
7615
7616 \end_layout
7617
7618 \begin_layout Standard
7619 \begin_inset VSpace medskip
7620 \end_inset
7621
7622
7623 \end_layout
7624
7625 \begin_layout Standard
7626 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
7627 .
7628  \SpecialChar LyX
7629  will not reduce the need to figure out all the AAS\SpecialChar TeX
7630  commands,
7631  it will only reduce the drudgery of typing everything in.
7632  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
7633  document conforms completely to the requirements of the journal to which you are submitting your paper.
7634 \end_layout
7635
7636 \begin_layout Subsubsection
7637 Starting a New Paper
7638 \end_layout
7639
7640 \begin_layout Standard
7641 I strongly suggest that you start with the AAS\SpecialChar TeX
7642  template file.
7643  Click on 
7644 \family sans
7645 File\SpecialChar menuseparator
7646 New from
7647 \family default
7648  
7649 \family sans
7650 Template
7651 \change_inserted 564990737 1671617265
7652 \SpecialChar menuseparator
7653 Articles\SpecialChar menuseparator
7654 American Astronomical Society
7655 \change_deleted 564990737 1671617310
7656
7657 \family default
7658 ,
7659  enter the new file name,
7660  then choose the 
7661 \family typewriter
7662 aastex6.lyx
7663 \family default
7664  template
7665 \change_unchanged
7666 .
7667  This will show the most common fields found in a manuscript.
7668  Simply overwrite the existing text (including the brackets,
7669  
7670 \family typewriter
7671 <>
7672 \family default
7673 ) with the correct information.
7674  Many of the AAS\SpecialChar TeX
7675  commands and environments can be implemented directly in \SpecialChar LyX
7676 ,
7677  but some cannot.
7678  For commands such as these,
7679  the \SpecialChar LaTeX
7680  code must be entered directly and marked as such.
7681  Such commands are referred to as \SpecialChar TeX
7682  code,
7683  or Evil Red Text.
7684  I tried to minimize the amount of \SpecialChar TeX
7685  code needed in an AAS\SpecialChar TeX
7686  document.
7687 \end_layout
7688
7689 \begin_layout Subsubsection
7690 Finishing Your Paper
7691 \end_layout
7692
7693 \begin_layout Standard
7694 When the paper is finished to your satisfaction and previews/prints correctly,
7695  there are a few 
7696 \begin_inset Quotes eld
7697 \end_inset
7698
7699 postprocessing
7700 \begin_inset Quotes erd
7701 \end_inset
7702
7703  actions which need to be done before you submit it to the journals.
7704  
7705 \end_layout
7706
7707 \begin_layout Enumerate
7708 Export your paper as a \SpecialChar LaTeX
7709  file (
7710 \family sans
7711 File\SpecialChar menuseparator
7712 Export\SpecialChar menuseparator
7713 \SpecialChar LaTeX
7714
7715 \family default
7716 ).
7717  
7718 \end_layout
7719
7720 \begin_layout Enumerate
7721 Edit the resulting 
7722 \family typewriter
7723 .tex
7724 \family default
7725  file with your favorite text editor
7726 \end_layout
7727
7728 \begin_deeper
7729 \begin_layout Enumerate
7730 remove the comment lines before the 
7731 \family typewriter
7732
7733 \backslash
7734 documentclass
7735 \family default
7736  command
7737 \end_layout
7738
7739 \begin_layout Enumerate
7740 remove the 
7741 \family typewriter
7742
7743 \backslash
7744 usepackage...{fontenc}
7745 \family default
7746  line if it appears (usually just after 
7747 \family typewriter
7748
7749 \backslash
7750 documentclass
7751 \family default
7752 };
7753  also remove the 
7754 \family typewriter
7755
7756 \backslash
7757 secnumdepth
7758 \family default
7759  line if it appears.
7760 \end_layout
7761
7762 \begin_layout Enumerate
7763 remove everything between (and including) the 
7764 \family typewriter
7765
7766 \backslash
7767 makeatletter
7768 \family default
7769  and 
7770 \family typewriter
7771
7772 \backslash
7773 makeatother
7774 \family default
7775  commands,
7776  except for any commands you specifically put into the \SpecialChar LaTeX
7777  preamble (which should appear immediately after the 
7778 \begin_inset Quotes eld
7779 \end_inset
7780
7781 User specified \SpecialChar LaTeX
7782  commands
7783 \begin_inset Quotes erd
7784 \end_inset
7785
7786  comment in the 
7787 \family typewriter
7788 .tex
7789 \family default
7790  file).
7791 \end_layout
7792
7793 \end_deeper
7794 \begin_layout Enumerate
7795 Run the resulting file through \SpecialChar LaTeX
7796  to make sure it still processes correctly.
7797 \end_layout
7798
7799 \begin_layout Enumerate
7800 Reread the journal requirements to make sure your filenames and formats are correct.
7801 \end_layout
7802
7803 \begin_layout Enumerate
7804 Submit it.
7805 \end_layout
7806
7807 \begin_layout Subsubsection
7808 Comments On Specific Commands
7809 \end_layout
7810
7811 \begin_layout Standard
7812 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
7813  commands:
7814  the AAS\SpecialChar TeX
7815  User Guide (
7816 \family typewriter
7817 aasguide.tex
7818 \family default
7819 ) gives a good description of each.
7820  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
7821  So let's begin \SpecialChar ldots
7822
7823 \end_layout
7824
7825 \begin_layout Paragraph
7826 Things that work as expected
7827 \end_layout
7828
7829 \begin_layout Standard
7830 Because they work as you might expect,
7831  I simply list them and the section they are found in:
7832  
7833 \family typewriter
7834
7835 \backslash
7836 documentclass
7837 \family default
7838  (2.1.1),
7839  
7840 \family typewriter
7841
7842 \backslash
7843 begin{document}
7844 \family default
7845  (2.2),
7846  
7847 \family typewriter
7848
7849 \backslash
7850 title
7851 \family default
7852  (2.3),
7853  
7854 \family typewriter
7855
7856 \backslash
7857 author
7858 \family default
7859  (2.3),
7860  
7861 \family typewriter
7862
7863 \backslash
7864 affil
7865 \family default
7866  (2.3),
7867  
7868 \family typewriter
7869
7870 \backslash
7871 abstract
7872 \family default
7873  (2.4),
7874  
7875 \family typewriter
7876
7877 \backslash
7878 keywords
7879 \family default
7880  (2.5),
7881  
7882 \family typewriter
7883
7884 \backslash
7885 section
7886 \family default
7887  (2.7),
7888  
7889 \family typewriter
7890
7891 \backslash
7892 subsection
7893 \family default
7894  (2.7),
7895  
7896 \family typewriter
7897
7898 \backslash
7899 subsubsection
7900 \family default
7901  (2.7),
7902  
7903 \family typewriter
7904
7905 \backslash
7906 paragraph
7907 \family default
7908  (2.7),
7909  
7910 \family typewriter
7911
7912 \backslash
7913 facility
7914 \family default
7915  (2.10),
7916  
7917 \family typewriter
7918
7919 \backslash
7920 begin{displaymath}
7921 \family default
7922  (2.12),
7923  
7924 \family typewriter
7925
7926 \backslash
7927 begin{equation}
7928 \family default
7929  (2.12),
7930  
7931 \family typewriter
7932
7933 \backslash
7934 begin{eqnarray}
7935 \family default
7936  (2.12),
7937  
7938 \family typewriter
7939
7940 \backslash
7941 begin{mathletters}
7942 \family default
7943  (2.12),
7944  
7945 \family typewriter
7946
7947 \backslash
7948 begin{thebibliography}
7949 \family default
7950  (2.13.1),
7951  
7952 \family typewriter
7953
7954 \backslash
7955 bibitem
7956 \family default
7957  (2.13.2),
7958  all the cite commands and their variations (2.13.2),
7959  the generic graphicx figure commands (2.14.1),
7960  
7961 \family typewriter
7962
7963 \backslash
7964 begin{table}
7965 \family default
7966  (2.15.4),
7967  
7968 \family typewriter
7969
7970 \backslash
7971 begin{tabular}
7972 \family default
7973  (2.15.4),
7974  
7975 \family typewriter
7976
7977 \backslash
7978 caption
7979 \family default
7980  (2.15.4),
7981  
7982 \family typewriter
7983
7984 \backslash
7985 label
7986 \family default
7987  (2.15.4,
7988  amongst other places),
7989  
7990 \family typewriter
7991
7992 \backslash
7993 tablerefs
7994 \family default
7995  (2.15.5),
7996  
7997 \family typewriter
7998
7999 \backslash
8000 tablecomments
8001 \family default
8002  (2.15.5),
8003  
8004 \family typewriter
8005
8006 \backslash
8007 url
8008 \family default
8009  (2.17.4),
8010  
8011 \family typewriter
8012
8013 \backslash
8014 end{document}
8015 \family default
8016  (2.18).
8017 \end_layout
8018
8019 \begin_layout Standard
8020 The following style options also work correctly:
8021  
8022 \family typewriter
8023 longabstract
8024 \family default
8025  (2.4),
8026  
8027 \family typewriter
8028 preprint
8029 \family default
8030  (3.2.1),
8031  
8032 \family typewriter
8033 preprint2
8034 \family default
8035  (3.2.2),
8036  
8037 \family typewriter
8038 eqsecnum
8039 \family default
8040  (3.3),
8041  
8042 \family typewriter
8043 flushrt
8044 \family default
8045  (3.4).
8046  Simply put them in the 
8047 \family sans
8048 Options
8049 \family default
8050  box in 
8051 \family sans
8052 Layout\SpecialChar menuseparator
8053 Document
8054 \family default
8055 .
8056 \end_layout
8057
8058 \begin_layout Paragraph
8059 Things that work,
8060  but require more comment
8061 \end_layout
8062
8063 \begin_layout Standard
8064 The following items work,
8065  but require a little more discussion:
8066 \end_layout
8067
8068 \begin_layout Itemize
8069 These items are reserved for use by the journal editors,
8070  but you can put them into the \SpecialChar LaTeX
8071  preamble if you feel compelled to do so:
8072  
8073 \family typewriter
8074
8075 \backslash
8076 received
8077 \family default
8078 ,
8079  
8080 \family typewriter
8081
8082 \backslash
8083 revised
8084 \family default
8085 ,
8086  
8087 \family typewriter
8088
8089 \backslash
8090 accepted
8091 \family default
8092 ,
8093  
8094 \family typewriter
8095
8096 \backslash
8097 ccc
8098 \family default
8099 ,
8100  
8101 \family typewriter
8102
8103 \backslash
8104 cpright
8105 \family default
8106  (all from 2.1.3)
8107 \end_layout
8108
8109 \begin_layout Itemize
8110 These items may be placed in the \SpecialChar LaTeX
8111  preamble,
8112  and are included as blanks in the template file:
8113  
8114 \family typewriter
8115
8116 \backslash
8117 slugcomment
8118 \family default
8119  (2.1.4),
8120  
8121 \family typewriter
8122
8123 \backslash
8124 shorttitle
8125 \family default
8126  (2.1.5),
8127  
8128 \family typewriter
8129
8130 \backslash
8131 shortauthors
8132 \family default
8133  (2.1.5)
8134 \end_layout
8135
8136 \begin_layout Itemize
8137
8138 \family typewriter
8139
8140 \backslash
8141 email
8142 \family default
8143  (2.3) – can only be used 
8144 \begin_inset Quotes eld
8145 \end_inset
8146
8147 standalone
8148 \begin_inset Quotes erd
8149 \end_inset
8150
8151 ,
8152  not in the middle of a paragraph.
8153  Use \SpecialChar TeX
8154  code if you need to embed it.
8155 \end_layout
8156
8157 \begin_layout Itemize
8158
8159 \family typewriter
8160
8161 \backslash
8162 and
8163 \family default
8164  (2.3) – will have extra {} after it.
8165  This should not cause an error.
8166 \end_layout
8167
8168 \begin_layout Itemize
8169
8170 \family typewriter
8171
8172 \backslash
8173 notetoeditor
8174 \family default
8175  (2.6) – can only be used 
8176 \begin_inset Quotes eld
8177 \end_inset
8178
8179 standalone
8180 \begin_inset Quotes erd
8181 \end_inset
8182
8183 ,
8184  not in the middle of a paragraph.
8185  Use \SpecialChar TeX
8186  code if you need to embed it.
8187 \end_layout
8188
8189 \begin_layout Itemize
8190
8191 \family typewriter
8192
8193 \backslash
8194 placetable
8195 \family default
8196  (2.8) – can't insert a cross-reference tag,
8197  you must type the tag name by hand
8198 \end_layout
8199
8200 \begin_layout Itemize
8201
8202 \family typewriter
8203
8204 \backslash
8205 placefigure
8206 \family default
8207  (2.8) – same as for 
8208 \family typewriter
8209
8210 \backslash
8211 placetable
8212 \end_layout
8213
8214 \begin_layout Itemize
8215
8216 \family typewriter
8217
8218 \backslash
8219 acknowledgements
8220 \family default
8221  (2.9) – will have extra {} after it.
8222  This should not cause an error.
8223 \end_layout
8224
8225 \begin_layout Itemize
8226
8227 \family typewriter
8228
8229 \backslash
8230 appendix
8231 \family default
8232  (2.11) – will have extra {} after it.
8233  This should not cause an error.
8234 \end_layout
8235
8236 \begin_layout Itemize
8237
8238 \family typewriter
8239
8240 \backslash
8241 figcaption
8242 \family default
8243  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
8244 \family sans
8245 Insert\SpecialChar menuseparator
8246 Short Title
8247 \family default
8248 .
8249  
8250 \begin_inset Quotes eld
8251 \end_inset
8252
8253 Short Title
8254 \begin_inset Quotes erd
8255 \end_inset
8256
8257  inserts an optional argument of the type needed by 
8258 \family typewriter
8259
8260 \backslash
8261 figcaption
8262 \family default
8263 .
8264  Hopefully it will be renamed someday.
8265 \end_layout
8266
8267 \begin_layout Itemize
8268
8269 \family typewriter
8270
8271 \backslash
8272 objectname
8273 \family default
8274  (2.17.1) – same as 
8275 \family typewriter
8276
8277 \backslash
8278 figcaption
8279 \family default
8280  for the catalog ID optional parameter
8281 \end_layout
8282
8283 \begin_layout Itemize
8284
8285 \family typewriter
8286
8287 \backslash
8288 dataset
8289 \family default
8290  (2.17.1) – same as 
8291 \family typewriter
8292
8293 \backslash
8294 figcaption
8295 \family default
8296  for the catalog ID optional parameter
8297 \end_layout
8298
8299 \begin_layout Paragraph
8300 Things not implemented,
8301  use \SpecialChar TeX
8302  code
8303 \end_layout
8304
8305 \begin_layout Standard
8306
8307 \family typewriter
8308
8309 \backslash
8310 eqnum
8311 \family default
8312  (2.12),
8313  
8314 \family typewriter
8315
8316 \backslash
8317 setcounter{equation}
8318 \family default
8319  (2.12),
8320  Journal name abbreviations (2.13.4),
8321  
8322 \family typewriter
8323
8324 \backslash
8325 figurenum
8326 \family default
8327  (2.14.1),
8328  
8329 \family typewriter
8330
8331 \backslash
8332 epsscale
8333 \family default
8334  (2.14.1),
8335  
8336 \family typewriter
8337
8338 \backslash
8339 plotone
8340 \family default
8341  (2.14.1),
8342  
8343 \family typewriter
8344
8345 \backslash
8346 plottwo
8347 \family default
8348  (2.14.1),
8349  
8350 \family typewriter
8351
8352 \backslash
8353 tablenum
8354 \family default
8355  (2.15.4),
8356  
8357 \family typewriter
8358
8359 \backslash
8360 tableline
8361 \family default
8362  (2.15.4,
8363  insert it as the first element in the lefthand cell after where you want it.
8364  Don't use any of \SpecialChar LyX
8365 's rules in the table),
8366  
8367 \family typewriter
8368
8369 \backslash
8370 tablenotemark
8371 \family default
8372  (2.15.5),
8373  
8374 \family typewriter
8375
8376 \backslash
8377 tablenotetext
8378 \family default
8379  (2.15.5),
8380  much of Misc (2.17,
8381  except 
8382 \family typewriter
8383
8384 \backslash
8385 objectname
8386 \family default
8387 ,
8388  
8389 \family typewriter
8390
8391 \backslash
8392 dataset
8393 \family default
8394 ,
8395  
8396 \family typewriter
8397
8398 \backslash
8399 url
8400 \family default
8401 ,
8402  and 
8403 \family typewriter
8404
8405 \backslash
8406 email
8407 \family default
8408 ;
8409  see above),
8410  
8411 \family typewriter
8412
8413 \backslash
8414 singlespace
8415 \family default
8416  (3.1),
8417  
8418 \family typewriter
8419
8420 \backslash
8421 doublespace
8422 \family default
8423  (3.1),
8424  
8425 \family typewriter
8426
8427 \backslash
8428 onecolumn
8429 \family default
8430  (3.2),
8431  
8432 \family typewriter
8433
8434 \backslash
8435 twocolumn
8436 \family default
8437  (3.2)
8438 \end_layout
8439
8440 \begin_layout Paragraph
8441 Things that cannot be implemented
8442 \end_layout
8443
8444 \begin_layout Standard
8445 \SpecialChar ldots
8446  at least in any meaningful sort of way,
8447  so I suggest ignoring them.
8448  They are the references environment (2.13.3),
8449  and the deluxetable environment (2.15).
8450  If you really,
8451  really need to use deluxetable,
8452  I suggest editing it in a separate file with a text editor,
8453  then using 
8454 \family sans
8455 Insert\SpecialChar menuseparator
8456 Child
8457 \begin_inset space ~
8458 \end_inset
8459
8460 Document
8461 \family default
8462  to include it in your \SpecialChar LyX
8463  document.
8464  See 
8465 \change_deleted 564990737 1671642564
8466 the 
8467 \family typewriter
8468 aas_sample.lyx
8469 \family default
8470  file to see
8471 \change_inserted 564990737 1671642618
8472
8473 \family sans
8474 File\SpecialChar menuseparator
8475 Open Example\SpecialChar menuseparator
8476 Articles\SpecialChar menuseparator
8477 American Astronomical Society
8478 \change_unchanged
8479
8480 \family default
8481  
8482 \change_inserted 564990737 1671642621
8483 for 
8484 \change_unchanged
8485 an example of this.
8486 \end_layout
8487
8488 \begin_layout Subsubsection
8489 FAQs,
8490  Tips,
8491  Tricks,
8492  and Other Ruminations
8493 \end_layout
8494
8495 \begin_layout Paragraph
8496 Getting \SpecialChar LyX
8497  and AAS\SpecialChar TeX
8498  to cooperate
8499 \end_layout
8500
8501 \begin_layout Standard
8502 It can be a bit tricky to get \SpecialChar LyX
8503  to recognize a new layout and document class.
8504  When all else fails,
8505  do this:
8506 \end_layout
8507
8508 \begin_layout Enumerate
8509 Make certain that \SpecialChar LaTeX
8510  can find AAS\SpecialChar TeX
8511 .
8512  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
8513  distribution into a directory completely unrelated to \SpecialChar LaTeX
8514  or AAS\SpecialChar TeX
8515  and run \SpecialChar LaTeX
8516  on 
8517 \family typewriter
8518 sample.tex
8519 \family default
8520 .
8521 \end_layout
8522
8523 \begin_layout Enumerate
8524 Make certain that 
8525 \family typewriter
8526 aastex.layout
8527 \family default
8528  appears in \SpecialChar LyX
8529 's 
8530 \family typewriter
8531 layouts
8532 \family default
8533  folder
8534 \end_layout
8535
8536 \begin_layout Enumerate
8537 Rerun 
8538 \family sans
8539 Tools\SpecialChar menuseparator
8540 Reconfigure
8541 \family default
8542  in \SpecialChar LyX
8543 ,
8544  then restart \SpecialChar LyX
8545 .
8546 \end_layout
8547
8548 \begin_layout Enumerate
8549 Open a regular new file,
8550  not from a template.
8551  Does AAS\SpecialChar TeX
8552  appear in the class list in 
8553 \family sans
8554 Document\SpecialChar menuseparator
8555 Settings
8556 \family default
8557 ?
8558 \end_layout
8559
8560 \begin_layout Standard
8561 If you get a warning from an existing AAS\SpecialChar TeX
8562  document about not being able to find the AAS\SpecialChar TeX
8563  layout or a message about 
8564 \begin_inset Quotes eld
8565 \end_inset
8566
8567 You should not mix title layouts with normal ones
8568 \begin_inset Quotes erd
8569 \end_inset
8570
8571 ,
8572  things haven't been installed correctly.
8573 \end_layout
8574
8575 \begin_layout Paragraph
8576 \SpecialChar LaTeX
8577  error processing a table 
8578 \end_layout
8579
8580 \begin_layout Standard
8581 \SpecialChar LyX
8582 ,
8583  by default,
8584  attempts to center the table caption/title.
8585  This seems to produce a bad interaction in AAS\SpecialChar TeX
8586  so you should click somewhere in the caption/title,
8587  then select 
8588 \family sans
8589 Edit\SpecialChar menuseparator
8590 Paragraph
8591 \begin_inset space ~
8592 \end_inset
8593
8594 Settings
8595 \family default
8596 ,
8597  then set the 
8598 \family sans
8599 Alignment
8600 \family default
8601  to 
8602 \family sans
8603 Block
8604 \family default
8605 .
8606  This took care of it for me.
8607 \end_layout
8608
8609 \begin_layout Paragraph
8610 References
8611 \end_layout
8612
8613 \begin_layout Standard
8614 A couple of things:
8615  1) I have noticed some funny spacing in the reference entries in the text.
8616  When you enter the bibliography item data,
8617  make sure their is 
8618 \emph on
8619 no
8620 \emph default
8621  space between the last author and the parenthesis setting off the year;
8622  
8623 \emph on
8624 e.
8625 \begin_inset space \thinspace{}
8626 \end_inset
8627
8628 g.
8629 \begin_inset space \space{}
8630 \end_inset
8631
8632
8633 \emph default
8634 type 
8635 \family typewriter
8636 Ressler(1992)
8637 \family default
8638 ,
8639  not 
8640 \family typewriter
8641 Ressler (1992)
8642 \family default
8643 .
8644  2) Entering the references at all is not obvious.
8645  The easiest thing is to start typing your first reference at the end of the document,
8646  then mark it as type 
8647 \family sans
8648 References
8649 \family default
8650 .
8651  That will put a small gray box in front of what you just typed.
8652  Click on the box to fill in the rest of the information.
8653  For new references,
8654  go to the end of an existing reference and press return.
8655  That will create a new line with its own box,
8656  etc.
8657 \end_layout
8658
8659 \begin_layout Paragraph
8660 Including EPS files
8661 \end_layout
8662
8663 \begin_layout Standard
8664 Even though AAS\SpecialChar TeX
8665  provides its own figure commands (
8666 \family typewriter
8667
8668 \backslash
8669 plotone
8670 \family default
8671 ,
8672  for example),
8673  I much prefer \SpecialChar LaTeX
8674 's standard figure commands (with the default graphicx).
8675  You can insert the 
8676 \family typewriter
8677
8678 \backslash
8679 plotone
8680 \family default
8681 ,
8682  etc.
8683 \begin_inset space ~
8684 \end_inset
8685
8686 commands as \SpecialChar TeX
8687  code into a Figure Float box if you desire,
8688  but I never have much luck getting the layout right.
8689  With the standard graphics,
8690  \SpecialChar LyX
8691  will insert a 
8692 \family typewriter
8693
8694 \backslash
8695 usepackage{graphicx}
8696 \family default
8697  command into the \SpecialChar LaTeX
8698  preamble and handle the figures in the standard \SpecialChar LaTeX2e
8699  way,
8700  interspersing the figures in the text.
8701  I believe ApJ accepts figures exactly this way now;
8702  AJ might still use the 
8703 \begin_inset Quotes eld
8704 \end_inset
8705
8706 stack everything at the end
8707 \begin_inset Quotes erd
8708 \end_inset
8709
8710  technique.
8711 \end_layout
8712
8713 \begin_layout Paragraph
8714 Things I could have done,
8715  but didn't
8716 \end_layout
8717
8718 \begin_layout Standard
8719 There are a few 
8720 \begin_inset Quotes eld
8721 \end_inset
8722
8723 pretty
8724 \begin_inset Quotes erd
8725 \end_inset
8726
8727  things I could have implemented,
8728  but chose not to.
8729  For instance,
8730  I saw no point in double-spacing the text in the \SpecialChar LyX
8731  window,
8732  even though it is double-spaced in the paper manuscript.
8733  Also,
8734  I chose not to make separate layouts for the preprint and preprint2 styles.
8735  Since I assume you will spend most of your time in the plain manuscript mode anyway,
8736  I decided not to chew up more disk space with this.
8737  
8738 \end_layout
8739
8740 \begin_layout Subsubsection
8741 Final Caveat
8742 \end_layout
8743
8744 \begin_layout Standard
8745 Your mileage may vary.
8746  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
8747 ;
8748  the last 2% was the \SpecialChar LaTeX
8749  post-processing and a few cleanups.
8750  I have had no trouble with the submission process,
8751  and I'm sure the journals were never aware that there might be a difference.
8752  So,
8753  go forth and publish!
8754 \end_layout
8755
8756 \begin_layout Subsection
8757
8758 \change_inserted 564990737 1671442131
8759 Chess
8760 \end_layout
8761
8762 \begin_layout Standard
8763
8764 \change_inserted 564990737 1671642768
8765 The document class 
8766 \family sans
8767 article
8768 \begin_inset space \thinspace{}
8769 \end_inset
8770
8771 (Chess)
8772 \family default
8773  uses the 
8774 \family typewriter
8775 article.cls
8776 \family default
8777  document class together with the style 
8778 \family sans
8779 lyxskak.sty
8780 \family default
8781  to facilitate the description of chess games.
8782  See 
8783 \family sans
8784 File\SpecialChar menuseparator
8785 Open Example\SpecialChar menuseparator
8786 Articles\SpecialChar menuseparator
8787 Chess
8788 \family default
8789  where you will find 
8790 \family sans
8791 Game 1
8792 \family default
8793  and 
8794 \family sans
8795 Game 2
8796 \family default
8797 .
8798 \end_layout
8799
8800 \begin_layout Subsection
8801
8802 \change_inserted 564990737 1671042028
8803 Elsevier
8804 \end_layout
8805
8806 \begin_layout Standard
8807
8808 \change_inserted 564990737 1671617396
8809 The document class 
8810 \family sans
8811 article
8812 \begin_inset space \thinspace{}
8813 \end_inset
8814
8815 (Elsevier)
8816 \family default
8817  provides the 
8818 \family typewriter
8819 elsarticle.cls
8820 \family default
8821  document class.
8822  This provides the following additional environments:
8823  
8824 \family sans
8825 Title
8826 \begin_inset space ~
8827 \end_inset
8828
8829 footnote
8830 \family default
8831 ,
8832  
8833 \family sans
8834 Author
8835 \begin_inset space ~
8836 \end_inset
8837
8838 footnote
8839 \family default
8840 ,
8841  
8842 \family sans
8843 Corresponding
8844 \begin_inset space ~
8845 \end_inset
8846
8847 author
8848 \family default
8849 ,
8850  
8851 \family sans
8852 Address
8853 \family default
8854 ,
8855  
8856 \family sans
8857 Email
8858 \family default
8859  and 
8860 \family sans
8861 Keywords
8862 \family default
8863 .
8864  A template is available in the menu 
8865 \family sans
8866 \bar under
8867 F
8868 \bar default
8869 ile\SpecialChar menuseparator
8870 New
8871 \begin_inset space ~
8872 \end_inset
8873
8874 fro
8875 \bar under
8876 m
8877 \bar default
8878
8879 \begin_inset space ~
8880 \end_inset
8881
8882 Template\SpecialChar menuseparator
8883 Articles\SpecialChar menuseparator
8884 Elsevier
8885 \family default
8886 .
8887  It has been customized with further environments and contains all the information you may need.
8888  However,
8889  the documentation is also available from 
8890 \begin_inset CommandInset href
8891 LatexCommand href
8892 name "CTAN"
8893 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
8894 literal "false"
8895
8896 \end_inset
8897
8898 .
8899 \end_layout
8900
8901 \begin_layout Subsection
8902
8903 \change_inserted 564990737 1671042046
8904 Paper
8905 \end_layout
8906
8907 \begin_layout Standard
8908
8909 \change_inserted 564990737 1671042046
8910 The document class 
8911 \family sans
8912 article
8913 \begin_inset space \thinspace{}
8914 \end_inset
8915
8916 (paper)
8917 \family default
8918  provides an alternative to the 
8919 \family typewriter
8920 article.cls
8921 \family default
8922  document class.
8923  It provides similar functionality,
8924  but you might prefer this layout with sans serif sections,
8925  headings,
8926  and more.
8927 \end_layout
8928
8929 \begin_layout Subsection
8930 Rev\SpecialChar TeX
8931 4
8932 \end_layout
8933
8934 \begin_layout Standard
8935 by 
8936 \noun on
8937 Amir Karger
8938 \end_layout
8939
8940 \begin_layout Standard
8941 \begin_inset VSpace bigskip
8942 \end_inset
8943
8944
8945 \end_layout
8946
8947 \begin_layout Standard
8948 \noindent
8949 The 
8950 \family sans
8951 Revtex
8952 \begin_inset space ~
8953 \end_inset
8954
8955 4
8956 \family default
8957  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
8958  4.0 (the 
8959 \begin_inset Formula $\beta$
8960 \end_inset
8961
8962  release of May,
8963  1999) class.
8964 \end_layout
8965
8966 \begin_layout Standard
8967 \SpecialChar LyX
8968  has a 
8969 \family sans
8970 Revtex
8971 \family default
8972  textclass,
8973  which works with Rev\SpecialChar TeX
8974  3.1.
8975  However,
8976  v3.1 is basically obsolete,
8977  as it works with \SpecialChar LaTeX
8978  2.09.
8979  That means that it doesn't interact very well with \SpecialChar LyX
8980 ,
8981  which requires \SpecialChar LaTeX2e
8982 ,
8983  although it has been kludged to work.
8984  Since Rev\SpecialChar TeX
8985  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
8986 ,
8987  \SpecialChar LyX
8988  with the 
8989 \family sans
8990 Rev\SpecialChar TeX
8991
8992 \begin_inset space ~
8993 \end_inset
8994
8995 4
8996 \family default
8997  textclass should also be pretty easy to use.
8998 \end_layout
8999
9000 \begin_layout Standard
9001 These documents are supposed to be used in 
9002 \emph on
9003 addition
9004 \emph default
9005  to the Rev\SpecialChar TeX
9006  4.0 documents,
9007  so we don't describe any of the special Rev\SpecialChar TeX
9008  macros,
9009  and assume you'll know what to put in the preamble if necessary.
9010 \end_layout
9011
9012 \begin_layout Subsubsection
9013 Installation
9014 \end_layout
9015
9016 \begin_layout Standard
9017 All you need to do is install Rev\SpecialChar TeX
9018  4,
9019  as described in the package's README file.
9020  The package can be found at The Rev\SpecialChar TeX
9021  4 Web Site 
9022 \begin_inset Flex URL
9023 status collapsed
9024
9025 \begin_layout Plain Layout
9026
9027 http://publish.aps.org/revtex4/
9028 \end_layout
9029
9030 \end_inset
9031
9032 .
9033  Install it somewhere that \SpecialChar LaTeX
9034  can see it.
9035  Test it by trying to \SpecialChar LaTeX
9036  a short Rev\SpecialChar TeX
9037  4 document in some random directory (i.
9038 \begin_inset space \thinspace{}
9039 \end_inset
9040
9041 e.
9042 \begin_inset space \space{}
9043 \end_inset
9044
9045 not the directory where you installed the class file.) Then,
9046  if you reconfigure \SpecialChar LyX
9047 ,
9048  it will find the class file and let you use the Rev\SpecialChar TeX
9049 4 textclass.
9050 \end_layout
9051
9052 \begin_layout Standard
9053 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
9054  4 document using 
9055 \family typewriter
9056 tex2lyx
9057 \family default
9058 ,
9059  or to use the 
9060 \family sans
9061 Revtex
9062 \begin_inset space ~
9063 \end_inset
9064
9065 4
9066 \family default
9067  template,
9068  found in the templates directory.
9069 \end_layout
9070
9071 \begin_layout Subsubsection
9072 Preamble Matter
9073 \end_layout
9074
9075 \begin_layout Standard
9076 Optional arguments to 
9077 \family typewriter
9078
9079 \backslash
9080 documentclass
9081 \family default
9082 ,
9083  like 
9084 \begin_inset Quotes eld
9085 \end_inset
9086
9087 preprint
9088 \begin_inset Quotes erd
9089 \end_inset
9090
9091  and 
9092 \begin_inset Quotes eld
9093 \end_inset
9094
9095 aps
9096 \begin_inset Quotes erd
9097 \end_inset
9098
9099 ,
9100  go in the 
9101 \family sans
9102 Extra
9103 \begin_inset space ~
9104 \end_inset
9105
9106 Options
9107 \family default
9108  field in the 
9109 \family sans
9110 Document
9111 \begin_inset space ~
9112 \end_inset
9113
9114 Layout
9115 \family default
9116  dialog,
9117  as usual.
9118  Remember that in Rev\SpecialChar TeX
9119 ,
9120  at least one optional argument is required!
9121  
9122 \end_layout
9123
9124 \begin_layout Standard
9125 Other preamble matter,
9126  like 
9127 \family typewriter
9128
9129 \backslash
9130 draft
9131 \family default
9132  etc.
9133 \begin_inset space ~
9134 \end_inset
9135
9136 goes in the 
9137 \family sans
9138 \SpecialChar LaTeX
9139
9140 \begin_inset space ~
9141 \end_inset
9142
9143 Preamble
9144 \family default
9145  dialog,
9146  also as usual.
9147 \end_layout
9148
9149 \begin_layout Subsubsection
9150 Layouts
9151 \end_layout
9152
9153 \begin_layout Standard
9154 The layouts basically correspond to the commands in Rev\SpecialChar TeX
9155 4.0.
9156  For example,
9157  the Email layout corresponds to 
9158 \family typewriter
9159
9160 \backslash
9161 email{}
9162 \family default
9163 .
9164  Note that (at least as of Rev\SpecialChar TeX
9165  4.0 Beta),
9166  the 
9167 \family sans
9168 Address
9169 \family default
9170  and 
9171 \family sans
9172 Affiliation
9173 \family default
9174  layouts are exactly equivalent,
9175  so you shouldn't need to use both.
9176 \begin_inset Foot
9177 status collapsed
9178
9179 \begin_layout Plain Layout
9180 In case you're curious,
9181  both were included so that 
9182 \family typewriter
9183 tex2lyx
9184 \family default
9185  would be able to translate both 
9186 \family typewriter
9187
9188 \backslash
9189 address
9190 \family default
9191  and 
9192 \family typewriter
9193
9194 \backslash
9195 affiliation
9196 \family default
9197 .
9198 \end_layout
9199
9200 \end_inset
9201
9202
9203 \end_layout
9204
9205 \begin_layout Subsubsection
9206 Important Notes
9207 \end_layout
9208
9209 \begin_layout Standard
9210 There are a couple of important unique aspects of Rev\SpecialChar TeX
9211  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
9212 .
9213 \end_layout
9214
9215 \begin_layout Standard
9216 In Rev\SpecialChar TeX
9217 ,
9218  the 
9219 \family typewriter
9220
9221 \backslash
9222 thanks
9223 \family default
9224  command goes 
9225 \emph on
9226 outside
9227 \emph default
9228  the 
9229 \family typewriter
9230
9231 \backslash
9232 author
9233 \family default
9234  command.
9235  The \SpecialChar LyX
9236  equivalent is that there is a separate Thanks layout.
9237  Do 
9238 \emph on
9239 not
9240 \emph default
9241  write footnotes in the 
9242 \family sans
9243 Author
9244 \family default
9245  layout,
9246  or weird things may happen.
9247  See the Rev\SpecialChar TeX
9248  4 documentation for more details.
9249 \end_layout
9250
9251 \begin_layout Standard
9252 Also,
9253  the 
9254 \family sans
9255 Author
9256 \begin_inset space ~
9257 \end_inset
9258
9259 Email
9260 \family default
9261 ,
9262  
9263 \family sans
9264 Author
9265 \begin_inset space ~
9266 \end_inset
9267
9268 URL
9269 \family default
9270 ,
9271  and 
9272 \family sans
9273 Thanks
9274 \family default
9275  layouts must be placed 
9276 \emph on
9277 in between
9278 \emph default
9279  the 
9280 \family sans
9281 Author
9282 \family default
9283  layout and the corresponding 
9284 \family sans
9285 Address
9286 \family default
9287  (or equivalent 
9288 \family sans
9289 Affiliation
9290 \family default
9291 ) layout.
9292  If you put the 
9293 \family sans
9294 Thanks
9295 \family default
9296  after the 
9297 \family sans
9298 Address
9299 \family default
9300 ,
9301  the \SpecialChar LaTeX
9302  won't compile.
9303 \end_layout
9304
9305 \begin_layout Subsection
9306
9307 \change_inserted 564990737 1671042072
9308 Springer Journals
9309 \end_layout
9310
9311 \begin_layout Standard
9312
9313 \change_inserted 564990737 1671042072
9314 All the 
9315 \family sans
9316 svj*
9317 \family default
9318  classes were replaced in 2013 with a completely new 
9319 \family sans
9320 sr-vorl.cls
9321 \family default
9322 .
9323  This package provides a \SpecialChar LaTeX
9324  class and templates for books to be published at Springer Gabler Research,
9325  Springer Vieweg Research,
9326  Springer Spektrum Research,
9327  Springer VS Research,
9328  or Springer VS Forschung.
9329  The documentation is available in German from 
9330 \begin_inset CommandInset href
9331 LatexCommand href
9332 name "CTAN"
9333 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
9334 literal "false"
9335
9336 \end_inset
9337
9338 .
9339 \end_layout
9340
9341 \begin_layout Section
9342
9343 \change_inserted 564990737 1670439560
9344 Books
9345 \end_layout
9346
9347 \begin_layout Standard
9348
9349 \change_inserted 564990737 1670439581
9350 See also the document classes in the Collections (section
9351 \begin_inset space ~
9352 \end_inset
9353
9354
9355 \begin_inset CommandInset ref
9356 LatexCommand ref
9357 reference "sec:Collections"
9358 nolink "false"
9359
9360 \end_inset
9361
9362 ).
9363 \end_layout
9364
9365 \begin_layout Subsection
9366 Memoir
9367 \end_layout
9368
9369 \begin_layout Standard
9370 By 
9371 \noun on
9372 Jürgen Spitzmüller
9373 \end_layout
9374
9375 \begin_layout Subsubsection
9376 Overview
9377 \end_layout
9378
9379 \begin_layout Standard
9380 Memoir is a very powerful and constantly evolving class.
9381  It has been designed with regard to fictional and non-fictional literature.
9382  Its aim is to let the user have maximum control over the typesetting of his document.
9383  Memoir is based on the standard book class,
9384  but it can also emulate the article class (see below).
9385 \end_layout
9386
9387 \begin_layout Standard
9388 Peter Wilson,
9389  the developer of Memoir,
9390  is known as the author of lots of useful packages in the \SpecialChar LaTeX
9391  world.
9392  Most of them have been merged with Memoir.
9393  Therefore,
9394  it is much easier to layout the table of contents,
9395  appendices,
9396  chapter designs and such.
9397  \SpecialChar LyX
9398 ,
9399  though,
9400  does not support all of these goodies natively.
9401  Some of them might be added to forthcoming releases
9402 \begin_inset Foot
9403 status collapsed
9404
9405 \begin_layout Plain Layout
9406 You are invited to send suggestions to 
9407 \begin_inset Flex URL
9408 status collapsed
9409
9410 \begin_layout Plain Layout
9411
9412 lyx-devel@lists.lyx.org
9413 \end_layout
9414
9415 \end_inset
9416
9417 .
9418 \end_layout
9419
9420 \end_inset
9421
9422 ,
9423  lots will probably never be supported,
9424  due to the limitations of \SpecialChar LyX
9425 's framework.
9426  Of course you can still use all features with the help of some native \SpecialChar LaTeX
9427  commands (\SpecialChar TeX
9428  code
9429 \begin_inset Foot
9430 status collapsed
9431
9432 \begin_layout Plain Layout
9433 Cf.
9434 \begin_inset ERT
9435 status collapsed
9436
9437 \begin_layout Plain Layout
9438
9439
9440 \backslash
9441  
9442 \end_layout
9443
9444 \end_inset
9445
9446 section
9447 \begin_inset space ~
9448 \end_inset
9449
9450
9451 \begin_inset CommandInset ref
9452 LatexCommand ref
9453 reference "sec:Inserting-TeX-Code"
9454 nolink "false"
9455
9456 \end_inset
9457
9458  for details.
9459 \end_layout
9460
9461 \end_inset
9462
9463 ).
9464  In this section,
9465  we can only list those features that are natively supported by \SpecialChar LyX
9466 .
9467  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
9468 \begin_inset Foot
9469 status collapsed
9470
9471 \begin_layout Plain Layout
9472 Cf.
9473 \begin_inset ERT
9474 status collapsed
9475
9476 \begin_layout Plain Layout
9477
9478
9479 \backslash
9480  
9481 \end_layout
9482
9483 \end_inset
9484
9485
9486 \begin_inset Flex URL
9487 status collapsed
9488
9489 \begin_layout Plain Layout
9490
9491 CTAN:/macros/latex/memoir/memman.pdf
9492 \end_layout
9493
9494 \end_inset
9495
9496 .
9497 \end_layout
9498
9499 \end_inset
9500
9501 ,
9502  which is not only a user guide for the class,
9503  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
9504 \end_layout
9505
9506 \begin_layout Subsubsection
9507 Basic features and restrictions
9508 \end_layout
9509
9510 \begin_layout Standard
9511 Memoir supports basically all features of the standard book classes.
9512  There are,
9513  however,
9514  some differences,
9515  as follows:
9516 \end_layout
9517
9518 \begin_layout Description
9519 Font
9520 \begin_inset space ~
9521 \end_inset
9522
9523 sizes:
9524  Memoir has a broader range of font sizes:
9525  9,
9526  10,
9527  11,
9528  12,
9529  14,
9530  17
9531 \end_layout
9532
9533 \begin_layout Description
9534 Page
9535 \begin_inset space ~
9536 \end_inset
9537
9538 style:
9539  The fancy page style is not supported,
9540  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
9541  which confuses \SpecialChar LaTeX
9542 ).
9543  Instead,
9544  Memoir comes with a number of its own page styles (see 
9545 \family sans
9546 Document\SpecialChar menuseparator
9547 Settings\SpecialChar menuseparator
9548 Page
9549 \begin_inset space ~
9550 \end_inset
9551
9552 Style
9553 \family default
9554 ).
9555  If you want to use these for the chapter pages,
9556  you have to use the command 
9557 \family typewriter
9558
9559 \backslash
9560 chapterstyle
9561 \family default
9562  in the main text or in preamble (e.
9563 \begin_inset space \thinspace{}
9564 \end_inset
9565
9566 g.
9567 \begin_inset space \space{}
9568 \end_inset
9569
9570
9571 \family typewriter
9572
9573 \backslash
9574 chapterstyle{companion}
9575 \family default
9576 ).
9577 \end_layout
9578
9579 \begin_layout Description
9580 Sectioning:
9581  Sectionings (chapter,
9582  section,
9583  subsection etc.) come with an optional argument in the standard classes.
9584  With this,
9585  you can specify an alternative version of the title for the table of contents and the headers (for instance,
9586  if the title is too long).
9587  In \SpecialChar LyX
9588 ,
9589  you can do this via 
9590 \family sans
9591 Insert\SpecialChar menuseparator
9592 Short
9593 \begin_inset space ~
9594 \end_inset
9595
9596 Title
9597 \family default
9598  at the beginning of a chapter/section.
9599  Memoir features a second optional argument and thus separates the table of contents from the header.
9600  You can define three variants of a title with this:
9601  one for the main text,
9602  one for the table of contents,
9603  and one for the headers.
9604  \SpecialChar LyX
9605  makes these available in form of specific 
9606 \family sans
9607 Short Title
9608 \family default
9609  variants in the 
9610 \family sans
9611 Insert
9612 \family default
9613  menu.
9614 \end_layout
9615
9616 \begin_layout Description
9617 TOC/LOT/LOF:
9618  In the standard classes (and in many other classes),
9619  the table of contents,
9620  the list of figures and the list of table start a new page automatically.
9621  Memoir does not follow this route.
9622  You have to insert a page break yourself,
9623  if you want to have one.
9624 \end_layout
9625
9626 \begin_layout Description
9627 Titlepage:
9628  For some unknown reason,
9629  Memoir uses pagination on the title page (in the standard classes,
9630  title pages are 
9631 \begin_inset Quotes eld
9632 \end_inset
9633
9634 empty
9635 \begin_inset Quotes erd
9636 \end_inset
9637
9638 ).
9639  If you want an empty title page,
9640  type 
9641 \family typewriter
9642
9643 \backslash
9644 aliaspagestyle{title}{empty}
9645 \family default
9646  in the preamble.
9647 \end_layout
9648
9649 \begin_layout Description
9650 Article:
9651  With the class option 
9652 \emph on
9653 article
9654 \emph default
9655  (to be inserted in 
9656 \family sans
9657 Document\SpecialChar menuseparator
9658 Settings\SpecialChar menuseparator
9659 Class Settings\SpecialChar menuseparator
9660 Custom
9661 \begin_inset space ~
9662 \end_inset
9663
9664 Options
9665 \family default
9666 ),
9667  you can emulate article style.
9668  That is,
9669  counters (footnotes,
9670  figures,
9671  tables etc.) will not be reset on new chapters,
9672  chapters don't start a new page (but are—
9673 in contrary to 
9674 \begin_inset Quotes eld
9675 \end_inset
9676
9677 real
9678 \begin_inset Quotes erd
9679 \end_inset
9680
9681  article classes—
9682 still allowed),
9683  parts,
9684  though,
9685  use their own page,
9686  as in book.
9687 \end_layout
9688
9689 \begin_layout Description
9690 Oldfontcommands:
9691  By default,
9692  Memoir does not allow the use of the deprecated font commands,
9693  which have been used in the old \SpecialChar LaTeX
9694  version 2.09 (e.
9695 \begin_inset space \thinspace{}
9696 \end_inset
9697
9698 g.
9699 \begin_inset space \space{}
9700 \end_inset
9701
9702
9703 \family typewriter
9704
9705 \backslash
9706 rm
9707 \family default
9708 ,
9709  
9710 \family typewriter
9711
9712 \backslash
9713 it
9714 \family default
9715 ).
9716  It produces an error and stops \SpecialChar LaTeX
9717  whenever such a command appears.
9718  The class option 
9719 \emph on
9720 oldfontcommands
9721 \emph default
9722  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
9723 ).
9724  Since a lot of packages and particularly Bib\SpecialChar TeX
9725  style files are still using those commands,
9726  we have decided to use this option by default.
9727 \end_layout
9728
9729 \begin_layout Subsubsection
9730 Extra features
9731 \end_layout
9732
9733 \begin_layout Standard
9734 We will only describe the features supported by \SpecialChar LyX
9735  (which is not much currently).
9736  Please consult the Memoir manual
9737 \begin_inset Foot
9738 status collapsed
9739
9740 \begin_layout Plain Layout
9741 Cf.
9742 \begin_inset ERT
9743 status collapsed
9744
9745 \begin_layout Plain Layout
9746
9747
9748 \backslash
9749  
9750 \end_layout
9751
9752 \end_inset
9753
9754
9755 \begin_inset Flex URL
9756 status collapsed
9757
9758 \begin_layout Plain Layout
9759
9760 CTAN:/macros/latex/memoir/memman.pdf
9761 \end_layout
9762
9763 \end_inset
9764
9765 .
9766 \end_layout
9767
9768 \end_inset
9769
9770  for details.
9771 \end_layout
9772
9773 \begin_layout Description
9774 Abstract:
9775  You may wonder why an abstract is an extra feature.
9776  Well,
9777  it is in book class.
9778  Usually books don't have abstracts.
9779  Memoir,
9780  however,
9781  has.
9782  You can use it wherever and how often you like.
9783 \end_layout
9784
9785 \begin_layout Description
9786 Chapterprecis:
9787  You may know this older typesetting style:
9788  The contents of a chapter are summarized below the title and also in the table of contents (e.
9789 \begin_inset space \thinspace{}
9790 \end_inset
9791
9792 g.
9793 \begin_inset space \space{}
9794 \end_inset
9795
9796
9797 \emph on
9798 Our hero arrives in Troia;
9799  he loses some friends;
9800  he finds others
9801 \emph default
9802 ).
9803  Chapterprecis does exactly this.
9804  It is therefore only sensible below a chapter.
9805 \end_layout
9806
9807 \begin_layout Description
9808 Epigraph:
9809  An epigraph is a smart slogan or motto at the beginning of a chapter.
9810  The epigraph environment provides an elegant way of typesetting such a motto.
9811  The motto itself (text) and its (optional) author (source) are divided by a short line.
9812  The author (source) can be inserted via 
9813 \family sans
9814 Insert\SpecialChar menuseparator
9815 Epigraph Source
9816 \family default
9817 \emph on
9818 .
9819 \end_layout
9820
9821 \begin_layout Description
9822 Poemtitle:
9823  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
9824  \SpecialChar LyX
9825  can only support a few of them.
9826  One is poemtitle,
9827  which is a centered title for poems,
9828  which will also be added to the table of contents (verse is the standard environment for poems.
9829  Memoir has some enhanced versions of verse,
9830  but you need to use \SpecialChar TeX
9831  code,
9832  because they have to be nested inside regular verse environments,
9833  which is not possible with \SpecialChar LyX
9834 ).
9835 \end_layout
9836
9837 \begin_layout Description
9838 Poemtitle*:
9839  Same as poemtitle,
9840  but it adds no entry to the table of contents.
9841 \end_layout
9842
9843 \begin_layout Subsection
9844
9845 \change_inserted 564990737 1671442175
9846 Recipe Book
9847 \end_layout
9848
9849 \begin_layout Standard
9850
9851 \change_inserted 564990737 1671442175
9852 The document class 
9853 \family typewriter
9854 RecipeBook.cls
9855 \family default
9856  uses the 
9857 \family sans
9858 book
9859 \begin_inset space \thinspace{}
9860 \end_inset
9861
9862 (KOMA-Script)
9863 \family default
9864  document class but adds two environments:
9865 \end_layout
9866
9867 \begin_layout Description
9868
9869 \change_inserted 564990737 1671442175
9870 Recipe a numbered section environment at the 
9871 \family typewriter
9872 Subsubsection
9873 \family default
9874  level which generates a bold centered heading above a double horizontal rule
9875 \end_layout
9876
9877 \begin_layout Description
9878
9879 \change_inserted 564990737 1671442175
9880 Ingredients a 
9881 \family typewriter
9882 Description
9883 \family default
9884  environment where 
9885 \series bold
9886 \emph on
9887 Ingredients
9888 \series default
9889 \emph default
9890  are what are being described and the environment ends with a horizontal rule.
9891 \end_layout
9892
9893 \begin_layout Standard
9894
9895 \change_inserted 564990737 1671642866
9896
9897 \family sans
9898 File\SpecialChar menuseparator
9899 Open Example\SpecialChar menuseparator
9900 Books\SpecialChar menuseparator
9901 Recipe Book
9902 \family default
9903  illustrates its use.
9904 \end_layout
9905
9906 \begin_layout Standard
9907
9908 \change_inserted 564990737 1671442175
9909 It is designed for typesetting one or two recipes per page,
9910  with dimensions of 5.5
9911 \begin_inset Quotes qrd
9912 \end_inset
9913
9914  x 8.5
9915 \begin_inset Quotes qrd
9916 \end_inset
9917
9918 .
9919  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient,
9920  and the pages can be joined together or printed 2 per page to normal letterpaper easily.
9921  The size was chosen to work in half-page 3-ring binder cover sheets,
9922  because un-laminated paper just doesn't last in the kitchen.
9923 \end_layout
9924
9925 \begin_layout Standard
9926
9927 \change_inserted 564990737 1671442175
9928 The half-letter pages can be printed two per page using your printer driver,
9929  or bound together using 
9930 \family typewriter
9931 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
9932 \family default
9933  
9934 \family typewriter
9935 Recipes.pdf
9936 \family default
9937  where 
9938 \family typewriter
9939 Recipes.pdf
9940 \family default
9941  is the compiled version of your recipes.
9942 \end_layout
9943
9944 \begin_layout Section
9945
9946 \change_inserted 564990737 1671442207
9947 Curricula vitarum
9948 \end_layout
9949
9950 \begin_layout Subsection
9951
9952 \change_inserted 564990737 1671442208
9953 Europass
9954 \end_layout
9955
9956 \begin_layout Standard
9957
9958 \change_inserted 564990737 1671642942
9959 The document class 
9960 \family sans
9961 curriculum
9962 \begin_inset space \space{}
9963 \end_inset
9964
9965 vitae
9966 \begin_inset space \thinspace{}
9967 \end_inset
9968
9969 (Europass)
9970 \family default
9971  provides the 
9972 \family typewriter
9973 europasscv.cls
9974 \family default
9975  document class,
9976  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
9977  
9978 \family sans
9979 File\SpecialChar menuseparator
9980 Open Example\SpecialChar menuseparator
9981 Curricula Vitae\SpecialChar menuseparator
9982 Europass CV (2013)
9983 \family default
9984  offers guidance on its use.
9985  Its documentation is available from 
9986 \begin_inset CommandInset href
9987 LatexCommand href
9988 name "CTAN"
9989 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
9990 literal "false"
9991
9992 \end_inset
9993
9994 .
9995 \end_layout
9996
9997 \begin_layout Subsection
9998
9999 \change_inserted 564990737 1671442208
10000 European
10001 \end_layout
10002
10003 \begin_layout Standard
10004
10005 \change_inserted 564990737 1671642984
10006 The document class 
10007 \family sans
10008 curriculum
10009 \begin_inset space \space{}
10010 \end_inset
10011
10012 vitae
10013 \begin_inset space \thinspace{}
10014 \end_inset
10015
10016 (Europe)
10017 \family default
10018  provides the 
10019 \family typewriter
10020 europecv.cls
10021 \family default
10022  document class,
10023  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
10024  
10025 \family sans
10026 File\SpecialChar menuseparator
10027 Open Example\SpecialChar menuseparator
10028 Curricula Vitae\SpecialChar menuseparator
10029 Europe CV
10030 \family default
10031  offers guidance on its use.
10032  Its documentation is available from 
10033 \begin_inset CommandInset href
10034 LatexCommand href
10035 name "CTAN"
10036 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
10037 literal "false"
10038
10039 \end_inset
10040
10041 .
10042 \end_layout
10043
10044 \begin_layout Subsection
10045
10046 \change_inserted 564990737 1671442208
10047 Modern
10048 \end_layout
10049
10050 \begin_layout Standard
10051
10052 \change_inserted 564990737 1671643003
10053 The document class 
10054 \family sans
10055 curriculum
10056 \begin_inset space \space{}
10057 \end_inset
10058
10059 vitae
10060 \begin_inset space \thinspace{}
10061 \end_inset
10062
10063 (modern)
10064 \family default
10065  provides the 
10066 \family typewriter
10067 moderncv.cls
10068 \family default
10069  document class.
10070  This allows the creation of customizable CVs.
10071  
10072 \family sans
10073 File\SpecialChar menuseparator
10074 Open Example\SpecialChar menuseparator
10075 Curricula Vitae\SpecialChar menuseparator
10076 Modern CV
10077 \family default
10078  offers guidance on its use.
10079  Its documentation is available from 
10080 \begin_inset CommandInset href
10081 LatexCommand href
10082 name "CTAN"
10083 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
10084 literal "false"
10085
10086 \end_inset
10087
10088 .
10089 \end_layout
10090
10091 \begin_layout Subsection
10092
10093 \change_inserted 564990737 1671442208
10094 Simple
10095 \end_layout
10096
10097 \begin_layout Standard
10098
10099 \change_inserted 564990737 1671643024
10100 The document class 
10101 \family sans
10102 curriculum
10103 \begin_inset space \space{}
10104 \end_inset
10105
10106 vitae
10107 \begin_inset space \thinspace{}
10108 \end_inset
10109
10110 (simple)
10111 \family default
10112  provides the 
10113 \family typewriter
10114 simplecv.cls
10115 \family default
10116  document class,
10117  originally developed for use with \SpecialChar LyX
10118 .
10119  
10120 \family sans
10121 File\SpecialChar menuseparator
10122 Open Example\SpecialChar menuseparator
10123 Curricula Vitae\SpecialChar menuseparator
10124 Simple CV
10125 \family default
10126  offers guidance on its use.
10127  Its documentation is available from 
10128 \begin_inset CommandInset href
10129 LatexCommand href
10130 name "CTAN"
10131 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
10132 literal "false"
10133
10134 \end_inset
10135
10136
10137 \end_layout
10138
10139 \begin_layout Section
10140
10141 \change_inserted 564990737 1672652454
10142 Letters
10143 \end_layout
10144
10145 \begin_layout Standard
10146
10147 \change_inserted 564990737 1672652455
10148 See also the 
10149 \family typewriter
10150 letter
10151 \begin_inset space \space{}
10152 \end_inset
10153
10154 (KOMA-Script v.2)
10155 \family default
10156  (section
10157 \begin_inset space ~
10158 \end_inset
10159
10160
10161 \begin_inset CommandInset ref
10162 LatexCommand ref
10163 reference "subsec:The-new-letter"
10164 nolink "false"
10165
10166 \end_inset
10167
10168 ) and 
10169 \family typewriter
10170 letter
10171 \begin_inset space \space{}
10172 \end_inset
10173
10174 (with extra font sizes)
10175 \family default
10176  (section
10177 \begin_inset space ~
10178 \end_inset
10179
10180
10181 \begin_inset CommandInset ref
10182 LatexCommand ref
10183 reference "subsec:Extra-font-sizes"
10184 nolink "false"
10185
10186 \end_inset
10187
10188 ) document classes .
10189 \end_layout
10190
10191 \begin_layout Subsection
10192
10193 \change_inserted 564990737 1671041970
10194 Din-Brief
10195 \end_layout
10196
10197 \begin_layout Standard
10198
10199 \change_inserted 564990737 1671617528
10200 The document class 
10201 \family sans
10202 Din-Brief
10203 \family default
10204  provides the 
10205 \family typewriter
10206 dinbrief.cls
10207 \family default
10208  document class for writing letters according to the 
10209 \emph on
10210 Deutsches Institut für Normung
10211 \emph default
10212  conventions.
10213  The file in the menu 
10214 \family sans
10215 \bar under
10216 F
10217 \bar default
10218 ile\SpecialChar menuseparator
10219 New
10220 \begin_inset space ~
10221 \end_inset
10222
10223 fro
10224 \bar under
10225 m
10226 \bar default
10227
10228 \begin_inset space ~
10229 \end_inset
10230
10231 Template\SpecialChar menuseparator
10232 Letters\SpecialChar menuseparator
10233 DIN-Brief
10234 \family default
10235  offers guidance on its use.
10236  The documentation is available from 
10237 \begin_inset CommandInset href
10238 LatexCommand href
10239 name "CTAN"
10240 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
10241 literal "false"
10242
10243 \end_inset
10244
10245 .
10246 \end_layout
10247
10248 \begin_layout Subsection
10249
10250 \change_inserted 564990737 1672652499
10251 frletter
10252 \end_layout
10253
10254 \begin_layout Standard
10255
10256 \change_inserted 564990737 1672652499
10257 The document class 
10258 \family sans
10259 French letter
10260 \begin_inset space \space{}
10261 \end_inset
10262
10263 (frletter)
10264 \family default
10265  provides the 
10266 \family typewriter
10267 frletter.cls
10268 \family default
10269  document class for writing letters according to French conventions.
10270  The file in the menu 
10271 \family sans
10272 \bar under
10273 F
10274 \bar default
10275 ile\SpecialChar menuseparator
10276 New
10277 \begin_inset space ~
10278 \end_inset
10279
10280 fro
10281 \bar under
10282 m
10283 \bar default
10284
10285 \begin_inset space ~
10286 \end_inset
10287
10288 Template\SpecialChar menuseparator
10289 Letters\SpecialChar menuseparator
10290 French letter
10291 \begin_inset space \space{}
10292 \end_inset
10293
10294 (frletter)
10295 \family default
10296  offers guidance on its use.
10297 \end_layout
10298
10299 \begin_layout Subsection
10300
10301 \change_inserted 564990737 1672652499
10302 G-Brief
10303 \end_layout
10304
10305 \begin_layout Standard
10306
10307 \change_inserted 564990737 1672652499
10308 The document class 
10309 \family sans
10310 G-Brief (V.
10311 \begin_inset space \thinspace{}
10312 \end_inset
10313
10314 2)
10315 \family default
10316  provides the newer 
10317 \family typewriter
10318 g-brief2.cls
10319 \family default
10320  document class for writing letters in German.
10321  The file in the menu 
10322 \family sans
10323 \bar under
10324 F
10325 \bar default
10326 ile\SpecialChar menuseparator
10327 New
10328 \begin_inset space ~
10329 \end_inset
10330
10331 fro
10332 \bar under
10333 m
10334 \bar default
10335
10336 \begin_inset space ~
10337 \end_inset
10338
10339 Template\SpecialChar menuseparator
10340 Letters\SpecialChar menuseparator
10341 G-Brief (V.
10342 \begin_inset space \thinspace{}
10343 \end_inset
10344
10345 2)
10346 \family default
10347  offers guidance on its use.
10348  The documentation is available from 
10349 \begin_inset CommandInset href
10350 LatexCommand href
10351 name "CTAN"
10352 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
10353 literal "false"
10354
10355 \end_inset
10356
10357 .
10358 \end_layout
10359
10360 \begin_layout Subsection
10361
10362 \change_inserted 564990737 1671458835
10363 letter
10364 \end_layout
10365
10366 \begin_layout Standard
10367
10368 \change_inserted 564990737 1671617591
10369 The document class 
10370 \family sans
10371 letter
10372 \family default
10373  provides the 
10374 \family sans
10375 letter.cls
10376 \family default
10377  document class for English letters and to create mailing labels.
10378  The file in the menu 
10379 \family sans
10380 \bar under
10381 F
10382 \bar default
10383 ile\SpecialChar menuseparator
10384 New
10385 \begin_inset space ~
10386 \end_inset
10387
10388 fro
10389 \bar under
10390 m
10391 \bar default
10392
10393 \begin_inset space ~
10394 \end_inset
10395
10396 Template\SpecialChar menuseparator
10397 Letters\SpecialChar menuseparator
10398 Letter (Standard Class)
10399 \family default
10400  offers guidance on its use.
10401 \end_layout
10402
10403 \begin_layout Subsection
10404
10405 \change_inserted 564990737 1672652527
10406 lettre
10407 \end_layout
10408
10409 \begin_layout Standard
10410
10411 \change_inserted 564990737 1672652527
10412 The document class 
10413 \family sans
10414 French letter
10415 \begin_inset space \space{}
10416 \end_inset
10417
10418 (lettre)
10419 \family default
10420  provides the 
10421 \family typewriter
10422 lettre.cls
10423 \family default
10424  document class for writing letters,
10425  faxes and envelopes in French.
10426  The file in the menu 
10427 \family sans
10428 \bar under
10429 F
10430 \bar default
10431 ile\SpecialChar menuseparator
10432 New
10433 \begin_inset space ~
10434 \end_inset
10435
10436 fro
10437 \bar under
10438 m
10439 \bar default
10440
10441 \begin_inset space ~
10442 \end_inset
10443
10444 Template\SpecialChar menuseparator
10445 Letters\SpecialChar menuseparator
10446 French letter
10447 \begin_inset space \space{}
10448 \end_inset
10449
10450 (lettre)
10451 \family default
10452  offers guidance on its use.
10453  The documentation is available from 
10454 \begin_inset CommandInset href
10455 LatexCommand href
10456 name "CTAN"
10457 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
10458 literal "false"
10459
10460 \end_inset
10461
10462 .
10463 \end_layout
10464
10465 \begin_layout Section
10466
10467 \change_inserted 564990737 1670439660
10468 Presentations
10469 \end_layout
10470
10471 \begin_layout Subsection
10472
10473 \change_inserted 564990737 1671458922
10474 Beamer
10475 \end_layout
10476
10477 \begin_layout Standard
10478
10479 \change_inserted 564990737 1671617655
10480 The document class 
10481 \family sans
10482 presentation
10483 \begin_inset space \thinspace{}
10484 \end_inset
10485
10486 (beamer)
10487 \family default
10488  uses the 
10489 \family typewriter
10490 beamer.cls
10491 \family default
10492  document class for creating presentations.
10493  The file in the menu 
10494 \family sans
10495 \bar under
10496 F
10497 \bar default
10498 ile\SpecialChar menuseparator
10499 New
10500 \begin_inset space ~
10501 \end_inset
10502
10503 fro
10504 \bar under
10505 m
10506 \bar default
10507
10508 \begin_inset space ~
10509 \end_inset
10510
10511 Template\SpecialChar menuseparator
10512 Presentations\SpecialChar menuseparator
10513 Beamer
10514 \family default
10515  offers guidance on its use.
10516  The documentation is available from 
10517 \begin_inset CommandInset href
10518 LatexCommand href
10519 name "CTAN"
10520 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
10521 literal "false"
10522
10523 \end_inset
10524
10525 .
10526 \end_layout
10527
10528 \begin_layout Subsection
10529 Foils [aka 
10530 \family sans
10531 Foil\SpecialChar TeX
10532
10533 \family default
10534 ]
10535 \begin_inset CommandInset label
10536 LatexCommand label
10537 name "sec:foiltex"
10538
10539 \end_inset
10540
10541
10542 \end_layout
10543
10544 \begin_layout Standard
10545
10546 \change_inserted 564990737 1672743383
10547 Original by 
10548 \noun on
10549 Allan Rae
10550 \noun default
10551 ;
10552  updated by the \SpecialChar LyX
10553  Team
10554 \end_layout
10555
10556 \begin_layout Subsubsection
10557
10558 \change_inserted 564990737 1672743383
10559 Introduction
10560 \end_layout
10561
10562 \begin_layout Standard
10563
10564 \change_inserted 564990737 1672743396
10565 The document class 
10566 \family sans
10567 presentation
10568 \begin_inset space \thinspace{}
10569 \end_inset
10570
10571 (Foil\SpecialChar TeX
10572 )
10573 \family default
10574  uses the 
10575 \family typewriter
10576 foils.cls
10577 \family default
10578  document class to make slides for overhead projectors.
10579  There are two document classes that can do this:
10580  the 
10581 \family sans
10582 presentations
10583 \begin_inset space \thinspace{}
10584 \end_inset
10585
10586 (slides)
10587 \family default
10588  document class (section
10589 \begin_inset space ~
10590 \end_inset
10591
10592
10593 \begin_inset CommandInset ref
10594 LatexCommand ref
10595 reference "sec:slitex"
10596 plural "false"
10597 caps "false"
10598 noprefix "false"
10599 nolink "false"
10600
10601 \end_inset
10602
10603 ) and the 
10604 \family sans
10605 Foil\SpecialChar TeX
10606
10607 \family default
10608  slides class.
10609  As of 2023 the former has continued to be maintained whereas 
10610 \family sans
10611 Foil\SpecialChar TeX
10612
10613 \family default
10614  has not been maintained since 2008.
10615  This section documents the latter.
10616  If your machine doesn’t have the 
10617 \family sans
10618 presentation
10619 \begin_inset space \thinspace{}
10620 \end_inset
10621
10622 (Foil\SpecialChar TeX
10623 )
10624 \family default
10625  document class installed,
10626  you’ll probably have to use the 
10627 \family sans
10628 presentations
10629 \begin_inset space \thinspace{}
10630 \end_inset
10631
10632 (slides)
10633 \family default
10634  document class.
10635  If you want to install the 
10636 \family typewriter
10637 foils.cls
10638 \family default
10639  document class,
10640  it is available from 
10641 \begin_inset CommandInset href
10642 LatexCommand href
10643 name "CTAN"
10644 target "https://www.ctan.org/pkg/foiltex"
10645 literal "false"
10646
10647 \end_inset
10648
10649 .
10650  You should also read the 
10651 \emph on
10652 Installing New Document Classes
10653 \emph default
10654  chapter of the 
10655 \emph on
10656 Customization
10657 \emph default
10658  manual.
10659 \change_deleted 564990737 1672743436
10660 by 
10661 \noun on
10662 Allan Rae
10663 \end_layout
10664
10665 \begin_layout Standard
10666
10667 \change_deleted 564990737 1672743383
10668 Introduction
10669 \end_layout
10670
10671 \begin_layout Standard
10672
10673 \change_deleted 564990737 1672743383
10674 This section describes how to use \SpecialChar LyX
10675  to make slides for overhead projectors.
10676  There are two document classes that can do this:
10677  the default slides class and the 
10678 \family sans
10679 Foil\SpecialChar TeX
10680
10681 \family default
10682  slides class.
10683  This section documents the latter.
10684 \end_layout
10685
10686 \begin_layout Standard
10687
10688 \change_deleted 564990737 1672743383
10689 I'm going to say this again,
10690  nice and clear,
10691  so that there's no misunderstanding:
10692 \end_layout
10693
10694 \begin_layout Standard
10695
10696 \change_deleted 564990737 1672743383
10697 \begin_inset VSpace bigskip
10698 \end_inset
10699
10700
10701 \end_layout
10702
10703 \begin_layout Standard
10704 \align center
10705
10706 \change_deleted 564990737 1672743383
10707
10708 \size large
10709 This section documents the class 
10710 \begin_inset Quotes eld
10711 \end_inset
10712
10713
10714 \family sans
10715 FoilTeX
10716 \family default
10717
10718 \begin_inset Quotes erd
10719 \end_inset
10720
10721  
10722 \emph on
10723 only.
10724 \end_layout
10725
10726 \begin_layout Standard
10727
10728 \change_deleted 564990737 1672743383
10729 \begin_inset VSpace bigskip
10730 \end_inset
10731
10732
10733 \end_layout
10734
10735 \begin_layout Standard
10736
10737 \change_deleted 564990737 1672743383
10738 If you're looking for the documentation for 
10739 \begin_inset Quotes eld
10740 \end_inset
10741
10742
10743 \family sans
10744 slides (default)
10745 \family default
10746
10747 \begin_inset Quotes erd
10748 \end_inset
10749
10750 ,
10751  check out section
10752 \begin_inset space ~
10753 \end_inset
10754
10755
10756 \begin_inset CommandInset ref
10757 LatexCommand ref
10758 reference "sec:slitex"
10759 nolink "false"
10760
10761 \end_inset
10762
10763 .
10764  If your machine doesn't have the 
10765 \family sans
10766 foils
10767 \family default
10768  class 
10769 \family sans
10770 FoilTeX
10771 \family default
10772  installed,
10773  you'll probably have to use the default 
10774 \family sans
10775 slides
10776 \family default
10777  class,
10778  which isn't quite as good as 
10779 \family sans
10780 foils.
10781 \end_layout
10782
10783 \begin_layout Standard
10784
10785 \change_deleted 564990737 1672743383
10786 The 
10787 \family sans
10788 foils
10789 \family default
10790  class is designed for use with version
10791 \begin_inset space ~
10792 \end_inset
10793
10794 2.1 of the 
10795 \family sans
10796 foils.cls
10797 \family default
10798  \SpecialChar LaTeX
10799  class file which is now an integral part of \SpecialChar LaTeX2e
10800 .
10801 \change_unchanged
10802
10803 \end_layout
10804
10805 \begin_layout Subsubsection
10806 Getting Started
10807 \end_layout
10808
10809 \begin_layout Standard
10810 Obviously,
10811  to use this document class,
10812  you need to select 
10813 \family sans
10814 FoilTeX
10815 \family default
10816  from the 
10817 \family sans
10818 Class
10819 \family default
10820  entry in the 
10821 \family sans
10822 Document
10823 \begin_inset space ~
10824 \end_inset
10825
10826 Layout
10827 \family default
10828  dialog.
10829  There are some settings in the 
10830 \family sans
10831 Document
10832 \begin_inset space ~
10833 \end_inset
10834
10835 Layout
10836 \family default
10837  dialog that you should know about that are specific to this class:
10838 \end_layout
10839
10840 \begin_layout Itemize
10841 Don't change the options 
10842 \family sans
10843 Sides
10844 \family default
10845  and 
10846 \family sans
10847 Columns
10848 \family default
10849  on the 
10850 \family sans
10851 Document
10852 \begin_inset space ~
10853 \end_inset
10854
10855 Layout
10856 \family default
10857  dialog.
10858  They're ignored by the 
10859 \family sans
10860 foils
10861 \family default
10862  class.
10863 \end_layout
10864
10865 \begin_layout Itemize
10866 The default font size is 20
10867 \begin_inset space \thinspace{}
10868 \end_inset
10869
10870 pt with the other options being 17
10871 \begin_inset space \thinspace{}
10872 \end_inset
10873
10874 pt,
10875  25
10876 \begin_inset space \thinspace{}
10877 \end_inset
10878
10879 pt and 30
10880 \begin_inset space \thinspace{}
10881 \end_inset
10882
10883 pt.
10884 \end_layout
10885
10886 \begin_layout Itemize
10887 The default font is 
10888 \family sans
10889 sans
10890 \family default
10891  
10892 \family sans
10893 serif
10894 \family default
10895  but all math equations are still typeset in the usual roman font.
10896 \end_layout
10897
10898 \begin_layout Itemize
10899
10900 \family sans
10901 Foil\SpecialChar TeX
10902
10903 \family default
10904  supports A4 and Letter paper sizes as well as a special size for working with 35
10905 \begin_inset space \thinspace{}
10906 \end_inset
10907
10908 mm slides.
10909  It doesn't support A5,
10910  B5,
10911  legal or executive paper sizes.
10912 \end_layout
10913
10914 \begin_layout Itemize
10915 Don't bother changing the 
10916 \family sans
10917 Float Placement
10918 \family default
10919  settings because they are ignored anyway.
10920  All floats appear where they are defined in the text.
10921 \end_layout
10922
10923 \begin_layout Itemize
10924 The 
10925 \family sans
10926 Pagestyle
10927 \family default
10928  setting behaves a bit differently for this class.
10929  
10930 \family sans
10931 Foil\SpecialChar TeX
10932
10933 \family default
10934  provides extensive footer and header capabilities including a user-defined logo.
10935  See section
10936 \begin_inset space ~
10937 \end_inset
10938
10939
10940 \begin_inset CommandInset ref
10941 LatexCommand ref
10942 reference "sec:foilfoot"
10943 nolink "false"
10944
10945 \end_inset
10946
10947  for more details.
10948  The title page is treated differently to all other pages in the document and is 
10949 \emph on
10950 always
10951 \emph default
10952  unnumbered and 
10953 \emph on
10954 always
10955 \emph default
10956  has the logo centered at the bottom of the page (if one is defined).
10957  The possible page style choices and what they do are as follows:
10958 \end_layout
10959
10960 \begin_deeper
10961 \begin_layout Labeling
10962 \labelwidthstring MMMMMMM
10963
10964 \family sans
10965 \series bold
10966 empty
10967 \family default
10968 \series default
10969  The final output contains no page numbers,
10970  or other headers or footers (except footnotes of course).
10971  
10972 \end_layout
10973
10974 \begin_layout Labeling
10975 \labelwidthstring MMMMMMM
10976
10977 \family sans
10978 \series bold
10979 plain
10980 \family default
10981 \series default
10982  The final output contains page numbers centered at the bottom of the page.
10983  No other headings or footers (other than footnotes).
10984 \end_layout
10985
10986 \begin_layout Labeling
10987 \labelwidthstring MMMMMMM
10988
10989 \series bold
10990 foilheadings
10991 \series default
10992  Page numbers in lower right corner.
10993  Additional headers and footers are also shown.
10994  This is also the default.
10995 \end_layout
10996
10997 \begin_layout Labeling
10998 \labelwidthstring MMMMMMM
10999
11000 \series bold
11001 fancy
11002 \series default
11003  Gives you access to the 
11004 \family sans
11005 fancyheadings
11006 \family default
11007  package although its use with 
11008 \family sans
11009 Foil\SpecialChar TeX
11010
11011 \family default
11012  is discouraged by the writer of the 
11013 \family sans
11014 Foil\SpecialChar TeX
11015
11016 \family default
11017  package because of some potential page layout clashes.
11018 \end_layout
11019
11020 \end_deeper
11021 \begin_layout Paragraph
11022 Extra Options
11023 \end_layout
11024
11025 \begin_layout Standard
11026 The following options may be used in the extra class options in the 
11027 \family sans
11028 Document\SpecialChar menuseparator
11029 Settings
11030 \family default
11031  dialog.
11032 \end_layout
11033
11034 \begin_layout Labeling
11035 \labelwidthstring MMMMMMx
11036
11037 \series bold
11038 35mmSlide
11039 \series default
11040  This sets up the page layout for 7.33
11041 \begin_inset space \thinspace{}
11042 \end_inset
11043
11044 in by 11
11045 \begin_inset space \thinspace{}
11046 \end_inset
11047
11048 in paper,
11049  which is about the same aspect ratio as a 35
11050 \begin_inset space \thinspace{}
11051 \end_inset
11052
11053 mm slide,
11054  making it a bit easier to work with this medium.
11055 \end_layout
11056
11057 \begin_layout Labeling
11058 \labelwidthstring MMMMMMx
11059
11060 \series bold
11061 headrule
11062 \series default
11063  Places a rule across the page below the header on every page except the title page.
11064 \end_layout
11065
11066 \begin_layout Labeling
11067 \labelwidthstring MMMMMMx
11068
11069 \series bold
11070 footrule
11071 \series default
11072  Places a rule across the page above the footer on every page except the title page.
11073 \end_layout
11074
11075 \begin_layout Labeling
11076 \labelwidthstring MMMMMMx
11077
11078 \series bold
11079 dvips
11080 \series default
11081  This is automatically set each time you create a new 
11082 \family sans
11083 foils
11084 \family default
11085  document.
11086  This option tells 
11087 \family sans
11088 Foil\SpecialChar TeX
11089
11090 \family default
11091  to use the dvips driver to rotate those pages that are set as landscape foils.
11092 \end_layout
11093
11094 \begin_layout Labeling
11095 \labelwidthstring MMMMMMx
11096
11097 \series bold
11098 landscape
11099 \series default
11100  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
11101  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.
11102  Note that this option effectively reverses the roles of the 
11103 \family sans
11104 Foilhead
11105 \family default
11106  and 
11107 \family sans
11108 Rotatefoilhead
11109 \family default
11110  environments (don't worry these are described in the next section).
11111 \end_layout
11112
11113 \begin_layout Labeling
11114 \labelwidthstring MMMMMMx
11115
11116 \series bold
11117 leqno
11118 \series default
11119  Equation numbers on the left.
11120 \end_layout
11121
11122 \begin_layout Labeling
11123 \labelwidthstring MMMMMMx
11124
11125 \series bold
11126 fleqn
11127 \series default
11128  Flush-left equations.
11129 \end_layout
11130
11131 \begin_layout Subsubsection
11132 Supported Environments
11133 \end_layout
11134
11135 \begin_layout Standard
11136 Most of the environments commonly supported in other classes are also supported by the 
11137 \family sans
11138 foils
11139 \family default
11140  class.
11141  There are several additional environments provided by 
11142 \family sans
11143 Foil\SpecialChar TeX
11144
11145 \family default
11146  as well as a couple added by \SpecialChar LyX
11147 .
11148  The following environments are shared with other classes:
11149 \end_layout
11150
11151 \begin_layout Standard
11152 \begin_inset Flex Multiple Columns
11153 status open
11154
11155 \begin_layout Itemize
11156
11157 \family sans
11158 Standard
11159 \end_layout
11160
11161 \begin_layout Itemize
11162
11163 \family sans
11164 Itemize
11165 \end_layout
11166
11167 \begin_layout Itemize
11168
11169 \family sans
11170 Enumerate
11171 \end_layout
11172
11173 \begin_layout Itemize
11174
11175 \family sans
11176 Description
11177 \end_layout
11178
11179 \begin_layout Itemize
11180
11181 \family sans
11182 List
11183 \end_layout
11184
11185 \begin_layout Itemize
11186
11187 \family sans
11188 \SpecialChar LyX
11189 -Code
11190 \end_layout
11191
11192 \begin_layout Itemize
11193
11194 \family sans
11195 Verse
11196 \end_layout
11197
11198 \begin_layout Itemize
11199
11200 \family sans
11201 Quote
11202 \end_layout
11203
11204 \begin_layout Itemize
11205
11206 \family sans
11207 Quotation
11208 \end_layout
11209
11210 \begin_layout Itemize
11211
11212 \family sans
11213 TitleAuthor
11214 \end_layout
11215
11216 \begin_layout Itemize
11217
11218 \family sans
11219 Date
11220 \end_layout
11221
11222 \begin_layout Itemize
11223
11224 \family sans
11225 Abstract
11226 \end_layout
11227
11228 \begin_layout Itemize
11229
11230 \family sans
11231 Bibliography
11232 \end_layout
11233
11234 \begin_layout Itemize
11235
11236 \family sans
11237 Address
11238 \end_layout
11239
11240 \begin_layout Itemize
11241
11242 \family sans
11243 RightAddress
11244 \end_layout
11245
11246 \end_inset
11247
11248
11249 \end_layout
11250
11251 \begin_layout Standard
11252 That is,
11253  all the major environments apart from the sectioning environments.
11254  Since foils are essentially self-contained sections,
11255  with a title and body,
11256  
11257 \family sans
11258 Foil\SpecialChar TeX
11259
11260 \family default
11261  provides specific commands for starting new foils and these are:
11262 \end_layout
11263
11264 \begin_layout Itemize
11265
11266 \family sans
11267 Foilhead
11268 \end_layout
11269
11270 \begin_layout Itemize
11271
11272 \family sans
11273 Rotatefoilhead
11274 \end_layout
11275
11276 \begin_layout Standard
11277 \SpecialChar LyX
11278  also provides slightly modified versions of these two environments called:
11279 \end_layout
11280
11281 \begin_layout Itemize
11282
11283 \family sans
11284 ShortFoilhead
11285 \end_layout
11286
11287 \begin_layout Itemize
11288
11289 \family sans
11290 ShortRotatefoilhead
11291 \end_layout
11292
11293 \begin_layout Standard
11294 and the differences will be explained in the next section.
11295 \end_layout
11296
11297 \begin_layout Standard
11298 Since foils are often used in presenting ideas or new theorems and such 
11299 \family sans
11300 Foil\SpecialChar TeX
11301
11302 \family default
11303  also provides a comprehensive box of goodies for presenting them:
11304 \end_layout
11305
11306 \begin_layout Standard
11307 \begin_inset Flex Multiple Columns
11308 status open
11309
11310 \begin_layout Itemize
11311
11312 \family sans
11313 Theorem
11314 \end_layout
11315
11316 \begin_layout Itemize
11317
11318 \family sans
11319 Lemma
11320 \end_layout
11321
11322 \begin_layout Itemize
11323
11324 \family sans
11325 Corollary
11326 \end_layout
11327
11328 \begin_layout Itemize
11329
11330 \family sans
11331 Proposition
11332 \end_layout
11333
11334 \begin_layout Itemize
11335
11336 \family sans
11337 Definition
11338 \end_layout
11339
11340 \begin_layout Itemize
11341
11342 \family sans
11343 Proof
11344 \end_layout
11345
11346 \begin_layout Itemize
11347
11348 \family sans
11349 Theorem*
11350 \end_layout
11351
11352 \begin_layout Itemize
11353
11354 \family sans
11355 Lemma*
11356 \end_layout
11357
11358 \begin_layout Itemize
11359
11360 \family sans
11361 Corollary*
11362 \end_layout
11363
11364 \begin_layout Itemize
11365
11366 \family sans
11367 Proposition*
11368 \end_layout
11369
11370 \begin_layout Itemize
11371
11372 \family sans
11373 Definition*
11374 \end_layout
11375
11376 \end_inset
11377
11378
11379 \end_layout
11380
11381 \begin_layout Standard
11382 The starred versions are unnumbered while the unstarred versions are numbered.
11383  There are also two list environments added by \SpecialChar LyX
11384  and these are:
11385 \end_layout
11386
11387 \begin_layout Itemize
11388
11389 \family sans
11390 TickList
11391 \end_layout
11392
11393 \begin_layout Itemize
11394
11395 \family sans
11396 CrossList
11397 \end_layout
11398
11399 \begin_layout Standard
11400
11401 \family sans
11402 Foil\SpecialChar TeX
11403
11404 \family default
11405  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.
11406  If you want to change these settings in your document the best place to do so is at the very top of a foil,
11407  i.
11408 \begin_inset space \thinspace{}
11409 \end_inset
11410
11411 e.
11412 \emph on
11413
11414 \begin_inset space \space{}
11415 \end_inset
11416
11417
11418 \emph default
11419 straight after the foilhead.
11420 \end_layout
11421
11422 \begin_layout Standard
11423 For this purpose,
11424  the following command styles are provided [
11425 \shape smallcaps
11426 Martin Vermeer
11427 \shape default
11428 ]:
11429 \end_layout
11430
11431 \begin_layout Standard
11432 \begin_inset Flex Multiple Columns
11433 status open
11434
11435 \begin_layout Itemize
11436
11437 \family sans
11438 My
11439 \begin_inset space ~
11440 \end_inset
11441
11442 Logo
11443 \end_layout
11444
11445 \begin_layout Itemize
11446
11447 \family sans
11448 Restriction
11449 \end_layout
11450
11451 \begin_layout Itemize
11452
11453 \family sans
11454 Right
11455 \begin_inset space ~
11456 \end_inset
11457
11458 Footer
11459 \end_layout
11460
11461 \begin_layout Itemize
11462
11463 \family sans
11464 Right
11465 \begin_inset space ~
11466 \end_inset
11467
11468 Header
11469 \end_layout
11470
11471 \begin_layout Itemize
11472
11473 \family sans
11474 Left
11475 \begin_inset space ~
11476 \end_inset
11477
11478 Header
11479 \end_layout
11480
11481 \begin_deeper
11482 \begin_layout Plain Layout
11483 \begin_inset space ~
11484 \end_inset
11485
11486
11487 \end_layout
11488
11489 \end_deeper
11490 \end_inset
11491
11492
11493 \end_layout
11494
11495 \begin_layout Standard
11496 There are also a few commands provided by 
11497 \family sans
11498 Foil\SpecialChar TeX
11499
11500 \family default
11501  that aren't directly supported by \SpecialChar LyX
11502  but I'll tell you what they do and how to use them in section
11503 \begin_inset space ~
11504 \end_inset
11505
11506
11507 \begin_inset CommandInset ref
11508 LatexCommand ref
11509 reference "sec:unsuppfoils"
11510 nolink "false"
11511
11512 \end_inset
11513
11514 .
11515 \end_layout
11516
11517 \begin_layout Subsubsection
11518 Building a Set of Foils
11519 \end_layout
11520
11521 \begin_layout Standard
11522 This section will give a simple introduction to using the different environments to build a set of foils.
11523  If you want to see an example set of foils,
11524  take a look at 
11525 \change_deleted 564990737 1671643085
11526 the 
11527 \family typewriter
11528 Foils.lyx
11529 \family default
11530  file you find in \SpecialChar LyX
11531 's 
11532 \family typewriter
11533 examples
11534 \family default
11535  folder
11536 \change_inserted 564990737 1671643099
11537
11538 \family sans
11539 File\SpecialChar menuseparator
11540 Open Example\SpecialChar menuseparator
11541 Presentations\SpecialChar menuseparator
11542 Foils
11543 \change_unchanged
11544
11545 \family default
11546 .
11547 \end_layout
11548
11549 \begin_layout Paragraph
11550 Give It a Title Page
11551 \end_layout
11552
11553 \begin_layout Standard
11554 Unlike other classes that provide 
11555 \family sans
11556 Title
11557 \family default
11558 ,
11559  
11560 \family sans
11561 Author
11562 \family default
11563 ,
11564  
11565 \family sans
11566 Date
11567 \family default
11568  and 
11569 \family sans
11570 Abstract
11571 \family default
11572  environments,
11573  
11574 \family sans
11575 foils
11576 \family default
11577  creates the title on a page of its own.
11578  If you leave out the 
11579 \family sans
11580 Date
11581 \family default
11582  environment \SpecialChar LaTeX
11583  will substitute the current date (every time you regenerate the output).
11584 \end_layout
11585
11586 \begin_layout Paragraph
11587 Start a New Foil
11588 \end_layout
11589
11590 \begin_layout Standard
11591 As I mentioned earlier,
11592  there are four ways of starting a new foil.
11593  For portrait foils you should use 
11594 \family sans
11595 Foilhead
11596 \family default
11597  or 
11598 \family sans
11599 ShortFoilhead.
11600
11601 \family default
11602  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.
11603 \end_layout
11604
11605 \begin_layout Standard
11606 Landscape foils are generated using the 
11607 \family sans
11608 Rotatefoilhead
11609 \family default
11610  and 
11611 \family sans
11612 ShortRotatefoilhead
11613 \family default
11614  environments.
11615  Again the only difference is the spacing between foilhead and body.
11616  Both of the short versions have 0.5
11617 \begin_inset space ~
11618 \end_inset
11619
11620 inches less separation between the foilhead and the body.
11621  
11622 \end_layout
11623
11624 \begin_layout Standard
11625 One problem with the support for landscape foils is the requirement that you have to use the 
11626 \family typewriter
11627 dvips
11628 \family default
11629  driver to generate the PostScript output otherwise the foils won't be rotated.
11630  It is possible to get landscape foils even if you haven't got the 
11631 \family typewriter
11632 dvips
11633 \family default
11634  driver provided you can feed your foils sideways through your printer ;-)
11635 \end_layout
11636
11637 \begin_layout Paragraph
11638 Theorems,
11639  Lemmas,
11640  Proofs and more
11641 \end_layout
11642
11643 \begin_layout Standard
11644 You can't have two of the same type of these environments directly following each other.
11645  If you use a normal paragraph break,
11646  ,
11647  you will just be extending the previous environment as if you had merged the two environments together.
11648  Rather than that,
11649  you need to insert a so-called separator.
11650  Please refer to the section entitled 
11651 \emph on
11652 Separate Nestings
11653 \emph default
11654  in the 
11655 \emph on
11656 User's Guide
11657 \emph default
11658 .
11659 \end_layout
11660
11661 \begin_layout Paragraph
11662 Lists
11663 \end_layout
11664
11665 \begin_layout Standard
11666 You get all the commonly supported list styles found in other classes as well as two new ones.
11667  I'll only describe the new ones here.
11668  If you want to find out more about the other list environments check out the 
11669 \emph on
11670 User's Guide.
11671
11672 \emph default
11673  If you intend to use itemized lists you might also want to read about the 
11674 \family sans
11675 Itemize
11676 \begin_inset space ~
11677 \end_inset
11678
11679 Bullet
11680 \begin_inset space ~
11681 \end_inset
11682
11683 Selection
11684 \family default
11685  dialog described above in section
11686 \begin_inset space ~
11687 \end_inset
11688
11689
11690 \change_inserted 564990737 1671355684
11691
11692 \begin_inset CommandInset ref
11693 LatexCommand ref
11694 reference "chap:bullets"
11695 nolink "false"
11696
11697 \end_inset
11698
11699
11700 \change_deleted 564990737 1671355684
11701
11702 \begin_inset CommandInset ref
11703 LatexCommand ref
11704 reference "sec:bullet"
11705 nolink "false"
11706
11707 \end_inset
11708
11709
11710 \change_unchanged
11711 .
11712 \end_layout
11713
11714 \begin_layout Standard
11715 The two new list styles,
11716  
11717 \family sans
11718 TickList
11719 \family default
11720  and 
11721 \family sans
11722 CrossList
11723 \family default
11724 ,
11725  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.
11726  These lists are in fact dedicated variants of the 
11727 \family sans
11728 Itemize
11729 \family default
11730  environment.
11731  They do however require that you have the 
11732 \family typewriter
11733 psnfss
11734 \family default
11735  packages installed.
11736 \end_layout
11737
11738 \begin_layout Paragraph
11739 Figures and Tables
11740 \end_layout
11741
11742 \begin_layout Standard
11743
11744 \family sans
11745 Foil\SpecialChar TeX
11746
11747 \family default
11748  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.
11749  In fact if you change the float placement settings they are simply ignored.
11750 \end_layout
11751
11752 \begin_layout Paragraph
11753 Page Headers and Footers
11754 \begin_inset CommandInset label
11755 LatexCommand label
11756 name "sec:foilfoot"
11757
11758 \end_inset
11759
11760
11761 \end_layout
11762
11763 \begin_layout Standard
11764
11765 \family sans
11766 My
11767 \begin_inset space ~
11768 \end_inset
11769
11770 Logo
11771 \family default
11772  and 
11773 \family sans
11774 Restriction
11775 \family default
11776  are two commands used to control the left-footer text string.
11777  The first is meant to allow you to include a graphic logo on your foils and defaults to 
11778 \begin_inset Quotes eld
11779 \end_inset
11780
11781 -Typeset by 
11782 \family sans
11783 Foil\SpecialChar TeX
11784
11785 \family default
11786 -
11787 \begin_inset Quotes erd
11788 \end_inset
11789
11790 .
11791  While the second is meant to provide a classification for the audience,
11792  
11793 \emph on
11794 e.
11795 \begin_inset space \thinspace{}
11796 \end_inset
11797
11798 g.
11799 \emph default
11800
11801 \begin_inset space \space{}
11802 \end_inset
11803
11804 Confidential.
11805  It is empty by default.
11806 \end_layout
11807
11808 \begin_layout Standard
11809 The remaining page corners can be filled by 
11810 \family sans
11811 Right
11812 \begin_inset space ~
11813 \end_inset
11814
11815 Footer
11816 \family default
11817  (which defaults to page numbers),
11818  
11819 \family sans
11820 Right
11821 \begin_inset space ~
11822 \end_inset
11823
11824 Header
11825 \family default
11826  (top right) and 
11827 \family sans
11828 Left
11829 \begin_inset space ~
11830 \end_inset
11831
11832 Header
11833 \family default
11834  (top left).
11835 \end_layout
11836
11837 \begin_layout Subsubsection
11838 Unsupported 
11839 \family sans
11840 Foil\SpecialChar TeX
11841
11842 \family default
11843  Goodies
11844 \begin_inset CommandInset label
11845 LatexCommand label
11846 name "sec:unsuppfoils"
11847
11848 \end_inset
11849
11850
11851 \end_layout
11852
11853 \begin_layout Standard
11854 All the commands mentioned below need to be set in a 
11855 \family sans
11856 \SpecialChar LaTeX
11857
11858 \family default
11859  environment or as 
11860 \family sans
11861 \SpecialChar TeX
11862
11863 \family default
11864  within another environment.
11865 \end_layout
11866
11867 \begin_layout Paragraph
11868 Lengths
11869 \end_layout
11870
11871 \begin_layout Standard
11872 All lengths are adjusted using the 
11873 \family typewriter
11874
11875 \backslash
11876 setlength{
11877 \family default
11878 \emph on
11879 lengthname
11880 \family typewriter
11881 \emph default
11882 }{
11883 \family default
11884 \emph on
11885 newlength
11886 \family typewriter
11887 \emph default
11888 }
11889 \family default
11890  command.
11891  Where 
11892 \emph on
11893 lengthname
11894 \emph default
11895  should be replaced by the name given to the length you want to change and 
11896 \emph on
11897 newlength
11898 \emph default
11899  is the length value.
11900  All lengths should be specified in units of length such as inches (
11901 \family typewriter
11902 in
11903 \family default
11904 ),
11905  millimeters (
11906 \family typewriter
11907 mm
11908 \family default
11909 ) or points (
11910 \family typewriter
11911 pt
11912 \family default
11913 ) or relative to some document or font-based length such as 
11914 \family typewriter
11915
11916 \backslash
11917 textwidth
11918 \family default
11919 .
11920  
11921 \end_layout
11922
11923 \begin_layout Standard
11924 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
11925 \family typewriter
11926
11927 \backslash
11928 foilheadskip
11929 \family default
11930 .
11931  For example,
11932  to make 
11933 \emph on
11934 all
11935 \emph default
11936  foilheads 0.5
11937 \begin_inset space \space{}
11938 \end_inset
11939
11940 in closer to their bodies put the following in the preamble:
11941  
11942 \family typewriter
11943
11944 \backslash
11945 setlength{
11946 \backslash
11947 foilheadskip}{-0.5in}
11948 \end_layout
11949
11950 \begin_layout Standard
11951 The spacings around floats can be adjusted by setting these lengths:
11952 \end_layout
11953
11954 \begin_layout Labeling
11955 \labelwidthstring MMMMMMMMMMM
11956
11957 \family typewriter
11958
11959 \backslash
11960 abovefloatskip
11961 \family default
11962  Separation between the text and the top of the float
11963 \end_layout
11964
11965 \begin_layout Labeling
11966 \labelwidthstring MMMMMMMMMMM
11967
11968 \family typewriter
11969
11970 \backslash
11971 abovecaptionskip
11972 \family default
11973  Separation between the float and the caption
11974 \end_layout
11975
11976 \begin_layout Labeling
11977 \labelwidthstring MMMMMMMMMMM
11978
11979 \family typewriter
11980
11981 \backslash
11982 belowcaptionskip
11983 \family default
11984  Separation between the caption and the following text
11985 \end_layout
11986
11987 \begin_layout Labeling
11988 \labelwidthstring MMMMMMMMMMM
11989
11990 \family typewriter
11991
11992 \backslash
11993 captionwidth
11994 \family default
11995  You can make the captions narrower than the surrounding text by adjusting this length.
11996  Best done relative to 
11997 \family typewriter
11998
11999 \backslash
12000 textwidth
12001 \family default
12002 .
12003 \end_layout
12004
12005 \begin_layout Standard
12006 There are also several title page related lengths that you may find useful if you have a long title or several authors:
12007 \end_layout
12008
12009 \begin_layout Labeling
12010 \labelwidthstring MMMMMMMMMMM
12011
12012 \family typewriter
12013
12014 \backslash
12015 abovetitleskip
12016 \family default
12017  Separation from headers to 
12018 \family sans
12019 Title
12020 \end_layout
12021
12022 \begin_layout Labeling
12023 \labelwidthstring MMMMMMMMMMM
12024
12025 \family typewriter
12026
12027 \backslash
12028 titleauthorskip
12029 \family default
12030  between 
12031 \family sans
12032 Title
12033 \family default
12034  and 
12035 \family sans
12036 Author
12037 \family default
12038  environments
12039 \end_layout
12040
12041 \begin_layout Labeling
12042 \labelwidthstring MMMMMMMMMMM
12043
12044 \family typewriter
12045
12046 \backslash
12047 authorauthorskip
12048 \family default
12049  between multiple 
12050 \family sans
12051 Author
12052 \family default
12053  lines
12054 \end_layout
12055
12056 \begin_layout Labeling
12057 \labelwidthstring MMMMMMMMMMM
12058
12059 \family typewriter
12060
12061 \backslash
12062 authordateskip
12063 \family default
12064  between the 
12065 \family sans
12066 Author
12067 \family default
12068  and the 
12069 \family sans
12070 Date
12071 \end_layout
12072
12073 \begin_layout Labeling
12074 \labelwidthstring MMMMMMMMMMM
12075
12076 \family typewriter
12077
12078 \backslash
12079 dateabstractskip
12080 \family default
12081  between the 
12082 \family sans
12083 Date
12084 \family default
12085  and the 
12086 \family sans
12087 Abstract
12088 \end_layout
12089
12090 \begin_layout Standard
12091 The last length related command affects all the list environments.
12092  If you place 
12093 \family typewriter
12094
12095 \backslash
12096 zerolistvertdimens
12097 \family default
12098  
12099 \emph on
12100 inside
12101 \emph default
12102  a list environment then all the vertical spacing between the list items is removed.
12103  Note that this is a command not a length so it doesn't require 
12104 \family typewriter
12105
12106 \backslash
12107 setlength
12108 \family default
12109  like the stuff mentioned above.
12110 \end_layout
12111
12112 \begin_layout Paragraph
12113 Headers and Footers
12114 \end_layout
12115
12116 \begin_layout Standard
12117 The 
12118 \family typewriter
12119
12120 \backslash
12121 LogoOn
12122 \family default
12123  and 
12124 \family typewriter
12125
12126 \backslash
12127 LogoOff
12128 \family default
12129  commands control whether the logo in the 
12130 \family sans
12131 MyLogo
12132 \family default
12133  definition appear on a given page.
12134  If you put 
12135 \family typewriter
12136
12137 \backslash
12138 LogoOff
12139 \family default
12140  in the preamble then none of the foils will have the logo on them.
12141  If you don't want the logo on a particular page place the 
12142 \family typewriter
12143
12144 \backslash
12145 LogoOff
12146 \family default
12147  directly after the foilhead of that page and the 
12148 \family typewriter
12149
12150 \backslash
12151 LogoOn
12152 \family default
12153  directly after the next foilhead.
12154 \end_layout
12155
12156 \begin_layout Standard
12157 If you decide to use the 
12158 \family sans
12159 fancy
12160 \family default
12161  page style setting in the 
12162 \family sans
12163 Document
12164 \begin_inset space ~
12165 \end_inset
12166
12167 Layout
12168 \family default
12169  dialog you should probably add 
12170 \family typewriter
12171
12172 \backslash
12173 let
12174 \backslash
12175 headwidth
12176 \backslash
12177 textwidth
12178 \family default
12179  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
12180  This is due to some clashes between the page layouts provided by the 
12181 \family sans
12182 fancyheadings
12183 \family default
12184  package and the 
12185 \family sans
12186 foils
12187 \family default
12188  class.
12189 \end_layout
12190
12191 \begin_layout Subsection
12192
12193 \change_inserted 564990737 1671459032
12194 Powerdot
12195 \end_layout
12196
12197 \begin_layout Standard
12198
12199 \change_inserted 564990737 1671643165
12200 The document class 
12201 \family sans
12202 presentation
12203 \begin_inset space \thinspace{}
12204 \end_inset
12205
12206 (powerdot)
12207 \family default
12208  uses the 
12209 \family typewriter
12210 powerdot.cls
12211 \family default
12212  document class for creating presentations.
12213  
12214 \family sans
12215 File\SpecialChar menuseparator
12216 Open Example\SpecialChar menuseparator
12217 Presentations\SpecialChar menuseparator
12218 Powerdot
12219 \family default
12220  offers guidance on its use.
12221  The documentation is available from 
12222 \begin_inset CommandInset href
12223 LatexCommand href
12224 name "CTAN"
12225 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
12226 literal "false"
12227
12228 \end_inset
12229
12230 .
12231 \end_layout
12232
12233 \begin_layout Subsection
12234
12235 \change_inserted 564990737 1671459032
12236 \begin_inset CommandInset label
12237 LatexCommand label
12238 name "subsec:Seminar"
12239
12240 \end_inset
12241
12242
12243 \family sans
12244 Seminar
12245 \end_layout
12246
12247 \begin_layout Standard
12248
12249 \change_inserted 564990737 1671643194
12250 The document class 
12251 \family sans
12252 presentations
12253 \begin_inset space \thinspace{}
12254 \end_inset
12255
12256 (seminar)
12257 \family default
12258  uses the 
12259 \family typewriter
12260 seminar.cls
12261 \family default
12262  document class for creating presentations.
12263  
12264 \family sans
12265 File\SpecialChar menuseparator
12266 Open Example\SpecialChar menuseparator
12267 Presentations\SpecialChar menuseparator
12268 Seminar
12269 \family default
12270  offers guidance on its use.
12271  The documentation is available from 
12272 \begin_inset CommandInset href
12273 LatexCommand href
12274 name "CTAN"
12275 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
12276 literal "false"
12277
12278 \end_inset
12279
12280 .
12281 \end_layout
12282
12283 \begin_layout Subsection
12284 Slides [aka 
12285 \noun on
12286 Sli\SpecialChar TeX
12287
12288 \noun default
12289 ]
12290 \begin_inset CommandInset label
12291 LatexCommand label
12292 name "sec:slitex"
12293
12294 \end_inset
12295
12296
12297 \end_layout
12298
12299 \begin_layout Standard
12300
12301 \change_inserted 564990737 1672743492
12302 Original by 
12303 \noun on
12304 John Weiss
12305 \noun default
12306 ;
12307  updated by the \SpecialChar LyX
12308  Team
12309 \end_layout
12310
12311 \begin_layout Subsubsection
12312
12313 \change_inserted 564990737 1672743492
12314 Introduction
12315 \end_layout
12316
12317 \begin_layout Standard
12318
12319 \change_inserted 564990737 1672743492
12320 This section describes how to use \SpecialChar LyX
12321  to make slides for overhead projectors.
12322  There are two document classes that can do this:
12323  the 
12324 \family typewriter
12325 presentations
12326 \begin_inset space \thinspace{}
12327 \end_inset
12328
12329 (slides)
12330 \family default
12331  document class and the 
12332 \family sans
12333 presentation
12334 \begin_inset space \thinspace{}
12335 \end_inset
12336
12337 (Foil\SpecialChar TeX
12338 )
12339 \family default
12340  document class.
12341  This section documents the former.
12342  If you’re looking for the documentation for 
12343 \family sans
12344 presentation
12345 \begin_inset space \thinspace{}
12346 \end_inset
12347
12348 (Foil\SpecialChar TeX
12349 )
12350 \family default
12351 ,
12352  check out section
12353 \begin_inset space ~
12354 \end_inset
12355
12356
12357 \begin_inset CommandInset ref
12358 LatexCommand ref
12359 reference "sec:Foiltex"
12360 nolink "false"
12361
12362 \end_inset
12363
12364 .
12365  As of 2023 the former has continued to be maintained whereas 
12366 \family sans
12367 Foil\SpecialChar TeX
12368
12369 \family default
12370  has not been maintained since 2008.
12371  
12372 \change_deleted 564990737 1672743492
12373 by 
12374 \noun on
12375 John Weiss
12376 \noun default
12377  
12378 \end_layout
12379
12380 \begin_layout Standard
12381
12382 \change_deleted 564990737 1672743492
12383 Introduction
12384 \end_layout
12385
12386 \begin_layout Standard
12387
12388 \change_deleted 564990737 1672743492
12389 This section describes how to use \SpecialChar LyX
12390  to make slides for overhead projectors.
12391  There are two document classes that can do this:
12392  the default slides class and the 
12393 \family sans
12394 Foil\SpecialChar TeX
12395
12396 \family default
12397  slides class.
12398  This section documents the former.
12399 \end_layout
12400
12401 \begin_layout Standard
12402
12403 \change_deleted 564990737 1672743492
12404 I'm going to say this again,
12405  nice and clear,
12406  so that there's no misunderstanding:
12407 \end_layout
12408
12409 \begin_layout Standard
12410
12411 \change_deleted 564990737 1672743492
12412 \begin_inset VSpace bigskip
12413 \end_inset
12414
12415
12416 \end_layout
12417
12418 \begin_layout Standard
12419 \align center
12420
12421 \change_deleted 564990737 1672743492
12422
12423 \size large
12424 This section documents the class 
12425 \begin_inset Quotes eld
12426 \end_inset
12427
12428
12429 \family sans
12430 slides (default)
12431 \family default
12432
12433 \begin_inset Quotes erd
12434 \end_inset
12435
12436  
12437 \emph on
12438 only.
12439 \end_layout
12440
12441 \begin_layout Standard
12442
12443 \change_deleted 564990737 1672743492
12444 \begin_inset VSpace bigskip
12445 \end_inset
12446
12447
12448 \end_layout
12449
12450 \begin_layout Standard
12451
12452 \change_deleted 564990737 1672743492
12453 If you're looking for the documentation for 
12454 \begin_inset Quotes eld
12455 \end_inset
12456
12457
12458 \family sans
12459 slides (Foil\SpecialChar TeX
12460 )
12461 \family default
12462
12463 \begin_inset Quotes erd
12464 \end_inset
12465
12466 ,
12467  check out section
12468 \begin_inset space ~
12469 \end_inset
12470
12471
12472 \begin_inset CommandInset ref
12473 LatexCommand ref
12474 reference "sec:foiltex"
12475 nolink "false"
12476
12477 \end_inset
12478
12479 .
12480  The 
12481 \family sans
12482 foils
12483 \family default
12484  class [
12485 \begin_inset Quotes eld
12486 \end_inset
12487
12488
12489 \family sans
12490 slides (Foil\SpecialChar TeX
12491 )
12492 \family default
12493
12494 \begin_inset Quotes erd
12495 \end_inset
12496
12497 ] is actually somewhat better than the default 
12498 \family sans
12499 slides
12500 \family default
12501  class,
12502 \begin_inset Foot
12503 status collapsed
12504
12505 \begin_layout Plain Layout
12506 \SpecialChar ldots
12507 or so I've been told repeatedly by its advocates.
12508  Having never used it,
12509  I have no idea if this claim is true or not.
12510 \end_layout
12511
12512 \end_inset
12513
12514  which this section documents.
12515 \end_layout
12516
12517 \begin_layout Standard
12518
12519 \change_deleted 564990737 1672743492
12520 This class is the \SpecialChar LaTeX2e
12521  improvement of the old 
12522 \noun on
12523 Sli\SpecialChar TeX
12524
12525 \noun default
12526  package.
12527  Every \SpecialChar LaTeX2e
12528  distribution includes this class [which I'll just refer to as 
12529 \begin_inset Quotes eld
12530 \end_inset
12531
12532
12533 \family sans
12534 slides
12535 \family default
12536
12537 \begin_inset Quotes erd
12538 \end_inset
12539
12540  from now on],
12541  so you're bound to have it.
12542  As I noted earlier,
12543  there are other classes,
12544  such as 
12545 \family sans
12546 foils
12547 \family default
12548 ,
12549  which also produce slides for overhead projectors and do a better job at it.
12550  However,
12551  there are some things which 
12552 \family sans
12553 slides
12554 \family default
12555  can do which the others can't,
12556  such as generate overlays.
12557  Read on to learn more!
12558 \change_unchanged
12559
12560 \end_layout
12561
12562 \begin_layout Subsubsection
12563 Getting Started
12564 \begin_inset CommandInset label
12565 LatexCommand label
12566 name "sec:slidesetup"
12567
12568 \end_inset
12569
12570
12571 \end_layout
12572
12573 \begin_layout Standard
12574 Obviously,
12575  to use this document class,
12576  you need to select 
12577 \begin_inset Quotes eld
12578 \end_inset
12579
12580
12581 \family sans
12582 slides (default)
12583 \family default
12584
12585 \begin_inset Quotes erd
12586 \end_inset
12587
12588  from the class list in the 
12589 \family sans
12590 Document\SpecialChar menuseparator
12591 Settings
12592 \family default
12593  dialog.
12594  There are some other special things you should know about this class:
12595 \end_layout
12596
12597 \begin_layout Itemize
12598 Don't bother changing the options 
12599 \family sans
12600 Sides and Columns
12601 \family default
12602 .
12603  They're not supported by the 
12604 \family sans
12605 slides
12606 \family default
12607  class,
12608  anyways.
12609 \end_layout
12610
12611 \begin_layout Itemize
12612 The option 
12613 \family sans
12614 Page
12615 \begin_inset space ~
12616 \end_inset
12617
12618 style
12619 \family default
12620  behaves a bit differently for this class.
12621  The possible choices and what they do are as follows:
12622 \end_layout
12623
12624 \begin_deeper
12625 \begin_layout Description
12626
12627 \family sans
12628 plain
12629 \family default
12630  The final output contains page numbers in the lower right corner.
12631 \end_layout
12632
12633 \begin_layout Description
12634
12635 \family sans
12636 headings
12637 \family default
12638  Like 
12639 \family sans
12640 plain
12641 \family default
12642 ,
12643  but also prints out any time markers you've put in.
12644  This is the default.
12645 \end_layout
12646
12647 \begin_layout Description
12648
12649 \family sans
12650 empty
12651 \family default
12652  The final output contains no page numbers,
12653  time markers,
12654  or alignment markers.
12655 \end_layout
12656
12657 \end_deeper
12658 \begin_layout Itemize
12659 The 
12660 \family sans
12661 slides
12662 \family default
12663  class has an extra option:
12664  
12665 \family typewriter
12666 clock
12667 \family default
12668 .
12669  To use it,
12670  put 
12671 \begin_inset Quotes eld
12672 \end_inset
12673
12674
12675 \family typewriter
12676 clock
12677 \family default
12678
12679 \begin_inset Quotes erd
12680 \end_inset
12681
12682  in the extra class options.
12683 \end_layout
12684
12685 \begin_deeper
12686 \begin_layout Standard
12687 Using this options allows you to add time markers to 
12688 \family sans
12689 Note
12690 \family default
12691 s.
12692  See section
12693 \begin_inset space ~
12694 \end_inset
12695
12696
12697 \begin_inset CommandInset ref
12698 LatexCommand ref
12699 reference "sec:slideNote"
12700 nolink "false"
12701
12702 \end_inset
12703
12704  for more details.
12705 \end_layout
12706
12707 \end_deeper
12708 \begin_layout Standard
12709 You can also use the template file
12710 \change_deleted 564990737 1671617694
12711  
12712 \begin_inset Quotes eld
12713 \end_inset
12714
12715
12716 \family typewriter
12717 slides.lyx
12718 \family default
12719
12720 \begin_inset Quotes erd
12721 \end_inset
12722
12723
12724 \change_unchanged
12725  to automatically set up a document to use the 
12726 \family sans
12727 slides
12728 \family default
12729  class 
12730 \change_deleted 564990737 1671617699
12731 [
12732 \change_unchanged
12733 using 
12734 \family sans
12735 File\SpecialChar menuseparator
12736 New
12737 \begin_inset space ~
12738 \end_inset
12739
12740 from
12741 \begin_inset space ~
12742 \end_inset
12743
12744 Template
12745 \change_inserted 564990737 1671617723
12746 \SpecialChar menuseparator
12747 Presentations\SpecialChar menuseparator
12748 Slides
12749 \change_unchanged
12750
12751 \family default
12752  to open your new document
12753 \change_deleted 564990737 1671617728
12754 ]
12755 \change_unchanged
12756 .
12757  The template file also contains some examples of the special paragraph environments used by this class.
12758  I'll describe those next.
12759 \end_layout
12760
12761 \begin_layout Subsubsection
12762 Paragraph Environments
12763 \end_layout
12764
12765 \begin_layout Paragraph
12766 Supported Environments
12767 \end_layout
12768
12769 \begin_layout Standard
12770 The first thing you'll notice when you start up a new 
12771 \family sans
12772 slides
12773 \family default
12774  document is the font size and type:
12775  it's the equivalent of the size 
12776 \begin_inset Quotes eld
12777 \end_inset
12778
12779
12780 \family sans
12781 Largest
12782 \family default
12783
12784 \begin_inset Quotes erd
12785 \end_inset
12786
12787  in the 
12788 \family sans
12789 Sans
12790 \begin_inset space ~
12791 \end_inset
12792
12793 Serif
12794 \family default
12795  font.
12796  This is also what's used in the output.
12797  Think of this as a 
12798 \begin_inset Quotes eld
12799 \end_inset
12800
12801 visual cue
12802 \begin_inset Quotes erd
12803 \end_inset
12804
12805  to remind you that this is a slide.
12806  Your final slides will use a larger font;
12807  ergo,
12808  you'll have less space.
12809  Of course,
12810  the larger default screen font isn't WYSIWYG,
12811  only a reminder.
12812 \end_layout
12813
12814 \begin_layout Standard
12815 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
12816  Most of the paragraph environments you're used to seeing are missing.
12817  There are also five new ones.
12818  That's because the 
12819 \family sans
12820 slides
12821 \family default
12822  class itself only supports certain paragraph environments:
12823 \end_layout
12824
12825 \begin_layout Itemize
12826
12827 \family sans
12828 Standard
12829 \end_layout
12830
12831 \begin_layout Itemize
12832
12833 \family sans
12834 Itemize
12835 \end_layout
12836
12837 \begin_layout Itemize
12838
12839 \family sans
12840 Enumerate
12841 \end_layout
12842
12843 \begin_layout Itemize
12844
12845 \family sans
12846 Description
12847 \end_layout
12848
12849 \begin_layout Itemize
12850
12851 \family sans
12852 List
12853 \end_layout
12854
12855 \begin_layout Itemize
12856
12857 \family sans
12858 Quotation
12859 \end_layout
12860
12861 \begin_layout Itemize
12862
12863 \family sans
12864 Quote
12865 \end_layout
12866
12867 \begin_layout Itemize
12868
12869 \family sans
12870 Verse
12871 \end_layout
12872
12873 \begin_layout Itemize
12874
12875 \family sans
12876 Caption
12877 \end_layout
12878
12879 \begin_layout Itemize
12880
12881 \family sans
12882 \SpecialChar LyX
12883 -Code
12884 \end_layout
12885
12886 \begin_layout Standard
12887 All of the other standard environments,
12888  including the section-heading environments,
12889  aren't used in the 
12890 \family sans
12891 slides
12892 \family default
12893  class.
12894 \end_layout
12895
12896 \begin_layout Standard
12897 On the other hand,
12898  you'll notice the following new environments:
12899 \end_layout
12900
12901 \begin_layout Itemize
12902
12903 \family sans
12904 Slide
12905 \end_layout
12906
12907 \begin_layout Itemize
12908
12909 \family sans
12910 Overlay
12911 \end_layout
12912
12913 \begin_layout Itemize
12914
12915 \family sans
12916 Note
12917 \end_layout
12918
12919 \begin_layout Itemize
12920
12921 \family sans
12922 InvisibleText
12923 \end_layout
12924
12925 \begin_layout Itemize
12926
12927 \family sans
12928 VisibleText
12929 \end_layout
12930
12931 \begin_layout Standard
12932 These five are kind of quirky,
12933  due to a 
12934 \begin_inset Quotes eld
12935 \end_inset
12936
12937 feature
12938 \begin_inset Quotes erd
12939 \end_inset
12940
12941  in \SpecialChar LyX
12942 .
12943  You see,
12944  \SpecialChar LyX
12945  doesn't permit you to nest any other paragraph environment into an empty environment.
12946  Now,
12947  that's fine and dandy,
12948  but it means that you wouldn't be able to start a slide with anything except plain text.
12949  To deal with this,
12950  I've performed a little 
12951 \begin_inset Quotes eld
12952 \end_inset
12953
12954 \SpecialChar LaTeX
12955  magic.
12956 \begin_inset Quotes erd
12957 \end_inset
12958
12959  
12960 \end_layout
12961
12962 \begin_layout Paragraph
12963 Quirks of the New Environments
12964 \begin_inset CommandInset label
12965 LatexCommand label
12966 name "sec:slideQuirk"
12967
12968 \end_inset
12969
12970
12971 \end_layout
12972
12973 \begin_layout Standard
12974 All five of the new paragraph environments are somewhat quirky due to inherent limitiations in the current version of \SpecialChar LyX
12975 .
12976  As I just mentioned,
12977  \SpecialChar LyX
12978  forbids environments that begin with another environment.
12979  To get around this,
12980  the 
12981 \family sans
12982 Slide
12983 \family default
12984  environment isn't a paragraph environment as described in the 
12985 \emph on
12986 User's Guide
12987 \emph default
12988 .
12989  
12990 \end_layout
12991
12992 \begin_layout Standard
12993 You should consider 
12994 \family sans
12995 Slide
12996 \family default
12997 ,
12998  
12999 \family sans
13000 Overlay
13001 \family default
13002 ,
13003  and 
13004 \family sans
13005 Note
13006 \family default
13007  to be 
13008 \begin_inset Quotes eld
13009 \end_inset
13010
13011 pseudo-environments.
13012 \begin_inset Quotes erd
13013 \end_inset
13014
13015  They look like a section heading or a 
13016 \begin_inset Quotes eld
13017 \end_inset
13018
13019
13020 \family sans
13021 Caption
13022 \family default
13023 ,
13024 \begin_inset Quotes erd
13025 \end_inset
13026
13027  but really begin a [and,
13028  if necessary,
13029  end the previous] paragraph environment.
13030  Likewise,
13031  treat 
13032 \family sans
13033 InvisibleText
13034 \family default
13035  and 
13036 \family sans
13037 VisibleText
13038 \family default
13039  as 
13040 \begin_inset Quotes eld
13041 \end_inset
13042
13043 pseudo-commands.
13044 \begin_inset Quotes erd
13045 \end_inset
13046
13047  These two perform some action.
13048 \end_layout
13049
13050 \begin_layout Standard
13051 A common feature of all five environments,
13052  
13053 \family sans
13054 Slide
13055 \family default
13056 ,
13057  
13058 \family sans
13059 Overlay
13060 \family default
13061 ,
13062  
13063 \family sans
13064 Note
13065 \family default
13066 ,
13067  
13068 \family sans
13069 InvisibleText
13070 \family default
13071  and 
13072 \family sans
13073 VisibleText
13074 \family default
13075 ,
13076  is a rather long-ish label.
13077  The text following this label —
13078  ordinarily the contents of the paragraph environment —
13079  is utterly irrelevant for 
13080 \family sans
13081 Slide
13082 \family default
13083 ,
13084  
13085 \family sans
13086 Overlay
13087 \family default
13088 ,
13089  
13090 \family sans
13091 Note
13092 \family default
13093 ,
13094  
13095 \family sans
13096 InvisibleText
13097 \family default
13098  and 
13099 \family sans
13100 VisibleText
13101 \family default
13102 .
13103  \SpecialChar LyX
13104  completely ignores it.
13105  In fact,
13106  you can leave these five environments completely empty.
13107  
13108 \end_layout
13109
13110 \begin_layout Standard
13111 While you don't 
13112 \emph on
13113 have
13114 \emph default
13115  to put any text after the rather long-ish label,
13116  you might want to.
13117  This could be a short description of the contents of the 
13118 \family sans
13119 Slide
13120 \family default
13121 ,
13122  for example.
13123  In that case,
13124  enter your descriptive comment and hit 
13125 \family sans
13126 Return
13127 \family default
13128  as you normally would.
13129 \end_layout
13130
13131 \begin_layout Standard
13132 If,
13133  on the other hand,
13134  you don't want to enter any descriptive text,
13135  you'll hit another \SpecialChar LyX
13136  quirk.
13137  \SpecialChar LyX
13138 ,
13139  like nature,
13140  abhors a vacuum,
13141  and will not let you start a new paragraph environment until you put something in the old one.
13142  So,
13143  do this:
13144 \end_layout
13145
13146 \begin_layout Itemize
13147 Start entering the text that will 
13148 \emph on
13149 follow
13150 \emph default
13151  the new 
13152 \family sans
13153 Slide
13154 \family default
13155 ,
13156  
13157 \family sans
13158 Overlay
13159 \family default
13160 ,
13161  
13162 \family sans
13163 Note
13164 \family default
13165 ,
13166  
13167 \family sans
13168 InvisibleText
13169 \family default
13170  or 
13171 \family sans
13172 VisibleText
13173 \family default
13174 .
13175  
13176 \end_layout
13177
13178 \begin_layout Itemize
13179 Now move to the beginning of that paragraph.
13180  
13181 \end_layout
13182
13183 \begin_layout Itemize
13184 Next,
13185  hit 
13186 \family sans
13187 Return
13188 \family default
13189 .
13190  
13191 \end_layout
13192
13193 \begin_layout Itemize
13194 Finally,
13195  change this new,
13196  empty paragraph to a 
13197 \family sans
13198 Slide
13199 \family default
13200 ,
13201  
13202 \family sans
13203 Overlay
13204 \family default
13205 ,
13206  
13207 \family sans
13208 Note
13209 \family default
13210 ,
13211  
13212 \family sans
13213 InvisibleText
13214 \family default
13215  or 
13216 \family sans
13217 VisibleText
13218 \family default
13219 .
13220  
13221 \end_layout
13222
13223 \begin_layout Standard
13224 Some future version of \SpecialChar LyX
13225  will,
13226  hopefully,
13227  resolve this quirkiness\SpecialChar ldots
13228
13229 \end_layout
13230
13231 \begin_layout Subsubsection
13232 Making a Presentation with 
13233 \family sans
13234 Slide
13235 \family default
13236 ,
13237  
13238 \family sans
13239 Overlay
13240 \family default
13241  and 
13242 \family sans
13243 Note
13244 \end_layout
13245
13246 \begin_layout Paragraph
13247 Using the 
13248 \family sans
13249 Slide
13250 \family default
13251  Environment
13252 \end_layout
13253
13254 \begin_layout Standard
13255 If you're expecting this section to teach you how to actually make a presentation,
13256  you'll be sorely disappointed.
13257  Naturally,
13258  I'll describe all of the ways the 
13259 \family sans
13260 slides
13261 \family default
13262  class can assist you in preparing the materials for a presentation.
13263  Filling in the contents,
13264  however,
13265  is up to you.
13266  [Then again,
13267  that 
13268 \emph on
13269 is
13270 \emph default
13271  the \SpecialChar LyX
13272  philosophy.]
13273 \end_layout
13274
13275 \begin_layout Standard
13276 Choosing the 
13277 \family sans
13278 Slide
13279 \family default
13280  environment [in the manner described in section
13281 \begin_inset space ~
13282 \end_inset
13283
13284
13285 \begin_inset CommandInset ref
13286 LatexCommand ref
13287 reference "sec:slideQuirk"
13288 nolink "false"
13289
13290 \end_inset
13291
13292 ] tells \SpecialChar LyX
13293  to begin a new slide [duh].
13294  The label for this environment/
13295 \begin_inset Quotes erd
13296 \end_inset
13297
13298 pseudo-command
13299 \begin_inset Quotes erd
13300 \end_inset
13301
13302  is an 
13303 \begin_inset Quotes eld
13304 \end_inset
13305
13306 ASCII line,
13307 \begin_inset Quotes erd
13308 \end_inset
13309
13310  in cool blue,
13311  followed by the label,
13312  
13313 \begin_inset Quotes eld
13314 \end_inset
13315
13316 NewSlide:
13317 \begin_inset Quotes erd
13318 \end_inset
13319
13320 .
13321  Any text or paragraph environments that follow this one go on the new slide.
13322  It's that simple.
13323 \end_layout
13324
13325 \begin_layout Standard
13326 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
13327  (this can be specified in the 
13328 \family sans
13329 Paragraph Layout
13330 \family default
13331  dialog).
13332  In fact,
13333  you'll want to,
13334  once you finish entering the contents of one slide.
13335  If you've entered more text than can physically fit on a slide,
13336  the extra overflows onto a new slide.
13337  I don't recommend doing this,
13338  however,
13339  since the overflow slide won't have any page number on it.
13340  Furthermore,
13341  it may interfere with any 
13342 \family sans
13343 Overlay
13344 \family default
13345  you've made to accompany the oversized 
13346 \family sans
13347 Slide
13348 \family default
13349 .
13350 \end_layout
13351
13352 \begin_layout Standard
13353 The 
13354 \family sans
13355 Overlay
13356 \family default
13357  and 
13358 \family sans
13359 Note
13360 \family default
13361  environments work the same way as the 
13362 \family sans
13363 Slide
13364 \family default
13365  environment.
13366  They both create an 
13367 \begin_inset Quotes eld
13368 \end_inset
13369
13370 ASCII line
13371 \begin_inset Quotes erd
13372 \end_inset
13373
13374  followed by a label [
13375 \begin_inset Quotes eld
13376 \end_inset
13377
13378 NewOverlay:
13379 \begin_inset Quotes erd
13380 \end_inset
13381
13382  and 
13383 \begin_inset Quotes eld
13384 \end_inset
13385
13386 NewNote:
13387 \begin_inset Quotes erd
13388 \end_inset
13389
13390 ,
13391  respectively].
13392  The color is a stunning magenta instead of blue,
13393  and the 
13394 \begin_inset Quotes eld
13395 \end_inset
13396
13397 ASCII line
13398 \begin_inset Quotes erd
13399 \end_inset
13400
13401  will look different,
13402  in style and in length.
13403  The label fonts of all three also differ from one another.
13404 \end_layout
13405
13406 \begin_layout Standard
13407 As with a 
13408 \family sans
13409 Slide
13410 \family default
13411 ,
13412  if the contents of a 
13413 \family sans
13414 Note
13415 \family default
13416  or 
13417 \family sans
13418 Overlay
13419 \family default
13420  exceed the physical size of a slide or sheet of paper,
13421  the extra will overflow onto a new sheet.
13422  Again,
13423  you should avoid this.
13424  It defeats the whole purpose of 
13425 \family sans
13426 Note
13427 \family default
13428 s and 
13429 \family sans
13430 Overlay
13431 \family default
13432 s.
13433 \end_layout
13434
13435 \begin_layout Paragraph
13436 Using 
13437 \family sans
13438 Overlay
13439 \family default
13440  with 
13441 \family sans
13442 Slide
13443 \end_layout
13444
13445 \begin_layout Standard
13446 The idea behind an 
13447 \family sans
13448 Overlay
13449 \family default
13450  is a slide that sits atop another slide.
13451  Perhaps you wish to discuss a figure on the main 
13452 \family sans
13453 Slide
13454 \family default
13455  before displaying the text associated with it.
13456  One way to accomplish this is tape a flap of dark paper over the part of the 
13457 \family sans
13458 Slide
13459 \family default
13460  you want to display later.
13461  This method fails,
13462  however,
13463  if you wish to overlap one graph with another,
13464  for example.
13465  You would then have to fumble while speaking to align the two separate,
13466  overlapping 
13467 \family sans
13468 Slide
13469 \family default
13470 s to align the two graphs.
13471  The use of an 
13472 \family sans
13473 Overlay
13474 \family default
13475  environment in both cases makes life much easier.
13476 \end_layout
13477
13478 \begin_layout Standard
13479 Each 
13480 \family sans
13481 Overlay
13482 \family default
13483  receives the page number of its 
13484 \begin_inset Quotes eld
13485 \end_inset
13486
13487 parent
13488 \begin_inset Quotes erd
13489 \end_inset
13490
13491  
13492 \family sans
13493 Slide
13494 \family default
13495 ,
13496  appended by 
13497 \begin_inset Quotes eld
13498 \end_inset
13499
13500
13501 \family typewriter
13502 -a
13503 \family default
13504
13505 \begin_inset Quotes erd
13506 \end_inset
13507
13508 .
13509 \begin_inset Foot
13510 status collapsed
13511
13512 \begin_layout Plain Layout
13513 Presumably,
13514  mutliple 
13515 \family sans
13516 Overlay
13517 \family default
13518 s would have 
13519 \begin_inset Quotes eld
13520 \end_inset
13521
13522
13523 \family typewriter
13524 -a
13525 \family default
13526
13527 \begin_inset Quotes erd
13528 \end_inset
13529
13530 ,
13531  
13532 \begin_inset Quotes eld
13533 \end_inset
13534
13535
13536 \family typewriter
13537 -b
13538 \family default
13539
13540 \begin_inset Quotes erd
13541 \end_inset
13542
13543 ,
13544  
13545 \begin_inset Quotes eld
13546 \end_inset
13547
13548
13549 \family typewriter
13550 -c
13551 \family default
13552
13553 \begin_inset Quotes erd
13554 \end_inset
13555
13556 ,
13557  etc.
13558 \begin_inset space ~
13559 \end_inset
13560
13561 appended to the page number of the parent 
13562 \family sans
13563 Slide
13564 \family default
13565 .
13566  
13567 \end_layout
13568
13569 \end_inset
13570
13571  Clearly,
13572  you want the contents of both the 
13573 \family sans
13574 Slide
13575 \family default
13576  and the 
13577 \family sans
13578 Overlay
13579 \family default
13580  to each fit on a single physical slide!
13581  You should probably consider an 
13582 \family sans
13583 Overlay
13584 \family default
13585  as 
13586 \begin_inset Quotes eld
13587 \end_inset
13588
13589 part of
13590 \begin_inset Quotes erd
13591 \end_inset
13592
13593  a 
13594 \family sans
13595 Slide
13596 \family default
13597 .
13598  Indeed,
13599  the \SpecialChar LyX
13600  
13601 \family sans
13602 slides
13603 \family default
13604  class provides a visual cue for this:
13605  the label at the start of an 
13606 \family sans
13607 Overlay
13608 \family default
13609  is shorter than that at the start of a 
13610 \family sans
13611 Slide
13612 \family default
13613 .
13614  Lastly,
13615  when you generate printable output,
13616  you'll find alignment markers in all four corners of both the 
13617 \family sans
13618 Overlay
13619 \family default
13620  page and its parent 
13621 \family sans
13622 Slide
13623 \family default
13624 .
13625  These will assist you in lining up the two physical slides.
13626 \end_layout
13627
13628 \begin_layout Standard
13629 The major problem in overlaying two slides is aligning the contents of the two transparencies.
13630  How much space should you leave for that graph on the second slide?
13631  Worse still,
13632  what if you want a graph and a sentence on second slide,
13633  but there is text on the main transparency that goes in between them?
13634  You could try and insert vertical space of the right size.
13635  The better way is to use 
13636 \family sans
13637 InvisibleText
13638 \family default
13639  and 
13640 \family sans
13641 VisibleText
13642 \family default
13643 .
13644 \end_layout
13645
13646 \begin_layout Standard
13647 As their names imply,
13648  
13649 \family sans
13650 InvisibleText
13651 \family default
13652  and 
13653 \family sans
13654 VisibleText
13655 \family default
13656  are two command-like paragraph environments that make all subsequent text invisible and visible,
13657  respectively.
13658  Note from section
13659 \begin_inset space ~
13660 \end_inset
13661
13662
13663 \begin_inset CommandInset ref
13664 LatexCommand ref
13665 reference "sec:slideQuirk"
13666 nolink "false"
13667
13668 \end_inset
13669
13670  that you don't place anything 
13671 \emph on
13672 into
13673 \emph default
13674  these two environments,
13675  however.
13676  When you create an 
13677 \family sans
13678 InvisibleText
13679 \family default
13680 ,
13681  it inserts a centered,
13682  sky-blue label into the page reading 
13683 \begin_inset Quotes eld
13684 \end_inset
13685
13686 <Invisible Text Follows>
13687 \begin_inset Quotes erd
13688 \end_inset
13689
13690 .
13691  For paragraphs following this label,
13692  the parts of the 
13693 \family sans
13694 Slide
13695 \family default
13696  [or 
13697 \family sans
13698 Overlay
13699 \family default
13700 ;
13701  it doesn't matter which] where they would be contain instead blank space.
13702  
13703 \end_layout
13704
13705 \begin_layout Standard
13706 For 
13707 \family sans
13708 VisibleText
13709 \family default
13710 ,
13711  the corresponding centered label is 
13712 \begin_inset Quotes eld
13713 \end_inset
13714
13715 <Visible Text Follows>
13716 \begin_inset Quotes erd
13717 \end_inset
13718
13719  in blazing green.
13720  Paragraphs following this label behave normally.
13721  Note that the beginning of a new 
13722 \family sans
13723 Slide
13724 \family default
13725 ,
13726  
13727 \family sans
13728 Overlay
13729 \family default
13730 ,
13731  or 
13732 \family sans
13733 Note
13734 \family default
13735  automatically shuts off an 
13736 \family sans
13737 InvisibleText
13738 \family default
13739 .
13740  It's therefore not necessary to use 
13741 \family sans
13742 VisibleText
13743 \family default
13744  at the end of a 
13745 \family sans
13746 Slide
13747 \family default
13748 .
13749 \end_layout
13750
13751 \begin_layout Standard
13752 By now,
13753  it should be obvious how to create overlay transparencies using the proper combination of 
13754 \family sans
13755 InvisibleText
13756 \family default
13757  and 
13758 \family sans
13759 VisibleText
13760 \family default
13761  on a 
13762 \family sans
13763 Slide
13764 \family default
13765  and 
13766 \family sans
13767 Overlay
13768 \family default
13769 :
13770 \end_layout
13771
13772 \begin_layout Enumerate
13773 Create a 
13774 \family sans
13775 Slide
13776 \family default
13777 ,
13778  including everything that will appear on it,
13779  whether on the main slide or on the 
13780 \family sans
13781 Overlay
13782 \family default
13783 .
13784 \end_layout
13785
13786 \begin_layout Enumerate
13787 Before each figure or paragraph that will appear only on the 
13788 \family sans
13789 Overlay
13790 \family default
13791 ,
13792  insert an 
13793 \family sans
13794 InvisibleText
13795 \family default
13796  environment.
13797  If necessary,
13798  insert a 
13799 \family sans
13800 VisibleText
13801 \family default
13802  environment after the 
13803 \family sans
13804 Overlay
13805 \family default
13806 -only text.
13807 \end_layout
13808
13809 \begin_layout Enumerate
13810 Start an 
13811 \family sans
13812 Overlay
13813 \family default
13814  immediately following the 
13815 \family sans
13816 Slide
13817 \family default
13818 .
13819 \end_layout
13820
13821 \begin_layout Enumerate
13822 Copy the contents of this 
13823 \family sans
13824 Slide
13825 \family default
13826  into the 
13827 \family sans
13828 Overlay
13829 \family default
13830 .
13831 \end_layout
13832
13833 \begin_layout Enumerate
13834 Within the 
13835 \family sans
13836 Overlay
13837 \family default
13838 ,
13839  change all of the 
13840 \family sans
13841 InvisibleText
13842 \family default
13843  lines to 
13844 \family sans
13845 VisibleText
13846 \family default
13847  and vice-versa.
13848 \end_layout
13849
13850 \begin_layout Standard
13851 That's it.
13852  You've just made an 
13853 \family sans
13854 Overlay
13855 \family default
13856 .
13857 \end_layout
13858
13859 \begin_layout Standard
13860 There's one problem with the way I've designed the \SpecialChar LyX
13861  
13862 \family sans
13863 slides
13864 \family default
13865  class:
13866  you can't make text in the middle of a paragraph invisible,
13867  nor make text in the middle of an invisible paragraph visible again.
13868  To accomplish this feat,
13869  you'll need to use some inlined \SpecialChar LaTeX
13870  codes.
13871 \begin_inset Foot
13872 status collapsed
13873
13874 \begin_layout Plain Layout
13875 The commands of interest are:
13876  
13877 \end_layout
13878
13879 \begin_layout Itemize
13880
13881 \family typewriter
13882 {
13883 \backslash
13884 invisible \SpecialChar ldots
13885  }
13886 \end_layout
13887
13888 \begin_layout Itemize
13889
13890 \family typewriter
13891 {
13892 \backslash
13893 visible \SpecialChar ldots
13894  }
13895 \end_layout
13896
13897 \begin_layout Plain Layout
13898 \SpecialChar ldots
13899 and need to be marked as \SpecialChar TeX
13900 .
13901  The text whose 
13902 \begin_inset Quotes eld
13903 \end_inset
13904
13905 visibility
13906 \begin_inset Quotes erd
13907 \end_inset
13908
13909  you wish to change goes in between the brackets [and after the 
13910 \family typewriter
13911
13912 \backslash
13913 invisible
13914 \family default
13915  or 
13916 \family typewriter
13917
13918 \backslash
13919 visible
13920 \family default
13921  command].
13922  If you don't know how to mark text as \SpecialChar TeX
13923 ,
13924  see the appropriate section of the 
13925 \emph on
13926 User's Guide
13927 \emph default
13928 .
13929 \end_layout
13930
13931 \end_inset
13932
13933
13934 \end_layout
13935
13936 \begin_layout Paragraph
13937 Using 
13938 \family sans
13939 Note
13940 \family default
13941  with 
13942 \family sans
13943 Slide
13944 \family default
13945
13946 \begin_inset CommandInset label
13947 LatexCommand label
13948 name "sec:slideNote"
13949
13950 \end_inset
13951
13952
13953 \end_layout
13954
13955 \begin_layout Standard
13956 Like an 
13957 \family sans
13958 Overlay
13959 \family default
13960 ,
13961  a 
13962 \family sans
13963 Note
13964 \family default
13965  is associated with a 
13966 \begin_inset Quotes eld
13967 \end_inset
13968
13969 parent
13970 \begin_inset Quotes erd
13971 \end_inset
13972
13973  
13974 \family sans
13975 Slide
13976 \family default
13977 .
13978  Here,
13979  too,
13980  the \SpecialChar LyX
13981  
13982 \family sans
13983 slides
13984 \family default
13985  class provides visual cues.
13986  The label for a 
13987 \family sans
13988 Note
13989 \family default
13990  is shorter than that of a 
13991 \family sans
13992 Slide
13993 \family default
13994  [yet longer than that of an 
13995 \family sans
13996 Overlay
13997 \family default
13998 ] and,
13999  like the label of an 
14000 \family sans
14001 Overlay
14002 \family default
14003  is shockingly magenta.
14004  Additionally,
14005  the printed 
14006 \family sans
14007 Note
14008 \family default
14009  has the page number of its 
14010 \begin_inset Quotes eld
14011 \end_inset
14012
14013 parent
14014 \begin_inset Quotes erd
14015 \end_inset
14016
14017  
14018 \family sans
14019 Slide
14020 \family default
14021 ,
14022  appended by 
14023 \begin_inset Quotes eld
14024 \end_inset
14025
14026
14027 \family typewriter
14028 -
14029 \family default
14030 1
14031 \begin_inset Quotes erd
14032 \end_inset
14033
14034 ,
14035  
14036 \begin_inset Quotes eld
14037 \end_inset
14038
14039
14040 \family typewriter
14041 -
14042 \family default
14043 2
14044 \begin_inset Quotes erd
14045 \end_inset
14046
14047 ,
14048  
14049 \begin_inset Quotes eld
14050 \end_inset
14051
14052
14053 \family typewriter
14054 -
14055 \family default
14056 3
14057 \begin_inset Quotes erd
14058 \end_inset
14059
14060 ,
14061  etc.
14062  You can have multiple 
14063 \family sans
14064 Note
14065 \family default
14066 s associated with a single 
14067 \family sans
14068 Slide
14069 \family default
14070 ,
14071  and,
14072  as with 
14073 \family sans
14074 Slide
14075 \family default
14076  and 
14077 \family sans
14078 Overlay
14079 \family default
14080 ,
14081  you'll probably want to break up long 
14082 \family sans
14083 Note
14084 \family default
14085 s so that they fit on a single sheet of paper.
14086 \end_layout
14087
14088 \begin_layout Standard
14089 The purpose of a 
14090 \family sans
14091 Note
14092 \family default
14093  is obvious:
14094  it contains anything additional you might want to say about a 
14095 \family sans
14096 Slide
14097 \family default
14098 .
14099  It could also be used as a sheet of reminders for a particular 
14100 \family sans
14101 Slide
14102 \family default
14103 .
14104  In the case of the latter,
14105  you might want to make use of time markers.
14106  Currently,
14107  the \SpecialChar LyX
14108  
14109 \family sans
14110 slides
14111 \family default
14112  class has no 
14113 \begin_inset Quotes eld
14114 \end_inset
14115
14116 native
14117 \begin_inset Quotes erd
14118 \end_inset
14119
14120  support for time markers,
14121  a 
14122 \noun on
14123 Sli\SpecialChar TeX
14124
14125 \noun default
14126  feature.
14127  So,
14128  you'll have to resort to using the \SpecialChar LaTeX
14129  codes.
14130 \end_layout
14131
14132 \begin_layout Standard
14133 To use time markers,
14134  you'll need to specify the extra class option 
14135 \begin_inset Quotes eld
14136 \end_inset
14137
14138
14139 \family typewriter
14140 clock
14141 \family default
14142
14143 \begin_inset Quotes erd
14144 \end_inset
14145
14146  [see section
14147 \begin_inset space ~
14148 \end_inset
14149
14150
14151 \begin_inset CommandInset ref
14152 LatexCommand ref
14153 reference "sec:slidesetup"
14154 nolink "false"
14155
14156 \end_inset
14157
14158 ].
14159  This option turns on timing marks,
14160  which will appear in the lower-left-hand corner of every 
14161 \family sans
14162 Note
14163 \family default
14164  you generate.
14165  To set what appears in the time marker,
14166  you use the \SpecialChar LaTeX
14167  commands 
14168 \begin_inset Quotes eld
14169 \end_inset
14170
14171
14172 \family typewriter
14173
14174 \backslash
14175 settime{}
14176 \family default
14177
14178 \begin_inset Quotes erd
14179 \end_inset
14180
14181  and 
14182 \begin_inset Quotes eld
14183 \end_inset
14184
14185
14186 \family typewriter
14187
14188 \backslash
14189 addtime{}
14190 \family default
14191
14192 \begin_inset Quotes erd
14193 \end_inset
14194
14195 .
14196  The arguments of both commands are time measured in seconds.
14197  
14198 \begin_inset Quotes eld
14199 \end_inset
14200
14201
14202 \family typewriter
14203
14204 \backslash
14205 settime{}
14206 \family default
14207
14208 \begin_inset Quotes erd
14209 \end_inset
14210
14211  sets the time marker to a given time.
14212  
14213 \begin_inset Quotes eld
14214 \end_inset
14215
14216
14217 \family typewriter
14218
14219 \backslash
14220 addtime{}
14221 \family default
14222
14223 \begin_inset Quotes erd
14224 \end_inset
14225
14226  increments the time marker by the specified amount.
14227  Using time markers and 
14228 \family sans
14229 Note
14230 \family default
14231 s in this fashion,
14232  you can remind yourself how much time to spend on a particular 
14233 \family sans
14234 Slide
14235 \family default
14236 .
14237 \end_layout
14238
14239 \begin_layout Standard
14240 There's one last feature to describe.
14241  Clearly,
14242  you'd like to print out all of your 
14243 \family sans
14244 Slide
14245 \family default
14246 s and 
14247 \family sans
14248 Overlay
14249 \family default
14250 s on transparencies while printing all of your 
14251 \family sans
14252 Note
14253 \family default
14254 s on plain paper.
14255  However,
14256  a 
14257 \family sans
14258 Note
14259 \family default
14260  
14261 \emph on
14262 must
14263 \emph default
14264  follow the 
14265 \family sans
14266 Slide
14267 \family default
14268  with which it is associated.
14269  What's a person to do?
14270 \end_layout
14271
14272 \begin_layout Standard
14273 Luckily,
14274  there are two \SpecialChar LaTeX
14275  commands that allow you to select what to print out.
14276  Both must be placed into the preamble of your document.
14277  The command 
14278 \begin_inset Quotes eld
14279 \end_inset
14280
14281
14282 \family typewriter
14283
14284 \backslash
14285 onlyslides{
14286 \backslash
14287 slides}
14288 \family default
14289
14290 \begin_inset Quotes erd
14291 \end_inset
14292
14293  will cause the output to contain only the 
14294 \family sans
14295 Slide
14296 \family default
14297 s and 
14298 \family sans
14299 Overlay
14300 \family default
14301 s.
14302  Correspondingly,
14303  the command 
14304 \begin_inset Quotes eld
14305 \end_inset
14306
14307
14308 \family typewriter
14309
14310 \backslash
14311 onlynotes{
14312 \backslash
14313 notes}
14314 \family default
14315
14316 \begin_inset Quotes erd
14317 \end_inset
14318
14319  prevents the output of anything but 
14320 \family sans
14321 Note
14322 \family default
14323 s.
14324  I'd advise placing both commands in the preamble and initially comment both out.
14325  You can then preview your entire presentation as you write.
14326  When you're done writing,
14327  you can then uncomment one of the two to select what you want to print.
14328  I like to uncomment 
14329 \begin_inset Quotes eld
14330 \end_inset
14331
14332
14333 \family typewriter
14334
14335 \backslash
14336 onlyslides{
14337 \backslash
14338 slides}
14339 \family default
14340
14341 \begin_inset Quotes erd
14342 \end_inset
14343
14344  ,
14345  print to a file with 
14346 \begin_inset Quotes eld
14347 \end_inset
14348
14349
14350 \family typewriter
14351 -slides
14352 \family default
14353
14354 \begin_inset Quotes erd
14355 \end_inset
14356
14357  in its name,
14358  comment it back out,
14359  then uncomment 
14360 \begin_inset Quotes eld
14361 \end_inset
14362
14363
14364 \family typewriter
14365
14366 \backslash
14367 onlynotes{
14368 \backslash
14369 notes}
14370 \family default
14371
14372 \begin_inset Quotes erd
14373 \end_inset
14374
14375  and print to a 
14376 \begin_inset Quotes eld
14377 \end_inset
14378
14379
14380 \family typewriter
14381 *-notes.ps
14382 \family default
14383
14384 \begin_inset Quotes erd
14385 \end_inset
14386
14387  file.
14388  I can then send either file to a printer,
14389  loading transparencies or plain paper as appropriate.
14390 \end_layout
14391
14392 \begin_layout Standard
14393 You can also provide other arguments to the 
14394 \begin_inset Quotes eld
14395 \end_inset
14396
14397
14398 \family typewriter
14399
14400 \backslash
14401 onlyslides{}
14402 \family default
14403
14404 \begin_inset Quotes erd
14405 \end_inset
14406
14407  and 
14408 \begin_inset Quotes eld
14409 \end_inset
14410
14411
14412 \family typewriter
14413
14414 \backslash
14415 onlynotes{}
14416 \family default
14417
14418 \begin_inset Quotes erd
14419 \end_inset
14420
14421  commands.
14422  See a good \SpecialChar LaTeX
14423  book for details.
14424 \end_layout
14425
14426 \begin_layout Subsubsection
14427 The 
14428 \family sans
14429 slides
14430 \family default
14431  Class Template File
14432 \end_layout
14433
14434 \begin_layout Standard
14435 I have also provided a template file
14436 \change_deleted 564990737 1671617750
14437 ,
14438  
14439 \begin_inset Quotes eld
14440 \end_inset
14441
14442
14443 \family typewriter
14444 slides.lyx
14445 \family default
14446
14447 \begin_inset Quotes erd
14448 \end_inset
14449
14450 ,
14451
14452 \change_unchanged
14453  with the 
14454 \family sans
14455 slides
14456 \family default
14457  class.
14458  To use it,
14459  begin your new presentation with 
14460 \family sans
14461 File\SpecialChar menuseparator
14462 New
14463 \begin_inset space ~
14464 \end_inset
14465
14466 from
14467 \begin_inset space ~
14468 \end_inset
14469
14470 Template
14471 \change_inserted 564990737 1671616988
14472 \SpecialChar menuseparator
14473 Presentations\SpecialChar menuseparator
14474 Slides
14475 \change_unchanged
14476
14477 \family default
14478 .
14479  Your new \SpecialChar LyX
14480  presentation file will contain an example 
14481 \family sans
14482 Slide
14483 \family default
14484  – 
14485 \family sans
14486 Overlay
14487 \family default
14488  – 
14489 \family sans
14490 Note
14491 \family default
14492  triplet.
14493  The 
14494 \family sans
14495 Slide
14496 \family default
14497  and 
14498 \family sans
14499 Overlay
14500 \family default
14501  additionally contain an example of the use of 
14502 \family sans
14503 InvisibleText
14504 \family default
14505  and 
14506 \family sans
14507 VisibleText
14508 \family default
14509 .
14510  Lastly,
14511  the preamble will contain:
14512 \end_layout
14513
14514 \begin_layout LyX-Code
14515 % Uncomment to print out only slides and overlays
14516 \end_layout
14517
14518 \begin_layout LyX-Code
14519 %
14520 \end_layout
14521
14522 \begin_layout LyX-Code
14523 %
14524 \backslash
14525 onlyslides{
14526 \backslash
14527 slides}
14528 \begin_inset Newline newline
14529 \end_inset
14530
14531  
14532 \end_layout
14533
14534 \begin_layout LyX-Code
14535 % Uncomment to print out only notes
14536 \end_layout
14537
14538 \begin_layout LyX-Code
14539 %
14540 \end_layout
14541
14542 \begin_layout LyX-Code
14543 %
14544 \backslash
14545 onlynotes{
14546 \backslash
14547 notes}
14548 \end_layout
14549
14550 \begin_layout Standard
14551 One final thing:
14552  I created this class to support the \SpecialChar LaTeX2e
14553  
14554 \begin_inset Quotes eld
14555 \end_inset
14556
14557
14558 \noun on
14559 Sli\SpecialChar TeX
14560
14561 \noun default
14562  emulation
14563 \begin_inset Quotes erd
14564 \end_inset
14565
14566  class,
14567  one of the built-in \SpecialChar LaTeX2e
14568  classes.
14569  Neither I nor the rest of the \SpecialChar LyX
14570  Team endorse or oppose the use of this built-in slide class.
14571  It's here if you want it or need it.
14572  There exist other \SpecialChar LaTeX2e
14573  classes for creating presentations,
14574  such as the 
14575 \family sans
14576 Foils
14577 \family default
14578  class [see section
14579 \begin_inset space ~
14580 \end_inset
14581
14582
14583 \begin_inset CommandInset ref
14584 LatexCommand ref
14585 reference "sec:foiltex"
14586 nolink "false"
14587
14588 \end_inset
14589
14590 ] or the 
14591 \begin_inset Quotes eld
14592 \end_inset
14593
14594
14595 \family typewriter
14596 seminar
14597 \family default
14598
14599 \begin_inset Quotes erd
14600 \end_inset
14601
14602  package [present on some \SpecialChar TeX
14603  distributions].
14604  The latter is not yet supported under \SpecialChar LyX
14605 .
14606 \begin_inset Foot
14607 status collapsed
14608
14609 \begin_layout Plain Layout
14610 Perhaps you can take on the task\SpecialChar ldots
14611
14612 \end_layout
14613
14614 \end_inset
14615
14616  I know nothing about these other classes.
14617  Try them out to see what sort of alternative they provide.
14618 \end_layout
14619
14620 \begin_layout Section
14621
14622 \change_inserted 564990737 1670439661
14623 Reports
14624 \end_layout
14625
14626 \begin_layout Subsection
14627
14628 \change_inserted 564990737 1670439661
14629 report
14630 \end_layout
14631
14632 \begin_layout Standard
14633
14634 \change_inserted 564990737 1670439661
14635 The document class 
14636 \family sans
14637 report
14638 \family default
14639  provides the 
14640 \family sans
14641 report.cls
14642 \family default
14643  document class for preparing reports.
14644  Like the 
14645 \family sans
14646 book
14647 \family default
14648  document class,
14649  this provides parts,
14650  chapters and sections but does not provide the paragraph styles needed for a book;
14651  like the 
14652 \family sans
14653 article
14654 \family default
14655  document class,
14656  it provides the abstract paragraph style.
14657  In two-sided mode,
14658  it does not start a new chapter on the right hand page.
14659 \end_layout
14660
14661 \begin_layout Standard
14662
14663 \change_inserted 564990737 1672743528
14664 The remaining 
14665 \family sans
14666 report
14667 \family default
14668  document classes are described in the Collections (section
14669 \begin_inset space ~
14670 \end_inset
14671
14672
14673 \begin_inset CommandInset ref
14674 LatexCommand ref
14675 reference "sec:Collections"
14676 nolink "false"
14677
14678 \end_inset
14679
14680 ).
14681 \end_layout
14682
14683 \begin_layout Standard
14684
14685 \change_inserted 564990737 1672743530
14686 For 
14687 \family sans
14688 report
14689 \begin_inset space \thinspace{}
14690 \end_inset
14691
14692 (Japanese in vertical writing)
14693 \family default
14694  and 
14695 \family sans
14696 report
14697 \begin_inset space \thinspace{}
14698 \end_inset
14699
14700 (Japanese)
14701 \family default
14702 ,
14703  see section
14704 \begin_inset space ~
14705 \end_inset
14706
14707
14708 \begin_inset CommandInset ref
14709 LatexCommand ref
14710 reference "subsec:Japanese"
14711 nolink "false"
14712
14713 \end_inset
14714
14715 .
14716 \end_layout
14717
14718 \begin_layout Standard
14719
14720 \change_inserted 564990737 1672743530
14721 For 
14722 \family sans
14723 report
14724 \begin_inset space \thinspace{}
14725 \end_inset
14726
14727 (KOMA-Script)
14728 \family default
14729 ,
14730  see section
14731 \begin_inset space ~
14732 \end_inset
14733
14734
14735 \begin_inset CommandInset ref
14736 LatexCommand ref
14737 reference "subsec:KOMA-Script"
14738 nolink "false"
14739
14740 \end_inset
14741
14742 .
14743 \end_layout
14744
14745 \begin_layout Standard
14746
14747 \change_inserted 564990737 1672743530
14748 For 
14749 \family sans
14750 report
14751 \begin_inset space \thinspace{}
14752 \end_inset
14753
14754 (with extra font sizes)
14755 \family default
14756 ,
14757  see section
14758 \begin_inset space ~
14759 \end_inset
14760
14761
14762 \begin_inset CommandInset ref
14763 LatexCommand ref
14764 reference "subsec:Extra-font-sizes"
14765 nolink "false"
14766
14767 \end_inset
14768
14769 .
14770 \end_layout
14771
14772 \begin_layout Standard
14773
14774 \change_inserted 564990737 1672743569
14775 For 
14776 \family sans
14777 report
14778 \begin_inset space \thinspace{}
14779 \end_inset
14780
14781 (Polish version by M.
14782 \begin_inset space \thinspace{}
14783 \end_inset
14784
14785 W.)
14786 \family default
14787 ,
14788  see section
14789 \begin_inset space ~
14790 \end_inset
14791
14792
14793 \begin_inset CommandInset ref
14794 LatexCommand ref
14795 reference "subsec:Polish-M.W.collection"
14796 plural "false"
14797 caps "false"
14798 noprefix "false"
14799 nolink "false"
14800
14801 \end_inset
14802
14803 .
14804 \end_layout
14805
14806 \begin_layout Section
14807
14808 \change_inserted 564990737 1670439674
14809 Scripts (drama)
14810 \end_layout
14811
14812 \begin_layout Subsection
14813 Broadway
14814 \end_layout
14815
14816 \begin_layout Standard
14817 by 
14818 \shape smallcaps
14819 Garst Reese
14820 \end_layout
14821
14822 \begin_layout Subsubsection
14823 Introduction
14824 \end_layout
14825
14826 \begin_layout Standard
14827 Broadway is for writing plays.
14828  The format is more decorative than Hollywood,
14829  and much less standardized.
14830  This format should be suitable for workshops.
14831 \end_layout
14832
14833 \begin_layout Subsubsection
14834 Special problems
14835 \end_layout
14836
14837 \begin_layout Standard
14838 The same as in Hollywood.
14839 \end_layout
14840
14841 \begin_layout Subsubsection
14842 Special features
14843 \end_layout
14844
14845 \begin_layout Standard
14846 Insert the 
14847 \family sans
14848 Speaker
14849 \family default
14850  names as labels then cross-reference the label to insert the name.
14851  The cross-reference dialog will show the current cast of characters.
14852 \end_layout
14853
14854 \begin_layout Subsubsection
14855 Paper size and Margins
14856 \end_layout
14857
14858 \begin_layout Standard
14859 USLetter,
14860  left 1.6in,
14861  right 0.75in,
14862  top 0.5in,
14863  bottom 0.75in
14864 \end_layout
14865
14866 \begin_layout Subsubsection
14867 Environments
14868 \end_layout
14869
14870 \begin_layout Standard
14871 The following environments are available.
14872  You can use broadway.bind to get the bind keys shown at the right.
14873 \end_layout
14874
14875 \begin_layout Itemize
14876
14877 \family sans
14878 Standard
14879 \begin_inset Newline newline
14880 \end_inset
14881
14882
14883 \family default
14884 You should not have to use this,
14885  but it is here for anything that does not fit otherwise.
14886 \end_layout
14887
14888 \begin_layout Itemize
14889
14890 \family sans
14891 Narrative
14892 \begin_inset space \hfill{}
14893 \end_inset
14894
14895 M-z n
14896 \begin_inset Newline newline
14897 \end_inset
14898
14899
14900 \family default
14901 Used to describe stage setting and the action.
14902  First use of speaker names in all CAPs.
14903 \end_layout
14904
14905 \begin_layout Itemize
14906
14907 \family sans
14908 ACT
14909 \begin_inset space \hfill{}
14910 \end_inset
14911
14912 M-z a
14913 \begin_inset Newline newline
14914 \end_inset
14915
14916
14917 \family default
14918 Automatically numbered.
14919  On screen it will be arabic,
14920  but will print as Roman.
14921 \end_layout
14922
14923 \begin_layout Itemize
14924
14925 \family sans
14926 ACT*
14927 \begin_inset space \hfill{}
14928 \end_inset
14929
14930 M-z S at
14931 \begin_inset Newline newline
14932 \end_inset
14933
14934
14935 \family default
14936 Subtitle for 
14937 \family sans
14938 ACT.
14939
14940 \family default
14941  It is just centered text.
14942 \end_layout
14943
14944 \begin_layout Itemize
14945
14946 \family sans
14947 SCENE
14948 \begin_inset space \hfill{}
14949 \end_inset
14950
14951 M-z S-S
14952 \begin_inset Newline newline
14953 \end_inset
14954
14955
14956 \family default
14957 Not automatically numbered.
14958  You supply the number.
14959  This is because I couldn't figure out how.
14960 \end_layout
14961
14962 \begin_layout Itemize
14963
14964 \family sans
14965 AT_RISE:
14966 \begin_inset space \hfill{}
14967 \end_inset
14968
14969 M-z S-R
14970 \begin_inset Newline newline
14971 \end_inset
14972
14973
14974 \family default
14975 A special case of Narrative to describe the setting and action as the curtain rises.
14976 \end_layout
14977
14978 \begin_layout Itemize
14979
14980 \family sans
14981 Speaker
14982 \begin_inset space \hfill{}
14983 \end_inset
14984
14985 M-z s
14986 \begin_inset Newline newline
14987 \end_inset
14988
14989
14990 \family default
14991 The speaker's (actor's) title,
14992  centered in all CAPS.
14993 \end_layout
14994
14995 \begin_layout Itemize
14996
14997 \family sans
14998 Parenthetical
14999 \begin_inset space \hfill{}
15000 \end_inset
15001
15002 M-z p
15003 \begin_inset Newline newline
15004 \end_inset
15005
15006
15007 \family default
15008 Instructions to the speaker.
15009  The parentheses are automatically inserted.
15010  The ( will appear on screen,
15011  but both will be in the printed play.
15012  This environment is only used within 
15013 \family sans
15014 Dialogue
15015 \family default
15016 .
15017 \end_layout
15018
15019 \begin_layout Itemize
15020
15021 \family sans
15022 Dialogue
15023 \begin_inset space \hfill{}
15024 \end_inset
15025
15026 M-z d
15027 \begin_inset Newline newline
15028 \end_inset
15029
15030
15031 \family default
15032 What the Speaker says.
15033 \end_layout
15034
15035 \begin_layout Itemize
15036
15037 \family sans
15038 CURTAIN
15039 \begin_inset space \hfill{}
15040 \end_inset
15041
15042 M-z S-C
15043 \begin_inset Newline newline
15044 \end_inset
15045
15046
15047 \family default
15048 The curtain comes down.
15049 \end_layout
15050
15051 \begin_layout Itemize
15052
15053 \family sans
15054 Title
15055 \begin_inset space \hfill{}
15056 \end_inset
15057
15058 M-z S-T
15059 \end_layout
15060
15061 \begin_layout Itemize
15062
15063 \family sans
15064 Author
15065 \begin_inset space \hfill{}
15066 \end_inset
15067
15068 M-z S-A
15069 \end_layout
15070
15071 \begin_layout Itemize
15072
15073 \family sans
15074 Right_Address
15075 \begin_inset space \hfill{}
15076 \end_inset
15077
15078 M-z r
15079 \end_layout
15080
15081 \begin_layout Standard
15082 Hello there.
15083 \end_layout
15084
15085 \begin_layout Subsection
15086 Hollywood (Hollywood spec scripts)
15087 \end_layout
15088
15089 \begin_layout Standard
15090 by 
15091 \shape smallcaps
15092 Garst Reese
15093 \end_layout
15094
15095 \begin_layout Subsubsection
15096 Introduction
15097 \end_layout
15098
15099 \begin_layout Standard
15100 Getting the format of a Hollywood script right is a 
15101 \begin_inset Quotes eld
15102 \end_inset
15103
15104 rite of passage.
15105 \begin_inset Quotes erd
15106 \end_inset
15107
15108  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
15109  Each page of a script should be one minute of film.
15110  Nothing goes in a script that you cannot see or hear on screen.
15111  The courier 12 pt font should be used throughout.
15112  No italics.
15113 \end_layout
15114
15115 \begin_layout Subsubsection
15116 Special problems
15117 \end_layout
15118
15119 \begin_layout Standard
15120 Speakers' lines should NEVER break in mid-sentence.
15121  If a speaker's lines continue over a page break,
15122  repeat the 
15123 \family sans
15124 Speaker
15125 \family default
15126  title followed by (Cont'd).
15127 \end_layout
15128
15129 \begin_layout Subsubsection
15130 Special features
15131 \end_layout
15132
15133 \begin_layout Standard
15134 Insert the 
15135 \family sans
15136 Speaker
15137 \family default
15138  names as labels then cross-reference the label to insert the name.
15139  The cross-reference dialog will show the current cast of characters.
15140  You can use this to insert the speaker name in narratives also.
15141 \end_layout
15142
15143 \begin_layout Subsubsection
15144 Paper size and Margins
15145 \end_layout
15146
15147 \begin_layout Standard
15148 USLetter,
15149  left 1.6in,
15150  right 0.75in,
15151  top 0.5in,
15152  bottom 0.75in
15153 \end_layout
15154
15155 \begin_layout Subsubsection
15156 Environments
15157 \end_layout
15158
15159 \begin_layout Standard
15160 The following environments are available.
15161  You can use hollywood.bind to get the bind keys shown at the right.
15162 \end_layout
15163
15164 \begin_layout Itemize
15165
15166 \family sans
15167 Standard
15168 \begin_inset Newline newline
15169 \end_inset
15170
15171
15172 \family default
15173 Used where nothing else works.
15174  Try to avoid it.
15175 \end_layout
15176
15177 \begin_layout Itemize
15178
15179 \family sans
15180 FADE_IN
15181 \family default
15182 :
15183 \begin_inset space \hfill{}
15184 \end_inset
15185
15186
15187 \family sans
15188 M-z S-I
15189 \family default
15190
15191 \begin_inset Newline newline
15192 \end_inset
15193
15194 Usually followed by something like 
15195 \begin_inset Quotes eld
15196 \end_inset
15197
15198 on Sally waking up.
15199 \begin_inset Quotes erd
15200 \end_inset
15201
15202
15203 \end_layout
15204
15205 \begin_layout Itemize
15206
15207 \family sans
15208 INT:
15209 \begin_inset space \hfill{}
15210 \end_inset
15211
15212 M-z i
15213 \begin_inset Newline newline
15214 \end_inset
15215
15216
15217 \family default
15218 Introduces a new INTERIOR camera set-up.
15219  Always followed by DAY or NIGHT,
15220  or something similar to define the lighting required.
15221  Everthing on this line in CAPS.
15222 \end_layout
15223
15224 \begin_layout Itemize
15225
15226 \family sans
15227 EXT:
15228 \begin_inset space \hfill{}
15229 \end_inset
15230
15231 M-z e
15232 \begin_inset Newline newline
15233 \end_inset
15234
15235
15236 \family default
15237 Introduces a new EXTERIOR camera set-up.
15238  Everthing on this line in CAPS.
15239 \end_layout
15240
15241 \begin_layout Itemize
15242
15243 \family sans
15244 Speaker
15245 \begin_inset space \hfill{}
15246 \end_inset
15247
15248 M-z s
15249 \begin_inset Newline newline
15250 \end_inset
15251
15252
15253 \family default
15254 The character speaking.
15255 \end_layout
15256
15257 \begin_layout Itemize
15258
15259 \family sans
15260 Parenthetical
15261 \begin_inset space \hfill{}
15262 \end_inset
15263
15264 M-z p
15265 \begin_inset Newline newline
15266 \end_inset
15267
15268
15269 \family default
15270 Instructions to the speaker.
15271  The () are automatically inserted.
15272 \end_layout
15273
15274 \begin_layout Itemize
15275
15276 \family sans
15277 Dialogue
15278 \begin_inset space \hfill{}
15279 \end_inset
15280
15281 M-z d
15282 \begin_inset Newline newline
15283 \end_inset
15284
15285
15286 \family default
15287 What the 
15288 \family sans
15289 Speaker
15290 \family default
15291  says.
15292 \end_layout
15293
15294 \begin_layout Itemize
15295
15296 \family sans
15297 Transition
15298 \begin_inset space \hfill{}
15299 \end_inset
15300
15301 M-z t
15302 \begin_inset Newline newline
15303 \end_inset
15304
15305
15306 \family default
15307 Camera movement instruction.
15308  e.
15309 \begin_inset space \thinspace{}
15310 \end_inset
15311
15312 g.
15313 \begin_inset space \space{}
15314 \end_inset
15315
15316 CUT TO:
15317 \end_layout
15318
15319 \begin_layout Itemize
15320
15321 \family sans
15322 FADE OUT:
15323 \begin_inset space \hfill{}
15324 \end_inset
15325
15326 M-z S-I
15327 \end_layout
15328
15329 \begin_layout Itemize
15330
15331 \family sans
15332 Author
15333 \begin_inset space \hfill{}
15334 \end_inset
15335
15336 M-z S-A
15337 \end_layout
15338
15339 \begin_layout Itemize
15340
15341 \family sans
15342 Title
15343 \begin_inset space \hfill{}
15344 \end_inset
15345
15346 M-z S-T
15347 \end_layout
15348
15349 \begin_layout Itemize
15350
15351 \family sans
15352 Right_Address
15353 \begin_inset space \hfill{}
15354 \end_inset
15355
15356 M-z r
15357 \end_layout
15358
15359 \begin_layout Subsubsection
15360 Script jargon
15361 \end_layout
15362
15363 \begin_layout Itemize
15364 (O.S) —
15365  off screen
15366 \end_layout
15367
15368 \begin_layout Itemize
15369 (V.0) —
15370  voice over
15371 \end_layout
15372
15373 \begin_layout Itemize
15374 b.
15375 \begin_inset space \thinspace{}
15376 \end_inset
15377
15378 g.
15379  —
15380  background
15381 \end_layout
15382
15383 \begin_layout Itemize
15384 C.U.
15385  —
15386  close-up
15387 \end_layout
15388
15389 \begin_layout Itemize
15390 PAN —
15391  camera movement
15392 \end_layout
15393
15394 \begin_layout Itemize
15395 INSERT —
15396  cut to close-up of
15397 \end_layout
15398
15399 \begin_layout Chapter
15400
15401 \change_inserted 564990737 1671185876
15402 Modules
15403 \end_layout
15404
15405 \begin_layout Section
15406
15407 \change_inserted 564990737 1671716212
15408 Academic Field Specifics
15409 \end_layout
15410
15411 \begin_layout Subsection
15412
15413 \change_inserted 564990737 1671716212
15414 Chemistry:
15415  Hazard and Precautionary Statements 
15416 \end_layout
15417
15418 \begin_layout Standard
15419
15420 \change_inserted 564990737 1671716212
15421 This module provides two insets to typeset numbers and phrases of chemical hazard and precautionary statements.
15422  For a description see 
15423 \family sans
15424 File\SpecialChar menuseparator
15425 Open Example\SpecialChar menuseparator
15426 Modules\SpecialChar menuseparator
15427 Hazard and Precautionary Statements
15428 \family default
15429  and 
15430 \family sans
15431 Help\SpecialChar menuseparator
15432 Specific Manuals\SpecialChar menuseparator
15433 Hazard and Precautionary Statements
15434 \family default
15435 .
15436 \end_layout
15437
15438 \begin_layout Subsection
15439
15440 \change_inserted 564990737 1671716212
15441
15442 \series bold
15443 Chemistry:
15444  Risk and Safety Statements
15445 \end_layout
15446
15447 \begin_layout Standard
15448
15449 \change_inserted 564990737 1671716212
15450 This module provides two insets,
15451  
15452 \family sans
15453 R-S number
15454 \family default
15455  and 
15456 \family sans
15457 R-S phrase
15458 \family default
15459 ,
15460  accessible via the menu 
15461 \family sans
15462 \bar under
15463 I
15464 \bar default
15465 nsert\SpecialChar menuseparator
15466 Custom
15467 \begin_inset space ~
15468 \end_inset
15469
15470 Insets
15471 \family default
15472  and an environment to typeset numbers and phrases of chemical risk and safety statements.
15473 \end_layout
15474
15475 \begin_layout Subsection
15476
15477 \change_inserted 564990737 1671716212
15478 Linguistics
15479 \end_layout
15480
15481 \begin_layout Standard
15482
15483 \change_inserted 564990737 1671716212
15484 This module uses the 
15485 \family sans
15486 covington.sty
15487 \family default
15488  package to add environments useful for linguistics (numbered examples,
15489  glosses,
15490  semantic markup,
15491  tableau floats).
15492  You can obtain information about this module in 
15493 \family sans
15494 \bar under
15495 H
15496 \bar default
15497 elp\SpecialChar menuseparator
15498 S
15499 \bar under
15500 p
15501 \bar default
15502 ecific
15503 \begin_inset space ~
15504 \end_inset
15505
15506 Manuals\SpecialChar menuseparator
15507
15508 \bar under
15509 L
15510 \bar default
15511 inguistics
15512 \family default
15513  and 
15514 \family sans
15515 File\SpecialChar menuseparator
15516 Open Example\SpecialChar menuseparator
15517 Modules\SpecialChar menuseparator
15518 Linguistics
15519 \family default
15520 .
15521 \end_layout
15522
15523 \begin_layout Section
15524
15525 \change_inserted 564990737 1671788778
15526 Accessibility
15527 \end_layout
15528
15529 \begin_layout Subsection
15530
15531 \change_inserted 564990737 1671788778
15532 Braille
15533 \end_layout
15534
15535 \begin_layout Standard
15536
15537 \change_inserted 564990737 1671788778
15538 This module supports the Braille writing system.
15539  It requires the \SpecialChar LaTeX
15540  package 
15541 \family typewriter
15542 braille.sty
15543 \family default
15544 .
15545  This and its documentation can be obtained from 
15546 \begin_inset CommandInset href
15547 LatexCommand href
15548 name "CTAN"
15549 target "https://www.ctan.org/pkg/braille"
15550 literal "false"
15551
15552 \end_inset
15553
15554 .
15555  You do not have to reconfigure your system after installing it.
15556  See 
15557 \family sans
15558 \bar under
15559 H
15560 \bar default
15561 elp\SpecialChar menuseparator
15562 S
15563 \bar under
15564 p
15565 \bar default
15566 ecific
15567 \begin_inset space ~
15568 \end_inset
15569
15570 Manuals\SpecialChar menuseparator
15571
15572 \bar under
15573 B
15574 \bar default
15575 raille
15576 \family default
15577  and 
15578 \family sans
15579 File\SpecialChar menuseparator
15580 Open Example\SpecialChar menuseparator
15581 Modules\SpecialChar menuseparator
15582 Braille
15583 \family default
15584 .
15585 \end_layout
15586
15587 \begin_layout Section
15588
15589 \change_inserted 564990737 1671788778
15590 Annotation & Revision
15591 \end_layout
15592
15593 \begin_layout Subsection
15594
15595 \change_inserted 564990737 1671788778
15596 FiXme Notes
15597 \end_layout
15598
15599 \begin_layout Standard
15600
15601 \change_inserted 564990737 1671788778
15602 This module provides “FiXme” (marginal) annotations for document revision purposes.
15603  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
15604  The annotations are customizable via the LaTeX preamble.
15605  See the FiXme documentation which can be obtained from 
15606 \begin_inset CommandInset href
15607 LatexCommand href
15608 name "CTAN"
15609 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
15610 literal "false"
15611
15612 \end_inset
15613
15614 .
15615  
15616 \end_layout
15617
15618 \begin_layout Paragraph
15619
15620 \change_inserted 564990737 1671788778
15621 Note:
15622 \end_layout
15623
15624 \begin_layout Standard
15625
15626 \change_inserted 564990737 1671788778
15627 by default,
15628  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
15629 \family sans
15630 Document\SpecialChar menuseparator
15631 Settings\SpecialChar menuseparator
15632 Document Class\SpecialChar menuseparator
15633 Class Options\SpecialChar menuseparator
15634 Custom
15635 \family default
15636 ).
15637  To display them always,
15638  insert 
15639 \family typewriter
15640
15641 \backslash
15642 fxsetup{draft}
15643 \family default
15644  in 
15645 \family sans
15646 Document\SpecialChar menuseparator
15647 Settings\SpecialChar menuseparator
15648 \SpecialChar LaTeX
15649  Preamble
15650 \family default
15651 .
15652  
15653 \end_layout
15654
15655 \begin_layout Subsection
15656
15657 \change_inserted 564990737 1671788778
15658 PDF Comments
15659 \end_layout
15660
15661 \begin_layout Standard
15662
15663 \change_inserted 564990737 1671788778
15664 This module provides various kinds of annotations for PDF output.
15665  See 
15666 \family sans
15667 Help\SpecialChar menuseparator
15668 Specific Manuals\SpecialChar menuseparator
15669 PDF comments and File\SpecialChar menuseparator
15670 Open Example\SpecialChar menuseparator
15671 Modules\SpecialChar menuseparator
15672 PDF Comments
15673 \family default
15674 .
15675 \end_layout
15676
15677 \begin_layout Subsection
15678
15679 \change_inserted 564990737 1671788778
15680
15681 \series bold
15682 PDF Form
15683 \end_layout
15684
15685 \begin_layout Standard
15686
15687 \change_inserted 564990737 1671788778
15688 This module provides fields and buttons for PDF forms.
15689  See the 
15690 \begin_inset CommandInset href
15691 LatexCommand href
15692 name "hyperref documentation"
15693 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
15694 literal "false"
15695
15696 \end_inset
15697
15698 ,
15699  
15700 \family sans
15701 Help\SpecialChar menuseparator
15702 Specific Manuals\SpecialChar menuseparator
15703 PDF forms and File\SpecialChar menuseparator
15704 Open Example\SpecialChar menuseparator
15705 Modules\SpecialChar menuseparator
15706 PDF Form
15707 \family default
15708 .
15709 \end_layout
15710
15711 \begin_layout Subsection
15712
15713 \change_inserted 564990737 1671788778
15714
15715 \series bold
15716 Ruby (Furigana)
15717 \end_layout
15718
15719 \begin_layout Standard
15720
15721 \change_inserted 564990737 1671788778
15722 This module defines an inset to typeset reading aids (ruby,
15723  furigana) to Chinese characters.
15724  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on the TeX engine) or a fallback definition.
15725  
15726 \end_layout
15727
15728 \begin_layout Subsection
15729
15730 \change_inserted 564990737 1671788778
15731
15732 \series bold
15733 TODO notes
15734 \end_layout
15735
15736 \begin_layout Standard
15737
15738 \change_inserted 564990737 1671788778
15739 This module provides custom insets to insert TODO items in your document.
15740  In order to generate a “List of TODOs,” the module provides a paragraph style.
15741  Inserting “final” in 
15742 \family sans
15743 Document\SpecialChar menuseparator
15744 Settings\SpecialChar menuseparator
15745 Document Class\SpecialChar menuseparator
15746 Class Options\SpecialChar menuseparator
15747 Custom
15748 \family default
15749 ) suppresses the output of TODO notes.
15750  See the 
15751 \begin_inset CommandInset href
15752 LatexCommand href
15753 name "todonotes documentation"
15754 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
15755 literal "false"
15756
15757 \end_inset
15758
15759 .
15760 \end_layout
15761
15762 \begin_layout Section
15763
15764 \change_inserted 564990737 1671829045
15765 Bibliography 
15766 \end_layout
15767
15768 \begin_layout Subsection
15769
15770 \change_inserted 564990737 1671829045
15771 APA Style with NatBib
15772 \end_layout
15773
15774 \begin_layout Standard
15775
15776 \change_inserted 564990737 1671829045
15777 This module adds support for using natbib together with apacite (the bibliography style need not be apacite —
15778  it could be apacite,
15779  apacitex,
15780  or any bibliography that works with both the natbib and apacite packages.) 
15781 \end_layout
15782
15783 \begin_layout Section
15784
15785 \change_inserted 564990737 1671829045
15786 Boxes
15787 \end_layout
15788
15789 \begin_layout Subsection
15790
15791 \change_inserted 564990737 1671829045
15792 Fancy Colored Boxes
15793 \end_layout
15794
15795 \begin_layout Standard
15796
15797 \change_inserted 564990737 1671829045
15798 This module adds ten custom insets that support colored boxes via the tcolorbox package.
15799  See 
15800 \family sans
15801 Help\SpecialChar menuseparator
15802 Specific Manuals\SpecialChar menuseparator
15803 Colored boxes
15804 \family default
15805 ,
15806  
15807 \family sans
15808 File\SpecialChar menuseparator
15809 Open Example\SpecialChar menuseparator
15810 Modules\SpecialChar menuseparator
15811 Fancy Color Boxes
15812 \family default
15813  the 
15814 \begin_inset CommandInset href
15815 LatexCommand href
15816 name "tcolorbox documentation"
15817 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
15818 literal "false"
15819
15820 \end_inset
15821
15822  for details.
15823  
15824 \end_layout
15825
15826 \begin_layout Subsection
15827
15828 \change_inserted 564990737 1671829045
15829 Graphic boxes
15830 \end_layout
15831
15832 \begin_layout Standard
15833
15834 \change_inserted 564990737 1671829045
15835 This provides the custom insets 
15836 \family sans
15837 Reflectbox
15838 \family default
15839 ,
15840  
15841 \family sans
15842 Resizebox
15843 \family default
15844 ,
15845  
15846 \family sans
15847 Rotatebox
15848 \family default
15849  and 
15850 \family sans
15851 Scalebox
15852 \family default
15853  to scale and rotate its content.
15854 \end_layout
15855
15856 \begin_layout Standard
15857
15858 \change_inserted 564990737 1671829045
15859
15860 \family sans
15861 Reflectbox
15862 \family default
15863  is a simple way of reversing text without any other enhancement:
15864 \end_layout
15865
15866 \begin_layout Standard
15867
15868 \change_inserted 564990737 1671829045
15869 \begin_inset Flex Reflectbox
15870 status open
15871
15872 \begin_layout Plain Layout
15873
15874 \change_inserted 564990737 1671829045
15875 Great Western Railway
15876 \change_unchanged
15877
15878 \end_layout
15879
15880 \end_inset
15881
15882
15883 \end_layout
15884
15885 \begin_layout Standard
15886
15887 \change_inserted 564990737 1671829045
15888 (You will need to use Ctrl-R to see any of these examples.)
15889 \end_layout
15890
15891 \begin_layout Standard
15892
15893 \change_inserted 564990737 1671829045
15894
15895 \family sans
15896 Resizebox
15897 \family default
15898  allows you to specify the dimensions of the text or image;
15899  permissible units are em,
15900  ex,
15901  in,
15902  pt,
15903  pc,
15904  cm,
15905  mm,
15906  dd,
15907  cc,
15908  nd,
15909  nc,
15910  bp,
15911  or sp;
15912  if you enter 
15913 \family typewriter
15914 !
15915
15916 \family default
15917  for 
15918 \family typewriter
15919 Height
15920 \family default
15921  it scales by the width factor:
15922 \end_layout
15923
15924 \begin_layout Standard
15925
15926 \change_inserted 564990737 1671829045
15927 \begin_inset Flex Resizebox
15928 status open
15929
15930 \begin_layout Plain Layout
15931
15932 \change_inserted 564990737 1671829045
15933 \begin_inset Argument 1
15934 status open
15935
15936 \begin_layout Plain Layout
15937
15938 \change_inserted 564990737 1671829045
15939 48mm
15940 \change_unchanged
15941
15942 \end_layout
15943
15944 \end_inset
15945
15946
15947 \begin_inset Argument 2
15948 status open
15949
15950 \begin_layout Plain Layout
15951
15952 \change_inserted 564990737 1671829045
15953 !
15954 \change_unchanged
15955
15956 \end_layout
15957
15958 \end_inset
15959
15960 Great Western Railway
15961 \change_unchanged
15962
15963 \end_layout
15964
15965 \end_inset
15966
15967
15968 \end_layout
15969
15970 \begin_layout Standard
15971
15972 \change_inserted 564990737 1671829045
15973
15974 \family sans
15975 Rotatebox
15976 \family default
15977  allows you to rotate text around the reference point of the box.
15978  If you wish to rotate the box around a different origin,
15979  place the cursor inside the box and select Insert\SpecialChar menuseparator
15980 Origin;
15981  o
15982 \family typewriter
15983 rigin
15984 \family default
15985  is specified as 
15986 \family typewriter
15987 c
15988 \family default
15989 ,
15990
15991 \family typewriter
15992  l
15993 \family default
15994 ,
15995
15996 \family typewriter
15997  r
15998 \family default
15999 ,
16000
16001 \family typewriter
16002  b
16003 \family default
16004 ,
16005
16006 \family typewriter
16007  t
16008 \family default
16009  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
16010  For example:
16011 \end_layout
16012
16013 \begin_layout Standard
16014
16015 \change_inserted 564990737 1671829045
16016 \begin_inset Flex Rotatebox
16017 status open
16018
16019 \begin_layout Plain Layout
16020
16021 \change_inserted 564990737 1671829045
16022 \begin_inset Argument 1
16023 status open
16024
16025 \begin_layout Plain Layout
16026
16027 \change_inserted 564990737 1671829045
16028 =c
16029 \change_unchanged
16030
16031 \end_layout
16032
16033 \end_inset
16034
16035
16036 \begin_inset Argument 2
16037 status open
16038
16039 \begin_layout Plain Layout
16040
16041 \change_inserted 564990737 1671829045
16042 30
16043 \change_unchanged
16044
16045 \end_layout
16046
16047 \end_inset
16048
16049 Great Western Railway
16050 \change_unchanged
16051
16052 \end_layout
16053
16054 \end_inset
16055
16056
16057 \end_layout
16058
16059 \begin_layout Standard
16060
16061 \change_inserted 564990737 1671829045
16062 You can combine boxes as in:
16063 \end_layout
16064
16065 \begin_layout Standard
16066
16067 \change_inserted 564990737 1671829045
16068 \begin_inset Flex Rotatebox
16069 status open
16070
16071 \begin_layout Plain Layout
16072
16073 \change_inserted 564990737 1671829045
16074 \begin_inset Argument 1
16075 status open
16076
16077 \begin_layout Plain Layout
16078
16079 \change_inserted 564990737 1671829045
16080 =c
16081 \change_unchanged
16082
16083 \end_layout
16084
16085 \end_inset
16086
16087
16088 \begin_inset Argument 2
16089 status open
16090
16091 \begin_layout Plain Layout
16092
16093 \change_inserted 564990737 1671829045
16094 -15
16095 \change_unchanged
16096
16097 \end_layout
16098
16099 \end_inset
16100
16101
16102 \begin_inset Flex Resizebox
16103 status open
16104
16105 \begin_layout Plain Layout
16106
16107 \change_inserted 564990737 1671829045
16108 \begin_inset Argument 1
16109 status open
16110
16111 \begin_layout Plain Layout
16112
16113 \change_inserted 564990737 1671829045
16114 48mm
16115 \change_unchanged
16116
16117 \end_layout
16118
16119 \end_inset
16120
16121
16122 \begin_inset Argument 2
16123 status open
16124
16125 \begin_layout Plain Layout
16126
16127 \change_inserted 564990737 1671829045
16128 !
16129 \change_unchanged
16130
16131 \end_layout
16132
16133 \end_inset
16134
16135
16136 \begin_inset Flex Reflectbox
16137 status open
16138
16139 \begin_layout Plain Layout
16140
16141 \change_inserted 564990737 1671829045
16142 Great Western Railway
16143 \change_unchanged
16144
16145 \end_layout
16146
16147 \end_inset
16148
16149
16150 \change_unchanged
16151
16152 \end_layout
16153
16154 \end_inset
16155
16156
16157 \change_unchanged
16158
16159 \end_layout
16160
16161 \end_inset
16162
16163
16164 \end_layout
16165
16166 \begin_layout Standard
16167
16168 \change_inserted 564990737 1671829045
16169
16170 \family sans
16171 Scalebox
16172 \family default
16173  scales text;
16174  select Insert\SpecialChar menuseparator
16175 V-Factor to add a vertical factor.
16176  If the vertical factor is omitted,
16177  the horizontal is used.
16178  Adding different horizontal and vertical values creates distortion as in 
16179 \end_layout
16180
16181 \begin_layout Standard
16182
16183 \change_inserted 564990737 1671829045
16184
16185 \family typewriter
16186 \begin_inset Flex Scalebox
16187 status open
16188
16189 \begin_layout Plain Layout
16190
16191 \change_inserted 564990737 1671829045
16192 \begin_inset Argument 1
16193 status open
16194
16195 \begin_layout Plain Layout
16196
16197 \change_inserted 564990737 1671829045
16198 2
16199 \change_unchanged
16200
16201 \end_layout
16202
16203 \end_inset
16204
16205
16206 \begin_inset Argument 2
16207 status open
16208
16209 \begin_layout Plain Layout
16210
16211 \change_inserted 564990737 1671829045
16212 1.5
16213 \change_unchanged
16214
16215 \end_layout
16216
16217 \end_inset
16218
16219
16220 \family roman
16221 Great Western Railway
16222 \change_unchanged
16223
16224 \end_layout
16225
16226 \end_inset
16227
16228 .
16229 \end_layout
16230
16231 \begin_layout Standard
16232
16233 \change_inserted 564990737 1671829045
16234 A negative horizontal value reverses the text and a negative vertical value inverts it so that you get 
16235 \end_layout
16236
16237 \begin_layout Standard
16238
16239 \change_inserted 564990737 1671829045
16240 \begin_inset Flex Scalebox
16241 status open
16242
16243 \begin_layout Plain Layout
16244
16245 \change_inserted 564990737 1671829045
16246 \begin_inset Argument 1
16247 status open
16248
16249 \begin_layout Plain Layout
16250
16251 \change_inserted 564990737 1671829045
16252 -1
16253 \change_unchanged
16254
16255 \end_layout
16256
16257 \end_inset
16258
16259
16260 \begin_inset Argument 2
16261 status open
16262
16263 \begin_layout Plain Layout
16264
16265 \change_inserted 564990737 1671829045
16266 1
16267 \change_unchanged
16268
16269 \end_layout
16270
16271 \end_inset
16272
16273 Great Western Railway
16274 \change_unchanged
16275
16276 \end_layout
16277
16278 \end_inset
16279
16280  and 
16281 \begin_inset Flex Scalebox
16282 status open
16283
16284 \begin_layout Plain Layout
16285
16286 \change_inserted 564990737 1671829045
16287 \begin_inset Argument 1
16288 status open
16289
16290 \begin_layout Plain Layout
16291
16292 \change_inserted 564990737 1671829045
16293 1
16294 \change_unchanged
16295
16296 \end_layout
16297
16298 \end_inset
16299
16300
16301 \begin_inset Argument 2
16302 status open
16303
16304 \begin_layout Plain Layout
16305
16306 \change_inserted 564990737 1671829045
16307 -1
16308 \change_unchanged
16309
16310 \end_layout
16311
16312 \end_inset
16313
16314 Great Western Railway
16315 \change_unchanged
16316
16317 \end_layout
16318
16319 \end_inset
16320
16321 .
16322 \end_layout
16323
16324 \begin_layout Subsection
16325
16326 \change_inserted 564990737 1671884699
16327 Section Boxes
16328 \end_layout
16329
16330 \begin_layout Standard
16331
16332 \change_inserted 564990737 1671884699
16333 This module defines Boxes with section header.
16334  It is mainly intended for the SciPoster Document class.
16335  
16336 \end_layout
16337
16338 \begin_layout Subsection
16339
16340 \change_inserted 564990737 1671884699
16341 Variable-width Minipages
16342 \end_layout
16343
16344 \begin_layout Standard
16345
16346 \change_inserted 564990737 1671884699
16347 This module adds a 
16348 \family sans
16349 Minipage (Var.
16350 \begin_inset space \thinspace{}
16351 \end_inset
16352
16353 Width)
16354 \family default
16355  inset to 
16356 \family sans
16357 Insert\SpecialChar menuseparator
16358 Custom Inset
16359 \family default
16360  using the 
16361 \family sans
16362 varwidth
16363 \family default
16364  LaTeX package.
16365  The 
16366 \family sans
16367 varwidth
16368 \family default
16369  package provides a variable-width minipage,
16370  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
16371  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
16372 \family sans
16373 Insert\SpecialChar menuseparator
16374 Vert.
16375 \begin_inset space \thinspace{}
16376 \end_inset
16377
16378 Adjustment
16379 \family default
16380  (
16381 \family typewriter
16382 c|t|b
16383 \family default
16384 ) or 
16385 \family sans
16386 Insert\SpecialChar menuseparator
16387 Max.
16388 \begin_inset space \thinspace{}
16389 \end_inset
16390
16391 Width
16392 \family default
16393  (defaults to 
16394 \family typewriter
16395
16396 \backslash
16397 linewidth
16398 \family default
16399 ).
16400  See 
16401 \family sans
16402 File\SpecialChar menuseparator
16403 Open Example\SpecialChar menuseparator
16404 Variable-width Minipages
16405 \family default
16406 .
16407  
16408 \end_layout
16409
16410 \begin_layout Section
16411
16412 \change_inserted 564990737 1671884699
16413 Fixes & Hacks
16414 \end_layout
16415
16416 \begin_layout Subsection
16417
16418 \change_inserted 564990737 1671884699
16419 Fix Computer Modern Fonts
16420 \end_layout
16421
16422 \begin_layout Standard
16423
16424 \change_inserted 564990737 1671884699
16425 This module uses the 
16426 \family sans
16427 fix-cm
16428 \family default
16429  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
16430  See the 
16431 \begin_inset CommandInset href
16432 LatexCommand href
16433 name "fix-cm documentation"
16434 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
16435 literal "false"
16436
16437 \end_inset
16438
16439 .
16440  
16441 \end_layout
16442
16443 \begin_layout Subsection
16444
16445 \change_inserted 564990737 1671884699
16446 \SpecialChar LaTeX
16447  Kernel Fixes (Obsolete)
16448 \end_layout
16449
16450 \begin_layout Standard
16451
16452 \change_inserted 564990737 1671884699
16453 This module loads the \SpecialChar LaTeX
16454  package 
16455 \family sans
16456 fixltx2e
16457 \family default
16458  which contains some bug fixes for \SpecialChar LaTeX
16459 .
16460  If you use this module your typeset document may look different when you process it,
16461  depending on the respective version of 
16462 \family sans
16463 fixltx2e
16464 \family default
16465 .
16466  
16467 \end_layout
16468
16469 \begin_layout Paragraph
16470
16471 \change_inserted 564990737 1671884699
16472 Note:
16473 \end_layout
16474
16475 \begin_layout Standard
16476
16477 \change_inserted 564990737 1671884699
16478 recent \SpecialChar LaTeX
16479  kernels (as of 2015/01/01) include the functionality of 
16480 \family sans
16481 fixltx2e
16482 \family default
16483 ,
16484  so the 
16485 \family sans
16486 fixltx2e
16487 \family default
16488  module is obsolete with newer \SpecialChar LaTeX
16489  distributions.
16490  
16491 \end_layout
16492
16493 \begin_layout Subsection
16494
16495 \change_inserted 564990737 1671884699
16496 Minimalistic Insets
16497 \end_layout
16498
16499 \begin_layout Standard
16500
16501 \change_inserted 564990737 1671884699
16502 This module redefines several insets (Index,
16503  Branch,
16504  URL) as being Minimalistic.
16505 \end_layout
16506
16507 \begin_layout Subsection
16508
16509 \change_inserted 564990737 1671884699
16510 Title and Preamble Hacks
16511 \end_layout
16512
16513 \begin_layout Standard
16514
16515 \change_inserted 564990737 1671884699
16516 This module provides two new paragraph styles:
16517  
16518 \end_layout
16519
16520 \begin_layout Enumerate
16521
16522 \change_inserted 564990737 1671884699
16523
16524 \family sans
16525 In Preamble
16526 \family default
16527  which puts whatever is entered into it into the preamble.
16528  This can be used,
16529  if one wishes,
16530  to include preamble code in the body of a LyX document.
16531  
16532 \end_layout
16533
16534 \begin_layout Enumerate
16535
16536 \change_inserted 564990737 1671884699
16537
16538 \family sans
16539 In Title
16540 \family default
16541  which that will put its contents into the body of the LaTeX document,
16542  but before 
16543 \family typewriter
16544
16545 \backslash
16546 maketitle
16547 \family default
16548  is issued.
16549  This is useful for making branches and notes in title-related material.
16550  (However,
16551  if you put these in a Standard layout,
16552  this signals to LyX to output 
16553 \family typewriter
16554
16555 \backslash
16556 maketitle
16557 \family default
16558 ,
16559  which may then come too early.)
16560 \end_layout
16561
16562 \begin_layout Section
16563
16564 \change_inserted 564990737 1672081439
16565 Floats & captions
16566 \end_layout
16567
16568 \begin_layout Subsection
16569
16570 \change_inserted 564990737 1672081439
16571 Algorithm2e Float
16572 \end_layout
16573
16574 \begin_layout Standard
16575
16576 \change_inserted 564990737 1672081439
16577 This module uses the 
16578 \family sans
16579 algorithm2e
16580 \family default
16581  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
16582  Use the Algorithm paragraph style to enter and indent the algorithm.
16583  See the 
16584 \begin_inset CommandInset href
16585 LatexCommand href
16586 name "algorithm2e documentation"
16587 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
16588 literal "false"
16589
16590 \end_inset
16591
16592 .
16593 \end_layout
16594
16595 \begin_layout Subsection
16596
16597 \change_inserted 564990737 1672081439
16598 Bilingual Captions AKA Multilingual Captions
16599 \end_layout
16600
16601 \begin_layout Standard
16602
16603 \change_inserted 564990737 1672081439
16604 This module provides the paragraph style 
16605 \family sans
16606 Caption
16607 \begin_inset space ~
16608 \end_inset
16609
16610 setup
16611 \family default
16612  with which to typeset multilingual captions.
16613  Within this paragraph style 
16614 \family sans
16615 Insert\SpecialChar menuseparator
16616 Language
16617 \family default
16618  allows you to enter the desired language using one of the babel names.
16619  See 
16620 \family sans
16621 File\SpecialChar menuseparator
16622 Open Example\SpecialChar menuseparator
16623 Multilingual Captions
16624 \family default
16625  and 
16626 \family sans
16627 Help\SpecialChar menuseparator
16628 Specific Manuals\SpecialChar menuseparator
16629 Multilingual Captions
16630 \family default
16631  further information on its use.
16632 \end_layout
16633
16634 \begin_layout Subsection
16635
16636 \change_inserted 564990737 1672081439
16637 Number Figures by Section
16638 \end_layout
16639
16640 \begin_layout Standard
16641
16642 \change_inserted 564990737 1672081439
16643 This module resets the figure number at section start and prepends the section number to the figure number,
16644  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
16645 \end_layout
16646
16647 \begin_layout Subsection
16648
16649 \change_inserted 564990737 1672081439
16650 Number Tables by Section
16651 \end_layout
16652
16653 \begin_layout Standard
16654
16655 \change_inserted 564990737 1672081439
16656 This module resets the table number at section start and prepends the section number to the table number,
16657  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
16658 \end_layout
16659
16660 \begin_layout Section
16661
16662 \change_inserted 564990737 1672081439
16663 Foot- and Endnotes
16664 \end_layout
16665
16666 \begin_layout Subsection
16667
16668 \change_inserted 564990737 1672081439
16669 Endnotes (Basic)
16670 \end_layout
16671
16672 \begin_layout Standard
16673
16674 \change_inserted 564990737 1672081439
16675 This module adds an endnote inset,
16676  in addition to footnotes.
16677  This uses the 
16678 \family sans
16679 endnotes
16680 \family default
16681  package,
16682  which has some limitations but works with older LaTeX distributions as well.
16683  Use 
16684 \family sans
16685 Insert\SpecialChar menuseparator
16686 Custom Inset\SpecialChar menuseparator
16687 Endnote
16688 \family default
16689  to insert an endnote and 
16690 \family sans
16691 Insert\SpecialChar menuseparator
16692 List/Contents/References\SpecialChar menuseparator
16693 Endnotes
16694 \family default
16695  to insert the endnotes list where you want the endnotes to appear.
16696  See also 
16697 \family sans
16698 Help\SpecialChar menuseparator
16699 Embedded\SpecialChar menuseparator
16700  Objects\SpecialChar menuseparator
16701 Notes\SpecialChar menuseparator
16702 Footnotes
16703 \family default
16704 .
16705 \end_layout
16706
16707 \begin_layout Subsection
16708
16709 \change_inserted 564990737 1672081439
16710 Endnotes (Extended)
16711 \end_layout
16712
16713 \begin_layout Standard
16714
16715 \change_inserted 564990737 1672081439
16716 This module adds an endnote inset,
16717  in addition to footnotes.
16718  This uses the 
16719 \family sans
16720 enotez
16721 \family default
16722  package which is more powerful and customizable than the 
16723 \family sans
16724 endnotes
16725 \family default
16726  package,
16727  but requires a fairly modern LaTeX distribution (with LaTeX3).
16728  Use 
16729 \family sans
16730 Insert\SpecialChar menuseparator
16731 Custom Inset\SpecialChar menuseparator
16732 Endnote
16733 \family default
16734  to insert an endnote and 
16735 \family sans
16736 Insert\SpecialChar menuseparator
16737 List/Contents/References\SpecialChar menuseparator
16738 Endnotes
16739 \family default
16740  to insert the endnotes list where you want the endnotes to appear.
16741  See also 
16742 \family sans
16743 Help\SpecialChar menuseparator
16744 Embedded\SpecialChar menuseparator
16745  Objects\SpecialChar menuseparator
16746 Notes\SpecialChar menuseparator
16747 Footnotes
16748 \family default
16749 .
16750 \end_layout
16751
16752 \begin_layout Subsection
16753
16754 \change_inserted 564990737 1672081439
16755 Footnotes as Endnotes (Basic)
16756 \end_layout
16757
16758 \begin_layout Standard
16759
16760 \change_inserted 564990737 1672081439
16761 This module sets all footnotes as endnotes.
16762  This uses the 
16763 \family sans
16764 endnotes
16765 \family default
16766  package,
16767  which has some limitations but works with older LaTeX distributions as well.
16768  Use 
16769 \family sans
16770 Insert\SpecialChar menuseparator
16771 List/Contents/References\SpecialChar menuseparator
16772 Endnotes
16773 \family default
16774  to insert the endnotes list where you want the endnotes to appear.
16775  See also 
16776 \family sans
16777 Help\SpecialChar menuseparator
16778 Embedded\SpecialChar menuseparator
16779  Objects\SpecialChar menuseparator
16780 Notes\SpecialChar menuseparator
16781 Footnotes
16782 \family default
16783 .
16784 \end_layout
16785
16786 \begin_layout Subsection
16787
16788 \change_inserted 564990737 1672081439
16789 Footnotes as Endnotes (Extended)
16790 \end_layout
16791
16792 \begin_layout Standard
16793
16794 \change_inserted 564990737 1672081439
16795 This module sets all footnotes as endnotes.
16796  This uses the 
16797 \family sans
16798 enotez
16799 \family default
16800  package which is more powerful and customizable than then 
16801 \family sans
16802 endnotes
16803 \family default
16804  package,
16805  but requires a fairly modern LaTeX distribution (with LaTeX3).
16806  Use 
16807 \family sans
16808 Insert\SpecialChar menuseparator
16809 List/Contents/References\SpecialChar menuseparator
16810 Endnotes
16811 \family default
16812  to insert the endnotes list where you want the endnotes to appear.
16813  See also 
16814 \family sans
16815 Help\SpecialChar menuseparator
16816 Embedded\SpecialChar menuseparator
16817  Objects\SpecialChar menuseparator
16818 Notes\SpecialChar menuseparator
16819 Footnotes
16820 \family default
16821 .
16822 \end_layout
16823
16824 \begin_layout Section
16825
16826 \change_inserted 564990737 1672081439
16827 Leisure,
16828  Sports and Music
16829 \end_layout
16830
16831 \begin_layout Subsection
16832
16833 \change_inserted 564990737 1672081439
16834 Chess Board
16835 \end_layout
16836
16837 \begin_layout Standard
16838
16839 \change_inserted 564990737 1672081439
16840 This module provides support for the 
16841 \family sans
16842 chessboard
16843 \family default
16844  package to print chess games.
16845  See 
16846 \family sans
16847 File\SpecialChar menuseparator
16848 Open Example\SpecialChar menuseparator
16849 Articles\SpecialChar menuseparator
16850 Chess
16851 \family default
16852  where you will find 
16853 \family sans
16854 Game 1
16855 \family default
16856  and 
16857 \family sans
16858 Game 2
16859 \family default
16860  and the 
16861 \begin_inset CommandInset href
16862 LatexCommand href
16863 name "chessboard documentation"
16864 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
16865 literal "false"
16866
16867 \end_inset
16868
16869 .
16870 \end_layout
16871
16872 \begin_layout Subsection
16873
16874 \change_inserted 564990737 1672081439
16875 Lilypond Music Notation
16876 \end_layout
16877
16878 \begin_layout Standard
16879
16880 \change_inserted 564990737 1672081439
16881 This module provides an inset via 
16882 \family sans
16883 \bar under
16884 I
16885 \bar default
16886 nsert\SpecialChar menuseparator
16887 Custom Inset\SpecialChar menuseparator
16888 Lilypond
16889 \family default
16890  in which to enter code for the LilyPond music editor.
16891  It will then be processed in the output.
16892  See 
16893 \family sans
16894 Help\SpecialChar menuseparator
16895 Specific Manuals\SpecialChar menuseparator
16896 Lilypond
16897 \family default
16898  and 
16899 \family sans
16900 File\SpecialChar menuseparator
16901 Open Example\SpecialChar menuseparator
16902 Modules\SpecialChar menuseparator
16903 Lilypond Book
16904 \family default
16905 .
16906  It cannot be used if the modules 
16907 \family sans
16908 Rnw
16909 \begin_inset space \thinspace{}
16910 \end_inset
16911
16912 (knitr) or Sweave
16913 \family default
16914  have been loaded.
16915 \end_layout
16916
16917 \begin_layout Section
16918
16919 \change_inserted 564990737 1672138150
16920 List enhancements
16921 \end_layout
16922
16923 \begin_layout Subsection
16924
16925 \change_inserted 564990737 1672138150
16926 Customizable Lists
16927 \begin_inset CommandInset label
16928 LatexCommand label
16929 name "subsec:Customizable-Lists"
16930
16931 \end_inset
16932
16933
16934 \end_layout
16935
16936 \begin_layout Standard
16937
16938 \change_inserted 564990737 1672138150
16939 This module uses the
16940 \family sans
16941  enumitem
16942 \family default
16943  package to enable the customization of various list environments.
16944 \end_layout
16945
16946 \begin_layout Subsubsection
16947
16948 \change_inserted 564990737 1672138150
16949 Custom Enumerate Lists
16950 \end_layout
16951
16952 \begin_layout Standard
16953 \noindent
16954
16955 \change_inserted 564990737 1672138150
16956 The default numbering of numbered lists can be changed by adding an optional argument (menu 
16957 \family sans
16958 \bar under
16959 I
16960 \bar default
16961 nsert\SpecialChar menuseparator
16962
16963 \bar under
16964 S
16965 \bar default
16966 hort Title
16967 \family default
16968 ) to the first item of each level in the list.
16969  There you add the command
16970 \end_layout
16971
16972 \begin_layout Standard
16973
16974 \change_inserted 564990737 1672138150
16975
16976 \family sans
16977 label=
16978 \backslash
16979 roman{enumi}
16980 \end_layout
16981
16982 \begin_layout Standard
16983
16984 \change_inserted 564990737 1672138150
16985 in \SpecialChar TeX
16986  Code (shortcut 
16987 \begin_inset Info
16988 type  "shortcut"
16989 arg   "ert-insert"
16990 \end_inset
16991
16992 ).
16993 \end_layout
16994
16995 \begin_layout Standard
16996
16997 \change_inserted 564990737 1672138150
16998
16999 \family sans
17000 enumi
17001 \family default
17002  is the first level counter of the enumeration.
17003  To change the numbering for the list sublevels,
17004  replace the “
17005 \family sans
17006 i
17007 \family default
17008 ” in the command by the small Roman numeral of the level (
17009 \family sans
17010 enumi
17011 \family default
17012 ,
17013  
17014 \family sans
17015 enumii
17016 \family default
17017 ,
17018  
17019 \family sans
17020 enumiii
17021 \family default
17022 ,
17023  
17024 \family sans
17025 enumiv
17026 \family default
17027 ).
17028 \end_layout
17029
17030 \begin_layout Standard
17031
17032 \change_inserted 564990737 1672138150
17033 The command 
17034 \family sans
17035
17036 \backslash
17037 roman
17038 \family default
17039  outputs the counter as a small Roman numeral.
17040  For capital Roman numerals replace 
17041 \family sans
17042
17043 \backslash
17044 roman
17045 \family default
17046  with 
17047 \family sans
17048
17049 \backslash
17050 Roman
17051 \family default
17052  in the command above.
17053  For Arabic numerals use 
17054 \family sans
17055
17056 \backslash
17057 arabic
17058 \family default
17059 .
17060  To 
17061 \begin_inset Quotes eld
17062 \end_inset
17063
17064 number
17065 \begin_inset Quotes erd
17066 \end_inset
17067
17068  items with capital or small Latin letters use 
17069 \family sans
17070
17071 \backslash
17072 Alph
17073 \family default
17074  or 
17075 \family sans
17076
17077 \backslash
17078 alph
17079 \family default
17080 ,
17081  respectively.
17082 \end_layout
17083
17084 \begin_layout Standard
17085 \noindent
17086
17087 \change_inserted 564990737 1672138150
17088 \begin_inset Note Greyedout
17089 status collapsed
17090
17091 \begin_layout Plain Layout
17092
17093 \change_inserted 564990737 1672138150
17094
17095 \series bold
17096 Note:
17097
17098 \series default
17099  You can only number 26
17100 \begin_inset space ~
17101 \end_inset
17102
17103 items with Latin letters,
17104  because this numbering is limited to single letters.
17105 \end_layout
17106
17107 \end_inset
17108
17109
17110 \end_layout
17111
17112 \begin_layout Standard
17113
17114 \change_inserted 564990737 1672138150
17115 Here is a list with custom numbering:
17116 \end_layout
17117
17118 \begin_layout Enumerate
17119
17120 \change_inserted 564990737 1672138150
17121 \begin_inset Argument 1
17122 status collapsed
17123
17124 \begin_layout Plain Layout
17125
17126 \change_inserted 564990737 1672138150
17127 \begin_inset ERT
17128 status collapsed
17129
17130 \begin_layout Plain Layout
17131
17132 \change_inserted 564990737 1672138150
17133
17134 label=
17135 \backslash
17136 #
17137 \backslash
17138 Alph{enumi}
17139 \backslash
17140 #
17141 \end_layout
17142
17143 \end_inset
17144
17145
17146 \change_unchanged
17147
17148 \end_layout
17149
17150 \end_inset
17151
17152 Level 1
17153 \begin_inset Separator latexpar
17154 \end_inset
17155
17156
17157 \end_layout
17158
17159 \begin_deeper
17160 \begin_layout Enumerate
17161
17162 \change_inserted 564990737 1672138150
17163 \begin_inset Argument 1
17164 status collapsed
17165
17166 \begin_layout Plain Layout
17167
17168 \change_inserted 564990737 1672138150
17169 \begin_inset ERT
17170 status collapsed
17171
17172 \begin_layout Plain Layout
17173
17174 \change_inserted 564990737 1672138150
17175
17176 label=
17177 \backslash
17178 Alph{enumi}.
17179 \backslash
17180 arabic{enumii}
17181 \end_layout
17182
17183 \end_inset
17184
17185
17186 \change_unchanged
17187
17188 \end_layout
17189
17190 \end_inset
17191
17192 Level 2
17193 \end_layout
17194
17195 \begin_layout Enumerate
17196
17197 \change_inserted 564990737 1672138150
17198 Level 2
17199 \begin_inset Separator latexpar
17200 \end_inset
17201
17202
17203 \end_layout
17204
17205 \begin_deeper
17206 \begin_layout Enumerate
17207
17208 \change_inserted 564990737 1672138150
17209 \begin_inset Argument 1
17210 status collapsed
17211
17212 \begin_layout Plain Layout
17213
17214 \change_inserted 564990737 1672138150
17215 \begin_inset ERT
17216 status collapsed
17217
17218 \begin_layout Plain Layout
17219
17220 \change_inserted 564990737 1672138150
17221
17222 label=
17223 \backslash
17224 bf{
17225 \backslash
17226 arabic{enumiii}}
17227 \end_layout
17228
17229 \end_inset
17230
17231
17232 \change_unchanged
17233
17234 \end_layout
17235
17236 \end_inset
17237
17238 Level 3
17239 \begin_inset Separator latexpar
17240 \end_inset
17241
17242
17243 \end_layout
17244
17245 \begin_deeper
17246 \begin_layout Enumerate
17247
17248 \change_inserted 564990737 1672138150
17249 \begin_inset Argument 1
17250 status collapsed
17251
17252 \begin_layout Plain Layout
17253
17254 \change_inserted 564990737 1672138150
17255 \begin_inset ERT
17256 status collapsed
17257
17258 \begin_layout Plain Layout
17259
17260 \change_inserted 564990737 1672138150
17261
17262 label=
17263 \backslash
17264 emph{
17265 \backslash
17266 roman{enumiv})}
17267 \end_layout
17268
17269 \end_inset
17270
17271
17272 \change_unchanged
17273
17274 \end_layout
17275
17276 \end_inset
17277
17278 Level 4
17279 \end_layout
17280
17281 \end_deeper
17282 \end_deeper
17283 \end_deeper
17284 \begin_layout Standard
17285
17286 \change_inserted 564990737 1672138150
17287 For this list these commands were used:
17288 \end_layout
17289
17290 \begin_layout Standard
17291 \noindent
17292
17293 \change_inserted 564990737 1672138150
17294
17295 \family sans
17296 label=
17297 \backslash
17298 #
17299 \backslash
17300 Alph{enumi}
17301 \backslash
17302 #
17303 \begin_inset Newline newline
17304 \end_inset
17305
17306 label=
17307 \backslash
17308 Alph{enumi}.
17309 \backslash
17310 arabic{enumii}
17311 \begin_inset Newline newline
17312 \end_inset
17313
17314 label=
17315 \backslash
17316 bf{
17317 \backslash
17318 arabic{enumiii}}
17319 \begin_inset Newline newline
17320 \end_inset
17321
17322 label=
17323 \backslash
17324 emph{
17325 \backslash
17326 roman{enumiv})}
17327 \end_layout
17328
17329 \begin_layout Standard
17330
17331 \change_inserted 564990737 1672138150
17332 where the command 
17333 \family sans
17334
17335 \backslash
17336 emph{}
17337 \family default
17338  makes the label emphasized and 
17339 \family sans
17340
17341 \backslash
17342 bf{}
17343 \family default
17344  makes it bold.
17345 \end_layout
17346
17347 \begin_layout Standard
17348
17349 \change_inserted 564990737 1672138150
17350 \begin_inset Note Greyedout
17351 status collapsed
17352
17353 \begin_layout Plain Layout
17354
17355 \change_inserted 564990737 1672138150
17356
17357 \series bold
17358 Note:
17359
17360 \series default
17361  When you change the label of a list level,
17362  it will be used for all following lists until you change the definition.
17363 \end_layout
17364
17365 \end_inset
17366
17367
17368 \end_layout
17369
17370 \begin_layout Standard
17371
17372 \change_inserted 564990737 1672138150
17373 \begin_inset ERT
17374 status open
17375
17376 \begin_layout Plain Layout
17377
17378 \change_inserted 564990737 1672138150
17379
17380
17381 \backslash
17382 renewcommand{
17383 \backslash
17384 labelenumi}{
17385 \backslash
17386 thesection.
17387 \backslash
17388 arabic{enumi}}
17389 \end_layout
17390
17391 \end_inset
17392
17393
17394 \end_layout
17395
17396 \begin_layout Subsubsection
17397
17398 \change_inserted 564990737 1672138150
17399 Numbered Paragraphs in Reports
17400 \end_layout
17401
17402 \begin_layout Enumerate
17403
17404 \change_inserted 564990737 1672138213
17405 Official reports often include numbered paragraphs;
17406  you can achieve this with a variation on the approach outlined in the footnote
17407 \begin_inset space ~
17408 \end_inset
17409
17410
17411 \begin_inset CommandInset ref
17412 LatexCommand ref
17413 reference "fn:If-you-really"
17414 plural "false"
17415 caps "false"
17416 noprefix "false"
17417 nolink "false"
17418
17419 \end_inset
17420
17421 .
17422  Replace 
17423 \family sans
17424 item
17425 \family default
17426  in each command with 
17427 \family sans
17428 enum
17429 \family default
17430 .
17431 \end_layout
17432
17433 \begin_layout Enumerate
17434
17435 \change_inserted 564990737 1672138150
17436 These numbered paragraphs were generated by inserting the \SpecialChar TeX
17437  Code
17438 \begin_inset Separator latexpar
17439 \end_inset
17440
17441
17442 \end_layout
17443
17444 \begin_deeper
17445 \begin_layout Standard
17446
17447 \change_inserted 564990737 1672138150
17448
17449 \family sans
17450
17451 \backslash
17452 renewcommand{
17453 \backslash
17454 labelenumi}{
17455 \backslash
17456 thesection.
17457 \backslash
17458 arabic{enumi}}
17459 \end_layout
17460
17461 \begin_layout Standard
17462
17463 \change_inserted 564990737 1672138150
17464 before the start of the section;
17465  
17466 \family sans
17467
17468 \backslash
17469 thesection
17470 \family default
17471  uses the \SpecialChar LaTeX
17472  section counter to generate the first part of the number.
17473 \end_layout
17474
17475 \end_deeper
17476 \begin_layout Enumerate
17477
17478 \change_inserted 564990737 1672138150
17479 I have ignored the subsection heading in this example because,
17480  with paragraphs numbered in this way,
17481  subsections are less likely to be used.
17482 \end_layout
17483
17484 \begin_layout Subsubsection
17485
17486 \change_inserted 564990737 1672138150
17487 Resumed Enumeration
17488 \end_layout
17489
17490 \begin_layout Standard
17491
17492 \change_inserted 564990737 1672138150
17493 \begin_inset ERT
17494 status open
17495
17496 \begin_layout Plain Layout
17497
17498 \change_inserted 564990737 1672138150
17499
17500
17501 \backslash
17502 renewcommand{
17503 \backslash
17504 labelenumi}{
17505 \backslash
17506 arabic{enumi}}
17507 \end_layout
17508
17509 \end_inset
17510
17511
17512 \end_layout
17513
17514 \begin_layout Standard
17515
17516 \change_inserted 564990737 1672138150
17517 Enumerations can be resumed after intermediate paragraphs:
17518 \end_layout
17519
17520 \begin_layout Enumerate
17521
17522 \change_inserted 564990737 1672138150
17523 \begin_inset Argument 1
17524 status collapsed
17525
17526 \begin_layout Plain Layout
17527
17528 \change_inserted 564990737 1672138150
17529 \begin_inset ERT
17530 status collapsed
17531
17532 \begin_layout Plain Layout
17533
17534 \change_inserted 564990737 1672138150
17535
17536 label=
17537 \backslash
17538 arabic{enumi}.
17539 \end_layout
17540
17541 \end_inset
17542
17543
17544 \change_unchanged
17545
17546 \end_layout
17547
17548 \end_inset
17549
17550 first
17551 \begin_inset Note Note
17552 status collapsed
17553
17554 \begin_layout Plain Layout
17555
17556 \change_inserted 564990737 1672138150
17557 goes back to default numbering
17558 \end_layout
17559
17560 \end_inset
17561
17562
17563 \end_layout
17564
17565 \begin_layout Enumerate
17566
17567 \change_inserted 564990737 1672138150
17568 second
17569 \end_layout
17570
17571 \begin_layout Standard
17572
17573 \change_inserted 564990737 1672138150
17574 regular text
17575 \end_layout
17576
17577 \begin_layout Enumerate-Resume
17578
17579 \change_inserted 564990737 1672138150
17580 resumed
17581 \end_layout
17582
17583 \begin_layout Standard
17584
17585 \change_inserted 564990737 1672138150
17586 To resume an enumeration,
17587  use the style 
17588 \family sans
17589 Enumerate-Resume
17590 \family default
17591 .
17592  Its numbering appears in blue within \SpecialChar LyX
17593  to indicate that it is a resumed list and that the numbering will not be correct in \SpecialChar LyX
17594 ,
17595  but in the output.
17596 \end_layout
17597
17598 \begin_layout Standard
17599
17600 \change_inserted 564990737 1672138150
17601 \begin_inset Note Greyedout
17602 status collapsed
17603
17604 \begin_layout Plain Layout
17605
17606 \change_inserted 564990737 1672138150
17607
17608 \series bold
17609 Note:
17610
17611 \series default
17612  If there is no previous enumeration to resume,
17613  you will get a \SpecialChar LaTeX
17614  error.
17615 \end_layout
17616
17617 \end_inset
17618
17619
17620 \end_layout
17621
17622 \begin_layout Standard
17623
17624 \change_inserted 564990737 1672138150
17625 Perhaps you might want to resume the list with a different number from the next one.
17626  Or you want to start a new enumeration with a defined number.
17627  This is possible by adding an optional argument to the first list item of a normal enumeration.
17628  There,
17629  insert the command
17630 \end_layout
17631
17632 \begin_layout Standard
17633
17634 \change_inserted 564990737 1672138150
17635
17636 \family sans
17637 start=number
17638 \end_layout
17639
17640 \begin_layout Standard
17641
17642 \change_inserted 564990737 1672138150
17643 where 
17644 \family sans
17645 number
17646 \family default
17647  is the number with which you want to resume the list.
17648  An example:
17649 \end_layout
17650
17651 \begin_layout Enumerate
17652
17653 \change_inserted 564990737 1672138150
17654 first item
17655 \end_layout
17656
17657 \begin_layout Enumerate
17658
17659 \change_inserted 564990737 1672138150
17660 second item
17661 \end_layout
17662
17663 \begin_layout Standard
17664
17665 \change_inserted 564990737 1672138150
17666 Enumeration starting at a given value:
17667 \end_layout
17668
17669 \begin_layout Enumerate
17670
17671 \change_inserted 564990737 1672138150
17672 \begin_inset Argument 1
17673 status open
17674
17675 \begin_layout Plain Layout
17676
17677 \change_inserted 564990737 1672138150
17678 \begin_inset ERT
17679 status collapsed
17680
17681 \begin_layout Plain Layout
17682
17683 \change_inserted 564990737 1672138150
17684
17685 start=4
17686 \end_layout
17687
17688 \end_inset
17689
17690
17691 \change_unchanged
17692
17693 \end_layout
17694
17695 \end_inset
17696
17697 This enumeration starts at 4
17698 \end_layout
17699
17700 \begin_layout Subsubsection
17701
17702 \change_inserted 564990737 1672138150
17703 List Spacing
17704 \begin_inset Index idx
17705 range none
17706 pageformat default
17707 status collapsed
17708
17709 \begin_layout Plain Layout
17710
17711 \change_inserted 564990737 1672138150
17712 Lists !
17713  Spacing
17714 \change_unchanged
17715
17716 \end_layout
17717
17718 \end_inset
17719
17720
17721 \end_layout
17722
17723 \begin_layout Standard
17724
17725 \change_inserted 564990737 1672138150
17726 In some cases you might want less or more vertical space between the items of a list.
17727  For example if the default space is too much in your opinion in this case:
17728 \end_layout
17729
17730 \begin_layout Itemize
17731
17732 \change_inserted 564990737 1672138150
17733 A bullet list
17734 \end_layout
17735
17736 \begin_layout Itemize
17737
17738 \change_inserted 564990737 1672138150
17739 with standard spacing 
17740 \end_layout
17741
17742 \begin_layout Standard
17743
17744 \change_inserted 564990737 1672138150
17745 You can decrease the space by adding an optional argument to the first item of the list.
17746  Add there the command 
17747 \family sans
17748 nolistsep
17749 \family default
17750  to get no additional list space like in this example:
17751 \end_layout
17752
17753 \begin_layout Itemize
17754
17755 \change_inserted 564990737 1672138150
17756 \begin_inset Argument 1
17757 status open
17758
17759 \begin_layout Plain Layout
17760
17761 \change_inserted 564990737 1672138150
17762 \begin_inset ERT
17763 status collapsed
17764
17765 \begin_layout Plain Layout
17766
17767 \change_inserted 564990737 1672138150
17768
17769 nolistsep
17770 \end_layout
17771
17772 \end_inset
17773
17774
17775 \change_unchanged
17776
17777 \end_layout
17778
17779 \end_inset
17780
17781 A bullet list
17782 \end_layout
17783
17784 \begin_layout Itemize
17785
17786 \change_inserted 564990737 1672138150
17787 without additional
17788 \end_layout
17789
17790 \begin_layout Itemize
17791
17792 \change_inserted 564990737 1672138150
17793 vertical space
17794 \end_layout
17795
17796 \begin_layout Standard
17797
17798 \change_inserted 564990737 1672138150
17799 To add space you can use several other commands provided by the 
17800 \family sans
17801 enumitem
17802 \family default
17803
17804 \begin_inset Index idx
17805 range none
17806 pageformat default
17807 status collapsed
17808
17809 \begin_layout Plain Layout
17810
17811 \change_inserted 564990737 1672138150
17812 \SpecialChar LaTeX
17813 -packages !
17814  enumitem
17815 \change_unchanged
17816
17817 \end_layout
17818
17819 \end_inset
17820
17821  package.
17822  For more information see the 
17823 \begin_inset CommandInset href
17824 LatexCommand href
17825 name "enumitem documentation"
17826 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
17827 literal "false"
17828
17829 \end_inset
17830
17831 .
17832 \end_layout
17833
17834 \begin_layout Standard
17835
17836 \change_inserted 564990737 1672138150
17837 There are also many commands available to change the horizontal spacing and indentation.
17838  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
17839 \begin_inset space \thinspace{}
17840 \end_inset
17841
17842 cm so that the number is in the page margin:
17843 \end_layout
17844
17845 \begin_layout Enumerate
17846
17847 \change_inserted 564990737 1672138150
17848 \begin_inset Argument 1
17849 status open
17850
17851 \begin_layout Plain Layout
17852
17853 \change_inserted 564990737 1672138150
17854 \begin_inset ERT
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858
17859 \change_inserted 564990737 1672138150
17860
17861 labelindent=
17862 \backslash
17863 parindent,
17864  labelsep=2cm
17865 \end_layout
17866
17867 \end_inset
17868
17869
17870 \change_unchanged
17871
17872 \end_layout
17873
17874 \end_inset
17875
17876 An enumeration
17877 \end_layout
17878
17879 \begin_layout Enumerate
17880
17881 \change_inserted 564990737 1672138150
17882 with negative indentation
17883 \end_layout
17884
17885 \begin_layout Subsubsection
17886
17887 \change_inserted 564990737 1672138150
17888 Further Customization
17889 \begin_inset Index idx
17890 range none
17891 pageformat default
17892 status collapsed
17893
17894 \begin_layout Plain Layout
17895
17896 \change_inserted 564990737 1672138150
17897 Lists !
17898  Customization
17899 \change_unchanged
17900
17901 \end_layout
17902
17903 \end_inset
17904
17905
17906 \end_layout
17907
17908 \begin_layout Standard
17909
17910 \change_inserted 564990737 1672138150
17911 You can also change the style of description lists.
17912  The command
17913 \end_layout
17914
17915 \begin_layout Standard
17916
17917 \change_inserted 564990737 1672138150
17918
17919 \family sans
17920 font=definition
17921 \end_layout
17922
17923 \begin_layout Standard
17924
17925 \change_inserted 564990737 1672138150
17926 changes the description label font,
17927  the command
17928 \end_layout
17929
17930 \begin_layout Standard
17931
17932 \change_inserted 564990737 1672138150
17933
17934 \family sans
17935 style=definitio
17936 \family default
17937 \series bold
17938 n
17939 \end_layout
17940
17941 \begin_layout Standard
17942
17943 \change_inserted 564990737 1672138150
17944 sets the list style.
17945 \end_layout
17946
17947 \begin_layout Standard
17948
17949 \change_inserted 564990737 1672138150
17950 An example where the command
17951 \end_layout
17952
17953 \begin_layout Standard
17954
17955 \change_inserted 564990737 1672138150
17956
17957 \family sans
17958 font=
17959 \backslash
17960 itshape,
17961  style=nextline
17962 \end_layout
17963
17964 \begin_layout Standard
17965
17966 \change_inserted 564990737 1672138150
17967 is used:
17968 \end_layout
17969
17970 \begin_layout Description
17971
17972 \change_inserted 564990737 1672138150
17973 Ionizing
17974 \begin_inset space ~
17975 \end_inset
17976
17977 radiation:
17978  
17979 \begin_inset Argument 1
17980 status collapsed
17981
17982 \begin_layout Plain Layout
17983
17984 \change_inserted 564990737 1672138150
17985 \begin_inset ERT
17986 status collapsed
17987
17988 \begin_layout Plain Layout
17989
17990 \change_inserted 564990737 1672138150
17991
17992 labelindent=0pt,
17993  labelsep=1cm,
17994  font=
17995 \backslash
17996 itshape,
17997  style=nextline
17998 \end_layout
17999
18000 \end_inset
18001
18002
18003 \change_unchanged
18004
18005 \end_layout
18006
18007 \end_inset
18008
18009 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
18010  therefore ionizing them.
18011 \end_layout
18012
18013 \begin_layout Description
18014
18015 \change_inserted 564990737 1672138150
18016 Reference
18017 \begin_inset space ~
18018 \end_inset
18019
18020 counting:
18021  In computer science,
18022  reference counting is a technique of storing the number of references,
18023  pointers,
18024  or handles to a resource such as an object,
18025  block of memory,
18026  disk space or other resource.
18027 \end_layout
18028
18029 \begin_layout Standard
18030
18031 \change_inserted 564990737 1672138150
18032 There are many more commands and features provided by the 
18033 \family sans
18034 enumitem
18035 \family default
18036
18037 \begin_inset Index idx
18038 range none
18039 pageformat default
18040 status collapsed
18041
18042 \begin_layout Plain Layout
18043
18044 \change_inserted 564990737 1672138150
18045 \SpecialChar LaTeX
18046 -packages !
18047  enumitem
18048 \change_unchanged
18049
18050 \end_layout
18051
18052 \end_inset
18053
18054  package.
18055  For more information see the 
18056 \begin_inset CommandInset href
18057 LatexCommand href
18058 name "enumitem documentation"
18059 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
18060 literal "false"
18061
18062 \end_inset
18063
18064 .
18065 \end_layout
18066
18067 \begin_layout Subsection
18068
18069 \change_inserted 564990737 1672138150
18070
18071 \series bold
18072 Paragraph Lists
18073 \end_layout
18074
18075 \begin_layout Standard
18076
18077 \change_inserted 564990737 1672138150
18078 This module uses the package 
18079 \family sans
18080 paralist
18081 \family default
18082  to provide nine new list environments.
18083  Itemized and enumerated lists can be typeset within paragraphs,
18084  as paragraphs and in a compact version.
18085  Most environments have optional arguments to format the labels.
18086  Additionally,
18087  the \SpecialChar LaTeX
18088  list environments itemize and enumerate are extended to use a similar optional argument.
18089  For further details see 
18090 \family sans
18091 File\SpecialChar menuseparator
18092 Open Example\SpecialChar menuseparator
18093 Modules\SpecialChar menuseparator
18094 Paragraph Lists (paralist)
18095 \family default
18096 ,
18097  
18098 \family sans
18099 Help\SpecialChar menuseparator
18100 Specific Manuals\SpecialChar menuseparator
18101 Paralist
18102 \family default
18103  and the 
18104 \begin_inset CommandInset href
18105 LatexCommand href
18106 name "paralist documentation"
18107 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
18108 literal "false"
18109
18110 \end_inset
18111
18112 .
18113 \end_layout
18114
18115 \begin_layout Section
18116
18117 \change_inserted 564990737 1672161542
18118 Literate Programming 
18119 \end_layout
18120
18121 \begin_layout Subsection
18122
18123 \change_inserted 564990737 1672161542
18124 Noweb
18125 \end_layout
18126
18127 \begin_layout Standard
18128
18129 \change_inserted 564990737 1672161542
18130 This module allows the use of Noweb as a literate programming tool.
18131  The files and the documentation for Noweb can be obtained from 
18132 \begin_inset CommandInset href
18133 LatexCommand href
18134 name "CTAN"
18135 target "https://www.ctan.org/pkg/noweb"
18136 literal "false"
18137
18138 \end_inset
18139
18140 .
18141  Literate programming is described in section
18142 \begin_inset space ~
18143 \end_inset
18144
18145
18146 \begin_inset CommandInset ref
18147 LatexCommand ref
18148 reference "sec:Literate-Programming"
18149 nolink "false"
18150
18151 \end_inset
18152
18153  and there are three example files:
18154  
18155 \family sans
18156 File\SpecialChar menuseparator
18157 Open Example\SpecialChar menuseparator
18158 Modules\SpecialChar menuseparator
18159 Noweb
18160 \family default
18161 ,
18162  
18163 \family sans
18164 File\SpecialChar menuseparator
18165 Open Example\SpecialChar menuseparator
18166 Modules\SpecialChar menuseparator
18167 Noweb Listerrors
18168 \family default
18169  and 
18170 \family sans
18171 File\SpecialChar menuseparator
18172 Open Example\SpecialChar menuseparator
18173 Modules\SpecialChar menuseparator
18174 Noweb2\SpecialChar LyX
18175
18176 \family default
18177 .
18178 \end_layout
18179
18180 \begin_layout Subsection
18181
18182 \change_inserted 564990737 1672161542
18183 Rnw (knitr)
18184 \end_layout
18185
18186 \begin_layout Standard
18187
18188 \change_inserted 564990737 1672161542
18189 This module uses the 
18190 \family typewriter
18191 knitr
18192 \family default
18193  and 
18194 \family sans
18195 includernw
18196 \family default
18197  packages.
18198  The
18199 \begin_inset Flex Code
18200 status collapsed
18201
18202 \begin_layout Plain Layout
18203
18204 \change_inserted 564990737 1672161542
18205 knitr
18206 \change_unchanged
18207
18208 \end_layout
18209
18210 \end_inset
18211
18212  package in R for dynamic report generation has to be installed for this module to work:
18213  
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218
18219 \change_inserted 564990737 1672161542
18220 install.packages(“knitr”)
18221 \change_unchanged
18222
18223 \end_layout
18224
18225 \end_inset
18226
18227 .
18228  
18229 \end_layout
18230
18231 \begin_layout Paragraph
18232
18233 \change_inserted 564990737 1672161542
18234 Note 
18235 \end_layout
18236
18237 \begin_layout Standard
18238
18239 \change_inserted 564990737 1672161542
18240 it depends on R >= 2.14.1.
18241  For more info see 
18242 \begin_inset Flex URL
18243 status collapsed
18244
18245 \begin_layout Plain Layout
18246
18247 \change_inserted 564990737 1672161542
18248
18249 http://yihui.name/knitr
18250 \change_unchanged
18251
18252 \end_layout
18253
18254 \end_inset
18255
18256 .
18257  
18258 \end_layout
18259
18260 \begin_layout Standard
18261
18262 \change_inserted 564990737 1672161542
18263 The package 
18264 \family sans
18265 includernw
18266 \family default
18267  also has to be installed.
18268  It cannot be used if the modules 
18269 \family sans
18270 LilyPond
18271 \begin_inset space ~
18272 \end_inset
18273
18274 Book
18275 \family default
18276  or 
18277 \family sans
18278 Sweave
18279 \family default
18280  are loaded.
18281  See 
18282 \family sans
18283 Help\SpecialChar menuseparator
18284 Specific Manuals\SpecialChar menuseparator
18285 Knitr
18286 \family default
18287 ,
18288  
18289 \family sans
18290 File\SpecialChar menuseparator
18291 Open Example\SpecialChar menuseparator
18292 Modules\SpecialChar menuseparator
18293 Rnw (knitr)
18294 \family default
18295  and section
18296 \begin_inset space ~
18297 \end_inset
18298
18299
18300 \begin_inset CommandInset ref
18301 LatexCommand ref
18302 reference "sec:Literate-Programming"
18303 nolink "false"
18304
18305 \end_inset
18306
18307  for information about literate programming.
18308 \end_layout
18309
18310 \begin_layout Subsection
18311
18312 \change_inserted 564990737 1672161542
18313 Sweave
18314 \end_layout
18315
18316 \begin_layout Standard
18317
18318 \change_inserted 564990737 1672161542
18319 This module allows the use of the statistical language S/R as a literate programming tool.
18320  It requires the 
18321 \family sans
18322 includernw
18323 \family default
18324  and 
18325 \family sans
18326 fancyvrb
18327 \family default
18328  packages.
18329  Both 
18330 \begin_inset CommandInset href
18331 LatexCommand href
18332 name "includernw"
18333 target "https://www.ctan.org/pkg/includernw"
18334 literal "false"
18335
18336 \end_inset
18337
18338  and 
18339 \begin_inset CommandInset href
18340 LatexCommand href
18341 name "fancyvrb"
18342 target "https://www.ctan.org/pkg/fancyvrb"
18343 literal "false"
18344
18345 \end_inset
18346
18347  are available from CTAN.
18348  It cannot be used if the module 
18349 \family sans
18350 LilyPond
18351 \begin_inset space ~
18352 \end_inset
18353
18354 Book
18355 \family default
18356  has been loaded.
18357  See 
18358 \family sans
18359 Help\SpecialChar menuseparator
18360 Specific Manuals\SpecialChar menuseparator
18361 Sweave,
18362
18363 \family default
18364  
18365 \family sans
18366 File\SpecialChar menuseparator
18367 Open Example\SpecialChar menuseparator
18368 Modules\SpecialChar menuseparator
18369 Sweave
18370 \family default
18371  and section
18372 \begin_inset space ~
18373 \end_inset
18374
18375
18376 \begin_inset CommandInset ref
18377 LatexCommand ref
18378 reference "sec:Literate-Programming"
18379 nolink "false"
18380
18381 \end_inset
18382
18383  for information about literate programming.
18384 \end_layout
18385
18386 \begin_layout Section
18387
18388 \change_inserted 564990737 1672224959
18389 Maths
18390 \end_layout
18391
18392 \begin_layout Subsection
18393
18394 \change_inserted 564990737 1672224959
18395 AMS Theorems
18396 \end_layout
18397
18398 \begin_layout Standard
18399
18400 \change_inserted 564990737 1672224959
18401 This modules defines theorem environments and the proof environment using the extended AMS machinery.
18402  Both numbered and unnumbered types are provided.
18403  By default,
18404  the theorems are numbered consecutively throughout the document.
18405  This can be changed by loading one of the 
18406 \family sans
18407 AMS Theorems (Numbered by \SpecialChar ldots
18408 )
18409 \family default
18410  modules.
18411  It cannot be used if the modules 
18412 \family sans
18413 Standard Theorems
18414 \family default
18415  or 
18416 \family sans
18417 Standard Theorems (Unnumbered)
18418 \family default
18419  have been loaded.
18420 \end_layout
18421
18422 \begin_layout Subsection
18423
18424 \change_inserted 564990737 1672224959
18425 AMS Theorems (Extended)
18426 \end_layout
18427
18428 \begin_layout Standard
18429
18430 \change_inserted 564990737 1672224959
18431 This module defines some additional theorem environments for use with the 
18432 \family sans
18433 AMS Theorems
18434 \family default
18435  package (which must be loaded).
18436  It includes Criterion,
18437  Algorithm,
18438  Axiom,
18439  Condition,
18440  Note,
18441  Notation,
18442  Summary,
18443  Acknowledgement,
18444  Conclusion,
18445  Fact,
18446  Assumption,
18447  Case and Question in both numbered and unnumbered forms.
18448 \end_layout
18449
18450 \begin_layout Subsection
18451
18452 \change_inserted 564990737 1672224959
18453 AMS Theorems (Extended,
18454  Numbered by Type within Chapters)
18455 \end_layout
18456
18457 \begin_layout Standard
18458
18459 \change_inserted 564990737 1672224959
18460 This module defines some additional theorem environments for use with the 
18461 \family sans
18462 AMS Theorems (Numbered by Type within Chapters)
18463 \family default
18464  package (which must be loaded).
18465  It includes Criterion,
18466  Algorithm,
18467  Axiom,
18468  Condition,
18469  Note,
18470  Notation,
18471  Summary,
18472  Acknowledgement,
18473  Conclusion,
18474  Assumption and Case in both numbered and unnumbered forms.
18475  Unlike the 
18476 \family sans
18477 AMS Theorems (Extended)
18478 \family default
18479  module,
18480  the different theorem types provided here each have a separate counter,
18481  restarted with each new chapter (e.g.,
18482  criterion 1.1,
18483  criterion 1.2,
18484  axiom 1.1,
18485  assumption 1.1,
18486  criterion 2.1,
18487  criterion 2.2,
18488  axiom 2.1\SpecialChar ldots
18489 ,
18490  as opposed to criterion 1,
18491  criterion 2,
18492  axiom 3,
18493  assumption 4...).
18494 \end_layout
18495
18496 \begin_layout Subsection
18497
18498 \change_inserted 564990737 1672224959
18499 AMS Theorems (Extended,
18500  Numbered by Type)
18501 \end_layout
18502
18503 \begin_layout Standard
18504
18505 \change_inserted 564990737 1672224959
18506 This module defines some additional theorem environments for use with the 
18507 \family sans
18508 AMS Theorems (Numbered by Type)
18509 \family default
18510  package (which must be loaded).
18511  It includes Criterion,
18512  Algorithm,
18513  Axiom,
18514  Condition,
18515  Note,
18516  Notation,
18517  Summary,
18518  Acknowledgement,
18519  Conclusion,
18520  Assumption and Case in both numbered and unnumbered forms.
18521  Unlike the 
18522 \family sans
18523 AMS Theorems (Extended)
18524 \family default
18525  module,
18526  the different theorem types provided here each have a separate counter (e.g.,
18527  criterion 1,
18528  criterion 2,
18529  axiom 1,
18530  assumption 1,
18531  criterion 3,
18532  \SpecialChar ldots
18533 ,
18534  as opposed to criterion 1,
18535  criterion 2,
18536  axiom 3,
18537  assumption 4,
18538  \SpecialChar ldots
18539 ).
18540 \end_layout
18541
18542 \begin_layout Subsection
18543
18544 \change_inserted 564990737 1672224959
18545 AMS Theorems (Numbered by Type within Chapters) 
18546 \end_layout
18547
18548 \begin_layout Standard
18549
18550 \change_inserted 564990737 1672224959
18551 This module defines theorem environments and the proof environment using the extended AMS machinery.
18552  Both numbered and unnumbered types are provided.
18553  Unlike the 
18554 \family sans
18555 AMS Theorems
18556 \family default
18557  module,
18558  the different theorem types provided here each have a separate counter (e.g.,
18559  theorem 1.1,
18560  theorem 1.2,
18561  lemma 1.1,
18562  proposition 1.1,
18563  theorem 1.3,
18564  lemma 1.2,
18565  \SpecialChar ldots
18566 ,
18567  as opposed to theorem 1,
18568  theorem 2,
18569  lemma 3,
18570  proposition 4,
18571  \SpecialChar ldots
18572 ).
18573  The numbering restarts for each chapter:
18574  theorem 1.1,
18575  theorem 2.1,
18576  \SpecialChar ldots
18577  It cannot be used if the modules 
18578 \family sans
18579 AMS Theorems
18580 \family default
18581 ,
18582  
18583 \family sans
18584 Standard Theorems
18585 \family default
18586 ,
18587
18588 \family sans
18589  Standard Theorems (Numbered by Type)
18590 \family default
18591  or
18592 \family sans
18593  Standard Theorems (Unnumbered)
18594 \family default
18595  have been loaded.
18596 \end_layout
18597
18598 \begin_layout Subsection
18599
18600 \change_inserted 564990737 1672224959
18601 AMS Theorems (Numbered by Type)
18602 \end_layout
18603
18604 \begin_layout Standard
18605
18606 \change_inserted 564990737 1672224959
18607 This module defines theorem environments and the proof environment using the extended AMS machinery.
18608  Both numbered and unnumbered types are provided.
18609  Unlike the 
18610 \family sans
18611 AMS Theorems
18612 \family default
18613  module,
18614  the different theorem types provided here each have a separate counter (e.g.,
18615  theorem 1,
18616  theorem 2,
18617  lemma 1,
18618  proposition 1,
18619  theorem 3,
18620  lemma 2,
18621  \SpecialChar ldots
18622 ,
18623  as opposed to theorem 1,
18624  theorem 2,
18625  lemma 3,
18626  proposition 4,
18627  \SpecialChar ldots
18628 ).
18629  The numbering’s scope is the whole document.
18630  For chapter- and section-wide numbering,
18631  use one of the ‘within Sections’/‘within Chapters’ modules,
18632  respectively.
18633  It cannot be used if the modules 
18634 \family sans
18635 AMS Theorems
18636 \family default
18637 ,
18638  
18639 \family sans
18640 Standard Theorems
18641 \family default
18642 ,
18643
18644 \family sans
18645  Standard Theorems (Numbered by Type)
18646 \family default
18647  or
18648 \family sans
18649  Standard Theorems (Unnumbered)
18650 \family default
18651  have been loaded.
18652 \end_layout
18653
18654 \begin_layout Subsection
18655
18656 \change_inserted 564990737 1672224959
18657 Number Equations by Section
18658 \end_layout
18659
18660 \begin_layout Standard
18661
18662 \change_inserted 564990737 1672224959
18663 This module resets the equation number at section start and prepends the section number to the equation number,
18664  as in “(2.1).” 
18665 \end_layout
18666
18667 \begin_layout Subsection
18668
18669 \change_inserted 564990737 1672224959
18670 Standard Theorems
18671 \end_layout
18672
18673 \begin_layout Standard
18674
18675 \change_inserted 564990737 1672224959
18676 This module defines some theorem environments for use with non-AMS classes.
18677  By default,
18678  the theorems are numbered consecutively throughout the document.
18679  This can be changed by loading one of the 
18680 \family sans
18681 Standard Theorems (Numbered by \SpecialChar ldots
18682 )
18683 \family default
18684  modules.
18685  It cannot be used if the modules 
18686 \family sans
18687 AMS Theorems
18688 \family default
18689  or
18690 \family sans
18691  Standard Theorems (Unnumbered)
18692 \family default
18693  have been loaded.
18694  
18695 \end_layout
18696
18697 \begin_layout Subsection
18698
18699 \change_inserted 564990737 1672224959
18700 Standard Theorems (Nameable)
18701 \end_layout
18702
18703 \begin_layout Standard
18704
18705 \change_inserted 564990737 1672224959
18706 This module facilitates the use of named theorems.
18707  The name of the theorem goes into the “Additional Theorem Text” argument.
18708  
18709 \end_layout
18710
18711 \begin_layout Subsection
18712
18713 \change_inserted 564990737 1672224959
18714 Standard Theorems (Numbered by Chapter)
18715 \end_layout
18716
18717 \begin_layout Standard
18718
18719 \change_inserted 564990737 1672224959
18720 This module numbers theorems and the like by chapter (i.e.,
18721  the counter is reset at each chapter start).
18722  Use this module only with document classes that provide a chapter environment.
18723  One of the modules 
18724 \family sans
18725 AMS Theorems
18726 \family default
18727  or 
18728 \family sans
18729 Standard Theorems
18730 \family default
18731  must be loaded.
18732  It cannot be used if the module
18733 \family sans
18734  Standard Theorems (Numbered by Section)
18735 \family default
18736  has been loaded.
18737 \end_layout
18738
18739 \begin_layout Subsection
18740
18741 \change_inserted 564990737 1672224959
18742 Standard Theorems (Numbered by Section)
18743 \end_layout
18744
18745 \begin_layout Standard
18746
18747 \change_inserted 564990737 1672224959
18748 This module numbers theorems and the like by section (i.e.,
18749  the counter is reset at each section start).
18750  One of the modules 
18751 \family sans
18752 AMS Theorems
18753 \family default
18754  or 
18755 \family sans
18756 Standard Theorems
18757 \family default
18758  must be loaded.
18759  It cannot be used if the module
18760 \family sans
18761  Standard Theorems (Numbered by Chapter)
18762 \family default
18763  has been loaded.
18764 \end_layout
18765
18766 \begin_layout Subsection
18767
18768 \change_inserted 564990737 1672224959
18769 Standard Theorems (Numbered by Type within Chapters) 
18770 \end_layout
18771
18772 \begin_layout Standard
18773
18774 \change_inserted 564990737 1672224959
18775 This module defines some theorem environments for use with non-AMS classes.
18776  Unlike the
18777 \family sans
18778  AMS Theorems
18779 \family default
18780  and 
18781 \family sans
18782 Standard Theorems
18783 \family default
18784  modules,
18785  the different theorem types provided here each have a separate counter (e.g.,
18786  theorem 1,
18787  theorem 2,
18788  lemma 1,
18789  proposition 1,
18790  theorem 3,
18791  lemma 2,
18792  \SpecialChar ldots
18793 ,
18794  as opposed to theorem 1,
18795  theorem 2,
18796  lemma 3,
18797  proposition 4,
18798  \SpecialChar ldots
18799 ).
18800  The numbering is reset at each chapter start.
18801  One of the modules 
18802 \family sans
18803 AMS Theorems (Numbered by Type)
18804 \family default
18805  or 
18806 \family sans
18807 Standard Theorems (Numbered by Type)
18808 \family default
18809  must be loaded.
18810  It cannot be used if any of the modules
18811 \family sans
18812  AMS Theorems
18813 \family default
18814 ,
18815  
18816 \family sans
18817 Standard Theorems
18818 \family default
18819 ,
18820  
18821 \family sans
18822 Standard Theorems (Unnumbered)
18823 \family default
18824 ,
18825
18826 \family sans
18827  Standard Theorems (Numbered by Sections)
18828 \family default
18829  or 
18830 \family sans
18831 Standard Theorems (Numbered by Type within Sections)
18832 \family default
18833  have been loaded.
18834 \end_layout
18835
18836 \begin_layout Subsection
18837
18838 \change_inserted 564990737 1672224959
18839 Standard Theorems (Numbered by Type within Sections) 
18840 \end_layout
18841
18842 \begin_layout Standard
18843
18844 \change_inserted 564990737 1672224959
18845 This module defines some theorem environments for use with non-AMS classes.
18846  Unlike the
18847 \family sans
18848  AMS Theorems
18849 \family default
18850  and 
18851 \family sans
18852 Standard Theorems
18853 \family default
18854  modules,
18855  the different theorem types provided here each have a separate counter (e.g.,
18856  theorem 1,
18857  theorem 2,
18858  lemma 1,
18859  proposition 1,
18860  theorem 3,
18861  lemma 2,
18862  \SpecialChar ldots
18863 ,
18864  as opposed to theorem 1,
18865  theorem 2,
18866  lemma 3,
18867  proposition 4,
18868  \SpecialChar ldots
18869 ).
18870  The numbering is reset at each section start.
18871  One of the modules 
18872 \family sans
18873 AMS Theorems (Numbered by Type)
18874 \family default
18875  or 
18876 \family sans
18877 Standard Theorems (Numbered by Type)
18878 \family default
18879  must be loaded.
18880  It cannot be used if any of the modules
18881 \family sans
18882  AMS Theorems
18883 \family default
18884 ,
18885  
18886 \family sans
18887 Standard Theorems
18888 \family default
18889 ,
18890  
18891 \family sans
18892 Standard Theorems (Unnumbered)
18893 \family default
18894 ,
18895
18896 \family sans
18897  Standard Theorems (Numbered by Chapters)
18898 \family default
18899  or 
18900 \family sans
18901 Standard Theorems (Numbered by Type within Chapters)
18902 \family default
18903  have been loaded.
18904 \end_layout
18905
18906 \begin_layout Subsection
18907
18908 \change_inserted 564990737 1672224959
18909 Standard Theorems (Numbered by Type)
18910 \end_layout
18911
18912 \begin_layout Standard
18913
18914 \change_inserted 564990737 1672224959
18915 This module defines some theorem environments for use with non-AMS classes.
18916  Unlike the 
18917 \family sans
18918 AMS Theorems
18919 \family default
18920  and 
18921 \family sans
18922 Standard Theorems
18923 \family default
18924  modules,
18925  the different theorem types provided here each have a separate counter (e.g.,
18926  theorem 1,
18927  theorem 2,
18928  lemma 1,
18929  proposition 1,
18930  theorem 3,
18931  lemma 2,
18932  \SpecialChar ldots
18933 ,
18934  as opposed to theorem 1,
18935  theorem 2,
18936  lemma 3,
18937  proposition 4,
18938  \SpecialChar ldots
18939 ).
18940  The numbering’s scope is the whole document.
18941  For chapter- and section-wide numbering,
18942  use one of the “within Chapters”/“within Sections” modules,
18943  respectively.
18944  It cannot be used if any of the modules
18945 \family sans
18946  AMS Theorems
18947 \family default
18948 ,
18949  
18950 \family sans
18951 Standard Theorems
18952 \family default
18953 ,
18954  
18955 \family sans
18956 Standard Theorems (Unnumbered)
18957 \family default
18958  or
18959 \family sans
18960  AMS Theorems (Numbered by Type)
18961 \family default
18962  have been loaded.
18963 \end_layout
18964
18965 \begin_layout Subsection
18966
18967 \change_inserted 564990737 1672224959
18968 Standard Theorems (Unnumbered)
18969 \end_layout
18970
18971 \begin_layout Standard
18972
18973 \change_inserted 564990737 1672224959
18974 This module defines only unnumbered theorem environments and the proof environment,
18975  using the extended AMS machinery.
18976  It cannot be used if either of the modules
18977 \family sans
18978  AMS Theorems
18979 \family default
18980  or
18981 \family sans
18982  Standard Theorems
18983 \family default
18984  have been loaded.
18985 \end_layout
18986
18987 \begin_layout Subsection
18988
18989 \change_inserted 564990737 1672224959
18990 Subequations
18991 \end_layout
18992
18993 \begin_layout Standard
18994
18995 \change_inserted 564990737 1672224959
18996 This module provides a straightforward way to segregate subequations in LyX.
18997  See 
18998 \family sans
18999 Help\SpecialChar menuseparator
19000 Math\SpecialChar menuseparator
19001 Subnumbering
19002 \family default
19003 .
19004  
19005 \end_layout
19006
19007 \begin_layout Section
19008
19009 \change_inserted 564990737 1672236008
19010 Page Layout
19011 \end_layout
19012
19013 \begin_layout Subsection
19014
19015 \change_inserted 564990737 1672236008
19016 Custom Header/Footer Text
19017 \end_layout
19018
19019 \begin_layout Standard
19020
19021 \change_inserted 564990737 1672236008
19022 This module requires the 
19023 \family sans
19024 Page
19025 \begin_inset space ~
19026 \end_inset
19027
19028
19029 \bar under
19030 s
19031 \bar default
19032 tyle
19033 \family default
19034  option in the 
19035 \family sans
19036 \bar under
19037 D
19038 \bar default
19039 ocument\SpecialChar menuseparator
19040
19041 \bar under
19042 S
19043 \bar default
19044 ettings\SpecialChar menuseparator
19045 Page
19046 \begin_inset space ~
19047 \end_inset
19048
19049 Layout
19050 \family default
19051  dialog to be set to 
19052 \family typewriter
19053 fancy
19054 \family default
19055 .
19056  It adds six environments to document classes which support the 
19057 \family typewriter
19058 fancyhdr
19059 \family default
19060  package:
19061 \end_layout
19062
19063 \begin_layout Itemize
19064
19065 \change_inserted 564990737 1672236008
19066
19067 \family sans
19068 Left Header
19069 \end_layout
19070
19071 \begin_layout Itemize
19072
19073 \change_inserted 564990737 1672236008
19074
19075 \family sans
19076 Center Header
19077 \end_layout
19078
19079 \begin_layout Itemize
19080
19081 \change_inserted 564990737 1672236008
19082
19083 \family sans
19084 Right Header
19085 \end_layout
19086
19087 \begin_layout Itemize
19088
19089 \change_inserted 564990737 1672236008
19090
19091 \family sans
19092 Left Footer
19093 \end_layout
19094
19095 \begin_layout Itemize
19096
19097 \change_inserted 564990737 1672236008
19098
19099 \family sans
19100 Center Footer
19101 \end_layout
19102
19103 \begin_layout Itemize
19104
19105 \change_inserted 564990737 1672236008
19106
19107 \family sans
19108 Right Footer
19109 \end_layout
19110
19111 \begin_layout Subsubsection
19112
19113 \change_inserted 564990737 1672236008
19114 Fancy Headers and Footers
19115 \end_layout
19116
19117 \begin_layout Standard
19118
19119 \change_inserted 564990737 1672236008
19120 The default page layout is rather plain;
19121  for an 
19122 \begin_inset Flex Code
19123 status collapsed
19124
19125 \begin_layout Plain Layout
19126
19127 \change_inserted 564990737 1672236008
19128 article
19129 \change_unchanged
19130
19131 \end_layout
19132
19133 \end_inset
19134
19135  document class,
19136  all you get is a centered page number at the bottom of the page.
19137  This document uses KOMA-script’s book class;
19138  so it appears to be a bit fancier.
19139  Once the 
19140 \family sans
19141 Page
19142 \begin_inset space ~
19143 \end_inset
19144
19145
19146 \bar under
19147 s
19148 \bar default
19149 tyle
19150 \family default
19151  in 
19152 \family sans
19153 \bar under
19154 D
19155 \bar default
19156 ocument\SpecialChar menuseparator
19157
19158 \bar under
19159 S
19160 \bar default
19161 ettings\SpecialChar menuseparator
19162 Page Layout
19163 \family default
19164  is set to 
19165 \begin_inset Quotes eld
19166 \end_inset
19167
19168 fancy
19169 \begin_inset Quotes erd
19170 \end_inset
19171
19172 ,
19173  you will find that the page header is divided into three fields,
19174  not surprisingly labeled 
19175 \begin_inset Quotes eld
19176 \end_inset
19177
19178 left
19179 \begin_inset Quotes erd
19180 \end_inset
19181
19182 ,
19183  
19184 \begin_inset Quotes eld
19185 \end_inset
19186
19187 center
19188 \begin_inset Quotes erd
19189 \end_inset
19190
19191 ,
19192  and 
19193 \begin_inset Quotes eld
19194 \end_inset
19195
19196 right
19197 \begin_inset Quotes erd
19198 \end_inset
19199
19200 .
19201  The footer is also divided into these three fields.
19202  The \SpecialChar LaTeX
19203  commands to set these fields in the simplest manner are 
19204 \family sans
19205
19206 \backslash
19207 lhead
19208 \family default
19209 ,
19210  
19211 \family sans
19212
19213 \backslash
19214 chead
19215 \family default
19216 ,
19217  
19218 \family sans
19219
19220 \backslash
19221 rhead
19222 \family default
19223 ,
19224  
19225 \family sans
19226
19227 \backslash
19228 lfoot
19229 \family default
19230 ,
19231  etc.
19232  Suppose you wish to put your name in the upper left hand corner of each page.
19233  Simply insert the following command in the preamble:
19234  
19235 \end_layout
19236
19237 \begin_layout Standard
19238
19239 \change_inserted 564990737 1672236008
19240
19241 \family sans
19242
19243 \backslash
19244 lhead
19245 \family default
19246 \series bold
19247 {
19248 \series default
19249 John Q.
19250  DocWriter
19251 \series bold
19252 }
19253 \end_layout
19254
19255 \begin_layout Standard
19256
19257 \change_inserted 564990737 1672236008
19258 You will now see your name in the upper left.
19259  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,
19260  e.
19261 \begin_inset space \thinspace{}
19262 \end_inset
19263
19264 g.:
19265 \end_layout
19266
19267 \begin_layout Standard
19268
19269 \change_inserted 564990737 1672236008
19270
19271 \family sans
19272
19273 \backslash
19274 cfoot{}
19275 \end_layout
19276
19277 \begin_layout Standard
19278
19279 \change_inserted 564990737 1672236008
19280 There is,
19281  however,
19282  an easier way to make simple changes.
19283  If you load the 
19284 \family sans
19285 \bar under
19286 D
19287 \bar default
19288 ocument\SpecialChar menuseparator
19289
19290 \bar under
19291 S
19292 \bar default
19293 ettings\SpecialChar menuseparator
19294 Modules\SpecialChar menuseparator
19295 Page Layout\SpecialChar menuseparator
19296 Custom Header/Footer Text
19297 \family default
19298  module,
19299  you will find you have six new environments corresponding to the six fields described above.
19300 \end_layout
19301
19302 \begin_layout Standard
19303
19304 \change_inserted 564990737 1672236008
19305 Let's get really fancy:
19306  lets put the section number with the word 
19307 \begin_inset Quotes eld
19308 \end_inset
19309
19310 Section
19311 \begin_inset Quotes erd
19312 \end_inset
19313
19314  (e.
19315 \begin_inset space \thinspace{}
19316 \end_inset
19317
19318 g.
19319 \begin_inset space \space{}
19320 \end_inset
19321
19322 Section 3) in the upper left,
19323  the page number (e.
19324 \begin_inset space \thinspace{}
19325 \end_inset
19326
19327 g.
19328 \begin_inset space \space{}
19329 \end_inset
19330
19331 Page 4) in the upper right,
19332  your name in the lower left,
19333  and the date in the lower right.
19334  Use your newly enabled environments to add these entries:
19335 \end_layout
19336
19337 \begin_layout Standard
19338
19339 \change_inserted 564990737 1672236008
19340 \begin_inset VSpace defskip
19341 \end_inset
19342
19343
19344 \end_layout
19345
19346 \begin_layout Standard
19347
19348 \change_inserted 564990737 1672236008
19349
19350 \color green
19351 Left
19352 \begin_inset space ~
19353 \end_inset
19354
19355 header:
19356
19357 \series bold
19358 \color inherit
19359  
19360 \series default
19361 Section
19362 \family typewriter
19363  
19364 \family sans
19365
19366 \backslash
19367 thesection
19368 \end_layout
19369
19370 \begin_layout Standard
19371
19372 \change_inserted 564990737 1672236008
19373
19374 \color green
19375 Center header:
19376 \end_layout
19377
19378 \begin_layout Standard
19379
19380 \change_inserted 564990737 1672236008
19381
19382 \color green
19383 Right header:
19384
19385 \color inherit
19386  Page
19387 \family typewriter
19388  
19389 \family sans
19390
19391 \backslash
19392 thepage
19393 \end_layout
19394
19395 \begin_layout Standard
19396
19397 \change_inserted 564990737 1672236008
19398
19399 \color green
19400 Left footer:
19401
19402 \color inherit
19403  John Q.
19404  DocWriter
19405 \end_layout
19406
19407 \begin_layout Standard
19408
19409 \change_inserted 564990737 1672236008
19410
19411 \color green
19412 Center footer:
19413 \end_layout
19414
19415 \begin_layout Standard
19416
19417 \change_inserted 564990737 1672236008
19418
19419 \color green
19420 Right footer:
19421
19422 \series bold
19423 \color inherit
19424  
19425 \family sans
19426 \series default
19427
19428 \backslash
19429 today
19430 \end_layout
19431
19432 \begin_layout Standard
19433
19434 \change_inserted 564990737 1672236008
19435 \begin_inset VSpace defskip
19436 \end_inset
19437
19438
19439 \end_layout
19440
19441 \begin_layout Standard
19442
19443 \change_inserted 564990737 1672236008
19444 Make sure you enter the commands 
19445 \family sans
19446
19447 \backslash
19448 thesection
19449 \family default
19450 ,
19451  
19452 \family sans
19453
19454 \backslash
19455 thepage
19456 \family default
19457  and 
19458 \family sans
19459
19460 \backslash
19461 today
19462 \family default
19463  as \SpecialChar TeX
19464  Code commands
19465 \series bold
19466 .
19467
19468 \series default
19469  The commands 
19470 \family sans
19471
19472 \backslash
19473 thesection
19474 \family default
19475  and 
19476 \family sans
19477
19478 \backslash
19479 thepage
19480 \family default
19481  access \SpecialChar LaTeX
19482 ’s section and page counters,
19483  and so print out the current section and page numbers.
19484  
19485 \family sans
19486
19487 \backslash
19488 today
19489 \family default
19490  simply prints out today’s date.
19491 \end_layout
19492
19493 \begin_layout Standard
19494
19495 \change_inserted 564990737 1672236008
19496 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
19497  If you don't want one of the rules,
19498  set its thickness to 0.
19499  The header rule has a default thickness of 0.4pt,
19500  the footer rule is 0pt.
19501  For this you will need to use \SpecialChar TeX
19502  Code commands like 
19503 \end_layout
19504
19505 \begin_layout Standard
19506
19507 \change_inserted 564990737 1672236008
19508
19509 \family sans
19510
19511 \backslash
19512 renewcommand{
19513 \backslash
19514 headrulewidth}{0.4pt}
19515 \family default
19516  and 
19517 \end_layout
19518
19519 \begin_layout Standard
19520
19521 \change_inserted 564990737 1672236008
19522
19523 \family sans
19524
19525 \backslash
19526 renewcommand{
19527 \backslash
19528 footrulewidth}{0.4pt}
19529 \family default
19530  to set the thicknesses.
19531 \end_layout
19532
19533 \begin_layout Standard
19534
19535 \change_inserted 564990737 1672236008
19536 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
19537  Code commands like 
19538 \family sans
19539
19540 \backslash
19541 thispagestyle{empty}
19542 \family default
19543 ,
19544  
19545 \family sans
19546
19547 \backslash
19548 thispagestyle{plain}
19549 \family default
19550 ,
19551  and 
19552 \family sans
19553
19554 \backslash
19555 thispagestyle{fancy}
19556 \family default
19557 .
19558  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
19559  code.
19560  In fact,
19561  title pages are marked as plain by default,
19562  while following pages are marked fancy when using the global fancy setting.
19563  
19564 \end_layout
19565
19566 \begin_layout Standard
19567
19568 \change_inserted 564990737 1672236008
19569 If you want a header or footer to be on the outer side of a two sided document,
19570  you need to use something like:
19571 \end_layout
19572
19573 \begin_layout Standard
19574
19575 \change_inserted 564990737 1672236008
19576
19577 \family sans
19578 \begin_inset Flex Strong
19579 status collapsed
19580
19581 \begin_layout Plain Layout
19582
19583 \change_inserted 564990737 1672236008
19584
19585 \family sans
19586 \series medium
19587
19588 \backslash
19589 fancyfoot{}
19590 \change_unchanged
19591
19592 \end_layout
19593
19594 \end_inset
19595
19596
19597 \end_layout
19598
19599 \begin_layout Standard
19600
19601 \change_inserted 564990737 1672236008
19602
19603 \family sans
19604 \begin_inset Flex Strong
19605 status collapsed
19606
19607 \begin_layout Plain Layout
19608
19609 \change_inserted 564990737 1672236008
19610
19611 \family sans
19612 \series medium
19613
19614 \backslash
19615 fancyfoot[LE,RO]{
19616 \backslash
19617 thepage}
19618 \change_unchanged
19619
19620 \end_layout
19621
19622 \end_inset
19623
19624
19625 \end_layout
19626
19627 \begin_layout Standard
19628
19629 \change_inserted 564990737 1672236008
19630 The first command clears all existing footers avoiding any conflicts with your new command.
19631 \end_layout
19632
19633 \begin_layout Standard
19634
19635 \change_inserted 564990737 1672236008
19636 You can enter any of these commands,
19637  the simpler ones in any of your new environments,
19638  the more complex ones as \SpecialChar TeX
19639  Code commands,
19640  at any point in your document and they will take effect on the next page.
19641 \end_layout
19642
19643 \begin_layout Standard
19644
19645 \change_inserted 564990737 1672236008
19646 As a final example,
19647  it is possible to include an image in the header or footer.
19648  Suppose you want to put a company logo in the upper left hand corner.
19649  You might try something like
19650 \end_layout
19651
19652 \begin_layout Standard
19653
19654 \change_inserted 564990737 1672236008
19655
19656 \family sans
19657
19658 \backslash
19659 lhead{
19660 \backslash
19661 resizebox{1in}{!}{
19662 \backslash
19663 includegraphics{logo.eps}}}
19664 \end_layout
19665
19666 \begin_layout Standard
19667 \noindent
19668
19669 \change_inserted 564990737 1672236008
19670 (you may need to preface this with 
19671 \family sans
19672
19673 \backslash
19674 usepackage{graphics}
19675 \family default
19676  if you don't include graphics elsewhere in your document).
19677 \end_layout
19678
19679 \begin_layout Standard
19680
19681 \change_inserted 564990737 1672236008
19682 For more information on fancy headers,
19683  you can get the 
19684 \begin_inset Flex Code
19685 status collapsed
19686
19687 \begin_layout Plain Layout
19688
19689 \change_inserted 564990737 1672236008
19690 fancyhdr
19691 \change_unchanged
19692
19693 \end_layout
19694
19695 \end_inset
19696
19697  documentation from 
19698 \begin_inset CommandInset href
19699 LatexCommand href
19700 name "CTAN"
19701 target "http://www.ctan.org/pkg/fancyhdr"
19702 literal "false"
19703
19704 \end_inset
19705
19706 .
19707  
19708 \end_layout
19709
19710 \begin_layout Subsection
19711
19712 \change_inserted 564990737 1672236008
19713 Landscape Document Parts
19714 \end_layout
19715
19716 \begin_layout Standard
19717
19718 \change_inserted 564990737 1672236008
19719 This module outputs parts of the document in landscape mode using 
19720 \family sans
19721 Insert\SpecialChar menuseparator
19722 Custom Insets\SpecialChar menuseparator
19723 Landscape
19724 \family default
19725  or 
19726 \family sans
19727 Insert\SpecialChar menuseparator
19728 Custom Insets\SpecialChar menuseparator
19729 Landscape (Floating)
19730 \family default
19731 .
19732 \end_layout
19733
19734 \begin_layout Subsection
19735
19736 \change_inserted 564990737 1672236008
19737 \begin_inset CommandInset label
19738 LatexCommand label
19739 name "sec:Multiple-Columns"
19740
19741 \end_inset
19742
19743 Multiple Columns
19744 \end_layout
19745
19746 \begin_layout Standard
19747
19748 \change_inserted 564990737 1672236008
19749 This module uses the 
19750 \family sans
19751 multicol
19752 \family default
19753
19754 \begin_inset Index idx
19755 range none
19756 pageformat default
19757 status collapsed
19758
19759 \begin_layout Plain Layout
19760
19761 \change_inserted 564990737 1672236008
19762 \SpecialChar LaTeX
19763 -packages !
19764  multicol
19765 \change_unchanged
19766
19767 \end_layout
19768
19769 \end_inset
19770
19771  package and is independent of the option 
19772 \family sans
19773 Two-
19774 \bar under
19775 c
19776 \bar default
19777 olumn document
19778 \family default
19779  in the 
19780 \family sans
19781 \bar under
19782 D
19783 \bar default
19784 ocument\SpecialChar menuseparator
19785
19786 \bar under
19787 S
19788 \bar default
19789 ettings\SpecialChar menuseparator
19790 Text
19791 \begin_inset space ~
19792 \end_inset
19793
19794 Layout
19795 \family default
19796  dialog.
19797  If you want to have two columns for the whole document,
19798  you are recommended to use the 
19799 \family sans
19800 Two-
19801 \bar under
19802 c
19803 \bar default
19804 olumn document
19805 \family default
19806  option.
19807  For all other cases use this module.
19808 \change_deleted 564990737 1672236008
19809 Multiple Text Columns
19810 \end_layout
19811
19812 \begin_layout Standard
19813
19814 \change_deleted 564990737 1672236008
19815 This feature is independent of the option 
19816 \family sans
19817 Two-column document
19818 \family default
19819  in the document settings under 
19820 \family sans
19821 Text Layout
19822 \family default
19823 .
19824  If you want to have 2
19825 \begin_inset space ~
19826 \end_inset
19827
19828 columns for the whole document,
19829  it is recommended to use the 
19830 \family sans
19831 Two-column document
19832 \family default
19833  option.
19834  For all other cases use this feature.
19835 \end_layout
19836
19837 \begin_layout Standard
19838
19839 \change_deleted 564990737 1672236008
19840 To use multiple text columns in your document,
19841  you have to load the module 
19842 \family sans
19843 Multiple Columns
19844 \family default
19845  (menu 
19846 \family sans
19847 Document\SpecialChar menuseparator
19848 Settings\SpecialChar menuseparator
19849 Modules
19850 \family default
19851 ) and must have the \SpecialChar LaTeX
19852 -package 
19853 \begin_inset Flex Code
19854 status collapsed
19855
19856 \begin_layout Plain Layout
19857 multicol
19858 \end_layout
19859
19860 \end_inset
19861
19862  installed.
19863 \change_unchanged
19864
19865 \end_layout
19866
19867 \begin_layout Standard
19868 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
19869  Within the different columns you can use everything,
19870  with the limitation that for floats you need to 
19871 \change_deleted 564990737 1672236179
19872 use the float option 
19873 \family sans
19874 Span columns
19875 \change_inserted 564990737 1672236179
19876
19877 \family default
19878 check the option 
19879 \family sans
19880 \bar under
19881 S
19882 \bar default
19883 pan
19884 \begin_inset space ~
19885 \end_inset
19886
19887 columns
19888 \family default
19889  in 
19890 \family sans
19891 \bar under
19892 E
19893 \bar default
19894 dit\SpecialChar menuseparator
19895 Flo
19896 \bar under
19897 a
19898 \bar default
19899 t
19900 \begin_inset space ~
19901 \end_inset
19902
19903 Settings
19904 \change_unchanged
19905
19906 \family default
19907 .
19908 \end_layout
19909
19910 \begin_layout Subsubsection
19911 Basics
19912 \end_layout
19913
19914 \begin_layout Standard
19915 If you want to have 2
19916 \begin_inset space ~
19917 \end_inset
19918
19919 columns in your text,
19920  insert a multicolumn inset via the menu 
19921 \family sans
19922 Insert\SpecialChar menuseparator
19923 Custom
19924 \begin_inset space ~
19925 \end_inset
19926
19927 Insets\SpecialChar menuseparator
19928 Multiple
19929 \begin_inset space ~
19930 \end_inset
19931
19932 Columns
19933 \family default
19934  where the columns should start.
19935  Write all text that should be printed in 2
19936 \begin_inset space ~
19937 \end_inset
19938
19939 columns into this inset.
19940 \end_layout
19941
19942 \begin_layout Standard
19943 Here is an example:
19944 \end_layout
19945
19946 \begin_layout Standard
19947 \noindent
19948 \begin_inset Flex Multiple Columns
19949 status open
19950
19951 \begin_layout Plain Layout
19952 \noindent
19953
19954 \series bold
19955 \size small
19956 The Adventure of the Empty House
19957 \series default
19958
19959 \begin_inset Newline newline
19960 \end_inset
19961
19962 by Sir Arthur Conan Doyle
19963 \end_layout
19964
19965 \begin_layout Plain Layout
19966
19967 \size small
19968 It was in the spring of the year 1894 that all London was interested,
19969  and the fashionable world dismayed,
19970  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
19971  The public has already learned those particulars of the crime which came out in the police investigation,
19972  but a good deal was suppressed upon that occasion,
19973  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
19974  Only now,
19975  at the end of nearly ten years,
19976  am I allowed to supply those missing links which make up the whole of that remarkable chain.
19977  The crime was of interest in itself,
19978  but that interest was as nothing to me compared to the inconceivable sequel,
19979  which afforded me the greatest shock and surprise of any event in my adventurous life.
19980  Even now,
19981  after this long interval,
19982  I find myself thrilling as I think of it,
19983  and feeling once more that sudden flood of joy,
19984  amazement,
19985  and incredulity which utterly submerged my mind.
19986  Let me say to that public,
19987  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
19988  that they are not to blame me if I have not shared my knowledge with them,
19989  for I should have considered it my first duty to do so,
19990  had I not been barred by a positive prohibition from his own lips,
19991  which was only withdrawn upon the third of last month.
19992 \end_layout
19993
19994 \end_inset
19995
19996
19997 \end_layout
19998
19999 \begin_layout Standard
20000 To get 3 or more columns,
20001  set the cursor into the multicolumn inset and use the menu 
20002 \family sans
20003 Insert\SpecialChar menuseparator
20004 Number
20005 \begin_inset space ~
20006 \end_inset
20007
20008 of
20009 \begin_inset space ~
20010 \end_inset
20011
20012 Columns
20013 \family default
20014 .
20015  The number of the desired columns is written into that inset (for 3
20016 \begin_inset space ~
20017 \end_inset
20018
20019 columns write 
20020 \begin_inset Quotes eld
20021 \end_inset
20022
20023 3
20024 \begin_inset Quotes erd
20025 \end_inset
20026
20027 ).
20028 \begin_inset Newline newline
20029 \end_inset
20030
20031 Here is an example with 3
20032 \begin_inset space ~
20033 \end_inset
20034
20035 columns:
20036 \end_layout
20037
20038 \begin_layout Standard
20039 \begin_inset Flex Multiple Columns
20040 status open
20041
20042 \begin_layout Plain Layout
20043
20044 \size footnotesize
20045 \begin_inset Argument 1
20046 status open
20047
20048 \begin_layout Plain Layout
20049
20050 3
20051 \end_layout
20052
20053 \end_inset
20054
20055 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
20056  and that after his disappearance I never failed to read with care the various problems which came before the public.
20057  And I even attempted,
20058  more than once,
20059  for my own private satisfaction,
20060  to employ his methods in their solution,
20061  though with indifferent success.
20062  There was none,
20063  however,
20064  which appealed to me like this tragedy of Ronald Adair.
20065  As I read the evidence at the inquest,
20066  which led up to a verdict of willful murder against some person or persons unknown,
20067  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
20068  There were points about this strange business which would,
20069  I was sure,
20070  have specially appealed to him,
20071  and the efforts of the police would have been supplemented,
20072  or more probably anticipated,
20073  by the trained observation and the alert mind of the first criminal agent in Europe.
20074  All day,
20075  as I drove upon my round,
20076  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
20077  At the risk of telling a twice-told tale,
20078  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
20079 \end_layout
20080
20081 \end_inset
20082
20083
20084 \end_layout
20085
20086 \begin_layout Standard
20087 You can have up to 10
20088 \begin_inset space ~
20089 \end_inset
20090
20091 columns if you want to,
20092  but that might not be very pleasant for the readers of your document.
20093 \end_layout
20094
20095 \begin_layout Standard
20096
20097 \change_deleted 564990737 1672236245
20098 \begin_inset Newpage newpage
20099 \end_inset
20100
20101
20102 \change_unchanged
20103
20104 \end_layout
20105
20106 \begin_layout Subsubsection
20107 Columns inside Columns
20108 \end_layout
20109
20110 \begin_layout Standard
20111 You can also have columns inside columns:
20112 \end_layout
20113
20114 \begin_layout Standard
20115 \begin_inset Flex Multiple Columns
20116 status open
20117
20118 \begin_layout Plain Layout
20119
20120 \size footnotesize
20121 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
20122  at that time governor of one of the Australian colonies.
20123  Adair's mother had returned from Australia to undergo the operation for cataract,
20124  and she,
20125  her son Ronald,
20126  and her daughter Hilda were living together at 427 Park Lane.
20127 \end_layout
20128
20129 \begin_layout Plain Layout
20130 \begin_inset Flex Multiple Columns
20131 status open
20132
20133 \begin_layout Plain Layout
20134
20135 \size footnotesize
20136 The youth moved in the best society
20137 \begin_inset space ~
20138 \end_inset
20139
20140 – had,
20141  so far as was known,
20142  no enemies and no particular vices.
20143  He had been engaged to Miss Edith Woodley,
20144  of Carstairs,
20145  but the engagement had been broken off by mutual consent some months before,
20146  and there was no sign that it had left any very profound feeling behind it.
20147  For the rest {sic} the man's life moved in a narrow and conventional circle,
20148  for his habits were quiet and his nature unemotional.
20149  Yet it was upon this easy-going young aristocrat that death came,
20150  in most strange and unexpected form,
20151  between the hours of ten and eleven-twenty on the night of March 30,
20152  1894.
20153 \end_layout
20154
20155 \end_inset
20156
20157
20158 \end_layout
20159
20160 \begin_layout Plain Layout
20161
20162 \size footnotesize
20163 Ronald Adair was fond of cards
20164 \begin_inset space ~
20165 \end_inset
20166
20167 – playing continually,
20168  but never for such stakes as would hurt him.
20169  He was a member of the Baldwin,
20170  the Cavendish,
20171  and the Bagatelle card clubs.
20172  It was shown that,
20173  after dinner on the day of his death,
20174  he had played a rubber of whist at the latter club.
20175  He had also played there in the afternoon.
20176
20177 \size default
20178  
20179 \size footnotesize
20180 The evidence of those who had played with him
20181 \begin_inset space ~
20182 \end_inset
20183
20184 – Mr.
20185  Murray,
20186  Sir John Hardy,
20187  and Colonel Moran
20188 \begin_inset space ~
20189 \end_inset
20190
20191 – showed that the game was whist,
20192  and that there was a fairly equal fall of the cards.
20193  Adair might have lost five pounds,
20194  but not more.
20195  His fortune was a considerable one,
20196  and such a loss could not in any way affect him.
20197  He had played nearly every day at one club or other,
20198  but he was a cautious player,
20199  and usually rose a winner.
20200  It came out in evidence that,
20201  in partnership with Colonel Moran,
20202  he had actually won as much as four hundred and twenty pounds in a sitting,
20203  some weeks before,
20204  from Godfrey Milner and Lord Balmoral.
20205  So much for his recent history as it came out at the inquest.
20206 \end_layout
20207
20208 \end_inset
20209
20210
20211 \end_layout
20212
20213 \begin_layout Subsubsection
20214 Advanced Examples
20215 \end_layout
20216
20217 \begin_layout Standard
20218 The examples in this section show some more special features of multiple columns.
20219 \end_layout
20220
20221 \begin_layout Standard
20222 For more features of multiple columns,
20223  have a look at the 
20224 \begin_inset CommandInset href
20225 LatexCommand href
20226 name "documentation"
20227 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
20228 literal "false"
20229
20230 \end_inset
20231
20232  of the \SpecialChar LaTeX
20233 -package 
20234 \begin_inset Flex Code
20235 status collapsed
20236
20237 \begin_layout Plain Layout
20238 multicol
20239 \end_layout
20240
20241 \end_inset
20242
20243 .
20244 \end_layout
20245
20246 \begin_layout Paragraph
20247 Preface
20248 \end_layout
20249
20250 \begin_layout Standard
20251 To add a preface text for multiple columns,
20252  set the cursor into the multicolumn inset and use the menu 
20253 \family sans
20254 Insert\SpecialChar menuseparator
20255 Preface
20256 \family default
20257 .
20258  Write your preface text into that inset.
20259 \begin_inset Newline newline
20260 \end_inset
20261
20262 This is an example with some preface text:
20263 \end_layout
20264
20265 \begin_layout Standard
20266 \begin_inset VSpace bigskip
20267 \end_inset
20268
20269
20270 \end_layout
20271
20272 \begin_layout Standard
20273 \begin_inset Flex Multiple Columns
20274 status open
20275
20276 \begin_layout Plain Layout
20277 \begin_inset Argument 2
20278 status open
20279
20280 \begin_layout Plain Layout
20281 And the story continues and continues and continues and continues\SpecialChar ldots
20282
20283 \end_layout
20284
20285 \end_inset
20286
20287
20288 \size small
20289 On the evening of the crime,
20290  he returned from the club exactly at ten.
20291  His mother and sister were out spending the evening with a relation.
20292  The servant deposed that she heard him enter the front room on the second floor,
20293  generally used as his sitting-room.
20294  She had lit a fire there,
20295  and as it smoked she had opened the window.
20296  No sound was heard from the room until eleven-twenty,
20297  the hour of the return of Lady Maynooth and her daughter.
20298  Desiring to say good-night,
20299  she attempted to enter her son's room.
20300  The door was locked on the inside,
20301  and no answer could be got to their cries and knocking.
20302  Help was obtained,
20303  and the door forced.
20304  The unfortunate young man was found lying near the table.
20305  His head had been horribly mutilated by an expanding revolver bullet,
20306  but no weapon of any sort was to be found in the room.
20307 \end_layout
20308
20309 \end_inset
20310
20311
20312 \end_layout
20313
20314 \begin_layout Standard
20315 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
20316  Code.
20317  For example the command
20318 \end_layout
20319
20320 \begin_layout LyX-Code
20321
20322 \backslash
20323 subsection{subsection title}
20324 \end_layout
20325
20326 \begin_layout Standard
20327 creates a subsection.
20328  In this example the preface is a subsubsection:
20329 \end_layout
20330
20331 \begin_layout Standard
20332 \begin_inset Flex Multiple Columns
20333 status open
20334
20335 \begin_layout Plain Layout
20336 \begin_inset Argument 2
20337 status open
20338
20339 \begin_layout Plain Layout
20340 \begin_inset ERT
20341 status collapsed
20342
20343 \begin_layout Plain Layout
20344
20345
20346 \backslash
20347 subsubsection{
20348 \end_layout
20349
20350 \end_inset
20351
20352 This is a subsubsection heading as a preface
20353 \begin_inset ERT
20354 status collapsed
20355
20356 \begin_layout Plain Layout
20357
20358 }
20359 \end_layout
20360
20361 \end_inset
20362
20363
20364 \end_layout
20365
20366 \end_inset
20367
20368
20369 \size small
20370 A minute examination of the circumstances served only to make the case more complex.
20371  In the first place,
20372  no reason could be given why the young man should have fastened the door upon the inside.
20373  There was the possibility that the murderer had done this,
20374  and had afterwards escaped by the window.
20375  The drop was at least twenty feet,
20376  however,
20377  and a bed of crocuses in full bloom lay beneath.
20378  Neither the flowers nor the earth showed any sign of having been disturbed,
20379  nor were there any marks upon the narrow strip of grass which separated the house from the road.
20380  Apparently,
20381  therefore,
20382  it was the young man himself who had fastened the door.
20383  But how did he come by his death?
20384  No one could have climbed up to the window without leaving traces.
20385  Suppose a man had fired through the window,
20386  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
20387  Again,
20388  Park Lane is a frequented thoroughfare;
20389  there is a cab stand within a hundred yards of the house.
20390  No one had heard a shot.
20391 \end_layout
20392
20393 \end_inset
20394
20395
20396 \end_layout
20397
20398 \begin_layout Standard
20399 If there is less vertical space than 6
20400 \begin_inset space ~
20401 \end_inset
20402
20403 text lines is left on the page at the beginning of the multiple columns,
20404  a page break will be inserted before the multiple columns.
20405  Depending on the number of lines of the preface text,
20406  you might want to change this space.
20407  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
20408 \family sans
20409 Insert\SpecialChar menuseparator
20410 Space
20411 \begin_inset space ~
20412 \end_inset
20413
20414 Before
20415 \begin_inset space ~
20416 \end_inset
20417
20418 Page
20419 \begin_inset space ~
20420 \end_inset
20421
20422 Break
20423 \family default
20424 .
20425  Insert into that inset the amount of space like e.
20426 \begin_inset space \thinspace{}
20427 \end_inset
20428
20429 g.
20430 \begin_inset space \space{}
20431 \end_inset
20432
20433
20434 \begin_inset Quotes eld
20435 \end_inset
20436
20437 5cm
20438 \begin_inset Quotes erd
20439 \end_inset
20440
20441 .
20442 \begin_inset Newline newline
20443 \end_inset
20444
20445 In this example the space is set to 7
20446 \begin_inset space ~
20447 \end_inset
20448
20449 text lines by using 
20450 \begin_inset Flex Code
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454 7
20455 \backslash
20456 baselineskip
20457 \end_layout
20458
20459 \end_inset
20460
20461  (where the command 
20462 \begin_inset Flex Code
20463 status collapsed
20464
20465 \begin_layout Plain Layout
20466
20467 \backslash
20468 baselineskip
20469 \end_layout
20470
20471 \end_inset
20472
20473  needs to be inserted as \SpecialChar TeX
20474  code):
20475 \end_layout
20476
20477 \begin_layout Standard
20478 \begin_inset Flex Multiple Columns
20479 status open
20480
20481 \begin_layout Plain Layout
20482 \begin_inset Argument 3
20483 status open
20484
20485 \begin_layout Plain Layout
20486 7
20487 \begin_inset ERT
20488 status collapsed
20489
20490 \begin_layout Plain Layout
20491
20492
20493 \backslash
20494 baselineskip
20495 \end_layout
20496
20497 \end_inset
20498
20499
20500 \end_layout
20501
20502 \end_inset
20503
20504
20505 \size small
20506 On the evening of the crime,
20507  he returned from the club exactly at ten.
20508  His mother and sister were out spending the evening with a relation.
20509  The servant deposed that she heard him enter the front room on the second floor,
20510  generally used as his sitting-room.
20511  She had lit a fire there,
20512  and as it smoked she had opened the window.
20513  No sound was heard from the room until eleven-twenty,
20514  the hour of the return of Lady Maynooth and her daughter.
20515  Desiring to say good-night,
20516  she attempted to enter her son's room.
20517  The door was locked on the inside,
20518  and no answer could be got to their cries and knocking.
20519  Help was obtained,
20520  and the door forced.
20521  The unfortunate young man was found lying near the table.
20522  His head had been horribly mutilated by an expanding revolver bullet,
20523  but no weapon of any sort was to be found in the room.
20524 \end_layout
20525
20526 \end_inset
20527
20528
20529 \end_layout
20530
20531 \begin_layout Paragraph
20532 Surrounding Space
20533 \end_layout
20534
20535 \begin_layout Standard
20536 The amount of space before and after multiple columns can be changed by changing the length 
20537 \begin_inset Flex Code
20538 status collapsed
20539
20540 \begin_layout Plain Layout
20541
20542 \backslash
20543 multicolsep
20544 \end_layout
20545
20546 \end_inset
20547
20548 .
20549  For example the command
20550 \end_layout
20551
20552 \begin_layout LyX-Code
20553
20554 \backslash
20555 setlength{
20556 \backslash
20557 multicolsep}{3cm}
20558 \end_layout
20559
20560 \begin_layout Standard
20561 in \SpecialChar TeX
20562  Code changes its value to 3
20563 \begin_inset space \thinspace{}
20564 \end_inset
20565
20566 cm.
20567  The change must be made before the multiple columns' start.
20568  The predefined value is 13
20569 \begin_inset space \thinspace{}
20570 \end_inset
20571
20572 pt.
20573 \end_layout
20574
20575 \begin_layout Standard
20576 For this example 
20577 \begin_inset Flex Code
20578 status collapsed
20579
20580 \begin_layout Plain Layout
20581
20582 \backslash
20583 multicolsep
20584 \end_layout
20585
20586 \end_inset
20587
20588  was set to 2.5
20589 \begin_inset space \thinspace{}
20590 \end_inset
20591
20592 cm:
20593 \end_layout
20594
20595 \begin_layout Standard
20596 \begin_inset ERT
20597 status open
20598
20599 \begin_layout Plain Layout
20600
20601
20602 \backslash
20603 setlength{
20604 \backslash
20605 multicolsep}{2.5cm}
20606 \end_layout
20607
20608 \end_inset
20609
20610
20611 \end_layout
20612
20613 \begin_layout Standard
20614 \begin_inset Flex Multiple Columns
20615 status open
20616
20617 \begin_layout Plain Layout
20618
20619 \size small
20620 All day I turned these facts over in my mind,
20621  endeavouring to hit upon some theory which could reconcile them all,
20622  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
20623  I confess that I made little progress.
20624  In the evening I strolled across the Park,
20625  and found myself about six o'clock at the Oxford Street end of Park Lane.
20626  A group of loafers upon the pavements,
20627  all staring up at a particular window,
20628  directed me to the house which I had come to see.
20629  A tall,
20630  thin man with coloured glasses,
20631  whom I strongly suspected of being a plain-clothes detective,
20632  was pointing out some theory of his own,
20633  while the others crowded round to listen to what he said.
20634  I got as near him as I could,
20635  but his observations seemed to me to be absurd,
20636  so I withdrew again in some disgust.
20637  As I did so I struck against an elderly,
20638  deformed man,
20639  who had been behind me,
20640  and I knocked down several books which he was carrying.
20641 \end_layout
20642
20643 \end_inset
20644
20645
20646 \end_layout
20647
20648 \begin_layout Standard
20649 \begin_inset Note Greyedout
20650 status open
20651
20652 \begin_layout Plain Layout
20653
20654 \series bold
20655 Note:
20656
20657 \series default
20658  The values you set with 
20659 \begin_inset Flex Code
20660 status collapsed
20661
20662 \begin_layout Plain Layout
20663
20664 \backslash
20665 setlength
20666 \end_layout
20667
20668 \end_inset
20669
20670  will be used for all following multiple columns until you change them again.
20671 \end_layout
20672
20673 \end_inset
20674
20675
20676 \end_layout
20677
20678 \begin_layout Standard
20679 \begin_inset ERT
20680 status collapsed
20681
20682 \begin_layout Plain Layout
20683
20684
20685 \backslash
20686 setlength{
20687 \backslash
20688 multicolsep}{13pt}
20689 \end_layout
20690
20691 \end_inset
20692
20693
20694 \begin_inset Note Note
20695 status collapsed
20696
20697 \begin_layout Plain Layout
20698 go back to the default
20699 \end_layout
20700
20701 \end_inset
20702
20703
20704 \end_layout
20705
20706 \begin_layout Standard
20707
20708 \change_deleted 564990737 1672236355
20709 \begin_inset Newpage newpage
20710 \end_inset
20711
20712
20713 \change_unchanged
20714
20715 \end_layout
20716
20717 \begin_layout Paragraph
20718 Column Breaks
20719 \end_layout
20720
20721 \begin_layout Standard
20722 A column break can be forced by inserting the command 
20723 \begin_inset Flex Code
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727
20728 \backslash
20729 columnbreak{}
20730 \end_layout
20731
20732 \end_inset
20733
20734  as \SpecialChar TeX
20735  Code to that position in the text where the column should be broken.
20736  Note that this leads in most cases to whitespace in the text.
20737 \begin_inset Newline newline
20738 \end_inset
20739
20740 Here is an example:
20741 \end_layout
20742
20743 \begin_layout Standard
20744 \begin_inset Flex Multiple Columns
20745 status open
20746
20747 \begin_layout Plain Layout
20748
20749 \size small
20750 \begin_inset Quotes eld
20751 \end_inset
20752
20753 You're surprised to see me,
20754  sir,
20755 \begin_inset Quotes erd
20756 \end_inset
20757
20758  said he,
20759  in a strange,
20760  croaking voice.
20761 \end_layout
20762
20763 \begin_layout Plain Layout
20764
20765 \size small
20766 I acknowledged that I was.
20767 \end_layout
20768
20769 \begin_layout Plain Layout
20770
20771 \size small
20772 \begin_inset Quotes eld
20773 \end_inset
20774
20775 Well,
20776  I've a conscience,
20777  sir,
20778  and when I chanced to see you go into this house,
20779  as I came hobbling after you,
20780  I thought to myself,
20781  I'll just step in and see that kind gentleman,
20782  and tell him that if I was a bit gruff in my manner there was not any harm meant,
20783  and that I am much obliged to him for picking up my books.
20784 \begin_inset Quotes erd
20785 \end_inset
20786
20787
20788 \end_layout
20789
20790 \begin_layout Plain Layout
20791
20792 \size small
20793 \begin_inset Quotes eld
20794 \end_inset
20795
20796 You make too much of a trifle,
20797 \begin_inset Quotes erd
20798 \end_inset
20799
20800  said I.
20801  
20802 \begin_inset Quotes eld
20803 \end_inset
20804
20805 May I ask how you knew who I was?
20806 \begin_inset Quotes erd
20807 \end_inset
20808
20809  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
20810 \begin_inset ERT
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814
20815
20816 \backslash
20817 columnbreak{}
20818 \end_layout
20819
20820 \end_inset
20821
20822
20823 \end_layout
20824
20825 \begin_layout Plain Layout
20826
20827 \size small
20828 \begin_inset Quotes eld
20829 \end_inset
20830
20831 Well,
20832  sir,
20833  if it isn't too great a liberty,
20834  I am a neighbour of yours,
20835  for you'll find my little bookshop at the corner of Church Street,
20836  and very happy to see you,
20837  I am sure.
20838  Maybe you collect yourself,
20839  sir.
20840  Here's 
20841 \noun on
20842 British
20843 \begin_inset space ~
20844 \end_inset
20845
20846 Birds
20847 \noun default
20848 ,
20849  and 
20850 \noun on
20851 Catullus
20852 \noun default
20853 ,
20854  and 
20855 \noun on
20856 The Holy War
20857 \noun default
20858
20859 \begin_inset space ~
20860 \end_inset
20861
20862 – a bargain,
20863  every one of them.
20864  With five volumes you could just fill that gap on that second shelf.
20865  It looks untidy,
20866  does it not,
20867  sir?
20868 \begin_inset Quotes erd
20869 \end_inset
20870
20871
20872 \end_layout
20873
20874 \end_inset
20875
20876
20877 \end_layout
20878
20879 \begin_layout Paragraph
20880 Column Separation
20881 \end_layout
20882
20883 \begin_layout Standard
20884 The width of the columns is automatically calculated,
20885  but you can modify the space between the columns.
20886  This is done by changing the length 
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891
20892 \backslash
20893 columnsep
20894 \end_layout
20895
20896 \end_inset
20897
20898 .
20899  Its predefined value is 10
20900 \begin_inset space \thinspace{}
20901 \end_inset
20902
20903 pt.
20904  Here is an example where 
20905 \begin_inset Flex Code
20906 status collapsed
20907
20908 \begin_layout Plain Layout
20909
20910 \backslash
20911 columnsep
20912 \end_layout
20913
20914 \end_inset
20915
20916  is set to 3
20917 \begin_inset space \thinspace{}
20918 \end_inset
20919
20920 cm:
20921 \end_layout
20922
20923 \begin_layout Standard
20924 \begin_inset ERT
20925 status open
20926
20927 \begin_layout Plain Layout
20928
20929
20930 \backslash
20931 setlength{
20932 \backslash
20933 columnsep}{3cm}
20934 \end_layout
20935
20936 \end_inset
20937
20938
20939 \end_layout
20940
20941 \begin_layout Standard
20942 \begin_inset Flex Multiple Columns
20943 status open
20944
20945 \begin_layout Plain Layout
20946
20947 \size small
20948 My observations of No.
20949 \begin_inset space \space{}
20950 \end_inset
20951
20952 427 Park Lane did little to clear up the problem in which I was interested.
20953  The house was separated from the street by a low wall and railing,
20954  the whole not more than five feet high.
20955  It was perfectly easy,
20956  therefore,
20957  for anyone to get into the garden,
20958  but the window was entirely inaccessible,
20959  since there was no water pipe or anything which could help the most active man to climb it.
20960  More puzzled than ever,
20961  I retraced my steps to Kensington.
20962  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
20963  To my astonishment it was none other than my strange old book collector,
20964  his sharp,
20965  wizened face peering out from a frame of white hair,
20966  and his precious volumes,
20967  a dozen of them at least,
20968  wedged under his right arm.
20969 \end_layout
20970
20971 \end_inset
20972
20973
20974 \end_layout
20975
20976 \begin_layout Standard
20977 \begin_inset ERT
20978 status collapsed
20979
20980 \begin_layout Plain Layout
20981
20982
20983 \backslash
20984 setlength{
20985 \backslash
20986 columnsep}{10pt}
20987 \end_layout
20988
20989 \end_inset
20990
20991
20992 \begin_inset Note Note
20993 status collapsed
20994
20995 \begin_layout Plain Layout
20996 go back to the default
20997 \end_layout
20998
20999 \end_inset
21000
21001
21002 \end_layout
21003
21004 \begin_layout Paragraph
21005 Vertical Lines
21006 \end_layout
21007
21008 \begin_layout Standard
21009 Between the columns a rule with a width of the length 
21010 \begin_inset Flex Code
21011 status collapsed
21012
21013 \begin_layout Plain Layout
21014
21015 \backslash
21016 columnseprule
21017 \end_layout
21018
21019 \end_inset
21020
21021  is placed.
21022  If this rule width is set to 0
21023 \begin_inset space \thinspace{}
21024 \end_inset
21025
21026 pt (this is the default),
21027  the rule is suppressed.
21028  In the following example the rule is 2
21029 \begin_inset space \thinspace{}
21030 \end_inset
21031
21032 pt wide:
21033 \end_layout
21034
21035 \begin_layout Standard
21036 \begin_inset ERT
21037 status open
21038
21039 \begin_layout Plain Layout
21040
21041
21042 \backslash
21043 setlength{
21044 \backslash
21045 columnseprule}{2pt}
21046 \end_layout
21047
21048 \end_inset
21049
21050
21051 \end_layout
21052
21053 \begin_layout Standard
21054 \begin_inset Flex Multiple Columns
21055 status open
21056
21057 \begin_layout Plain Layout
21058
21059 \size small
21060 \begin_inset Quotes eld
21061 \end_inset
21062
21063 You're surprised to see me,
21064  sir,
21065 \begin_inset Quotes erd
21066 \end_inset
21067
21068  said he,
21069  in a strange,
21070  croaking voice.
21071 \end_layout
21072
21073 \begin_layout Plain Layout
21074
21075 \size small
21076 I acknowledged that I was.
21077 \end_layout
21078
21079 \begin_layout Plain Layout
21080
21081 \size small
21082 \begin_inset Quotes eld
21083 \end_inset
21084
21085 Well,
21086  I've a conscience,
21087  sir,
21088  and when I chanced to see you go into this house,
21089  as I came hobbling after you,
21090  I thought to myself,
21091  I'll just step in and see that kind gentleman,
21092  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21093  and that I am much obliged to him for picking up my books.
21094 \begin_inset Quotes erd
21095 \end_inset
21096
21097
21098 \end_layout
21099
21100 \begin_layout Plain Layout
21101
21102 \size small
21103 \begin_inset Quotes eld
21104 \end_inset
21105
21106 You make too much of a trifle,
21107 \begin_inset Quotes erd
21108 \end_inset
21109
21110  said I.
21111  
21112 \begin_inset Quotes eld
21113 \end_inset
21114
21115 May I ask how you knew who I was?
21116 \begin_inset Quotes erd
21117 \end_inset
21118
21119
21120 \end_layout
21121
21122 \begin_layout Plain Layout
21123
21124 \size small
21125 \begin_inset Quotes eld
21126 \end_inset
21127
21128 Well,
21129  sir,
21130  if it isn't too great a liberty,
21131  I am a neighbour of yours,
21132  for you'll find my little bookshop at the corner of Church Street,
21133  and very happy to see you,
21134  I am sure.
21135  Maybe you collect yourself,
21136  sir.
21137  Here's 
21138 \noun on
21139 British
21140 \begin_inset space ~
21141 \end_inset
21142
21143 Birds
21144 \noun default
21145 ,
21146  and 
21147 \noun on
21148 Catullus
21149 \noun default
21150 ,
21151  and 
21152 \noun on
21153 The Holy War
21154 \noun default
21155
21156 \begin_inset space ~
21157 \end_inset
21158
21159 – a bargain,
21160  every one of them.
21161  With five volumes you could just fill that gap on that second shelf.
21162  It looks untidy,
21163  does it not,
21164  sir?
21165 \begin_inset Quotes erd
21166 \end_inset
21167
21168
21169 \end_layout
21170
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \begin_layout Standard
21177 \begin_inset VSpace defskip
21178 \end_inset
21179
21180
21181 \end_layout
21182
21183 \begin_layout Standard
21184 The rule can be colored by redefining the command 
21185 \begin_inset Flex Code
21186 status collapsed
21187
21188 \begin_layout Plain Layout
21189
21190 \backslash
21191 columnseprulecolor
21192 \end_layout
21193
21194 \end_inset
21195
21196 .
21197  This is done by inserting the command
21198 \end_layout
21199
21200 \begin_layout LyX-Code
21201
21202 \backslash
21203 renewcommand{
21204 \backslash
21205 columnseprulecolor}{
21206 \backslash
21207 color{red}}
21208 \end_layout
21209
21210 \begin_layout Standard
21211 as \SpecialChar TeX
21212  Code before the multicolumn inset.
21213  Replace 
21214 \begin_inset Flex Code
21215 status collapsed
21216
21217 \begin_layout Plain Layout
21218 red
21219 \end_layout
21220
21221 \end_inset
21222
21223  in this command by a color of your choice.
21224  You can use all pre- and self-defined colors.
21225  See the 
21226 \emph on
21227 EmbeddedObjects
21228 \emph default
21229  manual,
21230  section 
21231 \emph on
21232 Colored
21233 \begin_inset space ~
21234 \end_inset
21235
21236 Tables
21237 \emph default
21238  for more information about pre- and self-defined colors.
21239  To go back to the default color insert the command
21240 \end_layout
21241
21242 \begin_layout LyX-Code
21243
21244 \backslash
21245 renewcommand{
21246 \backslash
21247 columnseprulecolor}{
21248 \backslash
21249 normalcolor}
21250 \end_layout
21251
21252 \begin_layout Standard
21253 Here is the example with a cyan rule and 1
21254 \begin_inset space \thinspace{}
21255 \end_inset
21256
21257 cm column separation:
21258 \end_layout
21259
21260 \begin_layout Standard
21261 \begin_inset ERT
21262 status open
21263
21264 \begin_layout Plain Layout
21265
21266
21267 \backslash
21268 setlength{
21269 \backslash
21270 columnsep}{1cm}
21271 \end_layout
21272
21273 \begin_layout Plain Layout
21274
21275
21276 \backslash
21277 renewcommand{
21278 \backslash
21279 columnseprulecolor}{
21280 \backslash
21281 color{cyan}}
21282 \end_layout
21283
21284 \end_inset
21285
21286
21287 \end_layout
21288
21289 \begin_layout Standard
21290 \begin_inset Flex Multiple Columns
21291 status open
21292
21293 \begin_layout Plain Layout
21294
21295 \size small
21296 \begin_inset Quotes eld
21297 \end_inset
21298
21299 You're surprised to see me,
21300  sir,
21301 \begin_inset Quotes erd
21302 \end_inset
21303
21304  said he,
21305  in a strange,
21306  croaking voice.
21307 \end_layout
21308
21309 \begin_layout Plain Layout
21310
21311 \size small
21312 I acknowledged that I was.
21313 \end_layout
21314
21315 \begin_layout Plain Layout
21316
21317 \size small
21318 \begin_inset Quotes eld
21319 \end_inset
21320
21321 Well,
21322  I've a conscience,
21323  sir,
21324  and when I chanced to see you go into this house,
21325  as I came hobbling after you,
21326  I thought to myself,
21327  I'll just step in and see that kind gentleman,
21328  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21329  and that I am much obliged to him for picking up my books.
21330 \begin_inset Quotes erd
21331 \end_inset
21332
21333
21334 \end_layout
21335
21336 \begin_layout Plain Layout
21337
21338 \size small
21339 \begin_inset Quotes eld
21340 \end_inset
21341
21342 You make too much of a trifle,
21343 \begin_inset Quotes erd
21344 \end_inset
21345
21346  said I.
21347  
21348 \begin_inset Quotes eld
21349 \end_inset
21350
21351 May I ask how you knew who I was?
21352 \begin_inset Quotes erd
21353 \end_inset
21354
21355
21356 \end_layout
21357
21358 \begin_layout Plain Layout
21359
21360 \size small
21361 \begin_inset Quotes eld
21362 \end_inset
21363
21364 Well,
21365  sir,
21366  if it isn't too great a liberty,
21367  I am a neighbour of yours,
21368  for you'll find my little bookshop at the corner of Church Street,
21369  and very happy to see you,
21370  I am sure.
21371  Maybe you collect yourself,
21372  sir.
21373  Here's 
21374 \noun on
21375 British
21376 \begin_inset space ~
21377 \end_inset
21378
21379 Birds
21380 \noun default
21381 ,
21382  and 
21383 \noun on
21384 Catullus
21385 \noun default
21386 ,
21387  and 
21388 \noun on
21389 The Holy War
21390 \noun default
21391
21392 \begin_inset space ~
21393 \end_inset
21394
21395 – a bargain,
21396  every one of them.
21397  With five volumes you could just fill that gap on that second shelf.
21398  It looks untidy,
21399  does it not,
21400  sir?
21401 \begin_inset Quotes erd
21402 \end_inset
21403
21404
21405 \end_layout
21406
21407 \end_inset
21408
21409
21410 \end_layout
21411
21412 \begin_layout Standard
21413 \begin_inset ERT
21414 status collapsed
21415
21416 \begin_layout Plain Layout
21417
21418
21419 \backslash
21420 setlength{
21421 \backslash
21422 columnseprule}{0pt}
21423 \end_layout
21424
21425 \begin_layout Plain Layout
21426
21427
21428 \backslash
21429 renewcommand{
21430 \backslash
21431 columnseprulecolor}{
21432 \backslash
21433 normalcolor}
21434 \end_layout
21435
21436 \end_inset
21437
21438
21439 \begin_inset Note Note
21440 status collapsed
21441
21442 \begin_layout Plain Layout
21443 go back to the default
21444 \end_layout
21445
21446 \end_inset
21447
21448
21449 \end_layout
21450
21451 \begin_layout Section
21452
21453 \change_inserted 564990737 1671270380
21454 Paragraph Styles
21455 \end_layout
21456
21457 \begin_layout Subsection
21458
21459 \change_inserted 564990737 1671270398
21460 Custom
21461 \change_deleted 564990737 1671270396
21462 Non-standard
21463 \change_unchanged
21464  Paragraph Shapes
21465 \end_layout
21466
21467 \begin_layout Standard
21468 \noindent
21469 \SpecialChar LaTeX
21470  as well as any other text processor uses by default rectangular paragraphs.
21471  For special cases like for example posters,
21472  invitation cards or poems you can modify the paragraph shape to one of your choice.
21473  
21474 \change_deleted 564990737 1672311802
21475 This can be done by using the \SpecialChar LaTeX
21476 -package 
21477 \begin_inset Flex Code
21478 status collapsed
21479
21480 \begin_layout Plain Layout
21481 shapepar
21482 \end_layout
21483
21484 \end_inset
21485
21486  which is loaded by using in the document settings the module 
21487 \family sans
21488 Custom paragraph shapes
21489 \family default
21490 .
21491 \change_inserted 564990737 1672311802
21492 This module uses the 
21493 \family sans
21494 shapepar
21495 \family default
21496  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
21497  
21498 \change_unchanged
21499
21500 \end_layout
21501
21502 \begin_layout Subsubsection
21503 Predefined shapes
21504 \end_layout
21505
21506 \begin_layout Standard
21507
21508 \series bold
21509 shapepar
21510 \series default
21511  provides the following shapes:
21512 \end_layout
21513
21514 \begin_layout Standard
21515 \begin_inset Tabular
21516 <lyxtabular version="3" rows="13" columns="3">
21517 <features booktabs="true" islongtable="true" longtabularalignment="center">
21518 <column alignment="left" valignment="middle" width="16col%">
21519 <column alignment="left" valignment="middle" width="40col%">
21520 <column alignment="left" valignment="middle" width="35col%">
21521 <row endhead="true">
21522 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21523 \begin_inset Text
21524
21525 \begin_layout Plain Layout
21526
21527 \series bold
21528 \size small
21529 Name
21530 \end_layout
21531
21532 \end_inset
21533 </cell>
21534 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
21535 \begin_inset Text
21536
21537 \begin_layout Plain Layout
21538
21539 \series bold
21540 \size small
21541 Description
21542 \end_layout
21543
21544 \end_inset
21545 </cell>
21546 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
21547 \begin_inset Text
21548
21549 \begin_layout Plain Layout
21550
21551 \series bold
21552 \size small
21553 Annotation
21554 \end_layout
21555
21556 \end_inset
21557 </cell>
21558 </row>
21559 <row interlinespace="default">
21560 <cell alignment="left" valignment="top" usebox="none">
21561 \begin_inset Text
21562
21563 \begin_layout Plain Layout
21564
21565 \size small
21566 CDlabel
21567 \end_layout
21568
21569 \end_inset
21570 </cell>
21571 <cell alignment="left" valignment="top" usebox="none">
21572 \begin_inset Text
21573
21574 \begin_layout Plain Layout
21575
21576 \size small
21577 Circle with circular hole (in the size of a CD/DVD)
21578 \end_layout
21579
21580 \end_inset
21581 </cell>
21582 <cell alignment="left" valignment="top" usebox="none">
21583 \begin_inset Text
21584
21585 \begin_layout Plain Layout
21586
21587 \size small
21588 Cannot be scaled,
21589  take care there is not too much text
21590 \end_layout
21591
21592 \end_inset
21593 </cell>
21594 </row>
21595 <row interlinespace="default">
21596 <cell alignment="left" valignment="top" usebox="none">
21597 \begin_inset Text
21598
21599 \begin_layout Plain Layout
21600
21601 \size small
21602 Circle
21603 \end_layout
21604
21605 \end_inset
21606 </cell>
21607 <cell alignment="left" valignment="top" usebox="none">
21608 \begin_inset Text
21609
21610 \begin_layout Plain Layout
21611
21612 \size small
21613 Circle
21614 \end_layout
21615
21616 \end_inset
21617 </cell>
21618 <cell alignment="left" valignment="top" usebox="none">
21619 \begin_inset Text
21620
21621 \begin_layout Plain Layout
21622
21623 \size small
21624 Fragile,
21625  calculation might fail
21626 \end_layout
21627
21628 \end_inset
21629 </cell>
21630 </row>
21631 <row interlinespace="default">
21632 <cell alignment="left" valignment="top" usebox="none">
21633 \begin_inset Text
21634
21635 \begin_layout Plain Layout
21636
21637 \size small
21638 Diamond
21639 \end_layout
21640
21641 \end_inset
21642 </cell>
21643 <cell alignment="left" valignment="top" usebox="none">
21644 \begin_inset Text
21645
21646 \begin_layout Plain Layout
21647
21648 \size small
21649 Rhomboid (symbolizing a 
21650 \begin_inset Quotes eld
21651 \end_inset
21652
21653 diamond
21654 \begin_inset Quotes erd
21655 \end_inset
21656
21657 )
21658 \end_layout
21659
21660 \end_inset
21661 </cell>
21662 <cell alignment="left" valignment="top" usebox="none">
21663 \begin_inset Text
21664
21665 \begin_layout Plain Layout
21666
21667 \size small
21668 -
21669 \end_layout
21670
21671 \end_inset
21672 </cell>
21673 </row>
21674 <row interlinespace="default">
21675 <cell alignment="left" valignment="top" usebox="none">
21676 \begin_inset Text
21677
21678 \begin_layout Plain Layout
21679
21680 \size small
21681 Heart
21682 \end_layout
21683
21684 \end_inset
21685 </cell>
21686 <cell alignment="left" valignment="top" usebox="none">
21687 \begin_inset Text
21688
21689 \begin_layout Plain Layout
21690
21691 \size small
21692 Heart-like shape
21693 \end_layout
21694
21695 \end_inset
21696 </cell>
21697 <cell alignment="left" valignment="top" usebox="none">
21698 \begin_inset Text
21699
21700 \begin_layout Plain Layout
21701
21702 \size small
21703 -
21704 \end_layout
21705
21706 \end_inset
21707 </cell>
21708 </row>
21709 <row interlinespace="default">
21710 <cell alignment="left" valignment="top" usebox="none">
21711 \begin_inset Text
21712
21713 \begin_layout Plain Layout
21714
21715 \size small
21716 Hexagon
21717 \end_layout
21718
21719 \end_inset
21720 </cell>
21721 <cell alignment="left" valignment="top" usebox="none">
21722 \begin_inset Text
21723
21724 \begin_layout Plain Layout
21725
21726 \size small
21727 Hexagon
21728 \end_layout
21729
21730 \end_inset
21731 </cell>
21732 <cell alignment="left" valignment="top" usebox="none">
21733 \begin_inset Text
21734
21735 \begin_layout Plain Layout
21736
21737 \size small
21738 -
21739 \end_layout
21740
21741 \end_inset
21742 </cell>
21743 </row>
21744 <row interlinespace="default">
21745 <cell alignment="left" valignment="top" usebox="none">
21746 \begin_inset Text
21747
21748 \begin_layout Plain Layout
21749
21750 \size small
21751 Nut
21752 \end_layout
21753
21754 \end_inset
21755 </cell>
21756 <cell alignment="left" valignment="top" usebox="none">
21757 \begin_inset Text
21758
21759 \begin_layout Plain Layout
21760
21761 \size small
21762 Nut for bolt (hexagon with circular hole)
21763 \end_layout
21764
21765 \end_inset
21766 </cell>
21767 <cell alignment="left" valignment="top" usebox="none">
21768 \begin_inset Text
21769
21770 \begin_layout Plain Layout
21771
21772 \size small
21773 -
21774 \end_layout
21775
21776 \end_inset
21777 </cell>
21778 </row>
21779 <row interlinespace="default">
21780 <cell alignment="left" valignment="top" usebox="none">
21781 \begin_inset Text
21782
21783 \begin_layout Plain Layout
21784
21785 \size small
21786 Square
21787 \end_layout
21788
21789 \end_inset
21790 </cell>
21791 <cell alignment="left" valignment="top" usebox="none">
21792 \begin_inset Text
21793
21794 \begin_layout Plain Layout
21795
21796 \size small
21797 Square
21798 \end_layout
21799
21800 \end_inset
21801 </cell>
21802 <cell alignment="left" valignment="top" usebox="none">
21803 \begin_inset Text
21804
21805 \begin_layout Plain Layout
21806
21807 \size small
21808 -
21809 \end_layout
21810
21811 \end_inset
21812 </cell>
21813 </row>
21814 <row interlinespace="default">
21815 <cell alignment="left" valignment="top" usebox="none">
21816 \begin_inset Text
21817
21818 \begin_layout Plain Layout
21819
21820 \size small
21821 Star
21822 \end_layout
21823
21824 \end_inset
21825 </cell>
21826 <cell alignment="left" valignment="top" usebox="none">
21827 \begin_inset Text
21828
21829 \begin_layout Plain Layout
21830
21831 \size small
21832 Five-point star
21833 \end_layout
21834
21835 \end_inset
21836 </cell>
21837 <cell alignment="left" valignment="top" usebox="none">
21838 \begin_inset Text
21839
21840 \begin_layout Plain Layout
21841
21842 \size small
21843 -
21844 \end_layout
21845
21846 \end_inset
21847 </cell>
21848 </row>
21849 <row interlinespace="default">
21850 <cell alignment="left" valignment="top" usebox="none">
21851 \begin_inset Text
21852
21853 \begin_layout Plain Layout
21854
21855 \size small
21856 Candle
21857 \end_layout
21858
21859 \end_inset
21860 </cell>
21861 <cell alignment="left" valignment="top" usebox="none">
21862 \begin_inset Text
21863
21864 \begin_layout Plain Layout
21865
21866 \size small
21867 Burning candle
21868 \end_layout
21869
21870 \end_inset
21871 </cell>
21872 <cell alignment="left" valignment="top" usebox="none">
21873 \begin_inset Text
21874
21875 \begin_layout Plain Layout
21876
21877 \size small
21878 -
21879 \end_layout
21880
21881 \end_inset
21882 </cell>
21883 </row>
21884 <row interlinespace="default">
21885 <cell alignment="left" valignment="top" usebox="none">
21886 \begin_inset Text
21887
21888 \begin_layout Plain Layout
21889
21890 \size small
21891 Drop down/up
21892 \end_layout
21893
21894 \end_inset
21895 </cell>
21896 <cell alignment="left" valignment="top" usebox="none">
21897 \begin_inset Text
21898
21899 \begin_layout Plain Layout
21900
21901 \size small
21902 Normal/reversed rain drop
21903 \end_layout
21904
21905 \end_inset
21906 </cell>
21907 <cell alignment="left" valignment="top" usebox="none">
21908 \begin_inset Text
21909
21910 \begin_layout Plain Layout
21911
21912 \size small
21913 Fragile,
21914  calculation might fail
21915 \end_layout
21916
21917 \end_inset
21918 </cell>
21919 </row>
21920 <row interlinespace="default">
21921 <cell alignment="left" valignment="top" usebox="none">
21922 \begin_inset Text
21923
21924 \begin_layout Plain Layout
21925
21926 \size small
21927 \SpecialChar TeX
21928
21929 \end_layout
21930
21931 \end_inset
21932 </cell>
21933 <cell alignment="left" valignment="top" usebox="none">
21934 \begin_inset Text
21935
21936 \begin_layout Plain Layout
21937
21938 \size small
21939 The \SpecialChar TeX
21940  logo
21941 \end_layout
21942
21943 \end_inset
21944 </cell>
21945 <cell alignment="left" valignment="top" usebox="none">
21946 \begin_inset Text
21947
21948 \begin_layout Plain Layout
21949
21950 \size small
21951 -
21952 \end_layout
21953
21954 \end_inset
21955 </cell>
21956 </row>
21957 <row interlinespace="default">
21958 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21959 \begin_inset Text
21960
21961 \begin_layout Plain Layout
21962
21963 \size small
21964 Triangle up/down/
21965 \begin_inset Newline newline
21966 \end_inset
21967
21968 left/right
21969 \end_layout
21970
21971 \end_inset
21972 </cell>
21973 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21974 \begin_inset Text
21975
21976 \begin_layout Plain Layout
21977
21978 \size small
21979 Triangles in different orientations
21980 \end_layout
21981
21982 \end_inset
21983 </cell>
21984 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
21985 \begin_inset Text
21986
21987 \begin_layout Plain Layout
21988
21989 \size small
21990 -
21991 \end_layout
21992
21993 \end_inset
21994 </cell>
21995 </row>
21996 </lyxtabular>
21997
21998 \end_inset
21999
22000
22001 \end_layout
22002
22003 \begin_layout Standard
22004 To use a shape for your paragraph,
22005  simply select it in \SpecialChar LyX
22006 's pull-down box for environments in the toolbar.
22007 \end_layout
22008
22009 \begin_layout Standard
22010 \begin_inset Newpage newpage
22011 \end_inset
22012
22013
22014 \end_layout
22015
22016 \begin_layout Standard
22017 Here is an example paragraph in the shape of a nut:
22018 \end_layout
22019
22020 \begin_layout Standard
22021 \begin_inset VSpace bigskip
22022 \end_inset
22023
22024
22025 \end_layout
22026
22027 \begin_layout Nut
22028
22029 \lang latin
22030 Lorem ipsum dolor sit amet,
22031  consetetur sadipscing elitr,
22032  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22033  sed diam voluptua.
22034  At vero eos et accusam et justo duo dolores et ea rebum.
22035  Stet clita kasd gubergren,
22036  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22037  Lorem ipsum dolor sit amet,
22038  consetetur sadipscing elitr,
22039  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22040  sed diam voluptua.
22041 \end_layout
22042
22043 \begin_layout Standard
22044 \begin_inset VSpace bigskip
22045 \end_inset
22046
22047
22048 \end_layout
22049
22050 \begin_layout Standard
22051 \begin_inset Note Greyedout
22052 status open
22053
22054 \begin_layout Plain Layout
22055
22056 \series bold
22057 Note
22058 \series default
22059 :
22060  
22061 \family sans
22062 shapepar
22063 \family default
22064  paragraphs cannot run over a page break.
22065 \end_layout
22066
22067 \end_inset
22068
22069
22070 \end_layout
22071
22072 \begin_layout Standard
22073 \begin_inset VSpace bigskip
22074 \end_inset
22075
22076
22077 \end_layout
22078
22079 \begin_layout Standard
22080 The package 
22081 \begin_inset Flex Code
22082 status collapsed
22083
22084 \begin_layout Plain Layout
22085 shapepar
22086 \end_layout
22087
22088 \end_inset
22089
22090  takes care that the shape will always be preserved,
22091  no matter how much text is in the paragraph.
22092  Therefore the paragraph size changes with the amount of contained text.
22093  This can lead to paragraph sizes exceeding the page margins.
22094  To demonstrate the size scaling,
22095  here is the same example paragraph but with twice as much text:
22096 \end_layout
22097
22098 \begin_layout Standard
22099 \begin_inset Newpage newpage
22100 \end_inset
22101
22102
22103 \end_layout
22104
22105 \begin_layout Nut
22106
22107 \lang latin
22108 Lorem ipsum dolor sit amet,
22109  consetetur sadipscing elitr,
22110  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22111  sed diam voluptua.
22112  At vero eos et accusam et justo duo dolores et ea rebum.
22113  Stet clita kasd gubergren,
22114  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22115  Lorem ipsum dolor sit amet,
22116  consetetur sadipscing elitr,
22117  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22118  sed diam voluptua.
22119  Lorem ipsum dolor sit amet,
22120  consetetur sadipscing elitr,
22121  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22122  sed diam voluptua.
22123  At vero eos et accusam et justo duo dolores et ea rebum.
22124  Stet clita kasd gubergren,
22125  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22126  Lorem ipsum dolor sit amet,
22127  consetetur sadipscing elitr,
22128  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22129  sed diam voluptua.
22130 \end_layout
22131
22132 \begin_layout Standard
22133 \begin_inset VSpace bigskip
22134 \end_inset
22135
22136
22137 \end_layout
22138
22139 \begin_layout Standard
22140 An exception is the shape 
22141 \family sans
22142 CDlabel
22143 \family default
22144 .
22145  It cannot be scaled because it must fit the size of a CD/DVD.
22146  Therefore the amount of text that fits into the shape is limited.
22147 \begin_inset Newline newline
22148 \end_inset
22149
22150 The 
22151 \family sans
22152 drop
22153 \family default
22154  shapes and the 
22155 \family sans
22156 circle
22157 \family default
22158  shape are fragile,
22159  meaning that the calculation of their size can fail,
22160  depending on the amount of text.
22161  You will then get the \SpecialChar LaTeX
22162  error 
22163 \begin_inset Quotes eld
22164 \end_inset
22165
22166 Arithmetic overflow
22167 \begin_inset Quotes erd
22168 \end_inset
22169
22170 .
22171  In this case one can try to remove or add some text;
22172  if nothing works one has to use another shape.
22173 \end_layout
22174
22175 \begin_layout Standard
22176 \begin_inset VSpace bigskip
22177 \end_inset
22178
22179
22180 \end_layout
22181
22182 \begin_layout Standard
22183 For shapes with tips you will maybe see that \SpecialChar LaTeX
22184 's hyphenation routine fails for text in the tips.
22185  Therefore it is often necessary to add hyphenation points 
22186 \family sans
22187 (
22188 \begin_inset Info
22189 type  "shortcut"
22190 arg   "specialchar-insert hyphenation"
22191 \end_inset
22192
22193
22194 \family default
22195 ) to the corresponding text parts.
22196 \end_layout
22197
22198 \begin_layout Standard
22199 \begin_inset VSpace bigskip
22200 \end_inset
22201
22202
22203 \end_layout
22204
22205 \begin_layout Standard
22206 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
22207  You can therefore not use the paragraph dialog to align such paragraphs.
22208  A solution is to put the paragraph into a minipage or parbox and align the box.
22209  The problem is hereby to find the right width for the box.
22210  Because if it is too wide and you center the box,
22211  the paragraph is not centered too because it sticks at the left side of the box.
22212  So you might have to play a bit with the width until it fits.
22213  Here are two heart-shaped paragraphs,
22214  the first one is not aligned,
22215  the second one is right-aligned:
22216 \end_layout
22217
22218 \begin_layout Standard
22219 \begin_inset Newpage newpage
22220 \end_inset
22221
22222
22223 \end_layout
22224
22225 \begin_layout Heart
22226 \noindent
22227
22228 \lang latin
22229 Lo\SpecialChar softhyphen
22230 rem ipsum dolor sit amet,
22231  consetetur sadipscing elitr,
22232  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22233  sed diam voluptua.
22234  At vero eos et accusam et justo duo dolores et ea rebum.
22235  Stet clita kasd gubergren,
22236  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22237 \end_layout
22238
22239 \begin_layout Standard
22240 \begin_inset VSpace bigskip
22241 \end_inset
22242
22243
22244 \end_layout
22245
22246 \begin_layout Standard
22247 \noindent
22248 \align right
22249 \begin_inset Box Frameless
22250 position "t"
22251 hor_pos "c"
22252 has_inner_box 1
22253 inner_pos "t"
22254 use_parbox 1
22255 use_makebox 0
22256 width "42col%"
22257 special "none"
22258 height "1in"
22259 height_special "totalheight"
22260 thickness "0.4pt"
22261 separation "3pt"
22262 shadowsize "4pt"
22263 framecolor "black"
22264 backgroundcolor "none"
22265 status open
22266
22267 \begin_layout Heart
22268 \noindent
22269
22270 \lang latin
22271 Lo\SpecialChar softhyphen
22272 rem ipsum dolor sit amet,
22273  consetetur sadipscing elitr,
22274  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22275  sed diam voluptua.
22276  At vero eos et accusam et justo duo dolores et ea rebum.
22277  Stet clita kasd gubergren,
22278  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22279 \end_layout
22280
22281 \end_inset
22282
22283
22284 \end_layout
22285
22286 \begin_layout Subsubsection
22287 Custom shapes
22288 \end_layout
22289
22290 \begin_layout Standard
22291 You can define any shape you want.
22292  Doing this manually is a lot of work because every coordinate must be specified.
22293  But there is a way to let the computer calculate the coordinates:
22294 \end_layout
22295
22296 \begin_layout Enumerate
22297 Install the program 
22298 \begin_inset CommandInset href
22299 LatexCommand href
22300 name "Jpgfdraw"
22301 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
22302 literal "false"
22303
22304 \end_inset
22305
22306 .
22307 \end_layout
22308
22309 \begin_layout Enumerate
22310 In 
22311 \family sans
22312 Jpgfdraw
22313 \family default
22314  go to the menu 
22315 \family sans
22316 TeX/LaTeX\SpecialChar menuseparator
22317 Settings\SpecialChar menuseparator
22318 Set Normal Size
22319 \family default
22320  and select the font size you are using in your document.
22321  For example this document uses the size 12
22322 \begin_inset space \thinspace{}
22323 \end_inset
22324
22325 pt.
22326 \end_layout
22327
22328 \begin_layout Enumerate
22329 Draw a shape.
22330 \end_layout
22331
22332 \begin_layout Enumerate
22333 Use the menu 
22334 \family sans
22335 TeX/LaTeX\SpecialChar menuseparator
22336 Shapepar
22337 \family default
22338  to export the shape to coordinates.
22339  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
22340 \begin_inset Foot
22341 status collapsed
22342
22343 \begin_layout Plain Layout
22344 For more information see 
22345 \begin_inset CommandInset href
22346 LatexCommand href
22347 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
22348 literal "false"
22349
22350 \end_inset
22351
22352
22353 \end_layout
22354
22355 \end_inset
22356
22357
22358 \end_layout
22359
22360 \begin_layout Standard
22361 The coordinates are written into a \SpecialChar TeX
22362  file.
22363  To use it for your \SpecialChar LyX
22364  document
22365 \end_layout
22366
22367 \begin_layout Enumerate
22368 Place the cursor before the first character of your paragraph (or into a new empty one).
22369 \end_layout
22370
22371 \begin_layout Enumerate
22372 Open in \SpecialChar LyX
22373  the menu 
22374 \family sans
22375 Insert\SpecialChar menuseparator
22376 File\SpecialChar menuseparator
22377 Child
22378 \begin_inset space ~
22379 \end_inset
22380
22381 Document
22382 \family default
22383 ,
22384  select the file and use 
22385 \family sans
22386 Input
22387 \family default
22388  as 
22389 \family sans
22390 Include Type.
22391 \end_layout
22392
22393 \begin_layout Standard
22394 \begin_inset VSpace defskip
22395 \end_inset
22396
22397
22398 \end_layout
22399
22400 \begin_layout Standard
22401 \begin_inset Note Greyedout
22402 status open
22403
22404 \begin_layout Plain Layout
22405
22406 \series bold
22407 Note
22408 \series default
22409 :
22410  The changed shape only applies to the current paragraph;
22411  everything is reset to normal for the next paragraph.
22412  Therefore the shape definition file must be input into every paragraph with the desired shape.
22413 \end_layout
22414
22415 \end_inset
22416
22417
22418 \end_layout
22419
22420 \begin_layout Standard
22421 \begin_inset VSpace bigskip
22422 \end_inset
22423
22424
22425 \end_layout
22426
22427 \begin_layout Standard
22428 Here is an example:
22429 \end_layout
22430
22431 \begin_layout Standard
22432 \begin_inset VSpace bigskip
22433 \end_inset
22434
22435
22436 \end_layout
22437
22438 \begin_layout Standard
22439 \begin_inset CommandInset include
22440 LatexCommand input
22441 filename "SpecialParagraphShape.tex"
22442 literal "true"
22443
22444 \end_inset
22445
22446
22447 \lang latin
22448 Lorem ipsum dolor sit amet,
22449  consetetur sadipscing elitr,
22450  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22451  sed diam voluptua.
22452  At vero eos et accusam et justo duo dolores et ea rebum.
22453  Stet clita kasd gubergren,
22454  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22455  Lorem ipsum dolor sit amet,
22456  consetetur sadipscing elitr,
22457  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22458  sed diam voluptua.
22459 \end_layout
22460
22461 \begin_layout Standard
22462 \begin_inset VSpace bigskip
22463 \end_inset
22464
22465
22466 \end_layout
22467
22468 \begin_layout Standard
22469
22470 \series bold
22471 A tip:
22472
22473 \series default
22474  to draw complexer shapes in 
22475 \family sans
22476 Jpgfdraw
22477 \family default
22478  you can draw the shape in a program of your choice and import the resulting image to 
22479 \family sans
22480 Jpgfdraw
22481 \family default
22482 .
22483  Then you only need to draw a line or spline along the outline of the image.
22484 \end_layout
22485
22486 \begin_layout Standard
22487 \begin_inset VSpace bigskip
22488 \end_inset
22489
22490
22491 \end_layout
22492
22493 \begin_layout Standard
22494 The module 
22495 \family sans
22496 Custom paragraph shapes
22497 \family default
22498  also provides the two commands 
22499 \family sans
22500 shapepar
22501 \family default
22502  and 
22503 \family sans
22504 Shapepar
22505 \family default
22506  which can be used to define custom shapes coordinate by coordinate.
22507 \begin_inset Foot
22508 status collapsed
22509
22510 \begin_layout Plain Layout
22511 These commands are internally used for all shapes described here.
22512 \end_layout
22513
22514 \end_inset
22515
22516  For information how these styles are used and about further customization possibilities,
22517  have a look at the 
22518 \begin_inset CommandInset href
22519 LatexCommand href
22520 name "documentation"
22521 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
22522 literal "false"
22523
22524 \end_inset
22525
22526  of the package 
22527 \begin_inset Flex Code
22528 status collapsed
22529
22530 \begin_layout Plain Layout
22531 shapepar
22532 \end_layout
22533
22534 \end_inset
22535
22536 .
22537 \end_layout
22538
22539 \begin_layout Subsection
22540
22541 \change_inserted 564990737 1672311925
22542 Hanging Paragraphs
22543 \end_layout
22544
22545 \begin_layout Hanging
22546
22547 \change_inserted 564990737 1672311925
22548 This module adds the 
22549 \family sans
22550 Hanging
22551 \family default
22552  paragraph style,
22553  that is,
22554  one where all but the first line of the paragraph is indented.
22555  This may not appear in your \SpecialChar LyX
22556  document but will appear in the final output.
22557 \end_layout
22558
22559 \begin_layout Subsection
22560
22561 \change_inserted 564990737 1672311925
22562 \begin_inset CommandInset label
22563 LatexCommand label
22564 name "subsec:Initials"
22565
22566 \end_inset
22567
22568 Initials (Drop Caps)
22569 \end_layout
22570
22571 \begin_layout Initial
22572
22573 \change_inserted 564990737 1672311925
22574 \begin_inset Argument 2
22575 status open
22576
22577 \begin_layout Plain Layout
22578
22579 \change_inserted 564990737 1672311925
22580 T
22581 \change_unchanged
22582
22583 \end_layout
22584
22585 \end_inset
22586
22587
22588 \begin_inset Argument 3
22589 status open
22590
22591 \begin_layout Plain Layout
22592
22593 \change_inserted 564990737 1672311925
22594 his
22595 \change_unchanged
22596
22597 \end_layout
22598
22599 \end_inset
22600
22601  module adds a drop capitals paragraph style 
22602 \family sans
22603 Initials
22604 \family default
22605  for paragraph environments which you can use wherever you want to have drop capitals.
22606  You then have three more items in the 
22607 \family sans
22608 Insert
22609 \family default
22610  menu:
22611 \end_layout
22612
22613 \begin_layout Itemize
22614
22615 \change_inserted 564990737 1672311925
22616
22617 \family sans
22618 Initial
22619 \family default
22620  which creates an inset for the drop capital
22621 \end_layout
22622
22623 \begin_layout Itemize
22624
22625 \change_inserted 564990737 1672311925
22626
22627 \family sans
22628 Rest of initial
22629 \family default
22630  which creates an inset for the rest of the word
22631 \end_layout
22632
22633 \begin_layout Itemize
22634
22635 \change_inserted 564990737 1672311925
22636
22637 \family sans
22638 Options
22639 \family default
22640  which allow you configure the formatting of the drop capital.
22641 \end_layout
22642
22643 \begin_layout Standard
22644
22645 \change_inserted 564990737 1672311925
22646 To customize the appearance of the style,
22647  see 
22648 \family sans
22649 Help\SpecialChar menuseparator
22650 Embedded Objects\SpecialChar menuseparator
22651 Objects Surrounded by Text\SpecialChar menuseparator
22652 Initials
22653 \family default
22654 .
22655 \end_layout
22656
22657 \begin_layout Section
22658
22659 \change_inserted 564990737 1672312011
22660 Text Markup
22661 \end_layout
22662
22663 \begin_layout Subsection
22664
22665 \change_inserted 564990737 1672312011
22666 Hyphenatable Text Markup
22667 \end_layout
22668
22669 \begin_layout Standard
22670
22671 \change_inserted 564990737 1672312011
22672 This package defines text styles to highlight,
22673  space-out,
22674  strike-through,
22675  underline and capitalize/small-cap text by means of the 
22676 \family sans
22677 soul
22678 \family default
22679  package.
22680  As opposed to the markup provided by the Text Properties dialog,
22681  words marked-up with 
22682 \family sans
22683 soul
22684 \family default
22685  are hyphenated.
22686  See the 
22687 \begin_inset CommandInset href
22688 LatexCommand href
22689 name "soul documentation"
22690 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
22691 literal "false"
22692
22693 \end_inset
22694
22695 .
22696 \end_layout
22697
22698 \begin_layout Subsection
22699
22700 \change_inserted 564990737 1672312011
22701 Logical Markup
22702 \end_layout
22703
22704 \begin_layout Standard
22705
22706 \change_inserted 564990737 1672312011
22707 This module defines some character styles for logical markup:
22708  
22709 \noun on
22710
22711 \begin_inset Flex Noun
22712 status collapsed
22713
22714 \begin_layout Plain Layout
22715
22716 \change_inserted 564990737 1672312011
22717
22718 \noun on
22719 noun
22720 \change_unchanged
22721
22722 \end_layout
22723
22724 \end_inset
22725
22726
22727 \noun default
22728 ,
22729  
22730 \emph on
22731
22732 \begin_inset Flex Emph
22733 status collapsed
22734
22735 \begin_layout Plain Layout
22736
22737 \change_inserted 564990737 1672312011
22738
22739 \emph on
22740 emph
22741 \change_unchanged
22742
22743 \end_layout
22744
22745 \end_inset
22746
22747
22748 \emph default
22749 ,
22750  
22751 \begin_inset Flex Strong
22752 status collapsed
22753
22754 \begin_layout Plain Layout
22755
22756 \change_inserted 564990737 1672312011
22757 strong
22758 \change_unchanged
22759
22760 \end_layout
22761
22762 \end_inset
22763
22764 ,
22765  and 
22766 \begin_inset Flex Code
22767 status collapsed
22768
22769 \begin_layout Plain Layout
22770
22771 \change_inserted 564990737 1672312011
22772 code
22773 \change_unchanged
22774
22775 \end_layout
22776
22777 \end_inset
22778
22779  which are accessed via the 
22780 \family sans
22781 \bar under
22782 E
22783 \bar default
22784 dit\SpecialChar menuseparator
22785 Custom
22786 \begin_inset space ~
22787 \end_inset
22788
22789 Text
22790 \begin_inset space ~
22791 \end_inset
22792
22793
22794 \bar under
22795 S
22796 \bar default
22797 tyles
22798 \family default
22799  menu.
22800 \end_layout
22801
22802 \begin_layout Chapter
22803
22804 \change_deleted 564990737 1671304317
22805 Customizing 
22806 \change_unchanged
22807 Bibliograph
22808 \change_inserted 564990737 1671304322
22809 y
22810 \change_deleted 564990737 1671304331
22811 ies with Bib\SpecialChar TeX
22812  or Biblatex
22813 \change_unchanged
22814
22815 \end_layout
22816
22817 \begin_layout Standard
22818 The most basic information about how to use Bib\SpecialChar TeX
22819  or 
22820 \family sans
22821 Biblatex
22822 \family default
22823  with \SpecialChar LyX
22824  is contained in the section 
22825 \emph on
22826 Bibliography databases
22827 \emph default
22828  of the 
22829 \emph on
22830 User's Guide
22831 \emph default
22832 .
22833  The following subsections explain special bibliography features supported by \SpecialChar LyX
22834 .
22835 \end_layout
22836
22837 \begin_layout Section
22838 Alternative Citation Styles
22839 \end_layout
22840
22841 \begin_layout Standard
22842 Standard Bib\SpecialChar TeX
22843  uses numbers (e.
22844 \begin_inset space \thinspace{}
22845 \end_inset
22846
22847 g.
22848 \begin_inset space \space{}
22849 \end_inset
22850
22851
22852 \begin_inset Quotes eld
22853 \end_inset
22854
22855 [12]
22856 \begin_inset Quotes erd
22857 \end_inset
22858
22859 ) to refer to a cited work.
22860  However,
22861  in many scientific disciplines,
22862  other citation styles are in use.
22863  The most common one is the author-year style (e.
22864 \begin_inset space \thinspace{}
22865 \end_inset
22866
22867 g.
22868 \begin_inset space \space{}
22869 \end_inset
22870
22871
22872 \begin_inset Quotes eld
22873 \end_inset
22874
22875 Knuth 1984a
22876 \begin_inset Quotes erd
22877 \end_inset
22878
22879 ).
22880  \SpecialChar LyX
22881  supports three packages that provide this style,
22882  
22883 \begin_inset Flex Code
22884 status collapsed
22885
22886 \begin_layout Plain Layout
22887 biblatex
22888 \end_layout
22889
22890 \end_inset
22891
22892 ,
22893  
22894 \begin_inset Flex Code
22895 status collapsed
22896
22897 \begin_layout Plain Layout
22898 natbib
22899 \end_layout
22900
22901 \end_inset
22902
22903 ,
22904  and 
22905 \begin_inset Flex Code
22906 status collapsed
22907
22908 \begin_layout Plain Layout
22909 jurabib
22910 \end_layout
22911
22912 \end_inset
22913
22914 .
22915  Each of these packages has their pros and cons,
22916  which cannot be listed in detail.
22917  If you only want to have simple author-year (or author-numerical) style,
22918  or if you want to use one of the countless style files for 
22919 \begin_inset Flex Code
22920 status collapsed
22921
22922 \begin_layout Plain Layout
22923 natbib
22924 \end_layout
22925
22926 \end_inset
22927
22928 ,
22929  then the established 
22930 \begin_inset Flex Code
22931 status collapsed
22932
22933 \begin_layout Plain Layout
22934 natbib
22935 \end_layout
22936
22937 \end_inset
22938
22939  package is probably your choice.
22940  If you look for specific citation styles common in law studies,
22941  you might consider the 
22942 \begin_inset Flex Code
22943 status collapsed
22944
22945 \begin_layout Plain Layout
22946 jurabib
22947 \end_layout
22948
22949 \end_inset
22950
22951  package.
22952  If you want to have full control over the formatting or look for advanced features such as ibidem,
22953  footnote citations,
22954  full title citations,
22955  advanced date formats (such as 400 BC) or full localization to other languages than English,
22956  you should definitely consider 
22957 \begin_inset Flex Code
22958 status collapsed
22959
22960 \begin_layout Plain Layout
22961 biblatex
22962 \end_layout
22963
22964 \end_inset
22965
22966 ,
22967  which exceeds all other packages in terms of features,
22968  but is also quite heavy and more resource-hungry.
22969 \end_layout
22970
22971 \begin_layout Standard
22972 The handling of these packages in \SpecialChar LyX
22973  is basically the same.
22974  Go to 
22975 \begin_inset Flex Noun
22976 status collapsed
22977
22978 \begin_layout Plain Layout
22979 Document\SpecialChar menuseparator
22980 Settings
22981 \end_layout
22982
22983 \end_inset
22984
22985  and select under 
22986 \begin_inset Flex Noun
22987 status collapsed
22988
22989 \begin_layout Plain Layout
22990 Bibliography
22991 \end_layout
22992
22993 \end_inset
22994
22995  the 
22996 \begin_inset Flex Noun
22997 status collapsed
22998
22999 \begin_layout Plain Layout
23000 Style Format
23001 \end_layout
23002
23003 \end_inset
23004
23005  
23006 \begin_inset Flex Noun
23007 status collapsed
23008
23009 \begin_layout Plain Layout
23010 Basic (BibTeX)
23011 \end_layout
23012
23013 \end_inset
23014
23015 ,
23016  
23017 \begin_inset Flex Noun
23018 status collapsed
23019
23020 \begin_layout Plain Layout
23021 Biblatex
23022 \end_layout
23023
23024 \end_inset
23025
23026 ,
23027  
23028 \begin_inset Flex Noun
23029 status collapsed
23030
23031 \begin_layout Plain Layout
23032 Biblatex (Natbib mode)
23033 \end_layout
23034
23035 \end_inset
23036
23037 ,
23038  
23039 \begin_inset Flex Noun
23040 status collapsed
23041
23042 \begin_layout Plain Layout
23043 Natbib (BibTeX)
23044 \end_layout
23045
23046 \end_inset
23047
23048  or 
23049 \begin_inset Flex Noun
23050 status collapsed
23051
23052 \begin_layout Plain Layout
23053 Jurabib (BibTeX)
23054 \end_layout
23055
23056 \end_inset
23057
23058  (see sec.
23059 \begin_inset space ~
23060 \end_inset
23061
23062 6.5.3 in the User's Guide for more information on these choices).
23063  With all these packages,
23064  you will get some extra features in the citation dialog and you can select the style of the reference (
23065 \begin_inset Quotes eld
23066 \end_inset
23067
23068 Knuth 1984
23069 \begin_inset Quotes erd
23070 \end_inset
23071
23072 ,
23073  
23074 \begin_inset Quotes eld
23075 \end_inset
23076
23077 Knuth (1984)
23078 \begin_inset Quotes erd
23079 \end_inset
23080
23081 ,
23082  
23083 \begin_inset Quotes eld
23084 \end_inset
23085
23086 Knuth,
23087  1984
23088 \begin_inset Quotes erd
23089 \end_inset
23090
23091 ,
23092  
23093 \begin_inset Quotes eld
23094 \end_inset
23095
23096 1984
23097 \begin_inset Quotes erd
23098 \end_inset
23099
23100  etc.).
23101  Note that either package needs specifically designed style files.
23102  They all ship their own,
23103  but there are lots of additional style files,
23104  and there is even an interactive style file builder
23105 \begin_inset Foot
23106 status collapsed
23107
23108 \begin_layout Plain Layout
23109 See 
23110 \begin_inset Flex URL
23111 status open
23112
23113 \begin_layout Plain Layout
23114
23115 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
23116 \end_layout
23117
23118 \end_inset
23119
23120
23121 \end_layout
23122
23123 \end_inset
23124
23125  for 
23126 \begin_inset Flex Code
23127 status collapsed
23128
23129 \begin_layout Plain Layout
23130 natbib
23131 \end_layout
23132
23133 \end_inset
23134
23135 .
23136 \end_layout
23137
23138 \begin_layout Section
23139 Subdivided Bibliographies
23140 \end_layout
23141
23142 \begin_layout Standard
23143 Sometimes you might need to divide your bibliography into several sections.
23144  If you are for instance a historian,
23145  the possibility to separate sources and scientific works is most likely a 
23146 \begin_inset Quotes eld
23147 \end_inset
23148
23149 must have
23150 \begin_inset Quotes erd
23151 \end_inset
23152
23153 .
23154  Unfortunately,
23155  Bib\SpecialChar TeX
23156  itself does not allow you to do this.
23157  But with the help of some \SpecialChar LaTeX
23158  packages,
23159  Bib\SpecialChar TeX
23160  can be extended to fit your needs.
23161 \end_layout
23162
23163 \begin_layout Standard
23164 \SpecialChar LyX
23165  provides native support for one of these packages,
23166  
23167 \family typewriter
23168 bibtopic
23169 \family default
23170 .
23171 \begin_inset Foot
23172 status collapsed
23173
23174 \begin_layout Plain Layout
23175 Available from 
23176 \begin_inset Flex URL
23177 status open
23178
23179 \begin_layout Plain Layout
23180
23181 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
23182 \end_layout
23183
23184 \end_inset
23185
23186
23187 \end_layout
23188
23189 \end_inset
23190
23191  The advantage of this package (compared to other packages such as 
23192 \family typewriter
23193 multibib
23194 \family default
23195 ) is that you don't need to define new citation commands.
23196  Instead,
23197  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
23198  For example:
23199  If you want to divide your bibliography into the sections 
23200 \begin_inset Quotes eld
23201 \end_inset
23202
23203 Sources
23204 \begin_inset Quotes erd
23205 \end_inset
23206
23207  and 
23208 \begin_inset Quotes eld
23209 \end_inset
23210
23211 Scientific works
23212 \begin_inset Quotes erd
23213 \end_inset
23214
23215 ,
23216  you first need to create two bibliographic databases,
23217  e.
23218 \begin_inset space \thinspace{}
23219 \end_inset
23220
23221 g.
23222 \begin_inset space \space{}
23223 \end_inset
23224
23225
23226 \begin_inset Flex Code
23227 status collapsed
23228
23229 \begin_layout Plain Layout
23230 sources.bib
23231 \end_layout
23232
23233 \end_inset
23234
23235  and 
23236 \begin_inset Flex Code
23237 status collapsed
23238
23239 \begin_layout Plain Layout
23240 scientific.bib
23241 \end_layout
23242
23243 \end_inset
23244
23245 .
23246  
23247 \end_layout
23248
23249 \begin_layout Standard
23250 Go to 
23251 \begin_inset Flex Noun
23252 status collapsed
23253
23254 \begin_layout Plain Layout
23255 Document\SpecialChar menuseparator
23256 Settings
23257 \end_layout
23258
23259 \end_inset
23260
23261  and check under 
23262 \begin_inset Flex Noun
23263 status collapsed
23264
23265 \begin_layout Plain Layout
23266 Bibliography
23267 \end_layout
23268
23269 \end_inset
23270
23271  the option 
23272 \begin_inset Flex Noun
23273 status collapsed
23274
23275 \begin_layout Plain Layout
23276 Subdivided bibliography
23277 \end_layout
23278
23279 \end_inset
23280
23281 .
23282  Now you can insert multiple Bib\SpecialChar TeX
23283  bibliographies,
23284  one for each section of your bibliography.
23285  Returning to our example:
23286  Insert the Bib\SpecialChar TeX
23287  bibliography 
23288 \begin_inset Flex Code
23289 status collapsed
23290
23291 \begin_layout Plain Layout
23292 sources.bib
23293 \end_layout
23294
23295 \end_inset
23296
23297  and a second one for the database 
23298 \begin_inset Flex Code
23299 status collapsed
23300
23301 \begin_layout Plain Layout
23302 scientific.bib
23303 \end_layout
23304
23305 \end_inset
23306
23307 .
23308  You are free to use the same or different styles for each section.
23309  Additionally,
23310  you can choose if the bibliography section should contain 
23311 \begin_inset Quotes eld
23312 \end_inset
23313
23314 all cited references
23315 \begin_inset Quotes erd
23316 \end_inset
23317
23318  of the specified database(s) (which is the default),
23319  
23320 \begin_inset Quotes eld
23321 \end_inset
23322
23323 all uncited references
23324 \begin_inset Quotes erd
23325 \end_inset
23326
23327  or even 
23328 \begin_inset Quotes eld
23329 \end_inset
23330
23331 all references
23332 \begin_inset Quotes erd
23333 \end_inset
23334
23335 .
23336  This might be useful if you would like to separate your bibliography into three sections:
23337  
23338 \begin_inset Quotes eld
23339 \end_inset
23340
23341 Cited sources
23342 \begin_inset Quotes erd
23343 \end_inset
23344
23345 ,
23346  
23347 \begin_inset Quotes eld
23348 \end_inset
23349
23350 Uncited sources
23351 \begin_inset Quotes erd
23352 \end_inset
23353
23354 ,
23355  and 
23356 \begin_inset Quotes eld
23357 \end_inset
23358
23359 Scientific works
23360 \begin_inset Quotes erd
23361 \end_inset
23362
23363 .
23364  The titles for the sections can be added as ordinary sections or subsections.
23365  Since 
23366 \begin_inset Flex Code
23367 status collapsed
23368
23369 \begin_layout Plain Layout
23370 bibtopic
23371 \end_layout
23372
23373 \end_inset
23374
23375  removes the bibliography title,
23376  you have to manually re-add that,
23377  too (as a chapter* or section*,
23378  for instance).
23379 \end_layout
23380
23381 \begin_layout Standard
23382 With 
23383 \family sans
23384 Biblatex
23385 \family default
23386 ,
23387  the procedure is a bit different.
23388  Since 
23389 \family typewriter
23390 bibtopic
23391 \family default
23392  does not work with 
23393 \family sans
23394 Biblatex
23395 \family default
23396 ,
23397  the aforementioned 
23398 \begin_inset Flex Noun
23399 status collapsed
23400
23401 \begin_layout Plain Layout
23402 Subdivided bibliography
23403 \end_layout
23404
23405 \end_inset
23406
23407  option is disabled if you use 
23408 \family sans
23409 Biblatex
23410 \family default
23411 .
23412  However,
23413  
23414 \family sans
23415 Biblatex
23416 \family default
23417  provides its own means to generate subdivided bibliographies.
23418  You can either add keywords to bibliography entries via the 
23419 \begin_inset Flex Code
23420 status collapsed
23421
23422 \begin_layout Plain Layout
23423 keywords
23424 \end_layout
23425
23426 \end_inset
23427
23428  entry option and then filter bibliography sections by keyword (by adding 
23429 \begin_inset Flex Code
23430 status collapsed
23431
23432 \begin_layout Plain Layout
23433 keyword=mykeyword
23434 \end_layout
23435
23436 \end_inset
23437
23438  to the 
23439 \begin_inset Flex Noun
23440 status collapsed
23441
23442 \begin_layout Plain Layout
23443 Options
23444 \end_layout
23445
23446 \end_inset
23447
23448  field of the dialog that opens if you left-click on the 
23449 \begin_inset Flex Noun
23450 status collapsed
23451
23452 \begin_layout Plain Layout
23453 Biblatex Generated Bibliography
23454 \end_layout
23455
23456 \end_inset
23457
23458  button),
23459  or you can filter by entry types (such as 
23460 \emph on
23461 book
23462 \emph default
23463  or 
23464 \emph on
23465 article
23466 \emph default
23467 ) by entering e.
23468 \begin_inset space \thinspace{}
23469 \end_inset
23470
23471 g.
23472  
23473 \begin_inset Flex Code
23474 status collapsed
23475
23476 \begin_layout Plain Layout
23477 type=book
23478 \end_layout
23479
23480 \end_inset
23481
23482  or 
23483 \begin_inset Flex Code
23484 status collapsed
23485
23486 \begin_layout Plain Layout
23487 nottype=collection
23488 \end_layout
23489
23490 \end_inset
23491
23492  to the mentioned 
23493 \begin_inset Flex Noun
23494 status collapsed
23495
23496 \begin_layout Plain Layout
23497 Options
23498 \end_layout
23499
23500 \end_inset
23501
23502  field,
23503  or you can create so-called 
23504 \begin_inset Quotes eld
23505 \end_inset
23506
23507 Bibliography Categories
23508 \begin_inset Quotes erd
23509 \end_inset
23510
23511  to which you can assign individual entries.
23512  Please refer to the Biblatex manual,
23513  section 
23514 \emph on
23515 Subdivided Bibliographies
23516 \emph default
23517 ,
23518  for details.
23519 \end_layout
23520
23521 \begin_layout Section
23522 Multiple Bibliographies
23523 \begin_inset CommandInset label
23524 LatexCommand label
23525 name "subsec:Multiple-Bibliographies"
23526
23527 \end_inset
23528
23529
23530 \end_layout
23531
23532 \begin_layout Standard
23533 Multiple bibliographies,
23534  e.
23535 \begin_inset space \thinspace{}
23536 \end_inset
23537
23538 g.
23539 \begin_inset space \space{}
23540 \end_inset
23541
23542 a bibliography for each part,
23543  chapter,
23544  section,
23545  subsection or child (sub-document) of the document,
23546  are also supported by \SpecialChar LyX
23547 .
23548  In order to enable it,
23549  go to 
23550 \begin_inset Flex Noun
23551 status collapsed
23552
23553 \begin_layout Plain Layout
23554 Document\SpecialChar menuseparator
23555 Settings\SpecialChar menuseparator
23556 Bibliography
23557 \end_layout
23558
23559 \end_inset
23560
23561  and select the relevant unit (e.
23562 \begin_inset space \thinspace{}
23563 \end_inset
23564
23565 g.,
23566  
23567 \begin_inset Quotes eld
23568 \end_inset
23569
23570 per section
23571 \begin_inset Quotes erd
23572 \end_inset
23573
23574 ) in the 
23575 \begin_inset Flex Noun
23576 status collapsed
23577
23578 \begin_layout Plain Layout
23579 Multiple Bibliographies
23580 \end_layout
23581
23582 \end_inset
23583
23584  combo box.
23585  Then add a Bib(la)\SpecialChar TeX
23586  bibliography to each unit (e.
23587 \begin_inset space \thinspace{}
23588 \end_inset
23589
23590 g.,
23591  section) of your document.
23592  In the output,
23593  a separate bibliography,
23594  containing only the references done in the current unit is generated.
23595 \end_layout
23596
23597 \begin_layout Standard
23598 If you use Bib\SpecialChar TeX
23599 ,
23600  either the 
23601 \begin_inset Flex Code
23602 status collapsed
23603
23604 \begin_layout Plain Layout
23605 chapterbib
23606 \end_layout
23607
23608 \end_inset
23609
23610  or the 
23611 \begin_inset Flex Code
23612 status collapsed
23613
23614 \begin_layout Plain Layout
23615 bibtopic
23616 \end_layout
23617
23618 \end_inset
23619
23620  package is used to create multiple bibliographies.
23621  The former package is used if you select 
23622 \begin_inset Quotes eld
23623 \end_inset
23624
23625 per child document
23626 \begin_inset Quotes erd
23627 \end_inset
23628
23629  and do 
23630 \emph on
23631 not
23632 \emph default
23633  check 
23634 \begin_inset Flex Noun
23635 status collapsed
23636
23637 \begin_layout Plain Layout
23638 Sectioned Bibliography
23639 \end_layout
23640
23641 \end_inset
23642
23643 .
23644  In all other cases,
23645  
23646 \begin_inset Flex Code
23647 status collapsed
23648
23649 \begin_layout Plain Layout
23650 bibtopic
23651 \end_layout
23652
23653 \end_inset
23654
23655  is used.
23656 \begin_inset Foot
23657 status collapsed
23658
23659 \begin_layout Plain Layout
23660 An alternative approach,
23661  if you are willing to use some 
23662 \begin_inset Flex Noun
23663 status collapsed
23664
23665 \begin_layout Plain Layout
23666 \SpecialChar TeX
23667  Code
23668 \end_layout
23669
23670 \end_inset
23671
23672  (see section
23673 \begin_inset space ~
23674 \end_inset
23675
23676
23677 \begin_inset CommandInset ref
23678 LatexCommand ref
23679 reference "sec:Inserting-TeX-Code"
23680 nolink "false"
23681
23682 \end_inset
23683
23684 ),
23685  is to use the 
23686 \begin_inset Flex Code
23687 status collapsed
23688
23689 \begin_layout Plain Layout
23690 bibunits
23691 \end_layout
23692
23693 \end_inset
23694
23695  package.
23696 \end_layout
23697
23698 \end_inset
23699
23700  If 
23701 \begin_inset Flex Code
23702 status collapsed
23703
23704 \begin_layout Plain Layout
23705 bibtopic
23706 \end_layout
23707
23708 \end_inset
23709
23710  is used,
23711  \SpecialChar LyX
23712  encloses the specified units in 
23713 \begin_inset Flex Code
23714 status collapsed
23715
23716 \begin_layout Plain Layout
23717 bibtopic
23718 \end_layout
23719
23720 \end_inset
23721
23722 's 
23723 \begin_inset Flex Code
23724 status collapsed
23725
23726 \begin_layout Plain Layout
23727
23728 \backslash
23729 begin{btUnit}
23730 \end_layout
23731
23732 \end_inset
23733
23734  and 
23735 \begin_inset Flex Code
23736 status collapsed
23737
23738 \begin_layout Plain Layout
23739
23740 \backslash
23741 end{btUnit}
23742 \end_layout
23743
23744 \end_inset
23745
23746  in order to create the units.
23747  Note that this approach has some limitations.
23748  First,
23749  every citation reference has to be inside some 
23750 \begin_inset Flex Code
23751 status collapsed
23752
23753 \begin_layout Plain Layout
23754 btUnit
23755 \end_layout
23756
23757 \end_inset
23758
23759 .
23760  So citations outside a defined unit (e.
23761 \begin_inset space \thinspace{}
23762 \end_inset
23763
23764 g.,
23765  before the first section if you use 
23766 \begin_inset Quotes eld
23767 \end_inset
23768
23769 by section
23770 \begin_inset Quotes erd
23771 \end_inset
23772
23773 ) will appear as 
23774 \begin_inset Quotes eld
23775 \end_inset
23776
23777 ???
23778 \begin_inset Quotes erd
23779 \end_inset
23780
23781 .
23782  You can also create your own units by entering 
23783 \begin_inset Flex Code
23784 status collapsed
23785
23786 \begin_layout Plain Layout
23787
23788 \backslash
23789 begin{btUnit}
23790 \end_layout
23791
23792 \end_inset
23793
23794  and 
23795 \begin_inset Flex Code
23796 status collapsed
23797
23798 \begin_layout Plain Layout
23799
23800 \backslash
23801 end{btUnit}
23802 \end_layout
23803
23804 \end_inset
23805
23806  as \SpecialChar TeX
23807  code (for instance to work around the mentioned limitation).
23808  Note,
23809  though,
23810  that 
23811 \begin_inset Flex Code
23812 status collapsed
23813
23814 \begin_layout Plain Layout
23815 btUnit
23816 \end_layout
23817
23818 \end_inset
23819
23820 s cannot be nested.
23821  A second limitation is that 
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826 bibtopic
23827 \end_layout
23828
23829 \end_inset
23830
23831  always processes all references of a bibliography database,
23832  even if they are not cited.
23833  This can result in odd labels (e.
23834 \begin_inset space \thinspace{}
23835 \end_inset
23836
23837 g.
23838  
23839 \begin_inset Quotes eld
23840 \end_inset
23841
23842 Miller 2014b
23843 \begin_inset Quotes erd
23844 \end_inset
23845
23846  if two works of this author from 2014 are in the database,
23847  even if only one is cited).
23848 \end_layout
23849
23850 \begin_layout Standard
23851 If you use 
23852 \family sans
23853 Biblatex
23854 \family default
23855 ,
23856  the 
23857 \begin_inset Flex Code
23858 status collapsed
23859
23860 \begin_layout Plain Layout
23861 refsection
23862 \end_layout
23863
23864 \end_inset
23865
23866  option is used instead.
23867  If you need specific units,
23868  you can start them with the \SpecialChar TeX
23869  code 
23870 \begin_inset Flex Code
23871 status collapsed
23872
23873 \begin_layout Plain Layout
23874
23875 \backslash
23876 newrefsection
23877 \end_layout
23878
23879 \end_inset
23880
23881  or 
23882 \begin_inset Flex Code
23883 status collapsed
23884
23885 \begin_layout Plain Layout
23886
23887 \backslash
23888 newrefsegment
23889 \end_layout
23890
23891 \end_inset
23892
23893 ,
23894  respectively.
23895  If you also want to control the end of the unit,
23896  use the environment 
23897 \begin_inset Flex Code
23898 status collapsed
23899
23900 \begin_layout Plain Layout
23901
23902 \backslash
23903 begin{refsection}
23904 \end_layout
23905
23906 \end_inset
23907
23908  \SpecialChar ldots
23909  
23910 \begin_inset Flex Code
23911 status collapsed
23912
23913 \begin_layout Plain Layout
23914
23915 \backslash
23916 end{refsection}
23917 \end_layout
23918
23919 \end_inset
23920
23921  instead.
23922  Note,
23923  though,
23924  that 
23925 \begin_inset Flex Code
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929 refsection
23930 \end_layout
23931
23932 \end_inset
23933
23934 s cannot be nested.
23935  In addition to the individual bibliography of the current unit,
23936  
23937 \family sans
23938 Biblatex
23939 \family default
23940  also provides an easy way to output all bibliographies,
23941  subsequently,
23942  at one place (e.
23943 \begin_inset space \thinspace{}
23944 \end_inset
23945
23946 g.,
23947  at the end of the document).
23948  Select 
23949 \begin_inset Quotes eld
23950 \end_inset
23951
23952 all reference units
23953 \begin_inset Quotes erd
23954 \end_inset
23955
23956  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
23957  Please refer to the 
23958 \family sans
23959 Biblatex
23960 \family default
23961  manual for more information on this topic.
23962 \end_layout
23963
23964 \begin_layout Chapter
23965
23966 \change_deleted 564990737 1671355654
23967 Itemize 
23968 \change_unchanged
23969 Bullet
23970 \change_inserted 564990737 1671355667
23971 s
23972 \change_deleted 564990737 1671355661
23973  Selection
23974 \change_inserted 564990737 1671355684
23975
23976 \begin_inset CommandInset label
23977 LatexCommand label
23978 name "chap:bullets"
23979
23980 \end_inset
23981
23982
23983 \change_deleted 564990737 1671355684
23984
23985 \begin_inset CommandInset label
23986 LatexCommand label
23987 name "sec:bullet"
23988
23989 \end_inset
23990
23991
23992 \change_unchanged
23993
23994 \end_layout
23995
23996 \begin_layout Standard
23997 by
23998 \noun on
23999  Allan Rae
24000 \end_layout
24001
24002 \begin_layout Section
24003 Introduction
24004 \end_layout
24005
24006 \begin_layout Standard
24007 \SpecialChar LyX
24008  provides 216 bullet shapes that can be accessed from a simple dialog.
24009  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
24010  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
24011 \begin_inset Foot
24012 status collapsed
24013
24014 \begin_layout Plain Layout
24015 Well,
24016  actually you can but you'll have to do it by hand.
24017 \end_layout
24018
24019 \end_inset
24020
24021
24022 \end_layout
24023
24024 \begin_layout Section
24025 How it looks
24026 \end_layout
24027
24028 \begin_layout Standard
24029 Open the dialog by selecting the 
24030 \begin_inset Flex Noun
24031 status collapsed
24032
24033 \begin_layout Plain Layout
24034 Document\SpecialChar menuseparator
24035 Settings
24036 \end_layout
24037
24038 \end_inset
24039
24040  menu item and then select the 
24041 \begin_inset Flex Noun
24042 status collapsed
24043
24044 \begin_layout Plain Layout
24045 Bullets
24046 \end_layout
24047
24048 \end_inset
24049
24050  tab.
24051 \end_layout
24052
24053 \begin_layout Standard
24054 The dialog provides you with a table of bullet shapes.
24055  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
24056  The row of buttons across the top is used to select which bullet depth you are changing.
24057
24058 \change_deleted 244031559 1603875981
24059  A text entry under the table shows the currently selected bullet shape's \SpecialChar LaTeX
24060  equivalent and this can be edited if desired.
24061  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
24062  preamble.
24063 \change_unchanged
24064
24065 \end_layout
24066
24067 \begin_layout Standard
24068 The six panels are divided up by the packages they require.
24069  The following table shows the mappings from button name to \SpecialChar LaTeX
24070  package.
24071 \end_layout
24072
24073 \begin_layout Standard
24074 \align center
24075 \begin_inset Tabular
24076 <lyxtabular version="3" rows="7" columns="2">
24077 <features tabularvalignment="middle">
24078 <column alignment="center" valignment="top" width="0pt">
24079 <column alignment="center" valignment="top" width="0pt">
24080 <row>
24081 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24082 \begin_inset Text
24083
24084 \begin_layout Plain Layout
24085
24086 \family roman
24087 \series medium
24088 \shape up
24089 \size normal
24090 \emph off
24091 \bar no
24092 \noun off
24093 \color none
24094 Button
24095 \end_layout
24096
24097 \end_inset
24098 </cell>
24099 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24100 \begin_inset Text
24101
24102 \begin_layout Plain Layout
24103
24104 \family roman
24105 \series medium
24106 \shape up
24107 \size normal
24108 \emph off
24109 \bar no
24110 \noun off
24111 \color none
24112 Packages Required
24113 \end_layout
24114
24115 \end_inset
24116 </cell>
24117 </row>
24118 <row>
24119 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24120 \begin_inset Text
24121
24122 \begin_layout Plain Layout
24123
24124 \family sans
24125 \series medium
24126 \shape up
24127 \size normal
24128 \emph off
24129 \bar no
24130 \noun off
24131 \color none
24132 Standard
24133 \end_layout
24134
24135 \end_inset
24136 </cell>
24137 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24138 \begin_inset Text
24139
24140 \begin_layout Plain Layout
24141
24142 \series medium
24143 \shape up
24144 \size normal
24145 \emph off
24146 \bar no
24147 \noun off
24148 \color none
24149 base \SpecialChar LaTeX
24150
24151 \end_layout
24152
24153 \end_inset
24154 </cell>
24155 </row>
24156 <row>
24157 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24158 \begin_inset Text
24159
24160 \begin_layout Plain Layout
24161
24162 \family sans
24163 \series medium
24164 \shape up
24165 \size normal
24166 \emph off
24167 \bar no
24168 \noun off
24169 \color none
24170 Maths
24171 \end_layout
24172
24173 \end_inset
24174 </cell>
24175 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24176 \begin_inset Text
24177
24178 \begin_layout Plain Layout
24179
24180 \family typewriter
24181 \series medium
24182 \shape up
24183 \size normal
24184 \emph off
24185 \bar no
24186 \noun off
24187 \color none
24188 amssymb.sty
24189 \end_layout
24190
24191 \end_inset
24192 </cell>
24193 </row>
24194 <row>
24195 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24196 \begin_inset Text
24197
24198 \begin_layout Plain Layout
24199
24200 \family sans
24201 \series medium
24202 \shape up
24203 \size normal
24204 \emph off
24205 \bar no
24206 \noun off
24207 \color none
24208 Ding1
24209 \end_layout
24210
24211 \end_inset
24212 </cell>
24213 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24214 \begin_inset Text
24215
24216 \begin_layout Plain Layout
24217
24218 \family typewriter
24219 \series medium
24220 \shape up
24221 \size normal
24222 \emph off
24223 \bar no
24224 \noun off
24225 \color none
24226 pifont.sty
24227 \end_layout
24228
24229 \end_inset
24230 </cell>
24231 </row>
24232 <row>
24233 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24234 \begin_inset Text
24235
24236 \begin_layout Plain Layout
24237
24238 \family sans
24239 \series medium
24240 \shape up
24241 \size normal
24242 \emph off
24243 \bar no
24244 \noun off
24245 \color none
24246 Ding2
24247 \end_layout
24248
24249 \end_inset
24250 </cell>
24251 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24252 \begin_inset Text
24253
24254 \begin_layout Plain Layout
24255
24256 \family typewriter
24257 \series medium
24258 \shape up
24259 \size normal
24260 \emph off
24261 \bar no
24262 \noun off
24263 \color none
24264 pifont.sty
24265 \end_layout
24266
24267 \end_inset
24268 </cell>
24269 </row>
24270 <row>
24271 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
24272 \begin_inset Text
24273
24274 \begin_layout Plain Layout
24275
24276 \family sans
24277 \series medium
24278 \shape up
24279 \size normal
24280 \emph off
24281 \bar no
24282 \noun off
24283 \color none
24284 Ding3
24285 \end_layout
24286
24287 \end_inset
24288 </cell>
24289 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
24290 \begin_inset Text
24291
24292 \begin_layout Plain Layout
24293
24294 \family typewriter
24295 \series medium
24296 \shape up
24297 \size normal
24298 \emph off
24299 \bar no
24300 \noun off
24301 \color none
24302 pifont.sty
24303 \end_layout
24304
24305 \end_inset
24306 </cell>
24307 </row>
24308 <row>
24309 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
24310 \begin_inset Text
24311
24312 \begin_layout Plain Layout
24313
24314 \family sans
24315 \series medium
24316 \shape up
24317 \size normal
24318 \emph off
24319 \bar no
24320 \noun off
24321 \color none
24322 Ding4
24323 \end_layout
24324
24325 \end_inset
24326 </cell>
24327 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
24328 \begin_inset Text
24329
24330 \begin_layout Plain Layout
24331
24332 \family typewriter
24333 \series medium
24334 \shape up
24335 \size normal
24336 \emph off
24337 \bar no
24338 \noun off
24339 \color none
24340 pifont.sty
24341 \end_layout
24342
24343 \end_inset
24344 </cell>
24345 </row>
24346 </lyxtabular>
24347
24348 \end_inset
24349
24350
24351 \end_layout
24352
24353 \begin_layout Standard
24354 \SpecialChar LyX
24355  doesn't stop you using bullets from packages you don't have.
24356  If you get errors from \SpecialChar LaTeX
24357  when you try to view or print the file,
24358  then it is likely you are missing a package.
24359 \begin_inset Foot
24360 status collapsed
24361
24362 \begin_layout Plain Layout
24363 \SpecialChar LyX
24364  doesn't restrict your use since you may be editing locally and exporting elsewhere.
24365 \end_layout
24366
24367 \end_inset
24368
24369
24370 \end_layout
24371
24372 \begin_layout Section
24373 How to use it
24374 \end_layout
24375
24376 \begin_layout Standard
24377 Select which bullet depth you want to change then select the bullet shape and size.
24378  Any changes will not be visible in \SpecialChar LyX
24379 ,
24380  but are visible when viewing the document.
24381 \end_layout
24382
24383 \begin_layout Standard
24384 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
24385 \begin_inset Foot
24386 status open
24387
24388 \begin_layout Plain Layout
24389
24390 \change_inserted 564990737 1672138075
24391 \begin_inset CommandInset label
24392 LatexCommand label
24393 name "fn:If-you-really"
24394
24395 \end_inset
24396
24397
24398 \change_unchanged
24399 If you 
24400 \emph on
24401 really
24402 \emph default
24403  want to have multiple sets of paragraphs with different sets of bullets in each,
24404  then you're going to have to get your hands dirty with \SpecialChar TeX
24405  code.
24406  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
24407  code for a wide range of bullet shapes.
24408  To make your own custom paragraphs you have the following options:
24409 \end_layout
24410
24411 \begin_layout Plain Layout
24412 \begin_inset ERT
24413 status open
24414
24415 \begin_layout Plain Layout
24416
24417
24418 \backslash
24419 let
24420 \backslash
24421 savelabelitemi=
24422 \backslash
24423 labelitemi
24424 \end_layout
24425
24426 \end_inset
24427
24428
24429 \end_layout
24430
24431 \begin_layout Plain Layout
24432 \begin_inset ERT
24433 status open
24434
24435 \begin_layout Plain Layout
24436
24437
24438 \backslash
24439 renewcommand
24440 \backslash
24441 labelitemi[0]{
24442 \backslash
24443 small
24444 \backslash
24445 (
24446 \backslash
24447 sharp
24448 \backslash
24449 )}
24450 \end_layout
24451
24452 \end_inset
24453
24454
24455 \end_layout
24456
24457 \begin_layout Itemize
24458 Use the \SpecialChar LaTeX
24459  command 
24460 \begin_inset Flex Code
24461 status collapsed
24462
24463 \begin_layout Plain Layout
24464
24465 \backslash
24466 renewcommand{}{}
24467 \end_layout
24468
24469 \end_inset
24470
24471  to specify a new bullet shape for a given depth.
24472  You'll also need to save the current bullet shape so you can restore it again afterwards.
24473  In this itemized list the following \SpecialChar LaTeX
24474  code was used to change the bullet used for the first depth.
24475 \end_layout
24476
24477 \begin_deeper
24478 \begin_layout LyX-Code
24479
24480 \backslash
24481 let
24482 \backslash
24483 savelabelitemi=
24484 \backslash
24485 labelitemi 
24486 \end_layout
24487
24488 \begin_layout LyX-Code
24489
24490 \backslash
24491 renewcommand
24492 \backslash
24493 labelitemi[0]{
24494 \backslash
24495 small
24496 \backslash
24497 (
24498 \backslash
24499 sharp
24500 \backslash
24501 )}
24502 \end_layout
24503
24504 \end_deeper
24505 \begin_layout Itemize
24506 Note that the itemize depth is specified in Roman numerals as part of the 
24507 \family typewriter
24508
24509 \backslash
24510 labelitem
24511 \family default
24512  command.
24513 \end_layout
24514
24515 \begin_layout Itemize
24516 \begin_inset Argument item:1
24517 status open
24518
24519 \begin_layout Plain Layout
24520 \begin_inset ERT
24521 status open
24522
24523 \begin_layout Plain Layout
24524
24525
24526 \backslash
24527 (
24528 \backslash
24529 star
24530 \backslash
24531 )
24532 \end_layout
24533
24534 \end_inset
24535
24536
24537 \end_layout
24538
24539 \end_inset
24540
24541  Specify each individual entry by starting each item with the bullet shape enclosed in a 
24542 \begin_inset Quotes eld
24543 \end_inset
24544
24545 Custom Item
24546 \begin_inset Quotes erd
24547 \end_inset
24548
24549  inset (available at 
24550 \family sans
24551 Insert\SpecialChar menuseparator
24552 Custom Item
24553 \family default
24554 ) and set as 
24555 \begin_inset Flex Noun
24556 status collapsed
24557
24558 \begin_layout Plain Layout
24559 \SpecialChar TeX
24560  Code
24561 \end_layout
24562
24563 \end_inset
24564
24565 .
24566  For example,
24567  this item was started with 
24568 \begin_inset Flex Code
24569 status collapsed
24570
24571 \begin_layout Plain Layout
24572
24573 \backslash
24574 (
24575 \backslash
24576 star
24577 \backslash
24578 )
24579 \end_layout
24580
24581 \end_inset
24582
24583 .
24584 \end_layout
24585
24586 \begin_layout Plain Layout
24587 \begin_inset ERT
24588 status open
24589
24590 \begin_layout Plain Layout
24591
24592
24593 \backslash
24594 renewcommand
24595 \backslash
24596 labelitemi[0]{
24597 \backslash
24598 savelabelitemi}
24599 \end_layout
24600
24601 \end_inset
24602
24603
24604 \end_layout
24605
24606 \begin_layout Plain Layout
24607 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
24608  The way used here was:
24609 \end_layout
24610
24611 \begin_layout LyX-Code
24612
24613 \backslash
24614 renewcommand
24615 \backslash
24616 labelitemi[0]{
24617 \backslash
24618 savelabelitemi}
24619 \end_layout
24620
24621 \end_inset
24622
24623
24624 \end_layout
24625
24626 \begin_layout Chapter
24627 Supplemental Tools
24628 \end_layout
24629
24630 \begin_layout Section
24631 Multipart Documents
24632 \end_layout
24633
24634 \begin_layout Subsection
24635 General Operation
24636 \end_layout
24637
24638 \begin_layout Standard
24639 When you are working on a large file with many sections,
24640  it is often convenient to break up the document into several files,
24641  or perhaps you have something where a table may change from time to time,
24642  but the preceding text does not.
24643  In these cases,
24644  you should seriously consider using multipart documents.
24645  For example,
24646  scientific papers often have five major sections:
24647  the introduction,
24648  observations,
24649  results,
24650  discussion,
24651  and conclusion.
24652  Each of these could be its own separate \SpecialChar LyX
24653  file,
24654  with one 
24655 \begin_inset Quotes eld
24656 \end_inset
24657
24658 master
24659 \begin_inset Quotes erd
24660 \end_inset
24661
24662  file which contains the title,
24663  authors,
24664  abstract,
24665  references,
24666  etc.,
24667  plus the five included files.
24668  It is important to note that each of these files is a full \SpecialChar LyX
24669  file which can be formatted and printed on its own,
24670  as well as included in a master file.
24671  Each of these files must have the same document class,
24672  however—
24673 don't attempt to mix book classes with article classes.
24674  You may also include \SpecialChar LaTeX
24675  files;
24676  however,
24677  these files must not have their own preamble (i.
24678 \begin_inset space \thinspace{}
24679 \end_inset
24680
24681 e.
24682 \begin_inset space \space{}
24683 \end_inset
24684
24685 everything up to and including the 
24686 \begin_inset Flex Code
24687 status collapsed
24688
24689 \begin_layout Plain Layout
24690
24691 \backslash
24692 begin{document}
24693 \end_layout
24694
24695 \end_inset
24696
24697  line as well as the 
24698 \begin_inset Flex Code
24699 status collapsed
24700
24701 \begin_layout Plain Layout
24702
24703 \backslash
24704 end{document}
24705 \end_layout
24706
24707 \end_inset
24708
24709  line must be deleted) or else errors will be generated when you try to make a DVI file.
24710 \end_layout
24711
24712 \begin_layout Standard
24713 \SpecialChar LyX
24714  allows you to include files quite easily with 
24715 \begin_inset Flex Noun
24716 status collapsed
24717
24718 \begin_layout Plain Layout
24719 Insert\SpecialChar menuseparator
24720 Child
24721 \begin_inset space ~
24722 \end_inset
24723
24724 Document
24725 \end_layout
24726
24727 \end_inset
24728
24729 .
24730  When you click on this selection a small box is inserted into the file at the current cursor location.
24731  Clicking on the box raises a dialog which allows you to select the file to be included,
24732  and the method of its inclusion.
24733  
24734 \end_layout
24735
24736 \begin_layout Standard
24737 The file selection box should by now be obvious.
24738  The three inclusion methods are 
24739 \begin_inset Quotes eld
24740 \end_inset
24741
24742 include
24743 \begin_inset Quotes erd
24744 \end_inset
24745
24746 ,
24747  
24748 \begin_inset Quotes eld
24749 \end_inset
24750
24751 input
24752 \begin_inset Quotes erd
24753 \end_inset
24754
24755 ,
24756  and 
24757 \begin_inset Quotes eld
24758 \end_inset
24759
24760 verbatim
24761 \begin_inset Quotes erd
24762 \end_inset
24763
24764 .
24765  The methods 
24766 \begin_inset Quotes eld
24767 \end_inset
24768
24769 include
24770 \begin_inset Quotes erd
24771 \end_inset
24772
24773  and 
24774 \begin_inset Quotes eld
24775 \end_inset
24776
24777 input
24778 \begin_inset Quotes erd
24779 \end_inset
24780
24781  are similar in many ways,
24782  but there are also some notable differences:
24783 \end_layout
24784
24785 \begin_layout Enumerate
24786 Files that are 
24787 \begin_inset Quotes eld
24788 \end_inset
24789
24790 included
24791 \begin_inset Quotes erd
24792 \end_inset
24793
24794  are typeset beginning on a new page,
24795  while files that are 
24796 \begin_inset Quotes eld
24797 \end_inset
24798
24799 inputted
24800 \begin_inset Quotes erd
24801 \end_inset
24802
24803  are typeset starting on the current page.
24804 \end_layout
24805
24806 \begin_layout Enumerate
24807 \begin_inset Quotes eld
24808 \end_inset
24809
24810 Included
24811 \begin_inset Quotes erd
24812 \end_inset
24813
24814  files cannot themselves 
24815 \begin_inset Quotes eld
24816 \end_inset
24817
24818 include
24819 \begin_inset Quotes erd
24820 \end_inset
24821
24822  further files (
24823 \begin_inset Quotes eld
24824 \end_inset
24825
24826 grandchilds
24827 \begin_inset Quotes erd
24828 \end_inset
24829
24830 ).
24831  With 
24832 \begin_inset Quotes eld
24833 \end_inset
24834
24835 input
24836 \begin_inset Quotes erd
24837 \end_inset
24838
24839 ,
24840  on the other hand,
24841  infinite sub-inputting is possible.
24842 \end_layout
24843
24844 \begin_layout Enumerate
24845 \begin_inset Quotes eld
24846 \end_inset
24847
24848 Include
24849 \begin_inset Quotes erd
24850 \end_inset
24851
24852  allow for the output of only selected 
24853 \begin_inset Quotes eld
24854 \end_inset
24855
24856 included
24857 \begin_inset Quotes erd
24858 \end_inset
24859
24860  files,
24861  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
24862 \emph on
24863 Child
24864 \begin_inset space ~
24865 \end_inset
24866
24867 Documents
24868 \emph default
24869  of the 
24870 \emph on
24871 Embedded
24872 \begin_inset space ~
24873 \end_inset
24874
24875 Objects
24876 \emph default
24877  manual for details).
24878 \end_layout
24879
24880 \begin_layout Standard
24881 Hence,
24882  
24883 \begin_inset Quotes eld
24884 \end_inset
24885
24886 include
24887 \begin_inset Quotes erd
24888 \end_inset
24889
24890  is the preferred method for chapters that are outsourced to child documents,
24891  while 
24892 \begin_inset Quotes eld
24893 \end_inset
24894
24895 input
24896 \begin_inset Quotes erd
24897 \end_inset
24898
24899  is more suitable for arbitrary file inheritance.
24900 \end_layout
24901
24902 \begin_layout Standard
24903
24904 \begin_inset Quotes eld
24905 \end_inset
24906
24907 verbatim
24908 \begin_inset Quotes erd
24909 \end_inset
24910
24911  included file allows you to include a file typeset exactly as it appears in the file,
24912  i.
24913 \begin_inset space \thinspace{}
24914 \end_inset
24915
24916 e.
24917 \begin_inset space \space{}
24918 \end_inset
24919
24920 in 
24921 \begin_inset Flex Code
24922 status collapsed
24923
24924 \begin_layout Plain Layout
24925 verbatim
24926 \end_layout
24927
24928 \end_inset
24929
24930  mode,
24931  with the characters set in a fixed-width typewriter font.
24932  Normally,
24933  spaces in this file are invisible,
24934  though two consecutive spaces are conserved,
24935  unlike \SpecialChar LyX
24936 's normal treatment of spaces.
24937  However,
24938  setting the 
24939 \begin_inset Flex Noun
24940 status collapsed
24941
24942 \begin_layout Plain Layout
24943 Mark
24944 \begin_inset space ~
24945 \end_inset
24946
24947 spaces
24948 \begin_inset space ~
24949 \end_inset
24950
24951 in
24952 \begin_inset space ~
24953 \end_inset
24954
24955 output
24956 \end_layout
24957
24958 \end_inset
24959
24960  checkbox typesets a mark to unambiguously define the presence of a space.
24961  
24962 \end_layout
24963
24964 \begin_layout Standard
24965 Generally,
24966  the master file is converted into a full \SpecialChar LaTeX
24967  file before typesetting,
24968  while the included files are converted to \SpecialChar LaTeX
24969  files that do not have all the preamble information.
24970 \end_layout
24971
24972 \begin_layout Subsection
24973 Cross-References Between Files
24974 \end_layout
24975
24976 \begin_layout Standard
24977 \begin_inset Box Shadowbox
24978 position "t"
24979 hor_pos "c"
24980 has_inner_box 1
24981 inner_pos "t"
24982 use_parbox 0
24983 use_makebox 0
24984 width "100col%"
24985 special "none"
24986 height "1in"
24987 height_special "totalheight"
24988 thickness "0.4pt"
24989 separation "3pt"
24990 shadowsize "4pt"
24991 framecolor "black"
24992 backgroundcolor "none"
24993 status open
24994
24995 \begin_layout Plain Layout
24996 This section is somewhat out of date.
24997  Need to describe default master documents and how children are opened when the master is.
24998  [[FIXME]]
24999 \end_layout
25000
25001 \end_inset
25002
25003
25004 \end_layout
25005
25006 \begin_layout Standard
25007 It is possible to set up cross-references between the different files.
25008  First,
25009  open all the files in question:
25010  let's call them A and B in a two file example,
25011  where B is included in A.
25012  Let's say you insert a label in A,
25013  then want to reference it in B.
25014  Open the cross-reference dialog whilst in document B,
25015  and you can select the 
25016 \begin_inset Quotes eld
25017 \end_inset
25018
25019 buffer
25020 \begin_inset Quotes erd
25021 \end_inset
25022
25023  to use.
25024 \end_layout
25025
25026 \begin_layout Subsection
25027 Bibliography Lists in all Subdocuments
25028 \end_layout
25029
25030 \begin_layout Standard
25031 If you work with child documents,
25032  you might want to have only one main bibliography at the end,
25033  but still be able to have a selected bibliography for the child if you output it on its own.
25034  Here is how to achieve this.
25035 \end_layout
25036
25037 \begin_layout Standard
25038 For the main document,
25039  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
25040  If the bibliography inset is in the master file,
25041  the references will be inherited by all children,
25042  so they are available in the citation dialog within each child.
25043 \end_layout
25044
25045 \begin_layout Standard
25046 For child-specific bibliographies,
25047  insert bibliography insets within the child documents,
25048  at the place where the bibliography should appear when the child is compiled separately.
25049  However,
25050  the trick is to insert them into a branch (
25051 \family sans
25052 Insert\SpecialChar menuseparator
25053 Branch\SpecialChar menuseparator
25054 Insert New Branch...
25055 \family default
25056 ),
25057  e.
25058 \begin_inset space \thinspace{}
25059 \end_inset
25060
25061 g.
25062  called 
25063 \begin_inset Quotes eld
25064 \end_inset
25065
25066 Childonly
25067 \begin_inset Quotes erd
25068 \end_inset
25069
25070 .
25071  Within the children,
25072  activate the branch (
25073 \family sans
25074 Document\SpecialChar menuseparator
25075 Settings...\SpecialChar menuseparator
25076 Branches
25077 \family default
25078 ).
25079  Within the master,
25080  deactivate the branch (
25081 \family sans
25082 Document\SpecialChar menuseparator
25083 Settings...\SpecialChar menuseparator
25084 Branches
25085 \family default
25086 ).
25087  Now the child's bibliography will be ignored by the master,
25088  but considered by the child.
25089 \end_layout
25090
25091 \begin_layout Standard
25092 If you need multiple bibliographies (e.
25093 \begin_inset space \thinspace{}
25094 \end_inset
25095
25096 g.,
25097  one per child in the 
25098 \emph on
25099 main document
25100 \emph default
25101 ),
25102  please refer to sec.
25103 \begin_inset space ~
25104 \end_inset
25105
25106
25107 \begin_inset CommandInset ref
25108 LatexCommand ref
25109 reference "subsec:Multiple-Bibliographies"
25110 nolink "false"
25111
25112 \end_inset
25113
25114 .
25115 \end_layout
25116
25117 \begin_layout Section
25118 \SpecialChar LyX
25119  Archives
25120 \end_layout
25121
25122 \begin_layout Standard
25123 Users sometimes need to be able to 
25124 \begin_inset Quotes eld
25125 \end_inset
25126
25127 bundle
25128 \begin_inset Quotes erd
25129 \end_inset
25130
25131  a \SpecialChar LyX
25132  file together with all the images (and other files) on which it depends,
25133  either for sending to a publisher or for sharing with a co-author.
25134  \SpecialChar LyX
25135  includes a Python script (
25136 \begin_inset Flex Code
25137 status collapsed
25138
25139 \begin_layout Plain Layout
25140 lyxpak.py
25141 \end_layout
25142
25143 \end_inset
25144
25145 ) that automates this process.
25146  To use it,
25147  you must have either the 
25148 \begin_inset Flex Code
25149 status collapsed
25150
25151 \begin_layout Plain Layout
25152 zipfile
25153 \end_layout
25154
25155 \end_inset
25156
25157  or 
25158 \begin_inset Flex Code
25159 status collapsed
25160
25161 \begin_layout Plain Layout
25162 tarfile
25163 \end_layout
25164
25165 \end_inset
25166
25167  python modules installed on your system.
25168  By default,
25169  the script prefers the 
25170 \begin_inset Flex Code
25171 status collapsed
25172
25173 \begin_layout Plain Layout
25174 gzip
25175 \end_layout
25176
25177 \end_inset
25178
25179 -compressed 
25180 \begin_inset Flex Code
25181 status collapsed
25182
25183 \begin_layout Plain Layout
25184 tar
25185 \end_layout
25186
25187 \end_inset
25188
25189  format on Unix-like systems and the 
25190 \begin_inset Flex Code
25191 status collapsed
25192
25193 \begin_layout Plain Layout
25194 zip
25195 \end_layout
25196
25197 \end_inset
25198
25199  format on Windows.
25200 \end_layout
25201
25202 \begin_layout Standard
25203 \SpecialChar LyX
25204 's configuration process will set the script up to export a `\SpecialChar LyX
25205  Archive',
25206  and this format will then be available under 
25207 \begin_inset Flex Code
25208 status collapsed
25209
25210 \begin_layout Plain Layout
25211 File\SpecialChar menuseparator
25212 Export
25213 \end_layout
25214
25215 \end_inset
25216
25217 .
25218 \end_layout
25219
25220 \begin_layout Standard
25221 Independently of the platform,
25222  the generation of a particular archive format can be forced by adding either the 
25223 \begin_inset Flex Code
25224 status collapsed
25225
25226 \begin_layout Plain Layout
25227 -t
25228 \end_layout
25229
25230 \end_inset
25231
25232  (for the 
25233 \begin_inset Flex Code
25234 status collapsed
25235
25236 \begin_layout Plain Layout
25237 tar
25238 \end_layout
25239
25240 \end_inset
25241
25242  format) or 
25243 \begin_inset Flex Code
25244 status collapsed
25245
25246 \begin_layout Plain Layout
25247 -z
25248 \end_layout
25249
25250 \end_inset
25251
25252  (for the 
25253 \begin_inset Flex Code
25254 status collapsed
25255
25256 \begin_layout Plain Layout
25257 zip
25258 \end_layout
25259
25260 \end_inset
25261
25262  format) switch to the 
25263 \begin_inset Flex Code
25264 status collapsed
25265
25266 \begin_layout Plain Layout
25267 \SpecialChar LyX
25268 \SpecialChar menuseparator
25269 \SpecialChar LyX
25270  Archive
25271 \end_layout
25272
25273 \end_inset
25274
25275  converter in 
25276 \begin_inset Flex Code
25277 status collapsed
25278
25279 \begin_layout Plain Layout
25280 Tools\SpecialChar menuseparator
25281 Preferences\SpecialChar menuseparator
25282 File Handling\SpecialChar menuseparator
25283 Converters
25284 \end_layout
25285
25286 \end_inset
25287
25288 .
25289  (Make sure you add the switch after the script name,
25290  not before it.)
25291 \end_layout
25292
25293 \begin_layout Section
25294 Fancy Headers and Footers
25295 \end_layout
25296
25297 \begin_layout Standard
25298 The default page layout is rather plain;
25299  for an 
25300 \begin_inset Flex Code
25301 status collapsed
25302
25303 \begin_layout Plain Layout
25304 article
25305 \end_layout
25306
25307 \end_inset
25308
25309  document class,
25310  all you get is a centered page number at the bottom of the page.
25311  This document uses KOMA-script's book class,
25312  so it appears to be a bit fancier.
25313  But to really put on a show,
25314  you need to set the document page style to 
25315 \begin_inset Quotes eld
25316 \end_inset
25317
25318 fancy
25319 \begin_inset Quotes erd
25320 \end_inset
25321
25322 ,
25323  as mentioned in the 
25324 \emph on
25325 User Guide
25326 \emph default
25327 .
25328  This section describes the \SpecialChar LaTeX
25329  code you need to insert in your \SpecialChar LaTeX
25330  preamble in order to get the desired effects.
25331 \end_layout
25332
25333 \begin_layout Standard
25334 For more information on fancy headers,
25335  see the 
25336 \begin_inset Flex Code
25337 status collapsed
25338
25339 \begin_layout Plain Layout
25340 fancyhdr
25341 \end_layout
25342
25343 \end_inset
25344
25345  package documentation.
25346  (
25347 \begin_inset Flex URL
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
25353 \end_layout
25354
25355 \end_inset
25356
25357 )
25358 \end_layout
25359
25360 \begin_layout Standard
25361 The page header is divided into three fields,
25362  not surprisingly labeled 
25363 \begin_inset Quotes eld
25364 \end_inset
25365
25366 left
25367 \begin_inset Quotes erd
25368 \end_inset
25369
25370 ,
25371  
25372 \begin_inset Quotes eld
25373 \end_inset
25374
25375 center
25376 \begin_inset Quotes erd
25377 \end_inset
25378
25379 ,
25380  and 
25381 \begin_inset Quotes eld
25382 \end_inset
25383
25384 right
25385 \begin_inset Quotes erd
25386 \end_inset
25387
25388 .
25389  The footer is also divided into these three fields.
25390  The \SpecialChar LaTeX
25391  commands to set these fields in the simplest manner are 
25392 \begin_inset Flex Code
25393 status collapsed
25394
25395 \begin_layout Plain Layout
25396
25397 \backslash
25398 lhead
25399 \end_layout
25400
25401 \end_inset
25402
25403 ,
25404  
25405 \begin_inset Flex Code
25406 status collapsed
25407
25408 \begin_layout Plain Layout
25409
25410 \backslash
25411 chead
25412 \end_layout
25413
25414 \end_inset
25415
25416 ,
25417  
25418 \begin_inset Flex Code
25419 status collapsed
25420
25421 \begin_layout Plain Layout
25422
25423 \backslash
25424 rhead
25425 \end_layout
25426
25427 \end_inset
25428
25429 ,
25430  
25431 \begin_inset Flex Code
25432 status collapsed
25433
25434 \begin_layout Plain Layout
25435
25436 \backslash
25437 lfoot
25438 \end_layout
25439
25440 \end_inset
25441
25442 ,
25443  etc.
25444  Suppose you wish to put your name in the upper left hand corner of each page.
25445  Simply insert the following command in the preamble:
25446  
25447 \end_layout
25448
25449 \begin_layout Standard
25450
25451 \family typewriter
25452
25453 \backslash
25454 lhead{John Q.
25455  DocWriter}
25456 \end_layout
25457
25458 \begin_layout Standard
25459 You will now see your name in the upper left.
25460  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,
25461  e.
25462 \begin_inset space \thinspace{}
25463 \end_inset
25464
25465 g.:
25466 \end_layout
25467
25468 \begin_layout Standard
25469
25470 \family typewriter
25471
25472 \backslash
25473 cfoot{}
25474 \end_layout
25475
25476 \begin_layout Standard
25477 Let's get really fancy:
25478  lets put the section number with the word 
25479 \begin_inset Quotes eld
25480 \end_inset
25481
25482 Section
25483 \begin_inset Quotes erd
25484 \end_inset
25485
25486  (e.
25487 \begin_inset space \thinspace{}
25488 \end_inset
25489
25490 g.
25491 \begin_inset space \space{}
25492 \end_inset
25493
25494 Section 3) in the upper left,
25495  the page number (e.
25496 \begin_inset space \thinspace{}
25497 \end_inset
25498
25499 g.
25500 \begin_inset space \space{}
25501 \end_inset
25502
25503 Page 4) in the upper right,
25504  your name in the lower left,
25505  and the date in the lower right.
25506  The following commands should now appear in the preamble:
25507 \end_layout
25508
25509 \begin_layout Standard
25510
25511 \family typewriter
25512
25513 \backslash
25514 lhead{Section 
25515 \backslash
25516 thesection}
25517 \end_layout
25518
25519 \begin_layout Standard
25520
25521 \family typewriter
25522
25523 \backslash
25524 chead{}
25525 \end_layout
25526
25527 \begin_layout Standard
25528
25529 \family typewriter
25530
25531 \backslash
25532 rhead{Page 
25533 \backslash
25534 thepage}
25535 \end_layout
25536
25537 \begin_layout Standard
25538
25539 \family typewriter
25540
25541 \backslash
25542 lfoot{John Q.
25543  DocWriter}
25544 \end_layout
25545
25546 \begin_layout Standard
25547
25548 \family typewriter
25549
25550 \backslash
25551 cfoot{}
25552 \end_layout
25553
25554 \begin_layout Standard
25555
25556 \family typewriter
25557
25558 \backslash
25559 rfoot{
25560 \backslash
25561 today}
25562 \end_layout
25563
25564 \begin_layout Standard
25565 The commands 
25566 \begin_inset Flex Code
25567 status collapsed
25568
25569 \begin_layout Plain Layout
25570
25571 \backslash
25572 thesection
25573 \end_layout
25574
25575 \end_inset
25576
25577  and 
25578 \begin_inset Flex Code
25579 status collapsed
25580
25581 \begin_layout Plain Layout
25582
25583 \backslash
25584 thepage
25585 \end_layout
25586
25587 \end_inset
25588
25589  access \SpecialChar LaTeX
25590 's section and page counters,
25591  and so print out the current section and page number.
25592  
25593 \begin_inset Flex Code
25594 status collapsed
25595
25596 \begin_layout Plain Layout
25597
25598 \backslash
25599 today
25600 \end_layout
25601
25602 \end_inset
25603
25604  simply prints out today's date.
25605 \end_layout
25606
25607 \begin_layout Standard
25608 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
25609  If you don't want one of the rules,
25610  set its thickness to 0.
25611  The header rule has a default thickness of 0.4pt,
25612  the footer rule is 0pt.
25613  Use commands
25614 \family typewriter
25615  
25616 \family default
25617 like 
25618 \begin_inset Flex Code
25619 status collapsed
25620
25621 \begin_layout Plain Layout
25622
25623 \backslash
25624 renewcommand{
25625 \backslash
25626 headrulewidth}{0.4pt}
25627 \end_layout
25628
25629 \end_inset
25630
25631  and 
25632 \begin_inset Flex Code
25633 status collapsed
25634
25635 \begin_layout Plain Layout
25636
25637 \backslash
25638 renewcommand{
25639 \backslash
25640 footrulewidth}{0.4pt}
25641 \end_layout
25642
25643 \end_inset
25644
25645  to set the thicknesses.
25646 \end_layout
25647
25648 \begin_layout Standard
25649 You can switch the header/footer settings on and off for individual pages using commands like 
25650 \begin_inset Flex Code
25651 status collapsed
25652
25653 \begin_layout Plain Layout
25654
25655 \backslash
25656 thispagestyle{empty}
25657 \end_layout
25658
25659 \end_inset
25660
25661 ,
25662  
25663 \begin_inset Flex Code
25664 status collapsed
25665
25666 \begin_layout Plain Layout
25667
25668 \backslash
25669 thispagestyle{plain}
25670 \end_layout
25671
25672 \end_inset
25673
25674 ,
25675  and 
25676 \begin_inset Flex Code
25677 status collapsed
25678
25679 \begin_layout Plain Layout
25680
25681 \backslash
25682 thispagestyle{fancy}
25683 \end_layout
25684
25685 \end_inset
25686
25687 .
25688  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
25689  code.
25690  In fact,
25691  title pages are marked as plain by default,
25692  while following pages are marked fancy when using the global fancy setting.
25693 \end_layout
25694
25695 \begin_layout Standard
25696 As a final example,
25697  it is possible to include an image in the header or footer.
25698  Suppose you want to put a company logo in the upper lefthand corner.
25699  You might try something like
25700 \end_layout
25701
25702 \begin_layout Standard
25703
25704 \family typewriter
25705
25706 \backslash
25707 lhead{
25708 \backslash
25709 resizebox{1in}{!}{
25710 \backslash
25711 includegraphics{logo.eps}}}
25712 \end_layout
25713
25714 \begin_layout Standard
25715 \noindent
25716 (you may need to preface this with 
25717 \begin_inset Flex Code
25718 status collapsed
25719
25720 \begin_layout Plain Layout
25721
25722 \backslash
25723 usepackage{graphics}
25724 \end_layout
25725
25726 \end_inset
25727
25728  if you don't include graphics elsewhere in your document).
25729 \end_layout
25730
25731 \begin_layout Chapter
25732 \SpecialChar LyX
25733  and the World Wide Web
25734 \end_layout
25735
25736 \begin_layout Standard
25737 \SpecialChar LyX
25738  has long supported the export of documents to various web-friendly formats,
25739  such as HTML.
25740  Before version 2.0,
25741  however,
25742  HTML export was always accomplished by the use of external converters.
25743 \begin_inset Foot
25744 status collapsed
25745
25746 \begin_layout Plain Layout
25747 For details on the use of external converters with \SpecialChar LyX
25748 ,
25749  see the 
25750 \emph on
25751 Converters
25752 \emph default
25753  section of the Customization manual.
25754 \end_layout
25755
25756 \end_inset
25757
25758  These fall into two large groups:
25759  there are converters that use \SpecialChar LaTeX
25760  as an intermediate format,
25761  such as 
25762 \begin_inset Flex Code
25763 status collapsed
25764
25765 \begin_layout Plain Layout
25766 htlatex
25767 \end_layout
25768
25769 \end_inset
25770
25771 ,
25772  
25773 \begin_inset Flex Code
25774 status collapsed
25775
25776 \begin_layout Plain Layout
25777 html2latex
25778 \end_layout
25779
25780 \end_inset
25781
25782 ,
25783  and 
25784 \begin_inset Flex Code
25785 status collapsed
25786
25787 \begin_layout Plain Layout
25788 plastex
25789 \end_layout
25790
25791 \end_inset
25792
25793 ,
25794  relying upon \SpecialChar LyX
25795  to produce the \SpecialChar LaTeX
25796 ;
25797  and there is a converter that works directly on \SpecialChar LyX
25798  files,
25799  
25800 \begin_inset Flex Code
25801 status collapsed
25802
25803 \begin_layout Plain Layout
25804 e\SpecialChar LyX
25805 er
25806 \end_layout
25807
25808 \end_inset
25809
25810 .
25811  All of these have different advantages and disadvantages.
25812  
25813 \end_layout
25814
25815 \begin_layout Standard
25816 The \SpecialChar LaTeX
25817 -based converters have the advantage that,
25818  in principle,
25819  they know everything about the exported document that \SpecialChar LaTeX
25820  does.
25821  Such converters do not care,
25822  for example,
25823  if a certain block of code was produced by \SpecialChar LyX
25824  or was Evil Red Text.
25825  These converters know about 
25826 \begin_inset Flex Code
25827 status collapsed
25828
25829 \begin_layout Plain Layout
25830 aux
25831 \end_layout
25832
25833 \end_inset
25834
25835  files,
25836  counters,
25837  and references,
25838  and can often make use of the 
25839 \begin_inset Flex Code
25840 status collapsed
25841
25842 \begin_layout Plain Layout
25843 bbl
25844 \end_layout
25845
25846 \end_inset
25847
25848  files generated by Bib\SpecialChar TeX
25849 .
25850  On the other hand,
25851  \SpecialChar LaTeX
25852  is a very hard language to parse—
25853 it is sometimes said that only \SpecialChar TeX
25854  itself understands \SpecialChar TeX
25855
25856 and \SpecialChar LaTeX
25857 -based converters will often choke on what seem to be quite simple constructs;
25858  complex ones can throw them completely,
25859  and as of this writing,
25860  for example,
25861  the 
25862 \emph on
25863 Embedded Objects
25864 \emph default
25865  manual will not export with 
25866 \begin_inset Flex Code
25867 status collapsed
25868
25869 \begin_layout Plain Layout
25870 htlatex
25871 \end_layout
25872
25873 \end_inset
25874
25875 ,
25876  though the others will.
25877  The other issue concerns how math is handled.
25878  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
25879  Since these are actually generated by \SpecialChar LaTeX
25880 ,
25881  they are accurate.
25882  But they do not scale well,
25883  and just getting them to look as if they are actually meant to be in your document—
25884 so that the font sizes seem to be roughly the same—
25885 can be a challenge.
25886 \end_layout
25887
25888 \begin_layout Standard
25889 Alex Fernandez's 
25890 \begin_inset Flex Code
25891 status collapsed
25892
25893 \begin_layout Plain Layout
25894 e\SpecialChar LyX
25895 er
25896 \end_layout
25897
25898 \end_inset
25899
25900  (
25901 \begin_inset CommandInset href
25902 LatexCommand href
25903 name "http://pinchito.es/elyxer/"
25904 target "http://pinchito.es/elyxer/"
25905 literal "false"
25906
25907 \end_inset
25908
25909 ) solves some of these problems.
25910  In particular,
25911  the formulae it produces scale perfectly,
25912  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
25913  But even moderately complex formula are rendered less well than with 
25914 \begin_inset Flex Code
25915 status collapsed
25916
25917 \begin_layout Plain Layout
25918 htlatex
25919 \end_layout
25920
25921 \end_inset
25922
25923 ;
25924  this reflects the limitations of HTML.
25925 \begin_inset Foot
25926 status collapsed
25927
25928 \begin_layout Plain Layout
25929 That said,
25930  
25931 \begin_inset Flex Code
25932 status collapsed
25933
25934 \begin_layout Plain Layout
25935 e\SpecialChar LyX
25936 er
25937 \end_layout
25938
25939 \end_inset
25940
25941  can also use jsMath and MathJax for equations,
25942  but this setting is only available globally and requires one to have access to a server that runs the backend.
25943 \end_layout
25944
25945 \end_inset
25946
25947  More importantly (as of version 1.1.1,
25948  at least),
25949  
25950 \begin_inset Flex Code
25951 status collapsed
25952
25953 \begin_layout Plain Layout
25954 e\SpecialChar LyX
25955 er
25956 \end_layout
25957
25958 \end_inset
25959
25960  has limited support for math macros and no support for user-defined paragraph or character styles.
25961  These limitations make 
25962 \begin_inset Flex Code
25963 status collapsed
25964
25965 \begin_layout Plain Layout
25966 e\SpecialChar LyX
25967 er
25968 \end_layout
25969
25970 \end_inset
25971
25972  unsuitable for many of the documents \SpecialChar LyX
25973  users produce.
25974  In principle,
25975  of course,
25976  these problems could be solved,
25977  but the \SpecialChar LyX
25978  developers have decided to follow a different path and have made \SpecialChar LyX
25979  itself capable of writing XHTML,
25980  just as it is capable of writing \SpecialChar LaTeX
25981 ,
25982  DocBook,
25983  and plaintext.
25984 \end_layout
25985
25986 \begin_layout Standard
25987 As of this writing,
25988  XHTML output remains under development and should probably be regarded as 
25989 \begin_inset Quotes eld
25990 \end_inset
25991
25992 experimental
25993 \begin_inset Quotes erd
25994 \end_inset
25995
25996 .
25997 \begin_inset Foot
25998 status collapsed
25999
26000 \begin_layout Plain Layout
26001 The file 
26002 \begin_inset Flex Code
26003 status collapsed
26004
26005 \begin_layout Plain Layout
26006 development/HTML/HTML.notes
26007 \end_layout
26008
26009 \end_inset
26010
26011 ,
26012  which can be found in the \SpecialChar LyX
26013  source tree or 
26014 \begin_inset CommandInset href
26015 LatexCommand href
26016 name "accessed online"
26017 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
26018 literal "false"
26019
26020 \end_inset
26021
26022 ,
26023  usually contains up-to-date information about the state of XHTML output.
26024  See also the list of XHTML bugs on 
26025 \begin_inset CommandInset href
26026 LatexCommand href
26027 name "the bug tracker"
26028 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"
26029 literal "false"
26030
26031 \end_inset
26032
26033 .
26034 \end_layout
26035
26036 \end_inset
26037
26038  Still,
26039  the developers have chosen this approach because it has several potential advantages over the other two.
26040 \end_layout
26041
26042 \begin_layout Standard
26043 These advantages are primarily due to the fact that the XHTML output routines,
26044  since they are part of \SpecialChar LyX
26045 ,
26046  know everything \SpecialChar LyX
26047  knows about the document being exported.
26048 \begin_inset Foot
26049 status collapsed
26050
26051 \begin_layout Plain Layout
26052 Another advantage is that,
26053  since these routines are internal to \SpecialChar LyX
26054 ,
26055  they are immune to changes in \SpecialChar LyX
26056 's file format,
26057  or to changes in the semantics of existing insets.
26058 \end_layout
26059
26060 \end_inset
26061
26062  So they know about the table of contents (as displayed in the outline),
26063  about the counters associated with different paragraph styles,
26064  and about user-defined styles.
26065  The XHTML output routines know what \SpecialChar LyX
26066  knows about internationalization,
26067  too,
26068  so they will output 
26069 \begin_inset Quotes eld
26070 \end_inset
26071
26072 Chapter 1
26073 \begin_inset Quotes erd
26074 \end_inset
26075
26076  or 
26077 \begin_inset Quotes eld
26078 \end_inset
26079
26080
26081 \lang ngerman
26082 Kapitel
26083 \lang english
26084  1
26085 \begin_inset Quotes erd
26086 \end_inset
26087
26088 ,
26089  depending upon the language in effect at the time.
26090  
26091 \end_layout
26092
26093 \begin_layout Standard
26094 Quite generally,
26095  the output routines know what \SpecialChar LyX
26096  knows about document layout,
26097  that is,
26098  about how the document is to be rendered on screen.
26099  We use this information when we output the document as XHTML.
26100  In particular,
26101  \SpecialChar LyX
26102  
26103 \emph on
26104 automatically
26105 \emph default
26106  generates CSS style information corresponding to the layout information it uses to render the document on screen:
26107  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
26108 ,
26109  then (by default) they will be sans-serif and bold when viewed in a web browser,
26110  too.
26111  And this is true not just for pre-defined styles,
26112  like Section,
26113  but for any style,
26114  including user-defined styles.
26115  Indeed,
26116  the XHTML output routines make no distinction between user-defined paragraph and 
26117 \change_deleted 244031559 1603876931
26118 character
26119 \change_inserted 244031559 1603876940
26120 text
26121 \change_unchanged
26122  styles and \SpecialChar LyX
26123 's own pre-defined styles:
26124  in each case,
26125  everything \SpecialChar LyX
26126  knows about the styles is contained in the layout files.
26127  And much the same is true as regards pre-defined textual insets,
26128  such as footnotes,
26129  and various custom insets.
26130  
26131 \end_layout
26132
26133 \begin_layout Standard
26134 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
26135  output can be customized and extended:
26136  through layout files and modules.
26137  See chapter five of the 
26138 \emph on
26139 Customization 
26140 \emph default
26141 manual for the details.
26142 \end_layout
26143
26144 \begin_layout Standard
26145 The remainder of this chapter contains more detailed information on XHTML output,
26146  its limitations,
26147  and ways to work around those limitations.
26148 \end_layout
26149
26150 \begin_layout Section
26151 Math Output in XHTML
26152 \end_layout
26153
26154 \begin_layout Standard
26155 \SpecialChar LyX
26156  offers four choices for how math is rendered.
26157  These have various advantages and disadvantages:
26158 \end_layout
26159
26160 \begin_layout Itemize
26161 MathML
26162 \begin_inset Newline newline
26163 \end_inset
26164
26165 MathML is a dialect of XML designed specifically for mathematics on the web,
26166  and it typically renders very well in browsers that support it.
26167  The disadvantage is that not all browsers support MathML,
26168  and support is not complete even in the Gecko-based browsers,
26169  such as Firefox.
26170 \begin_inset Newline newline
26171 \end_inset
26172
26173 If \SpecialChar LyX
26174  is unable to render a formula as MathML—
26175 for example,
26176  if the formula uses the 
26177 \begin_inset Flex Code
26178 status collapsed
26179
26180 \begin_layout Plain Layout
26181 xymatrix
26182 \end_layout
26183
26184 \end_inset
26185
26186  package or ERT—
26187 then it will instead output the formula as an image.
26188  
26189 \end_layout
26190
26191 \begin_layout Itemize
26192 HTML
26193 \begin_inset Newline newline
26194 \end_inset
26195
26196 As mentioned above,
26197  
26198 \begin_inset Flex Code
26199 status collapsed
26200
26201 \begin_layout Plain Layout
26202 elyxer
26203 \end_layout
26204
26205 \end_inset
26206
26207  outputs math as HTML,
26208  styled by CSS.
26209 \begin_inset Foot
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 \SpecialChar LyX
26214  has borrowed some of the CSS for its HTML output from 
26215 \begin_inset Flex Code
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 elyxer
26220 \end_layout
26221
26222 \end_inset
26223
26224 .
26225 \end_layout
26226
26227 \end_inset
26228
26229  For simple formulae,
26230  this can work quite well,
26231  though with more complicated formulae it tends to break down.
26232  Still,
26233  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
26234  fairly simple math.
26235 \begin_inset Newline newline
26236 \end_inset
26237
26238 If Lyx is unable to render a formula as HTML—
26239 for example,
26240  if the formula uses the 
26241 \begin_inset Flex Code
26242 status collapsed
26243
26244 \begin_layout Plain Layout
26245 xymatrix
26246 \end_layout
26247
26248 \end_inset
26249
26250  package or ERT—
26251 then it will instead output the formula as an image.
26252  
26253 \end_layout
26254
26255 \begin_layout Itemize
26256 Images
26257 \begin_inset Newline newline
26258 \end_inset
26259
26260 Like 
26261 \begin_inset Flex Code
26262 status collapsed
26263
26264 \begin_layout Plain Layout
26265 htlatex
26266 \end_layout
26267
26268 \end_inset
26269
26270 ,
26271  \SpecialChar LyX
26272  will output formulae as images,
26273  the very same images,
26274  in fact,
26275  that are used for instant preview.
26276 \begin_inset Foot
26277 status collapsed
26278
26279 \begin_layout Plain Layout
26280 Instant preview does 
26281 \emph on
26282 not 
26283 \emph default
26284 have to be on for images to be output,
26285  however.
26286 \end_layout
26287
26288 \end_inset
26289
26290  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
26291 ,
26292  so they are very accurate.
26293  The disadvantage,
26294  as mentioned earlier,
26295  is that these are bitmapped images,
26296  so they do not scale terribly well,
26297  and one cannot copy them,
26298  etc.
26299 \begin_inset Newline newline
26300 \end_inset
26301
26302 The size of the images can be controlled by setting the 
26303 \begin_inset Quotes eld
26304 \end_inset
26305
26306 Math Images Scaling
26307 \begin_inset Quotes erd
26308 \end_inset
26309
26310  parameter under 
26311 \begin_inset Flex Noun
26312 status collapsed
26313
26314 \begin_layout Plain Layout
26315 Document\SpecialChar menuseparator
26316 Settings\SpecialChar menuseparator
26317 Formats
26318 \end_layout
26319
26320 \end_inset
26321
26322 .
26323 \begin_inset Foot
26324 status collapsed
26325
26326 \begin_layout Plain Layout
26327 For those who want to know,
26328  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
26329 \end_layout
26330
26331 \end_inset
26332
26333
26334 \begin_inset Newline newline
26335 \end_inset
26336
26337 If \SpecialChar LyX
26338  for some reason fails to create an image for a formula (e.g.,
26339  if a required \SpecialChar LaTeX
26340  package is not installed),
26341  then it will fall back to outputing the raw \SpecialChar LaTeX
26342 .
26343 \end_layout
26344
26345 \begin_layout Itemize
26346 \SpecialChar LaTeX
26347
26348 \begin_inset Newline newline
26349 \end_inset
26350
26351 Finally,
26352  \SpecialChar LyX
26353  will happily output math as \SpecialChar LaTeX
26354 .
26355  As well as being the output of last resort,
26356  this method can be used with such tools as 
26357 \begin_inset CommandInset href
26358 LatexCommand href
26359 name "jsMath"
26360 target "http://www.math.union.edu/~dpvc/jsMath/"
26361 literal "false"
26362
26363 \end_inset
26364
26365 ,
26366  which uses JavaScript to render \SpecialChar LaTeX
26367  embedded in HTML documents.
26368  \SpecialChar LyX
26369  wraps the \SpecialChar LaTeX
26370  in either a 
26371 \begin_inset Flex Code
26372 status collapsed
26373
26374 \begin_layout Plain Layout
26375 span
26376 \end_layout
26377
26378 \end_inset
26379
26380  (for inline formulas) or 
26381 \begin_inset Flex Code
26382 status collapsed
26383
26384 \begin_layout Plain Layout
26385 div
26386 \end_layout
26387
26388 \end_inset
26389
26390  (for displayed formulas) with 
26391 \begin_inset Flex Code
26392 status collapsed
26393
26394 \begin_layout Plain Layout
26395 class='math'
26396 \end_layout
26397
26398 \end_inset
26399
26400 ,
26401  as is required for jsMath.
26402 \end_layout
26403
26404 \begin_layout Standard
26405 One of these output methods must be selected under 
26406 \begin_inset Flex Noun
26407 status collapsed
26408
26409 \begin_layout Plain Layout
26410 Document\SpecialChar menuseparator
26411 Settings\SpecialChar menuseparator
26412 Formats
26413 \end_layout
26414
26415 \end_inset
26416
26417 .
26418  By default,
26419  \SpecialChar LyX
26420  outputs MathML.
26421  This is a document-wide setting,
26422  therefore.
26423 \end_layout
26424
26425 \begin_layout Standard
26426 Eventually,
26427  \SpecialChar LyX
26428  will offer the user the option to select an alternate output method for a particular inset,
26429  say,
26430  one that isn't being rendered very well by MathML.
26431 \begin_inset Foot
26432 status collapsed
26433
26434 \begin_layout Plain Layout
26435 That said,
26436  since \SpecialChar LyX
26437  falls back to images if the inset contains ERT,
26438  then one can force output as an image by putting some harmless ERT into the math,
26439  for example:
26440  
26441 \begin_inset Formula $a=b\relax$
26442 \end_inset
26443
26444 .
26445 \end_layout
26446
26447 \end_inset
26448
26449
26450 \end_layout
26451
26452 \begin_layout Section
26453 Bibliography and Citations
26454 \end_layout
26455
26456 \begin_layout Standard
26457 XHTML output fully supports bibliographies and citations.
26458  
26459 \end_layout
26460
26461 \begin_layout Standard
26462 Citation labels are generated by the same machinery that generates \SpecialChar LyX
26463 's on-screen labels,
26464  so the labels will look in the output much as they do in \SpecialChar LyX
26465 ,
26466  though better.
26467  If you are using numerical citations,
26468  then \SpecialChar LyX
26469  will output numerical labels,
26470  such as [1] or [17],
26471  rather than simply showing the citation key in square brackets,
26472  as it does on-screen.
26473  If you are using author-year citations,
26474  then \SpecialChar LyX
26475  will add lowercase letters to the years,
26476  just as Bib\SpecialChar TeX
26477  does,
26478  if it finds more than one citation for a given author-year combination.
26479  The labels will be printed with the bibliography entries.
26480  Note that there is,
26481  at present,
26482  no way to customize the appearance of the labels,
26483  for example,
26484  to choose between square brackets and parentheses.
26485 \end_layout
26486
26487 \begin_layout Standard
26488 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
26489  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.
26490  The formatting can be customized in your layout file or,
26491  preferably,
26492  in a module.
26493  See the 
26494 \emph on
26495 Customization
26496 \emph default
26497  manual for the details.
26498 \end_layout
26499
26500 \begin_layout Standard
26501 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
26502  So you can see things like this:
26503 \end_layout
26504
26505 \begin_layout Quote
26506 Jason Stanley,
26507  
26508 \begin_inset Quotes eld
26509 \end_inset
26510
26511 Context and Logical Form
26512 \begin_inset Quotes erd
26513 \end_inset
26514
26515 ,
26516  in 
26517 \emph on
26518 Language in Context:
26519  Selected Essays
26520 \emph default
26521  (Oxford:
26522  Oxford University Press,
26523  2007),
26524  pp.
26525  30–68.
26526 \end_layout
26527
26528 \begin_layout Quote
26529 Jason Stanley,
26530  
26531 \begin_inset Quotes eld
26532 \end_inset
26533
26534 Semantics in Context
26535 \begin_inset Quotes erd
26536 \end_inset
26537
26538 ,
26539  in 
26540 \emph on
26541 Language in Context:
26542  Selected Essays
26543 \emph default
26544  (Oxford:
26545  Oxford University Press,
26546  2007),
26547  pp.
26548  201–30.
26549 \end_layout
26550
26551 \begin_layout Standard
26552 This should be fixed before long.
26553 \end_layout
26554
26555 \begin_layout Standard
26556 There is no support at present for sectioned bibliographies.
26557  If you have multiple bibliographies,
26558  then \SpecialChar LyX
26559  will print the same bibliography over and over.
26560 \end_layout
26561
26562 \begin_layout Section
26563 Indexes
26564 \end_layout
26565
26566 \begin_layout Standard
26567 \SpecialChar LyX
26568  will happily export indexes as XHTML,
26569  but with certain limitations at the moment.
26570 \end_layout
26571
26572 \begin_layout Standard
26573 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 
26574 \emph on
26575 User's Guide
26576 \emph default
26577 .
26578 \begin_inset Foot
26579 status collapsed
26580
26581 \begin_layout Plain Layout
26582 The main issue here is that \SpecialChar LyX
26583  itself does not really handle these.
26584  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
26585 .
26586 \end_layout
26587
26588 \end_inset
26589
26590  We'll describe how they are handled using the subsection headings from that section.
26591 \end_layout
26592
26593 \begin_layout Itemize
26594 Grouping Index Entries (aka,
26595  sub-entries):
26596  \SpecialChar LyX
26597  makes an effort to support these,
26598  but the entries must be separated by 
26599 \begin_inset Quotes eld
26600 \end_inset
26601
26602  !
26603  
26604 \begin_inset Quotes erd
26605 \end_inset
26606
26607 ,
26608  that is,
26609  there must be spaces around the exclamation point.
26610  This is because it is otherwise too difficult to check for escaped exclamation points,
26611  ones in math,
26612  and so forth.
26613 \end_layout
26614
26615 \begin_layout Itemize
26616 Page Ranges:
26617  There is no support at all for page ranges,
26618  since these make no sense with XHMTL.
26619  Instead,
26620  you will just get two index entries,
26621  one at either end.
26622 \end_layout
26623
26624 \begin_layout Itemize
26625 Cross-referencing:
26626  There is no support for cross-referencing.
26627  If \SpecialChar LyX
26628  finds an entry containing the 
26629 \begin_inset Quotes eld
26630 \end_inset
26631
26632 |see\SpecialChar ldots
26633
26634 \begin_inset Quotes erd
26635 \end_inset
26636
26637  construct,
26638  it is just dropped,
26639  and the rest is treated as an ordinary index entry.
26640 \end_layout
26641
26642 \begin_layout Itemize
26643 Index Entry Order:
26644  \SpecialChar LyX
26645  does support attempts to fix the sorting order.
26646  It will take what is before the first `@' it finds and use that for sorting,
26647  taking what follows the first `@' to be the actual entry.
26648  At present,
26649  \SpecialChar LyX
26650  does not check for escaped `@',
26651  so do not try to index email addresses.
26652 \end_layout
26653
26654 \begin_layout Itemize
26655 Index Entry Layout:
26656  You can format entries by using the text style dialog,
26657  or by using any other method available within \SpecialChar LyX
26658  itself.
26659  There is no support for constructs like:
26660  
26661 \begin_inset Quotes eld
26662 \end_inset
26663
26664 entry|textbf
26665 \begin_inset Quotes erd
26666 \end_inset
26667
26668 .
26669  Indeed,
26670  if \SpecialChar LyX
26671  finds a pipe symbol,
26672  `|',
26673  in an entry,
26674  it will delete it and everything that follows it.
26675 \end_layout
26676
26677 \begin_layout Itemize
26678 Multiple Indexes:
26679  There is no support for multiple indexes.
26680  Rather,
26681  all index entries will be printed as one large index.
26682  To avoid our printing several versions of the index,
26683  we print only the main index,
26684  so make sure you have one.
26685 \end_layout
26686
26687 \begin_layout Section
26688 Nomenclature and Glossary
26689 \end_layout
26690
26691 \begin_layout Standard
26692 There is at present no support for glossaries.
26693  Adding it would be fairly trivial,
26694  and welcome.
26695 \end_layout
26696
26697 \begin_layout Chapter
26698
26699 \change_inserted 1075283030 1616534180
26700 DocBook Output
26701 \end_layout
26702
26703 \begin_layout Standard
26704
26705 \change_inserted 1075283030 1616534386
26706 Apart from HTML,
26707  \SpecialChar LyX
26708  can generate documents in the DocBook XML vocabulary.
26709  With versions 2.3 and before,
26710  only select templates could be used to generate DocBook documents (only version 4).
26711  Starting with \SpecialChar LyX
26712  2.4,
26713  most \SpecialChar LyX
26714  layouts can generate valid DocBook documents (only version 5).
26715  This feature is built into \SpecialChar LyX
26716  and does not require the use of external tools.
26717 \end_layout
26718
26719 \begin_layout Standard
26720
26721 \change_inserted 1075283030 1616534437
26722 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
26723  output can be customized and extended:
26724  through layout files and modules.
26725  See chapter five of the 
26726 \emph on
26727 Customization 
26728 \emph default
26729 manual for the details.
26730 \end_layout
26731
26732 \begin_layout Standard
26733
26734 \change_inserted 1075283030 1616534475
26735 Most \SpecialChar LyX
26736  features are supported with DocBook,
26737  like math output.
26738 \end_layout
26739
26740 \begin_layout Itemize
26741
26742 \change_inserted 1075283030 1616534741
26743 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
26744 ,
26745  i.e.
26746  ERTs).
26747  All formulae are also available in raw \SpecialChar TeX
26748  in the DocBook output for further processing.
26749 \end_layout
26750
26751 \begin_layout Itemize
26752
26753 \change_inserted 1075283030 1616534852
26754 Bibliographies and citations are implemented,
26755  including with an external BibTeX file.
26756  Bibliography entries are not prerendered when the detailed information are available,
26757  but rather output with the standard DocBook constructs.
26758  The external DocBook processor is expected to handle the rendering of entries.
26759 \end_layout
26760
26761 \begin_layout Itemize
26762
26763 \change_inserted 1075283030 1616534863
26764 Indexes are supported,
26765  including multiple indices.
26766  Grouping (with 
26767 \family typewriter
26768 !
26769 \family default
26770 ),
26771  page ranges,
26772  and cross-references (
26773 \family typewriter
26774 |see
26775 \family default
26776 ) are supported,
26777  with the exception of the same symbols escaped.
26778  Entry order (
26779 \family typewriter
26780 @
26781 \family default
26782 ) and layout (
26783 \family typewriter
26784 |mathbf
26785 \family default
26786 ) are not supported.
26787  There is no support for escaping of index entries.
26788 \end_layout
26789
26790 \begin_layout Itemize
26791
26792 \change_inserted 1075283030 1616534884
26793 Glossaries are implemented.
26794 \end_layout
26795
26796 \begin_layout Standard
26797
26798 \change_inserted 1075283030 1616534894
26799 Two major parameters can be set at the document level.
26800 \end_layout
26801
26802 \begin_layout Itemize
26803
26804 \change_inserted 1075283030 1616534948
26805 Format for tables:
26806  \SpecialChar LyX
26807  can generate tables either as HTML (default value) or CALS,
26808  depending on the user's requirements.
26809  Most DocBook processors accept both formats.
26810 \end_layout
26811
26812 \begin_layout Itemize
26813
26814 \change_inserted 1075283030 1616535006
26815 MathML prefix:
26816  in DocBook,
26817  MathML is included within its own name space,
26818  unlike HTML.
26819  The implication is that there must be an indication of the tags belonging to the MathML standard.
26820  Three choices are offered:
26821  
26822 \end_layout
26823
26824 \begin_deeper
26825 \begin_layout Itemize
26826
26827 \change_inserted 1075283030 1616535044
26828 Inline:
26829  the MathML name space is defined for each formula (using the 
26830 \family typewriter
26831 xmlns
26832 \family default
26833  attribute on each formula)
26834 \end_layout
26835
26836 \begin_layout Itemize
26837
26838 \change_inserted 1075283030 1616535090
26839 With the 
26840 \family typewriter
26841 m
26842 \family default
26843  prefix (default):
26844  the MathML name space is defined at the document level (using the 
26845 \family typewriter
26846 xmlns:m
26847 \family default
26848  attribute on the root element).
26849  Each MathML is prefixed with 
26850 \family typewriter
26851 m
26852 \family default
26853 :
26854  for instance,
26855  
26856 \family typewriter
26857 m:math
26858 \end_layout
26859
26860 \begin_layout Itemize
26861
26862 \change_inserted 1075283030 1616620405
26863 With the 
26864 \family typewriter
26865 mml
26866 \family default
26867  prefix:
26868  similar to the 
26869 \family typewriter
26870 m
26871 \family default
26872  option,
26873  but with 
26874 \family typewriter
26875 mml
26876 \end_layout
26877
26878 \begin_layout Standard
26879
26880 \change_inserted 1075283030 1616620470
26881 This option is especially useful if you want \SpecialChar LyX
26882  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
26883 \change_unchanged
26884
26885 \end_layout
26886
26887 \end_deeper
26888 \begin_layout Chapter
26889 The \SpecialChar LyX
26890  Server
26891 \end_layout
26892
26893 \begin_layout Section
26894 Introduction
26895 \end_layout
26896
26897 \begin_layout Standard
26898 The `\SpecialChar LyX
26899  server' allows other programs to talk to \SpecialChar LyX
26900 ,
26901  invoke \SpecialChar LyX
26902  commands,
26903  and retrieve information about the \SpecialChar LyX
26904  internal state.
26905  This is only intended for advanced users,
26906  but they should find it useful.
26907  It is by writing to the \SpecialChar LyX
26908  server,
26909  for example,
26910  that bibliography managers,
26911  such as JabRef,
26912  are able to 
26913 \begin_inset Quotes eld
26914 \end_inset
26915
26916 push
26917 \begin_inset Quotes erd
26918 \end_inset
26919
26920  citations to \SpecialChar LyX
26921 .
26922 \end_layout
26923
26924 \begin_layout Section
26925 Starting the \SpecialChar LyX
26926  Server
26927 \begin_inset CommandInset label
26928 LatexCommand label
26929 name "sec:Starting-the-Server"
26930
26931 \end_inset
26932
26933
26934 \end_layout
26935
26936 \begin_layout Standard
26937 The \SpecialChar LyX
26938  server works through the use of a pair of named pipes.
26939  These are usually located in 
26940 \begin_inset Flex Code
26941 status collapsed
26942
26943 \begin_layout Plain Layout
26944 UserDir
26945 \end_layout
26946
26947 \end_inset
26948
26949 ,
26950  (except on Windows,
26951  where 
26952 \emph on
26953 local
26954 \emph default
26955  named pipes are special objects located in 
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960
26961 \backslash
26962
26963 \backslash
26964 .
26965 \backslash
26966 pipe
26967 \end_layout
26968
26969 \end_inset
26970
26971 ) and have the names 
26972 \begin_inset Quotes eld
26973 \end_inset
26974
26975
26976 \begin_inset Flex Code
26977 status collapsed
26978
26979 \begin_layout Plain Layout
26980 lyxpipe.in
26981 \end_layout
26982
26983 \end_inset
26984
26985
26986 \begin_inset Quotes erd
26987 \end_inset
26988
26989  and 
26990 \begin_inset Quotes eld
26991 \end_inset
26992
26993
26994 \begin_inset Flex Code
26995 status collapsed
26996
26997 \begin_layout Plain Layout
26998 lyxpipe.out
26999 \end_layout
27000
27001 \end_inset
27002
27003
27004 \begin_inset Quotes erd
27005 \end_inset
27006
27007 .
27008  External programs write into 
27009 \begin_inset Flex Code
27010 status collapsed
27011
27012 \begin_layout Plain Layout
27013 lyxpipe.in
27014 \end_layout
27015
27016 \end_inset
27017
27018  and read back data from 
27019 \begin_inset Flex Code
27020 status collapsed
27021
27022 \begin_layout Plain Layout
27023 lyxpipe.out
27024 \end_layout
27025
27026 \end_inset
27027
27028 .
27029  The stem of the pipe names can be defined in the 
27030 \begin_inset Flex Noun
27031 status collapsed
27032
27033 \begin_layout Plain Layout
27034 Tools\SpecialChar menuseparator
27035 Preferences
27036 \end_layout
27037
27038 \end_inset
27039
27040  dialog,
27041  for example 
27042 \begin_inset Flex Code
27043 status collapsed
27044
27045 \begin_layout Plain Layout
27046 "/home/myhome/lyxpipe"
27047 \end_layout
27048
27049 \end_inset
27050
27051 ,
27052  or 
27053 \begin_inset Flex Code
27054 status collapsed
27055
27056 \begin_layout Plain Layout
27057 "
27058 \backslash
27059
27060 \backslash
27061 .
27062 \backslash
27063 pipe
27064 \backslash
27065 lyxpipe"
27066 \end_layout
27067
27068 \end_inset
27069
27070  on Windows (where any working path instead of lyxpipe can be used,
27071  for example 
27072 \begin_inset Flex Code
27073 status collapsed
27074
27075 \begin_layout Plain Layout
27076 "
27077 \backslash
27078
27079 \backslash
27080 .
27081 \backslash
27082 pipe
27083 \backslash
27084 my
27085 \backslash
27086 lyx
27087 \backslash
27088 pipe"
27089 \end_layout
27090
27091 \end_inset
27092
27093  would also work).
27094  You 
27095 \emph on
27096 must
27097 \emph default
27098  configure this manually in order for the server to start.
27099 \end_layout
27100
27101 \begin_layout Standard
27102 \SpecialChar LyX
27103  will add the '
27104 \begin_inset Flex Code
27105 status collapsed
27106
27107 \begin_layout Plain Layout
27108 .in
27109 \end_layout
27110
27111 \end_inset
27112
27113 ' and '
27114 \begin_inset Flex Code
27115 status collapsed
27116
27117 \begin_layout Plain Layout
27118 .out
27119 \end_layout
27120
27121 \end_inset
27122
27123 ' to create the pipes.
27124  If one of the pipes already exists,
27125  \SpecialChar LyX
27126  will assume that another \SpecialChar LyX
27127  process is already running and will not start the server.
27128  On POSIX (Unix like) systems,
27129  if for some other reason,
27130  an unused 
27131 \begin_inset Quotes eld
27132 \end_inset
27133
27134 stale
27135 \begin_inset Quotes erd
27136 \end_inset
27137
27138  pipe is left in existence when \SpecialChar LyX
27139  closes,
27140  then \SpecialChar LyX
27141  will try to delete it.
27142  If this fails for some reason,
27143  you will need to delete the pipes manually and then restart \SpecialChar LyX
27144 .
27145  On Windows,
27146  pipes are deleted by the OS on program termination or crash,
27147  so 
27148 \begin_inset Quotes eld
27149 \end_inset
27150
27151 stale
27152 \begin_inset Quotes erd
27153 \end_inset
27154
27155  pipes should not be possible.
27156 \end_layout
27157
27158 \begin_layout Standard
27159 To have several \SpecialChar LyX
27160  processes with servers at the same time,
27161  you have to use different configurations,
27162  perhaps by using separate user directories,
27163  each with its own 
27164 \begin_inset Flex Code
27165 status collapsed
27166
27167 \begin_layout Plain Layout
27168 preferences
27169 \end_layout
27170
27171 \end_inset
27172
27173  file,
27174  for each process.
27175 \end_layout
27176
27177 \begin_layout Standard
27178 If you are developing a client program,
27179  you might find it useful to enable debugging information from the \SpecialChar LyX
27180  server.
27181  Do this by starting \SpecialChar LyX
27182  as 
27183 \begin_inset Flex Code
27184 status collapsed
27185
27186 \begin_layout Plain Layout
27187 lyx -dbg lyxserver
27188 \end_layout
27189
27190 \end_inset
27191
27192 .
27193 \end_layout
27194
27195 \begin_layout Standard
27196 You can find a complete example client written in C++ in the source distribution as 
27197 \begin_inset Flex Code
27198 status collapsed
27199
27200 \begin_layout Plain Layout
27201 development/lyxserver/server_monitor.cpp
27202 \end_layout
27203
27204 \end_inset
27205
27206 .
27207 \end_layout
27208
27209 \begin_layout Standard
27210 Another useful tool is the command-line based client found in 
27211 \begin_inset Flex Code
27212 status collapsed
27213
27214 \begin_layout Plain Layout
27215 src/client/lyxclient
27216 \end_layout
27217
27218 \end_inset
27219
27220 .
27221 \end_layout
27222
27223 \begin_layout Section
27224 Normal communication
27225 \end_layout
27226
27227 \begin_layout Standard
27228 To issue a \SpecialChar LyX
27229  call,
27230  the client writes a line of ASCII text into the input pipe.
27231  This line has the following format:
27232 \end_layout
27233
27234 \begin_layout Quote
27235 LYXCMD:
27236 \emph on
27237 clientname
27238 \emph default
27239 :
27240 \emph on
27241 function
27242 \emph default
27243 :
27244 \emph on
27245 argument
27246 \end_layout
27247
27248 \begin_layout Description
27249 clientname is a name that the client can choose arbitrarily.
27250  Its only use is that \SpecialChar LyX
27251  will echo it if it sends an answer—
27252 so a client can dispatch results from different requesters.
27253 \end_layout
27254
27255 \begin_layout Description
27256 function is the function you want \SpecialChar LyX
27257  to perform.
27258  It is the same as the commands you'd use in the minibuffer.
27259 \end_layout
27260
27261 \begin_layout Description
27262 argument is an optional argument which is meaningful only to some functions (for instance,
27263  the 
27264 \begin_inset Quotes eld
27265 \end_inset
27266
27267 self-insert
27268 \begin_inset Quotes erd
27269 \end_inset
27270
27271  LFUN will insert the argument as text at the cursor position).
27272 \end_layout
27273
27274 \begin_layout Standard
27275 The answer from \SpecialChar LyX
27276  will arrive in the output pipe and be of the form
27277 \end_layout
27278
27279 \begin_layout Quote
27280 INFO:
27281 \emph on
27282 clientname
27283 \emph default
27284 :
27285 \emph on
27286 function
27287 \emph default
27288 :
27289 \emph on
27290 data
27291 \end_layout
27292
27293 \begin_layout Standard
27294 where 
27295 \emph on
27296 clientname
27297 \emph default
27298  and 
27299 \emph on
27300 function
27301 \emph default
27302  are just echoed from the command request,
27303  while 
27304 \emph on
27305 data
27306 \emph default
27307  is more or less useful information filled according to how the command execution worked out.
27308  Some commands,
27309  such as 
27310 \begin_inset Quotes eld
27311 \end_inset
27312
27313 font-state
27314 \begin_inset Quotes erd
27315 \end_inset
27316
27317 ,
27318  will return information about the internal state of \SpecialChar LyX
27319 ,
27320  while other will return an empty data-response.
27321  This means that the command execution went fine.
27322 \end_layout
27323
27324 \begin_layout Standard
27325 In case of errors,
27326  the response from \SpecialChar LyX
27327  will have this form
27328 \end_layout
27329
27330 \begin_layout Quote
27331 ERROR:
27332 \emph on
27333 clientname
27334 \emph default
27335 :
27336 \emph on
27337 function
27338 \emph default
27339 :
27340 \emph on
27341 error message
27342 \end_layout
27343
27344 \begin_layout Standard
27345 where the 
27346 \emph on
27347 error message
27348 \emph default
27349  should contain an explanation of why the command failed.
27350 \end_layout
27351
27352 \begin_layout Standard
27353 Examples:
27354 \end_layout
27355
27356 \begin_layout LyX-Code
27357 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
27358 \begin_inset Newline newline
27359 \end_inset
27360
27361 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
27362 \begin_inset Newline newline
27363 \end_inset
27364
27365 read a <~/.lyxpipe.out
27366 \begin_inset Newline newline
27367 \end_inset
27368
27369 echo $a
27370 \end_layout
27371
27372 \begin_layout Subsection
27373 AppleScript (Mac OS X)
27374 \end_layout
27375
27376 \begin_layout Standard
27377 Since \SpecialChar LyX
27378  2.1,
27379  \SpecialChar LyX
27380  supports basic interactions with AppleScript for normal communication through the command run.
27381  This command takes a direct argument (the 
27382 \series bold
27383 function
27384 \series default
27385  to perform) and an optional argument.
27386  It either returns the output of the function or triggers an error with the error message and code.
27387 \end_layout
27388
27389 \begin_layout Standard
27390 Example:
27391 \end_layout
27392
27393 \begin_layout LyX-Code
27394 tell application "\SpecialChar LyX
27395 "
27396 \end_layout
27397
27398 \begin_layout LyX-Code
27399   try
27400 \end_layout
27401
27402 \begin_layout LyX-Code
27403     -- Stores the current file name into f
27404 \end_layout
27405
27406 \begin_layout LyX-Code
27407     set f to (run "server-get-filename" with argument "")
27408 \end_layout
27409
27410 \begin_layout LyX-Code
27411     on error the error_message number the error_number
27412 \end_layout
27413
27414 \begin_layout LyX-Code
27415       display dialog "Error:
27416  " & the error_number & ".
27417  " ¬
27418 \end_layout
27419
27420 \begin_layout LyX-Code
27421               & the error_message buttons {"OK"} default button 1
27422 \end_layout
27423
27424 \begin_layout LyX-Code
27425   end try
27426 \end_layout
27427
27428 \begin_layout LyX-Code
27429 end tell
27430 \end_layout
27431
27432 \begin_layout Section
27433 Notification
27434 \end_layout
27435
27436 \begin_layout Standard
27437 \SpecialChar LyX
27438  can notify clients of events going on asynchronously.
27439  Currently it will only do this if the user binds a key sequence with the function 
27440 \begin_inset Quotes eld
27441 \end_inset
27442
27443 notify
27444 \begin_inset Quotes erd
27445 \end_inset
27446
27447 .
27448  The format of the string \SpecialChar LyX
27449  sends is as follows:
27450 \end_layout
27451
27452 \begin_layout Quote
27453 \begin_inset Flex Code
27454 status collapsed
27455
27456 \begin_layout Plain Layout
27457 NOTIFY:
27458 \end_layout
27459
27460 \end_inset
27461
27462
27463 \emph on
27464 key-sequence
27465 \end_layout
27466
27467 \begin_layout Standard
27468 where 
27469 \emph on
27470 key-sequence
27471 \emph default
27472  is the printed representation of the key sequence that was actually typed by the user.
27473 \end_layout
27474
27475 \begin_layout Standard
27476 This mechanism can be used to extend \SpecialChar LyX
27477 's command set and implement macros.
27478  Bind some key sequence to 
27479 \begin_inset Quotes eld
27480 \end_inset
27481
27482 notify
27483 \begin_inset Quotes erd
27484 \end_inset
27485
27486 .
27487  Then start a client that listens on the output pipe,
27488  dispatches the command according to the sequence,
27489  and starts a function that may use \SpecialChar LyX
27490  calls and \SpecialChar LyX
27491  requests to issue a command or a series of commands to \SpecialChar LyX
27492 .
27493 \end_layout
27494
27495 \begin_layout Section
27496 The simple \SpecialChar LyX
27497  Server Protocol
27498 \end_layout
27499
27500 \begin_layout Standard
27501 \SpecialChar LyX
27502  implements a simple protocol that can be used for session management.
27503  All messages are of the form
27504 \end_layout
27505
27506 \begin_layout Quote
27507 LYXSRV:
27508 \emph on
27509 clientname
27510 \emph default
27511 :
27512 \emph on
27513 protocol message
27514 \end_layout
27515
27516 \begin_layout Standard
27517 where 
27518 \emph on
27519 protocol message
27520 \emph default
27521  can be 
27522 \begin_inset Quotes eld
27523 \end_inset
27524
27525 hello
27526 \begin_inset Quotes erd
27527 \end_inset
27528
27529  or 
27530 \begin_inset Quotes eld
27531 \end_inset
27532
27533 bye
27534 \begin_inset Quotes erd
27535 \end_inset
27536
27537 .
27538  If 
27539 \begin_inset Quotes eld
27540 \end_inset
27541
27542 hello
27543 \begin_inset Quotes erd
27544 \end_inset
27545
27546  is received from a client,
27547  \SpecialChar LyX
27548  will report back to inform the client that it's listening to it's messages,
27549  while 
27550 \begin_inset Quotes eld
27551 \end_inset
27552
27553 bye
27554 \begin_inset Quotes erd
27555 \end_inset
27556
27557  sent from \SpecialChar LyX
27558  will inform clients that \SpecialChar LyX
27559  is closing.
27560 \end_layout
27561
27562 \begin_layout Section
27563 Reverse DVI/PDF search
27564 \end_layout
27565
27566 \begin_layout Standard
27567 Some DVI/PDF viewers
27568 \begin_inset Foot
27569 status collapsed
27570
27571 \begin_layout Plain Layout
27572 The following viewers offer the reverse PDF search feature:
27573  Okular on KDE/Linux,
27574  Qpdfview on Unix,
27575  Skim on Mac OSX and SumatraPDF on Windows.
27576 \end_layout
27577
27578 \end_inset
27579
27580  provide 
27581 \emph on
27582 reverse search
27583 \emph default
27584  facility (also called 
27585 \emph on
27586 inverse search
27587 \emph default
27588 ).
27589  This means that you can tell \SpecialChar LyX
27590  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
27591  To achieve this,
27592  the viewer must be able to communicate with \SpecialChar LyX
27593 .
27594  This is done via the \SpecialChar LyX
27595  server either by using the named pipe (
27596 \emph on
27597 lyxpipe
27598 \emph default
27599 ),
27600  or the UNIX domain socket (
27601 \emph on
27602 lyxsocket
27603 \emph default
27604 ) that \SpecialChar LyX
27605  creates in its temporary directory (this is the way the 
27606 \begin_inset Flex Code
27607 status collapsed
27608
27609 \begin_layout Plain Layout
27610 lyxclient
27611 \end_layout
27612
27613 \end_inset
27614
27615  program communicates with \SpecialChar LyX
27616 ).
27617  In some cases,
27618  you need a helper script that mediates between the viewer and \SpecialChar LyX
27619 ,
27620  in others,
27621  the viewer can communicate with \SpecialChar LyX
27622  directly.
27623  This depends on the selected viewer and on your operating system.
27624  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
27625  In what follows,
27626  we will thus describe how to setup reverse search for specific viewers.
27627  Before we turn to this,
27628  though,
27629  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
27630 \end_layout
27631
27632 \begin_layout Subsection
27633 Automatic setup
27634 \begin_inset CommandInset label
27635 LatexCommand label
27636 name "subsec:rev-search"
27637
27638 \end_inset
27639
27640
27641 \end_layout
27642
27643 \begin_layout Standard
27644 In most cases \SpecialChar LyX
27645  will do the work for you by pressing the following button in the toolbar:
27646  
27647 \begin_inset Info
27648 type  "icon"
27649 arg   "buffer-toggle-output-sync"
27650 \end_inset
27651
27652 .
27653  Alternatively,
27654  you can also enable the feature by checking 
27655 \family sans
27656 Synchronize with Output
27657 \family default
27658  in 
27659 \begin_inset Flex Noun
27660 status collapsed
27661
27662 \begin_layout Plain Layout
27663 Document\SpecialChar menuseparator
27664 Settings\SpecialChar menuseparator
27665 Formats
27666 \end_layout
27667
27668 \end_inset
27669
27670 .
27671  In such a case \SpecialChar LyX
27672  will automatically insert the necessary Sync\SpecialChar TeX
27673  macro (for PDF) or load the srcltx package (for DVI) respectively.
27674  This option can be easily reached also on 
27675 \begin_inset Flex Code
27676 status collapsed
27677
27678 \begin_layout Plain Layout
27679 View/Update
27680 \end_layout
27681
27682 \end_inset
27683
27684  Toolbar.
27685 \end_layout
27686
27687 \begin_layout Standard
27688 If you need a different setting,
27689  you can select or input a custom macro from the drop down box just below 
27690 \begin_inset Flex Noun
27691 status collapsed
27692
27693 \begin_layout Plain Layout
27694 Document\SpecialChar menuseparator
27695 Settings\SpecialChar menuseparator
27696 Output\SpecialChar menuseparator
27697 Synchronize with Output
27698 \end_layout
27699
27700 \end_inset
27701
27702 .
27703 \end_layout
27704
27705 \begin_layout Standard
27706 Note that the method 
27707 \begin_inset Flex Code
27708 status collapsed
27709
27710 \begin_layout Plain Layout
27711
27712 \backslash
27713 synctex=1
27714 \end_layout
27715
27716 \end_inset
27717
27718  enables gzip compression.
27719  If your viewer does not support it,
27720  you should instead use 
27721 \begin_inset Flex Code
27722 status collapsed
27723
27724 \begin_layout Plain Layout
27725
27726 \backslash
27727 synctex=-1
27728 \end_layout
27729
27730 \end_inset
27731
27732 .
27733 \end_layout
27734
27735 \begin_layout Standard
27736 Please also note that including the 
27737 \begin_inset Flex Code
27738 status collapsed
27739
27740 \begin_layout Plain Layout
27741 srcltx
27742 \end_layout
27743
27744 \end_inset
27745
27746  package or 
27747 \begin_inset Flex Code
27748 status collapsed
27749
27750 \begin_layout Plain Layout
27751 src-specials
27752 \end_layout
27753
27754 \end_inset
27755
27756  sometimes has an undesired impact on the typesetting.
27757  Thus,
27758  you should switch output synchronization off for the final typesetting if you use the 
27759 \begin_inset Flex Code
27760 status collapsed
27761
27762 \begin_layout Plain Layout
27763 srcltx
27764 \end_layout
27765
27766 \end_inset
27767
27768  package or 
27769 \begin_inset Flex Code
27770 status collapsed
27771
27772 \begin_layout Plain Layout
27773 src-specials
27774 \end_layout
27775
27776 \end_inset
27777
27778 .
27779  
27780 \end_layout
27781
27782 \begin_layout Standard
27783 In case you need some more special settings that are not covered by the automatic settings,
27784  read the next section about how to set up output synchronization manually.
27785  If the automatic setup suits your needs,
27786  you can readily jump to section
27787 \begin_inset space ~
27788 \end_inset
27789
27790
27791 \begin_inset CommandInset ref
27792 LatexCommand ref
27793 reference "subsec:configuring-viewers"
27794 nolink "false"
27795
27796 \end_inset
27797
27798 ,
27799  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
27800 \end_layout
27801
27802 \begin_layout Subsection
27803 Manual setup
27804 \end_layout
27805
27806 \begin_layout Standard
27807 \SpecialChar LaTeX
27808  provides several different methods for reverse search.
27809  Some are built-in in the 
27810 \begin_inset Flex Code
27811 status collapsed
27812
27813 \begin_layout Plain Layout
27814 latex/pdflatex
27815 \end_layout
27816
27817 \end_inset
27818
27819  program,
27820  some are provided by external packages.
27821  Your choice depends on whether your \SpecialChar LaTeX
27822  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
27823  The available methods are described in the following.
27824 \end_layout
27825
27826 \begin_layout Subsubsection*
27827 Built-in DVI-search via src-specials (DVI only) 
27828 \end_layout
27829
27830 \begin_layout Standard
27831 This method provides the DVI file with the necessary information for reverse search.
27832  It is available in \SpecialChar LaTeX
27833  since quite some time (any somewhat recent \SpecialChar LaTeX
27834  distribution should include it),
27835  and it works reliably.
27836  To enable it,
27837  change the 
27838 \begin_inset Flex Noun
27839 status collapsed
27840
27841 \begin_layout Plain Layout
27842 La
27843 \family sans
27844 TeX
27845 \family default
27846  (plain)->DVI
27847 \end_layout
27848
27849 \end_inset
27850
27851  or 
27852 \begin_inset Flex Noun
27853 status collapsed
27854
27855 \begin_layout Plain Layout
27856 La
27857 \family sans
27858 TeX
27859 \family default
27860  (plain)->DraftDVI
27861 \end_layout
27862
27863 \end_inset
27864
27865  converter in 
27866 \begin_inset Flex Noun
27867 status collapsed
27868
27869 \begin_layout Plain Layout
27870 Preferences\SpecialChar menuseparator
27871 File Handling\SpecialChar menuseparator
27872 Converters
27873 \end_layout
27874
27875 \end_inset
27876
27877  to 
27878 \begin_inset Flex Code
27879 status collapsed
27880
27881 \begin_layout Plain Layout
27882 latex -src-specials $$i
27883 \end_layout
27884
27885 \end_inset
27886
27887 .
27888  If this doesn't work,
27889  check if your \SpecialChar TeX
27890  engine needs different options (the syntax might differ in some distributions).
27891 \end_layout
27892
27893 \begin_layout Subsubsection*
27894 External Packages (PDFSync and scrltx) 
27895 \end_layout
27896
27897 \begin_layout Standard
27898 The packages 
27899 \emph on
27900 pdfsync
27901 \emph default
27902  and 
27903 \emph on
27904 scrltx
27905 \emph default
27906  provide reverse search facility for PDF output (via pdflatex) and DVI output,
27907  respectively.
27908  In order to enable it,
27909  load the packages in the \SpecialChar LyX
27910  preamble:
27911  
27912 \end_layout
27913
27914 \begin_layout Itemize
27915 \begin_inset Flex Code
27916 status collapsed
27917
27918 \begin_layout Plain Layout
27919
27920 \backslash
27921 usepackage{pdfsync}
27922 \end_layout
27923
27924 \end_inset
27925
27926  for reverse PDF search,
27927 \end_layout
27928
27929 \begin_layout Itemize
27930 \begin_inset Flex Code
27931 status collapsed
27932
27933 \begin_layout Plain Layout
27934
27935 \backslash
27936 usepackage[active]{srcltx}
27937 \end_layout
27938
27939 \end_inset
27940
27941  for reverse DVI search.
27942 \end_layout
27943
27944 \begin_layout Standard
27945 If you want to be able to perform both DVI and PDF reverse searches,
27946  you can also insert in the preamble the following lines
27947 \end_layout
27948
27949 \begin_layout LyX-Code
27950
27951 \backslash
27952 usepackage{ifpdf}
27953 \begin_inset Newline newline
27954 \end_inset
27955
27956
27957 \backslash
27958 ifpdf
27959 \begin_inset Newline newline
27960 \end_inset
27961
27962   
27963 \backslash
27964 usepackage{pdfsync}
27965 \begin_inset Newline newline
27966 \end_inset
27967
27968
27969 \backslash
27970 else
27971 \begin_inset Newline newline
27972 \end_inset
27973
27974   
27975 \backslash
27976 usepackage[active]{srcltx}
27977 \begin_inset Newline newline
27978 \end_inset
27979
27980
27981 \backslash
27982 fi
27983 \end_layout
27984
27985 \begin_layout Standard
27986 This way,
27987  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
27988 \end_layout
27989
27990 \begin_layout Standard
27991 Note that PDFSync might affect the output layout of your document.
27992  It is therefore advised to disable PDFsync for final documents.
27993 \end_layout
27994
27995 \begin_layout Subsubsection*
27996 Built-in reverse search via Sync\SpecialChar TeX
27997  (DVI and PDF) 
27998 \end_layout
27999
28000 \begin_layout Standard
28001 Recent versions of 
28002 \begin_inset Flex Code
28003 status collapsed
28004
28005 \begin_layout Plain Layout
28006 (pdf)latex
28007 \end_layout
28008
28009 \end_inset
28010
28011  have built-in support for both PDF and DVI reverse search.
28012  This so-called 
28013 \emph on
28014 Sync\SpecialChar TeX
28015
28016 \emph default
28017  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
28018 \emph on
28019 scr-specials
28020 \emph default
28021  approach.
28022  You need at least \SpecialChar TeX
28023 Live 2008 or a recent Mik\SpecialChar TeX
28024  distribution in order to use it.
28025 \begin_inset Foot
28026 status collapsed
28027
28028 \begin_layout Plain Layout
28029 For some reason,
28030  Mik\SpecialChar TeX
28031  does not understand/obey the command \SpecialChar LyX
28032  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
28033 \end_layout
28034
28035 \begin_layout Plain Layout
28036 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
28037  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
28038  by adding the -synctex=1 switch).
28039 \end_layout
28040
28041 \end_inset
28042
28043  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
28044  Skim on the Mac,
28045  SumatraPDF on Windows;
28046  see the next section for details) already provide Sync\SpecialChar TeX
28047  support.
28048 \end_layout
28049
28050 \begin_layout Standard
28051 To enable Sync\SpecialChar TeX
28052  for DVI output,
28053  change the 
28054 \begin_inset Flex Noun
28055 status collapsed
28056
28057 \begin_layout Plain Layout
28058 La
28059 \family sans
28060 TeX
28061 \family default
28062  (plain) -> DVI
28063 \end_layout
28064
28065 \end_inset
28066
28067  or 
28068 \begin_inset Flex Noun
28069 status collapsed
28070
28071 \begin_layout Plain Layout
28072 La
28073 \family sans
28074 TeX
28075 \family default
28076  (plain) -> DraftDVI
28077 \end_layout
28078
28079 \end_inset
28080
28081  converter in 
28082 \begin_inset Flex Noun
28083 status collapsed
28084
28085 \begin_layout Plain Layout
28086 Preferences\SpecialChar menuseparator
28087 File Handling\SpecialChar menuseparator
28088 Converters
28089 \end_layout
28090
28091 \end_inset
28092
28093  to 
28094 \begin_inset Flex Code
28095 status collapsed
28096
28097 \begin_layout Plain Layout
28098 latex -synctex=1 $$i
28099 \end_layout
28100
28101 \end_inset
28102
28103 ,
28104  and for PDF output,
28105  change the 
28106 \begin_inset Flex Noun
28107 status collapsed
28108
28109 \begin_layout Plain Layout
28110 La
28111 \family sans
28112 TeX
28113 \family default
28114  (pdflatex) -> PDF (pdflatex)
28115 \end_layout
28116
28117 \end_inset
28118
28119  converter to 
28120 \begin_inset Flex Code
28121 status collapsed
28122
28123 \begin_layout Plain Layout
28124 pdflatex -synctex=1 $$i
28125 \end_layout
28126
28127 \end_inset
28128
28129 .
28130  Should your viewer not be considered in the following description,
28131  or in case of missing success,
28132  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
28133 .
28134 \begin_inset Foot
28135 status collapsed
28136
28137 \begin_layout Plain Layout
28138 Note that the option 
28139 \begin_inset Flex Code
28140 status collapsed
28141
28142 \begin_layout Plain Layout
28143 -synctex=1
28144 \end_layout
28145
28146 \end_inset
28147
28148  option enables gzip compression.
28149  If your viewer does not support it,
28150  you should instead use 
28151 \begin_inset Flex Code
28152 status collapsed
28153
28154 \begin_layout Plain Layout
28155 -synctex=-1
28156 \end_layout
28157
28158 \end_inset
28159
28160 .
28161 \end_layout
28162
28163 \end_inset
28164
28165
28166 \end_layout
28167
28168 \begin_layout Subsection
28169 Configuring and using specific viewers
28170 \begin_inset CommandInset label
28171 LatexCommand label
28172 name "subsec:configuring-viewers"
28173
28174 \end_inset
28175
28176
28177 \end_layout
28178
28179 \begin_layout Subsubsection*
28180 Xdvi (all platforms)
28181 \end_layout
28182
28183 \begin_layout Standard
28184 If you use 
28185 \begin_inset Flex Code
28186 status collapsed
28187
28188 \begin_layout Plain Layout
28189 xdvi
28190 \end_layout
28191
28192 \end_inset
28193
28194 ,
28195  you don't need to do anything else for performing a reverse DVI search,
28196  as \SpecialChar LyX
28197  already provides the necessary hooks for automatically using the 
28198 \begin_inset Flex Code
28199 status collapsed
28200
28201 \begin_layout Plain Layout
28202 lyxclient
28203 \end_layout
28204
28205 \end_inset
28206
28207  program.
28208  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
28209  respectively).
28210 \end_layout
28211
28212 \begin_layout Standard
28213 However,
28214  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
28215 ,
28216  simply change the DVI viewer in 
28217 \begin_inset Flex Noun
28218 status collapsed
28219
28220 \begin_layout Plain Layout
28221 Preferences\SpecialChar menuseparator
28222 File Handling\SpecialChar menuseparator
28223 File formats
28224 \end_layout
28225
28226 \end_inset
28227
28228  to
28229 \begin_inset Foot
28230 status collapsed
28231
28232 \begin_layout Plain Layout
28233 On Mac OSX you have to use 
28234 \begin_inset Flex Code
28235 status collapsed
28236
28237 \begin_layout Plain Layout
28238 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
28239 \end_layout
28240
28241 \end_inset
28242
28243
28244 \end_layout
28245
28246 \end_inset
28247
28248  
28249 \begin_inset Flex Code
28250 status collapsed
28251
28252 \begin_layout Plain Layout
28253 xdvi -editor "lyxeditor.sh %f %l"
28254 \end_layout
28255
28256 \end_inset
28257
28258 ,
28259  where 
28260 \begin_inset Flex Code
28261 status collapsed
28262
28263 \begin_layout Plain Layout
28264 lyxeditor.sh
28265 \end_layout
28266
28267 \end_inset
28268
28269  is a suitable script.
28270  For example,
28271  a minimal shell script is the following one:
28272 \end_layout
28273
28274 \begin_layout LyX-Code
28275 #!/bin/sh
28276 \begin_inset Newline newline
28277 \end_inset
28278
28279 LYXPIPE="/path/to/lyxpipe"
28280 \begin_inset Newline newline
28281 \end_inset
28282
28283 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
28284 \begin_inset Newline newline
28285 \end_inset
28286
28287 echo "$COMMAND" > "${LYXPIPE}".in || exit
28288 \begin_inset Newline newline
28289 \end_inset
28290
28291 read TMP < "${LYXPIPE}".out || exit
28292 \end_layout
28293
28294 \begin_layout Standard
28295 where 
28296 \begin_inset Flex Code
28297 status collapsed
28298
28299 \begin_layout Plain Layout
28300 /path/to/lyxpipe
28301 \end_layout
28302
28303 \end_inset
28304
28305  is the LyXServer pipe path specified in 
28306 \begin_inset Flex Noun
28307 status collapsed
28308
28309 \begin_layout Plain Layout
28310 Preferences\SpecialChar menuseparator
28311 Paths
28312 \end_layout
28313
28314 \end_inset
28315
28316 .
28317 \begin_inset Foot
28318 status collapsed
28319
28320 \begin_layout Plain Layout
28321 In the 
28322 \begin_inset Flex Code
28323 status collapsed
28324
28325 \begin_layout Plain Layout
28326 development/tools
28327 \end_layout
28328
28329 \end_inset
28330
28331  folder of a source distribution you can find a 
28332 \begin_inset Flex Code
28333 status collapsed
28334
28335 \begin_layout Plain Layout
28336 lyxeditor
28337 \end_layout
28338
28339 \end_inset
28340
28341  script which is able to locate the 
28342 \emph on
28343 lyxpipe
28344 \emph default
28345  based on your preferences.
28346 \end_layout
28347
28348 \end_inset
28349
28350
28351 \end_layout
28352
28353 \begin_layout Subsubsection*
28354 MacDviX (Mac OSX)
28355 \end_layout
28356
28357 \begin_layout Standard
28358 At the end of 
28359 \begin_inset Flex Code
28360 status collapsed
28361
28362 \begin_layout Plain Layout
28363 /Applications/MacDviX_Folder/calleditor.script
28364 \end_layout
28365
28366 \end_inset
28367
28368 ,
28369  add the following lines:
28370 \end_layout
28371
28372 \begin_layout LyX-Code
28373 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
28374 \begin_inset Newline newline
28375 \end_inset
28376
28377 exit 1
28378 \end_layout
28379
28380 \begin_layout Standard
28381 Modify the lines accordingly if you install \SpecialChar LyX
28382  somewhere else than in the Applications folder.
28383 \end_layout
28384
28385 \begin_layout Standard
28386 Reverse search is triggered by Alt-click (OPTION-click).
28387 \end_layout
28388
28389 \begin_layout Subsubsection*
28390 Skim (Mac OSX)
28391 \end_layout
28392
28393 \begin_layout Standard
28394 Enter 
28395 \begin_inset Flex Code
28396 status collapsed
28397
28398 \begin_layout Plain Layout
28399 open -a Skim.app $$i
28400 \end_layout
28401
28402 \end_inset
28403
28404  to the viewer setting in 
28405 \begin_inset Flex Noun
28406 status collapsed
28407
28408 \begin_layout Plain Layout
28409 Preferences\SpecialChar menuseparator
28410 File Handling\SpecialChar menuseparator
28411 File formats\SpecialChar menuseparator
28412 PDF (pdflatex)
28413 \end_layout
28414
28415 \end_inset
28416
28417 ,
28418  and then in 
28419 \begin_inset Flex Noun
28420 status collapsed
28421
28422 \begin_layout Plain Layout
28423 Skim\SpecialChar menuseparator
28424 Preferences\SpecialChar menuseparator
28425 Sync
28426 \end_layout
28427
28428 \end_inset
28429
28430  choose 
28431 \begin_inset Flex Noun
28432 status collapsed
28433
28434 \begin_layout Plain Layout
28435 custom
28436 \end_layout
28437
28438 \end_inset
28439
28440  preset and enter command 
28441 \begin_inset Flex Noun
28442 status collapsed
28443
28444 \begin_layout Plain Layout
28445 /Applications/\SpecialChar LyX
28446 .app/Contents/MacOS/lyxeditor
28447 \end_layout
28448
28449 \end_inset
28450
28451 .
28452 \end_layout
28453
28454 \begin_layout Standard
28455 Reverse search is triggered by COMMAND-SHIFT-click
28456 \end_layout
28457
28458 \begin_layout Subsubsection*
28459 Evince (GNOME)
28460 \end_layout
28461
28462 \begin_layout Standard
28463 Reverse search with evince does not work out of the box,
28464  but it can be achieved by means of some third party helper scripts.
28465  Please refer to 
28466 \begin_inset CommandInset href
28467 LatexCommand href
28468 target "https://wiki.lyx.org/LyX/SyncTeX"
28469 literal "false"
28470
28471 \end_inset
28472
28473  for details.
28474 \end_layout
28475
28476 \begin_layout Subsubsection*
28477 Okular (KDE)
28478 \end_layout
28479
28480 \begin_layout Standard
28481 Go to 
28482 \begin_inset Flex Noun
28483 status collapsed
28484
28485 \begin_layout Plain Layout
28486 Settings\SpecialChar menuseparator
28487 Configure Okular\SpecialChar menuseparator
28488 Editor
28489 \end_layout
28490
28491 \end_inset
28492
28493  and select LyX
28494 \begin_inset Quotes erd
28495 \end_inset
28496
28497  as editor.
28498  This inserts the appropriate command (
28499 \begin_inset Flex Code
28500 status collapsed
28501
28502 \begin_layout Plain Layout
28503 lyxclient -g %f %l
28504 \end_layout
28505
28506 \end_inset
28507
28508 ).
28509 \end_layout
28510
28511 \begin_layout Standard
28512 Reverse search is triggered by SHIFT-click.
28513
28514 \change_inserted -712698321 1578211026
28515  Note that this only works if Okular is in 
28516 \begin_inset Quotes eld
28517 \end_inset
28518
28519 Browse
28520 \begin_inset Quotes erd
28521 \end_inset
28522
28523  mode (i.
28524 \begin_inset space \thinspace{}
28525 \end_inset
28526
28527 e.,
28528  the hand symbol is clicked).
28529 \change_unchanged
28530
28531 \end_layout
28532
28533 \begin_layout Subsubsection*
28534 Qpdfview (Unix)
28535 \end_layout
28536
28537 \begin_layout Standard
28538 Qpdfview supports Sync\SpecialChar TeX
28539  since version 0.3.5.
28540  Go to 
28541 \begin_inset Flex Noun
28542 status collapsed
28543
28544 \begin_layout Plain Layout
28545 Edit\SpecialChar menuseparator
28546 Settings\SpecialChar menuseparator
28547 Behavior
28548 \end_layout
28549
28550 \end_inset
28551
28552 ,
28553  click on the input field of the 
28554 \begin_inset Quotes eld
28555 \end_inset
28556
28557 Source editor
28558 \begin_inset Quotes erd
28559 \end_inset
28560
28561  item and add the command 
28562 \begin_inset Flex Code
28563 status collapsed
28564
28565 \begin_layout Plain Layout
28566 lyxclient -g %1 %2
28567 \end_layout
28568
28569 \end_inset
28570
28571 .
28572 \end_layout
28573
28574 \begin_layout Standard
28575 Reverse search is triggered by double-click or,
28576  in more recent versions,
28577  by context menu.
28578 \end_layout
28579
28580 \begin_layout Subsubsection*
28581 YAP (Windows)
28582 \end_layout
28583
28584 \begin_layout Standard
28585 Launch yap,
28586  choose its 
28587 \begin_inset Flex Noun
28588 status collapsed
28589
28590 \begin_layout Plain Layout
28591 View\SpecialChar menuseparator
28592 Options
28593 \end_layout
28594
28595 \end_inset
28596
28597  menu and select the 
28598 \begin_inset Quotes eld
28599 \end_inset
28600
28601 Inverse DVI Search
28602 \begin_inset Quotes erd
28603 \end_inset
28604
28605  tab.
28606  Click on the 
28607 \begin_inset Quotes eld
28608 \end_inset
28609
28610 New\SpecialChar ldots
28611
28612 \begin_inset Quotes erd
28613 \end_inset
28614
28615  button and,
28616  in the window that opens,
28617  enter 
28618 \begin_inset Quotes eld
28619 \end_inset
28620
28621 \SpecialChar LyX
28622  Editor
28623 \begin_inset Quotes erd
28624 \end_inset
28625
28626  (or any other name you like) in the 
28627 \begin_inset Quotes eld
28628 \end_inset
28629
28630 Name:
28631 \begin_inset Quotes erd
28632 \end_inset
28633
28634  field.
28635  Now click on the button labeled 
28636 \begin_inset Quotes eld
28637 \end_inset
28638
28639 \SpecialChar ldots
28640
28641 \begin_inset Quotes erd
28642 \end_inset
28643
28644  to open a file dialog and navigate to the directory containing the batch file 
28645 \begin_inset Flex Code
28646 status collapsed
28647
28648 \begin_layout Plain Layout
28649 lyxeditor.bat
28650 \end_layout
28651
28652 \end_inset
28653
28654  (see below).
28655  Select 
28656 \begin_inset Flex Code
28657 status collapsed
28658
28659 \begin_layout Plain Layout
28660 lyxeditor.bat
28661 \end_layout
28662
28663 \end_inset
28664
28665  and then specify the program arguments as 
28666 \begin_inset Flex Code
28667 status collapsed
28668
28669 \begin_layout Plain Layout
28670 %f %l
28671 \end_layout
28672
28673 \end_inset
28674
28675 .
28676  The 
28677 \begin_inset Flex Code
28678 status collapsed
28679
28680 \begin_layout Plain Layout
28681 lyxeditor.bat
28682 \end_layout
28683
28684 \end_inset
28685
28686  wrapper is used for communicating with \SpecialChar LyX
28687  through the 
28688 \emph on
28689 lyxpipe
28690 \emph default
28691  and is as follows:
28692 \end_layout
28693
28694 \begin_layout LyX-Code
28695 @echo off
28696 \begin_inset Newline newline
28697 \end_inset
28698
28699 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
28700 \backslash
28701
28702 \backslash
28703 .
28704 \backslash
28705 pipe
28706 \backslash
28707 lyxpipe.in
28708 \begin_inset Newline newline
28709 \end_inset
28710
28711 type 
28712 \backslash
28713
28714 \backslash
28715 .
28716 \backslash
28717 pipe
28718 \backslash
28719 lyxpipe.out
28720 \end_layout
28721
28722 \begin_layout Standard
28723 Make sure that the \SpecialChar LyX
28724 Server pipe path you specified in \SpecialChar LyX
28725  is 
28726 \begin_inset Flex Code
28727 status collapsed
28728
28729 \begin_layout Plain Layout
28730
28731 \backslash
28732
28733 \backslash
28734 .
28735 \backslash
28736 pipe
28737 \backslash
28738 lyxpipe
28739 \end_layout
28740
28741 \end_inset
28742
28743 ,
28744  otherwise change the 
28745 \begin_inset Flex Code
28746 status collapsed
28747
28748 \begin_layout Plain Layout
28749 lyxeditor.bat
28750 \end_layout
28751
28752 \end_inset
28753
28754  wrapper accordingly.
28755 \end_layout
28756
28757 \begin_layout Standard
28758 In yap,
28759  reverse search is triggered by double-click.
28760 \end_layout
28761
28762 \begin_layout Subsubsection*
28763 SumatraPDF (Windows)
28764 \end_layout
28765
28766 \begin_layout Standard
28767 In order to use SumatraPDF for inverse search,
28768  enter 
28769 \begin_inset Flex Code
28770 status collapsed
28771
28772 \begin_layout Plain Layout
28773 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
28774 \end_layout
28775
28776 \end_inset
28777
28778  in the viewer setting in 
28779 \begin_inset Flex Noun
28780 status collapsed
28781
28782 \begin_layout Plain Layout
28783 Preferences\SpecialChar menuseparator
28784 File Handling\SpecialChar menuseparator
28785 File formats\SpecialChar menuseparator
28786 PDF (pdflatex)
28787 \end_layout
28788
28789 \end_inset
28790
28791 ,
28792  where 
28793 \begin_inset Flex Code
28794 status collapsed
28795
28796 \begin_layout Plain Layout
28797 lyxeditor.bat
28798 \end_layout
28799
28800 \end_inset
28801
28802  is the previous wrapper.
28803  If SumatraPDF.exe is not in your command PATH,
28804  use its full file name.
28805 \end_layout
28806
28807 \begin_layout Standard
28808 Reverse search is triggered by double-click.
28809 \end_layout
28810
28811 \begin_layout Subsubsection*
28812 YAP (Cygwin)
28813 \end_layout
28814
28815 \begin_layout Standard
28816 First of all,
28817  make sure that yap is your default DVI viewer in the Windows environment,
28818  then launch it,
28819  choose its 
28820 \begin_inset Flex Noun
28821 status collapsed
28822
28823 \begin_layout Plain Layout
28824 View\SpecialChar menuseparator
28825 Options
28826 \end_layout
28827
28828 \end_inset
28829
28830  menu and select the 
28831 \begin_inset Quotes eld
28832 \end_inset
28833
28834 Inverse DVI Search
28835 \begin_inset Quotes erd
28836 \end_inset
28837
28838  tab.
28839  Click on the 
28840 \begin_inset Quotes eld
28841 \end_inset
28842
28843 New\SpecialChar ldots
28844
28845 \begin_inset Quotes erd
28846 \end_inset
28847
28848  button and,
28849  in the window that opens,
28850  enter 
28851 \begin_inset Quotes eld
28852 \end_inset
28853
28854 \SpecialChar LyX
28855  Editor
28856 \begin_inset Quotes erd
28857 \end_inset
28858
28859  (or any other name you like) in the 
28860 \begin_inset Quotes eld
28861 \end_inset
28862
28863 Name:
28864 \begin_inset Quotes erd
28865 \end_inset
28866
28867  field.
28868  Now click on the button labeled 
28869 \begin_inset Quotes eld
28870 \end_inset
28871
28872 \SpecialChar ldots
28873
28874 \begin_inset Quotes erd
28875 \end_inset
28876
28877  to open a file dialog and navigate to the directory containing the 
28878 \begin_inset Flex Code
28879 status collapsed
28880
28881 \begin_layout Plain Layout
28882 lyxeditor.exe
28883 \end_layout
28884
28885 \end_inset
28886
28887  program (which is installed by default on Cygwin along with the \SpecialChar LyX
28888  executable).
28889  Select 
28890 \begin_inset Flex Code
28891 status collapsed
28892
28893 \begin_layout Plain Layout
28894 lyxeditor.exe
28895 \end_layout
28896
28897 \end_inset
28898
28899  and then specify the program arguments as 
28900 \begin_inset Flex Code
28901 status collapsed
28902
28903 \begin_layout Plain Layout
28904 -g %f %l
28905 \end_layout
28906
28907 \end_inset
28908
28909 .
28910  In this way,
28911  you will be using the 
28912 \emph on
28913 lyxsocket
28914 \emph default
28915  for communicating with \SpecialChar LyX
28916 .
28917  If,
28918  for whatever reason,
28919  you want to use the 
28920 \emph on
28921 lyxpipe
28922 \emph default
28923 ,
28924  omit the 
28925 \begin_inset Flex Code
28926 status collapsed
28927
28928 \begin_layout Plain Layout
28929 -g
28930 \end_layout
28931
28932 \end_inset
28933
28934  option and be sure to specify the \SpecialChar LyX
28935 Server pipe path in the \SpecialChar LyX
28936  preferences.
28937 \end_layout
28938
28939 \begin_layout Standard
28940 In yap,
28941  reverse search is triggered by double-click.
28942 \end_layout
28943
28944 \begin_layout Subsubsection*
28945 SumatraPDF (Cygwin)
28946 \end_layout
28947
28948 \begin_layout Standard
28949 In order to use SumatraPDF for inverse search,
28950  enter 
28951 \begin_inset Flex Code
28952 status collapsed
28953
28954 \begin_layout Plain Layout
28955 SumatraPDF -inverse-search "lyxeditor -g %f %l"
28956 \end_layout
28957
28958 \end_inset
28959
28960  in the viewer setting in 
28961 \begin_inset Flex Noun
28962 status collapsed
28963
28964 \begin_layout Plain Layout
28965 Preferences\SpecialChar menuseparator
28966 File Handling\SpecialChar menuseparator
28967 File formats\SpecialChar menuseparator
28968 PDF (pdflatex)
28969 \end_layout
28970
28971 \end_inset
28972
28973 .
28974  If SumatraPDF.exe is not in your command PATH,
28975  use its full posix path.
28976  The 
28977 \begin_inset Flex Code
28978 status collapsed
28979
28980 \begin_layout Plain Layout
28981 -g
28982 \end_layout
28983
28984 \end_inset
28985
28986  enables communication via the 
28987 \emph on
28988 lyxsocket
28989 \emph default
28990 .
28991  Again,
28992  omit the 
28993 \begin_inset Flex Code
28994 status collapsed
28995
28996 \begin_layout Plain Layout
28997 -g
28998 \end_layout
28999
29000 \end_inset
29001
29002  option if you want to use the 
29003 \emph on
29004 lyxpipe
29005 \emph default
29006 ,
29007  and be sure to specify the \SpecialChar LyX
29008 Server pipe path in the \SpecialChar LyX
29009  preferences.
29010 \end_layout
29011
29012 \begin_layout Standard
29013 Reverse search is triggered by double-click.
29014 \end_layout
29015
29016 \begin_layout Section
29017 Forward search
29018 \end_layout
29019
29020 \begin_layout Standard
29021 Forward search is,
29022  as the name implies,
29023  in a sense the 
29024 \begin_inset Quotes eld
29025 \end_inset
29026
29027 opposite
29028 \begin_inset Quotes erd
29029 \end_inset
29030
29031  of reverse search.
29032  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
29033 .
29034  If forward search is set up (as described in what follows),
29035  you can put the cursor anywhere in your \SpecialChar LyX
29036  document,
29037  and hit 
29038 \begin_inset Flex Noun
29039 status collapsed
29040
29041 \begin_layout Plain Layout
29042 Navigate\SpecialChar menuseparator
29043 Forward search
29044 \end_layout
29045
29046 \end_inset
29047
29048  (or select 
29049 \begin_inset Flex Noun
29050 status collapsed
29051
29052 \begin_layout Plain Layout
29053 Forward search
29054 \end_layout
29055
29056 \end_inset
29057
29058  in the context menu via right mouse click),
29059  and then the viewer will jump to that position as well.
29060  This implies,
29061  of course,
29062  that your viewer supports this function.
29063 \end_layout
29064
29065 \begin_layout Standard
29066 To make forward search possible,
29067  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
29068  sources.
29069  This can be done via the methods described in the section 
29070 \begin_inset CommandInset ref
29071 LatexCommand ref
29072 reference "subsec:rev-search"
29073 nolink "false"
29074
29075 \end_inset
29076
29077 .
29078 \end_layout
29079
29080 \begin_layout Standard
29081 Additionally,
29082  you need to configure \SpecialChar LyX
29083  for using your viewers in 
29084 \begin_inset Flex Noun
29085 status collapsed
29086
29087 \begin_layout Plain Layout
29088 Tools\SpecialChar menuseparator
29089 Preferences\SpecialChar menuseparator
29090 Output\SpecialChar menuseparator
29091 General
29092 \end_layout
29093
29094 \end_inset
29095
29096 .
29097  We provide a range of tested configurations for some viewers,
29098  which you can select from the drop down list.
29099  If none of these configurations suits you,
29100  you have to find out and enter a suitable configuration yourself.
29101  The definition syntax uses the following placeholders:
29102 \end_layout
29103
29104 \begin_layout Itemize
29105 \noindent
29106 \begin_inset Flex Code
29107 status collapsed
29108
29109 \begin_layout Plain Layout
29110 $$n
29111 \end_layout
29112
29113 \end_inset
29114
29115 :
29116  row number
29117 \end_layout
29118
29119 \begin_layout Itemize
29120 \noindent
29121 \begin_inset Flex Code
29122 status collapsed
29123
29124 \begin_layout Plain Layout
29125 $$t
29126 \end_layout
29127
29128 \end_inset
29129
29130 :
29131  name of the (temporary) exported .tex file (without path)
29132 \end_layout
29133
29134 \begin_layout Itemize
29135 \noindent
29136 \begin_inset Flex Code
29137 status collapsed
29138
29139 \begin_layout Plain Layout
29140 $$f
29141 \end_layout
29142
29143 \end_inset
29144
29145 :
29146  name of the (temporary) exported .tex file (including path)
29147 \end_layout
29148
29149 \begin_layout Itemize
29150 \noindent
29151 \begin_inset Flex Code
29152 status collapsed
29153
29154 \begin_layout Plain Layout
29155 $$o
29156 \end_layout
29157
29158 \end_inset
29159
29160 :
29161  name of the exported output file (either dvi or pdf,
29162  depending on which one exists in the temporary directory)
29163 \end_layout
29164
29165 \begin_layout Standard
29166 Note that only some of the viewers provide full and usable forward search functionality out of the box,
29167  among them yap,
29168  xdvi,
29169  okular
29170 \begin_inset Foot
29171 status collapsed
29172
29173 \begin_layout Plain Layout
29174 You might want to set 
29175 \begin_inset Flex Code
29176 status collapsed
29177
29178 \begin_layout Plain Layout
29179 okular --unique
29180 \end_layout
29181
29182 \end_inset
29183
29184  in 
29185 \begin_inset Flex Noun
29186 status collapsed
29187
29188 \begin_layout Plain Layout
29189 Tools\SpecialChar menuseparator
29190 Preferences\SpecialChar menuseparator
29191 File Handling\SpecialChar menuseparator
29192 File
29193 \begin_inset space ~
29194 \end_inset
29195
29196 Formats
29197 \end_layout
29198
29199 \end_inset
29200
29201
29202 \end_layout
29203
29204 \end_inset
29205
29206 ,
29207  qpdfview,
29208  and SumatraPDF
29209 \begin_inset Foot
29210 status collapsed
29211
29212 \begin_layout Plain Layout
29213 SumatraPDF can also use DDE commands through the external program CMCDDE —
29214  downloadable from 
29215 \begin_inset CommandInset href
29216 LatexCommand href
29217 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
29218 literal "false"
29219
29220 \end_inset
29221
29222
29223 \end_layout
29224
29225 \end_inset
29226
29227 .
29228  Others,
29229  such as evince
29230 \begin_inset Foot
29231 status collapsed
29232
29233 \begin_layout Plain Layout
29234 Forward search with evince can be achieved by means of third party helper scripts.
29235  Please refer to 
29236 \begin_inset CommandInset href
29237 LatexCommand href
29238 target "https://wiki.lyx.org/LyX/SyncTeX"
29239 literal "false"
29240
29241 \end_inset
29242
29243  for details.
29244 \end_layout
29245
29246 \end_inset
29247
29248 ,
29249  require some extra tools in order to use forward search.
29250  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
29251  some other viewers – e.
29252 \begin_inset space \thinspace{}
29253 \end_inset
29254
29255 g.
29256  xpdf – allow at least to reload the document and jump to a specific page of the file,
29257  so you can at least navigate 
29258 \begin_inset Quotes eld
29259 \end_inset
29260
29261 near
29262 \begin_inset Quotes erd
29263 \end_inset
29264
29265 .
29266  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
29267  
29268 \end_layout
29269
29270 \begin_layout Standard
29271 Forward search works both with DVI and PDF output.
29272  \SpecialChar LyX
29273  simply checks which preview format you have used before (i.
29274 \begin_inset space \thinspace{}
29275 \end_inset
29276
29277 e.,
29278  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
29279 \change_deleted 564990737 1672743015
29280
29281 \end_layout
29282
29283 \begin_layout Standard
29284
29285 \change_deleted 564990737 1672743015
29286 Special Document Classes
29287 \end_layout
29288
29289 \begin_layout Standard
29290
29291 \change_deleted 564990737 1669742044
29292 A&A Paper
29293 \end_layout
29294
29295 \begin_layout Standard
29296
29297 \change_deleted 564990737 1669742044
29298 by 
29299 \noun on
29300 Peter Sütterlin
29301 \end_layout
29302
29303 \begin_layout Standard
29304
29305 \change_deleted 564990737 1669742044
29306 Introduction
29307 \end_layout
29308
29309 \begin_layout Standard
29310
29311 \change_deleted 564990737 1669742044
29312 This section describes how \SpecialChar LyX
29313  can be used to write articles for submission to the scientific journal 
29314 \emph on
29315 Astronomy and Astrophysics
29316 \emph default
29317  (
29318 \begin_inset Flex URL
29319 status collapsed
29320
29321 \begin_layout Plain Layout
29322
29323 https://www.aanda.org/
29324 \end_layout
29325
29326 \end_inset
29327
29328 ) using Version 5.01 of the document class 
29329 \family typewriter
29330 aa.cls
29331 \family default
29332 .
29333  This package can be downloaded from the ftp site
29334 \end_layout
29335
29336 \begin_layout Standard
29337
29338 \change_deleted 564990737 1669742044
29339 \begin_inset VSpace medskip
29340 \end_inset
29341
29342
29343 \end_layout
29344
29345 \begin_layout Standard
29346 \align center
29347
29348 \change_deleted 564990737 1669742044
29349 \begin_inset Flex URL
29350 status collapsed
29351
29352 \begin_layout Plain Layout
29353
29354 ftp://ftp.edpsciences.org/pub/aa/readme.html
29355 \end_layout
29356
29357 \end_inset
29358
29359
29360 \end_layout
29361
29362 \begin_layout Standard
29363
29364 \change_deleted 564990737 1669742044
29365 \begin_inset VSpace medskip
29366 \end_inset
29367
29368
29369 \end_layout
29370
29371 \begin_layout Standard
29372
29373 \change_deleted 564990737 1669742044
29374 A manual comes together with that package,
29375  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.
29376  
29377 \end_layout
29378
29379 \begin_layout Standard
29380
29381 \change_deleted 564990737 1669742044
29382 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
29383  2001.
29384  That change involved also some slight changes to the style files,
29385  namely the removal of the thesaurus command.
29386  The \SpecialChar LyX
29387  class aa supports the newest version of these style files,
29388  V 5.01.
29389  If you have an older version installed,
29390  please upgrade.
29391  For compatibility,
29392  the old (version 4) layout has been kept as 
29393 \family sans
29394 article (A&A V4)
29395 \family default
29396 .
29397  Please refer to the comments in 
29398 \family typewriter
29399 \SpecialChar LyX
29400 Dir/layouts/aapaper.layout
29401 \family default
29402 .
29403 \end_layout
29404
29405 \begin_layout Standard
29406
29407 \change_deleted 564990737 1669742044
29408 Getting started
29409 \end_layout
29410
29411 \begin_layout Standard
29412
29413 \change_deleted 564990737 1669742044
29414 It is recommended you start from the example template distributed with \SpecialChar LyX
29415 .
29416  If you are not using a template,
29417  note the following settings:
29418 \end_layout
29419
29420 \begin_layout Itemize
29421
29422 \change_deleted 564990737 1669742044
29423 Select 
29424 \family sans
29425 article (A&A)
29426 \family default
29427  in the 
29428 \family sans
29429 Document\SpecialChar menuseparator
29430 Settings
29431 \family default
29432  dialog (OK,
29433  that one was obvious).
29434 \end_layout
29435
29436 \begin_layout Itemize
29437
29438 \change_deleted 564990737 1669742044
29439 Don't change the option 
29440 \family sans
29441 Page
29442 \begin_inset space ~
29443 \end_inset
29444
29445 style
29446 \family default
29447 :
29448  Leave it set to 
29449 \family sans
29450 default
29451 \family default
29452 .
29453  The whole layout is done by the macros,
29454  you shouldn't change anything.
29455 \end_layout
29456
29457 \begin_layout Standard
29458
29459 \change_deleted 564990737 1669742044
29460 The header block
29461 \end_layout
29462
29463 \begin_layout Standard
29464
29465 \change_deleted 564990737 1669742044
29466 First thing to enter is the header information.
29467  It consists of seven entries,
29468  of which some are optional.
29469  They are
29470 \end_layout
29471
29472 \begin_layout Itemize
29473
29474 \change_deleted 564990737 1669742044
29475
29476 \family sans
29477 Title
29478 \family default
29479 :
29480  [required] 
29481 \end_layout
29482
29483 \begin_layout Itemize
29484
29485 \change_deleted 564990737 1669742044
29486
29487 \family sans
29488 Subtitle
29489 \family default
29490 :
29491  [optional] 
29492 \end_layout
29493
29494 \begin_layout Itemize
29495
29496 \change_deleted 564990737 1669742044
29497
29498 \family sans
29499 Author
29500 \family default
29501 :
29502  [required]
29503 \end_layout
29504
29505 \begin_layout Itemize
29506
29507 \change_deleted 564990737 1669742044
29508
29509 \family sans
29510 Address
29511 \family default
29512 :
29513  [required]
29514 \end_layout
29515
29516 \begin_layout Itemize
29517
29518 \change_deleted 564990737 1669742044
29519
29520 \family sans
29521 Offprints
29522 \family default
29523 :
29524  [optional] if more than one author:
29525  whom to contact for offprint requests.
29526 \end_layout
29527
29528 \begin_layout Itemize
29529
29530 \change_deleted 564990737 1669742044
29531
29532 \family sans
29533 Mail
29534 \family default
29535 :
29536  [optional] mail address for contacts.
29537 \end_layout
29538
29539 \begin_layout Itemize
29540
29541 \change_deleted 564990737 1669742044
29542
29543 \family sans
29544 Date
29545 \family default
29546 :
29547  [required].
29548  Suggested format is 
29549 \family typewriter
29550 Received:
29551  <date>;
29552  Accepted <date> 
29553 \end_layout
29554
29555 \begin_layout Standard
29556
29557 \change_deleted 564990737 1669742044
29558 There is no need to issue the 
29559 \family typewriter
29560
29561 \backslash
29562 maketitle
29563 \family default
29564  command,
29565  this is done automatically by \SpecialChar LyX
29566  when the header is finished.
29567  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
29568  just to get the best optics and meets the layout of the real document.
29569 \end_layout
29570
29571 \begin_layout Standard
29572
29573 \change_deleted 564990737 1669742044
29574 If you want to place footnotes in the header block,
29575  e.
29576 \begin_inset space \thinspace{}
29577 \end_inset
29578
29579 g.
29580 \begin_inset space \space{}
29581 \end_inset
29582
29583 to state your present address,
29584  just use the standard footnote via the menu 
29585 \family sans
29586 Insert\SpecialChar menuseparator
29587 Footnote.
29588
29589 \family default
29590  \SpecialChar LyX
29591  will automagically use the term 
29592 \family typewriter
29593
29594 \backslash
29595 thanks{}
29596 \family default
29597  in that case.
29598 \end_layout
29599
29600 \begin_layout Standard
29601
29602 \change_deleted 564990737 1669742044
29603 Under 
29604 \family sans
29605 Edit\SpecialChar menuseparator
29606 Text Style
29607 \family default
29608 ,
29609  you'll find two insets which are relevant for the titling:
29610 \end_layout
29611
29612 \begin_layout Itemize
29613
29614 \change_deleted 564990737 1669742044
29615
29616 \family sans
29617 Institute
29618 \family typewriter
29619  
29620 \family default
29621 to mark corresponding author\SpecialChar breakableslash
29622 institute pairs.
29623  The institutes are numbered sequentially as they appear in the 
29624 \family sans
29625 Address
29626 \family default
29627  field,
29628  so you have to put a marker to each author.
29629 \end_layout
29630
29631 \begin_layout Itemize
29632
29633 \change_deleted 564990737 1669742044
29634
29635 \family sans
29636 Email
29637 \family default
29638  to supply an email address for fast contact.
29639 \end_layout
29640
29641 \begin_layout Standard
29642
29643 \change_deleted 564990737 1669742044
29644 In addition to these topics,
29645  the macros use one additional \SpecialChar LaTeX
29646  command that has no counterpart in \SpecialChar LyX
29647 :
29648 \end_layout
29649
29650 \begin_layout Itemize
29651
29652 \change_deleted 564990737 1669742044
29653
29654 \family typewriter
29655
29656 \backslash
29657 and
29658 \family default
29659  to separate different names for more than one author and institute,
29660  respectively.
29661 \end_layout
29662
29663 \begin_layout Standard
29664
29665 \change_deleted 564990737 1669742044
29666 The appropriate command has to be entered in \SpecialChar LyX
29667  and marked as \SpecialChar LaTeX
29668  code.
29669  See the examples.
29670  
29671 \end_layout
29672
29673 \begin_layout Standard
29674
29675 \change_deleted 564990737 1669742044
29676 The abstract
29677 \end_layout
29678
29679 \begin_layout Standard
29680
29681 \change_deleted 564990737 1669742044
29682 The abstract should immediately follow the header block.
29683  With version 5 the abstract environment was changed to a command,
29684  and there is now a restriction to only one paragraph.
29685  In addition,
29686  it should contain an entry with the keywords.
29687  This is done via the paragraph style 
29688 \family sans
29689 Keywords
29690 \family default
29691 .
29692  Refer to the example paper.
29693 \end_layout
29694
29695 \begin_layout Standard
29696
29697 \change_deleted 564990737 1669742044
29698 Supported environments
29699 \end_layout
29700
29701 \begin_layout Standard
29702
29703 \change_deleted 564990737 1669742044
29704 The A&A paper layout supports the following environments for structuring your text:
29705 \end_layout
29706
29707 \begin_layout Itemize
29708
29709 \change_deleted 564990737 1669742044
29710
29711 \family sans
29712 Standard
29713 \end_layout
29714
29715 \begin_layout Itemize
29716
29717 \change_deleted 564990737 1669742044
29718
29719 \family sans
29720 Section
29721 \end_layout
29722
29723 \begin_layout Itemize
29724
29725 \change_deleted 564990737 1669742044
29726
29727 \family sans
29728 Subsection
29729 \end_layout
29730
29731 \begin_layout Itemize
29732
29733 \change_deleted 564990737 1669742044
29734
29735 \family sans
29736 Subsubsection
29737 \end_layout
29738
29739 \begin_layout Itemize
29740
29741 \change_deleted 564990737 1669742044
29742
29743 \family sans
29744 Itemize
29745 \end_layout
29746
29747 \begin_layout Itemize
29748
29749 \change_deleted 564990737 1669742044
29750
29751 \family sans
29752 Enumerate
29753 \end_layout
29754
29755 \begin_layout Itemize
29756
29757 \change_deleted 564990737 1669742044
29758
29759 \family sans
29760 Description
29761 \end_layout
29762
29763 \begin_layout Itemize
29764
29765 \change_deleted 564990737 1669742044
29766
29767 \family sans
29768 Caption
29769 \end_layout
29770
29771 \begin_layout Itemize
29772
29773 \change_deleted 564990737 1669742044
29774
29775 \family sans
29776 Abstract
29777 \end_layout
29778
29779 \begin_layout Itemize
29780
29781 \change_deleted 564990737 1669742044
29782
29783 \family sans
29784 Acknowledgment
29785 \end_layout
29786
29787 \begin_layout Itemize
29788
29789 \change_deleted 564990737 1669742044
29790
29791 \family sans
29792 Bibliography
29793 \end_layout
29794
29795 \begin_layout Itemize
29796
29797 \change_deleted 564990737 1669742044
29798
29799 \family sans
29800 \SpecialChar LaTeX
29801
29802 \end_layout
29803
29804 \begin_layout Standard
29805
29806 \change_deleted 564990737 1669742044
29807 Commands not supported by \SpecialChar LyX
29808
29809 \end_layout
29810
29811 \begin_layout Standard
29812
29813 \change_deleted 564990737 1669742044
29814 Some commands are not yet supported by the 
29815 \family sans
29816 paper (A&A)
29817 \family default
29818  layout for \SpecialChar LyX
29819 .
29820  Some have already been mentioned.
29821  For the sake of completeness,
29822  they are listed all together here:
29823 \end_layout
29824
29825 \begin_layout Itemize
29826
29827 \change_deleted 564990737 1669742044
29828
29829 \family typewriter
29830
29831 \backslash
29832 and
29833 \end_layout
29834
29835 \begin_layout Itemize
29836
29837 \change_deleted 564990737 1669742044
29838
29839 \family typewriter
29840
29841 \backslash
29842 authorrunning
29843 \end_layout
29844
29845 \begin_layout Itemize
29846
29847 \change_deleted 564990737 1669742044
29848
29849 \family typewriter
29850
29851 \backslash
29852 object{}
29853 \end_layout
29854
29855 \begin_layout Itemize
29856
29857 \change_deleted 564990737 1669742044
29858
29859 \family typewriter
29860
29861 \backslash
29862 titlerunning{}
29863 \end_layout
29864
29865 \begin_layout Standard
29866
29867 \change_deleted 564990737 1669742044
29868 If you want to use any of these commands,
29869  you have to enter them yourself.
29870  
29871 \series bold
29872 Do not forget to mark them as \SpecialChar LaTeX
29873  code!
29874 \end_layout
29875
29876 \begin_layout Standard
29877
29878 \change_deleted 564990737 1669742044
29879 Figure and Table Floats
29880 \end_layout
29881
29882 \begin_layout Standard
29883
29884 \change_deleted 564990737 1669742044
29885 \SpecialChar LyX
29886  provides support for the necessary float environments 
29887 \family sans
29888 figure,
29889  figure*,
29890  table
29891 \family default
29892  and 
29893 \family sans
29894 table*
29895 \family default
29896 ,
29897  therefore we won't tell much about it here.
29898  Refer to the 
29899 \emph on
29900 User's
29901 \begin_inset space ~
29902 \end_inset
29903
29904 Guide
29905 \emph default
29906 .
29907  Just remember that tables should be left-aligned.
29908  For that,
29909  select the table and change the alignment in 
29910 \family sans
29911 Edit\SpecialChar menuseparator
29912 Paragraph
29913 \begin_inset space ~
29914 \end_inset
29915
29916 Settings.
29917 \end_layout
29918
29919 \begin_layout Standard
29920
29921 \change_deleted 564990737 1669742044
29922 There is only one special thing:
29923  the figures with caption besides the figure.
29924  To create such a figure,
29925  you have to do the following:
29926 \end_layout
29927
29928 \begin_layout Enumerate
29929
29930 \change_deleted 564990737 1669742044
29931 Create a wide figure float:
29932  
29933 \family sans
29934 Insert\SpecialChar menuseparator
29935 Float\SpecialChar menuseparator
29936 Figure
29937 \family default
29938 ,
29939  then right click in the figure and select 
29940 \family sans
29941 Span
29942 \begin_inset space ~
29943 \end_inset
29944
29945 columns
29946 \family default
29947 .
29948 \end_layout
29949
29950 \begin_layout Enumerate
29951
29952 \change_deleted 564990737 1669742044
29953 Enter your caption text.
29954 \end_layout
29955
29956 \begin_layout Enumerate
29957
29958 \change_deleted 564990737 1669742044
29959 Press 
29960 \family sans
29961 Return
29962 \family default
29963  to move the cursor above the caption.
29964 \end_layout
29965
29966 \begin_layout Enumerate
29967
29968 \change_deleted 564990737 1669742044
29969 Insert your figure
29970 \end_layout
29971
29972 \begin_layout Enumerate
29973
29974 \change_deleted 564990737 1669742044
29975 Position the cursor behind the figure and insert a horizontal fill:
29976  
29977 \family sans
29978 Insert\SpecialChar menuseparator
29979 Special
29980 \begin_inset space ~
29981 \end_inset
29982
29983 Character\SpecialChar menuseparator
29984 Horizontal
29985 \begin_inset space ~
29986 \end_inset
29987
29988 Fill
29989 \family default
29990 .
29991 \end_layout
29992
29993 \begin_layout Enumerate
29994
29995 \change_deleted 564990737 1669742044
29996 Switch to \SpecialChar LaTeX
29997  mode:
29998  
29999 \family sans
30000 M-c
30001 \begin_inset space ~
30002 \end_inset
30003
30004 t
30005 \family default
30006 .
30007 \end_layout
30008
30009 \begin_layout Enumerate
30010
30011 \change_deleted 564990737 1669742044
30012 Enter 
30013 \family typewriter
30014
30015 \backslash
30016 parbox[b]{55mm}{
30017 \family default
30018 .
30019  
30020 \series bold
30021 Do not close the brace!
30022 \end_layout
30023
30024 \begin_layout Enumerate
30025
30026 \change_deleted 564990737 1669742044
30027 Position the cursor behind the caption text,
30028  switch to \SpecialChar LaTeX
30029  mode and insert the closing brace:
30030  
30031 \family sans
30032 M-c
30033 \begin_inset space ~
30034 \end_inset
30035
30036 t
30037 \family default
30038  
30039 \family typewriter
30040 }
30041 \family default
30042 .
30043 \end_layout
30044
30045 \begin_layout Standard
30046
30047 \change_deleted 564990737 1669742044
30048 Also,
30049  refer to the figures in the example paper.
30050 \end_layout
30051
30052 \begin_layout Standard
30053
30054 \change_deleted 564990737 1669742044
30055 Referee layout
30056 \end_layout
30057
30058 \begin_layout Standard
30059
30060 \change_deleted 564990737 1669742044
30061 For submission,
30062  the paper has to be formated in a special double-spacing layout.
30063  For this purpose,
30064  you have to give the option 
30065 \family typewriter
30066 referee
30067 \family default
30068  to the document class.
30069  This must be done using the custom class options field in the 
30070 \family sans
30071 Document\SpecialChar menuseparator
30072 Settings
30073 \family default
30074  dialog.
30075  Just enter the string 
30076 \family typewriter
30077 referee
30078 \family default
30079  there.
30080 \end_layout
30081
30082 \begin_layout Standard
30083
30084 \change_deleted 564990737 1669742044
30085 The example paper
30086 \end_layout
30087
30088 \begin_layout Standard
30089
30090 \change_deleted 564990737 1669742044
30091 The 
30092 \family sans
30093 Examples
30094 \family default
30095  directory contains an example paper written with \SpecialChar LyX
30096 .
30097  It is the example paper from the original macro package,
30098  translated to \SpecialChar LyX
30099 .
30100  Use it for inspiration,
30101  and compare the original \SpecialChar LaTeX
30102  code with \SpecialChar LyX
30103  way of writing.
30104 \end_layout
30105
30106 \begin_layout Standard
30107
30108 \change_deleted 564990737 1671097429
30109 Dinbrief
30110 \end_layout
30111
30112 \begin_layout Standard
30113
30114 \change_deleted 564990737 1671097429
30115 The document class 
30116 \family sans
30117 dinbrief
30118 \family default
30119  can be used to type letters according to German conventions.
30120  A template file is included in 
30121 \family typewriter
30122 .../lyx/share/templates
30123 \family default
30124  for you to use as a starting point.
30125 \end_layout
30126
30127 \begin_layout Standard
30128
30129 \change_deleted 564990737 1671097429
30130 Elsevier Journals
30131 \end_layout
30132
30133 \begin_layout Standard
30134
30135 \change_deleted 564990737 1671097429
30136 See the \SpecialChar LyX
30137  template file 
30138 \family typewriter
30139 elsarticle.lyx
30140 \family default
30141 .
30142  It contains all infos you need.
30143 \end_layout
30144
30145 \begin_layout Standard
30146
30147 \change_deleted 564990737 1669755802
30148 ijmpc and ijmpd
30149 \end_layout
30150
30151 \begin_layout Standard
30152
30153 \change_deleted 564990737 1669755802
30154 by 
30155 \noun on
30156 Panayotis Papasotiriou
30157 \end_layout
30158
30159 \begin_layout Standard
30160
30161 \change_deleted 564990737 1669755802
30162 Overview
30163 \end_layout
30164
30165 \begin_layout Standard
30166
30167 \change_deleted 564990737 1669755802
30168 The ijmpc package is a set of macros that facilitates electronic manuscript submission to the 
30169 \emph on
30170 International Journal of Modern Physics C
30171 \emph default
30172 .
30173  Similarly,
30174  the ijmpd package is for creating manuscripts to be submitted to the 
30175 \emph on
30176 International Journal of Modern Physics D
30177 \emph default
30178 .
30179  Both journals are published by World Scientific.
30180  The corresponding document classes are named 
30181 \family typewriter
30182 ws-ijmpc.cls
30183 \family default
30184  and 
30185 \family typewriter
30186 ws-ijmpd.cls
30187 \family default
30188 ,
30189  respectively.
30190  These files,
30191  together with instructions for the authors,
30192  can be downloaded from the sites 
30193 \begin_inset Flex URL
30194 status collapsed
30195
30196 \begin_layout Plain Layout
30197
30198 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
30199 \end_layout
30200
30201 \end_inset
30202
30203  and 
30204 \begin_inset Flex URL
30205 status collapsed
30206
30207 \begin_layout Plain Layout
30208
30209 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
30210 \end_layout
30211
30212 \end_inset
30213
30214 .
30215  Both packages are modified versions of the standard 
30216 \begin_inset Quotes eld
30217 \end_inset
30218
30219 article
30220 \begin_inset Quotes erd
30221 \end_inset
30222
30223  package,
30224  and they are almost (but not exactly) identical.
30225  Most of their features are supported by \SpecialChar LyX
30226 .
30227  I have used \SpecialChar LyX
30228  successfully to write articles submitted to both journals without any problem.
30229 \end_layout
30230
30231 \begin_layout Standard
30232
30233 \change_deleted 564990737 1669755802
30234 Writing a paper
30235 \end_layout
30236
30237 \begin_layout Standard
30238
30239 \change_deleted 564990737 1669755802
30240 As usual,
30241  the easiest way to write a paper is to start with a template.
30242  Click on 
30243 \family sans
30244 File\SpecialChar menuseparator
30245 New from
30246 \family default
30247  
30248 \family sans
30249 Template
30250 \family default
30251 ,
30252  then choose the 
30253 \family typewriter
30254 ijmpc.lyx
30255 \family default
30256  or 
30257 \family typewriter
30258 ijmpd.lyx
30259 \family default
30260  template.
30261  This will give an (almost) empty document that includes the most common fields found in a manuscript.
30262  Simply overwrite the existing text (including the brackets,
30263  
30264 \family typewriter
30265 <>
30266 \family default
30267 ) with your text.
30268  You should keep in mind the following remarks.
30269 \end_layout
30270
30271 \begin_layout Enumerate
30272
30273 \change_deleted 564990737 1669755802
30274 \SpecialChar LyX
30275  won't let you change the font size and the page style of the document,
30276  because such modifications are not allowed by both packages.
30277 \end_layout
30278
30279 \begin_layout Enumerate
30280
30281 \change_deleted 564990737 1669755802
30282 The language of the document should not be changed.
30283  Before previewing your paper,
30284  be sure that the babel package is not used.
30285  To do this,
30286  click on 
30287 \begin_inset Info
30288 type  "menu"
30289 arg   "dialog-show document"
30290 \end_inset
30291
30292  
30293 \family sans
30294 \SpecialChar menuseparator
30295 Language
30296 \family default
30297 ,
30298  and select 
30299 \begin_inset Quotes eld
30300 \end_inset
30301
30302 None
30303 \begin_inset Quotes erd
30304 \end_inset
30305
30306  as 
30307 \family sans
30308 Language Package
30309 \family default
30310 .
30311 \end_layout
30312
30313 \begin_layout Enumerate
30314
30315 \change_deleted 564990737 1669755802
30316 The 
30317 \begin_inset Quotes eld
30318 \end_inset
30319
30320 Keywords
30321 \begin_inset Quotes erd
30322 \end_inset
30323
30324  style must be used to define keywords.
30325 \end_layout
30326
30327 \begin_layout Enumerate
30328
30329 \change_deleted 564990737 1669755802
30330 The ijmpc package provides a style named 
30331 \begin_inset Quotes eld
30332 \end_inset
30333
30334 Classification Codes
30335 \begin_inset Quotes erd
30336 \end_inset
30337
30338 ,
30339  which can be used to define classification codes,
30340  such as PACS numbers.
30341  Note that this facility is not supported by the ijmpd package.
30342 \end_layout
30343
30344 \begin_layout Enumerate
30345
30346 \change_deleted 564990737 1669755802
30347 Several new environments are available:
30348  
30349 \begin_inset Quotes eld
30350 \end_inset
30351
30352 Definition
30353 \begin_inset Quotes erd
30354 \end_inset
30355
30356 ,
30357  
30358 \begin_inset Quotes eld
30359 \end_inset
30360
30361 Step
30362 \begin_inset Quotes erd
30363 \end_inset
30364
30365 ,
30366  
30367 \begin_inset Quotes eld
30368 \end_inset
30369
30370 Example
30371 \begin_inset Quotes erd
30372 \end_inset
30373
30374 ,
30375  
30376 \begin_inset Quotes eld
30377 \end_inset
30378
30379 Remark
30380 \begin_inset Quotes erd
30381 \end_inset
30382
30383 ,
30384  
30385 \begin_inset Quotes eld
30386 \end_inset
30387
30388 Notation
30389 \begin_inset Quotes erd
30390 \end_inset
30391
30392 ,
30393  
30394 \begin_inset Quotes eld
30395 \end_inset
30396
30397 Theorem
30398 \begin_inset Quotes erd
30399 \end_inset
30400
30401 ,
30402  
30403 \begin_inset Quotes eld
30404 \end_inset
30405
30406 Proof
30407 \begin_inset Quotes erd
30408 \end_inset
30409
30410 ,
30411  
30412 \begin_inset Quotes eld
30413 \end_inset
30414
30415 Corollary
30416 \begin_inset Quotes erd
30417 \end_inset
30418
30419 ,
30420  
30421 \begin_inset Quotes eld
30422 \end_inset
30423
30424 Lemma
30425 \begin_inset Quotes erd
30426 \end_inset
30427
30428 ,
30429  
30430 \begin_inset Quotes eld
30431 \end_inset
30432
30433 Proposition
30434 \begin_inset Quotes erd
30435 \end_inset
30436
30437 ,
30438  
30439 \begin_inset Quotes eld
30440 \end_inset
30441
30442 Prop
30443 \begin_inset Quotes erd
30444 \end_inset
30445
30446 ,
30447  
30448 \begin_inset Quotes eld
30449 \end_inset
30450
30451 Question
30452 \begin_inset Quotes erd
30453 \end_inset
30454
30455 ,
30456  
30457 \begin_inset Quotes eld
30458 \end_inset
30459
30460 Claim
30461 \begin_inset Quotes erd
30462 \end_inset
30463
30464 ,
30465  and 
30466 \begin_inset Quotes eld
30467 \end_inset
30468
30469 Conjecture
30470 \begin_inset Quotes erd
30471 \end_inset
30472
30473 .
30474  Their use is more or less obvious.
30475  \SpecialChar LyX
30476  supports all these environments;
30477  it will use the proper label,
30478  text style,
30479  and numbering scheme for each of them.
30480 \end_layout
30481
30482 \begin_layout Enumerate
30483
30484 \change_deleted 564990737 1669755802
30485 Both packages use basic citations;
30486  the natbib package should not be used.
30487  In \SpecialChar LyX
30488 ,
30489  citation references are shown as usual;
30490  in the output,
30491  citations are shown as superscripts.
30492  If you want to use a citation as normal text,
30493  you should use the 
30494 \family typewriter
30495 refcite
30496 \family default
30497  command,
30498  e.
30499 \begin_inset space \thinspace{}
30500 \end_inset
30501
30502 g.
30503 \begin_inset space \space{}
30504 \end_inset
30505
30506
30507 \begin_inset Quotes eld
30508 \end_inset
30509
30510 See Ref.
30511 \begin_inset space \space{}
30512 \end_inset
30513
30514
30515 \family typewriter
30516
30517 \backslash
30518 refcite{key}
30519 \family default
30520
30521 \begin_inset Quotes erd
30522 \end_inset
30523
30524 .
30525 \end_layout
30526
30527 \begin_layout Enumerate
30528
30529 \change_deleted 564990737 1669755802
30530 There is no 
30531 \begin_inset Quotes eld
30532 \end_inset
30533
30534 Acknowledgments
30535 \begin_inset Quotes erd
30536 \end_inset
30537
30538  section in both packages.
30539  To put acknowledgments,
30540  just use the 
30541 \begin_inset Quotes eld
30542 \end_inset
30543
30544 Section*
30545 \begin_inset Quotes erd
30546 \end_inset
30547
30548  environment.
30549 \end_layout
30550
30551 \begin_layout Enumerate
30552
30553 \change_deleted 564990737 1669755802
30554 Appendices may be added to the paper,
30555  
30556 \emph on
30557 after
30558 \emph default
30559  the Acknowledgments and 
30560 \shape italic
30561 before
30562 \shape default
30563  the References.
30564  \SpecialChar LyX
30565  provides a special environment,
30566  called 
30567 \begin_inset Quotes eld
30568 \end_inset
30569
30570 Appendices Section
30571 \begin_inset Quotes erd
30572 \end_inset
30573
30574  which marks the beginning of the appendices.
30575  This environment should be left blank;
30576  it just sends a \SpecialChar LaTeX
30577  command,
30578  but nothing is really printed.
30579  In \SpecialChar LyX
30580 ,
30581  the word 
30582 \begin_inset Quotes eld
30583 \end_inset
30584
30585 Appendix
30586 \begin_inset Quotes erd
30587 \end_inset
30588
30589  is printed with blue letters,
30590  as a signal that all sections after that point are appendices.
30591  To write an appendix,
30592  use the 
30593 \begin_inset Quotes eld
30594 \end_inset
30595
30596 Appendix
30597 \begin_inset Quotes erd
30598 \end_inset
30599
30600  environment.
30601  \SpecialChar LyX
30602  will number each appendix with capital letters,
30603  as required by both journals.
30604  Note that 
30605 \begin_inset Quotes eld
30606 \end_inset
30607
30608 Appendices Section
30609 \begin_inset Quotes erd
30610 \end_inset
30611
30612  
30613 \emph on
30614 must
30615 \emph default
30616  be present before the first appendix;
30617  if not,
30618  all appendices will be numbered as normal sections in the output.
30619 \end_layout
30620
30621 \begin_layout Enumerate
30622
30623 \change_deleted 564990737 1669755802
30624 The ijmpc and the ijmpd packages use the 
30625 \family typewriter
30626 tbl
30627 \family default
30628  command to implement table captions.
30629  As a result,
30630  a table created by \SpecialChar LyX
30631  is printed correctly,
30632  but its caption is ignored.
30633  However,
30634  you can use some \SpecialChar TeX
30635  code to overcome this problem,
30636  so that captions are printed as expected.
30637  To do so,
30638  create a float table as usual,
30639  remove the caption,
30640  and replace it with the \SpecialChar TeX
30641  code 
30642 \family typewriter
30643
30644 \backslash
30645 tbl{
30646 \emph on
30647 your table caption
30648 \emph default
30649 }{
30650 \family default
30651  (sic);
30652  you must also the \SpecialChar TeX
30653  code 
30654 \family typewriter
30655 }
30656 \family default
30657  immediately after the tabular material.
30658  Study the example table included in the template files to see how this trick is implemented.
30659  Alternatively,
30660  If you need table captions,
30661  you should implement the whole table float in a 
30662 \family typewriter
30663 .tex
30664 \family default
30665  file,
30666  then include this file to the \SpecialChar LyX
30667  document (
30668 \family sans
30669 Insert\SpecialChar menuseparator
30670 File\SpecialChar menuseparator
30671 Child
30672 \begin_inset space ~
30673 \end_inset
30674
30675 Document
30676 \family default
30677 ).
30678  Details on how to create a table float can be found in the files 
30679 \family typewriter
30680 ws-ijmpc.tex
30681 \family default
30682  and 
30683 \family typewriter
30684 ws-ijmpd.tex
30685 \family default
30686 ,
30687  included in the corresponding packages.
30688 \end_layout
30689
30690 \begin_layout Standard
30691
30692 \change_deleted 564990737 1669755802
30693 Preparing a paper for submission
30694 \end_layout
30695
30696 \begin_layout Standard
30697
30698 \change_deleted 564990737 1669755802
30699 Before you submit your paper you must export the \SpecialChar LyX
30700  document as a \SpecialChar LaTeX
30701  file (
30702 \family sans
30703 File\SpecialChar menuseparator
30704 Export\SpecialChar menuseparator
30705 \SpecialChar LaTeX
30706
30707 \family default
30708 )
30709 \begin_inset Foot
30710 status open
30711
30712 \begin_layout Plain Layout
30713 Actually you have the choice between \SpecialChar LaTeX
30714  (plain) and pdflatex.
30715  If you intend to use pdflatex to prepare the paper,
30716  you should use the pdflatex option so that included graphics are converted to PDF format,
30717  ready for use by pdflatex.
30718 \end_layout
30719
30720 \end_inset
30721
30722 ,
30723  then make the following changes to the resulting 
30724 \family typewriter
30725 .tex
30726 \family default
30727  file.
30728 \end_layout
30729
30730 \begin_layout Enumerate
30731
30732 \change_deleted 564990737 1669755802
30733 Remove the comment lines before the 
30734 \family typewriter
30735
30736 \backslash
30737 documentclass
30738 \family default
30739  command.
30740 \end_layout
30741
30742 \begin_layout Enumerate
30743
30744 \change_deleted 564990737 1669755802
30745 Remove everything between (and including) the 
30746 \family typewriter
30747
30748 \backslash
30749 makeatletter
30750 \family default
30751  and 
30752 \family typewriter
30753
30754 \backslash
30755 makeatother
30756 \family default
30757  commands,
30758  except for any commands you specifically put into the \SpecialChar LaTeX
30759  preamble.
30760 \end_layout
30761
30762 \begin_layout Standard
30763
30764 \change_deleted 564990737 1672743015
30765 The modified 
30766 \family typewriter
30767 .tex
30768 \family default
30769  file should be saved and processed through \SpecialChar LaTeX
30770  as many times as necessary.
30771  You may also want to check the resulting 
30772 \family typewriter
30773 .dvi
30774 \family default
30775  document.
30776 \end_layout
30777
30778 \begin_layout Standard
30779
30780 \change_deleted 564990737 1669801478
30781 iopart
30782 \end_layout
30783
30784 \begin_layout Standard
30785
30786 \change_deleted 564990737 1669801478
30787 by 
30788 \noun on
30789 Uwe Stöhr
30790 \end_layout
30791
30792 \begin_layout Standard
30793
30794 \change_deleted 564990737 1669801478
30795 Overview
30796 \end_layout
30797
30798 \begin_layout Standard
30799
30800 \change_deleted 564990737 1669801478
30801 The iopart package provides a document class to create electronic manuscript submission to the journals published by the Institute of Physics.
30802  Instructions for the authors how to create a paper using the iopart class can be downloaded together with the iopart package from the site 
30803 \begin_inset Flex URL
30804 status collapsed
30805
30806 \begin_layout Plain Layout
30807
30808 ftp://ftp.iop.org/pub/journals/latex2e
30809 \end_layout
30810
30811 \end_inset
30812
30813 .
30814 \end_layout
30815
30816 \begin_layout Standard
30817
30818 \change_deleted 564990737 1669801478
30819 Writing a paper
30820 \end_layout
30821
30822 \begin_layout Standard
30823
30824 \change_deleted 564990737 1669801478
30825 The easiest way to write a paper is to start with the template 
30826 \emph on
30827 IOP-article.lyx
30828 \emph default
30829  that is available via 
30830 \family sans
30831 File\SpecialChar menuseparator
30832 New From Template
30833 \family default
30834  The template explains how to use the special text environments.
30835  Here are the most important advices:
30836 \end_layout
30837
30838 \begin_layout Itemize
30839
30840 \change_deleted 564990737 1669801478
30841 To be able to compile your document to a PDF,
30842  PS,
30843  or DVI,
30844  ensure that the no AMS packages are loaded in 
30845 \family sans
30846 Document\SpecialChar menuseparator
30847 Settings\SpecialChar menuseparator
30848 Math Options
30849 \family default
30850 !
30851 \end_layout
30852
30853 \begin_layout Itemize
30854
30855 \change_deleted 564990737 1669801478
30856
30857 \size normal
30858 The title environment defines the kind of your paper.
30859  So use one of the following environments for the title:
30860 \end_layout
30861
30862 \begin_deeper
30863 \begin_layout Itemize
30864
30865 \change_deleted 564990737 1669801478
30866
30867 \family sans
30868 \size normal
30869 Title
30870 \family default
30871  for a Paper
30872 \end_layout
30873
30874 \begin_layout Itemize
30875
30876 \change_deleted 564990737 1669801478
30877
30878 \family sans
30879 \size normal
30880 Review
30881 \family default
30882  for a Review
30883 \end_layout
30884
30885 \begin_layout Itemize
30886
30887 \change_deleted 564990737 1669801478
30888
30889 \family sans
30890 \size normal
30891 Topical
30892 \family default
30893  for a Topical review
30894 \end_layout
30895
30896 \begin_layout Itemize
30897
30898 \change_deleted 564990737 1669801478
30899
30900 \family sans
30901 \size normal
30902 Comment
30903 \family default
30904  for a Comment
30905 \end_layout
30906
30907 \begin_layout Itemize
30908
30909 \change_deleted 564990737 1669801478
30910
30911 \family sans
30912 \size normal
30913 Note
30914 \family default
30915  for a Note
30916 \end_layout
30917
30918 \begin_layout Itemize
30919
30920 \change_deleted 564990737 1669801478
30921
30922 \family sans
30923 \size normal
30924 Paper
30925 \family default
30926  for a Paper (same as Title)
30927 \end_layout
30928
30929 \begin_layout Itemize
30930
30931 \change_deleted 564990737 1669801478
30932
30933 \family sans
30934 \size normal
30935 Prelim
30936 \family default
30937  for a Preliminary communication
30938 \end_layout
30939
30940 \begin_layout Itemize
30941
30942 \change_deleted 564990737 1669801478
30943
30944 \family sans
30945 \size normal
30946 Rapid
30947 \family default
30948  for a Rapid communication
30949 \end_layout
30950
30951 \begin_layout Itemize
30952
30953 \change_deleted 564990737 1669801478
30954
30955 \family sans
30956 \size normal
30957 Letter
30958 \family default
30959  for a Letter to the editor
30960 \end_layout
30961
30962 \end_deeper
30963 \begin_layout Itemize
30964
30965 \change_deleted 564990737 1669801478
30966
30967 \size normal
30968 All title environments except of 
30969 \family sans
30970 Letter
30971 \family default
30972  can have an optional short title.
30973 \end_layout
30974
30975 \begin_layout Itemize
30976
30977 \change_deleted 564990737 1669801478
30978 There is a general title environment 
30979 \family sans
30980 Article
30981 \family default
30982  which is not directly supported by \SpecialChar LyX
30983 .
30984  This can be used as \SpecialChar TeX
30985  code when your document doesn't fit into one of the other title types.
30986 \end_layout
30987
30988 \begin_layout Standard
30989
30990 \change_deleted 564990737 1672743015
30991 For more informations like hints for special table and formula formatting,
30992  look at the IOP author guidelines.
30993 \end_layout
30994
30995 \begin_layout Standard
30996
30997 \change_deleted 564990737 1670317155
30998 Kluwer
30999 \end_layout
31000
31001 \begin_layout Standard
31002
31003 \change_deleted 564990737 1670317155
31004 by 
31005 \noun on
31006 Panayotis Papasotiriou
31007 \end_layout
31008
31009 \begin_layout Standard
31010
31011 \change_deleted 564990737 1670317155
31012 Overview
31013 \end_layout
31014
31015 \begin_layout Standard
31016
31017 \change_deleted 564990737 1670317155
31018 The Kluwer package is a set of macros produced by Kluwer Academic Publishers that facilitates electronic manuscript submission to the journals they publish.
31019  Most known of them (at least in my domain of interest) are 
31020 \emph on
31021 Astrophysics and Space Science
31022 \emph default
31023  and 
31024 \emph on
31025 Solar Physics
31026 \emph default
31027 ,
31028  but there are many others (see a complete list at 
31029 \begin_inset Flex URL
31030 status collapsed
31031
31032 \begin_layout Plain Layout
31033
31034 http://www.wkap.nl/jrnllist.htm/JRNLHOME
31035 \end_layout
31036
31037 \end_inset
31038
31039 ).
31040  The Kluwer package may be downloaded from the site 
31041 \begin_inset Flex URL
31042 status collapsed
31043
31044 \begin_layout Plain Layout
31045
31046 http://www.wkap.nl/kaphtml.htm/STYLEFILES
31047 \end_layout
31048
31049 \end_inset
31050
31051 .
31052  A complete user guide is contained in that package (but it can also be downloaded separately).
31053 \end_layout
31054
31055 \begin_layout Standard
31056
31057 \change_deleted 564990737 1670317155
31058 \SpecialChar LyX
31059  supports many features of the package but not everything.
31060  However,
31061  the \SpecialChar TeX
31062  code needed is reduced to some 
31063 \begin_inset Quotes eld
31064 \end_inset
31065
31066 peculiar
31067 \begin_inset Quotes erd
31068 \end_inset
31069
31070  commands of the package (see
31071 \begin_inset space ~
31072 \end_inset
31073
31074
31075 \begin_inset CommandInset ref
31076 LatexCommand ref
31077 reference "subsec:kluwer_peculiarities"
31078 nolink "false"
31079
31080 \end_inset
31081
31082 ).
31083  I have recently used \SpecialChar LyX
31084  to write an article submitted to the 
31085 \emph on
31086 Astrophysics and Space Science
31087 \emph default
31088  without any problem.
31089 \end_layout
31090
31091 \begin_layout Standard
31092
31093 \change_deleted 564990737 1670317155
31094 Writing a paper
31095 \end_layout
31096
31097 \begin_layout Standard
31098
31099 \change_deleted 564990737 1670317155
31100 The easiest way to write a paper is to start with the Kluwer template file.
31101  Click on 
31102 \family sans
31103 File\SpecialChar menuseparator
31104 New from
31105 \family default
31106  
31107 \family sans
31108 Template
31109 \family default
31110 ,
31111  then choose the 
31112 \family typewriter
31113 kluwer.lyx
31114 \family default
31115  template.
31116  This will give an (almost) empty document that includes the most common fields found in a manuscript and a short description of their use.
31117  As in most templates,
31118  simply overwrite the existing text (including the brackets,
31119  
31120 \family typewriter
31121 <>
31122 \family default
31123 ) with the correct information.
31124 \end_layout
31125
31126 \begin_layout Standard
31127
31128 \change_deleted 564990737 1670317155
31129 Preparing a paper for submission
31130 \end_layout
31131
31132 \begin_layout Standard
31133
31134 \change_deleted 564990737 1670317155
31135 As in the AAS\SpecialChar TeX
31136  package,
31137  before you submit your paper to a journal you must 
31138 \begin_inset Quotes eld
31139 \end_inset
31140
31141 postprocess
31142 \begin_inset Quotes erd
31143 \end_inset
31144
31145  it as follows.
31146 \end_layout
31147
31148 \begin_layout Enumerate
31149
31150 \change_deleted 564990737 1670317155
31151 Export your paper as a \SpecialChar LaTeX
31152  file.
31153  To do this,
31154  click on 
31155 \family sans
31156 File\SpecialChar menuseparator
31157 Export\SpecialChar menuseparator
31158 \SpecialChar LaTeX
31159
31160 \family default
31161 .
31162  
31163 \end_layout
31164
31165 \begin_layout Enumerate
31166
31167 \change_deleted 564990737 1670317155
31168 Edit the resulting 
31169 \family typewriter
31170 .tex
31171 \family default
31172  file with a text editor and make the following changes
31173 \end_layout
31174
31175 \begin_deeper
31176 \begin_layout Enumerate
31177
31178 \change_deleted 564990737 1670317155
31179 remove the comment lines before the 
31180 \family typewriter
31181
31182 \backslash
31183 documentclass
31184 \family default
31185  command,
31186 \end_layout
31187
31188 \begin_layout Enumerate
31189
31190 \change_deleted 564990737 1670317155
31191 remove everything between (and including) the 
31192 \family typewriter
31193
31194 \backslash
31195 makeatletter
31196 \family default
31197  and 
31198 \family typewriter
31199
31200 \backslash
31201 makeatother
31202 \family default
31203  commands,
31204  except for any commands you specifically put into the \SpecialChar LaTeX
31205  preamble.
31206 \end_layout
31207
31208 \begin_layout Standard
31209
31210 \change_deleted 564990737 1670317155
31211 Save the resulting 
31212 \family typewriter
31213 .tex
31214 \family default
31215  file.
31216 \end_layout
31217
31218 \end_deeper
31219 \begin_layout Enumerate
31220
31221 \change_deleted 564990737 1670317155
31222 Run the 
31223 \family typewriter
31224 .tex
31225 \family default
31226  file through \SpecialChar LaTeX
31227  as many times as necessary (usually up to three).
31228 \end_layout
31229
31230 \begin_layout Enumerate
31231
31232 \change_deleted 564990737 1670317155
31233 View the resulting 
31234 \family typewriter
31235 .dvi
31236 \family default
31237  document using,
31238  e.
31239 \begin_inset space \thinspace{}
31240 \end_inset
31241
31242 g.
31243 \begin_inset space \space{}
31244 \end_inset
31245
31246
31247 \family sans
31248 xdvi
31249 \family default
31250 ,
31251  and check if everything is OK (it should,
31252  if you didn't make any mistake).
31253 \end_layout
31254
31255 \begin_layout Standard
31256
31257 \change_deleted 564990737 1670317155
31258 \begin_inset Quotes eld
31259 \end_inset
31260
31261 Peculiarities
31262 \begin_inset Quotes erd
31263 \end_inset
31264
31265  of the Kluwer package
31266 \begin_inset CommandInset label
31267 LatexCommand label
31268 name "subsec:kluwer_peculiarities"
31269
31270 \end_inset
31271
31272
31273 \end_layout
31274
31275 \begin_layout Standard
31276
31277 \change_deleted 564990737 1670317155
31278 The Kluwer package has the following 
31279 \begin_inset Quotes eld
31280 \end_inset
31281
31282 peculiarities
31283 \begin_inset Quotes erd
31284 \end_inset
31285
31286 .
31287 \end_layout
31288
31289 \begin_layout Enumerate
31290
31291 \change_deleted 564990737 1670317155
31292 It is possible to write multiple articles in the same \SpecialChar LaTeX
31293  file
31294 \begin_inset Foot
31295 status collapsed
31296
31297 \begin_layout Plain Layout
31298 I can't imagine any good reason to do this.
31299 \end_layout
31300
31301 \end_inset
31302
31303 .
31304  Each article must be included in the environment 
31305 \begin_inset Quotes eld
31306 \end_inset
31307
31308 article
31309 \begin_inset Quotes erd
31310 \end_inset
31311
31312 .
31313  Unfortunately,
31314  this environment cannot be omitted,
31315  even if you write just one article.
31316  Therefore,
31317  each article starts with the command 
31318 \family typewriter
31319
31320 \backslash
31321 begin{article}
31322 \family default
31323  and,
31324  obviously,
31325  ends with the command 
31326 \family typewriter
31327
31328 \backslash
31329 end{article}
31330 \family default
31331 .
31332  Although this can be implemented in \SpecialChar LyX
31333 ,
31334  I didn't included it,
31335  since it looks ugly and can confuse the novice user.
31336  Therefore,
31337  you need to enter them directly and mark them as \SpecialChar LaTeX
31338  code (the well-known 
31339 \begin_inset Quotes eld
31340 \end_inset
31341
31342 \SpecialChar TeX
31343  code
31344 \begin_inset Quotes erd
31345 \end_inset
31346
31347 ).
31348 \end_layout
31349
31350 \begin_layout Enumerate
31351
31352 \change_deleted 564990737 1670317155
31353 Information given at the beginning of the article (i.
31354 \begin_inset space \thinspace{}
31355 \end_inset
31356
31357 e.
31358 \begin_inset space \space{}
31359 \end_inset
31360
31361 title,
31362  subtitle,
31363  author,
31364  institution,
31365  running title,
31366  running author,
31367  abstract and keywords) must be included in an environment called 
31368 \begin_inset Quotes eld
31369 \end_inset
31370
31371 opening
31372 \begin_inset Quotes erd
31373 \end_inset
31374
31375 .
31376  This is not implemented in \SpecialChar LyX
31377 ,
31378  so you must enter title,
31379  subtitle etc.
31380 \begin_inset space ~
31381 \end_inset
31382
31383 between two \SpecialChar TeX
31384  code lines (
31385 \family typewriter
31386
31387 \backslash
31388 begin{opening}
31389 \family default
31390  and 
31391 \family typewriter
31392
31393 \backslash
31394 end{opening}
31395 \family default
31396 ).
31397 \end_layout
31398
31399 \begin_layout Enumerate
31400
31401 \change_deleted 564990737 1670317155
31402 According to the user manual,
31403  the label of each bibliography item must be written as 
31404 \family typewriter
31405
31406 \backslash
31407 protect
31408 \backslash
31409 citeauthoryear{
31410 \family default
31411 \emph on
31412 author(s)
31413 \family typewriter
31414 \emph default
31415 }{
31416 \family default
31417 \emph on
31418 year
31419 \family typewriter
31420 \emph default
31421 }
31422 \family default
31423 .
31424 \end_layout
31425
31426 \begin_layout Standard
31427
31428 \change_deleted 564990737 1670317155
31429 The 
31430 \family typewriter
31431 kluwer.lyx
31432 \family default
31433  template takes care of all these 
31434 \begin_inset Quotes eld
31435 \end_inset
31436
31437 peculiarities
31438 \begin_inset Quotes erd
31439 \end_inset
31440
31441 .
31442  If you start a new paper using this template you don't need to do anything special.
31443  Just 
31444 \end_layout
31445
31446 \begin_layout Enumerate
31447
31448 \change_deleted 564990737 1670317155
31449 don't delete the \SpecialChar TeX
31450  code included in the template,
31451  and
31452 \end_layout
31453
31454 \begin_layout Enumerate
31455
31456 \change_deleted 564990737 1670317155
31457 copy the example bibliography item included in the template and modify it as necessary to enter new bibliography items.
31458 \end_layout
31459
31460 \begin_layout Standard
31461
31462 \change_deleted 564990737 1671097446
31463 Paper
31464 \end_layout
31465
31466 \begin_layout Standard
31467
31468 \change_deleted 564990737 1671097446
31469 The document class 
31470 \family sans
31471 paper
31472 \family default
31473  provides an alternative to the standard 
31474 \family sans
31475 article
31476 \family default
31477  class.
31478  It provides similar functionality,
31479  but you might prefer this layout with sans serif sections,
31480  headings,
31481  and more.
31482 \end_layout
31483
31484 \begin_layout Standard
31485
31486 \change_deleted 564990737 1671097446
31487 Springer Journals (
31488 \family sans
31489 svjour
31490 \family default
31491 )
31492 \end_layout
31493
31494 \begin_layout Standard
31495
31496 \change_deleted 564990737 1671097446
31497 by 
31498 \noun on
31499 Martin Vermeer
31500 \end_layout
31501
31502 \begin_layout Standard
31503
31504 \change_deleted 564990737 1671097446
31505 Description
31506 \end_layout
31507
31508 \begin_layout Standard
31509
31510 \change_deleted 564990737 1671097446
31511 These are the layout files for some of the journal formats used by Springer Verlag and listed on 
31512 \begin_inset Flex URL
31513 status collapsed
31514
31515 \begin_layout Plain Layout
31516
31517 http://www.springer.de/author/tex/help-journals.html
31518 \end_layout
31519
31520 \end_inset
31521
31522 ,
31523  where you should also go to fetch the class files (yes,
31524  these are \SpecialChar LaTeX2e
31525  now!).
31526  It is a modular system:
31527  the things common to all journals are implemented in 
31528 \family typewriter
31529 svjour.inc
31530 \family default
31531 ,
31532  which journal-specific layout files (such as,
31533  e.
31534 \begin_inset space \thinspace{}
31535 \end_inset
31536
31537 g.
31538 \begin_inset space \space{}
31539 \end_inset
31540
31541
31542 \family typewriter
31543 svjog.layout
31544 \family default
31545  for Journal of Geodesy) can include.
31546 \end_layout
31547
31548 \begin_layout Standard
31549
31550 \change_deleted 564990737 1671097446
31551 This means that implementing support for any other Springer journal on this list is as simple as writing your own 
31552 \family typewriter
31553 sv
31554 \family default
31555 <myjournal>
31556 \family typewriter
31557 .layout
31558 \family default
31559  file following the outline given in 
31560 \family typewriter
31561 svjog.layout
31562 \family default
31563 .
31564  
31565 \end_layout
31566
31567 \begin_layout Standard
31568
31569 \change_deleted 564990737 1671097446
31570 It is reasonably well tested only for the Journal of Geodesy.
31571  
31572 \family typewriter
31573 svjour
31574 \family default
31575  and 
31576 \family typewriter
31577 svjog
31578 \family default
31579  come with the standard \SpecialChar LyX
31580  distribution.
31581  Install the relevant class file (downloaded from Springer) in a proper directory,
31582  reconfigure \SpecialChar LaTeX
31583  (in the te\SpecialChar TeX
31584  case by running 
31585 \family typewriter
31586 texhash
31587 \family default
31588 ,
31589  as root if necessary —
31590  doesn't \SpecialChar LyX
31591  take care of this?),
31592  reconfigure \SpecialChar LyX
31593  and it should work.
31594 \end_layout
31595
31596 \begin_layout Standard
31597
31598 \change_deleted 564990737 1671097446
31599 New styles
31600 \end_layout
31601
31602 \begin_layout Standard
31603
31604 \change_deleted 564990737 1671097446
31605 A large number of theorem-like styles —
31606  
31607 \family sans
31608 Claim,
31609  Conjecture,
31610
31611 \family default
31612  
31613 \family sans
31614 \SpecialChar ldots
31615 Theorem
31616 \family default
31617 .
31618 \end_layout
31619
31620 \begin_layout Standard
31621
31622 \change_deleted 564990737 1671097446
31623
31624 \family sans
31625 Headnote,
31626  Dedication,
31627  Subtitle,
31628  Running_\SpecialChar LaTeX
31629 _Title,
31630  Author_Running,
31631  Institute,
31632  Mail,
31633  Offprints,
31634  Keywords,
31635  Acknowledgements,
31636  Acknowledgement
31637 \family default
31638 .
31639  See the Springer class file documentation for details.
31640 \end_layout
31641
31642 \begin_layout Standard
31643
31644 \change_deleted 564990737 1671097446
31645 Supported journals
31646 \end_layout
31647
31648 \begin_layout Itemize
31649
31650 \change_deleted 564990737 1671097446
31651
31652 \emph on
31653 Journal of Geodesy
31654 \emph default
31655 :
31656  
31657 \family typewriter
31658 svjog.layout
31659 \family default
31660  —
31661  Martin Vermeer
31662 \end_layout
31663
31664 \begin_layout Itemize
31665
31666 \change_deleted 564990737 1671097446
31667
31668 \emph on
31669 Probability Theory and Related Fields
31670 \emph default
31671 :
31672  
31673 \family typewriter
31674 svprobth.layout
31675 \family default
31676  —
31677  Jean-Marc Lasgouttes
31678 \end_layout
31679
31680 \begin_layout Standard
31681
31682 \change_deleted 564990737 1671097446
31683 Add your own,
31684  it isn't so hard!
31685 \end_layout
31686
31687 \begin_layout Standard
31688
31689 \change_deleted 564990737 1671097446
31690 Credits
31691 \end_layout
31692
31693 \begin_layout Standard
31694
31695 \change_deleted 564990737 1671097446
31696 These files are partly based on the older 
31697 \family typewriter
31698 ejour2.layout
31699 \family default
31700 ,
31701  which was again based on a tinkered-with version of an old \SpecialChar LaTeX
31702  2.09 style file from Springer.
31703  All this,
31704  and the 
31705 \family typewriter
31706 ejour2
31707 \family default
31708  layout,
31709  are now defunct.
31710  Jean-Marc Lasgouttes helped out big in making me find my way around the \SpecialChar LyX
31711  layout file mechanism.
31712 \end_layout
31713
31714 \begin_layout Standard
31715
31716 \change_deleted 564990737 1671097446
31717 Bugs
31718 \end_layout
31719
31720 \begin_layout Standard
31721
31722 \change_deleted 564990737 1671097446
31723 Probably.
31724  But probably less than in the old hacked-\SpecialChar LaTeX
31725  
31726 \family typewriter
31727 ejour2
31728 \family default
31729 .
31730 \end_layout
31731
31732 \begin_layout Chapter
31733 \SpecialChar LyX
31734  Features needing Extra Software
31735 \end_layout
31736
31737 \begin_layout Section
31738 Checking \SpecialChar TeX
31739
31740 \end_layout
31741
31742 \begin_layout Standard
31743 by 
31744 \noun on
31745 Asger Alstrup
31746 \end_layout
31747
31748 \begin_layout Subsection
31749 Introduction
31750 \end_layout
31751
31752 \begin_layout Standard
31753 If you have the 
31754 \family typewriter
31755 chktex
31756 \family default
31757  program installed
31758 \begin_inset Foot
31759 status collapsed
31760
31761 \begin_layout Plain Layout
31762
31763 \family typewriter
31764 chktex
31765 \family default
31766  is not yet available when you are using the \SpecialChar LaTeX
31767  distribution MiK\SpecialChar TeX
31768 .
31769 \end_layout
31770
31771 \end_inset
31772
31773 ,
31774  you'll find in the 
31775 \family sans
31776 Tools
31777 \family default
31778  menu the entry:
31779  
31780 \family sans
31781 Check
31782 \begin_inset space ~
31783 \end_inset
31784
31785 TeX
31786 \family default
31787 .
31788  You can get 
31789 \family typewriter
31790 chktex
31791 \family default
31792  from CTAN,
31793 \begin_inset Newline newline
31794 \end_inset
31795
31796
31797 \begin_inset CommandInset href
31798 LatexCommand href
31799 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
31800 literal "false"
31801
31802 \end_inset
31803
31804 .
31805 \end_layout
31806
31807 \begin_layout Standard
31808 The 
31809 \family sans
31810 Chk\SpecialChar TeX
31811
31812 \family default
31813  package is a program that was written by 
31814 \begin_inset Flex Noun
31815 status collapsed
31816
31817 \begin_layout Plain Layout
31818 Jens T.
31819 \begin_inset space ~
31820 \end_inset
31821
31822 Berger Thielemann
31823 \end_layout
31824
31825 \end_inset
31826
31827  in frustration because some constructs in \SpecialChar LaTeX
31828  are sometimes non-intuitive,
31829  and easy to forget.
31830  The program runs over your \SpecialChar LaTeX
31831  file,
31832  checks the integrity of the file,
31833  and flags some common errors.
31834  In other technical words,
31835  it is 
31836 \family typewriter
31837 lint
31838 \family default
31839  for \SpecialChar LaTeX
31840 .
31841 \end_layout
31842
31843 \begin_layout Standard
31844 Well,
31845  what is a syntax checker doing in \SpecialChar LyX
31846  which is supposed to produce correct \SpecialChar LaTeX
31847  anyways?
31848  The answer is simple:
31849  Just as 
31850 \family typewriter
31851 Lint
31852 \family default
31853  not only checks the 
31854 \emph on
31855 syntax
31856 \emph default
31857  of C programs,
31858  but also does 
31859 \emph on
31860 semantic
31861 \emph default
31862  checks for type-errors,
31863  
31864 \family sans
31865 Chk\SpecialChar TeX
31866
31867 \family default
31868  catches some common 
31869 \emph on
31870 typographic
31871 \emph default
31872  errors,
31873  in addition to the syntactical ones.
31874  Specifically,
31875  
31876 \family sans
31877 Chk\SpecialChar TeX
31878
31879 \family default
31880  is capable of detecting several common errors,
31881  such as
31882 \end_layout
31883
31884 \begin_layout Itemize
31885 Ellipsis detection:
31886 \begin_inset Newline newline
31887 \end_inset
31888
31889 Use \SpecialChar ldots
31890  instead of ...
31891 \end_layout
31892
31893 \begin_layout Itemize
31894 No space in front of/after parenthesis:
31895 \begin_inset Newline newline
31896 \end_inset
31897
31898 ( wrong spacing )
31899 \end_layout
31900
31901 \begin_layout Itemize
31902 Enforcement of normal space after common abbreviations:
31903 \begin_inset Newline newline
31904 \end_inset
31905
31906 e.
31907 \begin_inset space \thinspace{}
31908 \end_inset
31909
31910 g.
31911 \begin_inset space \space{}
31912 \end_inset
31913
31914 is too wide spacing.
31915 \end_layout
31916
31917 \begin_layout Itemize
31918 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
31919 \begin_inset Newline newline
31920 \end_inset
31921
31922 This is a TEST.
31923  And this is wrong spacing.
31924 \end_layout
31925
31926 \begin_layout Itemize
31927 Space in front of labels and similar commands:
31928 \begin_inset Newline newline
31929 \end_inset
31930
31931 The label should stick right up to the text to avoid falling to a wrong page.
31932  
31933 \begin_inset CommandInset label
31934 LatexCommand label
31935 name "sec:chktex"
31936
31937 \end_inset
31938
31939  
31940 \begin_inset Foot
31941 status collapsed
31942
31943 \begin_layout Plain Layout
31944 This footnote is in danger of falling off to a wrong page
31945 \end_layout
31946
31947 \end_inset
31948
31949  The label is separated too much.
31950 \end_layout
31951
31952 \begin_layout Itemize
31953 Space in front of references,
31954  instead of hard spaces:
31955 \begin_inset Newline newline
31956 \end_inset
31957
31958 If you have bad luck,
31959  the text will break right between the referenced text and reference number,
31960  and that's a pity.
31961  See section 
31962 \begin_inset CommandInset ref
31963 LatexCommand ref
31964 reference "sec:chktex"
31965 nolink "false"
31966
31967 \end_inset
31968
31969 .
31970 \end_layout
31971
31972 \begin_layout Itemize
31973 Use of 
31974 \begin_inset Quotes eld
31975 \end_inset
31976
31977 x
31978 \begin_inset Quotes erd
31979 \end_inset
31980
31981  instead of 
31982 \begin_inset Formula $\times$
31983 \end_inset
31984
31985  between numbers:
31986 \begin_inset Newline newline
31987 \end_inset
31988
31989 2x2 looks cheap compared to 
31990 \begin_inset Formula $2\times2$
31991 \end_inset
31992
31993 .
31994 \end_layout
31995
31996 \begin_layout Standard
31997 and more \SpecialChar ldots
31998  It is an invaluable tool when you are 
31999 \begin_inset Quotes eld
32000 \end_inset
32001
32002 finishing up
32003 \begin_inset Quotes erd
32004 \end_inset
32005
32006  your document before printing,
32007  and you should run it right after the obligatory spelling check,
32008  and before you go fine tuning the typesetting.
32009 \end_layout
32010
32011 \begin_layout Subsection
32012 How to use it
32013 \end_layout
32014
32015 \begin_layout Standard
32016 If you have the program installed,
32017  usage is as simple as choosing 
32018 \family sans
32019 Tools\SpecialChar menuseparator
32020 Check
32021 \begin_inset space ~
32022 \end_inset
32023
32024 TeX
32025 \family default
32026 .
32027  This will make \SpecialChar LyX
32028  generate a \SpecialChar LaTeX
32029  file of your document,
32030  start 
32031 \family sans
32032 Chk\SpecialChar TeX
32033
32034 \family default
32035  to check it,
32036  and then make \SpecialChar LyX
32037  insert 
32038 \begin_inset Quotes eld
32039 \end_inset
32040
32041 error boxes
32042 \begin_inset Quotes erd
32043 \end_inset
32044
32045  with the warnings from 
32046 \family sans
32047 Chk\SpecialChar TeX
32048
32049 \family default
32050 ,
32051  if there were any.
32052  The warnings will be placed close to the point of the mistake,
32053  and you can quickly find them by using the 
32054 \family sans
32055 Navigate\SpecialChar menuseparator
32056 Error
32057 \family default
32058  menu item,
32059  or the shortcut key 
32060 \family sans
32061 C-g
32062 \family default
32063  from the default 
32064 \family typewriter
32065 cua
32066 \family default
32067  bind file.
32068  Open the error boxes by clicking on them with the mouse,
32069  or use the shortcut key 
32070 \family sans
32071 C-i
32072 \family default
32073  from 
32074 \family typewriter
32075 cua
32076 \family default
32077  bindings,
32078  or the corresponding 
32079 \family sans
32080 C-o
32081 \family default
32082  for the alternate 
32083 \family typewriter
32084 emacs
32085 \family default
32086  bind file.
32087  Read the warning and correct the mistake,
32088  if it is a mistake.
32089  If you have trouble understanding what the warning is about,
32090  you can safely ignore it.
32091  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
32092 \family sans
32093 Chk\SpecialChar TeX
32094
32095 \family default
32096 ,
32097  and this gap can make some warnings seem arcane or just plain silly.
32098 \end_layout
32099
32100 \begin_layout Standard
32101 This document is an excellent testing bed for the feature,
32102  and it should provide quite a few warnings for you to fiddle with.
32103  Since computers are only so smart,
32104  expect most of the warnings to be false alarms,
32105  though.
32106 \end_layout
32107
32108 \begin_layout Subsection
32109 How to fine tune it
32110 \end_layout
32111
32112 \begin_layout Standard
32113 Sometimes,
32114  you'll find that 
32115 \family sans
32116 Chk\SpecialChar TeX
32117
32118 \family default
32119  makes more noise than suits your mood.
32120  Then you can choose not to use it,
32121  wait until your mood changes,
32122  or try to customize 
32123 \family sans
32124 Chk\SpecialChar TeX
32125
32126 \family default
32127  to get better along with you.
32128 \end_layout
32129
32130 \begin_layout Standard
32131 Although 
32132 \family sans
32133 Chk\SpecialChar TeX
32134
32135 \family default
32136  
32137 \emph on
32138 is
32139 \emph default
32140  very configurable and extensible,
32141  you should not expect to solve all problems with 
32142 \family sans
32143 Chk\SpecialChar TeX
32144
32145 \family default
32146  in \SpecialChar LyX
32147  this way.
32148  Since \SpecialChar LyX
32149  has to generate a somewhat special \SpecialChar LaTeX
32150  file to be able to match the line numbers from the 
32151 \family sans
32152 Chk\SpecialChar TeX
32153
32154 \family default
32155  output
32156 \begin_inset Foot
32157 status collapsed
32158
32159 \begin_layout Plain Layout
32160 You can inspect the specific output from 
32161 \family sans
32162 chktex
32163 \family default
32164  by using 
32165 \family sans
32166 Document\SpecialChar menuseparator
32167 \SpecialChar LaTeX
32168
32169 \begin_inset space ~
32170 \end_inset
32171
32172 Log
32173 \family default
32174  right after a 
32175 \family sans
32176 chktex
32177 \family default
32178  run.
32179 \end_layout
32180
32181 \end_inset
32182
32183  to the internal document structure,
32184  some of the warnings will not appear correctly.
32185  There are two things you can do about this:
32186 \end_layout
32187
32188 \begin_layout Itemize
32189 Fine tune the 
32190 \family sans
32191 Chk\SpecialChar TeX
32192
32193 \family default
32194  invocation command line in 
32195 \begin_inset Flex Noun
32196 status collapsed
32197
32198 \begin_layout Plain Layout
32199 Tools\SpecialChar menuseparator
32200 Preferences\SpecialChar menuseparator
32201 Output\SpecialChar menuseparator
32202 LaTeX\SpecialChar menuseparator
32203 CheckTeX command
32204 \end_layout
32205
32206 \end_inset
32207
32208 ,
32209  or the global 
32210 \family sans
32211 Chk\SpecialChar TeX
32212
32213 \family default
32214  installation configuration file (usually with the file 
32215 \family typewriter
32216 chktexrc
32217 \family default
32218 ).
32219  See below to learn what warnings can be enabled and disabled on the command line.
32220 \end_layout
32221
32222 \begin_layout Itemize
32223 Export your document as a raw \SpecialChar LaTeX
32224  file using 
32225 \family sans
32226 File\SpecialChar menuseparator
32227 Export\SpecialChar menuseparator
32228 \SpecialChar LaTeX
32229
32230 \family default
32231  and run 
32232 \family typewriter
32233 chktex
32234 \family default
32235  manually on that.
32236  Invoked in this way,
32237  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
32238 ,
32239  but with a little patience,
32240  you should be able to do it.
32241 \end_layout
32242
32243 \begin_layout Standard
32244 Here follows the warning messages that can be enabled and disabled in 
32245 \family sans
32246 Preferences
32247 \family default
32248 .
32249  Use 
32250 \family typewriter
32251 -n#
32252 \family default
32253  to disable a warning,
32254  and 
32255 \family typewriter
32256 -w#
32257 \family default
32258  to enable a warning.
32259  The emphasized entries are disabled by default,
32260  because the default is "
32261 \family typewriter
32262 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
32263 \family default
32264 ".
32265 \end_layout
32266
32267 \begin_layout Standard
32268 Notice that you should only use the options that enable and disable warnings,
32269  because \SpecialChar LyX
32270  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
32271 \family typewriter
32272 chktex
32273 \family default
32274 .
32275 \end_layout
32276
32277 \begin_layout Enumerate
32278
32279 \size small
32280 \emph on
32281 Command terminated with space.
32282 \end_layout
32283
32284 \begin_layout Enumerate
32285
32286 \size small
32287 Non-breaking space (
32288 \begin_inset Quotes eld
32289 \end_inset
32290
32291
32292 \family typewriter
32293 ~
32294 \family default
32295
32296 \begin_inset Quotes erd
32297 \end_inset
32298
32299 ) should have been used.
32300 \end_layout
32301
32302 \begin_layout Enumerate
32303
32304 \size small
32305 \emph on
32306 You should enclose the previous parenthesis with 
32307 \begin_inset Quotes eld
32308 \end_inset
32309
32310
32311 \family typewriter
32312 {}
32313 \family default
32314
32315 \begin_inset Quotes erd
32316 \end_inset
32317
32318 .
32319 \end_layout
32320
32321 \begin_layout Enumerate
32322
32323 \size small
32324 Italic correction (
32325 \begin_inset Quotes eld
32326 \end_inset
32327
32328
32329 \family typewriter
32330
32331 \backslash
32332 /
32333 \family default
32334
32335 \begin_inset Quotes erd
32336 \end_inset
32337
32338 ) found in non-italic buffer.
32339 \end_layout
32340
32341 \begin_layout Enumerate
32342
32343 \size small
32344 Italic correction (
32345 \begin_inset Quotes eld
32346 \end_inset
32347
32348
32349 \family typewriter
32350
32351 \backslash
32352 /
32353 \family default
32354
32355 \begin_inset Quotes erd
32356 \end_inset
32357
32358 ) found more than once.
32359 \end_layout
32360
32361 \begin_layout Enumerate
32362
32363 \size small
32364 \emph on
32365 No italic correction (
32366 \begin_inset Quotes eld
32367 \end_inset
32368
32369
32370 \family typewriter
32371
32372 \backslash
32373 /
32374 \family default
32375
32376 \begin_inset Quotes erd
32377 \end_inset
32378
32379 ) found.
32380 \end_layout
32381
32382 \begin_layout Enumerate
32383
32384 \size small
32385 Accent command 
32386 \begin_inset Quotes eld
32387 \end_inset
32388
32389
32390 \family typewriter
32391 cmd
32392 \family default
32393
32394 \begin_inset Quotes erd
32395 \end_inset
32396
32397  needs use of 
32398 \begin_inset Quotes eld
32399 \end_inset
32400
32401
32402 \family typewriter
32403 cmd
32404 \family default
32405
32406 \begin_inset Quotes erd
32407 \end_inset
32408
32409 .
32410 \end_layout
32411
32412 \begin_layout Enumerate
32413
32414 \size small
32415 Wrong length of dash may have been used.
32416 \end_layout
32417
32418 \begin_layout Enumerate
32419
32420 \size small
32421 \emph on
32422 \begin_inset Quotes eld
32423 \end_inset
32424
32425
32426 \family typewriter
32427 %s
32428 \family default
32429
32430 \begin_inset Quotes erd
32431 \end_inset
32432
32433  expected,
32434  found 
32435 \begin_inset Quotes eld
32436 \end_inset
32437
32438
32439 \family typewriter
32440 %s
32441 \family default
32442
32443 \begin_inset Quotes erd
32444 \end_inset
32445
32446 .
32447 \end_layout
32448
32449 \begin_layout Enumerate
32450
32451 \size small
32452 Solo 
32453 \begin_inset Quotes eld
32454 \end_inset
32455
32456
32457 \family typewriter
32458 %s
32459 \family default
32460
32461 \begin_inset Quotes erd
32462 \end_inset
32463
32464  found.
32465 \end_layout
32466
32467 \begin_layout Enumerate
32468
32469 \size small
32470 You should use 
32471 \begin_inset Quotes eld
32472 \end_inset
32473
32474
32475 \family typewriter
32476 %s
32477 \family default
32478
32479 \begin_inset Quotes erd
32480 \end_inset
32481
32482  to achieve an ellipsis.
32483 \end_layout
32484
32485 \begin_layout Enumerate
32486
32487 \size small
32488 Inter-word spacing (
32489 \begin_inset Quotes eld
32490 \end_inset
32491
32492
32493 \family typewriter
32494
32495 \backslash
32496
32497 \family default
32498  
32499 \begin_inset Quotes eld
32500 \end_inset
32501
32502 ) should perhaps be used.
32503 \end_layout
32504
32505 \begin_layout Enumerate
32506
32507 \size small
32508 Inter-sentence spacing (
32509 \begin_inset Quotes eld
32510 \end_inset
32511
32512
32513 \family typewriter
32514
32515 \backslash
32516 @
32517 \family default
32518
32519 \begin_inset Quotes erd
32520 \end_inset
32521
32522 ) should perhaps be used.
32523 \end_layout
32524
32525 \begin_layout Enumerate
32526
32527 \size small
32528 Could not find argument for command.
32529 \end_layout
32530
32531 \begin_layout Enumerate
32532
32533 \size small
32534 No match found for 
32535 \begin_inset Quotes eld
32536 \end_inset
32537
32538
32539 \family typewriter
32540 %s
32541 \family default
32542
32543 \begin_inset Quotes erd
32544 \end_inset
32545
32546 .
32547 \end_layout
32548
32549 \begin_layout Enumerate
32550
32551 \size small
32552 Math mode still on at end of \SpecialChar LaTeX
32553  file.
32554 \end_layout
32555
32556 \begin_layout Enumerate
32557
32558 \size small
32559 Number of 
32560 \begin_inset Quotes eld
32561 \end_inset
32562
32563
32564 \family typewriter
32565 char
32566 \family default
32567
32568 \begin_inset Quotes erd
32569 \end_inset
32570
32571  doesn't match the number of 
32572 \begin_inset Quotes eld
32573 \end_inset
32574
32575
32576 \family typewriter
32577 char
32578 \family default
32579
32580 \begin_inset Quotes erd
32581 \end_inset
32582
32583 .
32584 \end_layout
32585
32586 \begin_layout Enumerate
32587
32588 \size small
32589 You should use either 
32590 \family typewriter
32591
32592 \begin_inset Quotes eld
32593 \end_inset
32594
32595
32596 \family default
32597  or 
32598 \family typewriter
32599
32600 \begin_inset Quotes erd
32601 \end_inset
32602
32603
32604 \family default
32605  as an alternative to 
32606 \begin_inset Quotes eld
32607 \end_inset
32608
32609
32610 \family typewriter
32611 "
32612 \family default
32613
32614 \begin_inset Quotes erd
32615 \end_inset
32616
32617 .
32618 \end_layout
32619
32620 \begin_layout Enumerate
32621
32622 \size small
32623 You should use "
32624 \family typewriter
32625 '
32626 \family default
32627 " (ASCII 39) instead of "
32628 \family typewriter
32629 ´
32630 \family default
32631 " (ASCII 180).
32632 \end_layout
32633
32634 \begin_layout Enumerate
32635
32636 \size small
32637 User-specified pattern found.
32638 \end_layout
32639
32640 \begin_layout Enumerate
32641
32642 \size small
32643 This command might not be intended.
32644 \end_layout
32645
32646 \begin_layout Enumerate
32647
32648 \size small
32649 \emph on
32650 Comment displayed.
32651 \end_layout
32652
32653 \begin_layout Enumerate
32654
32655 \size small
32656 Either 
32657 \family typewriter
32658 ''
32659 \backslash
32660 ,'
32661 \family default
32662  or 
32663 \family typewriter
32664 '
32665 \backslash
32666 ,''
32667 \family default
32668  will look better.
32669 \end_layout
32670
32671 \begin_layout Enumerate
32672
32673 \size small
32674 Delete this space to maintain correct page references.
32675 \end_layout
32676
32677 \begin_layout Enumerate
32678
32679 \size small
32680 \emph on
32681 You might wish to put this between a pair of 
32682 \begin_inset Quotes eld
32683 \end_inset
32684
32685
32686 \family typewriter
32687 {}
32688 \family default
32689
32690 \begin_inset Quotes erd
32691 \end_inset
32692
32693 .
32694 \end_layout
32695
32696 \begin_layout Enumerate
32697
32698 \size small
32699 You ought to remove spaces in front of punctuation.
32700 \end_layout
32701
32702 \begin_layout Enumerate
32703
32704 \size small
32705 Could not execute \SpecialChar LaTeX
32706  command.
32707 \end_layout
32708
32709 \begin_layout Enumerate
32710
32711 \size small
32712 Don't use 
32713 \family typewriter
32714
32715 \backslash
32716 /
32717 \family default
32718  in front of small punctuation.
32719 \end_layout
32720
32721 \begin_layout Enumerate
32722
32723 \family typewriter
32724 \size small
32725 $
32726 \backslash
32727 times$
32728 \family default
32729  may look prettier here.
32730 \end_layout
32731
32732 \begin_layout Enumerate
32733
32734 \size small
32735 \emph on
32736 Multiple spaces detected in output.
32737 \end_layout
32738
32739 \begin_layout Enumerate
32740
32741 \size small
32742 This text may be ignored.
32743 \end_layout
32744
32745 \begin_layout Enumerate
32746
32747 \size small
32748 Use 
32749 \family typewriter
32750
32751 \begin_inset Quotes eld
32752 \end_inset
32753
32754
32755 \family default
32756  to begin quotation,
32757  not 
32758 \family typewriter
32759 '
32760 \family default
32761 .
32762 \end_layout
32763
32764 \begin_layout Enumerate
32765
32766 \size small
32767 Use 
32768 \family typewriter
32769 '
32770 \family default
32771  to end quotation,
32772  not 
32773 \family typewriter
32774
32775 \begin_inset Quotes eld
32776 \end_inset
32777
32778
32779 \family default
32780 .
32781 \end_layout
32782
32783 \begin_layout Enumerate
32784
32785 \size small
32786 Don't mix quotes.
32787 \end_layout
32788
32789 \begin_layout Enumerate
32790
32791 \size small
32792 You should perhaps use 
32793 \begin_inset Quotes eld
32794 \end_inset
32795
32796
32797 \family typewriter
32798 cmd
32799 \family default
32800
32801 \begin_inset Quotes erd
32802 \end_inset
32803
32804  instead.
32805 \end_layout
32806
32807 \begin_layout Enumerate
32808
32809 \size small
32810 You should put a space in front of/after parenthesis.
32811 \end_layout
32812
32813 \begin_layout Enumerate
32814
32815 \size small
32816 You should avoid spaces in front of/after parenthesis.
32817 \end_layout
32818
32819 \begin_layout Enumerate
32820
32821 \size small
32822 \emph on
32823 You should not use punctuation in front of/after quotes.
32824 \end_layout
32825
32826 \begin_layout Enumerate
32827
32828 \size small
32829 Double space found.
32830 \end_layout
32831
32832 \begin_layout Enumerate
32833
32834 \size small
32835 You should put punctuation outside inner/inside display math mode.
32836 \end_layout
32837
32838 \begin_layout Enumerate
32839
32840 \size small
32841 You ought to not use primitive \SpecialChar TeX
32842  in \SpecialChar LaTeX
32843  code.
32844 \end_layout
32845
32846 \begin_layout Enumerate
32847
32848 \size small
32849 You should remove spaces in front of 
32850 \begin_inset Quotes eld
32851 \end_inset
32852
32853
32854 \family typewriter
32855 %s
32856 \family default
32857
32858 \begin_inset Quotes erd
32859 \end_inset
32860
32861
32862 \end_layout
32863
32864 \begin_layout Enumerate
32865
32866 \size small
32867 \begin_inset Quotes eld
32868 \end_inset
32869
32870
32871 \family typewriter
32872 %s
32873 \family default
32874
32875 \begin_inset Quotes erd
32876 \end_inset
32877
32878  is normally not followed by 
32879 \begin_inset Quotes eld
32880 \end_inset
32881
32882
32883 \family typewriter
32884 %c
32885 \family default
32886
32887 \begin_inset Quotes erd
32888 \end_inset
32889
32890 .
32891 \end_layout
32892
32893 \begin_layout Standard
32894 In later versions of \SpecialChar LyX
32895 ,
32896  we hope to provide a more complete interface to this tool (and it's smaller cousin 
32897 \family typewriter
32898 lacheck
32899 \family default
32900 ) to exploit the full power of it.
32901  But it's not exactly useless as it is now:
32902  go try it on one of your existing documents of a certain length and be surprised.
32903 \end_layout
32904
32905 \begin_layout Section
32906 Version Control in \SpecialChar LyX
32907
32908 \end_layout
32909
32910 \begin_layout Standard
32911 by
32912 \noun on
32913  Lars Gullik Bjønnes 
32914 \noun default
32915 and 
32916 \noun on
32917 Pavel Sanda
32918 \end_layout
32919
32920 \begin_layout Subsection
32921 Introduction
32922 \end_layout
32923
32924 \begin_layout Standard
32925 \SpecialChar LyX
32926  supports some of the most basic RCS/CVS/SVN/GIT commands.
32927  If you need something a bit more sophisticated you will have to do that manually in a terminal.
32928 \end_layout
32929
32930 \begin_layout Standard
32931 Also note that CVS support is not as good as subversion support,
32932  so we advise using SVN instead.
32933  A good place to start learning Subversion is the SVN Book
32934 \begin_inset Foot
32935 status collapsed
32936
32937 \begin_layout Plain Layout
32938 \begin_inset CommandInset href
32939 LatexCommand href
32940 target "http://svnbook.red-bean.com/"
32941 literal "false"
32942
32943 \end_inset
32944
32945
32946 \end_layout
32947
32948 \end_inset
32949
32950 .
32951  In the case of RCS you should read 
32952 \begin_inset Quotes eld
32953 \end_inset
32954
32955 rcsintro
32956 \begin_inset Quotes erd
32957 \end_inset
32958
32959  (a man file,
32960  read it with 
32961 \family typewriter
32962 man rcsintro
32963 \family default
32964 ).
32965  This file describes all the basic features of RCS.
32966  You should especially notice the comment about a RCS directory,
32967  and the notion of a master RCS file (the file ending in 
32968 \family typewriter
32969 ,v
32970 \family default
32971 ).
32972 \end_layout
32973
32974 \begin_layout Standard
32975 Before you begin to use the version control features in \SpecialChar LyX
32976 ,
32977  you should be familiar with RCS/CVS/SVN/GIT usage.
32978  The implementation in \SpecialChar LyX
32979  assumes a recent version of the GNU RCS or CVS/SVN package —
32980  no guarantees are made for older versions.
32981  Most of the log messages are not currently displayed after operations —
32982  you can check them in the Messages pane if you are unsure.
32983  Regular users of version control will appreciate the VC toolbar,
32984  which can be enabled via 
32985 \family sans
32986 View\SpecialChar menuseparator
32987 Toolbars\SpecialChar menuseparator
32988 Version
32989 \begin_inset space ~
32990 \end_inset
32991
32992 Control
32993 \family default
32994 .
32995 \end_layout
32996
32997 \begin_layout Standard
32998 For introducing your own external commands consult 
32999 \begin_inset Flex Code
33000 status collapsed
33001
33002 \begin_layout Plain Layout
33003 vc-command
33004 \end_layout
33005
33006 \end_inset
33007
33008  in the manual 
33009 \emph on
33010 \SpecialChar LyX
33011  Functions
33012 \emph default
33013 .
33014 \end_layout
33015
33016 \begin_layout Standard
33017 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
33018 \family sans
33019 Document\SpecialChar menuseparator
33020 Compressed
33021 \family default
33022  if it is checked):
33023  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
33024  Compressed LyX documents are binary files,
33025  which cannot be merged by version control systems.
33026 \end_layout
33027
33028 \begin_layout Subsection
33029 RCS commands in \SpecialChar LyX
33030
33031 \end_layout
33032
33033 \begin_layout Standard
33034 The following sections describe the RCS commands supported by \SpecialChar LyX
33035 .
33036  You can find them in the 
33037 \family sans
33038 File\SpecialChar menuseparator
33039 Version
33040 \begin_inset space ~
33041 \end_inset
33042
33043 Control
33044 \family default
33045  submenu.
33046  \SpecialChar LyX
33047  was tested against RCS 5.7/5.8.
33048 \end_layout
33049
33050 \begin_layout Subsubsection
33051
33052 \family sans
33053 Register
33054 \end_layout
33055
33056 \begin_layout Standard
33057 If your document is not under revision control,
33058  this is the only item shown in the menu.
33059  And if it is under revision control,
33060  the 
33061 \family sans
33062 Register
33063 \family default
33064  item is not visible.
33065  
33066 \end_layout
33067
33068 \begin_layout Standard
33069 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
33070  You are asked interactively to supply an initial description of the document.
33071  The document is now set in Read-Only mode and you have to 
33072 \family sans
33073 Check
33074 \begin_inset space ~
33075 \end_inset
33076
33077 Out
33078 \begin_inset space ~
33079 \end_inset
33080
33081 For
33082 \begin_inset space ~
33083 \end_inset
33084
33085 Edit
33086 \family default
33087 ,
33088  before making any changes to it.
33089  A document under revision control has a 
33090 \begin_inset Quotes eld
33091 \end_inset
33092
33093 [RCS:<version> <locker>]
33094 \begin_inset Quotes erd
33095 \end_inset
33096
33097  item tagged to the filename in the minibuffer.
33098 \end_layout
33099
33100 \begin_layout Standard
33101 RCS command that is run:
33102 \end_layout
33103
33104 \begin_layout LyX-Code
33105
33106 \family typewriter
33107 ci -q -u -i -t-"<initial description>" <file-name>
33108 \end_layout
33109
33110 \begin_layout Standard
33111 Read 
33112 \family typewriter
33113 man ci
33114 \family default
33115  to understand the switches.
33116  
33117 \end_layout
33118
33119 \begin_layout Subsubsection
33120
33121 \family sans
33122 Check In Changes
33123 \end_layout
33124
33125 \begin_layout Standard
33126 When you are finished editing a file,
33127  you check in your changes.
33128  When you do this,
33129  you are asked for a description of the changes.
33130  This is stored in the history log.
33131  The version number is bumped,
33132  your changes are applied to the master RCS file,
33133  the document is unlocked and set to Read-Only mode.
33134 \end_layout
33135
33136 \begin_layout Itemize
33137 RCS command:
33138  
33139 \family typewriter
33140 ci -q -u -m"<description>" <file-name>
33141 \end_layout
33142
33143 \begin_layout Subsubsection
33144
33145 \family sans
33146 Check Out For Edit
33147 \end_layout
33148
33149 \begin_layout Standard
33150 By doing this you lock the document so that only you can edit it.
33151  This will also make the document Read-Write only for you.
33152  You will usually continue editing for a while and when you are finished you check in your changes.
33153  The status line is changed to reflect that you have locked the file.
33154 \end_layout
33155
33156 \begin_layout Itemize
33157 RCS command:
33158  
33159 \family typewriter
33160 co -q -l <file-name>
33161 \end_layout
33162
33163 \begin_layout Subsubsection
33164
33165 \family sans
33166 Revert To Repository Version
33167 \end_layout
33168
33169 \begin_layout Standard
33170 This will discard all changes made to the document since the last check in.
33171  You get a warning before changes are discarded.
33172 \end_layout
33173
33174 \begin_layout Itemize
33175 RCS command:
33176  
33177 \family typewriter
33178 co -f -u<version> <file-name>
33179 \end_layout
33180
33181 \begin_layout Subsubsection
33182
33183 \family sans
33184 Copy
33185 \end_layout
33186
33187 \begin_layout Standard
33188 This will create a copy of the current document.
33189  Since RCS does not support copy operations natively,
33190  the version history is not preserved,
33191  and the copy is added as a new file.
33192  It requires a clean document without any changes since the last checkin.
33193  You are asked for a file name and a description of the copy operation.
33194  After that the copy is created,
33195  both locally and in the repository.
33196  If the parent directories of the copied and original document differ,
33197  all relative paths of included files of the copy are adjusted (like in 
33198 \family sans
33199 File\SpecialChar menuseparator
33200 Save As
33201 \family default
33202 \SpecialChar ldots
33203 ).
33204  Finally,
33205  the copy is loaded instead of the original document.
33206 \end_layout
33207
33208 \begin_layout Labeling
33209 \labelwidthstring 00.00.0000
33210 RCS
33211 \begin_inset space ~
33212 \end_inset
33213
33214 commands:
33215  
33216 \begin_inset space ~
33217 \end_inset
33218
33219
33220 \begin_inset Newline newline
33221 \end_inset
33222
33223 Copy 
33224 \begin_inset Flex Code
33225 status collapsed
33226
33227 \begin_layout Plain Layout
33228
33229 \family typewriter
33230 \begin_inset Quotes qld
33231 \end_inset
33232
33233 <file-name>
33234 \begin_inset Quotes qld
33235 \end_inset
33236
33237
33238 \end_layout
33239
33240 \end_inset
33241
33242  to 
33243 \begin_inset Flex Code
33244 status collapsed
33245
33246 \begin_layout Plain Layout
33247
33248 \family typewriter
33249 \begin_inset Quotes qld
33250 \end_inset
33251
33252 <new-file-name>
33253 \begin_inset Quotes qld
33254 \end_inset
33255
33256
33257 \end_layout
33258
33259 \end_inset
33260
33261
33262 \begin_inset Newline newline
33263 \end_inset
33264
33265
33266 \begin_inset Flex Code
33267 status collapsed
33268
33269 \begin_layout Plain Layout
33270 ci -q -u 
33271 \family typewriter
33272 -i 
33273 \begin_inset Quotes qld
33274 \end_inset
33275
33276 <new-file-name>
33277 \begin_inset Quotes qld
33278 \end_inset
33279
33280
33281 \end_layout
33282
33283 \end_inset
33284
33285
33286 \end_layout
33287
33288 \begin_layout Subsubsection
33289
33290 \family sans
33291 Undo Last Checkin
33292 \end_layout
33293
33294 \begin_layout Standard
33295 This makes as if the last check in never happened.
33296  No changes are made to the document loaded into \SpecialChar LyX
33297 ,
33298  but the last version is removed from the master RCS file.
33299 \end_layout
33300
33301 \begin_layout Itemize
33302 RCS command:
33303  
33304 \family typewriter
33305 rcs -o<version> <file-name>
33306 \end_layout
33307
33308 \begin_layout Subsubsection
33309
33310 \family sans
33311 Show History
33312 \end_layout
33313
33314 \begin_layout Standard
33315 This shows the complete history of the RCS document.
33316  The output of 
33317 \family typewriter
33318 rlog <file-name>
33319 \family default
33320  is shown in a browser.
33321  See 
33322 \family typewriter
33323 man rlog
33324 \family default
33325  for more info.
33326 \end_layout
33327
33328 \begin_layout Subsubsection
33329 Revision info
33330 \end_layout
33331
33332 \begin_layout Standard
33333 \SpecialChar LyX
33334  supports RCS version number,
33335  author name,
33336  date and time of last commit.
33337  All those are extracted from 
33338 \family typewriter
33339 rlog -r <file-name>
33340 \family default
33341 .
33342  See 
33343 \begin_inset CommandInset ref
33344 LatexCommand ref
33345 reference "subsec:VCS-Revision-Information"
33346 nolink "false"
33347
33348 \end_inset
33349
33350  for details.
33351 \end_layout
33352
33353 \begin_layout Subsection
33354 CVS commands in \SpecialChar LyX
33355
33356 \end_layout
33357
33358 \begin_layout Standard
33359 A subset of CVS operations is supported by \SpecialChar LyX
33360 .
33361  You can find the commands in the 
33362 \family sans
33363 File\SpecialChar menuseparator
33364 Version
33365 \begin_inset space ~
33366 \end_inset
33367
33368 Control
33369 \family default
33370  submenu.
33371  The version control system SVN is more powerful,
33372  so please use it instead of CVS if possible.
33373 \end_layout
33374
33375 \begin_layout Subsubsection
33376
33377 \family sans
33378 General CVS usage
33379 \end_layout
33380
33381 \begin_layout Standard
33382 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
33383  If you're using a client-server setup you may need to login before doing the first repository checkout.
33384 \end_layout
33385
33386 \begin_layout Standard
33387 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.
33388  Standard CVS repositories don't operate with a file locking mechanism.
33389  This may be surprising,
33390  but conflicts only occur if people disagree on the proper content of the same part of a document.
33391  So,
33392  if co-workers are used to communicate regularly,
33393  these conflicts occur rarely.
33394  If they don't communicate they have a fundamental problem anyway.
33395  Nevertheless some people like to work with so called 
33396 \begin_inset Quotes eld
33397 \end_inset
33398
33399 reserved checkouts
33400 \begin_inset Quotes erd
33401 \end_inset
33402
33403 .
33404  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.
33405  When the changes are checked in the working copy returns to readonly state.
33406  With \SpecialChar LyX
33407  one has to edit the 
33408 \begin_inset Flex Code
33409 status collapsed
33410
33411 \begin_layout Plain Layout
33412 .cvsrc
33413 \end_layout
33414
33415 \end_inset
33416
33417  file and add the line 
33418 \begin_inset Flex Code
33419 status collapsed
33420
33421 \begin_layout Plain Layout
33422 cvs -r
33423 \end_layout
33424
33425 \end_inset
33426
33427  to work with reserved checkouts.
33428  The benefit is the possibility to see who is using a writable copy of some document.
33429  It's not guaranteed only one user makes a copy writable.
33430 \end_layout
33431
33432 \begin_layout Standard
33433 \SpecialChar LyX
33434  tries to guess if you're using reserved or non-reserved checkouts.
33435  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.
33436  When a reserved checkout is detected you have to use 
33437 \begin_inset Flex Noun
33438 status collapsed
33439
33440 \begin_layout Plain Layout
33441 Check Out
33442 \end_layout
33443
33444 \end_inset
33445
33446  to make your working copy writable if it's readonly.
33447  After doing so the 
33448 \begin_inset Flex Noun
33449 status collapsed
33450
33451 \begin_layout Plain Layout
33452 Check In
33453 \end_layout
33454
33455 \end_inset
33456
33457  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
33458 \end_layout
33459
33460 \begin_layout Standard
33461 More information about CVS can be found here 
33462 \begin_inset Flex URL
33463 status collapsed
33464
33465 \begin_layout Plain Layout
33466
33467 http://www.nongnu.org/cvs
33468 \end_layout
33469
33470 \end_inset
33471
33472  and here 
33473 \begin_inset Flex URL
33474 status collapsed
33475
33476 \begin_layout Plain Layout
33477
33478 http://ximbiot.com/cvs
33479 \end_layout
33480
33481 \end_inset
33482
33483 .
33484 \end_layout
33485
33486 \begin_layout Standard
33487 Read 
33488 \family typewriter
33489 man cvs
33490 \family default
33491  to understand the sub-commands and the switches mentioned below.
33492 \end_layout
33493
33494 \begin_layout Subsubsection
33495
33496 \family sans
33497 Register
33498 \end_layout
33499
33500 \begin_layout Standard
33501 If your document is not under revision control,
33502  this is the only item shown in the menu.
33503  And if it is under revision control,
33504  the 
33505 \family sans
33506 Register
33507 \family default
33508  item is not visible.
33509  
33510 \end_layout
33511
33512 \begin_layout Standard
33513 This command registers in CVS your document 
33514 \begin_inset Flex Strong
33515 status collapsed
33516
33517 \begin_layout Plain Layout
33518
33519 \emph on
33520 only
33521 \end_layout
33522
33523 \end_inset
33524
33525  in the case you have already the documents directory under CVS control (in particular 
33526 \family typewriter
33527 CVS/Entries
33528 \family default
33529  file exists).
33530  This means you have to create or checkout the archive by yourself using external tools.
33531  (In case you forget that step \SpecialChar LyX
33532  registers the document with RCS.)
33533 \end_layout
33534
33535 \begin_layout Standard
33536 Then you are asked interactively to supply an initial description of the document.
33537  Don't forget that registered file is not yet checked in.
33538 \end_layout
33539
33540 \begin_layout Standard
33541 CVS command that is run:
33542  
33543 \family typewriter
33544 cvs -q add -m"<entered message>" "<file-name>"
33545 \end_layout
33546
33547 \begin_layout Standard
33548 The term 
33549 \family typewriter
33550 "<file-name>"
33551 \family default
33552  above and for all other CVS commands is an abbreviation for 
33553 \begin_inset Quotes eld
33554 \end_inset
33555
33556 change the current working directory to file location and use the file name without path component as argument
33557 \begin_inset Quotes erd
33558 \end_inset
33559
33560 .
33561 \end_layout
33562
33563 \begin_layout Subsubsection
33564
33565 \family sans
33566 Check In Changes
33567 \end_layout
33568
33569 \begin_layout Standard
33570 When you are finished editing a file,
33571  you commit your changes.
33572  When you do this and you had changed the document,
33573  you are asked for a description of the changes.
33574  After that changes are written to the repository.
33575  In case you didn't change the document and a reserved checkout is detected the reservation made on 
33576 \begin_inset Flex Noun
33577 status collapsed
33578
33579 \begin_layout Plain Layout
33580 Check Out
33581 \end_layout
33582
33583 \end_inset
33584
33585  is undone.
33586 \end_layout
33587
33588 \begin_layout Labeling
33589 \labelwidthstring 00.00.0000
33590 CVS
33591 \begin_inset space ~
33592 \end_inset
33593
33594 command:
33595  
33596 \begin_inset space ~
33597 \end_inset
33598
33599
33600 \begin_inset Newline newline
33601 \end_inset
33602
33603
33604 \begin_inset Flex Code
33605 status collapsed
33606
33607 \begin_layout Plain Layout
33608 cvs 
33609 \family typewriter
33610 -q commit -m"<description>" "<file-name>"
33611 \end_layout
33612
33613 \end_inset
33614
33615  or
33616 \begin_inset Newline newline
33617 \end_inset
33618
33619
33620 \begin_inset Flex Code
33621 status collapsed
33622
33623 \begin_layout Plain Layout
33624 cvs -q unedit 
33625 \family typewriter
33626 "<file-name>"
33627 \end_layout
33628
33629 \end_inset
33630
33631
33632 \end_layout
33633
33634 \begin_layout Subsubsection
33635
33636 \family sans
33637 Check Out Changes
33638 \end_layout
33639
33640 \begin_layout Standard
33641 When you are sharing a repository with others,
33642  you may have to incorporate their changes into your working copy.
33643 \end_layout
33644
33645 \begin_layout Standard
33646 CVS command:
33647  
33648 \family typewriter
33649 cvs -q update "<file-name>"
33650 \end_layout
33651
33652 \begin_layout Standard
33653 If a readonly checkout is detected the working copy is made writable and reserved.
33654 \end_layout
33655
33656 \begin_layout Standard
33657 CVS command:
33658  
33659 \family typewriter
33660 cvs -q edit "<file-name>"
33661 \end_layout
33662
33663 \begin_layout Subsubsection
33664
33665 \family sans
33666 Revert To Repository Version
33667 \end_layout
33668
33669 \begin_layout Standard
33670 This will discard all changes made to the document since the last check in.
33671  You get a warning before changes are discarded.
33672  Firstly the file is deleted,
33673  secondly CVS update command is run.
33674 \end_layout
33675
33676 \begin_layout Standard
33677 CVS command:
33678  
33679 \family typewriter
33680 cvs -q update "<file-name>"
33681 \end_layout
33682
33683 \begin_layout Standard
33684 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
33685 \end_layout
33686
33687 \begin_layout Standard
33688 CVS command:
33689  
33690 \family typewriter
33691 cvs -q unedit "<file-name>"
33692 \end_layout
33693
33694 \begin_layout Subsubsection
33695
33696 \family sans
33697 Copy
33698 \end_layout
33699
33700 \begin_layout Standard
33701 This will create a copy of the current document.
33702  Since CVS does not support copy operations natively,
33703  the version history is not preserved,
33704  and the copy is added as a new file.
33705  It requires a clean document without any changes since the last checkin.
33706  You are asked for a file name and a description of the copy operation.
33707  After that the copy is created,
33708  both locally and in the repository.
33709  If the parent directories of the copied and original document differ,
33710  all relative paths of included files of the copy are adjusted (like in 
33711 \family sans
33712 File\SpecialChar menuseparator
33713 Save As
33714 \family default
33715 \SpecialChar ldots
33716 ).
33717  Finally,
33718  the copy is loaded instead of the original document.
33719 \end_layout
33720
33721 \begin_layout Labeling
33722 \labelwidthstring 00.00.0000
33723 CVS
33724 \begin_inset space ~
33725 \end_inset
33726
33727 commands:
33728  
33729 \begin_inset space ~
33730 \end_inset
33731
33732
33733 \begin_inset Newline newline
33734 \end_inset
33735
33736 Copy 
33737 \begin_inset Flex Code
33738 status collapsed
33739
33740 \begin_layout Plain Layout
33741 "<file-name>"
33742 \end_layout
33743
33744 \end_inset
33745
33746  to 
33747 \begin_inset Flex Code
33748 status collapsed
33749
33750 \begin_layout Plain Layout
33751 "<new-file-name>"
33752 \end_layout
33753
33754 \end_inset
33755
33756
33757 \begin_inset Newline newline
33758 \end_inset
33759
33760
33761 \begin_inset Flex Code
33762 status collapsed
33763
33764 \begin_layout Plain Layout
33765 cvs -q add "<new-file-name>"
33766 \end_layout
33767
33768 \end_inset
33769
33770
33771 \end_layout
33772
33773 \begin_layout Subsubsection
33774
33775 \family sans
33776 Rename
33777 \end_layout
33778
33779 \begin_layout Standard
33780 This will rename the current document.
33781  Since CVS does not support rename operations natively,
33782  the version history is not preserved,
33783  the renamed document is added as a new file,
33784  and the original document is deleted.
33785  It requires a clean document without any changes since the last checkin.
33786  You are asked for a file name and a description of the rename operation.
33787  After that the document is renamed,
33788  both locally and in the repository.
33789  If the parent directories of the new and old file names differ,
33790  all relative paths of included files are adjusted (like in 
33791 \family sans
33792 File\SpecialChar menuseparator
33793 Save As
33794 \family default
33795 \SpecialChar ldots
33796 ).
33797  Finally,
33798  the document is reloaded using the new name.
33799 \end_layout
33800
33801 \begin_layout Labeling
33802 \labelwidthstring 00.00.0000
33803 CVS
33804 \begin_inset space ~
33805 \end_inset
33806
33807 commands:
33808  
33809 \begin_inset space ~
33810 \end_inset
33811
33812
33813 \begin_inset Newline newline
33814 \end_inset
33815
33816 Rename 
33817 \begin_inset Flex Code
33818 status collapsed
33819
33820 \begin_layout Plain Layout
33821 "<file-name>"
33822 \end_layout
33823
33824 \end_inset
33825
33826  to 
33827 \begin_inset Flex Code
33828 status collapsed
33829
33830 \begin_layout Plain Layout
33831 "<new-file-name>"
33832 \end_layout
33833
33834 \end_inset
33835
33836
33837 \begin_inset Newline newline
33838 \end_inset
33839
33840
33841 \begin_inset Flex Code
33842 status collapsed
33843
33844 \begin_layout Plain Layout
33845 cvs -q add "<new-file-name>"
33846 \end_layout
33847
33848 \end_inset
33849
33850
33851 \begin_inset Newline newline
33852 \end_inset
33853
33854
33855 \begin_inset Flex Code
33856 status collapsed
33857
33858 \begin_layout Plain Layout
33859 cvs -q remove "<file-name>"
33860 \end_layout
33861
33862 \end_inset
33863
33864
33865 \end_layout
33866
33867 \begin_layout Subsubsection
33868 Update of the local directory checkout from repository
33869 \end_layout
33870
33871 \begin_layout Standard
33872 Once your documents gets more complex,
33873  containing sub-documents and pictures,
33874  including external 
33875 \begin_inset Flex Code
33876 status collapsed
33877
33878 \begin_layout Plain Layout
33879 .tex
33880 \end_layout
33881
33882 \end_inset
33883
33884  files and so on using version control becomes more complicated.
33885  \SpecialChar LyX
33886  supports updating the whole tree in which resides the document.
33887  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.
33888  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
33889  It's good practice anyway to store multipart documents in an extra directory.
33890 \end_layout
33891
33892 \begin_layout Standard
33893 The 
33894 \begin_inset Flex Code
33895 status collapsed
33896
33897 \begin_layout Plain Layout
33898 Update local directory from repository
33899 \end_layout
33900
33901 \end_inset
33902
33903  command updates the whole directory.
33904  If local changes are detected user is warned before update starts.
33905  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
33906  You have to review and correct the result of the merge.
33907  You'll find the conflicts enclosed in pairs of 
33908 \begin_inset Flex Code
33909 status collapsed
33910
33911 \begin_layout Plain Layout
33912 <<<<<<<
33913 \end_layout
33914
33915 \end_inset
33916
33917  and 
33918 \begin_inset Flex Code
33919 status collapsed
33920
33921 \begin_layout Plain Layout
33922 >>>>>>>
33923 \end_layout
33924
33925 \end_inset
33926
33927  separated by 
33928 \begin_inset Flex Code
33929 status collapsed
33930
33931 \begin_layout Plain Layout
33932 =======
33933 \end_layout
33934
33935 \end_inset
33936
33937 .
33938  The first part is your version as before the update operation with the document name prepended.
33939  The second one is the repository version with the version number after the sequence of 
33940 \begin_inset Flex Code
33941 status collapsed
33942
33943 \begin_layout Plain Layout
33944 >
33945 \end_layout
33946
33947 \end_inset
33948
33949  signs.
33950 \end_layout
33951
33952 \begin_layout Labeling
33953 \labelwidthstring 00.00.0000
33954 CVS
33955 \begin_inset space ~
33956 \end_inset
33957
33958 commands:
33959  
33960 \begin_inset space ~
33961 \end_inset
33962
33963
33964 \begin_inset Newline newline
33965 \end_inset
33966
33967
33968 \begin_inset Flex Code
33969 status collapsed
33970
33971 \begin_layout Plain Layout
33972 cd $path;
33973  cvs diff 
33974 \family typewriter
33975 "."
33976 \end_layout
33977
33978 \end_inset
33979
33980  (Ask if changes are detected.)
33981 \begin_inset Newline newline
33982 \end_inset
33983
33984
33985 \begin_inset Flex Code
33986 status collapsed
33987
33988 \begin_layout Plain Layout
33989 cd $path;
33990  cvs -q update 
33991 \family typewriter
33992 "."
33993 \end_layout
33994
33995 \end_inset
33996
33997
33998 \end_layout
33999
34000 \begin_layout Standard
34001 where 
34002 \begin_inset Flex Code
34003 status collapsed
34004
34005 \begin_layout Plain Layout
34006 $path
34007 \end_layout
34008
34009 \end_inset
34010
34011  stands for the path to the document.
34012 \end_layout
34013
34014 \begin_layout Subsubsection
34015
34016 \family sans
34017 Show History
34018 \end_layout
34019
34020 \begin_layout Standard
34021 This shows the complete history of the CVS document.
34022  The output of 
34023 \family typewriter
34024 cvs log "<file-name>"
34025 \family default
34026  is shown in a browser.
34027 \end_layout
34028
34029 \begin_layout Subsubsection
34030 Revision info
34031 \end_layout
34032
34033 \begin_layout Standard
34034 \SpecialChar LyX
34035  supports CVS version number,
34036  author name,
34037  date and time of last commit.
34038  All those are extracted from 
34039 \family typewriter
34040 cvs log -r <file-name>
34041 \family default
34042 .
34043  See 
34044 \begin_inset CommandInset ref
34045 LatexCommand ref
34046 reference "subsec:VCS-Revision-Information"
34047 nolink "false"
34048
34049 \end_inset
34050
34051  for details.
34052 \end_layout
34053
34054 \begin_layout Subsection
34055 SVN commands in \SpecialChar LyX
34056
34057 \end_layout
34058
34059 \begin_layout Standard
34060 SVN is now partially supported by \SpecialChar LyX
34061 .
34062  You can find the commands in the 
34063 \family sans
34064 File\SpecialChar menuseparator
34065 Version
34066 \begin_inset space ~
34067 \end_inset
34068
34069 Control
34070 \family default
34071  submenu.
34072  Please note that if you use password protected access to repository via ssh,
34073  you will be asked in terminal window.
34074  \SpecialChar LyX
34075  was tested against SVN 1.5,
34076  1.6,
34077  1.7 and 1.8
34078 \begin_inset Foot
34079 status collapsed
34080
34081 \begin_layout Plain Layout
34082 Most of the commands will work with 1.4 too,
34083  see 
34084 \begin_inset CommandInset ref
34085 LatexCommand ref
34086 reference "subsec:SVN-Repo-Update"
34087 nolink "false"
34088
34089 \end_inset
34090
34091 .
34092  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
34093 \end_layout
34094
34095 \end_inset
34096
34097
34098 \end_layout
34099
34100 \begin_layout Subsubsection
34101
34102 \family sans
34103 Register
34104 \end_layout
34105
34106 \begin_layout Standard
34107 If your document is not under revision control,
34108  this is the only item shown in the menu.
34109  And if it is under revision control,
34110  the 
34111 \family sans
34112 Register
34113 \family default
34114  item is not visible.
34115 \end_layout
34116
34117 \begin_layout Standard
34118 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
34119 \family typewriter
34120 .svn/entries
34121 \family default
34122  file exists).
34123  This means you have to checkout the archive by yourself.
34124 \end_layout
34125
34126 \begin_layout Standard
34127 Then you are asked interactively to supply an initial description of the document.
34128  Don't forget that registered file is not yet commited.
34129 \end_layout
34130
34131 \begin_layout Standard
34132 SVN command that is run:
34133  
34134 \family typewriter
34135 svn add -q 
34136 \begin_inset Quotes qld
34137 \end_inset
34138
34139 <file-name>
34140 \begin_inset Quotes qld
34141 \end_inset
34142
34143
34144 \end_layout
34145
34146 \begin_layout Standard
34147 Read 
34148 \family typewriter
34149 man svn
34150 \family default
34151  to understand the switches.
34152 \end_layout
34153
34154 \begin_layout Subsubsection
34155
34156 \family sans
34157 Check In Changes
34158 \end_layout
34159
34160 \begin_layout Standard
34161 When you are finished editing a file,
34162  you commit your changes.
34163  When you do this,
34164  you are asked for a description of the changes.
34165  After that changes are commited.
34166 \end_layout
34167
34168 \begin_layout Standard
34169 SVN command:
34170 \begin_inset Foot
34171 status collapsed
34172
34173 \begin_layout Plain Layout
34174 In case locking is not enabled.
34175  See Section 
34176 \begin_inset CommandInset ref
34177 LatexCommand ref
34178 reference "subsec:SVN-File-Locking"
34179 nolink "false"
34180
34181 \end_inset
34182
34183 .
34184 \end_layout
34185
34186 \end_inset
34187
34188  
34189 \family typewriter
34190 svn commit -q -m"<description>" <file-name>
34191 \end_layout
34192
34193 \begin_layout Subsubsection
34194
34195 \family sans
34196 Check Out For Edit
34197 \end_layout
34198
34199 \begin_layout Standard
34200 Updates the changes of this file from the repository.
34201  Be sure you understand SVN merging and conflicts resolving before using this function,
34202  because all conflicts has to be resolved manually by you!
34203 \end_layout
34204
34205 \begin_layout Standard
34206 SVN command:
34207 \begin_inset Foot
34208 status collapsed
34209
34210 \begin_layout Plain Layout
34211 Ditto.
34212 \end_layout
34213
34214 \end_inset
34215
34216  
34217 \family typewriter
34218 svn update --non-interactive 
34219 \begin_inset Quotes qld
34220 \end_inset
34221
34222 <file-name>
34223 \begin_inset Quotes qld
34224 \end_inset
34225
34226
34227 \end_layout
34228
34229 \begin_layout Subsubsection
34230
34231 \family sans
34232 Revert To Repository Version
34233 \end_layout
34234
34235 \begin_layout Standard
34236 This will discard all changes made to the document since the last check in.
34237  You get a warning before changes are discarded.
34238 \end_layout
34239
34240 \begin_layout Standard
34241 SVN command:
34242  
34243 \family typewriter
34244 svn revert -q 
34245 \begin_inset Quotes qld
34246 \end_inset
34247
34248 <file-name>
34249 \begin_inset Quotes qld
34250 \end_inset
34251
34252
34253 \end_layout
34254
34255 \begin_layout Subsubsection
34256
34257 \family sans
34258 Copy
34259 \end_layout
34260
34261 \begin_layout Standard
34262 This will create a copy of the current document including the version history.
34263  It requires a clean document without any changes since the last checkin.
34264  You are asked for a file name and a description of the copy operation.
34265  After that the copy is created,
34266  both locally and in the repository.
34267  If the parent directories of the copied and original document differ,
34268  all relative paths of included files of the copy are adjusted (like in 
34269 \family sans
34270 File\SpecialChar menuseparator
34271 Save As
34272 \family default
34273 \SpecialChar ldots
34274 ).
34275  Finally,
34276  the copy is loaded instead of the original document.
34277 \end_layout
34278
34279 \begin_layout Labeling
34280 \labelwidthstring 00.00.0000
34281 SVN
34282 \begin_inset space ~
34283 \end_inset
34284
34285 commands:
34286  
34287 \begin_inset space ~
34288 \end_inset
34289
34290
34291 \begin_inset Newline newline
34292 \end_inset
34293
34294
34295 \begin_inset Flex Code
34296 status collapsed
34297
34298 \begin_layout Plain Layout
34299 svn copy -q 
34300 \family typewriter
34301
34302 \begin_inset Quotes qld
34303 \end_inset
34304
34305 <file-name>
34306 \begin_inset Quotes qld
34307 \end_inset
34308
34309  
34310 \begin_inset Quotes qld
34311 \end_inset
34312
34313 <new-file-name>
34314 \begin_inset Quotes qld
34315 \end_inset
34316
34317
34318 \end_layout
34319
34320 \end_inset
34321
34322
34323 \begin_inset Newline newline
34324 \end_inset
34325
34326
34327 \begin_inset Flex Code
34328 status collapsed
34329
34330 \begin_layout Plain Layout
34331 svn commit
34332 \end_layout
34333
34334 \end_inset
34335
34336
34337 \end_layout
34338
34339 \begin_layout Subsubsection
34340
34341 \family sans
34342 Rename
34343 \end_layout
34344
34345 \begin_layout Standard
34346 This will rename the current document including the version history.
34347  It requires a clean document without any changes since the last checkin.
34348  You are asked for a file name and a description of the rename operation.
34349  After that the document is renamed,
34350  both locally and in the repository.
34351  If the parent directories of the new and old file names differ,
34352  all relative paths of included files are adjusted (like in 
34353 \family sans
34354 File\SpecialChar menuseparator
34355 Save As
34356 \family default
34357 \SpecialChar ldots
34358 ).
34359  Finally,
34360  the document is reloaded using the new name.
34361 \end_layout
34362
34363 \begin_layout Labeling
34364 \labelwidthstring 00.00.0000
34365 SVN
34366 \begin_inset space ~
34367 \end_inset
34368
34369 commands:
34370  
34371 \begin_inset space ~
34372 \end_inset
34373
34374
34375 \begin_inset Newline newline
34376 \end_inset
34377
34378
34379 \begin_inset Flex Code
34380 status collapsed
34381
34382 \begin_layout Plain Layout
34383 svn move -q 
34384 \family typewriter
34385
34386 \begin_inset Quotes qld
34387 \end_inset
34388
34389 <file-name>
34390 \begin_inset Quotes qld
34391 \end_inset
34392
34393  
34394 \begin_inset Quotes qld
34395 \end_inset
34396
34397 <new-file-name>
34398 \begin_inset Quotes qld
34399 \end_inset
34400
34401
34402 \end_layout
34403
34404 \end_inset
34405
34406
34407 \begin_inset Newline newline
34408 \end_inset
34409
34410
34411 \begin_inset Flex Code
34412 status collapsed
34413
34414 \begin_layout Plain Layout
34415 svn commit
34416 \end_layout
34417
34418 \end_inset
34419
34420
34421 \end_layout
34422
34423 \begin_layout Subsubsection
34424 \begin_inset CommandInset label
34425 LatexCommand label
34426 name "subsec:SVN-Repo-Update"
34427
34428 \end_inset
34429
34430 Update of the local directory checkout from repository
34431 \begin_inset Foot
34432 status collapsed
34433
34434 \begin_layout Plain Layout
34435 Note that this command will work only with subversion 
34436 \begin_inset Formula $\geqq1.5$
34437 \end_inset
34438
34439
34440 \end_layout
34441
34442 \end_inset
34443
34444
34445 \end_layout
34446
34447 \begin_layout Standard
34448 All the commands above have one shortcoming – they deal with the current document only.
34449  Once your document contains pictures,
34450  includes external 
34451 \begin_inset Flex Code
34452 status collapsed
34453
34454 \begin_layout Plain Layout
34455 .tex
34456 \end_layout
34457
34458 \end_inset
34459
34460  files and so on administration becomes more complicated.
34461  \SpecialChar LyX
34462  now supports updating the whole tree in which resides the document
34463 \begin_inset Foot
34464 status collapsed
34465
34466 \begin_layout Plain Layout
34467 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
34468  
34469 \end_layout
34470
34471 \end_inset
34472
34473 .
34474  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.
34475  
34476 \end_layout
34477
34478 \begin_layout Standard
34479 \begin_inset Flex Code
34480 status collapsed
34481
34482 \begin_layout Plain Layout
34483 Update local directory from repository
34484 \end_layout
34485
34486 \end_inset
34487
34488  command updates the whole directory and in case of merge conflicts local version of the files are left,
34489  so no unintended data loss occurs.
34490  If local changes are detected user is warned before update starts.
34491 \end_layout
34492
34493 \begin_layout Labeling
34494 \labelwidthstring 00.00.0000
34495 SVN
34496 \begin_inset space ~
34497 \end_inset
34498
34499 commands:
34500  
34501 \begin_inset space ~
34502 \end_inset
34503
34504
34505 \begin_inset Newline newline
34506 \end_inset
34507
34508
34509 \begin_inset Flex Code
34510 status collapsed
34511
34512 \begin_layout Plain Layout
34513 svn diff $path
34514 \end_layout
34515
34516 \end_inset
34517
34518  (Ask if changes are detected.)
34519 \begin_inset Newline newline
34520 \end_inset
34521
34522
34523 \begin_inset Flex Code
34524 status collapsed
34525
34526 \begin_layout Plain Layout
34527 svn update --accept mine-full $path
34528 \end_layout
34529
34530 \end_inset
34531
34532
34533 \end_layout
34534
34535 \begin_layout Standard
34536 where 
34537 \begin_inset Flex Code
34538 status collapsed
34539
34540 \begin_layout Plain Layout
34541 $path
34542 \end_layout
34543
34544 \end_inset
34545
34546  stands for the path to the document.
34547 \end_layout
34548
34549 \begin_layout Subsubsection
34550
34551 \family sans
34552 Show History
34553 \end_layout
34554
34555 \begin_layout Standard
34556 This shows the complete history of the SVN document.
34557  The output of 
34558 \family typewriter
34559 svn log 
34560 \begin_inset Quotes qld
34561 \end_inset
34562
34563 <file-name>
34564 \begin_inset Quotes qld
34565 \end_inset
34566
34567
34568 \family default
34569  is shown in a browser.
34570 \end_layout
34571
34572 \begin_layout Subsubsection
34573 File Locking
34574 \begin_inset CommandInset label
34575 LatexCommand label
34576 name "subsec:SVN-File-Locking"
34577
34578 \end_inset
34579
34580
34581 \end_layout
34582
34583 \begin_layout Standard
34584 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.
34585  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
34586  which guarantees that only one user is allowed to edit file at the given time.
34587 \end_layout
34588
34589 \begin_layout Standard
34590 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
34591  
34592 \begin_inset CommandInset ref
34593 LatexCommand ref
34594 reference "subsec:Automatical-Locking-Property"
34595 nolink "false"
34596
34597 \end_inset
34598
34599 ) based on 
34600 \begin_inset Flex Code
34601 status collapsed
34602
34603 \begin_layout Plain Layout
34604 svn:needs-lock
34605 \end_layout
34606
34607 \end_inset
34608
34609  file svn property
34610 \begin_inset Foot
34611 status collapsed
34612
34613 \begin_layout Plain Layout
34614 \begin_inset Flex URL
34615 status open
34616
34617 \begin_layout Plain Layout
34618
34619 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
34620 \end_layout
34621
34622 \end_inset
34623
34624
34625 \end_layout
34626
34627 \end_inset
34628
34629 .
34630  If this property is detected for a given document \SpecialChar LyX
34631  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
34632  This in particular means there are two different modes of file use in \SpecialChar LyX
34633 :
34634 \end_layout
34635
34636 \begin_layout Itemize
34637 Unlocked state.
34638  The loaded file is in the read-only mode.
34639  For editing on needs to check-out.
34640  
34641 \emph on
34642 Check-out
34643 \emph default
34644  consists of updating from the repository and gaining write lock.
34645  If the lock is not possible to obtain,
34646  we remain in unlocked state.
34647 \end_layout
34648
34649 \begin_layout Itemize
34650 Locked state.
34651  The loaded file is in the 
34652 \begin_inset Quotes els
34653 \end_inset
34654
34655 normal
34656 \begin_inset Quotes ers
34657 \end_inset
34658
34659  edit mode.
34660  No other user is allowed to edit the file.
34661  
34662 \emph on
34663 Check-in
34664 \emph default
34665  consists of commiting changes and releasing write-lock.
34666  If no changes have been made to the document,
34667  no commit will be produced
34668 \begin_inset Foot
34669 status collapsed
34670
34671 \begin_layout Plain Layout
34672 Don't be puzzled by the fact that you will be asked for commit message anyway.
34673 \end_layout
34674
34675 \end_inset
34676
34677  and only the write-lock will be released.
34678 \end_layout
34679
34680 \begin_layout Standard
34681 SVN commands:
34682 \end_layout
34683
34684 \begin_layout Labeling
34685 \labelwidthstring 00.00.0000
34686 Check-in:
34687
34688 \family typewriter
34689  svn commit -q -m"<description>" "<file-name>"
34690 \begin_inset Newline newline
34691 \end_inset
34692
34693 svn unlock "<file-name>"
34694 \end_layout
34695
34696 \begin_layout Labeling
34697 \labelwidthstring 00.00.0000
34698 Check-out:
34699  
34700 \family typewriter
34701 svn update "<file-name>"
34702 \begin_inset Newline newline
34703 \end_inset
34704
34705 svn lock "<file-name>"
34706 \end_layout
34707
34708 \begin_layout Subsubsection
34709
34710 \family typewriter
34711 \begin_inset CommandInset label
34712 LatexCommand label
34713 name "subsec:Automatical-Locking-Property"
34714
34715 \end_inset
34716
34717
34718 \family default
34719 Automatic Locking Property
34720 \end_layout
34721
34722 \begin_layout Standard
34723 The above mentioned automatic setting of write permissions of the .lyx file can be set through
34724 \family sans
34725  File\SpecialChar menuseparator
34726 Version
34727 \begin_inset space ~
34728 \end_inset
34729
34730 Control\SpecialChar menuseparator
34731 Use Locking Property
34732 \family default
34733 .
34734  This command is active only when the file is not locked on the svn server (i.e.
34735  you need to check-out before proceeding).
34736 \end_layout
34737
34738 \begin_layout Labeling
34739 \labelwidthstring 00.00.0000
34740 SVN
34741 \begin_inset space ~
34742 \end_inset
34743
34744 commands:
34745 \end_layout
34746
34747 \begin_layout Labeling
34748 \labelwidthstring 00.00.0000
34749 Set:
34750
34751 \family typewriter
34752  svn propset svn:needs-lock ON "<file-name>"
34753 \end_layout
34754
34755 \begin_layout Labeling
34756 \labelwidthstring 00.00.0000
34757 Unset:
34758  
34759 \family typewriter
34760 svn propdel svn:needs-lock "<file-name>"
34761 \end_layout
34762
34763 \begin_layout Subsubsection
34764 \begin_inset CommandInset label
34765 LatexCommand label
34766 name "subsec:VCS-Revision-Information"
34767
34768 \end_inset
34769
34770 Revision Information in Documents
34771 \end_layout
34772
34773 \begin_layout Standard
34774 There are more possibilities how to activate revision information in our document.
34775 \end_layout
34776
34777 \begin_layout Itemize
34778 \SpecialChar LyX
34779  supports directly:
34780 \end_layout
34781
34782 \begin_deeper
34783 \begin_layout Itemize
34784 tree revision information (
34785 \begin_inset Flex Code
34786 status collapsed
34787
34788 \begin_layout Plain Layout
34789 vcs-tree-revision
34790 \end_layout
34791
34792 \end_inset
34793
34794 ).
34795  The result is the output of the 
34796 \begin_inset Flex Code
34797 status collapsed
34798
34799 \begin_layout Plain Layout
34800 svnversion
34801 \end_layout
34802
34803 \end_inset
34804
34805  command,
34806  the following table gives you an idea,
34807  how to read the results.
34808 \end_layout
34809
34810 \begin_layout Standard
34811 \align center
34812 \begin_inset Tabular
34813 <lyxtabular version="3" rows="6" columns="2">
34814 <features tabularvalignment="middle">
34815 <column alignment="left" valignment="top">
34816 <column alignment="left" valignment="top">
34817 <row>
34818 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34819 \begin_inset Text
34820
34821 \begin_layout Plain Layout
34822
34823 \series bold
34824 Output
34825 \end_layout
34826
34827 \end_inset
34828 </cell>
34829 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34830 \begin_inset Text
34831
34832 \begin_layout Plain Layout
34833
34834 \series bold
34835 Meaning
34836 \end_layout
34837
34838 \end_inset
34839 </cell>
34840 </row>
34841 <row>
34842 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34843 \begin_inset Text
34844
34845 \begin_layout Plain Layout
34846 4123:4168
34847 \end_layout
34848
34849 \end_inset
34850 </cell>
34851 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34852 \begin_inset Text
34853
34854 \begin_layout Plain Layout
34855 mixed revision working copy
34856 \end_layout
34857
34858 \end_inset
34859 </cell>
34860 </row>
34861 <row>
34862 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34863 \begin_inset Text
34864
34865 \begin_layout Plain Layout
34866 4168M
34867 \end_layout
34868
34869 \end_inset
34870 </cell>
34871 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34872 \begin_inset Text
34873
34874 \begin_layout Plain Layout
34875 modified working copy
34876 \end_layout
34877
34878 \end_inset
34879 </cell>
34880 </row>
34881 <row>
34882 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34883 \begin_inset Text
34884
34885 \begin_layout Plain Layout
34886 4123S
34887 \end_layout
34888
34889 \end_inset
34890 </cell>
34891 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34892 \begin_inset Text
34893
34894 \begin_layout Plain Layout
34895 switched working copy
34896 \end_layout
34897
34898 \end_inset
34899 </cell>
34900 </row>
34901 <row>
34902 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
34903 \begin_inset Text
34904
34905 \begin_layout Plain Layout
34906 4123P
34907 \end_layout
34908
34909 \end_inset
34910 </cell>
34911 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
34912 \begin_inset Text
34913
34914 \begin_layout Plain Layout
34915 partial working copy,
34916  from a sparse checkout
34917 \end_layout
34918
34919 \end_inset
34920 </cell>
34921 </row>
34922 <row>
34923 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
34924 \begin_inset Text
34925
34926 \begin_layout Plain Layout
34927 4123:4168MS
34928 \end_layout
34929
34930 \end_inset
34931 </cell>
34932 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
34933 \begin_inset Text
34934
34935 \begin_layout Plain Layout
34936 mixed revision,
34937  modified,
34938  switched working copy
34939 \end_layout
34940
34941 \end_inset
34942 </cell>
34943 </row>
34944 </lyxtabular>
34945
34946 \end_inset
34947
34948
34949 \end_layout
34950
34951 \begin_layout Itemize
34952 file revision information.
34953  The result comes from parsing the output of 
34954 \begin_inset Flex Code
34955 status collapsed
34956
34957 \begin_layout Plain Layout
34958 svn
34959 \begin_inset space ~
34960 \end_inset
34961
34962 info
34963 \begin_inset space ~
34964 \end_inset
34965
34966 --xml
34967 \begin_inset space ~
34968 \end_inset
34969
34970 file.lyx
34971 \end_layout
34972
34973 \end_inset
34974
34975 .
34976  Supported flags are:
34977 \end_layout
34978
34979 \begin_deeper
34980 \begin_layout Itemize
34981 version number of the last commit (
34982 \begin_inset Flex Code
34983 status collapsed
34984
34985 \begin_layout Plain Layout
34986 vcs-revision
34987 \end_layout
34988
34989 \end_inset
34990
34991 )
34992 \end_layout
34993
34994 \begin_layout Itemize
34995 author of the last commit (
34996 \begin_inset Flex Code
34997 status collapsed
34998
34999 \begin_layout Plain Layout
35000 vcs-author
35001 \end_layout
35002
35003 \end_inset
35004
35005 )
35006 \end_layout
35007
35008 \begin_layout Itemize
35009 date of the last commit (
35010 \begin_inset Flex Code
35011 status collapsed
35012
35013 \begin_layout Plain Layout
35014 vcs-date
35015 \end_layout
35016
35017 \end_inset
35018
35019 )
35020 \end_layout
35021
35022 \begin_layout Itemize
35023 time of the last commit (
35024 \begin_inset Flex Code
35025 status collapsed
35026
35027 \begin_layout Plain Layout
35028 vcs-time
35029 \end_layout
35030
35031 \end_inset
35032
35033 )
35034 \end_layout
35035
35036 \end_deeper
35037 \begin_layout Standard
35038 You can obtain this info via InsetInfo (
35039 \change_inserted 5863208 1564400022
35040 Insert\SpecialChar menuseparator
35041 Field\SpecialChar menuseparator
35042 Version Control Revision
35043 \change_deleted 5863208 1564399852
35044 e.g.
35045  
35046 \begin_inset Flex Code
35047 status collapsed
35048
35049 \begin_layout Plain Layout
35050 info-insert buffer vcs-date
35051 \end_layout
35052
35053 \end_inset
35054
35055
35056 \change_unchanged
35057 ).
35058  The information will be available only when you have the file stored under svn managment (i.e.
35059  the 
35060 \begin_inset Flex Code
35061 status collapsed
35062
35063 \begin_layout Plain Layout
35064 .svn
35065 \end_layout
35066
35067 \end_inset
35068
35069  directory is available with your document).
35070 \end_layout
35071
35072 \end_deeper
35073 \begin_layout Itemize
35074 Another—
35075 a hacking one—
35076 possibility is to use svn keywords
35077 \begin_inset Foot
35078 status collapsed
35079
35080 \begin_layout Plain Layout
35081 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
35082 \end_layout
35083
35084 \end_inset
35085
35086 .
35087  In short – you set file keywords property (e.g.
35088  
35089 \family sans
35090 svn propset svn:keywords 'Rev' file.lyx
35091 \family default
35092 ) and then paste keyword \SpecialChar TeX
35093  code
35094 \begin_inset Foot
35095 status collapsed
35096
35097 \begin_layout Plain Layout
35098 This is an easy way how to ensure that \SpecialChar LyX
35099  won't break the line in the middle of keyword tag.
35100 \end_layout
35101
35102 \end_inset
35103
35104  tag in your document (e.g.
35105  
35106 \begin_inset Flex Code
35107 status collapsed
35108
35109 \begin_layout Plain Layout
35110 $Rev$
35111 \end_layout
35112
35113 \end_inset
35114
35115 ).
35116  This way svn client will automatically substitute revision number (e.g.
35117  
35118 \begin_inset Flex Code
35119 status collapsed
35120
35121 \begin_layout Plain Layout
35122 $Rev:
35123  59 $
35124 \end_layout
35125
35126 \end_inset
35127
35128 ) after each update and commit.
35129  There are more problems with this approach.
35130  Firstly,
35131  the '$' character is used in \SpecialChar TeX
35132  world for math equations,
35133  so any occurence of math formula 
35134 \begin_inset Formula $Rev$
35135 \end_inset
35136
35137  become 
35138 \begin_inset Formula $Rev:59$
35139 \end_inset
35140
35141  in your \SpecialChar LyX
35142  document.
35143  Similarly for other keywords like Id,
35144  Date,
35145  Author,
35146  etc.
35147  Secondly svn output is dependent on your locales,
35148  so its very easy that svn would produce some problematic strings once Date is used.
35149  Thirdly you get the whole 'Rev:
35150  59' string in your document instead of the plain number.
35151  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
35152  to support it directly.
35153 \end_layout
35154
35155 \begin_layout Subsection
35156 SVN and Windows Environment
35157 \end_layout
35158
35159 \begin_layout Quote
35160 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
35161  they would be well advised to use TortoiseSVN.
35162  —
35163 P.
35164  A.
35165  Rubin
35166 \end_layout
35167
35168 \begin_layout Subsubsection
35169 Preparation
35170 \end_layout
35171
35172 \begin_layout Standard
35173 In addition to installing \SpecialChar LyX
35174 ,
35175  and having access to a Subversion repository,
35176  the user will need to install the Subversion client program.
35177  A Windows installer for the client program is available from 
35178 \begin_inset CommandInset href
35179 LatexCommand href
35180 name "CollabNet"
35181 target "http://www.collab.net/nonav/downloads/subversion/"
35182 literal "false"
35183
35184 \end_inset
35185
35186 .
35187  The user may also want to install 
35188 \begin_inset CommandInset href
35189 LatexCommand href
35190 name "TortoiseSVN"
35191 target "http://tortoisesvn.tigris.org/"
35192 literal "false"
35193
35194 \end_inset
35195
35196 ,
35197  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
35198  Operations done outside \SpecialChar LyX
35199  will typically be more convenient using the Explorer context menu.
35200  Note that TortoiseSVN is not a replacement for the client program,
35201  which is what \SpecialChar LyX
35202  itself will use.
35203 \end_layout
35204
35205 \begin_layout Subsubsection
35206 Bringing a document under Subversion control
35207 \end_layout
35208
35209 \begin_layout Standard
35210 Before a \SpecialChar LyX
35211  document can be brought under version control in Subversion,
35212  its parent directory needs to be under version control.
35213  If the document is being added to a project already in the repository,
35214  this is accomplished by checking the project out to the directory where the new document will be placed.
35215  If the project itself is not yet under version control (for instance,
35216  if this document starts a new project),
35217  the directory must be imported into the repository.
35218  This is done outside \SpecialChar LyX
35219 .
35220  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
35221  or alternatively can be done using the command line client at a DOS prompt.
35222  The procedure for importing the project using TortoiseSVN is described below,
35223  assuming an existing repository and a new project being started in 
35224 \family typewriter
35225 C:
35226 \backslash
35227 new project
35228 \family default
35229 .
35230  For information on using the Subversion client program,
35231  run 
35232 \family typewriter
35233 svn --help 
35234 \family default
35235 in a DOS shell.
35236 \end_layout
35237
35238 \begin_layout Enumerate
35239 Locate 
35240 \family typewriter
35241 C:
35242 \backslash
35243 new project 
35244 \family default
35245 in Windows Explorer,
35246  right click it,
35247  and select 
35248 \family sans
35249 TortoiseSVN\SpecialChar menuseparator
35250 Repo-browser
35251 \family default
35252 .
35253  If necessary,
35254  adjust the URL for the repository,
35255  then click OK.
35256 \end_layout
35257
35258 \begin_layout Enumerate
35259 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
35260 \family sans
35261 Create folder
35262 \family default
35263  Supply a name for the project folder and click OK.
35264  Add a message for the log file if desired,
35265  then click OK again.
35266  The new project folder should appear in the repository.
35267  Finally,
35268  click OK again to exit the repository browser.
35269 \end_layout
35270
35271 \begin_layout Enumerate
35272 Once again right click 
35273 \family typewriter
35274 C:
35275 \backslash
35276 new project
35277 \family default
35278 ,
35279  this time selecting SVN Checkout\SpecialChar ldots
35280  Select the URL of the project folder you just created in the repository,
35281  and set the checkout directory to 
35282 \family typewriter
35283 C:
35284 \backslash
35285 new project.
35286
35287 \family default
35288  Click OK.
35289  You will be warned about a non-empty folder;
35290  click OK to proceed.
35291  You should now have a 
35292 \family typewriter
35293 .svn
35294 \family default
35295  directory under 
35296 \family typewriter
35297 C:
35298 \backslash
35299 new project.
35300 \end_layout
35301
35302 \begin_layout Enumerate
35303 Create or open your document in \SpecialChar LyX
35304  and click 
35305 \family sans
35306 File\SpecialChar menuseparator
35307 Version
35308 \begin_inset space ~
35309 \end_inset
35310
35311 Control\SpecialChar menuseparator
35312 Register.
35313  
35314 \family default
35315 Add a log message and click OK to commit the document to version control.
35316 \end_layout
35317
35318 \begin_layout Standard
35319 From this point onward,
35320  you should have full functionality in the 
35321 \family sans
35322 File\SpecialChar menuseparator
35323 Version
35324 \begin_inset space ~
35325 \end_inset
35326
35327 Control
35328 \family default
35329  menu.
35330  You also have the option of checking the document in and out,
35331  viewing its history,
35332  etc.
35333  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
35334 \end_layout
35335
35336 \begin_layout Subsubsection
35337 SSH tunnel used with SVN under Windows
35338 \end_layout
35339
35340 \begin_layout Standard
35341 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
35342  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,
35343  also be prepared for a great deal of frustration\SpecialChar ldots
35344
35345 \end_layout
35346
35347 \begin_layout Enumerate
35348 Get an svn client for windows,
35349  as described in the previous sections.
35350  When it is a fresh install run some svn command (e.g.
35351  
35352 \begin_inset Flex Code
35353 status collapsed
35354
35355 \begin_layout Plain Layout
35356 svn --version
35357 \end_layout
35358
35359 \end_inset
35360
35361 ) to create config files,
35362  which you will need to change later on.
35363 \end_layout
35364
35365 \begin_layout Enumerate
35366 Choose an ssh client for Windows.
35367  There are several possibilities,
35368  we will use the one from Putty tools
35369 \begin_inset Foot
35370 status collapsed
35371
35372 \begin_layout Plain Layout
35373 \begin_inset Flex URL
35374 status collapsed
35375
35376 \begin_layout Plain Layout
35377
35378 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
35379 \end_layout
35380
35381 \end_inset
35382
35383
35384 \end_layout
35385
35386 \end_inset
35387
35388 .
35389  You will need to set the connection up so that the client doesn't ask for any password from you.
35390  To keep things easy we will use only keys without any additional password protection etc.
35391 \end_layout
35392
35393 \begin_deeper
35394 \begin_layout Enumerate
35395 Generate keys by 
35396 \begin_inset Flex Code
35397 status collapsed
35398
35399 \begin_layout Plain Layout
35400 puttygen
35401 \end_layout
35402
35403 \end_inset
35404
35405 .
35406  Save your private .ppk key file and put the public one on the server side.
35407  If the SVN server runs on Linux,
35408  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 
35409 \begin_inset Quotes eld
35410 \end_inset
35411
35412
35413 \emph on
35414 Public key for pasting into OpenSSH authorized_keys file
35415 \emph default
35416 :
35417 \begin_inset Quotes erd
35418 \end_inset
35419
35420  edit field into the server's 
35421 \begin_inset Flex Code
35422 status collapsed
35423
35424 \begin_layout Plain Layout
35425 ~/.ssh/authorized_keys
35426 \end_layout
35427
35428 \end_inset
35429
35430  / 
35431 \begin_inset Flex Code
35432 status collapsed
35433
35434 \begin_layout Plain Layout
35435 authorized_keys2
35436 \end_layout
35437
35438 \end_inset
35439
35440  file.
35441 \end_layout
35442
35443 \begin_layout Enumerate
35444 Get the Putty's 
35445 \begin_inset Flex Code
35446 status collapsed
35447
35448 \begin_layout Plain Layout
35449 plink
35450 \end_layout
35451
35452 \end_inset
35453
35454 .
35455  In the SVN config file
35456 \begin_inset Foot
35457 status collapsed
35458
35459 \begin_layout Plain Layout
35460 Exact path depends on Windows version,
35461  usually somewhere around 
35462 \begin_inset Flex Code
35463 status collapsed
35464
35465 \begin_layout Plain Layout
35466 c:
35467 \backslash
35468 Documents and Settings
35469 \backslash
35470 user
35471 \backslash
35472 Application Data
35473 \backslash
35474 Subversion
35475 \backslash
35476 config
35477 \end_layout
35478
35479 \end_inset
35480
35481  / 
35482 \begin_inset Flex Code
35483 status collapsed
35484
35485 \begin_layout Plain Layout
35486 AppData
35487 \backslash
35488 Roaming
35489 \backslash
35490 Subversion
35491 \end_layout
35492
35493 \end_inset
35494
35495 .
35496 \end_layout
35497
35498 \end_inset
35499
35500 ,
35501  section [tunnels],
35502  setup ssh command,
35503  e.g.
35504  
35505 \begin_inset Flex Code
35506 status collapsed
35507
35508 \begin_layout Plain Layout
35509 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
35510 \end_layout
35511
35512 \end_inset
35513
35514 .
35515 \begin_inset Foot
35516 status collapsed
35517
35518 \begin_layout Plain Layout
35519 It will usually take a lot of time to get exact command right and it depends on many things.
35520  For example do not have some remote server saved as a default session in Putty etc.
35521  If things fail,
35522  try to connect via plink without SVN first.
35523 \end_layout
35524
35525 \end_inset
35526
35527
35528 \end_layout
35529
35530 \end_deeper
35531 \begin_layout Enumerate
35532 Checkout the SVN archive,
35533  e.
35534 \begin_inset space \thinspace{}
35535 \end_inset
35536
35537 g.
35538 \begin_inset Newline newline
35539 \end_inset
35540
35541
35542 \begin_inset Flex Code
35543 status collapsed
35544
35545 \begin_layout Plain Layout
35546 svn co svn+ssh://user@server/repository_path
35547 \end_layout
35548
35549 \end_inset
35550
35551 .
35552 \end_layout
35553
35554 \begin_layout Subsubsection
35555 End-of-Line Conversions
35556 \end_layout
35557
35558 \begin_layout Standard
35559 When the collaborators are mixing Linux and Windows environments,
35560  \SpecialChar LyX
35561  will use different line endings inside the .lyx files.
35562  This is not a problem as far as \SpecialChar LyX
35563  functionality is concerned,
35564  but the commit diffs will be huge and merge-conflicts prone.
35565  Fortunately SVN itself knows
35566 \begin_inset Foot
35567 status collapsed
35568
35569 \begin_layout Plain Layout
35570 \begin_inset Flex URL
35571 status collapsed
35572
35573 \begin_layout Plain Layout
35574
35575 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
35576 \end_layout
35577
35578 \end_inset
35579
35580
35581 \end_layout
35582
35583 \end_inset
35584
35585  how to deal with CR/LF problems when switching .lyx files to the 
35586 \begin_inset Flex Code
35587 status collapsed
35588
35589 \begin_layout Plain Layout
35590 native
35591 \end_layout
35592
35593 \end_inset
35594
35595  mode.
35596 \begin_inset Foot
35597 status collapsed
35598
35599 \begin_layout Plain Layout
35600 For the lazy guys:
35601  
35602 \begin_inset Flex Code
35603 status collapsed
35604
35605 \begin_layout Plain Layout
35606 svn propset svn:eol-style native FILE_NAME
35607 \end_layout
35608
35609 \end_inset
35610
35611
35612 \end_layout
35613
35614 \end_inset
35615
35616
35617 \end_layout
35618
35619 \begin_layout Subsection
35620 GIT commands in \SpecialChar LyX
35621
35622 \end_layout
35623
35624 \begin_layout Standard
35625 A minimal subset of GIT commands is now supported by \SpecialChar LyX
35626 .
35627  You can find the commands in the 
35628 \family sans
35629 File\SpecialChar menuseparator
35630 Version
35631 \begin_inset space ~
35632 \end_inset
35633
35634 Control
35635 \family default
35636  submenu.
35637  Please note that if you use password protected access to repository via ssh,
35638  you will be asked in terminal window.
35639  \SpecialChar LyX
35640  was tested against GIT 1.7.
35641 \begin_inset Foot
35642 status collapsed
35643
35644 \begin_layout Plain Layout
35645 Windows users please note that you need to ensure that git is on the path.
35646  This can be set from within \SpecialChar LyX
35647  at 
35648 \family sans
35649 Tools\SpecialChar menuseparator
35650 Preferences\SpecialChar menuseparator
35651 Paths\SpecialChar menuseparator
35652 PATH prefix
35653 \family default
35654 .
35655 \end_layout
35656
35657 \end_inset
35658
35659
35660 \end_layout
35661
35662 \begin_layout Standard
35663 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
35664  With traditional version control systems there is one central server which hosts the repository.
35665  Users commit their changes to the server,
35666  and get updates made by other users from it.
35667  With GIT,
35668  users commit to a local repository.
35669  The local repository can be synchronized with one or more remote repositories using the 
35670 \begin_inset Flex Code
35671 status collapsed
35672
35673 \begin_layout Plain Layout
35674 pull
35675 \end_layout
35676
35677 \end_inset
35678
35679  and 
35680 \begin_inset Flex Code
35681 status collapsed
35682
35683 \begin_layout Plain Layout
35684 push
35685 \end_layout
35686
35687 \end_inset
35688
35689  GIT commands.
35690  \SpecialChar LyX
35691  does not interact in any way with remote GIT repositories.
35692  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
35693  If you use remote GIT repositories you need to do the 
35694 \begin_inset Flex Code
35695 status collapsed
35696
35697 \begin_layout Plain Layout
35698 pull
35699 \end_layout
35700
35701 \end_inset
35702
35703  and 
35704 \begin_inset Flex Code
35705 status collapsed
35706
35707 \begin_layout Plain Layout
35708 push
35709 \end_layout
35710
35711 \end_inset
35712
35713  operations with your favourite GIT client.
35714 \end_layout
35715
35716 \begin_layout Subsubsection
35717
35718 \family sans
35719 Register
35720 \end_layout
35721
35722 \begin_layout Standard
35723 If your document is not under revision control,
35724  this is the only item shown in the menu.
35725  And if it is under revision control,
35726  the 
35727 \family sans
35728 Register
35729 \family default
35730  item is not visible.
35731 \end_layout
35732
35733 \begin_layout Standard
35734 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
35735 \family typewriter
35736 .git/index
35737 \family default
35738  file exists).
35739  This means you have to checkout the archive by yourself.
35740 \end_layout
35741
35742 \begin_layout Standard
35743 Then you are asked interactively to supply an initial description of the document.
35744  Don't forget that registered file is not yet committed.
35745 \end_layout
35746
35747 \begin_layout Standard
35748 GIT command that is run:
35749  
35750 \family typewriter
35751 git add 
35752 \begin_inset Quotes qld
35753 \end_inset
35754
35755 <file-name>
35756 \begin_inset Quotes qld
35757 \end_inset
35758
35759
35760 \end_layout
35761
35762 \begin_layout Standard
35763 Read 
35764 \family typewriter
35765 man git
35766 \family default
35767  to understand the switches.
35768 \end_layout
35769
35770 \begin_layout Subsubsection
35771
35772 \family sans
35773 Check In Changes
35774 \end_layout
35775
35776 \begin_layout Standard
35777 When you are finished editing a file,
35778  you commit your changes.
35779  When you do this,
35780  you are asked for a description of the changes.
35781  After that changes are committed.
35782 \end_layout
35783
35784 \begin_layout Standard
35785 GIT command:
35786  
35787 \family typewriter
35788 git commit -q -m"<description>" <file-name>
35789 \end_layout
35790
35791 \begin_layout Subsubsection
35792
35793 \family sans
35794 Revert To Repository Version
35795 \end_layout
35796
35797 \begin_layout Standard
35798 This will discard all changes made to the document since the last check in.
35799  You get a warning before changes are discarded.
35800 \end_layout
35801
35802 \begin_layout Standard
35803 GIT command:
35804  
35805 \family typewriter
35806 git checkout -q 
35807 \begin_inset Quotes qld
35808 \end_inset
35809
35810 <file-name>
35811 \begin_inset Quotes qld
35812 \end_inset
35813
35814
35815 \end_layout
35816
35817 \begin_layout Subsubsection
35818
35819 \family sans
35820 Rename
35821 \end_layout
35822
35823 \begin_layout Standard
35824 This will rename the current document including the version history.
35825  It requires a clean document without any changes since the last checkin.
35826  You are asked for a file name and a description of the rename operation.
35827  After that the document is renamed,
35828  both locally and in the repository.
35829  If the parent directories of the new and old file names differ,
35830  all relative paths of included files are adjusted (like in 
35831 \family sans
35832 File\SpecialChar menuseparator
35833 Save As
35834 \family default
35835 \SpecialChar ldots
35836 ).
35837  Finally,
35838  the document is reloaded using the new name.
35839 \end_layout
35840
35841 \begin_layout Labeling
35842 \labelwidthstring 00.00.0000
35843 GIT
35844 \begin_inset space ~
35845 \end_inset
35846
35847 commands:
35848  
35849 \begin_inset space ~
35850 \end_inset
35851
35852
35853 \begin_inset Newline newline
35854 \end_inset
35855
35856
35857 \begin_inset Flex Code
35858 status collapsed
35859
35860 \begin_layout Plain Layout
35861 git mv 
35862 \family typewriter
35863
35864 \begin_inset Quotes qld
35865 \end_inset
35866
35867 <file-name>
35868 \begin_inset Quotes qld
35869 \end_inset
35870
35871  
35872 \begin_inset Quotes qld
35873 \end_inset
35874
35875 <new-file-name>
35876 \begin_inset Quotes qld
35877 \end_inset
35878
35879
35880 \end_layout
35881
35882 \end_inset
35883
35884
35885 \begin_inset Newline newline
35886 \end_inset
35887
35888
35889 \begin_inset Flex Code
35890 status collapsed
35891
35892 \begin_layout Plain Layout
35893 git commit
35894 \end_layout
35895
35896 \end_inset
35897
35898
35899 \end_layout
35900
35901 \begin_layout Subsubsection
35902
35903 \family sans
35904 Show History
35905 \end_layout
35906
35907 \begin_layout Standard
35908 This shows the complete history of the GIT document.
35909  The output of 
35910 \family typewriter
35911 git log 
35912 \begin_inset Quotes qld
35913 \end_inset
35914
35915 <file-name>
35916 \begin_inset Quotes qld
35917 \end_inset
35918
35919
35920 \family default
35921  is shown in a browser.
35922 \end_layout
35923
35924 \begin_layout Subsubsection
35925 Version Info
35926 \end_layout
35927
35928 \begin_layout Standard
35929 \SpecialChar LyX
35930  supports GIT hash number of the last commit to the file,
35931  
35932 \change_inserted 1119979965 1564297456
35933 its abbreviated form,
35934  
35935 \change_unchanged
35936 author name,
35937  date and time of last commit.
35938  All those are extracted from 
35939 \family typewriter
35940 git log -n 1 --pretty=format:%H%n
35941 \change_inserted 1119979965 1564297427
35942 %h%n
35943 \change_unchanged
35944 %an%n%ai
35945 \family default
35946 .
35947  Tree version information is obtained via 
35948 \family typewriter
35949 git describe --abbrev --dirty --long
35950 \family default
35951 .
35952  See 
35953 \begin_inset CommandInset ref
35954 LatexCommand ref
35955 reference "subsec:VCS-Revision-Information"
35956 nolink "false"
35957
35958 \end_inset
35959
35960  for other details.
35961 \end_layout
35962
35963 \begin_layout Subsection
35964 Further tuning
35965 \end_layout
35966
35967 \begin_layout Standard
35968 With the recent addition of the 
35969 \begin_inset Flex Code
35970 status collapsed
35971
35972 \begin_layout Plain Layout
35973 vc-command
35974 \end_layout
35975
35976 \end_inset
35977
35978  function \SpecialChar LyX
35979  power users are allowed to create their own commands for revision control.
35980 \end_layout
35981
35982 \begin_layout Standard
35983 As an example you can see how two TortoiseSVN commands could be integrated directly:
35984 \end_layout
35985
35986 \begin_layout Description
35987 Commit:
35988  
35989 \begin_inset Flex Code
35990 status collapsed
35991
35992 \begin_layout Plain Layout
35993 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
35994 \end_layout
35995
35996 \end_inset
35997
35998
35999 \end_layout
36000
36001 \begin_layout Description
36002 Revert:
36003  
36004 \begin_inset Flex Code
36005 status collapsed
36006
36007 \begin_layout Plain Layout
36008 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
36009 \end_layout
36010
36011 \end_inset
36012
36013
36014 \end_layout
36015
36016 \begin_layout Subsection
36017 Version control and Document comparison
36018 \end_layout
36019
36020 \begin_layout Standard
36021 One of the typical uses of version control is to inspect the changes between revisions,
36022  usually by creating 
36023 \begin_inset Flex Code
36024 status collapsed
36025
36026 \begin_layout Plain Layout
36027 diff
36028 \end_layout
36029
36030 \end_inset
36031
36032  dumps.
36033  While this is useful for plain text files,
36034  it is much less useful in the case of \SpecialChar LyX
36035  files,
36036  which have more a complicated structure.
36037  Hence we provide binding to the Document comparison feature.
36038  There are two ways of calling this feature – either by direct call of 
36039 \begin_inset Flex Code
36040 status collapsed
36041
36042 \begin_layout Plain Layout
36043 vc-compare
36044 \end_layout
36045
36046 \end_inset
36047
36048  \SpecialChar LyX
36049  function (for details see \SpecialChar LyX
36050  functions manual) or by the toolbar icon 
36051 \begin_inset Info
36052 type  "icon"
36053 arg   "vc-compare"
36054 \end_inset
36055
36056  or the menu item 
36057 \begin_inset Info
36058 type  "menu"
36059 arg   "vc-compare"
36060 \end_inset
36061
36062 ,
36063  respectively.
36064  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 '
36065 \begin_inset Flex Noun
36066 status collapsed
36067
36068 \begin_layout Plain Layout
36069 0
36070 \end_layout
36071
36072 \end_inset
36073
36074 ' revisions back means comparison of the edited file with last commited revision).
36075  
36076 \end_layout
36077
36078 \begin_layout Standard
36079 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,
36080  numbers always point to the last number in RCS revision number,
36081  i.e.
36082  '35' in '1.2.35'.
36083  We don't currently support GIT addressing of revisions,
36084  one can just compare edited document with its revision X steps backs,
36085  where X is addressed as 
36086 \begin_inset Flex Code
36087 status collapsed
36088
36089 \begin_layout Plain Layout
36090 HEAD~X
36091 \end_layout
36092
36093 \end_inset
36094
36095 .
36096 \end_layout
36097
36098 \begin_layout Section
36099
36100 \change_inserted 564990737 1672161575
36101 \begin_inset CommandInset label
36102 LatexCommand label
36103 name "sec:Literate-Programming"
36104
36105 \end_inset
36106
36107
36108 \change_unchanged
36109 Literate Programming
36110 \end_layout
36111
36112 \begin_layout Standard
36113 Updated by 
36114 \noun on
36115 Kayvan Sylvan 
36116 \noun default
36117 (kayvan@sylvan.com)
36118 \noun on
36119 ,
36120  
36121 \noun default
36122 original documentation written by 
36123 \noun on
36124 Edmar Wienskoski Jr.
36125
36126 \noun default
36127  (edmar-w-jr@technologist.com)
36128 \end_layout
36129
36130 \begin_layout Subsection
36131 Introduction
36132 \end_layout
36133
36134 \begin_layout Standard
36135 The main purpose of this documentation is to show you how to use \SpecialChar LyX
36136  for literate programming,
36137  where it is assumed that you are familiar with this programming technique,
36138  and know what 
36139 \begin_inset Quotes eld
36140 \end_inset
36141
36142 tangling
36143 \begin_inset Quotes erd
36144 \end_inset
36145
36146  and 
36147 \begin_inset Quotes eld
36148 \end_inset
36149
36150 weaving
36151 \begin_inset Quotes erd
36152 \end_inset
36153
36154  means.
36155  If that is not the case,
36156  please follow the web links provided in the following sections.
36157  There is a lot of good documentation out there covering old development history to the latest tools tips.
36158 \end_layout
36159
36160 \begin_layout Standard
36161 It is also assumed that you are familiar with \SpecialChar LyX
36162  itself to a point that you are comfortable changing your \SpecialChar LyX
36163  preferences,
36164  and X resources file.
36165  If that is not the case please refer to other \SpecialChar LyX
36166  documentation to cover your specific needs.
36167 \end_layout
36168
36169 \begin_layout Subsection
36170 Literate Programming
36171 \end_layout
36172
36173 \begin_layout Standard
36174 From the Literate Programming FAQ:
36175  
36176 \end_layout
36177
36178 \begin_layout Quotation
36179 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
36180  In fact,
36181  literate programs should be enjoyable reading,
36182  even inviting!
36183  (Sorry Bob,
36184  I couldn't resist!) In general,
36185  literate programs combine source and documentation in a single file.
36186  Literate programming tools then parse the file to produce either readable documentation or compilable source.
36187  The WEB style of literate programming was created by D.
36188 \begin_inset space \thinspace{}
36189 \end_inset
36190
36191 E.
36192  Knuth during the development of his \SpecialChar TeX
36193  typesetting software.
36194  
36195 \end_layout
36196
36197 \begin_layout Standard
36198 Another excerpt says:
36199 \end_layout
36200
36201 \begin_layout Quotation
36202
36203 \emph on
36204 How is literate programming different from verbose commenting?
36205 \end_layout
36206
36207 \begin_layout Quotation
36208 There are three distinguishing characteristics.
36209  In order of importance,
36210  they are:
36211  
36212 \end_layout
36213
36214 \begin_deeper
36215 \begin_layout Itemize
36216 flexible order of elaboration 
36217 \end_layout
36218
36219 \begin_layout Itemize
36220 automatic support for browsing 
36221 \end_layout
36222
36223 \begin_layout Itemize
36224 typeset documentation,
36225  especially diagrams and mathematics 
36226 \end_layout
36227
36228 \end_deeper
36229 \begin_layout Standard
36230 Now that I sparked your curiosity,
36231  take a look in the references.
36232 \end_layout
36233
36234 \begin_layout Subsubsection
36235 References
36236 \end_layout
36237
36238 \begin_layout Standard
36239 The complete Literate Programming FAQ can be found at:
36240 \end_layout
36241
36242 \begin_layout Quote
36243 Literate Programming FAQ 
36244 \begin_inset Flex URL
36245 status open
36246
36247 \begin_layout Plain Layout
36248
36249 http://www.literateprogramming.com/lpfaq.pdf
36250 \end_layout
36251
36252 \end_inset
36253
36254
36255 \end_layout
36256
36257 \begin_layout Standard
36258 The FAQ lists 23 (twenty three!) different literate programming tools.
36259  Where some are specialized or 
36260 \begin_inset Quotes eld
36261 \end_inset
36262
36263 tailored
36264 \begin_inset Quotes erd
36265 \end_inset
36266
36267  for particular programming languages,
36268  while other have general scope.
36269  I selected 
36270 \noun on
36271 Noweb
36272 \noun default
36273  for my own use for several reasons:
36274 \end_layout
36275
36276 \begin_layout Itemize
36277 It can generate the documentation either in \SpecialChar LaTeX
36278  or HTML.
36279 \end_layout
36280
36281 \begin_layout Itemize
36282 It has a open architecture,
36283  i.
36284 \begin_inset space \thinspace{}
36285 \end_inset
36286
36287 e.
36288 \begin_inset space \space{}
36289 \end_inset
36290
36291 it is easy to plug in new filters
36292 \begin_inset Foot
36293 status collapsed
36294
36295 \begin_layout Plain Layout
36296
36297 \emph on
36298 Filters 
36299 \emph default
36300 are programs that read a given data stream and output a manipulated data stream.
36301  That way,
36302  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
36303  code.
36304 \end_layout
36305
36306 \end_inset
36307
36308  and to perform special processing that you may need.
36309  
36310 \end_layout
36311
36312 \begin_layout Itemize
36313 There is a good selection of filters available already (the HTML is one of them).
36314 \end_layout
36315
36316 \begin_layout Itemize
36317 It is free.
36318 \end_layout
36319
36320 \begin_layout Standard
36321 The Noweb web page can be found at:
36322  
36323 \end_layout
36324
36325 \begin_layout Quote
36326 Noweb home page 
36327 \begin_inset Flex URL
36328 status collapsed
36329
36330 \begin_layout Plain Layout
36331
36332 https://www.cs.tufts.edu/~nr/noweb/
36333 \end_layout
36334
36335 \end_inset
36336
36337
36338 \end_layout
36339
36340 \begin_layout Standard
36341 Starting from there you can reach many other interesting links and even some literate program examples.
36342 \end_layout
36343
36344 \begin_layout Subsection
36345 \SpecialChar LyX
36346  and Literate Programming with Noweb
36347 \end_layout
36348
36349 \begin_layout Standard
36350 The \SpecialChar LyX
36351  support for Literate Programming is provided by using the generic \SpecialChar LyX
36352  converters mechanism.
36353  This support is provided in a 
36354 \begin_inset Quotes eld
36355 \end_inset
36356
36357 Noweb independent
36358 \begin_inset Quotes erd
36359 \end_inset
36360
36361  way,
36362  i.
36363 \begin_inset space \thinspace{}
36364 \end_inset
36365
36366 e.
36367 \begin_inset space \space{}
36368 \end_inset
36369
36370 you will be able to use this new \SpecialChar LyX
36371  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
36372  preferences.
36373 \end_layout
36374
36375 \begin_layout Subsubsection
36376 Generating documents and code (weaving and tangling)
36377 \end_layout
36378
36379 \begin_layout Paragraph
36380 Using the noweb module
36381 \end_layout
36382
36383 \begin_layout Standard
36384 If you have installed Noweb and \SpecialChar LyX
36385  successfully,
36386  whenever you open a new document,
36387  after you have chosen its document class,
36388  use the 
36389 \family sans
36390 Document\SpecialChar menuseparator
36391 Settings
36392 \family default
36393  menu to add the 
36394 \begin_inset Quotes eld
36395 \end_inset
36396
36397 noweb
36398 \begin_inset Quotes erd
36399 \end_inset
36400
36401  module.
36402  If Noweb is correctly installed,
36403  when you click on the 
36404 \begin_inset Quotes eld
36405 \end_inset
36406
36407 Modules
36408 \begin_inset Quotes erd
36409 \end_inset
36410
36411  link,
36412  you will see the 
36413 \begin_inset Quotes eld
36414 \end_inset
36415
36416 noweb
36417 \begin_inset Quotes erd
36418 \end_inset
36419
36420  module in the available list and you can add it to your document.
36421 \end_layout
36422
36423 \begin_layout Paragraph
36424 Typing code in
36425 \end_layout
36426
36427 \begin_layout Standard
36428 \SpecialChar LyX
36429  enables you to write code with a custom inset named 
36430 \begin_inset Flex Noun
36431 status collapsed
36432
36433 \begin_layout Plain Layout
36434 Chunk
36435 \end_layout
36436
36437 \end_inset
36438
36439 .
36440  Noweb delimits chunks like this:
36441 \end_layout
36442
36443 \begin_layout LyX-Code
36444 <<My code>>=
36445 \end_layout
36446
36447 \begin_layout LyX-Code
36448   code
36449 \end_layout
36450
36451 \begin_layout LyX-Code
36452   more code
36453 \end_layout
36454
36455 \begin_layout LyX-Code
36456   even more code
36457 \end_layout
36458
36459 \begin_layout LyX-Code
36460   @
36461 \end_layout
36462
36463 \begin_layout Standard
36464 The problem is that whatever is written in between the << and the 
36465 \family typewriter
36466 @
36467 \family default
36468  must be taken literally,
36469  i.
36470 \begin_inset space \thinspace{}
36471 \end_inset
36472
36473 e.
36474 \begin_inset space \space{}
36475 \end_inset
36476
36477 \SpecialChar LyX
36478  should be prevented from making any special interpretation of what has been written.
36479  This is also handled by 
36480 \begin_inset Flex Noun
36481 status collapsed
36482
36483 \begin_layout Plain Layout
36484 Chunk
36485 \end_layout
36486
36487 \end_inset
36488
36489 ,
36490  that works like a normal text inset but has a free spacing capability.
36491 \end_layout
36492
36493 \begin_layout Standard
36494 As a special note,
36495  you can also use the 
36496 \begin_inset Quotes eld
36497 \end_inset
36498
36499 %def
36500 \begin_inset Quotes erd
36501 \end_inset
36502
36503  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
36504 \end_layout
36505
36506 \begin_layout LyX-Code
36507 <<My chunk>>=
36508 \end_layout
36509
36510 \begin_layout LyX-Code
36511 def some_function(args):
36512 \end_layout
36513
36514 \begin_layout LyX-Code
36515    "This is the doc string for this function."
36516 \end_layout
36517
36518 \begin_layout LyX-Code
36519    print "My args:
36520  ",
36521  args
36522 \end_layout
36523
36524 \begin_layout LyX-Code
36525 @ %def some_function
36526 \end_layout
36527
36528 \begin_layout Standard
36529 For an example of this usage and the resulting cross-reference output,
36530  look at the Literate python program in 
36531 \emph on
36532 LIBDIR/examples/listerrors.lyx
36533 \emph default
36534  which should make this all clear.
36535 \end_layout
36536
36537 \begin_layout Paragraph
36538 Generating the documentation
36539 \end_layout
36540
36541 \begin_layout Standard
36542 At this point you already have a new document file with a proper document class,
36543  and with some code and text on it.
36544  How do I print it?
36545  The answer is simple,
36546  you select 
36547 \family sans
36548 View\SpecialChar menuseparator
36549 DVI,
36550
36551 \family default
36552  etc.
36553  Just like you would do for a plain document.
36554  No special procedure is required.
36555 \end_layout
36556
36557 \begin_layout Standard
36558 To help orientate you,
36559  I will now explain what happens inside \SpecialChar LyX
36560 :
36561 \end_layout
36562
36563 \begin_layout Enumerate
36564 When the 
36565 \family sans
36566 Update\SpecialChar menuseparator
36567 DVI
36568 \family default
36569  menu option is chosen,
36570  a \SpecialChar LaTeX
36571  file is generated.
36572  
36573 \end_layout
36574
36575 \begin_deeper
36576 \begin_layout Standard
36577 If the document is of any literate class the generated file will be named with an extension name defined by the 
36578 \begin_inset Quotes eld
36579 \end_inset
36580
36581 literate
36582 \begin_inset Quotes erd
36583 \end_inset
36584
36585  format (defined in the Preferences panel),
36586  otherwise the file will have the usual 
36587 \family typewriter
36588 .tex
36589 \family default
36590  extension.
36591 \end_layout
36592
36593 \end_deeper
36594 \begin_layout Enumerate
36595 Note that the only difference so far is in the name of the file,
36596  no special processing is required by \SpecialChar LyX
36597 .
36598  Given that you formatted the code using the 
36599 \begin_inset Flex Noun
36600 status collapsed
36601
36602 \begin_layout Plain Layout
36603 Chunk
36604 \end_layout
36605
36606 \end_inset
36607
36608  inset that,
36609  by itself,
36610  takes care of the business.
36611 \end_layout
36612
36613 \begin_layout Enumerate
36614 If the document is of any literate class \SpecialChar LyX
36615  will then use the internal \SpecialChar LyX
36616  to Noweb converter,
36617  followed by the Noweb to \SpecialChar LaTeX
36618  converter
36619 \begin_inset Foot
36620 status collapsed
36621
36622 \begin_layout Plain Layout
36623 The converters are defined in the 
36624 \family sans
36625 Tools\SpecialChar menuseparator
36626 Preferences
36627 \family default
36628  panel,
36629  under the 
36630 \begin_inset Quotes eld
36631 \end_inset
36632
36633 Conversion
36634 \begin_inset Quotes erd
36635 \end_inset
36636
36637  tab.
36638  See section 
36639 \emph on
36640 Converters
36641 \emph default
36642  of the 
36643 \emph on
36644 Customization
36645 \emph default
36646  manual for general information about converters.
36647 \end_layout
36648
36649 \end_inset
36650
36651  to generate the \SpecialChar LaTeX
36652  file.
36653 \end_layout
36654
36655 \begin_deeper
36656 \begin_layout Standard
36657 Otherwise it will just skip this step.
36658 \end_layout
36659
36660 \end_deeper
36661 \begin_layout Enumerate
36662 Finally,
36663  \SpecialChar LaTeX
36664  is invoked and the regular post processing continues as in a plain document.
36665 \end_layout
36666
36667 \begin_layout Standard
36668 Independence from a particular 
36669 \begin_inset Quotes eld
36670 \end_inset
36671
36672 literate tool
36673 \begin_inset Quotes erd
36674 \end_inset
36675
36676  is easily achieved by changing the commands that are run by the various converters.
36677 \end_layout
36678
36679 \begin_layout Paragraph
36680 Generating the code
36681 \end_layout
36682
36683 \begin_layout Standard
36684 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
36685  a \SpecialChar LaTeX
36686  file is generated just like step 1 above.
36687  Next,
36688  \SpecialChar LyX
36689  invokes the 
36690 \family typewriter
36691 Noweb->Program
36692 \family default
36693  converter.
36694  This converter needs to be defined by the user and is not installed by default,
36695  though the Program format is.
36696  This converter (like any other converter) will have two parts:
36697 \end_layout
36698
36699 \begin_layout Enumerate
36700 The converter program itself.
36701  This program performs the conversion from the one format to the other (in this case,
36702  from the Noweb format to the Program pseudo-format).
36703 \end_layout
36704
36705 \begin_layout Enumerate
36706 The error log parser.
36707  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
36708  understands.
36709  This makes it possible for \SpecialChar LyX
36710  to place error boxes in the right places in the file buffer.
36711 \end_layout
36712
36713 \begin_layout Standard
36714 The first part,
36715  the 
36716 \begin_inset Quotes eld
36717 \end_inset
36718
36719 Converter
36720 \begin_inset Quotes erd
36721 \end_inset
36722
36723  setting,
36724  should be set to
36725 \end_layout
36726
36727 \begin_layout LyX-Code
36728
36729 \family typewriter
36730 build-script $$i
36731 \family default
36732  $$r
36733 \end_layout
36734
36735 \begin_layout Standard
36736 This basically means that \SpecialChar LyX
36737  will call 
36738 \begin_inset Quotes eld
36739 \end_inset
36740
36741 build-script
36742 \begin_inset Quotes erd
36743 \end_inset
36744
36745  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
36746  temp directory) and the directory path of the original \SpecialChar LyX
36747  file.
36748  
36749 \end_layout
36750
36751 \begin_layout Standard
36752 This is an implementation of 
36753 \begin_inset Quotes eld
36754 \end_inset
36755
36756 build-script
36757 \begin_inset Quotes erd
36758 \end_inset
36759
36760  that you can place in a directory on your path:
36761 \end_layout
36762
36763 \begin_layout LyX-Code
36764
36765 \family sans
36766 #!/bin/sh
36767 \end_layout
36768
36769 \begin_layout LyX-Code
36770
36771 \family sans
36772 #
36773 \end_layout
36774
36775 \begin_layout LyX-Code
36776
36777 \family sans
36778 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
36779 \end_layout
36780
36781 \begin_layout Standard
36782 The next part of the converter setting is the 
36783 \begin_inset Quotes eld
36784 \end_inset
36785
36786 Flags
36787 \begin_inset Quotes erd
36788 \end_inset
36789
36790  which is to be set to
36791 \end_layout
36792
36793 \begin_layout LyX-Code
36794
36795 \family typewriter
36796 parselog=$$s/scripts/listerrors
36797 \end_layout
36798
36799 \begin_layout Standard
36800 This will run any errors that are generated by the 
36801 \begin_inset Quotes eld
36802 \end_inset
36803
36804 build-script
36805 \begin_inset Quotes erd
36806 \end_inset
36807
36808  process through the 
36809 \begin_inset Quotes eld
36810 \end_inset
36811
36812 listerrors
36813 \begin_inset Quotes erd
36814 \end_inset
36815
36816  program.
36817 \end_layout
36818
36819 \begin_layout Standard
36820 The build will normally take place in \SpecialChar LyX
36821 's temporary directory,
36822  so the files produced by the conversion will be in that directory.
36823  \SpecialChar LyX
36824  will copy out what it regards as the `main' file,
36825  but the 
36826 \family typewriter
36827 Noweb->Program
36828 \family default
36829  conversion may produce several files,
36830  and so most of these would then be deleted when \SpecialChar LyX
36831  was closed.
36832  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.
36833 \end_layout
36834
36835 \begin_layout Paragraph
36836 Build instructions in the document
36837 \end_layout
36838
36839 \begin_layout Standard
36840 The last piece of the integration between \SpecialChar LyX
36841  and noweb is the 
36842 \begin_inset Quotes eld
36843 \end_inset
36844
36845 build-script
36846 \begin_inset Quotes erd
36847 \end_inset
36848
36849  chunk.
36850  Generally,
36851  the instructions for building your program should be embedded in a chunk of its own.
36852  The noweb-specific 
36853 \begin_inset Quotes eld
36854 \end_inset
36855
36856 build-script
36857 \begin_inset Quotes erd
36858 \end_inset
36859
36860  above uses the notangle command to look for this chunk (called 
36861 \begin_inset Quotes eld
36862 \end_inset
36863
36864 build-script
36865 \begin_inset Quotes erd
36866 \end_inset
36867
36868 ) and runs its contents through 
36869 \begin_inset Quotes eld
36870 \end_inset
36871
36872 sh
36873 \begin_inset Quotes erd
36874 \end_inset
36875
36876 .
36877 \end_layout
36878
36879 \begin_layout Standard
36880 Typically,
36881  such a chunk would look something like this:
36882 \end_layout
36883
36884 \begin_layout LyX-Code
36885 <<build-script>>=
36886 \end_layout
36887
36888 \begin_layout LyX-Code
36889 #!/bin/sh
36890 \begin_inset Newline newline
36891 \end_inset
36892
36893 if [ -z "${NOWEB_SOURCE}" ]
36894 \begin_inset Newline newline
36895 \end_inset
36896
36897 then
36898 \end_layout
36899
36900 \begin_layout LyX-Code
36901 NOWEB_SOURCE=myfile.nw
36902 \begin_inset Newline newline
36903 \end_inset
36904
36905 fi
36906 \begin_inset Newline newline
36907 \end_inset
36908
36909 [...
36910  code to extract files ...
36911  use NOWEB_OUTPUT_DIR here ...]
36912 \begin_inset Newline newline
36913 \end_inset
36914
36915 [...
36916  code to compile files ...]
36917 \begin_inset Newline newline
36918 \end_inset
36919
36920 @
36921 \end_layout
36922
36923 \begin_layout Standard
36924 Look in 
36925 \change_deleted 564990737 1672161716
36926
36927 \emph on
36928 LIBDIR/examples/listerrors.lyx
36929 \emph default
36930  or in 
36931 \emph on
36932 LIBDIR/examples/Literate.lyx
36933 \change_inserted 564990737 1672161716
36934
36935 \family sans
36936 \emph default
36937 File\SpecialChar menuseparator
36938 Open Example\SpecialChar menuseparator
36939 Modules\SpecialChar menuseparator
36940 Noweb Listerrors
36941 \change_unchanged
36942
36943 \family default
36944  which implement 
36945 \change_deleted 564990737 1672161729
36946 two 
36947 \change_unchanged
36948 versions of the 
36949 \begin_inset Quotes eld
36950 \end_inset
36951
36952 listerrors
36953 \begin_inset Quotes erd
36954 \end_inset
36955
36956  program for some illustrations of how all of these pieces go together or in 
36957 \change_deleted 564990737 1672161756
36958
36959 \emph on
36960 LIBDIR/examples/noweb2lyx.lyx
36961 \change_inserted 564990737 1672161756
36962
36963 \family sans
36964 \emph default
36965 File\SpecialChar menuseparator
36966 Open Example\SpecialChar menuseparator
36967 Modules\SpecialChar menuseparator
36968 Noweb2\SpecialChar LyX
36969
36970 \change_unchanged
36971
36972 \family default
36973 \emph on
36974 .
36975
36976 \emph default
36977  Interestingly,
36978  these 
36979 \change_deleted 564990737 1672161767
36980 three 
36981 \change_unchanged
36982 files show off the language-indepence of the \SpecialChar LyX
36983  literate programming support since they are written in Python
36984 \change_deleted 564990737 1672161782
36985 ,
36986  C
36987 \change_unchanged
36988  and Perl respectively.
36989 \end_layout
36990
36991 \begin_layout Subsubsection
36992 Configuring \SpecialChar LyX
36993
36994 \end_layout
36995
36996 \begin_layout Standard
36997 All the Literate Programming support is configured by the 
36998 \family sans
36999 Tools\SpecialChar menuseparator
37000 Preferences
37001 \family default
37002  panel in the 
37003 \begin_inset Quotes eld
37004 \end_inset
37005
37006 File Handling
37007 \begin_inset Quotes erd
37008 \end_inset
37009
37010  tab.
37011  The important parts are:
37012 \end_layout
37013
37014 \begin_layout Description
37015 the
37016 \begin_inset space ~
37017 \end_inset
37018
37019
37020 \begin_inset Quotes eld
37021 \end_inset
37022
37023 NoWeb
37024 \begin_inset Quotes erd
37025 \end_inset
37026
37027
37028 \begin_inset space ~
37029 \end_inset
37030
37031 format Set up via the File Formats tab,
37032  this is where the Noweb-specific pieces are set up.
37033  The 
37034 \family sans
37035 GUI Name
37036 \family default
37037  is set to 
37038 \family typewriter
37039 NoWeb
37040 \family default
37041 ,
37042  the file extension is set to 
37043 \family typewriter
37044 .nw
37045 \family default
37046 .
37047  This tells \SpecialChar LyX
37048  to create a file with a 
37049 \family typewriter
37050 .nw
37051 \family default
37052  extension in the first step of the conversion process.
37053 \end_layout
37054
37055 \begin_layout Description
37056 the
37057 \begin_inset space ~
37058 \end_inset
37059
37060
37061 \family sans
37062 Program
37063 \family default
37064
37065 \begin_inset space ~
37066 \end_inset
37067
37068 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).
37069 \end_layout
37070
37071 \begin_layout Description
37072
37073 \family sans
37074 NoWeb
37075 \family default
37076 ->
37077 \family sans
37078 \SpecialChar LaTeX
37079
37080 \family default
37081  This converter performs the 
37082 \begin_inset Quotes eld
37083 \end_inset
37084
37085 weaving
37086 \begin_inset Quotes erd
37087 \end_inset
37088
37089  of the literate document.
37090  For Noweb,
37091  it is set to 
37092 \begin_inset Quotes eld
37093 \end_inset
37094
37095
37096 \family typewriter
37097 noweave -delay -index $$i > $$o
37098 \family default
37099
37100 \begin_inset Quotes erd
37101 \end_inset
37102
37103
37104 \end_layout
37105
37106 \begin_layout Description
37107
37108 \family sans
37109 NoWeb
37110 \family default
37111 ->
37112 \family sans
37113 Program
37114 \family default
37115  This performs the 
37116 \begin_inset Quotes eld
37117 \end_inset
37118
37119 tangling step
37120 \begin_inset Quotes erd
37121 \end_inset
37122
37123 .
37124  As stated above,
37125  the Converter is set to 
37126 \begin_inset Quotes eld
37127 \end_inset
37128
37129
37130 \family typewriter
37131 build-script $$i
37132 \family default
37133  $$r
37134 \begin_inset Quotes erd
37135 \end_inset
37136
37137 ,
37138  with Flags set to
37139 \begin_inset Newline newline
37140 \end_inset
37141
37142
37143 \begin_inset Quotes eld
37144 \end_inset
37145
37146
37147 \family typewriter
37148 parselog=$$s/scripts/listerrors
37149 \family default
37150
37151 \begin_inset Quotes erd
37152 \end_inset
37153
37154 .
37155 \end_layout
37156
37157 \begin_layout Subsubsection
37158 Debug extensions
37159 \end_layout
37160
37161 \begin_layout Standard
37162 There is also a new function implemented in the \SpecialChar LyX
37163  server,
37164  the 
37165 \begin_inset Quotes eld
37166 \end_inset
37167
37168 server-goto-file-row" function,
37169  to be used with ddd/gdb or other debugger.
37170  
37171 \end_layout
37172
37173 \begin_layout Standard
37174 When debugging code with ddd/gdb,
37175  it is possible to invoke a text editor at the current execution position with a single key stroke.
37176  The default ddd configuration for that is shift-ctrl-V.
37177  It happens that you can define the editor command line invocation in ddd by accessing the 
37178 \family sans
37179 Edit\SpecialChar menuseparator
37180 Preferences\SpecialChar menuseparator
37181 Helpers
37182 \family default
37183  dialog and changing the "Edit Sources" entry.
37184 \end_layout
37185
37186 \begin_layout Standard
37187 I take advantage of the newly created \SpecialChar LyX
37188  server function and this ddd feature,
37189  and set 
37190 \begin_inset Quotes eld
37191 \end_inset
37192
37193 Edit Sources
37194 \begin_inset Quotes erd
37195 \end_inset
37196
37197  to:
37198 \end_layout
37199
37200 \begin_layout LyX-Code
37201 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
37202 \end_layout
37203
37204 \begin_layout Standard
37205 With this,
37206  whenever you are using ddd and find a point in the program that you want to edit,
37207  you just press shift-ctrl-V (in the ddd window),
37208  and ddd will forward this information to \SpecialChar LyX
37209  through the \SpecialChar LyX
37210  server and then the \SpecialChar LyX
37211  window will show the same file with the cursor at the same position ddd was pointing to.
37212  No more guessing or long scrolling to locate a point in the program back from debugging !
37213 \end_layout
37214
37215 \begin_layout Standard
37216 Note however that you must enable the \SpecialChar LyX
37217  server to get this feature working (it is disabled by default).
37218  Sec.
37219 \begin_inset space ~
37220 \end_inset
37221
37222
37223 \begin_inset CommandInset ref
37224 LatexCommand ref
37225 reference "sec:Starting-the-Server"
37226 nolink "false"
37227
37228 \end_inset
37229
37230  explains how to do that.
37231 \end_layout
37232
37233 \begin_layout Subsubsection
37234 Toolbar extensions
37235 \end_layout
37236
37237 \begin_layout Standard
37238 There are six new buttons that can be added to your \SpecialChar LyX
37239  toolbar.
37240  Four of these buttons are short cuts to layout styles:
37241  
37242 \family sans
37243 Standard
37244 \family default
37245 ,
37246  
37247 \family sans
37248 Section
37249 \family default
37250 ,
37251  
37252 \family sans
37253 \SpecialChar LaTeX
37254
37255 \family default
37256 ,
37257  and 
37258 \family sans
37259 \SpecialChar LyX
37260 -Code
37261 \family default
37262 ,
37263  one for the custom inset 
37264 \family sans
37265 Chunk
37266 \family default
37267 .
37268  The last one is a short cut to the 
37269 \begin_inset Quotes eld
37270 \end_inset
37271
37272 Build Program
37273 \begin_inset Quotes erd
37274 \end_inset
37275
37276  File menu entry.
37277  
37278 \end_layout
37279
37280 \begin_layout Standard
37281 \SpecialChar LyX
37282  has a range of buttons that are available for tool bar customization.
37283  In my toolbar I like to combine the six short cuts above with two more:
37284  One for 
37285 \family sans
37286 Document
37287 \family default
37288 \SpecialChar menuseparator
37289
37290 \family sans
37291 Update
37292 \family default
37293 \SpecialChar menuseparator
37294
37295 \family sans
37296 DVI
37297 \family default
37298  and the other for 
37299 \family sans
37300 Document\SpecialChar menuseparator
37301 View\SpecialChar menuseparator
37302 DVI
37303 \family default
37304  File menu entries.
37305  Here is how it looks like:
37306 \end_layout
37307
37308 \begin_layout LyX-Code
37309 Toolbar
37310 \end_layout
37311
37312 \begin_layout LyX-Code
37313   Layouts
37314 \end_layout
37315
37316 \begin_layout LyX-Code
37317   Icon "layout Standard"
37318 \end_layout
37319
37320 \begin_layout LyX-Code
37321   Icon "layout Section"
37322 \end_layout
37323
37324 \begin_layout LyX-Code
37325   Icon "layout \SpecialChar LaTeX
37326 "
37327 \end_layout
37328
37329 \begin_layout LyX-Code
37330   Icon "layout \SpecialChar LyX
37331 -Code"
37332 \end_layout
37333
37334 \begin_layout LyX-Code
37335   Icon "flex.insert Chunk"
37336 \end_layout
37337
37338 \begin_layout LyX-Code
37339   Separator
37340 \end_layout
37341
37342 \begin_layout LyX-Code
37343   Icon "buffer-view"
37344 \end_layout
37345
37346 \begin_layout LyX-Code
37347   Icon "buffer-typeset"
37348 \end_layout
37349
37350 \begin_layout LyX-Code
37351   Icon "build-program"
37352 \end_layout
37353
37354 \begin_layout LyX-Code
37355   Separator
37356 \end_layout
37357
37358 \begin_layout LyX-Code
37359 .
37360 \end_layout
37361
37362 \begin_layout LyX-Code
37363 .
37364 \end_layout
37365
37366 \begin_layout LyX-Code
37367 .
37368 \end_layout
37369
37370 \begin_layout LyX-Code
37371 End
37372 \end_layout
37373
37374 \begin_layout Subsubsection
37375 Colors customization
37376 \end_layout
37377
37378 \begin_layout Standard
37379 There are a number of colors in \SpecialChar LyX
37380  that can be customized in 
37381 \family sans
37382 Preferences
37383 \family default
37384 .
37385  One of the things that bothers people is the \SpecialChar LaTeX
37386  font color.
37387  The default color is red,
37388  since the chunks uses \SpecialChar LaTeX
37389  font,
37390  and there is a lot of chunks in literate documents,
37391  you may get tired of seeing everything in red.
37392  You can change it by going to the tabs 
37393 \family sans
37394 Look&Feel
37395 \family default
37396 ,
37397  
37398 \family sans
37399 Colors.
37400 \end_layout
37401
37402 \begin_layout Standard
37403 The next thing is the visible presence of the newline character in the screen.
37404  You can choose the color of this particular character and make it blend in the background.
37405  I recommend you choosing a color that is close to the background but not equal,
37406  that way you still can see it is there,
37407  but it is not bothering you anymore.
37408 \end_layout
37409
37410 \begin_layout Subsection
37411 \SpecialChar LyX
37412  and knitr/Sweave
37413 \end_layout
37414
37415 \begin_layout Standard
37416 Support for 
37417 \family sans
37418 knitr
37419 \family default
37420  and 
37421 \family sans
37422 Sweave
37423 \family default
37424  is documented in
37425 \change_inserted 564990737 1672161863
37426  
37427 \family sans
37428 Help\SpecialChar menuseparator
37429 Specific Manuals\SpecialChar menuseparator
37430 Knitr
37431 \family default
37432  and
37433 \change_unchanged
37434  
37435 \change_deleted 564990737 1671643409
37436 the 
37437 \emph on
37438 knitr.lyx
37439 \emph default
37440  example file
37441 \change_inserted 564990737 1672161856
37442
37443 \family sans
37444 File\SpecialChar menuseparator
37445 Open Example\SpecialChar menuseparator
37446 Modules\SpecialChar menuseparator
37447 Rnw (knitr)
37448 \change_unchanged
37449
37450 \family default
37451  and in 
37452 \change_deleted 564990737 1671643461
37453 the Sweave manual (menu 
37454 \family sans
37455 Help\SpecialChar menuseparator
37456 Specific Manuals
37457 \family default
37458 )
37459 \change_inserted 564990737 1672161856
37460
37461 \family sans
37462 Help\SpecialChar menuseparator
37463 Specific Manuals\SpecialChar menuseparator
37464 Sweave
37465 \change_deleted 564990737 1672161921
37466
37467 \family default
37468 .
37469
37470 \change_inserted 564990737 1672161917
37471  and 
37472 \family sans
37473 File\SpecialChar menuseparator
37474 Open Example\SpecialChar menuseparator
37475 Modules\SpecialChar menuseparator
37476 Sweave
37477 \family default
37478 .
37479 \change_deleted 564990737 1672742969
37480
37481 \end_layout
37482
37483 \begin_layout Standard
37484
37485 \change_deleted 564990737 1671355343
37486 Special features
37487 \end_layout
37488
37489 \begin_layout Standard
37490
37491 \change_deleted 564990737 1671355343
37492 You can do everything with \SpecialChar LyX
37493  that you can do with \SpecialChar LaTeX
37494 .
37495  However,
37496  \SpecialChar LyX
37497  cannot support every \SpecialChar LaTeX
37498  feature directly.
37499  But you can always use \SpecialChar TeX
37500  Code.
37501  This chapter shows you some more special things you might want to use.
37502  For other special things you can do with figures,
37503  tables,
37504  floats,
37505  boxes and notes,
37506  have a look at the 
37507 \emph on
37508 Embedded
37509 \begin_inset space ~
37510 \end_inset
37511
37512 Objects
37513 \emph default
37514  manual.
37515 \change_unchanged
37516
37517 \end_layout
37518
37519 \end_body
37520 \end_document