]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
* Additional.lyx : Final remarks from John Hudson
[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
2805 \lang american
2806 As explained in the 
2807 \emph on
2808 User's Guide
2809 \emph default
2810 ,
2811  \SpecialChar LaTeX
2812  originally offered four standard document classes,
2813  article,
2814  report,
2815  book and letter,
2816  but individuals and organizations,
2817  most notably the American Mathematical Society in the early days,
2818  have made many contributions to extending the range of document classes.
2819  In this chapter we summarize the main externally maintained classes,
2820  some of which are marked “Unavailable:” in the pull-down 
2821 \family sans
2822 Document
2823 \begin_inset space ~
2824 \end_inset
2825
2826
2827 \bar under
2828 c
2829 \bar default
2830 lass
2831 \family default
2832  list in the 
2833 \family sans
2834 \bar under
2835 D
2836 \bar default
2837 ocument\SpecialChar menuseparator
2838
2839 \bar under
2840 S
2841 \bar default
2842 ettings\SpecialChar menuseparator
2843 Document
2844 \begin_inset space ~
2845 \end_inset
2846
2847 class
2848 \family default
2849  dialog and which you will need to install as described in the 
2850 \emph on
2851 Installing New Document Classes
2852 \emph default
2853  chapter of the 
2854 \emph on
2855 Customization
2856 \emph default
2857  manual if you want to use them.
2858  
2859 \end_layout
2860
2861 \begin_layout Section
2862
2863 \change_inserted 564990737 1670439533
2864 \begin_inset CommandInset label
2865 LatexCommand label
2866 name "sec:Collections"
2867
2868 \end_inset
2869
2870 Collections
2871 \end_layout
2872
2873 \begin_layout Subsection
2874
2875 \change_inserted 564990737 1672345298
2876
2877 \lang american
2878 \begin_inset CommandInset label
2879 LatexCommand label
2880 name "subsec:AMS-LaTeX-(American-Mathematical"
2881
2882 \end_inset
2883
2884 AMS-\SpecialChar LaTeX
2885  (American Mathematical Society)
2886 \end_layout
2887
2888 \begin_layout Standard
2889
2890 \change_inserted 564990737 1672345298
2891
2892 \lang american
2893 The \SpecialChar LyX
2894  supported document classes 
2895 \family sans
2896 article (AMS)
2897 \family default
2898  and 
2899 \family sans
2900 book (AMS)
2901 \family default
2902  are maintained by the Society;
2903  use of their features is described in the Math manual and on their website 
2904 \begin_inset Flex URL
2905 status collapsed
2906
2907 \begin_layout Plain Layout
2908
2909 \change_inserted 564990737 1672345298
2910
2911 http://www.ams.org/publications/authors/tex/amslatex
2912 \change_unchanged
2913
2914 \end_layout
2915
2916 \end_inset
2917
2918 .
2919  The following summary was originally provided by 
2920 \noun on
2921 David Johnson
2922 \noun default
2923  and updated by 
2924 \noun on
2925 Richard Heck
2926 \noun default
2927  and the \SpecialChar LyX
2928  Team
2929 \noun on
2930 .
2931 \change_deleted 564990737 1672345297
2932
2933 \noun default
2934 \lang english
2935 AMS \SpecialChar LaTeX
2936
2937 \end_layout
2938
2939 \begin_layout Standard
2940
2941 \change_deleted 564990737 1672345297
2942 by 
2943 \noun on
2944 David Johnson
2945 \noun default
2946 ;
2947  updated by 
2948 \noun on
2949 Richard Kimberly Heck
2950 \change_unchanged
2951
2952 \end_layout
2953
2954 \begin_layout Standard
2955 \begin_inset VSpace bigskip
2956 \end_inset
2957
2958
2959 \end_layout
2960
2961 \begin_layout Standard
2962 \noindent
2963 The AMS \SpecialChar LaTeX
2964  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
2965  The layouts are not tailored to a specific journal,
2966  but easily can be.
2967  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
2968  output).
2969  That documentation is available on the Web at 
2970 \begin_inset Flex URL
2971 status open
2972
2973 \begin_layout Plain Layout
2974
2975 http://www.ams.org
2976 \end_layout
2977
2978 \end_inset
2979
2980  or by ftp at 
2981 \begin_inset Flex URL
2982 status open
2983
2984 \begin_layout Plain Layout
2985
2986 ftp://ftp.ams.org/pub/tex/amslatex/
2987 \end_layout
2988
2989 \end_inset
2990
2991 .
2992  These layouts are appropriate,
2993  and useful,
2994  for any mathematical writing.
2995  
2996 \end_layout
2997
2998 \begin_layout Standard
2999 There are two basic AMS \SpecialChar LaTeX
3000  layouts:
3001  
3002 \end_layout
3003
3004 \begin_layout Itemize
3005 amsart:
3006  The standard AMS article format
3007 \change_inserted 564990737 1672345333
3008
3009 \lang american
3010 ;
3011  see 
3012 \family sans
3013 File\SpecialChar menuseparator
3014 Open Example\SpecialChar menuseparator
3015 Articles\SpecialChar menuseparator
3016 American Mathematical Society (AMS)
3017 \change_unchanged
3018
3019 \family default
3020 \lang english
3021 .
3022 \end_layout
3023
3024 \begin_layout Itemize
3025 amsbook:
3026  the standard AMS book (really,
3027  monograph) format
3028 \change_inserted 564990737 1672345366
3029
3030 \lang american
3031 ;
3032  see 
3033 \family sans
3034 File\SpecialChar menuseparator
3035 Open Example\SpecialChar menuseparator
3036 Books\SpecialChar menuseparator
3037 American Mathematical Society (AMS)
3038 \change_unchanged
3039
3040 \family default
3041 \lang english
3042 .
3043 \change_inserted 564990737 1672345369
3044
3045 \end_layout
3046
3047 \begin_layout Itemize
3048
3049 \change_inserted 564990737 1672345383
3050
3051 \family sans
3052 \lang american
3053 amsproc
3054 \family default
3055 :
3056  the standard AMS proceedings format.
3057 \end_layout
3058
3059 \begin_layout Standard
3060
3061 \change_inserted 564990737 1672345383
3062
3063 \lang american
3064 \SpecialChar LyX
3065  only supports the first two natively;
3066  see the 
3067 \emph on
3068 Installing New Document Classes
3069 \emph default
3070  chapter of the 
3071 \emph on
3072 Customization
3073 \emph default
3074  manual if you want to use 
3075 \family sans
3076 amsproc
3077 \family default
3078 .
3079 \end_layout
3080
3081 \begin_layout Standard
3082 The layouts themselves contain only the minimum necessary to use the AMS classes.
3083  They do not,
3084  in particular,
3085  contain any of the `theorem' environments used for setting theorems,
3086  lemmas,
3087  and the like.
3088  These are contained,
3089  instead,
3090  in the 
3091 \change_deleted 564990737 1672345416
3092
3093 \begin_inset Flex Code
3094 status collapsed
3095
3096 \begin_layout Plain Layout
3097 Theorems (AMS)
3098 \end_layout
3099
3100 \end_inset
3101
3102
3103 \change_inserted 564990737 1672345416
3104
3105 \family sans
3106 \lang american
3107 AMS Theorems
3108 \change_unchanged
3109
3110 \family default
3111 \lang english
3112  module,
3113  which is loaded by default when you select one of the AMS classes.
3114  (It can also be used with other classes and can be removed,
3115  if you would rather use something else.) Less commonly used environments are in the 
3116 \change_deleted 564990737 1672345436
3117
3118 \begin_inset Flex Code
3119 status collapsed
3120
3121 \begin_layout Plain Layout
3122 Theorems (AMS-Extended)
3123 \end_layout
3124
3125 \end_inset
3126
3127
3128 \change_inserted 564990737 1672345436
3129
3130 \lang american
3131  
3132 \family sans
3133 AMS Theorems (Extended)
3134 \change_unchanged
3135
3136 \family default
3137 \lang english
3138  module,
3139  which must be loaded manually.
3140 \end_layout
3141
3142 \begin_layout Standard
3143 By default,
3144  theorems and the like are numbered consecutively throughout the document,
3145  but this may be modified by loading the module 
3146 \change_deleted 564990737 1672345461
3147
3148 \begin_inset Flex Code
3149 status collapsed
3150
3151 \begin_layout Plain Layout
3152 Theorems (Order by Section)
3153 \end_layout
3154
3155 \end_inset
3156
3157
3158 \change_inserted 564990737 1672345461
3159
3160 \family sans
3161 \lang american
3162 Standard Theorems (Numbered by Section)
3163 \change_unchanged
3164
3165 \family default
3166 \lang english
3167  or,
3168  if you are using 
3169 \begin_inset Flex Code
3170 status collapsed
3171
3172 \begin_layout Plain Layout
3173 book (AMS)
3174 \end_layout
3175
3176 \end_inset
3177
3178 ,
3179  the module 
3180 \change_deleted 564990737 1672345479
3181
3182 \begin_inset Flex Code
3183 status collapsed
3184
3185 \begin_layout Plain Layout
3186 Theorems (Order by Chapter)
3187 \end_layout
3188
3189 \end_inset
3190
3191
3192 \change_inserted 564990737 1672345480
3193
3194 \family sans
3195 \lang american
3196 Standard Theorems (Numbered by Chapter)
3197 \change_unchanged
3198
3199 \family default
3200 \lang english
3201 .
3202  These will number the results as 
3203 \begin_inset Formula $n.m$
3204 \end_inset
3205
3206 ,
3207  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).
3208  Many environments are also available unnumbered.
3209  These are indicated by an asterisk at the end.
3210  If you happen to want 
3211 \emph on
3212 only
3213 \emph default
3214  unnumbered results,
3215  the module 
3216 \change_deleted 564990737 1672345498
3217
3218 \begin_inset Flex Code
3219 status collapsed
3220
3221 \begin_layout Plain Layout
3222 Theorems (Starred)
3223 \end_layout
3224
3225 \end_inset
3226
3227
3228 \change_inserted 564990737 1672345498
3229
3230 \family sans
3231 \lang american
3232 Standard Theorems (Unnumbered)
3233 \change_unchanged
3234
3235 \family default
3236 \lang english
3237  provides that option.
3238 \end_layout
3239
3240 \begin_layout Standard
3241 Note that these modules do not 
3242 \emph on
3243 have
3244 \emph default
3245  to be used with the AMS classes.
3246  It is perfectly possible to use the 
3247 \change_deleted 564990737 1672345520
3248
3249 \begin_inset Flex Code
3250 status collapsed
3251
3252 \begin_layout Plain Layout
3253 Theorems (AMS)
3254 \end_layout
3255
3256 \end_inset
3257
3258
3259 \change_inserted 564990737 1672345520
3260
3261 \family sans
3262 \lang american
3263 AMS Theorems
3264 \change_unchanged
3265
3266 \family default
3267 \lang english
3268  module,
3269  and the others mentioned,
3270  with other classes,
3271  such as 
3272 \begin_inset Flex Code
3273 status collapsed
3274
3275 \begin_layout Plain Layout
3276 article
3277 \end_layout
3278
3279 \end_inset
3280
3281 ,
3282  
3283 \begin_inset Flex Code
3284 status collapsed
3285
3286 \begin_layout Plain Layout
3287 report
3288 \end_layout
3289
3290 \end_inset
3291
3292 ,
3293  
3294 \begin_inset Flex Code
3295 status collapsed
3296
3297 \begin_layout Plain Layout
3298 book (KOMA-script)
3299 \end_layout
3300
3301 \end_inset
3302
3303 ,
3304  and so forth.
3305 \end_layout
3306
3307 \begin_layout Subsubsection
3308 What these layouts provide
3309 \end_layout
3310
3311 \begin_layout Standard
3312 There is a long list of included environments provided by these layouts.
3313  In AMS-\SpecialChar LaTeX
3314 ,
3315  there is,
3316  in fact,
3317  an opportunity to define an unlimited variety of `theorem' environments.
3318  However,
3319  the AMS recommends the environments that are available in \SpecialChar LyX
3320 .
3321  
3322 \end_layout
3323
3324 \begin_layout Standard
3325 The following environments—
3326 as well as the standard environments,
3327  such as 
3328 \begin_inset Flex Noun
3329 status collapsed
3330
3331 \begin_layout Plain Layout
3332 section
3333 \end_layout
3334
3335 \end_inset
3336
3337 ,
3338  
3339 \begin_inset Flex Noun
3340 status collapsed
3341
3342 \begin_layout Plain Layout
3343 bibliography
3344 \end_layout
3345
3346 \end_inset
3347
3348 ,
3349  
3350 \begin_inset Flex Noun
3351 status collapsed
3352
3353 \begin_layout Plain Layout
3354 title
3355 \end_layout
3356
3357 \end_inset
3358
3359 ,
3360  
3361 \begin_inset Flex Noun
3362 status collapsed
3363
3364 \begin_layout Plain Layout
3365 author
3366 \end_layout
3367
3368 \end_inset
3369
3370 ,
3371  and 
3372 \begin_inset Flex Noun
3373 status collapsed
3374
3375 \begin_layout Plain Layout
3376 date
3377 \end_layout
3378
3379 \end_inset
3380
3381
3382 are provided by 
3383 \begin_inset Flex Code
3384 status collapsed
3385
3386 \begin_layout Plain Layout
3387 article (AMS)
3388 \end_layout
3389
3390 \end_inset
3391
3392  and 
3393 \begin_inset Flex Code
3394 status collapsed
3395
3396 \begin_layout Plain Layout
3397 book (AMS)
3398 \end_layout
3399
3400 \end_inset
3401
3402 :
3403 \end_layout
3404
3405 \begin_layout Description
3406 Address This should be the author's permanent address.
3407 \end_layout
3408
3409 \begin_layout Description
3410 Current
3411 \begin_inset space ~
3412 \end_inset
3413
3414 Address This should be the author's temporary address at the time of submission,
3415  if different from the Address.
3416 \end_layout
3417
3418 \begin_layout Description
3419 Email Author's e-mail address
3420 \end_layout
3421
3422 \begin_layout Description
3423 URL Author's Web address,
3424  if desired.
3425 \end_layout
3426
3427 \begin_layout Description
3428 Keywords Key words or phrases used to identify specific topics discussed in the paper.
3429 \end_layout
3430
3431 \begin_layout Description
3432 Subjectclass These refer to the AMS Subject Classifications,
3433  published and described in 
3434 \emph on
3435 Mathematical Reviews
3436 \emph default
3437 .
3438  These are also available online at the AMS cites listed above.
3439 \end_layout
3440
3441 \begin_layout Description
3442 Thanks
3443 \end_layout
3444
3445 \begin_layout Description
3446 Dedicatory
3447 \end_layout
3448
3449 \begin_layout Description
3450 Translator
3451 \end_layout
3452
3453 \begin_layout Standard
3454 The following environments are provided by both the 
3455 \change_deleted 564990737 1672345566
3456
3457 \begin_inset Flex Code
3458 status collapsed
3459
3460 \begin_layout Plain Layout
3461 Theorems
3462 \end_layout
3463
3464 \end_inset
3465
3466
3467 \change_inserted 564990737 1672345566
3468
3469 \family sans
3470 \lang american
3471 Standard Theorems
3472 \change_unchanged
3473
3474 \family default
3475 \lang english
3476  and 
3477 \change_deleted 564990737 1672345580
3478
3479 \begin_inset Flex Code
3480 status collapsed
3481
3482 \begin_layout Plain Layout
3483 Theorems (AMS)
3484 \end_layout
3485
3486 \end_inset
3487
3488
3489 \change_inserted 564990737 1672345580
3490
3491 \family sans
3492 \lang american
3493 AMS Theorems
3494 \change_unchanged
3495
3496 \family default
3497 \lang english
3498  modules,
3499  in the latter case in both starred (unnumbered) and unstarred (numbered) versions.
3500  These same environments are provided only in the starred versions by the 
3501 \change_deleted 564990737 1672345596
3502
3503 \begin_inset Flex Code
3504 status collapsed
3505
3506 \begin_layout Plain Layout
3507 Theorems (Starred)
3508 \end_layout
3509
3510 \end_inset
3511
3512
3513 \change_inserted 564990737 1672345596
3514
3515 \family sans
3516 \lang american
3517 Standard Theorems
3518 \change_unchanged
3519
3520 \family default
3521 \lang english
3522  module:
3523 \end_layout
3524
3525 \begin_layout Theorem
3526 This is typically used for the statements of major results.
3527  
3528 \end_layout
3529
3530 \begin_layout Corollary*
3531 This is used for statements which follow fairly directly from previous statements.
3532  Again,
3533  these can be major results.
3534  
3535 \end_layout
3536
3537 \begin_layout Lemma
3538 These are smaller results needed to prove other statements.
3539 \end_layout
3540
3541 \begin_layout Proposition
3542 These are less major results which (hopefully) add to the general theory being discussed.
3543 \end_layout
3544
3545 \begin_layout Conjecture
3546 These are statements provided without justification,
3547  which the author does not know how to prove,
3548  but which seem to be true (to the author,
3549  at least).
3550 \end_layout
3551
3552 \begin_layout Definition*
3553 Guess what this is for.
3554  The font is different for this environment than for the previous ones.
3555  
3556 \end_layout
3557
3558 \begin_layout Example*
3559 Used for examples illustrating proven results.
3560 \end_layout
3561
3562 \begin_layout Problem
3563 It's not really known what this is for.
3564  You should figure it out.
3565 \end_layout
3566
3567 \begin_layout Exercise*
3568 Write a description for this one.
3569 \end_layout
3570
3571 \begin_layout Remark
3572 This environment is also a type of theorem,
3573  usually a lesser sort of observation.
3574 \end_layout
3575
3576 \begin_layout Claim*
3577 Often used in the course of giving a proof of a larger result.
3578 \end_layout
3579
3580 \begin_layout Case
3581 Generally,
3582  these are used to break up long arguments,
3583  using specific instances of some condition.
3584  
3585 \end_layout
3586
3587 \begin_layout Case
3588 The numbering scheme for cases is on its own,
3589  not together with other numbered statements.
3590  
3591 \end_layout
3592
3593 \begin_layout Proof
3594 At the end of this environment,
3595  a QED symbol (usually a square,
3596  but it can vary with different styles) is placed.
3597  If you want to have other environments within this one—
3598 for example,
3599  Case environments—
3600 and have the QED symbol appear only after them,
3601  then the other environments need to be nested within the proof environment.
3602  See the section 
3603 \emph on
3604 Nesting Environments
3605 \emph default
3606  of the 
3607 \emph on
3608 User's Guide
3609 \emph default
3610  for information on nesting.
3611 \end_layout
3612
3613 \begin_layout Fact
3614
3615 \change_inserted 564990737 1672345651
3616 Used in a way similar to Proposition,
3617  though perhaps lower on the scale.
3618 \end_layout
3619
3620 \begin_layout Standard
3621 And these environments are provided by 
3622 \change_deleted 564990737 1672345684
3623
3624 \begin_inset Flex Code
3625 status collapsed
3626
3627 \begin_layout Plain Layout
3628 Theorems (AMS-Extended)
3629 \end_layout
3630
3631 \end_inset
3632
3633
3634 \change_inserted 564990737 1672345689
3635
3636 \family sans
3637 \lang american
3638 AMS Theorems (Extended
3639 \family default
3640 \lang english
3641 )
3642 \change_unchanged
3643 :
3644 \end_layout
3645
3646 \begin_layout Criterion*
3647 A required condition.
3648 \end_layout
3649
3650 \begin_layout Algorithm*
3651 A general procedure to be used.
3652 \end_layout
3653
3654 \begin_layout Axiom*
3655 This is a property or statement taken as true within the system being discussed.
3656 \end_layout
3657
3658 \begin_layout Condition*
3659 Sometimes used to state a condition assumed within the present context of discussion.
3660 \end_layout
3661
3662 \begin_layout Note*
3663 Similar to a Remark.
3664 \end_layout
3665
3666 \begin_layout Notation*
3667 Used for the explanation of,
3668  yes,
3669  notation.
3670 \end_layout
3671
3672 \begin_layout Summary
3673 Do we really need to tell you?
3674  
3675 \end_layout
3676
3677 \begin_layout Acknowledgement*
3678 Acknowledgement.
3679 \end_layout
3680
3681 \begin_layout Conclusion*
3682 Sometimes used at the end of a long train of argument.
3683 \change_deleted 564990737 1672345729
3684
3685 \end_layout
3686
3687 \begin_layout Fact
3688
3689 \change_deleted 564990737 1672345638
3690 Used in a way similar to Proposition,
3691  though perhaps lower on the scale.
3692 \change_inserted 564990737 1672345720
3693
3694 \end_layout
3695
3696 \begin_layout Assumption*
3697
3698 \change_inserted 564990737 1672345721
3699
3700 \lang american
3701 Assumption
3702 \end_layout
3703
3704 \begin_layout Question*
3705
3706 \change_inserted 564990737 1672345721
3707
3708 \lang american
3709 Question
3710 \end_layout
3711
3712 \begin_layout Standard
3713
3714 \change_inserted 564990737 1672345721
3715
3716 \lang american
3717 There are ten more Maths modules available including several offering options ordered on 
3718 \family sans
3719 (Numbered by Type \SpecialChar ldots
3720 )
3721 \family default
3722 .
3723 \change_unchanged
3724
3725 \end_layout
3726
3727 \begin_layout Standard
3728 In addition,
3729  the AMS classes automatically provide the AMS \SpecialChar LaTeX
3730  and AMS fonts packages.
3731  They need to be available on your system in order to use these environments.
3732 \end_layout
3733
3734 \begin_layout Subsection
3735
3736 \change_inserted 564990737 1671383236
3737
3738 \lang american
3739 \begin_inset CommandInset label
3740 LatexCommand label
3741 name "subsec:Extra-font-sizes"
3742
3743 \end_inset
3744
3745 Extra font sizes
3746 \end_layout
3747
3748 \begin_layout Standard
3749
3750 \change_inserted 564990737 1671383236
3751
3752 \lang american
3753 The “Extra font sizes” collection provides the document classes 
3754 \family sans
3755 article
3756 \begin_inset space \thinspace{}
3757 \end_inset
3758
3759 (with extra font sizes)
3760 \family default
3761 ,
3762  
3763 \family sans
3764 book
3765 \begin_inset space \thinspace{}
3766 \end_inset
3767
3768 (with extra font sizes)
3769 \family default
3770 ,
3771  
3772 \family sans
3773 letter
3774 \begin_inset space \thinspace{}
3775 \end_inset
3776
3777 (with extra font sizes)
3778 \family default
3779  and 
3780 \family sans
3781 report
3782 \begin_inset space \thinspace{}
3783 \end_inset
3784
3785 (with extra font sizes)
3786 \family default
3787  which use the 
3788 \family typewriter
3789 article.cls
3790 \family default
3791 ,
3792  
3793 \family typewriter
3794 book.cls
3795 \family default
3796 ,
3797  
3798 \family typewriter
3799 letter.cls
3800 \family default
3801  and 
3802 \family typewriter
3803 report.cls
3804 \family default
3805  document classes respectively but offer the additional 
3806 \family sans
3807 \bar under
3808 B
3809 \bar default
3810 ase
3811 \begin_inset space ~
3812 \end_inset
3813
3814 Size
3815 \family default
3816  options 8,
3817  9,
3818  14,
3819  17 and 20 in the 
3820 \family sans
3821 \bar under
3822 D
3823 \bar default
3824 ocument\SpecialChar menuseparator
3825
3826 \bar under
3827 S
3828 \bar default
3829 ettings\SpecialChar menuseparator
3830 Fonts
3831 \family default
3832  dialog.
3833 \end_layout
3834
3835 \begin_layout Subsection
3836
3837 \change_inserted 564990737 1671383236
3838
3839 \lang american
3840 Hebrew
3841 \end_layout
3842
3843 \begin_layout Standard
3844
3845 \change_inserted 564990737 1671383236
3846
3847 \lang american
3848 The document classes 
3849 \family sans
3850 article
3851 \begin_inset space \thinspace{}
3852 \end_inset
3853
3854 (Hebrew)
3855 \family default
3856  and 
3857 \family sans
3858 letter
3859 \begin_inset space \thinspace{}
3860 \end_inset
3861
3862 (Hebrew)
3863 \family default
3864  use the 
3865 \family typewriter
3866 article.cl
3867 \family sans
3868 s
3869 \family default
3870  and 
3871 \family typewriter
3872 letter.cls
3873 \family default
3874  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3875 .
3876 \end_layout
3877
3878 \begin_layout Subsection
3879
3880 \change_inserted 564990737 1671383236
3881
3882 \lang american
3883 \begin_inset CommandInset label
3884 LatexCommand label
3885 name "subsec:Japanese"
3886
3887 \end_inset
3888
3889 Japanese
3890 \end_layout
3891
3892 \begin_layout Standard
3893
3894 \change_inserted 564990737 1671383236
3895
3896 \lang american
3897 The document classes 
3898 \family sans
3899 article
3900 \begin_inset space \thinspace{}
3901 \end_inset
3902
3903 (Japanese JS Class)
3904 \family default
3905 ,
3906
3907 \family sans
3908  article
3909 \begin_inset space \thinspace{}
3910 \end_inset
3911
3912 (Japanese Standard Class Vertical Writing)
3913 \family default
3914 ,
3915  
3916 \family sans
3917 article
3918 \begin_inset space \thinspace{}
3919 \end_inset
3920
3921 (Japanese Standard Class)
3922 \family default
3923 ,
3924  
3925 \family sans
3926 book
3927 \begin_inset space \thinspace{}
3928 \end_inset
3929
3930 (Japanese JS Class)
3931 \family default
3932 ,
3933
3934 \family sans
3935  book
3936 \begin_inset space \thinspace{}
3937 \end_inset
3938
3939 (Japanese Standard Class Vertical Writing)
3940 \family default
3941 ,
3942  
3943 \family sans
3944 book
3945 \begin_inset space \thinspace{}
3946 \end_inset
3947
3948 (Japanese Standard Class)
3949 \family default
3950 ,
3951  
3952 \family sans
3953 report
3954 \begin_inset space \thinspace{}
3955 \end_inset
3956
3957 (Japanese Vertical Writing)
3958 \family default
3959  and 
3960 \family sans
3961 report
3962 \begin_inset space \thinspace{}
3963 \end_inset
3964
3965 (Japanese Standard Class)
3966 \family default
3967  provide document classes for the Japanese language.
3968 \end_layout
3969
3970 \begin_layout Subsection
3971
3972 \change_inserted 564990737 1672429136
3973
3974 \lang american
3975 \begin_inset CommandInset label
3976 LatexCommand label
3977 name "subsec:KOMA-Script"
3978
3979 \end_inset
3980
3981 KOMA-Script
3982 \end_layout
3983
3984 \begin_layout Standard
3985
3986 \change_inserted 564990737 1672429136
3987
3988 \lang american
3989 Original by 
3990 \noun on
3991 Bernd Rellermeyer
3992 \noun default
3993 ;
3994  updated by 
3995 \noun on
3996 Jürgen Spitzmüller
3997 \noun default
3998  and the \SpecialChar LyX
3999  Team
4000 \change_deleted 564990737 1672429136
4001
4002 \lang english
4003 Koma-Script
4004 \end_layout
4005
4006 \begin_layout Standard
4007
4008 \change_deleted 564990737 1672429136
4009 by 
4010 \noun on
4011 Bernd Rellermeyer
4012 \change_unchanged
4013
4014 \end_layout
4015
4016 \begin_layout Subsubsection
4017 Overview
4018 \change_inserted 564990737 1672429161
4019
4020 \end_layout
4021
4022 \begin_layout Standard
4023
4024 \change_inserted 564990737 1672429162
4025
4026 \lang american
4027 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
4028  it was formally launched with the addition of a letter class in 1994.
4029  Since then,
4030  a second letter class has been added.
4031  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.
4032  
4033 \change_unchanged
4034
4035 \end_layout
4036
4037 \begin_layout Standard
4038 The \SpecialChar LyX
4039  document classes 
4040 \emph on
4041 article (koma-script)
4042 \emph default
4043 ,
4044  
4045 \emph on
4046 report (koma-script)
4047 \emph default
4048 ,
4049  
4050 \emph on
4051 book
4052 \emph default
4053  
4054 \emph on
4055 (koma-script)
4056 \emph default
4057 ,
4058  and 
4059 \emph on
4060 letter
4061 \emph default
4062  
4063 \emph on
4064 (koma-script)
4065 \emph default
4066  correspond to the \SpecialChar LaTeX
4067  document classes 
4068 \family typewriter
4069 scrartcl.cls
4070 \family default
4071 ,
4072  
4073 \family typewriter
4074 scrreprt.cls
4075 \family default
4076 ,
4077  
4078 \family typewriter
4079 scrbook.cls
4080 \family default
4081 ,
4082  and 
4083 \family typewriter
4084 scrlettr.cls
4085 \family default
4086 ,
4087  resp.
4088 \begin_inset space ~
4089 \end_inset
4090
4091 of the Koma-Script family.
4092  They are replacements for the standard document classes 
4093 \family typewriter
4094 article.cls
4095 \family default
4096 ,
4097  
4098 \family typewriter
4099 report.cls
4100 \family default
4101 ,
4102  
4103 \family typewriter
4104 book.cls
4105 \family default
4106  and 
4107 \family typewriter
4108 letter.cls
4109 \family default
4110 ,
4111  resp.,
4112  and fit better to European typography conventions in a number of points.
4113 \end_layout
4114
4115 \begin_layout Itemize
4116
4117 \change_deleted 564990737 1672429262
4118 Standard character size is
4119 \change_inserted 564990737 1672429263
4120
4121 \lang american
4122 The base character sizes when you select a KOMA-Script class are
4123 \change_unchanged
4124
4125 \lang english
4126  11pt in 
4127 \emph on
4128 article (koma-script)
4129 \emph default
4130 ,
4131  
4132 \emph on
4133 report (koma-script)
4134 \emph default
4135 ,
4136  and 
4137 \emph on
4138 book (koma-script)
4139 \change_deleted 564990737 1672429267
4140
4141 \emph default
4142 ,
4143
4144 \change_unchanged
4145  and 12pt in 
4146 \emph on
4147 letter (koma-script)
4148 \emph default
4149 .
4150 \end_layout
4151
4152 \begin_layout Itemize
4153 Headings,
4154  labels of the description environment,
4155  and a number of elements of the 
4156 \emph on
4157 letter (koma-script)
4158 \emph default
4159  document class are set in a bold sans serif font.
4160 \begin_inset Foot
4161 status collapsed
4162
4163 \begin_layout Plain Layout
4164 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
4165  especially in the appearance of headings.
4166  In comparison,
4167  the ec bold sans serif fonts look a bit thin.
4168  Here the \SpecialChar LaTeX
4169  package 
4170 \family typewriter
4171 cmsd.sty by
4172 \family default
4173  
4174 \shape smallcaps
4175 Walter Schmidt
4176 \shape default
4177  helps to produce the 
4178 \begin_inset Quotes eld
4179 \end_inset
4180
4181 usual
4182 \begin_inset Quotes erd
4183 \end_inset
4184
4185  appearance when using the ec fonts.
4186 \end_layout
4187
4188 \end_inset
4189
4190  The numbering of chapter headings is made in the same way as the numbering of section headings,
4191  that is without the extra line 
4192 \begin_inset Quotes eld
4193 \end_inset
4194
4195 Chapter\SpecialChar ldots
4196
4197 \begin_inset Quotes erd
4198 \end_inset
4199
4200 .
4201  In addition,
4202  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
4203  to be entered in the field 
4204 \family sans
4205 Extra
4206 \begin_inset space ~
4207 \end_inset
4208
4209 Options
4210 \family default
4211  of the dialog 
4212 \family sans
4213 Layout\SpecialChar menuseparator
4214 Document
4215 \family default
4216 ).
4217  
4218 \end_layout
4219
4220 \begin_layout Itemize
4221
4222 \change_deleted 564990737 1672429310
4223 The main means in the Koma-Script document classes to design the type area are the options 
4224 \family sans
4225 BCOR
4226 \family default
4227  and 
4228 \family sans
4229 DIV
4230 \family default
4231  (in \SpecialChar LyX
4232  to be entered in the extra class options field in the dialog 
4233 \family sans
4234 Document\SpecialChar menuseparator
4235 Settings
4236 \family default
4237 ).
4238  They make a clearer modification of page margins possible as do the options of the dialog 
4239 \family sans
4240 Document\SpecialChar menuseparator
4241 Settings
4242 \family default
4243 .
4244  
4245 \change_inserted 564990737 1672429310
4246
4247 \lang american
4248 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.
4249  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.
4250  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
4251  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
4252  
4253 \end_layout
4254
4255 \begin_deeper
4256 \begin_layout Standard
4257
4258 \change_inserted 564990737 1672429310
4259
4260 \lang american
4261 Whatever the factor,
4262  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
4263  leaving a text area occupying around half the page.
4264  Since most two-sided documents have a binding,
4265  this can make the inner margins appear too narrow;
4266  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
4267  
4268 \end_layout
4269
4270 \begin_layout Standard
4271
4272 \change_inserted 564990737 1672429310
4273
4274 \lang american
4275 The main means in the Koma-Script document classes to design the type area are the options 
4276 \family sans
4277 BCOR
4278 \family default
4279  and 
4280 \family sans
4281 DIV
4282 \family default
4283  entered in 
4284 \family sans
4285 Document\SpecialChar menuseparator
4286 Settings\SpecialChar menuseparator
4287 Document Class\SpecialChar menuseparator
4288 Class Options\SpecialChar menuseparator
4289 Custom
4290 \family default
4291 .
4292  
4293 \end_layout
4294
4295 \begin_layout Standard
4296
4297 \change_inserted 564990737 1672429310
4298
4299 \lang american
4300 In this document,
4301  the binding correction is 7.5mm which is added in the form 
4302 \family typewriter
4303 BCOR7.5mm
4304 \family default
4305  to 
4306 \family sans
4307 Class
4308 \begin_inset space ~
4309 \end_inset
4310
4311 options\SpecialChar menuseparator
4312 Cus
4313 \bar under
4314 t
4315 \bar default
4316 om
4317 \family default
4318  dialog.
4319  To change the factor to 11,
4320  for example,
4321  add the entry 
4322 \family typewriter
4323 DIV=11
4324 \family default
4325  to the comma separated list of entries in the 
4326 \family sans
4327 Cus
4328 \bar under
4329 t
4330 \bar default
4331 om
4332 \family default
4333  
4334 \family sans
4335 Class
4336 \begin_inset space ~
4337 \end_inset
4338
4339 options
4340 \family default
4341 .
4342  If you want the default value of this factor for a page size other than A4,
4343  add the entry 
4344 \family typewriter
4345 DIV=calc
4346 \family default
4347 .
4348 \end_layout
4349
4350 \begin_layout Standard
4351
4352 \change_inserted 564990737 1672429310
4353
4354 \lang american
4355 To use the circle method of calculating the page layout,
4356  use 
4357 \family typewriter
4358 DIV=classic
4359 \family default
4360  instead.
4361 \change_unchanged
4362
4363 \end_layout
4364
4365 \end_deeper
4366 \begin_layout Itemize
4367 The \SpecialChar LaTeX
4368  document classes of the Koma-Script family define a number of additional commands.
4369  Those part of it which makes sense in \SpecialChar LyX
4370  is implemented in corresponding paragraph types.
4371 \end_layout
4372
4373 \begin_layout Standard
4374 Detailed descriptions of the \SpecialChar LaTeX
4375  document classes of the Koma-Script family can be found in the Koma-Script documentation 
4376 \emph on
4377 scrguide
4378 \emph default
4379  (German) and 
4380 \emph on
4381 scrguien
4382 \emph default
4383  (English).
4384 \end_layout
4385
4386 \begin_layout Subsubsection
4387
4388 \change_inserted 564990737 1672429358
4389
4390 \series bold
4391 \lang american
4392 \begin_inset CommandInset label
4393 LatexCommand label
4394 name "subsec:article-(KOMA-Script),-report"
4395
4396 \end_inset
4397
4398
4399 \series default
4400 article (KOMA-Script),
4401  report (KOMA-Script),
4402  and book (KOMA-Script)
4403 \change_deleted 564990737 1672429367
4404
4405 \lang english
4406 article (koma-script),
4407  report (koma-script),
4408  and book (koma-script)
4409 \change_unchanged
4410
4411 \end_layout
4412
4413 \begin_layout Standard
4414 The document classes 
4415 \emph on
4416 article (koma-script)
4417 \emph default
4418 ,
4419  
4420 \emph on
4421 report (koma-script)
4422 \emph default
4423 ,
4424  and 
4425 \emph on
4426 book
4427 \emph default
4428  
4429 \emph on
4430 (koma-script)
4431 \emph default
4432  are implemented in the layout files 
4433 \family typewriter
4434 scrartcl.layout
4435 \family default
4436 ,
4437  
4438 \family typewriter
4439 scrreprt.layout
4440 \family default
4441 ,
4442  and 
4443 \family typewriter
4444 scrbook.layout
4445 \family default
4446 ,
4447  resp.
4448  They contain all the paragraph types of the corresponding standard document classes 
4449 \emph on
4450 article
4451 \emph default
4452 ,
4453  
4454 \emph on
4455 report
4456 \emph default
4457 ,
4458  and 
4459 \emph on
4460 book
4461 \emph default
4462 ,
4463  resp.,
4464  partly modified,
4465  with the exception of the \SpecialChar LyX
4466  specific 
4467 \family sans
4468 List
4469 \family default
4470 -type,
4471  which is replaced by the new 
4472 \family sans
4473 Labeling
4474 \family default
4475 -type having the same functionality.
4476  Beside the 
4477 \family sans
4478 Labeling
4479 \family default
4480 -Type there is a number of new paragraph types added.
4481  They are 
4482 \emph on
4483 not
4484 \emph default
4485  part of 
4486 \emph on
4487 letter (koma-script)
4488 \emph default
4489 .
4490 \end_layout
4491
4492 \begin_layout Itemize
4493
4494 \family sans
4495 Addpart,
4496  Addchap
4497 \family default
4498 ,
4499  
4500 \family sans
4501 Addsec
4502 \family default
4503 :
4504  are equivalents to 
4505 \family sans
4506 Part*,
4507  Chapter*
4508 \family default
4509  and 
4510 \family sans
4511 Section*
4512 \family default
4513 ,
4514  resp.,
4515  additionally inserting an entry in the table of contents.
4516  
4517 \family sans
4518 Addpart
4519 \family default
4520  and 
4521 \family sans
4522 Addchap
4523 \family default
4524  are not contained in 
4525 \emph on
4526 article (koma-script)
4527 \emph default
4528 .
4529 \end_layout
4530
4531 \begin_layout Itemize
4532
4533 \family sans
4534 Addchap*
4535 \family default
4536 ,
4537  
4538 \family sans
4539 Addsec*
4540 \family default
4541 :
4542  behave exactly as 
4543 \family sans
4544 Addchap
4545 \family default
4546  and 
4547 \family sans
4548 Addsec
4549 \family default
4550 ,
4551  resp.,
4552  additionally clearing running heads.
4553  
4554 \family sans
4555 Addchap*
4556 \family default
4557  is not contained in 
4558 \emph on
4559 article (koma-script)
4560 \emph default
4561 .
4562 \begin_inset Foot
4563 status collapsed
4564
4565 \begin_layout Plain Layout
4566 There is also an 
4567 \family typewriter
4568
4569 \backslash
4570 addpart*
4571 \family default
4572  command in 
4573 \emph on
4574 book (koma-script)
4575 \emph default
4576  and in 
4577 \emph on
4578 report (koma-script)
4579 \emph default
4580 ,
4581  but since this is identical to 
4582 \family sans
4583 Part*
4584 \family default
4585 ,
4586  is has not been implemented in \SpecialChar LyX
4587 .
4588 \end_layout
4589
4590 \end_inset
4591
4592
4593 \end_layout
4594
4595 \begin_layout Itemize
4596
4597 \family sans
4598 Minisec
4599 \family default
4600 :
4601  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
4602 \end_layout
4603
4604 \begin_layout Itemize
4605
4606 \family sans
4607 Captionabove
4608 \family default
4609  and 
4610 \family sans
4611 Captionbelow
4612 \family default
4613  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
4614  you might want to place table captions always above the table).
4615  You can also use the class option 
4616 \family typewriter
4617 tablecaptionsabove
4618 \family default
4619 ,
4620  which will switch 
4621 \family sans
4622 caption
4623 \family default
4624  to 
4625 \family sans
4626 captionabove
4627 \family default
4628  for tables and 
4629 \family sans
4630 captionbelow
4631 \family default
4632  for figures.
4633  You need at least Koma-Script version 2.8q to use this.
4634 \end_layout
4635
4636 \begin_layout Itemize
4637
4638 \family sans
4639 Dictum
4640 \family default
4641 :
4642  can be used to set a bonmot,
4643  e.
4644 \begin_inset space \thinspace{}
4645 \end_inset
4646
4647 g.
4648 \begin_inset space \space{}
4649 \end_inset
4650
4651 at the beginning of a chapter.
4652  If you use the optional argument (
4653 \family sans
4654 Insert\SpecialChar menuseparator
4655 Dictum
4656 \begin_inset space ~
4657 \end_inset
4658
4659 Author
4660 \family default
4661 ),
4662  you can insert the dictum's author there.
4663  Dictum and author are separated by a line.
4664  You need at least Koma-Script version 2.8q to use this.
4665  
4666 \family sans
4667 Dictum
4668 \family default
4669  is not contained in 
4670 \emph on
4671 article (koma-script)
4672 \emph default
4673 .
4674 \end_layout
4675
4676 \begin_layout Standard
4677 The following types,
4678  together with the standard types 
4679 \family sans
4680 Title
4681 \family default
4682 ,
4683  
4684 \family sans
4685 Author
4686 \family default
4687 ,
4688  and 
4689 \family sans
4690 Date
4691 \family default
4692 ,
4693  form the title area of the document.
4694  They must be entered ahead of the first 
4695 \begin_inset Quotes eld
4696 \end_inset
4697
4698 ordinary
4699 \begin_inset Quotes erd
4700 \end_inset
4701
4702  paragraph.
4703 \begin_inset Foot
4704 status collapsed
4705
4706 \begin_layout Plain Layout
4707 The corresponding \SpecialChar LaTeX
4708  commands must appear before the 
4709 \family typewriter
4710
4711 \backslash
4712 maketitle
4713 \family default
4714  command.
4715 \end_layout
4716
4717 \end_inset
4718
4719  When such a type is used more than once,
4720  the latter usage overwrites the former one,
4721  that means,
4722  for every type only the latest usage is valid.
4723  The order of the different types however has,
4724  like 
4725 \family sans
4726 Title
4727 \family default
4728 ,
4729  
4730 \family sans
4731 Author
4732 \family default
4733 ,
4734  and 
4735 \family sans
4736 Date
4737 \family default
4738 ,
4739  no effect on the appearance of the produced document.
4740 \end_layout
4741
4742 \begin_layout Itemize
4743
4744 \family sans
4745 Subject
4746 \family default
4747 :
4748  produces a centered paragraph above the ordinary title (
4749 \family sans
4750 Title
4751 \family default
4752 ,
4753  
4754 \family sans
4755 Author
4756 \family default
4757 ,
4758  
4759 \family sans
4760 Date
4761 \family default
4762 ) for the subject of the document.
4763 \end_layout
4764
4765 \begin_layout Itemize
4766
4767 \family sans
4768 Publishers
4769 \family default
4770 :
4771  produces a centered paragraph below the ordinary title (
4772 \family sans
4773 Title
4774 \family default
4775 ,
4776  
4777 \family sans
4778 Author
4779 \family default
4780 ,
4781  
4782 \family sans
4783 Date
4784 \family default
4785 ) for the publishers' name.
4786 \end_layout
4787
4788 \begin_layout Itemize
4789
4790 \family sans
4791 Dedication
4792 \family default
4793 :
4794  in 
4795 \emph on
4796 report (koma-script)
4797 \emph default
4798  and 
4799 \emph on
4800 book (koma-script)
4801 \emph default
4802  produces a centered paragraph on its own page behind the title page,
4803  or in 
4804 \emph on
4805 article (koma-script)
4806 \emph default
4807  produces a centered paragraph below the ordinary title (
4808 \family sans
4809 Title
4810 \family default
4811 ,
4812  
4813 \family sans
4814 Author
4815 \family default
4816 ,
4817  
4818 \family sans
4819 Date
4820 \family default
4821 ,
4822  
4823 \family sans
4824 Publishers
4825 \family default
4826 ) for a dedication.
4827 \end_layout
4828
4829 \begin_layout Itemize
4830
4831 \family sans
4832 Titlehead
4833 \family default
4834 :
4835  produces a left aligned paragraph above the ordinary title (
4836 \family sans
4837 Title
4838 \family default
4839 ,
4840  
4841 \family sans
4842 Author
4843 \family default
4844 ,
4845  
4846 \family sans
4847 Date
4848 \family default
4849 ,
4850  
4851 \family sans
4852 Subject
4853 \family default
4854 ) for a document`s head.
4855 \end_layout
4856
4857 \begin_layout Itemize
4858
4859 \family sans
4860 Uppertitleback
4861 \family default
4862 :
4863  produces in a double-sided print in 
4864 \emph on
4865 report (koma-script)
4866 \emph default
4867  and 
4868 \emph on
4869 book (koma-script)
4870 \emph default
4871  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
4872 \emph on
4873 article (koma-script)
4874 \emph default
4875 .
4876 \end_layout
4877
4878 \begin_layout Itemize
4879
4880 \family sans
4881 Lowertitleback
4882 \family default
4883 :
4884  produces in a double-sided print in 
4885 \emph on
4886 report (koma-script)
4887 \emph default
4888  and 
4889 \emph on
4890 book (koma-script)
4891 \emph default
4892  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
4893 \emph on
4894 article (koma-script)
4895 \emph default
4896 .
4897 \end_layout
4898
4899 \begin_layout Itemize
4900
4901 \family sans
4902 Extratitle
4903 \family default
4904 :
4905  produces a special 
4906 \begin_inset Quotes eld
4907 \end_inset
4908
4909 dirty
4910 \begin_inset Quotes erd
4911 \end_inset
4912
4913  page ahead of the actual document containing a paragraph without special formatting.
4914 \end_layout
4915
4916 \begin_layout Standard
4917
4918 \change_inserted 564990737 1672429680
4919
4920 \lang american
4921 KOMA-Script offers a wide range of 
4922 \family sans
4923 Cus
4924 \bar under
4925 t
4926 \bar default
4927 om Class
4928 \begin_inset space ~
4929 \end_inset
4930
4931 options
4932 \family default
4933  for the 
4934 \family sans
4935 \bar under
4936 D
4937 \bar default
4938 ocument\SpecialChar menuseparator
4939
4940 \bar under
4941 S
4942 \bar default
4943 ettings\SpecialChar menuseparator
4944 Document
4945 \begin_inset space ~
4946 \end_inset
4947
4948 class
4949 \family default
4950  dialog which you can apply to the whole document,
4951  among them
4952 \end_layout
4953
4954 \begin_layout Description
4955
4956 \change_inserted 564990737 1672429680
4957
4958 \family typewriter
4959 \series medium
4960 \lang american
4961 draft=true
4962 \family default
4963 \series default
4964  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
4965  the default setting is 
4966 \family typewriter
4967 false
4968 \end_layout
4969
4970 \begin_layout Description
4971
4972 \change_inserted 564990737 1672429680
4973
4974 \family typewriter
4975 \series medium
4976 \lang american
4977 headings=
4978 \family default
4979 \series default
4980  which may take the values 
4981 \family typewriter
4982 big
4983 \family default
4984 ,
4985  
4986 \family typewriter
4987 normal
4988 \family default
4989  or 
4990 \family typewriter
4991 small
4992 \family default
4993 ;
4994  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
4995 \end_layout
4996
4997 \begin_layout Description
4998
4999 \change_inserted 564990737 1672429680
5000
5001 \family typewriter
5002 \series medium
5003 \lang american
5004 numbers=
5005 \family default
5006 \series default
5007  which may take the values 
5008 \family typewriter
5009 auto
5010 \family default
5011  (the default),
5012  
5013 \family typewriter
5014 enddot
5015 \family default
5016  or 
5017 \family typewriter
5018 noenddot
5019 \family default
5020 ;
5021  the first leaves it up to KOMA-Script to add periods after chapter,
5022  section numbers,
5023  etc.;
5024  the second forces the addition of periods and third suppresses them
5025 \end_layout
5026
5027 \begin_layout Standard
5028
5029 \change_inserted 564990737 1672429680
5030
5031 \lang american
5032 and the math options:
5033 \end_layout
5034
5035 \begin_layout Description
5036
5037 \change_inserted 564990737 1672429680
5038
5039 \family typewriter
5040 \series medium
5041 \lang american
5042 leqno
5043 \family default
5044 \series default
5045  which causes equations to be numbered on the left rather than on the right,
5046  and
5047 \end_layout
5048
5049 \begin_layout Description
5050
5051 \change_inserted 564990737 1672429680
5052
5053 \family typewriter
5054 \series medium
5055 \lang american
5056 fleqn
5057 \family default
5058 \series default
5059  which causes equations to be left justified rather than centered.
5060 \end_layout
5061
5062 \begin_layout Standard
5063
5064 \change_inserted 564990737 1672429680
5065
5066 \lang american
5067 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
5068  commands and packages;
5069  for example,
5070  if you want your captions in bold add
5071 \end_layout
5072
5073 \begin_layout Standard
5074
5075 \change_inserted 564990737 1672429680
5076
5077 \family typewriter
5078 \lang american
5079
5080 \backslash
5081 setkomafont{captionlabel}{
5082 \backslash
5083 bfseries}
5084 \end_layout
5085
5086 \begin_layout Standard
5087
5088 \change_inserted 564990737 1672429680
5089
5090 \lang american
5091 to 
5092 \family sans
5093 \bar under
5094 D
5095 \bar default
5096 ocument\SpecialChar menuseparator
5097
5098 \bar under
5099 S
5100 \bar default
5101 ettings
5102 \family default
5103 \SpecialChar menuseparator
5104
5105 \family sans
5106 \SpecialChar LaTeX
5107
5108 \begin_inset space ~
5109 \end_inset
5110
5111 Preamble
5112 \family default
5113 ) and the problem is solved.
5114 \end_layout
5115
5116 \begin_layout Standard
5117
5118 \change_inserted 564990737 1672429680
5119
5120 \lang american
5121 If you are writing a book,
5122  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
5123  If you use the Chapter* environment,
5124  your Foreword and Preface will not appear in the Table of Contents;
5125  to make them to appear in the Table of contents,
5126  you need to use Chapter environments and add the \SpecialChar TeX
5127  code
5128 \end_layout
5129
5130 \begin_layout Standard
5131
5132 \change_inserted 564990737 1672429680
5133
5134 \family typewriter
5135 \lang american
5136
5137 \backslash
5138 frontmatter
5139 \end_layout
5140
5141 \begin_layout Standard
5142
5143 \change_inserted 564990737 1672429680
5144
5145 \lang american
5146 at the very start of the book (not in the \SpecialChar LaTeX
5147  Preamble) and
5148 \end_layout
5149
5150 \begin_layout Standard
5151
5152 \change_inserted 564990737 1672429680
5153
5154 \family typewriter
5155 \lang american
5156
5157 \backslash
5158 mainmatter
5159 \end_layout
5160
5161 \begin_layout Standard
5162
5163 \change_inserted 564990737 1672429680
5164
5165 \lang american
5166 before the first chapter of the body of the text.
5167  You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
5168  if any.
5169 \begin_inset Foot
5170 status open
5171
5172 \begin_layout Plain Layout
5173
5174 \change_inserted 564990737 1672429680
5175
5176 \lang american
5177 Appendices are normally “numbered” with letters.
5178 \end_layout
5179
5180 \end_inset
5181
5182  If you use the Chapter* environment,
5183  they will not appear in the Table of Contents;
5184  so add the \SpecialChar TeX
5185  code
5186 \end_layout
5187
5188 \begin_layout Standard
5189
5190 \change_inserted 564990737 1672429680
5191
5192 \family typewriter
5193 \lang american
5194
5195 \backslash
5196 backmatter
5197 \end_layout
5198
5199 \begin_layout Standard
5200
5201 \change_inserted 564990737 1672429682
5202
5203 \lang american
5204 before the first of these headings and use the Chapter environment.
5205  These commands will have no effect on the numbering in \SpecialChar LyX
5206 ,
5207  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
5208 \end_layout
5209
5210 \begin_layout Standard
5211 The layout files for the document classes 
5212 \emph on
5213 article (koma-script)
5214 \emph default
5215 ,
5216  
5217 \emph on
5218 report (koma-script)
5219 \emph default
5220 ,
5221  and 
5222 \emph on
5223 book (koma-script)
5224 \emph default
5225  do include the file 
5226 \family typewriter
5227 scrmacros.inc
5228 \family default
5229 .
5230  This is thought of as a place to define your own types.
5231  Copy scrmacros
5232 \family typewriter
5233 .inc
5234 \family default
5235  in your personal layout directory and edit the file!
5236 \change_deleted 564990737 1672430255
5237
5238 \end_layout
5239
5240 \begin_layout Standard
5241
5242 \change_deleted 564990737 1672430255
5243 letter (koma-script)
5244 \end_layout
5245
5246 \begin_layout Description
5247
5248 \change_deleted 564990737 1672429749
5249 Note:
5250  This section discusses the obsolete 
5251 \family sans
5252 KOMA-Script-Letter (v.
5253 \begin_inset space ~
5254 \end_inset
5255
5256 1)
5257 \family default
5258 ,
5259  which is not even included anymore in recent KOMA releases.
5260  Please refer to the next section for the current KOMA-Script-Letter class (v.
5261 \begin_inset space ~
5262 \end_inset
5263
5264 2)!
5265 \end_layout
5266
5267 \begin_layout Standard
5268 \noindent
5269
5270 \change_deleted 564990737 1672429749
5271 The document class 
5272 \emph on
5273 letter (koma-script)
5274 \emph default
5275  is implemented in the layout file 
5276 \family typewriter
5277 scrlettr.layout
5278 \family default
5279 .
5280  It contains all the paragraph types of the corresponding standard document class 
5281 \emph on
5282 letter
5283 \emph default
5284 ,
5285  partly modified,
5286  with the exception of the \SpecialChar LyX
5287  specific types 
5288 \family sans
5289 \SpecialChar LyX
5290 -Code
5291 \family default
5292  and 
5293 \family sans
5294 Comment
5295 \family default
5296  and the 
5297 \family sans
5298 List
5299 \family default
5300  type,
5301  which is replaced by the new 
5302 \family sans
5303 Labeling
5304 \family default
5305  type.
5306  In addition,
5307  it contains,
5308  in contrast to the standard document class,
5309  the standard types 
5310 \family sans
5311 \SpecialChar LaTeX
5312
5313 \family default
5314 ,
5315  
5316 \family sans
5317 Quotation
5318 \family default
5319 ,
5320  
5321 \family sans
5322 Quote
5323 \family default
5324 ,
5325  and 
5326 \family sans
5327 Verse
5328 \family default
5329 .
5330  Furthermore,
5331  there are a number of new letter specific types.
5332 \end_layout
5333
5334 \begin_layout Standard
5335
5336 \change_deleted 564990737 1672429749
5337 The appearance of the letter produced by this document class can be controlled by a number of \SpecialChar LaTeX
5338  commands,
5339  which you can put in the \SpecialChar LaTeX
5340  preamble.
5341 \begin_inset Foot
5342 status collapsed
5343
5344 \begin_layout Plain Layout
5345 For example,
5346  the standard appearance of the letter`s heading,
5347  consisting of name and address,
5348  is quite self-willed.
5349  An 
5350 \begin_inset Quotes eld
5351 \end_inset
5352
5353 ordinary
5354 \begin_inset Quotes erd
5355 \end_inset
5356
5357  heading is produced by the following \SpecialChar LaTeX
5358  commands in the preamble:
5359 \end_layout
5360
5361 \begin_layout LyX-Code
5362
5363 \backslash
5364 firsthead{
5365 \backslash
5366 parbox[b]{
5367 \backslash
5368 textwidth}
5369 \end_layout
5370
5371 \begin_layout LyX-Code
5372   {
5373 \backslash
5374 ignorespaces 
5375 \backslash
5376 fromname
5377 \backslash
5378
5379 \backslash
5380  
5381 \backslash
5382 ignorespaces 
5383 \backslash
5384 fromaddress}} 
5385 \end_layout
5386
5387 \begin_layout LyX-Code
5388
5389 \backslash
5390 nexthead{
5391 \backslash
5392 parbox[b]{
5393 \backslash
5394 textwidth}
5395 \end_layout
5396
5397 \begin_layout LyX-Code
5398   {
5399 \backslash
5400 ignorespaces 
5401 \backslash
5402 fromname 
5403 \backslash
5404 hfill 
5405 \backslash
5406 ignorespaces 
5407 \backslash
5408 pagename
5409 \backslash
5410  
5411 \backslash
5412 thepage}}
5413 \end_layout
5414
5415 \end_inset
5416
5417  A detailed German description of such \SpecialChar LaTeX
5418  commands can be found in the Koma-Script documentation 
5419 \emph on
5420 scrguide
5421 \emph default
5422 .
5423  With it,
5424  the letter's author can produce his personal letter layout.
5425 \end_layout
5426
5427 \begin_layout Standard
5428
5429 \change_deleted 564990737 1672429749
5430 The types 
5431 \family sans
5432 Letter
5433 \family default
5434  and 
5435 \family sans
5436 Opening
5437 \family default
5438  define the beginning of the letter and must be used in every letter.
5439  To emphasize them in the \SpecialChar LyX
5440  document class,
5441  they are marked with the letter 
5442 \shape italic
5443 L
5444 \shape default
5445  or 
5446 \shape italic
5447 O
5448 \shape default
5449 ,
5450  resp.
5451 \begin_inset space ~
5452 \end_inset
5453
5454 in the left margin.
5455  It is possible to write any number of letters in one file.
5456  An 
5457 \family sans
5458 Opening
5459 \family default
5460  type produces a new letter using the same addressee and a 
5461 \family sans
5462 Letter
5463 \family default
5464  type produces a new addressee.
5465  The types 
5466 \family sans
5467 Closing
5468 \family default
5469 ,
5470  
5471 \family sans
5472 PS
5473 \family default
5474 ,
5475  
5476 \family sans
5477 CC
5478 \family default
5479 ,
5480  and 
5481 \family sans
5482 Encl
5483 \family default
5484  are ordinary paragraph types and can also be used several times in one and the same letter.
5485 \end_layout
5486
5487 \begin_layout Itemize
5488
5489 \change_deleted 564990737 1672429749
5490
5491 \family sans
5492 Letter
5493 \family default
5494 :
5495  produces a paragraph for the addressee and implicitly defines the beginning of the letter.
5496 \end_layout
5497
5498 \begin_layout Itemize
5499
5500 \change_deleted 564990737 1672429749
5501
5502 \family sans
5503 Opening
5504 \family default
5505 :
5506  produces a paragraph for the form of address and implicitly produces a new letter.
5507 \end_layout
5508
5509 \begin_layout Itemize
5510
5511 \change_deleted 564990737 1672429749
5512
5513 \family sans
5514 Closing
5515 \family default
5516 :
5517  produces a paragraph for a close.
5518 \end_layout
5519
5520 \begin_layout Itemize
5521
5522 \change_deleted 564990737 1672429749
5523
5524 \family sans
5525 PS
5526 \family default
5527 :
5528  produces a paragraph for a postscript.
5529 \end_layout
5530
5531 \begin_layout Itemize
5532
5533 \change_deleted 564990737 1672429749
5534
5535 \family sans
5536 CC
5537 \family default
5538 :
5539  produces a paragraph for a distribution list.
5540 \end_layout
5541
5542 \begin_layout Itemize
5543
5544 \change_deleted 564990737 1672429749
5545
5546 \family sans
5547 Encl
5548 \family default
5549 :
5550  produces a paragraph for enclosures.
5551 \end_layout
5552
5553 \begin_layout Standard
5554
5555 \change_deleted 564990737 1672429749
5556 The types 
5557 \family sans
5558 Name
5559 \family default
5560 ,
5561  
5562 \family sans
5563 Signature
5564 \family default
5565 ,
5566  
5567 \family sans
5568 Address
5569 \family default
5570 ,
5571  
5572 \family sans
5573 Telephone
5574 \family default
5575 ,
5576  
5577 \family sans
5578 Place
5579 \family default
5580 ,
5581  
5582 \family sans
5583 Backaddress
5584 \family default
5585 ,
5586  
5587 \family sans
5588 Specialmail
5589 \family default
5590 ,
5591  
5592 \family sans
5593 Location
5594 \family default
5595 ,
5596  
5597 \family sans
5598 Title
5599 \family default
5600 ,
5601  and 
5602 \family sans
5603 Subject
5604 \family default
5605  are input types provided with a label to enter information,
5606  which will be processed by the document class.
5607 \begin_inset Foot
5608 status collapsed
5609
5610 \begin_layout Plain Layout
5611 It could be seen as a matter of inconsequence,
5612  that the types 
5613 \family sans
5614 Letter
5615 \family default
5616  and 
5617 \family sans
5618 Opening
5619 \family default
5620  described above are not such input types as well.
5621  Because of the special meaning of those types,
5622  however,
5623  I have implemented them as ordinary paragraph types with a one letter mark in the left margin.
5624  Moreover,
5625  it would affect my feeling of symmetry,
5626  if the 
5627 \family sans
5628 Opening
5629 \family default
5630  type and the 
5631 \family sans
5632 Closing
5633 \family default
5634  type had such a serious different appearance.
5635 \end_layout
5636
5637 \end_inset
5638
5639  The types must be used ahead of the corresponding 
5640 \family sans
5641 Opening
5642 \family default
5643  type.
5644 \end_layout
5645
5646 \begin_layout Standard
5647
5648 \change_deleted 564990737 1672429749
5649 An implementation of these types in a WYSIWYG fashion does not seem to make sense,
5650  because the real appearance of the produced letter does not only depend on the usage of the particular type,
5651  but also on other factors.
5652  For example,
5653  a signature entered in the 
5654 \family sans
5655 Signature
5656 \family default
5657  type will in the standard behavior appear in the produced letter only,
5658  when in the same letter also a 
5659 \family sans
5660 Closing
5661 \family default
5662  type is used.
5663  The entered value of the 
5664 \family sans
5665 Telephone
5666 \family default
5667  type will in the standard behavior not appear in the produced letter at all.
5668  The possibility to design the letter`s heading freely is already indicated in a footnote above.
5669 \end_layout
5670
5671 \begin_layout Standard
5672
5673 \change_deleted 564990737 1672429749
5674 The input types can also be used as empty paragraphs.
5675  This makes sense e.
5676 \begin_inset space \thinspace{}
5677 \end_inset
5678
5679 g.
5680 \begin_inset space \space{}
5681 \end_inset
5682
5683 for the 
5684 \family sans
5685 Signature
5686 \family default
5687  type.
5688  If the 
5689 \family sans
5690 Signature
5691 \family default
5692  type is not used at all,
5693  in the standard behavior the value of the 
5694 \family sans
5695 Name
5696 \family default
5697  type is used as signature,
5698  whereas if an empty 
5699 \family sans
5700 Signature
5701 \family default
5702  type is used,
5703  no signature value is defined.
5704 \end_layout
5705
5706 \begin_layout Standard
5707
5708 \change_deleted 564990737 1672429749
5709 By using the input types it is possible to write a letter template,
5710  containing filled input types with your personal dates (name,
5711  address,
5712  etc.) and empty input types for other dates you want to enter.
5713 \end_layout
5714
5715 \begin_layout Itemize
5716
5717 \change_deleted 564990737 1672429749
5718
5719 \family sans
5720 Name
5721 \family default
5722 :
5723  sender's name,
5724  in the standard behavior appears as a centered paragraph in small caps in the letter`s heading.
5725 \end_layout
5726
5727 \begin_layout Itemize
5728
5729 \change_deleted 564990737 1672429749
5730
5731 \family sans
5732 Signature
5733 \family default
5734 :
5735  sender's signature,
5736  in the standard behavior appears below the 
5737 \family sans
5738 Closing
5739 \family default
5740  type.
5741  If no 
5742 \family sans
5743 Signature
5744 \family default
5745  type is used,
5746  the value of the 
5747 \family sans
5748 Name
5749 \family default
5750  type appears instead.
5751 \end_layout
5752
5753 \begin_layout Itemize
5754
5755 \change_deleted 564990737 1672429749
5756
5757 \family sans
5758 Address
5759 \family default
5760 :
5761  sender's address,
5762  in the standard behavior appears in a centered paragraph in the letter`s heading below the sender's name.
5763 \end_layout
5764
5765 \begin_layout Itemize
5766
5767 \change_deleted 564990737 1672429749
5768
5769 \family sans
5770 Telephone
5771 \family default
5772 :
5773  sender's telephone number,
5774  in the standard behavior only sets the \SpecialChar LaTeX
5775  variable 
5776 \family typewriter
5777
5778 \backslash
5779 telephonenum
5780 \family default
5781 .
5782 \end_layout
5783
5784 \begin_layout Itemize
5785
5786 \change_deleted 564990737 1672429749
5787
5788 \family sans
5789 Place
5790 \family default
5791 :
5792  place of the letter`s making.
5793 \end_layout
5794
5795 \begin_layout Itemize
5796
5797 \change_deleted 564990737 1672429749
5798
5799 \family sans
5800 Date
5801 \family default
5802 :
5803  date of the letter`s making.
5804  
5805 \family sans
5806 Place
5807 \family default
5808  and 
5809 \family sans
5810 Date
5811 \family default
5812 ,
5813  in the standard behavior,
5814  produce the place and the date in a right-aligned line below the addressee's field.
5815  If an empty 
5816 \family sans
5817 Date
5818 \family default
5819  type is used,
5820  neither place nor date appear,
5821  independent of the value of the 
5822 \family sans
5823 Place
5824 \family default
5825  type.
5826  If no 
5827 \family sans
5828 Date
5829 \family default
5830  type is used,
5831  the date of the letter `s production is used.
5832 \end_layout
5833
5834 \begin_layout Itemize
5835
5836 \change_deleted 564990737 1672429749
5837
5838 \family sans
5839 Backaddress
5840 \family default
5841 :
5842  sender`s back address,
5843  in the standard behavior appears above the addressee's field in a small sans serif font.
5844 \end_layout
5845
5846 \begin_layout Itemize
5847
5848 \change_deleted 564990737 1672429749
5849
5850 \family sans
5851 Specialmail
5852 \family default
5853 :
5854  special mail information,
5855  in the standard behavior appears underlined above the addressee's field below the back address.
5856 \end_layout
5857
5858 \begin_layout Itemize
5859
5860 \change_deleted 564990737 1672429749
5861
5862 \family sans
5863 Location
5864 \family default
5865 :
5866  additional information,
5867  in the standard behavior appears on right side below the addressee`s field.
5868 \end_layout
5869
5870 \begin_layout Itemize
5871
5872 \change_deleted 564990737 1672429749
5873
5874 \family sans
5875 Title
5876 \family default
5877 :
5878  the letter's title,
5879  in the standard behavior appears in a big,
5880  bold,
5881  sans serif font above the subject.
5882 \end_layout
5883
5884 \begin_layout Itemize
5885
5886 \change_deleted 564990737 1672429749
5887
5888 \family sans
5889 Subject
5890 \family default
5891 :
5892  the letter's subject,
5893  in the standard behavior appears in a bold font above the 
5894 \family sans
5895 Opening
5896 \family default
5897  paragraph.
5898 \end_layout
5899
5900 \begin_layout Standard
5901
5902 \change_deleted 564990737 1672429749
5903 The types 
5904 \family sans
5905 Yourref
5906 \family default
5907 ,
5908  
5909 \family sans
5910 Yourmail
5911 \family default
5912 ,
5913  
5914 \family sans
5915 Myref
5916 \family default
5917 ,
5918  
5919 \family sans
5920 Customer
5921 \family default
5922 ,
5923  and 
5924 \family sans
5925 Invoice
5926 \family default
5927  produce a business letter like line above the 
5928 \family sans
5929 Title
5930 \family default
5931  line containing the fields 
5932 \begin_inset Quotes eld
5933 \end_inset
5934
5935 Your ref.
5936 \begin_inset Quotes erd
5937 \end_inset
5938
5939 ,
5940  
5941 \begin_inset Quotes eld
5942 \end_inset
5943
5944 Your letter of
5945 \begin_inset Quotes erd
5946 \end_inset
5947
5948 ,
5949  
5950 \begin_inset Quotes eld
5951 \end_inset
5952
5953 Our ref.
5954 \begin_inset Quotes erd
5955 \end_inset
5956
5957 ,
5958  
5959 \begin_inset Quotes eld
5960 \end_inset
5961
5962 Customer no.
5963 \begin_inset Quotes erd
5964 \end_inset
5965
5966 ,
5967  
5968 \begin_inset Quotes eld
5969 \end_inset
5970
5971 Invoice no.
5972 \begin_inset Quotes erd
5973 \end_inset
5974
5975 ,
5976  and 
5977 \begin_inset Quotes eld
5978 \end_inset
5979
5980 Date
5981 \begin_inset Quotes erd
5982 \end_inset
5983
5984 .
5985  For the date field,
5986  the value of the 
5987 \family sans
5988 Date
5989 \family default
5990  type is used.
5991  If one of these 
5992 \begin_inset Quotes eld
5993 \end_inset
5994
5995 business letter types
5996 \begin_inset Quotes erd
5997 \end_inset
5998
5999  is used,
6000  the value of the 
6001 \family sans
6002 Place
6003 \family default
6004  type however does not appear,
6005  but only the \SpecialChar LaTeX
6006  variable 
6007 \family typewriter
6008
6009 \backslash
6010 fromplace
6011 \family default
6012  is set.
6013  The ordinary output of place and date in a right-aligned line below the addressee`s field is suppressed.
6014  The types are implemented as input types provided with a label and must be used ahead of the corresponding 
6015 \family sans
6016 Opening
6017 \family default
6018  type.
6019 \end_layout
6020
6021 \begin_layout Itemize
6022
6023 \change_deleted 564990737 1672429749
6024
6025 \family sans
6026 Yourref
6027 \family default
6028 :
6029  Your ref.
6030 \end_layout
6031
6032 \begin_layout Itemize
6033
6034 \change_deleted 564990737 1672429749
6035
6036 \family sans
6037 Yourmail
6038 \family default
6039 :
6040  Your letter of.
6041 \end_layout
6042
6043 \begin_layout Itemize
6044
6045 \change_deleted 564990737 1672429749
6046
6047 \family sans
6048 Myref
6049 \family default
6050 :
6051  Our ref.
6052 \end_layout
6053
6054 \begin_layout Itemize
6055
6056 \change_deleted 564990737 1672429749
6057
6058 \family sans
6059 Customer
6060 \family default
6061 :
6062  Customer no.
6063 \end_layout
6064
6065 \begin_layout Itemize
6066
6067 \change_deleted 564990737 1672429749
6068
6069 \family sans
6070 Invoice
6071 \family default
6072 :
6073  Invoice no.
6074 \change_unchanged
6075
6076 \end_layout
6077
6078 \begin_layout Subsubsection
6079
6080 \change_deleted 564990737 1672429773
6081 The new letter class:
6082  letter (koma-script v.2)
6083 \change_inserted 564990737 1672429774
6084
6085 \lang american
6086
6087 \begin_inset CommandInset label
6088 LatexCommand label
6089 name "subsec:The-new-letter"
6090
6091 \end_inset
6092
6093 The new letter class:
6094  letter (KOMA-Script v.2)
6095 \change_unchanged
6096
6097 \end_layout
6098
6099 \begin_layout Standard
6100 by 
6101 \noun on
6102 Jürgen Spitzmüller
6103 \end_layout
6104
6105 \begin_layout Standard
6106 \begin_inset VSpace medskip
6107 \end_inset
6108
6109
6110 \end_layout
6111
6112 \begin_layout Standard
6113 \noindent
6114 Koma-Script version 2.8 has introduced a new letter class 
6115 \family typewriter
6116 scrlttr2
6117 \family default
6118  which supersedes the now unsupported 
6119 \family typewriter
6120 scrlettr
6121 \family default
6122 .
6123  It has —
6124  on the \SpecialChar LaTeX
6125  side —
6126  a completely new interface and is not compatible with the old class.
6127  Therefore,
6128  \SpecialChar LyX
6129  supports both,
6130  though it is recommended you use the new class.
6131 \end_layout
6132
6133 \begin_layout Standard
6134 This class covers the same functionality as 
6135 \emph on
6136 letter (koma-script),
6137
6138 \emph default
6139  and a few more.
6140  The basic items are 
6141 \family sans
6142 Address
6143 \family default
6144  (receiver's address,
6145  same as 
6146 \family sans
6147 Letter
6148 \family default
6149  in the old layout),
6150  
6151 \family sans
6152 Opening
6153 \family default
6154 ,
6155  and 
6156 \family sans
6157 Closing
6158 \family default
6159 .
6160  
6161 \family sans
6162 NextAddress
6163 \family default
6164  will start a new letter (i.
6165 \begin_inset space \thinspace{}
6166 \end_inset
6167
6168 e.
6169 \begin_inset space \space{}
6170 \end_inset
6171
6172 you can write several letters per document).
6173  New elements are sender's 
6174 \family sans
6175 E-Mail
6176 \family default
6177 ,
6178  
6179 \family sans
6180 URL
6181 \family default
6182 ,
6183  
6184 \family sans
6185 Fax
6186 \family default
6187 ,
6188  
6189 \family sans
6190 Bank
6191 \family default
6192  and the possibility to use a 
6193 \family sans
6194 Logo
6195 \family default
6196  (via 
6197 \family sans
6198 Insert\SpecialChar menuseparator
6199 Graphics
6200 \family default
6201 ) in the header.
6202 \end_layout
6203
6204 \begin_layout Standard
6205 The biggest improvement is,
6206  though,
6207  that the letter's layout is configurable to meet almost any needs.
6208  This can be done via the preamble or with a special style file (Letter Class Option,
6209  extension 
6210 \family typewriter
6211 *.lco
6212 \family default
6213 ),
6214  that will be read in as a class option.
6215 \begin_inset Foot
6216 status collapsed
6217
6218 \begin_layout Plain Layout
6219 The KOMA package comes with some default 
6220 \family typewriter
6221 *.lco
6222 \family default
6223  files.
6224  There is,
6225  for instance,
6226  a 
6227 \family typewriter
6228 DIN.lco
6229 \family default
6230  file that follows german typesetting rules,
6231  or a 
6232 \family typewriter
6233 KOMAold.lco
6234 \family default
6235  that provides the default layout of the old 
6236 \family typewriter
6237 scrlettr
6238 \family default
6239  class.
6240  The latter can be loaded with the class option 
6241 \family typewriter
6242 KOMAold
6243 \family default
6244 ,
6245  inserted via the 
6246 \family sans
6247 Layout\SpecialChar menuseparator
6248 Document\SpecialChar menuseparator
6249 Extra Options
6250 \family default
6251  field.
6252 \end_layout
6253
6254 \end_inset
6255
6256  Have a look at the
6257 \change_deleted 564990737 1671617922
6258  
6259 \emph on
6260 koma-letter2
6261 \change_unchanged
6262
6263 \emph default
6264  template 
6265 \change_deleted 564990737 1671617938
6266 that is included in \SpecialChar LyX
6267  for examples
6268 \change_inserted 564990737 1671617997
6269  in 
6270 \family sans
6271 \bar under
6272 \lang american
6273 F
6274 \bar default
6275 ile\SpecialChar menuseparator
6276 New
6277 \begin_inset space ~
6278 \end_inset
6279
6280 fro
6281 \bar under
6282 m
6283 \bar default
6284
6285 \begin_inset space ~
6286 \end_inset
6287
6288 Template\SpecialChar menuseparator
6289 Letters
6290 \lang english
6291 \SpecialChar menuseparator
6292 KOMA-Script Letter (V.2)
6293 \change_unchanged
6294
6295 \family default
6296 .
6297  A detailed description is to be found in the Koma-Script documentation (
6298 \emph on
6299 scrguide
6300 \emph default
6301 ).
6302 \end_layout
6303
6304 \begin_layout Subsubsection
6305 Problems
6306 \end_layout
6307
6308 \begin_layout Standard
6309 Visualizing the Koma-Script document classes in \SpecialChar LyX
6310 ,
6311  the \SpecialChar LyX
6312  internals cause some problems.
6313 \end_layout
6314
6315 \begin_layout Itemize
6316 The chapter number of a 
6317 \family sans
6318 Chapter
6319 \family default
6320  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
6321  The cause for that is the \SpecialChar LyX
6322  internal behavior for the labeltype 
6323 \family sans
6324 Counter_Chapter
6325 \family default
6326  in the layout file.
6327 \end_layout
6328
6329 \begin_layout Itemize
6330 The headings of the types 
6331 \family sans
6332 Addchap
6333 \family default
6334  and 
6335 \family sans
6336 Addsec
6337 \family default
6338  are only put in the 
6339 \begin_inset Quotes eld
6340 \end_inset
6341
6342 true
6343 \begin_inset Quotes erd
6344 \end_inset
6345
6346  \SpecialChar LaTeX
6347  table of contents,
6348  but not in the \SpecialChar LyX
6349  table of contents (
6350 \family sans
6351 Document\SpecialChar menuseparator
6352 Table
6353 \begin_inset space ~
6354 \end_inset
6355
6356 of
6357 \begin_inset space ~
6358 \end_inset
6359
6360 Contents
6361 \family default
6362 ).
6363 \end_layout
6364
6365 \begin_layout Itemize
6366 The paragraphs in a 
6367 \emph on
6368 letter
6369 \emph default
6370  document class appear in a skip separation mode,
6371  not indented.
6372  This is the standard behavior,
6373  no special \SpecialChar LaTeX
6374  commands are needed for that.
6375  But in the 
6376 \family sans
6377 Document\SpecialChar menuseparator
6378 Settings
6379 \family default
6380  dialog the corresponding radio button indicates 
6381 \family sans
6382 Indent
6383 \family default
6384 .
6385  A 
6386 \family sans
6387 Skip
6388 \family default
6389  value always has the effect that extra \SpecialChar LaTeX
6390  commands are inserted in the document to produce the gap,
6391  which is not what is wanted in this case.
6392 \end_layout
6393
6394 \begin_layout Subsection
6395
6396 \change_inserted 564990737 1672743555
6397 \begin_inset CommandInset label
6398 LatexCommand label
6399 name "subsec:Polish-M.W.collection"
6400
6401 \end_inset
6402
6403 Polish M.
6404 \begin_inset space \thinspace{}
6405 \end_inset
6406
6407 W.
6408 \begin_inset space \space{}
6409 \end_inset
6410
6411 collection
6412 \change_deleted 564990737 1670924933
6413 Article (mwart),
6414  book (mwbk) and report (mwrep)
6415 \begin_inset Argument status
6416 status collapsed
6417
6418 \begin_layout Plain Layout
6419 The 
6420 \family typewriter
6421 mw
6422 \family default
6423  Classes
6424 \end_layout
6425
6426 \end_inset
6427
6428
6429 \change_unchanged
6430
6431 \end_layout
6432
6433 \begin_layout Standard
6434 by 
6435 \noun on
6436 Tomasz Luczak
6437 \end_layout
6438
6439 \begin_layout Standard
6440 The \SpecialChar LyX
6441  document classes 
6442 \emph on
6443 article (mwart)
6444 \emph default
6445 ,
6446  
6447 \emph on
6448 report (mwrep)
6449 \emph default
6450  and 
6451 \emph on
6452 book
6453 \emph default
6454  
6455 \emph on
6456 (mwbk)
6457 \emph default
6458  correspond to the \SpecialChar LaTeX
6459  document classes 
6460 \family typewriter
6461 mwart.cls
6462 \family default
6463 ,
6464  
6465 \family typewriter
6466 mwrep.cls
6467 \family default
6468  and 
6469 \family typewriter
6470 mwbk.cls
6471 \family default
6472 ,
6473  resp.
6474  They are replacements for the standard document classes 
6475 \family typewriter
6476 article.cls
6477 \family default
6478 ,
6479  
6480 \family typewriter
6481 report.cls
6482 \family default
6483  and 
6484 \family typewriter
6485 book.cls
6486 \family default
6487 ,
6488  resp.,
6489  and fit better to Polish typography conventions in a number of points.
6490  
6491 \end_layout
6492
6493 \begin_layout Standard
6494 Basic differences:
6495 \end_layout
6496
6497 \begin_layout Itemize
6498 Unnumbered titles (with star,
6499  e.
6500 \begin_inset space \thinspace{}
6501 \end_inset
6502
6503 g.
6504 \begin_inset space \space{}
6505 \end_inset
6506
6507
6508 \family sans
6509 Section*
6510 \family default
6511 ) are added into table of contents,
6512 \end_layout
6513
6514 \begin_layout Itemize
6515 Additional page styles:
6516 \end_layout
6517
6518 \begin_deeper
6519 \begin_layout Description
6520 uheadings header with separated lines,
6521 \end_layout
6522
6523 \begin_layout Description
6524 myheadings custom header,
6525  contents headers via commands:
6526  
6527 \family typewriter
6528
6529 \backslash
6530 markright
6531 \family default
6532  and 
6533 \family typewriter
6534
6535 \backslash
6536 markboth
6537 \family default
6538 ,
6539 \end_layout
6540
6541 \begin_layout Description
6542 myuheadings custom header with separated lines,
6543 \end_layout
6544
6545 \begin_layout Description
6546 outer page number is placed on outer side of page
6547 \end_layout
6548
6549 \end_deeper
6550 \begin_layout Itemize
6551 Options 
6552 \end_layout
6553
6554 \begin_deeper
6555 \begin_layout Description
6556 rmheadings serif titles —
6557  default,
6558 \end_layout
6559
6560 \begin_layout Description
6561 sfheadings sansserif titles,
6562 \end_layout
6563
6564 \begin_layout Description
6565 authortitle on title page first placed is author next title —
6566  default,
6567 \end_layout
6568
6569 \begin_layout Description
6570 titleauthor on title page first placed is title next author,
6571 \end_layout
6572
6573 \begin_layout Description
6574 withmarginpar reserve place on page for margins.
6575 \end_layout
6576
6577 \end_deeper
6578 \begin_layout Subsection
6579
6580 \change_inserted 564990737 1672652245
6581
6582 \lang american
6583 Tufte Collection
6584 \end_layout
6585
6586 \begin_layout Standard
6587
6588 \change_inserted 564990737 1672652245
6589
6590 \lang american
6591 The document classes 
6592 \family sans
6593 book
6594 \begin_inset space \thinspace{}
6595 \end_inset
6596
6597 (Tufte)
6598 \family default
6599  and 
6600 \family sans
6601 handout
6602 \begin_inset space \thinspace{}
6603 \end_inset
6604
6605 (Tufte)
6606 \family default
6607  use the 
6608 \family typewriter
6609 tufte-book.cls
6610 \family default
6611  and 
6612 \family typewriter
6613 tufte-handout.cls
6614 \family default
6615  document classes.
6616  Detailed information about these document classes can be found in 
6617 \family sans
6618 File\SpecialChar menuseparator
6619 Open Example\SpecialChar menuseparator
6620 Books\SpecialChar menuseparator
6621 Tufte Book
6622 \family default
6623  and 
6624 \family sans
6625 File\SpecialChar menuseparator
6626 Open Example\SpecialChar menuseparator
6627 Handouts\SpecialChar menuseparator
6628 Tufte Handout
6629 \family default
6630 .
6631 \end_layout
6632
6633 \begin_layout Section
6634
6635 \change_inserted 564990737 1670439534
6636 Articles
6637 \end_layout
6638
6639 \begin_layout Standard
6640
6641 \change_inserted 564990737 1670794710
6642 See also the document classes in the Collections (section
6643 \begin_inset space ~
6644 \end_inset
6645
6646
6647 \begin_inset CommandInset ref
6648 LatexCommand ref
6649 reference "sec:Collections"
6650 nolink "false"
6651
6652 \end_inset
6653
6654 ).
6655 \end_layout
6656
6657 \begin_layout Subsection
6658
6659 \change_inserted 564990737 1670794716
6660
6661 \lang american
6662 A&A Paper
6663 \end_layout
6664
6665 \begin_layout Standard
6666
6667 \change_inserted 564990737 1670794716
6668
6669 \lang american
6670 Original by 
6671 \noun on
6672 Peter Sütterlin
6673 \noun default
6674 ;
6675  updated by the \SpecialChar LyX
6676  Team
6677 \end_layout
6678
6679 \begin_layout Subsubsection
6680
6681 \change_inserted 564990737 1670794716
6682
6683 \lang american
6684 Introduction
6685 \end_layout
6686
6687 \begin_layout Standard
6688
6689 \change_inserted 564990737 1670794716
6690
6691 \lang american
6692 This section describes how \SpecialChar LyX
6693  can be used to write articles for submission to the scientific journal 
6694 \emph on
6695 Astronomy and Astrophysics
6696 \emph default
6697  (
6698 \begin_inset CommandInset href
6699 LatexCommand href
6700 name "aa-package"
6701 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6702 literal "false"
6703
6704 \end_inset
6705
6706 ) using Version 9.1 of the document class 
6707 \family typewriter
6708 aa.cls
6709 \family default
6710 ;
6711  information about it is available at 
6712 \begin_inset Flex URL
6713 status collapsed
6714
6715 \begin_layout Plain Layout
6716
6717 \change_inserted 564990737 1670794716
6718
6719 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
6720 \change_unchanged
6721
6722 \end_layout
6723
6724 \end_inset
6725
6726 .
6727 \end_layout
6728
6729 \begin_layout Standard
6730
6731 \change_inserted 564990737 1670794716
6732
6733 \lang american
6734 A manual comes together with the package and should be consulted before installing this document class as described in the 
6735 \emph on
6736 Installing New Document Classe
6737 \emph default
6738 s section of the 
6739 \emph on
6740 Customization
6741 \emph default
6742  manual.
6743  
6744 \end_layout
6745
6746 \begin_layout Standard
6747
6748 \change_inserted 564990737 1670794716
6749
6750 \lang american
6751 \begin_inset Note Greyedout
6752 status open
6753
6754 \begin_layout Plain Layout
6755
6756 \change_inserted 564990737 1670794716
6757
6758 \lang american
6759 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
6760  2001.
6761  That change also involved some slight changes to the style files,
6762  namely the removal of the thesaurus command.
6763  If you have an older version installed,
6764  please upgrade.
6765  For information about compatibility with the old (version 4) layout,
6766  please refer to the comments in 
6767 \family typewriter
6768 \SpecialChar LyX
6769 Dir/layouts/aapaper.layout
6770 \family default
6771 .
6772 \end_layout
6773
6774 \end_inset
6775
6776
6777 \end_layout
6778
6779 \begin_layout Subsubsection
6780
6781 \change_inserted 564990737 1670794716
6782
6783 \lang american
6784 Getting started
6785 \end_layout
6786
6787 \begin_layout Standard
6788
6789 \change_inserted 564990737 1671617129
6790
6791 \lang american
6792 It is recommended you start from the template in the menu 
6793 \family sans
6794 \bar under
6795 F
6796 \bar default
6797 ile\SpecialChar menuseparator
6798 New
6799 \begin_inset space ~
6800 \end_inset
6801
6802 fro
6803 \bar under
6804 m
6805 \bar default
6806
6807 \begin_inset space ~
6808 \end_inset
6809
6810 Template
6811 \lang english
6812 \SpecialChar menuseparator
6813 Articles\SpecialChar menuseparator
6814 Astronomy & Astrophysics
6815 \family default
6816 \lang american
6817 .
6818  If you are not using the template,
6819  note the following settings:
6820 \end_layout
6821
6822 \begin_layout Itemize
6823
6824 \change_inserted 564990737 1670794716
6825
6826 \lang american
6827 Select 
6828 \family sans
6829 article (A&A)
6830 \family default
6831  in the 
6832 \family sans
6833 \bar under
6834 D
6835 \bar default
6836 ocument\SpecialChar menuseparator
6837
6838 \bar under
6839 S
6840 \bar default
6841 ettings\SpecialChar menuseparator
6842 Document
6843 \begin_inset space ~
6844 \end_inset
6845
6846 Class
6847 \family default
6848  dialog (OK,
6849  that one was obvious).
6850 \end_layout
6851
6852 \begin_layout Itemize
6853
6854 \change_inserted 564990737 1670794716
6855
6856 \lang american
6857 Don't change the 
6858 \family sans
6859 Headings
6860 \begin_inset space ~
6861 \end_inset
6862
6863
6864 \bar under
6865 s
6866 \bar default
6867 tyle
6868 \family default
6869  in the 
6870 \family sans
6871 Page
6872 \begin_inset space ~
6873 \end_inset
6874
6875 Layout
6876 \family default
6877  dialog:
6878  leave it set to 
6879 \family sans
6880 Default
6881 \family default
6882 .
6883  The whole layout is done by the macros,
6884  you shouldn't change anything.
6885 \end_layout
6886
6887 \begin_layout Subsubsection
6888
6889 \change_inserted 564990737 1670794716
6890
6891 \lang american
6892 The header block
6893 \end_layout
6894
6895 \begin_layout Standard
6896
6897 \change_inserted 564990737 1670794716
6898
6899 \lang american
6900 First thing to enter is the header information.
6901  It consists of five entries,
6902  of which one is optional.
6903  They are
6904 \end_layout
6905
6906 \begin_layout Itemize
6907
6908 \change_inserted 564990737 1670794716
6909
6910 \family sans
6911 \lang american
6912 Title
6913 \family default
6914 :
6915  [required] 
6916 \end_layout
6917
6918 \begin_layout Itemize
6919
6920 \change_inserted 564990737 1670794716
6921
6922 \family sans
6923 \lang american
6924 Subtitle
6925 \family default
6926 :
6927  [optional] 
6928 \end_layout
6929
6930 \begin_layout Itemize
6931
6932 \change_inserted 564990737 1670794716
6933
6934 \family sans
6935 \lang american
6936 Author
6937 \family default
6938 :
6939  [required]
6940 \end_layout
6941
6942 \begin_layout Itemize
6943
6944 \change_inserted 564990737 1670794716
6945
6946 \family typewriter
6947 \lang american
6948 Institute
6949 \family default
6950 :
6951  [required]
6952 \end_layout
6953
6954 \begin_layout Itemize
6955
6956 \change_inserted 564990737 1670794716
6957
6958 \family sans
6959 \lang american
6960 Date
6961 \family default
6962 :
6963  [required].
6964  Suggested format is 
6965 \family typewriter
6966 Received:
6967  <date>;
6968  Accepted <date> 
6969 \end_layout
6970
6971 \begin_layout Standard
6972
6973 \change_inserted 564990737 1670794716
6974
6975 \lang american
6976 Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
6977  just to get the best optics and meets the layout of the real document.
6978 \end_layout
6979
6980 \begin_layout Standard
6981
6982 \change_inserted 564990737 1670794716
6983
6984 \lang american
6985 If you want to place footnotes in the header block,
6986  e.
6987 \begin_inset space \thinspace{}
6988 \end_inset
6989
6990 g.
6991 \begin_inset space \space{}
6992 \end_inset
6993
6994 to state your present address,
6995  just use the standard footnote via the menu 
6996 \family sans
6997 \bar under
6998 I
6999 \bar default
7000 nsert\SpecialChar menuseparator
7001
7002 \bar under
7003 F
7004 \bar default
7005 ootnote.
7006
7007 \family default
7008  \SpecialChar LyX
7009  will automagically use the term 
7010 \family typewriter
7011
7012 \backslash
7013 thanks{}
7014 \family default
7015  in that case.
7016 \end_layout
7017
7018 \begin_layout Standard
7019
7020 \change_inserted 564990737 1670794716
7021
7022 \lang american
7023 In addition to these topics,
7024  the macros use three additional \SpecialChar LaTeX
7025  commands that have no counterpart in \SpecialChar LyX
7026 :
7027 \end_layout
7028
7029 \begin_layout Itemize
7030
7031 \change_inserted 564990737 1670794716
7032
7033 \family typewriter
7034 \lang american
7035
7036 \backslash
7037 and
7038 \family default
7039  to separate different names for more than one author and institute,
7040  respectively.
7041 \end_layout
7042
7043 \begin_layout Itemize
7044
7045 \change_inserted 564990737 1670794716
7046
7047 \family typewriter
7048 \lang american
7049
7050 \backslash
7051 inst{<nr>}
7052 \family default
7053  to mark corresponding author/institute pairs.
7054  The institutes are numbered sequentially as they appear in the 
7055 \family sans
7056 Institute
7057 \family default
7058  field,
7059  so you have to put a marker to each author.
7060 \end_layout
7061
7062 \begin_layout Itemize
7063
7064 \change_inserted 564990737 1670794716
7065
7066 \family typewriter
7067 \lang american
7068
7069 \backslash
7070 email{address}
7071 \family default
7072  to supply an email address for fast contact.
7073 \end_layout
7074
7075 \begin_layout Standard
7076
7077 \change_inserted 564990737 1671642374
7078
7079 \lang american
7080 In all cases,
7081  the appropriate command has to be entered as \SpecialChar TeX
7082  code in \SpecialChar LyX
7083 .
7084  See the examples in the template and in 
7085 \family sans
7086 \lang british
7087 File\SpecialChar menuseparator
7088 Open Example\SpecialChar menuseparator
7089 Articles\SpecialChar menuseparator
7090 Astronomy & Astrophysics
7091 \family default
7092 \lang american
7093 .
7094 \change_unchanged
7095
7096 \end_layout
7097
7098 \begin_layout Subsubsection
7099
7100 \change_inserted 564990737 1670794716
7101
7102 \lang american
7103 The abstract
7104 \end_layout
7105
7106 \begin_layout Standard
7107
7108 \change_inserted 564990737 1670794716
7109
7110 \lang american
7111 The abstract should immediately follow the header block and must contain five tokens:
7112  
7113 \family typewriter
7114
7115 \backslash
7116 abstract{}{}{}{}{}
7117 \family default
7118  
7119 \end_layout
7120
7121 \begin_layout Enumerate
7122
7123 \change_inserted 564990737 1670794716
7124
7125 \family typewriter
7126 \lang american
7127 context heading
7128 \family default
7129  (optional) {} leave it empty if necessary 
7130 \end_layout
7131
7132 \begin_layout Enumerate
7133
7134 \change_inserted 564990737 1670794716
7135
7136 \family typewriter
7137 \lang american
7138 aims heading
7139 \family default
7140  (mandatory) {} 
7141 \end_layout
7142
7143 \begin_layout Enumerate
7144
7145 \change_inserted 564990737 1670794716
7146
7147 \family typewriter
7148 \lang american
7149 methods heading
7150 \family default
7151  (mandatory) {} 
7152 \end_layout
7153
7154 \begin_layout Enumerate
7155
7156 \change_inserted 564990737 1670794716
7157
7158 \family typewriter
7159 \lang american
7160 results heading
7161 \family default
7162  (mandatory) {} 
7163 \end_layout
7164
7165 \begin_layout Enumerate
7166
7167 \change_inserted 564990737 1670794716
7168
7169 \family typewriter
7170 \lang american
7171 conclusions heading
7172 \family default
7173  (optional) {} leave it empty if necessary 
7174 \end_layout
7175
7176 \begin_layout Standard
7177
7178 \change_inserted 564990737 1670794716
7179
7180 \lang american
7181 (NB.
7182  This structure not shown in 
7183 \emph on
7184 aa_sample.lyx.
7185 \emph default
7186 )
7187 \end_layout
7188
7189 \begin_layout Subsubsection
7190
7191 \change_inserted 564990737 1670794716
7192
7193 \lang american
7194 Supported environments
7195 \end_layout
7196
7197 \begin_layout Standard
7198
7199 \change_inserted 564990737 1670794716
7200
7201 \lang american
7202 The A&A paper layout supports the following environments for structuring your text:
7203 \end_layout
7204
7205 \begin_layout Itemize
7206
7207 \change_inserted 564990737 1670794716
7208
7209 \family sans
7210 \lang american
7211 Standard
7212 \end_layout
7213
7214 \begin_layout Itemize
7215
7216 \change_inserted 564990737 1670794716
7217
7218 \family sans
7219 \lang american
7220 Section
7221 \end_layout
7222
7223 \begin_layout Itemize
7224
7225 \change_inserted 564990737 1670794716
7226
7227 \family sans
7228 \lang american
7229 Subsection
7230 \end_layout
7231
7232 \begin_layout Itemize
7233
7234 \change_inserted 564990737 1670794716
7235
7236 \family sans
7237 \lang american
7238 Subsubsection
7239 \end_layout
7240
7241 \begin_layout Itemize
7242
7243 \change_inserted 564990737 1670794716
7244
7245 \family sans
7246 \lang american
7247 Itemize
7248 \end_layout
7249
7250 \begin_layout Itemize
7251
7252 \change_inserted 564990737 1670794716
7253
7254 \family sans
7255 \lang american
7256 Enumerate
7257 \end_layout
7258
7259 \begin_layout Itemize
7260
7261 \change_inserted 564990737 1670794716
7262
7263 \family sans
7264 \lang american
7265 Description
7266 \end_layout
7267
7268 \begin_layout Itemize
7269
7270 \change_inserted 564990737 1670794716
7271
7272 \family sans
7273 \lang american
7274 Caption
7275 \end_layout
7276
7277 \begin_layout Itemize
7278
7279 \change_inserted 564990737 1670794716
7280
7281 \family sans
7282 \lang american
7283 Abstract
7284 \end_layout
7285
7286 \begin_layout Itemize
7287
7288 \change_inserted 564990737 1670794716
7289
7290 \family sans
7291 \lang american
7292 Acknowledgment
7293 \end_layout
7294
7295 \begin_layout Itemize
7296
7297 \change_inserted 564990737 1670794716
7298
7299 \family sans
7300 \lang american
7301 Bibliography
7302 \end_layout
7303
7304 \begin_layout Itemize
7305
7306 \change_inserted 564990737 1670794716
7307
7308 \family sans
7309 \lang american
7310 \SpecialChar LaTeX
7311
7312 \end_layout
7313
7314 \begin_layout Subsubsection
7315
7316 \change_inserted 564990737 1670794716
7317
7318 \lang american
7319 Commands not supported by \SpecialChar LyX
7320
7321 \end_layout
7322
7323 \begin_layout Standard
7324
7325 \change_inserted 564990737 1670794716
7326
7327 \lang american
7328 Some commands are not yet supported by the 
7329 \family sans
7330 paper (A&A)
7331 \family default
7332  layout for \SpecialChar LyX
7333 .
7334  Some have already been mentioned.
7335  For the sake of completeness,
7336  they are listed all together here:
7337 \end_layout
7338
7339 \begin_layout Itemize
7340
7341 \change_inserted 564990737 1670794716
7342
7343 \family typewriter
7344 \lang american
7345
7346 \backslash
7347 and
7348 \end_layout
7349
7350 \begin_layout Itemize
7351
7352 \change_inserted 564990737 1670794716
7353
7354 \family typewriter
7355 \lang american
7356
7357 \backslash
7358 email
7359 \end_layout
7360
7361 \begin_layout Itemize
7362
7363 \change_inserted 564990737 1670794716
7364
7365 \family typewriter
7366 \lang american
7367
7368 \backslash
7369 inst{}
7370 \end_layout
7371
7372 \begin_layout Itemize
7373
7374 \change_inserted 564990737 1670794716
7375
7376 \family typewriter
7377 \lang american
7378
7379 \backslash
7380 keywords{}
7381 \end_layout
7382
7383 \begin_layout Itemize
7384
7385 \change_inserted 564990737 1670794716
7386
7387 \family typewriter
7388 \lang american
7389
7390 \backslash
7391 object{}
7392 \end_layout
7393
7394 \begin_layout Standard
7395
7396 \change_inserted 564990737 1670794716
7397
7398 \lang american
7399 If you want to use any of these commands,
7400  you have to enter them yourself.
7401  
7402 \family typewriter
7403 Do not forget to use
7404 \family sans
7405  
7406 \bar under
7407 I
7408 \bar default
7409 nsert\SpecialChar menuseparator
7410 \SpecialChar TeX
7411
7412 \begin_inset space ~
7413 \end_inset
7414
7415 Code
7416 \family default
7417 \series bold
7418 !
7419 \end_layout
7420
7421 \begin_layout Subsubsection
7422
7423 \change_inserted 564990737 1670794716
7424
7425 \lang american
7426 Figure and Table Floats
7427 \end_layout
7428
7429 \begin_layout Standard
7430
7431 \change_inserted 564990737 1670794716
7432
7433 \lang american
7434 \SpecialChar LyX
7435  provides support for the necessary float environments 
7436 \family sans
7437 figure,
7438  figure*,
7439  table
7440 \family default
7441  and 
7442 \family sans
7443 table*
7444 \family default
7445 ,
7446  therefore we won't tell much about it here.
7447  Refer to the 
7448 \emph on
7449 User's
7450 \begin_inset space ~
7451 \end_inset
7452
7453 Guide
7454 \emph default
7455 .
7456  Just remember that tables should be left-aligned.
7457  For that,
7458  select the table and change the alignment in 
7459 \family sans
7460 \bar under
7461 E
7462 \bar default
7463 dit\SpecialChar menuseparator
7464
7465 \bar under
7466 P
7467 \bar default
7468 aragraph
7469 \begin_inset space ~
7470 \end_inset
7471
7472 Settings.
7473 \end_layout
7474
7475 \begin_layout Standard
7476
7477 \change_inserted 564990737 1670794716
7478
7479 \lang american
7480 There is only one special thing:
7481  the figures with a caption beside the figure.
7482  To create such a figure,
7483  you have to do the following:
7484 \end_layout
7485
7486 \begin_layout Enumerate
7487
7488 \change_inserted 564990737 1670794716
7489
7490 \lang american
7491 Create a wide figure float:
7492  
7493 \family sans
7494 \bar under
7495 I
7496 \bar default
7497 nsert\SpecialChar menuseparator
7498 Flo
7499 \bar under
7500 a
7501 \bar default
7502 t\SpecialChar menuseparator
7503 Figure
7504 \family default
7505 ,
7506  then,
7507  from within the float,
7508  use the menu 
7509 \family sans
7510 \bar under
7511 E
7512 \bar default
7513 dit\SpecialChar menuseparator
7514 Flo
7515 \bar under
7516 a
7517 \bar default
7518 t
7519 \begin_inset space ~
7520 \end_inset
7521
7522 Settings
7523 \family default
7524  and check 
7525 \family sans
7526 \bar under
7527 S
7528 \bar default
7529 pan
7530 \begin_inset space ~
7531 \end_inset
7532
7533 columns
7534 \family default
7535  in the 
7536 \family sans
7537 float
7538 \family default
7539  dialog.
7540 \end_layout
7541
7542 \begin_layout Enumerate
7543
7544 \change_inserted 564990737 1670794716
7545
7546 \lang american
7547 Enter your caption text.
7548 \end_layout
7549
7550 \begin_layout Enumerate
7551
7552 \change_inserted 564990737 1670794716
7553
7554 \lang american
7555 Press 
7556 \family sans
7557 Return
7558 \family default
7559  to move the cursor above the caption.
7560 \end_layout
7561
7562 \begin_layout Enumerate
7563
7564 \change_inserted 564990737 1670794716
7565
7566 \lang american
7567 Insert your figure
7568 \end_layout
7569
7570 \begin_layout Enumerate
7571
7572 \change_inserted 564990737 1670794716
7573
7574 \lang american
7575 Position the cursor after the figure and insert a horizontal fill by using the menu:
7576  
7577 \family sans
7578 \bar under
7579 I
7580 \bar default
7581 nsert\SpecialChar menuseparator
7582 F
7583 \bar under
7584 o
7585 \bar default
7586 rmatting\SpecialChar menuseparator
7587 H
7588 \bar under
7589 o
7590 \bar default
7591 rizontal
7592 \begin_inset space ~
7593 \end_inset
7594
7595 Space
7596 \family default
7597  to open the 
7598 \family sans
7599 space
7600 \family default
7601  dialog and select the 
7602 \family sans
7603 Horizontal fill
7604 \family default
7605  option from the 
7606 \family sans
7607 \bar under
7608 S
7609 \bar default
7610 pacing
7611 \family default
7612  pull-down menu.
7613 \end_layout
7614
7615 \begin_layout Enumerate
7616
7617 \change_inserted 564990737 1670794716
7618
7619 \lang american
7620 Switch to \SpecialChar LaTeX
7621  mode:
7622  
7623 \family sans
7624 M-c
7625 \begin_inset space ~
7626 \end_inset
7627
7628 t
7629 \family default
7630 .
7631 \end_layout
7632
7633 \begin_layout Enumerate
7634
7635 \change_inserted 564990737 1670794716
7636
7637 \lang american
7638 Enter 
7639 \family typewriter
7640
7641 \backslash
7642 parbox[b]{55mm}{
7643 \family default
7644  
7645 \emph on
7646 Do not close the brace!
7647 \end_layout
7648
7649 \begin_layout Enumerate
7650
7651 \change_inserted 564990737 1670794716
7652
7653 \lang american
7654 Position the cursor behind the caption text,
7655  switch to \SpecialChar LaTeX
7656  mode and insert the closing brace:
7657  
7658 \family sans
7659 M-c
7660 \begin_inset space ~
7661 \end_inset
7662
7663 t
7664 \family default
7665  
7666 \family typewriter
7667 }
7668 \family default
7669 .
7670 \end_layout
7671
7672 \begin_layout Standard
7673
7674 \change_inserted 564990737 1671642458
7675
7676 \lang american
7677 Also,
7678  refer to the figures in the file in 
7679 \family sans
7680 \lang british
7681 File\SpecialChar menuseparator
7682 Open Example\SpecialChar menuseparator
7683 Articles\SpecialChar menuseparator
7684 Astronomy & Astrophysics
7685 \family default
7686 \lang american
7687 .
7688 \end_layout
7689
7690 \begin_layout Subsubsection
7691
7692 \change_inserted 564990737 1670794716
7693
7694 \lang american
7695 Referee layout
7696 \end_layout
7697
7698 \begin_layout Standard
7699
7700 \change_inserted 564990737 1670794716
7701
7702 \lang american
7703 For submission,
7704  the paper has to be formatted in a special double-spacing layout.
7705  For this purpose,
7706  you have to add the option 
7707 \family typewriter
7708 referee
7709 \family default
7710  to the 
7711 \family sans
7712 Cus
7713 \bar under
7714 t
7715 \bar default
7716 om Class
7717 \begin_inset space ~
7718 \end_inset
7719
7720 options
7721 \family default
7722  in the 
7723 \family sans
7724 \bar under
7725 D
7726 \bar default
7727 ocument\SpecialChar menuseparator
7728
7729 \bar under
7730 S
7731 \bar default
7732 ettings\SpecialChar menuseparator
7733 Document
7734 \begin_inset space ~
7735 \end_inset
7736
7737 Class
7738 \family default
7739  dialog.
7740  
7741 \end_layout
7742
7743 \begin_layout Subsubsection
7744
7745 \change_inserted 564990737 1670794716
7746
7747 \lang american
7748 The example paper
7749 \end_layout
7750
7751 \begin_layout Standard
7752
7753 \change_inserted 564990737 1671642520
7754
7755 \lang american
7756 The example in 
7757 \family sans
7758 \lang british
7759 File\SpecialChar menuseparator
7760 Open Example\SpecialChar menuseparator
7761 Articles\SpecialChar menuseparator
7762 Astronomy & Astrophysics
7763 \family default
7764 \lang american
7765  was written with \SpecialChar LyX
7766 .
7767  It is the example paper from the original macro package,
7768  
7769 \family typewriter
7770 aa.dem
7771 \family default
7772  in the 
7773 \begin_inset CommandInset href
7774 LatexCommand href
7775 name "aa-package"
7776 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
7777 literal "false"
7778
7779 \end_inset
7780
7781 ,
7782  but translated to \SpecialChar LyX
7783  using the older unstructured abstract type.
7784  Use it for inspiration,
7785  and compare the \SpecialChar LaTeX
7786  code in 
7787 \family typewriter
7788 aa.dem
7789 \family default
7790  with the \SpecialChar LyX
7791  way of writing.
7792 \end_layout
7793
7794 \begin_layout Subsection
7795 AAS\SpecialChar TeX
7796
7797 \end_layout
7798
7799 \begin_layout Standard
7800 by 
7801 \noun on
7802 Mike Ressler
7803 \end_layout
7804
7805 \begin_layout Subsubsection
7806 Introduction
7807 \end_layout
7808
7809 \begin_layout Standard
7810 AAS\SpecialChar TeX
7811  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
7812  the Astrophysical Journal (including the Letters and Supplement),
7813  the Astronomical Journal,
7814  and the Publications of the Astronomical Society of the Pacific.
7815  \SpecialChar LyX
7816  has proven to be an excellent tool for generating these documents,
7817  especially given its equation,
7818  citation,
7819  and figure handling capabilities.
7820  \SpecialChar LyX
7821  requires version 5.0 (or higher) of these macros;
7822  preferably 6.0,
7823  which is the version described here,
7824  or higher.
7825  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
7826 2.09 and are fundamentally incompatible with \SpecialChar LyX
7827 .
7828  The AAS\SpecialChar TeX
7829  package may be downloaded from the AAS\SpecialChar TeX
7830  Web site
7831 \end_layout
7832
7833 \begin_layout Standard
7834 \begin_inset VSpace medskip
7835 \end_inset
7836
7837
7838 \end_layout
7839
7840 \begin_layout Standard
7841 \align center
7842 \begin_inset Flex URL
7843 status collapsed
7844
7845 \begin_layout Plain Layout
7846
7847 https://aas.org/aastex/aastex-downloads
7848 \end_layout
7849
7850 \end_inset
7851
7852
7853 \end_layout
7854
7855 \begin_layout Standard
7856 \begin_inset VSpace medskip
7857 \end_inset
7858
7859
7860 \end_layout
7861
7862 \begin_layout Standard
7863 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
7864 .
7865  \SpecialChar LyX
7866  will not reduce the need to figure out all the AAS\SpecialChar TeX
7867  commands,
7868  it will only reduce the drudgery of typing everything in.
7869  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
7870  document conforms completely to the requirements of the journal to which you are submitting your paper.
7871 \end_layout
7872
7873 \begin_layout Subsubsection
7874 Starting a New Paper
7875 \end_layout
7876
7877 \begin_layout Standard
7878 I strongly suggest that you start with the AAS\SpecialChar TeX
7879  template file.
7880  Click on 
7881 \family sans
7882 File\SpecialChar menuseparator
7883 New from
7884 \family default
7885  
7886 \family sans
7887 Template
7888 \change_inserted 564990737 1671617265
7889 \SpecialChar menuseparator
7890 Articles\SpecialChar menuseparator
7891 American Astronomical Society
7892 \change_deleted 564990737 1671617310
7893
7894 \family default
7895 ,
7896  enter the new file name,
7897  then choose the 
7898 \family typewriter
7899 aastex6.lyx
7900 \family default
7901  template
7902 \change_unchanged
7903 .
7904  This will show the most common fields found in a manuscript.
7905  Simply overwrite the existing text (including the brackets,
7906  
7907 \family typewriter
7908 <>
7909 \family default
7910 ) with the correct information.
7911  Many of the AAS\SpecialChar TeX
7912  commands and environments can be implemented directly in \SpecialChar LyX
7913 ,
7914  but some cannot.
7915  For commands such as these,
7916  the \SpecialChar LaTeX
7917  code must be entered directly and marked as such.
7918  Such commands are referred to as \SpecialChar TeX
7919  code,
7920  or Evil Red Text.
7921  I tried to minimize the amount of \SpecialChar TeX
7922  code needed in an AAS\SpecialChar TeX
7923  document.
7924 \end_layout
7925
7926 \begin_layout Subsubsection
7927 Finishing Your Paper
7928 \end_layout
7929
7930 \begin_layout Standard
7931 When the paper is finished to your satisfaction and previews/prints correctly,
7932  there are a few 
7933 \begin_inset Quotes eld
7934 \end_inset
7935
7936 postprocessing
7937 \begin_inset Quotes erd
7938 \end_inset
7939
7940  actions which need to be done before you submit it to the journals.
7941  
7942 \end_layout
7943
7944 \begin_layout Enumerate
7945 Export your paper as a \SpecialChar LaTeX
7946  file (
7947 \family sans
7948 File\SpecialChar menuseparator
7949 Export\SpecialChar menuseparator
7950 \SpecialChar LaTeX
7951
7952 \family default
7953 ).
7954  
7955 \end_layout
7956
7957 \begin_layout Enumerate
7958 Edit the resulting 
7959 \family typewriter
7960 .tex
7961 \family default
7962  file with your favorite text editor
7963 \end_layout
7964
7965 \begin_deeper
7966 \begin_layout Enumerate
7967 remove the comment lines before the 
7968 \family typewriter
7969
7970 \backslash
7971 documentclass
7972 \family default
7973  command
7974 \end_layout
7975
7976 \begin_layout Enumerate
7977 remove the 
7978 \family typewriter
7979
7980 \backslash
7981 usepackage...{fontenc}
7982 \family default
7983  line if it appears (usually just after 
7984 \family typewriter
7985
7986 \backslash
7987 documentclass
7988 \family default
7989 };
7990  also remove the 
7991 \family typewriter
7992
7993 \backslash
7994 secnumdepth
7995 \family default
7996  line if it appears.
7997 \end_layout
7998
7999 \begin_layout Enumerate
8000 remove everything between (and including) the 
8001 \family typewriter
8002
8003 \backslash
8004 makeatletter
8005 \family default
8006  and 
8007 \family typewriter
8008
8009 \backslash
8010 makeatother
8011 \family default
8012  commands,
8013  except for any commands you specifically put into the \SpecialChar LaTeX
8014  preamble (which should appear immediately after the 
8015 \begin_inset Quotes eld
8016 \end_inset
8017
8018 User specified \SpecialChar LaTeX
8019  commands
8020 \begin_inset Quotes erd
8021 \end_inset
8022
8023  comment in the 
8024 \family typewriter
8025 .tex
8026 \family default
8027  file).
8028 \end_layout
8029
8030 \end_deeper
8031 \begin_layout Enumerate
8032 Run the resulting file through \SpecialChar LaTeX
8033  to make sure it still processes correctly.
8034 \end_layout
8035
8036 \begin_layout Enumerate
8037 Reread the journal requirements to make sure your filenames and formats are correct.
8038 \end_layout
8039
8040 \begin_layout Enumerate
8041 Submit it.
8042 \end_layout
8043
8044 \begin_layout Subsubsection
8045 Comments On Specific Commands
8046 \end_layout
8047
8048 \begin_layout Standard
8049 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
8050  commands:
8051  the AAS\SpecialChar TeX
8052  User Guide (
8053 \family typewriter
8054 aasguide.tex
8055 \family default
8056 ) gives a good description of each.
8057  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
8058  So let's begin \SpecialChar ldots
8059
8060 \end_layout
8061
8062 \begin_layout Paragraph
8063 Things that work as expected
8064 \end_layout
8065
8066 \begin_layout Standard
8067 Because they work as you might expect,
8068  I simply list them and the section they are found in:
8069  
8070 \family typewriter
8071
8072 \backslash
8073 documentclass
8074 \family default
8075  (2.1.1),
8076  
8077 \family typewriter
8078
8079 \backslash
8080 begin{document}
8081 \family default
8082  (2.2),
8083  
8084 \family typewriter
8085
8086 \backslash
8087 title
8088 \family default
8089  (2.3),
8090  
8091 \family typewriter
8092
8093 \backslash
8094 author
8095 \family default
8096  (2.3),
8097  
8098 \family typewriter
8099
8100 \backslash
8101 affil
8102 \family default
8103  (2.3),
8104  
8105 \family typewriter
8106
8107 \backslash
8108 abstract
8109 \family default
8110  (2.4),
8111  
8112 \family typewriter
8113
8114 \backslash
8115 keywords
8116 \family default
8117  (2.5),
8118  
8119 \family typewriter
8120
8121 \backslash
8122 section
8123 \family default
8124  (2.7),
8125  
8126 \family typewriter
8127
8128 \backslash
8129 subsection
8130 \family default
8131  (2.7),
8132  
8133 \family typewriter
8134
8135 \backslash
8136 subsubsection
8137 \family default
8138  (2.7),
8139  
8140 \family typewriter
8141
8142 \backslash
8143 paragraph
8144 \family default
8145  (2.7),
8146  
8147 \family typewriter
8148
8149 \backslash
8150 facility
8151 \family default
8152  (2.10),
8153  
8154 \family typewriter
8155
8156 \backslash
8157 begin{displaymath}
8158 \family default
8159  (2.12),
8160  
8161 \family typewriter
8162
8163 \backslash
8164 begin{equation}
8165 \family default
8166  (2.12),
8167  
8168 \family typewriter
8169
8170 \backslash
8171 begin{eqnarray}
8172 \family default
8173  (2.12),
8174  
8175 \family typewriter
8176
8177 \backslash
8178 begin{mathletters}
8179 \family default
8180  (2.12),
8181  
8182 \family typewriter
8183
8184 \backslash
8185 begin{thebibliography}
8186 \family default
8187  (2.13.1),
8188  
8189 \family typewriter
8190
8191 \backslash
8192 bibitem
8193 \family default
8194  (2.13.2),
8195  all the cite commands and their variations (2.13.2),
8196  the generic graphicx figure commands (2.14.1),
8197  
8198 \family typewriter
8199
8200 \backslash
8201 begin{table}
8202 \family default
8203  (2.15.4),
8204  
8205 \family typewriter
8206
8207 \backslash
8208 begin{tabular}
8209 \family default
8210  (2.15.4),
8211  
8212 \family typewriter
8213
8214 \backslash
8215 caption
8216 \family default
8217  (2.15.4),
8218  
8219 \family typewriter
8220
8221 \backslash
8222 label
8223 \family default
8224  (2.15.4,
8225  amongst other places),
8226  
8227 \family typewriter
8228
8229 \backslash
8230 tablerefs
8231 \family default
8232  (2.15.5),
8233  
8234 \family typewriter
8235
8236 \backslash
8237 tablecomments
8238 \family default
8239  (2.15.5),
8240  
8241 \family typewriter
8242
8243 \backslash
8244 url
8245 \family default
8246  (2.17.4),
8247  
8248 \family typewriter
8249
8250 \backslash
8251 end{document}
8252 \family default
8253  (2.18).
8254 \end_layout
8255
8256 \begin_layout Standard
8257 The following style options also work correctly:
8258  
8259 \family typewriter
8260 longabstract
8261 \family default
8262  (2.4),
8263  
8264 \family typewriter
8265 preprint
8266 \family default
8267  (3.2.1),
8268  
8269 \family typewriter
8270 preprint2
8271 \family default
8272  (3.2.2),
8273  
8274 \family typewriter
8275 eqsecnum
8276 \family default
8277  (3.3),
8278  
8279 \family typewriter
8280 flushrt
8281 \family default
8282  (3.4).
8283  Simply put them in the 
8284 \family sans
8285 Options
8286 \family default
8287  box in 
8288 \family sans
8289 Layout\SpecialChar menuseparator
8290 Document
8291 \family default
8292 .
8293 \end_layout
8294
8295 \begin_layout Paragraph
8296 Things that work,
8297  but require more comment
8298 \end_layout
8299
8300 \begin_layout Standard
8301 The following items work,
8302  but require a little more discussion:
8303 \end_layout
8304
8305 \begin_layout Itemize
8306 These items are reserved for use by the journal editors,
8307  but you can put them into the \SpecialChar LaTeX
8308  preamble if you feel compelled to do so:
8309  
8310 \family typewriter
8311
8312 \backslash
8313 received
8314 \family default
8315 ,
8316  
8317 \family typewriter
8318
8319 \backslash
8320 revised
8321 \family default
8322 ,
8323  
8324 \family typewriter
8325
8326 \backslash
8327 accepted
8328 \family default
8329 ,
8330  
8331 \family typewriter
8332
8333 \backslash
8334 ccc
8335 \family default
8336 ,
8337  
8338 \family typewriter
8339
8340 \backslash
8341 cpright
8342 \family default
8343  (all from 2.1.3)
8344 \end_layout
8345
8346 \begin_layout Itemize
8347 These items may be placed in the \SpecialChar LaTeX
8348  preamble,
8349  and are included as blanks in the template file:
8350  
8351 \family typewriter
8352
8353 \backslash
8354 slugcomment
8355 \family default
8356  (2.1.4),
8357  
8358 \family typewriter
8359
8360 \backslash
8361 shorttitle
8362 \family default
8363  (2.1.5),
8364  
8365 \family typewriter
8366
8367 \backslash
8368 shortauthors
8369 \family default
8370  (2.1.5)
8371 \end_layout
8372
8373 \begin_layout Itemize
8374
8375 \family typewriter
8376
8377 \backslash
8378 email
8379 \family default
8380  (2.3) – can only be used 
8381 \begin_inset Quotes eld
8382 \end_inset
8383
8384 standalone
8385 \begin_inset Quotes erd
8386 \end_inset
8387
8388 ,
8389  not in the middle of a paragraph.
8390  Use \SpecialChar TeX
8391  code if you need to embed it.
8392 \end_layout
8393
8394 \begin_layout Itemize
8395
8396 \family typewriter
8397
8398 \backslash
8399 and
8400 \family default
8401  (2.3) – will have extra {} after it.
8402  This should not cause an error.
8403 \end_layout
8404
8405 \begin_layout Itemize
8406
8407 \family typewriter
8408
8409 \backslash
8410 notetoeditor
8411 \family default
8412  (2.6) – can only be used 
8413 \begin_inset Quotes eld
8414 \end_inset
8415
8416 standalone
8417 \begin_inset Quotes erd
8418 \end_inset
8419
8420 ,
8421  not in the middle of a paragraph.
8422  Use \SpecialChar TeX
8423  code if you need to embed it.
8424 \end_layout
8425
8426 \begin_layout Itemize
8427
8428 \family typewriter
8429
8430 \backslash
8431 placetable
8432 \family default
8433  (2.8) – can't insert a cross-reference tag,
8434  you must type the tag name by hand
8435 \end_layout
8436
8437 \begin_layout Itemize
8438
8439 \family typewriter
8440
8441 \backslash
8442 placefigure
8443 \family default
8444  (2.8) – same as for 
8445 \family typewriter
8446
8447 \backslash
8448 placetable
8449 \end_layout
8450
8451 \begin_layout Itemize
8452
8453 \family typewriter
8454
8455 \backslash
8456 acknowledgements
8457 \family default
8458  (2.9) – will have extra {} after it.
8459  This should not cause an error.
8460 \end_layout
8461
8462 \begin_layout Itemize
8463
8464 \family typewriter
8465
8466 \backslash
8467 appendix
8468 \family default
8469  (2.11) – will have extra {} after it.
8470  This should not cause an error.
8471 \end_layout
8472
8473 \begin_layout Itemize
8474
8475 \family typewriter
8476
8477 \backslash
8478 figcaption
8479 \family default
8480  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
8481 \family sans
8482 Insert\SpecialChar menuseparator
8483 Short Title
8484 \family default
8485 .
8486  
8487 \begin_inset Quotes eld
8488 \end_inset
8489
8490 Short Title
8491 \begin_inset Quotes erd
8492 \end_inset
8493
8494  inserts an optional argument of the type needed by 
8495 \family typewriter
8496
8497 \backslash
8498 figcaption
8499 \family default
8500 .
8501  Hopefully it will be renamed someday.
8502 \end_layout
8503
8504 \begin_layout Itemize
8505
8506 \family typewriter
8507
8508 \backslash
8509 objectname
8510 \family default
8511  (2.17.1) – same as 
8512 \family typewriter
8513
8514 \backslash
8515 figcaption
8516 \family default
8517  for the catalog ID optional parameter
8518 \end_layout
8519
8520 \begin_layout Itemize
8521
8522 \family typewriter
8523
8524 \backslash
8525 dataset
8526 \family default
8527  (2.17.1) – same as 
8528 \family typewriter
8529
8530 \backslash
8531 figcaption
8532 \family default
8533  for the catalog ID optional parameter
8534 \end_layout
8535
8536 \begin_layout Paragraph
8537 Things not implemented,
8538  use \SpecialChar TeX
8539  code
8540 \end_layout
8541
8542 \begin_layout Standard
8543
8544 \family typewriter
8545
8546 \backslash
8547 eqnum
8548 \family default
8549  (2.12),
8550  
8551 \family typewriter
8552
8553 \backslash
8554 setcounter{equation}
8555 \family default
8556  (2.12),
8557  Journal name abbreviations (2.13.4),
8558  
8559 \family typewriter
8560
8561 \backslash
8562 figurenum
8563 \family default
8564  (2.14.1),
8565  
8566 \family typewriter
8567
8568 \backslash
8569 epsscale
8570 \family default
8571  (2.14.1),
8572  
8573 \family typewriter
8574
8575 \backslash
8576 plotone
8577 \family default
8578  (2.14.1),
8579  
8580 \family typewriter
8581
8582 \backslash
8583 plottwo
8584 \family default
8585  (2.14.1),
8586  
8587 \family typewriter
8588
8589 \backslash
8590 tablenum
8591 \family default
8592  (2.15.4),
8593  
8594 \family typewriter
8595
8596 \backslash
8597 tableline
8598 \family default
8599  (2.15.4,
8600  insert it as the first element in the lefthand cell after where you want it.
8601  Don't use any of \SpecialChar LyX
8602 's rules in the table),
8603  
8604 \family typewriter
8605
8606 \backslash
8607 tablenotemark
8608 \family default
8609  (2.15.5),
8610  
8611 \family typewriter
8612
8613 \backslash
8614 tablenotetext
8615 \family default
8616  (2.15.5),
8617  much of Misc (2.17,
8618  except 
8619 \family typewriter
8620
8621 \backslash
8622 objectname
8623 \family default
8624 ,
8625  
8626 \family typewriter
8627
8628 \backslash
8629 dataset
8630 \family default
8631 ,
8632  
8633 \family typewriter
8634
8635 \backslash
8636 url
8637 \family default
8638 ,
8639  and 
8640 \family typewriter
8641
8642 \backslash
8643 email
8644 \family default
8645 ;
8646  see above),
8647  
8648 \family typewriter
8649
8650 \backslash
8651 singlespace
8652 \family default
8653  (3.1),
8654  
8655 \family typewriter
8656
8657 \backslash
8658 doublespace
8659 \family default
8660  (3.1),
8661  
8662 \family typewriter
8663
8664 \backslash
8665 onecolumn
8666 \family default
8667  (3.2),
8668  
8669 \family typewriter
8670
8671 \backslash
8672 twocolumn
8673 \family default
8674  (3.2)
8675 \end_layout
8676
8677 \begin_layout Paragraph
8678 Things that cannot be implemented
8679 \end_layout
8680
8681 \begin_layout Standard
8682 \SpecialChar ldots
8683  at least in any meaningful sort of way,
8684  so I suggest ignoring them.
8685  They are the references environment (2.13.3),
8686  and the deluxetable environment (2.15).
8687  If you really,
8688  really need to use deluxetable,
8689  I suggest editing it in a separate file with a text editor,
8690  then using 
8691 \family sans
8692 Insert\SpecialChar menuseparator
8693 Child
8694 \begin_inset space ~
8695 \end_inset
8696
8697 Document
8698 \family default
8699  to include it in your \SpecialChar LyX
8700  document.
8701  See 
8702 \change_deleted 564990737 1671642564
8703 the 
8704 \family typewriter
8705 aas_sample.lyx
8706 \family default
8707  file to see
8708 \change_inserted 564990737 1671642618
8709
8710 \family sans
8711 \lang british
8712 File\SpecialChar menuseparator
8713 Open Example\SpecialChar menuseparator
8714 Articles\SpecialChar menuseparator
8715 American Astronomical Society
8716 \change_unchanged
8717
8718 \family default
8719 \lang english
8720  
8721 \change_inserted 564990737 1671642621
8722 for 
8723 \change_unchanged
8724 an example of this.
8725 \end_layout
8726
8727 \begin_layout Subsubsection
8728 FAQs,
8729  Tips,
8730  Tricks,
8731  and Other Ruminations
8732 \end_layout
8733
8734 \begin_layout Paragraph
8735 Getting \SpecialChar LyX
8736  and AAS\SpecialChar TeX
8737  to cooperate
8738 \end_layout
8739
8740 \begin_layout Standard
8741 It can be a bit tricky to get \SpecialChar LyX
8742  to recognize a new layout and document class.
8743  When all else fails,
8744  do this:
8745 \end_layout
8746
8747 \begin_layout Enumerate
8748 Make certain that \SpecialChar LaTeX
8749  can find AAS\SpecialChar TeX
8750 .
8751  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
8752  distribution into a directory completely unrelated to \SpecialChar LaTeX
8753  or AAS\SpecialChar TeX
8754  and run \SpecialChar LaTeX
8755  on 
8756 \family typewriter
8757 sample.tex
8758 \family default
8759 .
8760 \end_layout
8761
8762 \begin_layout Enumerate
8763 Make certain that 
8764 \family typewriter
8765 aastex.layout
8766 \family default
8767  appears in \SpecialChar LyX
8768 's 
8769 \family typewriter
8770 layouts
8771 \family default
8772  folder
8773 \end_layout
8774
8775 \begin_layout Enumerate
8776 Rerun 
8777 \family sans
8778 Tools\SpecialChar menuseparator
8779 Reconfigure
8780 \family default
8781  in \SpecialChar LyX
8782 ,
8783  then restart \SpecialChar LyX
8784 .
8785 \end_layout
8786
8787 \begin_layout Enumerate
8788 Open a regular new file,
8789  not from a template.
8790  Does AAS\SpecialChar TeX
8791  appear in the class list in 
8792 \family sans
8793 Document\SpecialChar menuseparator
8794 Settings
8795 \family default
8796 ?
8797 \end_layout
8798
8799 \begin_layout Standard
8800 If you get a warning from an existing AAS\SpecialChar TeX
8801  document about not being able to find the AAS\SpecialChar TeX
8802  layout or a message about 
8803 \begin_inset Quotes eld
8804 \end_inset
8805
8806 You should not mix title layouts with normal ones
8807 \begin_inset Quotes erd
8808 \end_inset
8809
8810 ,
8811  things haven't been installed correctly.
8812 \end_layout
8813
8814 \begin_layout Paragraph
8815 \SpecialChar LaTeX
8816  error processing a table 
8817 \end_layout
8818
8819 \begin_layout Standard
8820 \SpecialChar LyX
8821 ,
8822  by default,
8823  attempts to center the table caption/title.
8824  This seems to produce a bad interaction in AAS\SpecialChar TeX
8825  so you should click somewhere in the caption/title,
8826  then select 
8827 \family sans
8828 Edit\SpecialChar menuseparator
8829 Paragraph
8830 \begin_inset space ~
8831 \end_inset
8832
8833 Settings
8834 \family default
8835 ,
8836  then set the 
8837 \family sans
8838 Alignment
8839 \family default
8840  to 
8841 \family sans
8842 Block
8843 \family default
8844 .
8845  This took care of it for me.
8846 \end_layout
8847
8848 \begin_layout Paragraph
8849 References
8850 \end_layout
8851
8852 \begin_layout Standard
8853 A couple of things:
8854  1) I have noticed some funny spacing in the reference entries in the text.
8855  When you enter the bibliography item data,
8856  make sure their is 
8857 \emph on
8858 no
8859 \emph default
8860  space between the last author and the parenthesis setting off the year;
8861  
8862 \emph on
8863 e.
8864 \begin_inset space \thinspace{}
8865 \end_inset
8866
8867 g.
8868 \begin_inset space \space{}
8869 \end_inset
8870
8871
8872 \emph default
8873 type 
8874 \family typewriter
8875 Ressler(1992)
8876 \family default
8877 ,
8878  not 
8879 \family typewriter
8880 Ressler (1992)
8881 \family default
8882 .
8883  2) Entering the references at all is not obvious.
8884  The easiest thing is to start typing your first reference at the end of the document,
8885  then mark it as type 
8886 \family sans
8887 References
8888 \family default
8889 .
8890  That will put a small gray box in front of what you just typed.
8891  Click on the box to fill in the rest of the information.
8892  For new references,
8893  go to the end of an existing reference and press return.
8894  That will create a new line with its own box,
8895  etc.
8896 \end_layout
8897
8898 \begin_layout Paragraph
8899 Including EPS files
8900 \end_layout
8901
8902 \begin_layout Standard
8903 Even though AAS\SpecialChar TeX
8904  provides its own figure commands (
8905 \family typewriter
8906
8907 \backslash
8908 plotone
8909 \family default
8910 ,
8911  for example),
8912  I much prefer \SpecialChar LaTeX
8913 's standard figure commands (with the default graphicx).
8914  You can insert the 
8915 \family typewriter
8916
8917 \backslash
8918 plotone
8919 \family default
8920 ,
8921  etc.
8922 \begin_inset space ~
8923 \end_inset
8924
8925 commands as \SpecialChar TeX
8926  code into a Figure Float box if you desire,
8927  but I never have much luck getting the layout right.
8928  With the standard graphics,
8929  \SpecialChar LyX
8930  will insert a 
8931 \family typewriter
8932
8933 \backslash
8934 usepackage{graphicx}
8935 \family default
8936  command into the \SpecialChar LaTeX
8937  preamble and handle the figures in the standard \SpecialChar LaTeX2e
8938  way,
8939  interspersing the figures in the text.
8940  I believe ApJ accepts figures exactly this way now;
8941  AJ might still use the 
8942 \begin_inset Quotes eld
8943 \end_inset
8944
8945 stack everything at the end
8946 \begin_inset Quotes erd
8947 \end_inset
8948
8949  technique.
8950 \end_layout
8951
8952 \begin_layout Paragraph
8953 Things I could have done,
8954  but didn't
8955 \end_layout
8956
8957 \begin_layout Standard
8958 There are a few 
8959 \begin_inset Quotes eld
8960 \end_inset
8961
8962 pretty
8963 \begin_inset Quotes erd
8964 \end_inset
8965
8966  things I could have implemented,
8967  but chose not to.
8968  For instance,
8969  I saw no point in double-spacing the text in the \SpecialChar LyX
8970  window,
8971  even though it is double-spaced in the paper manuscript.
8972  Also,
8973  I chose not to make separate layouts for the preprint and preprint2 styles.
8974  Since I assume you will spend most of your time in the plain manuscript mode anyway,
8975  I decided not to chew up more disk space with this.
8976  
8977 \end_layout
8978
8979 \begin_layout Subsubsection
8980 Final Caveat
8981 \end_layout
8982
8983 \begin_layout Standard
8984 Your mileage may vary.
8985  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
8986 ;
8987  the last 2% was the \SpecialChar LaTeX
8988  post-processing and a few cleanups.
8989  I have had no trouble with the submission process,
8990  and I'm sure the journals were never aware that there might be a difference.
8991  So,
8992  go forth and publish!
8993 \end_layout
8994
8995 \begin_layout Subsection
8996
8997 \change_inserted 564990737 1671442131
8998
8999 \lang american
9000 Chess
9001 \end_layout
9002
9003 \begin_layout Standard
9004
9005 \change_inserted 564990737 1671642768
9006
9007 \lang american
9008 The document class 
9009 \family sans
9010 article
9011 \begin_inset space \thinspace{}
9012 \end_inset
9013
9014 (Chess)
9015 \family default
9016  uses the 
9017 \family typewriter
9018 article.cls
9019 \family default
9020  document class together with the style 
9021 \family sans
9022 lyxskak.sty
9023 \family default
9024  to facilitate the description of chess games.
9025  See 
9026 \family sans
9027 \lang british
9028 File\SpecialChar menuseparator
9029 Open Example
9030 \lang english
9031 \SpecialChar menuseparator
9032 Articles\SpecialChar menuseparator
9033 Chess
9034 \family default
9035 \lang american
9036  where you will find 
9037 \family sans
9038 \lang english
9039 Game 1
9040 \family default
9041 \lang american
9042  and 
9043 \family sans
9044 \lang english
9045 Game 2
9046 \family default
9047 \lang american
9048 .
9049 \end_layout
9050
9051 \begin_layout Subsection
9052
9053 \change_inserted 564990737 1671042028
9054
9055 \lang american
9056 Elsevier
9057 \end_layout
9058
9059 \begin_layout Standard
9060
9061 \change_inserted 564990737 1671617396
9062
9063 \lang american
9064 The document class 
9065 \family sans
9066 article
9067 \begin_inset space \thinspace{}
9068 \end_inset
9069
9070 (Elsevier)
9071 \family default
9072  provides the 
9073 \family typewriter
9074 elsarticle.cls
9075 \family default
9076  document class.
9077  This provides the following additional environments:
9078  
9079 \family sans
9080 Title
9081 \begin_inset space ~
9082 \end_inset
9083
9084 footnote
9085 \family default
9086 ,
9087  
9088 \family sans
9089 Author
9090 \begin_inset space ~
9091 \end_inset
9092
9093 footnote
9094 \family default
9095 ,
9096  
9097 \family sans
9098 Corresponding
9099 \begin_inset space ~
9100 \end_inset
9101
9102 author
9103 \family default
9104 ,
9105  
9106 \family sans
9107 Address
9108 \family default
9109 ,
9110  
9111 \family sans
9112 Email
9113 \family default
9114  and 
9115 \family sans
9116 Keywords
9117 \family default
9118 .
9119  A template is available in the menu 
9120 \family sans
9121 \bar under
9122 F
9123 \bar default
9124 ile\SpecialChar menuseparator
9125 New
9126 \begin_inset space ~
9127 \end_inset
9128
9129 fro
9130 \bar under
9131 m
9132 \bar default
9133
9134 \begin_inset space ~
9135 \end_inset
9136
9137 Template
9138 \lang english
9139 \SpecialChar menuseparator
9140 Articles\SpecialChar menuseparator
9141 Elsevier
9142 \family default
9143 \lang american
9144 .
9145  It has been customized with further environments and contains all the information you may need.
9146  However,
9147  the documentation is also available from 
9148 \begin_inset CommandInset href
9149 LatexCommand href
9150 name "CTAN"
9151 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
9152 literal "false"
9153
9154 \end_inset
9155
9156 .
9157 \end_layout
9158
9159 \begin_layout Subsection
9160
9161 \change_inserted 564990737 1671042046
9162
9163 \lang american
9164 Paper
9165 \end_layout
9166
9167 \begin_layout Standard
9168
9169 \change_inserted 564990737 1671042046
9170
9171 \lang american
9172 The document class 
9173 \family sans
9174 article
9175 \begin_inset space \thinspace{}
9176 \end_inset
9177
9178 (paper)
9179 \family default
9180  provides an alternative to the 
9181 \family typewriter
9182 article.cls
9183 \family default
9184  document class.
9185  It provides similar functionality,
9186  but you might prefer this layout with sans serif sections,
9187  headings,
9188  and more.
9189 \end_layout
9190
9191 \begin_layout Subsection
9192 Rev\SpecialChar TeX
9193 4
9194 \end_layout
9195
9196 \begin_layout Standard
9197 by 
9198 \noun on
9199 Amir Karger
9200 \end_layout
9201
9202 \begin_layout Standard
9203 \begin_inset VSpace bigskip
9204 \end_inset
9205
9206
9207 \end_layout
9208
9209 \begin_layout Standard
9210 \noindent
9211 The 
9212 \family sans
9213 Revtex
9214 \begin_inset space ~
9215 \end_inset
9216
9217 4
9218 \family default
9219  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
9220  4.0 (the 
9221 \begin_inset Formula $\beta$
9222 \end_inset
9223
9224  release of May,
9225  1999) class.
9226 \end_layout
9227
9228 \begin_layout Standard
9229 \SpecialChar LyX
9230  has a 
9231 \family sans
9232 Revtex
9233 \family default
9234  textclass,
9235  which works with Rev\SpecialChar TeX
9236  3.1.
9237  However,
9238  v3.1 is basically obsolete,
9239  as it works with \SpecialChar LaTeX
9240  2.09.
9241  That means that it doesn't interact very well with \SpecialChar LyX
9242 ,
9243  which requires \SpecialChar LaTeX2e
9244 ,
9245  although it has been kludged to work.
9246  Since Rev\SpecialChar TeX
9247  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
9248 ,
9249  \SpecialChar LyX
9250  with the 
9251 \family sans
9252 Rev\SpecialChar TeX
9253
9254 \begin_inset space ~
9255 \end_inset
9256
9257 4
9258 \family default
9259  textclass should also be pretty easy to use.
9260 \end_layout
9261
9262 \begin_layout Standard
9263 These documents are supposed to be used in 
9264 \emph on
9265 addition
9266 \emph default
9267  to the Rev\SpecialChar TeX
9268  4.0 documents,
9269  so we don't describe any of the special Rev\SpecialChar TeX
9270  macros,
9271  and assume you'll know what to put in the preamble if necessary.
9272 \end_layout
9273
9274 \begin_layout Subsubsection
9275 Installation
9276 \end_layout
9277
9278 \begin_layout Standard
9279 All you need to do is install Rev\SpecialChar TeX
9280  4,
9281  as described in the package's README file.
9282  The package can be found at The Rev\SpecialChar TeX
9283  4 Web Site 
9284 \begin_inset Flex URL
9285 status collapsed
9286
9287 \begin_layout Plain Layout
9288
9289 http://publish.aps.org/revtex4/
9290 \end_layout
9291
9292 \end_inset
9293
9294 .
9295  Install it somewhere that \SpecialChar LaTeX
9296  can see it.
9297  Test it by trying to \SpecialChar LaTeX
9298  a short Rev\SpecialChar TeX
9299  4 document in some random directory (i.
9300 \begin_inset space \thinspace{}
9301 \end_inset
9302
9303 e.
9304 \begin_inset space \space{}
9305 \end_inset
9306
9307 not the directory where you installed the class file.) Then,
9308  if you reconfigure \SpecialChar LyX
9309 ,
9310  it will find the class file and let you use the Rev\SpecialChar TeX
9311 4 textclass.
9312 \end_layout
9313
9314 \begin_layout Standard
9315 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
9316  4 document using 
9317 \family typewriter
9318 tex2lyx
9319 \family default
9320 ,
9321  or to use the 
9322 \family sans
9323 Revtex
9324 \begin_inset space ~
9325 \end_inset
9326
9327 4
9328 \family default
9329  template,
9330  found in the templates directory.
9331 \end_layout
9332
9333 \begin_layout Subsubsection
9334 Preamble Matter
9335 \end_layout
9336
9337 \begin_layout Standard
9338 Optional arguments to 
9339 \family typewriter
9340
9341 \backslash
9342 documentclass
9343 \family default
9344 ,
9345  like 
9346 \begin_inset Quotes eld
9347 \end_inset
9348
9349 preprint
9350 \begin_inset Quotes erd
9351 \end_inset
9352
9353  and 
9354 \begin_inset Quotes eld
9355 \end_inset
9356
9357 aps
9358 \begin_inset Quotes erd
9359 \end_inset
9360
9361 ,
9362  go in the 
9363 \family sans
9364 Extra
9365 \begin_inset space ~
9366 \end_inset
9367
9368 Options
9369 \family default
9370  field in the 
9371 \family sans
9372 Document
9373 \begin_inset space ~
9374 \end_inset
9375
9376 Layout
9377 \family default
9378  dialog,
9379  as usual.
9380  Remember that in Rev\SpecialChar TeX
9381 ,
9382  at least one optional argument is required!
9383  
9384 \end_layout
9385
9386 \begin_layout Standard
9387 Other preamble matter,
9388  like 
9389 \family typewriter
9390
9391 \backslash
9392 draft
9393 \family default
9394  etc.
9395 \begin_inset space ~
9396 \end_inset
9397
9398 goes in the 
9399 \family sans
9400 \SpecialChar LaTeX
9401
9402 \begin_inset space ~
9403 \end_inset
9404
9405 Preamble
9406 \family default
9407  dialog,
9408  also as usual.
9409 \end_layout
9410
9411 \begin_layout Subsubsection
9412 Layouts
9413 \end_layout
9414
9415 \begin_layout Standard
9416 The layouts basically correspond to the commands in Rev\SpecialChar TeX
9417 4.0.
9418  For example,
9419  the Email layout corresponds to 
9420 \family typewriter
9421
9422 \backslash
9423 email{}
9424 \family default
9425 .
9426  Note that (at least as of Rev\SpecialChar TeX
9427  4.0 Beta),
9428  the 
9429 \family sans
9430 Address
9431 \family default
9432  and 
9433 \family sans
9434 Affiliation
9435 \family default
9436  layouts are exactly equivalent,
9437  so you shouldn't need to use both.
9438 \begin_inset Foot
9439 status collapsed
9440
9441 \begin_layout Plain Layout
9442 In case you're curious,
9443  both were included so that 
9444 \family typewriter
9445 tex2lyx
9446 \family default
9447  would be able to translate both 
9448 \family typewriter
9449
9450 \backslash
9451 address
9452 \family default
9453  and 
9454 \family typewriter
9455
9456 \backslash
9457 affiliation
9458 \family default
9459 .
9460 \end_layout
9461
9462 \end_inset
9463
9464
9465 \end_layout
9466
9467 \begin_layout Subsubsection
9468 Important Notes
9469 \end_layout
9470
9471 \begin_layout Standard
9472 There are a couple of important unique aspects of Rev\SpecialChar TeX
9473  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
9474 .
9475 \end_layout
9476
9477 \begin_layout Standard
9478 In Rev\SpecialChar TeX
9479 ,
9480  the 
9481 \family typewriter
9482
9483 \backslash
9484 thanks
9485 \family default
9486  command goes 
9487 \emph on
9488 outside
9489 \emph default
9490  the 
9491 \family typewriter
9492
9493 \backslash
9494 author
9495 \family default
9496  command.
9497  The \SpecialChar LyX
9498  equivalent is that there is a separate Thanks layout.
9499  Do 
9500 \emph on
9501 not
9502 \emph default
9503  write footnotes in the 
9504 \family sans
9505 Author
9506 \family default
9507  layout,
9508  or weird things may happen.
9509  See the Rev\SpecialChar TeX
9510  4 documentation for more details.
9511 \end_layout
9512
9513 \begin_layout Standard
9514 Also,
9515  the 
9516 \family sans
9517 Author
9518 \begin_inset space ~
9519 \end_inset
9520
9521 Email
9522 \family default
9523 ,
9524  
9525 \family sans
9526 Author
9527 \begin_inset space ~
9528 \end_inset
9529
9530 URL
9531 \family default
9532 ,
9533  and 
9534 \family sans
9535 Thanks
9536 \family default
9537  layouts must be placed 
9538 \emph on
9539 in between
9540 \emph default
9541  the 
9542 \family sans
9543 Author
9544 \family default
9545  layout and the corresponding 
9546 \family sans
9547 Address
9548 \family default
9549  (or equivalent 
9550 \family sans
9551 Affiliation
9552 \family default
9553 ) layout.
9554  If you put the 
9555 \family sans
9556 Thanks
9557 \family default
9558  after the 
9559 \family sans
9560 Address
9561 \family default
9562 ,
9563  the \SpecialChar LaTeX
9564  won't compile.
9565 \end_layout
9566
9567 \begin_layout Subsection
9568
9569 \change_inserted 564990737 1671042072
9570
9571 \lang american
9572 Springer Journals
9573 \end_layout
9574
9575 \begin_layout Standard
9576
9577 \change_inserted 564990737 1671042072
9578
9579 \lang american
9580 All the 
9581 \family sans
9582 svj*
9583 \family default
9584  classes were replaced in 2013 with a completely new 
9585 \family sans
9586 sr-vorl.cls
9587 \family default
9588 .
9589  This package provides a \SpecialChar LaTeX
9590  class and templates for books to be published at Springer Gabler Research,
9591  Springer Vieweg Research,
9592  Springer Spektrum Research,
9593  Springer VS Research,
9594  or Springer VS Forschung.
9595  The documentation is available in German from 
9596 \begin_inset CommandInset href
9597 LatexCommand href
9598 name "CTAN"
9599 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
9600 literal "false"
9601
9602 \end_inset
9603
9604 .
9605 \end_layout
9606
9607 \begin_layout Section
9608
9609 \change_inserted 564990737 1670439560
9610 Books
9611 \end_layout
9612
9613 \begin_layout Standard
9614
9615 \change_inserted 564990737 1670439581
9616 See also the document classes in the Collections (section
9617 \begin_inset space ~
9618 \end_inset
9619
9620
9621 \begin_inset CommandInset ref
9622 LatexCommand ref
9623 reference "sec:Collections"
9624 nolink "false"
9625
9626 \end_inset
9627
9628 ).
9629 \end_layout
9630
9631 \begin_layout Subsection
9632 Memoir
9633 \end_layout
9634
9635 \begin_layout Standard
9636 By 
9637 \noun on
9638 Jürgen Spitzmüller
9639 \end_layout
9640
9641 \begin_layout Subsubsection
9642 Overview
9643 \end_layout
9644
9645 \begin_layout Standard
9646 Memoir is a very powerful and constantly evolving class.
9647  It has been designed with regard to fictional and non-fictional literature.
9648  Its aim is to let the user have maximum control over the typesetting of his document.
9649  Memoir is based on the standard book class,
9650  but it can also emulate the article class (see below).
9651 \end_layout
9652
9653 \begin_layout Standard
9654 Peter Wilson,
9655  the developer of Memoir,
9656  is known as the author of lots of useful packages in the \SpecialChar LaTeX
9657  world.
9658  Most of them have been merged with Memoir.
9659  Therefore,
9660  it is much easier to layout the table of contents,
9661  appendices,
9662  chapter designs and such.
9663  \SpecialChar LyX
9664 ,
9665  though,
9666  does not support all of these goodies natively.
9667  Some of them might be added to forthcoming releases
9668 \begin_inset Foot
9669 status collapsed
9670
9671 \begin_layout Plain Layout
9672 You are invited to send suggestions to 
9673 \begin_inset Flex URL
9674 status collapsed
9675
9676 \begin_layout Plain Layout
9677
9678 lyx-devel@lists.lyx.org
9679 \end_layout
9680
9681 \end_inset
9682
9683 .
9684 \end_layout
9685
9686 \end_inset
9687
9688 ,
9689  lots will probably never be supported,
9690  due to the limitations of \SpecialChar LyX
9691 's framework.
9692  Of course you can still use all features with the help of some native \SpecialChar LaTeX
9693  commands (\SpecialChar TeX
9694  code
9695 \begin_inset Foot
9696 status collapsed
9697
9698 \begin_layout Plain Layout
9699 Cf.
9700 \begin_inset ERT
9701 status collapsed
9702
9703 \begin_layout Plain Layout
9704
9705
9706 \backslash
9707  
9708 \end_layout
9709
9710 \end_inset
9711
9712 section
9713 \begin_inset space ~
9714 \end_inset
9715
9716
9717 \begin_inset CommandInset ref
9718 LatexCommand ref
9719 reference "sec:Inserting-TeX-Code"
9720 nolink "false"
9721
9722 \end_inset
9723
9724  for details.
9725 \end_layout
9726
9727 \end_inset
9728
9729 ).
9730  In this section,
9731  we can only list those features that are natively supported by \SpecialChar LyX
9732 .
9733  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
9734 \begin_inset Foot
9735 status collapsed
9736
9737 \begin_layout Plain Layout
9738 Cf.
9739 \begin_inset ERT
9740 status collapsed
9741
9742 \begin_layout Plain Layout
9743
9744
9745 \backslash
9746  
9747 \end_layout
9748
9749 \end_inset
9750
9751
9752 \begin_inset Flex URL
9753 status collapsed
9754
9755 \begin_layout Plain Layout
9756
9757 CTAN:/macros/latex/memoir/memman.pdf
9758 \end_layout
9759
9760 \end_inset
9761
9762 .
9763 \end_layout
9764
9765 \end_inset
9766
9767 ,
9768  which is not only a user guide for the class,
9769  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
9770 \end_layout
9771
9772 \begin_layout Subsubsection
9773 Basic features and restrictions
9774 \end_layout
9775
9776 \begin_layout Standard
9777 Memoir supports basically all features of the standard book classes.
9778  There are,
9779  however,
9780  some differences,
9781  as follows:
9782 \end_layout
9783
9784 \begin_layout Description
9785 Font
9786 \begin_inset space ~
9787 \end_inset
9788
9789 sizes:
9790  Memoir has a broader range of font sizes:
9791  9,
9792  10,
9793  11,
9794  12,
9795  14,
9796  17
9797 \end_layout
9798
9799 \begin_layout Description
9800 Page
9801 \begin_inset space ~
9802 \end_inset
9803
9804 style:
9805  The fancy page style is not supported,
9806  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
9807  which confuses \SpecialChar LaTeX
9808 ).
9809  Instead,
9810  Memoir comes with a number of its own page styles (see 
9811 \family sans
9812 Document\SpecialChar menuseparator
9813 Settings\SpecialChar menuseparator
9814 Page
9815 \begin_inset space ~
9816 \end_inset
9817
9818 Style
9819 \family default
9820 ).
9821  If you want to use these for the chapter pages,
9822  you have to use the command 
9823 \family typewriter
9824
9825 \backslash
9826 chapterstyle
9827 \family default
9828  in the main text or in preamble (e.
9829 \begin_inset space \thinspace{}
9830 \end_inset
9831
9832 g.
9833 \begin_inset space \space{}
9834 \end_inset
9835
9836
9837 \family typewriter
9838
9839 \backslash
9840 chapterstyle{companion}
9841 \family default
9842 ).
9843 \end_layout
9844
9845 \begin_layout Description
9846 Sectioning:
9847  Sectionings (chapter,
9848  section,
9849  subsection etc.) come with an optional argument in the standard classes.
9850  With this,
9851  you can specify an alternative version of the title for the table of contents and the headers (for instance,
9852  if the title is too long).
9853  In \SpecialChar LyX
9854 ,
9855  you can do this via 
9856 \family sans
9857 Insert\SpecialChar menuseparator
9858 Short
9859 \begin_inset space ~
9860 \end_inset
9861
9862 Title
9863 \family default
9864  at the beginning of a chapter/section.
9865  Memoir features a second optional argument and thus separates the table of contents from the header.
9866  You can define three variants of a title with this:
9867  one for the main text,
9868  one for the table of contents,
9869  and one for the headers.
9870  \SpecialChar LyX
9871  makes these available in form of specific 
9872 \family sans
9873 Short Title
9874 \family default
9875  variants in the 
9876 \family sans
9877 Insert
9878 \family default
9879  menu.
9880 \end_layout
9881
9882 \begin_layout Description
9883 TOC/LOT/LOF:
9884  In the standard classes (and in many other classes),
9885  the table of contents,
9886  the list of figures and the list of table start a new page automatically.
9887  Memoir does not follow this route.
9888  You have to insert a page break yourself,
9889  if you want to have one.
9890 \end_layout
9891
9892 \begin_layout Description
9893 Titlepage:
9894  For some unknown reason,
9895  Memoir uses pagination on the title page (in the standard classes,
9896  title pages are 
9897 \begin_inset Quotes eld
9898 \end_inset
9899
9900 empty
9901 \begin_inset Quotes erd
9902 \end_inset
9903
9904 ).
9905  If you want an empty title page,
9906  type 
9907 \family typewriter
9908
9909 \backslash
9910 aliaspagestyle{title}{empty}
9911 \family default
9912  in the preamble.
9913 \end_layout
9914
9915 \begin_layout Description
9916 Article:
9917  With the class option 
9918 \emph on
9919 article
9920 \emph default
9921  (to be inserted in 
9922 \family sans
9923 Document\SpecialChar menuseparator
9924 Settings\SpecialChar menuseparator
9925 Class Settings\SpecialChar menuseparator
9926 Custom
9927 \begin_inset space ~
9928 \end_inset
9929
9930 Options
9931 \family default
9932 ),
9933  you can emulate article style.
9934  That is,
9935  counters (footnotes,
9936  figures,
9937  tables etc.) will not be reset on new chapters,
9938  chapters don't start a new page (but are—
9939 in contrary to 
9940 \begin_inset Quotes eld
9941 \end_inset
9942
9943 real
9944 \begin_inset Quotes erd
9945 \end_inset
9946
9947  article classes—
9948 still allowed),
9949  parts,
9950  though,
9951  use their own page,
9952  as in book.
9953 \end_layout
9954
9955 \begin_layout Description
9956 Oldfontcommands:
9957  By default,
9958  Memoir does not allow the use of the deprecated font commands,
9959  which have been used in the old \SpecialChar LaTeX
9960  version 2.09 (e.
9961 \begin_inset space \thinspace{}
9962 \end_inset
9963
9964 g.
9965 \begin_inset space \space{}
9966 \end_inset
9967
9968
9969 \family typewriter
9970
9971 \backslash
9972 rm
9973 \family default
9974 ,
9975  
9976 \family typewriter
9977
9978 \backslash
9979 it
9980 \family default
9981 ).
9982  It produces an error and stops \SpecialChar LaTeX
9983  whenever such a command appears.
9984  The class option 
9985 \emph on
9986 oldfontcommands
9987 \emph default
9988  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
9989 ).
9990  Since a lot of packages and particularly Bib\SpecialChar TeX
9991  style files are still using those commands,
9992  we have decided to use this option by default.
9993 \end_layout
9994
9995 \begin_layout Subsubsection
9996 Extra features
9997 \end_layout
9998
9999 \begin_layout Standard
10000 We will only describe the features supported by \SpecialChar LyX
10001  (which is not much currently).
10002  Please consult the Memoir manual
10003 \begin_inset Foot
10004 status collapsed
10005
10006 \begin_layout Plain Layout
10007 Cf.
10008 \begin_inset ERT
10009 status collapsed
10010
10011 \begin_layout Plain Layout
10012
10013
10014 \backslash
10015  
10016 \end_layout
10017
10018 \end_inset
10019
10020
10021 \begin_inset Flex URL
10022 status collapsed
10023
10024 \begin_layout Plain Layout
10025
10026 CTAN:/macros/latex/memoir/memman.pdf
10027 \end_layout
10028
10029 \end_inset
10030
10031 .
10032 \end_layout
10033
10034 \end_inset
10035
10036  for details.
10037 \end_layout
10038
10039 \begin_layout Description
10040 Abstract:
10041  You may wonder why an abstract is an extra feature.
10042  Well,
10043  it is in book class.
10044  Usually books don't have abstracts.
10045  Memoir,
10046  however,
10047  has.
10048  You can use it wherever and how often you like.
10049 \end_layout
10050
10051 \begin_layout Description
10052 Chapterprecis:
10053  You may know this older typesetting style:
10054  The contents of a chapter are summarized below the title and also in the table of contents (e.
10055 \begin_inset space \thinspace{}
10056 \end_inset
10057
10058 g.
10059 \begin_inset space \space{}
10060 \end_inset
10061
10062
10063 \emph on
10064 Our hero arrives in Troia;
10065  he loses some friends;
10066  he finds others
10067 \emph default
10068 ).
10069  Chapterprecis does exactly this.
10070  It is therefore only sensible below a chapter.
10071 \end_layout
10072
10073 \begin_layout Description
10074 Epigraph:
10075  An epigraph is a smart slogan or motto at the beginning of a chapter.
10076  The epigraph environment provides an elegant way of typesetting such a motto.
10077  The motto itself (text) and its (optional) author (source) are divided by a short line.
10078  The author (source) can be inserted via 
10079 \family sans
10080 Insert\SpecialChar menuseparator
10081 Epigraph Source
10082 \family default
10083 \emph on
10084 .
10085 \end_layout
10086
10087 \begin_layout Description
10088 Poemtitle:
10089  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
10090  \SpecialChar LyX
10091  can only support a few of them.
10092  One is poemtitle,
10093  which is a centered title for poems,
10094  which will also be added to the table of contents (verse is the standard environment for poems.
10095  Memoir has some enhanced versions of verse,
10096  but you need to use \SpecialChar TeX
10097  code,
10098  because they have to be nested inside regular verse environments,
10099  which is not possible with \SpecialChar LyX
10100 ).
10101 \end_layout
10102
10103 \begin_layout Description
10104 Poemtitle*:
10105  Same as poemtitle,
10106  but it adds no entry to the table of contents.
10107 \end_layout
10108
10109 \begin_layout Subsection
10110
10111 \change_inserted 564990737 1671442175
10112
10113 \lang american
10114 Recipe Book
10115 \end_layout
10116
10117 \begin_layout Standard
10118
10119 \change_inserted 564990737 1671442175
10120
10121 \lang american
10122 The document class 
10123 \family typewriter
10124 RecipeBook.cls
10125 \family default
10126  uses the 
10127 \family sans
10128 book
10129 \begin_inset space \thinspace{}
10130 \end_inset
10131
10132 (KOMA-Script)
10133 \family default
10134  document class but adds two environments:
10135 \end_layout
10136
10137 \begin_layout Description
10138
10139 \change_inserted 564990737 1671442175
10140
10141 \lang american
10142 Recipe a numbered section environment at the 
10143 \family typewriter
10144 Subsubsection
10145 \family default
10146  level which generates a bold centered heading above a double horizontal rule
10147 \end_layout
10148
10149 \begin_layout Description
10150
10151 \change_inserted 564990737 1671442175
10152
10153 \lang american
10154 Ingredients a 
10155 \family typewriter
10156 Description
10157 \family default
10158  environment where 
10159 \series bold
10160 \emph on
10161 Ingredients
10162 \series default
10163 \emph default
10164  are what are being described and the environment ends with a horizontal rule.
10165 \end_layout
10166
10167 \begin_layout Standard
10168
10169 \change_inserted 564990737 1671642866
10170
10171 \family sans
10172 \lang british
10173 File\SpecialChar menuseparator
10174 Open Example\SpecialChar menuseparator
10175 Books\SpecialChar menuseparator
10176 Recipe Book
10177 \family default
10178 \lang american
10179  illustrates its use.
10180 \end_layout
10181
10182 \begin_layout Standard
10183
10184 \change_inserted 564990737 1671442175
10185
10186 \lang american
10187 It is designed for typesetting one or two recipes per page,
10188  with dimensions of 5.5
10189 \begin_inset Quotes qrd
10190 \end_inset
10191
10192  x 8.5
10193 \begin_inset Quotes qrd
10194 \end_inset
10195
10196 .
10197  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient,
10198  and the pages can be joined together or printed 2 per page to normal letterpaper easily.
10199  The size was chosen to work in half-page 3-ring binder cover sheets,
10200  because un-laminated paper just doesn't last in the kitchen.
10201 \end_layout
10202
10203 \begin_layout Standard
10204
10205 \change_inserted 564990737 1671442175
10206
10207 \lang american
10208 The half-letter pages can be printed two per page using your printer driver,
10209  or bound together using 
10210 \family typewriter
10211 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
10212 \family default
10213  
10214 \family typewriter
10215 Recipes.pdf
10216 \family default
10217  where 
10218 \family typewriter
10219 Recipes.pdf
10220 \family default
10221  is the compiled version of your recipes.
10222 \end_layout
10223
10224 \begin_layout Section
10225
10226 \change_inserted 564990737 1671442207
10227 Curricula vitarum
10228 \end_layout
10229
10230 \begin_layout Subsection
10231
10232 \change_inserted 564990737 1671442208
10233
10234 \lang american
10235 Europass
10236 \end_layout
10237
10238 \begin_layout Standard
10239
10240 \change_inserted 564990737 1671642942
10241
10242 \lang american
10243 The document class 
10244 \family sans
10245 curriculum
10246 \begin_inset space \space{}
10247 \end_inset
10248
10249 vitae
10250 \begin_inset space \thinspace{}
10251 \end_inset
10252
10253 (Europass)
10254 \family default
10255  provides the 
10256 \family typewriter
10257 europasscv.cls
10258 \family default
10259  document class,
10260  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
10261  
10262 \family sans
10263 \lang british
10264 File\SpecialChar menuseparator
10265 Open Example\SpecialChar menuseparator
10266 Curricula Vitae\SpecialChar menuseparator
10267 Europass CV (2013)
10268 \family default
10269 \lang american
10270  offers guidance on its use.
10271  Its documentation is available from 
10272 \begin_inset CommandInset href
10273 LatexCommand href
10274 name "CTAN"
10275 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
10276 literal "false"
10277
10278 \end_inset
10279
10280 .
10281 \end_layout
10282
10283 \begin_layout Subsection
10284
10285 \change_inserted 564990737 1671442208
10286
10287 \lang american
10288 European
10289 \end_layout
10290
10291 \begin_layout Standard
10292
10293 \change_inserted 564990737 1671642984
10294
10295 \lang american
10296 The document class 
10297 \family sans
10298 curriculum
10299 \begin_inset space \space{}
10300 \end_inset
10301
10302 vitae
10303 \begin_inset space \thinspace{}
10304 \end_inset
10305
10306 (Europe)
10307 \family default
10308  provides the 
10309 \family typewriter
10310 europecv.cls
10311 \family default
10312  document class,
10313  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
10314  
10315 \family sans
10316 \lang british
10317 File\SpecialChar menuseparator
10318 Open Example\SpecialChar menuseparator
10319 Curricula Vitae\SpecialChar menuseparator
10320 Europe CV
10321 \family default
10322 \lang american
10323  offers guidance on its use.
10324  Its documentation is available from 
10325 \begin_inset CommandInset href
10326 LatexCommand href
10327 name "CTAN"
10328 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
10329 literal "false"
10330
10331 \end_inset
10332
10333 .
10334 \end_layout
10335
10336 \begin_layout Subsection
10337
10338 \change_inserted 564990737 1671442208
10339
10340 \lang american
10341 Modern
10342 \end_layout
10343
10344 \begin_layout Standard
10345
10346 \change_inserted 564990737 1671643003
10347
10348 \lang american
10349 The document class 
10350 \family sans
10351 curriculum
10352 \begin_inset space \space{}
10353 \end_inset
10354
10355 vitae
10356 \begin_inset space \thinspace{}
10357 \end_inset
10358
10359 (modern)
10360 \family default
10361  provides the 
10362 \family typewriter
10363 moderncv.cls
10364 \family default
10365  document class.
10366  This allows the creation of customizable CVs.
10367  
10368 \family sans
10369 \lang british
10370 File\SpecialChar menuseparator
10371 Open Example\SpecialChar menuseparator
10372 Curricula Vitae\SpecialChar menuseparator
10373 Modern CV
10374 \family default
10375 \lang american
10376  offers guidance on its use.
10377  Its documentation is available from 
10378 \begin_inset CommandInset href
10379 LatexCommand href
10380 name "CTAN"
10381 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
10382 literal "false"
10383
10384 \end_inset
10385
10386 .
10387 \end_layout
10388
10389 \begin_layout Subsection
10390
10391 \change_inserted 564990737 1671442208
10392
10393 \lang american
10394 Simple
10395 \end_layout
10396
10397 \begin_layout Standard
10398
10399 \change_inserted 564990737 1671643024
10400
10401 \lang american
10402 The document class 
10403 \family sans
10404 curriculum
10405 \begin_inset space \space{}
10406 \end_inset
10407
10408 vitae
10409 \begin_inset space \thinspace{}
10410 \end_inset
10411
10412 (simple)
10413 \family default
10414  provides the 
10415 \family typewriter
10416 simplecv.cls
10417 \family default
10418  document class,
10419  originally developed for use with \SpecialChar LyX
10420 .
10421  
10422 \family sans
10423 \lang british
10424 File\SpecialChar menuseparator
10425 Open Example\SpecialChar menuseparator
10426 Curricula Vitae\SpecialChar menuseparator
10427 Simple CV
10428 \family default
10429 \lang american
10430  offers guidance on its use.
10431  Its documentation is available from 
10432 \begin_inset CommandInset href
10433 LatexCommand href
10434 name "CTAN"
10435 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
10436 literal "false"
10437
10438 \end_inset
10439
10440
10441 \end_layout
10442
10443 \begin_layout Section
10444
10445 \change_inserted 564990737 1672652454
10446 Letters
10447 \end_layout
10448
10449 \begin_layout Standard
10450
10451 \change_inserted 564990737 1672652455
10452
10453 \lang american
10454 See also the 
10455 \family typewriter
10456 letter
10457 \begin_inset space \space{}
10458 \end_inset
10459
10460 (KOMA-Script v.2)
10461 \family default
10462  (section
10463 \begin_inset space ~
10464 \end_inset
10465
10466
10467 \begin_inset CommandInset ref
10468 LatexCommand ref
10469 reference "subsec:The-new-letter"
10470 nolink "false"
10471
10472 \end_inset
10473
10474 ) and 
10475 \family typewriter
10476 letter
10477 \begin_inset space \space{}
10478 \end_inset
10479
10480 (with extra font sizes)
10481 \family default
10482  (section
10483 \begin_inset space ~
10484 \end_inset
10485
10486
10487 \begin_inset CommandInset ref
10488 LatexCommand ref
10489 reference "subsec:Extra-font-sizes"
10490 nolink "false"
10491
10492 \end_inset
10493
10494 ) document classes .
10495 \end_layout
10496
10497 \begin_layout Subsection
10498
10499 \change_inserted 564990737 1671041970
10500
10501 \lang american
10502 Din-Brief
10503 \end_layout
10504
10505 \begin_layout Standard
10506
10507 \change_inserted 564990737 1671617528
10508
10509 \lang american
10510 The document class 
10511 \family sans
10512 Din-Brief
10513 \family default
10514  provides the 
10515 \family typewriter
10516 dinbrief.cls
10517 \family default
10518  document class for writing letters according to the 
10519 \emph on
10520 Deutsches Institut für Normung
10521 \emph default
10522  conventions.
10523  The file in the menu 
10524 \family sans
10525 \bar under
10526 F
10527 \bar default
10528 ile\SpecialChar menuseparator
10529 New
10530 \begin_inset space ~
10531 \end_inset
10532
10533 fro
10534 \bar under
10535 m
10536 \bar default
10537
10538 \begin_inset space ~
10539 \end_inset
10540
10541 Template\SpecialChar menuseparator
10542 Letters\SpecialChar menuseparator
10543 DIN-Brief
10544 \family default
10545  offers guidance on its use.
10546  The documentation is available from 
10547 \begin_inset CommandInset href
10548 LatexCommand href
10549 name "CTAN"
10550 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
10551 literal "false"
10552
10553 \end_inset
10554
10555 .
10556 \end_layout
10557
10558 \begin_layout Subsection
10559
10560 \change_inserted 564990737 1672652499
10561
10562 \lang american
10563 frletter
10564 \end_layout
10565
10566 \begin_layout Standard
10567
10568 \change_inserted 564990737 1672652499
10569
10570 \lang american
10571 The document class 
10572 \family sans
10573 French letter
10574 \begin_inset space \space{}
10575 \end_inset
10576
10577 (frletter)
10578 \family default
10579  provides the 
10580 \family typewriter
10581 frletter.cls
10582 \family default
10583  document class for writing letters according to French conventions.
10584  The file in the menu 
10585 \family sans
10586 \bar under
10587 F
10588 \bar default
10589 ile\SpecialChar menuseparator
10590 New
10591 \begin_inset space ~
10592 \end_inset
10593
10594 fro
10595 \bar under
10596 m
10597 \bar default
10598
10599 \begin_inset space ~
10600 \end_inset
10601
10602 Template\SpecialChar menuseparator
10603 Letters\SpecialChar menuseparator
10604 French letter
10605 \begin_inset space \space{}
10606 \end_inset
10607
10608 (frletter)
10609 \family default
10610  offers guidance on its use.
10611 \end_layout
10612
10613 \begin_layout Subsection
10614
10615 \change_inserted 564990737 1672652499
10616
10617 \lang american
10618 G-Brief
10619 \end_layout
10620
10621 \begin_layout Standard
10622
10623 \change_inserted 564990737 1672652499
10624
10625 \lang american
10626 The document class 
10627 \family sans
10628 G-Brief (V.
10629 \begin_inset space \thinspace{}
10630 \end_inset
10631
10632 2)
10633 \family default
10634  provides the newer 
10635 \family typewriter
10636 g-brief2.cls
10637 \family default
10638  document class for writing letters in German.
10639  The file in the menu 
10640 \family sans
10641 \bar under
10642 F
10643 \bar default
10644 ile\SpecialChar menuseparator
10645 New
10646 \begin_inset space ~
10647 \end_inset
10648
10649 fro
10650 \bar under
10651 m
10652 \bar default
10653
10654 \begin_inset space ~
10655 \end_inset
10656
10657 Template\SpecialChar menuseparator
10658 Letters\SpecialChar menuseparator
10659 G-Brief (V.
10660 \begin_inset space \thinspace{}
10661 \end_inset
10662
10663 2)
10664 \family default
10665  offers guidance on its use.
10666  The documentation is available from 
10667 \begin_inset CommandInset href
10668 LatexCommand href
10669 name "CTAN"
10670 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
10671 literal "false"
10672
10673 \end_inset
10674
10675 .
10676 \end_layout
10677
10678 \begin_layout Subsection
10679
10680 \change_inserted 564990737 1671458835
10681
10682 \lang american
10683 letter
10684 \end_layout
10685
10686 \begin_layout Standard
10687
10688 \change_inserted 564990737 1671617591
10689
10690 \lang american
10691 The document class 
10692 \family sans
10693 letter
10694 \family default
10695  provides the 
10696 \family sans
10697 letter.cls
10698 \family default
10699  document class for English letters and to create mailing labels.
10700  The file in the menu 
10701 \family sans
10702 \bar under
10703 F
10704 \bar default
10705 ile\SpecialChar menuseparator
10706 New
10707 \begin_inset space ~
10708 \end_inset
10709
10710 fro
10711 \bar under
10712 m
10713 \bar default
10714
10715 \begin_inset space ~
10716 \end_inset
10717
10718 Template\SpecialChar menuseparator
10719 Letters\SpecialChar menuseparator
10720 Letter (Standard Class)
10721 \family default
10722  offers guidance on its use.
10723 \end_layout
10724
10725 \begin_layout Subsection
10726
10727 \change_inserted 564990737 1672652527
10728
10729 \lang american
10730 lettre
10731 \end_layout
10732
10733 \begin_layout Standard
10734
10735 \change_inserted 564990737 1672652527
10736
10737 \lang american
10738 The document class 
10739 \family sans
10740 French letter
10741 \begin_inset space \space{}
10742 \end_inset
10743
10744 (lettre)
10745 \family default
10746  provides the 
10747 \family typewriter
10748 lettre.cls
10749 \family default
10750  document class for writing letters,
10751  faxes and envelopes in French.
10752  The file in the menu 
10753 \family sans
10754 \bar under
10755 F
10756 \bar default
10757 ile\SpecialChar menuseparator
10758 New
10759 \begin_inset space ~
10760 \end_inset
10761
10762 fro
10763 \bar under
10764 m
10765 \bar default
10766
10767 \begin_inset space ~
10768 \end_inset
10769
10770 Template\SpecialChar menuseparator
10771 Letters\SpecialChar menuseparator
10772 French letter
10773 \begin_inset space \space{}
10774 \end_inset
10775
10776 (lettre)
10777 \family default
10778  offers guidance on its use.
10779  The documentation is available from 
10780 \begin_inset CommandInset href
10781 LatexCommand href
10782 name "CTAN"
10783 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
10784 literal "false"
10785
10786 \end_inset
10787
10788 .
10789 \end_layout
10790
10791 \begin_layout Section
10792
10793 \change_inserted 564990737 1670439660
10794 Presentations
10795 \end_layout
10796
10797 \begin_layout Subsection
10798
10799 \change_inserted 564990737 1671458922
10800
10801 \lang american
10802 Beamer
10803 \end_layout
10804
10805 \begin_layout Standard
10806
10807 \change_inserted 564990737 1671617655
10808
10809 \lang american
10810 The document class 
10811 \family sans
10812 presentation
10813 \begin_inset space \thinspace{}
10814 \end_inset
10815
10816 (beamer)
10817 \family default
10818  uses the 
10819 \family typewriter
10820 beamer.cls
10821 \family default
10822  document class for creating presentations.
10823  The file in the menu 
10824 \family sans
10825 \bar under
10826 F
10827 \bar default
10828 ile\SpecialChar menuseparator
10829 New
10830 \begin_inset space ~
10831 \end_inset
10832
10833 fro
10834 \bar under
10835 m
10836 \bar default
10837
10838 \begin_inset space ~
10839 \end_inset
10840
10841 Template\SpecialChar menuseparator
10842 Presentations\SpecialChar menuseparator
10843 Beamer
10844 \family default
10845  offers guidance on its use.
10846  The documentation is available from 
10847 \begin_inset CommandInset href
10848 LatexCommand href
10849 name "CTAN"
10850 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
10851 literal "false"
10852
10853 \end_inset
10854
10855 .
10856 \end_layout
10857
10858 \begin_layout Subsection
10859 Foils [aka 
10860 \family sans
10861 Foil\SpecialChar TeX
10862
10863 \family default
10864 ]
10865 \begin_inset CommandInset label
10866 LatexCommand label
10867 name "sec:foiltex"
10868
10869 \end_inset
10870
10871
10872 \end_layout
10873
10874 \begin_layout Standard
10875
10876 \change_inserted 564990737 1672743383
10877
10878 \lang american
10879 Original by 
10880 \noun on
10881 Allan Rae
10882 \noun default
10883 ;
10884  updated by the \SpecialChar LyX
10885  Team
10886 \end_layout
10887
10888 \begin_layout Subsubsection
10889
10890 \change_inserted 564990737 1672743383
10891
10892 \lang american
10893 Introduction
10894 \end_layout
10895
10896 \begin_layout Standard
10897
10898 \change_inserted 564990737 1672743396
10899
10900 \lang american
10901 The document class 
10902 \family sans
10903 presentation
10904 \begin_inset space \thinspace{}
10905 \end_inset
10906
10907 (Foil\SpecialChar TeX
10908 )
10909 \family default
10910  uses the 
10911 \family typewriter
10912 foils.cls
10913 \family default
10914  document class to make slides for overhead projectors.
10915  There are two document classes that can do this:
10916  the 
10917 \family sans
10918 presentations
10919 \begin_inset space \thinspace{}
10920 \end_inset
10921
10922 (slides)
10923 \family default
10924  document class (section
10925 \begin_inset space ~
10926 \end_inset
10927
10928
10929 \begin_inset CommandInset ref
10930 LatexCommand ref
10931 reference "sec:slitex"
10932 plural "false"
10933 caps "false"
10934 noprefix "false"
10935 nolink "false"
10936
10937 \end_inset
10938
10939 ) and the 
10940 \family sans
10941 Foil\SpecialChar TeX
10942
10943 \family default
10944  slides class.
10945  As of 2023 the former has continued to be maintained whereas 
10946 \family sans
10947 Foil\SpecialChar TeX
10948
10949 \family default
10950  has not been maintained since 2008.
10951  This section documents the latter.
10952  If your machine doesn’t have the 
10953 \family sans
10954 presentation
10955 \begin_inset space \thinspace{}
10956 \end_inset
10957
10958 (Foil\SpecialChar TeX
10959 )
10960 \family default
10961  document class installed,
10962  you’ll probably have to use the 
10963 \family sans
10964 presentations
10965 \begin_inset space \thinspace{}
10966 \end_inset
10967
10968 (slides)
10969 \family default
10970  document class.
10971  If you want to install the 
10972 \family typewriter
10973 foils.cls
10974 \family default
10975  document class,
10976  it is available from 
10977 \begin_inset CommandInset href
10978 LatexCommand href
10979 name "CTAN"
10980 target "https://www.ctan.org/pkg/foiltex"
10981 literal "false"
10982
10983 \end_inset
10984
10985 .
10986  You should also read the 
10987 \emph on
10988 Installing New Document Classes
10989 \emph default
10990  chapter of the 
10991 \emph on
10992 Customization
10993 \emph default
10994  manual.
10995 \change_deleted 564990737 1672743436
10996
10997 \lang english
10998 by 
10999 \noun on
11000 Allan Rae
11001 \end_layout
11002
11003 \begin_layout Standard
11004
11005 \change_deleted 564990737 1672743383
11006 Introduction
11007 \end_layout
11008
11009 \begin_layout Standard
11010
11011 \change_deleted 564990737 1672743383
11012 This section describes how to use \SpecialChar LyX
11013  to make slides for overhead projectors.
11014  There are two document classes that can do this:
11015  the default slides class and the 
11016 \family sans
11017 Foil\SpecialChar TeX
11018
11019 \family default
11020  slides class.
11021  This section documents the latter.
11022 \end_layout
11023
11024 \begin_layout Standard
11025
11026 \change_deleted 564990737 1672743383
11027 I'm going to say this again,
11028  nice and clear,
11029  so that there's no misunderstanding:
11030 \end_layout
11031
11032 \begin_layout Standard
11033
11034 \change_deleted 564990737 1672743383
11035 \begin_inset VSpace bigskip
11036 \end_inset
11037
11038
11039 \end_layout
11040
11041 \begin_layout Standard
11042 \align center
11043
11044 \change_deleted 564990737 1672743383
11045
11046 \size large
11047 This section documents the class 
11048 \begin_inset Quotes eld
11049 \end_inset
11050
11051
11052 \family sans
11053 FoilTeX
11054 \family default
11055
11056 \begin_inset Quotes erd
11057 \end_inset
11058
11059  
11060 \emph on
11061 only.
11062 \end_layout
11063
11064 \begin_layout Standard
11065
11066 \change_deleted 564990737 1672743383
11067 \begin_inset VSpace bigskip
11068 \end_inset
11069
11070
11071 \end_layout
11072
11073 \begin_layout Standard
11074
11075 \change_deleted 564990737 1672743383
11076 If you're looking for the documentation for 
11077 \begin_inset Quotes eld
11078 \end_inset
11079
11080
11081 \family sans
11082 slides (default)
11083 \family default
11084
11085 \begin_inset Quotes erd
11086 \end_inset
11087
11088 ,
11089  check out section
11090 \begin_inset space ~
11091 \end_inset
11092
11093
11094 \begin_inset CommandInset ref
11095 LatexCommand ref
11096 reference "sec:slitex"
11097 nolink "false"
11098
11099 \end_inset
11100
11101 .
11102  If your machine doesn't have the 
11103 \family sans
11104 foils
11105 \family default
11106  class 
11107 \family sans
11108 FoilTeX
11109 \family default
11110  installed,
11111  you'll probably have to use the default 
11112 \family sans
11113 slides
11114 \family default
11115  class,
11116  which isn't quite as good as 
11117 \family sans
11118 foils.
11119 \end_layout
11120
11121 \begin_layout Standard
11122
11123 \change_deleted 564990737 1672743383
11124 The 
11125 \family sans
11126 foils
11127 \family default
11128  class is designed for use with version
11129 \begin_inset space ~
11130 \end_inset
11131
11132 2.1 of the 
11133 \family sans
11134 foils.cls
11135 \family default
11136  \SpecialChar LaTeX
11137  class file which is now an integral part of \SpecialChar LaTeX2e
11138 .
11139 \change_unchanged
11140
11141 \end_layout
11142
11143 \begin_layout Subsubsection
11144 Getting Started
11145 \end_layout
11146
11147 \begin_layout Standard
11148 Obviously,
11149  to use this document class,
11150  you need to select 
11151 \family sans
11152 FoilTeX
11153 \family default
11154  from the 
11155 \family sans
11156 Class
11157 \family default
11158  entry in the 
11159 \family sans
11160 Document
11161 \begin_inset space ~
11162 \end_inset
11163
11164 Layout
11165 \family default
11166  dialog.
11167  There are some settings in the 
11168 \family sans
11169 Document
11170 \begin_inset space ~
11171 \end_inset
11172
11173 Layout
11174 \family default
11175  dialog that you should know about that are specific to this class:
11176 \end_layout
11177
11178 \begin_layout Itemize
11179 Don't change the options 
11180 \family sans
11181 Sides
11182 \family default
11183  and 
11184 \family sans
11185 Columns
11186 \family default
11187  on the 
11188 \family sans
11189 Document
11190 \begin_inset space ~
11191 \end_inset
11192
11193 Layout
11194 \family default
11195  dialog.
11196  They're ignored by the 
11197 \family sans
11198 foils
11199 \family default
11200  class.
11201 \end_layout
11202
11203 \begin_layout Itemize
11204 The default font size is 20
11205 \begin_inset space \thinspace{}
11206 \end_inset
11207
11208 pt with the other options being 17
11209 \begin_inset space \thinspace{}
11210 \end_inset
11211
11212 pt,
11213  25
11214 \begin_inset space \thinspace{}
11215 \end_inset
11216
11217 pt and 30
11218 \begin_inset space \thinspace{}
11219 \end_inset
11220
11221 pt.
11222 \end_layout
11223
11224 \begin_layout Itemize
11225 The default font is 
11226 \family sans
11227 sans
11228 \family default
11229  
11230 \family sans
11231 serif
11232 \family default
11233  but all math equations are still typeset in the usual roman font.
11234 \end_layout
11235
11236 \begin_layout Itemize
11237
11238 \family sans
11239 Foil\SpecialChar TeX
11240
11241 \family default
11242  supports A4 and Letter paper sizes as well as a special size for working with 35
11243 \begin_inset space \thinspace{}
11244 \end_inset
11245
11246 mm slides.
11247  It doesn't support A5,
11248  B5,
11249  legal or executive paper sizes.
11250 \end_layout
11251
11252 \begin_layout Itemize
11253 Don't bother changing the 
11254 \family sans
11255 Float Placement
11256 \family default
11257  settings because they are ignored anyway.
11258  All floats appear where they are defined in the text.
11259 \end_layout
11260
11261 \begin_layout Itemize
11262 The 
11263 \family sans
11264 Pagestyle
11265 \family default
11266  setting behaves a bit differently for this class.
11267  
11268 \family sans
11269 Foil\SpecialChar TeX
11270
11271 \family default
11272  provides extensive footer and header capabilities including a user-defined logo.
11273  See section
11274 \begin_inset space ~
11275 \end_inset
11276
11277
11278 \begin_inset CommandInset ref
11279 LatexCommand ref
11280 reference "sec:foilfoot"
11281 nolink "false"
11282
11283 \end_inset
11284
11285  for more details.
11286  The title page is treated differently to all other pages in the document and is 
11287 \emph on
11288 always
11289 \emph default
11290  unnumbered and 
11291 \emph on
11292 always
11293 \emph default
11294  has the logo centered at the bottom of the page (if one is defined).
11295  The possible page style choices and what they do are as follows:
11296 \end_layout
11297
11298 \begin_deeper
11299 \begin_layout Labeling
11300 \labelwidthstring MMMMMMM
11301
11302 \family sans
11303 \series bold
11304 empty
11305 \family default
11306 \series default
11307  The final output contains no page numbers,
11308  or other headers or footers (except footnotes of course).
11309  
11310 \end_layout
11311
11312 \begin_layout Labeling
11313 \labelwidthstring MMMMMMM
11314
11315 \family sans
11316 \series bold
11317 plain
11318 \family default
11319 \series default
11320  The final output contains page numbers centered at the bottom of the page.
11321  No other headings or footers (other than footnotes).
11322 \end_layout
11323
11324 \begin_layout Labeling
11325 \labelwidthstring MMMMMMM
11326
11327 \series bold
11328 foilheadings
11329 \series default
11330  Page numbers in lower right corner.
11331  Additional headers and footers are also shown.
11332  This is also the default.
11333 \end_layout
11334
11335 \begin_layout Labeling
11336 \labelwidthstring MMMMMMM
11337
11338 \series bold
11339 fancy
11340 \series default
11341  Gives you access to the 
11342 \family sans
11343 fancyheadings
11344 \family default
11345  package although its use with 
11346 \family sans
11347 Foil\SpecialChar TeX
11348
11349 \family default
11350  is discouraged by the writer of the 
11351 \family sans
11352 Foil\SpecialChar TeX
11353
11354 \family default
11355  package because of some potential page layout clashes.
11356 \end_layout
11357
11358 \end_deeper
11359 \begin_layout Paragraph
11360 Extra Options
11361 \end_layout
11362
11363 \begin_layout Standard
11364 The following options may be used in the extra class options in the 
11365 \family sans
11366 Document\SpecialChar menuseparator
11367 Settings
11368 \family default
11369  dialog.
11370 \end_layout
11371
11372 \begin_layout Labeling
11373 \labelwidthstring MMMMMMx
11374
11375 \series bold
11376 35mmSlide
11377 \series default
11378  This sets up the page layout for 7.33
11379 \begin_inset space \thinspace{}
11380 \end_inset
11381
11382 in by 11
11383 \begin_inset space \thinspace{}
11384 \end_inset
11385
11386 in paper,
11387  which is about the same aspect ratio as a 35
11388 \begin_inset space \thinspace{}
11389 \end_inset
11390
11391 mm slide,
11392  making it a bit easier to work with this medium.
11393 \end_layout
11394
11395 \begin_layout Labeling
11396 \labelwidthstring MMMMMMx
11397
11398 \series bold
11399 headrule
11400 \series default
11401  Places a rule across the page below the header on every page except the title page.
11402 \end_layout
11403
11404 \begin_layout Labeling
11405 \labelwidthstring MMMMMMx
11406
11407 \series bold
11408 footrule
11409 \series default
11410  Places a rule across the page above the footer on every page except the title page.
11411 \end_layout
11412
11413 \begin_layout Labeling
11414 \labelwidthstring MMMMMMx
11415
11416 \series bold
11417 dvips
11418 \series default
11419  This is automatically set each time you create a new 
11420 \family sans
11421 foils
11422 \family default
11423  document.
11424  This option tells 
11425 \family sans
11426 Foil\SpecialChar TeX
11427
11428 \family default
11429  to use the dvips driver to rotate those pages that are set as landscape foils.
11430 \end_layout
11431
11432 \begin_layout Labeling
11433 \labelwidthstring MMMMMMx
11434
11435 \series bold
11436 landscape
11437 \series default
11438  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
11439  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.
11440  Note that this option effectively reverses the roles of the 
11441 \family sans
11442 Foilhead
11443 \family default
11444  and 
11445 \family sans
11446 Rotatefoilhead
11447 \family default
11448  environments (don't worry these are described in the next section).
11449 \end_layout
11450
11451 \begin_layout Labeling
11452 \labelwidthstring MMMMMMx
11453
11454 \series bold
11455 leqno
11456 \series default
11457  Equation numbers on the left.
11458 \end_layout
11459
11460 \begin_layout Labeling
11461 \labelwidthstring MMMMMMx
11462
11463 \series bold
11464 fleqn
11465 \series default
11466  Flush-left equations.
11467 \end_layout
11468
11469 \begin_layout Subsubsection
11470 Supported Environments
11471 \end_layout
11472
11473 \begin_layout Standard
11474 Most of the environments commonly supported in other classes are also supported by the 
11475 \family sans
11476 foils
11477 \family default
11478  class.
11479  There are several additional environments provided by 
11480 \family sans
11481 Foil\SpecialChar TeX
11482
11483 \family default
11484  as well as a couple added by \SpecialChar LyX
11485 .
11486  The following environments are shared with other classes:
11487 \end_layout
11488
11489 \begin_layout Standard
11490 \begin_inset Flex Multiple Columns
11491 status open
11492
11493 \begin_layout Itemize
11494
11495 \family sans
11496 Standard
11497 \end_layout
11498
11499 \begin_layout Itemize
11500
11501 \family sans
11502 Itemize
11503 \end_layout
11504
11505 \begin_layout Itemize
11506
11507 \family sans
11508 Enumerate
11509 \end_layout
11510
11511 \begin_layout Itemize
11512
11513 \family sans
11514 Description
11515 \end_layout
11516
11517 \begin_layout Itemize
11518
11519 \family sans
11520 List
11521 \end_layout
11522
11523 \begin_layout Itemize
11524
11525 \family sans
11526 \SpecialChar LyX
11527 -Code
11528 \end_layout
11529
11530 \begin_layout Itemize
11531
11532 \family sans
11533 Verse
11534 \end_layout
11535
11536 \begin_layout Itemize
11537
11538 \family sans
11539 Quote
11540 \end_layout
11541
11542 \begin_layout Itemize
11543
11544 \family sans
11545 Quotation
11546 \end_layout
11547
11548 \begin_layout Itemize
11549
11550 \family sans
11551 TitleAuthor
11552 \end_layout
11553
11554 \begin_layout Itemize
11555
11556 \family sans
11557 Date
11558 \end_layout
11559
11560 \begin_layout Itemize
11561
11562 \family sans
11563 Abstract
11564 \end_layout
11565
11566 \begin_layout Itemize
11567
11568 \family sans
11569 Bibliography
11570 \end_layout
11571
11572 \begin_layout Itemize
11573
11574 \family sans
11575 Address
11576 \end_layout
11577
11578 \begin_layout Itemize
11579
11580 \family sans
11581 RightAddress
11582 \end_layout
11583
11584 \end_inset
11585
11586
11587 \end_layout
11588
11589 \begin_layout Standard
11590 That is,
11591  all the major environments apart from the sectioning environments.
11592  Since foils are essentially self-contained sections,
11593  with a title and body,
11594  
11595 \family sans
11596 Foil\SpecialChar TeX
11597
11598 \family default
11599  provides specific commands for starting new foils and these are:
11600 \end_layout
11601
11602 \begin_layout Itemize
11603
11604 \family sans
11605 Foilhead
11606 \end_layout
11607
11608 \begin_layout Itemize
11609
11610 \family sans
11611 Rotatefoilhead
11612 \end_layout
11613
11614 \begin_layout Standard
11615 \SpecialChar LyX
11616  also provides slightly modified versions of these two environments called:
11617 \end_layout
11618
11619 \begin_layout Itemize
11620
11621 \family sans
11622 ShortFoilhead
11623 \end_layout
11624
11625 \begin_layout Itemize
11626
11627 \family sans
11628 ShortRotatefoilhead
11629 \end_layout
11630
11631 \begin_layout Standard
11632 and the differences will be explained in the next section.
11633 \end_layout
11634
11635 \begin_layout Standard
11636 Since foils are often used in presenting ideas or new theorems and such 
11637 \family sans
11638 Foil\SpecialChar TeX
11639
11640 \family default
11641  also provides a comprehensive box of goodies for presenting them:
11642 \end_layout
11643
11644 \begin_layout Standard
11645 \begin_inset Flex Multiple Columns
11646 status open
11647
11648 \begin_layout Itemize
11649
11650 \family sans
11651 Theorem
11652 \end_layout
11653
11654 \begin_layout Itemize
11655
11656 \family sans
11657 Lemma
11658 \end_layout
11659
11660 \begin_layout Itemize
11661
11662 \family sans
11663 Corollary
11664 \end_layout
11665
11666 \begin_layout Itemize
11667
11668 \family sans
11669 Proposition
11670 \end_layout
11671
11672 \begin_layout Itemize
11673
11674 \family sans
11675 Definition
11676 \end_layout
11677
11678 \begin_layout Itemize
11679
11680 \family sans
11681 Proof
11682 \end_layout
11683
11684 \begin_layout Itemize
11685
11686 \family sans
11687 Theorem*
11688 \end_layout
11689
11690 \begin_layout Itemize
11691
11692 \family sans
11693 Lemma*
11694 \end_layout
11695
11696 \begin_layout Itemize
11697
11698 \family sans
11699 Corollary*
11700 \end_layout
11701
11702 \begin_layout Itemize
11703
11704 \family sans
11705 Proposition*
11706 \end_layout
11707
11708 \begin_layout Itemize
11709
11710 \family sans
11711 Definition*
11712 \end_layout
11713
11714 \end_inset
11715
11716
11717 \end_layout
11718
11719 \begin_layout Standard
11720 The starred versions are unnumbered while the unstarred versions are numbered.
11721  There are also two list environments added by \SpecialChar LyX
11722  and these are:
11723 \end_layout
11724
11725 \begin_layout Itemize
11726
11727 \family sans
11728 TickList
11729 \end_layout
11730
11731 \begin_layout Itemize
11732
11733 \family sans
11734 CrossList
11735 \end_layout
11736
11737 \begin_layout Standard
11738
11739 \family sans
11740 Foil\SpecialChar TeX
11741
11742 \family default
11743  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.
11744  If you want to change these settings in your document the best place to do so is at the very top of a foil,
11745  i.
11746 \begin_inset space \thinspace{}
11747 \end_inset
11748
11749 e.
11750 \emph on
11751
11752 \begin_inset space \space{}
11753 \end_inset
11754
11755
11756 \emph default
11757 straight after the foilhead.
11758 \end_layout
11759
11760 \begin_layout Standard
11761 For this purpose,
11762  the following command styles are provided [
11763 \shape smallcaps
11764 Martin Vermeer
11765 \shape default
11766 ]:
11767 \end_layout
11768
11769 \begin_layout Standard
11770 \begin_inset Flex Multiple Columns
11771 status open
11772
11773 \begin_layout Itemize
11774
11775 \family sans
11776 My
11777 \begin_inset space ~
11778 \end_inset
11779
11780 Logo
11781 \end_layout
11782
11783 \begin_layout Itemize
11784
11785 \family sans
11786 Restriction
11787 \end_layout
11788
11789 \begin_layout Itemize
11790
11791 \family sans
11792 Right
11793 \begin_inset space ~
11794 \end_inset
11795
11796 Footer
11797 \end_layout
11798
11799 \begin_layout Itemize
11800
11801 \family sans
11802 Right
11803 \begin_inset space ~
11804 \end_inset
11805
11806 Header
11807 \end_layout
11808
11809 \begin_layout Itemize
11810
11811 \family sans
11812 Left
11813 \begin_inset space ~
11814 \end_inset
11815
11816 Header
11817 \end_layout
11818
11819 \begin_deeper
11820 \begin_layout Plain Layout
11821 \begin_inset space ~
11822 \end_inset
11823
11824
11825 \end_layout
11826
11827 \end_deeper
11828 \end_inset
11829
11830
11831 \end_layout
11832
11833 \begin_layout Standard
11834 There are also a few commands provided by 
11835 \family sans
11836 Foil\SpecialChar TeX
11837
11838 \family default
11839  that aren't directly supported by \SpecialChar LyX
11840  but I'll tell you what they do and how to use them in section
11841 \begin_inset space ~
11842 \end_inset
11843
11844
11845 \begin_inset CommandInset ref
11846 LatexCommand ref
11847 reference "sec:unsuppfoils"
11848 nolink "false"
11849
11850 \end_inset
11851
11852 .
11853 \end_layout
11854
11855 \begin_layout Subsubsection
11856 Building a Set of Foils
11857 \end_layout
11858
11859 \begin_layout Standard
11860 This section will give a simple introduction to using the different environments to build a set of foils.
11861  If you want to see an example set of foils,
11862  take a look at 
11863 \change_deleted 564990737 1671643085
11864 the 
11865 \family typewriter
11866 Foils.lyx
11867 \family default
11868  file you find in \SpecialChar LyX
11869 's 
11870 \family typewriter
11871 examples
11872 \family default
11873  folder
11874 \change_inserted 564990737 1671643099
11875
11876 \family sans
11877 \lang british
11878 File\SpecialChar menuseparator
11879 Open Example
11880 \lang english
11881 \SpecialChar menuseparator
11882 Presentations\SpecialChar menuseparator
11883 Foils
11884 \change_unchanged
11885
11886 \family default
11887 .
11888 \end_layout
11889
11890 \begin_layout Paragraph
11891 Give It a Title Page
11892 \end_layout
11893
11894 \begin_layout Standard
11895 Unlike other classes that provide 
11896 \family sans
11897 Title
11898 \family default
11899 ,
11900  
11901 \family sans
11902 Author
11903 \family default
11904 ,
11905  
11906 \family sans
11907 Date
11908 \family default
11909  and 
11910 \family sans
11911 Abstract
11912 \family default
11913  environments,
11914  
11915 \family sans
11916 foils
11917 \family default
11918  creates the title on a page of its own.
11919  If you leave out the 
11920 \family sans
11921 Date
11922 \family default
11923  environment \SpecialChar LaTeX
11924  will substitute the current date (every time you regenerate the output).
11925 \end_layout
11926
11927 \begin_layout Paragraph
11928 Start a New Foil
11929 \end_layout
11930
11931 \begin_layout Standard
11932 As I mentioned earlier,
11933  there are four ways of starting a new foil.
11934  For portrait foils you should use 
11935 \family sans
11936 Foilhead
11937 \family default
11938  or 
11939 \family sans
11940 ShortFoilhead.
11941
11942 \family default
11943  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.
11944 \end_layout
11945
11946 \begin_layout Standard
11947 Landscape foils are generated using the 
11948 \family sans
11949 Rotatefoilhead
11950 \family default
11951  and 
11952 \family sans
11953 ShortRotatefoilhead
11954 \family default
11955  environments.
11956  Again the only difference is the spacing between foilhead and body.
11957  Both of the short versions have 0.5
11958 \begin_inset space ~
11959 \end_inset
11960
11961 inches less separation between the foilhead and the body.
11962  
11963 \end_layout
11964
11965 \begin_layout Standard
11966 One problem with the support for landscape foils is the requirement that you have to use the 
11967 \family typewriter
11968 dvips
11969 \family default
11970  driver to generate the PostScript output otherwise the foils won't be rotated.
11971  It is possible to get landscape foils even if you haven't got the 
11972 \family typewriter
11973 dvips
11974 \family default
11975  driver provided you can feed your foils sideways through your printer ;-)
11976 \end_layout
11977
11978 \begin_layout Paragraph
11979 Theorems,
11980  Lemmas,
11981  Proofs and more
11982 \end_layout
11983
11984 \begin_layout Standard
11985 You can't have two of the same type of these environments directly following each other.
11986  If you use a normal paragraph break,
11987  ,
11988  you will just be extending the previous environment as if you had merged the two environments together.
11989  Rather than that,
11990  you need to insert a so-called separator.
11991  Please refer to the section entitled 
11992 \emph on
11993 Separate Nestings
11994 \emph default
11995  in the 
11996 \emph on
11997 User's Guide
11998 \emph default
11999 .
12000 \end_layout
12001
12002 \begin_layout Paragraph
12003 Lists
12004 \end_layout
12005
12006 \begin_layout Standard
12007 You get all the commonly supported list styles found in other classes as well as two new ones.
12008  I'll only describe the new ones here.
12009  If you want to find out more about the other list environments check out the 
12010 \emph on
12011 User's Guide.
12012
12013 \emph default
12014  If you intend to use itemized lists you might also want to read about the 
12015 \family sans
12016 Itemize
12017 \begin_inset space ~
12018 \end_inset
12019
12020 Bullet
12021 \begin_inset space ~
12022 \end_inset
12023
12024 Selection
12025 \family default
12026  dialog described above in section
12027 \begin_inset space ~
12028 \end_inset
12029
12030
12031 \change_inserted 564990737 1671355684
12032
12033 \begin_inset CommandInset ref
12034 LatexCommand ref
12035 reference "chap:bullets"
12036 nolink "false"
12037
12038 \end_inset
12039
12040
12041 \change_deleted 564990737 1671355684
12042
12043 \begin_inset CommandInset ref
12044 LatexCommand ref
12045 reference "sec:bullet"
12046 nolink "false"
12047
12048 \end_inset
12049
12050
12051 \change_unchanged
12052 .
12053 \end_layout
12054
12055 \begin_layout Standard
12056 The two new list styles,
12057  
12058 \family sans
12059 TickList
12060 \family default
12061  and 
12062 \family sans
12063 CrossList
12064 \family default
12065 ,
12066  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.
12067  These lists are in fact dedicated variants of the 
12068 \family sans
12069 Itemize
12070 \family default
12071  environment.
12072  They do however require that you have the 
12073 \family typewriter
12074 psnfss
12075 \family default
12076  packages installed.
12077 \end_layout
12078
12079 \begin_layout Paragraph
12080 Figures and Tables
12081 \end_layout
12082
12083 \begin_layout Standard
12084
12085 \family sans
12086 Foil\SpecialChar TeX
12087
12088 \family default
12089  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.
12090  In fact if you change the float placement settings they are simply ignored.
12091 \end_layout
12092
12093 \begin_layout Paragraph
12094 Page Headers and Footers
12095 \begin_inset CommandInset label
12096 LatexCommand label
12097 name "sec:foilfoot"
12098
12099 \end_inset
12100
12101
12102 \end_layout
12103
12104 \begin_layout Standard
12105
12106 \family sans
12107 My
12108 \begin_inset space ~
12109 \end_inset
12110
12111 Logo
12112 \family default
12113  and 
12114 \family sans
12115 Restriction
12116 \family default
12117  are two commands used to control the left-footer text string.
12118  The first is meant to allow you to include a graphic logo on your foils and defaults to 
12119 \begin_inset Quotes eld
12120 \end_inset
12121
12122 -Typeset by 
12123 \family sans
12124 Foil\SpecialChar TeX
12125
12126 \family default
12127 -
12128 \begin_inset Quotes erd
12129 \end_inset
12130
12131 .
12132  While the second is meant to provide a classification for the audience,
12133  
12134 \emph on
12135 e.
12136 \begin_inset space \thinspace{}
12137 \end_inset
12138
12139 g.
12140 \emph default
12141
12142 \begin_inset space \space{}
12143 \end_inset
12144
12145 Confidential.
12146  It is empty by default.
12147 \end_layout
12148
12149 \begin_layout Standard
12150 The remaining page corners can be filled by 
12151 \family sans
12152 Right
12153 \begin_inset space ~
12154 \end_inset
12155
12156 Footer
12157 \family default
12158  (which defaults to page numbers),
12159  
12160 \family sans
12161 Right
12162 \begin_inset space ~
12163 \end_inset
12164
12165 Header
12166 \family default
12167  (top right) and 
12168 \family sans
12169 Left
12170 \begin_inset space ~
12171 \end_inset
12172
12173 Header
12174 \family default
12175  (top left).
12176 \end_layout
12177
12178 \begin_layout Subsubsection
12179 Unsupported 
12180 \family sans
12181 Foil\SpecialChar TeX
12182
12183 \family default
12184  Goodies
12185 \begin_inset CommandInset label
12186 LatexCommand label
12187 name "sec:unsuppfoils"
12188
12189 \end_inset
12190
12191
12192 \end_layout
12193
12194 \begin_layout Standard
12195 All the commands mentioned below need to be set in a 
12196 \family sans
12197 \SpecialChar LaTeX
12198
12199 \family default
12200  environment or as 
12201 \family sans
12202 \SpecialChar TeX
12203
12204 \family default
12205  within another environment.
12206 \end_layout
12207
12208 \begin_layout Paragraph
12209 Lengths
12210 \end_layout
12211
12212 \begin_layout Standard
12213 All lengths are adjusted using the 
12214 \family typewriter
12215
12216 \backslash
12217 setlength{
12218 \family default
12219 \emph on
12220 lengthname
12221 \family typewriter
12222 \emph default
12223 }{
12224 \family default
12225 \emph on
12226 newlength
12227 \family typewriter
12228 \emph default
12229 }
12230 \family default
12231  command.
12232  Where 
12233 \emph on
12234 lengthname
12235 \emph default
12236  should be replaced by the name given to the length you want to change and 
12237 \emph on
12238 newlength
12239 \emph default
12240  is the length value.
12241  All lengths should be specified in units of length such as inches (
12242 \family typewriter
12243 in
12244 \family default
12245 ),
12246  millimeters (
12247 \family typewriter
12248 mm
12249 \family default
12250 ) or points (
12251 \family typewriter
12252 pt
12253 \family default
12254 ) or relative to some document or font-based length such as 
12255 \family typewriter
12256
12257 \backslash
12258 textwidth
12259 \family default
12260 .
12261  
12262 \end_layout
12263
12264 \begin_layout Standard
12265 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
12266 \family typewriter
12267
12268 \backslash
12269 foilheadskip
12270 \family default
12271 .
12272  For example,
12273  to make 
12274 \emph on
12275 all
12276 \emph default
12277  foilheads 0.5
12278 \begin_inset space \space{}
12279 \end_inset
12280
12281 in closer to their bodies put the following in the preamble:
12282  
12283 \family typewriter
12284
12285 \backslash
12286 setlength{
12287 \backslash
12288 foilheadskip}{-0.5in}
12289 \end_layout
12290
12291 \begin_layout Standard
12292 The spacings around floats can be adjusted by setting these lengths:
12293 \end_layout
12294
12295 \begin_layout Labeling
12296 \labelwidthstring MMMMMMMMMMM
12297
12298 \family typewriter
12299
12300 \backslash
12301 abovefloatskip
12302 \family default
12303  Separation between the text and the top of the float
12304 \end_layout
12305
12306 \begin_layout Labeling
12307 \labelwidthstring MMMMMMMMMMM
12308
12309 \family typewriter
12310
12311 \backslash
12312 abovecaptionskip
12313 \family default
12314  Separation between the float and the caption
12315 \end_layout
12316
12317 \begin_layout Labeling
12318 \labelwidthstring MMMMMMMMMMM
12319
12320 \family typewriter
12321
12322 \backslash
12323 belowcaptionskip
12324 \family default
12325  Separation between the caption and the following text
12326 \end_layout
12327
12328 \begin_layout Labeling
12329 \labelwidthstring MMMMMMMMMMM
12330
12331 \family typewriter
12332
12333 \backslash
12334 captionwidth
12335 \family default
12336  You can make the captions narrower than the surrounding text by adjusting this length.
12337  Best done relative to 
12338 \family typewriter
12339
12340 \backslash
12341 textwidth
12342 \family default
12343 .
12344 \end_layout
12345
12346 \begin_layout Standard
12347 There are also several title page related lengths that you may find useful if you have a long title or several authors:
12348 \end_layout
12349
12350 \begin_layout Labeling
12351 \labelwidthstring MMMMMMMMMMM
12352
12353 \family typewriter
12354
12355 \backslash
12356 abovetitleskip
12357 \family default
12358  Separation from headers to 
12359 \family sans
12360 Title
12361 \end_layout
12362
12363 \begin_layout Labeling
12364 \labelwidthstring MMMMMMMMMMM
12365
12366 \family typewriter
12367
12368 \backslash
12369 titleauthorskip
12370 \family default
12371  between 
12372 \family sans
12373 Title
12374 \family default
12375  and 
12376 \family sans
12377 Author
12378 \family default
12379  environments
12380 \end_layout
12381
12382 \begin_layout Labeling
12383 \labelwidthstring MMMMMMMMMMM
12384
12385 \family typewriter
12386
12387 \backslash
12388 authorauthorskip
12389 \family default
12390  between multiple 
12391 \family sans
12392 Author
12393 \family default
12394  lines
12395 \end_layout
12396
12397 \begin_layout Labeling
12398 \labelwidthstring MMMMMMMMMMM
12399
12400 \family typewriter
12401
12402 \backslash
12403 authordateskip
12404 \family default
12405  between the 
12406 \family sans
12407 Author
12408 \family default
12409  and the 
12410 \family sans
12411 Date
12412 \end_layout
12413
12414 \begin_layout Labeling
12415 \labelwidthstring MMMMMMMMMMM
12416
12417 \family typewriter
12418
12419 \backslash
12420 dateabstractskip
12421 \family default
12422  between the 
12423 \family sans
12424 Date
12425 \family default
12426  and the 
12427 \family sans
12428 Abstract
12429 \end_layout
12430
12431 \begin_layout Standard
12432 The last length related command affects all the list environments.
12433  If you place 
12434 \family typewriter
12435
12436 \backslash
12437 zerolistvertdimens
12438 \family default
12439  
12440 \emph on
12441 inside
12442 \emph default
12443  a list environment then all the vertical spacing between the list items is removed.
12444  Note that this is a command not a length so it doesn't require 
12445 \family typewriter
12446
12447 \backslash
12448 setlength
12449 \family default
12450  like the stuff mentioned above.
12451 \end_layout
12452
12453 \begin_layout Paragraph
12454 Headers and Footers
12455 \end_layout
12456
12457 \begin_layout Standard
12458 The 
12459 \family typewriter
12460
12461 \backslash
12462 LogoOn
12463 \family default
12464  and 
12465 \family typewriter
12466
12467 \backslash
12468 LogoOff
12469 \family default
12470  commands control whether the logo in the 
12471 \family sans
12472 MyLogo
12473 \family default
12474  definition appear on a given page.
12475  If you put 
12476 \family typewriter
12477
12478 \backslash
12479 LogoOff
12480 \family default
12481  in the preamble then none of the foils will have the logo on them.
12482  If you don't want the logo on a particular page place the 
12483 \family typewriter
12484
12485 \backslash
12486 LogoOff
12487 \family default
12488  directly after the foilhead of that page and the 
12489 \family typewriter
12490
12491 \backslash
12492 LogoOn
12493 \family default
12494  directly after the next foilhead.
12495 \end_layout
12496
12497 \begin_layout Standard
12498 If you decide to use the 
12499 \family sans
12500 fancy
12501 \family default
12502  page style setting in the 
12503 \family sans
12504 Document
12505 \begin_inset space ~
12506 \end_inset
12507
12508 Layout
12509 \family default
12510  dialog you should probably add 
12511 \family typewriter
12512
12513 \backslash
12514 let
12515 \backslash
12516 headwidth
12517 \backslash
12518 textwidth
12519 \family default
12520  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
12521  This is due to some clashes between the page layouts provided by the 
12522 \family sans
12523 fancyheadings
12524 \family default
12525  package and the 
12526 \family sans
12527 foils
12528 \family default
12529  class.
12530 \end_layout
12531
12532 \begin_layout Subsection
12533
12534 \change_inserted 564990737 1671459032
12535
12536 \lang american
12537 Powerdot
12538 \end_layout
12539
12540 \begin_layout Standard
12541
12542 \change_inserted 564990737 1671643165
12543
12544 \lang american
12545 The document class 
12546 \family sans
12547 presentation
12548 \begin_inset space \thinspace{}
12549 \end_inset
12550
12551 (powerdot)
12552 \family default
12553  uses the 
12554 \family typewriter
12555 powerdot.cls
12556 \family default
12557  document class for creating presentations.
12558  
12559 \family sans
12560 \lang british
12561 File\SpecialChar menuseparator
12562 Open Example\SpecialChar menuseparator
12563 Presentations\SpecialChar menuseparator
12564 Powerdot
12565 \family default
12566 \lang american
12567  offers guidance on its use.
12568  The documentation is available from 
12569 \begin_inset CommandInset href
12570 LatexCommand href
12571 name "CTAN"
12572 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
12573 literal "false"
12574
12575 \end_inset
12576
12577 .
12578 \end_layout
12579
12580 \begin_layout Subsection
12581
12582 \change_inserted 564990737 1671459032
12583
12584 \lang american
12585 \begin_inset CommandInset label
12586 LatexCommand label
12587 name "subsec:Seminar"
12588
12589 \end_inset
12590
12591
12592 \family sans
12593 Seminar
12594 \end_layout
12595
12596 \begin_layout Standard
12597
12598 \change_inserted 564990737 1671643194
12599
12600 \lang american
12601 The document class 
12602 \family sans
12603 presentations
12604 \begin_inset space \thinspace{}
12605 \end_inset
12606
12607 (seminar)
12608 \family default
12609  uses the 
12610 \family typewriter
12611 seminar.cls
12612 \family default
12613  document class for creating presentations.
12614  
12615 \family sans
12616 \lang british
12617 File\SpecialChar menuseparator
12618 Open Example\SpecialChar menuseparator
12619 Presentations\SpecialChar menuseparator
12620 Seminar
12621 \family default
12622 \lang american
12623  offers guidance on its use.
12624  The documentation is available from 
12625 \begin_inset CommandInset href
12626 LatexCommand href
12627 name "CTAN"
12628 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
12629 literal "false"
12630
12631 \end_inset
12632
12633 .
12634 \end_layout
12635
12636 \begin_layout Subsection
12637 Slides [aka 
12638 \noun on
12639 Sli\SpecialChar TeX
12640
12641 \noun default
12642 ]
12643 \begin_inset CommandInset label
12644 LatexCommand label
12645 name "sec:slitex"
12646
12647 \end_inset
12648
12649
12650 \end_layout
12651
12652 \begin_layout Standard
12653
12654 \change_inserted 564990737 1672743492
12655
12656 \lang american
12657 Original by 
12658 \noun on
12659 John Weiss
12660 \noun default
12661 ;
12662  updated by the \SpecialChar LyX
12663  Team
12664 \end_layout
12665
12666 \begin_layout Subsubsection
12667
12668 \change_inserted 564990737 1672743492
12669
12670 \lang american
12671 Introduction
12672 \end_layout
12673
12674 \begin_layout Standard
12675
12676 \change_inserted 564990737 1672743492
12677
12678 \lang american
12679 This section describes how to use \SpecialChar LyX
12680  to make slides for overhead projectors.
12681  There are two document classes that can do this:
12682  the 
12683 \family typewriter
12684 presentations
12685 \begin_inset space \thinspace{}
12686 \end_inset
12687
12688 (slides)
12689 \family default
12690  document class and the 
12691 \family sans
12692 presentation
12693 \begin_inset space \thinspace{}
12694 \end_inset
12695
12696 (Foil\SpecialChar TeX
12697 )
12698 \family default
12699  document class.
12700  This section documents the former.
12701  If you’re looking for the documentation for 
12702 \family sans
12703 presentation
12704 \begin_inset space \thinspace{}
12705 \end_inset
12706
12707 (Foil\SpecialChar TeX
12708 )
12709 \family default
12710 ,
12711  check out section
12712 \begin_inset space ~
12713 \end_inset
12714
12715
12716 \begin_inset CommandInset ref
12717 LatexCommand ref
12718 reference "sec:Foiltex"
12719 nolink "false"
12720
12721 \end_inset
12722
12723 .
12724  As of 2023 the former has continued to be maintained whereas 
12725 \family sans
12726 Foil\SpecialChar TeX
12727
12728 \family default
12729  has not been maintained since 2008.
12730  
12731 \change_deleted 564990737 1672743492
12732
12733 \lang english
12734 by 
12735 \noun on
12736 John Weiss
12737 \noun default
12738  
12739 \end_layout
12740
12741 \begin_layout Standard
12742
12743 \change_deleted 564990737 1672743492
12744 Introduction
12745 \end_layout
12746
12747 \begin_layout Standard
12748
12749 \change_deleted 564990737 1672743492
12750 This section describes how to use \SpecialChar LyX
12751  to make slides for overhead projectors.
12752  There are two document classes that can do this:
12753  the default slides class and the 
12754 \family sans
12755 Foil\SpecialChar TeX
12756
12757 \family default
12758  slides class.
12759  This section documents the former.
12760 \end_layout
12761
12762 \begin_layout Standard
12763
12764 \change_deleted 564990737 1672743492
12765 I'm going to say this again,
12766  nice and clear,
12767  so that there's no misunderstanding:
12768 \end_layout
12769
12770 \begin_layout Standard
12771
12772 \change_deleted 564990737 1672743492
12773 \begin_inset VSpace bigskip
12774 \end_inset
12775
12776
12777 \end_layout
12778
12779 \begin_layout Standard
12780 \align center
12781
12782 \change_deleted 564990737 1672743492
12783
12784 \size large
12785 This section documents the class 
12786 \begin_inset Quotes eld
12787 \end_inset
12788
12789
12790 \family sans
12791 slides (default)
12792 \family default
12793
12794 \begin_inset Quotes erd
12795 \end_inset
12796
12797  
12798 \emph on
12799 only.
12800 \end_layout
12801
12802 \begin_layout Standard
12803
12804 \change_deleted 564990737 1672743492
12805 \begin_inset VSpace bigskip
12806 \end_inset
12807
12808
12809 \end_layout
12810
12811 \begin_layout Standard
12812
12813 \change_deleted 564990737 1672743492
12814 If you're looking for the documentation for 
12815 \begin_inset Quotes eld
12816 \end_inset
12817
12818
12819 \family sans
12820 slides (Foil\SpecialChar TeX
12821 )
12822 \family default
12823
12824 \begin_inset Quotes erd
12825 \end_inset
12826
12827 ,
12828  check out section
12829 \begin_inset space ~
12830 \end_inset
12831
12832
12833 \begin_inset CommandInset ref
12834 LatexCommand ref
12835 reference "sec:foiltex"
12836 nolink "false"
12837
12838 \end_inset
12839
12840 .
12841  The 
12842 \family sans
12843 foils
12844 \family default
12845  class [
12846 \begin_inset Quotes eld
12847 \end_inset
12848
12849
12850 \family sans
12851 slides (Foil\SpecialChar TeX
12852 )
12853 \family default
12854
12855 \begin_inset Quotes erd
12856 \end_inset
12857
12858 ] is actually somewhat better than the default 
12859 \family sans
12860 slides
12861 \family default
12862  class,
12863 \begin_inset Foot
12864 status collapsed
12865
12866 \begin_layout Plain Layout
12867 \SpecialChar ldots
12868 or so I've been told repeatedly by its advocates.
12869  Having never used it,
12870  I have no idea if this claim is true or not.
12871 \end_layout
12872
12873 \end_inset
12874
12875  which this section documents.
12876 \end_layout
12877
12878 \begin_layout Standard
12879
12880 \change_deleted 564990737 1672743492
12881 This class is the \SpecialChar LaTeX2e
12882  improvement of the old 
12883 \noun on
12884 Sli\SpecialChar TeX
12885
12886 \noun default
12887  package.
12888  Every \SpecialChar LaTeX2e
12889  distribution includes this class [which I'll just refer to as 
12890 \begin_inset Quotes eld
12891 \end_inset
12892
12893
12894 \family sans
12895 slides
12896 \family default
12897
12898 \begin_inset Quotes erd
12899 \end_inset
12900
12901  from now on],
12902  so you're bound to have it.
12903  As I noted earlier,
12904  there are other classes,
12905  such as 
12906 \family sans
12907 foils
12908 \family default
12909 ,
12910  which also produce slides for overhead projectors and do a better job at it.
12911  However,
12912  there are some things which 
12913 \family sans
12914 slides
12915 \family default
12916  can do which the others can't,
12917  such as generate overlays.
12918  Read on to learn more!
12919 \change_unchanged
12920
12921 \end_layout
12922
12923 \begin_layout Subsubsection
12924 Getting Started
12925 \begin_inset CommandInset label
12926 LatexCommand label
12927 name "sec:slidesetup"
12928
12929 \end_inset
12930
12931
12932 \end_layout
12933
12934 \begin_layout Standard
12935 Obviously,
12936  to use this document class,
12937  you need to select 
12938 \begin_inset Quotes eld
12939 \end_inset
12940
12941
12942 \family sans
12943 slides (default)
12944 \family default
12945
12946 \begin_inset Quotes erd
12947 \end_inset
12948
12949  from the class list in the 
12950 \family sans
12951 Document\SpecialChar menuseparator
12952 Settings
12953 \family default
12954  dialog.
12955  There are some other special things you should know about this class:
12956 \end_layout
12957
12958 \begin_layout Itemize
12959 Don't bother changing the options 
12960 \family sans
12961 Sides and Columns
12962 \family default
12963 .
12964  They're not supported by the 
12965 \family sans
12966 slides
12967 \family default
12968  class,
12969  anyways.
12970 \end_layout
12971
12972 \begin_layout Itemize
12973 The option 
12974 \family sans
12975 Page
12976 \begin_inset space ~
12977 \end_inset
12978
12979 style
12980 \family default
12981  behaves a bit differently for this class.
12982  The possible choices and what they do are as follows:
12983 \end_layout
12984
12985 \begin_deeper
12986 \begin_layout Description
12987
12988 \family sans
12989 plain
12990 \family default
12991  The final output contains page numbers in the lower right corner.
12992 \end_layout
12993
12994 \begin_layout Description
12995
12996 \family sans
12997 headings
12998 \family default
12999  Like 
13000 \family sans
13001 plain
13002 \family default
13003 ,
13004  but also prints out any time markers you've put in.
13005  This is the default.
13006 \end_layout
13007
13008 \begin_layout Description
13009
13010 \family sans
13011 empty
13012 \family default
13013  The final output contains no page numbers,
13014  time markers,
13015  or alignment markers.
13016 \end_layout
13017
13018 \end_deeper
13019 \begin_layout Itemize
13020 The 
13021 \family sans
13022 slides
13023 \family default
13024  class has an extra option:
13025  
13026 \family typewriter
13027 clock
13028 \family default
13029 .
13030  To use it,
13031  put 
13032 \begin_inset Quotes eld
13033 \end_inset
13034
13035
13036 \family typewriter
13037 clock
13038 \family default
13039
13040 \begin_inset Quotes erd
13041 \end_inset
13042
13043  in the extra class options.
13044 \end_layout
13045
13046 \begin_deeper
13047 \begin_layout Standard
13048 Using this options allows you to add time markers to 
13049 \family sans
13050 Note
13051 \family default
13052 s.
13053  See section
13054 \begin_inset space ~
13055 \end_inset
13056
13057
13058 \begin_inset CommandInset ref
13059 LatexCommand ref
13060 reference "sec:slideNote"
13061 nolink "false"
13062
13063 \end_inset
13064
13065  for more details.
13066 \end_layout
13067
13068 \end_deeper
13069 \begin_layout Standard
13070 You can also use the template file
13071 \change_deleted 564990737 1671617694
13072  
13073 \begin_inset Quotes eld
13074 \end_inset
13075
13076
13077 \family typewriter
13078 slides.lyx
13079 \family default
13080
13081 \begin_inset Quotes erd
13082 \end_inset
13083
13084
13085 \change_unchanged
13086  to automatically set up a document to use the 
13087 \family sans
13088 slides
13089 \family default
13090  class 
13091 \change_deleted 564990737 1671617699
13092 [
13093 \change_unchanged
13094 using 
13095 \family sans
13096 File\SpecialChar menuseparator
13097 New
13098 \begin_inset space ~
13099 \end_inset
13100
13101 from
13102 \begin_inset space ~
13103 \end_inset
13104
13105 Template
13106 \change_inserted 564990737 1671617723
13107 \SpecialChar menuseparator
13108 Presentations\SpecialChar menuseparator
13109 Slides
13110 \change_unchanged
13111
13112 \family default
13113  to open your new document
13114 \change_deleted 564990737 1671617728
13115 ]
13116 \change_unchanged
13117 .
13118  The template file also contains some examples of the special paragraph environments used by this class.
13119  I'll describe those next.
13120 \end_layout
13121
13122 \begin_layout Subsubsection
13123 Paragraph Environments
13124 \end_layout
13125
13126 \begin_layout Paragraph
13127 Supported Environments
13128 \end_layout
13129
13130 \begin_layout Standard
13131 The first thing you'll notice when you start up a new 
13132 \family sans
13133 slides
13134 \family default
13135  document is the font size and type:
13136  it's the equivalent of the size 
13137 \begin_inset Quotes eld
13138 \end_inset
13139
13140
13141 \family sans
13142 Largest
13143 \family default
13144
13145 \begin_inset Quotes erd
13146 \end_inset
13147
13148  in the 
13149 \family sans
13150 Sans
13151 \begin_inset space ~
13152 \end_inset
13153
13154 Serif
13155 \family default
13156  font.
13157  This is also what's used in the output.
13158  Think of this as a 
13159 \begin_inset Quotes eld
13160 \end_inset
13161
13162 visual cue
13163 \begin_inset Quotes erd
13164 \end_inset
13165
13166  to remind you that this is a slide.
13167  Your final slides will use a larger font;
13168  ergo,
13169  you'll have less space.
13170  Of course,
13171  the larger default screen font isn't WYSIWYG,
13172  only a reminder.
13173 \end_layout
13174
13175 \begin_layout Standard
13176 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
13177  Most of the paragraph environments you're used to seeing are missing.
13178  There are also five new ones.
13179  That's because the 
13180 \family sans
13181 slides
13182 \family default
13183  class itself only supports certain paragraph environments:
13184 \end_layout
13185
13186 \begin_layout Itemize
13187
13188 \family sans
13189 Standard
13190 \end_layout
13191
13192 \begin_layout Itemize
13193
13194 \family sans
13195 Itemize
13196 \end_layout
13197
13198 \begin_layout Itemize
13199
13200 \family sans
13201 Enumerate
13202 \end_layout
13203
13204 \begin_layout Itemize
13205
13206 \family sans
13207 Description
13208 \end_layout
13209
13210 \begin_layout Itemize
13211
13212 \family sans
13213 List
13214 \end_layout
13215
13216 \begin_layout Itemize
13217
13218 \family sans
13219 Quotation
13220 \end_layout
13221
13222 \begin_layout Itemize
13223
13224 \family sans
13225 Quote
13226 \end_layout
13227
13228 \begin_layout Itemize
13229
13230 \family sans
13231 Verse
13232 \end_layout
13233
13234 \begin_layout Itemize
13235
13236 \family sans
13237 Caption
13238 \end_layout
13239
13240 \begin_layout Itemize
13241
13242 \family sans
13243 \SpecialChar LyX
13244 -Code
13245 \end_layout
13246
13247 \begin_layout Standard
13248 All of the other standard environments,
13249  including the section-heading environments,
13250  aren't used in the 
13251 \family sans
13252 slides
13253 \family default
13254  class.
13255 \end_layout
13256
13257 \begin_layout Standard
13258 On the other hand,
13259  you'll notice the following new environments:
13260 \end_layout
13261
13262 \begin_layout Itemize
13263
13264 \family sans
13265 Slide
13266 \end_layout
13267
13268 \begin_layout Itemize
13269
13270 \family sans
13271 Overlay
13272 \end_layout
13273
13274 \begin_layout Itemize
13275
13276 \family sans
13277 Note
13278 \end_layout
13279
13280 \begin_layout Itemize
13281
13282 \family sans
13283 InvisibleText
13284 \end_layout
13285
13286 \begin_layout Itemize
13287
13288 \family sans
13289 VisibleText
13290 \end_layout
13291
13292 \begin_layout Standard
13293 These five are kind of quirky,
13294  due to a 
13295 \begin_inset Quotes eld
13296 \end_inset
13297
13298 feature
13299 \begin_inset Quotes erd
13300 \end_inset
13301
13302  in \SpecialChar LyX
13303 .
13304  You see,
13305  \SpecialChar LyX
13306  doesn't permit you to nest any other paragraph environment into an empty environment.
13307  Now,
13308  that's fine and dandy,
13309  but it means that you wouldn't be able to start a slide with anything except plain text.
13310  To deal with this,
13311  I've performed a little 
13312 \begin_inset Quotes eld
13313 \end_inset
13314
13315 \SpecialChar LaTeX
13316  magic.
13317 \begin_inset Quotes erd
13318 \end_inset
13319
13320  
13321 \end_layout
13322
13323 \begin_layout Paragraph
13324 Quirks of the New Environments
13325 \begin_inset CommandInset label
13326 LatexCommand label
13327 name "sec:slideQuirk"
13328
13329 \end_inset
13330
13331
13332 \end_layout
13333
13334 \begin_layout Standard
13335 All five of the new paragraph environments are somewhat quirky due to inherent limitiations in the current version of \SpecialChar LyX
13336 .
13337  As I just mentioned,
13338  \SpecialChar LyX
13339  forbids environments that begin with another environment.
13340  To get around this,
13341  the 
13342 \family sans
13343 Slide
13344 \family default
13345  environment isn't a paragraph environment as described in the 
13346 \emph on
13347 User's Guide
13348 \emph default
13349 .
13350  
13351 \end_layout
13352
13353 \begin_layout Standard
13354 You should consider 
13355 \family sans
13356 Slide
13357 \family default
13358 ,
13359  
13360 \family sans
13361 Overlay
13362 \family default
13363 ,
13364  and 
13365 \family sans
13366 Note
13367 \family default
13368  to be 
13369 \begin_inset Quotes eld
13370 \end_inset
13371
13372 pseudo-environments.
13373 \begin_inset Quotes erd
13374 \end_inset
13375
13376  They look like a section heading or a 
13377 \begin_inset Quotes eld
13378 \end_inset
13379
13380
13381 \family sans
13382 Caption
13383 \family default
13384 ,
13385 \begin_inset Quotes erd
13386 \end_inset
13387
13388  but really begin a [and,
13389  if necessary,
13390  end the previous] paragraph environment.
13391  Likewise,
13392  treat 
13393 \family sans
13394 InvisibleText
13395 \family default
13396  and 
13397 \family sans
13398 VisibleText
13399 \family default
13400  as 
13401 \begin_inset Quotes eld
13402 \end_inset
13403
13404 pseudo-commands.
13405 \begin_inset Quotes erd
13406 \end_inset
13407
13408  These two perform some action.
13409 \end_layout
13410
13411 \begin_layout Standard
13412 A common feature of all five environments,
13413  
13414 \family sans
13415 Slide
13416 \family default
13417 ,
13418  
13419 \family sans
13420 Overlay
13421 \family default
13422 ,
13423  
13424 \family sans
13425 Note
13426 \family default
13427 ,
13428  
13429 \family sans
13430 InvisibleText
13431 \family default
13432  and 
13433 \family sans
13434 VisibleText
13435 \family default
13436 ,
13437  is a rather long-ish label.
13438  The text following this label —
13439  ordinarily the contents of the paragraph environment —
13440  is utterly irrelevant for 
13441 \family sans
13442 Slide
13443 \family default
13444 ,
13445  
13446 \family sans
13447 Overlay
13448 \family default
13449 ,
13450  
13451 \family sans
13452 Note
13453 \family default
13454 ,
13455  
13456 \family sans
13457 InvisibleText
13458 \family default
13459  and 
13460 \family sans
13461 VisibleText
13462 \family default
13463 .
13464  \SpecialChar LyX
13465  completely ignores it.
13466  In fact,
13467  you can leave these five environments completely empty.
13468  
13469 \end_layout
13470
13471 \begin_layout Standard
13472 While you don't 
13473 \emph on
13474 have
13475 \emph default
13476  to put any text after the rather long-ish label,
13477  you might want to.
13478  This could be a short description of the contents of the 
13479 \family sans
13480 Slide
13481 \family default
13482 ,
13483  for example.
13484  In that case,
13485  enter your descriptive comment and hit 
13486 \family sans
13487 Return
13488 \family default
13489  as you normally would.
13490 \end_layout
13491
13492 \begin_layout Standard
13493 If,
13494  on the other hand,
13495  you don't want to enter any descriptive text,
13496  you'll hit another \SpecialChar LyX
13497  quirk.
13498  \SpecialChar LyX
13499 ,
13500  like nature,
13501  abhors a vacuum,
13502  and will not let you start a new paragraph environment until you put something in the old one.
13503  So,
13504  do this:
13505 \end_layout
13506
13507 \begin_layout Itemize
13508 Start entering the text that will 
13509 \emph on
13510 follow
13511 \emph default
13512  the new 
13513 \family sans
13514 Slide
13515 \family default
13516 ,
13517  
13518 \family sans
13519 Overlay
13520 \family default
13521 ,
13522  
13523 \family sans
13524 Note
13525 \family default
13526 ,
13527  
13528 \family sans
13529 InvisibleText
13530 \family default
13531  or 
13532 \family sans
13533 VisibleText
13534 \family default
13535 .
13536  
13537 \end_layout
13538
13539 \begin_layout Itemize
13540 Now move to the beginning of that paragraph.
13541  
13542 \end_layout
13543
13544 \begin_layout Itemize
13545 Next,
13546  hit 
13547 \family sans
13548 Return
13549 \family default
13550 .
13551  
13552 \end_layout
13553
13554 \begin_layout Itemize
13555 Finally,
13556  change this new,
13557  empty paragraph to a 
13558 \family sans
13559 Slide
13560 \family default
13561 ,
13562  
13563 \family sans
13564 Overlay
13565 \family default
13566 ,
13567  
13568 \family sans
13569 Note
13570 \family default
13571 ,
13572  
13573 \family sans
13574 InvisibleText
13575 \family default
13576  or 
13577 \family sans
13578 VisibleText
13579 \family default
13580 .
13581  
13582 \end_layout
13583
13584 \begin_layout Standard
13585 Some future version of \SpecialChar LyX
13586  will,
13587  hopefully,
13588  resolve this quirkiness\SpecialChar ldots
13589
13590 \end_layout
13591
13592 \begin_layout Subsubsection
13593 Making a Presentation with 
13594 \family sans
13595 Slide
13596 \family default
13597 ,
13598  
13599 \family sans
13600 Overlay
13601 \family default
13602  and 
13603 \family sans
13604 Note
13605 \end_layout
13606
13607 \begin_layout Paragraph
13608 Using the 
13609 \family sans
13610 Slide
13611 \family default
13612  Environment
13613 \end_layout
13614
13615 \begin_layout Standard
13616 If you're expecting this section to teach you how to actually make a presentation,
13617  you'll be sorely disappointed.
13618  Naturally,
13619  I'll describe all of the ways the 
13620 \family sans
13621 slides
13622 \family default
13623  class can assist you in preparing the materials for a presentation.
13624  Filling in the contents,
13625  however,
13626  is up to you.
13627  [Then again,
13628  that 
13629 \emph on
13630 is
13631 \emph default
13632  the \SpecialChar LyX
13633  philosophy.]
13634 \end_layout
13635
13636 \begin_layout Standard
13637 Choosing the 
13638 \family sans
13639 Slide
13640 \family default
13641  environment [in the manner described in section
13642 \begin_inset space ~
13643 \end_inset
13644
13645
13646 \begin_inset CommandInset ref
13647 LatexCommand ref
13648 reference "sec:slideQuirk"
13649 nolink "false"
13650
13651 \end_inset
13652
13653 ] tells \SpecialChar LyX
13654  to begin a new slide [duh].
13655  The label for this environment/
13656 \begin_inset Quotes erd
13657 \end_inset
13658
13659 pseudo-command
13660 \begin_inset Quotes erd
13661 \end_inset
13662
13663  is an 
13664 \begin_inset Quotes eld
13665 \end_inset
13666
13667 ASCII line,
13668 \begin_inset Quotes erd
13669 \end_inset
13670
13671  in cool blue,
13672  followed by the label,
13673  
13674 \begin_inset Quotes eld
13675 \end_inset
13676
13677 NewSlide:
13678 \begin_inset Quotes erd
13679 \end_inset
13680
13681 .
13682  Any text or paragraph environments that follow this one go on the new slide.
13683  It's that simple.
13684 \end_layout
13685
13686 \begin_layout Standard
13687 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
13688  (this can be specified in the 
13689 \family sans
13690 Paragraph Layout
13691 \family default
13692  dialog).
13693  In fact,
13694  you'll want to,
13695  once you finish entering the contents of one slide.
13696  If you've entered more text than can physically fit on a slide,
13697  the extra overflows onto a new slide.
13698  I don't recommend doing this,
13699  however,
13700  since the overflow slide won't have any page number on it.
13701  Furthermore,
13702  it may interfere with any 
13703 \family sans
13704 Overlay
13705 \family default
13706  you've made to accompany the oversized 
13707 \family sans
13708 Slide
13709 \family default
13710 .
13711 \end_layout
13712
13713 \begin_layout Standard
13714 The 
13715 \family sans
13716 Overlay
13717 \family default
13718  and 
13719 \family sans
13720 Note
13721 \family default
13722  environments work the same way as the 
13723 \family sans
13724 Slide
13725 \family default
13726  environment.
13727  They both create an 
13728 \begin_inset Quotes eld
13729 \end_inset
13730
13731 ASCII line
13732 \begin_inset Quotes erd
13733 \end_inset
13734
13735  followed by a label [
13736 \begin_inset Quotes eld
13737 \end_inset
13738
13739 NewOverlay:
13740 \begin_inset Quotes erd
13741 \end_inset
13742
13743  and 
13744 \begin_inset Quotes eld
13745 \end_inset
13746
13747 NewNote:
13748 \begin_inset Quotes erd
13749 \end_inset
13750
13751 ,
13752  respectively].
13753  The color is a stunning magenta instead of blue,
13754  and the 
13755 \begin_inset Quotes eld
13756 \end_inset
13757
13758 ASCII line
13759 \begin_inset Quotes erd
13760 \end_inset
13761
13762  will look different,
13763  in style and in length.
13764  The label fonts of all three also differ from one another.
13765 \end_layout
13766
13767 \begin_layout Standard
13768 As with a 
13769 \family sans
13770 Slide
13771 \family default
13772 ,
13773  if the contents of a 
13774 \family sans
13775 Note
13776 \family default
13777  or 
13778 \family sans
13779 Overlay
13780 \family default
13781  exceed the physical size of a slide or sheet of paper,
13782  the extra will overflow onto a new sheet.
13783  Again,
13784  you should avoid this.
13785  It defeats the whole purpose of 
13786 \family sans
13787 Note
13788 \family default
13789 s and 
13790 \family sans
13791 Overlay
13792 \family default
13793 s.
13794 \end_layout
13795
13796 \begin_layout Paragraph
13797 Using 
13798 \family sans
13799 Overlay
13800 \family default
13801  with 
13802 \family sans
13803 Slide
13804 \end_layout
13805
13806 \begin_layout Standard
13807 The idea behind an 
13808 \family sans
13809 Overlay
13810 \family default
13811  is a slide that sits atop another slide.
13812  Perhaps you wish to discuss a figure on the main 
13813 \family sans
13814 Slide
13815 \family default
13816  before displaying the text associated with it.
13817  One way to accomplish this is tape a flap of dark paper over the part of the 
13818 \family sans
13819 Slide
13820 \family default
13821  you want to display later.
13822  This method fails,
13823  however,
13824  if you wish to overlap one graph with another,
13825  for example.
13826  You would then have to fumble while speaking to align the two separate,
13827  overlapping 
13828 \family sans
13829 Slide
13830 \family default
13831 s to align the two graphs.
13832  The use of an 
13833 \family sans
13834 Overlay
13835 \family default
13836  environment in both cases makes life much easier.
13837 \end_layout
13838
13839 \begin_layout Standard
13840 Each 
13841 \family sans
13842 Overlay
13843 \family default
13844  receives the page number of its 
13845 \begin_inset Quotes eld
13846 \end_inset
13847
13848 parent
13849 \begin_inset Quotes erd
13850 \end_inset
13851
13852  
13853 \family sans
13854 Slide
13855 \family default
13856 ,
13857  appended by 
13858 \begin_inset Quotes eld
13859 \end_inset
13860
13861
13862 \family typewriter
13863 -a
13864 \family default
13865
13866 \begin_inset Quotes erd
13867 \end_inset
13868
13869 .
13870 \begin_inset Foot
13871 status collapsed
13872
13873 \begin_layout Plain Layout
13874 Presumably,
13875  mutliple 
13876 \family sans
13877 Overlay
13878 \family default
13879 s would have 
13880 \begin_inset Quotes eld
13881 \end_inset
13882
13883
13884 \family typewriter
13885 -a
13886 \family default
13887
13888 \begin_inset Quotes erd
13889 \end_inset
13890
13891 ,
13892  
13893 \begin_inset Quotes eld
13894 \end_inset
13895
13896
13897 \family typewriter
13898 -b
13899 \family default
13900
13901 \begin_inset Quotes erd
13902 \end_inset
13903
13904 ,
13905  
13906 \begin_inset Quotes eld
13907 \end_inset
13908
13909
13910 \family typewriter
13911 -c
13912 \family default
13913
13914 \begin_inset Quotes erd
13915 \end_inset
13916
13917 ,
13918  etc.
13919 \begin_inset space ~
13920 \end_inset
13921
13922 appended to the page number of the parent 
13923 \family sans
13924 Slide
13925 \family default
13926 .
13927  
13928 \end_layout
13929
13930 \end_inset
13931
13932  Clearly,
13933  you want the contents of both the 
13934 \family sans
13935 Slide
13936 \family default
13937  and the 
13938 \family sans
13939 Overlay
13940 \family default
13941  to each fit on a single physical slide!
13942  You should probably consider an 
13943 \family sans
13944 Overlay
13945 \family default
13946  as 
13947 \begin_inset Quotes eld
13948 \end_inset
13949
13950 part of
13951 \begin_inset Quotes erd
13952 \end_inset
13953
13954  a 
13955 \family sans
13956 Slide
13957 \family default
13958 .
13959  Indeed,
13960  the \SpecialChar LyX
13961  
13962 \family sans
13963 slides
13964 \family default
13965  class provides a visual cue for this:
13966  the label at the start of an 
13967 \family sans
13968 Overlay
13969 \family default
13970  is shorter than that at the start of a 
13971 \family sans
13972 Slide
13973 \family default
13974 .
13975  Lastly,
13976  when you generate printable output,
13977  you'll find alignment markers in all four corners of both the 
13978 \family sans
13979 Overlay
13980 \family default
13981  page and its parent 
13982 \family sans
13983 Slide
13984 \family default
13985 .
13986  These will assist you in lining up the two physical slides.
13987 \end_layout
13988
13989 \begin_layout Standard
13990 The major problem in overlaying two slides is aligning the contents of the two transparencies.
13991  How much space should you leave for that graph on the second slide?
13992  Worse still,
13993  what if you want a graph and a sentence on second slide,
13994  but there is text on the main transparency that goes in between them?
13995  You could try and insert vertical space of the right size.
13996  The better way is to use 
13997 \family sans
13998 InvisibleText
13999 \family default
14000  and 
14001 \family sans
14002 VisibleText
14003 \family default
14004 .
14005 \end_layout
14006
14007 \begin_layout Standard
14008 As their names imply,
14009  
14010 \family sans
14011 InvisibleText
14012 \family default
14013  and 
14014 \family sans
14015 VisibleText
14016 \family default
14017  are two command-like paragraph environments that make all subsequent text invisible and visible,
14018  respectively.
14019  Note from section
14020 \begin_inset space ~
14021 \end_inset
14022
14023
14024 \begin_inset CommandInset ref
14025 LatexCommand ref
14026 reference "sec:slideQuirk"
14027 nolink "false"
14028
14029 \end_inset
14030
14031  that you don't place anything 
14032 \emph on
14033 into
14034 \emph default
14035  these two environments,
14036  however.
14037  When you create an 
14038 \family sans
14039 InvisibleText
14040 \family default
14041 ,
14042  it inserts a centered,
14043  sky-blue label into the page reading 
14044 \begin_inset Quotes eld
14045 \end_inset
14046
14047 <Invisible Text Follows>
14048 \begin_inset Quotes erd
14049 \end_inset
14050
14051 .
14052  For paragraphs following this label,
14053  the parts of the 
14054 \family sans
14055 Slide
14056 \family default
14057  [or 
14058 \family sans
14059 Overlay
14060 \family default
14061 ;
14062  it doesn't matter which] where they would be contain instead blank space.
14063  
14064 \end_layout
14065
14066 \begin_layout Standard
14067 For 
14068 \family sans
14069 VisibleText
14070 \family default
14071 ,
14072  the corresponding centered label is 
14073 \begin_inset Quotes eld
14074 \end_inset
14075
14076 <Visible Text Follows>
14077 \begin_inset Quotes erd
14078 \end_inset
14079
14080  in blazing green.
14081  Paragraphs following this label behave normally.
14082  Note that the beginning of a new 
14083 \family sans
14084 Slide
14085 \family default
14086 ,
14087  
14088 \family sans
14089 Overlay
14090 \family default
14091 ,
14092  or 
14093 \family sans
14094 Note
14095 \family default
14096  automatically shuts off an 
14097 \family sans
14098 InvisibleText
14099 \family default
14100 .
14101  It's therefore not necessary to use 
14102 \family sans
14103 VisibleText
14104 \family default
14105  at the end of a 
14106 \family sans
14107 Slide
14108 \family default
14109 .
14110 \end_layout
14111
14112 \begin_layout Standard
14113 By now,
14114  it should be obvious how to create overlay transparencies using the proper combination of 
14115 \family sans
14116 InvisibleText
14117 \family default
14118  and 
14119 \family sans
14120 VisibleText
14121 \family default
14122  on a 
14123 \family sans
14124 Slide
14125 \family default
14126  and 
14127 \family sans
14128 Overlay
14129 \family default
14130 :
14131 \end_layout
14132
14133 \begin_layout Enumerate
14134 Create a 
14135 \family sans
14136 Slide
14137 \family default
14138 ,
14139  including everything that will appear on it,
14140  whether on the main slide or on the 
14141 \family sans
14142 Overlay
14143 \family default
14144 .
14145 \end_layout
14146
14147 \begin_layout Enumerate
14148 Before each figure or paragraph that will appear only on the 
14149 \family sans
14150 Overlay
14151 \family default
14152 ,
14153  insert an 
14154 \family sans
14155 InvisibleText
14156 \family default
14157  environment.
14158  If necessary,
14159  insert a 
14160 \family sans
14161 VisibleText
14162 \family default
14163  environment after the 
14164 \family sans
14165 Overlay
14166 \family default
14167 -only text.
14168 \end_layout
14169
14170 \begin_layout Enumerate
14171 Start an 
14172 \family sans
14173 Overlay
14174 \family default
14175  immediately following the 
14176 \family sans
14177 Slide
14178 \family default
14179 .
14180 \end_layout
14181
14182 \begin_layout Enumerate
14183 Copy the contents of this 
14184 \family sans
14185 Slide
14186 \family default
14187  into the 
14188 \family sans
14189 Overlay
14190 \family default
14191 .
14192 \end_layout
14193
14194 \begin_layout Enumerate
14195 Within the 
14196 \family sans
14197 Overlay
14198 \family default
14199 ,
14200  change all of the 
14201 \family sans
14202 InvisibleText
14203 \family default
14204  lines to 
14205 \family sans
14206 VisibleText
14207 \family default
14208  and vice-versa.
14209 \end_layout
14210
14211 \begin_layout Standard
14212 That's it.
14213  You've just made an 
14214 \family sans
14215 Overlay
14216 \family default
14217 .
14218 \end_layout
14219
14220 \begin_layout Standard
14221 There's one problem with the way I've designed the \SpecialChar LyX
14222  
14223 \family sans
14224 slides
14225 \family default
14226  class:
14227  you can't make text in the middle of a paragraph invisible,
14228  nor make text in the middle of an invisible paragraph visible again.
14229  To accomplish this feat,
14230  you'll need to use some inlined \SpecialChar LaTeX
14231  codes.
14232 \begin_inset Foot
14233 status collapsed
14234
14235 \begin_layout Plain Layout
14236 The commands of interest are:
14237  
14238 \end_layout
14239
14240 \begin_layout Itemize
14241
14242 \family typewriter
14243 {
14244 \backslash
14245 invisible \SpecialChar ldots
14246  }
14247 \end_layout
14248
14249 \begin_layout Itemize
14250
14251 \family typewriter
14252 {
14253 \backslash
14254 visible \SpecialChar ldots
14255  }
14256 \end_layout
14257
14258 \begin_layout Plain Layout
14259 \SpecialChar ldots
14260 and need to be marked as \SpecialChar TeX
14261 .
14262  The text whose 
14263 \begin_inset Quotes eld
14264 \end_inset
14265
14266 visibility
14267 \begin_inset Quotes erd
14268 \end_inset
14269
14270  you wish to change goes in between the brackets [and after the 
14271 \family typewriter
14272
14273 \backslash
14274 invisible
14275 \family default
14276  or 
14277 \family typewriter
14278
14279 \backslash
14280 visible
14281 \family default
14282  command].
14283  If you don't know how to mark text as \SpecialChar TeX
14284 ,
14285  see the appropriate section of the 
14286 \emph on
14287 User's Guide
14288 \emph default
14289 .
14290 \end_layout
14291
14292 \end_inset
14293
14294
14295 \end_layout
14296
14297 \begin_layout Paragraph
14298 Using 
14299 \family sans
14300 Note
14301 \family default
14302  with 
14303 \family sans
14304 Slide
14305 \family default
14306
14307 \begin_inset CommandInset label
14308 LatexCommand label
14309 name "sec:slideNote"
14310
14311 \end_inset
14312
14313
14314 \end_layout
14315
14316 \begin_layout Standard
14317 Like an 
14318 \family sans
14319 Overlay
14320 \family default
14321 ,
14322  a 
14323 \family sans
14324 Note
14325 \family default
14326  is associated with a 
14327 \begin_inset Quotes eld
14328 \end_inset
14329
14330 parent
14331 \begin_inset Quotes erd
14332 \end_inset
14333
14334  
14335 \family sans
14336 Slide
14337 \family default
14338 .
14339  Here,
14340  too,
14341  the \SpecialChar LyX
14342  
14343 \family sans
14344 slides
14345 \family default
14346  class provides visual cues.
14347  The label for a 
14348 \family sans
14349 Note
14350 \family default
14351  is shorter than that of a 
14352 \family sans
14353 Slide
14354 \family default
14355  [yet longer than that of an 
14356 \family sans
14357 Overlay
14358 \family default
14359 ] and,
14360  like the label of an 
14361 \family sans
14362 Overlay
14363 \family default
14364  is shockingly magenta.
14365  Additionally,
14366  the printed 
14367 \family sans
14368 Note
14369 \family default
14370  has the page number of its 
14371 \begin_inset Quotes eld
14372 \end_inset
14373
14374 parent
14375 \begin_inset Quotes erd
14376 \end_inset
14377
14378  
14379 \family sans
14380 Slide
14381 \family default
14382 ,
14383  appended by 
14384 \begin_inset Quotes eld
14385 \end_inset
14386
14387
14388 \family typewriter
14389 -
14390 \family default
14391 1
14392 \begin_inset Quotes erd
14393 \end_inset
14394
14395 ,
14396  
14397 \begin_inset Quotes eld
14398 \end_inset
14399
14400
14401 \family typewriter
14402 -
14403 \family default
14404 2
14405 \begin_inset Quotes erd
14406 \end_inset
14407
14408 ,
14409  
14410 \begin_inset Quotes eld
14411 \end_inset
14412
14413
14414 \family typewriter
14415 -
14416 \family default
14417 3
14418 \begin_inset Quotes erd
14419 \end_inset
14420
14421 ,
14422  etc.
14423  You can have multiple 
14424 \family sans
14425 Note
14426 \family default
14427 s associated with a single 
14428 \family sans
14429 Slide
14430 \family default
14431 ,
14432  and,
14433  as with 
14434 \family sans
14435 Slide
14436 \family default
14437  and 
14438 \family sans
14439 Overlay
14440 \family default
14441 ,
14442  you'll probably want to break up long 
14443 \family sans
14444 Note
14445 \family default
14446 s so that they fit on a single sheet of paper.
14447 \end_layout
14448
14449 \begin_layout Standard
14450 The purpose of a 
14451 \family sans
14452 Note
14453 \family default
14454  is obvious:
14455  it contains anything additional you might want to say about a 
14456 \family sans
14457 Slide
14458 \family default
14459 .
14460  It could also be used as a sheet of reminders for a particular 
14461 \family sans
14462 Slide
14463 \family default
14464 .
14465  In the case of the latter,
14466  you might want to make use of time markers.
14467  Currently,
14468  the \SpecialChar LyX
14469  
14470 \family sans
14471 slides
14472 \family default
14473  class has no 
14474 \begin_inset Quotes eld
14475 \end_inset
14476
14477 native
14478 \begin_inset Quotes erd
14479 \end_inset
14480
14481  support for time markers,
14482  a 
14483 \noun on
14484 Sli\SpecialChar TeX
14485
14486 \noun default
14487  feature.
14488  So,
14489  you'll have to resort to using the \SpecialChar LaTeX
14490  codes.
14491 \end_layout
14492
14493 \begin_layout Standard
14494 To use time markers,
14495  you'll need to specify the extra class option 
14496 \begin_inset Quotes eld
14497 \end_inset
14498
14499
14500 \family typewriter
14501 clock
14502 \family default
14503
14504 \begin_inset Quotes erd
14505 \end_inset
14506
14507  [see section
14508 \begin_inset space ~
14509 \end_inset
14510
14511
14512 \begin_inset CommandInset ref
14513 LatexCommand ref
14514 reference "sec:slidesetup"
14515 nolink "false"
14516
14517 \end_inset
14518
14519 ].
14520  This option turns on timing marks,
14521  which will appear in the lower-left-hand corner of every 
14522 \family sans
14523 Note
14524 \family default
14525  you generate.
14526  To set what appears in the time marker,
14527  you use the \SpecialChar LaTeX
14528  commands 
14529 \begin_inset Quotes eld
14530 \end_inset
14531
14532
14533 \family typewriter
14534
14535 \backslash
14536 settime{}
14537 \family default
14538
14539 \begin_inset Quotes erd
14540 \end_inset
14541
14542  and 
14543 \begin_inset Quotes eld
14544 \end_inset
14545
14546
14547 \family typewriter
14548
14549 \backslash
14550 addtime{}
14551 \family default
14552
14553 \begin_inset Quotes erd
14554 \end_inset
14555
14556 .
14557  The arguments of both commands are time measured in seconds.
14558  
14559 \begin_inset Quotes eld
14560 \end_inset
14561
14562
14563 \family typewriter
14564
14565 \backslash
14566 settime{}
14567 \family default
14568
14569 \begin_inset Quotes erd
14570 \end_inset
14571
14572  sets the time marker to a given time.
14573  
14574 \begin_inset Quotes eld
14575 \end_inset
14576
14577
14578 \family typewriter
14579
14580 \backslash
14581 addtime{}
14582 \family default
14583
14584 \begin_inset Quotes erd
14585 \end_inset
14586
14587  increments the time marker by the specified amount.
14588  Using time markers and 
14589 \family sans
14590 Note
14591 \family default
14592 s in this fashion,
14593  you can remind yourself how much time to spend on a particular 
14594 \family sans
14595 Slide
14596 \family default
14597 .
14598 \end_layout
14599
14600 \begin_layout Standard
14601 There's one last feature to describe.
14602  Clearly,
14603  you'd like to print out all of your 
14604 \family sans
14605 Slide
14606 \family default
14607 s and 
14608 \family sans
14609 Overlay
14610 \family default
14611 s on transparencies while printing all of your 
14612 \family sans
14613 Note
14614 \family default
14615 s on plain paper.
14616  However,
14617  a 
14618 \family sans
14619 Note
14620 \family default
14621  
14622 \emph on
14623 must
14624 \emph default
14625  follow the 
14626 \family sans
14627 Slide
14628 \family default
14629  with which it is associated.
14630  What's a person to do?
14631 \end_layout
14632
14633 \begin_layout Standard
14634 Luckily,
14635  there are two \SpecialChar LaTeX
14636  commands that allow you to select what to print out.
14637  Both must be placed into the preamble of your document.
14638  The command 
14639 \begin_inset Quotes eld
14640 \end_inset
14641
14642
14643 \family typewriter
14644
14645 \backslash
14646 onlyslides{
14647 \backslash
14648 slides}
14649 \family default
14650
14651 \begin_inset Quotes erd
14652 \end_inset
14653
14654  will cause the output to contain only the 
14655 \family sans
14656 Slide
14657 \family default
14658 s and 
14659 \family sans
14660 Overlay
14661 \family default
14662 s.
14663  Correspondingly,
14664  the command 
14665 \begin_inset Quotes eld
14666 \end_inset
14667
14668
14669 \family typewriter
14670
14671 \backslash
14672 onlynotes{
14673 \backslash
14674 notes}
14675 \family default
14676
14677 \begin_inset Quotes erd
14678 \end_inset
14679
14680  prevents the output of anything but 
14681 \family sans
14682 Note
14683 \family default
14684 s.
14685  I'd advise placing both commands in the preamble and initially comment both out.
14686  You can then preview your entire presentation as you write.
14687  When you're done writing,
14688  you can then uncomment one of the two to select what you want to print.
14689  I like to uncomment 
14690 \begin_inset Quotes eld
14691 \end_inset
14692
14693
14694 \family typewriter
14695
14696 \backslash
14697 onlyslides{
14698 \backslash
14699 slides}
14700 \family default
14701
14702 \begin_inset Quotes erd
14703 \end_inset
14704
14705  ,
14706  print to a file with 
14707 \begin_inset Quotes eld
14708 \end_inset
14709
14710
14711 \family typewriter
14712 -slides
14713 \family default
14714
14715 \begin_inset Quotes erd
14716 \end_inset
14717
14718  in its name,
14719  comment it back out,
14720  then uncomment 
14721 \begin_inset Quotes eld
14722 \end_inset
14723
14724
14725 \family typewriter
14726
14727 \backslash
14728 onlynotes{
14729 \backslash
14730 notes}
14731 \family default
14732
14733 \begin_inset Quotes erd
14734 \end_inset
14735
14736  and print to a 
14737 \begin_inset Quotes eld
14738 \end_inset
14739
14740
14741 \family typewriter
14742 *-notes.ps
14743 \family default
14744
14745 \begin_inset Quotes erd
14746 \end_inset
14747
14748  file.
14749  I can then send either file to a printer,
14750  loading transparencies or plain paper as appropriate.
14751 \end_layout
14752
14753 \begin_layout Standard
14754 You can also provide other arguments to the 
14755 \begin_inset Quotes eld
14756 \end_inset
14757
14758
14759 \family typewriter
14760
14761 \backslash
14762 onlyslides{}
14763 \family default
14764
14765 \begin_inset Quotes erd
14766 \end_inset
14767
14768  and 
14769 \begin_inset Quotes eld
14770 \end_inset
14771
14772
14773 \family typewriter
14774
14775 \backslash
14776 onlynotes{}
14777 \family default
14778
14779 \begin_inset Quotes erd
14780 \end_inset
14781
14782  commands.
14783  See a good \SpecialChar LaTeX
14784  book for details.
14785 \end_layout
14786
14787 \begin_layout Subsubsection
14788 The 
14789 \family sans
14790 slides
14791 \family default
14792  Class Template File
14793 \end_layout
14794
14795 \begin_layout Standard
14796 I have also provided a template file
14797 \change_deleted 564990737 1671617750
14798 ,
14799  
14800 \begin_inset Quotes eld
14801 \end_inset
14802
14803
14804 \family typewriter
14805 slides.lyx
14806 \family default
14807
14808 \begin_inset Quotes erd
14809 \end_inset
14810
14811 ,
14812
14813 \change_unchanged
14814  with the 
14815 \family sans
14816 slides
14817 \family default
14818  class.
14819  To use it,
14820  begin your new presentation with 
14821 \family sans
14822 File\SpecialChar menuseparator
14823 New
14824 \begin_inset space ~
14825 \end_inset
14826
14827 from
14828 \begin_inset space ~
14829 \end_inset
14830
14831 Template
14832 \change_inserted 564990737 1671616988
14833 \SpecialChar menuseparator
14834 Presentations\SpecialChar menuseparator
14835 Slides
14836 \change_unchanged
14837
14838 \family default
14839 .
14840  Your new \SpecialChar LyX
14841  presentation file will contain an example 
14842 \family sans
14843 Slide
14844 \family default
14845  – 
14846 \family sans
14847 Overlay
14848 \family default
14849  – 
14850 \family sans
14851 Note
14852 \family default
14853  triplet.
14854  The 
14855 \family sans
14856 Slide
14857 \family default
14858  and 
14859 \family sans
14860 Overlay
14861 \family default
14862  additionally contain an example of the use of 
14863 \family sans
14864 InvisibleText
14865 \family default
14866  and 
14867 \family sans
14868 VisibleText
14869 \family default
14870 .
14871  Lastly,
14872  the preamble will contain:
14873 \end_layout
14874
14875 \begin_layout LyX-Code
14876 % Uncomment to print out only slides and overlays
14877 \end_layout
14878
14879 \begin_layout LyX-Code
14880 %
14881 \end_layout
14882
14883 \begin_layout LyX-Code
14884 %
14885 \backslash
14886 onlyslides{
14887 \backslash
14888 slides}
14889 \begin_inset Newline newline
14890 \end_inset
14891
14892  
14893 \end_layout
14894
14895 \begin_layout LyX-Code
14896 % Uncomment to print out only notes
14897 \end_layout
14898
14899 \begin_layout LyX-Code
14900 %
14901 \end_layout
14902
14903 \begin_layout LyX-Code
14904 %
14905 \backslash
14906 onlynotes{
14907 \backslash
14908 notes}
14909 \end_layout
14910
14911 \begin_layout Standard
14912 One final thing:
14913  I created this class to support the \SpecialChar LaTeX2e
14914  
14915 \begin_inset Quotes eld
14916 \end_inset
14917
14918
14919 \noun on
14920 Sli\SpecialChar TeX
14921
14922 \noun default
14923  emulation
14924 \begin_inset Quotes erd
14925 \end_inset
14926
14927  class,
14928  one of the built-in \SpecialChar LaTeX2e
14929  classes.
14930  Neither I nor the rest of the \SpecialChar LyX
14931  Team endorse or oppose the use of this built-in slide class.
14932  It's here if you want it or need it.
14933  There exist other \SpecialChar LaTeX2e
14934  classes for creating presentations,
14935  such as the 
14936 \family sans
14937 Foils
14938 \family default
14939  class [see section
14940 \begin_inset space ~
14941 \end_inset
14942
14943
14944 \begin_inset CommandInset ref
14945 LatexCommand ref
14946 reference "sec:foiltex"
14947 nolink "false"
14948
14949 \end_inset
14950
14951 ] or the 
14952 \begin_inset Quotes eld
14953 \end_inset
14954
14955
14956 \family typewriter
14957 seminar
14958 \family default
14959
14960 \begin_inset Quotes erd
14961 \end_inset
14962
14963  package [present on some \SpecialChar TeX
14964  distributions].
14965  The latter is not yet supported under \SpecialChar LyX
14966 .
14967 \begin_inset Foot
14968 status collapsed
14969
14970 \begin_layout Plain Layout
14971 Perhaps you can take on the task\SpecialChar ldots
14972
14973 \end_layout
14974
14975 \end_inset
14976
14977  I know nothing about these other classes.
14978  Try them out to see what sort of alternative they provide.
14979 \end_layout
14980
14981 \begin_layout Section
14982
14983 \change_inserted 564990737 1670439661
14984 Reports
14985 \end_layout
14986
14987 \begin_layout Subsection
14988
14989 \change_inserted 564990737 1670439661
14990 report
14991 \end_layout
14992
14993 \begin_layout Standard
14994
14995 \change_inserted 564990737 1670439661
14996 The document class 
14997 \family sans
14998 report
14999 \family default
15000  provides the 
15001 \family sans
15002 report.cls
15003 \family default
15004  document class for preparing reports.
15005  Like the 
15006 \family sans
15007 book
15008 \family default
15009  document class,
15010  this provides parts,
15011  chapters and sections but does not provide the paragraph styles needed for a book;
15012  like the 
15013 \family sans
15014 article
15015 \family default
15016  document class,
15017  it provides the abstract paragraph style.
15018  In two-sided mode,
15019  it does not start a new chapter on the right hand page.
15020 \end_layout
15021
15022 \begin_layout Standard
15023
15024 \change_inserted 564990737 1672743528
15025 The remaining 
15026 \family sans
15027 report
15028 \family default
15029  document classes are described in the Collections (section
15030 \begin_inset space ~
15031 \end_inset
15032
15033
15034 \begin_inset CommandInset ref
15035 LatexCommand ref
15036 reference "sec:Collections"
15037 nolink "false"
15038
15039 \end_inset
15040
15041 ).
15042 \end_layout
15043
15044 \begin_layout Standard
15045
15046 \change_inserted 564990737 1672743530
15047
15048 \lang american
15049 For 
15050 \family sans
15051 report
15052 \begin_inset space \thinspace{}
15053 \end_inset
15054
15055 (Japanese in vertical writing)
15056 \family default
15057  and 
15058 \family sans
15059 report
15060 \begin_inset space \thinspace{}
15061 \end_inset
15062
15063 (Japanese)
15064 \family default
15065 ,
15066  see section
15067 \begin_inset space ~
15068 \end_inset
15069
15070
15071 \begin_inset CommandInset ref
15072 LatexCommand ref
15073 reference "subsec:Japanese"
15074 nolink "false"
15075
15076 \end_inset
15077
15078 .
15079 \end_layout
15080
15081 \begin_layout Standard
15082
15083 \change_inserted 564990737 1672743530
15084
15085 \lang american
15086 For 
15087 \family sans
15088 report
15089 \begin_inset space \thinspace{}
15090 \end_inset
15091
15092 (KOMA-Script)
15093 \family default
15094 ,
15095  see section
15096 \begin_inset space ~
15097 \end_inset
15098
15099
15100 \begin_inset CommandInset ref
15101 LatexCommand ref
15102 reference "subsec:KOMA-Script"
15103 nolink "false"
15104
15105 \end_inset
15106
15107 .
15108 \end_layout
15109
15110 \begin_layout Standard
15111
15112 \change_inserted 564990737 1672743530
15113
15114 \lang american
15115 For 
15116 \family sans
15117 report
15118 \begin_inset space \thinspace{}
15119 \end_inset
15120
15121 (with extra font sizes)
15122 \family default
15123 ,
15124  see section
15125 \begin_inset space ~
15126 \end_inset
15127
15128
15129 \begin_inset CommandInset ref
15130 LatexCommand ref
15131 reference "subsec:Extra-font-sizes"
15132 nolink "false"
15133
15134 \end_inset
15135
15136 .
15137 \end_layout
15138
15139 \begin_layout Standard
15140
15141 \change_inserted 564990737 1672743569
15142
15143 \lang american
15144 For 
15145 \family sans
15146 report
15147 \begin_inset space \thinspace{}
15148 \end_inset
15149
15150 (Polish version by M.
15151 \begin_inset space \thinspace{}
15152 \end_inset
15153
15154 W.)
15155 \family default
15156 ,
15157  see section
15158 \begin_inset space ~
15159 \end_inset
15160
15161
15162 \begin_inset CommandInset ref
15163 LatexCommand ref
15164 reference "subsec:Polish-M.W.collection"
15165 plural "false"
15166 caps "false"
15167 noprefix "false"
15168 nolink "false"
15169
15170 \end_inset
15171
15172 .
15173 \end_layout
15174
15175 \begin_layout Section
15176
15177 \change_inserted 564990737 1670439674
15178 Scripts (drama)
15179 \end_layout
15180
15181 \begin_layout Subsection
15182 Broadway
15183 \end_layout
15184
15185 \begin_layout Standard
15186 by 
15187 \shape smallcaps
15188 Garst Reese
15189 \end_layout
15190
15191 \begin_layout Subsubsection
15192 Introduction
15193 \end_layout
15194
15195 \begin_layout Standard
15196 Broadway is for writing plays.
15197  The format is more decorative than Hollywood,
15198  and much less standardized.
15199  This format should be suitable for workshops.
15200 \end_layout
15201
15202 \begin_layout Subsubsection
15203 Special problems
15204 \end_layout
15205
15206 \begin_layout Standard
15207 The same as in Hollywood.
15208 \end_layout
15209
15210 \begin_layout Subsubsection
15211 Special features
15212 \end_layout
15213
15214 \begin_layout Standard
15215 Insert the 
15216 \family sans
15217 Speaker
15218 \family default
15219  names as labels then cross-reference the label to insert the name.
15220  The cross-reference dialog will show the current cast of characters.
15221 \end_layout
15222
15223 \begin_layout Subsubsection
15224 Paper size and Margins
15225 \end_layout
15226
15227 \begin_layout Standard
15228 USLetter,
15229  left 1.6in,
15230  right 0.75in,
15231  top 0.5in,
15232  bottom 0.75in
15233 \end_layout
15234
15235 \begin_layout Subsubsection
15236 Environments
15237 \end_layout
15238
15239 \begin_layout Standard
15240 The following environments are available.
15241  You can use broadway.bind to get the bind keys shown at the right.
15242 \end_layout
15243
15244 \begin_layout Itemize
15245
15246 \family sans
15247 Standard
15248 \begin_inset Newline newline
15249 \end_inset
15250
15251
15252 \family default
15253 You should not have to use this,
15254  but it is here for anything that does not fit otherwise.
15255 \end_layout
15256
15257 \begin_layout Itemize
15258
15259 \family sans
15260 Narrative
15261 \begin_inset space \hfill{}
15262 \end_inset
15263
15264 M-z n
15265 \begin_inset Newline newline
15266 \end_inset
15267
15268
15269 \family default
15270 Used to describe stage setting and the action.
15271  First use of speaker names in all CAPs.
15272 \end_layout
15273
15274 \begin_layout Itemize
15275
15276 \family sans
15277 ACT
15278 \begin_inset space \hfill{}
15279 \end_inset
15280
15281 M-z a
15282 \begin_inset Newline newline
15283 \end_inset
15284
15285
15286 \family default
15287 Automatically numbered.
15288  On screen it will be arabic,
15289  but will print as Roman.
15290 \end_layout
15291
15292 \begin_layout Itemize
15293
15294 \family sans
15295 ACT*
15296 \begin_inset space \hfill{}
15297 \end_inset
15298
15299 M-z S at
15300 \begin_inset Newline newline
15301 \end_inset
15302
15303
15304 \family default
15305 Subtitle for 
15306 \family sans
15307 ACT.
15308
15309 \family default
15310  It is just centered text.
15311 \end_layout
15312
15313 \begin_layout Itemize
15314
15315 \family sans
15316 SCENE
15317 \begin_inset space \hfill{}
15318 \end_inset
15319
15320 M-z S-S
15321 \begin_inset Newline newline
15322 \end_inset
15323
15324
15325 \family default
15326 Not automatically numbered.
15327  You supply the number.
15328  This is because I couldn't figure out how.
15329 \end_layout
15330
15331 \begin_layout Itemize
15332
15333 \family sans
15334 AT_RISE:
15335 \begin_inset space \hfill{}
15336 \end_inset
15337
15338 M-z S-R
15339 \begin_inset Newline newline
15340 \end_inset
15341
15342
15343 \family default
15344 A special case of Narrative to describe the setting and action as the curtain rises.
15345 \end_layout
15346
15347 \begin_layout Itemize
15348
15349 \family sans
15350 Speaker
15351 \begin_inset space \hfill{}
15352 \end_inset
15353
15354 M-z s
15355 \begin_inset Newline newline
15356 \end_inset
15357
15358
15359 \family default
15360 The speaker's (actor's) title,
15361  centered in all CAPS.
15362 \end_layout
15363
15364 \begin_layout Itemize
15365
15366 \family sans
15367 Parenthetical
15368 \begin_inset space \hfill{}
15369 \end_inset
15370
15371 M-z p
15372 \begin_inset Newline newline
15373 \end_inset
15374
15375
15376 \family default
15377 Instructions to the speaker.
15378  The parentheses are automatically inserted.
15379  The ( will appear on screen,
15380  but both will be in the printed play.
15381  This environment is only used within 
15382 \family sans
15383 Dialogue
15384 \family default
15385 .
15386 \end_layout
15387
15388 \begin_layout Itemize
15389
15390 \family sans
15391 Dialogue
15392 \begin_inset space \hfill{}
15393 \end_inset
15394
15395 M-z d
15396 \begin_inset Newline newline
15397 \end_inset
15398
15399
15400 \family default
15401 What the Speaker says.
15402 \end_layout
15403
15404 \begin_layout Itemize
15405
15406 \family sans
15407 CURTAIN
15408 \begin_inset space \hfill{}
15409 \end_inset
15410
15411 M-z S-C
15412 \begin_inset Newline newline
15413 \end_inset
15414
15415
15416 \family default
15417 The curtain comes down.
15418 \end_layout
15419
15420 \begin_layout Itemize
15421
15422 \family sans
15423 Title
15424 \begin_inset space \hfill{}
15425 \end_inset
15426
15427 M-z S-T
15428 \end_layout
15429
15430 \begin_layout Itemize
15431
15432 \family sans
15433 Author
15434 \begin_inset space \hfill{}
15435 \end_inset
15436
15437 M-z S-A
15438 \end_layout
15439
15440 \begin_layout Itemize
15441
15442 \family sans
15443 Right_Address
15444 \begin_inset space \hfill{}
15445 \end_inset
15446
15447 M-z r
15448 \end_layout
15449
15450 \begin_layout Standard
15451 Hello there.
15452 \end_layout
15453
15454 \begin_layout Subsection
15455 Hollywood (Hollywood spec scripts)
15456 \end_layout
15457
15458 \begin_layout Standard
15459 by 
15460 \shape smallcaps
15461 Garst Reese
15462 \end_layout
15463
15464 \begin_layout Subsubsection
15465 Introduction
15466 \end_layout
15467
15468 \begin_layout Standard
15469 Getting the format of a Hollywood script right is a 
15470 \begin_inset Quotes eld
15471 \end_inset
15472
15473 rite of passage.
15474 \begin_inset Quotes erd
15475 \end_inset
15476
15477  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
15478  Each page of a script should be one minute of film.
15479  Nothing goes in a script that you cannot see or hear on screen.
15480  The courier 12 pt font should be used throughout.
15481  No italics.
15482 \end_layout
15483
15484 \begin_layout Subsubsection
15485 Special problems
15486 \end_layout
15487
15488 \begin_layout Standard
15489 Speakers' lines should NEVER break in mid-sentence.
15490  If a speaker's lines continue over a page break,
15491  repeat the 
15492 \family sans
15493 Speaker
15494 \family default
15495  title followed by (Cont'd).
15496 \end_layout
15497
15498 \begin_layout Subsubsection
15499 Special features
15500 \end_layout
15501
15502 \begin_layout Standard
15503 Insert the 
15504 \family sans
15505 Speaker
15506 \family default
15507  names as labels then cross-reference the label to insert the name.
15508  The cross-reference dialog will show the current cast of characters.
15509  You can use this to insert the speaker name in narratives also.
15510 \end_layout
15511
15512 \begin_layout Subsubsection
15513 Paper size and Margins
15514 \end_layout
15515
15516 \begin_layout Standard
15517 USLetter,
15518  left 1.6in,
15519  right 0.75in,
15520  top 0.5in,
15521  bottom 0.75in
15522 \end_layout
15523
15524 \begin_layout Subsubsection
15525 Environments
15526 \end_layout
15527
15528 \begin_layout Standard
15529 The following environments are available.
15530  You can use hollywood.bind to get the bind keys shown at the right.
15531 \end_layout
15532
15533 \begin_layout Itemize
15534
15535 \family sans
15536 Standard
15537 \begin_inset Newline newline
15538 \end_inset
15539
15540
15541 \family default
15542 Used where nothing else works.
15543  Try to avoid it.
15544 \end_layout
15545
15546 \begin_layout Itemize
15547
15548 \family sans
15549 FADE_IN
15550 \family default
15551 :
15552 \begin_inset space \hfill{}
15553 \end_inset
15554
15555
15556 \family sans
15557 M-z S-I
15558 \family default
15559
15560 \begin_inset Newline newline
15561 \end_inset
15562
15563 Usually followed by something like 
15564 \begin_inset Quotes eld
15565 \end_inset
15566
15567 on Sally waking up.
15568 \begin_inset Quotes erd
15569 \end_inset
15570
15571
15572 \end_layout
15573
15574 \begin_layout Itemize
15575
15576 \family sans
15577 INT:
15578 \begin_inset space \hfill{}
15579 \end_inset
15580
15581 M-z i
15582 \begin_inset Newline newline
15583 \end_inset
15584
15585
15586 \family default
15587 Introduces a new INTERIOR camera set-up.
15588  Always followed by DAY or NIGHT,
15589  or something similar to define the lighting required.
15590  Everthing on this line in CAPS.
15591 \end_layout
15592
15593 \begin_layout Itemize
15594
15595 \family sans
15596 EXT:
15597 \begin_inset space \hfill{}
15598 \end_inset
15599
15600 M-z e
15601 \begin_inset Newline newline
15602 \end_inset
15603
15604
15605 \family default
15606 Introduces a new EXTERIOR camera set-up.
15607  Everthing on this line in CAPS.
15608 \end_layout
15609
15610 \begin_layout Itemize
15611
15612 \family sans
15613 Speaker
15614 \begin_inset space \hfill{}
15615 \end_inset
15616
15617 M-z s
15618 \begin_inset Newline newline
15619 \end_inset
15620
15621
15622 \family default
15623 The character speaking.
15624 \end_layout
15625
15626 \begin_layout Itemize
15627
15628 \family sans
15629 Parenthetical
15630 \begin_inset space \hfill{}
15631 \end_inset
15632
15633 M-z p
15634 \begin_inset Newline newline
15635 \end_inset
15636
15637
15638 \family default
15639 Instructions to the speaker.
15640  The () are automatically inserted.
15641 \end_layout
15642
15643 \begin_layout Itemize
15644
15645 \family sans
15646 Dialogue
15647 \begin_inset space \hfill{}
15648 \end_inset
15649
15650 M-z d
15651 \begin_inset Newline newline
15652 \end_inset
15653
15654
15655 \family default
15656 What the 
15657 \family sans
15658 Speaker
15659 \family default
15660  says.
15661 \end_layout
15662
15663 \begin_layout Itemize
15664
15665 \family sans
15666 Transition
15667 \begin_inset space \hfill{}
15668 \end_inset
15669
15670 M-z t
15671 \begin_inset Newline newline
15672 \end_inset
15673
15674
15675 \family default
15676 Camera movement instruction.
15677  e.
15678 \begin_inset space \thinspace{}
15679 \end_inset
15680
15681 g.
15682 \begin_inset space \space{}
15683 \end_inset
15684
15685 CUT TO:
15686 \end_layout
15687
15688 \begin_layout Itemize
15689
15690 \family sans
15691 FADE OUT:
15692 \begin_inset space \hfill{}
15693 \end_inset
15694
15695 M-z S-I
15696 \end_layout
15697
15698 \begin_layout Itemize
15699
15700 \family sans
15701 Author
15702 \begin_inset space \hfill{}
15703 \end_inset
15704
15705 M-z S-A
15706 \end_layout
15707
15708 \begin_layout Itemize
15709
15710 \family sans
15711 Title
15712 \begin_inset space \hfill{}
15713 \end_inset
15714
15715 M-z S-T
15716 \end_layout
15717
15718 \begin_layout Itemize
15719
15720 \family sans
15721 Right_Address
15722 \begin_inset space \hfill{}
15723 \end_inset
15724
15725 M-z r
15726 \end_layout
15727
15728 \begin_layout Subsubsection
15729 Script jargon
15730 \end_layout
15731
15732 \begin_layout Itemize
15733 (O.S) —
15734  off screen
15735 \end_layout
15736
15737 \begin_layout Itemize
15738 (V.0) —
15739  voice over
15740 \end_layout
15741
15742 \begin_layout Itemize
15743 b.
15744 \begin_inset space \thinspace{}
15745 \end_inset
15746
15747 g.
15748  —
15749  background
15750 \end_layout
15751
15752 \begin_layout Itemize
15753 C.U.
15754  —
15755  close-up
15756 \end_layout
15757
15758 \begin_layout Itemize
15759 PAN —
15760  camera movement
15761 \end_layout
15762
15763 \begin_layout Itemize
15764 INSERT —
15765  cut to close-up of
15766 \end_layout
15767
15768 \begin_layout Chapter
15769
15770 \change_inserted 564990737 1671185876
15771 Modules
15772 \end_layout
15773
15774 \begin_layout Section
15775
15776 \change_inserted 564990737 1671716212
15777
15778 \lang american
15779 Academic Field Specifics
15780 \end_layout
15781
15782 \begin_layout Subsection
15783
15784 \change_inserted 564990737 1671716212
15785
15786 \lang american
15787 Chemistry:
15788  Hazard and Precautionary Statements 
15789 \end_layout
15790
15791 \begin_layout Standard
15792
15793 \change_inserted 564990737 1671716212
15794
15795 \lang american
15796 This module provides two insets to typeset numbers and phrases of chemical hazard and precautionary statements.
15797  For a description see 
15798 \family sans
15799 \lang british
15800 File\SpecialChar menuseparator
15801 Open Example\SpecialChar menuseparator
15802 Modules\SpecialChar menuseparator
15803 Hazard and Precautionary Statements
15804 \family default
15805  and 
15806 \family sans
15807 Help\SpecialChar menuseparator
15808 Specific Manuals\SpecialChar menuseparator
15809 Hazard and Precautionary Statements
15810 \family default
15811 \lang american
15812 .
15813 \end_layout
15814
15815 \begin_layout Subsection
15816
15817 \change_inserted 564990737 1671716212
15818
15819 \series bold
15820 \lang american
15821 Chemistry:
15822  Risk and Safety Statements
15823 \end_layout
15824
15825 \begin_layout Standard
15826
15827 \change_inserted 564990737 1671716212
15828
15829 \lang american
15830 This module provides two insets,
15831  
15832 \family sans
15833 R-S number
15834 \family default
15835  and 
15836 \family sans
15837 R-S phrase
15838 \family default
15839 ,
15840  accessible via the menu 
15841 \family sans
15842 \bar under
15843 I
15844 \bar default
15845 nsert\SpecialChar menuseparator
15846 Custom
15847 \begin_inset space ~
15848 \end_inset
15849
15850 Insets
15851 \family default
15852  and an environment to typeset numbers and phrases of chemical risk and safety statements.
15853 \end_layout
15854
15855 \begin_layout Subsection
15856
15857 \change_inserted 564990737 1671716212
15858
15859 \lang american
15860 Linguistics
15861 \end_layout
15862
15863 \begin_layout Standard
15864
15865 \change_inserted 564990737 1671716212
15866
15867 \lang american
15868 This module uses the 
15869 \family sans
15870 covington.sty
15871 \family default
15872  package to add environments useful for linguistics (numbered examples,
15873  glosses,
15874  semantic markup,
15875  tableau floats).
15876  You can obtain information about this module in 
15877 \family sans
15878 \bar under
15879 H
15880 \bar default
15881 elp\SpecialChar menuseparator
15882 S
15883 \bar under
15884 p
15885 \bar default
15886 ecific
15887 \begin_inset space ~
15888 \end_inset
15889
15890 Manuals\SpecialChar menuseparator
15891
15892 \bar under
15893 L
15894 \bar default
15895 inguistics
15896 \family default
15897  and 
15898 \family sans
15899 \lang british
15900 File\SpecialChar menuseparator
15901 Open Example\SpecialChar menuseparator
15902
15903 \lang american
15904 Modules\SpecialChar menuseparator
15905 Linguistics
15906 \family default
15907 .
15908 \end_layout
15909
15910 \begin_layout Section
15911
15912 \change_inserted 564990737 1671788778
15913
15914 \lang american
15915 Accessibility
15916 \end_layout
15917
15918 \begin_layout Subsection
15919
15920 \change_inserted 564990737 1671788778
15921
15922 \lang american
15923 Braille
15924 \end_layout
15925
15926 \begin_layout Standard
15927
15928 \change_inserted 564990737 1671788778
15929
15930 \lang american
15931 This module supports the Braille writing system.
15932  It requires the \SpecialChar LaTeX
15933  package 
15934 \family typewriter
15935 braille.sty
15936 \family default
15937 .
15938  This and its documentation can be obtained from 
15939 \begin_inset CommandInset href
15940 LatexCommand href
15941 name "CTAN"
15942 target "https://www.ctan.org/pkg/braille"
15943 literal "false"
15944
15945 \end_inset
15946
15947 .
15948  You do not have to reconfigure your system after installing it.
15949  See 
15950 \family sans
15951 \bar under
15952 H
15953 \bar default
15954 elp\SpecialChar menuseparator
15955 S
15956 \bar under
15957 p
15958 \bar default
15959 ecific
15960 \begin_inset space ~
15961 \end_inset
15962
15963 Manuals\SpecialChar menuseparator
15964
15965 \bar under
15966 B
15967 \bar default
15968 raille
15969 \family default
15970  and 
15971 \family sans
15972 File\SpecialChar menuseparator
15973 Open Example\SpecialChar menuseparator
15974 Modules\SpecialChar menuseparator
15975 Braille
15976 \family default
15977 .
15978 \end_layout
15979
15980 \begin_layout Section
15981
15982 \change_inserted 564990737 1671788778
15983
15984 \lang american
15985 Annotation & Revision
15986 \end_layout
15987
15988 \begin_layout Subsection
15989
15990 \change_inserted 564990737 1671788778
15991
15992 \lang american
15993 FiXme Notes
15994 \end_layout
15995
15996 \begin_layout Standard
15997
15998 \change_inserted 564990737 1671788778
15999
16000 \lang american
16001 This module provides “FiXme” (marginal) annotations for document revision purposes.
16002  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
16003  The annotations are customizable via the LaTeX preamble.
16004  See the FiXme documentation which can be obtained from 
16005 \begin_inset CommandInset href
16006 LatexCommand href
16007 name "CTAN"
16008 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
16009 literal "false"
16010
16011 \end_inset
16012
16013 .
16014  
16015 \end_layout
16016
16017 \begin_layout Paragraph
16018
16019 \change_inserted 564990737 1671788778
16020
16021 \lang american
16022 Note:
16023 \end_layout
16024
16025 \begin_layout Standard
16026
16027 \change_inserted 564990737 1671788778
16028
16029 \lang american
16030 by default,
16031  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
16032 \family sans
16033 Document\SpecialChar menuseparator
16034 Settings\SpecialChar menuseparator
16035 Document Class\SpecialChar menuseparator
16036 Class Options\SpecialChar menuseparator
16037 Custom
16038 \family default
16039 ).
16040  To display them always,
16041  insert 
16042 \family typewriter
16043
16044 \backslash
16045 fxsetup{draft}
16046 \family default
16047  in 
16048 \family sans
16049 Document\SpecialChar menuseparator
16050 Settings\SpecialChar menuseparator
16051 \SpecialChar LaTeX
16052  Preamble
16053 \family default
16054 .
16055  
16056 \end_layout
16057
16058 \begin_layout Subsection
16059
16060 \change_inserted 564990737 1671788778
16061
16062 \lang american
16063 PDF Comments
16064 \end_layout
16065
16066 \begin_layout Standard
16067
16068 \change_inserted 564990737 1671788778
16069
16070 \lang american
16071 This module provides various kinds of annotations for PDF output.
16072  See 
16073 \family sans
16074 Help\SpecialChar menuseparator
16075 Specific Manuals\SpecialChar menuseparator
16076 PDF comments and File\SpecialChar menuseparator
16077 Open Example\SpecialChar menuseparator
16078 Modules\SpecialChar menuseparator
16079 PDF Comments
16080 \family default
16081 .
16082 \end_layout
16083
16084 \begin_layout Subsection
16085
16086 \change_inserted 564990737 1671788778
16087
16088 \series bold
16089 \lang american
16090 PDF Form
16091 \end_layout
16092
16093 \begin_layout Standard
16094
16095 \change_inserted 564990737 1671788778
16096
16097 \lang american
16098 This module provides fields and buttons for PDF forms.
16099  See the 
16100 \begin_inset CommandInset href
16101 LatexCommand href
16102 name "hyperref documentation"
16103 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
16104 literal "false"
16105
16106 \end_inset
16107
16108 ,
16109  
16110 \family sans
16111 Help\SpecialChar menuseparator
16112 Specific Manuals\SpecialChar menuseparator
16113 PDF forms and File\SpecialChar menuseparator
16114 Open Example\SpecialChar menuseparator
16115 Modules\SpecialChar menuseparator
16116 PDF Form
16117 \family default
16118 .
16119 \end_layout
16120
16121 \begin_layout Subsection
16122
16123 \change_inserted 564990737 1671788778
16124
16125 \series bold
16126 \lang american
16127 Ruby (Furigana)
16128 \end_layout
16129
16130 \begin_layout Standard
16131
16132 \change_inserted 564990737 1671788778
16133
16134 \lang american
16135 This module defines an inset to typeset reading aids (ruby,
16136  furigana) to Chinese characters.
16137  It uses the “okumakro,” “luatexja-ruby” or “ruby” package (depending on the TeX engine) or a fallback definition.
16138  
16139 \end_layout
16140
16141 \begin_layout Subsection
16142
16143 \change_inserted 564990737 1671788778
16144
16145 \series bold
16146 \lang american
16147 TODO notes
16148 \end_layout
16149
16150 \begin_layout Standard
16151
16152 \change_inserted 564990737 1671788778
16153
16154 \lang american
16155 This module provides custom insets to insert TODO items in your document.
16156  In order to generate a “List of TODOs,” the module provides a paragraph style.
16157  Inserting “final” in 
16158 \family sans
16159 Document\SpecialChar menuseparator
16160 Settings\SpecialChar menuseparator
16161 Document Class\SpecialChar menuseparator
16162 Class Options\SpecialChar menuseparator
16163 Custom
16164 \family default
16165 ) suppresses the output of TODO notes.
16166  See the 
16167 \begin_inset CommandInset href
16168 LatexCommand href
16169 name "todonotes documentation"
16170 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
16171 literal "false"
16172
16173 \end_inset
16174
16175 .
16176 \end_layout
16177
16178 \begin_layout Section
16179
16180 \change_inserted 564990737 1671829045
16181
16182 \lang american
16183 Bibliography 
16184 \end_layout
16185
16186 \begin_layout Subsection
16187
16188 \change_inserted 564990737 1671829045
16189
16190 \lang american
16191 APA Style with NatBib
16192 \end_layout
16193
16194 \begin_layout Standard
16195
16196 \change_inserted 564990737 1671829045
16197
16198 \lang american
16199 This module adds support for using natbib together with apacite (the bibliography style need not be apacite —
16200  it could be apacite,
16201  apacitex,
16202  or any bibliography that works with both the natbib and apacite packages.) 
16203 \end_layout
16204
16205 \begin_layout Section
16206
16207 \change_inserted 564990737 1671829045
16208
16209 \lang american
16210 Boxes
16211 \end_layout
16212
16213 \begin_layout Subsection
16214
16215 \change_inserted 564990737 1671829045
16216
16217 \lang american
16218 Fancy Colored Boxes
16219 \end_layout
16220
16221 \begin_layout Standard
16222
16223 \change_inserted 564990737 1671829045
16224
16225 \lang american
16226 This module adds ten custom insets that support colored boxes via the tcolorbox package.
16227  See 
16228 \family sans
16229 Help\SpecialChar menuseparator
16230 Specific Manuals\SpecialChar menuseparator
16231 Colored boxes
16232 \family default
16233 ,
16234  
16235 \family sans
16236 File\SpecialChar menuseparator
16237 Open Example\SpecialChar menuseparator
16238 Modules\SpecialChar menuseparator
16239 Fancy Color Boxes
16240 \family default
16241  the 
16242 \begin_inset CommandInset href
16243 LatexCommand href
16244 name "tcolorbox documentation"
16245 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
16246 literal "false"
16247
16248 \end_inset
16249
16250  for details.
16251  
16252 \end_layout
16253
16254 \begin_layout Subsection
16255
16256 \change_inserted 564990737 1671829045
16257
16258 \lang american
16259 Graphic boxes
16260 \end_layout
16261
16262 \begin_layout Standard
16263
16264 \change_inserted 564990737 1671829045
16265
16266 \lang american
16267 This provides the custom insets 
16268 \family sans
16269 Reflectbox
16270 \family default
16271 ,
16272  
16273 \family sans
16274 Resizebox
16275 \family default
16276 ,
16277  
16278 \family sans
16279 Rotatebox
16280 \family default
16281  and 
16282 \family sans
16283 Scalebox
16284 \family default
16285  to scale and rotate its content.
16286 \end_layout
16287
16288 \begin_layout Standard
16289
16290 \change_inserted 564990737 1671829045
16291
16292 \family sans
16293 \lang american
16294 Reflectbox
16295 \family default
16296  is a simple way of reversing text without any other enhancement:
16297 \end_layout
16298
16299 \begin_layout Standard
16300
16301 \change_inserted 564990737 1671829045
16302
16303 \lang american
16304 \begin_inset Flex Reflectbox
16305 status open
16306
16307 \begin_layout Plain Layout
16308
16309 \change_inserted 564990737 1671829045
16310
16311 \lang american
16312 Great Western Railway
16313 \change_unchanged
16314
16315 \end_layout
16316
16317 \end_inset
16318
16319
16320 \end_layout
16321
16322 \begin_layout Standard
16323
16324 \change_inserted 564990737 1671829045
16325
16326 \lang american
16327 (You will need to use Ctrl-R to see any of these examples.)
16328 \end_layout
16329
16330 \begin_layout Standard
16331
16332 \change_inserted 564990737 1671829045
16333
16334 \family sans
16335 \lang american
16336 Resizebox
16337 \family default
16338  allows you to specify the dimensions of the text or image;
16339  permissible units are em,
16340  ex,
16341  in,
16342  pt,
16343  pc,
16344  cm,
16345  mm,
16346  dd,
16347  cc,
16348  nd,
16349  nc,
16350  bp,
16351  or sp;
16352  if you enter 
16353 \family typewriter
16354 !
16355
16356 \family default
16357  for 
16358 \family typewriter
16359 Height
16360 \family default
16361  it scales by the width factor:
16362 \end_layout
16363
16364 \begin_layout Standard
16365
16366 \change_inserted 564990737 1671829045
16367
16368 \lang american
16369 \begin_inset Flex Resizebox
16370 status open
16371
16372 \begin_layout Plain Layout
16373
16374 \change_inserted 564990737 1671829045
16375
16376 \lang american
16377 \begin_inset Argument 1
16378 status open
16379
16380 \begin_layout Plain Layout
16381
16382 \change_inserted 564990737 1671829045
16383
16384 \lang american
16385 48mm
16386 \change_unchanged
16387
16388 \end_layout
16389
16390 \end_inset
16391
16392
16393 \begin_inset Argument 2
16394 status open
16395
16396 \begin_layout Plain Layout
16397
16398 \change_inserted 564990737 1671829045
16399
16400 \lang american
16401 !
16402 \change_unchanged
16403
16404 \end_layout
16405
16406 \end_inset
16407
16408 Great Western Railway
16409 \change_unchanged
16410
16411 \end_layout
16412
16413 \end_inset
16414
16415
16416 \end_layout
16417
16418 \begin_layout Standard
16419
16420 \change_inserted 564990737 1671829045
16421
16422 \family sans
16423 \lang american
16424 Rotatebox
16425 \family default
16426  allows you to rotate text around the reference point of the box.
16427  If you wish to rotate the box around a different origin,
16428  place the cursor inside the box and select Insert\SpecialChar menuseparator
16429 Origin;
16430  o
16431 \family typewriter
16432 rigin
16433 \family default
16434  is specified as 
16435 \family typewriter
16436 c
16437 \family default
16438 ,
16439
16440 \family typewriter
16441  l
16442 \family default
16443 ,
16444
16445 \family typewriter
16446  r
16447 \family default
16448 ,
16449
16450 \family typewriter
16451  b
16452 \family default
16453 ,
16454
16455 \family typewriter
16456  t
16457 \family default
16458  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
16459  For example:
16460 \end_layout
16461
16462 \begin_layout Standard
16463
16464 \change_inserted 564990737 1671829045
16465
16466 \lang american
16467 \begin_inset Flex Rotatebox
16468 status open
16469
16470 \begin_layout Plain Layout
16471
16472 \change_inserted 564990737 1671829045
16473
16474 \lang american
16475 \begin_inset Argument 1
16476 status open
16477
16478 \begin_layout Plain Layout
16479
16480 \change_inserted 564990737 1671829045
16481
16482 \lang british
16483 =c
16484 \change_unchanged
16485
16486 \end_layout
16487
16488 \end_inset
16489
16490
16491 \begin_inset Argument 2
16492 status open
16493
16494 \begin_layout Plain Layout
16495
16496 \change_inserted 564990737 1671829045
16497
16498 \lang british
16499 30
16500 \change_unchanged
16501
16502 \end_layout
16503
16504 \end_inset
16505
16506 Great Western Railway
16507 \change_unchanged
16508
16509 \end_layout
16510
16511 \end_inset
16512
16513
16514 \end_layout
16515
16516 \begin_layout Standard
16517
16518 \change_inserted 564990737 1671829045
16519
16520 \lang american
16521 You can combine boxes as in:
16522 \end_layout
16523
16524 \begin_layout Standard
16525
16526 \change_inserted 564990737 1671829045
16527
16528 \lang british
16529 \begin_inset Flex Rotatebox
16530 status open
16531
16532 \begin_layout Plain Layout
16533
16534 \change_inserted 564990737 1671829045
16535
16536 \lang british
16537 \begin_inset Argument 1
16538 status open
16539
16540 \begin_layout Plain Layout
16541
16542 \change_inserted 564990737 1671829045
16543
16544 \lang british
16545 =c
16546 \change_unchanged
16547
16548 \end_layout
16549
16550 \end_inset
16551
16552
16553 \begin_inset Argument 2
16554 status open
16555
16556 \begin_layout Plain Layout
16557
16558 \change_inserted 564990737 1671829045
16559
16560 \lang british
16561 -15
16562 \change_unchanged
16563
16564 \end_layout
16565
16566 \end_inset
16567
16568
16569 \begin_inset Flex Resizebox
16570 status open
16571
16572 \begin_layout Plain Layout
16573
16574 \change_inserted 564990737 1671829045
16575
16576 \lang british
16577 \begin_inset Argument 1
16578 status open
16579
16580 \begin_layout Plain Layout
16581
16582 \change_inserted 564990737 1671829045
16583
16584 \lang british
16585 48mm
16586 \change_unchanged
16587
16588 \end_layout
16589
16590 \end_inset
16591
16592
16593 \begin_inset Argument 2
16594 status open
16595
16596 \begin_layout Plain Layout
16597
16598 \change_inserted 564990737 1671829045
16599
16600 \lang british
16601 !
16602 \change_unchanged
16603
16604 \end_layout
16605
16606 \end_inset
16607
16608
16609 \begin_inset Flex Reflectbox
16610 status open
16611
16612 \begin_layout Plain Layout
16613
16614 \change_inserted 564990737 1671829045
16615
16616 \lang british
16617 Great Western Railway
16618 \change_unchanged
16619
16620 \end_layout
16621
16622 \end_inset
16623
16624
16625 \change_unchanged
16626
16627 \end_layout
16628
16629 \end_inset
16630
16631
16632 \change_unchanged
16633
16634 \end_layout
16635
16636 \end_inset
16637
16638
16639 \end_layout
16640
16641 \begin_layout Standard
16642
16643 \change_inserted 564990737 1671829045
16644
16645 \family sans
16646 \lang american
16647 Scalebox
16648 \family default
16649  scales text;
16650  select Insert\SpecialChar menuseparator
16651 V-Factor to add a vertical factor.
16652  If the vertical factor is omitted,
16653  the horizontal is used.
16654  Adding different horizontal and vertical values creates distortion as in 
16655 \end_layout
16656
16657 \begin_layout Standard
16658
16659 \change_inserted 564990737 1671829045
16660
16661 \family typewriter
16662 \lang american
16663 \begin_inset Flex Scalebox
16664 status open
16665
16666 \begin_layout Plain Layout
16667
16668 \change_inserted 564990737 1671829045
16669
16670 \lang american
16671 \begin_inset Argument 1
16672 status open
16673
16674 \begin_layout Plain Layout
16675
16676 \change_inserted 564990737 1671829045
16677
16678 \lang american
16679 2
16680 \change_unchanged
16681
16682 \end_layout
16683
16684 \end_inset
16685
16686
16687 \begin_inset Argument 2
16688 status open
16689
16690 \begin_layout Plain Layout
16691
16692 \change_inserted 564990737 1671829045
16693
16694 \lang american
16695 1.5
16696 \change_unchanged
16697
16698 \end_layout
16699
16700 \end_inset
16701
16702
16703 \family roman
16704 Great Western Railway
16705 \change_unchanged
16706
16707 \end_layout
16708
16709 \end_inset
16710
16711 .
16712 \end_layout
16713
16714 \begin_layout Standard
16715
16716 \change_inserted 564990737 1671829045
16717
16718 \lang american
16719 A negative horizontal value reverses the text and a negative vertical value inverts it so that you get 
16720 \end_layout
16721
16722 \begin_layout Standard
16723
16724 \change_inserted 564990737 1671829045
16725
16726 \lang american
16727 \begin_inset Flex Scalebox
16728 status open
16729
16730 \begin_layout Plain Layout
16731
16732 \change_inserted 564990737 1671829045
16733
16734 \lang american
16735 \begin_inset Argument 1
16736 status open
16737
16738 \begin_layout Plain Layout
16739
16740 \change_inserted 564990737 1671829045
16741
16742 \lang british
16743 -1
16744 \change_unchanged
16745
16746 \end_layout
16747
16748 \end_inset
16749
16750
16751 \begin_inset Argument 2
16752 status open
16753
16754 \begin_layout Plain Layout
16755
16756 \change_inserted 564990737 1671829045
16757
16758 \lang british
16759 1
16760 \change_unchanged
16761
16762 \end_layout
16763
16764 \end_inset
16765
16766 Great Western Railway
16767 \change_unchanged
16768
16769 \end_layout
16770
16771 \end_inset
16772
16773  and 
16774 \begin_inset Flex Scalebox
16775 status open
16776
16777 \begin_layout Plain Layout
16778
16779 \change_inserted 564990737 1671829045
16780
16781 \lang american
16782 \begin_inset Argument 1
16783 status open
16784
16785 \begin_layout Plain Layout
16786
16787 \change_inserted 564990737 1671829045
16788
16789 \lang british
16790 1
16791 \change_unchanged
16792
16793 \end_layout
16794
16795 \end_inset
16796
16797
16798 \begin_inset Argument 2
16799 status open
16800
16801 \begin_layout Plain Layout
16802
16803 \change_inserted 564990737 1671829045
16804
16805 \lang british
16806 -1
16807 \change_unchanged
16808
16809 \end_layout
16810
16811 \end_inset
16812
16813 Great Western Railway
16814 \change_unchanged
16815
16816 \end_layout
16817
16818 \end_inset
16819
16820 .
16821 \end_layout
16822
16823 \begin_layout Subsection
16824
16825 \change_inserted 564990737 1671884699
16826
16827 \lang american
16828 Section Boxes
16829 \end_layout
16830
16831 \begin_layout Standard
16832
16833 \change_inserted 564990737 1671884699
16834
16835 \lang american
16836 This module defines Boxes with section header.
16837  It is mainly intended for the SciPoster Document class.
16838  
16839 \end_layout
16840
16841 \begin_layout Subsection
16842
16843 \change_inserted 564990737 1671884699
16844
16845 \lang american
16846 Variable-width Minipages
16847 \end_layout
16848
16849 \begin_layout Standard
16850
16851 \change_inserted 564990737 1671884699
16852
16853 \lang american
16854 This module adds a 
16855 \family sans
16856 Minipage (Var.
16857 \begin_inset space \thinspace{}
16858 \end_inset
16859
16860 Width)
16861 \family default
16862  inset to 
16863 \family sans
16864 Insert\SpecialChar menuseparator
16865 Custom Inset
16866 \family default
16867  using the 
16868 \family sans
16869 varwidth
16870 \family default
16871  LaTeX package.
16872  The 
16873 \family sans
16874 varwidth
16875 \family default
16876  package provides a variable-width minipage,
16877  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
16878  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
16879 \family sans
16880 Insert\SpecialChar menuseparator
16881 Vert.
16882 \begin_inset space \thinspace{}
16883 \end_inset
16884
16885 Adjustment
16886 \family default
16887  (
16888 \family typewriter
16889 c|t|b
16890 \family default
16891 ) or 
16892 \family sans
16893 Insert\SpecialChar menuseparator
16894 Max.
16895 \begin_inset space \thinspace{}
16896 \end_inset
16897
16898 Width
16899 \family default
16900  (defaults to 
16901 \family typewriter
16902
16903 \backslash
16904 linewidth
16905 \family default
16906 ).
16907  See 
16908 \family sans
16909 File\SpecialChar menuseparator
16910 Open Example\SpecialChar menuseparator
16911 Variable-width Minipages
16912 \family default
16913 .
16914  
16915 \end_layout
16916
16917 \begin_layout Section
16918
16919 \change_inserted 564990737 1671884699
16920
16921 \lang american
16922 Fixes & Hacks
16923 \end_layout
16924
16925 \begin_layout Subsection
16926
16927 \change_inserted 564990737 1671884699
16928
16929 \lang american
16930 Fix Computer Modern Fonts
16931 \end_layout
16932
16933 \begin_layout Standard
16934
16935 \change_inserted 564990737 1671884699
16936
16937 \lang american
16938 This module uses the 
16939 \family sans
16940 fix-cm
16941 \family default
16942  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
16943  See the 
16944 \begin_inset CommandInset href
16945 LatexCommand href
16946 name "fix-cm documentation"
16947 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
16948 literal "false"
16949
16950 \end_inset
16951
16952 .
16953  
16954 \end_layout
16955
16956 \begin_layout Subsection
16957
16958 \change_inserted 564990737 1671884699
16959
16960 \lang american
16961 \SpecialChar LaTeX
16962  Kernel Fixes (Obsolete)
16963 \end_layout
16964
16965 \begin_layout Standard
16966
16967 \change_inserted 564990737 1671884699
16968
16969 \lang american
16970 This module loads the \SpecialChar LaTeX
16971  package 
16972 \family sans
16973 fixltx2e
16974 \family default
16975  which contains some bug fixes for \SpecialChar LaTeX
16976 .
16977  If you use this module your typeset document may look different when you process it,
16978  depending on the respective version of 
16979 \family sans
16980 fixltx2e
16981 \family default
16982 .
16983  
16984 \end_layout
16985
16986 \begin_layout Paragraph
16987
16988 \change_inserted 564990737 1671884699
16989
16990 \lang american
16991 Note:
16992 \end_layout
16993
16994 \begin_layout Standard
16995
16996 \change_inserted 564990737 1671884699
16997
16998 \lang american
16999 recent \SpecialChar LaTeX
17000  kernels (as of 2015/01/01) include the functionality of 
17001 \family sans
17002 fixltx2e
17003 \family default
17004 ,
17005  so the 
17006 \family sans
17007 fixltx2e
17008 \family default
17009  module is obsolete with newer \SpecialChar LaTeX
17010  distributions.
17011  
17012 \end_layout
17013
17014 \begin_layout Subsection
17015
17016 \change_inserted 564990737 1671884699
17017
17018 \lang american
17019 Minimalistic Insets
17020 \end_layout
17021
17022 \begin_layout Standard
17023
17024 \change_inserted 564990737 1671884699
17025
17026 \lang american
17027 This module redefines several insets (Index,
17028  Branch,
17029  URL) as being Minimalistic.
17030 \end_layout
17031
17032 \begin_layout Subsection
17033
17034 \change_inserted 564990737 1671884699
17035
17036 \lang american
17037 Title and Preamble Hacks
17038 \end_layout
17039
17040 \begin_layout Standard
17041
17042 \change_inserted 564990737 1671884699
17043
17044 \lang american
17045 This module provides two new paragraph styles:
17046  
17047 \end_layout
17048
17049 \begin_layout Enumerate
17050
17051 \change_inserted 564990737 1671884699
17052
17053 \family sans
17054 \lang american
17055 In Preamble
17056 \family default
17057  which puts whatever is entered into it into the preamble.
17058  This can be used,
17059  if one wishes,
17060  to include preamble code in the body of a LyX document.
17061  
17062 \end_layout
17063
17064 \begin_layout Enumerate
17065
17066 \change_inserted 564990737 1671884699
17067
17068 \family sans
17069 \lang american
17070 In Title
17071 \family default
17072  which that will put its contents into the body of the LaTeX document,
17073  but before 
17074 \family typewriter
17075
17076 \backslash
17077 maketitle
17078 \family default
17079  is issued.
17080  This is useful for making branches and notes in title-related material.
17081  (However,
17082  if you put these in a Standard layout,
17083  this signals to LyX to output 
17084 \family typewriter
17085
17086 \backslash
17087 maketitle
17088 \family default
17089 ,
17090  which may then come too early.)
17091 \end_layout
17092
17093 \begin_layout Section
17094
17095 \change_inserted 564990737 1672081439
17096
17097 \lang american
17098 Floats & captions
17099 \end_layout
17100
17101 \begin_layout Subsection
17102
17103 \change_inserted 564990737 1672081439
17104
17105 \lang american
17106 Algorithm2e Float
17107 \end_layout
17108
17109 \begin_layout Standard
17110
17111 \change_inserted 564990737 1672081439
17112
17113 \lang american
17114 This module uses the 
17115 \family sans
17116 algorithm2e
17117 \family default
17118  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
17119  Use the Algorithm paragraph style to enter and indent the algorithm.
17120  See the 
17121 \begin_inset CommandInset href
17122 LatexCommand href
17123 name "algorithm2e documentation"
17124 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
17125 literal "false"
17126
17127 \end_inset
17128
17129 .
17130 \end_layout
17131
17132 \begin_layout Subsection
17133
17134 \change_inserted 564990737 1672081439
17135
17136 \lang american
17137 Bilingual Captions AKA Multilingual Captions
17138 \end_layout
17139
17140 \begin_layout Standard
17141
17142 \change_inserted 564990737 1672081439
17143
17144 \lang american
17145 This module provides the paragraph style 
17146 \family sans
17147 Caption
17148 \begin_inset space ~
17149 \end_inset
17150
17151 setup
17152 \family default
17153  with which to typeset multilingual captions.
17154  Within this paragraph style 
17155 \family sans
17156 Insert\SpecialChar menuseparator
17157 Language
17158 \family default
17159  allows you to enter the desired language using one of the babel names.
17160  See 
17161 \family sans
17162 File\SpecialChar menuseparator
17163 Open Example\SpecialChar menuseparator
17164 Multilingual Captions
17165 \family default
17166  and 
17167 \family sans
17168 Help\SpecialChar menuseparator
17169 Specific Manuals\SpecialChar menuseparator
17170 Multilingual Captions
17171 \family default
17172  further information on its use.
17173 \end_layout
17174
17175 \begin_layout Subsection
17176
17177 \change_inserted 564990737 1672081439
17178
17179 \lang american
17180 Number Figures by Section
17181 \end_layout
17182
17183 \begin_layout Standard
17184
17185 \change_inserted 564990737 1672081439
17186
17187 \lang american
17188 This module resets the figure number at section start and prepends the section number to the figure number,
17189  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
17190 \end_layout
17191
17192 \begin_layout Subsection
17193
17194 \change_inserted 564990737 1672081439
17195
17196 \lang american
17197 Number Tables by Section
17198 \end_layout
17199
17200 \begin_layout Standard
17201
17202 \change_inserted 564990737 1672081439
17203
17204 \lang american
17205 This module resets the table number at section start and prepends the section number to the table number,
17206  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
17207 \end_layout
17208
17209 \begin_layout Section
17210
17211 \change_inserted 564990737 1672081439
17212
17213 \lang american
17214 Foot- and Endnotes
17215 \end_layout
17216
17217 \begin_layout Subsection
17218
17219 \change_inserted 564990737 1672081439
17220
17221 \lang american
17222 Endnotes (Basic)
17223 \end_layout
17224
17225 \begin_layout Standard
17226
17227 \change_inserted 564990737 1672081439
17228
17229 \lang american
17230 This module adds an endnote inset,
17231  in addition to footnotes.
17232  This uses the 
17233 \family sans
17234 endnotes
17235 \family default
17236  package,
17237  which has some limitations but works with older LaTeX distributions as well.
17238  Use 
17239 \family sans
17240 Insert\SpecialChar menuseparator
17241 Custom Inset\SpecialChar menuseparator
17242 Endnote
17243 \family default
17244  to insert an endnote and 
17245 \family sans
17246 Insert\SpecialChar menuseparator
17247 List/Contents/References\SpecialChar menuseparator
17248 Endnotes
17249 \family default
17250  to insert the endnotes list where you want the endnotes to appear.
17251  See also 
17252 \family sans
17253 Help\SpecialChar menuseparator
17254 Embedded\SpecialChar menuseparator
17255  Objects\SpecialChar menuseparator
17256 Notes\SpecialChar menuseparator
17257 Footnotes
17258 \family default
17259 .
17260 \end_layout
17261
17262 \begin_layout Subsection
17263
17264 \change_inserted 564990737 1672081439
17265
17266 \lang american
17267 Endnotes (Extended)
17268 \end_layout
17269
17270 \begin_layout Standard
17271
17272 \change_inserted 564990737 1672081439
17273
17274 \lang american
17275 This module adds an endnote inset,
17276  in addition to footnotes.
17277  This uses the 
17278 \family sans
17279 enotez
17280 \family default
17281  package which is more powerful and customizable than the 
17282 \family sans
17283 endnotes
17284 \family default
17285  package,
17286  but requires a fairly modern LaTeX distribution (with LaTeX3).
17287  Use 
17288 \family sans
17289 Insert\SpecialChar menuseparator
17290 Custom Inset\SpecialChar menuseparator
17291 Endnote
17292 \family default
17293  to insert an endnote and 
17294 \family sans
17295 Insert\SpecialChar menuseparator
17296 List/Contents/References\SpecialChar menuseparator
17297 Endnotes
17298 \family default
17299  to insert the endnotes list where you want the endnotes to appear.
17300  See also 
17301 \family sans
17302 Help\SpecialChar menuseparator
17303 Embedded\SpecialChar menuseparator
17304  Objects\SpecialChar menuseparator
17305 Notes\SpecialChar menuseparator
17306 Footnotes
17307 \family default
17308 .
17309 \end_layout
17310
17311 \begin_layout Subsection
17312
17313 \change_inserted 564990737 1672081439
17314
17315 \lang american
17316 Footnotes as Endnotes (Basic)
17317 \end_layout
17318
17319 \begin_layout Standard
17320
17321 \change_inserted 564990737 1672081439
17322
17323 \lang american
17324 This module sets all footnotes as endnotes.
17325  This uses the 
17326 \family sans
17327 endnotes
17328 \family default
17329  package,
17330  which has some limitations but works with older LaTeX distributions as well.
17331  Use 
17332 \family sans
17333 Insert\SpecialChar menuseparator
17334 List/Contents/References\SpecialChar menuseparator
17335 Endnotes
17336 \family default
17337  to insert the endnotes list where you want the endnotes to appear.
17338  See also 
17339 \family sans
17340 Help\SpecialChar menuseparator
17341 Embedded\SpecialChar menuseparator
17342  Objects\SpecialChar menuseparator
17343 Notes\SpecialChar menuseparator
17344 Footnotes
17345 \family default
17346 .
17347 \end_layout
17348
17349 \begin_layout Subsection
17350
17351 \change_inserted 564990737 1672081439
17352
17353 \lang american
17354 Footnotes as Endnotes (Extended)
17355 \end_layout
17356
17357 \begin_layout Standard
17358
17359 \change_inserted 564990737 1672081439
17360
17361 \lang american
17362 This module sets all footnotes as endnotes.
17363  This uses the 
17364 \family sans
17365 enotez
17366 \family default
17367  package which is more powerful and customizable than then 
17368 \family sans
17369 endnotes
17370 \family default
17371  package,
17372  but requires a fairly modern LaTeX distribution (with LaTeX3).
17373  Use 
17374 \family sans
17375 Insert\SpecialChar menuseparator
17376 List/Contents/References\SpecialChar menuseparator
17377 Endnotes
17378 \family default
17379  to insert the endnotes list where you want the endnotes to appear.
17380  See also 
17381 \family sans
17382 Help\SpecialChar menuseparator
17383 Embedded\SpecialChar menuseparator
17384  Objects\SpecialChar menuseparator
17385 Notes\SpecialChar menuseparator
17386 Footnotes
17387 \family default
17388 .
17389 \end_layout
17390
17391 \begin_layout Section
17392
17393 \change_inserted 564990737 1672081439
17394
17395 \lang american
17396 Leisure,
17397  Sports and Music
17398 \end_layout
17399
17400 \begin_layout Subsection
17401
17402 \change_inserted 564990737 1672081439
17403
17404 \lang american
17405 Chess Board
17406 \end_layout
17407
17408 \begin_layout Standard
17409
17410 \change_inserted 564990737 1672081439
17411
17412 \lang american
17413 This module provides support for the 
17414 \family sans
17415 chessboard
17416 \family default
17417  package to print chess games.
17418  See 
17419 \family sans
17420 File\SpecialChar menuseparator
17421 Open Example\SpecialChar menuseparator
17422 Articles\SpecialChar menuseparator
17423 Chess
17424 \family default
17425  where you will find 
17426 \family sans
17427 Game 1
17428 \family default
17429  and 
17430 \family sans
17431 Game 2
17432 \family default
17433  and the 
17434 \begin_inset CommandInset href
17435 LatexCommand href
17436 name "chessboard documentation"
17437 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
17438 literal "false"
17439
17440 \end_inset
17441
17442 .
17443 \end_layout
17444
17445 \begin_layout Subsection
17446
17447 \change_inserted 564990737 1672081439
17448
17449 \lang american
17450 Lilypond Music Notation
17451 \end_layout
17452
17453 \begin_layout Standard
17454
17455 \change_inserted 564990737 1672081439
17456
17457 \lang american
17458 This module provides an inset via 
17459 \family sans
17460 \bar under
17461 I
17462 \bar default
17463 nsert\SpecialChar menuseparator
17464 Custom Inset\SpecialChar menuseparator
17465 Lilypond
17466 \family default
17467  in which to enter code for the LilyPond music editor.
17468  It will then be processed in the output.
17469  See 
17470 \family sans
17471 Help\SpecialChar menuseparator
17472 Specific Manuals\SpecialChar menuseparator
17473 Lilypond
17474 \family default
17475  and 
17476 \family sans
17477 File\SpecialChar menuseparator
17478 Open Example\SpecialChar menuseparator
17479 Modules\SpecialChar menuseparator
17480 Lilypond Book
17481 \family default
17482 .
17483  It cannot be used if the modules 
17484 \family sans
17485 Rnw
17486 \begin_inset space \thinspace{}
17487 \end_inset
17488
17489 (knitr) or Sweave
17490 \family default
17491  have been loaded.
17492 \end_layout
17493
17494 \begin_layout Section
17495
17496 \change_inserted 564990737 1672138150
17497
17498 \lang american
17499 List enhancements
17500 \end_layout
17501
17502 \begin_layout Subsection
17503
17504 \change_inserted 564990737 1672138150
17505
17506 \lang american
17507 Customizable Lists
17508 \begin_inset CommandInset label
17509 LatexCommand label
17510 name "subsec:Customizable-Lists"
17511
17512 \end_inset
17513
17514
17515 \end_layout
17516
17517 \begin_layout Standard
17518
17519 \change_inserted 564990737 1672138150
17520
17521 \lang american
17522 This module uses the
17523 \family sans
17524  enumitem
17525 \family default
17526  package to enable the customization of various list environments.
17527 \end_layout
17528
17529 \begin_layout Subsubsection
17530
17531 \change_inserted 564990737 1672138150
17532
17533 \lang american
17534 Custom Enumerate Lists
17535 \end_layout
17536
17537 \begin_layout Standard
17538 \noindent
17539
17540 \change_inserted 564990737 1672138150
17541
17542 \lang american
17543 The default numbering of numbered lists can be changed by adding an optional argument (menu 
17544 \family sans
17545 \bar under
17546 I
17547 \bar default
17548 nsert\SpecialChar menuseparator
17549
17550 \bar under
17551 S
17552 \bar default
17553 hort Title
17554 \family default
17555 ) to the first item of each level in the list.
17556  There you add the command
17557 \end_layout
17558
17559 \begin_layout Standard
17560
17561 \change_inserted 564990737 1672138150
17562
17563 \family sans
17564 \lang american
17565 label=
17566 \backslash
17567 roman{enumi}
17568 \end_layout
17569
17570 \begin_layout Standard
17571
17572 \change_inserted 564990737 1672138150
17573
17574 \lang american
17575 in \SpecialChar TeX
17576  Code (shortcut 
17577 \begin_inset Info
17578 type  "shortcut"
17579 arg   "ert-insert"
17580 \end_inset
17581
17582 ).
17583 \end_layout
17584
17585 \begin_layout Standard
17586
17587 \change_inserted 564990737 1672138150
17588
17589 \family sans
17590 \lang american
17591 enumi
17592 \family default
17593  is the first level counter of the enumeration.
17594  To change the numbering for the list sublevels,
17595  replace the “
17596 \family sans
17597 i
17598 \family default
17599 ” in the command by the small Roman numeral of the level (
17600 \family sans
17601 enumi
17602 \family default
17603 ,
17604  
17605 \family sans
17606 enumii
17607 \family default
17608 ,
17609  
17610 \family sans
17611 enumiii
17612 \family default
17613 ,
17614  
17615 \family sans
17616 enumiv
17617 \family default
17618 ).
17619 \end_layout
17620
17621 \begin_layout Standard
17622
17623 \change_inserted 564990737 1672138150
17624
17625 \lang american
17626 The command 
17627 \family sans
17628
17629 \backslash
17630 roman
17631 \family default
17632  outputs the counter as a small Roman numeral.
17633  For capital Roman numerals replace 
17634 \family sans
17635
17636 \backslash
17637 roman
17638 \family default
17639  with 
17640 \family sans
17641
17642 \backslash
17643 Roman
17644 \family default
17645  in the command above.
17646  For Arabic numerals use 
17647 \family sans
17648
17649 \backslash
17650 arabic
17651 \family default
17652 .
17653  To 
17654 \begin_inset Quotes eld
17655 \end_inset
17656
17657 number
17658 \begin_inset Quotes erd
17659 \end_inset
17660
17661  items with capital or small Latin letters use 
17662 \family sans
17663
17664 \backslash
17665 Alph
17666 \family default
17667  or 
17668 \family sans
17669
17670 \backslash
17671 alph
17672 \family default
17673 ,
17674  respectively.
17675 \end_layout
17676
17677 \begin_layout Standard
17678 \noindent
17679
17680 \change_inserted 564990737 1672138150
17681
17682 \lang american
17683 \begin_inset Note Greyedout
17684 status collapsed
17685
17686 \begin_layout Plain Layout
17687
17688 \change_inserted 564990737 1672138150
17689
17690 \series bold
17691 \lang american
17692 Note:
17693
17694 \series default
17695  You can only number 26
17696 \begin_inset space ~
17697 \end_inset
17698
17699 items with Latin letters,
17700  because this numbering is limited to single letters.
17701 \end_layout
17702
17703 \end_inset
17704
17705
17706 \end_layout
17707
17708 \begin_layout Standard
17709
17710 \change_inserted 564990737 1672138150
17711
17712 \lang american
17713 Here is a list with custom numbering:
17714 \end_layout
17715
17716 \begin_layout Enumerate
17717
17718 \change_inserted 564990737 1672138150
17719
17720 \lang american
17721 \begin_inset Argument 1
17722 status collapsed
17723
17724 \begin_layout Plain Layout
17725
17726 \change_inserted 564990737 1672138150
17727
17728 \lang american
17729 \begin_inset ERT
17730 status collapsed
17731
17732 \begin_layout Plain Layout
17733
17734 \change_inserted 564990737 1672138150
17735
17736 label=
17737 \backslash
17738 #
17739 \backslash
17740 Alph{enumi}
17741 \backslash
17742 #
17743 \end_layout
17744
17745 \end_inset
17746
17747
17748 \change_unchanged
17749
17750 \end_layout
17751
17752 \end_inset
17753
17754 Level 1
17755 \begin_inset Separator latexpar
17756 \end_inset
17757
17758
17759 \end_layout
17760
17761 \begin_deeper
17762 \begin_layout Enumerate
17763
17764 \change_inserted 564990737 1672138150
17765
17766 \lang american
17767 \begin_inset Argument 1
17768 status collapsed
17769
17770 \begin_layout Plain Layout
17771
17772 \change_inserted 564990737 1672138150
17773
17774 \lang american
17775 \begin_inset ERT
17776 status collapsed
17777
17778 \begin_layout Plain Layout
17779
17780 \change_inserted 564990737 1672138150
17781
17782 label=
17783 \backslash
17784 Alph{enumi}.
17785 \backslash
17786 arabic{enumii}
17787 \end_layout
17788
17789 \end_inset
17790
17791
17792 \change_unchanged
17793
17794 \end_layout
17795
17796 \end_inset
17797
17798 Level 2
17799 \end_layout
17800
17801 \begin_layout Enumerate
17802
17803 \change_inserted 564990737 1672138150
17804
17805 \lang american
17806 Level 2
17807 \begin_inset Separator latexpar
17808 \end_inset
17809
17810
17811 \end_layout
17812
17813 \begin_deeper
17814 \begin_layout Enumerate
17815
17816 \change_inserted 564990737 1672138150
17817
17818 \lang american
17819 \begin_inset Argument 1
17820 status collapsed
17821
17822 \begin_layout Plain Layout
17823
17824 \change_inserted 564990737 1672138150
17825
17826 \lang american
17827 \begin_inset ERT
17828 status collapsed
17829
17830 \begin_layout Plain Layout
17831
17832 \change_inserted 564990737 1672138150
17833
17834 label=
17835 \backslash
17836 bf{
17837 \backslash
17838 arabic{enumiii}}
17839 \end_layout
17840
17841 \end_inset
17842
17843
17844 \change_unchanged
17845
17846 \end_layout
17847
17848 \end_inset
17849
17850 Level 3
17851 \begin_inset Separator latexpar
17852 \end_inset
17853
17854
17855 \end_layout
17856
17857 \begin_deeper
17858 \begin_layout Enumerate
17859
17860 \change_inserted 564990737 1672138150
17861
17862 \lang american
17863 \begin_inset Argument 1
17864 status collapsed
17865
17866 \begin_layout Plain Layout
17867
17868 \change_inserted 564990737 1672138150
17869
17870 \lang american
17871 \begin_inset ERT
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875
17876 \change_inserted 564990737 1672138150
17877
17878 label=
17879 \backslash
17880 emph{
17881 \backslash
17882 roman{enumiv})}
17883 \end_layout
17884
17885 \end_inset
17886
17887
17888 \change_unchanged
17889
17890 \end_layout
17891
17892 \end_inset
17893
17894 Level 4
17895 \end_layout
17896
17897 \end_deeper
17898 \end_deeper
17899 \end_deeper
17900 \begin_layout Standard
17901
17902 \change_inserted 564990737 1672138150
17903
17904 \lang american
17905 For this list these commands were used:
17906 \end_layout
17907
17908 \begin_layout Standard
17909 \noindent
17910
17911 \change_inserted 564990737 1672138150
17912
17913 \family sans
17914 \lang american
17915 label=
17916 \backslash
17917 #
17918 \backslash
17919 Alph{enumi}
17920 \backslash
17921 #
17922 \begin_inset Newline newline
17923 \end_inset
17924
17925 label=
17926 \backslash
17927 Alph{enumi}.
17928 \backslash
17929 arabic{enumii}
17930 \begin_inset Newline newline
17931 \end_inset
17932
17933 label=
17934 \backslash
17935 bf{
17936 \backslash
17937 arabic{enumiii}}
17938 \begin_inset Newline newline
17939 \end_inset
17940
17941 label=
17942 \backslash
17943 emph{
17944 \backslash
17945 roman{enumiv})}
17946 \end_layout
17947
17948 \begin_layout Standard
17949
17950 \change_inserted 564990737 1672138150
17951
17952 \lang american
17953 where the command 
17954 \family sans
17955
17956 \backslash
17957 emph{}
17958 \family default
17959  makes the label emphasized and 
17960 \family sans
17961
17962 \backslash
17963 bf{}
17964 \family default
17965  makes it bold.
17966 \end_layout
17967
17968 \begin_layout Standard
17969
17970 \change_inserted 564990737 1672138150
17971
17972 \lang american
17973 \begin_inset Note Greyedout
17974 status collapsed
17975
17976 \begin_layout Plain Layout
17977
17978 \change_inserted 564990737 1672138150
17979
17980 \series bold
17981 \lang american
17982 Note:
17983
17984 \series default
17985  When you change the label of a list level,
17986  it will be used for all following lists until you change the definition.
17987 \end_layout
17988
17989 \end_inset
17990
17991
17992 \end_layout
17993
17994 \begin_layout Standard
17995
17996 \change_inserted 564990737 1672138150
17997
17998 \lang british
17999 \begin_inset ERT
18000 status open
18001
18002 \begin_layout Plain Layout
18003
18004 \change_inserted 564990737 1672138150
18005
18006
18007 \backslash
18008 renewcommand{
18009 \backslash
18010 labelenumi}{
18011 \backslash
18012 thesection.
18013 \backslash
18014 arabic{enumi}}
18015 \end_layout
18016
18017 \end_inset
18018
18019
18020 \end_layout
18021
18022 \begin_layout Subsubsection
18023
18024 \change_inserted 564990737 1672138150
18025
18026 \lang american
18027 Numbered Paragraphs in Reports
18028 \end_layout
18029
18030 \begin_layout Enumerate
18031
18032 \change_inserted 564990737 1672138213
18033
18034 \lang american
18035 Official reports often include numbered paragraphs;
18036  you can achieve this with a variation on the approach outlined in the footnote
18037 \begin_inset space ~
18038 \end_inset
18039
18040
18041 \begin_inset CommandInset ref
18042 LatexCommand ref
18043 reference "fn:If-you-really"
18044 plural "false"
18045 caps "false"
18046 noprefix "false"
18047 nolink "false"
18048
18049 \end_inset
18050
18051 .
18052  Replace 
18053 \family sans
18054 item
18055 \family default
18056  in each command with 
18057 \family sans
18058 enum
18059 \family default
18060 .
18061 \end_layout
18062
18063 \begin_layout Enumerate
18064
18065 \change_inserted 564990737 1672138150
18066
18067 \lang american
18068 These numbered paragraphs were generated by inserting the \SpecialChar TeX
18069  Code
18070 \begin_inset Separator latexpar
18071 \end_inset
18072
18073
18074 \end_layout
18075
18076 \begin_deeper
18077 \begin_layout Standard
18078
18079 \change_inserted 564990737 1672138150
18080
18081 \family sans
18082 \lang american
18083
18084 \backslash
18085 renewcommand{
18086 \backslash
18087 labelenumi}{
18088 \backslash
18089 thesection.
18090 \backslash
18091 arabic{enumi}}
18092 \end_layout
18093
18094 \begin_layout Standard
18095
18096 \change_inserted 564990737 1672138150
18097
18098 \lang american
18099 before the start of the section;
18100  
18101 \family sans
18102
18103 \backslash
18104 thesection
18105 \family default
18106  uses the \SpecialChar LaTeX
18107  section counter to generate the first part of the number.
18108 \end_layout
18109
18110 \end_deeper
18111 \begin_layout Enumerate
18112
18113 \change_inserted 564990737 1672138150
18114
18115 \lang american
18116 I have ignored the subsection heading in this example because,
18117  with paragraphs numbered in this way,
18118  subsections are less likely to be used.
18119 \end_layout
18120
18121 \begin_layout Subsubsection
18122
18123 \change_inserted 564990737 1672138150
18124
18125 \lang american
18126 Resumed Enumeration
18127 \end_layout
18128
18129 \begin_layout Standard
18130
18131 \change_inserted 564990737 1672138150
18132
18133 \lang british
18134 \begin_inset ERT
18135 status open
18136
18137 \begin_layout Plain Layout
18138
18139 \change_inserted 564990737 1672138150
18140
18141
18142 \backslash
18143 renewcommand{
18144 \backslash
18145 labelenumi}{
18146 \backslash
18147 arabic{enumi}}
18148 \end_layout
18149
18150 \end_inset
18151
18152
18153 \end_layout
18154
18155 \begin_layout Standard
18156
18157 \change_inserted 564990737 1672138150
18158
18159 \lang american
18160 Enumerations can be resumed after intermediate paragraphs:
18161 \end_layout
18162
18163 \begin_layout Enumerate
18164
18165 \change_inserted 564990737 1672138150
18166
18167 \lang american
18168 \begin_inset Argument 1
18169 status collapsed
18170
18171 \begin_layout Plain Layout
18172
18173 \change_inserted 564990737 1672138150
18174
18175 \lang american
18176 \begin_inset ERT
18177 status collapsed
18178
18179 \begin_layout Plain Layout
18180
18181 \change_inserted 564990737 1672138150
18182
18183 label=
18184 \backslash
18185 arabic{enumi}.
18186 \end_layout
18187
18188 \end_inset
18189
18190
18191 \change_unchanged
18192
18193 \end_layout
18194
18195 \end_inset
18196
18197 first
18198 \begin_inset Note Note
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202
18203 \change_inserted 564990737 1672138150
18204
18205 \lang american
18206 goes back to default numbering
18207 \end_layout
18208
18209 \end_inset
18210
18211
18212 \end_layout
18213
18214 \begin_layout Enumerate
18215
18216 \change_inserted 564990737 1672138150
18217
18218 \lang american
18219 second
18220 \end_layout
18221
18222 \begin_layout Standard
18223
18224 \change_inserted 564990737 1672138150
18225
18226 \lang american
18227 regular text
18228 \end_layout
18229
18230 \begin_layout Enumerate-Resume
18231
18232 \change_inserted 564990737 1672138150
18233
18234 \lang american
18235 resumed
18236 \end_layout
18237
18238 \begin_layout Standard
18239
18240 \change_inserted 564990737 1672138150
18241
18242 \lang american
18243 To resume an enumeration,
18244  use the style 
18245 \family sans
18246 Enumerate-Resume
18247 \family default
18248 .
18249  Its numbering appears in blue within \SpecialChar LyX
18250  to indicate that it is a resumed list and that the numbering will not be correct in \SpecialChar LyX
18251 ,
18252  but in the output.
18253 \end_layout
18254
18255 \begin_layout Standard
18256
18257 \change_inserted 564990737 1672138150
18258
18259 \lang american
18260 \begin_inset Note Greyedout
18261 status collapsed
18262
18263 \begin_layout Plain Layout
18264
18265 \change_inserted 564990737 1672138150
18266
18267 \series bold
18268 \lang american
18269 Note:
18270
18271 \series default
18272  If there is no previous enumeration to resume,
18273  you will get a \SpecialChar LaTeX
18274  error.
18275 \end_layout
18276
18277 \end_inset
18278
18279
18280 \end_layout
18281
18282 \begin_layout Standard
18283
18284 \change_inserted 564990737 1672138150
18285
18286 \lang american
18287 Perhaps you might want to resume the list with a different number from the next one.
18288  Or you want to start a new enumeration with a defined number.
18289  This is possible by adding an optional argument to the first list item of a normal enumeration.
18290  There,
18291  insert the command
18292 \end_layout
18293
18294 \begin_layout Standard
18295
18296 \change_inserted 564990737 1672138150
18297
18298 \family sans
18299 \lang american
18300 start=number
18301 \end_layout
18302
18303 \begin_layout Standard
18304
18305 \change_inserted 564990737 1672138150
18306
18307 \lang american
18308 where 
18309 \family sans
18310 number
18311 \family default
18312  is the number with which you want to resume the list.
18313  An example:
18314 \end_layout
18315
18316 \begin_layout Enumerate
18317
18318 \change_inserted 564990737 1672138150
18319
18320 \lang american
18321 first item
18322 \end_layout
18323
18324 \begin_layout Enumerate
18325
18326 \change_inserted 564990737 1672138150
18327
18328 \lang american
18329 second item
18330 \end_layout
18331
18332 \begin_layout Standard
18333
18334 \change_inserted 564990737 1672138150
18335
18336 \lang american
18337 Enumeration starting at a given value:
18338 \end_layout
18339
18340 \begin_layout Enumerate
18341
18342 \change_inserted 564990737 1672138150
18343
18344 \lang american
18345 \begin_inset Argument 1
18346 status open
18347
18348 \begin_layout Plain Layout
18349
18350 \change_inserted 564990737 1672138150
18351
18352 \lang american
18353 \begin_inset ERT
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357
18358 \change_inserted 564990737 1672138150
18359
18360 start=4
18361 \end_layout
18362
18363 \end_inset
18364
18365
18366 \change_unchanged
18367
18368 \end_layout
18369
18370 \end_inset
18371
18372 This enumeration starts at 4
18373 \end_layout
18374
18375 \begin_layout Subsubsection
18376
18377 \change_inserted 564990737 1672138150
18378
18379 \lang american
18380 List Spacing
18381 \begin_inset Index idx
18382 range none
18383 pageformat default
18384 status collapsed
18385
18386 \begin_layout Plain Layout
18387
18388 \change_inserted 564990737 1672138150
18389
18390 \lang american
18391 Lists !
18392  Spacing
18393 \change_unchanged
18394
18395 \end_layout
18396
18397 \end_inset
18398
18399
18400 \end_layout
18401
18402 \begin_layout Standard
18403
18404 \change_inserted 564990737 1672138150
18405
18406 \lang american
18407 In some cases you might want less or more vertical space between the items of a list.
18408  For example if the default space is too much in your opinion in this case:
18409 \end_layout
18410
18411 \begin_layout Itemize
18412
18413 \change_inserted 564990737 1672138150
18414
18415 \lang american
18416 A bullet list
18417 \end_layout
18418
18419 \begin_layout Itemize
18420
18421 \change_inserted 564990737 1672138150
18422
18423 \lang american
18424 with standard spacing 
18425 \end_layout
18426
18427 \begin_layout Standard
18428
18429 \change_inserted 564990737 1672138150
18430
18431 \lang american
18432 You can decrease the space by adding an optional argument to the first item of the list.
18433  Add there the command 
18434 \family sans
18435 nolistsep
18436 \family default
18437  to get no additional list space like in this example:
18438 \end_layout
18439
18440 \begin_layout Itemize
18441
18442 \change_inserted 564990737 1672138150
18443
18444 \lang american
18445 \begin_inset Argument 1
18446 status open
18447
18448 \begin_layout Plain Layout
18449
18450 \change_inserted 564990737 1672138150
18451
18452 \lang american
18453 \begin_inset ERT
18454 status collapsed
18455
18456 \begin_layout Plain Layout
18457
18458 \change_inserted 564990737 1672138150
18459
18460 nolistsep
18461 \end_layout
18462
18463 \end_inset
18464
18465
18466 \change_unchanged
18467
18468 \end_layout
18469
18470 \end_inset
18471
18472 A bullet list
18473 \end_layout
18474
18475 \begin_layout Itemize
18476
18477 \change_inserted 564990737 1672138150
18478
18479 \lang american
18480 without additional
18481 \end_layout
18482
18483 \begin_layout Itemize
18484
18485 \change_inserted 564990737 1672138150
18486
18487 \lang american
18488 vertical space
18489 \end_layout
18490
18491 \begin_layout Standard
18492
18493 \change_inserted 564990737 1672138150
18494
18495 \lang american
18496 To add space you can use several other commands provided by the 
18497 \family sans
18498 enumitem
18499 \family default
18500
18501 \begin_inset Index idx
18502 range none
18503 pageformat default
18504 status collapsed
18505
18506 \begin_layout Plain Layout
18507
18508 \change_inserted 564990737 1672138150
18509
18510 \lang american
18511 \SpecialChar LaTeX
18512 -packages !
18513  enumitem
18514 \change_unchanged
18515
18516 \end_layout
18517
18518 \end_inset
18519
18520  package.
18521  For more information see the 
18522 \begin_inset CommandInset href
18523 LatexCommand href
18524 name "enumitem documentation"
18525 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
18526 literal "false"
18527
18528 \end_inset
18529
18530 .
18531 \end_layout
18532
18533 \begin_layout Standard
18534
18535 \change_inserted 564990737 1672138150
18536
18537 \lang american
18538 There are also many commands available to change the horizontal spacing and indentation.
18539  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
18540 \begin_inset space \thinspace{}
18541 \end_inset
18542
18543 cm so that the number is in the page margin:
18544 \end_layout
18545
18546 \begin_layout Enumerate
18547
18548 \change_inserted 564990737 1672138150
18549
18550 \lang american
18551 \begin_inset Argument 1
18552 status open
18553
18554 \begin_layout Plain Layout
18555
18556 \change_inserted 564990737 1672138150
18557
18558 \lang american
18559 \begin_inset ERT
18560 status collapsed
18561
18562 \begin_layout Plain Layout
18563
18564 \change_inserted 564990737 1672138150
18565
18566 labelindent=
18567 \backslash
18568 parindent,
18569  labelsep=2cm
18570 \end_layout
18571
18572 \end_inset
18573
18574
18575 \change_unchanged
18576
18577 \end_layout
18578
18579 \end_inset
18580
18581 An enumeration
18582 \end_layout
18583
18584 \begin_layout Enumerate
18585
18586 \change_inserted 564990737 1672138150
18587
18588 \lang american
18589 with negative indentation
18590 \end_layout
18591
18592 \begin_layout Subsubsection
18593
18594 \change_inserted 564990737 1672138150
18595
18596 \lang american
18597 Further Customization
18598 \begin_inset Index idx
18599 range none
18600 pageformat default
18601 status collapsed
18602
18603 \begin_layout Plain Layout
18604
18605 \change_inserted 564990737 1672138150
18606
18607 \lang american
18608 Lists !
18609  Customization
18610 \change_unchanged
18611
18612 \end_layout
18613
18614 \end_inset
18615
18616
18617 \end_layout
18618
18619 \begin_layout Standard
18620
18621 \change_inserted 564990737 1672138150
18622
18623 \lang american
18624 You can also change the style of description lists.
18625  The command
18626 \end_layout
18627
18628 \begin_layout Standard
18629
18630 \change_inserted 564990737 1672138150
18631
18632 \family sans
18633 \lang american
18634 font=definition
18635 \end_layout
18636
18637 \begin_layout Standard
18638
18639 \change_inserted 564990737 1672138150
18640
18641 \lang american
18642 changes the description label font,
18643  the command
18644 \end_layout
18645
18646 \begin_layout Standard
18647
18648 \change_inserted 564990737 1672138150
18649
18650 \family sans
18651 \lang american
18652 style=definitio
18653 \family default
18654 \series bold
18655 n
18656 \end_layout
18657
18658 \begin_layout Standard
18659
18660 \change_inserted 564990737 1672138150
18661
18662 \lang american
18663 sets the list style.
18664 \end_layout
18665
18666 \begin_layout Standard
18667
18668 \change_inserted 564990737 1672138150
18669
18670 \lang american
18671 An example where the command
18672 \end_layout
18673
18674 \begin_layout Standard
18675
18676 \change_inserted 564990737 1672138150
18677
18678 \family sans
18679 \lang american
18680 font=
18681 \backslash
18682 itshape,
18683  style=nextline
18684 \end_layout
18685
18686 \begin_layout Standard
18687
18688 \change_inserted 564990737 1672138150
18689
18690 \lang american
18691 is used:
18692 \end_layout
18693
18694 \begin_layout Description
18695
18696 \change_inserted 564990737 1672138150
18697
18698 \lang american
18699 Ionizing
18700 \begin_inset space ~
18701 \end_inset
18702
18703 radiation:
18704  
18705 \begin_inset Argument 1
18706 status collapsed
18707
18708 \begin_layout Plain Layout
18709
18710 \change_inserted 564990737 1672138150
18711
18712 \lang american
18713 \begin_inset ERT
18714 status collapsed
18715
18716 \begin_layout Plain Layout
18717
18718 \change_inserted 564990737 1672138150
18719
18720 labelindent=0pt,
18721  labelsep=1cm,
18722  font=
18723 \backslash
18724 itshape,
18725  style=nextline
18726 \end_layout
18727
18728 \end_inset
18729
18730
18731 \change_unchanged
18732
18733 \end_layout
18734
18735 \end_inset
18736
18737 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
18738  therefore ionizing them.
18739 \end_layout
18740
18741 \begin_layout Description
18742
18743 \change_inserted 564990737 1672138150
18744
18745 \lang american
18746 Reference
18747 \begin_inset space ~
18748 \end_inset
18749
18750 counting:
18751  In computer science,
18752  reference counting is a technique of storing the number of references,
18753  pointers,
18754  or handles to a resource such as an object,
18755  block of memory,
18756  disk space or other resource.
18757 \end_layout
18758
18759 \begin_layout Standard
18760
18761 \change_inserted 564990737 1672138150
18762
18763 \lang american
18764 There are many more commands and features provided by the 
18765 \family sans
18766 enumitem
18767 \family default
18768
18769 \begin_inset Index idx
18770 range none
18771 pageformat default
18772 status collapsed
18773
18774 \begin_layout Plain Layout
18775
18776 \change_inserted 564990737 1672138150
18777
18778 \lang american
18779 \SpecialChar LaTeX
18780 -packages !
18781  enumitem
18782 \change_unchanged
18783
18784 \end_layout
18785
18786 \end_inset
18787
18788  package.
18789  For more information see the 
18790 \begin_inset CommandInset href
18791 LatexCommand href
18792 name "enumitem documentation"
18793 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
18794 literal "false"
18795
18796 \end_inset
18797
18798 .
18799 \end_layout
18800
18801 \begin_layout Subsection
18802
18803 \change_inserted 564990737 1672138150
18804
18805 \series bold
18806 \lang american
18807 Paragraph Lists
18808 \end_layout
18809
18810 \begin_layout Standard
18811
18812 \change_inserted 564990737 1672138150
18813
18814 \lang american
18815 This module uses the package 
18816 \family sans
18817 paralist
18818 \family default
18819  to provide nine new list environments.
18820  Itemized and enumerated lists can be typeset within paragraphs,
18821  as paragraphs and in a compact version.
18822  Most environments have optional arguments to format the labels.
18823  Additionally,
18824  the \SpecialChar LaTeX
18825  list environments itemize and enumerate are extended to use a similar optional argument.
18826  For further details see 
18827 \family sans
18828 File\SpecialChar menuseparator
18829 Open Example\SpecialChar menuseparator
18830 Modules\SpecialChar menuseparator
18831 Paragraph Lists (paralist)
18832 \family default
18833 ,
18834  
18835 \family sans
18836 Help\SpecialChar menuseparator
18837 Specific Manuals\SpecialChar menuseparator
18838 Paralist
18839 \family default
18840  and the 
18841 \begin_inset CommandInset href
18842 LatexCommand href
18843 name "paralist documentation"
18844 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
18845 literal "false"
18846
18847 \end_inset
18848
18849 .
18850 \end_layout
18851
18852 \begin_layout Section
18853
18854 \change_inserted 564990737 1672161542
18855
18856 \lang american
18857 Literate Programming 
18858 \end_layout
18859
18860 \begin_layout Subsection
18861
18862 \change_inserted 564990737 1672161542
18863
18864 \lang american
18865 Noweb
18866 \end_layout
18867
18868 \begin_layout Standard
18869
18870 \change_inserted 564990737 1672161542
18871
18872 \lang american
18873 This module allows the use of Noweb as a literate programming tool.
18874  The files and the documentation for Noweb can be obtained from 
18875 \begin_inset CommandInset href
18876 LatexCommand href
18877 name "CTAN"
18878 target "https://www.ctan.org/pkg/noweb"
18879 literal "false"
18880
18881 \end_inset
18882
18883 .
18884  Literate programming is described in section
18885 \begin_inset space ~
18886 \end_inset
18887
18888
18889 \begin_inset CommandInset ref
18890 LatexCommand ref
18891 reference "sec:Literate-Programming"
18892 nolink "false"
18893
18894 \end_inset
18895
18896  and there are three example files:
18897  
18898 \family sans
18899 File\SpecialChar menuseparator
18900 Open Example\SpecialChar menuseparator
18901 Modules\SpecialChar menuseparator
18902 Noweb
18903 \family default
18904 ,
18905  
18906 \family sans
18907 File\SpecialChar menuseparator
18908 Open Example\SpecialChar menuseparator
18909 Modules\SpecialChar menuseparator
18910 Noweb Listerrors
18911 \family default
18912  and 
18913 \family sans
18914 File\SpecialChar menuseparator
18915 Open Example\SpecialChar menuseparator
18916 Modules\SpecialChar menuseparator
18917 Noweb2\SpecialChar LyX
18918
18919 \family default
18920 .
18921 \end_layout
18922
18923 \begin_layout Subsection
18924
18925 \change_inserted 564990737 1672161542
18926
18927 \lang american
18928 Rnw (knitr)
18929 \end_layout
18930
18931 \begin_layout Standard
18932
18933 \change_inserted 564990737 1672161542
18934
18935 \lang american
18936 This module uses the 
18937 \family typewriter
18938 knitr
18939 \family default
18940  and 
18941 \family sans
18942 includernw
18943 \family default
18944  packages.
18945  The
18946 \begin_inset Flex Code
18947 status collapsed
18948
18949 \begin_layout Plain Layout
18950
18951 \change_inserted 564990737 1672161542
18952
18953 \lang american
18954 knitr
18955 \change_unchanged
18956
18957 \end_layout
18958
18959 \end_inset
18960
18961  package in R for dynamic report generation has to be installed for this module to work:
18962  
18963 \begin_inset Flex Code
18964 status collapsed
18965
18966 \begin_layout Plain Layout
18967
18968 \change_inserted 564990737 1672161542
18969
18970 \lang american
18971 install.packages(“knitr”)
18972 \change_unchanged
18973
18974 \end_layout
18975
18976 \end_inset
18977
18978 .
18979  
18980 \end_layout
18981
18982 \begin_layout Paragraph
18983
18984 \change_inserted 564990737 1672161542
18985
18986 \lang american
18987 Note 
18988 \end_layout
18989
18990 \begin_layout Standard
18991
18992 \change_inserted 564990737 1672161542
18993
18994 \lang american
18995 it depends on R >= 2.14.1.
18996  For more info see 
18997 \begin_inset Flex URL
18998 status collapsed
18999
19000 \begin_layout Plain Layout
19001
19002 \change_inserted 564990737 1672161542
19003
19004 http://yihui.name/knitr
19005 \change_unchanged
19006
19007 \end_layout
19008
19009 \end_inset
19010
19011 .
19012  
19013 \end_layout
19014
19015 \begin_layout Standard
19016
19017 \change_inserted 564990737 1672161542
19018
19019 \lang american
19020 The package 
19021 \family sans
19022 includernw
19023 \family default
19024  also has to be installed.
19025  It cannot be used if the modules 
19026 \family sans
19027 LilyPond
19028 \begin_inset space ~
19029 \end_inset
19030
19031 Book
19032 \family default
19033  or 
19034 \family sans
19035 Sweave
19036 \family default
19037  are loaded.
19038  See 
19039 \family sans
19040 Help\SpecialChar menuseparator
19041 Specific Manuals\SpecialChar menuseparator
19042 Knitr
19043 \family default
19044 ,
19045  
19046 \family sans
19047 File\SpecialChar menuseparator
19048 Open Example\SpecialChar menuseparator
19049 Modules\SpecialChar menuseparator
19050 Rnw (knitr)
19051 \family default
19052  and section
19053 \begin_inset space ~
19054 \end_inset
19055
19056
19057 \begin_inset CommandInset ref
19058 LatexCommand ref
19059 reference "sec:Literate-Programming"
19060 nolink "false"
19061
19062 \end_inset
19063
19064  for information about literate programming.
19065 \end_layout
19066
19067 \begin_layout Subsection
19068
19069 \change_inserted 564990737 1672161542
19070
19071 \lang american
19072 Sweave
19073 \end_layout
19074
19075 \begin_layout Standard
19076
19077 \change_inserted 564990737 1672161542
19078
19079 \lang american
19080 This module allows the use of the statistical language S/R as a literate programming tool.
19081  It requires the 
19082 \family sans
19083 includernw
19084 \family default
19085  and 
19086 \family sans
19087 fancyvrb
19088 \family default
19089  packages.
19090  Both 
19091 \begin_inset CommandInset href
19092 LatexCommand href
19093 name "includernw"
19094 target "https://www.ctan.org/pkg/includernw"
19095 literal "false"
19096
19097 \end_inset
19098
19099  and 
19100 \begin_inset CommandInset href
19101 LatexCommand href
19102 name "fancyvrb"
19103 target "https://www.ctan.org/pkg/fancyvrb"
19104 literal "false"
19105
19106 \end_inset
19107
19108  are available from CTAN.
19109  It cannot be used if the module 
19110 \family sans
19111 LilyPond
19112 \begin_inset space ~
19113 \end_inset
19114
19115 Book
19116 \family default
19117  has been loaded.
19118  See 
19119 \family sans
19120 Help\SpecialChar menuseparator
19121 Specific Manuals\SpecialChar menuseparator
19122 Sweave,
19123
19124 \family default
19125  
19126 \family sans
19127 File\SpecialChar menuseparator
19128 Open Example\SpecialChar menuseparator
19129 Modules\SpecialChar menuseparator
19130 Sweave
19131 \family default
19132  and section
19133 \begin_inset space ~
19134 \end_inset
19135
19136
19137 \begin_inset CommandInset ref
19138 LatexCommand ref
19139 reference "sec:Literate-Programming"
19140 nolink "false"
19141
19142 \end_inset
19143
19144  for information about literate programming.
19145 \end_layout
19146
19147 \begin_layout Section
19148
19149 \change_inserted 564990737 1672224959
19150
19151 \lang american
19152 Maths
19153 \end_layout
19154
19155 \begin_layout Subsection
19156
19157 \change_inserted 564990737 1672224959
19158
19159 \lang american
19160 AMS Theorems
19161 \end_layout
19162
19163 \begin_layout Standard
19164
19165 \change_inserted 564990737 1672224959
19166
19167 \lang american
19168 This modules defines theorem environments and the proof environment using the extended AMS machinery.
19169  Both numbered and unnumbered types are provided.
19170  By default,
19171  the theorems are numbered consecutively throughout the document.
19172  This can be changed by loading one of the 
19173 \family sans
19174 AMS Theorems (Numbered by \SpecialChar ldots
19175 )
19176 \family default
19177  modules.
19178  It cannot be used if the modules 
19179 \family sans
19180 Standard Theorems
19181 \family default
19182  or 
19183 \family sans
19184 Standard Theorems (Unnumbered)
19185 \family default
19186  have been loaded.
19187 \end_layout
19188
19189 \begin_layout Subsection
19190
19191 \change_inserted 564990737 1672224959
19192
19193 \lang american
19194 AMS Theorems (Extended)
19195 \end_layout
19196
19197 \begin_layout Standard
19198
19199 \change_inserted 564990737 1672224959
19200
19201 \lang american
19202 This module defines some additional theorem environments for use with the 
19203 \family sans
19204 AMS Theorems
19205 \family default
19206  package (which must be loaded).
19207  It includes Criterion,
19208  Algorithm,
19209  Axiom,
19210  Condition,
19211  Note,
19212  Notation,
19213  Summary,
19214  Acknowledgement,
19215  Conclusion,
19216  Fact,
19217  Assumption,
19218  Case and Question in both numbered and unnumbered forms.
19219 \end_layout
19220
19221 \begin_layout Subsection
19222
19223 \change_inserted 564990737 1672224959
19224
19225 \lang american
19226 AMS Theorems (Extended,
19227  Numbered by Type within Chapters)
19228 \end_layout
19229
19230 \begin_layout Standard
19231
19232 \change_inserted 564990737 1672224959
19233
19234 \lang american
19235 This module defines some additional theorem environments for use with the 
19236 \family sans
19237 AMS Theorems (Numbered by Type within Chapters)
19238 \family default
19239  package (which must be loaded).
19240  It includes Criterion,
19241  Algorithm,
19242  Axiom,
19243  Condition,
19244  Note,
19245  Notation,
19246  Summary,
19247  Acknowledgement,
19248  Conclusion,
19249  Assumption and Case in both numbered and unnumbered forms.
19250  Unlike the 
19251 \family sans
19252 AMS Theorems (Extended)
19253 \family default
19254  module,
19255  the different theorem types provided here each have a separate counter,
19256  restarted with each new chapter (e.g.,
19257  criterion 1.1,
19258  criterion 1.2,
19259  axiom 1.1,
19260  assumption 1.1,
19261  criterion 2.1,
19262  criterion 2.2,
19263  axiom 2.1\SpecialChar ldots
19264 ,
19265  as opposed to criterion 1,
19266  criterion 2,
19267  axiom 3,
19268  assumption 4...).
19269 \end_layout
19270
19271 \begin_layout Subsection
19272
19273 \change_inserted 564990737 1672224959
19274
19275 \lang american
19276 AMS Theorems (Extended,
19277  Numbered by Type)
19278 \end_layout
19279
19280 \begin_layout Standard
19281
19282 \change_inserted 564990737 1672224959
19283
19284 \lang american
19285 This module defines some additional theorem environments for use with the 
19286 \family sans
19287 AMS Theorems (Numbered by Type)
19288 \family default
19289  package (which must be loaded).
19290  It includes Criterion,
19291  Algorithm,
19292  Axiom,
19293  Condition,
19294  Note,
19295  Notation,
19296  Summary,
19297  Acknowledgement,
19298  Conclusion,
19299  Assumption and Case in both numbered and unnumbered forms.
19300  Unlike the 
19301 \family sans
19302 AMS Theorems (Extended)
19303 \family default
19304  module,
19305  the different theorem types provided here each have a separate counter (e.g.,
19306  criterion 1,
19307  criterion 2,
19308  axiom 1,
19309  assumption 1,
19310  criterion 3,
19311  \SpecialChar ldots
19312 ,
19313  as opposed to criterion 1,
19314  criterion 2,
19315  axiom 3,
19316  assumption 4,
19317  \SpecialChar ldots
19318 ).
19319 \end_layout
19320
19321 \begin_layout Subsection
19322
19323 \change_inserted 564990737 1672224959
19324
19325 \lang american
19326 AMS Theorems (Numbered by Type within Chapters) 
19327 \end_layout
19328
19329 \begin_layout Standard
19330
19331 \change_inserted 564990737 1672224959
19332
19333 \lang american
19334 This module defines theorem environments and the proof environment using the extended AMS machinery.
19335  Both numbered and unnumbered types are provided.
19336  Unlike the 
19337 \family sans
19338 AMS Theorems
19339 \family default
19340  module,
19341  the different theorem types provided here each have a separate counter (e.g.,
19342  theorem 1.1,
19343  theorem 1.2,
19344  lemma 1.1,
19345  proposition 1.1,
19346  theorem 1.3,
19347  lemma 1.2,
19348  \SpecialChar ldots
19349 ,
19350  as opposed to theorem 1,
19351  theorem 2,
19352  lemma 3,
19353  proposition 4,
19354  \SpecialChar ldots
19355 ).
19356  The numbering restarts for each chapter:
19357  theorem 1.1,
19358  theorem 2.1,
19359  \SpecialChar ldots
19360  It cannot be used if the modules 
19361 \family sans
19362 AMS Theorems
19363 \family default
19364 ,
19365  
19366 \family sans
19367 Standard Theorems
19368 \family default
19369 ,
19370
19371 \family sans
19372  Standard Theorems (Numbered by Type)
19373 \family default
19374  or
19375 \family sans
19376  Standard Theorems (Unnumbered)
19377 \family default
19378  have been loaded.
19379 \end_layout
19380
19381 \begin_layout Subsection
19382
19383 \change_inserted 564990737 1672224959
19384
19385 \lang american
19386 AMS Theorems (Numbered by Type)
19387 \end_layout
19388
19389 \begin_layout Standard
19390
19391 \change_inserted 564990737 1672224959
19392
19393 \lang american
19394 This module defines theorem environments and the proof environment using the extended AMS machinery.
19395  Both numbered and unnumbered types are provided.
19396  Unlike the 
19397 \family sans
19398 AMS Theorems
19399 \family default
19400  module,
19401  the different theorem types provided here each have a separate counter (e.g.,
19402  theorem 1,
19403  theorem 2,
19404  lemma 1,
19405  proposition 1,
19406  theorem 3,
19407  lemma 2,
19408  \SpecialChar ldots
19409 ,
19410  as opposed to theorem 1,
19411  theorem 2,
19412  lemma 3,
19413  proposition 4,
19414  \SpecialChar ldots
19415 ).
19416  The numbering’s scope is the whole document.
19417  For chapter- and section-wide numbering,
19418  use one of the ‘within Sections’/‘within Chapters’ modules,
19419  respectively.
19420  It cannot be used if the modules 
19421 \family sans
19422 AMS Theorems
19423 \family default
19424 ,
19425  
19426 \family sans
19427 Standard Theorems
19428 \family default
19429 ,
19430
19431 \family sans
19432  Standard Theorems (Numbered by Type)
19433 \family default
19434  or
19435 \family sans
19436  Standard Theorems (Unnumbered)
19437 \family default
19438  have been loaded.
19439 \end_layout
19440
19441 \begin_layout Subsection
19442
19443 \change_inserted 564990737 1672224959
19444
19445 \lang american
19446 Number Equations by Section
19447 \end_layout
19448
19449 \begin_layout Standard
19450
19451 \change_inserted 564990737 1672224959
19452
19453 \lang american
19454 This module resets the equation number at section start and prepends the section number to the equation number,
19455  as in “(2.1).” 
19456 \end_layout
19457
19458 \begin_layout Subsection
19459
19460 \change_inserted 564990737 1672224959
19461
19462 \lang american
19463 Standard Theorems
19464 \end_layout
19465
19466 \begin_layout Standard
19467
19468 \change_inserted 564990737 1672224959
19469
19470 \lang american
19471 This module defines some theorem environments for use with non-AMS classes.
19472  By default,
19473  the theorems are numbered consecutively throughout the document.
19474  This can be changed by loading one of the 
19475 \family sans
19476 Standard Theorems (Numbered by \SpecialChar ldots
19477 )
19478 \family default
19479  modules.
19480  It cannot be used if the modules 
19481 \family sans
19482 AMS Theorems
19483 \family default
19484  or
19485 \family sans
19486  Standard Theorems (Unnumbered)
19487 \family default
19488  have been loaded.
19489  
19490 \end_layout
19491
19492 \begin_layout Subsection
19493
19494 \change_inserted 564990737 1672224959
19495
19496 \lang american
19497 Standard Theorems (Nameable)
19498 \end_layout
19499
19500 \begin_layout Standard
19501
19502 \change_inserted 564990737 1672224959
19503
19504 \lang american
19505 This module facilitates the use of named theorems.
19506  The name of the theorem goes into the “Additional Theorem Text” argument.
19507  
19508 \end_layout
19509
19510 \begin_layout Subsection
19511
19512 \change_inserted 564990737 1672224959
19513
19514 \lang american
19515 Standard Theorems (Numbered by Chapter)
19516 \end_layout
19517
19518 \begin_layout Standard
19519
19520 \change_inserted 564990737 1672224959
19521
19522 \lang american
19523 This module numbers theorems and the like by chapter (i.e.,
19524  the counter is reset at each chapter start).
19525  Use this module only with document classes that provide a chapter environment.
19526  One of the modules 
19527 \family sans
19528 AMS Theorems
19529 \family default
19530  or 
19531 \family sans
19532 Standard Theorems
19533 \family default
19534  must be loaded.
19535  It cannot be used if the module
19536 \family sans
19537  Standard Theorems (Numbered by Section)
19538 \family default
19539  has been loaded.
19540 \end_layout
19541
19542 \begin_layout Subsection
19543
19544 \change_inserted 564990737 1672224959
19545
19546 \lang american
19547 Standard Theorems (Numbered by Section)
19548 \end_layout
19549
19550 \begin_layout Standard
19551
19552 \change_inserted 564990737 1672224959
19553
19554 \lang american
19555 This module numbers theorems and the like by section (i.e.,
19556  the counter is reset at each section start).
19557  One of the modules 
19558 \family sans
19559 AMS Theorems
19560 \family default
19561  or 
19562 \family sans
19563 Standard Theorems
19564 \family default
19565  must be loaded.
19566  It cannot be used if the module
19567 \family sans
19568  Standard Theorems (Numbered by Chapter)
19569 \family default
19570  has been loaded.
19571 \end_layout
19572
19573 \begin_layout Subsection
19574
19575 \change_inserted 564990737 1672224959
19576
19577 \lang american
19578 Standard Theorems (Numbered by Type within Chapters) 
19579 \end_layout
19580
19581 \begin_layout Standard
19582
19583 \change_inserted 564990737 1672224959
19584
19585 \lang american
19586 This module defines some theorem environments for use with non-AMS classes.
19587  Unlike the
19588 \family sans
19589  AMS Theorems
19590 \family default
19591  and 
19592 \family sans
19593 Standard Theorems
19594 \family default
19595  modules,
19596  the different theorem types provided here each have a separate counter (e.g.,
19597  theorem 1,
19598  theorem 2,
19599  lemma 1,
19600  proposition 1,
19601  theorem 3,
19602  lemma 2,
19603  \SpecialChar ldots
19604 ,
19605  as opposed to theorem 1,
19606  theorem 2,
19607  lemma 3,
19608  proposition 4,
19609  \SpecialChar ldots
19610 ).
19611  The numbering is reset at each chapter start.
19612  One of the modules 
19613 \family sans
19614 AMS Theorems (Numbered by Type)
19615 \family default
19616  or 
19617 \family sans
19618 Standard Theorems (Numbered by Type)
19619 \family default
19620  must be loaded.
19621  It cannot be used if any of the modules
19622 \family sans
19623  AMS Theorems
19624 \family default
19625 ,
19626  
19627 \family sans
19628 Standard Theorems
19629 \family default
19630 ,
19631  
19632 \family sans
19633 Standard Theorems (Unnumbered)
19634 \family default
19635 ,
19636
19637 \family sans
19638  Standard Theorems (Numbered by Sections)
19639 \family default
19640  or 
19641 \family sans
19642 Standard Theorems (Numbered by Type within Sections)
19643 \family default
19644  have been loaded.
19645 \end_layout
19646
19647 \begin_layout Subsection
19648
19649 \change_inserted 564990737 1672224959
19650
19651 \lang american
19652 Standard Theorems (Numbered by Type within Sections) 
19653 \end_layout
19654
19655 \begin_layout Standard
19656
19657 \change_inserted 564990737 1672224959
19658
19659 \lang american
19660 This module defines some theorem environments for use with non-AMS classes.
19661  Unlike the
19662 \family sans
19663  AMS Theorems
19664 \family default
19665  and 
19666 \family sans
19667 Standard Theorems
19668 \family default
19669  modules,
19670  the different theorem types provided here each have a separate counter (e.g.,
19671  theorem 1,
19672  theorem 2,
19673  lemma 1,
19674  proposition 1,
19675  theorem 3,
19676  lemma 2,
19677  \SpecialChar ldots
19678 ,
19679  as opposed to theorem 1,
19680  theorem 2,
19681  lemma 3,
19682  proposition 4,
19683  \SpecialChar ldots
19684 ).
19685  The numbering is reset at each section start.
19686  One of the modules 
19687 \family sans
19688 AMS Theorems (Numbered by Type)
19689 \family default
19690  or 
19691 \family sans
19692 Standard Theorems (Numbered by Type)
19693 \family default
19694  must be loaded.
19695  It cannot be used if any of the modules
19696 \family sans
19697  AMS Theorems
19698 \family default
19699 ,
19700  
19701 \family sans
19702 Standard Theorems
19703 \family default
19704 ,
19705  
19706 \family sans
19707 Standard Theorems (Unnumbered)
19708 \family default
19709 ,
19710
19711 \family sans
19712  Standard Theorems (Numbered by Chapters)
19713 \family default
19714  or 
19715 \family sans
19716 Standard Theorems (Numbered by Type within Chapters)
19717 \family default
19718  have been loaded.
19719 \end_layout
19720
19721 \begin_layout Subsection
19722
19723 \change_inserted 564990737 1672224959
19724
19725 \lang american
19726 Standard Theorems (Numbered by Type)
19727 \end_layout
19728
19729 \begin_layout Standard
19730
19731 \change_inserted 564990737 1672224959
19732
19733 \lang american
19734 This module defines some theorem environments for use with non-AMS classes.
19735  Unlike the 
19736 \family sans
19737 AMS Theorems
19738 \family default
19739  and 
19740 \family sans
19741 Standard Theorems
19742 \family default
19743  modules,
19744  the different theorem types provided here each have a separate counter (e.g.,
19745  theorem 1,
19746  theorem 2,
19747  lemma 1,
19748  proposition 1,
19749  theorem 3,
19750  lemma 2,
19751  \SpecialChar ldots
19752 ,
19753  as opposed to theorem 1,
19754  theorem 2,
19755  lemma 3,
19756  proposition 4,
19757  \SpecialChar ldots
19758 ).
19759  The numbering’s scope is the whole document.
19760  For chapter- and section-wide numbering,
19761  use one of the “within Chapters”/“within Sections” modules,
19762  respectively.
19763  It cannot be used if any of the modules
19764 \family sans
19765  AMS Theorems
19766 \family default
19767 ,
19768  
19769 \family sans
19770 Standard Theorems
19771 \family default
19772 ,
19773  
19774 \family sans
19775 Standard Theorems (Unnumbered)
19776 \family default
19777  or
19778 \family sans
19779  AMS Theorems (Numbered by Type)
19780 \family default
19781  have been loaded.
19782 \end_layout
19783
19784 \begin_layout Subsection
19785
19786 \change_inserted 564990737 1672224959
19787
19788 \lang american
19789 Standard Theorems (Unnumbered)
19790 \end_layout
19791
19792 \begin_layout Standard
19793
19794 \change_inserted 564990737 1672224959
19795
19796 \lang american
19797 This module defines only unnumbered theorem environments and the proof environment,
19798  using the extended AMS machinery.
19799  It cannot be used if either of the modules
19800 \family sans
19801  AMS Theorems
19802 \family default
19803  or
19804 \family sans
19805  Standard Theorems
19806 \family default
19807  have been loaded.
19808 \end_layout
19809
19810 \begin_layout Subsection
19811
19812 \change_inserted 564990737 1672224959
19813
19814 \lang american
19815 Subequations
19816 \end_layout
19817
19818 \begin_layout Standard
19819
19820 \change_inserted 564990737 1672224959
19821
19822 \lang american
19823 This module provides a straightforward way to segregate subequations in LyX.
19824  See 
19825 \family sans
19826 Help\SpecialChar menuseparator
19827 Math\SpecialChar menuseparator
19828 Subnumbering
19829 \family default
19830 .
19831  
19832 \end_layout
19833
19834 \begin_layout Section
19835
19836 \change_inserted 564990737 1672236008
19837
19838 \lang american
19839 Page Layout
19840 \end_layout
19841
19842 \begin_layout Subsection
19843
19844 \change_inserted 564990737 1672236008
19845
19846 \lang american
19847 Custom Header/Footer Text
19848 \end_layout
19849
19850 \begin_layout Standard
19851
19852 \change_inserted 564990737 1672236008
19853
19854 \lang american
19855 This module requires the 
19856 \family sans
19857 Page
19858 \begin_inset space ~
19859 \end_inset
19860
19861
19862 \bar under
19863 s
19864 \bar default
19865 tyle
19866 \family default
19867  option in the 
19868 \family sans
19869 \bar under
19870 D
19871 \bar default
19872 ocument\SpecialChar menuseparator
19873
19874 \bar under
19875 S
19876 \bar default
19877 ettings\SpecialChar menuseparator
19878 Page
19879 \begin_inset space ~
19880 \end_inset
19881
19882 Layout
19883 \family default
19884  dialog to be set to 
19885 \family typewriter
19886 fancy
19887 \family default
19888 .
19889  It adds six environments to document classes which support the 
19890 \family typewriter
19891 fancyhdr
19892 \family default
19893  package:
19894 \end_layout
19895
19896 \begin_layout Itemize
19897
19898 \change_inserted 564990737 1672236008
19899
19900 \family sans
19901 \lang american
19902 Left Header
19903 \end_layout
19904
19905 \begin_layout Itemize
19906
19907 \change_inserted 564990737 1672236008
19908
19909 \family sans
19910 \lang american
19911 Center Header
19912 \end_layout
19913
19914 \begin_layout Itemize
19915
19916 \change_inserted 564990737 1672236008
19917
19918 \family sans
19919 \lang american
19920 Right Header
19921 \end_layout
19922
19923 \begin_layout Itemize
19924
19925 \change_inserted 564990737 1672236008
19926
19927 \family sans
19928 \lang american
19929 Left Footer
19930 \end_layout
19931
19932 \begin_layout Itemize
19933
19934 \change_inserted 564990737 1672236008
19935
19936 \family sans
19937 \lang american
19938 Center Footer
19939 \end_layout
19940
19941 \begin_layout Itemize
19942
19943 \change_inserted 564990737 1672236008
19944
19945 \family sans
19946 \lang american
19947 Right Footer
19948 \end_layout
19949
19950 \begin_layout Subsubsection
19951
19952 \change_inserted 564990737 1672236008
19953
19954 \lang american
19955 Fancy Headers and Footers
19956 \end_layout
19957
19958 \begin_layout Standard
19959
19960 \change_inserted 564990737 1672236008
19961
19962 \lang american
19963 The default page layout is rather plain;
19964  for an 
19965 \begin_inset Flex Code
19966 status collapsed
19967
19968 \begin_layout Plain Layout
19969
19970 \change_inserted 564990737 1672236008
19971
19972 \lang american
19973 article
19974 \change_unchanged
19975
19976 \end_layout
19977
19978 \end_inset
19979
19980  document class,
19981  all you get is a centered page number at the bottom of the page.
19982  This document uses KOMA-script’s book class;
19983  so it appears to be a bit fancier.
19984  Once the 
19985 \family sans
19986 Page
19987 \begin_inset space ~
19988 \end_inset
19989
19990
19991 \bar under
19992 s
19993 \bar default
19994 tyle
19995 \family default
19996  in 
19997 \family sans
19998 \bar under
19999 D
20000 \bar default
20001 ocument\SpecialChar menuseparator
20002
20003 \bar under
20004 S
20005 \bar default
20006 ettings\SpecialChar menuseparator
20007 Page Layout
20008 \family default
20009  is set to 
20010 \begin_inset Quotes eld
20011 \end_inset
20012
20013 fancy
20014 \begin_inset Quotes erd
20015 \end_inset
20016
20017 ,
20018  you will find that the page header is divided into three fields,
20019  not surprisingly labeled 
20020 \begin_inset Quotes eld
20021 \end_inset
20022
20023 left
20024 \begin_inset Quotes erd
20025 \end_inset
20026
20027 ,
20028  
20029 \begin_inset Quotes eld
20030 \end_inset
20031
20032 center
20033 \begin_inset Quotes erd
20034 \end_inset
20035
20036 ,
20037  and 
20038 \begin_inset Quotes eld
20039 \end_inset
20040
20041 right
20042 \begin_inset Quotes erd
20043 \end_inset
20044
20045 .
20046  The footer is also divided into these three fields.
20047  The \SpecialChar LaTeX
20048  commands to set these fields in the simplest manner are 
20049 \family sans
20050
20051 \backslash
20052 lhead
20053 \family default
20054 ,
20055  
20056 \family sans
20057
20058 \backslash
20059 chead
20060 \family default
20061 ,
20062  
20063 \family sans
20064
20065 \backslash
20066 rhead
20067 \family default
20068 ,
20069  
20070 \family sans
20071
20072 \backslash
20073 lfoot
20074 \family default
20075 ,
20076  etc.
20077  Suppose you wish to put your name in the upper left hand corner of each page.
20078  Simply insert the following command in the preamble:
20079  
20080 \end_layout
20081
20082 \begin_layout Standard
20083
20084 \change_inserted 564990737 1672236008
20085
20086 \family sans
20087 \lang american
20088
20089 \backslash
20090 lhead
20091 \family default
20092 \series bold
20093 {
20094 \series default
20095 John Q.
20096  DocWriter
20097 \series bold
20098 }
20099 \end_layout
20100
20101 \begin_layout Standard
20102
20103 \change_inserted 564990737 1672236008
20104
20105 \lang american
20106 You will now see your name in the upper left.
20107  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,
20108  e.
20109 \begin_inset space \thinspace{}
20110 \end_inset
20111
20112 g.:
20113 \end_layout
20114
20115 \begin_layout Standard
20116
20117 \change_inserted 564990737 1672236008
20118
20119 \family sans
20120 \lang american
20121
20122 \backslash
20123 cfoot{}
20124 \end_layout
20125
20126 \begin_layout Standard
20127
20128 \change_inserted 564990737 1672236008
20129
20130 \lang american
20131 There is,
20132  however,
20133  an easier way to make simple changes.
20134  If you load the 
20135 \family sans
20136 \bar under
20137 D
20138 \bar default
20139 ocument\SpecialChar menuseparator
20140
20141 \bar under
20142 S
20143 \bar default
20144 ettings\SpecialChar menuseparator
20145 Modules\SpecialChar menuseparator
20146 Page Layout\SpecialChar menuseparator
20147 Custom Header/Footer Text
20148 \family default
20149  module,
20150  you will find you have six new environments corresponding to the six fields described above.
20151 \end_layout
20152
20153 \begin_layout Standard
20154
20155 \change_inserted 564990737 1672236008
20156
20157 \lang american
20158 Let's get really fancy:
20159  lets put the section number with the word 
20160 \begin_inset Quotes eld
20161 \end_inset
20162
20163 Section
20164 \begin_inset Quotes erd
20165 \end_inset
20166
20167  (e.
20168 \begin_inset space \thinspace{}
20169 \end_inset
20170
20171 g.
20172 \begin_inset space \space{}
20173 \end_inset
20174
20175 Section 3) in the upper left,
20176  the page number (e.
20177 \begin_inset space \thinspace{}
20178 \end_inset
20179
20180 g.
20181 \begin_inset space \space{}
20182 \end_inset
20183
20184 Page 4) in the upper right,
20185  your name in the lower left,
20186  and the date in the lower right.
20187  Use your newly enabled environments to add these entries:
20188 \end_layout
20189
20190 \begin_layout Standard
20191
20192 \change_inserted 564990737 1672236008
20193
20194 \lang american
20195 \begin_inset VSpace defskip
20196 \end_inset
20197
20198
20199 \end_layout
20200
20201 \begin_layout Standard
20202
20203 \change_inserted 564990737 1672236008
20204
20205 \color green
20206 \lang american
20207 Left
20208 \begin_inset space ~
20209 \end_inset
20210
20211 header:
20212
20213 \series bold
20214 \color inherit
20215  
20216 \series default
20217 Section
20218 \family typewriter
20219  
20220 \family sans
20221
20222 \backslash
20223 thesection
20224 \end_layout
20225
20226 \begin_layout Standard
20227
20228 \change_inserted 564990737 1672236008
20229
20230 \color green
20231 \lang american
20232 Center header:
20233 \end_layout
20234
20235 \begin_layout Standard
20236
20237 \change_inserted 564990737 1672236008
20238
20239 \color green
20240 \lang american
20241 Right header:
20242
20243 \color inherit
20244  Page
20245 \family typewriter
20246  
20247 \family sans
20248
20249 \backslash
20250 thepage
20251 \end_layout
20252
20253 \begin_layout Standard
20254
20255 \change_inserted 564990737 1672236008
20256
20257 \color green
20258 \lang american
20259 Left footer:
20260
20261 \color inherit
20262  John Q.
20263  DocWriter
20264 \end_layout
20265
20266 \begin_layout Standard
20267
20268 \change_inserted 564990737 1672236008
20269
20270 \color green
20271 \lang american
20272 Center footer:
20273 \end_layout
20274
20275 \begin_layout Standard
20276
20277 \change_inserted 564990737 1672236008
20278
20279 \color green
20280 \lang american
20281 Right footer:
20282
20283 \series bold
20284 \color inherit
20285  
20286 \family sans
20287 \series default
20288
20289 \backslash
20290 today
20291 \end_layout
20292
20293 \begin_layout Standard
20294
20295 \change_inserted 564990737 1672236008
20296
20297 \lang american
20298 \begin_inset VSpace defskip
20299 \end_inset
20300
20301
20302 \end_layout
20303
20304 \begin_layout Standard
20305
20306 \change_inserted 564990737 1672236008
20307
20308 \lang american
20309 Make sure you enter the commands 
20310 \family sans
20311
20312 \backslash
20313 thesection
20314 \family default
20315 ,
20316  
20317 \family sans
20318
20319 \backslash
20320 thepage
20321 \family default
20322  and 
20323 \family sans
20324
20325 \backslash
20326 today
20327 \family default
20328  as \SpecialChar TeX
20329  Code commands
20330 \series bold
20331 .
20332
20333 \series default
20334  The commands 
20335 \family sans
20336
20337 \backslash
20338 thesection
20339 \family default
20340  and 
20341 \family sans
20342
20343 \backslash
20344 thepage
20345 \family default
20346  access \SpecialChar LaTeX
20347 ’s section and page counters,
20348  and so print out the current section and page numbers.
20349  
20350 \family sans
20351
20352 \backslash
20353 today
20354 \family default
20355  simply prints out today’s date.
20356 \end_layout
20357
20358 \begin_layout Standard
20359
20360 \change_inserted 564990737 1672236008
20361
20362 \lang american
20363 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
20364  If you don't want one of the rules,
20365  set its thickness to 0.
20366  The header rule has a default thickness of 0.4pt,
20367  the footer rule is 0pt.
20368  For this you will need to use \SpecialChar TeX
20369  Code commands like 
20370 \end_layout
20371
20372 \begin_layout Standard
20373
20374 \change_inserted 564990737 1672236008
20375
20376 \family sans
20377 \lang american
20378
20379 \backslash
20380 renewcommand{
20381 \backslash
20382 headrulewidth}{0.4pt}
20383 \family default
20384  and 
20385 \end_layout
20386
20387 \begin_layout Standard
20388
20389 \change_inserted 564990737 1672236008
20390
20391 \family sans
20392 \lang american
20393
20394 \backslash
20395 renewcommand{
20396 \backslash
20397 footrulewidth}{0.4pt}
20398 \family default
20399  to set the thicknesses.
20400 \end_layout
20401
20402 \begin_layout Standard
20403
20404 \change_inserted 564990737 1672236008
20405
20406 \lang american
20407 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
20408  Code commands like 
20409 \family sans
20410
20411 \backslash
20412 thispagestyle{empty}
20413 \family default
20414 ,
20415  
20416 \family sans
20417
20418 \backslash
20419 thispagestyle{plain}
20420 \family default
20421 ,
20422  and 
20423 \family sans
20424
20425 \backslash
20426 thispagestyle{fancy}
20427 \family default
20428 .
20429  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
20430  code.
20431  In fact,
20432  title pages are marked as plain by default,
20433  while following pages are marked fancy when using the global fancy setting.
20434  
20435 \end_layout
20436
20437 \begin_layout Standard
20438
20439 \change_inserted 564990737 1672236008
20440
20441 \lang american
20442 If you want a header or footer to be on the outer side of a two sided document,
20443  you need to use something like:
20444 \end_layout
20445
20446 \begin_layout Standard
20447
20448 \change_inserted 564990737 1672236008
20449
20450 \family sans
20451 \lang american
20452 \begin_inset Flex Strong
20453 status collapsed
20454
20455 \begin_layout Plain Layout
20456
20457 \change_inserted 564990737 1672236008
20458
20459 \family sans
20460 \series medium
20461 \lang american
20462
20463 \backslash
20464 fancyfoot{}
20465 \change_unchanged
20466
20467 \end_layout
20468
20469 \end_inset
20470
20471
20472 \end_layout
20473
20474 \begin_layout Standard
20475
20476 \change_inserted 564990737 1672236008
20477
20478 \family sans
20479 \lang american
20480 \begin_inset Flex Strong
20481 status collapsed
20482
20483 \begin_layout Plain Layout
20484
20485 \change_inserted 564990737 1672236008
20486
20487 \family sans
20488 \series medium
20489 \lang american
20490
20491 \backslash
20492 fancyfoot[LE,RO]{
20493 \backslash
20494 thepage}
20495 \change_unchanged
20496
20497 \end_layout
20498
20499 \end_inset
20500
20501
20502 \end_layout
20503
20504 \begin_layout Standard
20505
20506 \change_inserted 564990737 1672236008
20507
20508 \lang american
20509 The first command clears all existing footers avoiding any conflicts with your new command.
20510 \end_layout
20511
20512 \begin_layout Standard
20513
20514 \change_inserted 564990737 1672236008
20515
20516 \lang american
20517 You can enter any of these commands,
20518  the simpler ones in any of your new environments,
20519  the more complex ones as \SpecialChar TeX
20520  Code commands,
20521  at any point in your document and they will take effect on the next page.
20522 \end_layout
20523
20524 \begin_layout Standard
20525
20526 \change_inserted 564990737 1672236008
20527
20528 \lang american
20529 As a final example,
20530  it is possible to include an image in the header or footer.
20531  Suppose you want to put a company logo in the upper left hand corner.
20532  You might try something like
20533 \end_layout
20534
20535 \begin_layout Standard
20536
20537 \change_inserted 564990737 1672236008
20538
20539 \family sans
20540 \lang american
20541
20542 \backslash
20543 lhead{
20544 \backslash
20545 resizebox{1in}{!}{
20546 \backslash
20547 includegraphics{logo.eps}}}
20548 \end_layout
20549
20550 \begin_layout Standard
20551 \noindent
20552
20553 \change_inserted 564990737 1672236008
20554
20555 \lang american
20556 (you may need to preface this with 
20557 \family sans
20558
20559 \backslash
20560 usepackage{graphics}
20561 \family default
20562  if you don't include graphics elsewhere in your document).
20563 \end_layout
20564
20565 \begin_layout Standard
20566
20567 \change_inserted 564990737 1672236008
20568
20569 \lang american
20570 For more information on fancy headers,
20571  you can get the 
20572 \begin_inset Flex Code
20573 status collapsed
20574
20575 \begin_layout Plain Layout
20576
20577 \change_inserted 564990737 1672236008
20578
20579 \lang american
20580 fancyhdr
20581 \change_unchanged
20582
20583 \end_layout
20584
20585 \end_inset
20586
20587  documentation from 
20588 \begin_inset CommandInset href
20589 LatexCommand href
20590 name "CTAN"
20591 target "http://www.ctan.org/pkg/fancyhdr"
20592 literal "false"
20593
20594 \end_inset
20595
20596 .
20597  
20598 \end_layout
20599
20600 \begin_layout Subsection
20601
20602 \change_inserted 564990737 1672236008
20603
20604 \lang american
20605 Landscape Document Parts
20606 \end_layout
20607
20608 \begin_layout Standard
20609
20610 \change_inserted 564990737 1672236008
20611
20612 \lang american
20613 This module outputs parts of the document in landscape mode using 
20614 \family sans
20615 Insert\SpecialChar menuseparator
20616 Custom Insets\SpecialChar menuseparator
20617 Landscape
20618 \family default
20619  or 
20620 \family sans
20621 Insert\SpecialChar menuseparator
20622 Custom Insets\SpecialChar menuseparator
20623 Landscape (Floating)
20624 \family default
20625 .
20626 \end_layout
20627
20628 \begin_layout Subsection
20629
20630 \change_inserted 564990737 1672236008
20631
20632 \lang american
20633 \begin_inset CommandInset label
20634 LatexCommand label
20635 name "sec:Multiple-Columns"
20636
20637 \end_inset
20638
20639 Multiple Columns
20640 \end_layout
20641
20642 \begin_layout Standard
20643
20644 \change_inserted 564990737 1672236008
20645
20646 \lang american
20647 This module uses the 
20648 \family sans
20649 multicol
20650 \family default
20651
20652 \begin_inset Index idx
20653 range none
20654 pageformat default
20655 status collapsed
20656
20657 \begin_layout Plain Layout
20658
20659 \change_inserted 564990737 1672236008
20660
20661 \lang american
20662 \SpecialChar LaTeX
20663 -packages !
20664  multicol
20665 \change_unchanged
20666
20667 \end_layout
20668
20669 \end_inset
20670
20671  package and is independent of the option 
20672 \family sans
20673 Two-
20674 \bar under
20675 c
20676 \bar default
20677 olumn document
20678 \family default
20679  in the 
20680 \family sans
20681 \bar under
20682 D
20683 \bar default
20684 ocument\SpecialChar menuseparator
20685
20686 \bar under
20687 S
20688 \bar default
20689 ettings\SpecialChar menuseparator
20690 Text
20691 \begin_inset space ~
20692 \end_inset
20693
20694 Layout
20695 \family default
20696  dialog.
20697  If you want to have two columns for the whole document,
20698  you are recommended to use the 
20699 \family sans
20700 Two-
20701 \bar under
20702 c
20703 \bar default
20704 olumn document
20705 \family default
20706  option.
20707  For all other cases use this module.
20708 \change_deleted 564990737 1672236008
20709
20710 \lang english
20711 Multiple Text Columns
20712 \end_layout
20713
20714 \begin_layout Standard
20715
20716 \change_deleted 564990737 1672236008
20717 This feature is independent of the option 
20718 \family sans
20719 Two-column document
20720 \family default
20721  in the document settings under 
20722 \family sans
20723 Text Layout
20724 \family default
20725 .
20726  If you want to have 2
20727 \begin_inset space ~
20728 \end_inset
20729
20730 columns for the whole document,
20731  it is recommended to use the 
20732 \family sans
20733 Two-column document
20734 \family default
20735  option.
20736  For all other cases use this feature.
20737 \end_layout
20738
20739 \begin_layout Standard
20740
20741 \change_deleted 564990737 1672236008
20742 To use multiple text columns in your document,
20743  you have to load the module 
20744 \family sans
20745 Multiple Columns
20746 \family default
20747  (menu 
20748 \family sans
20749 Document\SpecialChar menuseparator
20750 Settings\SpecialChar menuseparator
20751 Modules
20752 \family default
20753 ) and must have the \SpecialChar LaTeX
20754 -package 
20755 \begin_inset Flex Code
20756 status collapsed
20757
20758 \begin_layout Plain Layout
20759 multicol
20760 \end_layout
20761
20762 \end_inset
20763
20764  installed.
20765 \change_unchanged
20766
20767 \end_layout
20768
20769 \begin_layout Standard
20770 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
20771  Within the different columns you can use everything,
20772  with the limitation that for floats you need to 
20773 \change_deleted 564990737 1672236179
20774 use the float option 
20775 \family sans
20776 Span columns
20777 \change_inserted 564990737 1672236179
20778
20779 \family default
20780 \lang american
20781 check the option 
20782 \family sans
20783 \bar under
20784 S
20785 \bar default
20786 pan
20787 \begin_inset space ~
20788 \end_inset
20789
20790 columns
20791 \family default
20792  in 
20793 \family sans
20794 \bar under
20795 E
20796 \bar default
20797 dit\SpecialChar menuseparator
20798 Flo
20799 \bar under
20800 a
20801 \bar default
20802 t
20803 \begin_inset space ~
20804 \end_inset
20805
20806 Settings
20807 \change_unchanged
20808
20809 \family default
20810 \lang english
20811 .
20812 \end_layout
20813
20814 \begin_layout Subsubsection
20815 Basics
20816 \end_layout
20817
20818 \begin_layout Standard
20819 If you want to have 2
20820 \begin_inset space ~
20821 \end_inset
20822
20823 columns in your text,
20824  insert a multicolumn inset via the menu 
20825 \family sans
20826 Insert\SpecialChar menuseparator
20827 Custom
20828 \begin_inset space ~
20829 \end_inset
20830
20831 Insets\SpecialChar menuseparator
20832 Multiple
20833 \begin_inset space ~
20834 \end_inset
20835
20836 Columns
20837 \family default
20838  where the columns should start.
20839  Write all text that should be printed in 2
20840 \begin_inset space ~
20841 \end_inset
20842
20843 columns into this inset.
20844 \end_layout
20845
20846 \begin_layout Standard
20847 Here is an example:
20848 \end_layout
20849
20850 \begin_layout Standard
20851 \noindent
20852 \begin_inset Flex Multiple Columns
20853 status open
20854
20855 \begin_layout Plain Layout
20856 \noindent
20857
20858 \series bold
20859 \size small
20860 The Adventure of the Empty House
20861 \series default
20862
20863 \begin_inset Newline newline
20864 \end_inset
20865
20866 by Sir Arthur Conan Doyle
20867 \end_layout
20868
20869 \begin_layout Plain Layout
20870
20871 \size small
20872 It was in the spring of the year 1894 that all London was interested,
20873  and the fashionable world dismayed,
20874  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
20875  The public has already learned those particulars of the crime which came out in the police investigation,
20876  but a good deal was suppressed upon that occasion,
20877  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
20878  Only now,
20879  at the end of nearly ten years,
20880  am I allowed to supply those missing links which make up the whole of that remarkable chain.
20881  The crime was of interest in itself,
20882  but that interest was as nothing to me compared to the inconceivable sequel,
20883  which afforded me the greatest shock and surprise of any event in my adventurous life.
20884  Even now,
20885  after this long interval,
20886  I find myself thrilling as I think of it,
20887  and feeling once more that sudden flood of joy,
20888  amazement,
20889  and incredulity which utterly submerged my mind.
20890  Let me say to that public,
20891  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
20892  that they are not to blame me if I have not shared my knowledge with them,
20893  for I should have considered it my first duty to do so,
20894  had I not been barred by a positive prohibition from his own lips,
20895  which was only withdrawn upon the third of last month.
20896 \end_layout
20897
20898 \end_inset
20899
20900
20901 \end_layout
20902
20903 \begin_layout Standard
20904 To get 3 or more columns,
20905  set the cursor into the multicolumn inset and use the menu 
20906 \family sans
20907 Insert\SpecialChar menuseparator
20908 Number
20909 \begin_inset space ~
20910 \end_inset
20911
20912 of
20913 \begin_inset space ~
20914 \end_inset
20915
20916 Columns
20917 \family default
20918 .
20919  The number of the desired columns is written into that inset (for 3
20920 \begin_inset space ~
20921 \end_inset
20922
20923 columns write 
20924 \begin_inset Quotes eld
20925 \end_inset
20926
20927 3
20928 \begin_inset Quotes erd
20929 \end_inset
20930
20931 ).
20932 \begin_inset Newline newline
20933 \end_inset
20934
20935 Here is an example with 3
20936 \begin_inset space ~
20937 \end_inset
20938
20939 columns:
20940 \end_layout
20941
20942 \begin_layout Standard
20943 \begin_inset Flex Multiple Columns
20944 status open
20945
20946 \begin_layout Plain Layout
20947
20948 \size footnotesize
20949 \begin_inset Argument 1
20950 status open
20951
20952 \begin_layout Plain Layout
20953
20954 3
20955 \end_layout
20956
20957 \end_inset
20958
20959 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
20960  and that after his disappearance I never failed to read with care the various problems which came before the public.
20961  And I even attempted,
20962  more than once,
20963  for my own private satisfaction,
20964  to employ his methods in their solution,
20965  though with indifferent success.
20966  There was none,
20967  however,
20968  which appealed to me like this tragedy of Ronald Adair.
20969  As I read the evidence at the inquest,
20970  which led up to a verdict of willful murder against some person or persons unknown,
20971  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
20972  There were points about this strange business which would,
20973  I was sure,
20974  have specially appealed to him,
20975  and the efforts of the police would have been supplemented,
20976  or more probably anticipated,
20977  by the trained observation and the alert mind of the first criminal agent in Europe.
20978  All day,
20979  as I drove upon my round,
20980  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
20981  At the risk of telling a twice-told tale,
20982  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
20983 \end_layout
20984
20985 \end_inset
20986
20987
20988 \end_layout
20989
20990 \begin_layout Standard
20991 You can have up to 10
20992 \begin_inset space ~
20993 \end_inset
20994
20995 columns if you want to,
20996  but that might not be very pleasant for the readers of your document.
20997 \end_layout
20998
20999 \begin_layout Standard
21000
21001 \change_deleted 564990737 1672236245
21002 \begin_inset Newpage newpage
21003 \end_inset
21004
21005
21006 \change_unchanged
21007
21008 \end_layout
21009
21010 \begin_layout Subsubsection
21011 Columns inside Columns
21012 \end_layout
21013
21014 \begin_layout Standard
21015 You can also have columns inside columns:
21016 \end_layout
21017
21018 \begin_layout Standard
21019 \begin_inset Flex Multiple Columns
21020 status open
21021
21022 \begin_layout Plain Layout
21023
21024 \size footnotesize
21025 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
21026  at that time governor of one of the Australian colonies.
21027  Adair's mother had returned from Australia to undergo the operation for cataract,
21028  and she,
21029  her son Ronald,
21030  and her daughter Hilda were living together at 427 Park Lane.
21031 \end_layout
21032
21033 \begin_layout Plain Layout
21034 \begin_inset Flex Multiple Columns
21035 status open
21036
21037 \begin_layout Plain Layout
21038
21039 \size footnotesize
21040 The youth moved in the best society
21041 \begin_inset space ~
21042 \end_inset
21043
21044 – had,
21045  so far as was known,
21046  no enemies and no particular vices.
21047  He had been engaged to Miss Edith Woodley,
21048  of Carstairs,
21049  but the engagement had been broken off by mutual consent some months before,
21050  and there was no sign that it had left any very profound feeling behind it.
21051  For the rest {sic} the man's life moved in a narrow and conventional circle,
21052  for his habits were quiet and his nature unemotional.
21053  Yet it was upon this easy-going young aristocrat that death came,
21054  in most strange and unexpected form,
21055  between the hours of ten and eleven-twenty on the night of March 30,
21056  1894.
21057 \end_layout
21058
21059 \end_inset
21060
21061
21062 \end_layout
21063
21064 \begin_layout Plain Layout
21065
21066 \size footnotesize
21067 Ronald Adair was fond of cards
21068 \begin_inset space ~
21069 \end_inset
21070
21071 – playing continually,
21072  but never for such stakes as would hurt him.
21073  He was a member of the Baldwin,
21074  the Cavendish,
21075  and the Bagatelle card clubs.
21076  It was shown that,
21077  after dinner on the day of his death,
21078  he had played a rubber of whist at the latter club.
21079  He had also played there in the afternoon.
21080
21081 \size default
21082  
21083 \size footnotesize
21084 The evidence of those who had played with him
21085 \begin_inset space ~
21086 \end_inset
21087
21088 – Mr.
21089  Murray,
21090  Sir John Hardy,
21091  and Colonel Moran
21092 \begin_inset space ~
21093 \end_inset
21094
21095 – showed that the game was whist,
21096  and that there was a fairly equal fall of the cards.
21097  Adair might have lost five pounds,
21098  but not more.
21099  His fortune was a considerable one,
21100  and such a loss could not in any way affect him.
21101  He had played nearly every day at one club or other,
21102  but he was a cautious player,
21103  and usually rose a winner.
21104  It came out in evidence that,
21105  in partnership with Colonel Moran,
21106  he had actually won as much as four hundred and twenty pounds in a sitting,
21107  some weeks before,
21108  from Godfrey Milner and Lord Balmoral.
21109  So much for his recent history as it came out at the inquest.
21110 \end_layout
21111
21112 \end_inset
21113
21114
21115 \end_layout
21116
21117 \begin_layout Subsubsection
21118 Advanced Examples
21119 \end_layout
21120
21121 \begin_layout Standard
21122 The examples in this section show some more special features of multiple columns.
21123 \end_layout
21124
21125 \begin_layout Standard
21126 For more features of multiple columns,
21127  have a look at the 
21128 \begin_inset CommandInset href
21129 LatexCommand href
21130 name "documentation"
21131 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
21132 literal "false"
21133
21134 \end_inset
21135
21136  of the \SpecialChar LaTeX
21137 -package 
21138 \begin_inset Flex Code
21139 status collapsed
21140
21141 \begin_layout Plain Layout
21142 multicol
21143 \end_layout
21144
21145 \end_inset
21146
21147 .
21148 \end_layout
21149
21150 \begin_layout Paragraph
21151 Preface
21152 \end_layout
21153
21154 \begin_layout Standard
21155 To add a preface text for multiple columns,
21156  set the cursor into the multicolumn inset and use the menu 
21157 \family sans
21158 Insert\SpecialChar menuseparator
21159 Preface
21160 \family default
21161 .
21162  Write your preface text into that inset.
21163 \begin_inset Newline newline
21164 \end_inset
21165
21166 This is an example with some preface text:
21167 \end_layout
21168
21169 \begin_layout Standard
21170 \begin_inset VSpace bigskip
21171 \end_inset
21172
21173
21174 \end_layout
21175
21176 \begin_layout Standard
21177 \begin_inset Flex Multiple Columns
21178 status open
21179
21180 \begin_layout Plain Layout
21181 \begin_inset Argument 2
21182 status open
21183
21184 \begin_layout Plain Layout
21185 And the story continues and continues and continues and continues\SpecialChar ldots
21186
21187 \end_layout
21188
21189 \end_inset
21190
21191
21192 \size small
21193 On the evening of the crime,
21194  he returned from the club exactly at ten.
21195  His mother and sister were out spending the evening with a relation.
21196  The servant deposed that she heard him enter the front room on the second floor,
21197  generally used as his sitting-room.
21198  She had lit a fire there,
21199  and as it smoked she had opened the window.
21200  No sound was heard from the room until eleven-twenty,
21201  the hour of the return of Lady Maynooth and her daughter.
21202  Desiring to say good-night,
21203  she attempted to enter her son's room.
21204  The door was locked on the inside,
21205  and no answer could be got to their cries and knocking.
21206  Help was obtained,
21207  and the door forced.
21208  The unfortunate young man was found lying near the table.
21209  His head had been horribly mutilated by an expanding revolver bullet,
21210  but no weapon of any sort was to be found in the room.
21211 \end_layout
21212
21213 \end_inset
21214
21215
21216 \end_layout
21217
21218 \begin_layout Standard
21219 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
21220  Code.
21221  For example the command
21222 \end_layout
21223
21224 \begin_layout LyX-Code
21225
21226 \backslash
21227 subsection{subsection title}
21228 \end_layout
21229
21230 \begin_layout Standard
21231 creates a subsection.
21232  In this example the preface is a subsubsection:
21233 \end_layout
21234
21235 \begin_layout Standard
21236 \begin_inset Flex Multiple Columns
21237 status open
21238
21239 \begin_layout Plain Layout
21240 \begin_inset Argument 2
21241 status open
21242
21243 \begin_layout Plain Layout
21244 \begin_inset ERT
21245 status collapsed
21246
21247 \begin_layout Plain Layout
21248
21249
21250 \backslash
21251 subsubsection{
21252 \end_layout
21253
21254 \end_inset
21255
21256 This is a subsubsection heading as a preface
21257 \begin_inset ERT
21258 status collapsed
21259
21260 \begin_layout Plain Layout
21261
21262 }
21263 \end_layout
21264
21265 \end_inset
21266
21267
21268 \end_layout
21269
21270 \end_inset
21271
21272
21273 \size small
21274 A minute examination of the circumstances served only to make the case more complex.
21275  In the first place,
21276  no reason could be given why the young man should have fastened the door upon the inside.
21277  There was the possibility that the murderer had done this,
21278  and had afterwards escaped by the window.
21279  The drop was at least twenty feet,
21280  however,
21281  and a bed of crocuses in full bloom lay beneath.
21282  Neither the flowers nor the earth showed any sign of having been disturbed,
21283  nor were there any marks upon the narrow strip of grass which separated the house from the road.
21284  Apparently,
21285  therefore,
21286  it was the young man himself who had fastened the door.
21287  But how did he come by his death?
21288  No one could have climbed up to the window without leaving traces.
21289  Suppose a man had fired through the window,
21290  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
21291  Again,
21292  Park Lane is a frequented thoroughfare;
21293  there is a cab stand within a hundred yards of the house.
21294  No one had heard a shot.
21295 \end_layout
21296
21297 \end_inset
21298
21299
21300 \end_layout
21301
21302 \begin_layout Standard
21303 If there is less vertical space than 6
21304 \begin_inset space ~
21305 \end_inset
21306
21307 text lines is left on the page at the beginning of the multiple columns,
21308  a page break will be inserted before the multiple columns.
21309  Depending on the number of lines of the preface text,
21310  you might want to change this space.
21311  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
21312 \family sans
21313 Insert\SpecialChar menuseparator
21314 Space
21315 \begin_inset space ~
21316 \end_inset
21317
21318 Before
21319 \begin_inset space ~
21320 \end_inset
21321
21322 Page
21323 \begin_inset space ~
21324 \end_inset
21325
21326 Break
21327 \family default
21328 .
21329  Insert into that inset the amount of space like e.
21330 \begin_inset space \thinspace{}
21331 \end_inset
21332
21333 g.
21334 \begin_inset space \space{}
21335 \end_inset
21336
21337
21338 \begin_inset Quotes eld
21339 \end_inset
21340
21341 5cm
21342 \begin_inset Quotes erd
21343 \end_inset
21344
21345 .
21346 \begin_inset Newline newline
21347 \end_inset
21348
21349 In this example the space is set to 7
21350 \begin_inset space ~
21351 \end_inset
21352
21353 text lines by using 
21354 \begin_inset Flex Code
21355 status collapsed
21356
21357 \begin_layout Plain Layout
21358 7
21359 \backslash
21360 baselineskip
21361 \end_layout
21362
21363 \end_inset
21364
21365  (where the command 
21366 \begin_inset Flex Code
21367 status collapsed
21368
21369 \begin_layout Plain Layout
21370
21371 \backslash
21372 baselineskip
21373 \end_layout
21374
21375 \end_inset
21376
21377  needs to be inserted as \SpecialChar TeX
21378  code):
21379 \end_layout
21380
21381 \begin_layout Standard
21382 \begin_inset Flex Multiple Columns
21383 status open
21384
21385 \begin_layout Plain Layout
21386 \begin_inset Argument 3
21387 status open
21388
21389 \begin_layout Plain Layout
21390 7
21391 \begin_inset ERT
21392 status collapsed
21393
21394 \begin_layout Plain Layout
21395
21396
21397 \backslash
21398 baselineskip
21399 \end_layout
21400
21401 \end_inset
21402
21403
21404 \end_layout
21405
21406 \end_inset
21407
21408
21409 \size small
21410 On the evening of the crime,
21411  he returned from the club exactly at ten.
21412  His mother and sister were out spending the evening with a relation.
21413  The servant deposed that she heard him enter the front room on the second floor,
21414  generally used as his sitting-room.
21415  She had lit a fire there,
21416  and as it smoked she had opened the window.
21417  No sound was heard from the room until eleven-twenty,
21418  the hour of the return of Lady Maynooth and her daughter.
21419  Desiring to say good-night,
21420  she attempted to enter her son's room.
21421  The door was locked on the inside,
21422  and no answer could be got to their cries and knocking.
21423  Help was obtained,
21424  and the door forced.
21425  The unfortunate young man was found lying near the table.
21426  His head had been horribly mutilated by an expanding revolver bullet,
21427  but no weapon of any sort was to be found in the room.
21428 \end_layout
21429
21430 \end_inset
21431
21432
21433 \end_layout
21434
21435 \begin_layout Paragraph
21436 Surrounding Space
21437 \end_layout
21438
21439 \begin_layout Standard
21440 The amount of space before and after multiple columns can be changed by changing the length 
21441 \begin_inset Flex Code
21442 status collapsed
21443
21444 \begin_layout Plain Layout
21445
21446 \backslash
21447 multicolsep
21448 \end_layout
21449
21450 \end_inset
21451
21452 .
21453  For example the command
21454 \end_layout
21455
21456 \begin_layout LyX-Code
21457
21458 \backslash
21459 setlength{
21460 \backslash
21461 multicolsep}{3cm}
21462 \end_layout
21463
21464 \begin_layout Standard
21465 in \SpecialChar TeX
21466  Code changes its value to 3
21467 \begin_inset space \thinspace{}
21468 \end_inset
21469
21470 cm.
21471  The change must be made before the multiple columns' start.
21472  The predefined value is 13
21473 \begin_inset space \thinspace{}
21474 \end_inset
21475
21476 pt.
21477 \end_layout
21478
21479 \begin_layout Standard
21480 For this example 
21481 \begin_inset Flex Code
21482 status collapsed
21483
21484 \begin_layout Plain Layout
21485
21486 \backslash
21487 multicolsep
21488 \end_layout
21489
21490 \end_inset
21491
21492  was set to 2.5
21493 \begin_inset space \thinspace{}
21494 \end_inset
21495
21496 cm:
21497 \end_layout
21498
21499 \begin_layout Standard
21500 \begin_inset ERT
21501 status open
21502
21503 \begin_layout Plain Layout
21504
21505
21506 \backslash
21507 setlength{
21508 \backslash
21509 multicolsep}{2.5cm}
21510 \end_layout
21511
21512 \end_inset
21513
21514
21515 \end_layout
21516
21517 \begin_layout Standard
21518 \begin_inset Flex Multiple Columns
21519 status open
21520
21521 \begin_layout Plain Layout
21522
21523 \size small
21524 All day I turned these facts over in my mind,
21525  endeavouring to hit upon some theory which could reconcile them all,
21526  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
21527  I confess that I made little progress.
21528  In the evening I strolled across the Park,
21529  and found myself about six o'clock at the Oxford Street end of Park Lane.
21530  A group of loafers upon the pavements,
21531  all staring up at a particular window,
21532  directed me to the house which I had come to see.
21533  A tall,
21534  thin man with coloured glasses,
21535  whom I strongly suspected of being a plain-clothes detective,
21536  was pointing out some theory of his own,
21537  while the others crowded round to listen to what he said.
21538  I got as near him as I could,
21539  but his observations seemed to me to be absurd,
21540  so I withdrew again in some disgust.
21541  As I did so I struck against an elderly,
21542  deformed man,
21543  who had been behind me,
21544  and I knocked down several books which he was carrying.
21545 \end_layout
21546
21547 \end_inset
21548
21549
21550 \end_layout
21551
21552 \begin_layout Standard
21553 \begin_inset Note Greyedout
21554 status open
21555
21556 \begin_layout Plain Layout
21557
21558 \series bold
21559 Note:
21560
21561 \series default
21562  The values you set with 
21563 \begin_inset Flex Code
21564 status collapsed
21565
21566 \begin_layout Plain Layout
21567
21568 \backslash
21569 setlength
21570 \end_layout
21571
21572 \end_inset
21573
21574  will be used for all following multiple columns until you change them again.
21575 \end_layout
21576
21577 \end_inset
21578
21579
21580 \end_layout
21581
21582 \begin_layout Standard
21583 \begin_inset ERT
21584 status collapsed
21585
21586 \begin_layout Plain Layout
21587
21588
21589 \backslash
21590 setlength{
21591 \backslash
21592 multicolsep}{13pt}
21593 \end_layout
21594
21595 \end_inset
21596
21597
21598 \begin_inset Note Note
21599 status collapsed
21600
21601 \begin_layout Plain Layout
21602 go back to the default
21603 \end_layout
21604
21605 \end_inset
21606
21607
21608 \end_layout
21609
21610 \begin_layout Standard
21611
21612 \change_deleted 564990737 1672236355
21613 \begin_inset Newpage newpage
21614 \end_inset
21615
21616
21617 \change_unchanged
21618
21619 \end_layout
21620
21621 \begin_layout Paragraph
21622 Column Breaks
21623 \end_layout
21624
21625 \begin_layout Standard
21626 A column break can be forced by inserting the command 
21627 \begin_inset Flex Code
21628 status collapsed
21629
21630 \begin_layout Plain Layout
21631
21632 \backslash
21633 columnbreak{}
21634 \end_layout
21635
21636 \end_inset
21637
21638  as \SpecialChar TeX
21639  Code to that position in the text where the column should be broken.
21640  Note that this leads in most cases to whitespace in the text.
21641 \begin_inset Newline newline
21642 \end_inset
21643
21644 Here is an example:
21645 \end_layout
21646
21647 \begin_layout Standard
21648 \begin_inset Flex Multiple Columns
21649 status open
21650
21651 \begin_layout Plain Layout
21652
21653 \size small
21654 \begin_inset Quotes eld
21655 \end_inset
21656
21657 You're surprised to see me,
21658  sir,
21659 \begin_inset Quotes erd
21660 \end_inset
21661
21662  said he,
21663  in a strange,
21664  croaking voice.
21665 \end_layout
21666
21667 \begin_layout Plain Layout
21668
21669 \size small
21670 I acknowledged that I was.
21671 \end_layout
21672
21673 \begin_layout Plain Layout
21674
21675 \size small
21676 \begin_inset Quotes eld
21677 \end_inset
21678
21679 Well,
21680  I've a conscience,
21681  sir,
21682  and when I chanced to see you go into this house,
21683  as I came hobbling after you,
21684  I thought to myself,
21685  I'll just step in and see that kind gentleman,
21686  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21687  and that I am much obliged to him for picking up my books.
21688 \begin_inset Quotes erd
21689 \end_inset
21690
21691
21692 \end_layout
21693
21694 \begin_layout Plain Layout
21695
21696 \size small
21697 \begin_inset Quotes eld
21698 \end_inset
21699
21700 You make too much of a trifle,
21701 \begin_inset Quotes erd
21702 \end_inset
21703
21704  said I.
21705  
21706 \begin_inset Quotes eld
21707 \end_inset
21708
21709 May I ask how you knew who I was?
21710 \begin_inset Quotes erd
21711 \end_inset
21712
21713  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
21714 \begin_inset ERT
21715 status collapsed
21716
21717 \begin_layout Plain Layout
21718
21719
21720 \backslash
21721 columnbreak{}
21722 \end_layout
21723
21724 \end_inset
21725
21726
21727 \end_layout
21728
21729 \begin_layout Plain Layout
21730
21731 \size small
21732 \begin_inset Quotes eld
21733 \end_inset
21734
21735 Well,
21736  sir,
21737  if it isn't too great a liberty,
21738  I am a neighbour of yours,
21739  for you'll find my little bookshop at the corner of Church Street,
21740  and very happy to see you,
21741  I am sure.
21742  Maybe you collect yourself,
21743  sir.
21744  Here's 
21745 \noun on
21746 British
21747 \begin_inset space ~
21748 \end_inset
21749
21750 Birds
21751 \noun default
21752 ,
21753  and 
21754 \noun on
21755 Catullus
21756 \noun default
21757 ,
21758  and 
21759 \noun on
21760 The Holy War
21761 \noun default
21762
21763 \begin_inset space ~
21764 \end_inset
21765
21766 – a bargain,
21767  every one of them.
21768  With five volumes you could just fill that gap on that second shelf.
21769  It looks untidy,
21770  does it not,
21771  sir?
21772 \begin_inset Quotes erd
21773 \end_inset
21774
21775
21776 \end_layout
21777
21778 \end_inset
21779
21780
21781 \end_layout
21782
21783 \begin_layout Paragraph
21784 Column Separation
21785 \end_layout
21786
21787 \begin_layout Standard
21788 The width of the columns is automatically calculated,
21789  but you can modify the space between the columns.
21790  This is done by changing the length 
21791 \begin_inset Flex Code
21792 status collapsed
21793
21794 \begin_layout Plain Layout
21795
21796 \backslash
21797 columnsep
21798 \end_layout
21799
21800 \end_inset
21801
21802 .
21803  Its predefined value is 10
21804 \begin_inset space \thinspace{}
21805 \end_inset
21806
21807 pt.
21808  Here is an example where 
21809 \begin_inset Flex Code
21810 status collapsed
21811
21812 \begin_layout Plain Layout
21813
21814 \backslash
21815 columnsep
21816 \end_layout
21817
21818 \end_inset
21819
21820  is set to 3
21821 \begin_inset space \thinspace{}
21822 \end_inset
21823
21824 cm:
21825 \end_layout
21826
21827 \begin_layout Standard
21828 \begin_inset ERT
21829 status open
21830
21831 \begin_layout Plain Layout
21832
21833
21834 \backslash
21835 setlength{
21836 \backslash
21837 columnsep}{3cm}
21838 \end_layout
21839
21840 \end_inset
21841
21842
21843 \end_layout
21844
21845 \begin_layout Standard
21846 \begin_inset Flex Multiple Columns
21847 status open
21848
21849 \begin_layout Plain Layout
21850
21851 \size small
21852 My observations of No.
21853 \begin_inset space \space{}
21854 \end_inset
21855
21856 427 Park Lane did little to clear up the problem in which I was interested.
21857  The house was separated from the street by a low wall and railing,
21858  the whole not more than five feet high.
21859  It was perfectly easy,
21860  therefore,
21861  for anyone to get into the garden,
21862  but the window was entirely inaccessible,
21863  since there was no water pipe or anything which could help the most active man to climb it.
21864  More puzzled than ever,
21865  I retraced my steps to Kensington.
21866  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
21867  To my astonishment it was none other than my strange old book collector,
21868  his sharp,
21869  wizened face peering out from a frame of white hair,
21870  and his precious volumes,
21871  a dozen of them at least,
21872  wedged under his right arm.
21873 \end_layout
21874
21875 \end_inset
21876
21877
21878 \end_layout
21879
21880 \begin_layout Standard
21881 \begin_inset ERT
21882 status collapsed
21883
21884 \begin_layout Plain Layout
21885
21886
21887 \backslash
21888 setlength{
21889 \backslash
21890 columnsep}{10pt}
21891 \end_layout
21892
21893 \end_inset
21894
21895
21896 \begin_inset Note Note
21897 status collapsed
21898
21899 \begin_layout Plain Layout
21900 go back to the default
21901 \end_layout
21902
21903 \end_inset
21904
21905
21906 \end_layout
21907
21908 \begin_layout Paragraph
21909 Vertical Lines
21910 \end_layout
21911
21912 \begin_layout Standard
21913 Between the columns a rule with a width of the length 
21914 \begin_inset Flex Code
21915 status collapsed
21916
21917 \begin_layout Plain Layout
21918
21919 \backslash
21920 columnseprule
21921 \end_layout
21922
21923 \end_inset
21924
21925  is placed.
21926  If this rule width is set to 0
21927 \begin_inset space \thinspace{}
21928 \end_inset
21929
21930 pt (this is the default),
21931  the rule is suppressed.
21932  In the following example the rule is 2
21933 \begin_inset space \thinspace{}
21934 \end_inset
21935
21936 pt wide:
21937 \end_layout
21938
21939 \begin_layout Standard
21940 \begin_inset ERT
21941 status open
21942
21943 \begin_layout Plain Layout
21944
21945
21946 \backslash
21947 setlength{
21948 \backslash
21949 columnseprule}{2pt}
21950 \end_layout
21951
21952 \end_inset
21953
21954
21955 \end_layout
21956
21957 \begin_layout Standard
21958 \begin_inset Flex Multiple Columns
21959 status open
21960
21961 \begin_layout Plain Layout
21962
21963 \size small
21964 \begin_inset Quotes eld
21965 \end_inset
21966
21967 You're surprised to see me,
21968  sir,
21969 \begin_inset Quotes erd
21970 \end_inset
21971
21972  said he,
21973  in a strange,
21974  croaking voice.
21975 \end_layout
21976
21977 \begin_layout Plain Layout
21978
21979 \size small
21980 I acknowledged that I was.
21981 \end_layout
21982
21983 \begin_layout Plain Layout
21984
21985 \size small
21986 \begin_inset Quotes eld
21987 \end_inset
21988
21989 Well,
21990  I've a conscience,
21991  sir,
21992  and when I chanced to see you go into this house,
21993  as I came hobbling after you,
21994  I thought to myself,
21995  I'll just step in and see that kind gentleman,
21996  and tell him that if I was a bit gruff in my manner there was not any harm meant,
21997  and that I am much obliged to him for picking up my books.
21998 \begin_inset Quotes erd
21999 \end_inset
22000
22001
22002 \end_layout
22003
22004 \begin_layout Plain Layout
22005
22006 \size small
22007 \begin_inset Quotes eld
22008 \end_inset
22009
22010 You make too much of a trifle,
22011 \begin_inset Quotes erd
22012 \end_inset
22013
22014  said I.
22015  
22016 \begin_inset Quotes eld
22017 \end_inset
22018
22019 May I ask how you knew who I was?
22020 \begin_inset Quotes erd
22021 \end_inset
22022
22023
22024 \end_layout
22025
22026 \begin_layout Plain Layout
22027
22028 \size small
22029 \begin_inset Quotes eld
22030 \end_inset
22031
22032 Well,
22033  sir,
22034  if it isn't too great a liberty,
22035  I am a neighbour of yours,
22036  for you'll find my little bookshop at the corner of Church Street,
22037  and very happy to see you,
22038  I am sure.
22039  Maybe you collect yourself,
22040  sir.
22041  Here's 
22042 \noun on
22043 British
22044 \begin_inset space ~
22045 \end_inset
22046
22047 Birds
22048 \noun default
22049 ,
22050  and 
22051 \noun on
22052 Catullus
22053 \noun default
22054 ,
22055  and 
22056 \noun on
22057 The Holy War
22058 \noun default
22059
22060 \begin_inset space ~
22061 \end_inset
22062
22063 – a bargain,
22064  every one of them.
22065  With five volumes you could just fill that gap on that second shelf.
22066  It looks untidy,
22067  does it not,
22068  sir?
22069 \begin_inset Quotes erd
22070 \end_inset
22071
22072
22073 \end_layout
22074
22075 \end_inset
22076
22077
22078 \end_layout
22079
22080 \begin_layout Standard
22081 \begin_inset VSpace defskip
22082 \end_inset
22083
22084
22085 \end_layout
22086
22087 \begin_layout Standard
22088 The rule can be colored by redefining the command 
22089 \begin_inset Flex Code
22090 status collapsed
22091
22092 \begin_layout Plain Layout
22093
22094 \backslash
22095 columnseprulecolor
22096 \end_layout
22097
22098 \end_inset
22099
22100 .
22101  This is done by inserting the command
22102 \end_layout
22103
22104 \begin_layout LyX-Code
22105
22106 \backslash
22107 renewcommand{
22108 \backslash
22109 columnseprulecolor}{
22110 \backslash
22111 color{red}}
22112 \end_layout
22113
22114 \begin_layout Standard
22115 as \SpecialChar TeX
22116  Code before the multicolumn inset.
22117  Replace 
22118 \begin_inset Flex Code
22119 status collapsed
22120
22121 \begin_layout Plain Layout
22122 red
22123 \end_layout
22124
22125 \end_inset
22126
22127  in this command by a color of your choice.
22128  You can use all pre- and self-defined colors.
22129  See the 
22130 \emph on
22131 EmbeddedObjects
22132 \emph default
22133  manual,
22134  section 
22135 \emph on
22136 Colored
22137 \begin_inset space ~
22138 \end_inset
22139
22140 Tables
22141 \emph default
22142  for more information about pre- and self-defined colors.
22143  To go back to the default color insert the command
22144 \end_layout
22145
22146 \begin_layout LyX-Code
22147
22148 \backslash
22149 renewcommand{
22150 \backslash
22151 columnseprulecolor}{
22152 \backslash
22153 normalcolor}
22154 \end_layout
22155
22156 \begin_layout Standard
22157 Here is the example with a cyan rule and 1
22158 \begin_inset space \thinspace{}
22159 \end_inset
22160
22161 cm column separation:
22162 \end_layout
22163
22164 \begin_layout Standard
22165 \begin_inset ERT
22166 status open
22167
22168 \begin_layout Plain Layout
22169
22170
22171 \backslash
22172 setlength{
22173 \backslash
22174 columnsep}{1cm}
22175 \end_layout
22176
22177 \begin_layout Plain Layout
22178
22179
22180 \backslash
22181 renewcommand{
22182 \backslash
22183 columnseprulecolor}{
22184 \backslash
22185 color{cyan}}
22186 \end_layout
22187
22188 \end_inset
22189
22190
22191 \end_layout
22192
22193 \begin_layout Standard
22194 \begin_inset Flex Multiple Columns
22195 status open
22196
22197 \begin_layout Plain Layout
22198
22199 \size small
22200 \begin_inset Quotes eld
22201 \end_inset
22202
22203 You're surprised to see me,
22204  sir,
22205 \begin_inset Quotes erd
22206 \end_inset
22207
22208  said he,
22209  in a strange,
22210  croaking voice.
22211 \end_layout
22212
22213 \begin_layout Plain Layout
22214
22215 \size small
22216 I acknowledged that I was.
22217 \end_layout
22218
22219 \begin_layout Plain Layout
22220
22221 \size small
22222 \begin_inset Quotes eld
22223 \end_inset
22224
22225 Well,
22226  I've a conscience,
22227  sir,
22228  and when I chanced to see you go into this house,
22229  as I came hobbling after you,
22230  I thought to myself,
22231  I'll just step in and see that kind gentleman,
22232  and tell him that if I was a bit gruff in my manner there was not any harm meant,
22233  and that I am much obliged to him for picking up my books.
22234 \begin_inset Quotes erd
22235 \end_inset
22236
22237
22238 \end_layout
22239
22240 \begin_layout Plain Layout
22241
22242 \size small
22243 \begin_inset Quotes eld
22244 \end_inset
22245
22246 You make too much of a trifle,
22247 \begin_inset Quotes erd
22248 \end_inset
22249
22250  said I.
22251  
22252 \begin_inset Quotes eld
22253 \end_inset
22254
22255 May I ask how you knew who I was?
22256 \begin_inset Quotes erd
22257 \end_inset
22258
22259
22260 \end_layout
22261
22262 \begin_layout Plain Layout
22263
22264 \size small
22265 \begin_inset Quotes eld
22266 \end_inset
22267
22268 Well,
22269  sir,
22270  if it isn't too great a liberty,
22271  I am a neighbour of yours,
22272  for you'll find my little bookshop at the corner of Church Street,
22273  and very happy to see you,
22274  I am sure.
22275  Maybe you collect yourself,
22276  sir.
22277  Here's 
22278 \noun on
22279 British
22280 \begin_inset space ~
22281 \end_inset
22282
22283 Birds
22284 \noun default
22285 ,
22286  and 
22287 \noun on
22288 Catullus
22289 \noun default
22290 ,
22291  and 
22292 \noun on
22293 The Holy War
22294 \noun default
22295
22296 \begin_inset space ~
22297 \end_inset
22298
22299 – a bargain,
22300  every one of them.
22301  With five volumes you could just fill that gap on that second shelf.
22302  It looks untidy,
22303  does it not,
22304  sir?
22305 \begin_inset Quotes erd
22306 \end_inset
22307
22308
22309 \end_layout
22310
22311 \end_inset
22312
22313
22314 \end_layout
22315
22316 \begin_layout Standard
22317 \begin_inset ERT
22318 status collapsed
22319
22320 \begin_layout Plain Layout
22321
22322
22323 \backslash
22324 setlength{
22325 \backslash
22326 columnseprule}{0pt}
22327 \end_layout
22328
22329 \begin_layout Plain Layout
22330
22331
22332 \backslash
22333 renewcommand{
22334 \backslash
22335 columnseprulecolor}{
22336 \backslash
22337 normalcolor}
22338 \end_layout
22339
22340 \end_inset
22341
22342
22343 \begin_inset Note Note
22344 status collapsed
22345
22346 \begin_layout Plain Layout
22347 go back to the default
22348 \end_layout
22349
22350 \end_inset
22351
22352
22353 \end_layout
22354
22355 \begin_layout Section
22356
22357 \change_inserted 564990737 1671270380
22358 Paragraph Styles
22359 \end_layout
22360
22361 \begin_layout Subsection
22362
22363 \change_inserted 564990737 1671270398
22364 Custom
22365 \change_deleted 564990737 1671270396
22366 Non-standard
22367 \change_unchanged
22368  Paragraph Shapes
22369 \end_layout
22370
22371 \begin_layout Standard
22372 \noindent
22373 \SpecialChar LaTeX
22374  as well as any other text processor uses by default rectangular paragraphs.
22375  For special cases like for example posters,
22376  invitation cards or poems you can modify the paragraph shape to one of your choice.
22377  
22378 \change_deleted 564990737 1672311802
22379 This can be done by using the \SpecialChar LaTeX
22380 -package 
22381 \begin_inset Flex Code
22382 status collapsed
22383
22384 \begin_layout Plain Layout
22385 shapepar
22386 \end_layout
22387
22388 \end_inset
22389
22390  which is loaded by using in the document settings the module 
22391 \family sans
22392 Custom paragraph shapes
22393 \family default
22394 .
22395 \change_inserted 564990737 1672311802
22396
22397 \lang american
22398 This module uses the 
22399 \family sans
22400 shapepar
22401 \family default
22402  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
22403  
22404 \change_unchanged
22405
22406 \end_layout
22407
22408 \begin_layout Subsubsection
22409 Predefined shapes
22410 \end_layout
22411
22412 \begin_layout Standard
22413
22414 \series bold
22415 shapepar
22416 \series default
22417  provides the following shapes:
22418 \end_layout
22419
22420 \begin_layout Standard
22421 \begin_inset Tabular
22422 <lyxtabular version="3" rows="13" columns="3">
22423 <features booktabs="true" islongtable="true" longtabularalignment="center">
22424 <column alignment="left" valignment="middle" width="16col%">
22425 <column alignment="left" valignment="middle" width="40col%">
22426 <column alignment="left" valignment="middle" width="35col%">
22427 <row endhead="true">
22428 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22429 \begin_inset Text
22430
22431 \begin_layout Plain Layout
22432
22433 \series bold
22434 \size small
22435 Name
22436 \end_layout
22437
22438 \end_inset
22439 </cell>
22440 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
22441 \begin_inset Text
22442
22443 \begin_layout Plain Layout
22444
22445 \series bold
22446 \size small
22447 Description
22448 \end_layout
22449
22450 \end_inset
22451 </cell>
22452 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
22453 \begin_inset Text
22454
22455 \begin_layout Plain Layout
22456
22457 \series bold
22458 \size small
22459 Annotation
22460 \end_layout
22461
22462 \end_inset
22463 </cell>
22464 </row>
22465 <row interlinespace="default">
22466 <cell alignment="left" valignment="top" usebox="none">
22467 \begin_inset Text
22468
22469 \begin_layout Plain Layout
22470
22471 \size small
22472 CDlabel
22473 \end_layout
22474
22475 \end_inset
22476 </cell>
22477 <cell alignment="left" valignment="top" usebox="none">
22478 \begin_inset Text
22479
22480 \begin_layout Plain Layout
22481
22482 \size small
22483 Circle with circular hole (in the size of a CD/DVD)
22484 \end_layout
22485
22486 \end_inset
22487 </cell>
22488 <cell alignment="left" valignment="top" usebox="none">
22489 \begin_inset Text
22490
22491 \begin_layout Plain Layout
22492
22493 \size small
22494 Cannot be scaled,
22495  take care there is not too much text
22496 \end_layout
22497
22498 \end_inset
22499 </cell>
22500 </row>
22501 <row interlinespace="default">
22502 <cell alignment="left" valignment="top" usebox="none">
22503 \begin_inset Text
22504
22505 \begin_layout Plain Layout
22506
22507 \size small
22508 Circle
22509 \end_layout
22510
22511 \end_inset
22512 </cell>
22513 <cell alignment="left" valignment="top" usebox="none">
22514 \begin_inset Text
22515
22516 \begin_layout Plain Layout
22517
22518 \size small
22519 Circle
22520 \end_layout
22521
22522 \end_inset
22523 </cell>
22524 <cell alignment="left" valignment="top" usebox="none">
22525 \begin_inset Text
22526
22527 \begin_layout Plain Layout
22528
22529 \size small
22530 Fragile,
22531  calculation might fail
22532 \end_layout
22533
22534 \end_inset
22535 </cell>
22536 </row>
22537 <row interlinespace="default">
22538 <cell alignment="left" valignment="top" usebox="none">
22539 \begin_inset Text
22540
22541 \begin_layout Plain Layout
22542
22543 \size small
22544 Diamond
22545 \end_layout
22546
22547 \end_inset
22548 </cell>
22549 <cell alignment="left" valignment="top" usebox="none">
22550 \begin_inset Text
22551
22552 \begin_layout Plain Layout
22553
22554 \size small
22555 Rhomboid (symbolizing a 
22556 \begin_inset Quotes eld
22557 \end_inset
22558
22559 diamond
22560 \begin_inset Quotes erd
22561 \end_inset
22562
22563 )
22564 \end_layout
22565
22566 \end_inset
22567 </cell>
22568 <cell alignment="left" valignment="top" usebox="none">
22569 \begin_inset Text
22570
22571 \begin_layout Plain Layout
22572
22573 \size small
22574 -
22575 \end_layout
22576
22577 \end_inset
22578 </cell>
22579 </row>
22580 <row interlinespace="default">
22581 <cell alignment="left" valignment="top" usebox="none">
22582 \begin_inset Text
22583
22584 \begin_layout Plain Layout
22585
22586 \size small
22587 Heart
22588 \end_layout
22589
22590 \end_inset
22591 </cell>
22592 <cell alignment="left" valignment="top" usebox="none">
22593 \begin_inset Text
22594
22595 \begin_layout Plain Layout
22596
22597 \size small
22598 Heart-like shape
22599 \end_layout
22600
22601 \end_inset
22602 </cell>
22603 <cell alignment="left" valignment="top" usebox="none">
22604 \begin_inset Text
22605
22606 \begin_layout Plain Layout
22607
22608 \size small
22609 -
22610 \end_layout
22611
22612 \end_inset
22613 </cell>
22614 </row>
22615 <row interlinespace="default">
22616 <cell alignment="left" valignment="top" usebox="none">
22617 \begin_inset Text
22618
22619 \begin_layout Plain Layout
22620
22621 \size small
22622 Hexagon
22623 \end_layout
22624
22625 \end_inset
22626 </cell>
22627 <cell alignment="left" valignment="top" usebox="none">
22628 \begin_inset Text
22629
22630 \begin_layout Plain Layout
22631
22632 \size small
22633 Hexagon
22634 \end_layout
22635
22636 \end_inset
22637 </cell>
22638 <cell alignment="left" valignment="top" usebox="none">
22639 \begin_inset Text
22640
22641 \begin_layout Plain Layout
22642
22643 \size small
22644 -
22645 \end_layout
22646
22647 \end_inset
22648 </cell>
22649 </row>
22650 <row interlinespace="default">
22651 <cell alignment="left" valignment="top" usebox="none">
22652 \begin_inset Text
22653
22654 \begin_layout Plain Layout
22655
22656 \size small
22657 Nut
22658 \end_layout
22659
22660 \end_inset
22661 </cell>
22662 <cell alignment="left" valignment="top" usebox="none">
22663 \begin_inset Text
22664
22665 \begin_layout Plain Layout
22666
22667 \size small
22668 Nut for bolt (hexagon with circular hole)
22669 \end_layout
22670
22671 \end_inset
22672 </cell>
22673 <cell alignment="left" valignment="top" usebox="none">
22674 \begin_inset Text
22675
22676 \begin_layout Plain Layout
22677
22678 \size small
22679 -
22680 \end_layout
22681
22682 \end_inset
22683 </cell>
22684 </row>
22685 <row interlinespace="default">
22686 <cell alignment="left" valignment="top" usebox="none">
22687 \begin_inset Text
22688
22689 \begin_layout Plain Layout
22690
22691 \size small
22692 Square
22693 \end_layout
22694
22695 \end_inset
22696 </cell>
22697 <cell alignment="left" valignment="top" usebox="none">
22698 \begin_inset Text
22699
22700 \begin_layout Plain Layout
22701
22702 \size small
22703 Square
22704 \end_layout
22705
22706 \end_inset
22707 </cell>
22708 <cell alignment="left" valignment="top" usebox="none">
22709 \begin_inset Text
22710
22711 \begin_layout Plain Layout
22712
22713 \size small
22714 -
22715 \end_layout
22716
22717 \end_inset
22718 </cell>
22719 </row>
22720 <row interlinespace="default">
22721 <cell alignment="left" valignment="top" usebox="none">
22722 \begin_inset Text
22723
22724 \begin_layout Plain Layout
22725
22726 \size small
22727 Star
22728 \end_layout
22729
22730 \end_inset
22731 </cell>
22732 <cell alignment="left" valignment="top" usebox="none">
22733 \begin_inset Text
22734
22735 \begin_layout Plain Layout
22736
22737 \size small
22738 Five-point star
22739 \end_layout
22740
22741 \end_inset
22742 </cell>
22743 <cell alignment="left" valignment="top" usebox="none">
22744 \begin_inset Text
22745
22746 \begin_layout Plain Layout
22747
22748 \size small
22749 -
22750 \end_layout
22751
22752 \end_inset
22753 </cell>
22754 </row>
22755 <row interlinespace="default">
22756 <cell alignment="left" valignment="top" usebox="none">
22757 \begin_inset Text
22758
22759 \begin_layout Plain Layout
22760
22761 \size small
22762 Candle
22763 \end_layout
22764
22765 \end_inset
22766 </cell>
22767 <cell alignment="left" valignment="top" usebox="none">
22768 \begin_inset Text
22769
22770 \begin_layout Plain Layout
22771
22772 \size small
22773 Burning candle
22774 \end_layout
22775
22776 \end_inset
22777 </cell>
22778 <cell alignment="left" valignment="top" usebox="none">
22779 \begin_inset Text
22780
22781 \begin_layout Plain Layout
22782
22783 \size small
22784 -
22785 \end_layout
22786
22787 \end_inset
22788 </cell>
22789 </row>
22790 <row interlinespace="default">
22791 <cell alignment="left" valignment="top" usebox="none">
22792 \begin_inset Text
22793
22794 \begin_layout Plain Layout
22795
22796 \size small
22797 Drop down/up
22798 \end_layout
22799
22800 \end_inset
22801 </cell>
22802 <cell alignment="left" valignment="top" usebox="none">
22803 \begin_inset Text
22804
22805 \begin_layout Plain Layout
22806
22807 \size small
22808 Normal/reversed rain drop
22809 \end_layout
22810
22811 \end_inset
22812 </cell>
22813 <cell alignment="left" valignment="top" usebox="none">
22814 \begin_inset Text
22815
22816 \begin_layout Plain Layout
22817
22818 \size small
22819 Fragile,
22820  calculation might fail
22821 \end_layout
22822
22823 \end_inset
22824 </cell>
22825 </row>
22826 <row interlinespace="default">
22827 <cell alignment="left" valignment="top" usebox="none">
22828 \begin_inset Text
22829
22830 \begin_layout Plain Layout
22831
22832 \size small
22833 \SpecialChar TeX
22834
22835 \end_layout
22836
22837 \end_inset
22838 </cell>
22839 <cell alignment="left" valignment="top" usebox="none">
22840 \begin_inset Text
22841
22842 \begin_layout Plain Layout
22843
22844 \size small
22845 The \SpecialChar TeX
22846  logo
22847 \end_layout
22848
22849 \end_inset
22850 </cell>
22851 <cell alignment="left" valignment="top" usebox="none">
22852 \begin_inset Text
22853
22854 \begin_layout Plain Layout
22855
22856 \size small
22857 -
22858 \end_layout
22859
22860 \end_inset
22861 </cell>
22862 </row>
22863 <row interlinespace="default">
22864 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
22865 \begin_inset Text
22866
22867 \begin_layout Plain Layout
22868
22869 \size small
22870 Triangle up/down/
22871 \begin_inset Newline newline
22872 \end_inset
22873
22874 left/right
22875 \end_layout
22876
22877 \end_inset
22878 </cell>
22879 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
22880 \begin_inset Text
22881
22882 \begin_layout Plain Layout
22883
22884 \size small
22885 Triangles in different orientations
22886 \end_layout
22887
22888 \end_inset
22889 </cell>
22890 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
22891 \begin_inset Text
22892
22893 \begin_layout Plain Layout
22894
22895 \size small
22896 -
22897 \end_layout
22898
22899 \end_inset
22900 </cell>
22901 </row>
22902 </lyxtabular>
22903
22904 \end_inset
22905
22906
22907 \end_layout
22908
22909 \begin_layout Standard
22910 To use a shape for your paragraph,
22911  simply select it in \SpecialChar LyX
22912 's pull-down box for environments in the toolbar.
22913 \end_layout
22914
22915 \begin_layout Standard
22916 \begin_inset Newpage newpage
22917 \end_inset
22918
22919
22920 \end_layout
22921
22922 \begin_layout Standard
22923 Here is an example paragraph in the shape of a nut:
22924 \end_layout
22925
22926 \begin_layout Standard
22927 \begin_inset VSpace bigskip
22928 \end_inset
22929
22930
22931 \end_layout
22932
22933 \begin_layout Nut
22934
22935 \lang latin
22936 Lorem ipsum dolor sit amet,
22937  consetetur sadipscing elitr,
22938  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22939  sed diam voluptua.
22940  At vero eos et accusam et justo duo dolores et ea rebum.
22941  Stet clita kasd gubergren,
22942  no sea takimata sanctus est Lorem ipsum dolor sit amet.
22943  Lorem ipsum dolor sit amet,
22944  consetetur sadipscing elitr,
22945  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
22946  sed diam voluptua.
22947 \end_layout
22948
22949 \begin_layout Standard
22950 \begin_inset VSpace bigskip
22951 \end_inset
22952
22953
22954 \end_layout
22955
22956 \begin_layout Standard
22957 \begin_inset Note Greyedout
22958 status open
22959
22960 \begin_layout Plain Layout
22961
22962 \series bold
22963 Note
22964 \series default
22965 :
22966  
22967 \family sans
22968 shapepar
22969 \family default
22970  paragraphs cannot run over a page break.
22971 \end_layout
22972
22973 \end_inset
22974
22975
22976 \end_layout
22977
22978 \begin_layout Standard
22979 \begin_inset VSpace bigskip
22980 \end_inset
22981
22982
22983 \end_layout
22984
22985 \begin_layout Standard
22986 The package 
22987 \begin_inset Flex Code
22988 status collapsed
22989
22990 \begin_layout Plain Layout
22991 shapepar
22992 \end_layout
22993
22994 \end_inset
22995
22996  takes care that the shape will always be preserved,
22997  no matter how much text is in the paragraph.
22998  Therefore the paragraph size changes with the amount of contained text.
22999  This can lead to paragraph sizes exceeding the page margins.
23000  To demonstrate the size scaling,
23001  here is the same example paragraph but with twice as much text:
23002 \end_layout
23003
23004 \begin_layout Standard
23005 \begin_inset Newpage newpage
23006 \end_inset
23007
23008
23009 \end_layout
23010
23011 \begin_layout Nut
23012
23013 \lang latin
23014 Lorem ipsum dolor sit amet,
23015  consetetur sadipscing elitr,
23016  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23017  sed diam voluptua.
23018  At vero eos et accusam et justo duo dolores et ea rebum.
23019  Stet clita kasd gubergren,
23020  no sea takimata sanctus est Lorem ipsum dolor sit amet.
23021  Lorem ipsum dolor sit amet,
23022  consetetur sadipscing elitr,
23023  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23024  sed diam voluptua.
23025  Lorem ipsum dolor sit amet,
23026  consetetur sadipscing elitr,
23027  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23028  sed diam voluptua.
23029  At vero eos et accusam et justo duo dolores et ea rebum.
23030  Stet clita kasd gubergren,
23031  no sea takimata sanctus est Lorem ipsum dolor sit amet.
23032  Lorem ipsum dolor sit amet,
23033  consetetur sadipscing elitr,
23034  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23035  sed diam voluptua.
23036 \end_layout
23037
23038 \begin_layout Standard
23039 \begin_inset VSpace bigskip
23040 \end_inset
23041
23042
23043 \end_layout
23044
23045 \begin_layout Standard
23046 An exception is the shape 
23047 \family sans
23048 CDlabel
23049 \family default
23050 .
23051  It cannot be scaled because it must fit the size of a CD/DVD.
23052  Therefore the amount of text that fits into the shape is limited.
23053 \begin_inset Newline newline
23054 \end_inset
23055
23056 The 
23057 \family sans
23058 drop
23059 \family default
23060  shapes and the 
23061 \family sans
23062 circle
23063 \family default
23064  shape are fragile,
23065  meaning that the calculation of their size can fail,
23066  depending on the amount of text.
23067  You will then get the \SpecialChar LaTeX
23068  error 
23069 \begin_inset Quotes eld
23070 \end_inset
23071
23072 Arithmetic overflow
23073 \begin_inset Quotes erd
23074 \end_inset
23075
23076 .
23077  In this case one can try to remove or add some text;
23078  if nothing works one has to use another shape.
23079 \end_layout
23080
23081 \begin_layout Standard
23082 \begin_inset VSpace bigskip
23083 \end_inset
23084
23085
23086 \end_layout
23087
23088 \begin_layout Standard
23089 For shapes with tips you will maybe see that \SpecialChar LaTeX
23090 's hyphenation routine fails for text in the tips.
23091  Therefore it is often necessary to add hyphenation points 
23092 \family sans
23093 (
23094 \begin_inset Info
23095 type  "shortcut"
23096 arg   "specialchar-insert hyphenation"
23097 \end_inset
23098
23099
23100 \family default
23101 ) to the corresponding text parts.
23102 \end_layout
23103
23104 \begin_layout Standard
23105 \begin_inset VSpace bigskip
23106 \end_inset
23107
23108
23109 \end_layout
23110
23111 \begin_layout Standard
23112 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
23113  You can therefore not use the paragraph dialog to align such paragraphs.
23114  A solution is to put the paragraph into a minipage or parbox and align the box.
23115  The problem is hereby to find the right width for the box.
23116  Because if it is too wide and you center the box,
23117  the paragraph is not centered too because it sticks at the left side of the box.
23118  So you might have to play a bit with the width until it fits.
23119  Here are two heart-shaped paragraphs,
23120  the first one is not aligned,
23121  the second one is right-aligned:
23122 \end_layout
23123
23124 \begin_layout Standard
23125 \begin_inset Newpage newpage
23126 \end_inset
23127
23128
23129 \end_layout
23130
23131 \begin_layout Heart
23132 \noindent
23133
23134 \lang latin
23135 Lo\SpecialChar softhyphen
23136 rem ipsum dolor sit amet,
23137  consetetur sadipscing elitr,
23138  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23139  sed diam voluptua.
23140  At vero eos et accusam et justo duo dolores et ea rebum.
23141  Stet clita kasd gubergren,
23142  no sea takimata sanctus est Lorem ipsum dolor sit amet.
23143 \end_layout
23144
23145 \begin_layout Standard
23146 \begin_inset VSpace bigskip
23147 \end_inset
23148
23149
23150 \end_layout
23151
23152 \begin_layout Standard
23153 \noindent
23154 \align right
23155 \begin_inset Box Frameless
23156 position "t"
23157 hor_pos "c"
23158 has_inner_box 1
23159 inner_pos "t"
23160 use_parbox 1
23161 use_makebox 0
23162 width "42col%"
23163 special "none"
23164 height "1in"
23165 height_special "totalheight"
23166 thickness "0.4pt"
23167 separation "3pt"
23168 shadowsize "4pt"
23169 framecolor "black"
23170 backgroundcolor "none"
23171 status open
23172
23173 \begin_layout Heart
23174 \noindent
23175
23176 \lang latin
23177 Lo\SpecialChar softhyphen
23178 rem ipsum dolor sit amet,
23179  consetetur sadipscing elitr,
23180  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23181  sed diam voluptua.
23182  At vero eos et accusam et justo duo dolores et ea rebum.
23183  Stet clita kasd gubergren,
23184  no sea takimata sanctus est Lorem ipsum dolor sit amet.
23185 \end_layout
23186
23187 \end_inset
23188
23189
23190 \end_layout
23191
23192 \begin_layout Subsubsection
23193 Custom shapes
23194 \end_layout
23195
23196 \begin_layout Standard
23197 You can define any shape you want.
23198  Doing this manually is a lot of work because every coordinate must be specified.
23199  But there is a way to let the computer calculate the coordinates:
23200 \end_layout
23201
23202 \begin_layout Enumerate
23203 Install the program 
23204 \begin_inset CommandInset href
23205 LatexCommand href
23206 name "Jpgfdraw"
23207 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
23208 literal "false"
23209
23210 \end_inset
23211
23212 .
23213 \end_layout
23214
23215 \begin_layout Enumerate
23216 In 
23217 \family sans
23218 Jpgfdraw
23219 \family default
23220  go to the menu 
23221 \family sans
23222 TeX/LaTeX\SpecialChar menuseparator
23223 Settings\SpecialChar menuseparator
23224 Set Normal Size
23225 \family default
23226  and select the font size you are using in your document.
23227  For example this document uses the size 12
23228 \begin_inset space \thinspace{}
23229 \end_inset
23230
23231 pt.
23232 \end_layout
23233
23234 \begin_layout Enumerate
23235 Draw a shape.
23236 \end_layout
23237
23238 \begin_layout Enumerate
23239 Use the menu 
23240 \family sans
23241 TeX/LaTeX\SpecialChar menuseparator
23242 Shapepar
23243 \family default
23244  to export the shape to coordinates.
23245  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
23246 \begin_inset Foot
23247 status collapsed
23248
23249 \begin_layout Plain Layout
23250 For more information see 
23251 \begin_inset CommandInset href
23252 LatexCommand href
23253 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
23254 literal "false"
23255
23256 \end_inset
23257
23258
23259 \end_layout
23260
23261 \end_inset
23262
23263
23264 \end_layout
23265
23266 \begin_layout Standard
23267 The coordinates are written into a \SpecialChar TeX
23268  file.
23269  To use it for your \SpecialChar LyX
23270  document
23271 \end_layout
23272
23273 \begin_layout Enumerate
23274 Place the cursor before the first character of your paragraph (or into a new empty one).
23275 \end_layout
23276
23277 \begin_layout Enumerate
23278 Open in \SpecialChar LyX
23279  the menu 
23280 \family sans
23281 Insert\SpecialChar menuseparator
23282 File\SpecialChar menuseparator
23283 Child
23284 \begin_inset space ~
23285 \end_inset
23286
23287 Document
23288 \family default
23289 ,
23290  select the file and use 
23291 \family sans
23292 Input
23293 \family default
23294  as 
23295 \family sans
23296 Include Type.
23297 \end_layout
23298
23299 \begin_layout Standard
23300 \begin_inset VSpace defskip
23301 \end_inset
23302
23303
23304 \end_layout
23305
23306 \begin_layout Standard
23307 \begin_inset Note Greyedout
23308 status open
23309
23310 \begin_layout Plain Layout
23311
23312 \series bold
23313 Note
23314 \series default
23315 :
23316  The changed shape only applies to the current paragraph;
23317  everything is reset to normal for the next paragraph.
23318  Therefore the shape definition file must be input into every paragraph with the desired shape.
23319 \end_layout
23320
23321 \end_inset
23322
23323
23324 \end_layout
23325
23326 \begin_layout Standard
23327 \begin_inset VSpace bigskip
23328 \end_inset
23329
23330
23331 \end_layout
23332
23333 \begin_layout Standard
23334 Here is an example:
23335 \end_layout
23336
23337 \begin_layout Standard
23338 \begin_inset VSpace bigskip
23339 \end_inset
23340
23341
23342 \end_layout
23343
23344 \begin_layout Standard
23345 \begin_inset CommandInset include
23346 LatexCommand input
23347 filename "SpecialParagraphShape.tex"
23348 literal "true"
23349
23350 \end_inset
23351
23352
23353 \lang latin
23354 Lorem ipsum dolor sit amet,
23355  consetetur sadipscing elitr,
23356  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23357  sed diam voluptua.
23358  At vero eos et accusam et justo duo dolores et ea rebum.
23359  Stet clita kasd gubergren,
23360  no sea takimata sanctus est Lorem ipsum dolor sit amet.
23361  Lorem ipsum dolor sit amet,
23362  consetetur sadipscing elitr,
23363  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
23364  sed diam voluptua.
23365 \end_layout
23366
23367 \begin_layout Standard
23368 \begin_inset VSpace bigskip
23369 \end_inset
23370
23371
23372 \end_layout
23373
23374 \begin_layout Standard
23375
23376 \series bold
23377 A tip:
23378
23379 \series default
23380  to draw complexer shapes in 
23381 \family sans
23382 Jpgfdraw
23383 \family default
23384  you can draw the shape in a program of your choice and import the resulting image to 
23385 \family sans
23386 Jpgfdraw
23387 \family default
23388 .
23389  Then you only need to draw a line or spline along the outline of the image.
23390 \end_layout
23391
23392 \begin_layout Standard
23393 \begin_inset VSpace bigskip
23394 \end_inset
23395
23396
23397 \end_layout
23398
23399 \begin_layout Standard
23400 The module 
23401 \family sans
23402 Custom paragraph shapes
23403 \family default
23404  also provides the two commands 
23405 \family sans
23406 shapepar
23407 \family default
23408  and 
23409 \family sans
23410 Shapepar
23411 \family default
23412  which can be used to define custom shapes coordinate by coordinate.
23413 \begin_inset Foot
23414 status collapsed
23415
23416 \begin_layout Plain Layout
23417 These commands are internally used for all shapes described here.
23418 \end_layout
23419
23420 \end_inset
23421
23422  For information how these styles are used and about further customization possibilities,
23423  have a look at the 
23424 \begin_inset CommandInset href
23425 LatexCommand href
23426 name "documentation"
23427 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
23428 literal "false"
23429
23430 \end_inset
23431
23432  of the package 
23433 \begin_inset Flex Code
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437 shapepar
23438 \end_layout
23439
23440 \end_inset
23441
23442 .
23443 \end_layout
23444
23445 \begin_layout Subsection
23446
23447 \change_inserted 564990737 1672311925
23448
23449 \lang american
23450 Hanging Paragraphs
23451 \end_layout
23452
23453 \begin_layout Hanging
23454
23455 \change_inserted 564990737 1672311925
23456
23457 \lang american
23458 This module adds the 
23459 \family sans
23460 Hanging
23461 \family default
23462  paragraph style,
23463  that is,
23464  one where all but the first line of the paragraph is indented.
23465  This may not appear in your \SpecialChar LyX
23466  document but will appear in the final output.
23467 \end_layout
23468
23469 \begin_layout Subsection
23470
23471 \change_inserted 564990737 1672311925
23472
23473 \lang american
23474 \begin_inset CommandInset label
23475 LatexCommand label
23476 name "subsec:Initials"
23477
23478 \end_inset
23479
23480 Initials (Drop Caps)
23481 \end_layout
23482
23483 \begin_layout Initial
23484
23485 \change_inserted 564990737 1672311925
23486
23487 \lang american
23488 \begin_inset Argument 2
23489 status open
23490
23491 \begin_layout Plain Layout
23492
23493 \change_inserted 564990737 1672311925
23494
23495 \lang british
23496 T
23497 \change_unchanged
23498
23499 \end_layout
23500
23501 \end_inset
23502
23503
23504 \begin_inset Argument 3
23505 status open
23506
23507 \begin_layout Plain Layout
23508
23509 \change_inserted 564990737 1672311925
23510
23511 \lang american
23512 his
23513 \change_unchanged
23514
23515 \end_layout
23516
23517 \end_inset
23518
23519  module adds a drop capitals paragraph style 
23520 \family sans
23521 Initials
23522 \family default
23523  for paragraph environments which you can use wherever you want to have drop capitals.
23524  You then have three more items in the 
23525 \family sans
23526 Insert
23527 \family default
23528  menu:
23529 \end_layout
23530
23531 \begin_layout Itemize
23532
23533 \change_inserted 564990737 1672311925
23534
23535 \family sans
23536 \lang american
23537 Initial
23538 \family default
23539  which creates an inset for the drop capital
23540 \end_layout
23541
23542 \begin_layout Itemize
23543
23544 \change_inserted 564990737 1672311925
23545
23546 \family sans
23547 \lang american
23548 Rest of initial
23549 \family default
23550  which creates an inset for the rest of the word
23551 \end_layout
23552
23553 \begin_layout Itemize
23554
23555 \change_inserted 564990737 1672311925
23556
23557 \family sans
23558 \lang american
23559 Options
23560 \family default
23561  which allow you configure the formatting of the drop capital.
23562 \end_layout
23563
23564 \begin_layout Standard
23565
23566 \change_inserted 564990737 1672311925
23567
23568 \lang american
23569 To customize the appearance of the style,
23570  see 
23571 \family sans
23572 Help\SpecialChar menuseparator
23573 Embedded Objects\SpecialChar menuseparator
23574 Objects Surrounded by Text\SpecialChar menuseparator
23575 Initials
23576 \family default
23577 .
23578 \end_layout
23579
23580 \begin_layout Section
23581
23582 \change_inserted 564990737 1672312011
23583
23584 \lang american
23585 Text Markup
23586 \end_layout
23587
23588 \begin_layout Subsection
23589
23590 \change_inserted 564990737 1672312011
23591
23592 \lang american
23593 Hyphenatable Text Markup
23594 \end_layout
23595
23596 \begin_layout Standard
23597
23598 \change_inserted 564990737 1672312011
23599
23600 \lang american
23601 This package defines text styles to highlight,
23602  space-out,
23603  strike-through,
23604  underline and capitalize/small-cap text by means of the 
23605 \family sans
23606 soul
23607 \family default
23608  package.
23609  As opposed to the markup provided by the Text Properties dialog,
23610  words marked-up with 
23611 \family sans
23612 soul
23613 \family default
23614  are hyphenated.
23615  See the 
23616 \begin_inset CommandInset href
23617 LatexCommand href
23618 name "soul documentation"
23619 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
23620 literal "false"
23621
23622 \end_inset
23623
23624 .
23625 \end_layout
23626
23627 \begin_layout Subsection
23628
23629 \change_inserted 564990737 1672312011
23630
23631 \lang american
23632 Logical Markup
23633 \end_layout
23634
23635 \begin_layout Standard
23636
23637 \change_inserted 564990737 1672312011
23638
23639 \lang american
23640 This module defines some character styles for logical markup:
23641  
23642 \noun on
23643
23644 \begin_inset Flex Noun
23645 status collapsed
23646
23647 \begin_layout Plain Layout
23648
23649 \change_inserted 564990737 1672312011
23650
23651 \noun on
23652 \lang american
23653 noun
23654 \change_unchanged
23655
23656 \end_layout
23657
23658 \end_inset
23659
23660
23661 \noun default
23662 ,
23663  
23664 \emph on
23665
23666 \begin_inset Flex Emph
23667 status collapsed
23668
23669 \begin_layout Plain Layout
23670
23671 \change_inserted 564990737 1672312011
23672
23673 \emph on
23674 \lang american
23675 emph
23676 \change_unchanged
23677
23678 \end_layout
23679
23680 \end_inset
23681
23682
23683 \emph default
23684 ,
23685  
23686 \begin_inset Flex Strong
23687 status collapsed
23688
23689 \begin_layout Plain Layout
23690
23691 \change_inserted 564990737 1672312011
23692
23693 \lang american
23694 strong
23695 \change_unchanged
23696
23697 \end_layout
23698
23699 \end_inset
23700
23701 ,
23702  and 
23703 \begin_inset Flex Code
23704 status collapsed
23705
23706 \begin_layout Plain Layout
23707
23708 \change_inserted 564990737 1672312011
23709
23710 \lang american
23711 code
23712 \change_unchanged
23713
23714 \end_layout
23715
23716 \end_inset
23717
23718  which are accessed via the 
23719 \family sans
23720 \bar under
23721 E
23722 \bar default
23723 dit\SpecialChar menuseparator
23724 Custom
23725 \begin_inset space ~
23726 \end_inset
23727
23728 Text
23729 \begin_inset space ~
23730 \end_inset
23731
23732
23733 \bar under
23734 S
23735 \bar default
23736 tyles
23737 \family default
23738  menu.
23739 \end_layout
23740
23741 \begin_layout Chapter
23742
23743 \change_deleted 564990737 1671304317
23744 Customizing 
23745 \change_unchanged
23746 Bibliograph
23747 \change_inserted 564990737 1671304322
23748 y
23749 \change_deleted 564990737 1671304331
23750 ies with Bib\SpecialChar TeX
23751  or Biblatex
23752 \change_unchanged
23753
23754 \end_layout
23755
23756 \begin_layout Standard
23757 The most basic information about how to use Bib\SpecialChar TeX
23758  or 
23759 \family sans
23760 Biblatex
23761 \family default
23762  with \SpecialChar LyX
23763  is contained in the section 
23764 \emph on
23765 Bibliography databases
23766 \emph default
23767  of the 
23768 \emph on
23769 User's Guide
23770 \emph default
23771 .
23772  The following subsections explain special bibliography features supported by \SpecialChar LyX
23773 .
23774 \end_layout
23775
23776 \begin_layout Section
23777 Alternative Citation Styles
23778 \end_layout
23779
23780 \begin_layout Standard
23781 Standard Bib\SpecialChar TeX
23782  uses numbers (e.
23783 \begin_inset space \thinspace{}
23784 \end_inset
23785
23786 g.
23787 \begin_inset space \space{}
23788 \end_inset
23789
23790
23791 \begin_inset Quotes eld
23792 \end_inset
23793
23794 [12]
23795 \begin_inset Quotes erd
23796 \end_inset
23797
23798 ) to refer to a cited work.
23799  However,
23800  in many scientific disciplines,
23801  other citation styles are in use.
23802  The most common one is the author-year style (e.
23803 \begin_inset space \thinspace{}
23804 \end_inset
23805
23806 g.
23807 \begin_inset space \space{}
23808 \end_inset
23809
23810
23811 \begin_inset Quotes eld
23812 \end_inset
23813
23814 Knuth 1984a
23815 \begin_inset Quotes erd
23816 \end_inset
23817
23818 ).
23819  \SpecialChar LyX
23820  supports three packages that provide this style,
23821  
23822 \begin_inset Flex Code
23823 status collapsed
23824
23825 \begin_layout Plain Layout
23826 biblatex
23827 \end_layout
23828
23829 \end_inset
23830
23831 ,
23832  
23833 \begin_inset Flex Code
23834 status collapsed
23835
23836 \begin_layout Plain Layout
23837 natbib
23838 \end_layout
23839
23840 \end_inset
23841
23842 ,
23843  and 
23844 \begin_inset Flex Code
23845 status collapsed
23846
23847 \begin_layout Plain Layout
23848 jurabib
23849 \end_layout
23850
23851 \end_inset
23852
23853 .
23854  Each of these packages has their pros and cons,
23855  which cannot be listed in detail.
23856  If you only want to have simple author-year (or author-numerical) style,
23857  or if you want to use one of the countless style files for 
23858 \begin_inset Flex Code
23859 status collapsed
23860
23861 \begin_layout Plain Layout
23862 natbib
23863 \end_layout
23864
23865 \end_inset
23866
23867 ,
23868  then the established 
23869 \begin_inset Flex Code
23870 status collapsed
23871
23872 \begin_layout Plain Layout
23873 natbib
23874 \end_layout
23875
23876 \end_inset
23877
23878  package is probably your choice.
23879  If you look for specific citation styles common in law studies,
23880  you might consider the 
23881 \begin_inset Flex Code
23882 status collapsed
23883
23884 \begin_layout Plain Layout
23885 jurabib
23886 \end_layout
23887
23888 \end_inset
23889
23890  package.
23891  If you want to have full control over the formatting or look for advanced features such as ibidem,
23892  footnote citations,
23893  full title citations,
23894  advanced date formats (such as 400 BC) or full localization to other languages than English,
23895  you should definitely consider 
23896 \begin_inset Flex Code
23897 status collapsed
23898
23899 \begin_layout Plain Layout
23900 biblatex
23901 \end_layout
23902
23903 \end_inset
23904
23905 ,
23906  which exceeds all other packages in terms of features,
23907  but is also quite heavy and more resource-hungry.
23908 \end_layout
23909
23910 \begin_layout Standard
23911 The handling of these packages in \SpecialChar LyX
23912  is basically the same.
23913  Go to 
23914 \begin_inset Flex Noun
23915 status collapsed
23916
23917 \begin_layout Plain Layout
23918 Document\SpecialChar menuseparator
23919 Settings
23920 \end_layout
23921
23922 \end_inset
23923
23924  and select under 
23925 \begin_inset Flex Noun
23926 status collapsed
23927
23928 \begin_layout Plain Layout
23929 Bibliography
23930 \end_layout
23931
23932 \end_inset
23933
23934  the 
23935 \begin_inset Flex Noun
23936 status collapsed
23937
23938 \begin_layout Plain Layout
23939 Style Format
23940 \end_layout
23941
23942 \end_inset
23943
23944  
23945 \begin_inset Flex Noun
23946 status collapsed
23947
23948 \begin_layout Plain Layout
23949 Basic (BibTeX)
23950 \end_layout
23951
23952 \end_inset
23953
23954 ,
23955  
23956 \begin_inset Flex Noun
23957 status collapsed
23958
23959 \begin_layout Plain Layout
23960 Biblatex
23961 \end_layout
23962
23963 \end_inset
23964
23965 ,
23966  
23967 \begin_inset Flex Noun
23968 status collapsed
23969
23970 \begin_layout Plain Layout
23971 Biblatex (Natbib mode)
23972 \end_layout
23973
23974 \end_inset
23975
23976 ,
23977  
23978 \begin_inset Flex Noun
23979 status collapsed
23980
23981 \begin_layout Plain Layout
23982 Natbib (BibTeX)
23983 \end_layout
23984
23985 \end_inset
23986
23987  or 
23988 \begin_inset Flex Noun
23989 status collapsed
23990
23991 \begin_layout Plain Layout
23992 Jurabib (BibTeX)
23993 \end_layout
23994
23995 \end_inset
23996
23997  (see sec.
23998 \begin_inset space ~
23999 \end_inset
24000
24001 6.5.3 in the User's Guide for more information on these choices).
24002  With all these packages,
24003  you will get some extra features in the citation dialog and you can select the style of the reference (
24004 \begin_inset Quotes eld
24005 \end_inset
24006
24007 Knuth 1984
24008 \begin_inset Quotes erd
24009 \end_inset
24010
24011 ,
24012  
24013 \begin_inset Quotes eld
24014 \end_inset
24015
24016 Knuth (1984)
24017 \begin_inset Quotes erd
24018 \end_inset
24019
24020 ,
24021  
24022 \begin_inset Quotes eld
24023 \end_inset
24024
24025 Knuth,
24026  1984
24027 \begin_inset Quotes erd
24028 \end_inset
24029
24030 ,
24031  
24032 \begin_inset Quotes eld
24033 \end_inset
24034
24035 1984
24036 \begin_inset Quotes erd
24037 \end_inset
24038
24039  etc.).
24040  Note that either package needs specifically designed style files.
24041  They all ship their own,
24042  but there are lots of additional style files,
24043  and there is even an interactive style file builder
24044 \begin_inset Foot
24045 status collapsed
24046
24047 \begin_layout Plain Layout
24048 See 
24049 \begin_inset Flex URL
24050 status open
24051
24052 \begin_layout Plain Layout
24053
24054 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
24055 \end_layout
24056
24057 \end_inset
24058
24059
24060 \end_layout
24061
24062 \end_inset
24063
24064  for 
24065 \begin_inset Flex Code
24066 status collapsed
24067
24068 \begin_layout Plain Layout
24069 natbib
24070 \end_layout
24071
24072 \end_inset
24073
24074 .
24075 \end_layout
24076
24077 \begin_layout Section
24078 Subdivided Bibliographies
24079 \end_layout
24080
24081 \begin_layout Standard
24082 Sometimes you might need to divide your bibliography into several sections.
24083  If you are for instance a historian,
24084  the possibility to separate sources and scientific works is most likely a 
24085 \begin_inset Quotes eld
24086 \end_inset
24087
24088 must have
24089 \begin_inset Quotes erd
24090 \end_inset
24091
24092 .
24093  Unfortunately,
24094  Bib\SpecialChar TeX
24095  itself does not allow you to do this.
24096  But with the help of some \SpecialChar LaTeX
24097  packages,
24098  Bib\SpecialChar TeX
24099  can be extended to fit your needs.
24100 \end_layout
24101
24102 \begin_layout Standard
24103 \SpecialChar LyX
24104  provides native support for one of these packages,
24105  
24106 \family typewriter
24107 bibtopic
24108 \family default
24109 .
24110 \begin_inset Foot
24111 status collapsed
24112
24113 \begin_layout Plain Layout
24114 Available from 
24115 \begin_inset Flex URL
24116 status open
24117
24118 \begin_layout Plain Layout
24119
24120 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
24121 \end_layout
24122
24123 \end_inset
24124
24125
24126 \end_layout
24127
24128 \end_inset
24129
24130  The advantage of this package (compared to other packages such as 
24131 \family typewriter
24132 multibib
24133 \family default
24134 ) is that you don't need to define new citation commands.
24135  Instead,
24136  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
24137  For example:
24138  If you want to divide your bibliography into the sections 
24139 \begin_inset Quotes eld
24140 \end_inset
24141
24142 Sources
24143 \begin_inset Quotes erd
24144 \end_inset
24145
24146  and 
24147 \begin_inset Quotes eld
24148 \end_inset
24149
24150 Scientific works
24151 \begin_inset Quotes erd
24152 \end_inset
24153
24154 ,
24155  you first need to create two bibliographic databases,
24156  e.
24157 \begin_inset space \thinspace{}
24158 \end_inset
24159
24160 g.
24161 \begin_inset space \space{}
24162 \end_inset
24163
24164
24165 \begin_inset Flex Code
24166 status collapsed
24167
24168 \begin_layout Plain Layout
24169 sources.bib
24170 \end_layout
24171
24172 \end_inset
24173
24174  and 
24175 \begin_inset Flex Code
24176 status collapsed
24177
24178 \begin_layout Plain Layout
24179 scientific.bib
24180 \end_layout
24181
24182 \end_inset
24183
24184 .
24185  
24186 \end_layout
24187
24188 \begin_layout Standard
24189 Go to 
24190 \begin_inset Flex Noun
24191 status collapsed
24192
24193 \begin_layout Plain Layout
24194 Document\SpecialChar menuseparator
24195 Settings
24196 \end_layout
24197
24198 \end_inset
24199
24200  and check under 
24201 \begin_inset Flex Noun
24202 status collapsed
24203
24204 \begin_layout Plain Layout
24205 Bibliography
24206 \end_layout
24207
24208 \end_inset
24209
24210  the option 
24211 \begin_inset Flex Noun
24212 status collapsed
24213
24214 \begin_layout Plain Layout
24215 Subdivided bibliography
24216 \end_layout
24217
24218 \end_inset
24219
24220 .
24221  Now you can insert multiple Bib\SpecialChar TeX
24222  bibliographies,
24223  one for each section of your bibliography.
24224  Returning to our example:
24225  Insert the Bib\SpecialChar TeX
24226  bibliography 
24227 \begin_inset Flex Code
24228 status collapsed
24229
24230 \begin_layout Plain Layout
24231 sources.bib
24232 \end_layout
24233
24234 \end_inset
24235
24236  and a second one for the database 
24237 \begin_inset Flex Code
24238 status collapsed
24239
24240 \begin_layout Plain Layout
24241 scientific.bib
24242 \end_layout
24243
24244 \end_inset
24245
24246 .
24247  You are free to use the same or different styles for each section.
24248  Additionally,
24249  you can choose if the bibliography section should contain 
24250 \begin_inset Quotes eld
24251 \end_inset
24252
24253 all cited references
24254 \begin_inset Quotes erd
24255 \end_inset
24256
24257  of the specified database(s) (which is the default),
24258  
24259 \begin_inset Quotes eld
24260 \end_inset
24261
24262 all uncited references
24263 \begin_inset Quotes erd
24264 \end_inset
24265
24266  or even 
24267 \begin_inset Quotes eld
24268 \end_inset
24269
24270 all references
24271 \begin_inset Quotes erd
24272 \end_inset
24273
24274 .
24275  This might be useful if you would like to separate your bibliography into three sections:
24276  
24277 \begin_inset Quotes eld
24278 \end_inset
24279
24280 Cited sources
24281 \begin_inset Quotes erd
24282 \end_inset
24283
24284 ,
24285  
24286 \begin_inset Quotes eld
24287 \end_inset
24288
24289 Uncited sources
24290 \begin_inset Quotes erd
24291 \end_inset
24292
24293 ,
24294  and 
24295 \begin_inset Quotes eld
24296 \end_inset
24297
24298 Scientific works
24299 \begin_inset Quotes erd
24300 \end_inset
24301
24302 .
24303  The titles for the sections can be added as ordinary sections or subsections.
24304  Since 
24305 \begin_inset Flex Code
24306 status collapsed
24307
24308 \begin_layout Plain Layout
24309 bibtopic
24310 \end_layout
24311
24312 \end_inset
24313
24314  removes the bibliography title,
24315  you have to manually re-add that,
24316  too (as a chapter* or section*,
24317  for instance).
24318 \end_layout
24319
24320 \begin_layout Standard
24321 With 
24322 \family sans
24323 Biblatex
24324 \family default
24325 ,
24326  the procedure is a bit different.
24327  Since 
24328 \family typewriter
24329 bibtopic
24330 \family default
24331  does not work with 
24332 \family sans
24333 Biblatex
24334 \family default
24335 ,
24336  the aforementioned 
24337 \begin_inset Flex Noun
24338 status collapsed
24339
24340 \begin_layout Plain Layout
24341 Subdivided bibliography
24342 \end_layout
24343
24344 \end_inset
24345
24346  option is disabled if you use 
24347 \family sans
24348 Biblatex
24349 \family default
24350 .
24351  However,
24352  
24353 \family sans
24354 Biblatex
24355 \family default
24356  provides its own means to generate subdivided bibliographies.
24357  You can either add keywords to bibliography entries via the 
24358 \begin_inset Flex Code
24359 status collapsed
24360
24361 \begin_layout Plain Layout
24362 keywords
24363 \end_layout
24364
24365 \end_inset
24366
24367  entry option and then filter bibliography sections by keyword (by adding 
24368 \begin_inset Flex Code
24369 status collapsed
24370
24371 \begin_layout Plain Layout
24372 keyword=mykeyword
24373 \end_layout
24374
24375 \end_inset
24376
24377  to the 
24378 \begin_inset Flex Noun
24379 status collapsed
24380
24381 \begin_layout Plain Layout
24382 Options
24383 \end_layout
24384
24385 \end_inset
24386
24387  field of the dialog that opens if you left-click on the 
24388 \begin_inset Flex Noun
24389 status collapsed
24390
24391 \begin_layout Plain Layout
24392 Biblatex Generated Bibliography
24393 \end_layout
24394
24395 \end_inset
24396
24397  button),
24398  or you can filter by entry types (such as 
24399 \emph on
24400 book
24401 \emph default
24402  or 
24403 \emph on
24404 article
24405 \emph default
24406 ) by entering e.
24407 \begin_inset space \thinspace{}
24408 \end_inset
24409
24410 g.
24411  
24412 \begin_inset Flex Code
24413 status collapsed
24414
24415 \begin_layout Plain Layout
24416 type=book
24417 \end_layout
24418
24419 \end_inset
24420
24421  or 
24422 \begin_inset Flex Code
24423 status collapsed
24424
24425 \begin_layout Plain Layout
24426 nottype=collection
24427 \end_layout
24428
24429 \end_inset
24430
24431  to the mentioned 
24432 \begin_inset Flex Noun
24433 status collapsed
24434
24435 \begin_layout Plain Layout
24436 Options
24437 \end_layout
24438
24439 \end_inset
24440
24441  field,
24442  or you can create so-called 
24443 \begin_inset Quotes eld
24444 \end_inset
24445
24446 Bibliography Categories
24447 \begin_inset Quotes erd
24448 \end_inset
24449
24450  to which you can assign individual entries.
24451  Please refer to the Biblatex manual,
24452  section 
24453 \emph on
24454 Subdivided Bibliographies
24455 \emph default
24456 ,
24457  for details.
24458 \end_layout
24459
24460 \begin_layout Section
24461 Multiple Bibliographies
24462 \begin_inset CommandInset label
24463 LatexCommand label
24464 name "subsec:Multiple-Bibliographies"
24465
24466 \end_inset
24467
24468
24469 \end_layout
24470
24471 \begin_layout Standard
24472 Multiple bibliographies,
24473  e.
24474 \begin_inset space \thinspace{}
24475 \end_inset
24476
24477 g.
24478 \begin_inset space \space{}
24479 \end_inset
24480
24481 a bibliography for each part,
24482  chapter,
24483  section,
24484  subsection or child (sub-document) of the document,
24485  are also supported by \SpecialChar LyX
24486 .
24487  In order to enable it,
24488  go to 
24489 \begin_inset Flex Noun
24490 status collapsed
24491
24492 \begin_layout Plain Layout
24493 Document\SpecialChar menuseparator
24494 Settings\SpecialChar menuseparator
24495 Bibliography
24496 \end_layout
24497
24498 \end_inset
24499
24500  and select the relevant unit (e.
24501 \begin_inset space \thinspace{}
24502 \end_inset
24503
24504 g.,
24505  
24506 \begin_inset Quotes eld
24507 \end_inset
24508
24509 per section
24510 \begin_inset Quotes erd
24511 \end_inset
24512
24513 ) in the 
24514 \begin_inset Flex Noun
24515 status collapsed
24516
24517 \begin_layout Plain Layout
24518 Multiple Bibliographies
24519 \end_layout
24520
24521 \end_inset
24522
24523  combo box.
24524  Then add a Bib(la)\SpecialChar TeX
24525  bibliography to each unit (e.
24526 \begin_inset space \thinspace{}
24527 \end_inset
24528
24529 g.,
24530  section) of your document.
24531  In the output,
24532  a separate bibliography,
24533  containing only the references done in the current unit is generated.
24534 \end_layout
24535
24536 \begin_layout Standard
24537 If you use Bib\SpecialChar TeX
24538 ,
24539  either the 
24540 \begin_inset Flex Code
24541 status collapsed
24542
24543 \begin_layout Plain Layout
24544 chapterbib
24545 \end_layout
24546
24547 \end_inset
24548
24549  or the 
24550 \begin_inset Flex Code
24551 status collapsed
24552
24553 \begin_layout Plain Layout
24554 bibtopic
24555 \end_layout
24556
24557 \end_inset
24558
24559  package is used to create multiple bibliographies.
24560  The former package is used if you select 
24561 \begin_inset Quotes eld
24562 \end_inset
24563
24564 per child document
24565 \begin_inset Quotes erd
24566 \end_inset
24567
24568  and do 
24569 \emph on
24570 not
24571 \emph default
24572  check 
24573 \begin_inset Flex Noun
24574 status collapsed
24575
24576 \begin_layout Plain Layout
24577 Sectioned Bibliography
24578 \end_layout
24579
24580 \end_inset
24581
24582 .
24583  In all other cases,
24584  
24585 \begin_inset Flex Code
24586 status collapsed
24587
24588 \begin_layout Plain Layout
24589 bibtopic
24590 \end_layout
24591
24592 \end_inset
24593
24594  is used.
24595 \begin_inset Foot
24596 status collapsed
24597
24598 \begin_layout Plain Layout
24599 An alternative approach,
24600  if you are willing to use some 
24601 \begin_inset Flex Noun
24602 status collapsed
24603
24604 \begin_layout Plain Layout
24605 \SpecialChar TeX
24606  Code
24607 \end_layout
24608
24609 \end_inset
24610
24611  (see section
24612 \begin_inset space ~
24613 \end_inset
24614
24615
24616 \begin_inset CommandInset ref
24617 LatexCommand ref
24618 reference "sec:Inserting-TeX-Code"
24619 nolink "false"
24620
24621 \end_inset
24622
24623 ),
24624  is to use the 
24625 \begin_inset Flex Code
24626 status collapsed
24627
24628 \begin_layout Plain Layout
24629 bibunits
24630 \end_layout
24631
24632 \end_inset
24633
24634  package.
24635 \end_layout
24636
24637 \end_inset
24638
24639  If 
24640 \begin_inset Flex Code
24641 status collapsed
24642
24643 \begin_layout Plain Layout
24644 bibtopic
24645 \end_layout
24646
24647 \end_inset
24648
24649  is used,
24650  \SpecialChar LyX
24651  encloses the specified units in 
24652 \begin_inset Flex Code
24653 status collapsed
24654
24655 \begin_layout Plain Layout
24656 bibtopic
24657 \end_layout
24658
24659 \end_inset
24660
24661 's 
24662 \begin_inset Flex Code
24663 status collapsed
24664
24665 \begin_layout Plain Layout
24666
24667 \backslash
24668 begin{btUnit}
24669 \end_layout
24670
24671 \end_inset
24672
24673  and 
24674 \begin_inset Flex Code
24675 status collapsed
24676
24677 \begin_layout Plain Layout
24678
24679 \backslash
24680 end{btUnit}
24681 \end_layout
24682
24683 \end_inset
24684
24685  in order to create the units.
24686  Note that this approach has some limitations.
24687  First,
24688  every citation reference has to be inside some 
24689 \begin_inset Flex Code
24690 status collapsed
24691
24692 \begin_layout Plain Layout
24693 btUnit
24694 \end_layout
24695
24696 \end_inset
24697
24698 .
24699  So citations outside a defined unit (e.
24700 \begin_inset space \thinspace{}
24701 \end_inset
24702
24703 g.,
24704  before the first section if you use 
24705 \begin_inset Quotes eld
24706 \end_inset
24707
24708 by section
24709 \begin_inset Quotes erd
24710 \end_inset
24711
24712 ) will appear as 
24713 \begin_inset Quotes eld
24714 \end_inset
24715
24716 ???
24717 \begin_inset Quotes erd
24718 \end_inset
24719
24720 .
24721  You can also create your own units by entering 
24722 \begin_inset Flex Code
24723 status collapsed
24724
24725 \begin_layout Plain Layout
24726
24727 \backslash
24728 begin{btUnit}
24729 \end_layout
24730
24731 \end_inset
24732
24733  and 
24734 \begin_inset Flex Code
24735 status collapsed
24736
24737 \begin_layout Plain Layout
24738
24739 \backslash
24740 end{btUnit}
24741 \end_layout
24742
24743 \end_inset
24744
24745  as \SpecialChar TeX
24746  code (for instance to work around the mentioned limitation).
24747  Note,
24748  though,
24749  that 
24750 \begin_inset Flex Code
24751 status collapsed
24752
24753 \begin_layout Plain Layout
24754 btUnit
24755 \end_layout
24756
24757 \end_inset
24758
24759 s cannot be nested.
24760  A second limitation is that 
24761 \begin_inset Flex Code
24762 status collapsed
24763
24764 \begin_layout Plain Layout
24765 bibtopic
24766 \end_layout
24767
24768 \end_inset
24769
24770  always processes all references of a bibliography database,
24771  even if they are not cited.
24772  This can result in odd labels (e.
24773 \begin_inset space \thinspace{}
24774 \end_inset
24775
24776 g.
24777  
24778 \begin_inset Quotes eld
24779 \end_inset
24780
24781 Miller 2014b
24782 \begin_inset Quotes erd
24783 \end_inset
24784
24785  if two works of this author from 2014 are in the database,
24786  even if only one is cited).
24787 \end_layout
24788
24789 \begin_layout Standard
24790 If you use 
24791 \family sans
24792 Biblatex
24793 \family default
24794 ,
24795  the 
24796 \begin_inset Flex Code
24797 status collapsed
24798
24799 \begin_layout Plain Layout
24800 refsection
24801 \end_layout
24802
24803 \end_inset
24804
24805  option is used instead.
24806  If you need specific units,
24807  you can start them with the \SpecialChar TeX
24808  code 
24809 \begin_inset Flex Code
24810 status collapsed
24811
24812 \begin_layout Plain Layout
24813
24814 \backslash
24815 newrefsection
24816 \end_layout
24817
24818 \end_inset
24819
24820  or 
24821 \begin_inset Flex Code
24822 status collapsed
24823
24824 \begin_layout Plain Layout
24825
24826 \backslash
24827 newrefsegment
24828 \end_layout
24829
24830 \end_inset
24831
24832 ,
24833  respectively.
24834  If you also want to control the end of the unit,
24835  use the environment 
24836 \begin_inset Flex Code
24837 status collapsed
24838
24839 \begin_layout Plain Layout
24840
24841 \backslash
24842 begin{refsection}
24843 \end_layout
24844
24845 \end_inset
24846
24847  \SpecialChar ldots
24848  
24849 \begin_inset Flex Code
24850 status collapsed
24851
24852 \begin_layout Plain Layout
24853
24854 \backslash
24855 end{refsection}
24856 \end_layout
24857
24858 \end_inset
24859
24860  instead.
24861  Note,
24862  though,
24863  that 
24864 \begin_inset Flex Code
24865 status collapsed
24866
24867 \begin_layout Plain Layout
24868 refsection
24869 \end_layout
24870
24871 \end_inset
24872
24873 s cannot be nested.
24874  In addition to the individual bibliography of the current unit,
24875  
24876 \family sans
24877 Biblatex
24878 \family default
24879  also provides an easy way to output all bibliographies,
24880  subsequently,
24881  at one place (e.
24882 \begin_inset space \thinspace{}
24883 \end_inset
24884
24885 g.,
24886  at the end of the document).
24887  Select 
24888 \begin_inset Quotes eld
24889 \end_inset
24890
24891 all reference units
24892 \begin_inset Quotes erd
24893 \end_inset
24894
24895  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
24896  Please refer to the 
24897 \family sans
24898 Biblatex
24899 \family default
24900  manual for more information on this topic.
24901 \end_layout
24902
24903 \begin_layout Chapter
24904
24905 \change_deleted 564990737 1671355654
24906 Itemize 
24907 \change_unchanged
24908 Bullet
24909 \change_inserted 564990737 1671355667
24910 s
24911 \change_deleted 564990737 1671355661
24912  Selection
24913 \change_inserted 564990737 1671355684
24914
24915 \begin_inset CommandInset label
24916 LatexCommand label
24917 name "chap:bullets"
24918
24919 \end_inset
24920
24921
24922 \change_deleted 564990737 1671355684
24923
24924 \begin_inset CommandInset label
24925 LatexCommand label
24926 name "sec:bullet"
24927
24928 \end_inset
24929
24930
24931 \change_unchanged
24932
24933 \end_layout
24934
24935 \begin_layout Standard
24936 by
24937 \noun on
24938  Allan Rae
24939 \end_layout
24940
24941 \begin_layout Section
24942 Introduction
24943 \end_layout
24944
24945 \begin_layout Standard
24946 \SpecialChar LyX
24947  provides 216 bullet shapes that can be accessed from a simple dialog.
24948  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
24949  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
24950 \begin_inset Foot
24951 status collapsed
24952
24953 \begin_layout Plain Layout
24954 Well,
24955  actually you can but you'll have to do it by hand.
24956 \end_layout
24957
24958 \end_inset
24959
24960
24961 \end_layout
24962
24963 \begin_layout Section
24964 How it looks
24965 \end_layout
24966
24967 \begin_layout Standard
24968 Open the dialog by selecting the 
24969 \begin_inset Flex Noun
24970 status collapsed
24971
24972 \begin_layout Plain Layout
24973 Document\SpecialChar menuseparator
24974 Settings
24975 \end_layout
24976
24977 \end_inset
24978
24979  menu item and then select the 
24980 \begin_inset Flex Noun
24981 status collapsed
24982
24983 \begin_layout Plain Layout
24984 Bullets
24985 \end_layout
24986
24987 \end_inset
24988
24989  tab.
24990 \end_layout
24991
24992 \begin_layout Standard
24993 The dialog provides you with a table of bullet shapes.
24994  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
24995  The row of buttons across the top is used to select which bullet depth you are changing.
24996
24997 \change_deleted 244031559 1603875981
24998  A text entry under the table shows the currently selected bullet shape's \SpecialChar LaTeX
24999  equivalent and this can be edited if desired.
25000  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
25001  preamble.
25002 \change_unchanged
25003
25004 \end_layout
25005
25006 \begin_layout Standard
25007 The six panels are divided up by the packages they require.
25008  The following table shows the mappings from button name to \SpecialChar LaTeX
25009  package.
25010 \end_layout
25011
25012 \begin_layout Standard
25013 \align center
25014 \begin_inset Tabular
25015 <lyxtabular version="3" rows="7" columns="2">
25016 <features tabularvalignment="middle">
25017 <column alignment="center" valignment="top" width="0pt">
25018 <column alignment="center" valignment="top" width="0pt">
25019 <row>
25020 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25021 \begin_inset Text
25022
25023 \begin_layout Plain Layout
25024
25025 \family roman
25026 \series medium
25027 \shape up
25028 \size normal
25029 \emph off
25030 \bar no
25031 \noun off
25032 \color none
25033 Button
25034 \end_layout
25035
25036 \end_inset
25037 </cell>
25038 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25039 \begin_inset Text
25040
25041 \begin_layout Plain Layout
25042
25043 \family roman
25044 \series medium
25045 \shape up
25046 \size normal
25047 \emph off
25048 \bar no
25049 \noun off
25050 \color none
25051 Packages Required
25052 \end_layout
25053
25054 \end_inset
25055 </cell>
25056 </row>
25057 <row>
25058 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25059 \begin_inset Text
25060
25061 \begin_layout Plain Layout
25062
25063 \family sans
25064 \series medium
25065 \shape up
25066 \size normal
25067 \emph off
25068 \bar no
25069 \noun off
25070 \color none
25071 Standard
25072 \end_layout
25073
25074 \end_inset
25075 </cell>
25076 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25077 \begin_inset Text
25078
25079 \begin_layout Plain Layout
25080
25081 \series medium
25082 \shape up
25083 \size normal
25084 \emph off
25085 \bar no
25086 \noun off
25087 \color none
25088 base \SpecialChar LaTeX
25089
25090 \end_layout
25091
25092 \end_inset
25093 </cell>
25094 </row>
25095 <row>
25096 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25097 \begin_inset Text
25098
25099 \begin_layout Plain Layout
25100
25101 \family sans
25102 \series medium
25103 \shape up
25104 \size normal
25105 \emph off
25106 \bar no
25107 \noun off
25108 \color none
25109 Maths
25110 \end_layout
25111
25112 \end_inset
25113 </cell>
25114 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25115 \begin_inset Text
25116
25117 \begin_layout Plain Layout
25118
25119 \family typewriter
25120 \series medium
25121 \shape up
25122 \size normal
25123 \emph off
25124 \bar no
25125 \noun off
25126 \color none
25127 amssymb.sty
25128 \end_layout
25129
25130 \end_inset
25131 </cell>
25132 </row>
25133 <row>
25134 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25135 \begin_inset Text
25136
25137 \begin_layout Plain Layout
25138
25139 \family sans
25140 \series medium
25141 \shape up
25142 \size normal
25143 \emph off
25144 \bar no
25145 \noun off
25146 \color none
25147 Ding1
25148 \end_layout
25149
25150 \end_inset
25151 </cell>
25152 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25153 \begin_inset Text
25154
25155 \begin_layout Plain Layout
25156
25157 \family typewriter
25158 \series medium
25159 \shape up
25160 \size normal
25161 \emph off
25162 \bar no
25163 \noun off
25164 \color none
25165 pifont.sty
25166 \end_layout
25167
25168 \end_inset
25169 </cell>
25170 </row>
25171 <row>
25172 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25173 \begin_inset Text
25174
25175 \begin_layout Plain Layout
25176
25177 \family sans
25178 \series medium
25179 \shape up
25180 \size normal
25181 \emph off
25182 \bar no
25183 \noun off
25184 \color none
25185 Ding2
25186 \end_layout
25187
25188 \end_inset
25189 </cell>
25190 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25191 \begin_inset Text
25192
25193 \begin_layout Plain Layout
25194
25195 \family typewriter
25196 \series medium
25197 \shape up
25198 \size normal
25199 \emph off
25200 \bar no
25201 \noun off
25202 \color none
25203 pifont.sty
25204 \end_layout
25205
25206 \end_inset
25207 </cell>
25208 </row>
25209 <row>
25210 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
25211 \begin_inset Text
25212
25213 \begin_layout Plain Layout
25214
25215 \family sans
25216 \series medium
25217 \shape up
25218 \size normal
25219 \emph off
25220 \bar no
25221 \noun off
25222 \color none
25223 Ding3
25224 \end_layout
25225
25226 \end_inset
25227 </cell>
25228 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
25229 \begin_inset Text
25230
25231 \begin_layout Plain Layout
25232
25233 \family typewriter
25234 \series medium
25235 \shape up
25236 \size normal
25237 \emph off
25238 \bar no
25239 \noun off
25240 \color none
25241 pifont.sty
25242 \end_layout
25243
25244 \end_inset
25245 </cell>
25246 </row>
25247 <row>
25248 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25249 \begin_inset Text
25250
25251 \begin_layout Plain Layout
25252
25253 \family sans
25254 \series medium
25255 \shape up
25256 \size normal
25257 \emph off
25258 \bar no
25259 \noun off
25260 \color none
25261 Ding4
25262 \end_layout
25263
25264 \end_inset
25265 </cell>
25266 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25267 \begin_inset Text
25268
25269 \begin_layout Plain Layout
25270
25271 \family typewriter
25272 \series medium
25273 \shape up
25274 \size normal
25275 \emph off
25276 \bar no
25277 \noun off
25278 \color none
25279 pifont.sty
25280 \end_layout
25281
25282 \end_inset
25283 </cell>
25284 </row>
25285 </lyxtabular>
25286
25287 \end_inset
25288
25289
25290 \end_layout
25291
25292 \begin_layout Standard
25293 \SpecialChar LyX
25294  doesn't stop you using bullets from packages you don't have.
25295  If you get errors from \SpecialChar LaTeX
25296  when you try to view or print the file,
25297  then it is likely you are missing a package.
25298 \begin_inset Foot
25299 status collapsed
25300
25301 \begin_layout Plain Layout
25302 \SpecialChar LyX
25303  doesn't restrict your use since you may be editing locally and exporting elsewhere.
25304 \end_layout
25305
25306 \end_inset
25307
25308
25309 \end_layout
25310
25311 \begin_layout Section
25312 How to use it
25313 \end_layout
25314
25315 \begin_layout Standard
25316 Select which bullet depth you want to change then select the bullet shape and size.
25317  Any changes will not be visible in \SpecialChar LyX
25318 ,
25319  but are visible when viewing the document.
25320 \end_layout
25321
25322 \begin_layout Standard
25323 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
25324 \begin_inset Foot
25325 status open
25326
25327 \begin_layout Plain Layout
25328
25329 \change_inserted 564990737 1672138075
25330 \begin_inset CommandInset label
25331 LatexCommand label
25332 name "fn:If-you-really"
25333
25334 \end_inset
25335
25336
25337 \change_unchanged
25338 If you 
25339 \emph on
25340 really
25341 \emph default
25342  want to have multiple sets of paragraphs with different sets of bullets in each,
25343  then you're going to have to get your hands dirty with \SpecialChar TeX
25344  code.
25345  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
25346  code for a wide range of bullet shapes.
25347  To make your own custom paragraphs you have the following options:
25348 \end_layout
25349
25350 \begin_layout Plain Layout
25351 \begin_inset ERT
25352 status open
25353
25354 \begin_layout Plain Layout
25355
25356
25357 \backslash
25358 let
25359 \backslash
25360 savelabelitemi=
25361 \backslash
25362 labelitemi
25363 \end_layout
25364
25365 \end_inset
25366
25367
25368 \end_layout
25369
25370 \begin_layout Plain Layout
25371 \begin_inset ERT
25372 status open
25373
25374 \begin_layout Plain Layout
25375
25376
25377 \backslash
25378 renewcommand
25379 \backslash
25380 labelitemi[0]{
25381 \backslash
25382 small
25383 \backslash
25384 (
25385 \backslash
25386 sharp
25387 \backslash
25388 )}
25389 \end_layout
25390
25391 \end_inset
25392
25393
25394 \end_layout
25395
25396 \begin_layout Itemize
25397 Use the \SpecialChar LaTeX
25398  command 
25399 \begin_inset Flex Code
25400 status collapsed
25401
25402 \begin_layout Plain Layout
25403
25404 \backslash
25405 renewcommand{}{}
25406 \end_layout
25407
25408 \end_inset
25409
25410  to specify a new bullet shape for a given depth.
25411  You'll also need to save the current bullet shape so you can restore it again afterwards.
25412  In this itemized list the following \SpecialChar LaTeX
25413  code was used to change the bullet used for the first depth.
25414 \end_layout
25415
25416 \begin_deeper
25417 \begin_layout LyX-Code
25418
25419 \backslash
25420 let
25421 \backslash
25422 savelabelitemi=
25423 \backslash
25424 labelitemi 
25425 \end_layout
25426
25427 \begin_layout LyX-Code
25428
25429 \backslash
25430 renewcommand
25431 \backslash
25432 labelitemi[0]{
25433 \backslash
25434 small
25435 \backslash
25436 (
25437 \backslash
25438 sharp
25439 \backslash
25440 )}
25441 \end_layout
25442
25443 \end_deeper
25444 \begin_layout Itemize
25445 Note that the itemize depth is specified in Roman numerals as part of the 
25446 \family typewriter
25447
25448 \backslash
25449 labelitem
25450 \family default
25451  command.
25452 \end_layout
25453
25454 \begin_layout Itemize
25455 \begin_inset Argument item:1
25456 status open
25457
25458 \begin_layout Plain Layout
25459 \begin_inset ERT
25460 status open
25461
25462 \begin_layout Plain Layout
25463
25464
25465 \backslash
25466 (
25467 \backslash
25468 star
25469 \backslash
25470 )
25471 \end_layout
25472
25473 \end_inset
25474
25475
25476 \end_layout
25477
25478 \end_inset
25479
25480  Specify each individual entry by starting each item with the bullet shape enclosed in a 
25481 \begin_inset Quotes eld
25482 \end_inset
25483
25484 Custom Item
25485 \begin_inset Quotes erd
25486 \end_inset
25487
25488  inset (available at 
25489 \family sans
25490 Insert\SpecialChar menuseparator
25491 Custom Item
25492 \family default
25493 ) and set as 
25494 \begin_inset Flex Noun
25495 status collapsed
25496
25497 \begin_layout Plain Layout
25498 \SpecialChar TeX
25499  Code
25500 \end_layout
25501
25502 \end_inset
25503
25504 .
25505  For example,
25506  this item was started with 
25507 \begin_inset Flex Code
25508 status collapsed
25509
25510 \begin_layout Plain Layout
25511
25512 \backslash
25513 (
25514 \backslash
25515 star
25516 \backslash
25517 )
25518 \end_layout
25519
25520 \end_inset
25521
25522 .
25523 \end_layout
25524
25525 \begin_layout Plain Layout
25526 \begin_inset ERT
25527 status open
25528
25529 \begin_layout Plain Layout
25530
25531
25532 \backslash
25533 renewcommand
25534 \backslash
25535 labelitemi[0]{
25536 \backslash
25537 savelabelitemi}
25538 \end_layout
25539
25540 \end_inset
25541
25542
25543 \end_layout
25544
25545 \begin_layout Plain Layout
25546 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
25547  The way used here was:
25548 \end_layout
25549
25550 \begin_layout LyX-Code
25551
25552 \backslash
25553 renewcommand
25554 \backslash
25555 labelitemi[0]{
25556 \backslash
25557 savelabelitemi}
25558 \end_layout
25559
25560 \end_inset
25561
25562
25563 \end_layout
25564
25565 \begin_layout Chapter
25566 Supplemental Tools
25567 \end_layout
25568
25569 \begin_layout Section
25570 Multipart Documents
25571 \end_layout
25572
25573 \begin_layout Subsection
25574 General Operation
25575 \end_layout
25576
25577 \begin_layout Standard
25578 When you are working on a large file with many sections,
25579  it is often convenient to break up the document into several files,
25580  or perhaps you have something where a table may change from time to time,
25581  but the preceding text does not.
25582  In these cases,
25583  you should seriously consider using multipart documents.
25584  For example,
25585  scientific papers often have five major sections:
25586  the introduction,
25587  observations,
25588  results,
25589  discussion,
25590  and conclusion.
25591  Each of these could be its own separate \SpecialChar LyX
25592  file,
25593  with one 
25594 \begin_inset Quotes eld
25595 \end_inset
25596
25597 master
25598 \begin_inset Quotes erd
25599 \end_inset
25600
25601  file which contains the title,
25602  authors,
25603  abstract,
25604  references,
25605  etc.,
25606  plus the five included files.
25607  It is important to note that each of these files is a full \SpecialChar LyX
25608  file which can be formatted and printed on its own,
25609  as well as included in a master file.
25610  Each of these files must have the same document class,
25611  however—
25612 don't attempt to mix book classes with article classes.
25613  You may also include \SpecialChar LaTeX
25614  files;
25615  however,
25616  these files must not have their own preamble (i.
25617 \begin_inset space \thinspace{}
25618 \end_inset
25619
25620 e.
25621 \begin_inset space \space{}
25622 \end_inset
25623
25624 everything up to and including the 
25625 \begin_inset Flex Code
25626 status collapsed
25627
25628 \begin_layout Plain Layout
25629
25630 \backslash
25631 begin{document}
25632 \end_layout
25633
25634 \end_inset
25635
25636  line as well as the 
25637 \begin_inset Flex Code
25638 status collapsed
25639
25640 \begin_layout Plain Layout
25641
25642 \backslash
25643 end{document}
25644 \end_layout
25645
25646 \end_inset
25647
25648  line must be deleted) or else errors will be generated when you try to make a DVI file.
25649 \end_layout
25650
25651 \begin_layout Standard
25652 \SpecialChar LyX
25653  allows you to include files quite easily with 
25654 \begin_inset Flex Noun
25655 status collapsed
25656
25657 \begin_layout Plain Layout
25658 Insert\SpecialChar menuseparator
25659 Child
25660 \begin_inset space ~
25661 \end_inset
25662
25663 Document
25664 \end_layout
25665
25666 \end_inset
25667
25668 .
25669  When you click on this selection a small box is inserted into the file at the current cursor location.
25670  Clicking on the box raises a dialog which allows you to select the file to be included,
25671  and the method of its inclusion.
25672  
25673 \end_layout
25674
25675 \begin_layout Standard
25676 The file selection box should by now be obvious.
25677  The three inclusion methods are 
25678 \begin_inset Quotes eld
25679 \end_inset
25680
25681 include
25682 \begin_inset Quotes erd
25683 \end_inset
25684
25685 ,
25686  
25687 \begin_inset Quotes eld
25688 \end_inset
25689
25690 input
25691 \begin_inset Quotes erd
25692 \end_inset
25693
25694 ,
25695  and 
25696 \begin_inset Quotes eld
25697 \end_inset
25698
25699 verbatim
25700 \begin_inset Quotes erd
25701 \end_inset
25702
25703 .
25704  The methods 
25705 \begin_inset Quotes eld
25706 \end_inset
25707
25708 include
25709 \begin_inset Quotes erd
25710 \end_inset
25711
25712  and 
25713 \begin_inset Quotes eld
25714 \end_inset
25715
25716 input
25717 \begin_inset Quotes erd
25718 \end_inset
25719
25720  are similar in many ways,
25721  but there are also some notable differences:
25722 \end_layout
25723
25724 \begin_layout Enumerate
25725 Files that are 
25726 \begin_inset Quotes eld
25727 \end_inset
25728
25729 included
25730 \begin_inset Quotes erd
25731 \end_inset
25732
25733  are typeset beginning on a new page,
25734  while files that are 
25735 \begin_inset Quotes eld
25736 \end_inset
25737
25738 inputted
25739 \begin_inset Quotes erd
25740 \end_inset
25741
25742  are typeset starting on the current page.
25743 \end_layout
25744
25745 \begin_layout Enumerate
25746 \begin_inset Quotes eld
25747 \end_inset
25748
25749 Included
25750 \begin_inset Quotes erd
25751 \end_inset
25752
25753  files cannot themselves 
25754 \begin_inset Quotes eld
25755 \end_inset
25756
25757 include
25758 \begin_inset Quotes erd
25759 \end_inset
25760
25761  further files (
25762 \begin_inset Quotes eld
25763 \end_inset
25764
25765 grandchilds
25766 \begin_inset Quotes erd
25767 \end_inset
25768
25769 ).
25770  With 
25771 \begin_inset Quotes eld
25772 \end_inset
25773
25774 input
25775 \begin_inset Quotes erd
25776 \end_inset
25777
25778 ,
25779  on the other hand,
25780  infinite sub-inputting is possible.
25781 \end_layout
25782
25783 \begin_layout Enumerate
25784 \begin_inset Quotes eld
25785 \end_inset
25786
25787 Include
25788 \begin_inset Quotes erd
25789 \end_inset
25790
25791  allow for the output of only selected 
25792 \begin_inset Quotes eld
25793 \end_inset
25794
25795 included
25796 \begin_inset Quotes erd
25797 \end_inset
25798
25799  files,
25800  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
25801 \emph on
25802 Child
25803 \begin_inset space ~
25804 \end_inset
25805
25806 Documents
25807 \emph default
25808  of the 
25809 \emph on
25810 Embedded
25811 \begin_inset space ~
25812 \end_inset
25813
25814 Objects
25815 \emph default
25816  manual for details).
25817 \end_layout
25818
25819 \begin_layout Standard
25820 Hence,
25821  
25822 \begin_inset Quotes eld
25823 \end_inset
25824
25825 include
25826 \begin_inset Quotes erd
25827 \end_inset
25828
25829  is the preferred method for chapters that are outsourced to child documents,
25830  while 
25831 \begin_inset Quotes eld
25832 \end_inset
25833
25834 input
25835 \begin_inset Quotes erd
25836 \end_inset
25837
25838  is more suitable for arbitrary file inheritance.
25839 \end_layout
25840
25841 \begin_layout Standard
25842
25843 \begin_inset Quotes eld
25844 \end_inset
25845
25846 verbatim
25847 \begin_inset Quotes erd
25848 \end_inset
25849
25850  included file allows you to include a file typeset exactly as it appears in the file,
25851  i.
25852 \begin_inset space \thinspace{}
25853 \end_inset
25854
25855 e.
25856 \begin_inset space \space{}
25857 \end_inset
25858
25859 in 
25860 \begin_inset Flex Code
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864 verbatim
25865 \end_layout
25866
25867 \end_inset
25868
25869  mode,
25870  with the characters set in a fixed-width typewriter font.
25871  Normally,
25872  spaces in this file are invisible,
25873  though two consecutive spaces are conserved,
25874  unlike \SpecialChar LyX
25875 's normal treatment of spaces.
25876  However,
25877  setting the 
25878 \begin_inset Flex Noun
25879 status collapsed
25880
25881 \begin_layout Plain Layout
25882 Mark
25883 \begin_inset space ~
25884 \end_inset
25885
25886 spaces
25887 \begin_inset space ~
25888 \end_inset
25889
25890 in
25891 \begin_inset space ~
25892 \end_inset
25893
25894 output
25895 \end_layout
25896
25897 \end_inset
25898
25899  checkbox typesets a mark to unambiguously define the presence of a space.
25900  
25901 \end_layout
25902
25903 \begin_layout Standard
25904 Generally,
25905  the master file is converted into a full \SpecialChar LaTeX
25906  file before typesetting,
25907  while the included files are converted to \SpecialChar LaTeX
25908  files that do not have all the preamble information.
25909 \end_layout
25910
25911 \begin_layout Subsection
25912 Cross-References Between Files
25913 \end_layout
25914
25915 \begin_layout Standard
25916 \begin_inset Box Shadowbox
25917 position "t"
25918 hor_pos "c"
25919 has_inner_box 1
25920 inner_pos "t"
25921 use_parbox 0
25922 use_makebox 0
25923 width "100col%"
25924 special "none"
25925 height "1in"
25926 height_special "totalheight"
25927 thickness "0.4pt"
25928 separation "3pt"
25929 shadowsize "4pt"
25930 framecolor "black"
25931 backgroundcolor "none"
25932 status open
25933
25934 \begin_layout Plain Layout
25935 This section is somewhat out of date.
25936  Need to describe default master documents and how children are opened when the master is.
25937  [[FIXME]]
25938 \end_layout
25939
25940 \end_inset
25941
25942
25943 \end_layout
25944
25945 \begin_layout Standard
25946 It is possible to set up cross-references between the different files.
25947  First,
25948  open all the files in question:
25949  let's call them A and B in a two file example,
25950  where B is included in A.
25951  Let's say you insert a label in A,
25952  then want to reference it in B.
25953  Open the cross-reference dialog whilst in document B,
25954  and you can select the 
25955 \begin_inset Quotes eld
25956 \end_inset
25957
25958 buffer
25959 \begin_inset Quotes erd
25960 \end_inset
25961
25962  to use.
25963 \end_layout
25964
25965 \begin_layout Subsection
25966 Bibliography Lists in all Subdocuments
25967 \end_layout
25968
25969 \begin_layout Standard
25970 If you work with child documents,
25971  you might want to have only one main bibliography at the end,
25972  but still be able to have a selected bibliography for the child if you output it on its own.
25973  Here is how to achieve this.
25974 \end_layout
25975
25976 \begin_layout Standard
25977 For the main document,
25978  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
25979  If the bibliography inset is in the master file,
25980  the references will be inherited by all children,
25981  so they are available in the citation dialog within each child.
25982 \end_layout
25983
25984 \begin_layout Standard
25985 For child-specific bibliographies,
25986  insert bibliography insets within the child documents,
25987  at the place where the bibliography should appear when the child is compiled separately.
25988  However,
25989  the trick is to insert them into a branch (
25990 \family sans
25991 Insert\SpecialChar menuseparator
25992 Branch\SpecialChar menuseparator
25993 Insert New Branch...
25994 \family default
25995 ),
25996  e.
25997 \begin_inset space \thinspace{}
25998 \end_inset
25999
26000 g.
26001  called 
26002 \begin_inset Quotes eld
26003 \end_inset
26004
26005 Childonly
26006 \begin_inset Quotes erd
26007 \end_inset
26008
26009 .
26010  Within the children,
26011  activate the branch (
26012 \family sans
26013 Document\SpecialChar menuseparator
26014 Settings...\SpecialChar menuseparator
26015 Branches
26016 \family default
26017 ).
26018  Within the master,
26019  deactivate the branch (
26020 \family sans
26021 Document\SpecialChar menuseparator
26022 Settings...\SpecialChar menuseparator
26023 Branches
26024 \family default
26025 ).
26026  Now the child's bibliography will be ignored by the master,
26027  but considered by the child.
26028 \end_layout
26029
26030 \begin_layout Standard
26031 If you need multiple bibliographies (e.
26032 \begin_inset space \thinspace{}
26033 \end_inset
26034
26035 g.,
26036  one per child in the 
26037 \emph on
26038 main document
26039 \emph default
26040 ),
26041  please refer to sec.
26042 \begin_inset space ~
26043 \end_inset
26044
26045
26046 \begin_inset CommandInset ref
26047 LatexCommand ref
26048 reference "subsec:Multiple-Bibliographies"
26049 nolink "false"
26050
26051 \end_inset
26052
26053 .
26054 \end_layout
26055
26056 \begin_layout Section
26057 \SpecialChar LyX
26058  Archives
26059 \end_layout
26060
26061 \begin_layout Standard
26062 Users sometimes need to be able to 
26063 \begin_inset Quotes eld
26064 \end_inset
26065
26066 bundle
26067 \begin_inset Quotes erd
26068 \end_inset
26069
26070  a \SpecialChar LyX
26071  file together with all the images (and other files) on which it depends,
26072  either for sending to a publisher or for sharing with a co-author.
26073  \SpecialChar LyX
26074  includes a Python script (
26075 \begin_inset Flex Code
26076 status collapsed
26077
26078 \begin_layout Plain Layout
26079 lyxpak.py
26080 \end_layout
26081
26082 \end_inset
26083
26084 ) that automates this process.
26085  To use it,
26086  you must have either the 
26087 \begin_inset Flex Code
26088 status collapsed
26089
26090 \begin_layout Plain Layout
26091 zipfile
26092 \end_layout
26093
26094 \end_inset
26095
26096  or 
26097 \begin_inset Flex Code
26098 status collapsed
26099
26100 \begin_layout Plain Layout
26101 tarfile
26102 \end_layout
26103
26104 \end_inset
26105
26106  python modules installed on your system.
26107  By default,
26108  the script prefers the 
26109 \begin_inset Flex Code
26110 status collapsed
26111
26112 \begin_layout Plain Layout
26113 gzip
26114 \end_layout
26115
26116 \end_inset
26117
26118 -compressed 
26119 \begin_inset Flex Code
26120 status collapsed
26121
26122 \begin_layout Plain Layout
26123 tar
26124 \end_layout
26125
26126 \end_inset
26127
26128  format on Unix-like systems and the 
26129 \begin_inset Flex Code
26130 status collapsed
26131
26132 \begin_layout Plain Layout
26133 zip
26134 \end_layout
26135
26136 \end_inset
26137
26138  format on Windows.
26139 \end_layout
26140
26141 \begin_layout Standard
26142 \SpecialChar LyX
26143 's configuration process will set the script up to export a `\SpecialChar LyX
26144  Archive',
26145  and this format will then be available under 
26146 \begin_inset Flex Code
26147 status collapsed
26148
26149 \begin_layout Plain Layout
26150 File\SpecialChar menuseparator
26151 Export
26152 \end_layout
26153
26154 \end_inset
26155
26156 .
26157 \end_layout
26158
26159 \begin_layout Standard
26160 Independently of the platform,
26161  the generation of a particular archive format can be forced by adding either the 
26162 \begin_inset Flex Code
26163 status collapsed
26164
26165 \begin_layout Plain Layout
26166 -t
26167 \end_layout
26168
26169 \end_inset
26170
26171  (for the 
26172 \begin_inset Flex Code
26173 status collapsed
26174
26175 \begin_layout Plain Layout
26176 tar
26177 \end_layout
26178
26179 \end_inset
26180
26181  format) or 
26182 \begin_inset Flex Code
26183 status collapsed
26184
26185 \begin_layout Plain Layout
26186 -z
26187 \end_layout
26188
26189 \end_inset
26190
26191  (for the 
26192 \begin_inset Flex Code
26193 status collapsed
26194
26195 \begin_layout Plain Layout
26196 zip
26197 \end_layout
26198
26199 \end_inset
26200
26201  format) switch to the 
26202 \begin_inset Flex Code
26203 status collapsed
26204
26205 \begin_layout Plain Layout
26206 \SpecialChar LyX
26207 \SpecialChar menuseparator
26208 \SpecialChar LyX
26209  Archive
26210 \end_layout
26211
26212 \end_inset
26213
26214  converter in 
26215 \begin_inset Flex Code
26216 status collapsed
26217
26218 \begin_layout Plain Layout
26219 Tools\SpecialChar menuseparator
26220 Preferences\SpecialChar menuseparator
26221 File Handling\SpecialChar menuseparator
26222 Converters
26223 \end_layout
26224
26225 \end_inset
26226
26227 .
26228  (Make sure you add the switch after the script name,
26229  not before it.)
26230 \end_layout
26231
26232 \begin_layout Section
26233 Fancy Headers and Footers
26234 \end_layout
26235
26236 \begin_layout Standard
26237 The default page layout is rather plain;
26238  for an 
26239 \begin_inset Flex Code
26240 status collapsed
26241
26242 \begin_layout Plain Layout
26243 article
26244 \end_layout
26245
26246 \end_inset
26247
26248  document class,
26249  all you get is a centered page number at the bottom of the page.
26250  This document uses KOMA-script's book class,
26251  so it appears to be a bit fancier.
26252  But to really put on a show,
26253  you need to set the document page style to 
26254 \begin_inset Quotes eld
26255 \end_inset
26256
26257 fancy
26258 \begin_inset Quotes erd
26259 \end_inset
26260
26261 ,
26262  as mentioned in the 
26263 \emph on
26264 User Guide
26265 \emph default
26266 .
26267  This section describes the \SpecialChar LaTeX
26268  code you need to insert in your \SpecialChar LaTeX
26269  preamble in order to get the desired effects.
26270 \end_layout
26271
26272 \begin_layout Standard
26273 For more information on fancy headers,
26274  see the 
26275 \begin_inset Flex Code
26276 status collapsed
26277
26278 \begin_layout Plain Layout
26279 fancyhdr
26280 \end_layout
26281
26282 \end_inset
26283
26284  package documentation.
26285  (
26286 \begin_inset Flex URL
26287 status collapsed
26288
26289 \begin_layout Plain Layout
26290
26291 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
26292 \end_layout
26293
26294 \end_inset
26295
26296 )
26297 \end_layout
26298
26299 \begin_layout Standard
26300 The page header is divided into three fields,
26301  not surprisingly labeled 
26302 \begin_inset Quotes eld
26303 \end_inset
26304
26305 left
26306 \begin_inset Quotes erd
26307 \end_inset
26308
26309 ,
26310  
26311 \begin_inset Quotes eld
26312 \end_inset
26313
26314 center
26315 \begin_inset Quotes erd
26316 \end_inset
26317
26318 ,
26319  and 
26320 \begin_inset Quotes eld
26321 \end_inset
26322
26323 right
26324 \begin_inset Quotes erd
26325 \end_inset
26326
26327 .
26328  The footer is also divided into these three fields.
26329  The \SpecialChar LaTeX
26330  commands to set these fields in the simplest manner are 
26331 \begin_inset Flex Code
26332 status collapsed
26333
26334 \begin_layout Plain Layout
26335
26336 \backslash
26337 lhead
26338 \end_layout
26339
26340 \end_inset
26341
26342 ,
26343  
26344 \begin_inset Flex Code
26345 status collapsed
26346
26347 \begin_layout Plain Layout
26348
26349 \backslash
26350 chead
26351 \end_layout
26352
26353 \end_inset
26354
26355 ,
26356  
26357 \begin_inset Flex Code
26358 status collapsed
26359
26360 \begin_layout Plain Layout
26361
26362 \backslash
26363 rhead
26364 \end_layout
26365
26366 \end_inset
26367
26368 ,
26369  
26370 \begin_inset Flex Code
26371 status collapsed
26372
26373 \begin_layout Plain Layout
26374
26375 \backslash
26376 lfoot
26377 \end_layout
26378
26379 \end_inset
26380
26381 ,
26382  etc.
26383  Suppose you wish to put your name in the upper left hand corner of each page.
26384  Simply insert the following command in the preamble:
26385  
26386 \end_layout
26387
26388 \begin_layout Standard
26389
26390 \family typewriter
26391
26392 \backslash
26393 lhead{John Q.
26394  DocWriter}
26395 \end_layout
26396
26397 \begin_layout Standard
26398 You will now see your name in the upper left.
26399  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,
26400  e.
26401 \begin_inset space \thinspace{}
26402 \end_inset
26403
26404 g.:
26405 \end_layout
26406
26407 \begin_layout Standard
26408
26409 \family typewriter
26410
26411 \backslash
26412 cfoot{}
26413 \end_layout
26414
26415 \begin_layout Standard
26416 Let's get really fancy:
26417  lets put the section number with the word 
26418 \begin_inset Quotes eld
26419 \end_inset
26420
26421 Section
26422 \begin_inset Quotes erd
26423 \end_inset
26424
26425  (e.
26426 \begin_inset space \thinspace{}
26427 \end_inset
26428
26429 g.
26430 \begin_inset space \space{}
26431 \end_inset
26432
26433 Section 3) in the upper left,
26434  the page number (e.
26435 \begin_inset space \thinspace{}
26436 \end_inset
26437
26438 g.
26439 \begin_inset space \space{}
26440 \end_inset
26441
26442 Page 4) in the upper right,
26443  your name in the lower left,
26444  and the date in the lower right.
26445  The following commands should now appear in the preamble:
26446 \end_layout
26447
26448 \begin_layout Standard
26449
26450 \family typewriter
26451
26452 \backslash
26453 lhead{Section 
26454 \backslash
26455 thesection}
26456 \end_layout
26457
26458 \begin_layout Standard
26459
26460 \family typewriter
26461
26462 \backslash
26463 chead{}
26464 \end_layout
26465
26466 \begin_layout Standard
26467
26468 \family typewriter
26469
26470 \backslash
26471 rhead{Page 
26472 \backslash
26473 thepage}
26474 \end_layout
26475
26476 \begin_layout Standard
26477
26478 \family typewriter
26479
26480 \backslash
26481 lfoot{John Q.
26482  DocWriter}
26483 \end_layout
26484
26485 \begin_layout Standard
26486
26487 \family typewriter
26488
26489 \backslash
26490 cfoot{}
26491 \end_layout
26492
26493 \begin_layout Standard
26494
26495 \family typewriter
26496
26497 \backslash
26498 rfoot{
26499 \backslash
26500 today}
26501 \end_layout
26502
26503 \begin_layout Standard
26504 The commands 
26505 \begin_inset Flex Code
26506 status collapsed
26507
26508 \begin_layout Plain Layout
26509
26510 \backslash
26511 thesection
26512 \end_layout
26513
26514 \end_inset
26515
26516  and 
26517 \begin_inset Flex Code
26518 status collapsed
26519
26520 \begin_layout Plain Layout
26521
26522 \backslash
26523 thepage
26524 \end_layout
26525
26526 \end_inset
26527
26528  access \SpecialChar LaTeX
26529 's section and page counters,
26530  and so print out the current section and page number.
26531  
26532 \begin_inset Flex Code
26533 status collapsed
26534
26535 \begin_layout Plain Layout
26536
26537 \backslash
26538 today
26539 \end_layout
26540
26541 \end_inset
26542
26543  simply prints out today's date.
26544 \end_layout
26545
26546 \begin_layout Standard
26547 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
26548  If you don't want one of the rules,
26549  set its thickness to 0.
26550  The header rule has a default thickness of 0.4pt,
26551  the footer rule is 0pt.
26552  Use commands
26553 \family typewriter
26554  
26555 \family default
26556 like 
26557 \begin_inset Flex Code
26558 status collapsed
26559
26560 \begin_layout Plain Layout
26561
26562 \backslash
26563 renewcommand{
26564 \backslash
26565 headrulewidth}{0.4pt}
26566 \end_layout
26567
26568 \end_inset
26569
26570  and 
26571 \begin_inset Flex Code
26572 status collapsed
26573
26574 \begin_layout Plain Layout
26575
26576 \backslash
26577 renewcommand{
26578 \backslash
26579 footrulewidth}{0.4pt}
26580 \end_layout
26581
26582 \end_inset
26583
26584  to set the thicknesses.
26585 \end_layout
26586
26587 \begin_layout Standard
26588 You can switch the header/footer settings on and off for individual pages using commands like 
26589 \begin_inset Flex Code
26590 status collapsed
26591
26592 \begin_layout Plain Layout
26593
26594 \backslash
26595 thispagestyle{empty}
26596 \end_layout
26597
26598 \end_inset
26599
26600 ,
26601  
26602 \begin_inset Flex Code
26603 status collapsed
26604
26605 \begin_layout Plain Layout
26606
26607 \backslash
26608 thispagestyle{plain}
26609 \end_layout
26610
26611 \end_inset
26612
26613 ,
26614  and 
26615 \begin_inset Flex Code
26616 status collapsed
26617
26618 \begin_layout Plain Layout
26619
26620 \backslash
26621 thispagestyle{fancy}
26622 \end_layout
26623
26624 \end_inset
26625
26626 .
26627  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
26628  code.
26629  In fact,
26630  title pages are marked as plain by default,
26631  while following pages are marked fancy when using the global fancy setting.
26632 \end_layout
26633
26634 \begin_layout Standard
26635 As a final example,
26636  it is possible to include an image in the header or footer.
26637  Suppose you want to put a company logo in the upper lefthand corner.
26638  You might try something like
26639 \end_layout
26640
26641 \begin_layout Standard
26642
26643 \family typewriter
26644
26645 \backslash
26646 lhead{
26647 \backslash
26648 resizebox{1in}{!}{
26649 \backslash
26650 includegraphics{logo.eps}}}
26651 \end_layout
26652
26653 \begin_layout Standard
26654 \noindent
26655 (you may need to preface this with 
26656 \begin_inset Flex Code
26657 status collapsed
26658
26659 \begin_layout Plain Layout
26660
26661 \backslash
26662 usepackage{graphics}
26663 \end_layout
26664
26665 \end_inset
26666
26667  if you don't include graphics elsewhere in your document).
26668 \end_layout
26669
26670 \begin_layout Chapter
26671 \SpecialChar LyX
26672  and the World Wide Web
26673 \end_layout
26674
26675 \begin_layout Standard
26676 \SpecialChar LyX
26677  has long supported the export of documents to various web-friendly formats,
26678  such as HTML.
26679  Before version 2.0,
26680  however,
26681  HTML export was always accomplished by the use of external converters.
26682 \begin_inset Foot
26683 status collapsed
26684
26685 \begin_layout Plain Layout
26686 For details on the use of external converters with \SpecialChar LyX
26687 ,
26688  see the 
26689 \emph on
26690 Converters
26691 \emph default
26692  section of the Customization manual.
26693 \end_layout
26694
26695 \end_inset
26696
26697  These fall into two large groups:
26698  there are converters that use \SpecialChar LaTeX
26699  as an intermediate format,
26700  such as 
26701 \begin_inset Flex Code
26702 status collapsed
26703
26704 \begin_layout Plain Layout
26705 htlatex
26706 \end_layout
26707
26708 \end_inset
26709
26710 ,
26711  
26712 \begin_inset Flex Code
26713 status collapsed
26714
26715 \begin_layout Plain Layout
26716 html2latex
26717 \end_layout
26718
26719 \end_inset
26720
26721 ,
26722  and 
26723 \begin_inset Flex Code
26724 status collapsed
26725
26726 \begin_layout Plain Layout
26727 plastex
26728 \end_layout
26729
26730 \end_inset
26731
26732 ,
26733  relying upon \SpecialChar LyX
26734  to produce the \SpecialChar LaTeX
26735 ;
26736  and there is a converter that works directly on \SpecialChar LyX
26737  files,
26738  
26739 \begin_inset Flex Code
26740 status collapsed
26741
26742 \begin_layout Plain Layout
26743 e\SpecialChar LyX
26744 er
26745 \end_layout
26746
26747 \end_inset
26748
26749 .
26750  All of these have different advantages and disadvantages.
26751  
26752 \end_layout
26753
26754 \begin_layout Standard
26755 The \SpecialChar LaTeX
26756 -based converters have the advantage that,
26757  in principle,
26758  they know everything about the exported document that \SpecialChar LaTeX
26759  does.
26760  Such converters do not care,
26761  for example,
26762  if a certain block of code was produced by \SpecialChar LyX
26763  or was Evil Red Text.
26764  These converters know about 
26765 \begin_inset Flex Code
26766 status collapsed
26767
26768 \begin_layout Plain Layout
26769 aux
26770 \end_layout
26771
26772 \end_inset
26773
26774  files,
26775  counters,
26776  and references,
26777  and can often make use of the 
26778 \begin_inset Flex Code
26779 status collapsed
26780
26781 \begin_layout Plain Layout
26782 bbl
26783 \end_layout
26784
26785 \end_inset
26786
26787  files generated by Bib\SpecialChar TeX
26788 .
26789  On the other hand,
26790  \SpecialChar LaTeX
26791  is a very hard language to parse—
26792 it is sometimes said that only \SpecialChar TeX
26793  itself understands \SpecialChar TeX
26794
26795 and \SpecialChar LaTeX
26796 -based converters will often choke on what seem to be quite simple constructs;
26797  complex ones can throw them completely,
26798  and as of this writing,
26799  for example,
26800  the 
26801 \emph on
26802 Embedded Objects
26803 \emph default
26804  manual will not export with 
26805 \begin_inset Flex Code
26806 status collapsed
26807
26808 \begin_layout Plain Layout
26809 htlatex
26810 \end_layout
26811
26812 \end_inset
26813
26814 ,
26815  though the others will.
26816  The other issue concerns how math is handled.
26817  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
26818  Since these are actually generated by \SpecialChar LaTeX
26819 ,
26820  they are accurate.
26821  But they do not scale well,
26822  and just getting them to look as if they are actually meant to be in your document—
26823 so that the font sizes seem to be roughly the same—
26824 can be a challenge.
26825 \end_layout
26826
26827 \begin_layout Standard
26828 Alex Fernandez's 
26829 \begin_inset Flex Code
26830 status collapsed
26831
26832 \begin_layout Plain Layout
26833 e\SpecialChar LyX
26834 er
26835 \end_layout
26836
26837 \end_inset
26838
26839  (
26840 \begin_inset CommandInset href
26841 LatexCommand href
26842 name "http://pinchito.es/elyxer/"
26843 target "http://pinchito.es/elyxer/"
26844 literal "false"
26845
26846 \end_inset
26847
26848 ) solves some of these problems.
26849  In particular,
26850  the formulae it produces scale perfectly,
26851  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
26852  But even moderately complex formula are rendered less well than with 
26853 \begin_inset Flex Code
26854 status collapsed
26855
26856 \begin_layout Plain Layout
26857 htlatex
26858 \end_layout
26859
26860 \end_inset
26861
26862 ;
26863  this reflects the limitations of HTML.
26864 \begin_inset Foot
26865 status collapsed
26866
26867 \begin_layout Plain Layout
26868 That said,
26869  
26870 \begin_inset Flex Code
26871 status collapsed
26872
26873 \begin_layout Plain Layout
26874 e\SpecialChar LyX
26875 er
26876 \end_layout
26877
26878 \end_inset
26879
26880  can also use jsMath and MathJax for equations,
26881  but this setting is only available globally and requires one to have access to a server that runs the backend.
26882 \end_layout
26883
26884 \end_inset
26885
26886  More importantly (as of version 1.1.1,
26887  at least),
26888  
26889 \begin_inset Flex Code
26890 status collapsed
26891
26892 \begin_layout Plain Layout
26893 e\SpecialChar LyX
26894 er
26895 \end_layout
26896
26897 \end_inset
26898
26899  has limited support for math macros and no support for user-defined paragraph or character styles.
26900  These limitations make 
26901 \begin_inset Flex Code
26902 status collapsed
26903
26904 \begin_layout Plain Layout
26905 e\SpecialChar LyX
26906 er
26907 \end_layout
26908
26909 \end_inset
26910
26911  unsuitable for many of the documents \SpecialChar LyX
26912  users produce.
26913  In principle,
26914  of course,
26915  these problems could be solved,
26916  but the \SpecialChar LyX
26917  developers have decided to follow a different path and have made \SpecialChar LyX
26918  itself capable of writing XHTML,
26919  just as it is capable of writing \SpecialChar LaTeX
26920 ,
26921  DocBook,
26922  and plaintext.
26923 \end_layout
26924
26925 \begin_layout Standard
26926 As of this writing,
26927  XHTML output remains under development and should probably be regarded as 
26928 \begin_inset Quotes eld
26929 \end_inset
26930
26931 experimental
26932 \begin_inset Quotes erd
26933 \end_inset
26934
26935 .
26936 \begin_inset Foot
26937 status collapsed
26938
26939 \begin_layout Plain Layout
26940 The file 
26941 \begin_inset Flex Code
26942 status collapsed
26943
26944 \begin_layout Plain Layout
26945 development/HTML/HTML.notes
26946 \end_layout
26947
26948 \end_inset
26949
26950 ,
26951  which can be found in the \SpecialChar LyX
26952  source tree or 
26953 \begin_inset CommandInset href
26954 LatexCommand href
26955 name "accessed online"
26956 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
26957 literal "false"
26958
26959 \end_inset
26960
26961 ,
26962  usually contains up-to-date information about the state of XHTML output.
26963  See also the list of XHTML bugs on 
26964 \begin_inset CommandInset href
26965 LatexCommand href
26966 name "the bug tracker"
26967 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"
26968 literal "false"
26969
26970 \end_inset
26971
26972 .
26973 \end_layout
26974
26975 \end_inset
26976
26977  Still,
26978  the developers have chosen this approach because it has several potential advantages over the other two.
26979 \end_layout
26980
26981 \begin_layout Standard
26982 These advantages are primarily due to the fact that the XHTML output routines,
26983  since they are part of \SpecialChar LyX
26984 ,
26985  know everything \SpecialChar LyX
26986  knows about the document being exported.
26987 \begin_inset Foot
26988 status collapsed
26989
26990 \begin_layout Plain Layout
26991 Another advantage is that,
26992  since these routines are internal to \SpecialChar LyX
26993 ,
26994  they are immune to changes in \SpecialChar LyX
26995 's file format,
26996  or to changes in the semantics of existing insets.
26997 \end_layout
26998
26999 \end_inset
27000
27001  So they know about the table of contents (as displayed in the outline),
27002  about the counters associated with different paragraph styles,
27003  and about user-defined styles.
27004  The XHTML output routines know what \SpecialChar LyX
27005  knows about internationalization,
27006  too,
27007  so they will output 
27008 \begin_inset Quotes eld
27009 \end_inset
27010
27011 Chapter 1
27012 \begin_inset Quotes erd
27013 \end_inset
27014
27015  or 
27016 \begin_inset Quotes eld
27017 \end_inset
27018
27019
27020 \lang ngerman
27021 Kapitel
27022 \lang english
27023  1
27024 \begin_inset Quotes erd
27025 \end_inset
27026
27027 ,
27028  depending upon the language in effect at the time.
27029  
27030 \end_layout
27031
27032 \begin_layout Standard
27033 Quite generally,
27034  the output routines know what \SpecialChar LyX
27035  knows about document layout,
27036  that is,
27037  about how the document is to be rendered on screen.
27038  We use this information when we output the document as XHTML.
27039  In particular,
27040  \SpecialChar LyX
27041  
27042 \emph on
27043 automatically
27044 \emph default
27045  generates CSS style information corresponding to the layout information it uses to render the document on screen:
27046  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
27047 ,
27048  then (by default) they will be sans-serif and bold when viewed in a web browser,
27049  too.
27050  And this is true not just for pre-defined styles,
27051  like Section,
27052  but for any style,
27053  including user-defined styles.
27054  Indeed,
27055  the XHTML output routines make no distinction between user-defined paragraph and 
27056 \change_deleted 244031559 1603876931
27057 character
27058 \change_inserted 244031559 1603876940
27059 text
27060 \change_unchanged
27061  styles and \SpecialChar LyX
27062 's own pre-defined styles:
27063  in each case,
27064  everything \SpecialChar LyX
27065  knows about the styles is contained in the layout files.
27066  And much the same is true as regards pre-defined textual insets,
27067  such as footnotes,
27068  and various custom insets.
27069  
27070 \end_layout
27071
27072 \begin_layout Standard
27073 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
27074  output can be customized and extended:
27075  through layout files and modules.
27076  See chapter five of the 
27077 \emph on
27078 Customization 
27079 \emph default
27080 manual for the details.
27081 \end_layout
27082
27083 \begin_layout Standard
27084 The remainder of this chapter contains more detailed information on XHTML output,
27085  its limitations,
27086  and ways to work around those limitations.
27087 \end_layout
27088
27089 \begin_layout Section
27090 Math Output in XHTML
27091 \end_layout
27092
27093 \begin_layout Standard
27094 \SpecialChar LyX
27095  offers four choices for how math is rendered.
27096  These have various advantages and disadvantages:
27097 \end_layout
27098
27099 \begin_layout Itemize
27100 MathML
27101 \begin_inset Newline newline
27102 \end_inset
27103
27104 MathML is a dialect of XML designed specifically for mathematics on the web,
27105  and it typically renders very well in browsers that support it.
27106  The disadvantage is that not all browsers support MathML,
27107  and support is not complete even in the Gecko-based browsers,
27108  such as Firefox.
27109 \begin_inset Newline newline
27110 \end_inset
27111
27112 If \SpecialChar LyX
27113  is unable to render a formula as MathML—
27114 for example,
27115  if the formula uses the 
27116 \begin_inset Flex Code
27117 status collapsed
27118
27119 \begin_layout Plain Layout
27120 xymatrix
27121 \end_layout
27122
27123 \end_inset
27124
27125  package or ERT—
27126 then it will instead output the formula as an image.
27127  
27128 \end_layout
27129
27130 \begin_layout Itemize
27131 HTML
27132 \begin_inset Newline newline
27133 \end_inset
27134
27135 As mentioned above,
27136  
27137 \begin_inset Flex Code
27138 status collapsed
27139
27140 \begin_layout Plain Layout
27141 elyxer
27142 \end_layout
27143
27144 \end_inset
27145
27146  outputs math as HTML,
27147  styled by CSS.
27148 \begin_inset Foot
27149 status collapsed
27150
27151 \begin_layout Plain Layout
27152 \SpecialChar LyX
27153  has borrowed some of the CSS for its HTML output from 
27154 \begin_inset Flex Code
27155 status collapsed
27156
27157 \begin_layout Plain Layout
27158 elyxer
27159 \end_layout
27160
27161 \end_inset
27162
27163 .
27164 \end_layout
27165
27166 \end_inset
27167
27168  For simple formulae,
27169  this can work quite well,
27170  though with more complicated formulae it tends to break down.
27171  Still,
27172  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
27173  fairly simple math.
27174 \begin_inset Newline newline
27175 \end_inset
27176
27177 If Lyx is unable to render a formula as HTML—
27178 for example,
27179  if the formula uses the 
27180 \begin_inset Flex Code
27181 status collapsed
27182
27183 \begin_layout Plain Layout
27184 xymatrix
27185 \end_layout
27186
27187 \end_inset
27188
27189  package or ERT—
27190 then it will instead output the formula as an image.
27191  
27192 \end_layout
27193
27194 \begin_layout Itemize
27195 Images
27196 \begin_inset Newline newline
27197 \end_inset
27198
27199 Like 
27200 \begin_inset Flex Code
27201 status collapsed
27202
27203 \begin_layout Plain Layout
27204 htlatex
27205 \end_layout
27206
27207 \end_inset
27208
27209 ,
27210  \SpecialChar LyX
27211  will output formulae as images,
27212  the very same images,
27213  in fact,
27214  that are used for instant preview.
27215 \begin_inset Foot
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 Instant preview does 
27220 \emph on
27221 not 
27222 \emph default
27223 have to be on for images to be output,
27224  however.
27225 \end_layout
27226
27227 \end_inset
27228
27229  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
27230 ,
27231  so they are very accurate.
27232  The disadvantage,
27233  as mentioned earlier,
27234  is that these are bitmapped images,
27235  so they do not scale terribly well,
27236  and one cannot copy them,
27237  etc.
27238 \begin_inset Newline newline
27239 \end_inset
27240
27241 The size of the images can be controlled by setting the 
27242 \begin_inset Quotes eld
27243 \end_inset
27244
27245 Math Images Scaling
27246 \begin_inset Quotes erd
27247 \end_inset
27248
27249  parameter under 
27250 \begin_inset Flex Noun
27251 status collapsed
27252
27253 \begin_layout Plain Layout
27254 Document\SpecialChar menuseparator
27255 Settings\SpecialChar menuseparator
27256 Formats
27257 \end_layout
27258
27259 \end_inset
27260
27261 .
27262 \begin_inset Foot
27263 status collapsed
27264
27265 \begin_layout Plain Layout
27266 For those who want to know,
27267  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
27268 \end_layout
27269
27270 \end_inset
27271
27272
27273 \begin_inset Newline newline
27274 \end_inset
27275
27276 If \SpecialChar LyX
27277  for some reason fails to create an image for a formula (e.g.,
27278  if a required \SpecialChar LaTeX
27279  package is not installed),
27280  then it will fall back to outputing the raw \SpecialChar LaTeX
27281 .
27282 \end_layout
27283
27284 \begin_layout Itemize
27285 \SpecialChar LaTeX
27286
27287 \begin_inset Newline newline
27288 \end_inset
27289
27290 Finally,
27291  \SpecialChar LyX
27292  will happily output math as \SpecialChar LaTeX
27293 .
27294  As well as being the output of last resort,
27295  this method can be used with such tools as 
27296 \begin_inset CommandInset href
27297 LatexCommand href
27298 name "jsMath"
27299 target "http://www.math.union.edu/~dpvc/jsMath/"
27300 literal "false"
27301
27302 \end_inset
27303
27304 ,
27305  which uses JavaScript to render \SpecialChar LaTeX
27306  embedded in HTML documents.
27307  \SpecialChar LyX
27308  wraps the \SpecialChar LaTeX
27309  in either a 
27310 \begin_inset Flex Code
27311 status collapsed
27312
27313 \begin_layout Plain Layout
27314 span
27315 \end_layout
27316
27317 \end_inset
27318
27319  (for inline formulas) or 
27320 \begin_inset Flex Code
27321 status collapsed
27322
27323 \begin_layout Plain Layout
27324 div
27325 \end_layout
27326
27327 \end_inset
27328
27329  (for displayed formulas) with 
27330 \begin_inset Flex Code
27331 status collapsed
27332
27333 \begin_layout Plain Layout
27334 class='math'
27335 \end_layout
27336
27337 \end_inset
27338
27339 ,
27340  as is required for jsMath.
27341 \end_layout
27342
27343 \begin_layout Standard
27344 One of these output methods must be selected under 
27345 \begin_inset Flex Noun
27346 status collapsed
27347
27348 \begin_layout Plain Layout
27349 Document\SpecialChar menuseparator
27350 Settings\SpecialChar menuseparator
27351 Formats
27352 \end_layout
27353
27354 \end_inset
27355
27356 .
27357  By default,
27358  \SpecialChar LyX
27359  outputs MathML.
27360  This is a document-wide setting,
27361  therefore.
27362 \end_layout
27363
27364 \begin_layout Standard
27365 Eventually,
27366  \SpecialChar LyX
27367  will offer the user the option to select an alternate output method for a particular inset,
27368  say,
27369  one that isn't being rendered very well by MathML.
27370 \begin_inset Foot
27371 status collapsed
27372
27373 \begin_layout Plain Layout
27374 That said,
27375  since \SpecialChar LyX
27376  falls back to images if the inset contains ERT,
27377  then one can force output as an image by putting some harmless ERT into the math,
27378  for example:
27379  
27380 \begin_inset Formula $a=b\relax$
27381 \end_inset
27382
27383 .
27384 \end_layout
27385
27386 \end_inset
27387
27388
27389 \end_layout
27390
27391 \begin_layout Section
27392 Bibliography and Citations
27393 \end_layout
27394
27395 \begin_layout Standard
27396 XHTML output fully supports bibliographies and citations.
27397  
27398 \end_layout
27399
27400 \begin_layout Standard
27401 Citation labels are generated by the same machinery that generates \SpecialChar LyX
27402 's on-screen labels,
27403  so the labels will look in the output much as they do in \SpecialChar LyX
27404 ,
27405  though better.
27406  If you are using numerical citations,
27407  then \SpecialChar LyX
27408  will output numerical labels,
27409  such as [1] or [17],
27410  rather than simply showing the citation key in square brackets,
27411  as it does on-screen.
27412  If you are using author-year citations,
27413  then \SpecialChar LyX
27414  will add lowercase letters to the years,
27415  just as Bib\SpecialChar TeX
27416  does,
27417  if it finds more than one citation for a given author-year combination.
27418  The labels will be printed with the bibliography entries.
27419  Note that there is,
27420  at present,
27421  no way to customize the appearance of the labels,
27422  for example,
27423  to choose between square brackets and parentheses.
27424 \end_layout
27425
27426 \begin_layout Standard
27427 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
27428  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.
27429  The formatting can be customized in your layout file or,
27430  preferably,
27431  in a module.
27432  See the 
27433 \emph on
27434 Customization
27435 \emph default
27436  manual for the details.
27437 \end_layout
27438
27439 \begin_layout Standard
27440 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
27441  So you can see things like this:
27442 \end_layout
27443
27444 \begin_layout Quote
27445 Jason Stanley,
27446  
27447 \begin_inset Quotes eld
27448 \end_inset
27449
27450 Context and Logical Form
27451 \begin_inset Quotes erd
27452 \end_inset
27453
27454 ,
27455  in 
27456 \emph on
27457 Language in Context:
27458  Selected Essays
27459 \emph default
27460  (Oxford:
27461  Oxford University Press,
27462  2007),
27463  pp.
27464  30–68.
27465 \end_layout
27466
27467 \begin_layout Quote
27468 Jason Stanley,
27469  
27470 \begin_inset Quotes eld
27471 \end_inset
27472
27473 Semantics in Context
27474 \begin_inset Quotes erd
27475 \end_inset
27476
27477 ,
27478  in 
27479 \emph on
27480 Language in Context:
27481  Selected Essays
27482 \emph default
27483  (Oxford:
27484  Oxford University Press,
27485  2007),
27486  pp.
27487  201–30.
27488 \end_layout
27489
27490 \begin_layout Standard
27491 This should be fixed before long.
27492 \end_layout
27493
27494 \begin_layout Standard
27495 There is no support at present for sectioned bibliographies.
27496  If you have multiple bibliographies,
27497  then \SpecialChar LyX
27498  will print the same bibliography over and over.
27499 \end_layout
27500
27501 \begin_layout Section
27502 Indexes
27503 \end_layout
27504
27505 \begin_layout Standard
27506 \SpecialChar LyX
27507  will happily export indexes as XHTML,
27508  but with certain limitations at the moment.
27509 \end_layout
27510
27511 \begin_layout Standard
27512 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 
27513 \emph on
27514 User's Guide
27515 \emph default
27516 .
27517 \begin_inset Foot
27518 status collapsed
27519
27520 \begin_layout Plain Layout
27521 The main issue here is that \SpecialChar LyX
27522  itself does not really handle these.
27523  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
27524 .
27525 \end_layout
27526
27527 \end_inset
27528
27529  We'll describe how they are handled using the subsection headings from that section.
27530 \end_layout
27531
27532 \begin_layout Itemize
27533 Grouping Index Entries (aka,
27534  sub-entries):
27535  \SpecialChar LyX
27536  makes an effort to support these,
27537  but the entries must be separated by 
27538 \begin_inset Quotes eld
27539 \end_inset
27540
27541  !
27542  
27543 \begin_inset Quotes erd
27544 \end_inset
27545
27546 ,
27547  that is,
27548  there must be spaces around the exclamation point.
27549  This is because it is otherwise too difficult to check for escaped exclamation points,
27550  ones in math,
27551  and so forth.
27552 \end_layout
27553
27554 \begin_layout Itemize
27555 Page Ranges:
27556  There is no support at all for page ranges,
27557  since these make no sense with XHMTL.
27558  Instead,
27559  you will just get two index entries,
27560  one at either end.
27561 \end_layout
27562
27563 \begin_layout Itemize
27564 Cross-referencing:
27565  There is no support for cross-referencing.
27566  If \SpecialChar LyX
27567  finds an entry containing the 
27568 \begin_inset Quotes eld
27569 \end_inset
27570
27571 |see\SpecialChar ldots
27572
27573 \begin_inset Quotes erd
27574 \end_inset
27575
27576  construct,
27577  it is just dropped,
27578  and the rest is treated as an ordinary index entry.
27579 \end_layout
27580
27581 \begin_layout Itemize
27582 Index Entry Order:
27583  \SpecialChar LyX
27584  does support attempts to fix the sorting order.
27585  It will take what is before the first `@' it finds and use that for sorting,
27586  taking what follows the first `@' to be the actual entry.
27587  At present,
27588  \SpecialChar LyX
27589  does not check for escaped `@',
27590  so do not try to index email addresses.
27591 \end_layout
27592
27593 \begin_layout Itemize
27594 Index Entry Layout:
27595  You can format entries by using the text style dialog,
27596  or by using any other method available within \SpecialChar LyX
27597  itself.
27598  There is no support for constructs like:
27599  
27600 \begin_inset Quotes eld
27601 \end_inset
27602
27603 entry|textbf
27604 \begin_inset Quotes erd
27605 \end_inset
27606
27607 .
27608  Indeed,
27609  if \SpecialChar LyX
27610  finds a pipe symbol,
27611  `|',
27612  in an entry,
27613  it will delete it and everything that follows it.
27614 \end_layout
27615
27616 \begin_layout Itemize
27617 Multiple Indexes:
27618  There is no support for multiple indexes.
27619  Rather,
27620  all index entries will be printed as one large index.
27621  To avoid our printing several versions of the index,
27622  we print only the main index,
27623  so make sure you have one.
27624 \end_layout
27625
27626 \begin_layout Section
27627 Nomenclature and Glossary
27628 \end_layout
27629
27630 \begin_layout Standard
27631 There is at present no support for glossaries.
27632  Adding it would be fairly trivial,
27633  and welcome.
27634 \end_layout
27635
27636 \begin_layout Chapter
27637
27638 \change_inserted 1075283030 1616534180
27639 DocBook Output
27640 \end_layout
27641
27642 \begin_layout Standard
27643
27644 \change_inserted 1075283030 1616534386
27645 Apart from HTML,
27646  \SpecialChar LyX
27647  can generate documents in the DocBook XML vocabulary.
27648  With versions 2.3 and before,
27649  only select templates could be used to generate DocBook documents (only version 4).
27650  Starting with \SpecialChar LyX
27651  2.4,
27652  most \SpecialChar LyX
27653  layouts can generate valid DocBook documents (only version 5).
27654  This feature is built into \SpecialChar LyX
27655  and does not require the use of external tools.
27656 \end_layout
27657
27658 \begin_layout Standard
27659
27660 \change_inserted 1075283030 1616534437
27661 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
27662  output can be customized and extended:
27663  through layout files and modules.
27664  See chapter five of the 
27665 \emph on
27666 Customization 
27667 \emph default
27668 manual for the details.
27669 \end_layout
27670
27671 \begin_layout Standard
27672
27673 \change_inserted 1075283030 1616534475
27674 Most \SpecialChar LyX
27675  features are supported with DocBook,
27676  like math output.
27677 \end_layout
27678
27679 \begin_layout Itemize
27680
27681 \change_inserted 1075283030 1616534741
27682 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
27683 ,
27684  i.e.
27685  ERTs).
27686  All formulae are also available in raw \SpecialChar TeX
27687  in the DocBook output for further processing.
27688 \end_layout
27689
27690 \begin_layout Itemize
27691
27692 \change_inserted 1075283030 1616534852
27693 Bibliographies and citations are implemented,
27694  including with an external BibTeX file.
27695  Bibliography entries are not prerendered when the detailed information are available,
27696  but rather output with the standard DocBook constructs.
27697  The external DocBook processor is expected to handle the rendering of entries.
27698 \end_layout
27699
27700 \begin_layout Itemize
27701
27702 \change_inserted 1075283030 1616534863
27703 Indexes are supported,
27704  including multiple indices.
27705  Grouping (with 
27706 \family typewriter
27707 !
27708 \family default
27709 ),
27710  page ranges,
27711  and cross-references (
27712 \family typewriter
27713 |see
27714 \family default
27715 ) are supported,
27716  with the exception of the same symbols escaped.
27717  Entry order (
27718 \family typewriter
27719 @
27720 \family default
27721 ) and layout (
27722 \family typewriter
27723 |mathbf
27724 \family default
27725 ) are not supported.
27726  There is no support for escaping of index entries.
27727 \end_layout
27728
27729 \begin_layout Itemize
27730
27731 \change_inserted 1075283030 1616534884
27732 Glossaries are implemented.
27733 \end_layout
27734
27735 \begin_layout Standard
27736
27737 \change_inserted 1075283030 1616534894
27738 Two major parameters can be set at the document level.
27739 \end_layout
27740
27741 \begin_layout Itemize
27742
27743 \change_inserted 1075283030 1616534948
27744 Format for tables:
27745  \SpecialChar LyX
27746  can generate tables either as HTML (default value) or CALS,
27747  depending on the user's requirements.
27748  Most DocBook processors accept both formats.
27749 \end_layout
27750
27751 \begin_layout Itemize
27752
27753 \change_inserted 1075283030 1616535006
27754 MathML prefix:
27755  in DocBook,
27756  MathML is included within its own name space,
27757  unlike HTML.
27758  The implication is that there must be an indication of the tags belonging to the MathML standard.
27759  Three choices are offered:
27760  
27761 \end_layout
27762
27763 \begin_deeper
27764 \begin_layout Itemize
27765
27766 \change_inserted 1075283030 1616535044
27767 Inline:
27768  the MathML name space is defined for each formula (using the 
27769 \family typewriter
27770 xmlns
27771 \family default
27772  attribute on each formula)
27773 \end_layout
27774
27775 \begin_layout Itemize
27776
27777 \change_inserted 1075283030 1616535090
27778 With the 
27779 \family typewriter
27780 m
27781 \family default
27782  prefix (default):
27783  the MathML name space is defined at the document level (using the 
27784 \family typewriter
27785 xmlns:m
27786 \family default
27787  attribute on the root element).
27788  Each MathML is prefixed with 
27789 \family typewriter
27790 m
27791 \family default
27792 :
27793  for instance,
27794  
27795 \family typewriter
27796 m:math
27797 \end_layout
27798
27799 \begin_layout Itemize
27800
27801 \change_inserted 1075283030 1616620405
27802 With the 
27803 \family typewriter
27804 mml
27805 \family default
27806  prefix:
27807  similar to the 
27808 \family typewriter
27809 m
27810 \family default
27811  option,
27812  but with 
27813 \family typewriter
27814 mml
27815 \end_layout
27816
27817 \begin_layout Standard
27818
27819 \change_inserted 1075283030 1616620470
27820 This option is especially useful if you want \SpecialChar LyX
27821  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
27822 \change_unchanged
27823
27824 \end_layout
27825
27826 \end_deeper
27827 \begin_layout Chapter
27828 The \SpecialChar LyX
27829  Server
27830 \end_layout
27831
27832 \begin_layout Section
27833 Introduction
27834 \end_layout
27835
27836 \begin_layout Standard
27837 The `\SpecialChar LyX
27838  server' allows other programs to talk to \SpecialChar LyX
27839 ,
27840  invoke \SpecialChar LyX
27841  commands,
27842  and retrieve information about the \SpecialChar LyX
27843  internal state.
27844  This is only intended for advanced users,
27845  but they should find it useful.
27846  It is by writing to the \SpecialChar LyX
27847  server,
27848  for example,
27849  that bibliography managers,
27850  such as JabRef,
27851  are able to 
27852 \begin_inset Quotes eld
27853 \end_inset
27854
27855 push
27856 \begin_inset Quotes erd
27857 \end_inset
27858
27859  citations to \SpecialChar LyX
27860 .
27861 \end_layout
27862
27863 \begin_layout Section
27864 Starting the \SpecialChar LyX
27865  Server
27866 \begin_inset CommandInset label
27867 LatexCommand label
27868 name "sec:Starting-the-Server"
27869
27870 \end_inset
27871
27872
27873 \end_layout
27874
27875 \begin_layout Standard
27876 The \SpecialChar LyX
27877  server works through the use of a pair of named pipes.
27878  These are usually located in 
27879 \begin_inset Flex Code
27880 status collapsed
27881
27882 \begin_layout Plain Layout
27883 UserDir
27884 \end_layout
27885
27886 \end_inset
27887
27888 ,
27889  (except on Windows,
27890  where 
27891 \emph on
27892 local
27893 \emph default
27894  named pipes are special objects located in 
27895 \begin_inset Flex Code
27896 status collapsed
27897
27898 \begin_layout Plain Layout
27899
27900 \backslash
27901
27902 \backslash
27903 .
27904 \backslash
27905 pipe
27906 \end_layout
27907
27908 \end_inset
27909
27910 ) and have the names 
27911 \begin_inset Quotes eld
27912 \end_inset
27913
27914
27915 \begin_inset Flex Code
27916 status collapsed
27917
27918 \begin_layout Plain Layout
27919 lyxpipe.in
27920 \end_layout
27921
27922 \end_inset
27923
27924
27925 \begin_inset Quotes erd
27926 \end_inset
27927
27928  and 
27929 \begin_inset Quotes eld
27930 \end_inset
27931
27932
27933 \begin_inset Flex Code
27934 status collapsed
27935
27936 \begin_layout Plain Layout
27937 lyxpipe.out
27938 \end_layout
27939
27940 \end_inset
27941
27942
27943 \begin_inset Quotes erd
27944 \end_inset
27945
27946 .
27947  External programs write into 
27948 \begin_inset Flex Code
27949 status collapsed
27950
27951 \begin_layout Plain Layout
27952 lyxpipe.in
27953 \end_layout
27954
27955 \end_inset
27956
27957  and read back data from 
27958 \begin_inset Flex Code
27959 status collapsed
27960
27961 \begin_layout Plain Layout
27962 lyxpipe.out
27963 \end_layout
27964
27965 \end_inset
27966
27967 .
27968  The stem of the pipe names can be defined in the 
27969 \begin_inset Flex Noun
27970 status collapsed
27971
27972 \begin_layout Plain Layout
27973 Tools\SpecialChar menuseparator
27974 Preferences
27975 \end_layout
27976
27977 \end_inset
27978
27979  dialog,
27980  for example 
27981 \begin_inset Flex Code
27982 status collapsed
27983
27984 \begin_layout Plain Layout
27985 "/home/myhome/lyxpipe"
27986 \end_layout
27987
27988 \end_inset
27989
27990 ,
27991  or 
27992 \begin_inset Flex Code
27993 status collapsed
27994
27995 \begin_layout Plain Layout
27996 "
27997 \backslash
27998
27999 \backslash
28000 .
28001 \backslash
28002 pipe
28003 \backslash
28004 lyxpipe"
28005 \end_layout
28006
28007 \end_inset
28008
28009  on Windows (where any working path instead of lyxpipe can be used,
28010  for example 
28011 \begin_inset Flex Code
28012 status collapsed
28013
28014 \begin_layout Plain Layout
28015 "
28016 \backslash
28017
28018 \backslash
28019 .
28020 \backslash
28021 pipe
28022 \backslash
28023 my
28024 \backslash
28025 lyx
28026 \backslash
28027 pipe"
28028 \end_layout
28029
28030 \end_inset
28031
28032  would also work).
28033  You 
28034 \emph on
28035 must
28036 \emph default
28037  configure this manually in order for the server to start.
28038 \end_layout
28039
28040 \begin_layout Standard
28041 \SpecialChar LyX
28042  will add the '
28043 \begin_inset Flex Code
28044 status collapsed
28045
28046 \begin_layout Plain Layout
28047 .in
28048 \end_layout
28049
28050 \end_inset
28051
28052 ' and '
28053 \begin_inset Flex Code
28054 status collapsed
28055
28056 \begin_layout Plain Layout
28057 .out
28058 \end_layout
28059
28060 \end_inset
28061
28062 ' to create the pipes.
28063  If one of the pipes already exists,
28064  \SpecialChar LyX
28065  will assume that another \SpecialChar LyX
28066  process is already running and will not start the server.
28067  On POSIX (Unix like) systems,
28068  if for some other reason,
28069  an unused 
28070 \begin_inset Quotes eld
28071 \end_inset
28072
28073 stale
28074 \begin_inset Quotes erd
28075 \end_inset
28076
28077  pipe is left in existence when \SpecialChar LyX
28078  closes,
28079  then \SpecialChar LyX
28080  will try to delete it.
28081  If this fails for some reason,
28082  you will need to delete the pipes manually and then restart \SpecialChar LyX
28083 .
28084  On Windows,
28085  pipes are deleted by the OS on program termination or crash,
28086  so 
28087 \begin_inset Quotes eld
28088 \end_inset
28089
28090 stale
28091 \begin_inset Quotes erd
28092 \end_inset
28093
28094  pipes should not be possible.
28095 \end_layout
28096
28097 \begin_layout Standard
28098 To have several \SpecialChar LyX
28099  processes with servers at the same time,
28100  you have to use different configurations,
28101  perhaps by using separate user directories,
28102  each with its own 
28103 \begin_inset Flex Code
28104 status collapsed
28105
28106 \begin_layout Plain Layout
28107 preferences
28108 \end_layout
28109
28110 \end_inset
28111
28112  file,
28113  for each process.
28114 \end_layout
28115
28116 \begin_layout Standard
28117 If you are developing a client program,
28118  you might find it useful to enable debugging information from the \SpecialChar LyX
28119  server.
28120  Do this by starting \SpecialChar LyX
28121  as 
28122 \begin_inset Flex Code
28123 status collapsed
28124
28125 \begin_layout Plain Layout
28126 lyx -dbg lyxserver
28127 \end_layout
28128
28129 \end_inset
28130
28131 .
28132 \end_layout
28133
28134 \begin_layout Standard
28135 You can find a complete example client written in C++ in the source distribution as 
28136 \begin_inset Flex Code
28137 status collapsed
28138
28139 \begin_layout Plain Layout
28140 development/lyxserver/server_monitor.cpp
28141 \end_layout
28142
28143 \end_inset
28144
28145 .
28146 \end_layout
28147
28148 \begin_layout Standard
28149 Another useful tool is the command-line based client found in 
28150 \begin_inset Flex Code
28151 status collapsed
28152
28153 \begin_layout Plain Layout
28154 src/client/lyxclient
28155 \end_layout
28156
28157 \end_inset
28158
28159 .
28160 \end_layout
28161
28162 \begin_layout Section
28163 Normal communication
28164 \end_layout
28165
28166 \begin_layout Standard
28167 To issue a \SpecialChar LyX
28168  call,
28169  the client writes a line of ASCII text into the input pipe.
28170  This line has the following format:
28171 \end_layout
28172
28173 \begin_layout Quote
28174 LYXCMD:
28175 \emph on
28176 clientname
28177 \emph default
28178 :
28179 \emph on
28180 function
28181 \emph default
28182 :
28183 \emph on
28184 argument
28185 \end_layout
28186
28187 \begin_layout Description
28188 clientname is a name that the client can choose arbitrarily.
28189  Its only use is that \SpecialChar LyX
28190  will echo it if it sends an answer—
28191 so a client can dispatch results from different requesters.
28192 \end_layout
28193
28194 \begin_layout Description
28195 function is the function you want \SpecialChar LyX
28196  to perform.
28197  It is the same as the commands you'd use in the minibuffer.
28198 \end_layout
28199
28200 \begin_layout Description
28201 argument is an optional argument which is meaningful only to some functions (for instance,
28202  the 
28203 \begin_inset Quotes eld
28204 \end_inset
28205
28206 self-insert
28207 \begin_inset Quotes erd
28208 \end_inset
28209
28210  LFUN will insert the argument as text at the cursor position).
28211 \end_layout
28212
28213 \begin_layout Standard
28214 The answer from \SpecialChar LyX
28215  will arrive in the output pipe and be of the form
28216 \end_layout
28217
28218 \begin_layout Quote
28219 INFO:
28220 \emph on
28221 clientname
28222 \emph default
28223 :
28224 \emph on
28225 function
28226 \emph default
28227 :
28228 \emph on
28229 data
28230 \end_layout
28231
28232 \begin_layout Standard
28233 where 
28234 \emph on
28235 clientname
28236 \emph default
28237  and 
28238 \emph on
28239 function
28240 \emph default
28241  are just echoed from the command request,
28242  while 
28243 \emph on
28244 data
28245 \emph default
28246  is more or less useful information filled according to how the command execution worked out.
28247  Some commands,
28248  such as 
28249 \begin_inset Quotes eld
28250 \end_inset
28251
28252 font-state
28253 \begin_inset Quotes erd
28254 \end_inset
28255
28256 ,
28257  will return information about the internal state of \SpecialChar LyX
28258 ,
28259  while other will return an empty data-response.
28260  This means that the command execution went fine.
28261 \end_layout
28262
28263 \begin_layout Standard
28264 In case of errors,
28265  the response from \SpecialChar LyX
28266  will have this form
28267 \end_layout
28268
28269 \begin_layout Quote
28270 ERROR:
28271 \emph on
28272 clientname
28273 \emph default
28274 :
28275 \emph on
28276 function
28277 \emph default
28278 :
28279 \emph on
28280 error message
28281 \end_layout
28282
28283 \begin_layout Standard
28284 where the 
28285 \emph on
28286 error message
28287 \emph default
28288  should contain an explanation of why the command failed.
28289 \end_layout
28290
28291 \begin_layout Standard
28292 Examples:
28293 \end_layout
28294
28295 \begin_layout LyX-Code
28296 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
28297 \begin_inset Newline newline
28298 \end_inset
28299
28300 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
28301 \begin_inset Newline newline
28302 \end_inset
28303
28304 read a <~/.lyxpipe.out
28305 \begin_inset Newline newline
28306 \end_inset
28307
28308 echo $a
28309 \end_layout
28310
28311 \begin_layout Subsection
28312 AppleScript (Mac OS X)
28313 \end_layout
28314
28315 \begin_layout Standard
28316 Since \SpecialChar LyX
28317  2.1,
28318  \SpecialChar LyX
28319  supports basic interactions with AppleScript for normal communication through the command run.
28320  This command takes a direct argument (the 
28321 \series bold
28322 function
28323 \series default
28324  to perform) and an optional argument.
28325  It either returns the output of the function or triggers an error with the error message and code.
28326 \end_layout
28327
28328 \begin_layout Standard
28329 Example:
28330 \end_layout
28331
28332 \begin_layout LyX-Code
28333 tell application "\SpecialChar LyX
28334 "
28335 \end_layout
28336
28337 \begin_layout LyX-Code
28338   try
28339 \end_layout
28340
28341 \begin_layout LyX-Code
28342     -- Stores the current file name into f
28343 \end_layout
28344
28345 \begin_layout LyX-Code
28346     set f to (run "server-get-filename" with argument "")
28347 \end_layout
28348
28349 \begin_layout LyX-Code
28350     on error the error_message number the error_number
28351 \end_layout
28352
28353 \begin_layout LyX-Code
28354       display dialog "Error:
28355  " & the error_number & ".
28356  " ¬
28357 \end_layout
28358
28359 \begin_layout LyX-Code
28360               & the error_message buttons {"OK"} default button 1
28361 \end_layout
28362
28363 \begin_layout LyX-Code
28364   end try
28365 \end_layout
28366
28367 \begin_layout LyX-Code
28368 end tell
28369 \end_layout
28370
28371 \begin_layout Section
28372 Notification
28373 \end_layout
28374
28375 \begin_layout Standard
28376 \SpecialChar LyX
28377  can notify clients of events going on asynchronously.
28378  Currently it will only do this if the user binds a key sequence with the function 
28379 \begin_inset Quotes eld
28380 \end_inset
28381
28382 notify
28383 \begin_inset Quotes erd
28384 \end_inset
28385
28386 .
28387  The format of the string \SpecialChar LyX
28388  sends is as follows:
28389 \end_layout
28390
28391 \begin_layout Quote
28392 \begin_inset Flex Code
28393 status collapsed
28394
28395 \begin_layout Plain Layout
28396 NOTIFY:
28397 \end_layout
28398
28399 \end_inset
28400
28401
28402 \emph on
28403 key-sequence
28404 \end_layout
28405
28406 \begin_layout Standard
28407 where 
28408 \emph on
28409 key-sequence
28410 \emph default
28411  is the printed representation of the key sequence that was actually typed by the user.
28412 \end_layout
28413
28414 \begin_layout Standard
28415 This mechanism can be used to extend \SpecialChar LyX
28416 's command set and implement macros.
28417  Bind some key sequence to 
28418 \begin_inset Quotes eld
28419 \end_inset
28420
28421 notify
28422 \begin_inset Quotes erd
28423 \end_inset
28424
28425 .
28426  Then start a client that listens on the output pipe,
28427  dispatches the command according to the sequence,
28428  and starts a function that may use \SpecialChar LyX
28429  calls and \SpecialChar LyX
28430  requests to issue a command or a series of commands to \SpecialChar LyX
28431 .
28432 \end_layout
28433
28434 \begin_layout Section
28435 The simple \SpecialChar LyX
28436  Server Protocol
28437 \end_layout
28438
28439 \begin_layout Standard
28440 \SpecialChar LyX
28441  implements a simple protocol that can be used for session management.
28442  All messages are of the form
28443 \end_layout
28444
28445 \begin_layout Quote
28446 LYXSRV:
28447 \emph on
28448 clientname
28449 \emph default
28450 :
28451 \emph on
28452 protocol message
28453 \end_layout
28454
28455 \begin_layout Standard
28456 where 
28457 \emph on
28458 protocol message
28459 \emph default
28460  can be 
28461 \begin_inset Quotes eld
28462 \end_inset
28463
28464 hello
28465 \begin_inset Quotes erd
28466 \end_inset
28467
28468  or 
28469 \begin_inset Quotes eld
28470 \end_inset
28471
28472 bye
28473 \begin_inset Quotes erd
28474 \end_inset
28475
28476 .
28477  If 
28478 \begin_inset Quotes eld
28479 \end_inset
28480
28481 hello
28482 \begin_inset Quotes erd
28483 \end_inset
28484
28485  is received from a client,
28486  \SpecialChar LyX
28487  will report back to inform the client that it's listening to it's messages,
28488  while 
28489 \begin_inset Quotes eld
28490 \end_inset
28491
28492 bye
28493 \begin_inset Quotes erd
28494 \end_inset
28495
28496  sent from \SpecialChar LyX
28497  will inform clients that \SpecialChar LyX
28498  is closing.
28499 \end_layout
28500
28501 \begin_layout Section
28502 Reverse DVI/PDF search
28503 \end_layout
28504
28505 \begin_layout Standard
28506 Some DVI/PDF viewers
28507 \begin_inset Foot
28508 status collapsed
28509
28510 \begin_layout Plain Layout
28511 The following viewers offer the reverse PDF search feature:
28512  Okular on KDE/Linux,
28513  Qpdfview on Unix,
28514  Skim on Mac OSX and SumatraPDF on Windows.
28515 \end_layout
28516
28517 \end_inset
28518
28519  provide 
28520 \emph on
28521 reverse search
28522 \emph default
28523  facility (also called 
28524 \emph on
28525 inverse search
28526 \emph default
28527 ).
28528  This means that you can tell \SpecialChar LyX
28529  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
28530  To achieve this,
28531  the viewer must be able to communicate with \SpecialChar LyX
28532 .
28533  This is done via the \SpecialChar LyX
28534  server either by using the named pipe (
28535 \emph on
28536 lyxpipe
28537 \emph default
28538 ),
28539  or the UNIX domain socket (
28540 \emph on
28541 lyxsocket
28542 \emph default
28543 ) that \SpecialChar LyX
28544  creates in its temporary directory (this is the way the 
28545 \begin_inset Flex Code
28546 status collapsed
28547
28548 \begin_layout Plain Layout
28549 lyxclient
28550 \end_layout
28551
28552 \end_inset
28553
28554  program communicates with \SpecialChar LyX
28555 ).
28556  In some cases,
28557  you need a helper script that mediates between the viewer and \SpecialChar LyX
28558 ,
28559  in others,
28560  the viewer can communicate with \SpecialChar LyX
28561  directly.
28562  This depends on the selected viewer and on your operating system.
28563  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
28564  In what follows,
28565  we will thus describe how to setup reverse search for specific viewers.
28566  Before we turn to this,
28567  though,
28568  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
28569 \end_layout
28570
28571 \begin_layout Subsection
28572 Automatic setup
28573 \begin_inset CommandInset label
28574 LatexCommand label
28575 name "subsec:rev-search"
28576
28577 \end_inset
28578
28579
28580 \end_layout
28581
28582 \begin_layout Standard
28583 In most cases \SpecialChar LyX
28584  will do the work for you by pressing the following button in the toolbar:
28585  
28586 \begin_inset Info
28587 type  "icon"
28588 arg   "buffer-toggle-output-sync"
28589 \end_inset
28590
28591 .
28592  Alternatively,
28593  you can also enable the feature by checking 
28594 \family sans
28595 Synchronize with Output
28596 \family default
28597  in 
28598 \begin_inset Flex Noun
28599 status collapsed
28600
28601 \begin_layout Plain Layout
28602 Document\SpecialChar menuseparator
28603 Settings\SpecialChar menuseparator
28604 Formats
28605 \end_layout
28606
28607 \end_inset
28608
28609 .
28610  In such a case \SpecialChar LyX
28611  will automatically insert the necessary Sync\SpecialChar TeX
28612  macro (for PDF) or load the srcltx package (for DVI) respectively.
28613  This option can be easily reached also on 
28614 \begin_inset Flex Code
28615 status collapsed
28616
28617 \begin_layout Plain Layout
28618 View/Update
28619 \end_layout
28620
28621 \end_inset
28622
28623  Toolbar.
28624 \end_layout
28625
28626 \begin_layout Standard
28627 If you need a different setting,
28628  you can select or input a custom macro from the drop down box just below 
28629 \begin_inset Flex Noun
28630 status collapsed
28631
28632 \begin_layout Plain Layout
28633 Document\SpecialChar menuseparator
28634 Settings\SpecialChar menuseparator
28635 Output\SpecialChar menuseparator
28636 Synchronize with Output
28637 \end_layout
28638
28639 \end_inset
28640
28641 .
28642 \end_layout
28643
28644 \begin_layout Standard
28645 Note that the method 
28646 \begin_inset Flex Code
28647 status collapsed
28648
28649 \begin_layout Plain Layout
28650
28651 \backslash
28652 synctex=1
28653 \end_layout
28654
28655 \end_inset
28656
28657  enables gzip compression.
28658  If your viewer does not support it,
28659  you should instead use 
28660 \begin_inset Flex Code
28661 status collapsed
28662
28663 \begin_layout Plain Layout
28664
28665 \backslash
28666 synctex=-1
28667 \end_layout
28668
28669 \end_inset
28670
28671 .
28672 \end_layout
28673
28674 \begin_layout Standard
28675 Please also note that including the 
28676 \begin_inset Flex Code
28677 status collapsed
28678
28679 \begin_layout Plain Layout
28680 srcltx
28681 \end_layout
28682
28683 \end_inset
28684
28685  package or 
28686 \begin_inset Flex Code
28687 status collapsed
28688
28689 \begin_layout Plain Layout
28690 src-specials
28691 \end_layout
28692
28693 \end_inset
28694
28695  sometimes has an undesired impact on the typesetting.
28696  Thus,
28697  you should switch output synchronization off for the final typesetting if you use the 
28698 \begin_inset Flex Code
28699 status collapsed
28700
28701 \begin_layout Plain Layout
28702 srcltx
28703 \end_layout
28704
28705 \end_inset
28706
28707  package or 
28708 \begin_inset Flex Code
28709 status collapsed
28710
28711 \begin_layout Plain Layout
28712 src-specials
28713 \end_layout
28714
28715 \end_inset
28716
28717 .
28718  
28719 \end_layout
28720
28721 \begin_layout Standard
28722 In case you need some more special settings that are not covered by the automatic settings,
28723  read the next section about how to set up output synchronization manually.
28724  If the automatic setup suits your needs,
28725  you can readily jump to section
28726 \begin_inset space ~
28727 \end_inset
28728
28729
28730 \begin_inset CommandInset ref
28731 LatexCommand ref
28732 reference "subsec:configuring-viewers"
28733 nolink "false"
28734
28735 \end_inset
28736
28737 ,
28738  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
28739 \end_layout
28740
28741 \begin_layout Subsection
28742 Manual setup
28743 \end_layout
28744
28745 \begin_layout Standard
28746 \SpecialChar LaTeX
28747  provides several different methods for reverse search.
28748  Some are built-in in the 
28749 \begin_inset Flex Code
28750 status collapsed
28751
28752 \begin_layout Plain Layout
28753 latex/pdflatex
28754 \end_layout
28755
28756 \end_inset
28757
28758  program,
28759  some are provided by external packages.
28760  Your choice depends on whether your \SpecialChar LaTeX
28761  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
28762  The available methods are described in the following.
28763 \end_layout
28764
28765 \begin_layout Subsubsection*
28766 Built-in DVI-search via src-specials (DVI only) 
28767 \end_layout
28768
28769 \begin_layout Standard
28770 This method provides the DVI file with the necessary information for reverse search.
28771  It is available in \SpecialChar LaTeX
28772  since quite some time (any somewhat recent \SpecialChar LaTeX
28773  distribution should include it),
28774  and it works reliably.
28775  To enable it,
28776  change the 
28777 \begin_inset Flex Noun
28778 status collapsed
28779
28780 \begin_layout Plain Layout
28781 La
28782 \family sans
28783 TeX
28784 \family default
28785  (plain)->DVI
28786 \end_layout
28787
28788 \end_inset
28789
28790  or 
28791 \begin_inset Flex Noun
28792 status collapsed
28793
28794 \begin_layout Plain Layout
28795 La
28796 \family sans
28797 TeX
28798 \family default
28799  (plain)->DraftDVI
28800 \end_layout
28801
28802 \end_inset
28803
28804  converter in 
28805 \begin_inset Flex Noun
28806 status collapsed
28807
28808 \begin_layout Plain Layout
28809 Preferences\SpecialChar menuseparator
28810 File Handling\SpecialChar menuseparator
28811 Converters
28812 \end_layout
28813
28814 \end_inset
28815
28816  to 
28817 \begin_inset Flex Code
28818 status collapsed
28819
28820 \begin_layout Plain Layout
28821 latex -src-specials $$i
28822 \end_layout
28823
28824 \end_inset
28825
28826 .
28827  If this doesn't work,
28828  check if your \SpecialChar TeX
28829  engine needs different options (the syntax might differ in some distributions).
28830 \end_layout
28831
28832 \begin_layout Subsubsection*
28833 External Packages (PDFSync and scrltx) 
28834 \end_layout
28835
28836 \begin_layout Standard
28837 The packages 
28838 \emph on
28839 pdfsync
28840 \emph default
28841  and 
28842 \emph on
28843 scrltx
28844 \emph default
28845  provide reverse search facility for PDF output (via pdflatex) and DVI output,
28846  respectively.
28847  In order to enable it,
28848  load the packages in the \SpecialChar LyX
28849  preamble:
28850  
28851 \end_layout
28852
28853 \begin_layout Itemize
28854 \begin_inset Flex Code
28855 status collapsed
28856
28857 \begin_layout Plain Layout
28858
28859 \backslash
28860 usepackage{pdfsync}
28861 \end_layout
28862
28863 \end_inset
28864
28865  for reverse PDF search,
28866 \end_layout
28867
28868 \begin_layout Itemize
28869 \begin_inset Flex Code
28870 status collapsed
28871
28872 \begin_layout Plain Layout
28873
28874 \backslash
28875 usepackage[active]{srcltx}
28876 \end_layout
28877
28878 \end_inset
28879
28880  for reverse DVI search.
28881 \end_layout
28882
28883 \begin_layout Standard
28884 If you want to be able to perform both DVI and PDF reverse searches,
28885  you can also insert in the preamble the following lines
28886 \end_layout
28887
28888 \begin_layout LyX-Code
28889
28890 \backslash
28891 usepackage{ifpdf}
28892 \begin_inset Newline newline
28893 \end_inset
28894
28895
28896 \backslash
28897 ifpdf
28898 \begin_inset Newline newline
28899 \end_inset
28900
28901   
28902 \backslash
28903 usepackage{pdfsync}
28904 \begin_inset Newline newline
28905 \end_inset
28906
28907
28908 \backslash
28909 else
28910 \begin_inset Newline newline
28911 \end_inset
28912
28913   
28914 \backslash
28915 usepackage[active]{srcltx}
28916 \begin_inset Newline newline
28917 \end_inset
28918
28919
28920 \backslash
28921 fi
28922 \end_layout
28923
28924 \begin_layout Standard
28925 This way,
28926  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
28927 \end_layout
28928
28929 \begin_layout Standard
28930 Note that PDFSync might affect the output layout of your document.
28931  It is therefore advised to disable PDFsync for final documents.
28932 \end_layout
28933
28934 \begin_layout Subsubsection*
28935 Built-in reverse search via Sync\SpecialChar TeX
28936  (DVI and PDF) 
28937 \end_layout
28938
28939 \begin_layout Standard
28940 Recent versions of 
28941 \begin_inset Flex Code
28942 status collapsed
28943
28944 \begin_layout Plain Layout
28945 (pdf)latex
28946 \end_layout
28947
28948 \end_inset
28949
28950  have built-in support for both PDF and DVI reverse search.
28951  This so-called 
28952 \emph on
28953 Sync\SpecialChar TeX
28954
28955 \emph default
28956  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
28957 \emph on
28958 scr-specials
28959 \emph default
28960  approach.
28961  You need at least \SpecialChar TeX
28962 Live 2008 or a recent Mik\SpecialChar TeX
28963  distribution in order to use it.
28964 \begin_inset Foot
28965 status collapsed
28966
28967 \begin_layout Plain Layout
28968 For some reason,
28969  Mik\SpecialChar TeX
28970  does not understand/obey the command \SpecialChar LyX
28971  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
28972 \end_layout
28973
28974 \begin_layout Plain Layout
28975 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
28976  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
28977  by adding the -synctex=1 switch).
28978 \end_layout
28979
28980 \end_inset
28981
28982  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
28983  Skim on the Mac,
28984  SumatraPDF on Windows;
28985  see the next section for details) already provide Sync\SpecialChar TeX
28986  support.
28987 \end_layout
28988
28989 \begin_layout Standard
28990 To enable Sync\SpecialChar TeX
28991  for DVI output,
28992  change the 
28993 \begin_inset Flex Noun
28994 status collapsed
28995
28996 \begin_layout Plain Layout
28997 La
28998 \family sans
28999 TeX
29000 \family default
29001  (plain) -> DVI
29002 \end_layout
29003
29004 \end_inset
29005
29006  or 
29007 \begin_inset Flex Noun
29008 status collapsed
29009
29010 \begin_layout Plain Layout
29011 La
29012 \family sans
29013 TeX
29014 \family default
29015  (plain) -> DraftDVI
29016 \end_layout
29017
29018 \end_inset
29019
29020  converter in 
29021 \begin_inset Flex Noun
29022 status collapsed
29023
29024 \begin_layout Plain Layout
29025 Preferences\SpecialChar menuseparator
29026 File Handling\SpecialChar menuseparator
29027 Converters
29028 \end_layout
29029
29030 \end_inset
29031
29032  to 
29033 \begin_inset Flex Code
29034 status collapsed
29035
29036 \begin_layout Plain Layout
29037 latex -synctex=1 $$i
29038 \end_layout
29039
29040 \end_inset
29041
29042 ,
29043  and for PDF output,
29044  change the 
29045 \begin_inset Flex Noun
29046 status collapsed
29047
29048 \begin_layout Plain Layout
29049 La
29050 \family sans
29051 TeX
29052 \family default
29053  (pdflatex) -> PDF (pdflatex)
29054 \end_layout
29055
29056 \end_inset
29057
29058  converter to 
29059 \begin_inset Flex Code
29060 status collapsed
29061
29062 \begin_layout Plain Layout
29063 pdflatex -synctex=1 $$i
29064 \end_layout
29065
29066 \end_inset
29067
29068 .
29069  Should your viewer not be considered in the following description,
29070  or in case of missing success,
29071  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
29072 .
29073 \begin_inset Foot
29074 status collapsed
29075
29076 \begin_layout Plain Layout
29077 Note that the option 
29078 \begin_inset Flex Code
29079 status collapsed
29080
29081 \begin_layout Plain Layout
29082 -synctex=1
29083 \end_layout
29084
29085 \end_inset
29086
29087  option enables gzip compression.
29088  If your viewer does not support it,
29089  you should instead use 
29090 \begin_inset Flex Code
29091 status collapsed
29092
29093 \begin_layout Plain Layout
29094 -synctex=-1
29095 \end_layout
29096
29097 \end_inset
29098
29099 .
29100 \end_layout
29101
29102 \end_inset
29103
29104
29105 \end_layout
29106
29107 \begin_layout Subsection
29108 Configuring and using specific viewers
29109 \begin_inset CommandInset label
29110 LatexCommand label
29111 name "subsec:configuring-viewers"
29112
29113 \end_inset
29114
29115
29116 \end_layout
29117
29118 \begin_layout Subsubsection*
29119 Xdvi (all platforms)
29120 \end_layout
29121
29122 \begin_layout Standard
29123 If you use 
29124 \begin_inset Flex Code
29125 status collapsed
29126
29127 \begin_layout Plain Layout
29128 xdvi
29129 \end_layout
29130
29131 \end_inset
29132
29133 ,
29134  you don't need to do anything else for performing a reverse DVI search,
29135  as \SpecialChar LyX
29136  already provides the necessary hooks for automatically using the 
29137 \begin_inset Flex Code
29138 status collapsed
29139
29140 \begin_layout Plain Layout
29141 lyxclient
29142 \end_layout
29143
29144 \end_inset
29145
29146  program.
29147  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
29148  respectively).
29149 \end_layout
29150
29151 \begin_layout Standard
29152 However,
29153  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
29154 ,
29155  simply change the DVI viewer in 
29156 \begin_inset Flex Noun
29157 status collapsed
29158
29159 \begin_layout Plain Layout
29160 Preferences\SpecialChar menuseparator
29161 File Handling\SpecialChar menuseparator
29162 File formats
29163 \end_layout
29164
29165 \end_inset
29166
29167  to
29168 \begin_inset Foot
29169 status collapsed
29170
29171 \begin_layout Plain Layout
29172 On Mac OSX you have to use 
29173 \begin_inset Flex Code
29174 status collapsed
29175
29176 \begin_layout Plain Layout
29177 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
29178 \end_layout
29179
29180 \end_inset
29181
29182
29183 \end_layout
29184
29185 \end_inset
29186
29187  
29188 \begin_inset Flex Code
29189 status collapsed
29190
29191 \begin_layout Plain Layout
29192 xdvi -editor "lyxeditor.sh %f %l"
29193 \end_layout
29194
29195 \end_inset
29196
29197 ,
29198  where 
29199 \begin_inset Flex Code
29200 status collapsed
29201
29202 \begin_layout Plain Layout
29203 lyxeditor.sh
29204 \end_layout
29205
29206 \end_inset
29207
29208  is a suitable script.
29209  For example,
29210  a minimal shell script is the following one:
29211 \end_layout
29212
29213 \begin_layout LyX-Code
29214 #!/bin/sh
29215 \begin_inset Newline newline
29216 \end_inset
29217
29218 LYXPIPE="/path/to/lyxpipe"
29219 \begin_inset Newline newline
29220 \end_inset
29221
29222 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
29223 \begin_inset Newline newline
29224 \end_inset
29225
29226 echo "$COMMAND" > "${LYXPIPE}".in || exit
29227 \begin_inset Newline newline
29228 \end_inset
29229
29230 read TMP < "${LYXPIPE}".out || exit
29231 \end_layout
29232
29233 \begin_layout Standard
29234 where 
29235 \begin_inset Flex Code
29236 status collapsed
29237
29238 \begin_layout Plain Layout
29239 /path/to/lyxpipe
29240 \end_layout
29241
29242 \end_inset
29243
29244  is the LyXServer pipe path specified in 
29245 \begin_inset Flex Noun
29246 status collapsed
29247
29248 \begin_layout Plain Layout
29249 Preferences\SpecialChar menuseparator
29250 Paths
29251 \end_layout
29252
29253 \end_inset
29254
29255 .
29256 \begin_inset Foot
29257 status collapsed
29258
29259 \begin_layout Plain Layout
29260 In the 
29261 \begin_inset Flex Code
29262 status collapsed
29263
29264 \begin_layout Plain Layout
29265 development/tools
29266 \end_layout
29267
29268 \end_inset
29269
29270  folder of a source distribution you can find a 
29271 \begin_inset Flex Code
29272 status collapsed
29273
29274 \begin_layout Plain Layout
29275 lyxeditor
29276 \end_layout
29277
29278 \end_inset
29279
29280  script which is able to locate the 
29281 \emph on
29282 lyxpipe
29283 \emph default
29284  based on your preferences.
29285 \end_layout
29286
29287 \end_inset
29288
29289
29290 \end_layout
29291
29292 \begin_layout Subsubsection*
29293 MacDviX (Mac OSX)
29294 \end_layout
29295
29296 \begin_layout Standard
29297 At the end of 
29298 \begin_inset Flex Code
29299 status collapsed
29300
29301 \begin_layout Plain Layout
29302 /Applications/MacDviX_Folder/calleditor.script
29303 \end_layout
29304
29305 \end_inset
29306
29307 ,
29308  add the following lines:
29309 \end_layout
29310
29311 \begin_layout LyX-Code
29312 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
29313 \begin_inset Newline newline
29314 \end_inset
29315
29316 exit 1
29317 \end_layout
29318
29319 \begin_layout Standard
29320 Modify the lines accordingly if you install \SpecialChar LyX
29321  somewhere else than in the Applications folder.
29322 \end_layout
29323
29324 \begin_layout Standard
29325 Reverse search is triggered by Alt-click (OPTION-click).
29326 \end_layout
29327
29328 \begin_layout Subsubsection*
29329 Skim (Mac OSX)
29330 \end_layout
29331
29332 \begin_layout Standard
29333 Enter 
29334 \begin_inset Flex Code
29335 status collapsed
29336
29337 \begin_layout Plain Layout
29338 open -a Skim.app $$i
29339 \end_layout
29340
29341 \end_inset
29342
29343  to the viewer setting in 
29344 \begin_inset Flex Noun
29345 status collapsed
29346
29347 \begin_layout Plain Layout
29348 Preferences\SpecialChar menuseparator
29349 File Handling\SpecialChar menuseparator
29350 File formats\SpecialChar menuseparator
29351 PDF (pdflatex)
29352 \end_layout
29353
29354 \end_inset
29355
29356 ,
29357  and then in 
29358 \begin_inset Flex Noun
29359 status collapsed
29360
29361 \begin_layout Plain Layout
29362 Skim\SpecialChar menuseparator
29363 Preferences\SpecialChar menuseparator
29364 Sync
29365 \end_layout
29366
29367 \end_inset
29368
29369  choose 
29370 \begin_inset Flex Noun
29371 status collapsed
29372
29373 \begin_layout Plain Layout
29374 custom
29375 \end_layout
29376
29377 \end_inset
29378
29379  preset and enter command 
29380 \begin_inset Flex Noun
29381 status collapsed
29382
29383 \begin_layout Plain Layout
29384 /Applications/\SpecialChar LyX
29385 .app/Contents/MacOS/lyxeditor
29386 \end_layout
29387
29388 \end_inset
29389
29390 .
29391 \end_layout
29392
29393 \begin_layout Standard
29394 Reverse search is triggered by COMMAND-SHIFT-click
29395 \end_layout
29396
29397 \begin_layout Subsubsection*
29398 Evince (GNOME)
29399 \end_layout
29400
29401 \begin_layout Standard
29402 Reverse search with evince does not work out of the box,
29403  but it can be achieved by means of some third party helper scripts.
29404  Please refer to 
29405 \begin_inset CommandInset href
29406 LatexCommand href
29407 target "https://wiki.lyx.org/LyX/SyncTeX"
29408 literal "false"
29409
29410 \end_inset
29411
29412  for details.
29413 \end_layout
29414
29415 \begin_layout Subsubsection*
29416 Okular (KDE)
29417 \end_layout
29418
29419 \begin_layout Standard
29420 Go to 
29421 \begin_inset Flex Noun
29422 status collapsed
29423
29424 \begin_layout Plain Layout
29425 Settings\SpecialChar menuseparator
29426 Configure Okular\SpecialChar menuseparator
29427 Editor
29428 \end_layout
29429
29430 \end_inset
29431
29432  and select LyX
29433 \begin_inset Quotes erd
29434 \end_inset
29435
29436  as editor.
29437  This inserts the appropriate command (
29438 \begin_inset Flex Code
29439 status collapsed
29440
29441 \begin_layout Plain Layout
29442 lyxclient -g %f %l
29443 \end_layout
29444
29445 \end_inset
29446
29447 ).
29448 \end_layout
29449
29450 \begin_layout Standard
29451 Reverse search is triggered by SHIFT-click.
29452
29453 \change_inserted -712698321 1578211026
29454  Note that this only works if Okular is in 
29455 \begin_inset Quotes eld
29456 \end_inset
29457
29458 Browse
29459 \begin_inset Quotes erd
29460 \end_inset
29461
29462  mode (i.
29463 \begin_inset space \thinspace{}
29464 \end_inset
29465
29466 e.,
29467  the hand symbol is clicked).
29468 \change_unchanged
29469
29470 \end_layout
29471
29472 \begin_layout Subsubsection*
29473 Qpdfview (Unix)
29474 \end_layout
29475
29476 \begin_layout Standard
29477 Qpdfview supports Sync\SpecialChar TeX
29478  since version 0.3.5.
29479  Go to 
29480 \begin_inset Flex Noun
29481 status collapsed
29482
29483 \begin_layout Plain Layout
29484 Edit\SpecialChar menuseparator
29485 Settings\SpecialChar menuseparator
29486 Behavior
29487 \end_layout
29488
29489 \end_inset
29490
29491 ,
29492  click on the input field of the 
29493 \begin_inset Quotes eld
29494 \end_inset
29495
29496 Source editor
29497 \begin_inset Quotes erd
29498 \end_inset
29499
29500  item and add the command 
29501 \begin_inset Flex Code
29502 status collapsed
29503
29504 \begin_layout Plain Layout
29505 lyxclient -g %1 %2
29506 \end_layout
29507
29508 \end_inset
29509
29510 .
29511 \end_layout
29512
29513 \begin_layout Standard
29514 Reverse search is triggered by double-click or,
29515  in more recent versions,
29516  by context menu.
29517 \end_layout
29518
29519 \begin_layout Subsubsection*
29520 YAP (Windows)
29521 \end_layout
29522
29523 \begin_layout Standard
29524 Launch yap,
29525  choose its 
29526 \begin_inset Flex Noun
29527 status collapsed
29528
29529 \begin_layout Plain Layout
29530 View\SpecialChar menuseparator
29531 Options
29532 \end_layout
29533
29534 \end_inset
29535
29536  menu and select the 
29537 \begin_inset Quotes eld
29538 \end_inset
29539
29540 Inverse DVI Search
29541 \begin_inset Quotes erd
29542 \end_inset
29543
29544  tab.
29545  Click on the 
29546 \begin_inset Quotes eld
29547 \end_inset
29548
29549 New\SpecialChar ldots
29550
29551 \begin_inset Quotes erd
29552 \end_inset
29553
29554  button and,
29555  in the window that opens,
29556  enter 
29557 \begin_inset Quotes eld
29558 \end_inset
29559
29560 \SpecialChar LyX
29561  Editor
29562 \begin_inset Quotes erd
29563 \end_inset
29564
29565  (or any other name you like) in the 
29566 \begin_inset Quotes eld
29567 \end_inset
29568
29569 Name:
29570 \begin_inset Quotes erd
29571 \end_inset
29572
29573  field.
29574  Now click on the button labeled 
29575 \begin_inset Quotes eld
29576 \end_inset
29577
29578 \SpecialChar ldots
29579
29580 \begin_inset Quotes erd
29581 \end_inset
29582
29583  to open a file dialog and navigate to the directory containing the batch file 
29584 \begin_inset Flex Code
29585 status collapsed
29586
29587 \begin_layout Plain Layout
29588 lyxeditor.bat
29589 \end_layout
29590
29591 \end_inset
29592
29593  (see below).
29594  Select 
29595 \begin_inset Flex Code
29596 status collapsed
29597
29598 \begin_layout Plain Layout
29599 lyxeditor.bat
29600 \end_layout
29601
29602 \end_inset
29603
29604  and then specify the program arguments as 
29605 \begin_inset Flex Code
29606 status collapsed
29607
29608 \begin_layout Plain Layout
29609 %f %l
29610 \end_layout
29611
29612 \end_inset
29613
29614 .
29615  The 
29616 \begin_inset Flex Code
29617 status collapsed
29618
29619 \begin_layout Plain Layout
29620 lyxeditor.bat
29621 \end_layout
29622
29623 \end_inset
29624
29625  wrapper is used for communicating with \SpecialChar LyX
29626  through the 
29627 \emph on
29628 lyxpipe
29629 \emph default
29630  and is as follows:
29631 \end_layout
29632
29633 \begin_layout LyX-Code
29634 @echo off
29635 \begin_inset Newline newline
29636 \end_inset
29637
29638 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
29639 \backslash
29640
29641 \backslash
29642 .
29643 \backslash
29644 pipe
29645 \backslash
29646 lyxpipe.in
29647 \begin_inset Newline newline
29648 \end_inset
29649
29650 type 
29651 \backslash
29652
29653 \backslash
29654 .
29655 \backslash
29656 pipe
29657 \backslash
29658 lyxpipe.out
29659 \end_layout
29660
29661 \begin_layout Standard
29662 Make sure that the \SpecialChar LyX
29663 Server pipe path you specified in \SpecialChar LyX
29664  is 
29665 \begin_inset Flex Code
29666 status collapsed
29667
29668 \begin_layout Plain Layout
29669
29670 \backslash
29671
29672 \backslash
29673 .
29674 \backslash
29675 pipe
29676 \backslash
29677 lyxpipe
29678 \end_layout
29679
29680 \end_inset
29681
29682 ,
29683  otherwise change the 
29684 \begin_inset Flex Code
29685 status collapsed
29686
29687 \begin_layout Plain Layout
29688 lyxeditor.bat
29689 \end_layout
29690
29691 \end_inset
29692
29693  wrapper accordingly.
29694 \end_layout
29695
29696 \begin_layout Standard
29697 In yap,
29698  reverse search is triggered by double-click.
29699 \end_layout
29700
29701 \begin_layout Subsubsection*
29702 SumatraPDF (Windows)
29703 \end_layout
29704
29705 \begin_layout Standard
29706 In order to use SumatraPDF for inverse search,
29707  enter 
29708 \begin_inset Flex Code
29709 status collapsed
29710
29711 \begin_layout Plain Layout
29712 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
29713 \end_layout
29714
29715 \end_inset
29716
29717  in the viewer setting in 
29718 \begin_inset Flex Noun
29719 status collapsed
29720
29721 \begin_layout Plain Layout
29722 Preferences\SpecialChar menuseparator
29723 File Handling\SpecialChar menuseparator
29724 File formats\SpecialChar menuseparator
29725 PDF (pdflatex)
29726 \end_layout
29727
29728 \end_inset
29729
29730 ,
29731  where 
29732 \begin_inset Flex Code
29733 status collapsed
29734
29735 \begin_layout Plain Layout
29736 lyxeditor.bat
29737 \end_layout
29738
29739 \end_inset
29740
29741  is the previous wrapper.
29742  If SumatraPDF.exe is not in your command PATH,
29743  use its full file name.
29744 \end_layout
29745
29746 \begin_layout Standard
29747 Reverse search is triggered by double-click.
29748 \end_layout
29749
29750 \begin_layout Subsubsection*
29751 YAP (Cygwin)
29752 \end_layout
29753
29754 \begin_layout Standard
29755 First of all,
29756  make sure that yap is your default DVI viewer in the Windows environment,
29757  then launch it,
29758  choose its 
29759 \begin_inset Flex Noun
29760 status collapsed
29761
29762 \begin_layout Plain Layout
29763 View\SpecialChar menuseparator
29764 Options
29765 \end_layout
29766
29767 \end_inset
29768
29769  menu and select the 
29770 \begin_inset Quotes eld
29771 \end_inset
29772
29773 Inverse DVI Search
29774 \begin_inset Quotes erd
29775 \end_inset
29776
29777  tab.
29778  Click on the 
29779 \begin_inset Quotes eld
29780 \end_inset
29781
29782 New\SpecialChar ldots
29783
29784 \begin_inset Quotes erd
29785 \end_inset
29786
29787  button and,
29788  in the window that opens,
29789  enter 
29790 \begin_inset Quotes eld
29791 \end_inset
29792
29793 \SpecialChar LyX
29794  Editor
29795 \begin_inset Quotes erd
29796 \end_inset
29797
29798  (or any other name you like) in the 
29799 \begin_inset Quotes eld
29800 \end_inset
29801
29802 Name:
29803 \begin_inset Quotes erd
29804 \end_inset
29805
29806  field.
29807  Now click on the button labeled 
29808 \begin_inset Quotes eld
29809 \end_inset
29810
29811 \SpecialChar ldots
29812
29813 \begin_inset Quotes erd
29814 \end_inset
29815
29816  to open a file dialog and navigate to the directory containing the 
29817 \begin_inset Flex Code
29818 status collapsed
29819
29820 \begin_layout Plain Layout
29821 lyxeditor.exe
29822 \end_layout
29823
29824 \end_inset
29825
29826  program (which is installed by default on Cygwin along with the \SpecialChar LyX
29827  executable).
29828  Select 
29829 \begin_inset Flex Code
29830 status collapsed
29831
29832 \begin_layout Plain Layout
29833 lyxeditor.exe
29834 \end_layout
29835
29836 \end_inset
29837
29838  and then specify the program arguments as 
29839 \begin_inset Flex Code
29840 status collapsed
29841
29842 \begin_layout Plain Layout
29843 -g %f %l
29844 \end_layout
29845
29846 \end_inset
29847
29848 .
29849  In this way,
29850  you will be using the 
29851 \emph on
29852 lyxsocket
29853 \emph default
29854  for communicating with \SpecialChar LyX
29855 .
29856  If,
29857  for whatever reason,
29858  you want to use the 
29859 \emph on
29860 lyxpipe
29861 \emph default
29862 ,
29863  omit the 
29864 \begin_inset Flex Code
29865 status collapsed
29866
29867 \begin_layout Plain Layout
29868 -g
29869 \end_layout
29870
29871 \end_inset
29872
29873  option and be sure to specify the \SpecialChar LyX
29874 Server pipe path in the \SpecialChar LyX
29875  preferences.
29876 \end_layout
29877
29878 \begin_layout Standard
29879 In yap,
29880  reverse search is triggered by double-click.
29881 \end_layout
29882
29883 \begin_layout Subsubsection*
29884 SumatraPDF (Cygwin)
29885 \end_layout
29886
29887 \begin_layout Standard
29888 In order to use SumatraPDF for inverse search,
29889  enter 
29890 \begin_inset Flex Code
29891 status collapsed
29892
29893 \begin_layout Plain Layout
29894 SumatraPDF -inverse-search "lyxeditor -g %f %l"
29895 \end_layout
29896
29897 \end_inset
29898
29899  in the viewer setting in 
29900 \begin_inset Flex Noun
29901 status collapsed
29902
29903 \begin_layout Plain Layout
29904 Preferences\SpecialChar menuseparator
29905 File Handling\SpecialChar menuseparator
29906 File formats\SpecialChar menuseparator
29907 PDF (pdflatex)
29908 \end_layout
29909
29910 \end_inset
29911
29912 .
29913  If SumatraPDF.exe is not in your command PATH,
29914  use its full posix path.
29915  The 
29916 \begin_inset Flex Code
29917 status collapsed
29918
29919 \begin_layout Plain Layout
29920 -g
29921 \end_layout
29922
29923 \end_inset
29924
29925  enables communication via the 
29926 \emph on
29927 lyxsocket
29928 \emph default
29929 .
29930  Again,
29931  omit the 
29932 \begin_inset Flex Code
29933 status collapsed
29934
29935 \begin_layout Plain Layout
29936 -g
29937 \end_layout
29938
29939 \end_inset
29940
29941  option if you want to use the 
29942 \emph on
29943 lyxpipe
29944 \emph default
29945 ,
29946  and be sure to specify the \SpecialChar LyX
29947 Server pipe path in the \SpecialChar LyX
29948  preferences.
29949 \end_layout
29950
29951 \begin_layout Standard
29952 Reverse search is triggered by double-click.
29953 \end_layout
29954
29955 \begin_layout Section
29956 Forward search
29957 \end_layout
29958
29959 \begin_layout Standard
29960 Forward search is,
29961  as the name implies,
29962  in a sense the 
29963 \begin_inset Quotes eld
29964 \end_inset
29965
29966 opposite
29967 \begin_inset Quotes erd
29968 \end_inset
29969
29970  of reverse search.
29971  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
29972 .
29973  If forward search is set up (as described in what follows),
29974  you can put the cursor anywhere in your \SpecialChar LyX
29975  document,
29976  and hit 
29977 \begin_inset Flex Noun
29978 status collapsed
29979
29980 \begin_layout Plain Layout
29981 Navigate\SpecialChar menuseparator
29982 Forward search
29983 \end_layout
29984
29985 \end_inset
29986
29987  (or select 
29988 \begin_inset Flex Noun
29989 status collapsed
29990
29991 \begin_layout Plain Layout
29992 Forward search
29993 \end_layout
29994
29995 \end_inset
29996
29997  in the context menu via right mouse click),
29998  and then the viewer will jump to that position as well.
29999  This implies,
30000  of course,
30001  that your viewer supports this function.
30002 \end_layout
30003
30004 \begin_layout Standard
30005 To make forward search possible,
30006  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
30007  sources.
30008  This can be done via the methods described in the section 
30009 \begin_inset CommandInset ref
30010 LatexCommand ref
30011 reference "subsec:rev-search"
30012 nolink "false"
30013
30014 \end_inset
30015
30016 .
30017 \end_layout
30018
30019 \begin_layout Standard
30020 Additionally,
30021  you need to configure \SpecialChar LyX
30022  for using your viewers in 
30023 \begin_inset Flex Noun
30024 status collapsed
30025
30026 \begin_layout Plain Layout
30027 Tools\SpecialChar menuseparator
30028 Preferences\SpecialChar menuseparator
30029 Output\SpecialChar menuseparator
30030 General
30031 \end_layout
30032
30033 \end_inset
30034
30035 .
30036  We provide a range of tested configurations for some viewers,
30037  which you can select from the drop down list.
30038  If none of these configurations suits you,
30039  you have to find out and enter a suitable configuration yourself.
30040  The definition syntax uses the following placeholders:
30041 \end_layout
30042
30043 \begin_layout Itemize
30044 \noindent
30045 \begin_inset Flex Code
30046 status collapsed
30047
30048 \begin_layout Plain Layout
30049 $$n
30050 \end_layout
30051
30052 \end_inset
30053
30054 :
30055  row number
30056 \end_layout
30057
30058 \begin_layout Itemize
30059 \noindent
30060 \begin_inset Flex Code
30061 status collapsed
30062
30063 \begin_layout Plain Layout
30064 $$t
30065 \end_layout
30066
30067 \end_inset
30068
30069 :
30070  name of the (temporary) exported .tex file (without path)
30071 \end_layout
30072
30073 \begin_layout Itemize
30074 \noindent
30075 \begin_inset Flex Code
30076 status collapsed
30077
30078 \begin_layout Plain Layout
30079 $$f
30080 \end_layout
30081
30082 \end_inset
30083
30084 :
30085  name of the (temporary) exported .tex file (including path)
30086 \end_layout
30087
30088 \begin_layout Itemize
30089 \noindent
30090 \begin_inset Flex Code
30091 status collapsed
30092
30093 \begin_layout Plain Layout
30094 $$o
30095 \end_layout
30096
30097 \end_inset
30098
30099 :
30100  name of the exported output file (either dvi or pdf,
30101  depending on which one exists in the temporary directory)
30102 \end_layout
30103
30104 \begin_layout Standard
30105 Note that only some of the viewers provide full and usable forward search functionality out of the box,
30106  among them yap,
30107  xdvi,
30108  okular
30109 \begin_inset Foot
30110 status collapsed
30111
30112 \begin_layout Plain Layout
30113 You might want to set 
30114 \begin_inset Flex Code
30115 status collapsed
30116
30117 \begin_layout Plain Layout
30118 okular --unique
30119 \end_layout
30120
30121 \end_inset
30122
30123  in 
30124 \begin_inset Flex Noun
30125 status collapsed
30126
30127 \begin_layout Plain Layout
30128 Tools\SpecialChar menuseparator
30129 Preferences\SpecialChar menuseparator
30130 File Handling\SpecialChar menuseparator
30131 File
30132 \begin_inset space ~
30133 \end_inset
30134
30135 Formats
30136 \end_layout
30137
30138 \end_inset
30139
30140
30141 \end_layout
30142
30143 \end_inset
30144
30145 ,
30146  qpdfview,
30147  and SumatraPDF
30148 \begin_inset Foot
30149 status collapsed
30150
30151 \begin_layout Plain Layout
30152 SumatraPDF can also use DDE commands through the external program CMCDDE —
30153  downloadable from 
30154 \begin_inset CommandInset href
30155 LatexCommand href
30156 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
30157 literal "false"
30158
30159 \end_inset
30160
30161
30162 \end_layout
30163
30164 \end_inset
30165
30166 .
30167  Others,
30168  such as evince
30169 \begin_inset Foot
30170 status collapsed
30171
30172 \begin_layout Plain Layout
30173 Forward search with evince can be achieved by means of third party helper scripts.
30174  Please refer to 
30175 \begin_inset CommandInset href
30176 LatexCommand href
30177 target "https://wiki.lyx.org/LyX/SyncTeX"
30178 literal "false"
30179
30180 \end_inset
30181
30182  for details.
30183 \end_layout
30184
30185 \end_inset
30186
30187 ,
30188  require some extra tools in order to use forward search.
30189  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
30190  some other viewers – e.
30191 \begin_inset space \thinspace{}
30192 \end_inset
30193
30194 g.
30195  xpdf – allow at least to reload the document and jump to a specific page of the file,
30196  so you can at least navigate 
30197 \begin_inset Quotes eld
30198 \end_inset
30199
30200 near
30201 \begin_inset Quotes erd
30202 \end_inset
30203
30204 .
30205  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
30206  
30207 \end_layout
30208
30209 \begin_layout Standard
30210 Forward search works both with DVI and PDF output.
30211  \SpecialChar LyX
30212  simply checks which preview format you have used before (i.
30213 \begin_inset space \thinspace{}
30214 \end_inset
30215
30216 e.,
30217  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
30218 \change_deleted 564990737 1672743015
30219
30220 \end_layout
30221
30222 \begin_layout Standard
30223
30224 \change_deleted 564990737 1672743015
30225 Special Document Classes
30226 \end_layout
30227
30228 \begin_layout Standard
30229
30230 \change_deleted 564990737 1669742044
30231 A&A Paper
30232 \end_layout
30233
30234 \begin_layout Standard
30235
30236 \change_deleted 564990737 1669742044
30237 by 
30238 \noun on
30239 Peter Sütterlin
30240 \end_layout
30241
30242 \begin_layout Standard
30243
30244 \change_deleted 564990737 1669742044
30245 Introduction
30246 \end_layout
30247
30248 \begin_layout Standard
30249
30250 \change_deleted 564990737 1669742044
30251 This section describes how \SpecialChar LyX
30252  can be used to write articles for submission to the scientific journal 
30253 \emph on
30254 Astronomy and Astrophysics
30255 \emph default
30256  (
30257 \begin_inset Flex URL
30258 status collapsed
30259
30260 \begin_layout Plain Layout
30261
30262 https://www.aanda.org/
30263 \end_layout
30264
30265 \end_inset
30266
30267 ) using Version 5.01 of the document class 
30268 \family typewriter
30269 aa.cls
30270 \family default
30271 .
30272  This package can be downloaded from the ftp site
30273 \end_layout
30274
30275 \begin_layout Standard
30276
30277 \change_deleted 564990737 1669742044
30278 \begin_inset VSpace medskip
30279 \end_inset
30280
30281
30282 \end_layout
30283
30284 \begin_layout Standard
30285 \align center
30286
30287 \change_deleted 564990737 1669742044
30288 \begin_inset Flex URL
30289 status collapsed
30290
30291 \begin_layout Plain Layout
30292
30293 ftp://ftp.edpsciences.org/pub/aa/readme.html
30294 \end_layout
30295
30296 \end_inset
30297
30298
30299 \end_layout
30300
30301 \begin_layout Standard
30302
30303 \change_deleted 564990737 1669742044
30304 \begin_inset VSpace medskip
30305 \end_inset
30306
30307
30308 \end_layout
30309
30310 \begin_layout Standard
30311
30312 \change_deleted 564990737 1669742044
30313 A manual comes together with that package,
30314  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.
30315  
30316 \end_layout
30317
30318 \begin_layout Standard
30319
30320 \change_deleted 564990737 1669742044
30321 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
30322  2001.
30323  That change involved also some slight changes to the style files,
30324  namely the removal of the thesaurus command.
30325  The \SpecialChar LyX
30326  class aa supports the newest version of these style files,
30327  V 5.01.
30328  If you have an older version installed,
30329  please upgrade.
30330  For compatibility,
30331  the old (version 4) layout has been kept as 
30332 \family sans
30333 article (A&A V4)
30334 \family default
30335 .
30336  Please refer to the comments in 
30337 \family typewriter
30338 \SpecialChar LyX
30339 Dir/layouts/aapaper.layout
30340 \family default
30341 .
30342 \end_layout
30343
30344 \begin_layout Standard
30345
30346 \change_deleted 564990737 1669742044
30347 Getting started
30348 \end_layout
30349
30350 \begin_layout Standard
30351
30352 \change_deleted 564990737 1669742044
30353 It is recommended you start from the example template distributed with \SpecialChar LyX
30354 .
30355  If you are not using a template,
30356  note the following settings:
30357 \end_layout
30358
30359 \begin_layout Itemize
30360
30361 \change_deleted 564990737 1669742044
30362 Select 
30363 \family sans
30364 article (A&A)
30365 \family default
30366  in the 
30367 \family sans
30368 Document\SpecialChar menuseparator
30369 Settings
30370 \family default
30371  dialog (OK,
30372  that one was obvious).
30373 \end_layout
30374
30375 \begin_layout Itemize
30376
30377 \change_deleted 564990737 1669742044
30378 Don't change the option 
30379 \family sans
30380 Page
30381 \begin_inset space ~
30382 \end_inset
30383
30384 style
30385 \family default
30386 :
30387  Leave it set to 
30388 \family sans
30389 default
30390 \family default
30391 .
30392  The whole layout is done by the macros,
30393  you shouldn't change anything.
30394 \end_layout
30395
30396 \begin_layout Standard
30397
30398 \change_deleted 564990737 1669742044
30399 The header block
30400 \end_layout
30401
30402 \begin_layout Standard
30403
30404 \change_deleted 564990737 1669742044
30405 First thing to enter is the header information.
30406  It consists of seven entries,
30407  of which some are optional.
30408  They are
30409 \end_layout
30410
30411 \begin_layout Itemize
30412
30413 \change_deleted 564990737 1669742044
30414
30415 \family sans
30416 Title
30417 \family default
30418 :
30419  [required] 
30420 \end_layout
30421
30422 \begin_layout Itemize
30423
30424 \change_deleted 564990737 1669742044
30425
30426 \family sans
30427 Subtitle
30428 \family default
30429 :
30430  [optional] 
30431 \end_layout
30432
30433 \begin_layout Itemize
30434
30435 \change_deleted 564990737 1669742044
30436
30437 \family sans
30438 Author
30439 \family default
30440 :
30441  [required]
30442 \end_layout
30443
30444 \begin_layout Itemize
30445
30446 \change_deleted 564990737 1669742044
30447
30448 \family sans
30449 Address
30450 \family default
30451 :
30452  [required]
30453 \end_layout
30454
30455 \begin_layout Itemize
30456
30457 \change_deleted 564990737 1669742044
30458
30459 \family sans
30460 Offprints
30461 \family default
30462 :
30463  [optional] if more than one author:
30464  whom to contact for offprint requests.
30465 \end_layout
30466
30467 \begin_layout Itemize
30468
30469 \change_deleted 564990737 1669742044
30470
30471 \family sans
30472 Mail
30473 \family default
30474 :
30475  [optional] mail address for contacts.
30476 \end_layout
30477
30478 \begin_layout Itemize
30479
30480 \change_deleted 564990737 1669742044
30481
30482 \family sans
30483 Date
30484 \family default
30485 :
30486  [required].
30487  Suggested format is 
30488 \family typewriter
30489 Received:
30490  <date>;
30491  Accepted <date> 
30492 \end_layout
30493
30494 \begin_layout Standard
30495
30496 \change_deleted 564990737 1669742044
30497 There is no need to issue the 
30498 \family typewriter
30499
30500 \backslash
30501 maketitle
30502 \family default
30503  command,
30504  this is done automatically by \SpecialChar LyX
30505  when the header is finished.
30506  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
30507  just to get the best optics and meets the layout of the real document.
30508 \end_layout
30509
30510 \begin_layout Standard
30511
30512 \change_deleted 564990737 1669742044
30513 If you want to place footnotes in the header block,
30514  e.
30515 \begin_inset space \thinspace{}
30516 \end_inset
30517
30518 g.
30519 \begin_inset space \space{}
30520 \end_inset
30521
30522 to state your present address,
30523  just use the standard footnote via the menu 
30524 \family sans
30525 Insert\SpecialChar menuseparator
30526 Footnote.
30527
30528 \family default
30529  \SpecialChar LyX
30530  will automagically use the term 
30531 \family typewriter
30532
30533 \backslash
30534 thanks{}
30535 \family default
30536  in that case.
30537 \end_layout
30538
30539 \begin_layout Standard
30540
30541 \change_deleted 564990737 1669742044
30542 Under 
30543 \family sans
30544 Edit\SpecialChar menuseparator
30545 Text Style
30546 \family default
30547 ,
30548  you'll find two insets which are relevant for the titling:
30549 \end_layout
30550
30551 \begin_layout Itemize
30552
30553 \change_deleted 564990737 1669742044
30554
30555 \family sans
30556 Institute
30557 \family typewriter
30558  
30559 \family default
30560 to mark corresponding author\SpecialChar breakableslash
30561 institute pairs.
30562  The institutes are numbered sequentially as they appear in the 
30563 \family sans
30564 Address
30565 \family default
30566  field,
30567  so you have to put a marker to each author.
30568 \end_layout
30569
30570 \begin_layout Itemize
30571
30572 \change_deleted 564990737 1669742044
30573
30574 \family sans
30575 Email
30576 \family default
30577  to supply an email address for fast contact.
30578 \end_layout
30579
30580 \begin_layout Standard
30581
30582 \change_deleted 564990737 1669742044
30583 In addition to these topics,
30584  the macros use one additional \SpecialChar LaTeX
30585  command that has no counterpart in \SpecialChar LyX
30586 :
30587 \end_layout
30588
30589 \begin_layout Itemize
30590
30591 \change_deleted 564990737 1669742044
30592
30593 \family typewriter
30594
30595 \backslash
30596 and
30597 \family default
30598  to separate different names for more than one author and institute,
30599  respectively.
30600 \end_layout
30601
30602 \begin_layout Standard
30603
30604 \change_deleted 564990737 1669742044
30605 The appropriate command has to be entered in \SpecialChar LyX
30606  and marked as \SpecialChar LaTeX
30607  code.
30608  See the examples.
30609  
30610 \end_layout
30611
30612 \begin_layout Standard
30613
30614 \change_deleted 564990737 1669742044
30615 The abstract
30616 \end_layout
30617
30618 \begin_layout Standard
30619
30620 \change_deleted 564990737 1669742044
30621 The abstract should immediately follow the header block.
30622  With version 5 the abstract environment was changed to a command,
30623  and there is now a restriction to only one paragraph.
30624  In addition,
30625  it should contain an entry with the keywords.
30626  This is done via the paragraph style 
30627 \family sans
30628 Keywords
30629 \family default
30630 .
30631  Refer to the example paper.
30632 \end_layout
30633
30634 \begin_layout Standard
30635
30636 \change_deleted 564990737 1669742044
30637 Supported environments
30638 \end_layout
30639
30640 \begin_layout Standard
30641
30642 \change_deleted 564990737 1669742044
30643 The A&A paper layout supports the following environments for structuring your text:
30644 \end_layout
30645
30646 \begin_layout Itemize
30647
30648 \change_deleted 564990737 1669742044
30649
30650 \family sans
30651 Standard
30652 \end_layout
30653
30654 \begin_layout Itemize
30655
30656 \change_deleted 564990737 1669742044
30657
30658 \family sans
30659 Section
30660 \end_layout
30661
30662 \begin_layout Itemize
30663
30664 \change_deleted 564990737 1669742044
30665
30666 \family sans
30667 Subsection
30668 \end_layout
30669
30670 \begin_layout Itemize
30671
30672 \change_deleted 564990737 1669742044
30673
30674 \family sans
30675 Subsubsection
30676 \end_layout
30677
30678 \begin_layout Itemize
30679
30680 \change_deleted 564990737 1669742044
30681
30682 \family sans
30683 Itemize
30684 \end_layout
30685
30686 \begin_layout Itemize
30687
30688 \change_deleted 564990737 1669742044
30689
30690 \family sans
30691 Enumerate
30692 \end_layout
30693
30694 \begin_layout Itemize
30695
30696 \change_deleted 564990737 1669742044
30697
30698 \family sans
30699 Description
30700 \end_layout
30701
30702 \begin_layout Itemize
30703
30704 \change_deleted 564990737 1669742044
30705
30706 \family sans
30707 Caption
30708 \end_layout
30709
30710 \begin_layout Itemize
30711
30712 \change_deleted 564990737 1669742044
30713
30714 \family sans
30715 Abstract
30716 \end_layout
30717
30718 \begin_layout Itemize
30719
30720 \change_deleted 564990737 1669742044
30721
30722 \family sans
30723 Acknowledgment
30724 \end_layout
30725
30726 \begin_layout Itemize
30727
30728 \change_deleted 564990737 1669742044
30729
30730 \family sans
30731 Bibliography
30732 \end_layout
30733
30734 \begin_layout Itemize
30735
30736 \change_deleted 564990737 1669742044
30737
30738 \family sans
30739 \SpecialChar LaTeX
30740
30741 \end_layout
30742
30743 \begin_layout Standard
30744
30745 \change_deleted 564990737 1669742044
30746 Commands not supported by \SpecialChar LyX
30747
30748 \end_layout
30749
30750 \begin_layout Standard
30751
30752 \change_deleted 564990737 1669742044
30753 Some commands are not yet supported by the 
30754 \family sans
30755 paper (A&A)
30756 \family default
30757  layout for \SpecialChar LyX
30758 .
30759  Some have already been mentioned.
30760  For the sake of completeness,
30761  they are listed all together here:
30762 \end_layout
30763
30764 \begin_layout Itemize
30765
30766 \change_deleted 564990737 1669742044
30767
30768 \family typewriter
30769
30770 \backslash
30771 and
30772 \end_layout
30773
30774 \begin_layout Itemize
30775
30776 \change_deleted 564990737 1669742044
30777
30778 \family typewriter
30779
30780 \backslash
30781 authorrunning
30782 \end_layout
30783
30784 \begin_layout Itemize
30785
30786 \change_deleted 564990737 1669742044
30787
30788 \family typewriter
30789
30790 \backslash
30791 object{}
30792 \end_layout
30793
30794 \begin_layout Itemize
30795
30796 \change_deleted 564990737 1669742044
30797
30798 \family typewriter
30799
30800 \backslash
30801 titlerunning{}
30802 \end_layout
30803
30804 \begin_layout Standard
30805
30806 \change_deleted 564990737 1669742044
30807 If you want to use any of these commands,
30808  you have to enter them yourself.
30809  
30810 \series bold
30811 Do not forget to mark them as \SpecialChar LaTeX
30812  code!
30813 \end_layout
30814
30815 \begin_layout Standard
30816
30817 \change_deleted 564990737 1669742044
30818 Figure and Table Floats
30819 \end_layout
30820
30821 \begin_layout Standard
30822
30823 \change_deleted 564990737 1669742044
30824 \SpecialChar LyX
30825  provides support for the necessary float environments 
30826 \family sans
30827 figure,
30828  figure*,
30829  table
30830 \family default
30831  and 
30832 \family sans
30833 table*
30834 \family default
30835 ,
30836  therefore we won't tell much about it here.
30837  Refer to the 
30838 \emph on
30839 User's
30840 \begin_inset space ~
30841 \end_inset
30842
30843 Guide
30844 \emph default
30845 .
30846  Just remember that tables should be left-aligned.
30847  For that,
30848  select the table and change the alignment in 
30849 \family sans
30850 Edit\SpecialChar menuseparator
30851 Paragraph
30852 \begin_inset space ~
30853 \end_inset
30854
30855 Settings.
30856 \end_layout
30857
30858 \begin_layout Standard
30859
30860 \change_deleted 564990737 1669742044
30861 There is only one special thing:
30862  the figures with caption besides the figure.
30863  To create such a figure,
30864  you have to do the following:
30865 \end_layout
30866
30867 \begin_layout Enumerate
30868
30869 \change_deleted 564990737 1669742044
30870 Create a wide figure float:
30871  
30872 \family sans
30873 Insert\SpecialChar menuseparator
30874 Float\SpecialChar menuseparator
30875 Figure
30876 \family default
30877 ,
30878  then right click in the figure and select 
30879 \family sans
30880 Span
30881 \begin_inset space ~
30882 \end_inset
30883
30884 columns
30885 \family default
30886 .
30887 \end_layout
30888
30889 \begin_layout Enumerate
30890
30891 \change_deleted 564990737 1669742044
30892 Enter your caption text.
30893 \end_layout
30894
30895 \begin_layout Enumerate
30896
30897 \change_deleted 564990737 1669742044
30898 Press 
30899 \family sans
30900 Return
30901 \family default
30902  to move the cursor above the caption.
30903 \end_layout
30904
30905 \begin_layout Enumerate
30906
30907 \change_deleted 564990737 1669742044
30908 Insert your figure
30909 \end_layout
30910
30911 \begin_layout Enumerate
30912
30913 \change_deleted 564990737 1669742044
30914 Position the cursor behind the figure and insert a horizontal fill:
30915  
30916 \family sans
30917 Insert\SpecialChar menuseparator
30918 Special
30919 \begin_inset space ~
30920 \end_inset
30921
30922 Character\SpecialChar menuseparator
30923 Horizontal
30924 \begin_inset space ~
30925 \end_inset
30926
30927 Fill
30928 \family default
30929 .
30930 \end_layout
30931
30932 \begin_layout Enumerate
30933
30934 \change_deleted 564990737 1669742044
30935 Switch to \SpecialChar LaTeX
30936  mode:
30937  
30938 \family sans
30939 M-c
30940 \begin_inset space ~
30941 \end_inset
30942
30943 t
30944 \family default
30945 .
30946 \end_layout
30947
30948 \begin_layout Enumerate
30949
30950 \change_deleted 564990737 1669742044
30951 Enter 
30952 \family typewriter
30953
30954 \backslash
30955 parbox[b]{55mm}{
30956 \family default
30957 .
30958  
30959 \series bold
30960 Do not close the brace!
30961 \end_layout
30962
30963 \begin_layout Enumerate
30964
30965 \change_deleted 564990737 1669742044
30966 Position the cursor behind the caption text,
30967  switch to \SpecialChar LaTeX
30968  mode and insert the closing brace:
30969  
30970 \family sans
30971 M-c
30972 \begin_inset space ~
30973 \end_inset
30974
30975 t
30976 \family default
30977  
30978 \family typewriter
30979 }
30980 \family default
30981 .
30982 \end_layout
30983
30984 \begin_layout Standard
30985
30986 \change_deleted 564990737 1669742044
30987 Also,
30988  refer to the figures in the example paper.
30989 \end_layout
30990
30991 \begin_layout Standard
30992
30993 \change_deleted 564990737 1669742044
30994 Referee layout
30995 \end_layout
30996
30997 \begin_layout Standard
30998
30999 \change_deleted 564990737 1669742044
31000 For submission,
31001  the paper has to be formated in a special double-spacing layout.
31002  For this purpose,
31003  you have to give the option 
31004 \family typewriter
31005 referee
31006 \family default
31007  to the document class.
31008  This must be done using the custom class options field in the 
31009 \family sans
31010 Document\SpecialChar menuseparator
31011 Settings
31012 \family default
31013  dialog.
31014  Just enter the string 
31015 \family typewriter
31016 referee
31017 \family default
31018  there.
31019 \end_layout
31020
31021 \begin_layout Standard
31022
31023 \change_deleted 564990737 1669742044
31024 The example paper
31025 \end_layout
31026
31027 \begin_layout Standard
31028
31029 \change_deleted 564990737 1669742044
31030 The 
31031 \family sans
31032 Examples
31033 \family default
31034  directory contains an example paper written with \SpecialChar LyX
31035 .
31036  It is the example paper from the original macro package,
31037  translated to \SpecialChar LyX
31038 .
31039  Use it for inspiration,
31040  and compare the original \SpecialChar LaTeX
31041  code with \SpecialChar LyX
31042  way of writing.
31043 \end_layout
31044
31045 \begin_layout Standard
31046
31047 \change_deleted 564990737 1671097429
31048 Dinbrief
31049 \end_layout
31050
31051 \begin_layout Standard
31052
31053 \change_deleted 564990737 1671097429
31054 The document class 
31055 \family sans
31056 dinbrief
31057 \family default
31058  can be used to type letters according to German conventions.
31059  A template file is included in 
31060 \family typewriter
31061 .../lyx/share/templates
31062 \family default
31063  for you to use as a starting point.
31064 \end_layout
31065
31066 \begin_layout Standard
31067
31068 \change_deleted 564990737 1671097429
31069 Elsevier Journals
31070 \end_layout
31071
31072 \begin_layout Standard
31073
31074 \change_deleted 564990737 1671097429
31075 See the \SpecialChar LyX
31076  template file 
31077 \family typewriter
31078 elsarticle.lyx
31079 \family default
31080 .
31081  It contains all infos you need.
31082 \end_layout
31083
31084 \begin_layout Standard
31085
31086 \change_deleted 564990737 1669755802
31087 ijmpc and ijmpd
31088 \end_layout
31089
31090 \begin_layout Standard
31091
31092 \change_deleted 564990737 1669755802
31093 by 
31094 \noun on
31095 Panayotis Papasotiriou
31096 \end_layout
31097
31098 \begin_layout Standard
31099
31100 \change_deleted 564990737 1669755802
31101 Overview
31102 \end_layout
31103
31104 \begin_layout Standard
31105
31106 \change_deleted 564990737 1669755802
31107 The ijmpc package is a set of macros that facilitates electronic manuscript submission to the 
31108 \emph on
31109 International Journal of Modern Physics C
31110 \emph default
31111 .
31112  Similarly,
31113  the ijmpd package is for creating manuscripts to be submitted to the 
31114 \emph on
31115 International Journal of Modern Physics D
31116 \emph default
31117 .
31118  Both journals are published by World Scientific.
31119  The corresponding document classes are named 
31120 \family typewriter
31121 ws-ijmpc.cls
31122 \family default
31123  and 
31124 \family typewriter
31125 ws-ijmpd.cls
31126 \family default
31127 ,
31128  respectively.
31129  These files,
31130  together with instructions for the authors,
31131  can be downloaded from the sites 
31132 \begin_inset Flex URL
31133 status collapsed
31134
31135 \begin_layout Plain Layout
31136
31137 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
31138 \end_layout
31139
31140 \end_inset
31141
31142  and 
31143 \begin_inset Flex URL
31144 status collapsed
31145
31146 \begin_layout Plain Layout
31147
31148 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
31149 \end_layout
31150
31151 \end_inset
31152
31153 .
31154  Both packages are modified versions of the standard 
31155 \begin_inset Quotes eld
31156 \end_inset
31157
31158 article
31159 \begin_inset Quotes erd
31160 \end_inset
31161
31162  package,
31163  and they are almost (but not exactly) identical.
31164  Most of their features are supported by \SpecialChar LyX
31165 .
31166  I have used \SpecialChar LyX
31167  successfully to write articles submitted to both journals without any problem.
31168 \end_layout
31169
31170 \begin_layout Standard
31171
31172 \change_deleted 564990737 1669755802
31173 Writing a paper
31174 \end_layout
31175
31176 \begin_layout Standard
31177
31178 \change_deleted 564990737 1669755802
31179 As usual,
31180  the easiest way to write a paper is to start with a template.
31181  Click on 
31182 \family sans
31183 File\SpecialChar menuseparator
31184 New from
31185 \family default
31186  
31187 \family sans
31188 Template
31189 \family default
31190 ,
31191  then choose the 
31192 \family typewriter
31193 ijmpc.lyx
31194 \family default
31195  or 
31196 \family typewriter
31197 ijmpd.lyx
31198 \family default
31199  template.
31200  This will give an (almost) empty document that includes the most common fields found in a manuscript.
31201  Simply overwrite the existing text (including the brackets,
31202  
31203 \family typewriter
31204 <>
31205 \family default
31206 ) with your text.
31207  You should keep in mind the following remarks.
31208 \end_layout
31209
31210 \begin_layout Enumerate
31211
31212 \change_deleted 564990737 1669755802
31213 \SpecialChar LyX
31214  won't let you change the font size and the page style of the document,
31215  because such modifications are not allowed by both packages.
31216 \end_layout
31217
31218 \begin_layout Enumerate
31219
31220 \change_deleted 564990737 1669755802
31221 The language of the document should not be changed.
31222  Before previewing your paper,
31223  be sure that the babel package is not used.
31224  To do this,
31225  click on 
31226 \begin_inset Info
31227 type  "menu"
31228 arg   "dialog-show document"
31229 \end_inset
31230
31231  
31232 \family sans
31233 \SpecialChar menuseparator
31234 Language
31235 \family default
31236 ,
31237  and select 
31238 \begin_inset Quotes eld
31239 \end_inset
31240
31241 None
31242 \begin_inset Quotes erd
31243 \end_inset
31244
31245  as 
31246 \family sans
31247 Language Package
31248 \family default
31249 .
31250 \end_layout
31251
31252 \begin_layout Enumerate
31253
31254 \change_deleted 564990737 1669755802
31255 The 
31256 \begin_inset Quotes eld
31257 \end_inset
31258
31259 Keywords
31260 \begin_inset Quotes erd
31261 \end_inset
31262
31263  style must be used to define keywords.
31264 \end_layout
31265
31266 \begin_layout Enumerate
31267
31268 \change_deleted 564990737 1669755802
31269 The ijmpc package provides a style named 
31270 \begin_inset Quotes eld
31271 \end_inset
31272
31273 Classification Codes
31274 \begin_inset Quotes erd
31275 \end_inset
31276
31277 ,
31278  which can be used to define classification codes,
31279  such as PACS numbers.
31280  Note that this facility is not supported by the ijmpd package.
31281 \end_layout
31282
31283 \begin_layout Enumerate
31284
31285 \change_deleted 564990737 1669755802
31286 Several new environments are available:
31287  
31288 \begin_inset Quotes eld
31289 \end_inset
31290
31291 Definition
31292 \begin_inset Quotes erd
31293 \end_inset
31294
31295 ,
31296  
31297 \begin_inset Quotes eld
31298 \end_inset
31299
31300 Step
31301 \begin_inset Quotes erd
31302 \end_inset
31303
31304 ,
31305  
31306 \begin_inset Quotes eld
31307 \end_inset
31308
31309 Example
31310 \begin_inset Quotes erd
31311 \end_inset
31312
31313 ,
31314  
31315 \begin_inset Quotes eld
31316 \end_inset
31317
31318 Remark
31319 \begin_inset Quotes erd
31320 \end_inset
31321
31322 ,
31323  
31324 \begin_inset Quotes eld
31325 \end_inset
31326
31327 Notation
31328 \begin_inset Quotes erd
31329 \end_inset
31330
31331 ,
31332  
31333 \begin_inset Quotes eld
31334 \end_inset
31335
31336 Theorem
31337 \begin_inset Quotes erd
31338 \end_inset
31339
31340 ,
31341  
31342 \begin_inset Quotes eld
31343 \end_inset
31344
31345 Proof
31346 \begin_inset Quotes erd
31347 \end_inset
31348
31349 ,
31350  
31351 \begin_inset Quotes eld
31352 \end_inset
31353
31354 Corollary
31355 \begin_inset Quotes erd
31356 \end_inset
31357
31358 ,
31359  
31360 \begin_inset Quotes eld
31361 \end_inset
31362
31363 Lemma
31364 \begin_inset Quotes erd
31365 \end_inset
31366
31367 ,
31368  
31369 \begin_inset Quotes eld
31370 \end_inset
31371
31372 Proposition
31373 \begin_inset Quotes erd
31374 \end_inset
31375
31376 ,
31377  
31378 \begin_inset Quotes eld
31379 \end_inset
31380
31381 Prop
31382 \begin_inset Quotes erd
31383 \end_inset
31384
31385 ,
31386  
31387 \begin_inset Quotes eld
31388 \end_inset
31389
31390 Question
31391 \begin_inset Quotes erd
31392 \end_inset
31393
31394 ,
31395  
31396 \begin_inset Quotes eld
31397 \end_inset
31398
31399 Claim
31400 \begin_inset Quotes erd
31401 \end_inset
31402
31403 ,
31404  and 
31405 \begin_inset Quotes eld
31406 \end_inset
31407
31408 Conjecture
31409 \begin_inset Quotes erd
31410 \end_inset
31411
31412 .
31413  Their use is more or less obvious.
31414  \SpecialChar LyX
31415  supports all these environments;
31416  it will use the proper label,
31417  text style,
31418  and numbering scheme for each of them.
31419 \end_layout
31420
31421 \begin_layout Enumerate
31422
31423 \change_deleted 564990737 1669755802
31424 Both packages use basic citations;
31425  the natbib package should not be used.
31426  In \SpecialChar LyX
31427 ,
31428  citation references are shown as usual;
31429  in the output,
31430  citations are shown as superscripts.
31431  If you want to use a citation as normal text,
31432  you should use the 
31433 \family typewriter
31434 refcite
31435 \family default
31436  command,
31437  e.
31438 \begin_inset space \thinspace{}
31439 \end_inset
31440
31441 g.
31442 \begin_inset space \space{}
31443 \end_inset
31444
31445
31446 \begin_inset Quotes eld
31447 \end_inset
31448
31449 See Ref.
31450 \begin_inset space \space{}
31451 \end_inset
31452
31453
31454 \family typewriter
31455
31456 \backslash
31457 refcite{key}
31458 \family default
31459
31460 \begin_inset Quotes erd
31461 \end_inset
31462
31463 .
31464 \end_layout
31465
31466 \begin_layout Enumerate
31467
31468 \change_deleted 564990737 1669755802
31469 There is no 
31470 \begin_inset Quotes eld
31471 \end_inset
31472
31473 Acknowledgments
31474 \begin_inset Quotes erd
31475 \end_inset
31476
31477  section in both packages.
31478  To put acknowledgments,
31479  just use the 
31480 \begin_inset Quotes eld
31481 \end_inset
31482
31483 Section*
31484 \begin_inset Quotes erd
31485 \end_inset
31486
31487  environment.
31488 \end_layout
31489
31490 \begin_layout Enumerate
31491
31492 \change_deleted 564990737 1669755802
31493 Appendices may be added to the paper,
31494  
31495 \emph on
31496 after
31497 \emph default
31498  the Acknowledgments and 
31499 \shape italic
31500 before
31501 \shape default
31502  the References.
31503  \SpecialChar LyX
31504  provides a special environment,
31505  called 
31506 \begin_inset Quotes eld
31507 \end_inset
31508
31509 Appendices Section
31510 \begin_inset Quotes erd
31511 \end_inset
31512
31513  which marks the beginning of the appendices.
31514  This environment should be left blank;
31515  it just sends a \SpecialChar LaTeX
31516  command,
31517  but nothing is really printed.
31518  In \SpecialChar LyX
31519 ,
31520  the word 
31521 \begin_inset Quotes eld
31522 \end_inset
31523
31524 Appendix
31525 \begin_inset Quotes erd
31526 \end_inset
31527
31528  is printed with blue letters,
31529  as a signal that all sections after that point are appendices.
31530  To write an appendix,
31531  use the 
31532 \begin_inset Quotes eld
31533 \end_inset
31534
31535 Appendix
31536 \begin_inset Quotes erd
31537 \end_inset
31538
31539  environment.
31540  \SpecialChar LyX
31541  will number each appendix with capital letters,
31542  as required by both journals.
31543  Note that 
31544 \begin_inset Quotes eld
31545 \end_inset
31546
31547 Appendices Section
31548 \begin_inset Quotes erd
31549 \end_inset
31550
31551  
31552 \emph on
31553 must
31554 \emph default
31555  be present before the first appendix;
31556  if not,
31557  all appendices will be numbered as normal sections in the output.
31558 \end_layout
31559
31560 \begin_layout Enumerate
31561
31562 \change_deleted 564990737 1669755802
31563 The ijmpc and the ijmpd packages use the 
31564 \family typewriter
31565 tbl
31566 \family default
31567  command to implement table captions.
31568  As a result,
31569  a table created by \SpecialChar LyX
31570  is printed correctly,
31571  but its caption is ignored.
31572  However,
31573  you can use some \SpecialChar TeX
31574  code to overcome this problem,
31575  so that captions are printed as expected.
31576  To do so,
31577  create a float table as usual,
31578  remove the caption,
31579  and replace it with the \SpecialChar TeX
31580  code 
31581 \family typewriter
31582
31583 \backslash
31584 tbl{
31585 \emph on
31586 your table caption
31587 \emph default
31588 }{
31589 \family default
31590  (sic);
31591  you must also the \SpecialChar TeX
31592  code 
31593 \family typewriter
31594 }
31595 \family default
31596  immediately after the tabular material.
31597  Study the example table included in the template files to see how this trick is implemented.
31598  Alternatively,
31599  If you need table captions,
31600  you should implement the whole table float in a 
31601 \family typewriter
31602 .tex
31603 \family default
31604  file,
31605  then include this file to the \SpecialChar LyX
31606  document (
31607 \family sans
31608 Insert\SpecialChar menuseparator
31609 File\SpecialChar menuseparator
31610 Child
31611 \begin_inset space ~
31612 \end_inset
31613
31614 Document
31615 \family default
31616 ).
31617  Details on how to create a table float can be found in the files 
31618 \family typewriter
31619 ws-ijmpc.tex
31620 \family default
31621  and 
31622 \family typewriter
31623 ws-ijmpd.tex
31624 \family default
31625 ,
31626  included in the corresponding packages.
31627 \end_layout
31628
31629 \begin_layout Standard
31630
31631 \change_deleted 564990737 1669755802
31632 Preparing a paper for submission
31633 \end_layout
31634
31635 \begin_layout Standard
31636
31637 \change_deleted 564990737 1669755802
31638 Before you submit your paper you must export the \SpecialChar LyX
31639  document as a \SpecialChar LaTeX
31640  file (
31641 \family sans
31642 File\SpecialChar menuseparator
31643 Export\SpecialChar menuseparator
31644 \SpecialChar LaTeX
31645
31646 \family default
31647 )
31648 \begin_inset Foot
31649 status open
31650
31651 \begin_layout Plain Layout
31652 Actually you have the choice between \SpecialChar LaTeX
31653  (plain) and pdflatex.
31654  If you intend to use pdflatex to prepare the paper,
31655  you should use the pdflatex option so that included graphics are converted to PDF format,
31656  ready for use by pdflatex.
31657 \end_layout
31658
31659 \end_inset
31660
31661 ,
31662  then make the following changes to the resulting 
31663 \family typewriter
31664 .tex
31665 \family default
31666  file.
31667 \end_layout
31668
31669 \begin_layout Enumerate
31670
31671 \change_deleted 564990737 1669755802
31672 Remove the comment lines before the 
31673 \family typewriter
31674
31675 \backslash
31676 documentclass
31677 \family default
31678  command.
31679 \end_layout
31680
31681 \begin_layout Enumerate
31682
31683 \change_deleted 564990737 1669755802
31684 Remove everything between (and including) the 
31685 \family typewriter
31686
31687 \backslash
31688 makeatletter
31689 \family default
31690  and 
31691 \family typewriter
31692
31693 \backslash
31694 makeatother
31695 \family default
31696  commands,
31697  except for any commands you specifically put into the \SpecialChar LaTeX
31698  preamble.
31699 \end_layout
31700
31701 \begin_layout Standard
31702
31703 \change_deleted 564990737 1672743015
31704 The modified 
31705 \family typewriter
31706 .tex
31707 \family default
31708  file should be saved and processed through \SpecialChar LaTeX
31709  as many times as necessary.
31710  You may also want to check the resulting 
31711 \family typewriter
31712 .dvi
31713 \family default
31714  document.
31715 \end_layout
31716
31717 \begin_layout Standard
31718
31719 \change_deleted 564990737 1669801478
31720 iopart
31721 \end_layout
31722
31723 \begin_layout Standard
31724
31725 \change_deleted 564990737 1669801478
31726 by 
31727 \noun on
31728 Uwe Stöhr
31729 \end_layout
31730
31731 \begin_layout Standard
31732
31733 \change_deleted 564990737 1669801478
31734 Overview
31735 \end_layout
31736
31737 \begin_layout Standard
31738
31739 \change_deleted 564990737 1669801478
31740 The iopart package provides a document class to create electronic manuscript submission to the journals published by the Institute of Physics.
31741  Instructions for the authors how to create a paper using the iopart class can be downloaded together with the iopart package from the site 
31742 \begin_inset Flex URL
31743 status collapsed
31744
31745 \begin_layout Plain Layout
31746
31747 ftp://ftp.iop.org/pub/journals/latex2e
31748 \end_layout
31749
31750 \end_inset
31751
31752 .
31753 \end_layout
31754
31755 \begin_layout Standard
31756
31757 \change_deleted 564990737 1669801478
31758 Writing a paper
31759 \end_layout
31760
31761 \begin_layout Standard
31762
31763 \change_deleted 564990737 1669801478
31764 The easiest way to write a paper is to start with the template 
31765 \emph on
31766 IOP-article.lyx
31767 \emph default
31768  that is available via 
31769 \family sans
31770 File\SpecialChar menuseparator
31771 New From Template
31772 \family default
31773  The template explains how to use the special text environments.
31774  Here are the most important advices:
31775 \end_layout
31776
31777 \begin_layout Itemize
31778
31779 \change_deleted 564990737 1669801478
31780 To be able to compile your document to a PDF,
31781  PS,
31782  or DVI,
31783  ensure that the no AMS packages are loaded in 
31784 \family sans
31785 Document\SpecialChar menuseparator
31786 Settings\SpecialChar menuseparator
31787 Math Options
31788 \family default
31789 !
31790 \end_layout
31791
31792 \begin_layout Itemize
31793
31794 \change_deleted 564990737 1669801478
31795
31796 \size normal
31797 The title environment defines the kind of your paper.
31798  So use one of the following environments for the title:
31799 \end_layout
31800
31801 \begin_deeper
31802 \begin_layout Itemize
31803
31804 \change_deleted 564990737 1669801478
31805
31806 \family sans
31807 \size normal
31808 Title
31809 \family default
31810  for a Paper
31811 \end_layout
31812
31813 \begin_layout Itemize
31814
31815 \change_deleted 564990737 1669801478
31816
31817 \family sans
31818 \size normal
31819 Review
31820 \family default
31821  for a Review
31822 \end_layout
31823
31824 \begin_layout Itemize
31825
31826 \change_deleted 564990737 1669801478
31827
31828 \family sans
31829 \size normal
31830 Topical
31831 \family default
31832  for a Topical review
31833 \end_layout
31834
31835 \begin_layout Itemize
31836
31837 \change_deleted 564990737 1669801478
31838
31839 \family sans
31840 \size normal
31841 Comment
31842 \family default
31843  for a Comment
31844 \end_layout
31845
31846 \begin_layout Itemize
31847
31848 \change_deleted 564990737 1669801478
31849
31850 \family sans
31851 \size normal
31852 Note
31853 \family default
31854  for a Note
31855 \end_layout
31856
31857 \begin_layout Itemize
31858
31859 \change_deleted 564990737 1669801478
31860
31861 \family sans
31862 \size normal
31863 Paper
31864 \family default
31865  for a Paper (same as Title)
31866 \end_layout
31867
31868 \begin_layout Itemize
31869
31870 \change_deleted 564990737 1669801478
31871
31872 \family sans
31873 \size normal
31874 Prelim
31875 \family default
31876  for a Preliminary communication
31877 \end_layout
31878
31879 \begin_layout Itemize
31880
31881 \change_deleted 564990737 1669801478
31882
31883 \family sans
31884 \size normal
31885 Rapid
31886 \family default
31887  for a Rapid communication
31888 \end_layout
31889
31890 \begin_layout Itemize
31891
31892 \change_deleted 564990737 1669801478
31893
31894 \family sans
31895 \size normal
31896 Letter
31897 \family default
31898  for a Letter to the editor
31899 \end_layout
31900
31901 \end_deeper
31902 \begin_layout Itemize
31903
31904 \change_deleted 564990737 1669801478
31905
31906 \size normal
31907 All title environments except of 
31908 \family sans
31909 Letter
31910 \family default
31911  can have an optional short title.
31912 \end_layout
31913
31914 \begin_layout Itemize
31915
31916 \change_deleted 564990737 1669801478
31917 There is a general title environment 
31918 \family sans
31919 Article
31920 \family default
31921  which is not directly supported by \SpecialChar LyX
31922 .
31923  This can be used as \SpecialChar TeX
31924  code when your document doesn't fit into one of the other title types.
31925 \end_layout
31926
31927 \begin_layout Standard
31928
31929 \change_deleted 564990737 1672743015
31930 For more informations like hints for special table and formula formatting,
31931  look at the IOP author guidelines.
31932 \end_layout
31933
31934 \begin_layout Standard
31935
31936 \change_deleted 564990737 1670317155
31937 Kluwer
31938 \end_layout
31939
31940 \begin_layout Standard
31941
31942 \change_deleted 564990737 1670317155
31943 by 
31944 \noun on
31945 Panayotis Papasotiriou
31946 \end_layout
31947
31948 \begin_layout Standard
31949
31950 \change_deleted 564990737 1670317155
31951 Overview
31952 \end_layout
31953
31954 \begin_layout Standard
31955
31956 \change_deleted 564990737 1670317155
31957 The Kluwer package is a set of macros produced by Kluwer Academic Publishers that facilitates electronic manuscript submission to the journals they publish.
31958  Most known of them (at least in my domain of interest) are 
31959 \emph on
31960 Astrophysics and Space Science
31961 \emph default
31962  and 
31963 \emph on
31964 Solar Physics
31965 \emph default
31966 ,
31967  but there are many others (see a complete list at 
31968 \begin_inset Flex URL
31969 status collapsed
31970
31971 \begin_layout Plain Layout
31972
31973 http://www.wkap.nl/jrnllist.htm/JRNLHOME
31974 \end_layout
31975
31976 \end_inset
31977
31978 ).
31979  The Kluwer package may be downloaded from the site 
31980 \begin_inset Flex URL
31981 status collapsed
31982
31983 \begin_layout Plain Layout
31984
31985 http://www.wkap.nl/kaphtml.htm/STYLEFILES
31986 \end_layout
31987
31988 \end_inset
31989
31990 .
31991  A complete user guide is contained in that package (but it can also be downloaded separately).
31992 \end_layout
31993
31994 \begin_layout Standard
31995
31996 \change_deleted 564990737 1670317155
31997 \SpecialChar LyX
31998  supports many features of the package but not everything.
31999  However,
32000  the \SpecialChar TeX
32001  code needed is reduced to some 
32002 \begin_inset Quotes eld
32003 \end_inset
32004
32005 peculiar
32006 \begin_inset Quotes erd
32007 \end_inset
32008
32009  commands of the package (see
32010 \begin_inset space ~
32011 \end_inset
32012
32013
32014 \begin_inset CommandInset ref
32015 LatexCommand ref
32016 reference "subsec:kluwer_peculiarities"
32017 nolink "false"
32018
32019 \end_inset
32020
32021 ).
32022  I have recently used \SpecialChar LyX
32023  to write an article submitted to the 
32024 \emph on
32025 Astrophysics and Space Science
32026 \emph default
32027  without any problem.
32028 \end_layout
32029
32030 \begin_layout Standard
32031
32032 \change_deleted 564990737 1670317155
32033 Writing a paper
32034 \end_layout
32035
32036 \begin_layout Standard
32037
32038 \change_deleted 564990737 1670317155
32039 The easiest way to write a paper is to start with the Kluwer template file.
32040  Click on 
32041 \family sans
32042 File\SpecialChar menuseparator
32043 New from
32044 \family default
32045  
32046 \family sans
32047 Template
32048 \family default
32049 ,
32050  then choose the 
32051 \family typewriter
32052 kluwer.lyx
32053 \family default
32054  template.
32055  This will give an (almost) empty document that includes the most common fields found in a manuscript and a short description of their use.
32056  As in most templates,
32057  simply overwrite the existing text (including the brackets,
32058  
32059 \family typewriter
32060 <>
32061 \family default
32062 ) with the correct information.
32063 \end_layout
32064
32065 \begin_layout Standard
32066
32067 \change_deleted 564990737 1670317155
32068 Preparing a paper for submission
32069 \end_layout
32070
32071 \begin_layout Standard
32072
32073 \change_deleted 564990737 1670317155
32074 As in the AAS\SpecialChar TeX
32075  package,
32076  before you submit your paper to a journal you must 
32077 \begin_inset Quotes eld
32078 \end_inset
32079
32080 postprocess
32081 \begin_inset Quotes erd
32082 \end_inset
32083
32084  it as follows.
32085 \end_layout
32086
32087 \begin_layout Enumerate
32088
32089 \change_deleted 564990737 1670317155
32090 Export your paper as a \SpecialChar LaTeX
32091  file.
32092  To do this,
32093  click on 
32094 \family sans
32095 File\SpecialChar menuseparator
32096 Export\SpecialChar menuseparator
32097 \SpecialChar LaTeX
32098
32099 \family default
32100 .
32101  
32102 \end_layout
32103
32104 \begin_layout Enumerate
32105
32106 \change_deleted 564990737 1670317155
32107 Edit the resulting 
32108 \family typewriter
32109 .tex
32110 \family default
32111  file with a text editor and make the following changes
32112 \end_layout
32113
32114 \begin_deeper
32115 \begin_layout Enumerate
32116
32117 \change_deleted 564990737 1670317155
32118 remove the comment lines before the 
32119 \family typewriter
32120
32121 \backslash
32122 documentclass
32123 \family default
32124  command,
32125 \end_layout
32126
32127 \begin_layout Enumerate
32128
32129 \change_deleted 564990737 1670317155
32130 remove everything between (and including) the 
32131 \family typewriter
32132
32133 \backslash
32134 makeatletter
32135 \family default
32136  and 
32137 \family typewriter
32138
32139 \backslash
32140 makeatother
32141 \family default
32142  commands,
32143  except for any commands you specifically put into the \SpecialChar LaTeX
32144  preamble.
32145 \end_layout
32146
32147 \begin_layout Standard
32148
32149 \change_deleted 564990737 1670317155
32150 Save the resulting 
32151 \family typewriter
32152 .tex
32153 \family default
32154  file.
32155 \end_layout
32156
32157 \end_deeper
32158 \begin_layout Enumerate
32159
32160 \change_deleted 564990737 1670317155
32161 Run the 
32162 \family typewriter
32163 .tex
32164 \family default
32165  file through \SpecialChar LaTeX
32166  as many times as necessary (usually up to three).
32167 \end_layout
32168
32169 \begin_layout Enumerate
32170
32171 \change_deleted 564990737 1670317155
32172 View the resulting 
32173 \family typewriter
32174 .dvi
32175 \family default
32176  document using,
32177  e.
32178 \begin_inset space \thinspace{}
32179 \end_inset
32180
32181 g.
32182 \begin_inset space \space{}
32183 \end_inset
32184
32185
32186 \family sans
32187 xdvi
32188 \family default
32189 ,
32190  and check if everything is OK (it should,
32191  if you didn't make any mistake).
32192 \end_layout
32193
32194 \begin_layout Standard
32195
32196 \change_deleted 564990737 1670317155
32197 \begin_inset Quotes eld
32198 \end_inset
32199
32200 Peculiarities
32201 \begin_inset Quotes erd
32202 \end_inset
32203
32204  of the Kluwer package
32205 \begin_inset CommandInset label
32206 LatexCommand label
32207 name "subsec:kluwer_peculiarities"
32208
32209 \end_inset
32210
32211
32212 \end_layout
32213
32214 \begin_layout Standard
32215
32216 \change_deleted 564990737 1670317155
32217 The Kluwer package has the following 
32218 \begin_inset Quotes eld
32219 \end_inset
32220
32221 peculiarities
32222 \begin_inset Quotes erd
32223 \end_inset
32224
32225 .
32226 \end_layout
32227
32228 \begin_layout Enumerate
32229
32230 \change_deleted 564990737 1670317155
32231 It is possible to write multiple articles in the same \SpecialChar LaTeX
32232  file
32233 \begin_inset Foot
32234 status collapsed
32235
32236 \begin_layout Plain Layout
32237 I can't imagine any good reason to do this.
32238 \end_layout
32239
32240 \end_inset
32241
32242 .
32243  Each article must be included in the environment 
32244 \begin_inset Quotes eld
32245 \end_inset
32246
32247 article
32248 \begin_inset Quotes erd
32249 \end_inset
32250
32251 .
32252  Unfortunately,
32253  this environment cannot be omitted,
32254  even if you write just one article.
32255  Therefore,
32256  each article starts with the command 
32257 \family typewriter
32258
32259 \backslash
32260 begin{article}
32261 \family default
32262  and,
32263  obviously,
32264  ends with the command 
32265 \family typewriter
32266
32267 \backslash
32268 end{article}
32269 \family default
32270 .
32271  Although this can be implemented in \SpecialChar LyX
32272 ,
32273  I didn't included it,
32274  since it looks ugly and can confuse the novice user.
32275  Therefore,
32276  you need to enter them directly and mark them as \SpecialChar LaTeX
32277  code (the well-known 
32278 \begin_inset Quotes eld
32279 \end_inset
32280
32281 \SpecialChar TeX
32282  code
32283 \begin_inset Quotes erd
32284 \end_inset
32285
32286 ).
32287 \end_layout
32288
32289 \begin_layout Enumerate
32290
32291 \change_deleted 564990737 1670317155
32292 Information given at the beginning of the article (i.
32293 \begin_inset space \thinspace{}
32294 \end_inset
32295
32296 e.
32297 \begin_inset space \space{}
32298 \end_inset
32299
32300 title,
32301  subtitle,
32302  author,
32303  institution,
32304  running title,
32305  running author,
32306  abstract and keywords) must be included in an environment called 
32307 \begin_inset Quotes eld
32308 \end_inset
32309
32310 opening
32311 \begin_inset Quotes erd
32312 \end_inset
32313
32314 .
32315  This is not implemented in \SpecialChar LyX
32316 ,
32317  so you must enter title,
32318  subtitle etc.
32319 \begin_inset space ~
32320 \end_inset
32321
32322 between two \SpecialChar TeX
32323  code lines (
32324 \family typewriter
32325
32326 \backslash
32327 begin{opening}
32328 \family default
32329  and 
32330 \family typewriter
32331
32332 \backslash
32333 end{opening}
32334 \family default
32335 ).
32336 \end_layout
32337
32338 \begin_layout Enumerate
32339
32340 \change_deleted 564990737 1670317155
32341 According to the user manual,
32342  the label of each bibliography item must be written as 
32343 \family typewriter
32344
32345 \backslash
32346 protect
32347 \backslash
32348 citeauthoryear{
32349 \family default
32350 \emph on
32351 author(s)
32352 \family typewriter
32353 \emph default
32354 }{
32355 \family default
32356 \emph on
32357 year
32358 \family typewriter
32359 \emph default
32360 }
32361 \family default
32362 .
32363 \end_layout
32364
32365 \begin_layout Standard
32366
32367 \change_deleted 564990737 1670317155
32368 The 
32369 \family typewriter
32370 kluwer.lyx
32371 \family default
32372  template takes care of all these 
32373 \begin_inset Quotes eld
32374 \end_inset
32375
32376 peculiarities
32377 \begin_inset Quotes erd
32378 \end_inset
32379
32380 .
32381  If you start a new paper using this template you don't need to do anything special.
32382  Just 
32383 \end_layout
32384
32385 \begin_layout Enumerate
32386
32387 \change_deleted 564990737 1670317155
32388 don't delete the \SpecialChar TeX
32389  code included in the template,
32390  and
32391 \end_layout
32392
32393 \begin_layout Enumerate
32394
32395 \change_deleted 564990737 1670317155
32396 copy the example bibliography item included in the template and modify it as necessary to enter new bibliography items.
32397 \end_layout
32398
32399 \begin_layout Standard
32400
32401 \change_deleted 564990737 1671097446
32402 Paper
32403 \end_layout
32404
32405 \begin_layout Standard
32406
32407 \change_deleted 564990737 1671097446
32408 The document class 
32409 \family sans
32410 paper
32411 \family default
32412  provides an alternative to the standard 
32413 \family sans
32414 article
32415 \family default
32416  class.
32417  It provides similar functionality,
32418  but you might prefer this layout with sans serif sections,
32419  headings,
32420  and more.
32421 \end_layout
32422
32423 \begin_layout Standard
32424
32425 \change_deleted 564990737 1671097446
32426 Springer Journals (
32427 \family sans
32428 svjour
32429 \family default
32430 )
32431 \end_layout
32432
32433 \begin_layout Standard
32434
32435 \change_deleted 564990737 1671097446
32436 by 
32437 \noun on
32438 Martin Vermeer
32439 \end_layout
32440
32441 \begin_layout Standard
32442
32443 \change_deleted 564990737 1671097446
32444 Description
32445 \end_layout
32446
32447 \begin_layout Standard
32448
32449 \change_deleted 564990737 1671097446
32450 These are the layout files for some of the journal formats used by Springer Verlag and listed on 
32451 \begin_inset Flex URL
32452 status collapsed
32453
32454 \begin_layout Plain Layout
32455
32456 http://www.springer.de/author/tex/help-journals.html
32457 \end_layout
32458
32459 \end_inset
32460
32461 ,
32462  where you should also go to fetch the class files (yes,
32463  these are \SpecialChar LaTeX2e
32464  now!).
32465  It is a modular system:
32466  the things common to all journals are implemented in 
32467 \family typewriter
32468 svjour.inc
32469 \family default
32470 ,
32471  which journal-specific layout files (such as,
32472  e.
32473 \begin_inset space \thinspace{}
32474 \end_inset
32475
32476 g.
32477 \begin_inset space \space{}
32478 \end_inset
32479
32480
32481 \family typewriter
32482 svjog.layout
32483 \family default
32484  for Journal of Geodesy) can include.
32485 \end_layout
32486
32487 \begin_layout Standard
32488
32489 \change_deleted 564990737 1671097446
32490 This means that implementing support for any other Springer journal on this list is as simple as writing your own 
32491 \family typewriter
32492 sv
32493 \family default
32494 <myjournal>
32495 \family typewriter
32496 .layout
32497 \family default
32498  file following the outline given in 
32499 \family typewriter
32500 svjog.layout
32501 \family default
32502 .
32503  
32504 \end_layout
32505
32506 \begin_layout Standard
32507
32508 \change_deleted 564990737 1671097446
32509 It is reasonably well tested only for the Journal of Geodesy.
32510  
32511 \family typewriter
32512 svjour
32513 \family default
32514  and 
32515 \family typewriter
32516 svjog
32517 \family default
32518  come with the standard \SpecialChar LyX
32519  distribution.
32520  Install the relevant class file (downloaded from Springer) in a proper directory,
32521  reconfigure \SpecialChar LaTeX
32522  (in the te\SpecialChar TeX
32523  case by running 
32524 \family typewriter
32525 texhash
32526 \family default
32527 ,
32528  as root if necessary —
32529  doesn't \SpecialChar LyX
32530  take care of this?),
32531  reconfigure \SpecialChar LyX
32532  and it should work.
32533 \end_layout
32534
32535 \begin_layout Standard
32536
32537 \change_deleted 564990737 1671097446
32538 New styles
32539 \end_layout
32540
32541 \begin_layout Standard
32542
32543 \change_deleted 564990737 1671097446
32544 A large number of theorem-like styles —
32545  
32546 \family sans
32547 Claim,
32548  Conjecture,
32549
32550 \family default
32551  
32552 \family sans
32553 \SpecialChar ldots
32554 Theorem
32555 \family default
32556 .
32557 \end_layout
32558
32559 \begin_layout Standard
32560
32561 \change_deleted 564990737 1671097446
32562
32563 \family sans
32564 Headnote,
32565  Dedication,
32566  Subtitle,
32567  Running_\SpecialChar LaTeX
32568 _Title,
32569  Author_Running,
32570  Institute,
32571  Mail,
32572  Offprints,
32573  Keywords,
32574  Acknowledgements,
32575  Acknowledgement
32576 \family default
32577 .
32578  See the Springer class file documentation for details.
32579 \end_layout
32580
32581 \begin_layout Standard
32582
32583 \change_deleted 564990737 1671097446
32584 Supported journals
32585 \end_layout
32586
32587 \begin_layout Itemize
32588
32589 \change_deleted 564990737 1671097446
32590
32591 \emph on
32592 Journal of Geodesy
32593 \emph default
32594 :
32595  
32596 \family typewriter
32597 svjog.layout
32598 \family default
32599  —
32600  Martin Vermeer
32601 \end_layout
32602
32603 \begin_layout Itemize
32604
32605 \change_deleted 564990737 1671097446
32606
32607 \emph on
32608 Probability Theory and Related Fields
32609 \emph default
32610 :
32611  
32612 \family typewriter
32613 svprobth.layout
32614 \family default
32615  —
32616  Jean-Marc Lasgouttes
32617 \end_layout
32618
32619 \begin_layout Standard
32620
32621 \change_deleted 564990737 1671097446
32622 Add your own,
32623  it isn't so hard!
32624 \end_layout
32625
32626 \begin_layout Standard
32627
32628 \change_deleted 564990737 1671097446
32629 Credits
32630 \end_layout
32631
32632 \begin_layout Standard
32633
32634 \change_deleted 564990737 1671097446
32635 These files are partly based on the older 
32636 \family typewriter
32637 ejour2.layout
32638 \family default
32639 ,
32640  which was again based on a tinkered-with version of an old \SpecialChar LaTeX
32641  2.09 style file from Springer.
32642  All this,
32643  and the 
32644 \family typewriter
32645 ejour2
32646 \family default
32647  layout,
32648  are now defunct.
32649  Jean-Marc Lasgouttes helped out big in making me find my way around the \SpecialChar LyX
32650  layout file mechanism.
32651 \end_layout
32652
32653 \begin_layout Standard
32654
32655 \change_deleted 564990737 1671097446
32656 Bugs
32657 \end_layout
32658
32659 \begin_layout Standard
32660
32661 \change_deleted 564990737 1671097446
32662 Probably.
32663  But probably less than in the old hacked-\SpecialChar LaTeX
32664  
32665 \family typewriter
32666 ejour2
32667 \family default
32668 .
32669 \end_layout
32670
32671 \begin_layout Chapter
32672 \SpecialChar LyX
32673  Features needing Extra Software
32674 \end_layout
32675
32676 \begin_layout Section
32677 Checking \SpecialChar TeX
32678
32679 \end_layout
32680
32681 \begin_layout Standard
32682 by 
32683 \noun on
32684 Asger Alstrup
32685 \end_layout
32686
32687 \begin_layout Subsection
32688 Introduction
32689 \end_layout
32690
32691 \begin_layout Standard
32692 If you have the 
32693 \family typewriter
32694 chktex
32695 \family default
32696  program installed
32697 \begin_inset Foot
32698 status collapsed
32699
32700 \begin_layout Plain Layout
32701
32702 \family typewriter
32703 chktex
32704 \family default
32705  is not yet available when you are using the \SpecialChar LaTeX
32706  distribution MiK\SpecialChar TeX
32707 .
32708 \end_layout
32709
32710 \end_inset
32711
32712 ,
32713  you'll find in the 
32714 \family sans
32715 Tools
32716 \family default
32717  menu the entry:
32718  
32719 \family sans
32720 Check
32721 \begin_inset space ~
32722 \end_inset
32723
32724 TeX
32725 \family default
32726 .
32727  You can get 
32728 \family typewriter
32729 chktex
32730 \family default
32731  from CTAN,
32732 \begin_inset Newline newline
32733 \end_inset
32734
32735
32736 \begin_inset CommandInset href
32737 LatexCommand href
32738 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
32739 literal "false"
32740
32741 \end_inset
32742
32743 .
32744 \end_layout
32745
32746 \begin_layout Standard
32747 The 
32748 \family sans
32749 Chk\SpecialChar TeX
32750
32751 \family default
32752  package is a program that was written by 
32753 \begin_inset Flex Noun
32754 status collapsed
32755
32756 \begin_layout Plain Layout
32757 Jens T.
32758 \begin_inset space ~
32759 \end_inset
32760
32761 Berger Thielemann
32762 \end_layout
32763
32764 \end_inset
32765
32766  in frustration because some constructs in \SpecialChar LaTeX
32767  are sometimes non-intuitive,
32768  and easy to forget.
32769  The program runs over your \SpecialChar LaTeX
32770  file,
32771  checks the integrity of the file,
32772  and flags some common errors.
32773  In other technical words,
32774  it is 
32775 \family typewriter
32776 lint
32777 \family default
32778  for \SpecialChar LaTeX
32779 .
32780 \end_layout
32781
32782 \begin_layout Standard
32783 Well,
32784  what is a syntax checker doing in \SpecialChar LyX
32785  which is supposed to produce correct \SpecialChar LaTeX
32786  anyways?
32787  The answer is simple:
32788  Just as 
32789 \family typewriter
32790 Lint
32791 \family default
32792  not only checks the 
32793 \emph on
32794 syntax
32795 \emph default
32796  of C programs,
32797  but also does 
32798 \emph on
32799 semantic
32800 \emph default
32801  checks for type-errors,
32802  
32803 \family sans
32804 Chk\SpecialChar TeX
32805
32806 \family default
32807  catches some common 
32808 \emph on
32809 typographic
32810 \emph default
32811  errors,
32812  in addition to the syntactical ones.
32813  Specifically,
32814  
32815 \family sans
32816 Chk\SpecialChar TeX
32817
32818 \family default
32819  is capable of detecting several common errors,
32820  such as
32821 \end_layout
32822
32823 \begin_layout Itemize
32824 Ellipsis detection:
32825 \begin_inset Newline newline
32826 \end_inset
32827
32828 Use \SpecialChar ldots
32829  instead of ...
32830 \end_layout
32831
32832 \begin_layout Itemize
32833 No space in front of/after parenthesis:
32834 \begin_inset Newline newline
32835 \end_inset
32836
32837 ( wrong spacing )
32838 \end_layout
32839
32840 \begin_layout Itemize
32841 Enforcement of normal space after common abbreviations:
32842 \begin_inset Newline newline
32843 \end_inset
32844
32845 e.
32846 \begin_inset space \thinspace{}
32847 \end_inset
32848
32849 g.
32850 \begin_inset space \space{}
32851 \end_inset
32852
32853 is too wide spacing.
32854 \end_layout
32855
32856 \begin_layout Itemize
32857 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
32858 \begin_inset Newline newline
32859 \end_inset
32860
32861 This is a TEST.
32862  And this is wrong spacing.
32863 \end_layout
32864
32865 \begin_layout Itemize
32866 Space in front of labels and similar commands:
32867 \begin_inset Newline newline
32868 \end_inset
32869
32870 The label should stick right up to the text to avoid falling to a wrong page.
32871  
32872 \begin_inset CommandInset label
32873 LatexCommand label
32874 name "sec:chktex"
32875
32876 \end_inset
32877
32878  
32879 \begin_inset Foot
32880 status collapsed
32881
32882 \begin_layout Plain Layout
32883 This footnote is in danger of falling off to a wrong page
32884 \end_layout
32885
32886 \end_inset
32887
32888  The label is separated too much.
32889 \end_layout
32890
32891 \begin_layout Itemize
32892 Space in front of references,
32893  instead of hard spaces:
32894 \begin_inset Newline newline
32895 \end_inset
32896
32897 If you have bad luck,
32898  the text will break right between the referenced text and reference number,
32899  and that's a pity.
32900  See section 
32901 \begin_inset CommandInset ref
32902 LatexCommand ref
32903 reference "sec:chktex"
32904 nolink "false"
32905
32906 \end_inset
32907
32908 .
32909 \end_layout
32910
32911 \begin_layout Itemize
32912 Use of 
32913 \begin_inset Quotes eld
32914 \end_inset
32915
32916 x
32917 \begin_inset Quotes erd
32918 \end_inset
32919
32920  instead of 
32921 \begin_inset Formula $\times$
32922 \end_inset
32923
32924  between numbers:
32925 \begin_inset Newline newline
32926 \end_inset
32927
32928 2x2 looks cheap compared to 
32929 \begin_inset Formula $2\times2$
32930 \end_inset
32931
32932 .
32933 \end_layout
32934
32935 \begin_layout Standard
32936 and more \SpecialChar ldots
32937  It is an invaluable tool when you are 
32938 \begin_inset Quotes eld
32939 \end_inset
32940
32941 finishing up
32942 \begin_inset Quotes erd
32943 \end_inset
32944
32945  your document before printing,
32946  and you should run it right after the obligatory spelling check,
32947  and before you go fine tuning the typesetting.
32948 \end_layout
32949
32950 \begin_layout Subsection
32951 How to use it
32952 \end_layout
32953
32954 \begin_layout Standard
32955 If you have the program installed,
32956  usage is as simple as choosing 
32957 \family sans
32958 Tools\SpecialChar menuseparator
32959 Check
32960 \begin_inset space ~
32961 \end_inset
32962
32963 TeX
32964 \family default
32965 .
32966  This will make \SpecialChar LyX
32967  generate a \SpecialChar LaTeX
32968  file of your document,
32969  start 
32970 \family sans
32971 Chk\SpecialChar TeX
32972
32973 \family default
32974  to check it,
32975  and then make \SpecialChar LyX
32976  insert 
32977 \begin_inset Quotes eld
32978 \end_inset
32979
32980 error boxes
32981 \begin_inset Quotes erd
32982 \end_inset
32983
32984  with the warnings from 
32985 \family sans
32986 Chk\SpecialChar TeX
32987
32988 \family default
32989 ,
32990  if there were any.
32991  The warnings will be placed close to the point of the mistake,
32992  and you can quickly find them by using the 
32993 \family sans
32994 Navigate\SpecialChar menuseparator
32995 Error
32996 \family default
32997  menu item,
32998  or the shortcut key 
32999 \family sans
33000 C-g
33001 \family default
33002  from the default 
33003 \family typewriter
33004 cua
33005 \family default
33006  bind file.
33007  Open the error boxes by clicking on them with the mouse,
33008  or use the shortcut key 
33009 \family sans
33010 C-i
33011 \family default
33012  from 
33013 \family typewriter
33014 cua
33015 \family default
33016  bindings,
33017  or the corresponding 
33018 \family sans
33019 C-o
33020 \family default
33021  for the alternate 
33022 \family typewriter
33023 emacs
33024 \family default
33025  bind file.
33026  Read the warning and correct the mistake,
33027  if it is a mistake.
33028  If you have trouble understanding what the warning is about,
33029  you can safely ignore it.
33030  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
33031 \family sans
33032 Chk\SpecialChar TeX
33033
33034 \family default
33035 ,
33036  and this gap can make some warnings seem arcane or just plain silly.
33037 \end_layout
33038
33039 \begin_layout Standard
33040 This document is an excellent testing bed for the feature,
33041  and it should provide quite a few warnings for you to fiddle with.
33042  Since computers are only so smart,
33043  expect most of the warnings to be false alarms,
33044  though.
33045 \end_layout
33046
33047 \begin_layout Subsection
33048 How to fine tune it
33049 \end_layout
33050
33051 \begin_layout Standard
33052 Sometimes,
33053  you'll find that 
33054 \family sans
33055 Chk\SpecialChar TeX
33056
33057 \family default
33058  makes more noise than suits your mood.
33059  Then you can choose not to use it,
33060  wait until your mood changes,
33061  or try to customize 
33062 \family sans
33063 Chk\SpecialChar TeX
33064
33065 \family default
33066  to get better along with you.
33067 \end_layout
33068
33069 \begin_layout Standard
33070 Although 
33071 \family sans
33072 Chk\SpecialChar TeX
33073
33074 \family default
33075  
33076 \emph on
33077 is
33078 \emph default
33079  very configurable and extensible,
33080  you should not expect to solve all problems with 
33081 \family sans
33082 Chk\SpecialChar TeX
33083
33084 \family default
33085  in \SpecialChar LyX
33086  this way.
33087  Since \SpecialChar LyX
33088  has to generate a somewhat special \SpecialChar LaTeX
33089  file to be able to match the line numbers from the 
33090 \family sans
33091 Chk\SpecialChar TeX
33092
33093 \family default
33094  output
33095 \begin_inset Foot
33096 status collapsed
33097
33098 \begin_layout Plain Layout
33099 You can inspect the specific output from 
33100 \family sans
33101 chktex
33102 \family default
33103  by using 
33104 \family sans
33105 Document\SpecialChar menuseparator
33106 \SpecialChar LaTeX
33107
33108 \begin_inset space ~
33109 \end_inset
33110
33111 Log
33112 \family default
33113  right after a 
33114 \family sans
33115 chktex
33116 \family default
33117  run.
33118 \end_layout
33119
33120 \end_inset
33121
33122  to the internal document structure,
33123  some of the warnings will not appear correctly.
33124  There are two things you can do about this:
33125 \end_layout
33126
33127 \begin_layout Itemize
33128 Fine tune the 
33129 \family sans
33130 Chk\SpecialChar TeX
33131
33132 \family default
33133  invocation command line in 
33134 \begin_inset Flex Noun
33135 status collapsed
33136
33137 \begin_layout Plain Layout
33138 Tools\SpecialChar menuseparator
33139 Preferences\SpecialChar menuseparator
33140 Output\SpecialChar menuseparator
33141 LaTeX\SpecialChar menuseparator
33142 CheckTeX command
33143 \end_layout
33144
33145 \end_inset
33146
33147 ,
33148  or the global 
33149 \family sans
33150 Chk\SpecialChar TeX
33151
33152 \family default
33153  installation configuration file (usually with the file 
33154 \family typewriter
33155 chktexrc
33156 \family default
33157 ).
33158  See below to learn what warnings can be enabled and disabled on the command line.
33159 \end_layout
33160
33161 \begin_layout Itemize
33162 Export your document as a raw \SpecialChar LaTeX
33163  file using 
33164 \family sans
33165 File\SpecialChar menuseparator
33166 Export\SpecialChar menuseparator
33167 \SpecialChar LaTeX
33168
33169 \family default
33170  and run 
33171 \family typewriter
33172 chktex
33173 \family default
33174  manually on that.
33175  Invoked in this way,
33176  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
33177 ,
33178  but with a little patience,
33179  you should be able to do it.
33180 \end_layout
33181
33182 \begin_layout Standard
33183 Here follows the warning messages that can be enabled and disabled in 
33184 \family sans
33185 Preferences
33186 \family default
33187 .
33188  Use 
33189 \family typewriter
33190 -n#
33191 \family default
33192  to disable a warning,
33193  and 
33194 \family typewriter
33195 -w#
33196 \family default
33197  to enable a warning.
33198  The emphasized entries are disabled by default,
33199  because the default is "
33200 \family typewriter
33201 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
33202 \family default
33203 ".
33204 \end_layout
33205
33206 \begin_layout Standard
33207 Notice that you should only use the options that enable and disable warnings,
33208  because \SpecialChar LyX
33209  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
33210 \family typewriter
33211 chktex
33212 \family default
33213 .
33214 \end_layout
33215
33216 \begin_layout Enumerate
33217
33218 \size small
33219 \emph on
33220 Command terminated with space.
33221 \end_layout
33222
33223 \begin_layout Enumerate
33224
33225 \size small
33226 Non-breaking space (
33227 \begin_inset Quotes eld
33228 \end_inset
33229
33230
33231 \family typewriter
33232 ~
33233 \family default
33234
33235 \begin_inset Quotes erd
33236 \end_inset
33237
33238 ) should have been used.
33239 \end_layout
33240
33241 \begin_layout Enumerate
33242
33243 \size small
33244 \emph on
33245 You should enclose the previous parenthesis with 
33246 \begin_inset Quotes eld
33247 \end_inset
33248
33249
33250 \family typewriter
33251 {}
33252 \family default
33253
33254 \begin_inset Quotes erd
33255 \end_inset
33256
33257 .
33258 \end_layout
33259
33260 \begin_layout Enumerate
33261
33262 \size small
33263 Italic correction (
33264 \begin_inset Quotes eld
33265 \end_inset
33266
33267
33268 \family typewriter
33269
33270 \backslash
33271 /
33272 \family default
33273
33274 \begin_inset Quotes erd
33275 \end_inset
33276
33277 ) found in non-italic buffer.
33278 \end_layout
33279
33280 \begin_layout Enumerate
33281
33282 \size small
33283 Italic correction (
33284 \begin_inset Quotes eld
33285 \end_inset
33286
33287
33288 \family typewriter
33289
33290 \backslash
33291 /
33292 \family default
33293
33294 \begin_inset Quotes erd
33295 \end_inset
33296
33297 ) found more than once.
33298 \end_layout
33299
33300 \begin_layout Enumerate
33301
33302 \size small
33303 \emph on
33304 No italic correction (
33305 \begin_inset Quotes eld
33306 \end_inset
33307
33308
33309 \family typewriter
33310
33311 \backslash
33312 /
33313 \family default
33314
33315 \begin_inset Quotes erd
33316 \end_inset
33317
33318 ) found.
33319 \end_layout
33320
33321 \begin_layout Enumerate
33322
33323 \size small
33324 Accent command 
33325 \begin_inset Quotes eld
33326 \end_inset
33327
33328
33329 \family typewriter
33330 cmd
33331 \family default
33332
33333 \begin_inset Quotes erd
33334 \end_inset
33335
33336  needs use of 
33337 \begin_inset Quotes eld
33338 \end_inset
33339
33340
33341 \family typewriter
33342 cmd
33343 \family default
33344
33345 \begin_inset Quotes erd
33346 \end_inset
33347
33348 .
33349 \end_layout
33350
33351 \begin_layout Enumerate
33352
33353 \size small
33354 Wrong length of dash may have been used.
33355 \end_layout
33356
33357 \begin_layout Enumerate
33358
33359 \size small
33360 \emph on
33361 \begin_inset Quotes eld
33362 \end_inset
33363
33364
33365 \family typewriter
33366 %s
33367 \family default
33368
33369 \begin_inset Quotes erd
33370 \end_inset
33371
33372  expected,
33373  found 
33374 \begin_inset Quotes eld
33375 \end_inset
33376
33377
33378 \family typewriter
33379 %s
33380 \family default
33381
33382 \begin_inset Quotes erd
33383 \end_inset
33384
33385 .
33386 \end_layout
33387
33388 \begin_layout Enumerate
33389
33390 \size small
33391 Solo 
33392 \begin_inset Quotes eld
33393 \end_inset
33394
33395
33396 \family typewriter
33397 %s
33398 \family default
33399
33400 \begin_inset Quotes erd
33401 \end_inset
33402
33403  found.
33404 \end_layout
33405
33406 \begin_layout Enumerate
33407
33408 \size small
33409 You should use 
33410 \begin_inset Quotes eld
33411 \end_inset
33412
33413
33414 \family typewriter
33415 %s
33416 \family default
33417
33418 \begin_inset Quotes erd
33419 \end_inset
33420
33421  to achieve an ellipsis.
33422 \end_layout
33423
33424 \begin_layout Enumerate
33425
33426 \size small
33427 Inter-word spacing (
33428 \begin_inset Quotes eld
33429 \end_inset
33430
33431
33432 \family typewriter
33433
33434 \backslash
33435
33436 \family default
33437  
33438 \begin_inset Quotes eld
33439 \end_inset
33440
33441 ) should perhaps be used.
33442 \end_layout
33443
33444 \begin_layout Enumerate
33445
33446 \size small
33447 Inter-sentence spacing (
33448 \begin_inset Quotes eld
33449 \end_inset
33450
33451
33452 \family typewriter
33453
33454 \backslash
33455 @
33456 \family default
33457
33458 \begin_inset Quotes erd
33459 \end_inset
33460
33461 ) should perhaps be used.
33462 \end_layout
33463
33464 \begin_layout Enumerate
33465
33466 \size small
33467 Could not find argument for command.
33468 \end_layout
33469
33470 \begin_layout Enumerate
33471
33472 \size small
33473 No match found for 
33474 \begin_inset Quotes eld
33475 \end_inset
33476
33477
33478 \family typewriter
33479 %s
33480 \family default
33481
33482 \begin_inset Quotes erd
33483 \end_inset
33484
33485 .
33486 \end_layout
33487
33488 \begin_layout Enumerate
33489
33490 \size small
33491 Math mode still on at end of \SpecialChar LaTeX
33492  file.
33493 \end_layout
33494
33495 \begin_layout Enumerate
33496
33497 \size small
33498 Number of 
33499 \begin_inset Quotes eld
33500 \end_inset
33501
33502
33503 \family typewriter
33504 char
33505 \family default
33506
33507 \begin_inset Quotes erd
33508 \end_inset
33509
33510  doesn't match the number of 
33511 \begin_inset Quotes eld
33512 \end_inset
33513
33514
33515 \family typewriter
33516 char
33517 \family default
33518
33519 \begin_inset Quotes erd
33520 \end_inset
33521
33522 .
33523 \end_layout
33524
33525 \begin_layout Enumerate
33526
33527 \size small
33528 You should use either 
33529 \family typewriter
33530
33531 \begin_inset Quotes eld
33532 \end_inset
33533
33534
33535 \family default
33536  or 
33537 \family typewriter
33538
33539 \begin_inset Quotes erd
33540 \end_inset
33541
33542
33543 \family default
33544  as an alternative to 
33545 \begin_inset Quotes eld
33546 \end_inset
33547
33548
33549 \family typewriter
33550 "
33551 \family default
33552
33553 \begin_inset Quotes erd
33554 \end_inset
33555
33556 .
33557 \end_layout
33558
33559 \begin_layout Enumerate
33560
33561 \size small
33562 You should use "
33563 \family typewriter
33564 '
33565 \family default
33566 " (ASCII 39) instead of "
33567 \family typewriter
33568 ´
33569 \family default
33570 " (ASCII 180).
33571 \end_layout
33572
33573 \begin_layout Enumerate
33574
33575 \size small
33576 User-specified pattern found.
33577 \end_layout
33578
33579 \begin_layout Enumerate
33580
33581 \size small
33582 This command might not be intended.
33583 \end_layout
33584
33585 \begin_layout Enumerate
33586
33587 \size small
33588 \emph on
33589 Comment displayed.
33590 \end_layout
33591
33592 \begin_layout Enumerate
33593
33594 \size small
33595 Either 
33596 \family typewriter
33597 ''
33598 \backslash
33599 ,'
33600 \family default
33601  or 
33602 \family typewriter
33603 '
33604 \backslash
33605 ,''
33606 \family default
33607  will look better.
33608 \end_layout
33609
33610 \begin_layout Enumerate
33611
33612 \size small
33613 Delete this space to maintain correct page references.
33614 \end_layout
33615
33616 \begin_layout Enumerate
33617
33618 \size small
33619 \emph on
33620 You might wish to put this between a pair of 
33621 \begin_inset Quotes eld
33622 \end_inset
33623
33624
33625 \family typewriter
33626 {}
33627 \family default
33628
33629 \begin_inset Quotes erd
33630 \end_inset
33631
33632 .
33633 \end_layout
33634
33635 \begin_layout Enumerate
33636
33637 \size small
33638 You ought to remove spaces in front of punctuation.
33639 \end_layout
33640
33641 \begin_layout Enumerate
33642
33643 \size small
33644 Could not execute \SpecialChar LaTeX
33645  command.
33646 \end_layout
33647
33648 \begin_layout Enumerate
33649
33650 \size small
33651 Don't use 
33652 \family typewriter
33653
33654 \backslash
33655 /
33656 \family default
33657  in front of small punctuation.
33658 \end_layout
33659
33660 \begin_layout Enumerate
33661
33662 \family typewriter
33663 \size small
33664 $
33665 \backslash
33666 times$
33667 \family default
33668  may look prettier here.
33669 \end_layout
33670
33671 \begin_layout Enumerate
33672
33673 \size small
33674 \emph on
33675 Multiple spaces detected in output.
33676 \end_layout
33677
33678 \begin_layout Enumerate
33679
33680 \size small
33681 This text may be ignored.
33682 \end_layout
33683
33684 \begin_layout Enumerate
33685
33686 \size small
33687 Use 
33688 \family typewriter
33689
33690 \begin_inset Quotes eld
33691 \end_inset
33692
33693
33694 \family default
33695  to begin quotation,
33696  not 
33697 \family typewriter
33698 '
33699 \family default
33700 .
33701 \end_layout
33702
33703 \begin_layout Enumerate
33704
33705 \size small
33706 Use 
33707 \family typewriter
33708 '
33709 \family default
33710  to end quotation,
33711  not 
33712 \family typewriter
33713
33714 \begin_inset Quotes eld
33715 \end_inset
33716
33717
33718 \family default
33719 .
33720 \end_layout
33721
33722 \begin_layout Enumerate
33723
33724 \size small
33725 Don't mix quotes.
33726 \end_layout
33727
33728 \begin_layout Enumerate
33729
33730 \size small
33731 You should perhaps use 
33732 \begin_inset Quotes eld
33733 \end_inset
33734
33735
33736 \family typewriter
33737 cmd
33738 \family default
33739
33740 \begin_inset Quotes erd
33741 \end_inset
33742
33743  instead.
33744 \end_layout
33745
33746 \begin_layout Enumerate
33747
33748 \size small
33749 You should put a space in front of/after parenthesis.
33750 \end_layout
33751
33752 \begin_layout Enumerate
33753
33754 \size small
33755 You should avoid spaces in front of/after parenthesis.
33756 \end_layout
33757
33758 \begin_layout Enumerate
33759
33760 \size small
33761 \emph on
33762 You should not use punctuation in front of/after quotes.
33763 \end_layout
33764
33765 \begin_layout Enumerate
33766
33767 \size small
33768 Double space found.
33769 \end_layout
33770
33771 \begin_layout Enumerate
33772
33773 \size small
33774 You should put punctuation outside inner/inside display math mode.
33775 \end_layout
33776
33777 \begin_layout Enumerate
33778
33779 \size small
33780 You ought to not use primitive \SpecialChar TeX
33781  in \SpecialChar LaTeX
33782  code.
33783 \end_layout
33784
33785 \begin_layout Enumerate
33786
33787 \size small
33788 You should remove spaces in front of 
33789 \begin_inset Quotes eld
33790 \end_inset
33791
33792
33793 \family typewriter
33794 %s
33795 \family default
33796
33797 \begin_inset Quotes erd
33798 \end_inset
33799
33800
33801 \end_layout
33802
33803 \begin_layout Enumerate
33804
33805 \size small
33806 \begin_inset Quotes eld
33807 \end_inset
33808
33809
33810 \family typewriter
33811 %s
33812 \family default
33813
33814 \begin_inset Quotes erd
33815 \end_inset
33816
33817  is normally not followed by 
33818 \begin_inset Quotes eld
33819 \end_inset
33820
33821
33822 \family typewriter
33823 %c
33824 \family default
33825
33826 \begin_inset Quotes erd
33827 \end_inset
33828
33829 .
33830 \end_layout
33831
33832 \begin_layout Standard
33833 In later versions of \SpecialChar LyX
33834 ,
33835  we hope to provide a more complete interface to this tool (and it's smaller cousin 
33836 \family typewriter
33837 lacheck
33838 \family default
33839 ) to exploit the full power of it.
33840  But it's not exactly useless as it is now:
33841  go try it on one of your existing documents of a certain length and be surprised.
33842 \end_layout
33843
33844 \begin_layout Section
33845 Version Control in \SpecialChar LyX
33846
33847 \end_layout
33848
33849 \begin_layout Standard
33850 by
33851 \noun on
33852  Lars Gullik Bjønnes 
33853 \noun default
33854 and 
33855 \noun on
33856 Pavel Sanda
33857 \end_layout
33858
33859 \begin_layout Subsection
33860 Introduction
33861 \end_layout
33862
33863 \begin_layout Standard
33864 \SpecialChar LyX
33865  supports some of the most basic RCS/CVS/SVN/GIT commands.
33866  If you need something a bit more sophisticated you will have to do that manually in a terminal.
33867 \end_layout
33868
33869 \begin_layout Standard
33870 Also note that CVS support is not as good as subversion support,
33871  so we advise using SVN instead.
33872  A good place to start learning Subversion is the SVN Book
33873 \begin_inset Foot
33874 status collapsed
33875
33876 \begin_layout Plain Layout
33877 \begin_inset CommandInset href
33878 LatexCommand href
33879 target "http://svnbook.red-bean.com/"
33880 literal "false"
33881
33882 \end_inset
33883
33884
33885 \end_layout
33886
33887 \end_inset
33888
33889 .
33890  In the case of RCS you should read 
33891 \begin_inset Quotes eld
33892 \end_inset
33893
33894 rcsintro
33895 \begin_inset Quotes erd
33896 \end_inset
33897
33898  (a man file,
33899  read it with 
33900 \family typewriter
33901 man rcsintro
33902 \family default
33903 ).
33904  This file describes all the basic features of RCS.
33905  You should especially notice the comment about a RCS directory,
33906  and the notion of a master RCS file (the file ending in 
33907 \family typewriter
33908 ,v
33909 \family default
33910 ).
33911 \end_layout
33912
33913 \begin_layout Standard
33914 Before you begin to use the version control features in \SpecialChar LyX
33915 ,
33916  you should be familiar with RCS/CVS/SVN/GIT usage.
33917  The implementation in \SpecialChar LyX
33918  assumes a recent version of the GNU RCS or CVS/SVN package —
33919  no guarantees are made for older versions.
33920  Most of the log messages are not currently displayed after operations —
33921  you can check them in the Messages pane if you are unsure.
33922  Regular users of version control will appreciate the VC toolbar,
33923  which can be enabled via 
33924 \family sans
33925 View\SpecialChar menuseparator
33926 Toolbars\SpecialChar menuseparator
33927 Version
33928 \begin_inset space ~
33929 \end_inset
33930
33931 Control
33932 \family default
33933 .
33934 \end_layout
33935
33936 \begin_layout Standard
33937 For introducing your own external commands consult 
33938 \begin_inset Flex Code
33939 status collapsed
33940
33941 \begin_layout Plain Layout
33942 vc-command
33943 \end_layout
33944
33945 \end_inset
33946
33947  in the manual 
33948 \emph on
33949 \SpecialChar LyX
33950  Functions
33951 \emph default
33952 .
33953 \end_layout
33954
33955 \begin_layout Standard
33956 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
33957 \family sans
33958 Document\SpecialChar menuseparator
33959 Compressed
33960 \family default
33961  if it is checked):
33962  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
33963  Compressed LyX documents are binary files,
33964  which cannot be merged by version control systems.
33965 \end_layout
33966
33967 \begin_layout Subsection
33968 RCS commands in \SpecialChar LyX
33969
33970 \end_layout
33971
33972 \begin_layout Standard
33973 The following sections describe the RCS commands supported by \SpecialChar LyX
33974 .
33975  You can find them in the 
33976 \family sans
33977 File\SpecialChar menuseparator
33978 Version
33979 \begin_inset space ~
33980 \end_inset
33981
33982 Control
33983 \family default
33984  submenu.
33985  \SpecialChar LyX
33986  was tested against RCS 5.7/5.8.
33987 \end_layout
33988
33989 \begin_layout Subsubsection
33990
33991 \family sans
33992 Register
33993 \end_layout
33994
33995 \begin_layout Standard
33996 If your document is not under revision control,
33997  this is the only item shown in the menu.
33998  And if it is under revision control,
33999  the 
34000 \family sans
34001 Register
34002 \family default
34003  item is not visible.
34004  
34005 \end_layout
34006
34007 \begin_layout Standard
34008 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
34009  You are asked interactively to supply an initial description of the document.
34010  The document is now set in Read-Only mode and you have to 
34011 \family sans
34012 Check
34013 \begin_inset space ~
34014 \end_inset
34015
34016 Out
34017 \begin_inset space ~
34018 \end_inset
34019
34020 For
34021 \begin_inset space ~
34022 \end_inset
34023
34024 Edit
34025 \family default
34026 ,
34027  before making any changes to it.
34028  A document under revision control has a 
34029 \begin_inset Quotes eld
34030 \end_inset
34031
34032 [RCS:<version> <locker>]
34033 \begin_inset Quotes erd
34034 \end_inset
34035
34036  item tagged to the filename in the minibuffer.
34037 \end_layout
34038
34039 \begin_layout Standard
34040 RCS command that is run:
34041 \end_layout
34042
34043 \begin_layout LyX-Code
34044
34045 \family typewriter
34046 ci -q -u -i -t-"<initial description>" <file-name>
34047 \end_layout
34048
34049 \begin_layout Standard
34050 Read 
34051 \family typewriter
34052 man ci
34053 \family default
34054  to understand the switches.
34055  
34056 \end_layout
34057
34058 \begin_layout Subsubsection
34059
34060 \family sans
34061 Check In Changes
34062 \end_layout
34063
34064 \begin_layout Standard
34065 When you are finished editing a file,
34066  you check in your changes.
34067  When you do this,
34068  you are asked for a description of the changes.
34069  This is stored in the history log.
34070  The version number is bumped,
34071  your changes are applied to the master RCS file,
34072  the document is unlocked and set to Read-Only mode.
34073 \end_layout
34074
34075 \begin_layout Itemize
34076 RCS command:
34077  
34078 \family typewriter
34079 ci -q -u -m"<description>" <file-name>
34080 \end_layout
34081
34082 \begin_layout Subsubsection
34083
34084 \family sans
34085 Check Out For Edit
34086 \end_layout
34087
34088 \begin_layout Standard
34089 By doing this you lock the document so that only you can edit it.
34090  This will also make the document Read-Write only for you.
34091  You will usually continue editing for a while and when you are finished you check in your changes.
34092  The status line is changed to reflect that you have locked the file.
34093 \end_layout
34094
34095 \begin_layout Itemize
34096 RCS command:
34097  
34098 \family typewriter
34099 co -q -l <file-name>
34100 \end_layout
34101
34102 \begin_layout Subsubsection
34103
34104 \family sans
34105 Revert To Repository Version
34106 \end_layout
34107
34108 \begin_layout Standard
34109 This will discard all changes made to the document since the last check in.
34110  You get a warning before changes are discarded.
34111 \end_layout
34112
34113 \begin_layout Itemize
34114 RCS command:
34115  
34116 \family typewriter
34117 co -f -u<version> <file-name>
34118 \end_layout
34119
34120 \begin_layout Subsubsection
34121
34122 \family sans
34123 Copy
34124 \end_layout
34125
34126 \begin_layout Standard
34127 This will create a copy of the current document.
34128  Since RCS does not support copy operations natively,
34129  the version history is not preserved,
34130  and the copy is added as a new file.
34131  It requires a clean document without any changes since the last checkin.
34132  You are asked for a file name and a description of the copy operation.
34133  After that the copy is created,
34134  both locally and in the repository.
34135  If the parent directories of the copied and original document differ,
34136  all relative paths of included files of the copy are adjusted (like in 
34137 \family sans
34138 File\SpecialChar menuseparator
34139 Save As
34140 \family default
34141 \SpecialChar ldots
34142 ).
34143  Finally,
34144  the copy is loaded instead of the original document.
34145 \end_layout
34146
34147 \begin_layout Labeling
34148 \labelwidthstring 00.00.0000
34149 RCS
34150 \begin_inset space ~
34151 \end_inset
34152
34153 commands:
34154  
34155 \begin_inset space ~
34156 \end_inset
34157
34158
34159 \begin_inset Newline newline
34160 \end_inset
34161
34162 Copy 
34163 \begin_inset Flex Code
34164 status collapsed
34165
34166 \begin_layout Plain Layout
34167
34168 \family typewriter
34169 \begin_inset Quotes qld
34170 \end_inset
34171
34172 <file-name>
34173 \begin_inset Quotes qld
34174 \end_inset
34175
34176
34177 \end_layout
34178
34179 \end_inset
34180
34181  to 
34182 \begin_inset Flex Code
34183 status collapsed
34184
34185 \begin_layout Plain Layout
34186
34187 \family typewriter
34188 \begin_inset Quotes qld
34189 \end_inset
34190
34191 <new-file-name>
34192 \begin_inset Quotes qld
34193 \end_inset
34194
34195
34196 \end_layout
34197
34198 \end_inset
34199
34200
34201 \begin_inset Newline newline
34202 \end_inset
34203
34204
34205 \begin_inset Flex Code
34206 status collapsed
34207
34208 \begin_layout Plain Layout
34209 ci -q -u 
34210 \family typewriter
34211 -i 
34212 \begin_inset Quotes qld
34213 \end_inset
34214
34215 <new-file-name>
34216 \begin_inset Quotes qld
34217 \end_inset
34218
34219
34220 \end_layout
34221
34222 \end_inset
34223
34224
34225 \end_layout
34226
34227 \begin_layout Subsubsection
34228
34229 \family sans
34230 Undo Last Checkin
34231 \end_layout
34232
34233 \begin_layout Standard
34234 This makes as if the last check in never happened.
34235  No changes are made to the document loaded into \SpecialChar LyX
34236 ,
34237  but the last version is removed from the master RCS file.
34238 \end_layout
34239
34240 \begin_layout Itemize
34241 RCS command:
34242  
34243 \family typewriter
34244 rcs -o<version> <file-name>
34245 \end_layout
34246
34247 \begin_layout Subsubsection
34248
34249 \family sans
34250 Show History
34251 \end_layout
34252
34253 \begin_layout Standard
34254 This shows the complete history of the RCS document.
34255  The output of 
34256 \family typewriter
34257 rlog <file-name>
34258 \family default
34259  is shown in a browser.
34260  See 
34261 \family typewriter
34262 man rlog
34263 \family default
34264  for more info.
34265 \end_layout
34266
34267 \begin_layout Subsubsection
34268 Revision info
34269 \end_layout
34270
34271 \begin_layout Standard
34272 \SpecialChar LyX
34273  supports RCS version number,
34274  author name,
34275  date and time of last commit.
34276  All those are extracted from 
34277 \family typewriter
34278 rlog -r <file-name>
34279 \family default
34280 .
34281  See 
34282 \begin_inset CommandInset ref
34283 LatexCommand ref
34284 reference "subsec:VCS-Revision-Information"
34285 nolink "false"
34286
34287 \end_inset
34288
34289  for details.
34290 \end_layout
34291
34292 \begin_layout Subsection
34293 CVS commands in \SpecialChar LyX
34294
34295 \end_layout
34296
34297 \begin_layout Standard
34298 A subset of CVS operations is supported by \SpecialChar LyX
34299 .
34300  You can find the commands in the 
34301 \family sans
34302 File\SpecialChar menuseparator
34303 Version
34304 \begin_inset space ~
34305 \end_inset
34306
34307 Control
34308 \family default
34309  submenu.
34310  The version control system SVN is more powerful,
34311  so please use it instead of CVS if possible.
34312 \end_layout
34313
34314 \begin_layout Subsubsection
34315
34316 \family sans
34317 General CVS usage
34318 \end_layout
34319
34320 \begin_layout Standard
34321 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
34322  If you're using a client-server setup you may need to login before doing the first repository checkout.
34323 \end_layout
34324
34325 \begin_layout Standard
34326 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.
34327  Standard CVS repositories don't operate with a file locking mechanism.
34328  This may be surprising,
34329  but conflicts only occur if people disagree on the proper content of the same part of a document.
34330  So,
34331  if co-workers are used to communicate regularly,
34332  these conflicts occur rarely.
34333  If they don't communicate they have a fundamental problem anyway.
34334  Nevertheless some people like to work with so called 
34335 \begin_inset Quotes eld
34336 \end_inset
34337
34338 reserved checkouts
34339 \begin_inset Quotes erd
34340 \end_inset
34341
34342 .
34343  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.
34344  When the changes are checked in the working copy returns to readonly state.
34345  With \SpecialChar LyX
34346  one has to edit the 
34347 \begin_inset Flex Code
34348 status collapsed
34349
34350 \begin_layout Plain Layout
34351 .cvsrc
34352 \end_layout
34353
34354 \end_inset
34355
34356  file and add the line 
34357 \begin_inset Flex Code
34358 status collapsed
34359
34360 \begin_layout Plain Layout
34361 cvs -r
34362 \end_layout
34363
34364 \end_inset
34365
34366  to work with reserved checkouts.
34367  The benefit is the possibility to see who is using a writable copy of some document.
34368  It's not guaranteed only one user makes a copy writable.
34369 \end_layout
34370
34371 \begin_layout Standard
34372 \SpecialChar LyX
34373  tries to guess if you're using reserved or non-reserved checkouts.
34374  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.
34375  When a reserved checkout is detected you have to use 
34376 \begin_inset Flex Noun
34377 status collapsed
34378
34379 \begin_layout Plain Layout
34380 Check Out
34381 \end_layout
34382
34383 \end_inset
34384
34385  to make your working copy writable if it's readonly.
34386  After doing so the 
34387 \begin_inset Flex Noun
34388 status collapsed
34389
34390 \begin_layout Plain Layout
34391 Check In
34392 \end_layout
34393
34394 \end_inset
34395
34396  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
34397 \end_layout
34398
34399 \begin_layout Standard
34400 More information about CVS can be found here 
34401 \begin_inset Flex URL
34402 status collapsed
34403
34404 \begin_layout Plain Layout
34405
34406 http://www.nongnu.org/cvs
34407 \end_layout
34408
34409 \end_inset
34410
34411  and here 
34412 \begin_inset Flex URL
34413 status collapsed
34414
34415 \begin_layout Plain Layout
34416
34417 http://ximbiot.com/cvs
34418 \end_layout
34419
34420 \end_inset
34421
34422 .
34423 \end_layout
34424
34425 \begin_layout Standard
34426 Read 
34427 \family typewriter
34428 man cvs
34429 \family default
34430  to understand the sub-commands and the switches mentioned below.
34431 \end_layout
34432
34433 \begin_layout Subsubsection
34434
34435 \family sans
34436 Register
34437 \end_layout
34438
34439 \begin_layout Standard
34440 If your document is not under revision control,
34441  this is the only item shown in the menu.
34442  And if it is under revision control,
34443  the 
34444 \family sans
34445 Register
34446 \family default
34447  item is not visible.
34448  
34449 \end_layout
34450
34451 \begin_layout Standard
34452 This command registers in CVS your document 
34453 \begin_inset Flex Strong
34454 status collapsed
34455
34456 \begin_layout Plain Layout
34457
34458 \emph on
34459 only
34460 \end_layout
34461
34462 \end_inset
34463
34464  in the case you have already the documents directory under CVS control (in particular 
34465 \family typewriter
34466 CVS/Entries
34467 \family default
34468  file exists).
34469  This means you have to create or checkout the archive by yourself using external tools.
34470  (In case you forget that step \SpecialChar LyX
34471  registers the document with RCS.)
34472 \end_layout
34473
34474 \begin_layout Standard
34475 Then you are asked interactively to supply an initial description of the document.
34476  Don't forget that registered file is not yet checked in.
34477 \end_layout
34478
34479 \begin_layout Standard
34480 CVS command that is run:
34481  
34482 \family typewriter
34483 cvs -q add -m"<entered message>" "<file-name>"
34484 \end_layout
34485
34486 \begin_layout Standard
34487 The term 
34488 \family typewriter
34489 "<file-name>"
34490 \family default
34491  above and for all other CVS commands is an abbreviation for 
34492 \begin_inset Quotes eld
34493 \end_inset
34494
34495 change the current working directory to file location and use the file name without path component as argument
34496 \begin_inset Quotes erd
34497 \end_inset
34498
34499 .
34500 \end_layout
34501
34502 \begin_layout Subsubsection
34503
34504 \family sans
34505 Check In Changes
34506 \end_layout
34507
34508 \begin_layout Standard
34509 When you are finished editing a file,
34510  you commit your changes.
34511  When you do this and you had changed the document,
34512  you are asked for a description of the changes.
34513  After that changes are written to the repository.
34514  In case you didn't change the document and a reserved checkout is detected the reservation made on 
34515 \begin_inset Flex Noun
34516 status collapsed
34517
34518 \begin_layout Plain Layout
34519 Check Out
34520 \end_layout
34521
34522 \end_inset
34523
34524  is undone.
34525 \end_layout
34526
34527 \begin_layout Labeling
34528 \labelwidthstring 00.00.0000
34529 CVS
34530 \begin_inset space ~
34531 \end_inset
34532
34533 command:
34534  
34535 \begin_inset space ~
34536 \end_inset
34537
34538
34539 \begin_inset Newline newline
34540 \end_inset
34541
34542
34543 \begin_inset Flex Code
34544 status collapsed
34545
34546 \begin_layout Plain Layout
34547 cvs 
34548 \family typewriter
34549 -q commit -m"<description>" "<file-name>"
34550 \end_layout
34551
34552 \end_inset
34553
34554  or
34555 \begin_inset Newline newline
34556 \end_inset
34557
34558
34559 \begin_inset Flex Code
34560 status collapsed
34561
34562 \begin_layout Plain Layout
34563 cvs -q unedit 
34564 \family typewriter
34565 "<file-name>"
34566 \end_layout
34567
34568 \end_inset
34569
34570
34571 \end_layout
34572
34573 \begin_layout Subsubsection
34574
34575 \family sans
34576 Check Out Changes
34577 \end_layout
34578
34579 \begin_layout Standard
34580 When you are sharing a repository with others,
34581  you may have to incorporate their changes into your working copy.
34582 \end_layout
34583
34584 \begin_layout Standard
34585 CVS command:
34586  
34587 \family typewriter
34588 cvs -q update "<file-name>"
34589 \end_layout
34590
34591 \begin_layout Standard
34592 If a readonly checkout is detected the working copy is made writable and reserved.
34593 \end_layout
34594
34595 \begin_layout Standard
34596 CVS command:
34597  
34598 \family typewriter
34599 cvs -q edit "<file-name>"
34600 \end_layout
34601
34602 \begin_layout Subsubsection
34603
34604 \family sans
34605 Revert To Repository Version
34606 \end_layout
34607
34608 \begin_layout Standard
34609 This will discard all changes made to the document since the last check in.
34610  You get a warning before changes are discarded.
34611  Firstly the file is deleted,
34612  secondly CVS update command is run.
34613 \end_layout
34614
34615 \begin_layout Standard
34616 CVS command:
34617  
34618 \family typewriter
34619 cvs -q update "<file-name>"
34620 \end_layout
34621
34622 \begin_layout Standard
34623 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
34624 \end_layout
34625
34626 \begin_layout Standard
34627 CVS command:
34628  
34629 \family typewriter
34630 cvs -q unedit "<file-name>"
34631 \end_layout
34632
34633 \begin_layout Subsubsection
34634
34635 \family sans
34636 Copy
34637 \end_layout
34638
34639 \begin_layout Standard
34640 This will create a copy of the current document.
34641  Since CVS does not support copy operations natively,
34642  the version history is not preserved,
34643  and the copy is added as a new file.
34644  It requires a clean document without any changes since the last checkin.
34645  You are asked for a file name and a description of the copy operation.
34646  After that the copy is created,
34647  both locally and in the repository.
34648  If the parent directories of the copied and original document differ,
34649  all relative paths of included files of the copy are adjusted (like in 
34650 \family sans
34651 File\SpecialChar menuseparator
34652 Save As
34653 \family default
34654 \SpecialChar ldots
34655 ).
34656  Finally,
34657  the copy is loaded instead of the original document.
34658 \end_layout
34659
34660 \begin_layout Labeling
34661 \labelwidthstring 00.00.0000
34662 CVS
34663 \begin_inset space ~
34664 \end_inset
34665
34666 commands:
34667  
34668 \begin_inset space ~
34669 \end_inset
34670
34671
34672 \begin_inset Newline newline
34673 \end_inset
34674
34675 Copy 
34676 \begin_inset Flex Code
34677 status collapsed
34678
34679 \begin_layout Plain Layout
34680 "<file-name>"
34681 \end_layout
34682
34683 \end_inset
34684
34685  to 
34686 \begin_inset Flex Code
34687 status collapsed
34688
34689 \begin_layout Plain Layout
34690 "<new-file-name>"
34691 \end_layout
34692
34693 \end_inset
34694
34695
34696 \begin_inset Newline newline
34697 \end_inset
34698
34699
34700 \begin_inset Flex Code
34701 status collapsed
34702
34703 \begin_layout Plain Layout
34704 cvs -q add "<new-file-name>"
34705 \end_layout
34706
34707 \end_inset
34708
34709
34710 \end_layout
34711
34712 \begin_layout Subsubsection
34713
34714 \family sans
34715 Rename
34716 \end_layout
34717
34718 \begin_layout Standard
34719 This will rename the current document.
34720  Since CVS does not support rename operations natively,
34721  the version history is not preserved,
34722  the renamed document is added as a new file,
34723  and the original document is deleted.
34724  It requires a clean document without any changes since the last checkin.
34725  You are asked for a file name and a description of the rename operation.
34726  After that the document is renamed,
34727  both locally and in the repository.
34728  If the parent directories of the new and old file names differ,
34729  all relative paths of included files are adjusted (like in 
34730 \family sans
34731 File\SpecialChar menuseparator
34732 Save As
34733 \family default
34734 \SpecialChar ldots
34735 ).
34736  Finally,
34737  the document is reloaded using the new name.
34738 \end_layout
34739
34740 \begin_layout Labeling
34741 \labelwidthstring 00.00.0000
34742 CVS
34743 \begin_inset space ~
34744 \end_inset
34745
34746 commands:
34747  
34748 \begin_inset space ~
34749 \end_inset
34750
34751
34752 \begin_inset Newline newline
34753 \end_inset
34754
34755 Rename 
34756 \begin_inset Flex Code
34757 status collapsed
34758
34759 \begin_layout Plain Layout
34760 "<file-name>"
34761 \end_layout
34762
34763 \end_inset
34764
34765  to 
34766 \begin_inset Flex Code
34767 status collapsed
34768
34769 \begin_layout Plain Layout
34770 "<new-file-name>"
34771 \end_layout
34772
34773 \end_inset
34774
34775
34776 \begin_inset Newline newline
34777 \end_inset
34778
34779
34780 \begin_inset Flex Code
34781 status collapsed
34782
34783 \begin_layout Plain Layout
34784 cvs -q add "<new-file-name>"
34785 \end_layout
34786
34787 \end_inset
34788
34789
34790 \begin_inset Newline newline
34791 \end_inset
34792
34793
34794 \begin_inset Flex Code
34795 status collapsed
34796
34797 \begin_layout Plain Layout
34798 cvs -q remove "<file-name>"
34799 \end_layout
34800
34801 \end_inset
34802
34803
34804 \end_layout
34805
34806 \begin_layout Subsubsection
34807 Update of the local directory checkout from repository
34808 \end_layout
34809
34810 \begin_layout Standard
34811 Once your documents gets more complex,
34812  containing sub-documents and pictures,
34813  including external 
34814 \begin_inset Flex Code
34815 status collapsed
34816
34817 \begin_layout Plain Layout
34818 .tex
34819 \end_layout
34820
34821 \end_inset
34822
34823  files and so on using version control becomes more complicated.
34824  \SpecialChar LyX
34825  supports updating the whole tree in which resides the document.
34826  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.
34827  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
34828  It's good practice anyway to store multipart documents in an extra directory.
34829 \end_layout
34830
34831 \begin_layout Standard
34832 The 
34833 \begin_inset Flex Code
34834 status collapsed
34835
34836 \begin_layout Plain Layout
34837 Update local directory from repository
34838 \end_layout
34839
34840 \end_inset
34841
34842  command updates the whole directory.
34843  If local changes are detected user is warned before update starts.
34844  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
34845  You have to review and correct the result of the merge.
34846  You'll find the conflicts enclosed in pairs of 
34847 \begin_inset Flex Code
34848 status collapsed
34849
34850 \begin_layout Plain Layout
34851 <<<<<<<
34852 \end_layout
34853
34854 \end_inset
34855
34856  and 
34857 \begin_inset Flex Code
34858 status collapsed
34859
34860 \begin_layout Plain Layout
34861 >>>>>>>
34862 \end_layout
34863
34864 \end_inset
34865
34866  separated by 
34867 \begin_inset Flex Code
34868 status collapsed
34869
34870 \begin_layout Plain Layout
34871 =======
34872 \end_layout
34873
34874 \end_inset
34875
34876 .
34877  The first part is your version as before the update operation with the document name prepended.
34878  The second one is the repository version with the version number after the sequence of 
34879 \begin_inset Flex Code
34880 status collapsed
34881
34882 \begin_layout Plain Layout
34883 >
34884 \end_layout
34885
34886 \end_inset
34887
34888  signs.
34889 \end_layout
34890
34891 \begin_layout Labeling
34892 \labelwidthstring 00.00.0000
34893 CVS
34894 \begin_inset space ~
34895 \end_inset
34896
34897 commands:
34898  
34899 \begin_inset space ~
34900 \end_inset
34901
34902
34903 \begin_inset Newline newline
34904 \end_inset
34905
34906
34907 \begin_inset Flex Code
34908 status collapsed
34909
34910 \begin_layout Plain Layout
34911 cd $path;
34912  cvs diff 
34913 \family typewriter
34914 "."
34915 \end_layout
34916
34917 \end_inset
34918
34919  (Ask if changes are detected.)
34920 \begin_inset Newline newline
34921 \end_inset
34922
34923
34924 \begin_inset Flex Code
34925 status collapsed
34926
34927 \begin_layout Plain Layout
34928 cd $path;
34929  cvs -q update 
34930 \family typewriter
34931 "."
34932 \end_layout
34933
34934 \end_inset
34935
34936
34937 \end_layout
34938
34939 \begin_layout Standard
34940 where 
34941 \begin_inset Flex Code
34942 status collapsed
34943
34944 \begin_layout Plain Layout
34945 $path
34946 \end_layout
34947
34948 \end_inset
34949
34950  stands for the path to the document.
34951 \end_layout
34952
34953 \begin_layout Subsubsection
34954
34955 \family sans
34956 Show History
34957 \end_layout
34958
34959 \begin_layout Standard
34960 This shows the complete history of the CVS document.
34961  The output of 
34962 \family typewriter
34963 cvs log "<file-name>"
34964 \family default
34965  is shown in a browser.
34966 \end_layout
34967
34968 \begin_layout Subsubsection
34969 Revision info
34970 \end_layout
34971
34972 \begin_layout Standard
34973 \SpecialChar LyX
34974  supports CVS version number,
34975  author name,
34976  date and time of last commit.
34977  All those are extracted from 
34978 \family typewriter
34979 cvs log -r <file-name>
34980 \family default
34981 .
34982  See 
34983 \begin_inset CommandInset ref
34984 LatexCommand ref
34985 reference "subsec:VCS-Revision-Information"
34986 nolink "false"
34987
34988 \end_inset
34989
34990  for details.
34991 \end_layout
34992
34993 \begin_layout Subsection
34994 SVN commands in \SpecialChar LyX
34995
34996 \end_layout
34997
34998 \begin_layout Standard
34999 SVN is now partially supported by \SpecialChar LyX
35000 .
35001  You can find the commands in the 
35002 \family sans
35003 File\SpecialChar menuseparator
35004 Version
35005 \begin_inset space ~
35006 \end_inset
35007
35008 Control
35009 \family default
35010  submenu.
35011  Please note that if you use password protected access to repository via ssh,
35012  you will be asked in terminal window.
35013  \SpecialChar LyX
35014  was tested against SVN 1.5,
35015  1.6,
35016  1.7 and 1.8
35017 \begin_inset Foot
35018 status collapsed
35019
35020 \begin_layout Plain Layout
35021 Most of the commands will work with 1.4 too,
35022  see 
35023 \begin_inset CommandInset ref
35024 LatexCommand ref
35025 reference "subsec:SVN-Repo-Update"
35026 nolink "false"
35027
35028 \end_inset
35029
35030 .
35031  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
35032 \end_layout
35033
35034 \end_inset
35035
35036
35037 \end_layout
35038
35039 \begin_layout Subsubsection
35040
35041 \family sans
35042 Register
35043 \end_layout
35044
35045 \begin_layout Standard
35046 If your document is not under revision control,
35047  this is the only item shown in the menu.
35048  And if it is under revision control,
35049  the 
35050 \family sans
35051 Register
35052 \family default
35053  item is not visible.
35054 \end_layout
35055
35056 \begin_layout Standard
35057 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
35058 \family typewriter
35059 .svn/entries
35060 \family default
35061  file exists).
35062  This means you have to checkout the archive by yourself.
35063 \end_layout
35064
35065 \begin_layout Standard
35066 Then you are asked interactively to supply an initial description of the document.
35067  Don't forget that registered file is not yet commited.
35068 \end_layout
35069
35070 \begin_layout Standard
35071 SVN command that is run:
35072  
35073 \family typewriter
35074 svn add -q 
35075 \begin_inset Quotes qld
35076 \end_inset
35077
35078 <file-name>
35079 \begin_inset Quotes qld
35080 \end_inset
35081
35082
35083 \end_layout
35084
35085 \begin_layout Standard
35086 Read 
35087 \family typewriter
35088 man svn
35089 \family default
35090  to understand the switches.
35091 \end_layout
35092
35093 \begin_layout Subsubsection
35094
35095 \family sans
35096 Check In Changes
35097 \end_layout
35098
35099 \begin_layout Standard
35100 When you are finished editing a file,
35101  you commit your changes.
35102  When you do this,
35103  you are asked for a description of the changes.
35104  After that changes are commited.
35105 \end_layout
35106
35107 \begin_layout Standard
35108 SVN command:
35109 \begin_inset Foot
35110 status collapsed
35111
35112 \begin_layout Plain Layout
35113 In case locking is not enabled.
35114  See Section 
35115 \begin_inset CommandInset ref
35116 LatexCommand ref
35117 reference "subsec:SVN-File-Locking"
35118 nolink "false"
35119
35120 \end_inset
35121
35122 .
35123 \end_layout
35124
35125 \end_inset
35126
35127  
35128 \family typewriter
35129 svn commit -q -m"<description>" <file-name>
35130 \end_layout
35131
35132 \begin_layout Subsubsection
35133
35134 \family sans
35135 Check Out For Edit
35136 \end_layout
35137
35138 \begin_layout Standard
35139 Updates the changes of this file from the repository.
35140  Be sure you understand SVN merging and conflicts resolving before using this function,
35141  because all conflicts has to be resolved manually by you!
35142 \end_layout
35143
35144 \begin_layout Standard
35145 SVN command:
35146 \begin_inset Foot
35147 status collapsed
35148
35149 \begin_layout Plain Layout
35150 Ditto.
35151 \end_layout
35152
35153 \end_inset
35154
35155  
35156 \family typewriter
35157 svn update --non-interactive 
35158 \begin_inset Quotes qld
35159 \end_inset
35160
35161 <file-name>
35162 \begin_inset Quotes qld
35163 \end_inset
35164
35165
35166 \end_layout
35167
35168 \begin_layout Subsubsection
35169
35170 \family sans
35171 Revert To Repository Version
35172 \end_layout
35173
35174 \begin_layout Standard
35175 This will discard all changes made to the document since the last check in.
35176  You get a warning before changes are discarded.
35177 \end_layout
35178
35179 \begin_layout Standard
35180 SVN command:
35181  
35182 \family typewriter
35183 svn revert -q 
35184 \begin_inset Quotes qld
35185 \end_inset
35186
35187 <file-name>
35188 \begin_inset Quotes qld
35189 \end_inset
35190
35191
35192 \end_layout
35193
35194 \begin_layout Subsubsection
35195
35196 \family sans
35197 Copy
35198 \end_layout
35199
35200 \begin_layout Standard
35201 This will create a copy of the current document including the version history.
35202  It requires a clean document without any changes since the last checkin.
35203  You are asked for a file name and a description of the copy operation.
35204  After that the copy is created,
35205  both locally and in the repository.
35206  If the parent directories of the copied and original document differ,
35207  all relative paths of included files of the copy are adjusted (like in 
35208 \family sans
35209 File\SpecialChar menuseparator
35210 Save As
35211 \family default
35212 \SpecialChar ldots
35213 ).
35214  Finally,
35215  the copy is loaded instead of the original document.
35216 \end_layout
35217
35218 \begin_layout Labeling
35219 \labelwidthstring 00.00.0000
35220 SVN
35221 \begin_inset space ~
35222 \end_inset
35223
35224 commands:
35225  
35226 \begin_inset space ~
35227 \end_inset
35228
35229
35230 \begin_inset Newline newline
35231 \end_inset
35232
35233
35234 \begin_inset Flex Code
35235 status collapsed
35236
35237 \begin_layout Plain Layout
35238 svn copy -q 
35239 \family typewriter
35240
35241 \begin_inset Quotes qld
35242 \end_inset
35243
35244 <file-name>
35245 \begin_inset Quotes qld
35246 \end_inset
35247
35248  
35249 \begin_inset Quotes qld
35250 \end_inset
35251
35252 <new-file-name>
35253 \begin_inset Quotes qld
35254 \end_inset
35255
35256
35257 \end_layout
35258
35259 \end_inset
35260
35261
35262 \begin_inset Newline newline
35263 \end_inset
35264
35265
35266 \begin_inset Flex Code
35267 status collapsed
35268
35269 \begin_layout Plain Layout
35270 svn commit
35271 \end_layout
35272
35273 \end_inset
35274
35275
35276 \end_layout
35277
35278 \begin_layout Subsubsection
35279
35280 \family sans
35281 Rename
35282 \end_layout
35283
35284 \begin_layout Standard
35285 This will rename the current document including the version history.
35286  It requires a clean document without any changes since the last checkin.
35287  You are asked for a file name and a description of the rename operation.
35288  After that the document is renamed,
35289  both locally and in the repository.
35290  If the parent directories of the new and old file names differ,
35291  all relative paths of included files are adjusted (like in 
35292 \family sans
35293 File\SpecialChar menuseparator
35294 Save As
35295 \family default
35296 \SpecialChar ldots
35297 ).
35298  Finally,
35299  the document is reloaded using the new name.
35300 \end_layout
35301
35302 \begin_layout Labeling
35303 \labelwidthstring 00.00.0000
35304 SVN
35305 \begin_inset space ~
35306 \end_inset
35307
35308 commands:
35309  
35310 \begin_inset space ~
35311 \end_inset
35312
35313
35314 \begin_inset Newline newline
35315 \end_inset
35316
35317
35318 \begin_inset Flex Code
35319 status collapsed
35320
35321 \begin_layout Plain Layout
35322 svn move -q 
35323 \family typewriter
35324
35325 \begin_inset Quotes qld
35326 \end_inset
35327
35328 <file-name>
35329 \begin_inset Quotes qld
35330 \end_inset
35331
35332  
35333 \begin_inset Quotes qld
35334 \end_inset
35335
35336 <new-file-name>
35337 \begin_inset Quotes qld
35338 \end_inset
35339
35340
35341 \end_layout
35342
35343 \end_inset
35344
35345
35346 \begin_inset Newline newline
35347 \end_inset
35348
35349
35350 \begin_inset Flex Code
35351 status collapsed
35352
35353 \begin_layout Plain Layout
35354 svn commit
35355 \end_layout
35356
35357 \end_inset
35358
35359
35360 \end_layout
35361
35362 \begin_layout Subsubsection
35363 \begin_inset CommandInset label
35364 LatexCommand label
35365 name "subsec:SVN-Repo-Update"
35366
35367 \end_inset
35368
35369 Update of the local directory checkout from repository
35370 \begin_inset Foot
35371 status collapsed
35372
35373 \begin_layout Plain Layout
35374 Note that this command will work only with subversion 
35375 \begin_inset Formula $\geqq1.5$
35376 \end_inset
35377
35378
35379 \end_layout
35380
35381 \end_inset
35382
35383
35384 \end_layout
35385
35386 \begin_layout Standard
35387 All the commands above have one shortcoming – they deal with the current document only.
35388  Once your document contains pictures,
35389  includes external 
35390 \begin_inset Flex Code
35391 status collapsed
35392
35393 \begin_layout Plain Layout
35394 .tex
35395 \end_layout
35396
35397 \end_inset
35398
35399  files and so on administration becomes more complicated.
35400  \SpecialChar LyX
35401  now supports updating the whole tree in which resides the document
35402 \begin_inset Foot
35403 status collapsed
35404
35405 \begin_layout Plain Layout
35406 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
35407  
35408 \end_layout
35409
35410 \end_inset
35411
35412 .
35413  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.
35414  
35415 \end_layout
35416
35417 \begin_layout Standard
35418 \begin_inset Flex Code
35419 status collapsed
35420
35421 \begin_layout Plain Layout
35422 Update local directory from repository
35423 \end_layout
35424
35425 \end_inset
35426
35427  command updates the whole directory and in case of merge conflicts local version of the files are left,
35428  so no unintended data loss occurs.
35429  If local changes are detected user is warned before update starts.
35430 \end_layout
35431
35432 \begin_layout Labeling
35433 \labelwidthstring 00.00.0000
35434 SVN
35435 \begin_inset space ~
35436 \end_inset
35437
35438 commands:
35439  
35440 \begin_inset space ~
35441 \end_inset
35442
35443
35444 \begin_inset Newline newline
35445 \end_inset
35446
35447
35448 \begin_inset Flex Code
35449 status collapsed
35450
35451 \begin_layout Plain Layout
35452 svn diff $path
35453 \end_layout
35454
35455 \end_inset
35456
35457  (Ask if changes are detected.)
35458 \begin_inset Newline newline
35459 \end_inset
35460
35461
35462 \begin_inset Flex Code
35463 status collapsed
35464
35465 \begin_layout Plain Layout
35466 svn update --accept mine-full $path
35467 \end_layout
35468
35469 \end_inset
35470
35471
35472 \end_layout
35473
35474 \begin_layout Standard
35475 where 
35476 \begin_inset Flex Code
35477 status collapsed
35478
35479 \begin_layout Plain Layout
35480 $path
35481 \end_layout
35482
35483 \end_inset
35484
35485  stands for the path to the document.
35486 \end_layout
35487
35488 \begin_layout Subsubsection
35489
35490 \family sans
35491 Show History
35492 \end_layout
35493
35494 \begin_layout Standard
35495 This shows the complete history of the SVN document.
35496  The output of 
35497 \family typewriter
35498 svn log 
35499 \begin_inset Quotes qld
35500 \end_inset
35501
35502 <file-name>
35503 \begin_inset Quotes qld
35504 \end_inset
35505
35506
35507 \family default
35508  is shown in a browser.
35509 \end_layout
35510
35511 \begin_layout Subsubsection
35512 File Locking
35513 \begin_inset CommandInset label
35514 LatexCommand label
35515 name "subsec:SVN-File-Locking"
35516
35517 \end_inset
35518
35519
35520 \end_layout
35521
35522 \begin_layout Standard
35523 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.
35524  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
35525  which guarantees that only one user is allowed to edit file at the given time.
35526 \end_layout
35527
35528 \begin_layout Standard
35529 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
35530  
35531 \begin_inset CommandInset ref
35532 LatexCommand ref
35533 reference "subsec:Automatical-Locking-Property"
35534 nolink "false"
35535
35536 \end_inset
35537
35538 ) based on 
35539 \begin_inset Flex Code
35540 status collapsed
35541
35542 \begin_layout Plain Layout
35543 svn:needs-lock
35544 \end_layout
35545
35546 \end_inset
35547
35548  file svn property
35549 \begin_inset Foot
35550 status collapsed
35551
35552 \begin_layout Plain Layout
35553 \begin_inset Flex URL
35554 status open
35555
35556 \begin_layout Plain Layout
35557
35558 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
35559 \end_layout
35560
35561 \end_inset
35562
35563
35564 \end_layout
35565
35566 \end_inset
35567
35568 .
35569  If this property is detected for a given document \SpecialChar LyX
35570  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
35571  This in particular means there are two different modes of file use in \SpecialChar LyX
35572 :
35573 \end_layout
35574
35575 \begin_layout Itemize
35576 Unlocked state.
35577  The loaded file is in the read-only mode.
35578  For editing on needs to check-out.
35579  
35580 \emph on
35581 Check-out
35582 \emph default
35583  consists of updating from the repository and gaining write lock.
35584  If the lock is not possible to obtain,
35585  we remain in unlocked state.
35586 \end_layout
35587
35588 \begin_layout Itemize
35589 Locked state.
35590  The loaded file is in the 
35591 \begin_inset Quotes els
35592 \end_inset
35593
35594 normal
35595 \begin_inset Quotes ers
35596 \end_inset
35597
35598  edit mode.
35599  No other user is allowed to edit the file.
35600  
35601 \emph on
35602 Check-in
35603 \emph default
35604  consists of commiting changes and releasing write-lock.
35605  If no changes have been made to the document,
35606  no commit will be produced
35607 \begin_inset Foot
35608 status collapsed
35609
35610 \begin_layout Plain Layout
35611 Don't be puzzled by the fact that you will be asked for commit message anyway.
35612 \end_layout
35613
35614 \end_inset
35615
35616  and only the write-lock will be released.
35617 \end_layout
35618
35619 \begin_layout Standard
35620 SVN commands:
35621 \end_layout
35622
35623 \begin_layout Labeling
35624 \labelwidthstring 00.00.0000
35625 Check-in:
35626
35627 \family typewriter
35628  svn commit -q -m"<description>" "<file-name>"
35629 \begin_inset Newline newline
35630 \end_inset
35631
35632 svn unlock "<file-name>"
35633 \end_layout
35634
35635 \begin_layout Labeling
35636 \labelwidthstring 00.00.0000
35637 Check-out:
35638  
35639 \family typewriter
35640 svn update "<file-name>"
35641 \begin_inset Newline newline
35642 \end_inset
35643
35644 svn lock "<file-name>"
35645 \end_layout
35646
35647 \begin_layout Subsubsection
35648
35649 \family typewriter
35650 \begin_inset CommandInset label
35651 LatexCommand label
35652 name "subsec:Automatical-Locking-Property"
35653
35654 \end_inset
35655
35656
35657 \family default
35658 Automatic Locking Property
35659 \end_layout
35660
35661 \begin_layout Standard
35662 The above mentioned automatic setting of write permissions of the .lyx file can be set through
35663 \family sans
35664  File\SpecialChar menuseparator
35665 Version
35666 \begin_inset space ~
35667 \end_inset
35668
35669 Control\SpecialChar menuseparator
35670 Use Locking Property
35671 \family default
35672 .
35673  This command is active only when the file is not locked on the svn server (i.e.
35674  you need to check-out before proceeding).
35675 \end_layout
35676
35677 \begin_layout Labeling
35678 \labelwidthstring 00.00.0000
35679 SVN
35680 \begin_inset space ~
35681 \end_inset
35682
35683 commands:
35684 \end_layout
35685
35686 \begin_layout Labeling
35687 \labelwidthstring 00.00.0000
35688 Set:
35689
35690 \family typewriter
35691  svn propset svn:needs-lock ON "<file-name>"
35692 \end_layout
35693
35694 \begin_layout Labeling
35695 \labelwidthstring 00.00.0000
35696 Unset:
35697  
35698 \family typewriter
35699 svn propdel svn:needs-lock "<file-name>"
35700 \end_layout
35701
35702 \begin_layout Subsubsection
35703 \begin_inset CommandInset label
35704 LatexCommand label
35705 name "subsec:VCS-Revision-Information"
35706
35707 \end_inset
35708
35709 Revision Information in Documents
35710 \end_layout
35711
35712 \begin_layout Standard
35713 There are more possibilities how to activate revision information in our document.
35714 \end_layout
35715
35716 \begin_layout Itemize
35717 \SpecialChar LyX
35718  supports directly:
35719 \end_layout
35720
35721 \begin_deeper
35722 \begin_layout Itemize
35723 tree revision information (
35724 \begin_inset Flex Code
35725 status collapsed
35726
35727 \begin_layout Plain Layout
35728 vcs-tree-revision
35729 \end_layout
35730
35731 \end_inset
35732
35733 ).
35734  The result is the output of the 
35735 \begin_inset Flex Code
35736 status collapsed
35737
35738 \begin_layout Plain Layout
35739 svnversion
35740 \end_layout
35741
35742 \end_inset
35743
35744  command,
35745  the following table gives you an idea,
35746  how to read the results.
35747 \end_layout
35748
35749 \begin_layout Standard
35750 \align center
35751 \begin_inset Tabular
35752 <lyxtabular version="3" rows="6" columns="2">
35753 <features tabularvalignment="middle">
35754 <column alignment="left" valignment="top">
35755 <column alignment="left" valignment="top">
35756 <row>
35757 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35758 \begin_inset Text
35759
35760 \begin_layout Plain Layout
35761
35762 \series bold
35763 Output
35764 \end_layout
35765
35766 \end_inset
35767 </cell>
35768 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35769 \begin_inset Text
35770
35771 \begin_layout Plain Layout
35772
35773 \series bold
35774 Meaning
35775 \end_layout
35776
35777 \end_inset
35778 </cell>
35779 </row>
35780 <row>
35781 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
35782 \begin_inset Text
35783
35784 \begin_layout Plain Layout
35785 4123:4168
35786 \end_layout
35787
35788 \end_inset
35789 </cell>
35790 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35791 \begin_inset Text
35792
35793 \begin_layout Plain Layout
35794 mixed revision working copy
35795 \end_layout
35796
35797 \end_inset
35798 </cell>
35799 </row>
35800 <row>
35801 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
35802 \begin_inset Text
35803
35804 \begin_layout Plain Layout
35805 4168M
35806 \end_layout
35807
35808 \end_inset
35809 </cell>
35810 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35811 \begin_inset Text
35812
35813 \begin_layout Plain Layout
35814 modified working copy
35815 \end_layout
35816
35817 \end_inset
35818 </cell>
35819 </row>
35820 <row>
35821 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
35822 \begin_inset Text
35823
35824 \begin_layout Plain Layout
35825 4123S
35826 \end_layout
35827
35828 \end_inset
35829 </cell>
35830 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35831 \begin_inset Text
35832
35833 \begin_layout Plain Layout
35834 switched working copy
35835 \end_layout
35836
35837 \end_inset
35838 </cell>
35839 </row>
35840 <row>
35841 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
35842 \begin_inset Text
35843
35844 \begin_layout Plain Layout
35845 4123P
35846 \end_layout
35847
35848 \end_inset
35849 </cell>
35850 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
35851 \begin_inset Text
35852
35853 \begin_layout Plain Layout
35854 partial working copy,
35855  from a sparse checkout
35856 \end_layout
35857
35858 \end_inset
35859 </cell>
35860 </row>
35861 <row>
35862 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
35863 \begin_inset Text
35864
35865 \begin_layout Plain Layout
35866 4123:4168MS
35867 \end_layout
35868
35869 \end_inset
35870 </cell>
35871 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
35872 \begin_inset Text
35873
35874 \begin_layout Plain Layout
35875 mixed revision,
35876  modified,
35877  switched working copy
35878 \end_layout
35879
35880 \end_inset
35881 </cell>
35882 </row>
35883 </lyxtabular>
35884
35885 \end_inset
35886
35887
35888 \end_layout
35889
35890 \begin_layout Itemize
35891 file revision information.
35892  The result comes from parsing the output of 
35893 \begin_inset Flex Code
35894 status collapsed
35895
35896 \begin_layout Plain Layout
35897 svn
35898 \begin_inset space ~
35899 \end_inset
35900
35901 info
35902 \begin_inset space ~
35903 \end_inset
35904
35905 --xml
35906 \begin_inset space ~
35907 \end_inset
35908
35909 file.lyx
35910 \end_layout
35911
35912 \end_inset
35913
35914 .
35915  Supported flags are:
35916 \end_layout
35917
35918 \begin_deeper
35919 \begin_layout Itemize
35920 version number of the last commit (
35921 \begin_inset Flex Code
35922 status collapsed
35923
35924 \begin_layout Plain Layout
35925 vcs-revision
35926 \end_layout
35927
35928 \end_inset
35929
35930 )
35931 \end_layout
35932
35933 \begin_layout Itemize
35934 author of the last commit (
35935 \begin_inset Flex Code
35936 status collapsed
35937
35938 \begin_layout Plain Layout
35939 vcs-author
35940 \end_layout
35941
35942 \end_inset
35943
35944 )
35945 \end_layout
35946
35947 \begin_layout Itemize
35948 date of the last commit (
35949 \begin_inset Flex Code
35950 status collapsed
35951
35952 \begin_layout Plain Layout
35953 vcs-date
35954 \end_layout
35955
35956 \end_inset
35957
35958 )
35959 \end_layout
35960
35961 \begin_layout Itemize
35962 time of the last commit (
35963 \begin_inset Flex Code
35964 status collapsed
35965
35966 \begin_layout Plain Layout
35967 vcs-time
35968 \end_layout
35969
35970 \end_inset
35971
35972 )
35973 \end_layout
35974
35975 \end_deeper
35976 \begin_layout Standard
35977 You can obtain this info via InsetInfo (
35978 \change_inserted 5863208 1564400022
35979
35980 \lang american
35981 Insert\SpecialChar menuseparator
35982 Field\SpecialChar menuseparator
35983 Version Control Revision
35984 \change_deleted 5863208 1564399852
35985
35986 \lang english
35987 e.g.
35988  
35989 \begin_inset Flex Code
35990 status collapsed
35991
35992 \begin_layout Plain Layout
35993 info-insert buffer vcs-date
35994 \end_layout
35995
35996 \end_inset
35997
35998
35999 \change_unchanged
36000 ).
36001  The information will be available only when you have the file stored under svn managment (i.e.
36002  the 
36003 \begin_inset Flex Code
36004 status collapsed
36005
36006 \begin_layout Plain Layout
36007 .svn
36008 \end_layout
36009
36010 \end_inset
36011
36012  directory is available with your document).
36013 \end_layout
36014
36015 \end_deeper
36016 \begin_layout Itemize
36017 Another—
36018 a hacking one—
36019 possibility is to use svn keywords
36020 \begin_inset Foot
36021 status collapsed
36022
36023 \begin_layout Plain Layout
36024 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
36025 \end_layout
36026
36027 \end_inset
36028
36029 .
36030  In short – you set file keywords property (e.g.
36031  
36032 \family sans
36033 svn propset svn:keywords 'Rev' file.lyx
36034 \family default
36035 ) and then paste keyword \SpecialChar TeX
36036  code
36037 \begin_inset Foot
36038 status collapsed
36039
36040 \begin_layout Plain Layout
36041 This is an easy way how to ensure that \SpecialChar LyX
36042  won't break the line in the middle of keyword tag.
36043 \end_layout
36044
36045 \end_inset
36046
36047  tag in your document (e.g.
36048  
36049 \begin_inset Flex Code
36050 status collapsed
36051
36052 \begin_layout Plain Layout
36053 $Rev$
36054 \end_layout
36055
36056 \end_inset
36057
36058 ).
36059  This way svn client will automatically substitute revision number (e.g.
36060  
36061 \begin_inset Flex Code
36062 status collapsed
36063
36064 \begin_layout Plain Layout
36065 $Rev:
36066  59 $
36067 \end_layout
36068
36069 \end_inset
36070
36071 ) after each update and commit.
36072  There are more problems with this approach.
36073  Firstly,
36074  the '$' character is used in \SpecialChar TeX
36075  world for math equations,
36076  so any occurence of math formula 
36077 \begin_inset Formula $Rev$
36078 \end_inset
36079
36080  become 
36081 \begin_inset Formula $Rev:59$
36082 \end_inset
36083
36084  in your \SpecialChar LyX
36085  document.
36086  Similarly for other keywords like Id,
36087  Date,
36088  Author,
36089  etc.
36090  Secondly svn output is dependent on your locales,
36091  so its very easy that svn would produce some problematic strings once Date is used.
36092  Thirdly you get the whole 'Rev:
36093  59' string in your document instead of the plain number.
36094  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
36095  to support it directly.
36096 \end_layout
36097
36098 \begin_layout Subsection
36099 SVN and Windows Environment
36100 \end_layout
36101
36102 \begin_layout Quote
36103 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
36104  they would be well advised to use TortoiseSVN.
36105  —
36106 P.
36107  A.
36108  Rubin
36109 \end_layout
36110
36111 \begin_layout Subsubsection
36112 Preparation
36113 \end_layout
36114
36115 \begin_layout Standard
36116 In addition to installing \SpecialChar LyX
36117 ,
36118  and having access to a Subversion repository,
36119  the user will need to install the Subversion client program.
36120  A Windows installer for the client program is available from 
36121 \begin_inset CommandInset href
36122 LatexCommand href
36123 name "CollabNet"
36124 target "http://www.collab.net/nonav/downloads/subversion/"
36125 literal "false"
36126
36127 \end_inset
36128
36129 .
36130  The user may also want to install 
36131 \begin_inset CommandInset href
36132 LatexCommand href
36133 name "TortoiseSVN"
36134 target "http://tortoisesvn.tigris.org/"
36135 literal "false"
36136
36137 \end_inset
36138
36139 ,
36140  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
36141  Operations done outside \SpecialChar LyX
36142  will typically be more convenient using the Explorer context menu.
36143  Note that TortoiseSVN is not a replacement for the client program,
36144  which is what \SpecialChar LyX
36145  itself will use.
36146 \end_layout
36147
36148 \begin_layout Subsubsection
36149 Bringing a document under Subversion control
36150 \end_layout
36151
36152 \begin_layout Standard
36153 Before a \SpecialChar LyX
36154  document can be brought under version control in Subversion,
36155  its parent directory needs to be under version control.
36156  If the document is being added to a project already in the repository,
36157  this is accomplished by checking the project out to the directory where the new document will be placed.
36158  If the project itself is not yet under version control (for instance,
36159  if this document starts a new project),
36160  the directory must be imported into the repository.
36161  This is done outside \SpecialChar LyX
36162 .
36163  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
36164  or alternatively can be done using the command line client at a DOS prompt.
36165  The procedure for importing the project using TortoiseSVN is described below,
36166  assuming an existing repository and a new project being started in 
36167 \family typewriter
36168 C:
36169 \backslash
36170 new project
36171 \family default
36172 .
36173  For information on using the Subversion client program,
36174  run 
36175 \family typewriter
36176 svn --help 
36177 \family default
36178 in a DOS shell.
36179 \end_layout
36180
36181 \begin_layout Enumerate
36182 Locate 
36183 \family typewriter
36184 C:
36185 \backslash
36186 new project 
36187 \family default
36188 in Windows Explorer,
36189  right click it,
36190  and select 
36191 \family sans
36192 TortoiseSVN\SpecialChar menuseparator
36193 Repo-browser
36194 \family default
36195 .
36196  If necessary,
36197  adjust the URL for the repository,
36198  then click OK.
36199 \end_layout
36200
36201 \begin_layout Enumerate
36202 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
36203 \family sans
36204 Create folder
36205 \family default
36206  Supply a name for the project folder and click OK.
36207  Add a message for the log file if desired,
36208  then click OK again.
36209  The new project folder should appear in the repository.
36210  Finally,
36211  click OK again to exit the repository browser.
36212 \end_layout
36213
36214 \begin_layout Enumerate
36215 Once again right click 
36216 \family typewriter
36217 C:
36218 \backslash
36219 new project
36220 \family default
36221 ,
36222  this time selecting SVN Checkout\SpecialChar ldots
36223  Select the URL of the project folder you just created in the repository,
36224  and set the checkout directory to 
36225 \family typewriter
36226 C:
36227 \backslash
36228 new project.
36229
36230 \family default
36231  Click OK.
36232  You will be warned about a non-empty folder;
36233  click OK to proceed.
36234  You should now have a 
36235 \family typewriter
36236 .svn
36237 \family default
36238  directory under 
36239 \family typewriter
36240 C:
36241 \backslash
36242 new project.
36243 \end_layout
36244
36245 \begin_layout Enumerate
36246 Create or open your document in \SpecialChar LyX
36247  and click 
36248 \family sans
36249 File\SpecialChar menuseparator
36250 Version
36251 \begin_inset space ~
36252 \end_inset
36253
36254 Control\SpecialChar menuseparator
36255 Register.
36256  
36257 \family default
36258 Add a log message and click OK to commit the document to version control.
36259 \end_layout
36260
36261 \begin_layout Standard
36262 From this point onward,
36263  you should have full functionality in the 
36264 \family sans
36265 File\SpecialChar menuseparator
36266 Version
36267 \begin_inset space ~
36268 \end_inset
36269
36270 Control
36271 \family default
36272  menu.
36273  You also have the option of checking the document in and out,
36274  viewing its history,
36275  etc.
36276  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
36277 \end_layout
36278
36279 \begin_layout Subsubsection
36280 SSH tunnel used with SVN under Windows
36281 \end_layout
36282
36283 \begin_layout Standard
36284 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
36285  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,
36286  also be prepared for a great deal of frustration\SpecialChar ldots
36287
36288 \end_layout
36289
36290 \begin_layout Enumerate
36291 Get an svn client for windows,
36292  as described in the previous sections.
36293  When it is a fresh install run some svn command (e.g.
36294  
36295 \begin_inset Flex Code
36296 status collapsed
36297
36298 \begin_layout Plain Layout
36299 svn --version
36300 \end_layout
36301
36302 \end_inset
36303
36304 ) to create config files,
36305  which you will need to change later on.
36306 \end_layout
36307
36308 \begin_layout Enumerate
36309 Choose an ssh client for Windows.
36310  There are several possibilities,
36311  we will use the one from Putty tools
36312 \begin_inset Foot
36313 status collapsed
36314
36315 \begin_layout Plain Layout
36316 \begin_inset Flex URL
36317 status collapsed
36318
36319 \begin_layout Plain Layout
36320
36321 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
36322 \end_layout
36323
36324 \end_inset
36325
36326
36327 \end_layout
36328
36329 \end_inset
36330
36331 .
36332  You will need to set the connection up so that the client doesn't ask for any password from you.
36333  To keep things easy we will use only keys without any additional password protection etc.
36334 \end_layout
36335
36336 \begin_deeper
36337 \begin_layout Enumerate
36338 Generate keys by 
36339 \begin_inset Flex Code
36340 status collapsed
36341
36342 \begin_layout Plain Layout
36343 puttygen
36344 \end_layout
36345
36346 \end_inset
36347
36348 .
36349  Save your private .ppk key file and put the public one on the server side.
36350  If the SVN server runs on Linux,
36351  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 
36352 \begin_inset Quotes eld
36353 \end_inset
36354
36355
36356 \emph on
36357 Public key for pasting into OpenSSH authorized_keys file
36358 \emph default
36359 :
36360 \begin_inset Quotes erd
36361 \end_inset
36362
36363  edit field into the server's 
36364 \begin_inset Flex Code
36365 status collapsed
36366
36367 \begin_layout Plain Layout
36368 ~/.ssh/authorized_keys
36369 \end_layout
36370
36371 \end_inset
36372
36373  / 
36374 \begin_inset Flex Code
36375 status collapsed
36376
36377 \begin_layout Plain Layout
36378 authorized_keys2
36379 \end_layout
36380
36381 \end_inset
36382
36383  file.
36384 \end_layout
36385
36386 \begin_layout Enumerate
36387 Get the Putty's 
36388 \begin_inset Flex Code
36389 status collapsed
36390
36391 \begin_layout Plain Layout
36392 plink
36393 \end_layout
36394
36395 \end_inset
36396
36397 .
36398  In the SVN config file
36399 \begin_inset Foot
36400 status collapsed
36401
36402 \begin_layout Plain Layout
36403 Exact path depends on Windows version,
36404  usually somewhere around 
36405 \begin_inset Flex Code
36406 status collapsed
36407
36408 \begin_layout Plain Layout
36409 c:
36410 \backslash
36411 Documents and Settings
36412 \backslash
36413 user
36414 \backslash
36415 Application Data
36416 \backslash
36417 Subversion
36418 \backslash
36419 config
36420 \end_layout
36421
36422 \end_inset
36423
36424  / 
36425 \begin_inset Flex Code
36426 status collapsed
36427
36428 \begin_layout Plain Layout
36429 AppData
36430 \backslash
36431 Roaming
36432 \backslash
36433 Subversion
36434 \end_layout
36435
36436 \end_inset
36437
36438 .
36439 \end_layout
36440
36441 \end_inset
36442
36443 ,
36444  section [tunnels],
36445  setup ssh command,
36446  e.g.
36447  
36448 \begin_inset Flex Code
36449 status collapsed
36450
36451 \begin_layout Plain Layout
36452 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
36453 \end_layout
36454
36455 \end_inset
36456
36457 .
36458 \begin_inset Foot
36459 status collapsed
36460
36461 \begin_layout Plain Layout
36462 It will usually take a lot of time to get exact command right and it depends on many things.
36463  For example do not have some remote server saved as a default session in Putty etc.
36464  If things fail,
36465  try to connect via plink without SVN first.
36466 \end_layout
36467
36468 \end_inset
36469
36470
36471 \end_layout
36472
36473 \end_deeper
36474 \begin_layout Enumerate
36475 Checkout the SVN archive,
36476  e.
36477 \begin_inset space \thinspace{}
36478 \end_inset
36479
36480 g.
36481 \begin_inset Newline newline
36482 \end_inset
36483
36484
36485 \begin_inset Flex Code
36486 status collapsed
36487
36488 \begin_layout Plain Layout
36489 svn co svn+ssh://user@server/repository_path
36490 \end_layout
36491
36492 \end_inset
36493
36494 .
36495 \end_layout
36496
36497 \begin_layout Subsubsection
36498 End-of-Line Conversions
36499 \end_layout
36500
36501 \begin_layout Standard
36502 When the collaborators are mixing Linux and Windows environments,
36503  \SpecialChar LyX
36504  will use different line endings inside the .lyx files.
36505  This is not a problem as far as \SpecialChar LyX
36506  functionality is concerned,
36507  but the commit diffs will be huge and merge-conflicts prone.
36508  Fortunately SVN itself knows
36509 \begin_inset Foot
36510 status collapsed
36511
36512 \begin_layout Plain Layout
36513 \begin_inset Flex URL
36514 status collapsed
36515
36516 \begin_layout Plain Layout
36517
36518 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
36519 \end_layout
36520
36521 \end_inset
36522
36523
36524 \end_layout
36525
36526 \end_inset
36527
36528  how to deal with CR/LF problems when switching .lyx files to the 
36529 \begin_inset Flex Code
36530 status collapsed
36531
36532 \begin_layout Plain Layout
36533 native
36534 \end_layout
36535
36536 \end_inset
36537
36538  mode.
36539 \begin_inset Foot
36540 status collapsed
36541
36542 \begin_layout Plain Layout
36543 For the lazy guys:
36544  
36545 \begin_inset Flex Code
36546 status collapsed
36547
36548 \begin_layout Plain Layout
36549 svn propset svn:eol-style native FILE_NAME
36550 \end_layout
36551
36552 \end_inset
36553
36554
36555 \end_layout
36556
36557 \end_inset
36558
36559
36560 \end_layout
36561
36562 \begin_layout Subsection
36563 GIT commands in \SpecialChar LyX
36564
36565 \end_layout
36566
36567 \begin_layout Standard
36568 A minimal subset of GIT commands is now supported by \SpecialChar LyX
36569 .
36570  You can find the commands in the 
36571 \family sans
36572 File\SpecialChar menuseparator
36573 Version
36574 \begin_inset space ~
36575 \end_inset
36576
36577 Control
36578 \family default
36579  submenu.
36580  Please note that if you use password protected access to repository via ssh,
36581  you will be asked in terminal window.
36582  \SpecialChar LyX
36583  was tested against GIT 1.7.
36584 \begin_inset Foot
36585 status collapsed
36586
36587 \begin_layout Plain Layout
36588 Windows users please note that you need to ensure that git is on the path.
36589  This can be set from within \SpecialChar LyX
36590  at 
36591 \family sans
36592 Tools\SpecialChar menuseparator
36593 Preferences\SpecialChar menuseparator
36594 Paths\SpecialChar menuseparator
36595 PATH prefix
36596 \family default
36597 .
36598 \end_layout
36599
36600 \end_inset
36601
36602
36603 \end_layout
36604
36605 \begin_layout Standard
36606 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
36607  With traditional version control systems there is one central server which hosts the repository.
36608  Users commit their changes to the server,
36609  and get updates made by other users from it.
36610  With GIT,
36611  users commit to a local repository.
36612  The local repository can be synchronized with one or more remote repositories using the 
36613 \begin_inset Flex Code
36614 status collapsed
36615
36616 \begin_layout Plain Layout
36617 pull
36618 \end_layout
36619
36620 \end_inset
36621
36622  and 
36623 \begin_inset Flex Code
36624 status collapsed
36625
36626 \begin_layout Plain Layout
36627 push
36628 \end_layout
36629
36630 \end_inset
36631
36632  GIT commands.
36633  \SpecialChar LyX
36634  does not interact in any way with remote GIT repositories.
36635  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
36636  If you use remote GIT repositories you need to do the 
36637 \begin_inset Flex Code
36638 status collapsed
36639
36640 \begin_layout Plain Layout
36641 pull
36642 \end_layout
36643
36644 \end_inset
36645
36646  and 
36647 \begin_inset Flex Code
36648 status collapsed
36649
36650 \begin_layout Plain Layout
36651 push
36652 \end_layout
36653
36654 \end_inset
36655
36656  operations with your favourite GIT client.
36657 \end_layout
36658
36659 \begin_layout Subsubsection
36660
36661 \family sans
36662 Register
36663 \end_layout
36664
36665 \begin_layout Standard
36666 If your document is not under revision control,
36667  this is the only item shown in the menu.
36668  And if it is under revision control,
36669  the 
36670 \family sans
36671 Register
36672 \family default
36673  item is not visible.
36674 \end_layout
36675
36676 \begin_layout Standard
36677 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
36678 \family typewriter
36679 .git/index
36680 \family default
36681  file exists).
36682  This means you have to checkout the archive by yourself.
36683 \end_layout
36684
36685 \begin_layout Standard
36686 Then you are asked interactively to supply an initial description of the document.
36687  Don't forget that registered file is not yet committed.
36688 \end_layout
36689
36690 \begin_layout Standard
36691 GIT command that is run:
36692  
36693 \family typewriter
36694 git add 
36695 \begin_inset Quotes qld
36696 \end_inset
36697
36698 <file-name>
36699 \begin_inset Quotes qld
36700 \end_inset
36701
36702
36703 \end_layout
36704
36705 \begin_layout Standard
36706 Read 
36707 \family typewriter
36708 man git
36709 \family default
36710  to understand the switches.
36711 \end_layout
36712
36713 \begin_layout Subsubsection
36714
36715 \family sans
36716 Check In Changes
36717 \end_layout
36718
36719 \begin_layout Standard
36720 When you are finished editing a file,
36721  you commit your changes.
36722  When you do this,
36723  you are asked for a description of the changes.
36724  After that changes are committed.
36725 \end_layout
36726
36727 \begin_layout Standard
36728 GIT command:
36729  
36730 \family typewriter
36731 git commit -q -m"<description>" <file-name>
36732 \end_layout
36733
36734 \begin_layout Subsubsection
36735
36736 \family sans
36737 Revert To Repository Version
36738 \end_layout
36739
36740 \begin_layout Standard
36741 This will discard all changes made to the document since the last check in.
36742  You get a warning before changes are discarded.
36743 \end_layout
36744
36745 \begin_layout Standard
36746 GIT command:
36747  
36748 \family typewriter
36749 git checkout -q 
36750 \begin_inset Quotes qld
36751 \end_inset
36752
36753 <file-name>
36754 \begin_inset Quotes qld
36755 \end_inset
36756
36757
36758 \end_layout
36759
36760 \begin_layout Subsubsection
36761
36762 \family sans
36763 Rename
36764 \end_layout
36765
36766 \begin_layout Standard
36767 This will rename the current document including the version history.
36768  It requires a clean document without any changes since the last checkin.
36769  You are asked for a file name and a description of the rename operation.
36770  After that the document is renamed,
36771  both locally and in the repository.
36772  If the parent directories of the new and old file names differ,
36773  all relative paths of included files are adjusted (like in 
36774 \family sans
36775 File\SpecialChar menuseparator
36776 Save As
36777 \family default
36778 \SpecialChar ldots
36779 ).
36780  Finally,
36781  the document is reloaded using the new name.
36782 \end_layout
36783
36784 \begin_layout Labeling
36785 \labelwidthstring 00.00.0000
36786 GIT
36787 \begin_inset space ~
36788 \end_inset
36789
36790 commands:
36791  
36792 \begin_inset space ~
36793 \end_inset
36794
36795
36796 \begin_inset Newline newline
36797 \end_inset
36798
36799
36800 \begin_inset Flex Code
36801 status collapsed
36802
36803 \begin_layout Plain Layout
36804 git mv 
36805 \family typewriter
36806
36807 \begin_inset Quotes qld
36808 \end_inset
36809
36810 <file-name>
36811 \begin_inset Quotes qld
36812 \end_inset
36813
36814  
36815 \begin_inset Quotes qld
36816 \end_inset
36817
36818 <new-file-name>
36819 \begin_inset Quotes qld
36820 \end_inset
36821
36822
36823 \end_layout
36824
36825 \end_inset
36826
36827
36828 \begin_inset Newline newline
36829 \end_inset
36830
36831
36832 \begin_inset Flex Code
36833 status collapsed
36834
36835 \begin_layout Plain Layout
36836 git commit
36837 \end_layout
36838
36839 \end_inset
36840
36841
36842 \end_layout
36843
36844 \begin_layout Subsubsection
36845
36846 \family sans
36847 Show History
36848 \end_layout
36849
36850 \begin_layout Standard
36851 This shows the complete history of the GIT document.
36852  The output of 
36853 \family typewriter
36854 git log 
36855 \begin_inset Quotes qld
36856 \end_inset
36857
36858 <file-name>
36859 \begin_inset Quotes qld
36860 \end_inset
36861
36862
36863 \family default
36864  is shown in a browser.
36865 \end_layout
36866
36867 \begin_layout Subsubsection
36868 Version Info
36869 \end_layout
36870
36871 \begin_layout Standard
36872 \SpecialChar LyX
36873  supports GIT hash number of the last commit to the file,
36874  
36875 \change_inserted 1119979965 1564297456
36876 its abbreviated form,
36877  
36878 \change_unchanged
36879 author name,
36880  date and time of last commit.
36881  All those are extracted from 
36882 \family typewriter
36883 git log -n 1 --pretty=format:%H%n
36884 \change_inserted 1119979965 1564297427
36885 %h%n
36886 \change_unchanged
36887 %an%n%ai
36888 \family default
36889 .
36890  Tree version information is obtained via 
36891 \family typewriter
36892 git describe --abbrev --dirty --long
36893 \family default
36894 .
36895  See 
36896 \begin_inset CommandInset ref
36897 LatexCommand ref
36898 reference "subsec:VCS-Revision-Information"
36899 nolink "false"
36900
36901 \end_inset
36902
36903  for other details.
36904 \end_layout
36905
36906 \begin_layout Subsection
36907 Further tuning
36908 \end_layout
36909
36910 \begin_layout Standard
36911 With the recent addition of the 
36912 \begin_inset Flex Code
36913 status collapsed
36914
36915 \begin_layout Plain Layout
36916 vc-command
36917 \end_layout
36918
36919 \end_inset
36920
36921  function \SpecialChar LyX
36922  power users are allowed to create their own commands for revision control.
36923 \end_layout
36924
36925 \begin_layout Standard
36926 As an example you can see how two TortoiseSVN commands could be integrated directly:
36927 \end_layout
36928
36929 \begin_layout Description
36930 Commit:
36931  
36932 \begin_inset Flex Code
36933 status collapsed
36934
36935 \begin_layout Plain Layout
36936 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
36937 \end_layout
36938
36939 \end_inset
36940
36941
36942 \end_layout
36943
36944 \begin_layout Description
36945 Revert:
36946  
36947 \begin_inset Flex Code
36948 status collapsed
36949
36950 \begin_layout Plain Layout
36951 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
36952 \end_layout
36953
36954 \end_inset
36955
36956
36957 \end_layout
36958
36959 \begin_layout Subsection
36960 Version control and Document comparison
36961 \end_layout
36962
36963 \begin_layout Standard
36964 One of the typical uses of version control is to inspect the changes between revisions,
36965  usually by creating 
36966 \begin_inset Flex Code
36967 status collapsed
36968
36969 \begin_layout Plain Layout
36970 diff
36971 \end_layout
36972
36973 \end_inset
36974
36975  dumps.
36976  While this is useful for plain text files,
36977  it is much less useful in the case of \SpecialChar LyX
36978  files,
36979  which have more a complicated structure.
36980  Hence we provide binding to the Document comparison feature.
36981  There are two ways of calling this feature – either by direct call of 
36982 \begin_inset Flex Code
36983 status collapsed
36984
36985 \begin_layout Plain Layout
36986 vc-compare
36987 \end_layout
36988
36989 \end_inset
36990
36991  \SpecialChar LyX
36992  function (for details see \SpecialChar LyX
36993  functions manual) or by the toolbar icon 
36994 \begin_inset Info
36995 type  "icon"
36996 arg   "vc-compare"
36997 \end_inset
36998
36999  or the menu item 
37000 \begin_inset Info
37001 type  "menu"
37002 arg   "vc-compare"
37003 \end_inset
37004
37005 ,
37006  respectively.
37007  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 '
37008 \begin_inset Flex Noun
37009 status collapsed
37010
37011 \begin_layout Plain Layout
37012 0
37013 \end_layout
37014
37015 \end_inset
37016
37017 ' revisions back means comparison of the edited file with last commited revision).
37018  
37019 \end_layout
37020
37021 \begin_layout Standard
37022 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,
37023  numbers always point to the last number in RCS revision number,
37024  i.e.
37025  '35' in '1.2.35'.
37026  We don't currently support GIT addressing of revisions,
37027  one can just compare edited document with its revision X steps backs,
37028  where X is addressed as 
37029 \begin_inset Flex Code
37030 status collapsed
37031
37032 \begin_layout Plain Layout
37033 HEAD~X
37034 \end_layout
37035
37036 \end_inset
37037
37038 .
37039 \end_layout
37040
37041 \begin_layout Section
37042
37043 \change_inserted 564990737 1672161575
37044 \begin_inset CommandInset label
37045 LatexCommand label
37046 name "sec:Literate-Programming"
37047
37048 \end_inset
37049
37050
37051 \change_unchanged
37052 Literate Programming
37053 \end_layout
37054
37055 \begin_layout Standard
37056 Updated by 
37057 \noun on
37058 Kayvan Sylvan 
37059 \noun default
37060 (kayvan@sylvan.com)
37061 \noun on
37062 ,
37063  
37064 \noun default
37065 original documentation written by 
37066 \noun on
37067 Edmar Wienskoski Jr.
37068
37069 \noun default
37070  (edmar-w-jr@technologist.com)
37071 \end_layout
37072
37073 \begin_layout Subsection
37074 Introduction
37075 \end_layout
37076
37077 \begin_layout Standard
37078 The main purpose of this documentation is to show you how to use \SpecialChar LyX
37079  for literate programming,
37080  where it is assumed that you are familiar with this programming technique,
37081  and know what 
37082 \begin_inset Quotes eld
37083 \end_inset
37084
37085 tangling
37086 \begin_inset Quotes erd
37087 \end_inset
37088
37089  and 
37090 \begin_inset Quotes eld
37091 \end_inset
37092
37093 weaving
37094 \begin_inset Quotes erd
37095 \end_inset
37096
37097  means.
37098  If that is not the case,
37099  please follow the web links provided in the following sections.
37100  There is a lot of good documentation out there covering old development history to the latest tools tips.
37101 \end_layout
37102
37103 \begin_layout Standard
37104 It is also assumed that you are familiar with \SpecialChar LyX
37105  itself to a point that you are comfortable changing your \SpecialChar LyX
37106  preferences,
37107  and X resources file.
37108  If that is not the case please refer to other \SpecialChar LyX
37109  documentation to cover your specific needs.
37110 \end_layout
37111
37112 \begin_layout Subsection
37113 Literate Programming
37114 \end_layout
37115
37116 \begin_layout Standard
37117 From the Literate Programming FAQ:
37118  
37119 \end_layout
37120
37121 \begin_layout Quotation
37122 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
37123  In fact,
37124  literate programs should be enjoyable reading,
37125  even inviting!
37126  (Sorry Bob,
37127  I couldn't resist!) In general,
37128  literate programs combine source and documentation in a single file.
37129  Literate programming tools then parse the file to produce either readable documentation or compilable source.
37130  The WEB style of literate programming was created by D.
37131 \begin_inset space \thinspace{}
37132 \end_inset
37133
37134 E.
37135  Knuth during the development of his \SpecialChar TeX
37136  typesetting software.
37137  
37138 \end_layout
37139
37140 \begin_layout Standard
37141 Another excerpt says:
37142 \end_layout
37143
37144 \begin_layout Quotation
37145
37146 \emph on
37147 How is literate programming different from verbose commenting?
37148 \end_layout
37149
37150 \begin_layout Quotation
37151 There are three distinguishing characteristics.
37152  In order of importance,
37153  they are:
37154  
37155 \end_layout
37156
37157 \begin_deeper
37158 \begin_layout Itemize
37159 flexible order of elaboration 
37160 \end_layout
37161
37162 \begin_layout Itemize
37163 automatic support for browsing 
37164 \end_layout
37165
37166 \begin_layout Itemize
37167 typeset documentation,
37168  especially diagrams and mathematics 
37169 \end_layout
37170
37171 \end_deeper
37172 \begin_layout Standard
37173 Now that I sparked your curiosity,
37174  take a look in the references.
37175 \end_layout
37176
37177 \begin_layout Subsubsection
37178 References
37179 \end_layout
37180
37181 \begin_layout Standard
37182 The complete Literate Programming FAQ can be found at:
37183 \end_layout
37184
37185 \begin_layout Quote
37186 Literate Programming FAQ 
37187 \begin_inset Flex URL
37188 status open
37189
37190 \begin_layout Plain Layout
37191
37192 http://www.literateprogramming.com/lpfaq.pdf
37193 \end_layout
37194
37195 \end_inset
37196
37197
37198 \end_layout
37199
37200 \begin_layout Standard
37201 The FAQ lists 23 (twenty three!) different literate programming tools.
37202  Where some are specialized or 
37203 \begin_inset Quotes eld
37204 \end_inset
37205
37206 tailored
37207 \begin_inset Quotes erd
37208 \end_inset
37209
37210  for particular programming languages,
37211  while other have general scope.
37212  I selected 
37213 \noun on
37214 Noweb
37215 \noun default
37216  for my own use for several reasons:
37217 \end_layout
37218
37219 \begin_layout Itemize
37220 It can generate the documentation either in \SpecialChar LaTeX
37221  or HTML.
37222 \end_layout
37223
37224 \begin_layout Itemize
37225 It has a open architecture,
37226  i.
37227 \begin_inset space \thinspace{}
37228 \end_inset
37229
37230 e.
37231 \begin_inset space \space{}
37232 \end_inset
37233
37234 it is easy to plug in new filters
37235 \begin_inset Foot
37236 status collapsed
37237
37238 \begin_layout Plain Layout
37239
37240 \emph on
37241 Filters 
37242 \emph default
37243 are programs that read a given data stream and output a manipulated data stream.
37244  That way,
37245  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
37246  code.
37247 \end_layout
37248
37249 \end_inset
37250
37251  and to perform special processing that you may need.
37252  
37253 \end_layout
37254
37255 \begin_layout Itemize
37256 There is a good selection of filters available already (the HTML is one of them).
37257 \end_layout
37258
37259 \begin_layout Itemize
37260 It is free.
37261 \end_layout
37262
37263 \begin_layout Standard
37264 The Noweb web page can be found at:
37265  
37266 \end_layout
37267
37268 \begin_layout Quote
37269 Noweb home page 
37270 \begin_inset Flex URL
37271 status collapsed
37272
37273 \begin_layout Plain Layout
37274
37275 https://www.cs.tufts.edu/~nr/noweb/
37276 \end_layout
37277
37278 \end_inset
37279
37280
37281 \end_layout
37282
37283 \begin_layout Standard
37284 Starting from there you can reach many other interesting links and even some literate program examples.
37285 \end_layout
37286
37287 \begin_layout Subsection
37288 \SpecialChar LyX
37289  and Literate Programming with Noweb
37290 \end_layout
37291
37292 \begin_layout Standard
37293 The \SpecialChar LyX
37294  support for Literate Programming is provided by using the generic \SpecialChar LyX
37295  converters mechanism.
37296  This support is provided in a 
37297 \begin_inset Quotes eld
37298 \end_inset
37299
37300 Noweb independent
37301 \begin_inset Quotes erd
37302 \end_inset
37303
37304  way,
37305  i.
37306 \begin_inset space \thinspace{}
37307 \end_inset
37308
37309 e.
37310 \begin_inset space \space{}
37311 \end_inset
37312
37313 you will be able to use this new \SpecialChar LyX
37314  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
37315  preferences.
37316 \end_layout
37317
37318 \begin_layout Subsubsection
37319 Generating documents and code (weaving and tangling)
37320 \end_layout
37321
37322 \begin_layout Paragraph
37323 Using the noweb module
37324 \end_layout
37325
37326 \begin_layout Standard
37327 If you have installed Noweb and \SpecialChar LyX
37328  successfully,
37329  whenever you open a new document,
37330  after you have chosen its document class,
37331  use the 
37332 \family sans
37333 Document\SpecialChar menuseparator
37334 Settings
37335 \family default
37336  menu to add the 
37337 \begin_inset Quotes eld
37338 \end_inset
37339
37340 noweb
37341 \begin_inset Quotes erd
37342 \end_inset
37343
37344  module.
37345  If Noweb is correctly installed,
37346  when you click on the 
37347 \begin_inset Quotes eld
37348 \end_inset
37349
37350 Modules
37351 \begin_inset Quotes erd
37352 \end_inset
37353
37354  link,
37355  you will see the 
37356 \begin_inset Quotes eld
37357 \end_inset
37358
37359 noweb
37360 \begin_inset Quotes erd
37361 \end_inset
37362
37363  module in the available list and you can add it to your document.
37364 \end_layout
37365
37366 \begin_layout Paragraph
37367 Typing code in
37368 \end_layout
37369
37370 \begin_layout Standard
37371 \SpecialChar LyX
37372  enables you to write code with a custom inset named 
37373 \begin_inset Flex Noun
37374 status collapsed
37375
37376 \begin_layout Plain Layout
37377 Chunk
37378 \end_layout
37379
37380 \end_inset
37381
37382 .
37383  Noweb delimits chunks like this:
37384 \end_layout
37385
37386 \begin_layout LyX-Code
37387 <<My code>>=
37388 \end_layout
37389
37390 \begin_layout LyX-Code
37391   code
37392 \end_layout
37393
37394 \begin_layout LyX-Code
37395   more code
37396 \end_layout
37397
37398 \begin_layout LyX-Code
37399   even more code
37400 \end_layout
37401
37402 \begin_layout LyX-Code
37403   @
37404 \end_layout
37405
37406 \begin_layout Standard
37407 The problem is that whatever is written in between the << and the 
37408 \family typewriter
37409 @
37410 \family default
37411  must be taken literally,
37412  i.
37413 \begin_inset space \thinspace{}
37414 \end_inset
37415
37416 e.
37417 \begin_inset space \space{}
37418 \end_inset
37419
37420 \SpecialChar LyX
37421  should be prevented from making any special interpretation of what has been written.
37422  This is also handled by 
37423 \begin_inset Flex Noun
37424 status collapsed
37425
37426 \begin_layout Plain Layout
37427 Chunk
37428 \end_layout
37429
37430 \end_inset
37431
37432 ,
37433  that works like a normal text inset but has a free spacing capability.
37434 \end_layout
37435
37436 \begin_layout Standard
37437 As a special note,
37438  you can also use the 
37439 \begin_inset Quotes eld
37440 \end_inset
37441
37442 %def
37443 \begin_inset Quotes erd
37444 \end_inset
37445
37446  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
37447 \end_layout
37448
37449 \begin_layout LyX-Code
37450 <<My chunk>>=
37451 \end_layout
37452
37453 \begin_layout LyX-Code
37454 def some_function(args):
37455 \end_layout
37456
37457 \begin_layout LyX-Code
37458    "This is the doc string for this function."
37459 \end_layout
37460
37461 \begin_layout LyX-Code
37462    print "My args:
37463  ",
37464  args
37465 \end_layout
37466
37467 \begin_layout LyX-Code
37468 @ %def some_function
37469 \end_layout
37470
37471 \begin_layout Standard
37472 For an example of this usage and the resulting cross-reference output,
37473  look at the Literate python program in 
37474 \emph on
37475 LIBDIR/examples/listerrors.lyx
37476 \emph default
37477  which should make this all clear.
37478 \end_layout
37479
37480 \begin_layout Paragraph
37481 Generating the documentation
37482 \end_layout
37483
37484 \begin_layout Standard
37485 At this point you already have a new document file with a proper document class,
37486  and with some code and text on it.
37487  How do I print it?
37488  The answer is simple,
37489  you select 
37490 \family sans
37491 View\SpecialChar menuseparator
37492 DVI,
37493
37494 \family default
37495  etc.
37496  Just like you would do for a plain document.
37497  No special procedure is required.
37498 \end_layout
37499
37500 \begin_layout Standard
37501 To help orientate you,
37502  I will now explain what happens inside \SpecialChar LyX
37503 :
37504 \end_layout
37505
37506 \begin_layout Enumerate
37507 When the 
37508 \family sans
37509 Update\SpecialChar menuseparator
37510 DVI
37511 \family default
37512  menu option is chosen,
37513  a \SpecialChar LaTeX
37514  file is generated.
37515  
37516 \end_layout
37517
37518 \begin_deeper
37519 \begin_layout Standard
37520 If the document is of any literate class the generated file will be named with an extension name defined by the 
37521 \begin_inset Quotes eld
37522 \end_inset
37523
37524 literate
37525 \begin_inset Quotes erd
37526 \end_inset
37527
37528  format (defined in the Preferences panel),
37529  otherwise the file will have the usual 
37530 \family typewriter
37531 .tex
37532 \family default
37533  extension.
37534 \end_layout
37535
37536 \end_deeper
37537 \begin_layout Enumerate
37538 Note that the only difference so far is in the name of the file,
37539  no special processing is required by \SpecialChar LyX
37540 .
37541  Given that you formatted the code using the 
37542 \begin_inset Flex Noun
37543 status collapsed
37544
37545 \begin_layout Plain Layout
37546 Chunk
37547 \end_layout
37548
37549 \end_inset
37550
37551  inset that,
37552  by itself,
37553  takes care of the business.
37554 \end_layout
37555
37556 \begin_layout Enumerate
37557 If the document is of any literate class \SpecialChar LyX
37558  will then use the internal \SpecialChar LyX
37559  to Noweb converter,
37560  followed by the Noweb to \SpecialChar LaTeX
37561  converter
37562 \begin_inset Foot
37563 status collapsed
37564
37565 \begin_layout Plain Layout
37566 The converters are defined in the 
37567 \family sans
37568 Tools\SpecialChar menuseparator
37569 Preferences
37570 \family default
37571  panel,
37572  under the 
37573 \begin_inset Quotes eld
37574 \end_inset
37575
37576 Conversion
37577 \begin_inset Quotes erd
37578 \end_inset
37579
37580  tab.
37581  See section 
37582 \emph on
37583 Converters
37584 \emph default
37585  of the 
37586 \emph on
37587 Customization
37588 \emph default
37589  manual for general information about converters.
37590 \end_layout
37591
37592 \end_inset
37593
37594  to generate the \SpecialChar LaTeX
37595  file.
37596 \end_layout
37597
37598 \begin_deeper
37599 \begin_layout Standard
37600 Otherwise it will just skip this step.
37601 \end_layout
37602
37603 \end_deeper
37604 \begin_layout Enumerate
37605 Finally,
37606  \SpecialChar LaTeX
37607  is invoked and the regular post processing continues as in a plain document.
37608 \end_layout
37609
37610 \begin_layout Standard
37611 Independence from a particular 
37612 \begin_inset Quotes eld
37613 \end_inset
37614
37615 literate tool
37616 \begin_inset Quotes erd
37617 \end_inset
37618
37619  is easily achieved by changing the commands that are run by the various converters.
37620 \end_layout
37621
37622 \begin_layout Paragraph
37623 Generating the code
37624 \end_layout
37625
37626 \begin_layout Standard
37627 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
37628  a \SpecialChar LaTeX
37629  file is generated just like step 1 above.
37630  Next,
37631  \SpecialChar LyX
37632  invokes the 
37633 \family typewriter
37634 Noweb->Program
37635 \family default
37636  converter.
37637  This converter needs to be defined by the user and is not installed by default,
37638  though the Program format is.
37639  This converter (like any other converter) will have two parts:
37640 \end_layout
37641
37642 \begin_layout Enumerate
37643 The converter program itself.
37644  This program performs the conversion from the one format to the other (in this case,
37645  from the Noweb format to the Program pseudo-format).
37646 \end_layout
37647
37648 \begin_layout Enumerate
37649 The error log parser.
37650  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
37651  understands.
37652  This makes it possible for \SpecialChar LyX
37653  to place error boxes in the right places in the file buffer.
37654 \end_layout
37655
37656 \begin_layout Standard
37657 The first part,
37658  the 
37659 \begin_inset Quotes eld
37660 \end_inset
37661
37662 Converter
37663 \begin_inset Quotes erd
37664 \end_inset
37665
37666  setting,
37667  should be set to
37668 \end_layout
37669
37670 \begin_layout LyX-Code
37671
37672 \family typewriter
37673 build-script $$i
37674 \family default
37675  $$r
37676 \end_layout
37677
37678 \begin_layout Standard
37679 This basically means that \SpecialChar LyX
37680  will call 
37681 \begin_inset Quotes eld
37682 \end_inset
37683
37684 build-script
37685 \begin_inset Quotes erd
37686 \end_inset
37687
37688  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
37689  temp directory) and the directory path of the original \SpecialChar LyX
37690  file.
37691  
37692 \end_layout
37693
37694 \begin_layout Standard
37695 This is an implementation of 
37696 \begin_inset Quotes eld
37697 \end_inset
37698
37699 build-script
37700 \begin_inset Quotes erd
37701 \end_inset
37702
37703  that you can place in a directory on your path:
37704 \end_layout
37705
37706 \begin_layout LyX-Code
37707
37708 \family sans
37709 #!/bin/sh
37710 \end_layout
37711
37712 \begin_layout LyX-Code
37713
37714 \family sans
37715 #
37716 \end_layout
37717
37718 \begin_layout LyX-Code
37719
37720 \family sans
37721 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
37722 \end_layout
37723
37724 \begin_layout Standard
37725 The next part of the converter setting is the 
37726 \begin_inset Quotes eld
37727 \end_inset
37728
37729 Flags
37730 \begin_inset Quotes erd
37731 \end_inset
37732
37733  which is to be set to
37734 \end_layout
37735
37736 \begin_layout LyX-Code
37737
37738 \family typewriter
37739 parselog=$$s/scripts/listerrors
37740 \end_layout
37741
37742 \begin_layout Standard
37743 This will run any errors that are generated by the 
37744 \begin_inset Quotes eld
37745 \end_inset
37746
37747 build-script
37748 \begin_inset Quotes erd
37749 \end_inset
37750
37751  process through the 
37752 \begin_inset Quotes eld
37753 \end_inset
37754
37755 listerrors
37756 \begin_inset Quotes erd
37757 \end_inset
37758
37759  program.
37760 \end_layout
37761
37762 \begin_layout Standard
37763 The build will normally take place in \SpecialChar LyX
37764 's temporary directory,
37765  so the files produced by the conversion will be in that directory.
37766  \SpecialChar LyX
37767  will copy out what it regards as the `main' file,
37768  but the 
37769 \family typewriter
37770 Noweb->Program
37771 \family default
37772  conversion may produce several files,
37773  and so most of these would then be deleted when \SpecialChar LyX
37774  was closed.
37775  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.
37776 \end_layout
37777
37778 \begin_layout Paragraph
37779 Build instructions in the document
37780 \end_layout
37781
37782 \begin_layout Standard
37783 The last piece of the integration between \SpecialChar LyX
37784  and noweb is the 
37785 \begin_inset Quotes eld
37786 \end_inset
37787
37788 build-script
37789 \begin_inset Quotes erd
37790 \end_inset
37791
37792  chunk.
37793  Generally,
37794  the instructions for building your program should be embedded in a chunk of its own.
37795  The noweb-specific 
37796 \begin_inset Quotes eld
37797 \end_inset
37798
37799 build-script
37800 \begin_inset Quotes erd
37801 \end_inset
37802
37803  above uses the notangle command to look for this chunk (called 
37804 \begin_inset Quotes eld
37805 \end_inset
37806
37807 build-script
37808 \begin_inset Quotes erd
37809 \end_inset
37810
37811 ) and runs its contents through 
37812 \begin_inset Quotes eld
37813 \end_inset
37814
37815 sh
37816 \begin_inset Quotes erd
37817 \end_inset
37818
37819 .
37820 \end_layout
37821
37822 \begin_layout Standard
37823 Typically,
37824  such a chunk would look something like this:
37825 \end_layout
37826
37827 \begin_layout LyX-Code
37828 <<build-script>>=
37829 \end_layout
37830
37831 \begin_layout LyX-Code
37832 #!/bin/sh
37833 \begin_inset Newline newline
37834 \end_inset
37835
37836 if [ -z "${NOWEB_SOURCE}" ]
37837 \begin_inset Newline newline
37838 \end_inset
37839
37840 then
37841 \end_layout
37842
37843 \begin_layout LyX-Code
37844 NOWEB_SOURCE=myfile.nw
37845 \begin_inset Newline newline
37846 \end_inset
37847
37848 fi
37849 \begin_inset Newline newline
37850 \end_inset
37851
37852 [...
37853  code to extract files ...
37854  use NOWEB_OUTPUT_DIR here ...]
37855 \begin_inset Newline newline
37856 \end_inset
37857
37858 [...
37859  code to compile files ...]
37860 \begin_inset Newline newline
37861 \end_inset
37862
37863 @
37864 \end_layout
37865
37866 \begin_layout Standard
37867 Look in 
37868 \change_deleted 564990737 1672161716
37869
37870 \emph on
37871 LIBDIR/examples/listerrors.lyx
37872 \emph default
37873  or in 
37874 \emph on
37875 LIBDIR/examples/Literate.lyx
37876 \change_inserted 564990737 1672161716
37877
37878 \family sans
37879 \emph default
37880 \lang american
37881 File\SpecialChar menuseparator
37882 Open Example\SpecialChar menuseparator
37883 Modules\SpecialChar menuseparator
37884 Noweb Listerrors
37885 \change_unchanged
37886
37887 \family default
37888 \lang english
37889  which implement 
37890 \change_deleted 564990737 1672161729
37891 two 
37892 \change_unchanged
37893 versions of the 
37894 \begin_inset Quotes eld
37895 \end_inset
37896
37897 listerrors
37898 \begin_inset Quotes erd
37899 \end_inset
37900
37901  program for some illustrations of how all of these pieces go together or in 
37902 \change_deleted 564990737 1672161756
37903
37904 \emph on
37905 LIBDIR/examples/noweb2lyx.lyx
37906 \change_inserted 564990737 1672161756
37907
37908 \family sans
37909 \emph default
37910 \lang american
37911 File\SpecialChar menuseparator
37912 Open Example\SpecialChar menuseparator
37913 Modules\SpecialChar menuseparator
37914 Noweb2\SpecialChar LyX
37915
37916 \change_unchanged
37917
37918 \family default
37919 \emph on
37920 \lang english
37921 .
37922
37923 \emph default
37924  Interestingly,
37925  these 
37926 \change_deleted 564990737 1672161767
37927 three 
37928 \change_unchanged
37929 files show off the language-indepence of the \SpecialChar LyX
37930  literate programming support since they are written in Python
37931 \change_deleted 564990737 1672161782
37932 ,
37933  C
37934 \change_unchanged
37935  and Perl respectively.
37936 \end_layout
37937
37938 \begin_layout Subsubsection
37939 Configuring \SpecialChar LyX
37940
37941 \end_layout
37942
37943 \begin_layout Standard
37944 All the Literate Programming support is configured by the 
37945 \family sans
37946 Tools\SpecialChar menuseparator
37947 Preferences
37948 \family default
37949  panel in the 
37950 \begin_inset Quotes eld
37951 \end_inset
37952
37953 File Handling
37954 \begin_inset Quotes erd
37955 \end_inset
37956
37957  tab.
37958  The important parts are:
37959 \end_layout
37960
37961 \begin_layout Description
37962 the
37963 \begin_inset space ~
37964 \end_inset
37965
37966
37967 \begin_inset Quotes eld
37968 \end_inset
37969
37970 NoWeb
37971 \begin_inset Quotes erd
37972 \end_inset
37973
37974
37975 \begin_inset space ~
37976 \end_inset
37977
37978 format Set up via the File Formats tab,
37979  this is where the Noweb-specific pieces are set up.
37980  The 
37981 \family sans
37982 GUI Name
37983 \family default
37984  is set to 
37985 \family typewriter
37986 NoWeb
37987 \family default
37988 ,
37989  the file extension is set to 
37990 \family typewriter
37991 .nw
37992 \family default
37993 .
37994  This tells \SpecialChar LyX
37995  to create a file with a 
37996 \family typewriter
37997 .nw
37998 \family default
37999  extension in the first step of the conversion process.
38000 \end_layout
38001
38002 \begin_layout Description
38003 the
38004 \begin_inset space ~
38005 \end_inset
38006
38007
38008 \family sans
38009 Program
38010 \family default
38011
38012 \begin_inset space ~
38013 \end_inset
38014
38015 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).
38016 \end_layout
38017
38018 \begin_layout Description
38019
38020 \family sans
38021 NoWeb
38022 \family default
38023 ->
38024 \family sans
38025 \SpecialChar LaTeX
38026
38027 \family default
38028  This converter performs the 
38029 \begin_inset Quotes eld
38030 \end_inset
38031
38032 weaving
38033 \begin_inset Quotes erd
38034 \end_inset
38035
38036  of the literate document.
38037  For Noweb,
38038  it is set to 
38039 \begin_inset Quotes eld
38040 \end_inset
38041
38042
38043 \family typewriter
38044 noweave -delay -index $$i > $$o
38045 \family default
38046
38047 \begin_inset Quotes erd
38048 \end_inset
38049
38050
38051 \end_layout
38052
38053 \begin_layout Description
38054
38055 \family sans
38056 NoWeb
38057 \family default
38058 ->
38059 \family sans
38060 Program
38061 \family default
38062  This performs the 
38063 \begin_inset Quotes eld
38064 \end_inset
38065
38066 tangling step
38067 \begin_inset Quotes erd
38068 \end_inset
38069
38070 .
38071  As stated above,
38072  the Converter is set to 
38073 \begin_inset Quotes eld
38074 \end_inset
38075
38076
38077 \family typewriter
38078 build-script $$i
38079 \family default
38080  $$r
38081 \begin_inset Quotes erd
38082 \end_inset
38083
38084 ,
38085  with Flags set to
38086 \begin_inset Newline newline
38087 \end_inset
38088
38089
38090 \begin_inset Quotes eld
38091 \end_inset
38092
38093
38094 \family typewriter
38095 parselog=$$s/scripts/listerrors
38096 \family default
38097
38098 \begin_inset Quotes erd
38099 \end_inset
38100
38101 .
38102 \end_layout
38103
38104 \begin_layout Subsubsection
38105 Debug extensions
38106 \end_layout
38107
38108 \begin_layout Standard
38109 There is also a new function implemented in the \SpecialChar LyX
38110  server,
38111  the 
38112 \begin_inset Quotes eld
38113 \end_inset
38114
38115 server-goto-file-row" function,
38116  to be used with ddd/gdb or other debugger.
38117  
38118 \end_layout
38119
38120 \begin_layout Standard
38121 When debugging code with ddd/gdb,
38122  it is possible to invoke a text editor at the current execution position with a single key stroke.
38123  The default ddd configuration for that is shift-ctrl-V.
38124  It happens that you can define the editor command line invocation in ddd by accessing the 
38125 \family sans
38126 Edit\SpecialChar menuseparator
38127 Preferences\SpecialChar menuseparator
38128 Helpers
38129 \family default
38130  dialog and changing the "Edit Sources" entry.
38131 \end_layout
38132
38133 \begin_layout Standard
38134 I take advantage of the newly created \SpecialChar LyX
38135  server function and this ddd feature,
38136  and set 
38137 \begin_inset Quotes eld
38138 \end_inset
38139
38140 Edit Sources
38141 \begin_inset Quotes erd
38142 \end_inset
38143
38144  to:
38145 \end_layout
38146
38147 \begin_layout LyX-Code
38148 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
38149 \end_layout
38150
38151 \begin_layout Standard
38152 With this,
38153  whenever you are using ddd and find a point in the program that you want to edit,
38154  you just press shift-ctrl-V (in the ddd window),
38155  and ddd will forward this information to \SpecialChar LyX
38156  through the \SpecialChar LyX
38157  server and then the \SpecialChar LyX
38158  window will show the same file with the cursor at the same position ddd was pointing to.
38159  No more guessing or long scrolling to locate a point in the program back from debugging !
38160 \end_layout
38161
38162 \begin_layout Standard
38163 Note however that you must enable the \SpecialChar LyX
38164  server to get this feature working (it is disabled by default).
38165  Sec.
38166 \begin_inset space ~
38167 \end_inset
38168
38169
38170 \begin_inset CommandInset ref
38171 LatexCommand ref
38172 reference "sec:Starting-the-Server"
38173 nolink "false"
38174
38175 \end_inset
38176
38177  explains how to do that.
38178 \end_layout
38179
38180 \begin_layout Subsubsection
38181 Toolbar extensions
38182 \end_layout
38183
38184 \begin_layout Standard
38185 There are six new buttons that can be added to your \SpecialChar LyX
38186  toolbar.
38187  Four of these buttons are short cuts to layout styles:
38188  
38189 \family sans
38190 Standard
38191 \family default
38192 ,
38193  
38194 \family sans
38195 Section
38196 \family default
38197 ,
38198  
38199 \family sans
38200 \SpecialChar LaTeX
38201
38202 \family default
38203 ,
38204  and 
38205 \family sans
38206 \SpecialChar LyX
38207 -Code
38208 \family default
38209 ,
38210  one for the custom inset 
38211 \family sans
38212 Chunk
38213 \family default
38214 .
38215  The last one is a short cut to the 
38216 \begin_inset Quotes eld
38217 \end_inset
38218
38219 Build Program
38220 \begin_inset Quotes erd
38221 \end_inset
38222
38223  File menu entry.
38224  
38225 \end_layout
38226
38227 \begin_layout Standard
38228 \SpecialChar LyX
38229  has a range of buttons that are available for tool bar customization.
38230  In my toolbar I like to combine the six short cuts above with two more:
38231  One for 
38232 \family sans
38233 Document
38234 \family default
38235 \SpecialChar menuseparator
38236
38237 \family sans
38238 Update
38239 \family default
38240 \SpecialChar menuseparator
38241
38242 \family sans
38243 DVI
38244 \family default
38245  and the other for 
38246 \family sans
38247 Document\SpecialChar menuseparator
38248 View\SpecialChar menuseparator
38249 DVI
38250 \family default
38251  File menu entries.
38252  Here is how it looks like:
38253 \end_layout
38254
38255 \begin_layout LyX-Code
38256 Toolbar
38257 \end_layout
38258
38259 \begin_layout LyX-Code
38260   Layouts
38261 \end_layout
38262
38263 \begin_layout LyX-Code
38264   Icon "layout Standard"
38265 \end_layout
38266
38267 \begin_layout LyX-Code
38268   Icon "layout Section"
38269 \end_layout
38270
38271 \begin_layout LyX-Code
38272   Icon "layout \SpecialChar LaTeX
38273 "
38274 \end_layout
38275
38276 \begin_layout LyX-Code
38277   Icon "layout \SpecialChar LyX
38278 -Code"
38279 \end_layout
38280
38281 \begin_layout LyX-Code
38282   Icon "flex.insert Chunk"
38283 \end_layout
38284
38285 \begin_layout LyX-Code
38286   Separator
38287 \end_layout
38288
38289 \begin_layout LyX-Code
38290   Icon "buffer-view"
38291 \end_layout
38292
38293 \begin_layout LyX-Code
38294   Icon "buffer-typeset"
38295 \end_layout
38296
38297 \begin_layout LyX-Code
38298   Icon "build-program"
38299 \end_layout
38300
38301 \begin_layout LyX-Code
38302   Separator
38303 \end_layout
38304
38305 \begin_layout LyX-Code
38306 .
38307 \end_layout
38308
38309 \begin_layout LyX-Code
38310 .
38311 \end_layout
38312
38313 \begin_layout LyX-Code
38314 .
38315 \end_layout
38316
38317 \begin_layout LyX-Code
38318 End
38319 \end_layout
38320
38321 \begin_layout Subsubsection
38322 Colors customization
38323 \end_layout
38324
38325 \begin_layout Standard
38326 There are a number of colors in \SpecialChar LyX
38327  that can be customized in 
38328 \family sans
38329 Preferences
38330 \family default
38331 .
38332  One of the things that bothers people is the \SpecialChar LaTeX
38333  font color.
38334  The default color is red,
38335  since the chunks uses \SpecialChar LaTeX
38336  font,
38337  and there is a lot of chunks in literate documents,
38338  you may get tired of seeing everything in red.
38339  You can change it by going to the tabs 
38340 \family sans
38341 Look&Feel
38342 \family default
38343 ,
38344  
38345 \family sans
38346 Colors.
38347 \end_layout
38348
38349 \begin_layout Standard
38350 The next thing is the visible presence of the newline character in the screen.
38351  You can choose the color of this particular character and make it blend in the background.
38352  I recommend you choosing a color that is close to the background but not equal,
38353  that way you still can see it is there,
38354  but it is not bothering you anymore.
38355 \end_layout
38356
38357 \begin_layout Subsection
38358 \SpecialChar LyX
38359  and knitr/Sweave
38360 \end_layout
38361
38362 \begin_layout Standard
38363 Support for 
38364 \family sans
38365 knitr
38366 \family default
38367  and 
38368 \family sans
38369 Sweave
38370 \family default
38371  is documented in
38372 \change_inserted 564990737 1672161863
38373  
38374 \family sans
38375 \lang american
38376 Help\SpecialChar menuseparator
38377 Specific Manuals\SpecialChar menuseparator
38378 Knitr
38379 \family default
38380  and
38381 \change_unchanged
38382
38383 \lang english
38384  
38385 \change_deleted 564990737 1671643409
38386 the 
38387 \emph on
38388 knitr.lyx
38389 \emph default
38390  example file
38391 \change_inserted 564990737 1672161856
38392
38393 \family sans
38394 \lang british
38395 File\SpecialChar menuseparator
38396 Open Example\SpecialChar menuseparator
38397 Modules\SpecialChar menuseparator
38398 Rnw (knitr)
38399 \change_unchanged
38400
38401 \family default
38402 \lang english
38403  and in 
38404 \change_deleted 564990737 1671643461
38405 the Sweave manual (menu 
38406 \family sans
38407 Help\SpecialChar menuseparator
38408 Specific Manuals
38409 \family default
38410 )
38411 \change_inserted 564990737 1672161856
38412
38413 \family sans
38414 \lang british
38415 Help\SpecialChar menuseparator
38416 Specific Manuals\SpecialChar menuseparator
38417 Sweave
38418 \change_deleted 564990737 1672161921
38419
38420 \family default
38421 \lang english
38422 .
38423
38424 \change_inserted 564990737 1672161917
38425  and 
38426 \family sans
38427 \lang american
38428 File\SpecialChar menuseparator
38429 Open Example\SpecialChar menuseparator
38430 Modules\SpecialChar menuseparator
38431 Sweave
38432 \family default
38433 .
38434 \change_deleted 564990737 1672742969
38435
38436 \end_layout
38437
38438 \begin_layout Standard
38439
38440 \change_deleted 564990737 1671355343
38441 Special features
38442 \end_layout
38443
38444 \begin_layout Standard
38445
38446 \change_deleted 564990737 1671355343
38447 You can do everything with \SpecialChar LyX
38448  that you can do with \SpecialChar LaTeX
38449 .
38450  However,
38451  \SpecialChar LyX
38452  cannot support every \SpecialChar LaTeX
38453  feature directly.
38454  But you can always use \SpecialChar TeX
38455  Code.
38456  This chapter shows you some more special things you might want to use.
38457  For other special things you can do with figures,
38458  tables,
38459  floats,
38460  boxes and notes,
38461  have a look at the 
38462 \emph on
38463 Embedded
38464 \begin_inset space ~
38465 \end_inset
38466
38467 Objects
38468 \emph default
38469  manual.
38470 \change_unchanged
38471
38472 \end_layout
38473
38474 \end_body
38475 \end_document