]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
ja docs: restore \font_typewriter to IPAGothic
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 620
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_formatted_ref 0
109 \use_minted 0
110 \use_lineno 0
111 \notefontcolor #0000ff
112 \index Index
113 \shortcut idx
114 \color #008000
115 \end_index
116 \secnumdepth 3
117 \tocdepth 3
118 \paragraph_separation indent
119 \paragraph_indentation default
120 \is_math_indent 1
121 \math_indentation default
122 \math_numbering_side default
123 \quotes_style english
124 \dynamic_quotes 0
125 \papercolumns 1
126 \papersides 2
127 \paperpagestyle headings
128 \tablestyle default
129 \tracking_changes true
130 \output_changes false
131 \change_bars false
132 \postpone_fragile_content false
133 \html_math_output 0
134 \html_css_as_file 0
135 \html_be_strict true
136 \docbook_table_output 0
137 \docbook_mathml_prefix 1
138 \author -712698321 "Jürgen Spitzmüller"
139 \author 177693 "x"
140 \author 5863208 "ab"
141 \author 244031559 "Yuriy"
142 \author 274215730 "scott"
143 \author 545138413 "Koji Yokota" yokota6@gmail.com
144 \author 564990737 "John Lyx"
145 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
146 \author 1075283030 "Thibaut"
147 \author 1119979965 "Joel A. Kulesza"
148 \end_header
149
150 \begin_body
151
152 \begin_layout Title
153 Additional \SpecialChar LyX
154  Features
155 \end_layout
156
157 \begin_layout Subtitle
158 Version 2.
159 \change_deleted 630872221 1622909155
160 3
161 \change_inserted 630872221 1622909155
162 4
163 \change_unchanged
164 .x
165 \end_layout
166
167 \begin_layout Author
168 by the \SpecialChar LyX
169  Team
170 \begin_inset Foot
171 status collapsed
172
173 \begin_layout Plain Layout
174 \noindent
175 Principal maintainer of this file is
176 \noun on
177  Richard Kimberly Heck
178 \noun default
179 .
180  If you have comments or error corrections,
181  please send them to the \SpecialChar LyX
182  Documentation mailing list,
183  
184 \begin_inset Flex Code
185 status collapsed
186
187 \begin_layout Plain Layout
188 <lyx-docs@lists.lyx.org>
189 \end_layout
190
191 \end_inset
192
193 .
194 \end_layout
195
196 \end_inset
197
198
199 \end_layout
200
201 \begin_layout Standard
202 \begin_inset CommandInset toc
203 LatexCommand tableofcontents
204
205 \end_inset
206
207
208 \end_layout
209
210 \begin_layout Standard
211
212 \change_inserted 5863208 1672865652
213 \begin_inset Note Note
214 status open
215
216 \begin_layout Plain Layout
217
218 \change_inserted 5863208 1672865674
219 Note to all translators:
220 \end_layout
221
222 \begin_layout Plain Layout
223
224 \change_inserted 5863208 1672865817
225 This manual was restructured for LyX 2.4.
226  Attached are notes for translators to help them to find their way round the new structure of Additional.lyx.
227  This note itself will be deleted in the final 2.4 release.
228 \begin_inset Newline newline
229 \end_inset
230
231
232 \end_layout
233
234 \begin_layout Plain Layout
235
236 \change_inserted 5863208 1672865801
237
238 \series bold
239 Additional.lyx 2.4 Changes
240 \end_layout
241
242 \begin_layout Itemize
243
244 \change_inserted 5863208 1672865801
245 Chapter 1:
246  none
247 \end_layout
248
249 \begin_layout Itemize
250
251 \change_inserted 5863208 1672865801
252 Chapter 2:
253  none
254 \end_layout
255
256 \begin_layout Itemize
257
258 \change_inserted 5863208 1672865801
259 Chapter 3:
260  Document classes:
261  new chapter
262 \end_layout
263
264 \begin_deeper
265 \begin_layout Itemize
266
267 \change_inserted 5863208 1672865801
268 AMS LaTeX:
269  moved and minor edits
270 \end_layout
271
272 \begin_layout Itemize
273
274 \change_inserted 5863208 1672865801
275 Extra font styles:
276  new
277 \end_layout
278
279 \begin_layout Itemize
280
281 \change_inserted 5863208 1672865801
282 Hebrew:
283  new
284 \end_layout
285
286 \begin_layout Itemize
287
288 \change_inserted 5863208 1672865801
289 Japanese:
290  new
291 \end_layout
292
293 \begin_layout Itemize
294
295 \change_inserted 5863208 1672865801
296 KOMA-Script:
297  moved and significant edits
298 \end_layout
299
300 \begin_layout Itemize
301
302 \change_inserted 5863208 1672865801
303 Polish:
304  moved and minor edit
305 \end_layout
306
307 \begin_layout Itemize
308
309 \change_inserted 5863208 1672865801
310 Tufte:
311  new
312 \end_layout
313
314 \begin_layout Itemize
315
316 \change_inserted 5863208 1672865801
317 A&A Paper:
318  moved and minor edits
319 \end_layout
320
321 \begin_layout Itemize
322
323 \change_inserted 5863208 1672865801
324 AASTeX:
325  moved
326 \end_layout
327
328 \begin_layout Itemize
329
330 \change_inserted 5863208 1672865801
331 Chess:
332  new
333 \end_layout
334
335 \begin_layout Itemize
336
337 \change_inserted 5863208 1672865801
338 Elsevier:
339  new
340 \end_layout
341
342 \begin_layout Itemize
343
344 \change_inserted 5863208 1672865801
345 Paper:
346  new
347 \end_layout
348
349 \begin_layout Itemize
350
351 \change_inserted 5863208 1672865824
352 RevTeX:
353  moved
354 \end_layout
355
356 \begin_layout Itemize
357
358 \change_inserted 5863208 1672865831
359 Springer:
360  new
361 \end_layout
362
363 \begin_layout Itemize
364
365 \change_inserted 5863208 1672865831
366 Memoir:
367  moved
368 \end_layout
369
370 \begin_layout Itemize
371
372 \change_inserted 5863208 1672865831
373 Recipe Book:
374  new
375 \end_layout
376
377 \begin_layout Itemize
378
379 \change_inserted 5863208 1672865831
380 Curricula vitae:
381  all new
382 \end_layout
383
384 \begin_layout Itemize
385
386 \change_inserted 5863208 1672865831
387 Letters:
388  all new
389 \end_layout
390
391 \begin_layout Itemize
392
393 \change_inserted 5863208 1672865831
394 Beamer:
395  new
396 \end_layout
397
398 \begin_layout Itemize
399
400 \change_inserted 5863208 1672865831
401 Foils:
402  moved with minor edits
403 \end_layout
404
405 \begin_layout Itemize
406
407 \change_inserted 5863208 1672865831
408 Powerdot:
409  new
410 \end_layout
411
412 \begin_layout Itemize
413
414 \change_inserted 5863208 1672865831
415 Seminar:
416  new
417 \end_layout
418
419 \begin_layout Itemize
420
421 \change_inserted 5863208 1672865831
422 Slides:
423  moved with minor edits
424 \end_layout
425
426 \begin_layout Itemize
427
428 \change_inserted 5863208 1672865831
429 Reports:
430  new
431 \end_layout
432
433 \begin_layout Itemize
434
435 \change_inserted 5863208 1672865831
436 Broadway:
437  moved
438 \end_layout
439
440 \begin_layout Itemize
441
442 \change_inserted 5863208 1672865831
443 Hollywood:
444  moved
445 \end_layout
446
447 \begin_layout Itemize
448
449 \change_inserted 5863208 1672865831
450 (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.)
451 \end_layout
452
453 \end_deeper
454 \begin_layout Itemize
455
456 \change_inserted 5863208 1672865831
457 Chapter 4:
458  Modules:
459  new chapter
460 \end_layout
461
462 \begin_deeper
463 \begin_layout Itemize
464
465 \change_inserted 5863208 1672865831
466 All module descriptions new except:
467 \end_layout
468
469 \begin_layout Itemize
470
471 \change_inserted 5863208 1672865831
472 Customizable lists:
473  moved with minor edits
474 \end_layout
475
476 \begin_layout Itemize
477
478 \change_inserted 5863208 1672865831
479 Custom header/footer text:
480  moved with minor edits
481 \end_layout
482
483 \begin_layout Itemize
484
485 \change_inserted 5863208 1672865831
486 Multiple columns:
487  moved with minor edits
488 \end_layout
489
490 \begin_layout Itemize
491
492 \change_inserted 5863208 1672865831
493 Custom paragraph shapes:
494  moved with minor edits
495 \end_layout
496
497 \begin_layout Itemize
498
499 \change_inserted 5863208 1672865831
500 Initials:
501  moved with minor edits
502 \end_layout
503
504 \end_deeper
505 \begin_layout Itemize
506
507 \change_inserted 5863208 1672865831
508 Chapter 5:
509  Bibliography:
510  new chapter
511 \end_layout
512
513 \begin_deeper
514 \begin_layout Itemize
515
516 \change_inserted 5863208 1672865831
517 Content moved but unchanged
518 \end_layout
519
520 \end_deeper
521 \begin_layout Itemize
522
523 \change_inserted 5863208 1672865831
524 Chapter 6:
525  Bullets:
526  new chapter
527 \end_layout
528
529 \begin_deeper
530 \begin_layout Itemize
531
532 \change_inserted 5863208 1672865845
533 Content moved but unchanged
534 \end_layout
535
536 \end_deeper
537 \begin_layout Itemize
538
539 \change_inserted 5863208 1672865845
540 Chapter 9:
541  DocBook output:
542  new chapter and content
543 \end_layout
544
545 \begin_layout Itemize
546
547 \change_inserted 5863208 1672865845
548 All other chapters unchanged but renumbered except:
549 \end_layout
550
551 \begin_layout Itemize
552
553 \change_inserted 5863208 1672865845
554 section 11.3 Literate programming:
555  minor edits
556 \change_unchanged
557
558 \end_layout
559
560 \end_inset
561
562
563 \end_layout
564
565 \begin_layout Chapter
566 Introduction
567 \end_layout
568
569 \begin_layout Standard
570 This manual is essentially Part II of the 
571 \emph on
572 User's Guide\SpecialChar endofsentence
573
574 \emph default
575  The reason for separating the two documents is simple:
576  the 
577 \emph on
578 User's Guide
579 \emph default
580  is already quite lengthy,
581  and it contains information on all of the basic features one needs to know in order to prepare most documents.
582  However,
583  the \SpecialChar LyX
584  Team has worked to make \SpecialChar LyX
585  extensible through various configuration files and external packages.
586  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
587  package,
588  you can create a layout file (or module) for it without having to alter \SpecialChar LyX
589  itself.
590  We've already had contributions of several new features this way,
591  and some of them are documented here.
592  There are also some more `advanced' features,
593  such as how to control the presentation of bibliographies and how to work with multi-part documents,
594  that are not covered in the 
595 \emph on
596 User's Guide
597 \emph default
598  and are discussed here.
599 \end_layout
600
601 \begin_layout Standard
602 This manual also documents some special features,
603  like fax support
604 \change_deleted 244031559 1603802929
605 ,
606
607 \change_inserted 244031559 1603802931
608  and
609 \change_unchanged
610  version control
611 \change_deleted 244031559 1603802954
612 ,
613  and SGML support
614 \change_unchanged
615 ,
616  which require additional software to work properly.
617  There is also a chapter on \SpecialChar LyX
618 's support for HTML.
619  And lastly,
620  there's a chapter of \SpecialChar LaTeX
621  tools and tips,
622  things you can use to spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
623 .
624  After all,
625  \SpecialChar LyX
626  
627 \emph on
628 is
629 \emph default
630  only WYSIWYM and will only ever interface to some,
631  not all,
632  \SpecialChar LaTeX
633  features.
634 \end_layout
635
636 \begin_layout Standard
637 If you haven't read the 
638 \emph on
639 Introduction
640 \emph default
641  yet,
642  you are definitely in the wrong manual.
643  The 
644 \emph on
645 Introduction
646 \emph default
647  is the first place to go,
648  since it describes the notation and format of all of the manuals.
649  You should also be thoroughly familiar with the 
650 \emph on
651 User's Guide
652 \emph default
653  and all of the basic features of \SpecialChar LyX
654  before attempting to read this one.
655 \end_layout
656
657 \begin_layout Standard
658 Since many of the topics in this manual depend heavily on \SpecialChar LyX
659 's interaction with \SpecialChar LaTeX
660 ,
661  this first chapter covers the inner workings of \SpecialChar LyX
662  and how to direct \SpecialChar LyX
663  to generate exactly the \SpecialChar LaTeX
664  code you want.
665  It is obviously for more seasoned \SpecialChar LyX
666  users.
667 \end_layout
668
669 \begin_layout Chapter
670 \SpecialChar LyX
671  and \SpecialChar LaTeX
672
673 \end_layout
674
675 \begin_layout Section
676 How \SpecialChar LyX
677  Uses \SpecialChar LaTeX
678
679 \end_layout
680
681 \begin_layout Standard
682 This chapter is for both \SpecialChar TeX
683 -nicians and the \SpecialChar LaTeX
684 -curious.
685  In it,
686  we'll explain how \SpecialChar LyX
687  and \SpecialChar LaTeX
688  work together to produce printable output.
689  This is the only place in any of the manuals where we assume you know something about \SpecialChar LaTeX
690 .
691 \end_layout
692
693 \begin_layout Standard
694 At one time,
695  \SpecialChar LyX
696  was called a 
697 \begin_inset Quotes eld
698 \end_inset
699
700 WYSIWYM frontend to \SpecialChar LaTeX
701 ,
702 \begin_inset Quotes erd
703 \end_inset
704
705  but that's no longer true.
706  There are frontends to \SpecialChar LaTeX
707  out there.
708 \begin_inset Foot
709 status collapsed
710
711 \begin_layout Plain Layout
712 Some familar ones are \SpecialChar TeX
713 maker and kile,
714  on Linux,
715  and \SpecialChar TeX
716 shop,
717  OSX.
718  There are also the \SpecialChar LaTeX
719  modes for vi and emacs,
720  of course.
721 \end_layout
722
723 \end_inset
724
725  These are basically text editors with the ability to run \SpecialChar LaTeX
726  and mark any errors in the file you're editing.
727  Although \SpecialChar LyX
728  
729 \emph on
730 is
731 \emph default
732  an editor,
733  and it 
734 \emph on
735 does
736 \emph default
737  run \SpecialChar LaTeX
738 ,
739  and it also indicates errors in the file,
740  it also does much,
741  much more.
742  For one thing,
743  you don't need to know \SpecialChar LaTeX
744  to use \SpecialChar LyX
745  effectively.
746  And \SpecialChar LyX
747  has added its own extensions to \SpecialChar LaTeX
748 .
749  Try the following sometime:
750  select 
751 \change_deleted -712698321 1674917358
752
753 \family sans
754
755 \begin_inset Flex Noun
756 status collapsed
757
758 \begin_layout Plain Layout
759
760 \noun off
761 Export\SpecialChar menuseparator
762 LaTeX
763 \end_layout
764
765 \end_inset
766
767
768 \change_inserted -712698321 1674917358
769 Export\SpecialChar menuseparator
770 LaTeX
771 \change_unchanged
772
773 \family default
774  from the 
775 \change_deleted -712698321 1674917366
776
777 \begin_inset Flex Noun
778 status collapsed
779
780 \begin_layout Plain Layout
781 File
782 \end_layout
783
784 \end_inset
785
786
787 \change_inserted -712698321 1674917366
788
789 \family sans
790 File
791 \change_unchanged
792
793 \family default
794  menu (or 
795 \change_deleted -712698321 1674917371
796
797 \begin_inset Flex Noun
798 status collapsed
799
800 \begin_layout Plain Layout
801 View\SpecialChar menuseparator
802 Source
803 \begin_inset space ~
804 \end_inset
805
806 Pane
807 \end_layout
808
809 \end_inset
810
811
812 \change_inserted -712698321 1674917371
813
814 \family sans
815 View\SpecialChar menuseparator
816 Source
817 \begin_inset space ~
818 \end_inset
819
820 Pane
821 \change_unchanged
822
823 \family default
824 ),
825  then look at the preamble of the resulting 
826 \begin_inset Flex Code
827 status collapsed
828
829 \begin_layout Plain Layout
830 .tex
831 \end_layout
832
833 \end_inset
834
835  file.
836  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
837 .
838  These macros are defined automatically,
839  according to the features you use in the document.
840 \end_layout
841
842 \begin_layout Standard
843 There are several commands that automatically invoke \SpecialChar LaTeX
844 .
845  They are:
846 \end_layout
847
848 \begin_layout Itemize
849
850 \change_deleted -712698321 1674917379
851 \begin_inset Flex Noun
852 status collapsed
853
854 \begin_layout Plain Layout
855 Document\SpecialChar menuseparator
856 View
857 \end_layout
858
859 \end_inset
860
861
862 \change_inserted -712698321 1674917379
863
864 \family sans
865 Document\SpecialChar menuseparator
866 View
867 \change_unchanged
868
869 \end_layout
870
871 \begin_layout Itemize
872
873 \change_deleted -712698321 1674917381
874 \begin_inset Flex Noun
875 status collapsed
876
877 \begin_layout Plain Layout
878 Document\SpecialChar menuseparator
879 Update
880 \end_layout
881
882 \end_inset
883
884
885 \change_inserted -712698321 1674917381
886
887 \family sans
888 Document\SpecialChar menuseparator
889 Update
890 \change_unchanged
891
892 \end_layout
893
894 \begin_layout Standard
895 They will only invoke \SpecialChar LaTeX
896  if the file has changed since the last time \SpecialChar LaTeX
897  was run.
898  
899 \end_layout
900
901 \begin_layout Standard
902 When \SpecialChar LyX
903  runs \SpecialChar LaTeX
904  on the file you're editing,
905  it performs these steps:
906 \end_layout
907
908 \begin_layout Enumerate
909 Convert the document to \SpecialChar LaTeX
910  and save to a file with the extension 
911 \begin_inset Flex Code
912 status collapsed
913
914 \begin_layout Plain Layout
915 .tex
916 \end_layout
917
918 \end_inset
919
920  in place of 
921 \begin_inset Flex Code
922 status collapsed
923
924 \begin_layout Plain Layout
925 .lyx
926 \end_layout
927
928 \end_inset
929
930 .
931 \end_layout
932
933 \begin_layout Enumerate
934 Run \SpecialChar LaTeX
935  on the 
936 \begin_inset Flex Code
937 status collapsed
938
939 \begin_layout Plain Layout
940 .tex
941 \end_layout
942
943 \end_inset
944
945  file (maybe several times),
946  and run any other commands (such as 
947 \begin_inset Flex Code
948 status collapsed
949
950 \begin_layout Plain Layout
951 bibtex
952 \end_layout
953
954 \end_inset
955
956  or 
957 \begin_inset Flex Code
958 status collapsed
959
960 \begin_layout Plain Layout
961 makeindex
962 \end_layout
963
964 \end_inset
965
966 ) needed to compile the \SpecialChar LaTeX
967  file.
968 \end_layout
969
970 \begin_layout Enumerate
971 If there are any errors,
972  show the error log.
973 \end_layout
974
975 \begin_layout Standard
976 If you have run \SpecialChar LaTeX
977  using 
978 \change_deleted -712698321 1674917394
979
980 \begin_inset Flex Noun
981 status collapsed
982
983 \begin_layout Plain Layout
984 View\SpecialChar menuseparator
985 DVI
986 \end_layout
987
988 \end_inset
989
990
991 \change_inserted -712698321 1674917394
992
993 \family sans
994 View\SpecialChar menuseparator
995 DVI
996 \change_unchanged
997
998 \family default
999 ,
1000  \SpecialChar LyX
1001  then runs a DVI viewer to display the DVI-file.
1002  If you have used 
1003 \change_deleted -712698321 1674917400
1004
1005 \begin_inset Flex Noun
1006 status collapsed
1007
1008 \begin_layout Plain Layout
1009 View\SpecialChar menuseparator
1010 PostScript
1011 \end_layout
1012
1013 \end_inset
1014
1015
1016 \change_inserted -712698321 1674917400
1017
1018 \family sans
1019 View\SpecialChar menuseparator
1020 PostScript
1021 \change_unchanged
1022
1023 \family default
1024 ,
1025  \SpecialChar LyX
1026  performs further steps:
1027 \end_layout
1028
1029 \begin_layout Enumerate
1030 Run 
1031 \begin_inset Flex Code
1032 status collapsed
1033
1034 \begin_layout Plain Layout
1035 dvips
1036 \end_layout
1037
1038 \end_inset
1039
1040  to convert the DVI file to PostScript.
1041 \end_layout
1042
1043 \begin_layout Enumerate
1044 Run a PostScript viewer,
1045  such as 
1046 \begin_inset Flex Code
1047 status collapsed
1048
1049 \begin_layout Plain Layout
1050 ghostview
1051 \end_layout
1052
1053 \end_inset
1054
1055 ,
1056  to display the PostScript file.
1057 \end_layout
1058
1059 \begin_layout Standard
1060 \SpecialChar LyX
1061  does similar things when viewing,
1062  or exporting,
1063  other formats.
1064 \end_layout
1065
1066 \begin_layout Section
1067 Translating \SpecialChar LaTeX
1068  files into \SpecialChar LyX
1069
1070 \end_layout
1071
1072 \begin_layout Standard
1073 You can import a \SpecialChar LaTeX
1074  file into \SpecialChar LyX
1075  by using the 
1076 \change_deleted -712698321 1674917408
1077
1078 \begin_inset Flex Noun
1079 status collapsed
1080
1081 \begin_layout Plain Layout
1082 File\SpecialChar menuseparator
1083 Import\SpecialChar menuseparator
1084 LaTeX
1085 \end_layout
1086
1087 \end_inset
1088
1089
1090 \change_inserted -712698321 1674917408
1091
1092 \family sans
1093 File\SpecialChar menuseparator
1094 Import\SpecialChar menuseparator
1095 LaTeX
1096 \change_unchanged
1097
1098 \family default
1099  command in \SpecialChar LyX
1100 .
1101  This will call a program named 
1102 \begin_inset Flex Code
1103 status collapsed
1104
1105 \begin_layout Plain Layout
1106 tex2lyx
1107 \end_layout
1108
1109 \end_inset
1110
1111  which will create a file 
1112 \begin_inset Flex Code
1113 status collapsed
1114
1115 \begin_layout Plain Layout
1116 foo.lyx
1117 \end_layout
1118
1119 \end_inset
1120
1121  from the file 
1122 \begin_inset Flex Code
1123 status collapsed
1124
1125 \begin_layout Plain Layout
1126 foo.tex
1127 \end_layout
1128
1129 \end_inset
1130
1131 .
1132  \SpecialChar LyX
1133  will then open that file.
1134 \begin_inset Foot
1135 status collapsed
1136
1137 \begin_layout Plain Layout
1138 \begin_inset Flex Code
1139 status collapsed
1140
1141 \begin_layout Plain Layout
1142 tex2lyx
1143 \end_layout
1144
1145 \end_inset
1146
1147  can also be run from the command line,
1148  of course.
1149 \end_layout
1150
1151 \end_inset
1152
1153
1154 \end_layout
1155
1156 \begin_layout Standard
1157 \begin_inset Flex Code
1158 status collapsed
1159
1160 \begin_layout Plain Layout
1161 tex2lyx
1162 \end_layout
1163
1164 \end_inset
1165
1166  will translate most legal \SpecialChar LaTeX
1167 ,
1168  but not everything.
1169  It will put things it doesn't understand into \SpecialChar TeX
1170  code,
1171  so after translating a file with 
1172 \begin_inset Flex Code
1173 status collapsed
1174
1175 \begin_layout Plain Layout
1176 tex2lyx
1177 \end_layout
1178
1179 \end_inset
1180
1181 ,
1182  you can look for \SpecialChar TeX
1183  code and hand-edit it until it looks right.
1184 \end_layout
1185
1186 \begin_layout Standard
1187 If you don't know what \SpecialChar TeX
1188  code is,
1189  read the next section.
1190 \end_layout
1191
1192 \begin_layout Section
1193 \begin_inset CommandInset label
1194 LatexCommand label
1195 name "sec:Inserting-TeX-Code"
1196
1197 \end_inset
1198
1199 Inserting \SpecialChar TeX
1200  Code into \SpecialChar LyX
1201  Documents 
1202 \end_layout
1203
1204 \begin_layout Standard
1205 Anything you can do in \SpecialChar LaTeX
1206  you can do in \SpecialChar LyX
1207 ,
1208  for a very simple reason:
1209  You can always insert \SpecialChar TeX
1210  code into any \SpecialChar LyX
1211  document.
1212  \SpecialChar LyX
1213  cannot,
1214  and will never be able to,
1215  display every possible \SpecialChar LaTeX
1216  construct.
1217  If ever you need to insert \SpecialChar LaTeX
1218  commands into your \SpecialChar LyX
1219  document,
1220  you can use the 
1221 \begin_inset Flex Code
1222 status collapsed
1223
1224 \begin_layout Plain Layout
1225 \SpecialChar TeX
1226  Code
1227 \end_layout
1228
1229 \end_inset
1230
1231  box,
1232  which you can insert into your document with 
1233 \change_deleted -712698321 1674917417
1234
1235 \begin_inset Flex Noun
1236 status collapsed
1237
1238 \begin_layout Plain Layout
1239 Insert\SpecialChar menuseparator
1240
1241 \family sans
1242 TeX
1243 \family default
1244  Code
1245 \end_layout
1246
1247 \end_inset
1248
1249
1250 \change_inserted -712698321 1674917417
1251
1252 \family sans
1253 Insert\SpecialChar menuseparator
1254 TeX Code
1255 \change_unchanged
1256
1257 \family default
1258  or the keyboard shortcut 
1259 \begin_inset Info
1260 type  "shortcut"
1261 arg   "ert-insert"
1262 \end_inset
1263
1264 .
1265 \end_layout
1266
1267 \begin_layout Standard
1268 Here's an example of inserting \SpecialChar LaTeX
1269  commands in a \SpecialChar LyX
1270  document.
1271  The code looks like this:
1272 \end_layout
1273
1274 \begin_layout LyX-Code
1275
1276 \backslash
1277 begin{tabular}{ll}
1278 \begin_inset Newline newline
1279 \end_inset
1280
1281
1282 \backslash
1283 begin{minipage}{5cm}
1284 \begin_inset Newline newline
1285 \end_inset
1286
1287 This is an example of a minipage environment.
1288  You 
1289 \begin_inset Newline newline
1290 \end_inset
1291
1292 can put nearly everything in it,
1293  even (non-floating) 
1294 \begin_inset Newline newline
1295 \end_inset
1296
1297 figures and tables.
1298  
1299 \begin_inset Newline newline
1300 \end_inset
1301
1302
1303 \backslash
1304 end{minipage}
1305 \begin_inset Newline newline
1306 \end_inset
1307
1308 &
1309 \begin_inset Newline newline
1310 \end_inset
1311
1312
1313 \backslash
1314 begin{minipage}{5cm}
1315 \begin_inset Newline newline
1316 \end_inset
1317
1318
1319 \backslash
1320 begin{verbatim}
1321 \begin_inset Newline newline
1322 \end_inset
1323
1324
1325 \backslash
1326 begin{minipage}{5cm}
1327 \begin_inset Newline newline
1328 \end_inset
1329
1330 This ...
1331  
1332 \begin_inset Newline newline
1333 \end_inset
1334
1335
1336 \backslash
1337 end{minipage}
1338 \begin_inset Newline newline
1339 \end_inset
1340
1341
1342 \backslash
1343 end{verbatim}
1344 \begin_inset Newline newline
1345 \end_inset
1346
1347
1348 \backslash
1349 end{minipage}
1350 \begin_inset Newline newline
1351 \end_inset
1352
1353
1354 \backslash
1355 end{tabular}
1356 \end_layout
1357
1358 \begin_layout LyX-Code
1359
1360 \end_layout
1361
1362 \begin_layout Standard
1363 The 
1364 \begin_inset Flex Code
1365 status collapsed
1366
1367 \begin_layout Plain Layout
1368 \SpecialChar TeX
1369  Code
1370 \end_layout
1371
1372 \end_inset
1373
1374  box containing this text is directly after this paragraph.
1375  Those of you reading the manual in \SpecialChar LyX
1376  will only see the \SpecialChar TeX
1377  code inset.
1378  Those reading a printed version of the manuals will see the actual results:
1379 \begin_inset VSpace bigskip
1380 \end_inset
1381
1382
1383 \end_layout
1384
1385 \begin_layout Standard
1386 \begin_inset ERT
1387 status open
1388
1389 \begin_layout Plain Layout
1390
1391
1392 \backslash
1393 begin{tabular}{ll}
1394 \end_layout
1395
1396 \begin_layout Plain Layout
1397
1398
1399 \backslash
1400 begin{minipage}{5cm}
1401 \end_layout
1402
1403 \begin_layout Plain Layout
1404
1405 This is an example of a minipage environment.
1406  You can put nearly everything in it,
1407  even (non-floating) figures and tables.
1408  
1409 \end_layout
1410
1411 \begin_layout Plain Layout
1412
1413
1414 \backslash
1415 end{minipage}
1416 \end_layout
1417
1418 \begin_layout Plain Layout
1419
1420 &
1421 \end_layout
1422
1423 \begin_layout Plain Layout
1424
1425
1426 \backslash
1427 begin{minipage}{5cm}
1428 \end_layout
1429
1430 \begin_layout Plain Layout
1431
1432
1433 \backslash
1434 begin{verbatim}
1435 \end_layout
1436
1437 \begin_layout Plain Layout
1438
1439
1440 \backslash
1441 begin{minipage}{5cm}
1442 \end_layout
1443
1444 \begin_layout Plain Layout
1445
1446 This ...
1447  
1448 \end_layout
1449
1450 \begin_layout Plain Layout
1451
1452
1453 \backslash
1454 end{minipage}
1455 \end_layout
1456
1457 \begin_layout Plain Layout
1458
1459
1460 \backslash
1461 end{verbatim}
1462 \end_layout
1463
1464 \begin_layout Plain Layout
1465
1466
1467 \backslash
1468 end{minipage}
1469 \end_layout
1470
1471 \begin_layout Plain Layout
1472
1473
1474 \backslash
1475 end{tabular}
1476 \end_layout
1477
1478 \end_inset
1479
1480
1481 \begin_inset VSpace bigskip
1482 \end_inset
1483
1484
1485 \end_layout
1486
1487 \begin_layout Standard
1488 In addition to using \SpecialChar TeX
1489  code,
1490  you can also create a separate file containing some complex \SpecialChar LaTeX
1491  structure and then use 
1492 \change_deleted -712698321 1674917427
1493
1494 \begin_inset Flex Noun
1495 status collapsed
1496
1497 \begin_layout Plain Layout
1498 Insert\SpecialChar menuseparator
1499 Child
1500 \begin_inset space ~
1501 \end_inset
1502
1503 Document
1504 \end_layout
1505
1506 \end_inset
1507
1508
1509 \change_inserted -712698321 1674917427
1510
1511 \family sans
1512 Insert\SpecialChar menuseparator
1513 Child
1514 \begin_inset space ~
1515 \end_inset
1516
1517 Document
1518 \change_unchanged
1519  
1520 \family default
1521 to include your file (you should select the type 
1522 \begin_inset Flex Code
1523 status collapsed
1524
1525 \begin_layout Plain Layout
1526 Input
1527 \end_layout
1528
1529 \end_inset
1530
1531 ).
1532  We recommend that you only do this if you have a 
1533 \begin_inset Flex Code
1534 status collapsed
1535
1536 \begin_layout Plain Layout
1537 .tex
1538 \end_layout
1539
1540 \end_inset
1541
1542  file which you 
1543 \emph on
1544 know
1545 \emph default
1546  works already.
1547  Otherwise,
1548  you'll have a big job tracking down \SpecialChar LaTeX
1549  errors.
1550 \end_layout
1551
1552 \begin_layout Standard
1553 There are a few last points to emphasize:
1554 \end_layout
1555
1556 \begin_layout Itemize
1557 \SpecialChar LyX
1558  
1559 \emph on
1560 does not
1561 \emph default
1562  check if your \SpecialChar LaTeX
1563  code is correct.
1564 \end_layout
1565
1566 \begin_layout Itemize
1567 Beware of reinventing the wheel.
1568 \end_layout
1569
1570 \begin_layout Standard
1571 On that last point,
1572  \SpecialChar LyX
1573  does have quite a few features tucked into it,
1574  and more are coming.
1575  Be sure to check the manuals to make sure that \SpecialChar LyX
1576  doesn't have such-and-such feature before you decide you have to do it by hand.
1577  Moreover,
1578  there are numerous \SpecialChar LaTeX
1579  packages out there to do all sorts of things,
1580  from labels to envelopes to fancy multipage tables.
1581  Check out 
1582 \change_inserted 244031559 1603815732
1583
1584 \begin_inset CommandInset href
1585 LatexCommand href
1586 name "CTAN"
1587 target "https://www.ctan.org/"
1588 literal "false"
1589
1590 \end_inset
1591
1592
1593 \change_deleted 244031559 1603815732
1594
1595 \begin_inset CommandInset href
1596 LatexCommand href
1597 name "CTAN"
1598 target "http://www.ctan.org/"
1599 literal "false"
1600
1601 \end_inset
1602
1603
1604 \change_unchanged
1605  for details.
1606 \end_layout
1607
1608 \begin_layout Standard
1609 If you do need to do some wild and fancy things within your document,
1610  be sure to check out a good \SpecialChar LaTeX
1611  book for assistance.
1612  There are a number of them listed in the bibliography of the 
1613 \emph on
1614 User's Guide
1615 \emph default
1616 .
1617 \end_layout
1618
1619 \begin_layout Section
1620 \SpecialChar LyX
1621  and the \SpecialChar LaTeX
1622  Preamble
1623 \end_layout
1624
1625 \begin_layout Subsection
1626 About the \SpecialChar LaTeX
1627  Preamble
1628 \end_layout
1629
1630 \begin_layout Standard
1631 If you already know \SpecialChar LaTeX
1632 ,
1633  there is no need to explain here what the preamble is good for.
1634  If you don't,
1635  the following will give you some ideas—
1636 we recommend again that you consult a \SpecialChar LaTeX
1637  book for further information.
1638  In any case,
1639  you should read the points below,
1640  because they explain what you can do and what you don't need to do in the \SpecialChar LaTeX
1641  preamble of a \SpecialChar LyX
1642  document.
1643 \end_layout
1644
1645 \begin_layout Standard
1646 The \SpecialChar LaTeX
1647  preamble comes at the very beginning of a document,
1648  
1649 \emph on
1650 before
1651 \emph default
1652  the text.
1653  It serves to:
1654 \end_layout
1655
1656 \begin_layout Itemize
1657 Declare the document class.
1658  
1659 \begin_inset Newline newline
1660 \end_inset
1661
1662 \SpecialChar LyX
1663  already does this for you.
1664  If you're a seasoned \SpecialChar LaTeX
1665 -nician,
1666  and you have a custom document class you want to use,
1667  check out the 
1668 \emph on
1669 Customization Manual
1670 \emph default
1671  for information on how to make \SpecialChar LyX
1672  interface to it.
1673 \end_layout
1674
1675 \begin_layout Itemize
1676 Declare the usage of packages.
1677  
1678 \begin_inset Newline newline
1679 \end_inset
1680
1681 \SpecialChar LaTeX
1682  packages provide special commands,
1683  which are only available within a document when the package has been declared in the preamble.
1684  In addition to providing special commands,
1685  the inclusion of a package can change the document.
1686  For example,
1687  the package 
1688 \begin_inset Flex Code
1689 status collapsed
1690
1691 \begin_layout Plain Layout
1692 indentfirst
1693 \end_layout
1694
1695 \end_inset
1696
1697  forces all paragraphs to be indented.
1698  There are other packages for labels,
1699  envelopes,
1700  margins,
1701  etc.
1702  
1703 \end_layout
1704
1705 \begin_layout Itemize
1706 Set counters,
1707  variables,
1708  lengths and widths.
1709  
1710 \begin_inset Newline newline
1711 \end_inset
1712
1713 There are several \SpecialChar LaTeX
1714  counters and variables that 
1715 \emph on
1716 must
1717 \emph default
1718  be set globally from within the preamble in order to have the desired effect.
1719  (There are variables that you can set and reset inside the document,
1720  too.) Margins are a good example of something that must be set in the preamble.
1721  Another example is the label format for lists.
1722  You can actually set these just about anywhere,
1723  but it's best to do it just once,
1724  inside the preamble.
1725 \end_layout
1726
1727 \begin_layout Itemize
1728 Declare user defined commands (with 
1729 \begin_inset Flex Code
1730 status collapsed
1731
1732 \begin_layout Plain Layout
1733
1734 \backslash
1735 newcommand
1736 \end_layout
1737
1738 \end_inset
1739
1740  or 
1741 \begin_inset Flex Code
1742 status collapsed
1743
1744 \begin_layout Plain Layout
1745
1746 \backslash
1747 renewcommand
1748 \end_layout
1749
1750 \end_inset
1751
1752 ).
1753 \begin_inset Newline newline
1754 \end_inset
1755
1756 These are abbreviations for \SpecialChar LaTeX
1757  commands which appear very often inside a document.
1758  Although the preamble is a good place to declare such commands,
1759  they 
1760 \emph on
1761 can
1762 \emph default
1763  be declared anywhere (before they are used for the first time,
1764  of course).
1765  This can be useful if there is a lot of raw \SpecialChar LaTeX
1766  code in your document,
1767  which normally should not be the case.
1768 \end_layout
1769
1770 \begin_layout Standard
1771 \SpecialChar LyX
1772  adds its own set of definitions to the preamble of the 
1773 \begin_inset Flex Code
1774 status collapsed
1775
1776 \begin_layout Plain Layout
1777 .tex
1778 \end_layout
1779
1780 \end_inset
1781
1782  file it produces.
1783  This makes \SpecialChar LaTeX
1784  files generated by \SpecialChar LyX
1785  portable.
1786 \end_layout
1787
1788 \begin_layout Subsection
1789 Changing the Preamble
1790 \end_layout
1791
1792 \begin_layout Standard
1793 The commands which \SpecialChar LyX
1794  adds to the preamble of a \SpecialChar LaTeX
1795  file are fixed;
1796  you can't change them without patching \SpecialChar LyX
1797  itself.
1798  You can,
1799  however,
1800  add your own stuff to the preamble by selecting 
1801 \begin_inset Flex Noun
1802 status collapsed
1803
1804 \begin_layout Plain Layout
1805 \SpecialChar LaTeX
1806
1807 \begin_inset space ~
1808 \end_inset
1809
1810 Preamble
1811 \end_layout
1812
1813 \end_inset
1814
1815  in the 
1816 \change_deleted -712698321 1674917437
1817
1818 \begin_inset Flex Noun
1819 status collapsed
1820
1821 \begin_layout Plain Layout
1822 Document\SpecialChar menuseparator
1823 Settings
1824 \end_layout
1825
1826 \end_inset
1827
1828
1829 \change_inserted -712698321 1674917437
1830
1831 \family sans
1832 Document\SpecialChar menuseparator
1833 Settings
1834 \change_unchanged
1835
1836 \family default
1837  dialog.
1838  \SpecialChar LyX
1839  adds anything in the 
1840 \begin_inset Flex Noun
1841 status collapsed
1842
1843 \begin_layout Plain Layout
1844 Preamble
1845 \end_layout
1846
1847 \end_inset
1848
1849  dialog to its own built-in preamble.
1850  Before adding your own declarations in the preamble,
1851  you should make sure that \SpecialChar LyX
1852  doesn't already support what you want to do.
1853  (Remember what we said about reinventing the wheel?) Also,
1854  
1855 \emph on
1856 make sure your preamble code is correct
1857 \emph default
1858 .
1859  \SpecialChar LyX
1860  doesn't check it for you.
1861  If there is an error,
1862  you're likely to get an error like 
1863 \begin_inset Quotes eld
1864 \end_inset
1865
1866
1867 \begin_inset Flex Code
1868 status collapsed
1869
1870 \begin_layout Plain Layout
1871 Missing 
1872 \backslash
1873 begin{document}
1874 \end_layout
1875
1876 \end_inset
1877
1878
1879 \begin_inset Quotes erd
1880 \end_inset
1881
1882 .
1883  If you see this error,
1884  check your preamble.
1885 \end_layout
1886
1887 \begin_layout Subsection
1888 Examples
1889 \end_layout
1890
1891 \begin_layout Standard
1892 Here are some examples of what you can add to a preamble,
1893  and what they do.
1894 \end_layout
1895
1896 \begin_layout Subsubsection
1897 Example #1:
1898  Offsets
1899 \end_layout
1900
1901 \begin_layout Standard
1902 There are two variables under \SpecialChar LaTeX
1903  that control page position:
1904  
1905 \begin_inset Flex Code
1906 status collapsed
1907
1908 \begin_layout Plain Layout
1909
1910 \backslash
1911 hoffset
1912 \end_layout
1913
1914 \end_inset
1915
1916  and 
1917 \begin_inset Flex Code
1918 status collapsed
1919
1920 \begin_layout Plain Layout
1921
1922 \backslash
1923 voffset
1924 \end_layout
1925
1926 \end_inset
1927
1928 .
1929  Their names should be self-explanatory.
1930  These variables are useful if you think for a moment about computer labels.
1931  Sometimes,
1932  the size of a print medium and the area of the medium that you can actually print on aren't the same.
1933  This is where 
1934 \begin_inset Flex Code
1935 status collapsed
1936
1937 \begin_layout Plain Layout
1938
1939 \backslash
1940 hoffset
1941 \end_layout
1942
1943 \end_inset
1944
1945  and 
1946 \begin_inset Flex Code
1947 status collapsed
1948
1949 \begin_layout Plain Layout
1950
1951 \backslash
1952 voffset
1953 \end_layout
1954
1955 \end_inset
1956
1957  come in.
1958 \end_layout
1959
1960 \begin_layout Standard
1961 The default values for 
1962 \begin_inset Flex Code
1963 status collapsed
1964
1965 \begin_layout Plain Layout
1966
1967 \backslash
1968 hoffset
1969 \end_layout
1970
1971 \end_inset
1972
1973  and 
1974 \begin_inset Flex Code
1975 status collapsed
1976
1977 \begin_layout Plain Layout
1978
1979 \backslash
1980 voffset
1981 \end_layout
1982
1983 \end_inset
1984
1985  are both 0
1986 \begin_inset space \thinspace{}
1987 \end_inset
1988
1989 points,
1990  i.
1991 \begin_inset space \thinspace{}
1992 \end_inset
1993
1994 e.
1995 \begin_inset space \space{}
1996 \end_inset
1997
1998 the page isn't shifted.
1999  Unfortunately,
2000  some DVI drivers always seem to shift the page.
2001  We have no idea why,
2002  or why the sysadmin hasn't fixed such behavior.
2003  If you're using \SpecialChar LyX
2004  on a system that you don't personally maintain,
2005  and your sysadmin is a doofus,
2006  
2007 \begin_inset Flex Code
2008 status collapsed
2009
2010 \begin_layout Plain Layout
2011
2012 \backslash
2013 hoffset
2014 \end_layout
2015
2016 \end_inset
2017
2018  and 
2019 \begin_inset Flex Code
2020 status collapsed
2021
2022 \begin_layout Plain Layout
2023
2024 \backslash
2025 voffset
2026 \end_layout
2027
2028 \end_inset
2029
2030  can save the day.
2031  Suppose your left and top margins are always 0.5
2032 \begin_inset space \thinspace{}
2033 \end_inset
2034
2035 inches too big.
2036  You can add this to the preamble:
2037 \end_layout
2038
2039 \begin_layout LyX-Code
2040
2041 \backslash
2042 setlength{
2043 \backslash
2044 hoffset}{-0.5 in}
2045 \end_layout
2046
2047 \begin_layout LyX-Code
2048
2049 \backslash
2050 setlength{
2051 \backslash
2052 voffset}{-0.5 in}
2053 \end_layout
2054
2055 \begin_layout Standard
2056 and your margins should now be correct.
2057 \end_layout
2058
2059 \begin_layout Subsubsection
2060 Example #2:
2061  Labels
2062 \end_layout
2063
2064 \begin_layout Standard
2065 Speaking of labels,
2066  suppose you wanted to print out a bunch of address labels.
2067  There's a rather nice package,
2068  available at your nearest CTAN archive,
2069  for printing sheets of labels:
2070  
2071 \begin_inset Flex Code
2072 status collapsed
2073
2074 \begin_layout Plain Layout
2075 labels.sty
2076 \end_layout
2077
2078 \end_inset
2079
2080 .
2081  Now,
2082  your system may not have this package installed by default.
2083  We leave that up to you to check.
2084  You'll also want to read the documentation for it;
2085  we're not going to do that for you.
2086  Since this is an example,
2087  however,
2088  we'll give you an example of how you use this package.
2089 \end_layout
2090
2091 \begin_layout Standard
2092 First,
2093  make sure you're using the 
2094 \begin_inset Flex Code
2095 status collapsed
2096
2097 \begin_layout Plain Layout
2098 article
2099 \end_layout
2100
2101 \end_inset
2102
2103  document class.
2104  Next,
2105  you need to put the following in your preamble:
2106 \end_layout
2107
2108 \begin_layout LyX-Code
2109
2110 \backslash
2111 usepackage{labels}
2112 \end_layout
2113
2114 \begin_layout LyX-Code
2115
2116 \backslash
2117 LabelCols=3
2118 \end_layout
2119
2120 \begin_layout LyX-Code
2121
2122 \backslash
2123 LabelRows=7
2124 \end_layout
2125
2126 \begin_layout LyX-Code
2127
2128 \backslash
2129 LeftBorder=8mm
2130 \end_layout
2131
2132 \begin_layout LyX-Code
2133
2134 \backslash
2135 RightBorder=8mm
2136 \end_layout
2137
2138 \begin_layout LyX-Code
2139
2140 \backslash
2141 TopBorder=9mm
2142 \end_layout
2143
2144 \begin_layout LyX-Code
2145
2146 \backslash
2147 BottomBorder=2mm
2148 \end_layout
2149
2150 \begin_layout Standard
2151 This sets things up for Avery label sheets,
2152  stock #5360.
2153  You're now ready to print labels,
2154  but you'll need to insert \SpecialChar LaTeX
2155  code,
2156  placing the commands 
2157 \begin_inset Flex Code
2158 status collapsed
2159
2160 \begin_layout Plain Layout
2161
2162 \backslash
2163 begin{labels}
2164 \end_layout
2165
2166 \end_inset
2167
2168  and 
2169 \begin_inset Flex Code
2170 status collapsed
2171
2172 \begin_layout Plain Layout
2173
2174 \backslash
2175 end{labels}
2176 \end_layout
2177
2178 \end_inset
2179
2180  around each label text.
2181  This and other special features of 
2182 \begin_inset Flex Code
2183 status collapsed
2184
2185 \begin_layout Plain Layout
2186 labels.sty
2187 \end_layout
2188
2189 \end_inset
2190
2191  are explained in its documentation.
2192 \end_layout
2193
2194 \begin_layout Standard
2195 Someday,
2196  someone may write a \SpecialChar LyX
2197  layout file to support this package directly.
2198  Maybe that someone is you.
2199 \end_layout
2200
2201 \begin_layout Subsubsection
2202 Example #3:
2203  Paragraph Indentation
2204 \end_layout
2205
2206 \begin_layout Standard
2207 Americans are trained to indent the first line of 
2208 \emph on
2209 every
2210 \emph default
2211  paragraph.
2212  As with all of their other weird quirks,
2213  most Americans will whine and moan until they can have their way and indent the first line of all paragraphs.
2214  (Yes,
2215  we're joking.
2216  (We are?) 
2217 \emph on
2218 Yeah
2219 \emph default
2220 ,
2221  we are.)
2222 \end_layout
2223
2224 \begin_layout Standard
2225 Of course,
2226  this behavior isn't standard typography.
2227  In books,
2228  you typically only indent the first line of a paragraph 
2229 \emph on
2230 if
2231 \emph default
2232  it follows another one.
2233  The idea behind indenting the first line of a paragraph is to distinguish neighboring paragraphs from one another.
2234  If there is no previous paragraph—
2235 for example,
2236  if it follows a figure or is the first paragraph in a section—
2237 then there is no need for indentation.
2238  
2239 \end_layout
2240
2241 \begin_layout Standard
2242 If you're a typical American (we're still joking!),
2243  though,
2244  you don't care about such esoteric things;
2245  you want your indentation!
2246  Add this to the preamble:
2247 \end_layout
2248
2249 \begin_layout LyX-Code
2250
2251 \backslash
2252 usepackage{indentfirst}
2253 \end_layout
2254
2255 \begin_layout Standard
2256 If your \SpecialChar TeX
2257  distribution isn't braindead,
2258  you'll have this package,
2259  and all of your paragraphs will get the indentation the Founding Fathers intended they should have.
2260 \end_layout
2261
2262 \begin_layout Subsubsection
2263 Example #4:
2264  This Document
2265 \end_layout
2266
2267 \begin_layout Standard
2268 You can also check out the preamble of this document to get an idea of some of the advanced things you can do.
2269 \end_layout
2270
2271 \begin_layout Section
2272 \SpecialChar LyX
2273  and \SpecialChar LaTeX
2274  Errors
2275 \end_layout
2276
2277 \begin_layout Standard
2278 When \SpecialChar LyX
2279  calls \SpecialChar LaTeX
2280 ,
2281  it tells \SpecialChar LaTeX
2282  to blithely ignore any errors and keep going.
2283  It then uses the logfile from the \SpecialChar LaTeX
2284  run to do a post-mortem.
2285  After analyzing the logfile,
2286  \SpecialChar LyX
2287  displays a dialog listing the errors.
2288  Clicking on any one of them will take you to the position in your \SpecialChar LyX
2289  file where the error occurred.
2290 \begin_inset Foot
2291 status collapsed
2292
2293 \begin_layout Plain Layout
2294 Well,
2295  usually.
2296  Analyzing the logfile is a tough job,
2297  and \SpecialChar LyX
2298  doesn't always go to the right line.
2299  There are also cases where \SpecialChar LaTeX
2300  reports the error on one line,
2301  but the actual error is earlier.
2302  This is not unlike forgetting a closing brace in a program:
2303  You'll get an error,
2304  but only later.
2305 \end_layout
2306
2307 \end_inset
2308
2309
2310 \end_layout
2311
2312 \begin_layout Standard
2313 Some folks also like to look at the log file directly:
2314  It is available from 
2315 \change_deleted -712698321 1674917444
2316
2317 \begin_inset Flex Noun
2318 status collapsed
2319
2320 \begin_layout Plain Layout
2321 Document\SpecialChar menuseparator
2322 LaTeX
2323 \begin_inset space ~
2324 \end_inset
2325
2326 Log
2327 \end_layout
2328
2329 \end_inset
2330
2331
2332 \change_inserted -712698321 1674917444
2333
2334 \family sans
2335 Document\SpecialChar menuseparator
2336 LaTeX
2337 \begin_inset space ~
2338 \end_inset
2339
2340 Log
2341 \change_unchanged
2342
2343 \family default
2344 .
2345  There are some fairly common error messages and warnings.
2346  We'll cover those here.
2347  You should look at a good \SpecialChar LaTeX
2348  book for a complete listing.
2349 \end_layout
2350
2351 \begin_layout Itemize
2352 \begin_inset Flex Code
2353 status collapsed
2354
2355 \begin_layout Plain Layout
2356 LaTeX Warning
2357 \end_layout
2358
2359 \end_inset
2360
2361
2362 \begin_inset Newline newline
2363 \end_inset
2364
2365 Anything beginning with these words is a warning message for the purpose of 
2366 \begin_inset Quotes eld
2367 \end_inset
2368
2369 debugging
2370 \begin_inset Quotes erd
2371 \end_inset
2372
2373  the \SpecialChar LaTeX
2374  code itself.
2375  You'll get messages like this if you added or changed cross-references or bibliography entries,
2376  in which case,
2377  \SpecialChar LaTeX
2378  is trying to tell you that you need to make another run.
2379  You can by-and-large ignore these.
2380 \end_layout
2381
2382 \begin_layout Itemize
2383 \begin_inset Flex Code
2384 status collapsed
2385
2386 \begin_layout Plain Layout
2387 LaTeX Font Warning
2388 \end_layout
2389
2390 \end_inset
2391
2392
2393 \begin_inset Newline newline
2394 \end_inset
2395
2396 Another warning message,
2397  this time about fonts which \SpecialChar LaTeX
2398  couldn't find.
2399  The rest of the message will often say something about a replacement font that \SpecialChar LaTeX
2400  used.
2401  You can safely ignore these,
2402  too.
2403 \end_layout
2404
2405 \begin_layout Itemize
2406 \begin_inset Flex Code
2407 status collapsed
2408
2409 \begin_layout Plain Layout
2410 Overfull 
2411 \backslash
2412 hbox
2413 \end_layout
2414
2415 \end_inset
2416
2417
2418 \begin_inset Newline newline
2419 \end_inset
2420
2421 \SpecialChar LaTeX
2422  absolutely 
2423 \emph on
2424 loves
2425 \emph default
2426  to spew these out.
2427  It seems to generate at least one of these messages for just about any document you write.
2428  They are warnings about lines that were too long and run past the right margin.
2429  This happens if \SpecialChar LaTeX
2430  does not find a reasonable way to break the lines (notoriously often with typewriter font,
2431  since this does not allow for automatic break points).
2432  In many cases,
2433  this is unnoticeable in the final output.
2434  (It can be just a point or two.) Sometimes,
2435  however,
2436  the lines run rather visibly into the margin;
2437  something you will not want to have in your final print.
2438  
2439 \begin_inset Newline newline
2440 \end_inset
2441
2442 There are several global ways to try to minimize the overfull lines.
2443  Clicking 
2444 \family sans
2445 Enable micro-typographic extensions
2446 \family default
2447  in 
2448 \family sans
2449 Document\SpecialChar menuseparator
2450 Settings\SpecialChar menuseparator
2451 Fonts
2452 \family default
2453  might already improve things a lot.
2454  Furthermore,
2455  \SpecialChar LaTeX
2456  code such as the following in 
2457 \family sans
2458 Document\SpecialChar menuseparator
2459 Settings\SpecialChar menuseparator
2460 Preamble
2461 \family default
2462  usually reduces the overfull lines drastically (we use this in the preamble of this document):
2463 \end_layout
2464
2465 \begin_deeper
2466 \begin_layout LyX-Code
2467
2468 \backslash
2469 tolerance 1414
2470 \begin_inset Newline newline
2471 \end_inset
2472
2473
2474 \backslash
2475 hbadness 1414
2476 \begin_inset Newline newline
2477 \end_inset
2478
2479
2480 \backslash
2481 emergencystretch 1.5em
2482 \begin_inset Newline newline
2483 \end_inset
2484
2485
2486 \backslash
2487 hfuzz 0.3pt
2488 \end_layout
2489
2490 \begin_layout Standard
2491 In some cases,
2492  however,
2493  you eventually have to rewrite the text to get the line breaking right.
2494 \begin_inset Foot
2495 status collapsed
2496
2497 \begin_layout Plain Layout
2498 For more information,
2499  see 
2500 \begin_inset Flex URL
2501 status open
2502
2503 \begin_layout Plain Layout
2504
2505 http://www.tex.ac.uk/FAQ-overfull.html
2506 \end_layout
2507
2508 \end_inset
2509
2510
2511 \end_layout
2512
2513 \end_inset
2514
2515
2516 \end_layout
2517
2518 \begin_layout Standard
2519 In any case,
2520  you should check the respective lines,
2521  at least for the final version of your document.
2522  Your eyes will tell you if there's a problem with something that's too wide.
2523 \begin_inset Foot
2524 status collapsed
2525
2526 \begin_layout Plain Layout
2527 You can also enable the `draft' option in 
2528 \change_deleted -712698321 1674917458
2529
2530 \begin_inset Flex Noun
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 Document\SpecialChar menuseparator
2535 Settings
2536 \end_layout
2537
2538 \end_inset
2539
2540
2541 \change_inserted -712698321 1674917458
2542
2543 \family sans
2544 Document\SpecialChar menuseparator
2545 Settings
2546 \change_unchanged
2547
2548 \family default
2549 ,
2550  and then \SpecialChar LaTeX
2551  will draw a black box in the margin of lines that are overfull.
2552 \end_layout
2553
2554 \end_inset
2555
2556  
2557 \end_layout
2558
2559 \end_deeper
2560 \begin_layout Itemize
2561 \begin_inset Flex Code
2562 status collapsed
2563
2564 \begin_layout Plain Layout
2565 Underfull 
2566 \backslash
2567 hbox
2568 \end_layout
2569
2570 \end_inset
2571
2572
2573 \begin_inset Newline newline
2574 \end_inset
2575
2576 Not quite as common as its cousin.
2577  This happens again if \SpecialChar LaTeX
2578  does not find a reasonable break point and consequently generates too loose lines.
2579  As with the overfull lines,
2580  you should check if this is a visible problem.
2581 \end_layout
2582
2583 \begin_layout Itemize
2584 \begin_inset Flex Code
2585 status collapsed
2586
2587 \begin_layout Plain Layout
2588 Overfull 
2589 \backslash
2590 vbox
2591 \end_layout
2592
2593 \end_inset
2594
2595  and 
2596 \begin_inset Flex Code
2597 status collapsed
2598
2599 \begin_layout Plain Layout
2600 Underfull 
2601 \backslash
2602 vbox
2603 \end_layout
2604
2605 \end_inset
2606
2607
2608 \begin_inset Newline newline
2609 \end_inset
2610
2611 Warnings about troubles breaking the page.
2612  Once again,
2613  just look at the output.
2614  Your eyes will tell you where something has gone wrong.
2615 \end_layout
2616
2617 \begin_layout Itemize
2618 \begin_inset Flex Code
2619 status collapsed
2620
2621 \begin_layout Plain Layout
2622 LaTeX Error:
2623  File 
2624 \begin_inset Quotes els
2625 \end_inset
2626
2627 Xxxx
2628 \begin_inset Quotes ers
2629 \end_inset
2630
2631  not found
2632 \end_layout
2633
2634 \end_inset
2635
2636
2637 \begin_inset Newline newline
2638 \end_inset
2639
2640 The file 
2641 \begin_inset Quotes eld
2642 \end_inset
2643
2644 Xxxx
2645 \begin_inset Quotes erd
2646 \end_inset
2647
2648  isn't installed on this system.
2649  This usually appears because some package your document needs isn't installed.
2650  If you didn't touch the preamble or didn't use the 
2651 \begin_inset Flex Code
2652 status collapsed
2653
2654 \begin_layout Plain Layout
2655
2656 \backslash
2657 usepackage{}
2658 \end_layout
2659
2660 \end_inset
2661
2662  command,
2663  then one of the packages \SpecialChar LyX
2664  tried to load is missing.
2665  Use 
2666 \change_deleted -712698321 1674917468
2667
2668 \begin_inset Flex Noun
2669 status collapsed
2670
2671 \begin_layout Plain Layout
2672 Help\SpecialChar menuseparator
2673 \SpecialChar LaTeX
2674  Configuration
2675 \end_layout
2676
2677 \end_inset
2678
2679
2680 \change_inserted -712698321 1674917478
2681
2682 \family sans
2683 Help\SpecialChar menuseparator
2684 LaTeX Configuration
2685 \change_unchanged
2686
2687 \family default
2688  to get a list of packages that \SpecialChar LyX
2689  knows about.
2690  This file is updated whenever you reconfigure \SpecialChar LyX
2691  (using 
2692 \change_deleted -712698321 1674917484
2693
2694 \begin_inset Flex Noun
2695 status collapsed
2696
2697 \begin_layout Plain Layout
2698 Tools\SpecialChar menuseparator
2699 Reconfigure
2700 \end_layout
2701
2702 \end_inset
2703
2704
2705 \change_inserted -712698321 1674917484
2706
2707 \family sans
2708 Tools\SpecialChar menuseparator
2709 Reconfigure
2710 \change_unchanged
2711
2712 \family default
2713 ) and tells you which packages have been detected and what they do.
2714 \begin_inset Newline newline
2715 \end_inset
2716
2717 If you did use the 
2718 \begin_inset Flex Code
2719 status collapsed
2720
2721 \begin_layout Plain Layout
2722
2723 \backslash
2724 usepackage{}
2725 \end_layout
2726
2727 \end_inset
2728
2729  command and the package in question isn't installed,
2730  then you'll need to install it yourself.
2731 \end_layout
2732
2733 \begin_layout Itemize
2734 \begin_inset Flex Code
2735 status collapsed
2736
2737 \begin_layout Plain Layout
2738 LaTeX Error:
2739  Unknown option
2740 \end_layout
2741
2742 \end_inset
2743
2744
2745 \begin_inset Newline newline
2746 \end_inset
2747
2748 Error messages beginning with this are trying to tell you that you specified a bad or undefined option to a package.
2749  Check the package's documentation.
2750 \end_layout
2751
2752 \begin_layout Itemize
2753 \begin_inset Flex Code
2754 status collapsed
2755
2756 \begin_layout Plain Layout
2757 Undefined control sequence
2758 \end_layout
2759
2760 \end_inset
2761
2762
2763 \begin_inset Newline newline
2764 \end_inset
2765
2766 If you've inserted \SpecialChar LaTeX
2767  code into your document,
2768  but made a typo,
2769  you'll get one of these.
2770  You may have forgotten to load a package.
2771  In any case,
2772  this error message usually means that you used an undefined command.
2773  
2774 \end_layout
2775
2776 \begin_layout Standard
2777 There are other error and warning messages.
2778  Some are self-explanatory.
2779  These are usually \SpecialChar LaTeX
2780  messages.
2781  Others are downright cryptic.
2782  These are usually \SpecialChar TeX
2783  error messages,
2784  and we really have 
2785 \emph on
2786 no clue
2787 \emph default
2788  what they mean or how to decipher them.
2789  No-one does.
2790 \end_layout
2791
2792 \begin_layout Standard
2793 There's a general sequence you should follow if you get error messages:
2794 \end_layout
2795
2796 \begin_layout Enumerate
2797 Look at the \SpecialChar LaTeX
2798  code you inserted for typos.
2799 \end_layout
2800
2801 \begin_layout Enumerate
2802 If there are no typos,
2803  check that you used the command(s) correctly.
2804 \end_layout
2805
2806 \begin_layout Enumerate
2807 If you get a bunch of error boxes piled up at the very top of the document—
2808 and especially if you see a 
2809 \begin_inset Quotes eld
2810 \end_inset
2811
2812
2813 \begin_inset Flex Code
2814 status collapsed
2815
2816 \begin_layout Plain Layout
2817 Missing 
2818 \backslash
2819 begin{document}
2820 \end_layout
2821
2822 \end_inset
2823
2824
2825 \begin_inset Quotes erd
2826 \end_inset
2827
2828  error—
2829 it means that there are errors in the preamble.
2830  Start debugging your preamble.
2831 \end_layout
2832
2833 \begin_layout Enumerate
2834 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2835  code to the document,
2836  the first suspect is your \SpecialChar LaTeX
2837  distribution itself.
2838  Check for missing packages and install them.
2839 \end_layout
2840
2841 \begin_layout Enumerate
2842 Okay,
2843  so there are no missing packages.
2844  Did you use any of the fine-tuning options in \SpecialChar LyX
2845 ?
2846  Specifically,
2847  did you 
2848 \emph on
2849 misuse
2850 \emph default
2851  any of them,
2852  like trying to manually insert lots of 
2853 \begin_inset Flex Code
2854 status collapsed
2855
2856 \begin_layout Plain Layout
2857
2858 \change_deleted 177693 1654669036
2859 Protected
2860 \change_inserted 177693 1654669038
2861 Non-Breaking
2862 \change_unchanged
2863
2864 \begin_inset space ~
2865 \end_inset
2866
2867
2868 \change_deleted 177693 1654669040
2869 Blanks
2870 \change_inserted 177693 1654669041
2871 Spaces
2872 \change_unchanged
2873
2874 \end_layout
2875
2876 \end_inset
2877
2878 ,
2879  
2880 \begin_inset Flex Code
2881 status collapsed
2882
2883 \begin_layout Plain Layout
2884 Linebreaks
2885 \end_layout
2886
2887 \end_inset
2888
2889 ,
2890  or 
2891 \begin_inset Flex Code
2892 status collapsed
2893
2894 \begin_layout Plain Layout
2895 Pagebreaks
2896 \end_layout
2897
2898 \end_inset
2899
2900 ?
2901  Did you try to kludge something together with these instead of using the appropriate paragraph environment?
2902 \end_layout
2903
2904 \begin_layout Enumerate
2905 All right,
2906  you didn't use any of the fine-tuning options,
2907  you played by the rules.
2908  Did you try to pull a fancy maneuver?
2909  Did you do something funky inside a table or an equation,
2910  like inserting a graphic into a table cell?
2911 \end_layout
2912
2913 \begin_layout Enumerate
2914 Do you have long sections of text where \SpecialChar LaTeX
2915  cannot find a place to break a line?
2916  By default,
2917  \SpecialChar LaTeX
2918  is rather strict about how much extra inter-word spacing it will add in order to break a line.
2919  Preferably,
2920  you should rework the paragraph to avoid the problem.
2921 \end_layout
2922
2923 \begin_layout Enumerate
2924 Did you go overboard with the nesting?
2925  \SpecialChar LyX
2926  (currently) doesn't check to make sure you're in the limits for nesting environments.
2927  If you nested a bunch of environments to the 
2928 \begin_inset Formula $17^{\mathrm{th}}$
2929 \end_inset
2930
2931  level,
2932  that's the problem.
2933  (The limit in \SpecialChar LaTeX
2934  is five.)
2935 \end_layout
2936
2937 \begin_layout Enumerate
2938 Okay,
2939  you didn't get any error messages,
2940  but your output looks awful.
2941  If you have a table or figure that's too wide or long for the page,
2942  you need to:
2943 \end_layout
2944
2945 \begin_deeper
2946 \begin_layout Enumerate
2947 rescale the figure so it fits.
2948 \end_layout
2949
2950 \begin_layout Enumerate
2951 trim down the table so it fits.
2952 \end_layout
2953
2954 \end_deeper
2955 \begin_layout Enumerate
2956 If something else is wrong with the output,
2957  and you didn't try to pull anything fancy or kludge the fine-tuning options,
2958  we're not sure what's wrong.
2959 \end_layout
2960
2961 \begin_layout Standard
2962 If all this doesn't help—
2963 well,
2964  then 
2965 \emph on
2966 perhaps
2967 \emph default
2968  you might have found a bug in \SpecialChar LyX
2969 \SpecialChar ldots
2970 .
2971 \end_layout
2972
2973 \begin_layout Chapter
2974
2975 \change_inserted 564990737 1672345271
2976 Document classes
2977 \end_layout
2978
2979 \begin_layout Standard
2980
2981 \change_inserted 564990737 1672345272
2982 As explained in the 
2983 \emph on
2984 User's Guide
2985 \emph default
2986 ,
2987  \SpecialChar LaTeX
2988  originally offered four standard document classes,
2989  article,
2990  report,
2991  book and letter,
2992  but individuals and organizations,
2993  most notably the American Mathematical Society in the early days,
2994  have made many contributions to extending the range of document classes.
2995  In this chapter we summarize the main externally maintained classes,
2996  some of which are marked “Unavailable:” in the pull-down 
2997 \family sans
2998 Document
2999 \begin_inset space ~
3000 \end_inset
3001
3002
3003 \bar under
3004 c
3005 \bar default
3006 lass
3007 \family default
3008  list in the 
3009 \family sans
3010 \bar under
3011 D
3012 \bar default
3013 ocument\SpecialChar menuseparator
3014
3015 \bar under
3016 S
3017 \bar default
3018 ettings\SpecialChar menuseparator
3019 Document
3020 \begin_inset space ~
3021 \end_inset
3022
3023 class
3024 \family default
3025  dialog and which you will need to install as described in the 
3026 \emph on
3027 Installing New Document Classes
3028 \emph default
3029  chapter of the 
3030 \emph on
3031 Customization
3032 \emph default
3033  manual if you want to use them.
3034  
3035 \end_layout
3036
3037 \begin_layout Section
3038
3039 \change_inserted 564990737 1670439533
3040 \begin_inset CommandInset label
3041 LatexCommand label
3042 name "sec:Collections"
3043
3044 \end_inset
3045
3046 Collections
3047 \end_layout
3048
3049 \begin_layout Subsection
3050
3051 \change_inserted 564990737 1672345298
3052 \begin_inset CommandInset label
3053 LatexCommand label
3054 name "subsec:AMS-LaTeX-(American-Mathematical"
3055
3056 \end_inset
3057
3058 AMS-\SpecialChar LaTeX
3059  (American Mathematical Society)
3060 \end_layout
3061
3062 \begin_layout Standard
3063
3064 \change_inserted 564990737 1672345298
3065 The \SpecialChar LyX
3066  supported document classes 
3067 \family sans
3068 article (AMS)
3069 \family default
3070  and 
3071 \family sans
3072 book (AMS)
3073 \family default
3074  are maintained by the Society;
3075  use of their features is described in the Math manual and on their website 
3076 \begin_inset Flex URL
3077 status collapsed
3078
3079 \begin_layout Plain Layout
3080
3081 \change_inserted 564990737 1672345298
3082
3083 http://www.ams.org/publications/authors/tex/amslatex
3084 \change_unchanged
3085
3086 \end_layout
3087
3088 \end_inset
3089
3090 .
3091  The following summary was originally provided by 
3092 \noun on
3093 David Johnson
3094 \noun default
3095  and updated by 
3096 \noun on
3097 Richard 
3098 \change_inserted -712698321 1673082716
3099 Kimberly 
3100 \change_inserted 564990737 1672345298
3101 Heck
3102 \noun default
3103  and the \SpecialChar LyX
3104  Team
3105 \noun on
3106 .
3107 \change_deleted 564990737 1672345297
3108
3109 \noun default
3110 AMS \SpecialChar LaTeX
3111
3112 \end_layout
3113
3114 \begin_layout Standard
3115
3116 \change_deleted 564990737 1672345297
3117 by 
3118 \noun on
3119 David Johnson
3120 \noun default
3121 ;
3122  updated by 
3123 \noun on
3124 Richard Kimberly Heck
3125 \change_unchanged
3126
3127 \end_layout
3128
3129 \begin_layout Standard
3130 \begin_inset VSpace bigskip
3131 \end_inset
3132
3133
3134 \end_layout
3135
3136 \begin_layout Standard
3137 \noindent
3138 The AMS \SpecialChar LaTeX
3139  layouts are set up to conform to suggested styles for mathematical papers to be submitted to American Mathematical Society publications.
3140  The layouts are not tailored to a specific journal,
3141  but easily can be.
3142  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
3143  output).
3144  That documentation is available on the Web at 
3145 \begin_inset Flex URL
3146 status open
3147
3148 \begin_layout Plain Layout
3149
3150 http://www.ams.org
3151 \end_layout
3152
3153 \end_inset
3154
3155  or by ftp at 
3156 \begin_inset Flex URL
3157 status open
3158
3159 \begin_layout Plain Layout
3160
3161 ftp://ftp.ams.org/pub/tex/amslatex/
3162 \end_layout
3163
3164 \end_inset
3165
3166 .
3167  These layouts are appropriate,
3168  and useful,
3169  for any mathematical writing.
3170  
3171 \end_layout
3172
3173 \begin_layout Standard
3174 There are 
3175 \change_deleted -712698321 1673083001
3176 two
3177 \change_inserted -712698321 1673083002
3178 three
3179 \change_unchanged
3180  basic AMS \SpecialChar LaTeX
3181  layouts:
3182  
3183 \end_layout
3184
3185 \begin_layout Itemize
3186 amsart:
3187  The standard AMS article format
3188 \change_inserted 564990737 1672345333
3189 ;
3190  see 
3191 \family sans
3192 File\SpecialChar menuseparator
3193 Open Example\SpecialChar menuseparator
3194 Articles\SpecialChar menuseparator
3195 American Mathematical Society (AMS)
3196 \change_unchanged
3197
3198 \family default
3199 .
3200 \end_layout
3201
3202 \begin_layout Itemize
3203 amsbook:
3204  the standard AMS book (really,
3205  monograph) format
3206 \change_inserted 564990737 1672345366
3207 ;
3208  see 
3209 \family sans
3210 File\SpecialChar menuseparator
3211 Open Example\SpecialChar menuseparator
3212 Books\SpecialChar menuseparator
3213 American Mathematical Society (AMS)
3214 \change_unchanged
3215
3216 \family default
3217 .
3218 \change_inserted 564990737 1672345369
3219
3220 \end_layout
3221
3222 \begin_layout Itemize
3223
3224 \change_inserted 564990737 1672345383
3225 amsproc:
3226  the standard AMS proceedings format.
3227 \end_layout
3228
3229 \begin_layout Standard
3230
3231 \change_inserted 564990737 1672345383
3232 \SpecialChar LyX
3233  only supports the first two natively;
3234  see the 
3235 \emph on
3236 Installing New Document Classes
3237 \emph default
3238  chapter of the 
3239 \emph on
3240 Customization
3241 \emph default
3242  manual if you want to use 
3243 \family sans
3244 amsproc
3245 \family default
3246 .
3247 \end_layout
3248
3249 \begin_layout Standard
3250 The layouts themselves contain only the minimum necessary to use the AMS classes.
3251  They do not,
3252  in particular,
3253  contain any of the `theorem' environments used for setting theorems,
3254  lemmas,
3255  and the like.
3256  These are contained,
3257  instead,
3258  in the 
3259 \change_deleted 564990737 1672345416
3260
3261 \begin_inset Flex Code
3262 status collapsed
3263
3264 \begin_layout Plain Layout
3265 Theorems (AMS)
3266 \end_layout
3267
3268 \end_inset
3269
3270
3271 \change_inserted 564990737 1672345416
3272
3273 \family sans
3274 AMS Theorems
3275 \change_unchanged
3276
3277 \family default
3278  module,
3279  which is loaded by default when you select one of the AMS classes.
3280  (It can also be used with other classes and can be removed,
3281  if you would rather use something else.) Less commonly used environments are in the 
3282 \change_deleted 564990737 1672345436
3283
3284 \begin_inset Flex Code
3285 status collapsed
3286
3287 \begin_layout Plain Layout
3288 Theorems (AMS-Extended)
3289 \end_layout
3290
3291 \end_inset
3292
3293
3294 \change_inserted 564990737 1672345436
3295  
3296 \family sans
3297 AMS Theorems (Extended)
3298 \change_unchanged
3299
3300 \family default
3301  module,
3302  which must be loaded manually.
3303 \end_layout
3304
3305 \begin_layout Standard
3306 By default,
3307  theorems and the like are numbered consecutively throughout the document,
3308  but this may be modified by loading the module 
3309 \change_deleted 564990737 1672345461
3310
3311 \begin_inset Flex Code
3312 status collapsed
3313
3314 \begin_layout Plain Layout
3315 Theorems (Order by Section)
3316 \end_layout
3317
3318 \end_inset
3319
3320
3321 \change_inserted 564990737 1672345461
3322
3323 \family sans
3324 Standard Theorems (Numbered by Section)
3325 \change_unchanged
3326
3327 \family default
3328  or,
3329  if you are using 
3330 \begin_inset Flex Code
3331 status collapsed
3332
3333 \begin_layout Plain Layout
3334 book (AMS)
3335 \end_layout
3336
3337 \end_inset
3338
3339 ,
3340  the module 
3341 \change_deleted 564990737 1672345479
3342
3343 \begin_inset Flex Code
3344 status collapsed
3345
3346 \begin_layout Plain Layout
3347 Theorems (Order by Chapter)
3348 \end_layout
3349
3350 \end_inset
3351
3352
3353 \change_inserted 564990737 1672345480
3354
3355 \family sans
3356 Standard Theorems (Numbered by Chapter)
3357 \change_unchanged
3358
3359 \family default
3360 .
3361  These will number the results as 
3362 \begin_inset Formula $n.m$
3363 \end_inset
3364
3365 ,
3366  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).
3367  Many environments are also available unnumbered.
3368  These are indicated by an asterisk at the end.
3369  If you happen to want 
3370 \emph on
3371 only
3372 \emph default
3373  unnumbered results,
3374  the module 
3375 \change_deleted 564990737 1672345498
3376
3377 \begin_inset Flex Code
3378 status collapsed
3379
3380 \begin_layout Plain Layout
3381 Theorems (Starred)
3382 \end_layout
3383
3384 \end_inset
3385
3386
3387 \change_inserted 564990737 1672345498
3388
3389 \family sans
3390 Standard Theorems (Unnumbered)
3391 \change_unchanged
3392
3393 \family default
3394  provides that option.
3395 \end_layout
3396
3397 \begin_layout Standard
3398 Note that these modules do not 
3399 \emph on
3400 have
3401 \emph default
3402  to be used with the AMS classes.
3403  It is perfectly possible to use the 
3404 \change_deleted 564990737 1672345520
3405
3406 \begin_inset Flex Code
3407 status collapsed
3408
3409 \begin_layout Plain Layout
3410 Theorems (AMS)
3411 \end_layout
3412
3413 \end_inset
3414
3415
3416 \change_inserted 564990737 1672345520
3417
3418 \family sans
3419 AMS Theorems
3420 \change_unchanged
3421
3422 \family default
3423  module,
3424  and the others mentioned,
3425  with other classes,
3426  such as 
3427 \begin_inset Flex Code
3428 status collapsed
3429
3430 \begin_layout Plain Layout
3431
3432 \change_deleted -712698321 1673083855
3433 article
3434 \change_inserted -712698321 1673083855
3435 Article (Standard Class)
3436 \change_unchanged
3437
3438 \end_layout
3439
3440 \end_inset
3441
3442 ,
3443  
3444 \begin_inset Flex Code
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448
3449 \change_deleted -712698321 1673083858
3450 report
3451 \change_inserted -712698321 1673083862
3452 Report (Standard Class)
3453 \change_unchanged
3454
3455 \end_layout
3456
3457 \end_inset
3458
3459 ,
3460  
3461 \begin_inset Flex Code
3462 status collapsed
3463
3464 \begin_layout Plain Layout
3465
3466 \change_deleted -712698321 1673083819
3467 book (KOMA-script)
3468 \change_inserted -712698321 1673083822
3469 KOMA-Script Book
3470 \change_unchanged
3471
3472 \end_layout
3473
3474 \end_inset
3475
3476 ,
3477  and so forth.
3478 \end_layout
3479
3480 \begin_layout Subsubsection
3481 What these layouts provide
3482 \end_layout
3483
3484 \begin_layout Standard
3485 There is a long list of included environments provided by these layouts.
3486  In AMS-\SpecialChar LaTeX
3487 ,
3488  there is,
3489  in fact,
3490  an opportunity to define an unlimited variety of `theorem' environments.
3491  However,
3492  the AMS recommends the environments that are available in \SpecialChar LyX
3493 .
3494  
3495 \end_layout
3496
3497 \begin_layout Standard
3498 The following environments—
3499 as well as the standard environments,
3500  such as 
3501 \begin_inset Flex Noun
3502 status collapsed
3503
3504 \begin_layout Plain Layout
3505 section
3506 \end_layout
3507
3508 \end_inset
3509
3510 ,
3511  
3512 \begin_inset Flex Noun
3513 status collapsed
3514
3515 \begin_layout Plain Layout
3516 bibliography
3517 \end_layout
3518
3519 \end_inset
3520
3521 ,
3522  
3523 \begin_inset Flex Noun
3524 status collapsed
3525
3526 \begin_layout Plain Layout
3527 title
3528 \end_layout
3529
3530 \end_inset
3531
3532 ,
3533  
3534 \begin_inset Flex Noun
3535 status collapsed
3536
3537 \begin_layout Plain Layout
3538 author
3539 \end_layout
3540
3541 \end_inset
3542
3543 ,
3544  and 
3545 \begin_inset Flex Noun
3546 status collapsed
3547
3548 \begin_layout Plain Layout
3549 date
3550 \end_layout
3551
3552 \end_inset
3553
3554
3555 are provided by 
3556 \begin_inset Flex Code
3557 status collapsed
3558
3559 \begin_layout Plain Layout
3560 article (AMS)
3561 \end_layout
3562
3563 \end_inset
3564
3565  and 
3566 \begin_inset Flex Code
3567 status collapsed
3568
3569 \begin_layout Plain Layout
3570 book (AMS)
3571 \end_layout
3572
3573 \end_inset
3574
3575 :
3576 \end_layout
3577
3578 \begin_layout Description
3579 Address This should be the author's permanent address.
3580 \end_layout
3581
3582 \begin_layout Description
3583 Current
3584 \begin_inset space ~
3585 \end_inset
3586
3587 Address This should be the author's temporary address at the time of submission,
3588  if different from the Address.
3589 \end_layout
3590
3591 \begin_layout Description
3592 Email Author's e-mail address
3593 \end_layout
3594
3595 \begin_layout Description
3596 URL Author's Web address,
3597  if desired.
3598 \end_layout
3599
3600 \begin_layout Description
3601 Keywords Key words or phrases used to identify specific topics discussed in the paper.
3602 \end_layout
3603
3604 \begin_layout Description
3605 Subjectclass These refer to the AMS Subject Classifications,
3606  published and described in 
3607 \emph on
3608 Mathematical Reviews
3609 \emph default
3610 .
3611  These are also available online at the AMS cites listed above.
3612 \end_layout
3613
3614 \begin_layout Description
3615 Thanks
3616 \end_layout
3617
3618 \begin_layout Description
3619 Dedicatory
3620 \end_layout
3621
3622 \begin_layout Description
3623 Translator
3624 \end_layout
3625
3626 \begin_layout Standard
3627 The following environments are provided by both the 
3628 \change_deleted 564990737 1672345566
3629
3630 \begin_inset Flex Code
3631 status collapsed
3632
3633 \begin_layout Plain Layout
3634 Theorems
3635 \end_layout
3636
3637 \end_inset
3638
3639
3640 \change_inserted 564990737 1672345566
3641
3642 \family sans
3643 Standard Theorems
3644 \change_unchanged
3645
3646 \family default
3647  and 
3648 \change_deleted 564990737 1672345580
3649
3650 \begin_inset Flex Code
3651 status collapsed
3652
3653 \begin_layout Plain Layout
3654 Theorems (AMS)
3655 \end_layout
3656
3657 \end_inset
3658
3659
3660 \change_inserted 564990737 1672345580
3661
3662 \family sans
3663 AMS Theorems
3664 \change_unchanged
3665
3666 \family default
3667  modules,
3668  in the latter case in both 
3669 \change_deleted -712698321 1673084072
3670 starred (
3671 \change_unchanged
3672 unnumbered
3673 \change_deleted -712698321 1673084073
3674 )
3675 \change_unchanged
3676  and 
3677 \change_deleted -712698321 1673084075
3678 unstarred (
3679 \change_unchanged
3680 numbered
3681 \change_deleted -712698321 1673084077
3682 )
3683 \change_unchanged
3684  versions.
3685  These same environments are provided only in the starred versions by the 
3686 \change_deleted 564990737 1672345596
3687
3688 \begin_inset Flex Code
3689 status collapsed
3690
3691 \begin_layout Plain Layout
3692 Theorems (Starred)
3693 \end_layout
3694
3695 \end_inset
3696
3697
3698 \change_inserted 564990737 1672345596
3699
3700 \family sans
3701 Standard Theorems
3702 \change_inserted -712698321 1673084060
3703  (Unnumbered)
3704 \change_unchanged
3705
3706 \family default
3707  module:
3708 \end_layout
3709
3710 \begin_layout Theorem
3711 This is typically used for the statements of major results.
3712  
3713 \end_layout
3714
3715 \begin_layout Corollary*
3716 This is used for statements which follow fairly directly from previous statements.
3717  Again,
3718  these can be major results.
3719  
3720 \end_layout
3721
3722 \begin_layout Lemma
3723 These are smaller results needed to prove other statements.
3724 \end_layout
3725
3726 \begin_layout Proposition
3727 These are less major results which (hopefully) add to the general theory being discussed.
3728 \end_layout
3729
3730 \begin_layout Conjecture
3731 These are statements provided without justification,
3732  which the author does not know how to prove,
3733  but which seem to be true (to the author,
3734  at least).
3735 \end_layout
3736
3737 \begin_layout Definition*
3738 Guess what this is for.
3739  The font is different for this environment than for the previous ones.
3740  
3741 \end_layout
3742
3743 \begin_layout Example*
3744 Used for examples illustrating proven results.
3745 \end_layout
3746
3747 \begin_layout Problem
3748 It's not really known what this is for.
3749  You should figure it out.
3750 \end_layout
3751
3752 \begin_layout Exercise*
3753 Write a description for this one.
3754 \end_layout
3755
3756 \begin_layout Remark
3757 This environment is also a type of theorem,
3758  usually a lesser sort of observation.
3759 \end_layout
3760
3761 \begin_layout Claim*
3762 Often used in the course of giving a proof of a larger result.
3763 \end_layout
3764
3765 \begin_layout Case
3766 Generally,
3767  these are used to break up long arguments,
3768  using specific instances of some condition.
3769  
3770 \end_layout
3771
3772 \begin_layout Case
3773 The numbering scheme for cases is on its own,
3774  not together with other numbered statements.
3775  
3776 \end_layout
3777
3778 \begin_layout Proof
3779 At the end of this environment,
3780  a QED symbol (usually a square,
3781  but it can vary with different styles) is placed.
3782  If you want to have other environments within this one—
3783 for example,
3784  Case environments—
3785 and have the QED symbol appear only after them,
3786  then the other environments need to be nested within the proof environment.
3787  See the section 
3788 \emph on
3789 Nesting Environments
3790 \emph default
3791  of the 
3792 \emph on
3793 User's Guide
3794 \emph default
3795  for information on nesting.
3796 \end_layout
3797
3798 \begin_layout Fact
3799
3800 \change_inserted 564990737 1672345651
3801 Used in a way similar to Proposition,
3802  though perhaps lower on the scale.
3803 \end_layout
3804
3805 \begin_layout Standard
3806 And these environments are provided by 
3807 \change_deleted 564990737 1672345684
3808
3809 \begin_inset Flex Code
3810 status collapsed
3811
3812 \begin_layout Plain Layout
3813 Theorems (AMS-Extended)
3814 \end_layout
3815
3816 \end_inset
3817
3818
3819 \change_inserted 564990737 1672345689
3820
3821 \family sans
3822 AMS Theorems (Extended
3823 \family default
3824 )
3825 \change_unchanged
3826 :
3827 \end_layout
3828
3829 \begin_layout Criterion*
3830 A required condition.
3831 \end_layout
3832
3833 \begin_layout Algorithm*
3834 A general procedure to be used.
3835 \end_layout
3836
3837 \begin_layout Axiom*
3838 This is a property or statement taken as true within the system being discussed.
3839 \end_layout
3840
3841 \begin_layout Condition*
3842 Sometimes used to state a condition assumed within the present context of discussion.
3843 \end_layout
3844
3845 \begin_layout Note*
3846 Similar to a Remark.
3847 \end_layout
3848
3849 \begin_layout Notation*
3850 Used for the explanation of,
3851  yes,
3852  notation.
3853 \end_layout
3854
3855 \begin_layout Summary
3856 Do we really need to tell you?
3857  
3858 \end_layout
3859
3860 \begin_layout Standard
3861
3862 \change_deleted -712698321 1675595089
3863 Acknowledgement.
3864 \change_unchanged
3865
3866 \end_layout
3867
3868 \begin_layout Conclusion*
3869 Sometimes used at the end of a long train of argument.
3870 \change_deleted 564990737 1672345729
3871
3872 \end_layout
3873
3874 \begin_layout Fact
3875
3876 \change_deleted 564990737 1672345638
3877 Used in a way similar to Proposition,
3878  though perhaps lower on the scale.
3879 \change_inserted 564990737 1672345720
3880
3881 \end_layout
3882
3883 \begin_layout Assumption*
3884
3885 \change_inserted 564990737 1672345721
3886 Assumption
3887 \end_layout
3888
3889 \begin_layout Question*
3890
3891 \change_inserted 564990737 1672345721
3892 Question
3893 \end_layout
3894
3895 \begin_layout Standard
3896
3897 \change_inserted 564990737 1672345721
3898 There are ten more Maths modules available including several offering options ordered on 
3899 \family sans
3900 (Numbered by Type \SpecialChar ldots
3901 )
3902 \family default
3903 .
3904 \change_unchanged
3905
3906 \end_layout
3907
3908 \begin_layout Standard
3909 In addition,
3910  the AMS classes automatically provide the AMS \SpecialChar LaTeX
3911  and AMS fonts packages.
3912  They need to be available on your system in order to use these environments.
3913 \end_layout
3914
3915 \begin_layout Subsection
3916
3917 \change_inserted 564990737 1671383236
3918 \begin_inset CommandInset label
3919 LatexCommand label
3920 name "subsec:Extra-font-sizes"
3921
3922 \end_inset
3923
3924 Extra font sizes
3925 \end_layout
3926
3927 \begin_layout Standard
3928
3929 \change_inserted 564990737 1671383236
3930 The “Extra font sizes” collection provides the document classes 
3931 \family sans
3932 article
3933 \begin_inset space \thinspace{}
3934 \end_inset
3935
3936 (with extra font sizes)
3937 \family default
3938 ,
3939  
3940 \family sans
3941 book
3942 \begin_inset space \thinspace{}
3943 \end_inset
3944
3945 (with extra font sizes)
3946 \family default
3947 ,
3948  
3949 \family sans
3950 letter
3951 \begin_inset space \thinspace{}
3952 \end_inset
3953
3954 (with extra font sizes)
3955 \family default
3956  and 
3957 \family sans
3958 report
3959 \begin_inset space \thinspace{}
3960 \end_inset
3961
3962 (with extra font sizes)
3963 \family default
3964  which use the 
3965 \family typewriter
3966 article.cls
3967 \family default
3968 ,
3969  
3970 \family typewriter
3971 book.cls
3972 \family default
3973 ,
3974  
3975 \family typewriter
3976 letter.cls
3977 \family default
3978  and 
3979 \family typewriter
3980 report.cls
3981 \family default
3982  document classes respectively but offer the additional 
3983 \family sans
3984 \bar under
3985 B
3986 \bar default
3987 ase
3988 \begin_inset space ~
3989 \end_inset
3990
3991 Size
3992 \family default
3993  options 8,
3994  9,
3995  14,
3996  17 and 20 in the 
3997 \family sans
3998 \bar under
3999 D
4000 \bar default
4001 ocument\SpecialChar menuseparator
4002
4003 \bar under
4004 S
4005 \bar default
4006 ettings\SpecialChar menuseparator
4007 Fonts
4008 \family default
4009  dialog.
4010 \end_layout
4011
4012 \begin_layout Subsection
4013
4014 \change_inserted 564990737 1671383236
4015 Hebrew
4016 \end_layout
4017
4018 \begin_layout Standard
4019
4020 \change_inserted 564990737 1671383236
4021 The document classes 
4022 \family sans
4023 article
4024 \begin_inset space \thinspace{}
4025 \end_inset
4026
4027 (Hebrew)
4028 \family default
4029  and 
4030 \family sans
4031 letter
4032 \begin_inset space \thinspace{}
4033 \end_inset
4034
4035 (Hebrew)
4036 \family default
4037  use the 
4038 \family typewriter
4039 article.cl
4040 \family sans
4041 s
4042 \family default
4043  and 
4044 \family typewriter
4045 letter.cls
4046 \family default
4047  document classes to facilitate the use of Hebrew in \SpecialChar LyX
4048 .
4049 \end_layout
4050
4051 \begin_layout Subsection
4052
4053 \change_inserted 564990737 1671383236
4054 \begin_inset CommandInset label
4055 LatexCommand label
4056 name "subsec:Japanese"
4057
4058 \end_inset
4059
4060 Japanese
4061 \change_inserted -712698321 1675848645
4062  (Standard Classes)
4063 \change_inserted 564990737 1671383236
4064
4065 \end_layout
4066
4067 \begin_layout Standard
4068
4069 \change_inserted -712698321 1676025662
4070 \SpecialChar LyX
4071  included a collection of several bundles that aim to facilitate typesetting Japanese documents.
4072  The bundles have been developed at different times,
4073  they thus support different typesetting engines and features.
4074  This collection is the oldest one.
4075  It adjusts the \SpecialChar LaTeX
4076  standard classes to requirements of Japanese typesetting,
4077  for horizontal and vertical writing.
4078  The collection includes 
4079 \family sans
4080 Japanese Article
4081 \change_deleted 545138413 1676132735
4082  
4083 \change_inserted 545138413 1676132735
4084
4085 \begin_inset space \thinspace{}
4086 \end_inset
4087
4088
4089 \change_inserted -712698321 1676533466
4090 (Standard Class)
4091 \family default
4092 ,
4093  
4094 \family sans
4095 Japanese Article
4096 \begin_inset space \thinspace{}
4097 \end_inset
4098
4099 (Standard Class,
4100  vertical Writing)
4101 \family default
4102 ,
4103  
4104 \family sans
4105 Japanese Book
4106 \begin_inset space \thinspace{}
4107 \end_inset
4108
4109 (Standard Class)
4110 \family default
4111 ,
4112  
4113 \family sans
4114 Japanese Book
4115 \begin_inset space \thinspace{}
4116 \end_inset
4117
4118 (Standard Class,
4119  vertical Writing)
4120 \family default
4121 ,
4122  
4123 \family sans
4124 Japanese Report
4125 \begin_inset space \thinspace{}
4126 \end_inset
4127
4128 (Japanese Standard Class)
4129 \family default
4130 ,
4131  and
4132 \family sans
4133  Japanese Report
4134 \begin_inset space \thinspace{}
4135 \end_inset
4136
4137 (Standard Class,
4138  vertical Writing)
4139 \family default
4140 ,
4141  which all work with 
4142 \begin_inset Quotes eld
4143 \end_inset
4144
4145 classic
4146 \begin_inset Quotes erd
4147 \end_inset
4148
4149  engines tailored for Japanese,
4150  p\SpecialChar LaTeX
4151  and up\SpecialChar LaTeX
4152 .
4153 \end_layout
4154
4155 \begin_layout Standard
4156
4157 \change_inserted -712698321 1676026113
4158 For the use with the more modern Lua\SpecialChar LaTeX
4159  typesetting engine,
4160  the collection also includes dedicated classes 
4161 \family sans
4162 Japanese Article
4163 \change_deleted 545138413 1676132664
4164  
4165 \change_inserted 545138413 1676132730
4166
4167 \begin_inset space \thinspace{}
4168 \end_inset
4169
4170
4171 \change_inserted -712698321 1676533517
4172 (Standard Class for LuaTeX),
4173  Japanese Article
4174 \begin_inset space \thinspace{}
4175 \end_inset
4176
4177 (Standard Class for LuaTeX,
4178  vertical Writing),
4179  Japanese Book
4180 \begin_inset space \thinspace{}
4181 \end_inset
4182
4183 (Standard Class for LuaTeX)
4184 \family default
4185 ,
4186  
4187 \family sans
4188 Japanese Book
4189 \begin_inset space \thinspace{}
4190 \end_inset
4191
4192 (Standard Class for LuaTeX,
4193  vertical Writing)
4194 \family default
4195 ,
4196  
4197 \change_deleted 545138413 1676132664
4198 and 
4199 \change_inserted -712698321 1676533501
4200
4201 \family sans
4202 Japanese Report
4203 \begin_inset space \thinspace{}
4204 \end_inset
4205
4206 (Japanese Standard Class for LuaTeX)
4207 \family default
4208 ,
4209  
4210 \change_deleted -712698321 1676533511
4211
4212 \family sans
4213 Japanese Article
4214 \begin_inset space \thinspace{}
4215 \end_inset
4216
4217 (Standard Class for LuaTeX,
4218  Vertical Writing),
4219  Japanese Book
4220 \begin_inset space \thinspace{}
4221 \end_inset
4222
4223 (Standard Class for LuaTeX,
4224  Vertical Writing)
4225 \family default
4226 ,
4227  
4228 \change_inserted 545138413 1676132454
4229 and 
4230 \family sans
4231 Japanese Report
4232 \begin_inset space \thinspace{}
4233 \end_inset
4234
4235 (Japanese Standard Class for LuaTeX,
4236  
4237 \change_deleted -712698321 1676533483
4238 V
4239 \change_inserted -712698321 1676533501
4240 v
4241 \change_inserted 545138413 1676132454
4242 ertical Writing)
4243 \family default
4244 ,
4245  
4246 \change_inserted -712698321 1676533501
4247 provided by the 
4248 \family sans
4249 luatexja
4250 \family default
4251  \SpecialChar LaTeX
4252  package.
4253
4254 \change_deleted 545138413 1676132664
4255  These classes support both horizontal and vertical writing.
4256 \change_inserted -712698321 1676534105
4257
4258 \end_layout
4259
4260 \begin_layout Standard
4261
4262 \change_inserted -712698321 1676534227
4263 Templates for the Lua\SpecialChar LaTeX
4264  classes can be found in 
4265 \family sans
4266 File\SpecialChar menuseparator
4267 New From Template
4268 \family default
4269  in the respective category (
4270 \family sans
4271 Articles
4272 \family default
4273 ,
4274  
4275 \family sans
4276 Books
4277 \family default
4278 ,
4279  or 
4280 \family sans
4281 Reports
4282 \family default
4283 ).
4284 \change_unchanged
4285
4286 \end_layout
4287
4288 \begin_layout Subsection
4289
4290 \change_inserted -712698321 1675848929
4291 \begin_inset CommandInset label
4292 LatexCommand label
4293 name "subsec:Japanese-JS"
4294
4295 \end_inset
4296
4297 Japanese (JS Bundle)
4298 \change_unchanged
4299
4300 \end_layout
4301
4302 \begin_layout Standard
4303
4304 \change_inserted -712698321 1675849034
4305 This collection includes improved versions of the classes included in 
4306 \family sans
4307 Japanese (Standard Classes)
4308 \family default
4309  (see
4310 \begin_inset space ~
4311 \end_inset
4312
4313
4314 \begin_inset CommandInset ref
4315 LatexCommand ref
4316 reference "subsec:Japanese"
4317
4318 \end_inset
4319
4320 ).
4321  It includes 
4322 \change_deleted -712698321 1675849038
4323 The document classes 
4324 \change_inserted -712698321 1673089024
4325
4326 \family sans
4327 Japanese 
4328 \change_deleted -712698321 1673089025
4329 a
4330 \change_inserted -712698321 1673089025
4331 A
4332 \change_inserted 564990737 1671383236
4333 rticle
4334 \begin_inset space \thinspace{}
4335 \end_inset
4336
4337 (
4338 \change_deleted -712698321 1673089027
4339 Japanese 
4340 \change_inserted 564990737 1671383236
4341 JS 
4342 \change_deleted -712698321 1675848222
4343 Class
4344 \change_inserted -712698321 1675848223
4345 Bundle
4346 \change_inserted 564990737 1671383236
4347 )
4348 \change_deleted -712698321 1675849103
4349
4350 \family default
4351 ,
4352
4353 \change_inserted 564990737 1671383236
4354
4355 \family sans
4356  
4357 \change_deleted -712698321 1675849055
4358 article
4359 \begin_inset space \thinspace{}
4360 \end_inset
4361
4362 (Japanese Standard Class Vertical Writing)
4363 \family default
4364 ,
4365  
4366 \family sans
4367 article
4368 \begin_inset space \thinspace{}
4369 \end_inset
4370
4371 (Japanese Standard Class)
4372 \family default
4373 ,
4374  
4375 \change_inserted -712698321 1675849107
4376 and 
4377 \family sans
4378 Japanese 
4379 \change_deleted -712698321 1673089053
4380 b
4381 \change_inserted -712698321 1673089064
4382 B
4383 \change_inserted 564990737 1671383236
4384 ook
4385 \begin_inset space \thinspace{}
4386 \end_inset
4387
4388 (
4389 \change_deleted -712698321 1673089067
4390 Japanese 
4391 \change_inserted 564990737 1671383236
4392 JS 
4393 \change_deleted -712698321 1675849059
4394 Class
4395 \change_inserted -712698321 1675849059
4396 Bundle
4397 \change_inserted 564990737 1671383236
4398 )
4399 \change_deleted -712698321 1675849095
4400
4401 \family default
4402 ,
4403
4404 \family sans
4405  book
4406 \begin_inset space \thinspace{}
4407 \end_inset
4408
4409 (Japanese Standard Class Vertical Writing)
4410 \family default
4411 ,
4412  
4413 \family sans
4414 book
4415 \begin_inset space \thinspace{}
4416 \end_inset
4417
4418 (Japanese Standard Class)
4419 \family default
4420 ,
4421  
4422 \family sans
4423 report
4424 \begin_inset space \thinspace{}
4425 \end_inset
4426
4427 (Japanese Vertical Writing)
4428 \family default
4429  and 
4430 \family sans
4431 report
4432 \begin_inset space \thinspace{}
4433 \end_inset
4434
4435 (Japanese Standard Class)
4436 \family default
4437  provide document classes for the Japanese language
4438 \change_inserted 564990737 1671383236
4439 .
4440
4441 \change_inserted -712698321 1676026196
4442  A report class can be obtained by using 
4443 \family sans
4444 Japanese Book
4445 \begin_inset space \thinspace{}
4446 \end_inset
4447
4448 (JS Bundle)
4449 \family default
4450  with option 
4451 \family sans
4452 report
4453 \family default
4454  in 
4455 \family sans
4456 Document\SpecialChar menuseparator
4457 Settings\SpecialChar menuseparator
4458 Document Class\SpecialChar menuseparator
4459 Class Options\SpecialChar menuseparator
4460 Custom
4461 \family default
4462 .
4463  All these classes work with 
4464 \begin_inset Quotes eld
4465 \end_inset
4466
4467 classic
4468 \begin_inset Quotes erd
4469 \end_inset
4470
4471  engines tailored for Japanese,
4472  p\SpecialChar LaTeX
4473  and up\SpecialChar LaTeX
4474 .
4475 \end_layout
4476
4477 \begin_layout Standard
4478
4479 \change_inserted -712698321 1676026178
4480 For the use with the more modern Lua\SpecialChar LaTeX
4481  typesetting engine,
4482  the collection also includes dedicated classes 
4483 \family sans
4484 Japanese Article (JS Bundle for LuaTeX),
4485  Japanese Book
4486 \begin_inset space \thinspace{}
4487 \end_inset
4488
4489 (JS Bundle for LuaTeX)
4490 \family default
4491 ,
4492  and 
4493 \family sans
4494 Japanese Report
4495 \begin_inset space \thinspace{}
4496 \end_inset
4497
4498 (JS Bundle)
4499 \family default
4500 ,
4501  provided by the 
4502 \family sans
4503 luatexja
4504 \family default
4505  \SpecialChar LaTeX
4506  package.
4507
4508 \change_deleted 545138413 1676132499
4509  These classes support both horizontal and vertical writing.
4510 \change_inserted -712698321 1676534250
4511
4512 \end_layout
4513
4514 \begin_layout Standard
4515
4516 \change_inserted -712698321 1676534251
4517 Templates for the Lua\SpecialChar LaTeX
4518  classes can be found in 
4519 \family sans
4520 File\SpecialChar menuseparator
4521 New From Template
4522 \family default
4523  in the respective category (
4524 \family sans
4525 Articles
4526 \family default
4527 ,
4528  
4529 \family sans
4530 Books
4531 \family default
4532 ,
4533  or 
4534 \family sans
4535 Reports
4536 \family default
4537 ).
4538 \change_unchanged
4539
4540 \end_layout
4541
4542 \begin_layout Subsection
4543
4544 \change_inserted -712698321 1675848572
4545 \begin_inset CommandInset label
4546 LatexCommand label
4547 name "subsec:Japanese-BX"
4548
4549 \end_inset
4550
4551 Japanese (BX Bundle)
4552 \end_layout
4553
4554 \begin_layout Standard
4555
4556 \change_inserted -712698321 1676026685
4557 This bundle contains the document classes 
4558 \family sans
4559 Japanese Article
4560 \begin_inset space \thinspace{}
4561 \end_inset
4562
4563 (BX Bundle)
4564 \family default
4565 ,
4566
4567 \family sans
4568  Japanese Book
4569 \begin_inset space \thinspace{}
4570 \end_inset
4571
4572 (BX Bundle)
4573 \family default
4574 ,
4575  and 
4576 \family sans
4577 Japanese Report
4578 \begin_inset space \thinspace{}
4579 \end_inset
4580
4581 (BX Bundle)
4582 \family default
4583  which provide alternative document classes for Japanese documents.
4584  Furthermore,
4585  a class 
4586 \family sans
4587 Japanese Slides (BX Bundle)
4588 \family default
4589  for presentation slides,
4590  is included.
4591  As opposed to the classes of the 
4592 \family sans
4593 Standard Classes
4594 \family default
4595  and 
4596 \family sans
4597 JS 
4598 \family default
4599 bundles (sec.
4600  
4601 \begin_inset CommandInset ref
4602 LatexCommand ref
4603 reference "subsec:Japanese"
4604
4605 \end_inset
4606
4607  and 
4608 \begin_inset CommandInset ref
4609 LatexCommand ref
4610 reference "subsec:Japanese-JS"
4611
4612 \end_inset
4613
4614 ),
4615  which support only p\SpecialChar LaTeX
4616  and up\SpecialChar LaTeX
4617  out of the box (and Lua\SpecialChar LaTeX
4618  only through the extra classes added by the 
4619 \family sans
4620 luatexja
4621 \family default
4622  \SpecialChar LaTeX
4623  package),
4624  the classes of this bundle also support pdf\SpecialChar LaTeX
4625 ,
4626  Xe\SpecialChar LaTeX
4627  and Lua\SpecialChar LaTeX
4628  directly,
4629  with the aid of suitable packages that provide capability of Japanese typesetting.
4630 \end_layout
4631
4632 \begin_layout Subsection
4633
4634 \change_inserted -712698321 1675850366
4635 \begin_inset CommandInset label
4636 LatexCommand label
4637 name "subsec:Japanese-JLReq"
4638
4639 \end_inset
4640
4641 Japanese (JLReq Class)
4642 \end_layout
4643
4644 \begin_layout Standard
4645
4646 \change_inserted -712698321 1675850768
4647 This bundle draws on the 
4648 \family sans
4649 jlreq
4650 \family default
4651  class which faithfully traces the standard of 
4652 \emph on
4653 Requirements for Japanese Text Layout
4654 \emph default
4655  set by the World Wide Web Consortium (W3C,
4656  see 
4657 \begin_inset Flex URL
4658 status collapsed
4659
4660 \begin_layout Plain Layout
4661
4662 \change_inserted -712698321 1675850769
4663
4664 https://www.w3.org/TR/jlreq/?lang=en
4665 \change_unchanged
4666
4667 \end_layout
4668
4669 \end_inset
4670
4671 ).
4672  It can be used with Lua\SpecialChar LaTeX
4673  as well as p\SpecialChar LaTeX
4674  and up\SpecialChar LaTeX
4675 .
4676 \end_layout
4677
4678 \begin_layout Standard
4679
4680 \change_inserted -712698321 1675850585
4681 LyX provides layouts for 
4682 \family sans
4683 Japanese Article
4684 \begin_inset space \thinspace{}
4685 \end_inset
4686
4687 (JLReq Class)
4688 \family default
4689 ,
4690
4691 \family sans
4692  Japanese Book
4693 \begin_inset space \thinspace{}
4694 \end_inset
4695
4696 (JLReq Class)
4697 \family default
4698 ,
4699  and 
4700 \family sans
4701 Japanese Report
4702 \begin_inset space \thinspace{}
4703 \end_inset
4704
4705 (JLReq Class)
4706 \family default
4707  which are all derived from the 
4708 \family sans
4709 jlreq
4710 \family default
4711  \SpecialChar LaTeX
4712  class via specific class options.
4713 \end_layout
4714
4715 \begin_layout Standard
4716
4717 \change_inserted -712698321 1675850701
4718 An example article document is available at 
4719 \family sans
4720 File\SpecialChar menuseparator
4721 Open Example\SpecialChar menuseparator
4722 Articles\SpecialChar menuseparator
4723 Japanese Article (JLReq Class)
4724 \family default
4725 .
4726  English documentation is available at 
4727 \begin_inset Flex URL
4728 status collapsed
4729
4730 \begin_layout Plain Layout
4731
4732 \change_inserted -712698321 1675850350
4733
4734 http://mirrors.ctan.org/macros/jptex/latex/jlreq/jlreq.pdf
4735 \change_unchanged
4736
4737 \end_layout
4738
4739 \end_inset
4740
4741 .
4742 \change_inserted 564990737 1671383236
4743
4744 \end_layout
4745
4746 \begin_layout Subsection
4747
4748 \change_inserted 564990737 1672429136
4749 \begin_inset CommandInset label
4750 LatexCommand label
4751 name "subsec:KOMA-Script"
4752
4753 \end_inset
4754
4755 KOMA-Script
4756 \end_layout
4757
4758 \begin_layout Standard
4759
4760 \change_inserted 564990737 1672429136
4761 Original by 
4762 \noun on
4763 Bernd Rellermeyer
4764 \noun default
4765 ;
4766  updated by 
4767 \noun on
4768 Jürgen Spitzmüller
4769 \noun default
4770  and the \SpecialChar LyX
4771  Team
4772 \change_deleted 564990737 1672429136
4773 Koma-Script
4774 \end_layout
4775
4776 \begin_layout Standard
4777
4778 \change_deleted 564990737 1672429136
4779 by 
4780 \noun on
4781 Bernd Rellermeyer
4782 \change_unchanged
4783
4784 \end_layout
4785
4786 \begin_layout Subsubsection
4787 Overview
4788 \change_inserted 564990737 1672429161
4789
4790 \end_layout
4791
4792 \begin_layout Standard
4793
4794 \change_inserted 564990737 1672429162
4795 The KOMA-Script collection of document classes is a development of the Script classes created by Frank Neukam in the early 1990s;
4796  it was formally launched with the addition of a letter class in 1994.
4797  Since then,
4798  a second letter class has been added.
4799  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.
4800  
4801 \change_unchanged
4802
4803 \end_layout
4804
4805 \begin_layout Standard
4806 The \SpecialChar LyX
4807  document classes 
4808 \change_deleted -712698321 1673089779
4809
4810 \emph on
4811 article (koma-script)
4812 \change_inserted -712698321 1673089784
4813 KOMA-Script Article
4814 \change_unchanged
4815
4816 \emph default
4817 ,
4818  
4819 \change_deleted -712698321 1673089790
4820
4821 \emph on
4822 report (koma-script)
4823 \change_inserted -712698321 1673089794
4824 KOMA-Script Report
4825 \change_unchanged
4826
4827 \emph default
4828 ,
4829  
4830 \change_deleted -712698321 1673089790
4831
4832 \emph on
4833 book
4834 \emph default
4835  
4836 \emph on
4837 (koma-script)
4838 \change_inserted -712698321 1673089771
4839 KOMA-Script Book
4840 \change_unchanged
4841
4842 \emph default
4843 ,
4844  and 
4845 \change_inserted -712698321 1673089799
4846
4847 \emph on
4848 KOMA-Script 
4849 \change_deleted -712698321 1673089802
4850 l
4851 \change_inserted -712698321 1673089802
4852 L
4853 \change_unchanged
4854 etter
4855 \change_deleted -712698321 1673089811
4856
4857 \emph default
4858  
4859 \emph on
4860 (koma-script)
4861 \change_unchanged
4862
4863 \emph default
4864  correspond to the \SpecialChar LaTeX
4865  document classes 
4866 \family typewriter
4867 scrartcl.cls
4868 \family default
4869 ,
4870  
4871 \family typewriter
4872 scrreprt.cls
4873 \family default
4874 ,
4875  
4876 \family typewriter
4877 scrbook.cls
4878 \family default
4879 ,
4880  and 
4881 \family typewriter
4882 scrlettr.cls
4883 \family default
4884 ,
4885  resp.
4886 \begin_inset space ~
4887 \end_inset
4888
4889 of the Koma-Script family.
4890  They are replacements for the standard document classes 
4891 \family typewriter
4892 article.cls
4893 \family default
4894 ,
4895  
4896 \family typewriter
4897 report.cls
4898 \family default
4899 ,
4900  
4901 \family typewriter
4902 book.cls
4903 \family default
4904  and 
4905 \family typewriter
4906 letter.cls
4907 \family default
4908 ,
4909  resp.,
4910  and fit better to European typography conventions in a number of points.
4911 \end_layout
4912
4913 \begin_layout Itemize
4914
4915 \change_deleted 564990737 1672429262
4916 Standard character size is
4917 \change_inserted 564990737 1672429263
4918 The base character sizes when you select a KOMA-Script class are
4919 \change_unchanged
4920  11pt in 
4921 \change_deleted -712698321 1673089877
4922
4923 \emph on
4924 article (koma-script)
4925 \change_inserted -712698321 1673089877
4926 KOMA-Script Article
4927 \change_unchanged
4928
4929 \emph default
4930 ,
4931  
4932 \change_deleted -712698321 1673089886
4933
4934 \emph on
4935 report (koma-script)
4936 \change_inserted -712698321 1673089886
4937 KOMA-Script Report
4938 \change_unchanged
4939
4940 \emph default
4941 ,
4942  and 
4943 \change_deleted -712698321 1673089893
4944
4945 \emph on
4946 book (koma-script)
4947 \change_inserted -712698321 1673089893
4948 KOMA-Script Book
4949 \change_deleted 564990737 1672429267
4950
4951 \emph default
4952 ,
4953
4954 \change_unchanged
4955  and 12pt in 
4956 \change_deleted -712698321 1673089903
4957
4958 \emph on
4959 letter (koma-script)
4960 \change_inserted -712698321 1673089903
4961 KOMA-Script Letter
4962 \change_unchanged
4963
4964 \emph default
4965 .
4966 \end_layout
4967
4968 \begin_layout Itemize
4969 Headings,
4970  labels of the description environment,
4971  and a number of elements of the 
4972 \change_deleted -712698321 1673089925
4973
4974 \emph on
4975 letter (koma-script)
4976 \change_inserted -712698321 1673089925
4977 KOMA-Script Letter
4978 \change_unchanged
4979
4980 \emph default
4981  document class are set in a bold sans serif font.
4982 \begin_inset Foot
4983 status collapsed
4984
4985 \begin_layout Plain Layout
4986 There is a big difference between the bold sans serif old cm fonts and new ec fonts,
4987  especially in the appearance of headings.
4988  In comparison,
4989  the ec bold sans serif fonts look a bit thin.
4990  Here the \SpecialChar LaTeX
4991  package 
4992 \family typewriter
4993 cmsd.sty by
4994 \family default
4995  
4996 \shape smallcaps
4997 Walter Schmidt
4998 \shape default
4999  helps to produce the 
5000 \begin_inset Quotes eld
5001 \end_inset
5002
5003 usual
5004 \begin_inset Quotes erd
5005 \end_inset
5006
5007  appearance when using the ec fonts.
5008 \end_layout
5009
5010 \end_inset
5011
5012  The numbering of chapter headings is made in the same way as the numbering of section headings,
5013  that is without the extra line 
5014 \begin_inset Quotes eld
5015 \end_inset
5016
5017 Chapter\SpecialChar ldots
5018
5019 \begin_inset Quotes erd
5020 \end_inset
5021
5022 .
5023  In addition,
5024  the appearance of the headings can be modified by using a number of options (in \SpecialChar LyX
5025  to be entered in the field 
5026 \family sans
5027 Extra
5028 \begin_inset space ~
5029 \end_inset
5030
5031 Options
5032 \family default
5033  of the dialog 
5034 \family sans
5035 Layout\SpecialChar menuseparator
5036 Document
5037 \family default
5038 ).
5039  
5040 \end_layout
5041
5042 \begin_layout Itemize
5043
5044 \change_deleted 564990737 1672429310
5045 The main means in the Koma-Script document classes to design the type area are the options 
5046 \family sans
5047 BCOR
5048 \family default
5049  and 
5050 \family sans
5051 DIV
5052 \family default
5053  (in \SpecialChar LyX
5054  to be entered in the extra class options field in the dialog 
5055 \family sans
5056 Document\SpecialChar menuseparator
5057 Settings
5058 \family default
5059 ).
5060  They make a clearer modification of page margins possible as do the options of the dialog 
5061 \family sans
5062 Document\SpecialChar menuseparator
5063 Settings
5064 \family default
5065 .
5066  
5067 \change_inserted 564990737 1672429310
5068 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.
5069  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.
5070  You can change the sizes of the margins by changing the factor by which the page is divided into strips;
5071  the default for an A4 page is 9 and increasing this factor will produce increasingly narrower strips and therefore narrower margins.
5072  
5073 \end_layout
5074
5075 \begin_deeper
5076 \begin_layout Standard
5077
5078 \change_inserted 564990737 1672429310
5079 Whatever the factor,
5080  two strips are allocated to the outer and bottom margins of a two-sided document and one strip to the inner and top margins,
5081  leaving a text area occupying around half the page.
5082  Since most two-sided documents have a binding,
5083  this can make the inner margins appear too narrow;
5084  so you can apply a binding correction to the page which is deducted before the size of the strips is calculated.
5085  
5086 \end_layout
5087
5088 \begin_layout Standard
5089
5090 \change_inserted 564990737 1672429310
5091 The main means in the Koma-Script document classes to design the type area are the options 
5092 \family sans
5093 BCOR
5094 \family default
5095  and 
5096 \family sans
5097 DIV
5098 \family default
5099  entered in 
5100 \family sans
5101 Document\SpecialChar menuseparator
5102 Settings\SpecialChar menuseparator
5103 Document Class\SpecialChar menuseparator
5104 Class Options\SpecialChar menuseparator
5105 Custom
5106 \family default
5107 .
5108  
5109 \end_layout
5110
5111 \begin_layout Standard
5112
5113 \change_inserted 564990737 1672429310
5114 In this document,
5115  the binding correction is 7.5mm which is added in the form 
5116 \family typewriter
5117 BCOR7.5mm
5118 \family default
5119  to 
5120 \family sans
5121 Class
5122 \begin_inset space ~
5123 \end_inset
5124
5125 options\SpecialChar menuseparator
5126 Cus
5127 \bar under
5128 t
5129 \bar default
5130 om
5131 \family default
5132  dialog.
5133  To change the factor to 11,
5134  for example,
5135  add the entry 
5136 \family typewriter
5137 DIV=11
5138 \family default
5139  to the comma separated list of entries in the 
5140 \family sans
5141 Cus
5142 \bar under
5143 t
5144 \bar default
5145 om
5146 \family default
5147  
5148 \family sans
5149 Class
5150 \begin_inset space ~
5151 \end_inset
5152
5153 options
5154 \family default
5155 .
5156  If you want the default value of this factor for a page size other than A4,
5157  add the entry 
5158 \family typewriter
5159 DIV=calc
5160 \family default
5161 .
5162 \end_layout
5163
5164 \begin_layout Standard
5165
5166 \change_inserted 564990737 1672429310
5167 To use the circle method of calculating the page layout,
5168  use 
5169 \family typewriter
5170 DIV=classic
5171 \family default
5172  instead.
5173 \change_unchanged
5174
5175 \end_layout
5176
5177 \end_deeper
5178 \begin_layout Itemize
5179 The \SpecialChar LaTeX
5180  document classes of the Koma-Script family define a number of additional commands.
5181  Those part of it which makes sense in \SpecialChar LyX
5182  is implemented in corresponding paragraph types.
5183 \end_layout
5184
5185 \begin_layout Standard
5186 Detailed descriptions of the \SpecialChar LaTeX
5187  document classes of the Koma-Script family can be found in the Koma-Script documentation 
5188 \emph on
5189 scrguide
5190 \emph default
5191  (German) and 
5192 \emph on
5193 scrguien
5194 \emph default
5195  (English).
5196 \end_layout
5197
5198 \begin_layout Subsubsection
5199
5200 \change_inserted 564990737 1672429358
5201
5202 \series bold
5203 \begin_inset CommandInset label
5204 LatexCommand label
5205 name "subsec:article-(KOMA-Script),-report"
5206
5207 \end_inset
5208
5209
5210 \change_deleted -712698321 1673090826
5211
5212 \series default
5213 article (KOMA-Script)
5214 \change_inserted -712698321 1673090826
5215
5216 \emph on
5217 KOMA-Script Article
5218 \change_inserted 564990737 1672429358
5219
5220 \emph default
5221 ,
5222  
5223 \change_deleted -712698321 1673090830
5224 report (KOMA-Script)
5225 \change_inserted -712698321 1673090840
5226
5227 \emph on
5228 KOMA-Script Report
5229 \change_inserted 564990737 1672429358
5230
5231 \emph default
5232 ,
5233  and 
5234 \change_deleted -712698321 1673090835
5235 book (KOMA-Script)
5236 \change_inserted -712698321 1673090844
5237
5238 \emph on
5239 KOMA-Script Book
5240 \change_deleted 564990737 1672429367
5241
5242 \emph default
5243 article (koma-script),
5244  report (koma-script),
5245  and book (koma-script)
5246 \change_unchanged
5247
5248 \end_layout
5249
5250 \begin_layout Standard
5251 The document classes 
5252 \change_deleted -712698321 1673090858
5253
5254 \emph on
5255 article (koma-script)
5256 \change_inserted -712698321 1673090858
5257 KOMA-Script Article
5258 \change_unchanged
5259
5260 \emph default
5261 ,
5262  
5263 \change_deleted -712698321 1673090862
5264
5265 \emph on
5266 report (koma-script)
5267 \change_inserted -712698321 1673090869
5268 KOMA-Script Report
5269 \change_unchanged
5270
5271 \emph default
5272 ,
5273  and 
5274 \change_deleted -712698321 1673090866
5275
5276 \emph on
5277 book
5278 \emph default
5279  
5280 \emph on
5281 (koma-script)
5282 \change_inserted -712698321 1673090874
5283 KOMA-Script Book
5284 \change_unchanged
5285
5286 \emph default
5287  are implemented in the layout files 
5288 \family typewriter
5289 scrartcl.layout
5290 \family default
5291 ,
5292  
5293 \family typewriter
5294 scrreprt.layout
5295 \family default
5296 ,
5297  and 
5298 \family typewriter
5299 scrbook.layout
5300 \family default
5301 ,
5302  resp.
5303  They contain all the paragraph types of the corresponding standard document classes 
5304 \emph on
5305 article
5306 \emph default
5307 ,
5308  
5309 \emph on
5310 report
5311 \emph default
5312 ,
5313  and 
5314 \emph on
5315 book
5316 \emph default
5317 ,
5318  resp.,
5319  partly modified,
5320  with the exception of the \SpecialChar LyX
5321  specific 
5322 \family sans
5323 List
5324 \family default
5325 -type,
5326  which is replaced by the new 
5327 \family sans
5328 Labeling
5329 \family default
5330 -type having the same functionality.
5331  Beside the 
5332 \family sans
5333 Labeling
5334 \family default
5335 -Type there is a number of new paragraph types added.
5336  They are 
5337 \emph on
5338 not
5339 \emph default
5340  part of 
5341 \emph on
5342 letter (koma-script)
5343 \emph default
5344 .
5345 \end_layout
5346
5347 \begin_layout Itemize
5348
5349 \family sans
5350 Addpart,
5351  Addchap
5352 \family default
5353 ,
5354  
5355 \family sans
5356 Addsec
5357 \family default
5358 :
5359  are equivalents to 
5360 \family sans
5361 Part*,
5362  Chapter*
5363 \family default
5364  and 
5365 \family sans
5366 Section*
5367 \family default
5368 ,
5369  resp.,
5370  additionally inserting an entry in the table of contents.
5371  
5372 \family sans
5373 Addpart
5374 \family default
5375  and 
5376 \family sans
5377 Addchap
5378 \family default
5379  are not contained in 
5380 \emph on
5381 article (koma-script)
5382 \emph default
5383 .
5384 \end_layout
5385
5386 \begin_layout Itemize
5387
5388 \family sans
5389 Addchap*
5390 \family default
5391 ,
5392  
5393 \family sans
5394 Addsec*
5395 \family default
5396 :
5397  behave exactly as 
5398 \family sans
5399 Addchap
5400 \family default
5401  and 
5402 \family sans
5403 Addsec
5404 \family default
5405 ,
5406  resp.,
5407  additionally clearing running heads.
5408  
5409 \family sans
5410 Addchap*
5411 \family default
5412  is not contained in 
5413 \emph on
5414 article (koma-script)
5415 \emph default
5416 .
5417 \begin_inset Foot
5418 status collapsed
5419
5420 \begin_layout Plain Layout
5421 There is also an 
5422 \family typewriter
5423
5424 \backslash
5425 addpart*
5426 \family default
5427  command in 
5428 \emph on
5429 book (koma-script)
5430 \emph default
5431  and in 
5432 \emph on
5433 report (koma-script)
5434 \emph default
5435 ,
5436  but since this is identical to 
5437 \family sans
5438 Part*
5439 \family default
5440 ,
5441  is has not been implemented in \SpecialChar LyX
5442 .
5443 \end_layout
5444
5445 \end_inset
5446
5447
5448 \end_layout
5449
5450 \begin_layout Itemize
5451
5452 \family sans
5453 Minisec
5454 \family default
5455 :
5456  generates a heading directly above the following paragraph in the standard character size without affecting the structure of the document.
5457 \end_layout
5458
5459 \begin_layout Itemize
5460
5461 \family sans
5462 Captionabove
5463 \family default
5464  and 
5465 \family sans
5466 Captionbelow
5467 \family default
5468  are special captions which respect the different space settings needed for captions placed above or below an element (if you follow strict typographic rules,
5469  you might want to place table captions always above the table).
5470  You can also use the class option 
5471 \family typewriter
5472 tablecaptionsabove
5473 \family default
5474 ,
5475  which will switch 
5476 \family sans
5477 caption
5478 \family default
5479  to 
5480 \family sans
5481 captionabove
5482 \family default
5483  for tables and 
5484 \family sans
5485 captionbelow
5486 \family default
5487  for figures.
5488  You need at least Koma-Script version 2.8q to use this.
5489 \end_layout
5490
5491 \begin_layout Itemize
5492
5493 \family sans
5494 Dictum
5495 \family default
5496 :
5497  can be used to set a bonmot,
5498  e.
5499 \begin_inset space \thinspace{}
5500 \end_inset
5501
5502 g.
5503 \begin_inset space \space{}
5504 \end_inset
5505
5506 at the beginning of a chapter.
5507  If you use the optional argument (
5508 \family sans
5509 Insert\SpecialChar menuseparator
5510 Dictum
5511 \begin_inset space ~
5512 \end_inset
5513
5514 Author
5515 \family default
5516 ),
5517  you can insert the dictum's author there.
5518  Dictum and author are separated by a line.
5519  You need at least Koma-Script version 2.8q to use this.
5520  
5521 \family sans
5522 Dictum
5523 \family default
5524  is not contained in 
5525 \emph on
5526 article (koma-script)
5527 \emph default
5528 .
5529 \end_layout
5530
5531 \begin_layout Standard
5532 The following types,
5533  together with the standard types 
5534 \family sans
5535 Title
5536 \family default
5537 ,
5538  
5539 \family sans
5540 Author
5541 \family default
5542 ,
5543  and 
5544 \family sans
5545 Date
5546 \family default
5547 ,
5548  form the title area of the document.
5549  They must be entered ahead of the first 
5550 \begin_inset Quotes eld
5551 \end_inset
5552
5553 ordinary
5554 \begin_inset Quotes erd
5555 \end_inset
5556
5557  paragraph.
5558 \begin_inset Foot
5559 status collapsed
5560
5561 \begin_layout Plain Layout
5562 The corresponding \SpecialChar LaTeX
5563  commands must appear before the 
5564 \family typewriter
5565
5566 \backslash
5567 maketitle
5568 \family default
5569  command.
5570 \end_layout
5571
5572 \end_inset
5573
5574  When such a type is used more than once,
5575  the latter usage overwrites the former one,
5576  that means,
5577  for every type only the latest usage is valid.
5578  The order of the different types however has,
5579  like 
5580 \family sans
5581 Title
5582 \family default
5583 ,
5584  
5585 \family sans
5586 Author
5587 \family default
5588 ,
5589  and 
5590 \family sans
5591 Date
5592 \family default
5593 ,
5594  no effect on the appearance of the produced document.
5595 \end_layout
5596
5597 \begin_layout Itemize
5598
5599 \family sans
5600 Subject
5601 \family default
5602 :
5603  produces a centered paragraph above the ordinary title (
5604 \family sans
5605 Title
5606 \family default
5607 ,
5608  
5609 \family sans
5610 Author
5611 \family default
5612 ,
5613  
5614 \family sans
5615 Date
5616 \family default
5617 ) for the subject of the document.
5618 \end_layout
5619
5620 \begin_layout Itemize
5621
5622 \family sans
5623 Publishers
5624 \family default
5625 :
5626  produces a centered paragraph below the ordinary title (
5627 \family sans
5628 Title
5629 \family default
5630 ,
5631  
5632 \family sans
5633 Author
5634 \family default
5635 ,
5636  
5637 \family sans
5638 Date
5639 \family default
5640 ) for the publishers' name.
5641 \end_layout
5642
5643 \begin_layout Itemize
5644
5645 \family sans
5646 Dedication
5647 \family default
5648 :
5649  in 
5650 \emph on
5651 report (koma-script)
5652 \emph default
5653  and 
5654 \emph on
5655 book (koma-script)
5656 \emph default
5657  produces a centered paragraph on its own page behind the title page,
5658  or in 
5659 \emph on
5660 article (koma-script)
5661 \emph default
5662  produces a centered paragraph below the ordinary title (
5663 \family sans
5664 Title
5665 \family default
5666 ,
5667  
5668 \family sans
5669 Author
5670 \family default
5671 ,
5672  
5673 \family sans
5674 Date
5675 \family default
5676 ,
5677  
5678 \family sans
5679 Publishers
5680 \family default
5681 ) for a dedication.
5682 \end_layout
5683
5684 \begin_layout Itemize
5685
5686 \family sans
5687 Titlehead
5688 \family default
5689 :
5690  produces a left aligned paragraph above the ordinary title (
5691 \family sans
5692 Title
5693 \family default
5694 ,
5695  
5696 \family sans
5697 Author
5698 \family default
5699 ,
5700  
5701 \family sans
5702 Date
5703 \family default
5704 ,
5705  
5706 \family sans
5707 Subject
5708 \family default
5709 ) for a document`s head.
5710 \end_layout
5711
5712 \begin_layout Itemize
5713
5714 \family sans
5715 Uppertitleback
5716 \family default
5717 :
5718  produces in a double-sided print in 
5719 \emph on
5720 report (koma-script)
5721 \emph default
5722  and 
5723 \emph on
5724 book (koma-script)
5725 \emph default
5726  a left-aligned paragraph at the top of the title page`s back or has no effect in a single-sided print or in 
5727 \emph on
5728 article (koma-script)
5729 \emph default
5730 .
5731 \end_layout
5732
5733 \begin_layout Itemize
5734
5735 \family sans
5736 Lowertitleback
5737 \family default
5738 :
5739  produces in a double-sided print in 
5740 \emph on
5741 report (koma-script)
5742 \emph default
5743  and 
5744 \emph on
5745 book (koma-script)
5746 \emph default
5747  a left-aligned paragraph at the bottom of the title page`s back or has no effect in a single-sided print or in 
5748 \emph on
5749 article (koma-script)
5750 \emph default
5751 .
5752 \end_layout
5753
5754 \begin_layout Itemize
5755
5756 \family sans
5757 Extratitle
5758 \family default
5759 :
5760  produces a special 
5761 \begin_inset Quotes eld
5762 \end_inset
5763
5764 dirty
5765 \begin_inset Quotes erd
5766 \end_inset
5767
5768  page ahead of the actual document containing a paragraph without special formatting.
5769 \end_layout
5770
5771 \begin_layout Standard
5772
5773 \change_inserted 564990737 1672429680
5774 KOMA-Script offers a wide range of 
5775 \family sans
5776 Cus
5777 \bar under
5778 t
5779 \bar default
5780 om Class
5781 \begin_inset space ~
5782 \end_inset
5783
5784 options
5785 \family default
5786  for the 
5787 \family sans
5788 \bar under
5789 D
5790 \bar default
5791 ocument\SpecialChar menuseparator
5792
5793 \bar under
5794 S
5795 \bar default
5796 ettings\SpecialChar menuseparator
5797 Document
5798 \begin_inset space ~
5799 \end_inset
5800
5801 class
5802 \family default
5803  dialog which you can apply to the whole document,
5804  among them
5805 \end_layout
5806
5807 \begin_layout Description
5808
5809 \change_inserted 564990737 1672429680
5810
5811 \family typewriter
5812 \series medium
5813 draft=true
5814 \family default
5815 \series default
5816  which produces a PDF with a small black box at the end any line in which a formatting error occurs;
5817  the default setting is 
5818 \family typewriter
5819 false
5820 \end_layout
5821
5822 \begin_layout Description
5823
5824 \change_inserted 564990737 1672429680
5825
5826 \family typewriter
5827 \series medium
5828 headings=
5829 \family default
5830 \series default
5831  which may take the values 
5832 \family typewriter
5833 big
5834 \family default
5835 ,
5836  
5837 \family typewriter
5838 normal
5839 \family default
5840  or 
5841 \family typewriter
5842 small
5843 \family default
5844 ;
5845  the first and last adjust the sizes of the headings to take account of page sizes where the default values may not be suitable
5846 \end_layout
5847
5848 \begin_layout Description
5849
5850 \change_inserted 564990737 1672429680
5851
5852 \family typewriter
5853 \series medium
5854 numbers=
5855 \family default
5856 \series default
5857  which may take the values 
5858 \family typewriter
5859 auto
5860 \family default
5861  (the default),
5862  
5863 \family typewriter
5864 enddot
5865 \family default
5866  or 
5867 \family typewriter
5868 noenddot
5869 \family default
5870 ;
5871  the first leaves it up to KOMA-Script to add periods after chapter,
5872  section numbers,
5873  etc.;
5874  the second forces the addition of periods and third suppresses them
5875 \end_layout
5876
5877 \begin_layout Standard
5878
5879 \change_inserted 564990737 1672429680
5880 and the math options:
5881 \end_layout
5882
5883 \begin_layout Description
5884
5885 \change_inserted 564990737 1672429680
5886
5887 \family typewriter
5888 \series medium
5889 leqno
5890 \family default
5891 \series default
5892  which causes equations to be numbered on the left rather than on the right,
5893  and
5894 \end_layout
5895
5896 \begin_layout Description
5897
5898 \change_inserted 564990737 1672429680
5899
5900 \family typewriter
5901 \series medium
5902 fleqn
5903 \family default
5904 \series default
5905  which causes equations to be left justified rather than centered.
5906 \end_layout
5907
5908 \begin_layout Standard
5909
5910 \change_inserted 564990737 1672429680
5911 It also provides commands to affect the output of the document independently of the standard \SpecialChar LaTeX
5912  commands and packages;
5913  for example,
5914  if you want your captions in bold add
5915 \end_layout
5916
5917 \begin_layout Standard
5918
5919 \change_inserted 564990737 1672429680
5920
5921 \family typewriter
5922
5923 \backslash
5924 setkomafont{captionlabel}{
5925 \backslash
5926 bfseries}
5927 \end_layout
5928
5929 \begin_layout Standard
5930
5931 \change_inserted 564990737 1672429680
5932 to 
5933 \family sans
5934 \bar under
5935 D
5936 \bar default
5937 ocument\SpecialChar menuseparator
5938
5939 \bar under
5940 S
5941 \bar default
5942 ettings
5943 \family default
5944 \SpecialChar menuseparator
5945
5946 \family sans
5947 \SpecialChar LaTeX
5948
5949 \begin_inset space ~
5950 \end_inset
5951
5952 Preamble
5953 \family default
5954 ) and the problem is solved.
5955 \end_layout
5956
5957 \begin_layout Standard
5958
5959 \change_inserted 564990737 1672429680
5960 If you are writing a book,
5961  it is normal to have the preliminary pages numbered in Roman numerals and the Chapters in this part unnumbered.
5962  If you use the Chapter* environment,
5963  your Foreword and Preface will not appear in the Table of Contents;
5964  to make them to appear in the Table of contents,
5965  you need to use Chapter environments and add the \SpecialChar TeX
5966  code
5967 \end_layout
5968
5969 \begin_layout Standard
5970
5971 \change_inserted 564990737 1672429680
5972
5973 \family typewriter
5974
5975 \backslash
5976 frontmatter
5977 \end_layout
5978
5979 \begin_layout Standard
5980
5981 \change_inserted 564990737 1672429680
5982 at the very start of the book (not in the \SpecialChar LaTeX
5983  Preamble) and
5984 \end_layout
5985
5986 \begin_layout Standard
5987
5988 \change_inserted 564990737 1672429680
5989
5990 \family typewriter
5991
5992 \backslash
5993 mainmatter
5994 \end_layout
5995
5996 \begin_layout Standard
5997
5998 \change_inserted 564990737 1672429680
5999 before the first chapter of the body of the text.
6000  
6001 \change_inserted -712698321 1673092640
6002 Alternatively,
6003  you might also use 
6004 \family sans
6005 Chapter* (TOC)
6006 \family default
6007 .
6008 \end_layout
6009
6010 \begin_layout Standard
6011
6012 \change_inserted 564990737 1672429680
6013 You may also want to have some unnumbered Chapter environments at the end of the book after the Appendices,
6014  if any.
6015 \begin_inset Foot
6016 status open
6017
6018 \begin_layout Plain Layout
6019
6020 \change_inserted 564990737 1672429680
6021 Appendices are normally “numbered” with letters.
6022 \end_layout
6023
6024 \end_inset
6025
6026  If you use the Chapter* environment,
6027  they will not appear in the Table of Contents;
6028  so add the \SpecialChar TeX
6029  code
6030 \end_layout
6031
6032 \begin_layout Standard
6033
6034 \change_inserted 564990737 1672429680
6035
6036 \family typewriter
6037
6038 \backslash
6039 backmatter
6040 \end_layout
6041
6042 \begin_layout Standard
6043
6044 \change_inserted 564990737 1672429682
6045 before the first of these headings and use the Chapter environment.
6046  These commands will have no effect on the numbering in \SpecialChar LyX
6047 ,
6048  only on the PDF output where the headings will be unnumbered and appear in the Table of Contents.
6049 \end_layout
6050
6051 \begin_layout Standard
6052 The layout files for the document classes 
6053 \emph on
6054 article (koma-script)
6055 \emph default
6056 ,
6057  
6058 \emph on
6059 report (koma-script)
6060 \emph default
6061 ,
6062  and 
6063 \emph on
6064 book (koma-script)
6065 \emph default
6066  do include the file 
6067 \family typewriter
6068 scrmacros.inc
6069 \family default
6070 .
6071  This is thought of as a place to define your own types.
6072  Copy scrmacros
6073 \family typewriter
6074 .inc
6075 \family default
6076  in your personal layout directory and edit the file!
6077 \change_deleted 564990737 1672430255
6078
6079 \end_layout
6080
6081 \begin_layout Standard
6082
6083 \change_deleted 564990737 1672430255
6084 letter (koma-script)
6085 \end_layout
6086
6087 \begin_layout Description
6088
6089 \change_deleted 564990737 1672429749
6090 Note:
6091  This section discusses the obsolete 
6092 \family sans
6093 KOMA-Script-Letter (v.
6094 \begin_inset space ~
6095 \end_inset
6096
6097 1)
6098 \family default
6099 ,
6100  which is not even included anymore in recent KOMA releases.
6101  Please refer to the next section for the current KOMA-Script-Letter class (v.
6102 \begin_inset space ~
6103 \end_inset
6104
6105 2)!
6106 \end_layout
6107
6108 \begin_layout Standard
6109 \noindent
6110
6111 \change_deleted 564990737 1672429749
6112 The document class 
6113 \emph on
6114 letter (koma-script)
6115 \emph default
6116  is implemented in the layout file 
6117 \family typewriter
6118 scrlettr.layout
6119 \family default
6120 .
6121  It contains all the paragraph types of the corresponding standard document class 
6122 \emph on
6123 letter
6124 \emph default
6125 ,
6126  partly modified,
6127  with the exception of the \SpecialChar LyX
6128  specific types 
6129 \family sans
6130 \SpecialChar LyX
6131 -Code
6132 \family default
6133  and 
6134 \family sans
6135 Comment
6136 \family default
6137  and the 
6138 \family sans
6139 List
6140 \family default
6141  type,
6142  which is replaced by the new 
6143 \family sans
6144 Labeling
6145 \family default
6146  type.
6147  In addition,
6148  it contains,
6149  in contrast to the standard document class,
6150  the standard types 
6151 \family sans
6152 \SpecialChar LaTeX
6153
6154 \family default
6155 ,
6156  
6157 \family sans
6158 Quotation
6159 \family default
6160 ,
6161  
6162 \family sans
6163 Quote
6164 \family default
6165 ,
6166  and 
6167 \family sans
6168 Verse
6169 \family default
6170 .
6171  Furthermore,
6172  there are a number of new letter specific types.
6173 \end_layout
6174
6175 \begin_layout Standard
6176
6177 \change_deleted 564990737 1672429749
6178 The appearance of the letter produced by this document class can be controlled by a number of \SpecialChar LaTeX
6179  commands,
6180  which you can put in the \SpecialChar LaTeX
6181  preamble.
6182 \begin_inset Foot
6183 status collapsed
6184
6185 \begin_layout Plain Layout
6186 For example,
6187  the standard appearance of the letter`s heading,
6188  consisting of name and address,
6189  is quite self-willed.
6190  An 
6191 \begin_inset Quotes eld
6192 \end_inset
6193
6194 ordinary
6195 \begin_inset Quotes erd
6196 \end_inset
6197
6198  heading is produced by the following \SpecialChar LaTeX
6199  commands in the preamble:
6200 \end_layout
6201
6202 \begin_layout LyX-Code
6203
6204 \backslash
6205 firsthead{
6206 \backslash
6207 parbox[b]{
6208 \backslash
6209 textwidth}
6210 \end_layout
6211
6212 \begin_layout LyX-Code
6213   {
6214 \backslash
6215 ignorespaces 
6216 \backslash
6217 fromname
6218 \backslash
6219
6220 \backslash
6221  
6222 \backslash
6223 ignorespaces 
6224 \backslash
6225 fromaddress}} 
6226 \end_layout
6227
6228 \begin_layout LyX-Code
6229
6230 \backslash
6231 nexthead{
6232 \backslash
6233 parbox[b]{
6234 \backslash
6235 textwidth}
6236 \end_layout
6237
6238 \begin_layout LyX-Code
6239   {
6240 \backslash
6241 ignorespaces 
6242 \backslash
6243 fromname 
6244 \backslash
6245 hfill 
6246 \backslash
6247 ignorespaces 
6248 \backslash
6249 pagename
6250 \backslash
6251  
6252 \backslash
6253 thepage}}
6254 \end_layout
6255
6256 \end_inset
6257
6258  A detailed German description of such \SpecialChar LaTeX
6259  commands can be found in the Koma-Script documentation 
6260 \emph on
6261 scrguide
6262 \emph default
6263 .
6264  With it,
6265  the letter's author can produce his personal letter layout.
6266 \end_layout
6267
6268 \begin_layout Standard
6269
6270 \change_deleted 564990737 1672429749
6271 The types 
6272 \family sans
6273 Letter
6274 \family default
6275  and 
6276 \family sans
6277 Opening
6278 \family default
6279  define the beginning of the letter and must be used in every letter.
6280  To emphasize them in the \SpecialChar LyX
6281  document class,
6282  they are marked with the letter 
6283 \shape italic
6284 L
6285 \shape default
6286  or 
6287 \shape italic
6288 O
6289 \shape default
6290 ,
6291  resp.
6292 \begin_inset space ~
6293 \end_inset
6294
6295 in the left margin.
6296  It is possible to write any number of letters in one file.
6297  An 
6298 \family sans
6299 Opening
6300 \family default
6301  type produces a new letter using the same addressee and a 
6302 \family sans
6303 Letter
6304 \family default
6305  type produces a new addressee.
6306  The types 
6307 \family sans
6308 Closing
6309 \family default
6310 ,
6311  
6312 \family sans
6313 PS
6314 \family default
6315 ,
6316  
6317 \family sans
6318 CC
6319 \family default
6320 ,
6321  and 
6322 \family sans
6323 Encl
6324 \family default
6325  are ordinary paragraph types and can also be used several times in one and the same letter.
6326 \end_layout
6327
6328 \begin_layout Itemize
6329
6330 \change_deleted 564990737 1672429749
6331
6332 \family sans
6333 Letter
6334 \family default
6335 :
6336  produces a paragraph for the addressee and implicitly defines the beginning of the letter.
6337 \end_layout
6338
6339 \begin_layout Itemize
6340
6341 \change_deleted 564990737 1672429749
6342
6343 \family sans
6344 Opening
6345 \family default
6346 :
6347  produces a paragraph for the form of address and implicitly produces a new letter.
6348 \end_layout
6349
6350 \begin_layout Itemize
6351
6352 \change_deleted 564990737 1672429749
6353
6354 \family sans
6355 Closing
6356 \family default
6357 :
6358  produces a paragraph for a close.
6359 \end_layout
6360
6361 \begin_layout Itemize
6362
6363 \change_deleted 564990737 1672429749
6364
6365 \family sans
6366 PS
6367 \family default
6368 :
6369  produces a paragraph for a postscript.
6370 \end_layout
6371
6372 \begin_layout Itemize
6373
6374 \change_deleted 564990737 1672429749
6375
6376 \family sans
6377 CC
6378 \family default
6379 :
6380  produces a paragraph for a distribution list.
6381 \end_layout
6382
6383 \begin_layout Itemize
6384
6385 \change_deleted 564990737 1672429749
6386
6387 \family sans
6388 Encl
6389 \family default
6390 :
6391  produces a paragraph for enclosures.
6392 \end_layout
6393
6394 \begin_layout Standard
6395
6396 \change_deleted 564990737 1672429749
6397 The types 
6398 \family sans
6399 Name
6400 \family default
6401 ,
6402  
6403 \family sans
6404 Signature
6405 \family default
6406 ,
6407  
6408 \family sans
6409 Address
6410 \family default
6411 ,
6412  
6413 \family sans
6414 Telephone
6415 \family default
6416 ,
6417  
6418 \family sans
6419 Place
6420 \family default
6421 ,
6422  
6423 \family sans
6424 Backaddress
6425 \family default
6426 ,
6427  
6428 \family sans
6429 Specialmail
6430 \family default
6431 ,
6432  
6433 \family sans
6434 Location
6435 \family default
6436 ,
6437  
6438 \family sans
6439 Title
6440 \family default
6441 ,
6442  and 
6443 \family sans
6444 Subject
6445 \family default
6446  are input types provided with a label to enter information,
6447  which will be processed by the document class.
6448 \begin_inset Foot
6449 status collapsed
6450
6451 \begin_layout Plain Layout
6452 It could be seen as a matter of inconsequence,
6453  that the types 
6454 \family sans
6455 Letter
6456 \family default
6457  and 
6458 \family sans
6459 Opening
6460 \family default
6461  described above are not such input types as well.
6462  Because of the special meaning of those types,
6463  however,
6464  I have implemented them as ordinary paragraph types with a one letter mark in the left margin.
6465  Moreover,
6466  it would affect my feeling of symmetry,
6467  if the 
6468 \family sans
6469 Opening
6470 \family default
6471  type and the 
6472 \family sans
6473 Closing
6474 \family default
6475  type had such a serious different appearance.
6476 \end_layout
6477
6478 \end_inset
6479
6480  The types must be used ahead of the corresponding 
6481 \family sans
6482 Opening
6483 \family default
6484  type.
6485 \end_layout
6486
6487 \begin_layout Standard
6488
6489 \change_deleted 564990737 1672429749
6490 An implementation of these types in a WYSIWYG fashion does not seem to make sense,
6491  because the real appearance of the produced letter does not only depend on the usage of the particular type,
6492  but also on other factors.
6493  For example,
6494  a signature entered in the 
6495 \family sans
6496 Signature
6497 \family default
6498  type will in the standard behavior appear in the produced letter only,
6499  when in the same letter also a 
6500 \family sans
6501 Closing
6502 \family default
6503  type is used.
6504  The entered value of the 
6505 \family sans
6506 Telephone
6507 \family default
6508  type will in the standard behavior not appear in the produced letter at all.
6509  The possibility to design the letter`s heading freely is already indicated in a footnote above.
6510 \end_layout
6511
6512 \begin_layout Standard
6513
6514 \change_deleted 564990737 1672429749
6515 The input types can also be used as empty paragraphs.
6516  This makes sense e.
6517 \begin_inset space \thinspace{}
6518 \end_inset
6519
6520 g.
6521 \begin_inset space \space{}
6522 \end_inset
6523
6524 for the 
6525 \family sans
6526 Signature
6527 \family default
6528  type.
6529  If the 
6530 \family sans
6531 Signature
6532 \family default
6533  type is not used at all,
6534  in the standard behavior the value of the 
6535 \family sans
6536 Name
6537 \family default
6538  type is used as signature,
6539  whereas if an empty 
6540 \family sans
6541 Signature
6542 \family default
6543  type is used,
6544  no signature value is defined.
6545 \end_layout
6546
6547 \begin_layout Standard
6548
6549 \change_deleted 564990737 1672429749
6550 By using the input types it is possible to write a letter template,
6551  containing filled input types with your personal dates (name,
6552  address,
6553  etc.) and empty input types for other dates you want to enter.
6554 \end_layout
6555
6556 \begin_layout Itemize
6557
6558 \change_deleted 564990737 1672429749
6559
6560 \family sans
6561 Name
6562 \family default
6563 :
6564  sender's name,
6565  in the standard behavior appears as a centered paragraph in small caps in the letter`s heading.
6566 \end_layout
6567
6568 \begin_layout Itemize
6569
6570 \change_deleted 564990737 1672429749
6571
6572 \family sans
6573 Signature
6574 \family default
6575 :
6576  sender's signature,
6577  in the standard behavior appears below the 
6578 \family sans
6579 Closing
6580 \family default
6581  type.
6582  If no 
6583 \family sans
6584 Signature
6585 \family default
6586  type is used,
6587  the value of the 
6588 \family sans
6589 Name
6590 \family default
6591  type appears instead.
6592 \end_layout
6593
6594 \begin_layout Itemize
6595
6596 \change_deleted 564990737 1672429749
6597
6598 \family sans
6599 Address
6600 \family default
6601 :
6602  sender's address,
6603  in the standard behavior appears in a centered paragraph in the letter`s heading below the sender's name.
6604 \end_layout
6605
6606 \begin_layout Itemize
6607
6608 \change_deleted 564990737 1672429749
6609
6610 \family sans
6611 Telephone
6612 \family default
6613 :
6614  sender's telephone number,
6615  in the standard behavior only sets the \SpecialChar LaTeX
6616  variable 
6617 \family typewriter
6618
6619 \backslash
6620 telephonenum
6621 \family default
6622 .
6623 \end_layout
6624
6625 \begin_layout Itemize
6626
6627 \change_deleted 564990737 1672429749
6628
6629 \family sans
6630 Place
6631 \family default
6632 :
6633  place of the letter`s making.
6634 \end_layout
6635
6636 \begin_layout Itemize
6637
6638 \change_deleted 564990737 1672429749
6639
6640 \family sans
6641 Date
6642 \family default
6643 :
6644  date of the letter`s making.
6645  
6646 \family sans
6647 Place
6648 \family default
6649  and 
6650 \family sans
6651 Date
6652 \family default
6653 ,
6654  in the standard behavior,
6655  produce the place and the date in a right-aligned line below the addressee's field.
6656  If an empty 
6657 \family sans
6658 Date
6659 \family default
6660  type is used,
6661  neither place nor date appear,
6662  independent of the value of the 
6663 \family sans
6664 Place
6665 \family default
6666  type.
6667  If no 
6668 \family sans
6669 Date
6670 \family default
6671  type is used,
6672  the date of the letter `s production is used.
6673 \end_layout
6674
6675 \begin_layout Itemize
6676
6677 \change_deleted 564990737 1672429749
6678
6679 \family sans
6680 Backaddress
6681 \family default
6682 :
6683  sender`s back address,
6684  in the standard behavior appears above the addressee's field in a small sans serif font.
6685 \end_layout
6686
6687 \begin_layout Itemize
6688
6689 \change_deleted 564990737 1672429749
6690
6691 \family sans
6692 Specialmail
6693 \family default
6694 :
6695  special mail information,
6696  in the standard behavior appears underlined above the addressee's field below the back address.
6697 \end_layout
6698
6699 \begin_layout Itemize
6700
6701 \change_deleted 564990737 1672429749
6702
6703 \family sans
6704 Location
6705 \family default
6706 :
6707  additional information,
6708  in the standard behavior appears on right side below the addressee`s field.
6709 \end_layout
6710
6711 \begin_layout Itemize
6712
6713 \change_deleted 564990737 1672429749
6714
6715 \family sans
6716 Title
6717 \family default
6718 :
6719  the letter's title,
6720  in the standard behavior appears in a big,
6721  bold,
6722  sans serif font above the subject.
6723 \end_layout
6724
6725 \begin_layout Itemize
6726
6727 \change_deleted 564990737 1672429749
6728
6729 \family sans
6730 Subject
6731 \family default
6732 :
6733  the letter's subject,
6734  in the standard behavior appears in a bold font above the 
6735 \family sans
6736 Opening
6737 \family default
6738  paragraph.
6739 \end_layout
6740
6741 \begin_layout Standard
6742
6743 \change_deleted 564990737 1672429749
6744 The types 
6745 \family sans
6746 Yourref
6747 \family default
6748 ,
6749  
6750 \family sans
6751 Yourmail
6752 \family default
6753 ,
6754  
6755 \family sans
6756 Myref
6757 \family default
6758 ,
6759  
6760 \family sans
6761 Customer
6762 \family default
6763 ,
6764  and 
6765 \family sans
6766 Invoice
6767 \family default
6768  produce a business letter like line above the 
6769 \family sans
6770 Title
6771 \family default
6772  line containing the fields 
6773 \begin_inset Quotes eld
6774 \end_inset
6775
6776 Your ref.
6777 \begin_inset Quotes erd
6778 \end_inset
6779
6780 ,
6781  
6782 \begin_inset Quotes eld
6783 \end_inset
6784
6785 Your letter of
6786 \begin_inset Quotes erd
6787 \end_inset
6788
6789 ,
6790  
6791 \begin_inset Quotes eld
6792 \end_inset
6793
6794 Our ref.
6795 \begin_inset Quotes erd
6796 \end_inset
6797
6798 ,
6799  
6800 \begin_inset Quotes eld
6801 \end_inset
6802
6803 Customer no.
6804 \begin_inset Quotes erd
6805 \end_inset
6806
6807 ,
6808  
6809 \begin_inset Quotes eld
6810 \end_inset
6811
6812 Invoice no.
6813 \begin_inset Quotes erd
6814 \end_inset
6815
6816 ,
6817  and 
6818 \begin_inset Quotes eld
6819 \end_inset
6820
6821 Date
6822 \begin_inset Quotes erd
6823 \end_inset
6824
6825 .
6826  For the date field,
6827  the value of the 
6828 \family sans
6829 Date
6830 \family default
6831  type is used.
6832  If one of these 
6833 \begin_inset Quotes eld
6834 \end_inset
6835
6836 business letter types
6837 \begin_inset Quotes erd
6838 \end_inset
6839
6840  is used,
6841  the value of the 
6842 \family sans
6843 Place
6844 \family default
6845  type however does not appear,
6846  but only the \SpecialChar LaTeX
6847  variable 
6848 \family typewriter
6849
6850 \backslash
6851 fromplace
6852 \family default
6853  is set.
6854  The ordinary output of place and date in a right-aligned line below the addressee`s field is suppressed.
6855  The types are implemented as input types provided with a label and must be used ahead of the corresponding 
6856 \family sans
6857 Opening
6858 \family default
6859  type.
6860 \end_layout
6861
6862 \begin_layout Itemize
6863
6864 \change_deleted 564990737 1672429749
6865
6866 \family sans
6867 Yourref
6868 \family default
6869 :
6870  Your ref.
6871 \end_layout
6872
6873 \begin_layout Itemize
6874
6875 \change_deleted 564990737 1672429749
6876
6877 \family sans
6878 Yourmail
6879 \family default
6880 :
6881  Your letter of.
6882 \end_layout
6883
6884 \begin_layout Itemize
6885
6886 \change_deleted 564990737 1672429749
6887
6888 \family sans
6889 Myref
6890 \family default
6891 :
6892  Our ref.
6893 \end_layout
6894
6895 \begin_layout Itemize
6896
6897 \change_deleted 564990737 1672429749
6898
6899 \family sans
6900 Customer
6901 \family default
6902 :
6903  Customer no.
6904 \end_layout
6905
6906 \begin_layout Itemize
6907
6908 \change_deleted 564990737 1672429749
6909
6910 \family sans
6911 Invoice
6912 \family default
6913 :
6914  Invoice no.
6915 \change_unchanged
6916
6917 \end_layout
6918
6919 \begin_layout Subsubsection
6920
6921 \change_deleted 564990737 1672429773
6922 The new letter class:
6923  letter (koma-script v.2)
6924 \change_inserted 564990737 1672429774
6925
6926 \begin_inset CommandInset label
6927 LatexCommand label
6928 name "subsec:The-new-letter"
6929
6930 \end_inset
6931
6932 The new letter class:
6933  
6934 \change_inserted -712698321 1673092709
6935 KOMA-Script 
6936 \change_deleted -712698321 1673092710
6937 l
6938 \change_inserted -712698321 1673092710
6939 L
6940 \change_inserted 564990737 1672429774
6941 etter (
6942 \change_deleted -712698321 1673092713
6943 KOMA-Script v
6944 \change_inserted -712698321 1673092714
6945 V
6946 \change_inserted 564990737 1672429774
6947 .
6948
6949 \change_inserted -712698321 1673092715
6950  
6951 \change_inserted 564990737 1672429774
6952 2)
6953 \change_unchanged
6954
6955 \end_layout
6956
6957 \begin_layout Standard
6958 by 
6959 \noun on
6960 Jürgen Spitzmüller
6961 \end_layout
6962
6963 \begin_layout Standard
6964 \begin_inset VSpace medskip
6965 \end_inset
6966
6967
6968 \end_layout
6969
6970 \begin_layout Standard
6971 \noindent
6972 Koma-Script version 2.8 has introduced a new letter class 
6973 \family typewriter
6974 scrlttr2
6975 \family default
6976  which supersedes the now unsupported 
6977 \family typewriter
6978 scrlettr
6979 \family default
6980 .
6981  It has —
6982  on the \SpecialChar LaTeX
6983  side —
6984  a completely new interface and is not compatible with the old class.
6985  Therefore,
6986  \SpecialChar LyX
6987  supports both,
6988  though it is recommended you use the new class.
6989 \end_layout
6990
6991 \begin_layout Standard
6992 This class covers the same functionality as 
6993 \emph on
6994 letter (koma-script),
6995
6996 \emph default
6997  and a few more.
6998  The basic items are 
6999 \family sans
7000 Address
7001 \family default
7002  (receiver's address,
7003  same as 
7004 \family sans
7005 Letter
7006 \family default
7007  in the old layout),
7008  
7009 \family sans
7010 Opening
7011 \family default
7012 ,
7013  and 
7014 \family sans
7015 Closing
7016 \family default
7017 .
7018  
7019 \family sans
7020 NextAddress
7021 \family default
7022  will start a new letter (i.
7023 \begin_inset space \thinspace{}
7024 \end_inset
7025
7026 e.
7027 \begin_inset space \space{}
7028 \end_inset
7029
7030 you can write several letters per document).
7031  New elements are sender's 
7032 \family sans
7033 E-Mail
7034 \family default
7035 ,
7036  
7037 \family sans
7038 URL
7039 \family default
7040 ,
7041  
7042 \family sans
7043 Fax
7044 \family default
7045 ,
7046  
7047 \family sans
7048 Bank
7049 \family default
7050  and the possibility to use a 
7051 \family sans
7052 Logo
7053 \family default
7054  (via 
7055 \family sans
7056 Insert\SpecialChar menuseparator
7057 Graphics
7058 \family default
7059 ) in the header.
7060 \end_layout
7061
7062 \begin_layout Standard
7063 The biggest improvement is,
7064  though,
7065  that the letter's layout is configurable to meet almost any needs.
7066  This can be done via the preamble or with a special style file (Letter Class Option,
7067  extension 
7068 \family typewriter
7069 *.lco
7070 \family default
7071 ),
7072  that will be read in as a class option.
7073 \begin_inset Foot
7074 status collapsed
7075
7076 \begin_layout Plain Layout
7077 The KOMA package comes with some default 
7078 \family typewriter
7079 *.lco
7080 \family default
7081  files.
7082  There is,
7083  for instance,
7084  a 
7085 \family typewriter
7086 DIN.lco
7087 \family default
7088  file that follows german typesetting rules,
7089  or a 
7090 \family typewriter
7091 KOMAold.lco
7092 \family default
7093  that provides the default layout of the old 
7094 \family typewriter
7095 scrlettr
7096 \family default
7097  class.
7098  The latter can be loaded with the class option 
7099 \family typewriter
7100 KOMAold
7101 \family default
7102 ,
7103  inserted via the 
7104 \family sans
7105 Layout\SpecialChar menuseparator
7106 Document\SpecialChar menuseparator
7107 Extra Options
7108 \family default
7109  field.
7110 \end_layout
7111
7112 \end_inset
7113
7114  Have a look at the
7115 \change_deleted 564990737 1671617922
7116  
7117 \emph on
7118 koma-letter2
7119 \change_unchanged
7120
7121 \emph default
7122  template 
7123 \change_deleted 564990737 1671617938
7124 that is included in \SpecialChar LyX
7125  for examples
7126 \change_inserted 564990737 1671617997
7127  in 
7128 \family sans
7129 \bar under
7130 F
7131 \bar default
7132 ile\SpecialChar menuseparator
7133 New
7134 \begin_inset space ~
7135 \end_inset
7136
7137 fro
7138 \bar under
7139 m
7140 \bar default
7141
7142 \begin_inset space ~
7143 \end_inset
7144
7145 Template\SpecialChar menuseparator
7146 Letters\SpecialChar menuseparator
7147 KOMA-Script Letter (V.2)
7148 \change_unchanged
7149
7150 \family default
7151 .
7152  A detailed description is to be found in the Koma-Script documentation (
7153 \emph on
7154 scrguide
7155 \emph default
7156 ).
7157 \end_layout
7158
7159 \begin_layout Subsubsection
7160 Problems
7161 \end_layout
7162
7163 \begin_layout Standard
7164 Visualizing the Koma-Script document classes in \SpecialChar LyX
7165 ,
7166  the \SpecialChar LyX
7167  internals cause some problems.
7168 \end_layout
7169
7170 \begin_layout Itemize
7171 The chapter number of a 
7172 \family sans
7173 Chapter
7174 \family default
7175  type appears on a line of its own above the chapter heading instead of appearing in the same line ahead of it.
7176  The cause for that is the \SpecialChar LyX
7177  internal behavior for the labeltype 
7178 \family sans
7179 Counter_Chapter
7180 \family default
7181  in the layout file.
7182 \end_layout
7183
7184 \begin_layout Itemize
7185 The headings of the types 
7186 \family sans
7187 Addchap
7188 \family default
7189  and 
7190 \family sans
7191 Addsec
7192 \family default
7193  are only put in the 
7194 \begin_inset Quotes eld
7195 \end_inset
7196
7197 true
7198 \begin_inset Quotes erd
7199 \end_inset
7200
7201  \SpecialChar LaTeX
7202  table of contents,
7203  but not in the \SpecialChar LyX
7204  table of contents (
7205 \family sans
7206 Document\SpecialChar menuseparator
7207 Table
7208 \begin_inset space ~
7209 \end_inset
7210
7211 of
7212 \begin_inset space ~
7213 \end_inset
7214
7215 Contents
7216 \family default
7217 ).
7218 \end_layout
7219
7220 \begin_layout Itemize
7221 The paragraphs in a 
7222 \emph on
7223 letter
7224 \emph default
7225  document class appear in a skip separation mode,
7226  not indented.
7227  This is the standard behavior,
7228  no special \SpecialChar LaTeX
7229  commands are needed for that.
7230  But in the 
7231 \family sans
7232 Document\SpecialChar menuseparator
7233 Settings
7234 \family default
7235  dialog the corresponding radio button indicates 
7236 \family sans
7237 Indent
7238 \family default
7239 .
7240  A 
7241 \family sans
7242 Skip
7243 \family default
7244  value always has the effect that extra \SpecialChar LaTeX
7245  commands are inserted in the document to produce the gap,
7246  which is not what is wanted in this case.
7247 \end_layout
7248
7249 \begin_layout Subsection
7250
7251 \change_inserted 564990737 1672743555
7252 \begin_inset CommandInset label
7253 LatexCommand label
7254 name "subsec:Polish-M.W.collection"
7255
7256 \end_inset
7257
7258 Polish M.
7259 \begin_inset space \thinspace{}
7260 \end_inset
7261
7262 W.
7263 \begin_inset space \space{}
7264 \end_inset
7265
7266 collection
7267 \change_deleted 564990737 1670924933
7268 Article (mwart),
7269  book (mwbk) and report (mwrep)
7270 \begin_inset Argument status
7271 status collapsed
7272
7273 \begin_layout Plain Layout
7274 The 
7275 \family typewriter
7276 mw
7277 \family default
7278  Classes
7279 \end_layout
7280
7281 \end_inset
7282
7283
7284 \change_unchanged
7285
7286 \end_layout
7287
7288 \begin_layout Standard
7289 by 
7290 \noun on
7291 Tomasz Luczak
7292 \end_layout
7293
7294 \begin_layout Standard
7295 The \SpecialChar LyX
7296  document classes 
7297 \change_deleted -712698321 1673094342
7298
7299 \emph on
7300 article (mwart)
7301 \change_inserted -712698321 1673094343
7302 Polish Article (MW Bundle)
7303 \change_unchanged
7304
7305 \emph default
7306 ,
7307  
7308 \change_deleted -712698321 1673094349
7309
7310 \emph on
7311 report (mwrep)
7312 \change_inserted -712698321 1673094356
7313 Polish Report (MW Bundle)
7314 \change_unchanged
7315
7316 \emph default
7317  and 
7318 \change_deleted -712698321 1673094352
7319
7320 \emph on
7321 book
7322 \emph default
7323  
7324 \emph on
7325 (mwbk)
7326 \change_inserted -712698321 1673094359
7327 Polish Book (MW Bundle)
7328 \change_unchanged
7329
7330 \emph default
7331  correspond to the \SpecialChar LaTeX
7332  document classes 
7333 \family typewriter
7334 mwart.cls
7335 \family default
7336 ,
7337  
7338 \family typewriter
7339 mwrep.cls
7340 \family default
7341  and 
7342 \family typewriter
7343 mwbk.cls
7344 \family default
7345 ,
7346  resp.
7347  They are replacements for the standard document classes 
7348 \family typewriter
7349 article.cls
7350 \family default
7351 ,
7352  
7353 \family typewriter
7354 report.cls
7355 \family default
7356  and 
7357 \family typewriter
7358 book.cls
7359 \family default
7360 ,
7361  resp.,
7362  and fit better to Polish typography conventions in a number of points.
7363  
7364 \end_layout
7365
7366 \begin_layout Standard
7367 Basic differences:
7368 \end_layout
7369
7370 \begin_layout Itemize
7371 Unnumbered titles (with star,
7372  e.
7373 \begin_inset space \thinspace{}
7374 \end_inset
7375
7376 g.
7377 \begin_inset space \space{}
7378 \end_inset
7379
7380
7381 \family sans
7382 Section*
7383 \family default
7384 ) are added into table of contents,
7385 \end_layout
7386
7387 \begin_layout Itemize
7388 Additional page styles:
7389 \end_layout
7390
7391 \begin_deeper
7392 \begin_layout Description
7393 uheadings header with separated lines,
7394 \end_layout
7395
7396 \begin_layout Description
7397 myheadings custom header,
7398  contents headers via commands:
7399  
7400 \family typewriter
7401
7402 \backslash
7403 markright
7404 \family default
7405  and 
7406 \family typewriter
7407
7408 \backslash
7409 markboth
7410 \family default
7411 ,
7412 \end_layout
7413
7414 \begin_layout Description
7415 myuheadings custom header with separated lines,
7416 \end_layout
7417
7418 \begin_layout Description
7419 outer page number is placed on outer side of page
7420 \end_layout
7421
7422 \end_deeper
7423 \begin_layout Itemize
7424 Options 
7425 \end_layout
7426
7427 \begin_deeper
7428 \begin_layout Description
7429 rmheadings serif titles —
7430  default,
7431 \end_layout
7432
7433 \begin_layout Description
7434 sfheadings sansserif titles,
7435 \end_layout
7436
7437 \begin_layout Description
7438 authortitle on title page first placed is author next title —
7439  default,
7440 \end_layout
7441
7442 \begin_layout Description
7443 titleauthor on title page first placed is title next author,
7444 \end_layout
7445
7446 \begin_layout Description
7447 withmarginpar reserve place on page for margins.
7448 \end_layout
7449
7450 \end_deeper
7451 \begin_layout Subsection
7452
7453 \change_inserted 564990737 1672652245
7454 Tufte Collection
7455 \end_layout
7456
7457 \begin_layout Standard
7458
7459 \change_inserted 564990737 1672652245
7460 The document classes 
7461 \change_deleted -712698321 1673094404
7462
7463 \family sans
7464 book
7465 \begin_inset space \thinspace{}
7466 \end_inset
7467
7468 (Tufte)
7469 \change_inserted -712698321 1673094404
7470 Tufte Book
7471 \change_inserted 564990737 1672652245
7472
7473 \family default
7474  and 
7475 \change_deleted -712698321 1673094408
7476
7477 \family sans
7478 handout
7479 \begin_inset space \thinspace{}
7480 \end_inset
7481
7482 (Tufte)
7483 \change_inserted -712698321 1673094411
7484 Tufte Handout
7485 \change_inserted 564990737 1672652245
7486
7487 \family default
7488  use the 
7489 \family typewriter
7490 tufte-book.cls
7491 \family default
7492  and 
7493 \family typewriter
7494 tufte-handout.cls
7495 \family default
7496  document classes.
7497  Detailed information about these document classes can be found in 
7498 \family sans
7499 File\SpecialChar menuseparator
7500 Open Example\SpecialChar menuseparator
7501 Books\SpecialChar menuseparator
7502 Tufte Book
7503 \family default
7504  and 
7505 \family sans
7506 File\SpecialChar menuseparator
7507 Open Example\SpecialChar menuseparator
7508 Handouts\SpecialChar menuseparator
7509 Tufte Handout
7510 \family default
7511 .
7512 \end_layout
7513
7514 \begin_layout Section
7515
7516 \change_inserted 564990737 1670439534
7517 Articles
7518 \end_layout
7519
7520 \begin_layout Standard
7521
7522 \change_inserted 564990737 1670794710
7523 See also the document classes in the Collections (section
7524 \begin_inset space ~
7525 \end_inset
7526
7527
7528 \begin_inset CommandInset ref
7529 LatexCommand ref
7530 reference "sec:Collections"
7531 nolink "false"
7532
7533 \end_inset
7534
7535 ).
7536 \end_layout
7537
7538 \begin_layout Subsection
7539
7540 \change_deleted -712698321 1673095198
7541 A&A Paper
7542 \change_inserted -712698321 1673095198
7543 Astronomy & Astrophysics
7544 \change_inserted 564990737 1670794716
7545
7546 \end_layout
7547
7548 \begin_layout Standard
7549
7550 \change_inserted 564990737 1670794716
7551 Original by 
7552 \noun on
7553 Peter Sütterlin
7554 \noun default
7555 ;
7556  updated by the \SpecialChar LyX
7557  Team
7558 \end_layout
7559
7560 \begin_layout Subsubsection
7561
7562 \change_inserted 564990737 1670794716
7563 Introduction
7564 \end_layout
7565
7566 \begin_layout Standard
7567
7568 \change_inserted 564990737 1670794716
7569 This section describes how \SpecialChar LyX
7570  can be used to write articles for submission to the scientific journal 
7571 \emph on
7572 Astronomy 
7573 \change_deleted -712698321 1673095254
7574 and
7575 \change_inserted -712698321 1673095254
7576 &
7577 \change_inserted 564990737 1670794716
7578  Astrophysics
7579 \emph default
7580  (
7581 \begin_inset CommandInset href
7582 LatexCommand href
7583 name "aa-package"
7584 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
7585 literal "false"
7586
7587 \end_inset
7588
7589 ) using Version 9.1 of the document class 
7590 \family typewriter
7591 aa.cls
7592 \family default
7593 ;
7594  information about it is available at 
7595 \begin_inset Flex URL
7596 status collapsed
7597
7598 \begin_layout Plain Layout
7599
7600 \change_inserted 564990737 1670794716
7601
7602 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
7603 \change_unchanged
7604
7605 \end_layout
7606
7607 \end_inset
7608
7609 .
7610 \end_layout
7611
7612 \begin_layout Standard
7613
7614 \change_inserted 564990737 1670794716
7615 A manual comes together with the package and should be consulted before installing this document class as described in the 
7616 \emph on
7617 Installing New Document Classe
7618 \emph default
7619 s section of the 
7620 \emph on
7621 Customization
7622 \emph default
7623  manual.
7624  
7625 \end_layout
7626
7627 \begin_layout Standard
7628
7629 \change_inserted 564990737 1670794716
7630 \begin_inset Note Greyedout
7631 status open
7632
7633 \begin_layout Plain Layout
7634
7635 \change_inserted 564990737 1670794716
7636 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
7637  2001.
7638  That change also involved some slight changes to the style files,
7639  namely the removal of the thesaurus command.
7640  If you have an older version installed,
7641  please upgrade.
7642  For information about compatibility with the old (version 4) layout,
7643  please refer to the comments in 
7644 \family typewriter
7645 \SpecialChar LyX
7646 Dir/layouts/aapaper.layout
7647 \family default
7648 .
7649 \end_layout
7650
7651 \end_inset
7652
7653
7654 \end_layout
7655
7656 \begin_layout Subsubsection
7657
7658 \change_inserted 564990737 1670794716
7659 Getting started
7660 \end_layout
7661
7662 \begin_layout Standard
7663
7664 \change_inserted 564990737 1671617129
7665 It is recommended you start from the template in the menu 
7666 \family sans
7667 \bar under
7668 F
7669 \bar default
7670 ile\SpecialChar menuseparator
7671 New
7672 \begin_inset space ~
7673 \end_inset
7674
7675 fro
7676 \bar under
7677 m
7678 \bar default
7679
7680 \begin_inset space ~
7681 \end_inset
7682
7683 Template\SpecialChar menuseparator
7684 Articles\SpecialChar menuseparator
7685 Astronomy & Astrophysics
7686 \family default
7687 .
7688  If you are not using the template,
7689  note the following settings:
7690 \end_layout
7691
7692 \begin_layout Itemize
7693
7694 \change_inserted 564990737 1670794716
7695 Select 
7696 \change_deleted -712698321 1673095619
7697
7698 \family sans
7699 article (A&A)
7700 \change_inserted -712698321 1673095619
7701 Astronomy & Astrophysics
7702 \change_inserted 564990737 1670794716
7703
7704 \family default
7705  in the 
7706 \family sans
7707 \bar under
7708 D
7709 \bar default
7710 ocument\SpecialChar menuseparator
7711
7712 \bar under
7713 S
7714 \bar default
7715 ettings\SpecialChar menuseparator
7716 Document
7717 \begin_inset space ~
7718 \end_inset
7719
7720 Class
7721 \family default
7722  dialog (OK,
7723  that one was obvious).
7724 \end_layout
7725
7726 \begin_layout Itemize
7727
7728 \change_inserted 564990737 1670794716
7729 Don't change the 
7730 \family sans
7731 Headings
7732 \begin_inset space ~
7733 \end_inset
7734
7735
7736 \bar under
7737 s
7738 \bar default
7739 tyle
7740 \family default
7741  in the 
7742 \family sans
7743 Page
7744 \begin_inset space ~
7745 \end_inset
7746
7747 Layout
7748 \family default
7749  dialog:
7750  leave it set to 
7751 \family sans
7752 Default
7753 \family default
7754 .
7755  The whole layout is done by the macros,
7756  you shouldn't change anything.
7757 \end_layout
7758
7759 \begin_layout Subsubsection
7760
7761 \change_inserted 564990737 1670794716
7762 The header block
7763 \end_layout
7764
7765 \begin_layout Standard
7766
7767 \change_inserted 564990737 1670794716
7768 First thing to enter is the header information.
7769  It consists of 
7770 \change_deleted -712698321 1673167006
7771 five
7772 \change_inserted -712698321 1673167007
7773 seven
7774 \change_inserted 564990737 1670794716
7775  entries,
7776  of which one is optional.
7777  They are
7778 \end_layout
7779
7780 \begin_layout Itemize
7781
7782 \change_inserted 564990737 1670794716
7783
7784 \family sans
7785 Title
7786 \family default
7787 :
7788  [required] 
7789 \end_layout
7790
7791 \begin_layout Itemize
7792
7793 \change_inserted 564990737 1670794716
7794
7795 \family sans
7796 Subtitle
7797 \family default
7798 :
7799  [optional] 
7800 \end_layout
7801
7802 \begin_layout Itemize
7803
7804 \change_inserted 564990737 1670794716
7805
7806 \family sans
7807 Author
7808 \family default
7809 :
7810  [required]
7811 \end_layout
7812
7813 \begin_layout Itemize
7814
7815 \change_deleted -712698321 1673167065
7816
7817 \family sans
7818 Institute
7819 \change_inserted -712698321 1673167065
7820 Address
7821 \change_inserted 564990737 1670794716
7822
7823 \family default
7824 :
7825  [required]
7826 \change_inserted -712698321 1673167087
7827
7828 \end_layout
7829
7830 \begin_layout Itemize
7831
7832 \change_inserted -712698321 1673168577
7833
7834 \family sans
7835 Offprints
7836 \family default
7837  [optional].
7838  Determines to whom correspondence and reprints are to be sent.
7839 \end_layout
7840
7841 \begin_layout Itemize
7842
7843 \change_inserted -712698321 1673168590
7844
7845 \family sans
7846 Mail
7847 \family default
7848  [optional] Snail mail address for contacts.
7849 \change_inserted 564990737 1670794716
7850
7851 \end_layout
7852
7853 \begin_layout Itemize
7854
7855 \change_inserted 564990737 1670794716
7856
7857 \family sans
7858 Date
7859 \family default
7860 :
7861  [required].
7862  Suggested format is 
7863 \family typewriter
7864 Received:
7865  <date>;
7866  Accepted <date> 
7867 \end_layout
7868
7869 \begin_layout Standard
7870
7871 \change_inserted -712698321 1673168612
7872 There is no need to issue the 
7873 \family typewriter
7874
7875 \backslash
7876 maketitle
7877 \family default
7878  command,
7879  this is done automatically by \SpecialChar LyX
7880  when the header is finished.
7881  
7882 \change_inserted 564990737 1670794716
7883 Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
7884  just to get the best optics and meets the layout of the real document.
7885 \end_layout
7886
7887 \begin_layout Standard
7888
7889 \change_inserted 564990737 1670794716
7890 If you want to place footnotes in the header block,
7891  e.
7892 \begin_inset space \thinspace{}
7893 \end_inset
7894
7895 g.
7896 \begin_inset space \space{}
7897 \end_inset
7898
7899 to state your present address,
7900  just use the standard footnote via the menu 
7901 \family sans
7902 \bar under
7903 I
7904 \bar default
7905 nsert\SpecialChar menuseparator
7906
7907 \bar under
7908 F
7909 \bar default
7910 ootnote.
7911
7912 \family default
7913  \SpecialChar LyX
7914  will automagically use the term 
7915 \family typewriter
7916
7917 \backslash
7918 thanks{}
7919 \family default
7920  in that case.
7921 \change_inserted -712698321 1673168649
7922
7923 \end_layout
7924
7925 \begin_layout Standard
7926
7927 \change_inserted -712698321 1673168649
7928 Under 
7929 \family sans
7930 Edit\SpecialChar menuseparator
7931 Text Style
7932 \family default
7933 ,
7934  you'll find two insets which are relevant for the titling:
7935 \end_layout
7936
7937 \begin_layout Itemize
7938
7939 \change_inserted -712698321 1673168649
7940
7941 \family sans
7942 Institute
7943 \family typewriter
7944  
7945 \family default
7946 to mark corresponding author\SpecialChar breakableslash
7947 institute pairs.
7948  The institutes are numbered sequentially as they appear in the 
7949 \family sans
7950 Address
7951 \family default
7952  field,
7953  so you have to put a marker to each author.
7954 \end_layout
7955
7956 \begin_layout Itemize
7957
7958 \change_inserted -712698321 1673168649
7959
7960 \family sans
7961 Email
7962 \family default
7963  to supply an email address for fast contact.
7964 \change_inserted 564990737 1670794716
7965
7966 \end_layout
7967
7968 \begin_layout Standard
7969
7970 \change_inserted 564990737 1670794716
7971 In addition to these topics,
7972  the macros use three additional \SpecialChar LaTeX
7973  commands that have no counterpart in \SpecialChar LyX
7974 :
7975 \end_layout
7976
7977 \begin_layout Itemize
7978
7979 \change_inserted 564990737 1670794716
7980
7981 \family typewriter
7982
7983 \backslash
7984 and
7985 \family default
7986  to separate different names for more than one author and institute,
7987  respectively.
7988 \end_layout
7989
7990 \begin_layout Itemize
7991
7992 \change_deleted -712698321 1673168671
7993
7994 \family typewriter
7995
7996 \backslash
7997 inst{<nr>}
7998 \family default
7999  to mark corresponding author/institute pairs.
8000  The institutes are numbered sequentially as they appear in the 
8001 \family sans
8002 Institute
8003 \family default
8004  field,
8005  so you have to put a marker to each author.
8006 \end_layout
8007
8008 \begin_layout Itemize
8009
8010 \change_deleted -712698321 1673168671
8011
8012 \family typewriter
8013
8014 \backslash
8015 email{address}
8016 \family default
8017  to supply an email address for fast contact.
8018 \change_inserted 564990737 1670794716
8019
8020 \end_layout
8021
8022 \begin_layout Standard
8023
8024 \change_deleted -712698321 1673168684
8025 In all cases,
8026  t
8027 \change_inserted -712698321 1673168684
8028 T
8029 \change_inserted 564990737 1671642374
8030 he appropriate command has to be entered as \SpecialChar TeX
8031  code in \SpecialChar LyX
8032 .
8033  See the examples in the template and in 
8034 \family sans
8035 File\SpecialChar menuseparator
8036 Open Example\SpecialChar menuseparator
8037 Articles\SpecialChar menuseparator
8038 Astronomy & Astrophysics
8039 \family default
8040 .
8041 \change_unchanged
8042
8043 \end_layout
8044
8045 \begin_layout Subsubsection
8046
8047 \change_inserted 564990737 1670794716
8048 The abstract
8049 \end_layout
8050
8051 \begin_layout Standard
8052
8053 \change_inserted -712698321 1673168754
8054 The abstract should immediately follow the header block.
8055  With version 5 the abstract environment was changed to a command,
8056  and there is now a restriction to only one paragraph.
8057  In addition,
8058  it should contain an entry with the keywords.
8059  This is done via the paragraph style 
8060 \family sans
8061 Keywords
8062 \family default
8063 .
8064  Refer to the example paper.
8065 \change_deleted -712698321 1673168754
8066 The abstract should immediately follow the header block and must contain five tokens:
8067  
8068 \family typewriter
8069
8070 \backslash
8071 abstract{}{}{}{}{}
8072 \family default
8073  
8074 \end_layout
8075
8076 \begin_layout Enumerate
8077
8078 \change_deleted -712698321 1673168754
8079
8080 \family typewriter
8081 context heading
8082 \family default
8083  (optional) {} leave it empty if necessary 
8084 \end_layout
8085
8086 \begin_layout Enumerate
8087
8088 \change_deleted -712698321 1673168754
8089
8090 \family typewriter
8091 aims heading
8092 \family default
8093  (mandatory) {} 
8094 \end_layout
8095
8096 \begin_layout Enumerate
8097
8098 \change_deleted -712698321 1673168754
8099
8100 \family typewriter
8101 methods heading
8102 \family default
8103  (mandatory) {} 
8104 \end_layout
8105
8106 \begin_layout Enumerate
8107
8108 \change_deleted -712698321 1673168754
8109
8110 \family typewriter
8111 results heading
8112 \family default
8113  (mandatory) {} 
8114 \end_layout
8115
8116 \begin_layout Enumerate
8117
8118 \change_deleted -712698321 1673168754
8119
8120 \family typewriter
8121 conclusions heading
8122 \family default
8123  (optional) {} leave it empty if necessary 
8124 \end_layout
8125
8126 \begin_layout Standard
8127
8128 \change_deleted -712698321 1673168754
8129 (NB.
8130  This structure not shown in 
8131 \emph on
8132 aa_sample.lyx.
8133 \emph default
8134 )
8135 \change_inserted 564990737 1670794716
8136
8137 \end_layout
8138
8139 \begin_layout Subsubsection
8140
8141 \change_inserted 564990737 1670794716
8142 Supported environments
8143 \end_layout
8144
8145 \begin_layout Standard
8146
8147 \change_inserted 564990737 1670794716
8148 The A&A paper layout supports the following environments for structuring your text:
8149 \end_layout
8150
8151 \begin_layout Standard
8152
8153 \change_inserted -712698321 1673169058
8154
8155 \family sans
8156 \begin_inset Flex Multiple Columns
8157 status open
8158
8159 \begin_layout Itemize
8160
8161 \change_inserted -712698321 1673169058
8162
8163 \family sans
8164 Standard
8165 \end_layout
8166
8167 \begin_layout Itemize
8168
8169 \change_inserted -712698321 1673169058
8170
8171 \family sans
8172 Section
8173 \end_layout
8174
8175 \begin_layout Itemize
8176
8177 \change_inserted -712698321 1673169058
8178
8179 \family sans
8180 Subsection
8181 \end_layout
8182
8183 \begin_layout Itemize
8184
8185 \change_inserted -712698321 1673169058
8186
8187 \family sans
8188 Subsubsection
8189 \end_layout
8190
8191 \begin_layout Itemize
8192
8193 \change_inserted -712698321 1673169058
8194
8195 \family sans
8196 Itemize
8197 \end_layout
8198
8199 \begin_layout Itemize
8200
8201 \change_inserted -712698321 1673169058
8202
8203 \family sans
8204 Enumerate
8205 \end_layout
8206
8207 \begin_layout Itemize
8208
8209 \change_inserted -712698321 1673169058
8210
8211 \family sans
8212 Description
8213 \end_layout
8214
8215 \begin_layout Itemize
8216
8217 \change_inserted -712698321 1673169058
8218
8219 \family sans
8220 Caption
8221 \end_layout
8222
8223 \begin_layout Itemize
8224
8225 \change_inserted -712698321 1673169058
8226
8227 \family sans
8228 Abstract
8229 \end_layout
8230
8231 \begin_layout Itemize
8232
8233 \change_inserted -712698321 1673169058
8234
8235 \family sans
8236 Acknowledgment
8237 \end_layout
8238
8239 \begin_layout Itemize
8240
8241 \change_inserted -712698321 1673169058
8242
8243 \family sans
8244 Bibliography
8245 \end_layout
8246
8247 \begin_layout Itemize
8248
8249 \change_inserted -712698321 1673169078
8250 LaTeX
8251 \change_unchanged
8252
8253 \end_layout
8254
8255 \end_inset
8256
8257
8258 \change_deleted -712698321 1673169058
8259 Standard
8260 \end_layout
8261
8262 \begin_layout Itemize
8263
8264 \change_deleted -712698321 1673169058
8265
8266 \family sans
8267 Section
8268 \end_layout
8269
8270 \begin_layout Itemize
8271
8272 \change_deleted -712698321 1673169058
8273
8274 \family sans
8275 Subsection
8276 \end_layout
8277
8278 \begin_layout Itemize
8279
8280 \change_deleted -712698321 1673169058
8281
8282 \family sans
8283 Subsubsection
8284 \end_layout
8285
8286 \begin_layout Itemize
8287
8288 \change_deleted -712698321 1673169058
8289
8290 \family sans
8291 Itemize
8292 \end_layout
8293
8294 \begin_layout Itemize
8295
8296 \change_deleted -712698321 1673169058
8297
8298 \family sans
8299 Enumerate
8300 \end_layout
8301
8302 \begin_layout Itemize
8303
8304 \change_deleted -712698321 1673169058
8305
8306 \family sans
8307 Description
8308 \end_layout
8309
8310 \begin_layout Itemize
8311
8312 \change_deleted -712698321 1673169058
8313
8314 \family sans
8315 Caption
8316 \end_layout
8317
8318 \begin_layout Itemize
8319
8320 \change_deleted -712698321 1673169058
8321
8322 \family sans
8323 Abstract
8324 \end_layout
8325
8326 \begin_layout Itemize
8327
8328 \change_deleted -712698321 1673169058
8329
8330 \family sans
8331 Acknowledgment
8332 \end_layout
8333
8334 \begin_layout Itemize
8335
8336 \change_deleted -712698321 1673169058
8337
8338 \family sans
8339 Bibliography
8340 \end_layout
8341
8342 \begin_layout Itemize
8343
8344 \change_deleted -712698321 1673169058
8345
8346 \family sans
8347 \SpecialChar LaTeX
8348
8349 \change_inserted 564990737 1670794716
8350
8351 \end_layout
8352
8353 \begin_layout Subsubsection
8354
8355 \change_inserted 564990737 1670794716
8356 Commands not supported by \SpecialChar LyX
8357
8358 \end_layout
8359
8360 \begin_layout Standard
8361
8362 \change_inserted 564990737 1670794716
8363 Some commands are not yet supported by the 
8364 \change_deleted -712698321 1673169117
8365
8366 \family sans
8367 paper (A&A)
8368 \change_inserted -712698321 1673169117
8369 Astronomy & Astrophysics
8370 \change_inserted 564990737 1670794716
8371
8372 \family default
8373  layout for \SpecialChar LyX
8374 .
8375  Some have already been mentioned.
8376  For the sake of completeness,
8377  they are listed all together here:
8378 \end_layout
8379
8380 \begin_layout Itemize
8381
8382 \change_inserted 564990737 1670794716
8383
8384 \family typewriter
8385
8386 \backslash
8387 and
8388 \end_layout
8389
8390 \begin_layout Itemize
8391
8392 \change_inserted -712698321 1673168793
8393
8394 \family typewriter
8395
8396 \backslash
8397 authorrunning
8398 \end_layout
8399
8400 \begin_layout Itemize
8401
8402 \change_inserted -712698321 1673168793
8403
8404 \family typewriter
8405
8406 \backslash
8407 object{}
8408 \end_layout
8409
8410 \begin_layout Itemize
8411
8412 \change_inserted -712698321 1673168793
8413
8414 \family typewriter
8415
8416 \backslash
8417 titlerunning{}
8418 \change_deleted -712698321 1673168793
8419
8420 \backslash
8421 email
8422 \end_layout
8423
8424 \begin_layout Itemize
8425
8426 \change_deleted -712698321 1673168793
8427
8428 \family typewriter
8429
8430 \backslash
8431 inst{}
8432 \end_layout
8433
8434 \begin_layout Itemize
8435
8436 \change_deleted -712698321 1673168793
8437
8438 \family typewriter
8439
8440 \backslash
8441 keywords{}
8442 \end_layout
8443
8444 \begin_layout Itemize
8445
8446 \change_deleted -712698321 1673168793
8447
8448 \family typewriter
8449
8450 \backslash
8451 object{}
8452 \change_inserted 564990737 1670794716
8453
8454 \end_layout
8455
8456 \begin_layout Standard
8457
8458 \change_inserted 564990737 1670794716
8459 If you want to use any of these commands,
8460  you have to enter them yourself.
8461  Do not forget to use
8462 \family sans
8463  
8464 \bar under
8465 I
8466 \bar default
8467 nsert\SpecialChar menuseparator
8468 \SpecialChar TeX
8469
8470 \begin_inset space ~
8471 \end_inset
8472
8473 Code
8474 \family default
8475 !
8476 \end_layout
8477
8478 \begin_layout Subsubsection
8479
8480 \change_inserted 564990737 1670794716
8481 Figure and Table Floats
8482 \end_layout
8483
8484 \begin_layout Standard
8485
8486 \change_inserted 564990737 1670794716
8487 \SpecialChar LyX
8488  provides support for the necessary float environments 
8489 \family sans
8490 figure,
8491  figure*,
8492  table
8493 \family default
8494  and 
8495 \family sans
8496 table*
8497 \family default
8498 ,
8499  therefore we won't tell much about it here.
8500  Refer to the 
8501 \emph on
8502 User's
8503 \begin_inset space ~
8504 \end_inset
8505
8506 Guide
8507 \emph default
8508 .
8509  Just remember that tables should be left-aligned.
8510  For that,
8511  select the table and change the alignment in 
8512 \family sans
8513 \bar under
8514 E
8515 \bar default
8516 dit\SpecialChar menuseparator
8517
8518 \bar under
8519 P
8520 \bar default
8521 aragraph
8522 \begin_inset space ~
8523 \end_inset
8524
8525 Settings
8526 \change_inserted -712698321 1673169201
8527
8528 \family default
8529  (
8530 \begin_inset Info
8531 type  "icon"
8532 arg   "layout-paragraph"
8533 \end_inset
8534
8535 )
8536 \change_inserted 564990737 1670794716
8537
8538 \family sans
8539 .
8540 \end_layout
8541
8542 \begin_layout Standard
8543
8544 \change_inserted 564990737 1670794716
8545 There is only one special thing:
8546  the figures with a caption beside the figure.
8547  To create such a figure,
8548  you have to do the following:
8549 \end_layout
8550
8551 \begin_layout Enumerate
8552
8553 \change_inserted 564990737 1670794716
8554 Create a wide figure float:
8555  
8556 \family sans
8557 \bar under
8558 I
8559 \bar default
8560 nsert\SpecialChar menuseparator
8561 Flo
8562 \bar under
8563 a
8564 \bar default
8565 t\SpecialChar menuseparator
8566 Figure
8567 \family default
8568 ,
8569  then,
8570  from within the float,
8571  use the menu 
8572 \family sans
8573 \bar under
8574 E
8575 \bar default
8576 dit\SpecialChar menuseparator
8577 Flo
8578 \bar under
8579 a
8580 \bar default
8581 t
8582 \begin_inset space ~
8583 \end_inset
8584
8585 Settings
8586 \family default
8587  and check 
8588 \family sans
8589 \bar under
8590 S
8591 \bar default
8592 pan
8593 \begin_inset space ~
8594 \end_inset
8595
8596 columns
8597 \family default
8598  in the 
8599 \family sans
8600 float
8601 \family default
8602  dialog.
8603 \end_layout
8604
8605 \begin_layout Enumerate
8606
8607 \change_inserted 564990737 1670794716
8608 Enter your caption text.
8609 \end_layout
8610
8611 \begin_layout Enumerate
8612
8613 \change_inserted 564990737 1670794716
8614 Press 
8615 \family sans
8616 Return
8617 \family default
8618  to move the cursor above the caption.
8619 \end_layout
8620
8621 \begin_layout Enumerate
8622
8623 \change_inserted 564990737 1670794716
8624 Insert your figure
8625 \end_layout
8626
8627 \begin_layout Enumerate
8628
8629 \change_inserted 564990737 1670794716
8630 Position the cursor after the figure and insert a horizontal fill by using the menu:
8631  
8632 \family sans
8633 \bar under
8634 I
8635 \bar default
8636 nsert\SpecialChar menuseparator
8637 F
8638 \bar under
8639 o
8640 \bar default
8641 rmatting\SpecialChar menuseparator
8642 H
8643 \bar under
8644 o
8645 \bar default
8646 rizontal
8647 \begin_inset space ~
8648 \end_inset
8649
8650 Space
8651 \family default
8652  to open the 
8653 \family sans
8654 space
8655 \family default
8656  dialog and select the 
8657 \family sans
8658 Horizontal fill
8659 \family default
8660  option from the 
8661 \family sans
8662 \bar under
8663 S
8664 \bar default
8665 pacing
8666 \family default
8667  
8668 \change_deleted -712698321 1673169720
8669 pull-down
8670 \change_inserted -712698321 1673169724
8671 context
8672 \change_inserted 564990737 1670794716
8673  menu.
8674 \end_layout
8675
8676 \begin_layout Enumerate
8677
8678 \change_inserted 564990737 1670794716
8679 Switch to \SpecialChar LaTeX
8680  mode:
8681  
8682 \family sans
8683 M-c
8684 \begin_inset space ~
8685 \end_inset
8686
8687 t
8688 \family default
8689 .
8690 \end_layout
8691
8692 \begin_layout Enumerate
8693
8694 \change_inserted 564990737 1670794716
8695 Enter 
8696 \family typewriter
8697
8698 \backslash
8699 parbox[b]{55mm}{
8700 \family default
8701  
8702 \emph on
8703 Do not close the brace!
8704 \end_layout
8705
8706 \begin_layout Enumerate
8707
8708 \change_inserted 564990737 1670794716
8709 Position the cursor behind the caption text,
8710  switch to \SpecialChar LaTeX
8711  mode and insert the closing brace:
8712  
8713 \family sans
8714 M-c
8715 \begin_inset space ~
8716 \end_inset
8717
8718 t
8719 \family default
8720  
8721 \family typewriter
8722 }
8723 \family default
8724 .
8725 \end_layout
8726
8727 \begin_layout Standard
8728
8729 \change_inserted 564990737 1671642458
8730 Also,
8731  refer to the figures in the file in 
8732 \family sans
8733 File\SpecialChar menuseparator
8734 Open Example\SpecialChar menuseparator
8735 Articles\SpecialChar menuseparator
8736 Astronomy & Astrophysics
8737 \family default
8738 .
8739 \end_layout
8740
8741 \begin_layout Subsubsection
8742
8743 \change_inserted 564990737 1670794716
8744 Referee layout
8745 \end_layout
8746
8747 \begin_layout Standard
8748
8749 \change_inserted 564990737 1670794716
8750 For submission,
8751  the paper has to be formatted in a special double-spacing layout.
8752  For this purpose,
8753  you have to add the option 
8754 \family typewriter
8755 referee
8756 \family default
8757  to the 
8758 \family sans
8759 Cus
8760 \bar under
8761 t
8762 \bar default
8763 om Class
8764 \begin_inset space ~
8765 \end_inset
8766
8767 options
8768 \family default
8769  in the 
8770 \family sans
8771 \bar under
8772 D
8773 \bar default
8774 ocument\SpecialChar menuseparator
8775
8776 \bar under
8777 S
8778 \bar default
8779 ettings\SpecialChar menuseparator
8780 Document
8781 \begin_inset space ~
8782 \end_inset
8783
8784 Class
8785 \family default
8786  dialog.
8787  
8788 \end_layout
8789
8790 \begin_layout Subsubsection
8791
8792 \change_inserted 564990737 1670794716
8793 The example paper
8794 \end_layout
8795
8796 \begin_layout Standard
8797
8798 \change_inserted 564990737 1671642520
8799 The example in 
8800 \family sans
8801 File\SpecialChar menuseparator
8802 Open Example\SpecialChar menuseparator
8803 Articles\SpecialChar menuseparator
8804 Astronomy & Astrophysics
8805 \family default
8806  was written with \SpecialChar LyX
8807 .
8808  It is the example paper from the original macro package,
8809  
8810 \family typewriter
8811 aa.dem
8812 \family default
8813  in the 
8814 \begin_inset CommandInset href
8815 LatexCommand href
8816 name "aa-package"
8817 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
8818 literal "false"
8819
8820 \end_inset
8821
8822 ,
8823  but translated to \SpecialChar LyX
8824  using the older unstructured abstract type.
8825  Use it for inspiration,
8826  and compare the \SpecialChar LaTeX
8827  code in 
8828 \family typewriter
8829 aa.dem
8830 \family default
8831  with the \SpecialChar LyX
8832  way of writing.
8833 \end_layout
8834
8835 \begin_layout Subsection
8836 AAS\SpecialChar TeX
8837
8838 \end_layout
8839
8840 \begin_layout Standard
8841 by 
8842 \noun on
8843 Mike Ressler
8844 \end_layout
8845
8846 \begin_layout Subsubsection
8847 Introduction
8848 \end_layout
8849
8850 \begin_layout Standard
8851 AAS\SpecialChar TeX
8852  is a set of macros produced by the American Astronomical Society to facilitate electronic manuscript submission to the three journals they publish:
8853  the Astrophysical Journal (including the Letters and Supplement),
8854  the Astronomical Journal,
8855  and the Publications of the Astronomical Society of the Pacific.
8856  \SpecialChar LyX
8857  has proven to be an excellent tool for generating these documents,
8858  especially given its equation,
8859  citation,
8860  and figure handling capabilities.
8861  \SpecialChar LyX
8862  requires version 5.0 (or higher) of these macros;
8863  preferably 6.0,
8864  which is the version described here,
8865  or higher.
8866  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
8867 2.09 and are fundamentally incompatible with \SpecialChar LyX
8868 .
8869  The AAS\SpecialChar TeX
8870  package may be downloaded from the AAS\SpecialChar TeX
8871  Web site
8872 \end_layout
8873
8874 \begin_layout Standard
8875 \begin_inset VSpace medskip
8876 \end_inset
8877
8878
8879 \end_layout
8880
8881 \begin_layout Standard
8882 \align center
8883 \begin_inset Flex URL
8884 status collapsed
8885
8886 \begin_layout Plain Layout
8887
8888 https://aas.org/aastex/aastex-downloads
8889 \end_layout
8890
8891 \end_inset
8892
8893
8894 \end_layout
8895
8896 \begin_layout Standard
8897 \begin_inset VSpace medskip
8898 \end_inset
8899
8900
8901 \end_layout
8902
8903 \begin_layout Standard
8904 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
8905 .
8906  \SpecialChar LyX
8907  will not reduce the need to figure out all the AAS\SpecialChar TeX
8908  commands,
8909  it will only reduce the drudgery of typing everything in.
8910  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
8911  document conforms completely to the requirements of the journal to which you are submitting your paper.
8912 \end_layout
8913
8914 \begin_layout Subsubsection
8915 Starting a New Paper
8916 \end_layout
8917
8918 \begin_layout Standard
8919 I strongly suggest that you start with the AAS\SpecialChar TeX
8920  template file.
8921  Click on 
8922 \family sans
8923 File\SpecialChar menuseparator
8924 New from
8925 \family default
8926  
8927 \family sans
8928 Template
8929 \change_inserted 564990737 1671617265
8930 \SpecialChar menuseparator
8931 Articles\SpecialChar menuseparator
8932 American Astronomical Society
8933 \change_deleted 564990737 1671617310
8934
8935 \family default
8936 ,
8937  enter the new file name,
8938  then choose the 
8939 \family typewriter
8940 aastex6.lyx
8941 \family default
8942  template
8943 \change_unchanged
8944 .
8945  This will show the most common fields found in a manuscript.
8946  Simply overwrite the existing text (including the brackets,
8947  
8948 \family typewriter
8949 <>
8950 \family default
8951 ) with the correct information.
8952  Many of the AAS\SpecialChar TeX
8953  commands and environments can be implemented directly in \SpecialChar LyX
8954 ,
8955  but some cannot.
8956  For commands such as these,
8957  the \SpecialChar LaTeX
8958  code must be entered directly and marked as such.
8959  Such commands are referred to as \SpecialChar TeX
8960  code,
8961  or Evil Red Text.
8962  I tried to minimize the amount of \SpecialChar TeX
8963  code needed in an AAS\SpecialChar TeX
8964  document.
8965 \end_layout
8966
8967 \begin_layout Subsubsection
8968 Finishing Your Paper
8969 \end_layout
8970
8971 \begin_layout Standard
8972 When the paper is finished to your satisfaction and previews/prints correctly,
8973  there are a few 
8974 \begin_inset Quotes eld
8975 \end_inset
8976
8977 postprocessing
8978 \begin_inset Quotes erd
8979 \end_inset
8980
8981  actions which need to be done before you submit it to the journals.
8982  
8983 \end_layout
8984
8985 \begin_layout Enumerate
8986 Export your paper as a \SpecialChar LaTeX
8987  file (
8988 \family sans
8989 File\SpecialChar menuseparator
8990 Export\SpecialChar menuseparator
8991 \SpecialChar LaTeX
8992
8993 \family default
8994 ).
8995  
8996 \end_layout
8997
8998 \begin_layout Enumerate
8999 Edit the resulting 
9000 \family typewriter
9001 .tex
9002 \family default
9003  file with your favorite text editor
9004 \end_layout
9005
9006 \begin_deeper
9007 \begin_layout Enumerate
9008 remove the comment lines before the 
9009 \family typewriter
9010
9011 \backslash
9012 documentclass
9013 \family default
9014  command
9015 \end_layout
9016
9017 \begin_layout Enumerate
9018 remove the 
9019 \family typewriter
9020
9021 \backslash
9022 usepackage...{fontenc}
9023 \family default
9024  line if it appears (usually just after 
9025 \family typewriter
9026
9027 \backslash
9028 documentclass
9029 \family default
9030 };
9031  also remove the 
9032 \family typewriter
9033
9034 \backslash
9035 secnumdepth
9036 \family default
9037  line if it appears.
9038 \end_layout
9039
9040 \begin_layout Enumerate
9041 remove everything between (and including) the 
9042 \family typewriter
9043
9044 \backslash
9045 makeatletter
9046 \family default
9047  and 
9048 \family typewriter
9049
9050 \backslash
9051 makeatother
9052 \family default
9053  commands,
9054  except for any commands you specifically put into the \SpecialChar LaTeX
9055  preamble (which should appear immediately after the 
9056 \begin_inset Quotes eld
9057 \end_inset
9058
9059 User specified \SpecialChar LaTeX
9060  commands
9061 \begin_inset Quotes erd
9062 \end_inset
9063
9064  comment in the 
9065 \family typewriter
9066 .tex
9067 \family default
9068  file).
9069 \end_layout
9070
9071 \end_deeper
9072 \begin_layout Enumerate
9073 Run the resulting file through \SpecialChar LaTeX
9074  to make sure it still processes correctly.
9075 \end_layout
9076
9077 \begin_layout Enumerate
9078 Reread the journal requirements to make sure your filenames and formats are correct.
9079 \end_layout
9080
9081 \begin_layout Enumerate
9082 Submit it.
9083 \end_layout
9084
9085 \begin_layout Subsubsection
9086 Comments On Specific Commands
9087 \end_layout
9088
9089 \begin_layout Standard
9090 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
9091  commands:
9092  the AAS\SpecialChar TeX
9093  User Guide (
9094 \family typewriter
9095 aasguide.tex
9096 \family default
9097 ) gives a good description of each.
9098  Thus it's probably easiest for me to go down the list as found in the guide and offer comments where necessary.
9099  So let's begin \SpecialChar ldots
9100
9101 \end_layout
9102
9103 \begin_layout Paragraph
9104 Things that work as expected
9105 \end_layout
9106
9107 \begin_layout Standard
9108 Because they work as you might expect,
9109  I simply list them and the section they are found in:
9110  
9111 \family typewriter
9112
9113 \backslash
9114 documentclass
9115 \family default
9116  (2.1.1),
9117  
9118 \family typewriter
9119
9120 \backslash
9121 begin{document}
9122 \family default
9123  (2.2),
9124  
9125 \family typewriter
9126
9127 \backslash
9128 title
9129 \family default
9130  (2.3),
9131  
9132 \family typewriter
9133
9134 \backslash
9135 author
9136 \family default
9137  (2.3),
9138  
9139 \family typewriter
9140
9141 \backslash
9142 affil
9143 \family default
9144  (2.3),
9145  
9146 \family typewriter
9147
9148 \backslash
9149 abstract
9150 \family default
9151  (2.4),
9152  
9153 \family typewriter
9154
9155 \backslash
9156 keywords
9157 \family default
9158  (2.5),
9159  
9160 \family typewriter
9161
9162 \backslash
9163 section
9164 \family default
9165  (2.7),
9166  
9167 \family typewriter
9168
9169 \backslash
9170 subsection
9171 \family default
9172  (2.7),
9173  
9174 \family typewriter
9175
9176 \backslash
9177 subsubsection
9178 \family default
9179  (2.7),
9180  
9181 \family typewriter
9182
9183 \backslash
9184 paragraph
9185 \family default
9186  (2.7),
9187  
9188 \family typewriter
9189
9190 \backslash
9191 facility
9192 \family default
9193  (2.10),
9194  
9195 \family typewriter
9196
9197 \backslash
9198 begin{displaymath}
9199 \family default
9200  (2.12),
9201  
9202 \family typewriter
9203
9204 \backslash
9205 begin{equation}
9206 \family default
9207  (2.12),
9208  
9209 \family typewriter
9210
9211 \backslash
9212 begin{eqnarray}
9213 \family default
9214  (2.12),
9215  
9216 \family typewriter
9217
9218 \backslash
9219 begin{mathletters}
9220 \family default
9221  (2.12),
9222  
9223 \family typewriter
9224
9225 \backslash
9226 begin{thebibliography}
9227 \family default
9228  (2.13.1),
9229  
9230 \family typewriter
9231
9232 \backslash
9233 bibitem
9234 \family default
9235  (2.13.2),
9236  all the cite commands and their variations (2.13.2),
9237  the generic graphicx figure commands (2.14.1),
9238  
9239 \family typewriter
9240
9241 \backslash
9242 begin{table}
9243 \family default
9244  (2.15.4),
9245  
9246 \family typewriter
9247
9248 \backslash
9249 begin{tabular}
9250 \family default
9251  (2.15.4),
9252  
9253 \family typewriter
9254
9255 \backslash
9256 caption
9257 \family default
9258  (2.15.4),
9259  
9260 \family typewriter
9261
9262 \backslash
9263 label
9264 \family default
9265  (2.15.4,
9266  amongst other places),
9267  
9268 \family typewriter
9269
9270 \backslash
9271 tablerefs
9272 \family default
9273  (2.15.5),
9274  
9275 \family typewriter
9276
9277 \backslash
9278 tablecomments
9279 \family default
9280  (2.15.5),
9281  
9282 \family typewriter
9283
9284 \backslash
9285 url
9286 \family default
9287  (2.17.4),
9288  
9289 \family typewriter
9290
9291 \backslash
9292 end{document}
9293 \family default
9294  (2.18).
9295 \end_layout
9296
9297 \begin_layout Standard
9298 The following style options also work correctly:
9299  
9300 \family typewriter
9301 longabstract
9302 \family default
9303  (2.4),
9304  
9305 \family typewriter
9306 preprint
9307 \family default
9308  (3.2.1),
9309  
9310 \family typewriter
9311 preprint2
9312 \family default
9313  (3.2.2),
9314  
9315 \family typewriter
9316 eqsecnum
9317 \family default
9318  (3.3),
9319  
9320 \family typewriter
9321 flushrt
9322 \family default
9323  (3.4).
9324  Simply put them in the 
9325 \family sans
9326 Options
9327 \family default
9328  box in 
9329 \family sans
9330 Layout\SpecialChar menuseparator
9331 Document
9332 \family default
9333 .
9334 \end_layout
9335
9336 \begin_layout Paragraph
9337 Things that work,
9338  but require more comment
9339 \end_layout
9340
9341 \begin_layout Standard
9342 The following items work,
9343  but require a little more discussion:
9344 \end_layout
9345
9346 \begin_layout Itemize
9347 These items are reserved for use by the journal editors,
9348  but you can put them into the \SpecialChar LaTeX
9349  preamble if you feel compelled to do so:
9350  
9351 \family typewriter
9352
9353 \backslash
9354 received
9355 \family default
9356 ,
9357  
9358 \family typewriter
9359
9360 \backslash
9361 revised
9362 \family default
9363 ,
9364  
9365 \family typewriter
9366
9367 \backslash
9368 accepted
9369 \family default
9370 ,
9371  
9372 \family typewriter
9373
9374 \backslash
9375 ccc
9376 \family default
9377 ,
9378  
9379 \family typewriter
9380
9381 \backslash
9382 cpright
9383 \family default
9384  (all from 2.1.3)
9385 \end_layout
9386
9387 \begin_layout Itemize
9388 These items may be placed in the \SpecialChar LaTeX
9389  preamble,
9390  and are included as blanks in the template file:
9391  
9392 \family typewriter
9393
9394 \backslash
9395 slugcomment
9396 \family default
9397  (2.1.4),
9398  
9399 \family typewriter
9400
9401 \backslash
9402 shorttitle
9403 \family default
9404  (2.1.5),
9405  
9406 \family typewriter
9407
9408 \backslash
9409 shortauthors
9410 \family default
9411  (2.1.5)
9412 \end_layout
9413
9414 \begin_layout Itemize
9415
9416 \family typewriter
9417
9418 \backslash
9419 email
9420 \family default
9421  (2.3) – can only be used 
9422 \begin_inset Quotes eld
9423 \end_inset
9424
9425 standalone
9426 \begin_inset Quotes erd
9427 \end_inset
9428
9429 ,
9430  not in the middle of a paragraph.
9431  Use \SpecialChar TeX
9432  code if you need to embed it.
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family typewriter
9438
9439 \backslash
9440 and
9441 \family default
9442  (2.3) – will have extra {} after it.
9443  This should not cause an error.
9444 \end_layout
9445
9446 \begin_layout Itemize
9447
9448 \family typewriter
9449
9450 \backslash
9451 notetoeditor
9452 \family default
9453  (2.6) – can only be used 
9454 \begin_inset Quotes eld
9455 \end_inset
9456
9457 standalone
9458 \begin_inset Quotes erd
9459 \end_inset
9460
9461 ,
9462  not in the middle of a paragraph.
9463  Use \SpecialChar TeX
9464  code if you need to embed it.
9465 \end_layout
9466
9467 \begin_layout Itemize
9468
9469 \family typewriter
9470
9471 \backslash
9472 placetable
9473 \family default
9474  (2.8) – can't insert a cross-reference tag,
9475  you must type the tag name by hand
9476 \end_layout
9477
9478 \begin_layout Itemize
9479
9480 \family typewriter
9481
9482 \backslash
9483 placefigure
9484 \family default
9485  (2.8) – same as for 
9486 \family typewriter
9487
9488 \backslash
9489 placetable
9490 \end_layout
9491
9492 \begin_layout Itemize
9493
9494 \family typewriter
9495
9496 \backslash
9497 acknowledgements
9498 \family default
9499  (2.9) – will have extra {} after it.
9500  This should not cause an error.
9501 \end_layout
9502
9503 \begin_layout Itemize
9504
9505 \family typewriter
9506
9507 \backslash
9508 appendix
9509 \family default
9510  (2.11) – will have extra {} after it.
9511  This should not cause an error.
9512 \end_layout
9513
9514 \begin_layout Itemize
9515
9516 \family typewriter
9517
9518 \backslash
9519 figcaption
9520 \family default
9521  (2.14.2) – you can insert an optional filename argument by placing the cursor at the beginning of the text and selecting 
9522 \family sans
9523 Insert\SpecialChar menuseparator
9524 Short Title
9525 \family default
9526 .
9527  
9528 \begin_inset Quotes eld
9529 \end_inset
9530
9531 Short Title
9532 \begin_inset Quotes erd
9533 \end_inset
9534
9535  inserts an optional argument of the type needed by 
9536 \family typewriter
9537
9538 \backslash
9539 figcaption
9540 \family default
9541 .
9542  Hopefully it will be renamed someday.
9543 \end_layout
9544
9545 \begin_layout Itemize
9546
9547 \family typewriter
9548
9549 \backslash
9550 objectname
9551 \family default
9552  (2.17.1) – same as 
9553 \family typewriter
9554
9555 \backslash
9556 figcaption
9557 \family default
9558  for the catalog ID optional parameter
9559 \end_layout
9560
9561 \begin_layout Itemize
9562
9563 \family typewriter
9564
9565 \backslash
9566 dataset
9567 \family default
9568  (2.17.1) – same as 
9569 \family typewriter
9570
9571 \backslash
9572 figcaption
9573 \family default
9574  for the catalog ID optional parameter
9575 \end_layout
9576
9577 \begin_layout Paragraph
9578 Things not implemented,
9579  use \SpecialChar TeX
9580  code
9581 \end_layout
9582
9583 \begin_layout Standard
9584
9585 \family typewriter
9586
9587 \backslash
9588 eqnum
9589 \family default
9590  (2.12),
9591  
9592 \family typewriter
9593
9594 \backslash
9595 setcounter{equation}
9596 \family default
9597  (2.12),
9598  Journal name abbreviations (2.13.4),
9599  
9600 \family typewriter
9601
9602 \backslash
9603 figurenum
9604 \family default
9605  (2.14.1),
9606  
9607 \family typewriter
9608
9609 \backslash
9610 epsscale
9611 \family default
9612  (2.14.1),
9613  
9614 \family typewriter
9615
9616 \backslash
9617 plotone
9618 \family default
9619  (2.14.1),
9620  
9621 \family typewriter
9622
9623 \backslash
9624 plottwo
9625 \family default
9626  (2.14.1),
9627  
9628 \family typewriter
9629
9630 \backslash
9631 tablenum
9632 \family default
9633  (2.15.4),
9634  
9635 \family typewriter
9636
9637 \backslash
9638 tableline
9639 \family default
9640  (2.15.4,
9641  insert it as the first element in the lefthand cell after where you want it.
9642  Don't use any of \SpecialChar LyX
9643 's rules in the table),
9644  
9645 \family typewriter
9646
9647 \backslash
9648 tablenotemark
9649 \family default
9650  (2.15.5),
9651  
9652 \family typewriter
9653
9654 \backslash
9655 tablenotetext
9656 \family default
9657  (2.15.5),
9658  much of Misc (2.17,
9659  except 
9660 \family typewriter
9661
9662 \backslash
9663 objectname
9664 \family default
9665 ,
9666  
9667 \family typewriter
9668
9669 \backslash
9670 dataset
9671 \family default
9672 ,
9673  
9674 \family typewriter
9675
9676 \backslash
9677 url
9678 \family default
9679 ,
9680  and 
9681 \family typewriter
9682
9683 \backslash
9684 email
9685 \family default
9686 ;
9687  see above),
9688  
9689 \family typewriter
9690
9691 \backslash
9692 singlespace
9693 \family default
9694  (3.1),
9695  
9696 \family typewriter
9697
9698 \backslash
9699 doublespace
9700 \family default
9701  (3.1),
9702  
9703 \family typewriter
9704
9705 \backslash
9706 onecolumn
9707 \family default
9708  (3.2),
9709  
9710 \family typewriter
9711
9712 \backslash
9713 twocolumn
9714 \family default
9715  (3.2)
9716 \end_layout
9717
9718 \begin_layout Paragraph
9719 Things that cannot be implemented
9720 \end_layout
9721
9722 \begin_layout Standard
9723 \SpecialChar ldots
9724  at least in any meaningful sort of way,
9725  so I suggest ignoring them.
9726  They are the references environment (2.13.3),
9727  and the deluxetable environment (2.15).
9728  If you really,
9729  really need to use deluxetable,
9730  I suggest editing it in a separate file with a text editor,
9731  then using 
9732 \family sans
9733 Insert\SpecialChar menuseparator
9734 Child
9735 \begin_inset space ~
9736 \end_inset
9737
9738 Document
9739 \family default
9740  to include it in your \SpecialChar LyX
9741  document.
9742  See 
9743 \change_deleted 564990737 1671642564
9744 the 
9745 \family typewriter
9746 aas_sample.lyx
9747 \family default
9748  file to see
9749 \change_inserted 564990737 1671642618
9750
9751 \family sans
9752 File\SpecialChar menuseparator
9753 Open Example\SpecialChar menuseparator
9754 Articles\SpecialChar menuseparator
9755 American Astronomical Society
9756 \change_unchanged
9757
9758 \family default
9759  
9760 \change_inserted 564990737 1671642621
9761 for 
9762 \change_unchanged
9763 an example of this.
9764 \end_layout
9765
9766 \begin_layout Subsubsection
9767 FAQs,
9768  Tips,
9769  Tricks,
9770  and Other Ruminations
9771 \end_layout
9772
9773 \begin_layout Paragraph
9774 Getting \SpecialChar LyX
9775  and AAS\SpecialChar TeX
9776  to cooperate
9777 \end_layout
9778
9779 \begin_layout Standard
9780 It can be a bit tricky to get \SpecialChar LyX
9781  to recognize a new layout and document class.
9782  When all else fails,
9783  do this:
9784 \end_layout
9785
9786 \begin_layout Enumerate
9787 Make certain that \SpecialChar LaTeX
9788  can find AAS\SpecialChar TeX
9789 .
9790  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
9791  distribution into a directory completely unrelated to \SpecialChar LaTeX
9792  or AAS\SpecialChar TeX
9793  and run \SpecialChar LaTeX
9794  on 
9795 \family typewriter
9796 sample.tex
9797 \family default
9798 .
9799 \end_layout
9800
9801 \begin_layout Enumerate
9802 Make certain that 
9803 \family typewriter
9804 aastex.layout
9805 \family default
9806  appears in \SpecialChar LyX
9807 's 
9808 \family typewriter
9809 layouts
9810 \family default
9811  folder
9812 \end_layout
9813
9814 \begin_layout Enumerate
9815 Rerun 
9816 \family sans
9817 Tools\SpecialChar menuseparator
9818 Reconfigure
9819 \family default
9820  in \SpecialChar LyX
9821 ,
9822  then restart \SpecialChar LyX
9823 .
9824 \end_layout
9825
9826 \begin_layout Enumerate
9827 Open a regular new file,
9828  not from a template.
9829  Does 
9830 \change_deleted -712698321 1673170671
9831 AAS\SpecialChar TeX
9832
9833 \change_inserted -712698321 1673170671
9834
9835 \family sans
9836 American Astronomical Society (AASTeX V.
9837 \begin_inset space \thinspace{}
9838 \end_inset
9839
9840 6)
9841 \change_unchanged
9842
9843 \family default
9844  appear in the class list in 
9845 \family sans
9846 Document\SpecialChar menuseparator
9847 Settings
9848 \family default
9849 ?
9850 \end_layout
9851
9852 \begin_layout Standard
9853 If you get a warning from an existing AAS\SpecialChar TeX
9854  document about not being able to find the AAS\SpecialChar TeX
9855  layout or a message about 
9856 \begin_inset Quotes eld
9857 \end_inset
9858
9859 You should not mix title layouts with normal ones
9860 \begin_inset Quotes erd
9861 \end_inset
9862
9863 ,
9864  things haven't been installed correctly.
9865 \end_layout
9866
9867 \begin_layout Paragraph
9868 \SpecialChar LaTeX
9869  error processing a table 
9870 \end_layout
9871
9872 \begin_layout Standard
9873 \SpecialChar LyX
9874 ,
9875  by default,
9876  attempts to center the table caption/title.
9877  This seems to produce a bad interaction in AAS\SpecialChar TeX
9878  so you should click somewhere in the caption/title,
9879  then select 
9880 \family sans
9881 Edit\SpecialChar menuseparator
9882 Paragraph
9883 \begin_inset space ~
9884 \end_inset
9885
9886 Settings
9887 \family default
9888 ,
9889  then set the 
9890 \family sans
9891 Alignment
9892 \family default
9893  to 
9894 \family sans
9895 Block
9896 \family default
9897 .
9898  This took care of it for me.
9899 \end_layout
9900
9901 \begin_layout Paragraph
9902 References
9903 \end_layout
9904
9905 \begin_layout Standard
9906 A couple of things:
9907  
9908 \change_inserted -712698321 1673170733
9909
9910 \end_layout
9911
9912 \begin_layout Enumerate
9913
9914 \change_deleted -712698321 1673170736
9915 1) 
9916 \change_unchanged
9917 I have noticed some funny spacing in the reference entries in the text.
9918  When you enter the bibliography item data,
9919  make sure their is 
9920 \emph on
9921 no
9922 \emph default
9923  space between the last author and the parenthesis setting off the year;
9924  
9925 \emph on
9926 e.
9927 \begin_inset space \thinspace{}
9928 \end_inset
9929
9930 g.
9931 \begin_inset space \space{}
9932 \end_inset
9933
9934
9935 \emph default
9936 type 
9937 \family typewriter
9938 Ressler(1992)
9939 \family default
9940 ,
9941  not 
9942 \family typewriter
9943 Ressler (1992)
9944 \family default
9945 .
9946  
9947 \change_deleted -712698321 1673170741
9948 2) 
9949 \change_inserted -712698321 1673170741
9950
9951 \end_layout
9952
9953 \begin_layout Enumerate
9954 Entering the references at all is not obvious.
9955  The easiest thing is to start typing your first reference at the end of the document,
9956  then mark it as type 
9957 \family sans
9958 References
9959 \family default
9960 .
9961  That will put a small gray box in front of what you just typed.
9962  Click on the box to fill in the rest of the information.
9963  For new references,
9964  go to the end of an existing reference and press return.
9965  That will create a new line with its own box,
9966  etc.
9967 \end_layout
9968
9969 \begin_layout Paragraph
9970 Including EPS files
9971 \end_layout
9972
9973 \begin_layout Standard
9974 Even though AAS\SpecialChar TeX
9975  provides its own figure commands (
9976 \family typewriter
9977
9978 \backslash
9979 plotone
9980 \family default
9981 ,
9982  for example),
9983  I much prefer \SpecialChar LaTeX
9984 's standard figure commands (with the default graphicx).
9985  You can insert the 
9986 \family typewriter
9987
9988 \backslash
9989 plotone
9990 \family default
9991 ,
9992  etc.
9993 \begin_inset space ~
9994 \end_inset
9995
9996 commands as \SpecialChar TeX
9997  code into a Figure Float box if you desire,
9998  but I never have much luck getting the layout right.
9999  With the standard graphics,
10000  \SpecialChar LyX
10001  will insert a 
10002 \family typewriter
10003
10004 \backslash
10005 usepackage{graphicx}
10006 \family default
10007  command into the \SpecialChar LaTeX
10008  preamble and handle the figures in the standard \SpecialChar LaTeX2e
10009  way,
10010  interspersing the figures in the text.
10011  I believe ApJ accepts figures exactly this way now;
10012  AJ might still use the 
10013 \begin_inset Quotes eld
10014 \end_inset
10015
10016 stack everything at the end
10017 \begin_inset Quotes erd
10018 \end_inset
10019
10020  technique.
10021 \end_layout
10022
10023 \begin_layout Paragraph
10024 Things I could have done,
10025  but didn't
10026 \end_layout
10027
10028 \begin_layout Standard
10029 There are a few 
10030 \begin_inset Quotes eld
10031 \end_inset
10032
10033 pretty
10034 \begin_inset Quotes erd
10035 \end_inset
10036
10037  things I could have implemented,
10038  but chose not to.
10039  For instance,
10040  I saw no point in double-spacing the text in the \SpecialChar LyX
10041  window,
10042  even though it is double-spaced in the paper manuscript.
10043  Also,
10044  I chose not to make separate layouts for the preprint and preprint2 styles.
10045  Since I assume you will spend most of your time in the plain manuscript mode anyway,
10046  I decided not to chew up more disk space with this.
10047  
10048 \end_layout
10049
10050 \begin_layout Subsubsection
10051 Final Caveat
10052 \end_layout
10053
10054 \begin_layout Standard
10055 Your mileage may vary.
10056  I've now had papers published by both ApJ and AJ that have had 98% of the effort done in \SpecialChar LyX
10057 ;
10058  the last 2% was the \SpecialChar LaTeX
10059  post-processing and a few cleanups.
10060  I have had no trouble with the submission process,
10061  and I'm sure the journals were never aware that there might be a difference.
10062  So,
10063  go forth and publish!
10064 \end_layout
10065
10066 \begin_layout Subsection
10067
10068 \change_inserted 564990737 1671442131
10069 Chess
10070 \end_layout
10071
10072 \begin_layout Standard
10073
10074 \change_inserted 564990737 1671642768
10075 The document class 
10076 \change_deleted -712698321 1673171415
10077
10078 \family sans
10079 article
10080 \begin_inset space \thinspace{}
10081 \end_inset
10082
10083 (
10084 \change_inserted 564990737 1671642768
10085 Chess
10086 \change_deleted -712698321 1673171417
10087 )
10088 \change_inserted 564990737 1671642768
10089
10090 \family default
10091  uses the 
10092 \change_deleted -712698321 1673171421
10093
10094 \family typewriter
10095 article.cls
10096 \family default
10097  
10098 \change_inserted -712698321 1673171424
10099 standard article 
10100 \change_inserted 564990737 1671642768
10101 document class together with the 
10102 \change_deleted -712698321 1673171428
10103 style
10104 \change_inserted -712698321 1673171429
10105 package
10106 \change_inserted 564990737 1671642768
10107  
10108 \family sans
10109 lyxskak
10110 \change_deleted -712698321 1673171431
10111 .sty
10112 \change_inserted 564990737 1671642768
10113
10114 \family default
10115  to facilitate the description of chess games.
10116  See 
10117 \family sans
10118 File\SpecialChar menuseparator
10119 Open Example\SpecialChar menuseparator
10120 Articles\SpecialChar menuseparator
10121 Chess
10122 \family default
10123  where you will find 
10124 \family sans
10125 Game 1
10126 \family default
10127  and 
10128 \family sans
10129 Game 2
10130 \family default
10131 .
10132 \end_layout
10133
10134 \begin_layout Subsection
10135
10136 \change_inserted 564990737 1671042028
10137 Elsevier
10138 \end_layout
10139
10140 \begin_layout Standard
10141
10142 \change_inserted 564990737 1671617396
10143 The document class 
10144 \change_deleted -712698321 1673171640
10145
10146 \family sans
10147 article
10148 \begin_inset space \thinspace{}
10149 \end_inset
10150
10151 (
10152 \change_inserted 564990737 1671617396
10153 Elsevier
10154 \change_deleted -712698321 1673171643
10155 )
10156 \change_inserted 564990737 1671617396
10157
10158 \family default
10159  provides 
10160 \change_inserted -712698321 1673171717
10161 support for 
10162 \change_inserted 564990737 1671617396
10163 the 
10164 \family typewriter
10165 elsarticle
10166 \change_deleted -712698321 1673171720
10167 .cls
10168 \change_inserted 564990737 1671617396
10169
10170 \family default
10171  
10172 \change_deleted -712698321 1673171728
10173 document
10174 \change_inserted -712698321 1673171728
10175 \SpecialChar LaTeX
10176
10177 \change_inserted 564990737 1671617396
10178  class
10179 \change_inserted -712698321 1673171744
10180  for journals in the Elsevier publishing house
10181 \change_inserted 564990737 1671617396
10182 .
10183  This provides the following additional environments:
10184  
10185 \family sans
10186 Title
10187 \begin_inset space ~
10188 \end_inset
10189
10190 footnote
10191 \family default
10192 ,
10193  
10194 \family sans
10195 Author
10196 \begin_inset space ~
10197 \end_inset
10198
10199 footnote
10200 \family default
10201 ,
10202  
10203 \family sans
10204 Corresponding
10205 \begin_inset space ~
10206 \end_inset
10207
10208 author
10209 \family default
10210 ,
10211  
10212 \family sans
10213 Address
10214 \family default
10215 ,
10216  
10217 \family sans
10218 Email
10219 \family default
10220  and 
10221 \family sans
10222 Keywords
10223 \family default
10224 .
10225  
10226 \change_inserted -712698321 1673172045
10227
10228 \end_layout
10229
10230 \begin_layout Standard
10231
10232 \change_inserted 564990737 1671617396
10233 A template is available in the menu 
10234 \family sans
10235 \bar under
10236 F
10237 \bar default
10238 ile\SpecialChar menuseparator
10239 New
10240 \begin_inset space ~
10241 \end_inset
10242
10243 fro
10244 \bar under
10245 m
10246 \bar default
10247
10248 \begin_inset space ~
10249 \end_inset
10250
10251 Template\SpecialChar menuseparator
10252 Articles\SpecialChar menuseparator
10253 Elsevier
10254 \family default
10255 .
10256  It has been customized with further environments and contains all the information you may need.
10257  However,
10258  the documentation is also available from 
10259 \begin_inset CommandInset href
10260 LatexCommand href
10261 name "CTAN"
10262 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
10263 literal "false"
10264
10265 \end_inset
10266
10267 .
10268 \end_layout
10269
10270 \begin_layout Subsection
10271
10272 \change_inserted 564990737 1671042046
10273 Paper
10274 \end_layout
10275
10276 \begin_layout Standard
10277
10278 \change_inserted 564990737 1671042046
10279 The document class 
10280 \change_deleted -712698321 1673172423
10281
10282 \family sans
10283 article
10284 \begin_inset space \thinspace{}
10285 \end_inset
10286
10287 (paper
10288 \change_inserted -712698321 1673172423
10289 Paper (Standard Class)
10290 \change_deleted -712698321 1673172423
10291 )
10292 \change_inserted 564990737 1671042046
10293
10294 \family default
10295  provides an alternative to the 
10296 \change_deleted -712698321 1673172092
10297
10298 \family typewriter
10299 article.cls
10300 \change_inserted -712698321 1673172435
10301
10302 \family sans
10303 Article (Standard Class)
10304 \change_inserted 564990737 1671042046
10305
10306 \family default
10307  document class.
10308  It provides similar functionality,
10309  but you might prefer this layout with sans serif sections,
10310  headings,
10311  and more.
10312 \end_layout
10313
10314 \begin_layout Subsection
10315 Rev\SpecialChar TeX
10316 4
10317 \end_layout
10318
10319 \begin_layout Standard
10320 by 
10321 \noun on
10322 Amir Karger
10323 \end_layout
10324
10325 \begin_layout Standard
10326 \begin_inset VSpace bigskip
10327 \end_inset
10328
10329
10330 \end_layout
10331
10332 \begin_layout Standard
10333 \noindent
10334 The 
10335 \family sans
10336 Rev
10337 \change_deleted -712698321 1673172482
10338 tex
10339 \begin_inset space ~
10340 \end_inset
10341
10342 4
10343 \change_inserted -712698321 1673172487
10344 TeX (V.
10345 \begin_inset space \thinspace{}
10346 \end_inset
10347
10348 4)
10349 \change_unchanged
10350
10351 \family default
10352  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
10353  4.0 (the 
10354 \begin_inset Formula $\beta$
10355 \end_inset
10356
10357  release of May,
10358  1999) class.
10359 \end_layout
10360
10361 \begin_layout Standard
10362 \SpecialChar LyX
10363  has a 
10364 \family sans
10365 R
10366 \change_deleted -712698321 1673172511
10367 evtex
10368 \change_inserted -712698321 1673172517
10369 EVTeX (obsolete)
10370 \change_unchanged
10371
10372 \family default
10373  textclass,
10374  which works with Rev\SpecialChar TeX
10375  3.1.
10376  However,
10377  v3.1 is basically obsolete,
10378  as it works with \SpecialChar LaTeX
10379  2.09.
10380  That means that it doesn't interact very well with \SpecialChar LyX
10381 ,
10382  which requires \SpecialChar LaTeX2e
10383 ,
10384  although it has been kludged to work.
10385  Since Rev\SpecialChar TeX
10386  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
10387 ,
10388  \SpecialChar LyX
10389  with the 
10390 \change_deleted -712698321 1673172538
10391
10392 \family sans
10393 Rev\SpecialChar TeX
10394
10395 \begin_inset space ~
10396 \end_inset
10397
10398 4
10399 \change_inserted -712698321 1673172538
10400 Revtex
10401 \begin_inset space ~
10402 \end_inset
10403
10404 4TeX (V.
10405 \begin_inset space \thinspace{}
10406 \end_inset
10407
10408 4)
10409 \change_unchanged
10410
10411 \family default
10412  textclass should also be pretty easy to use.
10413 \end_layout
10414
10415 \begin_layout Standard
10416 These documents are supposed to be used in 
10417 \emph on
10418 addition
10419 \emph default
10420  to the Rev\SpecialChar TeX
10421  4.0 documents,
10422  so we don't describe any of the special Rev\SpecialChar TeX
10423  macros,
10424  and assume you'll know what to put in the preamble if necessary.
10425 \end_layout
10426
10427 \begin_layout Subsubsection
10428 Installation
10429 \end_layout
10430
10431 \begin_layout Standard
10432 All you need to do is install Rev\SpecialChar TeX
10433  4,
10434  as described in the package's README file.
10435  The package can be found at The Rev\SpecialChar TeX
10436  4 Web Site 
10437 \begin_inset Flex URL
10438 status collapsed
10439
10440 \begin_layout Plain Layout
10441
10442 http://publish.aps.org/revtex4/
10443 \end_layout
10444
10445 \end_inset
10446
10447 .
10448  Install it somewhere that \SpecialChar LaTeX
10449  can see it.
10450  Test it by trying to \SpecialChar LaTeX
10451  a short Rev\SpecialChar TeX
10452  4 document in some random directory (i.
10453 \begin_inset space \thinspace{}
10454 \end_inset
10455
10456 e.
10457 \begin_inset space \space{}
10458 \end_inset
10459
10460 not the directory where you installed the class file.) Then,
10461  if you reconfigure \SpecialChar LyX
10462 ,
10463  it will find the class file and let you use the Rev\SpecialChar TeX
10464 4 textclass.
10465 \end_layout
10466
10467 \begin_layout Standard
10468 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
10469  4 document using 
10470 \family typewriter
10471 tex2lyx
10472 \family default
10473 ,
10474  or to use the 
10475 \family sans
10476 Revtex
10477 \begin_inset space ~
10478 \end_inset
10479
10480 4
10481 \family default
10482  template,
10483  found in 
10484 \change_deleted -712698321 1673172641
10485 the templates directory
10486 \change_inserted -712698321 1673172687
10487
10488 \family sans
10489 File\SpecialChar menuseparator
10490 New From Templates\SpecialChar menuseparator
10491 Articles
10492 \change_unchanged
10493
10494 \family default
10495 .
10496 \end_layout
10497
10498 \begin_layout Subsubsection
10499 Preamble Matter
10500 \end_layout
10501
10502 \begin_layout Standard
10503 Optional arguments to 
10504 \family typewriter
10505
10506 \backslash
10507 documentclass
10508 \family default
10509 ,
10510  like 
10511 \begin_inset Quotes eld
10512 \end_inset
10513
10514 preprint
10515 \begin_inset Quotes erd
10516 \end_inset
10517
10518  and 
10519 \begin_inset Quotes eld
10520 \end_inset
10521
10522 aps
10523 \begin_inset Quotes erd
10524 \end_inset
10525
10526 ,
10527  go in the 
10528 \family sans
10529 Extra
10530 \begin_inset space ~
10531 \end_inset
10532
10533 Options
10534 \family default
10535  field in the 
10536 \family sans
10537 Document
10538 \begin_inset space ~
10539 \end_inset
10540
10541 Layout
10542 \family default
10543  dialog,
10544  as usual.
10545  Remember that in Rev\SpecialChar TeX
10546 ,
10547  at least one optional argument is required!
10548  
10549 \end_layout
10550
10551 \begin_layout Standard
10552 Other preamble matter,
10553  like 
10554 \family typewriter
10555
10556 \backslash
10557 draft
10558 \family default
10559  etc.
10560 \begin_inset space ~
10561 \end_inset
10562
10563 goes in the 
10564 \family sans
10565 \SpecialChar LaTeX
10566
10567 \begin_inset space ~
10568 \end_inset
10569
10570 Preamble
10571 \family default
10572  dialog,
10573  also as usual.
10574 \end_layout
10575
10576 \begin_layout Subsubsection
10577 Layouts
10578 \end_layout
10579
10580 \begin_layout Standard
10581 The layouts basically correspond to the commands in Rev\SpecialChar TeX
10582 4.0.
10583  For example,
10584  the Email layout corresponds to 
10585 \family typewriter
10586
10587 \backslash
10588 email{}
10589 \family default
10590 .
10591  Note that (at least as of Rev\SpecialChar TeX
10592  4.0 Beta),
10593  the 
10594 \family sans
10595 Address
10596 \family default
10597  and 
10598 \family sans
10599 Affiliation
10600 \family default
10601  layouts are exactly equivalent,
10602  so you shouldn't need to use both.
10603 \begin_inset Foot
10604 status collapsed
10605
10606 \begin_layout Plain Layout
10607 In case you're curious,
10608  both were included so that 
10609 \family typewriter
10610 tex2lyx
10611 \family default
10612  would be able to translate both 
10613 \family typewriter
10614
10615 \backslash
10616 address
10617 \family default
10618  and 
10619 \family typewriter
10620
10621 \backslash
10622 affiliation
10623 \family default
10624 .
10625 \end_layout
10626
10627 \end_inset
10628
10629
10630 \end_layout
10631
10632 \begin_layout Subsubsection
10633 Important Notes
10634 \end_layout
10635
10636 \begin_layout Standard
10637 There are a couple of important unique aspects of Rev\SpecialChar TeX
10638  4 which might cause bugs that will be even more confusing in \SpecialChar LyX
10639 .
10640 \end_layout
10641
10642 \begin_layout Standard
10643 In Rev\SpecialChar TeX
10644 ,
10645  the 
10646 \family typewriter
10647
10648 \backslash
10649 thanks
10650 \family default
10651  command goes 
10652 \emph on
10653 outside
10654 \emph default
10655  the 
10656 \family typewriter
10657
10658 \backslash
10659 author
10660 \family default
10661  command.
10662  The \SpecialChar LyX
10663  equivalent is that there is a separate Thanks layout.
10664  Do 
10665 \emph on
10666 not
10667 \emph default
10668  write footnotes in the 
10669 \family sans
10670 Author
10671 \family default
10672  layout,
10673  or weird things may happen.
10674  See the Rev\SpecialChar TeX
10675  4 documentation for more details.
10676 \end_layout
10677
10678 \begin_layout Standard
10679 Also,
10680  the 
10681 \family sans
10682 Author
10683 \begin_inset space ~
10684 \end_inset
10685
10686 Email
10687 \family default
10688 ,
10689  
10690 \family sans
10691 Author
10692 \begin_inset space ~
10693 \end_inset
10694
10695 URL
10696 \family default
10697 ,
10698  and 
10699 \family sans
10700 Thanks
10701 \family default
10702  layouts must be placed 
10703 \emph on
10704 in between
10705 \emph default
10706  the 
10707 \family sans
10708 Author
10709 \family default
10710  layout and the corresponding 
10711 \family sans
10712 Address
10713 \family default
10714  (or equivalent 
10715 \family sans
10716 Affiliation
10717 \family default
10718 ) layout.
10719  If you put the 
10720 \family sans
10721 Thanks
10722 \family default
10723  after the 
10724 \family sans
10725 Address
10726 \family default
10727 ,
10728  the \SpecialChar LaTeX
10729  won't compile.
10730 \end_layout
10731
10732 \begin_layout Subsection
10733
10734 \change_inserted 564990737 1671042072
10735 Springer Journals
10736 \end_layout
10737
10738 \begin_layout Standard
10739
10740 \change_inserted 564990737 1671042072
10741 All the 
10742 \family sans
10743 svj*
10744 \family default
10745  classes were replaced 
10746 \change_deleted -712698321 1673176131
10747 in 2013 
10748 \change_inserted 564990737 1671042072
10749 with a completely new 
10750 \change_deleted -712698321 1673175919
10751
10752 \family sans
10753 sr-vorl.cls
10754 \family default
10755 .
10756  This package provides a \SpecialChar LaTeX
10757  class and templates for books to be published at Springer Gabler Research,
10758  Springer Vieweg Research,
10759  Springer Spektrum Research,
10760  Springer VS Research,
10761  or Springer VS Forschung.
10762  The documentation is available in German from 
10763 \begin_inset CommandInset href
10764 LatexCommand href
10765 name "CTAN"
10766 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
10767 literal "false"
10768
10769 \end_inset
10770
10771 .
10772
10773 \change_inserted -712698321 1673176125
10774  class,
10775  
10776 \family sans
10777 sn-jnl.cls
10778 \family default
10779 .
10780  Please find information at 
10781 \begin_inset Flex URL
10782 status collapsed
10783
10784 \begin_layout Plain Layout
10785
10786 \change_inserted -712698321 1673176047
10787
10788 https://www.springernature.com/gp/authors/campaigns/latex-author-support
10789 \change_unchanged
10790
10791 \end_layout
10792
10793 \end_inset
10794
10795 .
10796  Native \SpecialChar LyX
10797  support is not available yet.
10798 \change_inserted 564990737 1671042072
10799
10800 \end_layout
10801
10802 \begin_layout Section
10803
10804 \change_inserted 564990737 1670439560
10805 Books
10806 \end_layout
10807
10808 \begin_layout Standard
10809
10810 \change_inserted 564990737 1670439581
10811 See also the document classes in the Collections (section
10812 \begin_inset space ~
10813 \end_inset
10814
10815
10816 \begin_inset CommandInset ref
10817 LatexCommand ref
10818 reference "sec:Collections"
10819 nolink "false"
10820
10821 \end_inset
10822
10823 ).
10824 \end_layout
10825
10826 \begin_layout Subsection
10827 Memoir
10828 \end_layout
10829
10830 \begin_layout Standard
10831 By 
10832 \noun on
10833 Jürgen Spitzmüller
10834 \end_layout
10835
10836 \begin_layout Subsubsection
10837 Overview
10838 \end_layout
10839
10840 \begin_layout Standard
10841 Memoir is a very powerful and constantly evolving class.
10842  It has been designed with regard to fictional and non-fictional literature.
10843  Its aim is to let the user have maximum control over the typesetting of his document.
10844  Memoir is based on the standard book class,
10845  but it can also emulate the article class (see below).
10846 \end_layout
10847
10848 \begin_layout Standard
10849 Peter Wilson,
10850  the developer of Memoir,
10851  is known as the author of lots of useful packages in the \SpecialChar LaTeX
10852  world.
10853  Most of them have been merged with Memoir.
10854  Therefore,
10855  it is much easier to layout the table of contents,
10856  appendices,
10857  chapter designs and such.
10858  \SpecialChar LyX
10859 ,
10860  though,
10861  does not support all of these goodies natively.
10862  Some of them might be added to forthcoming releases
10863 \begin_inset Foot
10864 status collapsed
10865
10866 \begin_layout Plain Layout
10867 You are invited to send suggestions to 
10868 \begin_inset Flex URL
10869 status collapsed
10870
10871 \begin_layout Plain Layout
10872
10873 lyx-devel@lists.lyx.org
10874 \end_layout
10875
10876 \end_inset
10877
10878 .
10879 \end_layout
10880
10881 \end_inset
10882
10883 ,
10884  lots will probably never be supported,
10885  due to the limitations of \SpecialChar LyX
10886 's framework.
10887  Of course you can still use all features with the help of some native \SpecialChar LaTeX
10888  commands (\SpecialChar TeX
10889  code
10890 \begin_inset Foot
10891 status collapsed
10892
10893 \begin_layout Plain Layout
10894 Cf.
10895 \begin_inset ERT
10896 status collapsed
10897
10898 \begin_layout Plain Layout
10899
10900
10901 \backslash
10902  
10903 \end_layout
10904
10905 \end_inset
10906
10907 section
10908 \begin_inset space ~
10909 \end_inset
10910
10911
10912 \begin_inset CommandInset ref
10913 LatexCommand ref
10914 reference "sec:Inserting-TeX-Code"
10915 nolink "false"
10916
10917 \end_inset
10918
10919  for details.
10920 \end_layout
10921
10922 \end_inset
10923
10924 ).
10925  In this section,
10926  we can only list those features that are natively supported by \SpecialChar LyX
10927 .
10928  For detailed descriptions (and for the rest of features) we recommend you have a look at the detailed manual of the Memoir class
10929 \begin_inset Foot
10930 status collapsed
10931
10932 \begin_layout Plain Layout
10933 Cf.
10934 \begin_inset ERT
10935 status collapsed
10936
10937 \begin_layout Plain Layout
10938
10939
10940 \backslash
10941  
10942 \end_layout
10943
10944 \end_inset
10945
10946
10947 \begin_inset Flex URL
10948 status collapsed
10949
10950 \begin_layout Plain Layout
10951
10952 CTAN:/macros/latex/memoir/memman.pdf
10953 \end_layout
10954
10955 \end_inset
10956
10957 .
10958 \end_layout
10959
10960 \end_inset
10961
10962 ,
10963  which is not only a user guide for the class,
10964  but also both a comprehensive description on good typesetting and a superb example for good typesetting itself.
10965 \end_layout
10966
10967 \begin_layout Subsubsection
10968 Basic features and restrictions
10969 \end_layout
10970
10971 \begin_layout Standard
10972 Memoir supports basically all features of the standard book classes.
10973  There are,
10974  however,
10975  some differences,
10976  as follows:
10977 \end_layout
10978
10979 \begin_layout Description
10980 Font
10981 \begin_inset space ~
10982 \end_inset
10983
10984 sizes:
10985  Memoir has a broader range of font sizes:
10986  9,
10987  10,
10988  11,
10989  12,
10990  14,
10991  17
10992 \end_layout
10993
10994 \begin_layout Description
10995 Page
10996 \begin_inset space ~
10997 \end_inset
10998
10999 style:
11000  The fancy page style is not supported,
11001  due to a command clash between Memoir and the fancyhdr package (they both define a command with the same name,
11002  which confuses \SpecialChar LaTeX
11003 ).
11004  Instead,
11005  Memoir comes with a number of its own page styles (see 
11006 \family sans
11007 Document\SpecialChar menuseparator
11008 Settings\SpecialChar menuseparator
11009 Page
11010 \begin_inset space ~
11011 \end_inset
11012
11013 Style
11014 \family default
11015 ).
11016  If you want to use these for the chapter pages,
11017  you have to use the command 
11018 \family typewriter
11019
11020 \backslash
11021 chapterstyle
11022 \family default
11023  in the main text or in preamble (e.
11024 \begin_inset space \thinspace{}
11025 \end_inset
11026
11027 g.
11028 \begin_inset space \space{}
11029 \end_inset
11030
11031
11032 \family typewriter
11033
11034 \backslash
11035 chapterstyle{companion}
11036 \family default
11037 ).
11038 \end_layout
11039
11040 \begin_layout Description
11041 Sectioning:
11042  Sectionings (chapter,
11043  section,
11044  subsection etc.) come with an optional argument in the standard classes.
11045  With this,
11046  you can specify an alternative version of the title for the table of contents and the headers (for instance,
11047  if the title is too long).
11048  In \SpecialChar LyX
11049 ,
11050  you can do this via 
11051 \family sans
11052 Insert\SpecialChar menuseparator
11053 Short
11054 \begin_inset space ~
11055 \end_inset
11056
11057 Title
11058 \family default
11059  at the beginning of a chapter/section.
11060  Memoir features a second optional argument and thus separates the table of contents from the header.
11061  You can define three variants of a title with this:
11062  one for the main text,
11063  one for the table of contents,
11064  and one for the headers.
11065  \SpecialChar LyX
11066  makes these available in form of specific 
11067 \family sans
11068 Short Title
11069 \family default
11070  variants in the 
11071 \family sans
11072 Insert
11073 \family default
11074  menu.
11075 \end_layout
11076
11077 \begin_layout Description
11078 TOC/LOT/LOF:
11079  In the standard classes (and in many other classes),
11080  the table of contents,
11081  the list of figures and the list of table start a new page automatically.
11082  Memoir does not follow this route.
11083  You have to insert a page break yourself,
11084  if you want to have one.
11085 \end_layout
11086
11087 \begin_layout Description
11088 Titlepage:
11089  For some unknown reason,
11090  Memoir uses pagination on the title page (in the standard classes,
11091  title pages are 
11092 \begin_inset Quotes eld
11093 \end_inset
11094
11095 empty
11096 \begin_inset Quotes erd
11097 \end_inset
11098
11099 ).
11100  If you want an empty title page,
11101  type 
11102 \family typewriter
11103
11104 \backslash
11105 aliaspagestyle{title}{empty}
11106 \family default
11107  in the preamble.
11108 \end_layout
11109
11110 \begin_layout Description
11111 Article:
11112  With the class option 
11113 \emph on
11114 article
11115 \emph default
11116  (to be inserted in 
11117 \family sans
11118 Document\SpecialChar menuseparator
11119 Settings\SpecialChar menuseparator
11120 Class Settings\SpecialChar menuseparator
11121 Custom
11122 \begin_inset space ~
11123 \end_inset
11124
11125 Options
11126 \family default
11127 ),
11128  you can emulate article style.
11129  That is,
11130  counters (footnotes,
11131  figures,
11132  tables etc.) will not be reset on new chapters,
11133  chapters don't start a new page (but are—
11134 in contrary to 
11135 \begin_inset Quotes eld
11136 \end_inset
11137
11138 real
11139 \begin_inset Quotes erd
11140 \end_inset
11141
11142  article classes—
11143 still allowed),
11144  parts,
11145  though,
11146  use their own page,
11147  as in book.
11148 \end_layout
11149
11150 \begin_layout Description
11151 Oldfontcommands:
11152  By default,
11153  Memoir does not allow the use of the deprecated font commands,
11154  which have been used in the old \SpecialChar LaTeX
11155  version 2.09 (e.
11156 \begin_inset space \thinspace{}
11157 \end_inset
11158
11159 g.
11160 \begin_inset space \space{}
11161 \end_inset
11162
11163
11164 \family typewriter
11165
11166 \backslash
11167 rm
11168 \family default
11169 ,
11170  
11171 \family typewriter
11172
11173 \backslash
11174 it
11175 \family default
11176 ).
11177  It produces an error and stops \SpecialChar LaTeX
11178  whenever such a command appears.
11179  The class option 
11180 \emph on
11181 oldfontcommands
11182 \emph default
11183  reallows the commands and spits out warnings instead (which does at least not stop \SpecialChar LaTeX
11184 ).
11185  Since a lot of packages and particularly Bib\SpecialChar TeX
11186  style files are still using those commands,
11187  we have decided to use this option by default.
11188 \end_layout
11189
11190 \begin_layout Subsubsection
11191 Extra features
11192 \end_layout
11193
11194 \begin_layout Standard
11195 We will only describe the features supported by \SpecialChar LyX
11196  (which is not much currently).
11197  Please consult the Memoir manual
11198 \begin_inset Foot
11199 status collapsed
11200
11201 \begin_layout Plain Layout
11202 Cf.
11203 \begin_inset ERT
11204 status collapsed
11205
11206 \begin_layout Plain Layout
11207
11208
11209 \backslash
11210  
11211 \end_layout
11212
11213 \end_inset
11214
11215
11216 \begin_inset Flex URL
11217 status collapsed
11218
11219 \begin_layout Plain Layout
11220
11221 CTAN:/macros/latex/memoir/memman.pdf
11222 \end_layout
11223
11224 \end_inset
11225
11226 .
11227 \end_layout
11228
11229 \end_inset
11230
11231  for details.
11232 \end_layout
11233
11234 \begin_layout Description
11235 Abstract:
11236  You may wonder why an abstract is an extra feature.
11237  Well,
11238  it is in book class.
11239  Usually books don't have abstracts.
11240  Memoir,
11241  however,
11242  has.
11243  You can use it wherever and how often you like.
11244 \end_layout
11245
11246 \begin_layout Description
11247 Chapterprecis:
11248  You may know this older typesetting style:
11249  The contents of a chapter are summarized below the title and also in the table of contents (e.
11250 \begin_inset space \thinspace{}
11251 \end_inset
11252
11253 g.
11254 \begin_inset space \space{}
11255 \end_inset
11256
11257
11258 \emph on
11259 Our hero arrives in Troia;
11260  he loses some friends;
11261  he finds others
11262 \emph default
11263 ).
11264  Chapterprecis does exactly this.
11265  It is therefore only sensible below a chapter.
11266 \end_layout
11267
11268 \begin_layout Description
11269 Epigraph:
11270  An epigraph is a smart slogan or motto at the beginning of a chapter.
11271  The epigraph environment provides an elegant way of typesetting such a motto.
11272  The motto itself (text) and its (optional) author (source) are divided by a short line.
11273  The author (source) can be inserted via 
11274 \family sans
11275 Insert\SpecialChar menuseparator
11276 Epigraph Source
11277 \family default
11278 \emph on
11279 .
11280 \end_layout
11281
11282 \begin_layout Description
11283 Poemtitle:
11284  Memoir has lots of possibilities to typeset poetry (up to very complex figurative poems).
11285  \SpecialChar LyX
11286  can only support a few of them.
11287  One is poemtitle,
11288  which is a centered title for poems,
11289  which will also be added to the table of contents (verse is the standard environment for poems.
11290  Memoir has some enhanced versions of verse,
11291  but you need to use \SpecialChar TeX
11292  code,
11293  because they have to be nested inside regular verse environments,
11294  which is not possible with \SpecialChar LyX
11295 ).
11296 \end_layout
11297
11298 \begin_layout Description
11299 Poemtitle*:
11300  Same as poemtitle,
11301  but it adds no entry to the table of contents.
11302 \end_layout
11303
11304 \begin_layout Subsection
11305
11306 \change_inserted 564990737 1671442175
11307 Recipe Book
11308 \end_layout
11309
11310 \begin_layout Standard
11311
11312 \change_inserted 564990737 1671442175
11313 The document class 
11314 \family sans
11315 Recipe
11316 \change_inserted -712698321 1673182264
11317  
11318 \change_inserted 564990737 1671442175
11319 Book
11320 \change_deleted -712698321 1673182266
11321
11322 \family typewriter
11323 .cls
11324 \change_inserted 564990737 1671442175
11325
11326 \family default
11327  uses the 
11328 \change_deleted -712698321 1673182282
11329
11330 \family sans
11331 book
11332 \begin_inset space \thinspace{}
11333 \end_inset
11334
11335 (
11336 \change_inserted 564990737 1671442175
11337 KOMA-Script
11338 \change_inserted -712698321 1673182287
11339  Book
11340 \change_deleted -712698321 1673182290
11341 )
11342 \change_inserted 564990737 1671442175
11343
11344 \family default
11345  document class but adds two environments:
11346 \end_layout
11347
11348 \begin_layout Description
11349
11350 \change_inserted 564990737 1671442175
11351 Recipe a numbered section environment at the 
11352 \family typewriter
11353 Subsubsection
11354 \family default
11355  level which generates a bold centered heading above a double horizontal rule
11356 \end_layout
11357
11358 \begin_layout Description
11359
11360 \change_inserted 564990737 1671442175
11361 Ingredients a 
11362 \family typewriter
11363 Description
11364 \family default
11365  environment where 
11366 \series bold
11367 \emph on
11368 Ingredients
11369 \series default
11370 \emph default
11371  are what are being described and the environment ends with a horizontal rule.
11372 \end_layout
11373
11374 \begin_layout Standard
11375
11376 \change_inserted 564990737 1671642866
11377
11378 \family sans
11379 File\SpecialChar menuseparator
11380 Open Example\SpecialChar menuseparator
11381 Books\SpecialChar menuseparator
11382 Recipe Book
11383 \family default
11384  illustrates its use.
11385 \end_layout
11386
11387 \begin_layout Standard
11388
11389 \change_deleted -712698321 1673186391
11390 It
11391 \change_inserted -712698321 1673186393
11392 The class
11393 \change_inserted 564990737 1671442175
11394  is designed for typesetting one or two recipes per page
11395 \change_deleted -712698321 1673199172
11396 ,
11397  with dimensions of 5.5
11398 \begin_inset Quotes qrd
11399 \end_inset
11400
11401  x 8.5
11402 \begin_inset Quotes qrd
11403 \end_inset
11404
11405
11406 \change_inserted 564990737 1671442175
11407 .
11408  The hyperlinked table of contents (ToC) and page numbers make browsing recipes convenient
11409 \change_inserted -712698321 1673186486
11410 .
11411 \change_deleted -712698321 1673186487
11412 ,
11413
11414 \change_inserted 564990737 1671442175
11415  
11416 \change_deleted -712698321 1673199346
11417 and the pages can be joined together or printed 2 per page to normal letterpaper easily.
11418  The size was chosen to work in half-page 3-ring binder cover sheets,
11419  because un-laminated paper just doesn't last in the kitchen.
11420 \end_layout
11421
11422 \begin_layout Standard
11423
11424 \change_deleted -712698321 1673199346
11425 The half-letter pages can be printed two per page using your printer driver,
11426  or bound together using 
11427 \family typewriter
11428 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
11429 \family default
11430  
11431 \family typewriter
11432 Recipes.pdf
11433 \family default
11434  where 
11435 \family typewriter
11436 Recipes.pdf
11437 \family default
11438  is the compiled version of your recipes.
11439 \change_inserted -712698321 1673175424
11440
11441 \end_layout
11442
11443 \begin_layout Section
11444
11445 \change_inserted 564990737 1671442207
11446 Curricula vita
11447 \change_deleted -712698321 1673186818
11448 rum
11449 \change_inserted -712698321 1673186818
11450 e
11451 \change_inserted 564990737 1671442207
11452
11453 \end_layout
11454
11455 \begin_layout Subsection
11456
11457 \change_inserted 564990737 1671442208
11458 Europass
11459 \change_inserted -712698321 1673187876
11460  (2013)
11461 \change_inserted 564990737 1671442208
11462
11463 \end_layout
11464
11465 \begin_layout Standard
11466
11467 \change_inserted 564990737 1671642942
11468 The document class 
11469 \change_deleted -712698321 1673187623
11470
11471 \family sans
11472 curriculum
11473 \begin_inset space \space{}
11474 \end_inset
11475
11476 vitae
11477 \begin_inset space \thinspace{}
11478 \end_inset
11479
11480 (
11481 \change_inserted 564990737 1671642942
11482 Europass
11483 \change_inserted -712698321 1673187655
11484  (2013)
11485 \change_deleted -712698321 1673187624
11486 )
11487 \change_inserted 564990737 1671642942
11488
11489 \family default
11490  provides the 
11491 \family typewriter
11492 europasscv.cls
11493 \family default
11494  document class,
11495  an unofficial implementation of the ‘Europass CV’ recommended by the European Commission in 2013.
11496  
11497 \family sans
11498 File\SpecialChar menuseparator
11499 Open Example\SpecialChar menuseparator
11500 Curricula Vitae\SpecialChar menuseparator
11501 Europass 
11502 \change_deleted -712698321 1673187728
11503 CV 
11504 \change_inserted 564990737 1671642942
11505 (2013)
11506 \family default
11507  offers guidance on its use.
11508  Its documentation is available from 
11509 \begin_inset CommandInset href
11510 LatexCommand href
11511 name "CTAN"
11512 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
11513 literal "false"
11514
11515 \end_inset
11516
11517 .
11518 \end_layout
11519
11520 \begin_layout Subsection
11521
11522 \change_inserted 564990737 1671442208
11523 Europe
11524 \change_deleted -712698321 1673187829
11525 an
11526 \change_inserted -712698321 1673187829
11527  CV
11528 \change_inserted 564990737 1671442208
11529
11530 \end_layout
11531
11532 \begin_layout Standard
11533
11534 \change_inserted 564990737 1671642984
11535 The document class 
11536 \change_deleted -712698321 1673187820
11537
11538 \family sans
11539 curriculum
11540 \begin_inset space \space{}
11541 \end_inset
11542
11543 vitae
11544 \begin_inset space \thinspace{}
11545 \end_inset
11546
11547 (
11548 \change_inserted 564990737 1671642984
11549 Europe
11550 \change_inserted -712698321 1673187823
11551  CV
11552 \change_deleted -712698321 1673187824
11553 )
11554 \change_inserted 564990737 1671642984
11555
11556 \family default
11557  provides the 
11558 \family typewriter
11559 europecv.cls
11560 \family default
11561  document class,
11562  an unofficial implementation of the “Europass CV” recommended by the European Commission in 2002.
11563  
11564 \family sans
11565 File\SpecialChar menuseparator
11566 Open Example\SpecialChar menuseparator
11567 Curricula Vitae\SpecialChar menuseparator
11568 Europe CV
11569 \family default
11570  offers guidance on its use.
11571  Its documentation is available from 
11572 \begin_inset CommandInset href
11573 LatexCommand href
11574 name "CTAN"
11575 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
11576 literal "false"
11577
11578 \end_inset
11579
11580 .
11581 \end_layout
11582
11583 \begin_layout Subsection
11584
11585 \change_inserted 564990737 1671442208
11586 Modern
11587 \change_inserted -712698321 1673187869
11588  CV
11589 \change_inserted 564990737 1671442208
11590
11591 \end_layout
11592
11593 \begin_layout Standard
11594
11595 \change_inserted 564990737 1671643003
11596 The document class 
11597 \change_deleted -712698321 1673187880
11598
11599 \family sans
11600 curriculum
11601 \begin_inset space \space{}
11602 \end_inset
11603
11604 vitae
11605 \begin_inset space \thinspace{}
11606 \end_inset
11607
11608 (m
11609 \change_inserted -712698321 1673187880
11610 M
11611 \change_inserted 564990737 1671643003
11612 odern
11613 \change_inserted -712698321 1673187884
11614  CV
11615 \change_deleted -712698321 1673187884
11616 )
11617 \change_inserted 564990737 1671643003
11618
11619 \family default
11620  provides the 
11621 \family typewriter
11622 moderncv.cls
11623 \family default
11624  document class.
11625  This allows the creation of customizable CVs.
11626  
11627 \family sans
11628 File\SpecialChar menuseparator
11629 Open Example\SpecialChar menuseparator
11630 Curricula Vitae\SpecialChar menuseparator
11631 Modern CV
11632 \family default
11633  offers guidance on its use.
11634  Its documentation is available from 
11635 \begin_inset CommandInset href
11636 LatexCommand href
11637 name "CTAN"
11638 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
11639 literal "false"
11640
11641 \end_inset
11642
11643 .
11644 \end_layout
11645
11646 \begin_layout Subsection
11647
11648 \change_inserted 564990737 1671442208
11649 Simple
11650 \change_inserted -712698321 1673187900
11651  CV
11652 \change_inserted 564990737 1671442208
11653
11654 \end_layout
11655
11656 \begin_layout Standard
11657
11658 \change_inserted 564990737 1671643024
11659 The document class 
11660 \change_deleted -712698321 1673187895
11661
11662 \family sans
11663 curriculum
11664 \begin_inset space \space{}
11665 \end_inset
11666
11667 vitae
11668 \begin_inset space \thinspace{}
11669 \end_inset
11670
11671 (s
11672 \change_inserted -712698321 1673187895
11673 S
11674 \change_inserted 564990737 1671643024
11675 imple
11676 \change_inserted -712698321 1673187897
11677  CV
11678 \change_deleted -712698321 1673187898
11679 )
11680 \change_inserted 564990737 1671643024
11681
11682 \family default
11683  provides the 
11684 \family typewriter
11685 simplecv.cls
11686 \family default
11687  document class,
11688  originally developed for use with \SpecialChar LyX
11689 .
11690  
11691 \family sans
11692 File\SpecialChar menuseparator
11693 Open Example\SpecialChar menuseparator
11694 Curricula Vitae\SpecialChar menuseparator
11695 Simple CV
11696 \family default
11697  offers guidance on its use.
11698  Its documentation is available from 
11699 \begin_inset CommandInset href
11700 LatexCommand href
11701 name "CTAN"
11702 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
11703 literal "false"
11704
11705 \end_inset
11706
11707
11708 \end_layout
11709
11710 \begin_layout Section
11711
11712 \change_inserted 564990737 1672652454
11713 Letters
11714 \end_layout
11715
11716 \begin_layout Standard
11717
11718 \change_inserted 564990737 1672652455
11719 See also the 
11720 \change_deleted -712698321 1673245882
11721
11722 \family typewriter
11723 letter
11724 \begin_inset space \space{}
11725 \end_inset
11726
11727 (KOMA-Script v.2)
11728 \change_inserted -712698321 1673245882
11729
11730 \family sans
11731 KOMA-Script Letter (V.
11732  2)
11733 \change_inserted 564990737 1672652455
11734
11735 \family default
11736  (section
11737 \begin_inset space ~
11738 \end_inset
11739
11740
11741 \begin_inset CommandInset ref
11742 LatexCommand ref
11743 reference "subsec:The-new-letter"
11744 nolink "false"
11745
11746 \end_inset
11747
11748 ) and 
11749 \change_deleted -712698321 1673245908
11750
11751 \family typewriter
11752 letter
11753 \begin_inset space \space{}
11754 \end_inset
11755
11756 (with extra font sizes)
11757 \change_inserted -712698321 1673245908
11758
11759 \family sans
11760 Letter (Standard Class with Extra Font Sizes)
11761 \change_inserted 564990737 1672652455
11762
11763 \family default
11764  (section
11765 \begin_inset space ~
11766 \end_inset
11767
11768
11769 \begin_inset CommandInset ref
11770 LatexCommand ref
11771 reference "subsec:Extra-font-sizes"
11772 nolink "false"
11773
11774 \end_inset
11775
11776 ) document classes .
11777 \end_layout
11778
11779 \begin_layout Subsection
11780
11781 \change_inserted 564990737 1671041970
11782 D
11783 \change_deleted -712698321 1673246109
11784 in
11785 \change_inserted -712698321 1673246110
11786 IN
11787 \change_inserted 564990737 1671041970
11788 -Brief
11789 \end_layout
11790
11791 \begin_layout Standard
11792
11793 \change_inserted 564990737 1671617528
11794 The document class 
11795 \family sans
11796 D
11797 \change_deleted -712698321 1673246116
11798 in
11799 \change_inserted -712698321 1673246116
11800 IN
11801 \change_inserted 564990737 1671617528
11802 -Brief
11803 \family default
11804  provides 
11805 \change_inserted -712698321 1673246192
11806 support for 
11807 \change_inserted 564990737 1671617528
11808 the 
11809 \family typewriter
11810 dinbrief.cls
11811 \family default
11812  
11813 \change_deleted -712698321 1673246242
11814 document
11815 \change_inserted -712698321 1673246242
11816 \SpecialChar LaTeX
11817
11818 \change_inserted 564990737 1671617528
11819  class for writing letters according to the
11820 \change_inserted -712698321 1673246140
11821  standards of the German Standards Institute (
11822 \change_deleted -712698321 1673246141
11823  
11824 \change_inserted 564990737 1671617528
11825
11826 \emph on
11827 Deutsches Institut für Normung
11828 \change_inserted -712698321 1673246324
11829 ,
11830  DIN)
11831 \change_deleted -712698321 1673246131
11832
11833 \emph default
11834  conventions
11835 \change_inserted 564990737 1671617528
11836 .
11837  The file in the menu 
11838 \family sans
11839 \bar under
11840 F
11841 \bar default
11842 ile\SpecialChar menuseparator
11843 New
11844 \begin_inset space ~
11845 \end_inset
11846
11847 fro
11848 \bar under
11849 m
11850 \bar default
11851
11852 \begin_inset space ~
11853 \end_inset
11854
11855 Template\SpecialChar menuseparator
11856 Letters\SpecialChar menuseparator
11857 DIN-Brief
11858 \family default
11859  offers guidance on its use.
11860  The documentation is available from 
11861 \begin_inset CommandInset href
11862 LatexCommand href
11863 name "CTAN"
11864 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
11865 literal "false"
11866
11867 \end_inset
11868
11869 .
11870 \end_layout
11871
11872 \begin_layout Subsection
11873
11874 \change_deleted -712698321 1673246778
11875 frletter
11876 \change_inserted -712698321 1673246778
11877 French letter
11878 \begin_inset space \space{}
11879 \end_inset
11880
11881 (frletter)
11882 \change_unchanged
11883
11884 \end_layout
11885
11886 \begin_layout Standard
11887
11888 \change_inserted 564990737 1672652499
11889 The document class 
11890 \family sans
11891 French letter
11892 \begin_inset space \space{}
11893 \end_inset
11894
11895 (frletter)
11896 \family default
11897  provides 
11898 \change_inserted -712698321 1673246198
11899 support for 
11900 \change_inserted 564990737 1672652499
11901 the 
11902 \family typewriter
11903 frletter.cls
11904 \family default
11905  
11906 \change_deleted -712698321 1673246247
11907 document
11908 \change_inserted -712698321 1673246247
11909 \SpecialChar LaTeX
11910
11911 \change_inserted 564990737 1672652499
11912  class for writing letters according to French conventions.
11913  The file in the menu 
11914 \family sans
11915 \bar under
11916 F
11917 \bar default
11918 ile\SpecialChar menuseparator
11919 New
11920 \begin_inset space ~
11921 \end_inset
11922
11923 fro
11924 \bar under
11925 m
11926 \bar default
11927
11928 \begin_inset space ~
11929 \end_inset
11930
11931 Template\SpecialChar menuseparator
11932 Letters\SpecialChar menuseparator
11933 French letter
11934 \begin_inset space \space{}
11935 \end_inset
11936
11937 (frletter)
11938 \family default
11939  offers guidance on its use.
11940 \change_inserted -712698321 1673246876
11941
11942 \end_layout
11943
11944 \begin_layout Subsection
11945
11946 \change_inserted -712698321 1673246876
11947 French letter
11948 \begin_inset space \space{}
11949 \end_inset
11950
11951 (lettre)
11952 \end_layout
11953
11954 \begin_layout Standard
11955
11956 \change_inserted -712698321 1673246917
11957 The document class 
11958 \family sans
11959 French letter
11960 \begin_inset space \space{}
11961 \end_inset
11962
11963 (lettre)
11964 \family default
11965  provides support for 
11966 \family typewriter
11967 lettre.cls
11968 \family default
11969 ,
11970  another \SpecialChar LaTeX
11971  class for writing letters,
11972  but also faxes and envelopes,
11973  in French.
11974  The file in the menu 
11975 \family sans
11976 \bar under
11977 F
11978 \bar default
11979 ile\SpecialChar menuseparator
11980 New
11981 \begin_inset space ~
11982 \end_inset
11983
11984 fro
11985 \bar under
11986 m
11987 \bar default
11988
11989 \begin_inset space ~
11990 \end_inset
11991
11992 Template\SpecialChar menuseparator
11993 Letters\SpecialChar menuseparator
11994 French letter
11995 \begin_inset space \space{}
11996 \end_inset
11997
11998 (lettre)
11999 \family default
12000  offers guidance on its use.
12001  The documentation is available from 
12002 \begin_inset CommandInset href
12003 LatexCommand href
12004 name "CTAN"
12005 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
12006 literal "false"
12007
12008 \end_inset
12009
12010 .
12011 \change_inserted 564990737 1672652499
12012
12013 \end_layout
12014
12015 \begin_layout Subsection
12016
12017 \change_inserted 564990737 1672652499
12018 G-Brief
12019 \change_inserted -712698321 1673246804
12020  (V.
12021 \begin_inset space \thinspace{}
12022 \end_inset
12023
12024 2)
12025 \change_inserted 564990737 1672652499
12026
12027 \end_layout
12028
12029 \begin_layout Standard
12030
12031 \change_inserted 564990737 1672652499
12032 The document class 
12033 \family sans
12034 G-Brief (V.
12035 \begin_inset space \thinspace{}
12036 \end_inset
12037
12038 2)
12039 \family default
12040  provides 
12041 \change_inserted -712698321 1673246202
12042 support for 
12043 \change_inserted 564990737 1672652499
12044 the 
12045 \change_deleted -712698321 1673246498
12046 newer 
12047 \change_inserted 564990737 1672652499
12048
12049 \family typewriter
12050 g-brief2.cls
12051 \family default
12052  
12053 \change_deleted -712698321 1673246249
12054 document
12055 \change_inserted -712698321 1673246249
12056 \SpecialChar LaTeX
12057
12058 \change_inserted 564990737 1672652499
12059  class for writing letters in German.
12060  The file in the menu 
12061 \family sans
12062 \bar under
12063 F
12064 \bar default
12065 ile\SpecialChar menuseparator
12066 New
12067 \begin_inset space ~
12068 \end_inset
12069
12070 fro
12071 \bar under
12072 m
12073 \bar default
12074
12075 \begin_inset space ~
12076 \end_inset
12077
12078 Template\SpecialChar menuseparator
12079 Letters\SpecialChar menuseparator
12080 G-Brief (V.
12081 \begin_inset space \thinspace{}
12082 \end_inset
12083
12084 2)
12085 \family default
12086  offers guidance on its use.
12087  The documentation is available from 
12088 \begin_inset CommandInset href
12089 LatexCommand href
12090 name "CTAN"
12091 target "http://mirrors.ctan.org/macros/latex/contrib/g-brief/g-brief.pdf"
12092 literal "false"
12093
12094 \end_inset
12095
12096 .
12097 \end_layout
12098
12099 \begin_layout Subsection
12100
12101 \change_deleted -712698321 1673246462
12102 letter
12103 \end_layout
12104
12105 \begin_layout Standard
12106
12107 \change_deleted -712698321 1673246462
12108 The document class 
12109 \family sans
12110 letter
12111 \family default
12112  provides the 
12113 \family sans
12114 letter.cls
12115 \family default
12116  document class for English letters and to create mailing labels.
12117  The file in the menu 
12118 \family sans
12119 \bar under
12120 F
12121 \bar default
12122 ile\SpecialChar menuseparator
12123 New
12124 \begin_inset space ~
12125 \end_inset
12126
12127 fro
12128 \bar under
12129 m
12130 \bar default
12131
12132 \begin_inset space ~
12133 \end_inset
12134
12135 Template\SpecialChar menuseparator
12136 Letters\SpecialChar menuseparator
12137 Letter (Standard Class)
12138 \family default
12139  offers guidance on its use.
12140 \change_inserted 564990737 1671617591
12141
12142 \end_layout
12143
12144 \begin_layout Subsection
12145
12146 \change_deleted -712698321 1673246872
12147 lettre
12148 \end_layout
12149
12150 \begin_layout Standard
12151
12152 \change_deleted -712698321 1673246872
12153 The document class 
12154 \family sans
12155 French letter
12156 \begin_inset space \space{}
12157 \end_inset
12158
12159 (lettre)
12160 \family default
12161  provides the 
12162 \family typewriter
12163 lettre.cls
12164 \family default
12165  document class for writing letters,
12166  faxes and envelopes in French.
12167  The file in the menu 
12168 \family sans
12169 \bar under
12170 F
12171 \bar default
12172 ile\SpecialChar menuseparator
12173 New
12174 \begin_inset space ~
12175 \end_inset
12176
12177 fro
12178 \bar under
12179 m
12180 \bar default
12181
12182 \begin_inset space ~
12183 \end_inset
12184
12185 Template\SpecialChar menuseparator
12186 Letters\SpecialChar menuseparator
12187 French letter
12188 \begin_inset space \space{}
12189 \end_inset
12190
12191 (lettre)
12192 \family default
12193  offers guidance on its use.
12194  The documentation is available from 
12195 \begin_inset CommandInset href
12196 LatexCommand href
12197 name "CTAN"
12198 target "http://mirrors.ctan.org/macros/latex/contrib/lettre/lettre.pdf"
12199 literal "false"
12200
12201 \end_inset
12202
12203 .
12204 \change_inserted 564990737 1672652527
12205
12206 \end_layout
12207
12208 \begin_layout Section
12209
12210 \change_inserted 564990737 1670439660
12211 Presentations
12212 \end_layout
12213
12214 \begin_layout Subsection
12215
12216 \change_inserted 564990737 1671458922
12217 Beamer
12218 \end_layout
12219
12220 \begin_layout Standard
12221
12222 \change_inserted 564990737 1671617655
12223 The document class 
12224 \change_deleted -712698321 1673255475
12225
12226 \family sans
12227 presentation
12228 \begin_inset space \thinspace{}
12229 \end_inset
12230
12231 (b
12232 \change_inserted -712698321 1673255475
12233 B
12234 \change_inserted 564990737 1671617655
12235 eamer
12236 \change_deleted -712698321 1673255477
12237 )
12238 \change_inserted 564990737 1671617655
12239
12240 \family default
12241  uses the 
12242 \family typewriter
12243 beamer.cls
12244 \family default
12245  
12246 \change_deleted -712698321 1673255496
12247 document
12248 \change_inserted -712698321 1673255496
12249 \SpecialChar LaTeX
12250
12251 \change_inserted 564990737 1671617655
12252  class for creating presentations.
12253  The file in the menu 
12254 \family sans
12255 \bar under
12256 F
12257 \bar default
12258 ile\SpecialChar menuseparator
12259 New
12260 \begin_inset space ~
12261 \end_inset
12262
12263 fro
12264 \bar under
12265 m
12266 \bar default
12267
12268 \begin_inset space ~
12269 \end_inset
12270
12271 Template\SpecialChar menuseparator
12272 Presentations\SpecialChar menuseparator
12273 Beamer
12274 \family default
12275  
12276 \change_inserted -712698321 1673257500
12277 or 
12278 \family sans
12279 Help\SpecialChar menuseparator
12280 Specific Manuals\SpecialChar menuseparator
12281 Beamer Presentations
12282 \family default
12283  
12284 \change_inserted 564990737 1671617655
12285 offers guidance on its use.
12286  The documentation is available from 
12287 \begin_inset CommandInset href
12288 LatexCommand href
12289 name "CTAN"
12290 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
12291 literal "false"
12292
12293 \end_inset
12294
12295 .
12296 \end_layout
12297
12298 \begin_layout Subsection
12299
12300 \change_deleted -712698321 1673255766
12301 Foils [aka 
12302 \change_unchanged
12303
12304 \family sans
12305 Foil\SpecialChar TeX
12306
12307 \change_deleted -712698321 1673255767
12308
12309 \family default
12310 ]
12311 \change_unchanged
12312
12313 \begin_inset CommandInset label
12314 LatexCommand label
12315 name "sec:foiltex"
12316
12317 \end_inset
12318
12319
12320 \end_layout
12321
12322 \begin_layout Standard
12323
12324 \change_inserted 564990737 1672743383
12325 Original by 
12326 \noun on
12327 Allan Rae
12328 \noun default
12329 ;
12330  updated by the \SpecialChar LyX
12331  Team
12332 \end_layout
12333
12334 \begin_layout Subsubsection
12335
12336 \change_inserted 564990737 1672743383
12337 Introduction
12338 \end_layout
12339
12340 \begin_layout Standard
12341
12342 \change_inserted 564990737 1672743396
12343 The document class 
12344 \change_deleted -712698321 1673255761
12345
12346 \family sans
12347 presentation
12348 \begin_inset space \thinspace{}
12349 \end_inset
12350
12351 (
12352 \change_inserted 564990737 1672743396
12353 Foil\SpecialChar TeX
12354
12355 \change_deleted -712698321 1673255763
12356 )
12357 \change_inserted 564990737 1672743396
12358
12359 \family default
12360  uses the 
12361 \family typewriter
12362 foils.cls
12363 \family default
12364  document class to make slides for overhead projectors.
12365  There are two document classes that can do this:
12366  the 
12367 \change_deleted -712698321 1673256124
12368
12369 \family sans
12370 presentations
12371 \begin_inset space \thinspace{}
12372 \end_inset
12373
12374 (s
12375 \change_inserted -712698321 1673256124
12376 S
12377 \change_inserted 564990737 1672743396
12378 lides
12379 \change_deleted -712698321 1673256130
12380 )
12381 \change_inserted 564990737 1672743396
12382
12383 \family default
12384  document class (section
12385 \begin_inset space ~
12386 \end_inset
12387
12388
12389 \begin_inset CommandInset ref
12390 LatexCommand ref
12391 reference "sec:slitex"
12392 plural "false"
12393 caps "false"
12394 noprefix "false"
12395 nolink "false"
12396
12397 \end_inset
12398
12399 ) and the 
12400 \family sans
12401 Foil\SpecialChar TeX
12402
12403 \family default
12404  slides class.
12405  As of 2023 the former has continued to be maintained whereas 
12406 \family sans
12407 Foil\SpecialChar TeX
12408
12409 \family default
12410  has not been maintained since 2008.
12411  This section documents the latter.
12412  If your machine doesn’t have the 
12413 \change_deleted -712698321 1673256264
12414
12415 \family sans
12416 presentation
12417 \begin_inset space \thinspace{}
12418 \end_inset
12419
12420 (
12421 \change_inserted 564990737 1672743396
12422 Foil\SpecialChar TeX
12423
12424 \change_deleted -712698321 1673256265
12425 )
12426 \change_inserted 564990737 1672743396
12427
12428 \family default
12429  document class installed,
12430  you’ll probably have to use the 
12431 \change_deleted -712698321 1673256271
12432
12433 \family sans
12434 presentations
12435 \begin_inset space \thinspace{}
12436 \end_inset
12437
12438 (s
12439 \change_inserted -712698321 1673256271
12440 S
12441 \change_inserted 564990737 1672743396
12442 lides
12443 \change_deleted -712698321 1673256273
12444 )
12445 \change_inserted 564990737 1672743396
12446
12447 \family default
12448  document class.
12449  If you want to install the 
12450 \family typewriter
12451 foils.cls
12452 \family default
12453  document class,
12454  it is available from 
12455 \begin_inset CommandInset href
12456 LatexCommand href
12457 name "CTAN"
12458 target "https://www.ctan.org/pkg/foiltex"
12459 literal "false"
12460
12461 \end_inset
12462
12463 .
12464  You should also read the 
12465 \emph on
12466 Installing New Document Classes
12467 \emph default
12468  chapter of the 
12469 \emph on
12470 Customization
12471 \emph default
12472  manual.
12473 \change_deleted 564990737 1672743436
12474 by 
12475 \noun on
12476 Allan Rae
12477 \end_layout
12478
12479 \begin_layout Standard
12480
12481 \change_deleted 564990737 1672743383
12482 Introduction
12483 \end_layout
12484
12485 \begin_layout Standard
12486
12487 \change_deleted 564990737 1672743383
12488 This section describes how to use \SpecialChar LyX
12489  to make slides for overhead projectors.
12490  There are two document classes that can do this:
12491  the default slides class and the 
12492 \family sans
12493 Foil\SpecialChar TeX
12494
12495 \family default
12496  slides class.
12497  This section documents the latter.
12498 \end_layout
12499
12500 \begin_layout Standard
12501
12502 \change_deleted 564990737 1672743383
12503 I'm going to say this again,
12504  nice and clear,
12505  so that there's no misunderstanding:
12506 \end_layout
12507
12508 \begin_layout Standard
12509
12510 \change_deleted 564990737 1672743383
12511 \begin_inset VSpace bigskip
12512 \end_inset
12513
12514
12515 \end_layout
12516
12517 \begin_layout Standard
12518 \align center
12519
12520 \change_deleted 564990737 1672743383
12521
12522 \size large
12523 This section documents the class 
12524 \begin_inset Quotes eld
12525 \end_inset
12526
12527
12528 \family sans
12529 FoilTeX
12530 \family default
12531
12532 \begin_inset Quotes erd
12533 \end_inset
12534
12535  
12536 \emph on
12537 only.
12538 \end_layout
12539
12540 \begin_layout Standard
12541
12542 \change_deleted 564990737 1672743383
12543 \begin_inset VSpace bigskip
12544 \end_inset
12545
12546
12547 \end_layout
12548
12549 \begin_layout Standard
12550
12551 \change_deleted 564990737 1672743383
12552 If you're looking for the documentation for 
12553 \begin_inset Quotes eld
12554 \end_inset
12555
12556
12557 \family sans
12558 slides (default)
12559 \family default
12560
12561 \begin_inset Quotes erd
12562 \end_inset
12563
12564 ,
12565  check out section
12566 \begin_inset space ~
12567 \end_inset
12568
12569
12570 \begin_inset CommandInset ref
12571 LatexCommand ref
12572 reference "sec:slitex"
12573 nolink "false"
12574
12575 \end_inset
12576
12577 .
12578  If your machine doesn't have the 
12579 \family sans
12580 foils
12581 \family default
12582  class 
12583 \family sans
12584 FoilTeX
12585 \family default
12586  installed,
12587  you'll probably have to use the default 
12588 \family sans
12589 slides
12590 \family default
12591  class,
12592  which isn't quite as good as 
12593 \family sans
12594 foils.
12595 \end_layout
12596
12597 \begin_layout Standard
12598
12599 \change_deleted 564990737 1672743383
12600 The 
12601 \family sans
12602 foils
12603 \family default
12604  class is designed for use with version
12605 \begin_inset space ~
12606 \end_inset
12607
12608 2.1 of the 
12609 \family sans
12610 foils.cls
12611 \family default
12612  \SpecialChar LaTeX
12613  class file which is now an integral part of \SpecialChar LaTeX2e
12614 .
12615 \change_unchanged
12616
12617 \end_layout
12618
12619 \begin_layout Subsubsection
12620 Getting Started
12621 \end_layout
12622
12623 \begin_layout Standard
12624 Obviously,
12625  to use this document class,
12626  you need to select 
12627 \family sans
12628 FoilTeX
12629 \family default
12630  from the 
12631 \family sans
12632 Class
12633 \family default
12634  entry in the 
12635 \family sans
12636 Document
12637 \begin_inset space ~
12638 \end_inset
12639
12640 Layout
12641 \family default
12642  dialog.
12643  There are some settings in the 
12644 \family sans
12645 Document
12646 \begin_inset space ~
12647 \end_inset
12648
12649 Layout
12650 \family default
12651  dialog that you should know about that are specific to this class:
12652 \end_layout
12653
12654 \begin_layout Itemize
12655 Don't change the options 
12656 \family sans
12657 Sides
12658 \family default
12659  and 
12660 \family sans
12661 Columns
12662 \family default
12663  on the 
12664 \family sans
12665 Document
12666 \begin_inset space ~
12667 \end_inset
12668
12669 Layout
12670 \family default
12671  dialog.
12672  They're ignored by the 
12673 \family sans
12674 foils
12675 \family default
12676  class.
12677 \end_layout
12678
12679 \begin_layout Itemize
12680 The default font size is 20
12681 \begin_inset space \thinspace{}
12682 \end_inset
12683
12684 pt with the other options being 17
12685 \begin_inset space \thinspace{}
12686 \end_inset
12687
12688 pt,
12689  25
12690 \begin_inset space \thinspace{}
12691 \end_inset
12692
12693 pt and 30
12694 \begin_inset space \thinspace{}
12695 \end_inset
12696
12697 pt.
12698 \end_layout
12699
12700 \begin_layout Itemize
12701 The default font is 
12702 \family sans
12703 sans
12704 \family default
12705  
12706 \family sans
12707 serif
12708 \family default
12709  but all math equations are still typeset in the usual roman font.
12710 \end_layout
12711
12712 \begin_layout Itemize
12713
12714 \family sans
12715 Foil\SpecialChar TeX
12716
12717 \family default
12718  supports A4 and Letter paper sizes as well as a special size for working with 35
12719 \begin_inset space \thinspace{}
12720 \end_inset
12721
12722 mm slides.
12723  It doesn't support A5,
12724  B5,
12725  legal or executive paper sizes.
12726 \end_layout
12727
12728 \begin_layout Itemize
12729 Don't bother changing the 
12730 \family sans
12731 Float Placement
12732 \family default
12733  settings because they are ignored anyway.
12734  All floats appear where they are defined in the text.
12735 \end_layout
12736
12737 \begin_layout Itemize
12738 The 
12739 \family sans
12740 Pagestyle
12741 \family default
12742  setting behaves a bit differently for this class.
12743  
12744 \family sans
12745 Foil\SpecialChar TeX
12746
12747 \family default
12748  provides extensive footer and header capabilities including a user-defined logo.
12749  See section
12750 \begin_inset space ~
12751 \end_inset
12752
12753
12754 \begin_inset CommandInset ref
12755 LatexCommand ref
12756 reference "sec:foilfoot"
12757 nolink "false"
12758
12759 \end_inset
12760
12761  for more details.
12762  The title page is treated differently to all other pages in the document and is 
12763 \emph on
12764 always
12765 \emph default
12766  unnumbered and 
12767 \emph on
12768 always
12769 \emph default
12770  has the logo centered at the bottom of the page (if one is defined).
12771  The possible page style choices and what they do are as follows:
12772 \end_layout
12773
12774 \begin_deeper
12775 \begin_layout Labeling
12776 \labelwidthstring MMMMMMM
12777
12778 \family sans
12779 \series bold
12780 empty
12781 \family default
12782 \series default
12783  The final output contains no page numbers,
12784  or other headers or footers (except footnotes of course).
12785  
12786 \end_layout
12787
12788 \begin_layout Labeling
12789 \labelwidthstring MMMMMMM
12790
12791 \family sans
12792 \series bold
12793 plain
12794 \family default
12795 \series default
12796  The final output contains page numbers centered at the bottom of the page.
12797  No other headings or footers (other than footnotes).
12798 \end_layout
12799
12800 \begin_layout Labeling
12801 \labelwidthstring MMMMMMM
12802
12803 \series bold
12804 foilheadings
12805 \series default
12806  Page numbers in lower right corner.
12807  Additional headers and footers are also shown.
12808  This is also the default.
12809 \end_layout
12810
12811 \begin_layout Labeling
12812 \labelwidthstring MMMMMMM
12813
12814 \series bold
12815 fancy
12816 \series default
12817  Gives you access to the 
12818 \family sans
12819 fancyheadings
12820 \family default
12821  package although its use with 
12822 \family sans
12823 Foil\SpecialChar TeX
12824
12825 \family default
12826  is discouraged by the writer of the 
12827 \family sans
12828 Foil\SpecialChar TeX
12829
12830 \family default
12831  package because of some potential page layout clashes.
12832 \end_layout
12833
12834 \end_deeper
12835 \begin_layout Paragraph
12836 Extra Options
12837 \end_layout
12838
12839 \begin_layout Standard
12840 The following options may be used in the extra class options in the 
12841 \family sans
12842 Document\SpecialChar menuseparator
12843 Settings
12844 \family default
12845  dialog.
12846 \end_layout
12847
12848 \begin_layout Labeling
12849 \labelwidthstring MMMMMMx
12850
12851 \series bold
12852 35mmSlide
12853 \series default
12854  This sets up the page layout for 7.33
12855 \begin_inset space \thinspace{}
12856 \end_inset
12857
12858 in by 11
12859 \begin_inset space \thinspace{}
12860 \end_inset
12861
12862 in paper,
12863  which is about the same aspect ratio as a 35
12864 \begin_inset space \thinspace{}
12865 \end_inset
12866
12867 mm slide,
12868  making it a bit easier to work with this medium.
12869 \end_layout
12870
12871 \begin_layout Labeling
12872 \labelwidthstring MMMMMMx
12873
12874 \series bold
12875 headrule
12876 \series default
12877  Places a rule across the page below the header on every page except the title page.
12878 \end_layout
12879
12880 \begin_layout Labeling
12881 \labelwidthstring MMMMMMx
12882
12883 \series bold
12884 footrule
12885 \series default
12886  Places a rule across the page above the footer on every page except the title page.
12887 \end_layout
12888
12889 \begin_layout Labeling
12890 \labelwidthstring MMMMMMx
12891
12892 \series bold
12893 dvips
12894 \series default
12895  This is automatically set each time you create a new 
12896 \family sans
12897 foils
12898 \family default
12899  document.
12900  This option tells 
12901 \family sans
12902 Foil\SpecialChar TeX
12903
12904 \family default
12905  to use the dvips driver to rotate those pages that are set as landscape foils.
12906 \end_layout
12907
12908 \begin_layout Labeling
12909 \labelwidthstring MMMMMMx
12910
12911 \series bold
12912 landscape
12913 \series default
12914  Simply changes the page dimensions to those of a landscape page but doesn't do any rotation.
12915  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.
12916  Note that this option effectively reverses the roles of the 
12917 \family sans
12918 Foilhead
12919 \family default
12920  and 
12921 \family sans
12922 Rotatefoilhead
12923 \family default
12924  environments (don't worry these are described in the next section).
12925 \end_layout
12926
12927 \begin_layout Labeling
12928 \labelwidthstring MMMMMMx
12929
12930 \series bold
12931 leqno
12932 \series default
12933  Equation numbers on the left.
12934 \end_layout
12935
12936 \begin_layout Labeling
12937 \labelwidthstring MMMMMMx
12938
12939 \series bold
12940 fleqn
12941 \series default
12942  Flush-left equations.
12943 \end_layout
12944
12945 \begin_layout Subsubsection
12946 Supported Environments
12947 \end_layout
12948
12949 \begin_layout Standard
12950 Most of the environments commonly supported in other classes are also supported by the 
12951 \change_deleted -712698321 1673256683
12952
12953 \family sans
12954 foils
12955 \change_inserted -712698321 1673256683
12956 Foil\SpecialChar TeX
12957
12958 \change_unchanged
12959
12960 \family default
12961  class.
12962  There are several additional environments provided by 
12963 \family sans
12964 Foil\SpecialChar TeX
12965
12966 \family default
12967  as well as a couple added by \SpecialChar LyX
12968 .
12969  The following environments are shared with other classes:
12970 \end_layout
12971
12972 \begin_layout Standard
12973 \begin_inset Flex Multiple Columns
12974 status open
12975
12976 \begin_layout Itemize
12977
12978 \family sans
12979 Standard
12980 \end_layout
12981
12982 \begin_layout Itemize
12983
12984 \family sans
12985 Itemize
12986 \end_layout
12987
12988 \begin_layout Itemize
12989
12990 \family sans
12991 Enumerate
12992 \end_layout
12993
12994 \begin_layout Itemize
12995
12996 \family sans
12997 Description
12998 \end_layout
12999
13000 \begin_layout Itemize
13001
13002 \family sans
13003 List
13004 \end_layout
13005
13006 \begin_layout Itemize
13007
13008 \family sans
13009 \SpecialChar LyX
13010 -Code
13011 \end_layout
13012
13013 \begin_layout Itemize
13014
13015 \family sans
13016 Verse
13017 \end_layout
13018
13019 \begin_layout Itemize
13020
13021 \family sans
13022 Quote
13023 \end_layout
13024
13025 \begin_layout Itemize
13026
13027 \family sans
13028 Quotation
13029 \end_layout
13030
13031 \begin_layout Itemize
13032
13033 \family sans
13034 Title
13035 \change_inserted -712698321 1673256734
13036
13037 \end_layout
13038
13039 \begin_layout Itemize
13040
13041 \family sans
13042 Author
13043 \end_layout
13044
13045 \begin_layout Itemize
13046
13047 \family sans
13048 Date
13049 \end_layout
13050
13051 \begin_layout Itemize
13052
13053 \family sans
13054 Abstract
13055 \end_layout
13056
13057 \begin_layout Itemize
13058
13059 \family sans
13060 Bibliography
13061 \end_layout
13062
13063 \begin_layout Itemize
13064
13065 \family sans
13066 Address
13067 \end_layout
13068
13069 \begin_layout Itemize
13070
13071 \family sans
13072 RightAddress
13073 \end_layout
13074
13075 \end_inset
13076
13077
13078 \end_layout
13079
13080 \begin_layout Standard
13081 That is,
13082  all the major environments apart from the sectioning environments.
13083  Since foils are essentially self-contained sections,
13084  with a title and body,
13085  
13086 \family sans
13087 Foil\SpecialChar TeX
13088
13089 \family default
13090  provides specific commands for starting new foils and these are:
13091 \end_layout
13092
13093 \begin_layout Itemize
13094
13095 \family sans
13096 Foilhead
13097 \end_layout
13098
13099 \begin_layout Itemize
13100
13101 \family sans
13102 Rotatefoilhead
13103 \end_layout
13104
13105 \begin_layout Standard
13106 \SpecialChar LyX
13107  also provides slightly modified versions of these two environments called:
13108 \end_layout
13109
13110 \begin_layout Itemize
13111
13112 \family sans
13113 ShortFoilhead
13114 \end_layout
13115
13116 \begin_layout Itemize
13117
13118 \family sans
13119 ShortRotatefoilhead
13120 \end_layout
13121
13122 \begin_layout Standard
13123 and the differences will be explained in the next section.
13124 \end_layout
13125
13126 \begin_layout Standard
13127 Since foils are often used in presenting ideas or new theorems and such 
13128 \family sans
13129 Foil\SpecialChar TeX
13130
13131 \family default
13132  also provides a comprehensive box of goodies for presenting them:
13133 \end_layout
13134
13135 \begin_layout Standard
13136 \begin_inset Flex Multiple Columns
13137 status open
13138
13139 \begin_layout Itemize
13140
13141 \family sans
13142 Theorem
13143 \end_layout
13144
13145 \begin_layout Itemize
13146
13147 \family sans
13148 Lemma
13149 \end_layout
13150
13151 \begin_layout Itemize
13152
13153 \family sans
13154 Corollary
13155 \end_layout
13156
13157 \begin_layout Itemize
13158
13159 \family sans
13160 Proposition
13161 \end_layout
13162
13163 \begin_layout Itemize
13164
13165 \family sans
13166 Definition
13167 \end_layout
13168
13169 \begin_layout Itemize
13170
13171 \family sans
13172 Proof
13173 \end_layout
13174
13175 \begin_layout Itemize
13176
13177 \family sans
13178 Theorem*
13179 \end_layout
13180
13181 \begin_layout Itemize
13182
13183 \family sans
13184 Lemma*
13185 \end_layout
13186
13187 \begin_layout Itemize
13188
13189 \family sans
13190 Corollary*
13191 \end_layout
13192
13193 \begin_layout Itemize
13194
13195 \family sans
13196 Proposition*
13197 \end_layout
13198
13199 \begin_layout Itemize
13200
13201 \family sans
13202 Definition*
13203 \end_layout
13204
13205 \end_inset
13206
13207
13208 \end_layout
13209
13210 \begin_layout Standard
13211 The starred versions are unnumbered while the unstarred versions are numbered.
13212  There are also two list environments added by \SpecialChar LyX
13213  and these are:
13214 \end_layout
13215
13216 \begin_layout Itemize
13217
13218 \family sans
13219 TickList
13220 \end_layout
13221
13222 \begin_layout Itemize
13223
13224 \family sans
13225 CrossList
13226 \end_layout
13227
13228 \begin_layout Standard
13229
13230 \family sans
13231 Foil\SpecialChar TeX
13232
13233 \family default
13234  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.
13235  If you want to change these settings in your document the best place to do so is at the very top of a foil,
13236  i.
13237 \begin_inset space \thinspace{}
13238 \end_inset
13239
13240 e.
13241 \emph on
13242
13243 \begin_inset space \space{}
13244 \end_inset
13245
13246
13247 \emph default
13248 straight after the foilhead.
13249 \end_layout
13250
13251 \begin_layout Standard
13252 For this purpose,
13253  the following command styles are provided [
13254 \shape smallcaps
13255 Martin Vermeer
13256 \shape default
13257 ]:
13258 \end_layout
13259
13260 \begin_layout Standard
13261 \begin_inset Flex Multiple Columns
13262 status open
13263
13264 \begin_layout Itemize
13265
13266 \family sans
13267 My
13268 \begin_inset space ~
13269 \end_inset
13270
13271 Logo
13272 \end_layout
13273
13274 \begin_layout Itemize
13275
13276 \family sans
13277 Restriction
13278 \end_layout
13279
13280 \begin_layout Itemize
13281
13282 \family sans
13283 Right
13284 \begin_inset space ~
13285 \end_inset
13286
13287 Footer
13288 \end_layout
13289
13290 \begin_layout Itemize
13291
13292 \family sans
13293 Right
13294 \begin_inset space ~
13295 \end_inset
13296
13297 Header
13298 \end_layout
13299
13300 \begin_layout Itemize
13301
13302 \family sans
13303 Left
13304 \begin_inset space ~
13305 \end_inset
13306
13307 Header
13308 \end_layout
13309
13310 \begin_deeper
13311 \begin_layout Plain Layout
13312 \begin_inset space ~
13313 \end_inset
13314
13315
13316 \end_layout
13317
13318 \end_deeper
13319 \end_inset
13320
13321
13322 \end_layout
13323
13324 \begin_layout Standard
13325 There are also a few commands provided by 
13326 \family sans
13327 Foil\SpecialChar TeX
13328
13329 \family default
13330  that aren't directly supported by \SpecialChar LyX
13331  but I'll tell you what they do and how to use them in section
13332 \begin_inset space ~
13333 \end_inset
13334
13335
13336 \begin_inset CommandInset ref
13337 LatexCommand ref
13338 reference "sec:unsuppfoils"
13339 nolink "false"
13340
13341 \end_inset
13342
13343 .
13344 \end_layout
13345
13346 \begin_layout Subsubsection
13347 Building a Set of Foils
13348 \end_layout
13349
13350 \begin_layout Standard
13351 This section will give a simple introduction to using the different environments to build a set of foils.
13352  If you want to see an example set of foils,
13353  take a look at 
13354 \change_deleted 564990737 1671643085
13355 the 
13356 \family typewriter
13357 Foils.lyx
13358 \family default
13359  file you find in \SpecialChar LyX
13360 's 
13361 \family typewriter
13362 examples
13363 \family default
13364  folder
13365 \change_inserted 564990737 1671643099
13366
13367 \family sans
13368 File\SpecialChar menuseparator
13369 Open Example\SpecialChar menuseparator
13370 Presentations\SpecialChar menuseparator
13371 Foils
13372 \change_unchanged
13373
13374 \family default
13375 .
13376 \end_layout
13377
13378 \begin_layout Paragraph
13379 Give It a Title Page
13380 \end_layout
13381
13382 \begin_layout Standard
13383 Unlike other classes that provide 
13384 \family sans
13385 Title
13386 \family default
13387 ,
13388  
13389 \family sans
13390 Author
13391 \family default
13392 ,
13393  
13394 \family sans
13395 Date
13396 \family default
13397  and 
13398 \family sans
13399 Abstract
13400 \family default
13401  environments,
13402  
13403 \change_deleted -712698321 1673256940
13404
13405 \family sans
13406 foils
13407 \change_inserted -712698321 1673256940
13408
13409 \lang ngerman
13410 FoilTeX
13411 \change_unchanged
13412
13413 \family default
13414 \lang english
13415  creates the title on a page of its own.
13416  If you leave out the 
13417 \family sans
13418 Date
13419 \family default
13420  environment \SpecialChar LaTeX
13421  will substitute the current date (every time you regenerate the output).
13422 \end_layout
13423
13424 \begin_layout Paragraph
13425 Start a New Foil
13426 \end_layout
13427
13428 \begin_layout Standard
13429 As I mentioned earlier,
13430  there are four ways of starting a new foil.
13431  For portrait foils you should use 
13432 \family sans
13433 Foilhead
13434 \family default
13435  or 
13436 \family sans
13437 ShortFoilhead.
13438
13439 \family default
13440  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.
13441 \end_layout
13442
13443 \begin_layout Standard
13444 Landscape foils are generated using the 
13445 \family sans
13446 Rotatefoilhead
13447 \family default
13448  and 
13449 \family sans
13450 ShortRotatefoilhead
13451 \family default
13452  environments.
13453  Again the only difference is the spacing between foilhead and body.
13454  Both of the short versions have 0.5
13455 \begin_inset space ~
13456 \end_inset
13457
13458 inches less separation between the foilhead and the body.
13459  
13460 \end_layout
13461
13462 \begin_layout Standard
13463 One problem with the support for landscape foils is the requirement that you have to use the 
13464 \family typewriter
13465 dvips
13466 \family default
13467  driver to generate the PostScript output otherwise the foils won't be rotated.
13468  It is possible to get landscape foils even if you haven't got the 
13469 \family typewriter
13470 dvips
13471 \family default
13472  driver provided you can feed your foils sideways through your printer ;-)
13473 \end_layout
13474
13475 \begin_layout Paragraph
13476 Theorems,
13477  Lemmas,
13478  Proofs and more
13479 \end_layout
13480
13481 \begin_layout Standard
13482 You can't have two of the same type of these environments directly following each other.
13483  If you use a normal paragraph break,
13484  ,
13485  you will just be extending the previous environment as if you had merged the two environments together.
13486  Rather than that,
13487  you need to insert a so-called separator.
13488  Please refer to the section entitled 
13489 \emph on
13490 Separate Nestings
13491 \emph default
13492  in the 
13493 \emph on
13494 User's Guide
13495 \emph default
13496 .
13497 \end_layout
13498
13499 \begin_layout Paragraph
13500 Lists
13501 \end_layout
13502
13503 \begin_layout Standard
13504 You get all the commonly supported list styles found in other classes as well as two new ones.
13505  I'll only describe the new ones here.
13506  If you want to find out more about the other list environments check out the 
13507 \emph on
13508 User's Guide.
13509
13510 \emph default
13511  If you intend to use itemized lists you might also want to read about the 
13512 \family sans
13513 Itemize
13514 \begin_inset space ~
13515 \end_inset
13516
13517 Bullet
13518 \begin_inset space ~
13519 \end_inset
13520
13521 Selection
13522 \family default
13523  dialog described above in section
13524 \begin_inset space ~
13525 \end_inset
13526
13527
13528 \change_inserted 564990737 1671355684
13529
13530 \begin_inset CommandInset ref
13531 LatexCommand ref
13532 reference "chap:bullets"
13533 nolink "false"
13534
13535 \end_inset
13536
13537
13538 \change_deleted 564990737 1671355684
13539
13540 \begin_inset CommandInset ref
13541 LatexCommand ref
13542 reference "sec:bullet"
13543 nolink "false"
13544
13545 \end_inset
13546
13547
13548 \change_unchanged
13549 .
13550 \end_layout
13551
13552 \begin_layout Standard
13553 The two new list styles,
13554  
13555 \family sans
13556 TickList
13557 \family default
13558  and 
13559 \family sans
13560 CrossList
13561 \family default
13562 ,
13563  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.
13564  These lists are in fact dedicated variants of the 
13565 \family sans
13566 Itemize
13567 \family default
13568  environment.
13569  They do however require that you have the 
13570 \family typewriter
13571 psnfss
13572 \family default
13573  packages installed.
13574 \end_layout
13575
13576 \begin_layout Paragraph
13577 Figures and Tables
13578 \end_layout
13579
13580 \begin_layout Standard
13581
13582 \family sans
13583 Foil\SpecialChar TeX
13584
13585 \family default
13586  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.
13587  In fact if you change the float placement settings they are simply ignored.
13588 \end_layout
13589
13590 \begin_layout Paragraph
13591 Page Headers and Footers
13592 \begin_inset CommandInset label
13593 LatexCommand label
13594 name "sec:foilfoot"
13595
13596 \end_inset
13597
13598
13599 \end_layout
13600
13601 \begin_layout Standard
13602
13603 \family sans
13604 My
13605 \begin_inset space ~
13606 \end_inset
13607
13608 Logo
13609 \family default
13610  and 
13611 \family sans
13612 Restriction
13613 \family default
13614  are two commands used to control the left-footer text string.
13615  The first is meant to allow you to include a graphic logo on your foils and defaults to 
13616 \begin_inset Quotes eld
13617 \end_inset
13618
13619 -Typeset by 
13620 \family sans
13621 Foil\SpecialChar TeX
13622
13623 \family default
13624 -
13625 \begin_inset Quotes erd
13626 \end_inset
13627
13628 .
13629  While the second is meant to provide a classification for the audience,
13630  
13631 \emph on
13632 e.
13633 \begin_inset space \thinspace{}
13634 \end_inset
13635
13636 g.
13637 \emph default
13638
13639 \begin_inset space \space{}
13640 \end_inset
13641
13642 Confidential.
13643  It is empty by default.
13644 \end_layout
13645
13646 \begin_layout Standard
13647 The remaining page corners can be filled by 
13648 \family sans
13649 Right
13650 \begin_inset space ~
13651 \end_inset
13652
13653 Footer
13654 \family default
13655  (which defaults to page numbers),
13656  
13657 \family sans
13658 Right
13659 \begin_inset space ~
13660 \end_inset
13661
13662 Header
13663 \family default
13664  (top right) and 
13665 \family sans
13666 Left
13667 \begin_inset space ~
13668 \end_inset
13669
13670 Header
13671 \family default
13672  (top left).
13673 \end_layout
13674
13675 \begin_layout Subsubsection
13676 Unsupported 
13677 \family sans
13678 Foil\SpecialChar TeX
13679
13680 \family default
13681  Goodies
13682 \begin_inset CommandInset label
13683 LatexCommand label
13684 name "sec:unsuppfoils"
13685
13686 \end_inset
13687
13688
13689 \end_layout
13690
13691 \begin_layout Standard
13692 All the commands mentioned below need to be set in a 
13693 \family sans
13694 \SpecialChar LaTeX
13695
13696 \family default
13697  environment or as 
13698 \family sans
13699 \SpecialChar TeX
13700
13701 \family default
13702  within another environment.
13703 \end_layout
13704
13705 \begin_layout Paragraph
13706 Lengths
13707 \end_layout
13708
13709 \begin_layout Standard
13710 All lengths are adjusted using the 
13711 \family typewriter
13712
13713 \backslash
13714 setlength{
13715 \family default
13716 \emph on
13717 lengthname
13718 \family typewriter
13719 \emph default
13720 }{
13721 \family default
13722 \emph on
13723 newlength
13724 \family typewriter
13725 \emph default
13726 }
13727 \family default
13728  command.
13729  Where 
13730 \emph on
13731 lengthname
13732 \emph default
13733  should be replaced by the name given to the length you want to change and 
13734 \emph on
13735 newlength
13736 \emph default
13737  is the length value.
13738  All lengths should be specified in units of length such as inches (
13739 \family typewriter
13740 in
13741 \family default
13742 ),
13743  millimeters (
13744 \family typewriter
13745 mm
13746 \family default
13747 ) or points (
13748 \family typewriter
13749 pt
13750 \family default
13751 ) or relative to some document or font-based length such as 
13752 \family typewriter
13753
13754 \backslash
13755 textwidth
13756 \family default
13757 .
13758  
13759 \end_layout
13760
13761 \begin_layout Standard
13762 It's possible to change the spacing between a foilhead and the body of the foil by adjusting the length specified by 
13763 \family typewriter
13764
13765 \backslash
13766 foilheadskip
13767 \family default
13768 .
13769  For example,
13770  to make 
13771 \emph on
13772 all
13773 \emph default
13774  foilheads 0.5
13775 \begin_inset space \space{}
13776 \end_inset
13777
13778 in closer to their bodies put the following in the preamble:
13779  
13780 \family typewriter
13781
13782 \backslash
13783 setlength{
13784 \backslash
13785 foilheadskip}{-0.5in}
13786 \end_layout
13787
13788 \begin_layout Standard
13789 The spacings around floats can be adjusted by setting these lengths:
13790 \end_layout
13791
13792 \begin_layout Labeling
13793 \labelwidthstring MMMMMMMMMMM
13794
13795 \family typewriter
13796
13797 \backslash
13798 abovefloatskip
13799 \family default
13800  Separation between the text and the top of the float
13801 \end_layout
13802
13803 \begin_layout Labeling
13804 \labelwidthstring MMMMMMMMMMM
13805
13806 \family typewriter
13807
13808 \backslash
13809 abovecaptionskip
13810 \family default
13811  Separation between the float and the caption
13812 \end_layout
13813
13814 \begin_layout Labeling
13815 \labelwidthstring MMMMMMMMMMM
13816
13817 \family typewriter
13818
13819 \backslash
13820 belowcaptionskip
13821 \family default
13822  Separation between the caption and the following text
13823 \end_layout
13824
13825 \begin_layout Labeling
13826 \labelwidthstring MMMMMMMMMMM
13827
13828 \family typewriter
13829
13830 \backslash
13831 captionwidth
13832 \family default
13833  You can make the captions narrower than the surrounding text by adjusting this length.
13834  Best done relative to 
13835 \family typewriter
13836
13837 \backslash
13838 textwidth
13839 \family default
13840 .
13841 \end_layout
13842
13843 \begin_layout Standard
13844 There are also several title page related lengths that you may find useful if you have a long title or several authors:
13845 \end_layout
13846
13847 \begin_layout Labeling
13848 \labelwidthstring MMMMMMMMMMM
13849
13850 \family typewriter
13851
13852 \backslash
13853 abovetitleskip
13854 \family default
13855  Separation from headers to 
13856 \family sans
13857 Title
13858 \end_layout
13859
13860 \begin_layout Labeling
13861 \labelwidthstring MMMMMMMMMMM
13862
13863 \family typewriter
13864
13865 \backslash
13866 titleauthorskip
13867 \family default
13868  between 
13869 \family sans
13870 Title
13871 \family default
13872  and 
13873 \family sans
13874 Author
13875 \family default
13876  environments
13877 \end_layout
13878
13879 \begin_layout Labeling
13880 \labelwidthstring MMMMMMMMMMM
13881
13882 \family typewriter
13883
13884 \backslash
13885 authorauthorskip
13886 \family default
13887  between multiple 
13888 \family sans
13889 Author
13890 \family default
13891  lines
13892 \end_layout
13893
13894 \begin_layout Labeling
13895 \labelwidthstring MMMMMMMMMMM
13896
13897 \family typewriter
13898
13899 \backslash
13900 authordateskip
13901 \family default
13902  between the 
13903 \family sans
13904 Author
13905 \family default
13906  and the 
13907 \family sans
13908 Date
13909 \end_layout
13910
13911 \begin_layout Labeling
13912 \labelwidthstring MMMMMMMMMMM
13913
13914 \family typewriter
13915
13916 \backslash
13917 dateabstractskip
13918 \family default
13919  between the 
13920 \family sans
13921 Date
13922 \family default
13923  and the 
13924 \family sans
13925 Abstract
13926 \end_layout
13927
13928 \begin_layout Standard
13929 The last length related command affects all the list environments.
13930  If you place 
13931 \family typewriter
13932
13933 \backslash
13934 zerolistvertdimens
13935 \family default
13936  
13937 \emph on
13938 inside
13939 \emph default
13940  a list environment then all the vertical spacing between the list items is removed.
13941  Note that this is a command not a length so it doesn't require 
13942 \family typewriter
13943
13944 \backslash
13945 setlength
13946 \family default
13947  like the stuff mentioned above.
13948 \end_layout
13949
13950 \begin_layout Paragraph
13951 Headers and Footers
13952 \end_layout
13953
13954 \begin_layout Standard
13955 The 
13956 \family typewriter
13957
13958 \backslash
13959 LogoOn
13960 \family default
13961  and 
13962 \family typewriter
13963
13964 \backslash
13965 LogoOff
13966 \family default
13967  commands control whether the logo in the 
13968 \family sans
13969 MyLogo
13970 \family default
13971  definition appear on a given page.
13972  If you put 
13973 \family typewriter
13974
13975 \backslash
13976 LogoOff
13977 \family default
13978  in the preamble then none of the foils will have the logo on them.
13979  If you don't want the logo on a particular page place the 
13980 \family typewriter
13981
13982 \backslash
13983 LogoOff
13984 \family default
13985  directly after the foilhead of that page and the 
13986 \family typewriter
13987
13988 \backslash
13989 LogoOn
13990 \family default
13991  directly after the next foilhead.
13992 \end_layout
13993
13994 \begin_layout Standard
13995 If you decide to use the 
13996 \family sans
13997 fancy
13998 \family default
13999  page style setting in the 
14000 \family sans
14001 Document
14002 \begin_inset space ~
14003 \end_inset
14004
14005 Layout
14006 \family default
14007  dialog you should probably add 
14008 \family typewriter
14009
14010 \backslash
14011 let
14012 \backslash
14013 headwidth
14014 \backslash
14015 textwidth
14016 \family default
14017  to your preamble so headers and footers on landscape pages are correctly placed when rotated.
14018  This is due to some clashes between the page layouts provided by the 
14019 \family sans
14020 fancyheadings
14021 \family default
14022  package and the 
14023 \change_deleted -712698321 1673257120
14024
14025 \family sans
14026 foils
14027 \change_inserted -712698321 1673257120
14028
14029 \lang ngerman
14030 FoilTeX
14031 \change_unchanged
14032
14033 \family default
14034 \lang english
14035  class.
14036 \end_layout
14037
14038 \begin_layout Subsection
14039
14040 \change_inserted 564990737 1671459032
14041 Powerdot
14042 \end_layout
14043
14044 \begin_layout Standard
14045
14046 \change_inserted 564990737 1671643165
14047 The document class 
14048 \change_deleted -712698321 1673257152
14049
14050 \family sans
14051 presentation
14052 \begin_inset space \thinspace{}
14053 \end_inset
14054
14055 (p
14056 \change_inserted -712698321 1673257152
14057 P
14058 \change_inserted 564990737 1671643165
14059 owerdot
14060 \change_deleted -712698321 1673257154
14061 )
14062 \change_inserted 564990737 1671643165
14063
14064 \family default
14065  uses the 
14066 \family typewriter
14067 powerdot.cls
14068 \family default
14069  
14070 \change_deleted -712698321 1673257280
14071 document
14072 \change_inserted -712698321 1673257280
14073 \SpecialChar LaTeX
14074
14075 \change_inserted 564990737 1671643165
14076  class for creating presentations.
14077  
14078 \family sans
14079 File\SpecialChar menuseparator
14080 Open Example\SpecialChar menuseparator
14081 Presentations\SpecialChar menuseparator
14082 Powerdot
14083 \family default
14084  offers guidance on its use.
14085  The documentation is available from 
14086 \begin_inset CommandInset href
14087 LatexCommand href
14088 name "CTAN"
14089 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
14090 literal "false"
14091
14092 \end_inset
14093
14094 .
14095 \end_layout
14096
14097 \begin_layout Subsection
14098
14099 \change_inserted 564990737 1671459032
14100 \begin_inset CommandInset label
14101 LatexCommand label
14102 name "subsec:Seminar"
14103
14104 \end_inset
14105
14106
14107 \family sans
14108 Seminar
14109 \end_layout
14110
14111 \begin_layout Standard
14112
14113 \change_inserted 564990737 1671643194
14114 The document class 
14115 \change_deleted -712698321 1673257295
14116
14117 \family sans
14118 presentations
14119 \begin_inset space \thinspace{}
14120 \end_inset
14121
14122 (s
14123 \change_inserted -712698321 1673257295
14124 S
14125 \change_inserted 564990737 1671643194
14126 eminar
14127 \change_deleted -712698321 1673257296
14128 )
14129 \change_inserted 564990737 1671643194
14130
14131 \family default
14132  uses the 
14133 \family typewriter
14134 seminar.cls
14135 \family default
14136  document class for creating presentations.
14137  
14138 \family sans
14139 File\SpecialChar menuseparator
14140 Open Example\SpecialChar menuseparator
14141 Presentations\SpecialChar menuseparator
14142 Seminar
14143 \family default
14144  offers guidance on its use.
14145  The documentation is available from 
14146 \begin_inset CommandInset href
14147 LatexCommand href
14148 name "CTAN"
14149 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
14150 literal "false"
14151
14152 \end_inset
14153
14154 .
14155 \end_layout
14156
14157 \begin_layout Subsection
14158 Slides [aka 
14159 \noun on
14160 Sli\SpecialChar TeX
14161
14162 \noun default
14163 ]
14164 \begin_inset CommandInset label
14165 LatexCommand label
14166 name "sec:slitex"
14167
14168 \end_inset
14169
14170
14171 \end_layout
14172
14173 \begin_layout Standard
14174
14175 \change_inserted 564990737 1672743492
14176 Original by 
14177 \noun on
14178 John Weiss
14179 \noun default
14180 ;
14181  updated by the \SpecialChar LyX
14182  Team
14183 \end_layout
14184
14185 \begin_layout Subsubsection
14186
14187 \change_inserted 564990737 1672743492
14188 Introduction
14189 \end_layout
14190
14191 \begin_layout Standard
14192
14193 \change_inserted 564990737 1672743492
14194 This section describes how to use \SpecialChar LyX
14195  to make slides for overhead projectors.
14196  There are two document classes that can do this:
14197  the 
14198 \change_deleted -712698321 1673257697
14199
14200 \family typewriter
14201 presentations
14202 \begin_inset space \thinspace{}
14203 \end_inset
14204
14205 (s
14206 \change_inserted -712698321 1673257697
14207
14208 \family sans
14209 S
14210 \change_inserted 564990737 1672743492
14211 lides
14212 \change_deleted -712698321 1673257698
14213
14214 \family typewriter
14215 )
14216 \change_inserted 564990737 1672743492
14217
14218 \family default
14219  document class and the 
14220 \change_deleted -712698321 1673257705
14221
14222 \family sans
14223 presentation
14224 \begin_inset space \thinspace{}
14225 \end_inset
14226
14227 (
14228 \change_inserted 564990737 1672743492
14229 Foil\SpecialChar TeX
14230
14231 \change_deleted -712698321 1673257707
14232 )
14233 \change_inserted 564990737 1672743492
14234
14235 \family default
14236  document class.
14237  This section documents the former.
14238  If you’re looking for the documentation for 
14239 \change_deleted -712698321 1673257759
14240
14241 \family sans
14242 presentation
14243 \begin_inset space \thinspace{}
14244 \end_inset
14245
14246 (
14247 \change_inserted 564990737 1672743492
14248 Foil\SpecialChar TeX
14249
14250 \change_deleted -712698321 1673257760
14251 )
14252 \change_inserted 564990737 1672743492
14253
14254 \family default
14255 ,
14256  check out section
14257 \begin_inset space ~
14258 \end_inset
14259
14260
14261 \change_inserted -712698321 1673257749
14262
14263 \begin_inset CommandInset ref
14264 LatexCommand ref
14265 reference "sec:foiltex"
14266 plural "false"
14267 caps "false"
14268 noprefix "false"
14269 nolink "false"
14270
14271 \end_inset
14272
14273
14274 \change_deleted -712698321 1673257749
14275
14276 \begin_inset CommandInset ref
14277 LatexCommand ref
14278 reference "sec:Foiltex"
14279 nolink "false"
14280
14281 \end_inset
14282
14283
14284 \change_inserted 564990737 1672743492
14285 .
14286  As of 2023 
14287 \change_deleted -712698321 1673257899
14288 the former
14289 \change_inserted -712698321 1673257899
14290
14291 \family sans
14292 Slides
14293 \change_inserted 564990737 1672743492
14294
14295 \family default
14296  has continued to be maintained whereas 
14297 \family sans
14298 Foil\SpecialChar TeX
14299
14300 \family default
14301  has not been maintained since 2008.
14302  
14303 \change_deleted 564990737 1672743492
14304 by 
14305 \noun on
14306 John Weiss
14307 \noun default
14308  
14309 \end_layout
14310
14311 \begin_layout Standard
14312
14313 \change_deleted 564990737 1672743492
14314 Introduction
14315 \end_layout
14316
14317 \begin_layout Standard
14318
14319 \change_deleted 564990737 1672743492
14320 This section describes how to use \SpecialChar LyX
14321  to make slides for overhead projectors.
14322  There are two document classes that can do this:
14323  the default slides class and the 
14324 \family sans
14325 Foil\SpecialChar TeX
14326
14327 \family default
14328  slides class.
14329  This section documents the former.
14330 \end_layout
14331
14332 \begin_layout Standard
14333
14334 \change_deleted 564990737 1672743492
14335 I'm going to say this again,
14336  nice and clear,
14337  so that there's no misunderstanding:
14338 \end_layout
14339
14340 \begin_layout Standard
14341
14342 \change_deleted 564990737 1672743492
14343 \begin_inset VSpace bigskip
14344 \end_inset
14345
14346
14347 \end_layout
14348
14349 \begin_layout Standard
14350 \align center
14351
14352 \change_deleted 564990737 1672743492
14353
14354 \size large
14355 This section documents the class 
14356 \begin_inset Quotes eld
14357 \end_inset
14358
14359
14360 \family sans
14361 slides (default)
14362 \family default
14363
14364 \begin_inset Quotes erd
14365 \end_inset
14366
14367  
14368 \emph on
14369 only.
14370 \end_layout
14371
14372 \begin_layout Standard
14373
14374 \change_deleted 564990737 1672743492
14375 \begin_inset VSpace bigskip
14376 \end_inset
14377
14378
14379 \end_layout
14380
14381 \begin_layout Standard
14382
14383 \change_deleted 564990737 1672743492
14384 If you're looking for the documentation for 
14385 \begin_inset Quotes eld
14386 \end_inset
14387
14388
14389 \family sans
14390 slides (Foil\SpecialChar TeX
14391 )
14392 \family default
14393
14394 \begin_inset Quotes erd
14395 \end_inset
14396
14397 ,
14398  check out section
14399 \begin_inset space ~
14400 \end_inset
14401
14402
14403 \begin_inset CommandInset ref
14404 LatexCommand ref
14405 reference "sec:foiltex"
14406 nolink "false"
14407
14408 \end_inset
14409
14410 .
14411  The 
14412 \family sans
14413 foils
14414 \family default
14415  class [
14416 \begin_inset Quotes eld
14417 \end_inset
14418
14419
14420 \family sans
14421 slides (Foil\SpecialChar TeX
14422 )
14423 \family default
14424
14425 \begin_inset Quotes erd
14426 \end_inset
14427
14428 ] is actually somewhat better than the default 
14429 \family sans
14430 slides
14431 \family default
14432  class,
14433 \begin_inset Foot
14434 status collapsed
14435
14436 \begin_layout Plain Layout
14437 \SpecialChar ldots
14438 or so I've been told repeatedly by its advocates.
14439  Having never used it,
14440  I have no idea if this claim is true or not.
14441 \end_layout
14442
14443 \end_inset
14444
14445  which this section documents.
14446 \end_layout
14447
14448 \begin_layout Standard
14449
14450 \change_deleted 564990737 1672743492
14451 This class is the \SpecialChar LaTeX2e
14452  improvement of the old 
14453 \noun on
14454 Sli\SpecialChar TeX
14455
14456 \noun default
14457  package.
14458  Every \SpecialChar LaTeX2e
14459  distribution includes this class [which I'll just refer to as 
14460 \begin_inset Quotes eld
14461 \end_inset
14462
14463
14464 \family sans
14465 slides
14466 \family default
14467
14468 \begin_inset Quotes erd
14469 \end_inset
14470
14471  from now on],
14472  so you're bound to have it.
14473  As I noted earlier,
14474  there are other classes,
14475  such as 
14476 \family sans
14477 foils
14478 \family default
14479 ,
14480  which also produce slides for overhead projectors and do a better job at it.
14481  However,
14482  there are some things which 
14483 \family sans
14484 slides
14485 \family default
14486  can do which the others can't,
14487  such as generate overlays.
14488  Read on to learn more!
14489 \change_unchanged
14490
14491 \end_layout
14492
14493 \begin_layout Subsubsection
14494 Getting Started
14495 \begin_inset CommandInset label
14496 LatexCommand label
14497 name "sec:slidesetup"
14498
14499 \end_inset
14500
14501
14502 \end_layout
14503
14504 \begin_layout Standard
14505 Obviously,
14506  to use this document class,
14507  you need to select 
14508 \begin_inset Quotes eld
14509 \end_inset
14510
14511
14512 \change_deleted -712698321 1673257922
14513
14514 \family sans
14515 s
14516 \change_inserted -712698321 1673257922
14517 S
14518 \change_unchanged
14519 lides
14520 \change_deleted -712698321 1673257925
14521  (default)
14522 \change_unchanged
14523
14524 \family default
14525
14526 \begin_inset Quotes erd
14527 \end_inset
14528
14529  from the class list in the 
14530 \family sans
14531 Document\SpecialChar menuseparator
14532 Settings
14533 \family default
14534  dialog.
14535  There are some other special things you should know about this class:
14536 \end_layout
14537
14538 \begin_layout Itemize
14539 Don't bother changing the options 
14540 \family sans
14541 Sides and Columns
14542 \family default
14543 .
14544  They're not supported by the 
14545 \change_deleted -712698321 1673257960
14546
14547 \family sans
14548 s
14549 \change_inserted -712698321 1673257960
14550 S
14551 \change_unchanged
14552 lides
14553 \family default
14554  class,
14555  anyways.
14556 \end_layout
14557
14558 \begin_layout Itemize
14559 The option 
14560 \family sans
14561 Page
14562 \begin_inset space ~
14563 \end_inset
14564
14565 style
14566 \family default
14567  behaves a bit differently for this class.
14568  The possible choices and what they do are as follows:
14569 \end_layout
14570
14571 \begin_deeper
14572 \begin_layout Description
14573
14574 \family sans
14575 plain
14576 \family default
14577  The final output contains page numbers in the lower right corner.
14578 \end_layout
14579
14580 \begin_layout Description
14581
14582 \family sans
14583 headings
14584 \family default
14585  Like 
14586 \family sans
14587 plain
14588 \family default
14589 ,
14590  but also prints out any time markers you've put in.
14591  This is the default.
14592 \end_layout
14593
14594 \begin_layout Description
14595
14596 \family sans
14597 empty
14598 \family default
14599  The final output contains no page numbers,
14600  time markers,
14601  or alignment markers.
14602 \end_layout
14603
14604 \end_deeper
14605 \begin_layout Itemize
14606 The 
14607 \change_deleted -712698321 1673257971
14608
14609 \family sans
14610 s
14611 \change_inserted -712698321 1673257971
14612 S
14613 \change_unchanged
14614 lides
14615 \family default
14616  class has an extra option:
14617  
14618 \family typewriter
14619 clock
14620 \family default
14621 .
14622  To use it,
14623  put 
14624 \begin_inset Quotes eld
14625 \end_inset
14626
14627
14628 \family typewriter
14629 clock
14630 \family default
14631
14632 \begin_inset Quotes erd
14633 \end_inset
14634
14635  in the extra class options.
14636 \end_layout
14637
14638 \begin_deeper
14639 \begin_layout Standard
14640 Using this options allows you to add time markers to 
14641 \family sans
14642 Note
14643 \family default
14644 s.
14645  See section
14646 \begin_inset space ~
14647 \end_inset
14648
14649
14650 \begin_inset CommandInset ref
14651 LatexCommand ref
14652 reference "sec:slideNote"
14653 nolink "false"
14654
14655 \end_inset
14656
14657  for more details.
14658 \end_layout
14659
14660 \end_deeper
14661 \begin_layout Standard
14662 You can also use the template file
14663 \change_deleted 564990737 1671617694
14664  
14665 \begin_inset Quotes eld
14666 \end_inset
14667
14668
14669 \family typewriter
14670 slides.lyx
14671 \family default
14672
14673 \begin_inset Quotes erd
14674 \end_inset
14675
14676
14677 \change_unchanged
14678  to automatically set up a document to use the 
14679 \family sans
14680 slides
14681 \family default
14682  class 
14683 \change_deleted 564990737 1671617699
14684 [
14685 \change_unchanged
14686 using 
14687 \family sans
14688 File\SpecialChar menuseparator
14689 New
14690 \begin_inset space ~
14691 \end_inset
14692
14693 from
14694 \begin_inset space ~
14695 \end_inset
14696
14697 Template
14698 \change_inserted 564990737 1671617723
14699 \SpecialChar menuseparator
14700 Presentations\SpecialChar menuseparator
14701 Slides
14702 \change_unchanged
14703
14704 \family default
14705  to open your new document
14706 \change_deleted 564990737 1671617728
14707 ]
14708 \change_unchanged
14709 .
14710  The template file also contains some examples of the special paragraph environments used by this class.
14711  I'll describe those next.
14712 \end_layout
14713
14714 \begin_layout Subsubsection
14715 Paragraph Environments
14716 \end_layout
14717
14718 \begin_layout Paragraph
14719 Supported Environments
14720 \end_layout
14721
14722 \begin_layout Standard
14723 The first thing you'll notice when you start up a new 
14724 \change_deleted -712698321 1673258063
14725
14726 \family sans
14727 s
14728 \change_inserted -712698321 1673258063
14729 S
14730 \change_unchanged
14731 lides
14732 \family default
14733  document is the font size and type:
14734  it's the equivalent of the size 
14735 \begin_inset Quotes eld
14736 \end_inset
14737
14738
14739 \family sans
14740 Largest
14741 \family default
14742
14743 \begin_inset Quotes erd
14744 \end_inset
14745
14746  in the 
14747 \family sans
14748 Sans
14749 \begin_inset space ~
14750 \end_inset
14751
14752 Serif
14753 \family default
14754  font.
14755  This is also what's used in the output.
14756  Think of this as a 
14757 \begin_inset Quotes eld
14758 \end_inset
14759
14760 visual cue
14761 \begin_inset Quotes erd
14762 \end_inset
14763
14764  to remind you that this is a slide.
14765  Your final slides will use a larger font;
14766  ergo,
14767  you'll have less space.
14768  Of course,
14769  the larger default screen font isn't WYSIWYG,
14770  only a reminder.
14771 \end_layout
14772
14773 \begin_layout Standard
14774 The next thing that becomes obvious is the changes to the paragraph environment pull-down box [at the far-left end of the toolbar].
14775  Most of the paragraph environments you're used to seeing are missing.
14776  There are also five new ones.
14777  That's because the 
14778 \change_deleted -712698321 1673258093
14779
14780 \family sans
14781 s
14782 \change_inserted -712698321 1673258093
14783 S
14784 \change_unchanged
14785 lides
14786 \family default
14787  class itself only supports certain paragraph environments:
14788 \end_layout
14789
14790 \begin_layout Standard
14791
14792 \change_inserted -712698321 1673258082
14793
14794 \family sans
14795 \begin_inset Flex Multiple Columns
14796 status open
14797
14798 \begin_layout Itemize
14799
14800 \change_inserted -712698321 1673258082
14801
14802 \family sans
14803 Standard
14804 \end_layout
14805
14806 \begin_layout Itemize
14807
14808 \change_inserted -712698321 1673258082
14809
14810 \family sans
14811 Itemize
14812 \end_layout
14813
14814 \begin_layout Itemize
14815
14816 \change_inserted -712698321 1673258082
14817
14818 \family sans
14819 Enumerate
14820 \end_layout
14821
14822 \begin_layout Itemize
14823
14824 \change_inserted -712698321 1673258082
14825
14826 \family sans
14827 Description
14828 \end_layout
14829
14830 \begin_layout Itemize
14831
14832 \change_inserted -712698321 1673258082
14833
14834 \family sans
14835 List
14836 \end_layout
14837
14838 \begin_layout Itemize
14839
14840 \change_inserted -712698321 1673258082
14841
14842 \family sans
14843 Quotation
14844 \end_layout
14845
14846 \begin_layout Itemize
14847
14848 \change_inserted -712698321 1673258082
14849
14850 \family sans
14851 Quote
14852 \end_layout
14853
14854 \begin_layout Itemize
14855
14856 \change_inserted -712698321 1673258082
14857
14858 \family sans
14859 Verse
14860 \end_layout
14861
14862 \begin_layout Itemize
14863
14864 \change_inserted -712698321 1673258082
14865
14866 \family sans
14867 Caption
14868 \end_layout
14869
14870 \begin_layout Itemize
14871
14872 \change_inserted -712698321 1673258082
14873
14874 \family sans
14875 \SpecialChar LyX
14876 -Code
14877 \change_unchanged
14878
14879 \end_layout
14880
14881 \end_inset
14882
14883
14884 \change_deleted -712698321 1673258082
14885 Standard
14886 \end_layout
14887
14888 \begin_layout Itemize
14889
14890 \change_deleted -712698321 1673258082
14891
14892 \family sans
14893 Itemize
14894 \end_layout
14895
14896 \begin_layout Itemize
14897
14898 \change_deleted -712698321 1673258082
14899
14900 \family sans
14901 Enumerate
14902 \end_layout
14903
14904 \begin_layout Itemize
14905
14906 \change_deleted -712698321 1673258082
14907
14908 \family sans
14909 Description
14910 \end_layout
14911
14912 \begin_layout Itemize
14913
14914 \change_deleted -712698321 1673258082
14915
14916 \family sans
14917 List
14918 \end_layout
14919
14920 \begin_layout Itemize
14921
14922 \change_deleted -712698321 1673258082
14923
14924 \family sans
14925 Quotation
14926 \end_layout
14927
14928 \begin_layout Itemize
14929
14930 \change_deleted -712698321 1673258082
14931
14932 \family sans
14933 Quote
14934 \end_layout
14935
14936 \begin_layout Itemize
14937
14938 \change_deleted -712698321 1673258082
14939
14940 \family sans
14941 Verse
14942 \end_layout
14943
14944 \begin_layout Itemize
14945
14946 \change_deleted -712698321 1673258082
14947
14948 \family sans
14949 Caption
14950 \end_layout
14951
14952 \begin_layout Itemize
14953
14954 \change_deleted -712698321 1673258082
14955
14956 \family sans
14957 \SpecialChar LyX
14958 -Code
14959 \change_unchanged
14960
14961 \end_layout
14962
14963 \begin_layout Standard
14964 All of the other standard environments,
14965  including the section-heading environments,
14966  aren't used in the 
14967 \change_deleted -712698321 1673258102
14968
14969 \family sans
14970 s
14971 \change_inserted -712698321 1673258102
14972 S
14973 \change_unchanged
14974 lides
14975 \family default
14976  class.
14977 \end_layout
14978
14979 \begin_layout Standard
14980 On the other hand,
14981  you'll notice the following new environments:
14982 \end_layout
14983
14984 \begin_layout Standard
14985
14986 \change_inserted -712698321 1673258111
14987
14988 \family sans
14989 \begin_inset Flex Multiple Columns
14990 status open
14991
14992 \begin_layout Itemize
14993
14994 \change_inserted -712698321 1673258111
14995
14996 \family sans
14997 Slide
14998 \end_layout
14999
15000 \begin_layout Itemize
15001
15002 \change_inserted -712698321 1673258111
15003
15004 \family sans
15005 Overlay
15006 \end_layout
15007
15008 \begin_layout Itemize
15009
15010 \change_inserted -712698321 1673258111
15011
15012 \family sans
15013 Note
15014 \end_layout
15015
15016 \begin_layout Itemize
15017
15018 \change_inserted -712698321 1673258111
15019
15020 \family sans
15021 InvisibleText
15022 \end_layout
15023
15024 \begin_layout Itemize
15025
15026 \change_inserted -712698321 1673258119
15027
15028 \family sans
15029 VisibleText
15030 \end_layout
15031
15032 \begin_deeper
15033 \begin_layout Plain Layout
15034
15035 \change_inserted -712698321 1673258133
15036 \begin_inset space ~
15037 \end_inset
15038
15039
15040 \change_unchanged
15041
15042 \end_layout
15043
15044 \end_deeper
15045 \end_inset
15046
15047
15048 \change_deleted -712698321 1673258111
15049 Slide
15050 \end_layout
15051
15052 \begin_layout Itemize
15053
15054 \change_deleted -712698321 1673258111
15055
15056 \family sans
15057 Overlay
15058 \end_layout
15059
15060 \begin_layout Itemize
15061
15062 \change_deleted -712698321 1673258111
15063
15064 \family sans
15065 Note
15066 \end_layout
15067
15068 \begin_layout Itemize
15069
15070 \change_deleted -712698321 1673258111
15071
15072 \family sans
15073 InvisibleText
15074 \end_layout
15075
15076 \begin_layout Itemize
15077
15078 \change_deleted -712698321 1673258111
15079
15080 \family sans
15081 VisibleText
15082 \change_unchanged
15083
15084 \end_layout
15085
15086 \begin_layout Standard
15087 These five are kind of quirky,
15088  due to a 
15089 \begin_inset Quotes eld
15090 \end_inset
15091
15092 feature
15093 \begin_inset Quotes erd
15094 \end_inset
15095
15096  in \SpecialChar LyX
15097 .
15098  You see,
15099  \SpecialChar LyX
15100  doesn't permit you to nest any other paragraph environment into an empty environment.
15101  Now,
15102  that's fine and dandy,
15103  but it means that you wouldn't be able to start a slide with anything except plain text.
15104  To deal with this,
15105  I've performed a little 
15106 \begin_inset Quotes eld
15107 \end_inset
15108
15109 \SpecialChar LaTeX
15110  magic.
15111 \begin_inset Quotes erd
15112 \end_inset
15113
15114  
15115 \end_layout
15116
15117 \begin_layout Paragraph
15118 Quirks of the New Environments
15119 \begin_inset CommandInset label
15120 LatexCommand label
15121 name "sec:slideQuirk"
15122
15123 \end_inset
15124
15125
15126 \end_layout
15127
15128 \begin_layout Standard
15129 All five of the new paragraph environments are somewhat quirky due to inherent limitiations in the current version of \SpecialChar LyX
15130 .
15131  As I just mentioned,
15132  \SpecialChar LyX
15133  forbids environments that begin with another environment.
15134  To get around this,
15135  the 
15136 \family sans
15137 Slide
15138 \family default
15139  environment isn't a paragraph environment as described in the 
15140 \emph on
15141 User's Guide
15142 \emph default
15143 .
15144  
15145 \end_layout
15146
15147 \begin_layout Standard
15148 You should consider 
15149 \family sans
15150 Slide
15151 \family default
15152 ,
15153  
15154 \family sans
15155 Overlay
15156 \family default
15157 ,
15158  and 
15159 \family sans
15160 Note
15161 \family default
15162  to be 
15163 \begin_inset Quotes eld
15164 \end_inset
15165
15166 pseudo-environments.
15167 \begin_inset Quotes erd
15168 \end_inset
15169
15170  They look like a section heading or a 
15171 \begin_inset Quotes eld
15172 \end_inset
15173
15174
15175 \family sans
15176 Caption
15177 \family default
15178 ,
15179 \begin_inset Quotes erd
15180 \end_inset
15181
15182  but really begin a [and,
15183  if necessary,
15184  end the previous] paragraph environment.
15185  Likewise,
15186  treat 
15187 \family sans
15188 InvisibleText
15189 \family default
15190  and 
15191 \family sans
15192 VisibleText
15193 \family default
15194  as 
15195 \begin_inset Quotes eld
15196 \end_inset
15197
15198 pseudo-commands.
15199 \begin_inset Quotes erd
15200 \end_inset
15201
15202  These two perform some action.
15203 \end_layout
15204
15205 \begin_layout Standard
15206 A common feature of all five environments,
15207  
15208 \family sans
15209 Slide
15210 \family default
15211 ,
15212  
15213 \family sans
15214 Overlay
15215 \family default
15216 ,
15217  
15218 \family sans
15219 Note
15220 \family default
15221 ,
15222  
15223 \family sans
15224 InvisibleText
15225 \family default
15226  and 
15227 \family sans
15228 VisibleText
15229 \family default
15230 ,
15231  is a rather long-ish label.
15232  The text following this label —
15233  ordinarily the contents of the paragraph environment —
15234  is utterly irrelevant for 
15235 \family sans
15236 Slide
15237 \family default
15238 ,
15239  
15240 \family sans
15241 Overlay
15242 \family default
15243 ,
15244  
15245 \family sans
15246 Note
15247 \family default
15248 ,
15249  
15250 \family sans
15251 InvisibleText
15252 \family default
15253  and 
15254 \family sans
15255 VisibleText
15256 \family default
15257 .
15258  \SpecialChar LyX
15259  completely ignores it.
15260  In fact,
15261  you can leave these five environments completely empty.
15262  
15263 \end_layout
15264
15265 \begin_layout Standard
15266 While you don't 
15267 \emph on
15268 have
15269 \emph default
15270  to put any text after the rather long-ish label,
15271  you might want to.
15272  This could be a short description of the contents of the 
15273 \family sans
15274 Slide
15275 \family default
15276 ,
15277  for example.
15278  In that case,
15279  enter your descriptive comment and hit 
15280 \family sans
15281 Return
15282 \family default
15283  as you normally would.
15284 \end_layout
15285
15286 \begin_layout Standard
15287
15288 \change_deleted -712698321 1673258321
15289 If,
15290  on the other hand,
15291  you don't want to enter any descriptive text,
15292  you'll hit another \SpecialChar LyX
15293  quirk.
15294  \SpecialChar LyX
15295 ,
15296  like nature,
15297  abhors a vacuum,
15298  and will not let you start a new paragraph environment until you put something in the old one.
15299  So,
15300  do this:
15301 \end_layout
15302
15303 \begin_layout Itemize
15304
15305 \change_deleted -712698321 1673258321
15306 Start entering the text that will 
15307 \emph on
15308 follow
15309 \emph default
15310  the new 
15311 \family sans
15312 Slide
15313 \family default
15314 ,
15315  
15316 \family sans
15317 Overlay
15318 \family default
15319 ,
15320  
15321 \family sans
15322 Note
15323 \family default
15324 ,
15325  
15326 \family sans
15327 InvisibleText
15328 \family default
15329  or 
15330 \family sans
15331 VisibleText
15332 \family default
15333 .
15334  
15335 \end_layout
15336
15337 \begin_layout Itemize
15338
15339 \change_deleted -712698321 1673258321
15340 Now move to the beginning of that paragraph.
15341  
15342 \end_layout
15343
15344 \begin_layout Itemize
15345
15346 \change_deleted -712698321 1673258321
15347 Next,
15348  hit 
15349 \family sans
15350 Return
15351 \family default
15352 .
15353  
15354 \end_layout
15355
15356 \begin_layout Itemize
15357
15358 \change_deleted -712698321 1673258321
15359 Finally,
15360  change this new,
15361  empty paragraph to a 
15362 \family sans
15363 Slide
15364 \family default
15365 ,
15366  
15367 \family sans
15368 Overlay
15369 \family default
15370 ,
15371  
15372 \family sans
15373 Note
15374 \family default
15375 ,
15376  
15377 \family sans
15378 InvisibleText
15379 \family default
15380  or 
15381 \family sans
15382 VisibleText
15383 \family default
15384 .
15385  
15386 \end_layout
15387
15388 \begin_layout Standard
15389
15390 \change_deleted -712698321 1673258321
15391 Some future version of \SpecialChar LyX
15392  will,
15393  hopefully,
15394  resolve this quirkiness\SpecialChar ldots
15395
15396 \change_unchanged
15397
15398 \end_layout
15399
15400 \begin_layout Subsubsection
15401 Making a Presentation with 
15402 \family sans
15403 Slide
15404 \family default
15405 ,
15406  
15407 \family sans
15408 Overlay
15409 \family default
15410  and 
15411 \family sans
15412 Note
15413 \end_layout
15414
15415 \begin_layout Paragraph
15416 Using the 
15417 \family sans
15418 Slide
15419 \family default
15420  Environment
15421 \end_layout
15422
15423 \begin_layout Standard
15424 If you're expecting this section to teach you how to actually make a presentation,
15425  you'll be sorely disappointed.
15426  Naturally,
15427  I'll describe all of the ways the 
15428 \change_deleted -712698321 1673258368
15429
15430 \family sans
15431 s
15432 \change_inserted -712698321 1673258368
15433 S
15434 \change_unchanged
15435 lides
15436 \family default
15437  class can assist you in preparing the materials for a presentation.
15438  Filling in the contents,
15439  however,
15440  is up to you.
15441  [Then again,
15442  that 
15443 \emph on
15444 is
15445 \emph default
15446  the \SpecialChar LyX
15447  philosophy.]
15448 \end_layout
15449
15450 \begin_layout Standard
15451 Choosing the 
15452 \family sans
15453 Slide
15454 \family default
15455  environment [in the manner described in section
15456 \begin_inset space ~
15457 \end_inset
15458
15459
15460 \begin_inset CommandInset ref
15461 LatexCommand ref
15462 reference "sec:slideQuirk"
15463 nolink "false"
15464
15465 \end_inset
15466
15467 ] tells \SpecialChar LyX
15468  to begin a new slide [duh].
15469  The label for this environment/
15470 \change_inserted -712698321 1673258390
15471
15472 \begin_inset Quotes eld
15473 \end_inset
15474
15475
15476 \change_deleted -712698321 1673258391
15477
15478 \begin_inset Quotes erd
15479 \end_inset
15480
15481
15482 \change_unchanged
15483 pseudo-command
15484 \begin_inset Quotes erd
15485 \end_inset
15486
15487  is an 
15488 \begin_inset Quotes eld
15489 \end_inset
15490
15491 ASCII line,
15492 \begin_inset Quotes erd
15493 \end_inset
15494
15495  in cool blue,
15496  followed by the label,
15497  
15498 \begin_inset Quotes eld
15499 \end_inset
15500
15501 NewSlide:
15502 \begin_inset Quotes erd
15503 \end_inset
15504
15505 .
15506  Any text or paragraph environments that follow this one go on the new slide.
15507  It's that simple.
15508 \end_layout
15509
15510 \begin_layout Standard
15511 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
15512  (this can be specified in the 
15513 \family sans
15514 Paragraph Layout
15515 \family default
15516  dialog).
15517  In fact,
15518  you'll want to,
15519  once you finish entering the contents of one slide.
15520  If you've entered more text than can physically fit on a slide,
15521  the extra overflows onto a new slide.
15522  I don't recommend doing this,
15523  however,
15524  since the overflow slide won't have any page number on it.
15525  Furthermore,
15526  it may interfere with any 
15527 \family sans
15528 Overlay
15529 \family default
15530  you've made to accompany the oversized 
15531 \family sans
15532 Slide
15533 \family default
15534 .
15535 \end_layout
15536
15537 \begin_layout Standard
15538 The 
15539 \family sans
15540 Overlay
15541 \family default
15542  and 
15543 \family sans
15544 Note
15545 \family default
15546  environments work the same way as the 
15547 \family sans
15548 Slide
15549 \family default
15550  environment.
15551  They both create an 
15552 \begin_inset Quotes eld
15553 \end_inset
15554
15555 ASCII line
15556 \begin_inset Quotes erd
15557 \end_inset
15558
15559  followed by a label [
15560 \begin_inset Quotes eld
15561 \end_inset
15562
15563 NewOverlay:
15564 \begin_inset Quotes erd
15565 \end_inset
15566
15567  and 
15568 \begin_inset Quotes eld
15569 \end_inset
15570
15571 NewNote:
15572 \begin_inset Quotes erd
15573 \end_inset
15574
15575 ,
15576  respectively].
15577  The color is a stunning magenta instead of blue,
15578  and the 
15579 \begin_inset Quotes eld
15580 \end_inset
15581
15582 ASCII line
15583 \begin_inset Quotes erd
15584 \end_inset
15585
15586  will look different,
15587  in style and in length.
15588  The label fonts of all three also differ from one another.
15589 \end_layout
15590
15591 \begin_layout Standard
15592 As with a 
15593 \family sans
15594 Slide
15595 \family default
15596 ,
15597  if the contents of a 
15598 \family sans
15599 Note
15600 \family default
15601  or 
15602 \family sans
15603 Overlay
15604 \family default
15605  exceed the physical size of a slide or sheet of paper,
15606  the extra will overflow onto a new sheet.
15607  Again,
15608  you should avoid this.
15609  It defeats the whole purpose of 
15610 \family sans
15611 Note
15612 \family default
15613 s and 
15614 \family sans
15615 Overlay
15616 \family default
15617 s.
15618 \end_layout
15619
15620 \begin_layout Paragraph
15621 Using 
15622 \family sans
15623 Overlay
15624 \family default
15625  with 
15626 \family sans
15627 Slide
15628 \end_layout
15629
15630 \begin_layout Standard
15631 The idea behind an 
15632 \family sans
15633 Overlay
15634 \family default
15635  is a slide that sits atop another slide.
15636  Perhaps you wish to discuss a figure on the main 
15637 \family sans
15638 Slide
15639 \family default
15640  before displaying the text associated with it.
15641  One way to accomplish this is tape a flap of dark paper over the part of the 
15642 \family sans
15643 Slide
15644 \family default
15645  you want to display later.
15646  This method fails,
15647  however,
15648  if you wish to overlap one graph with another,
15649  for example.
15650  You would then have to fumble while speaking to align the two separate,
15651  overlapping 
15652 \family sans
15653 Slide
15654 \family default
15655 s to align the two graphs.
15656  The use of an 
15657 \family sans
15658 Overlay
15659 \family default
15660  environment in both cases makes life much easier.
15661 \end_layout
15662
15663 \begin_layout Standard
15664 Each 
15665 \family sans
15666 Overlay
15667 \family default
15668  receives the page number of its 
15669 \begin_inset Quotes eld
15670 \end_inset
15671
15672 parent
15673 \begin_inset Quotes erd
15674 \end_inset
15675
15676  
15677 \family sans
15678 Slide
15679 \family default
15680 ,
15681  appended by 
15682 \begin_inset Quotes eld
15683 \end_inset
15684
15685
15686 \family typewriter
15687 -a
15688 \family default
15689
15690 \begin_inset Quotes erd
15691 \end_inset
15692
15693 .
15694 \begin_inset Foot
15695 status collapsed
15696
15697 \begin_layout Plain Layout
15698 Presumably,
15699  mutliple 
15700 \family sans
15701 Overlay
15702 \family default
15703 s would have 
15704 \begin_inset Quotes eld
15705 \end_inset
15706
15707
15708 \family typewriter
15709 -a
15710 \family default
15711
15712 \begin_inset Quotes erd
15713 \end_inset
15714
15715 ,
15716  
15717 \begin_inset Quotes eld
15718 \end_inset
15719
15720
15721 \family typewriter
15722 -b
15723 \family default
15724
15725 \begin_inset Quotes erd
15726 \end_inset
15727
15728 ,
15729  
15730 \begin_inset Quotes eld
15731 \end_inset
15732
15733
15734 \family typewriter
15735 -c
15736 \family default
15737
15738 \begin_inset Quotes erd
15739 \end_inset
15740
15741 ,
15742  etc.
15743 \begin_inset space ~
15744 \end_inset
15745
15746 appended to the page number of the parent 
15747 \family sans
15748 Slide
15749 \family default
15750 .
15751  
15752 \end_layout
15753
15754 \end_inset
15755
15756  Clearly,
15757  you want the contents of both the 
15758 \family sans
15759 Slide
15760 \family default
15761  and the 
15762 \family sans
15763 Overlay
15764 \family default
15765  to each fit on a single physical slide!
15766  You should probably consider an 
15767 \family sans
15768 Overlay
15769 \family default
15770  as 
15771 \begin_inset Quotes eld
15772 \end_inset
15773
15774 part of
15775 \begin_inset Quotes erd
15776 \end_inset
15777
15778  a 
15779 \family sans
15780 Slide
15781 \family default
15782 .
15783  Indeed,
15784  the \SpecialChar LyX
15785  
15786 \family sans
15787 slides
15788 \family default
15789  class provides a visual cue for this:
15790  the label at the start of an 
15791 \family sans
15792 Overlay
15793 \family default
15794  is shorter than that at the start of a 
15795 \family sans
15796 Slide
15797 \family default
15798 .
15799  Lastly,
15800  when you generate printable output,
15801  you'll find alignment markers in all four corners of both the 
15802 \family sans
15803 Overlay
15804 \family default
15805  page and its parent 
15806 \family sans
15807 Slide
15808 \family default
15809 .
15810  These will assist you in lining up the two physical slides.
15811 \end_layout
15812
15813 \begin_layout Standard
15814 The major problem in overlaying two slides is aligning the contents of the two transparencies.
15815  How much space should you leave for that graph on the second slide?
15816  Worse still,
15817  what if you want a graph and a sentence on second slide,
15818  but there is text on the main transparency that goes in between them?
15819  You could try and insert vertical space of the right size.
15820  The better way is to use 
15821 \family sans
15822 InvisibleText
15823 \family default
15824  and 
15825 \family sans
15826 VisibleText
15827 \family default
15828 .
15829 \end_layout
15830
15831 \begin_layout Standard
15832 As their names imply,
15833  
15834 \family sans
15835 InvisibleText
15836 \family default
15837  and 
15838 \family sans
15839 VisibleText
15840 \family default
15841  are two command-like paragraph environments that make all subsequent text invisible and visible,
15842  respectively.
15843  Note from section
15844 \begin_inset space ~
15845 \end_inset
15846
15847
15848 \begin_inset CommandInset ref
15849 LatexCommand ref
15850 reference "sec:slideQuirk"
15851 nolink "false"
15852
15853 \end_inset
15854
15855  that you don't place anything 
15856 \emph on
15857 into
15858 \emph default
15859  these two environments,
15860  however.
15861  When you create an 
15862 \family sans
15863 InvisibleText
15864 \family default
15865 ,
15866  it inserts a centered,
15867  sky-blue label into the page reading 
15868 \begin_inset Quotes eld
15869 \end_inset
15870
15871 <Invisible Text Follows>
15872 \begin_inset Quotes erd
15873 \end_inset
15874
15875 .
15876  For paragraphs following this label,
15877  the parts of the 
15878 \family sans
15879 Slide
15880 \family default
15881  [or 
15882 \family sans
15883 Overlay
15884 \family default
15885 ;
15886  it doesn't matter which] where they would be contain instead blank space.
15887  
15888 \end_layout
15889
15890 \begin_layout Standard
15891 For 
15892 \family sans
15893 VisibleText
15894 \family default
15895 ,
15896  the corresponding centered label is 
15897 \begin_inset Quotes eld
15898 \end_inset
15899
15900 <Visible Text Follows>
15901 \begin_inset Quotes erd
15902 \end_inset
15903
15904  in blazing green.
15905  Paragraphs following this label behave normally.
15906  Note that the beginning of a new 
15907 \family sans
15908 Slide
15909 \family default
15910 ,
15911  
15912 \family sans
15913 Overlay
15914 \family default
15915 ,
15916  or 
15917 \family sans
15918 Note
15919 \family default
15920  automatically shuts off an 
15921 \family sans
15922 InvisibleText
15923 \family default
15924 .
15925  It's therefore not necessary to use 
15926 \family sans
15927 VisibleText
15928 \family default
15929  at the end of a 
15930 \family sans
15931 Slide
15932 \family default
15933 .
15934 \end_layout
15935
15936 \begin_layout Standard
15937 By now,
15938  it should be obvious how to create overlay transparencies using the proper combination of 
15939 \family sans
15940 InvisibleText
15941 \family default
15942  and 
15943 \family sans
15944 VisibleText
15945 \family default
15946  on a 
15947 \family sans
15948 Slide
15949 \family default
15950  and 
15951 \family sans
15952 Overlay
15953 \family default
15954 :
15955 \end_layout
15956
15957 \begin_layout Enumerate
15958 Create a 
15959 \family sans
15960 Slide
15961 \family default
15962 ,
15963  including everything that will appear on it,
15964  whether on the main slide or on the 
15965 \family sans
15966 Overlay
15967 \family default
15968 .
15969 \end_layout
15970
15971 \begin_layout Enumerate
15972 Before each figure or paragraph that will appear only on the 
15973 \family sans
15974 Overlay
15975 \family default
15976 ,
15977  insert an 
15978 \family sans
15979 InvisibleText
15980 \family default
15981  environment.
15982  If necessary,
15983  insert a 
15984 \family sans
15985 VisibleText
15986 \family default
15987  environment after the 
15988 \family sans
15989 Overlay
15990 \family default
15991 -only text.
15992 \end_layout
15993
15994 \begin_layout Enumerate
15995 Start an 
15996 \family sans
15997 Overlay
15998 \family default
15999  immediately following the 
16000 \family sans
16001 Slide
16002 \family default
16003 .
16004 \end_layout
16005
16006 \begin_layout Enumerate
16007 Copy the contents of this 
16008 \family sans
16009 Slide
16010 \family default
16011  into the 
16012 \family sans
16013 Overlay
16014 \family default
16015 .
16016 \end_layout
16017
16018 \begin_layout Enumerate
16019 Within the 
16020 \family sans
16021 Overlay
16022 \family default
16023 ,
16024  change all of the 
16025 \family sans
16026 InvisibleText
16027 \family default
16028  lines to 
16029 \family sans
16030 VisibleText
16031 \family default
16032  and vice-versa.
16033 \end_layout
16034
16035 \begin_layout Standard
16036 That's it.
16037  You've just made an 
16038 \family sans
16039 Overlay
16040 \family default
16041 .
16042 \end_layout
16043
16044 \begin_layout Standard
16045 There's one problem with the way I've designed the \SpecialChar LyX
16046  
16047 \family sans
16048 slides
16049 \family default
16050  class:
16051  you can't make text in the middle of a paragraph invisible,
16052  nor make text in the middle of an invisible paragraph visible again.
16053  To accomplish this feat,
16054  you'll need to use some inlined \SpecialChar LaTeX
16055  codes.
16056 \begin_inset Foot
16057 status collapsed
16058
16059 \begin_layout Plain Layout
16060 The commands of interest are:
16061  
16062 \end_layout
16063
16064 \begin_layout Itemize
16065
16066 \family typewriter
16067 {
16068 \backslash
16069 invisible \SpecialChar ldots
16070  }
16071 \end_layout
16072
16073 \begin_layout Itemize
16074
16075 \family typewriter
16076 {
16077 \backslash
16078 visible \SpecialChar ldots
16079  }
16080 \end_layout
16081
16082 \begin_layout Plain Layout
16083 \SpecialChar ldots
16084 and need to be marked as \SpecialChar TeX
16085 .
16086  The text whose 
16087 \begin_inset Quotes eld
16088 \end_inset
16089
16090 visibility
16091 \begin_inset Quotes erd
16092 \end_inset
16093
16094  you wish to change goes in between the brackets [and after the 
16095 \family typewriter
16096
16097 \backslash
16098 invisible
16099 \family default
16100  or 
16101 \family typewriter
16102
16103 \backslash
16104 visible
16105 \family default
16106  command].
16107  If you don't know how to mark text as \SpecialChar TeX
16108 ,
16109  see the appropriate section of the 
16110 \emph on
16111 User's Guide
16112 \emph default
16113 .
16114 \end_layout
16115
16116 \end_inset
16117
16118
16119 \end_layout
16120
16121 \begin_layout Paragraph
16122 Using 
16123 \family sans
16124 Note
16125 \family default
16126  with 
16127 \family sans
16128 Slide
16129 \family default
16130
16131 \begin_inset CommandInset label
16132 LatexCommand label
16133 name "sec:slideNote"
16134
16135 \end_inset
16136
16137
16138 \end_layout
16139
16140 \begin_layout Standard
16141 Like an 
16142 \family sans
16143 Overlay
16144 \family default
16145 ,
16146  a 
16147 \family sans
16148 Note
16149 \family default
16150  is associated with a 
16151 \begin_inset Quotes eld
16152 \end_inset
16153
16154 parent
16155 \begin_inset Quotes erd
16156 \end_inset
16157
16158  
16159 \family sans
16160 Slide
16161 \family default
16162 .
16163  Here,
16164  too,
16165  the \SpecialChar LyX
16166  
16167 \family sans
16168 slides
16169 \family default
16170  class provides visual cues.
16171  The label for a 
16172 \family sans
16173 Note
16174 \family default
16175  is shorter than that of a 
16176 \family sans
16177 Slide
16178 \family default
16179  [yet longer than that of an 
16180 \family sans
16181 Overlay
16182 \family default
16183 ] and,
16184  like the label of an 
16185 \family sans
16186 Overlay
16187 \family default
16188  is shockingly magenta.
16189  Additionally,
16190  the printed 
16191 \family sans
16192 Note
16193 \family default
16194  has the page number of its 
16195 \begin_inset Quotes eld
16196 \end_inset
16197
16198 parent
16199 \begin_inset Quotes erd
16200 \end_inset
16201
16202  
16203 \family sans
16204 Slide
16205 \family default
16206 ,
16207  appended by 
16208 \begin_inset Quotes eld
16209 \end_inset
16210
16211
16212 \family typewriter
16213 -
16214 \family default
16215 1
16216 \begin_inset Quotes erd
16217 \end_inset
16218
16219 ,
16220  
16221 \begin_inset Quotes eld
16222 \end_inset
16223
16224
16225 \family typewriter
16226 -
16227 \family default
16228 2
16229 \begin_inset Quotes erd
16230 \end_inset
16231
16232 ,
16233  
16234 \begin_inset Quotes eld
16235 \end_inset
16236
16237
16238 \family typewriter
16239 -
16240 \family default
16241 3
16242 \begin_inset Quotes erd
16243 \end_inset
16244
16245 ,
16246  etc.
16247  You can have multiple 
16248 \family sans
16249 Note
16250 \family default
16251 s associated with a single 
16252 \family sans
16253 Slide
16254 \family default
16255 ,
16256  and,
16257  as with 
16258 \family sans
16259 Slide
16260 \family default
16261  and 
16262 \family sans
16263 Overlay
16264 \family default
16265 ,
16266  you'll probably want to break up long 
16267 \family sans
16268 Note
16269 \family default
16270 s so that they fit on a single sheet of paper.
16271 \end_layout
16272
16273 \begin_layout Standard
16274 The purpose of a 
16275 \family sans
16276 Note
16277 \family default
16278  is obvious:
16279  it contains anything additional you might want to say about a 
16280 \family sans
16281 Slide
16282 \family default
16283 .
16284  It could also be used as a sheet of reminders for a particular 
16285 \family sans
16286 Slide
16287 \family default
16288 .
16289  In the case of the latter,
16290  you might want to make use of time markers.
16291  Currently,
16292  the \SpecialChar LyX
16293  
16294 \family sans
16295 slides
16296 \family default
16297  class has no 
16298 \begin_inset Quotes eld
16299 \end_inset
16300
16301 native
16302 \begin_inset Quotes erd
16303 \end_inset
16304
16305  support for time markers,
16306  a 
16307 \noun on
16308 Sli\SpecialChar TeX
16309
16310 \noun default
16311  feature.
16312  So,
16313  you'll have to resort to using the \SpecialChar LaTeX
16314  codes.
16315 \end_layout
16316
16317 \begin_layout Standard
16318 To use time markers,
16319  you'll need to specify the extra class option 
16320 \begin_inset Quotes eld
16321 \end_inset
16322
16323
16324 \family typewriter
16325 clock
16326 \family default
16327
16328 \begin_inset Quotes erd
16329 \end_inset
16330
16331  [see section
16332 \begin_inset space ~
16333 \end_inset
16334
16335
16336 \begin_inset CommandInset ref
16337 LatexCommand ref
16338 reference "sec:slidesetup"
16339 nolink "false"
16340
16341 \end_inset
16342
16343 ].
16344  This option turns on timing marks,
16345  which will appear in the lower-left-hand corner of every 
16346 \family sans
16347 Note
16348 \family default
16349  you generate.
16350  To set what appears in the time marker,
16351  you use the \SpecialChar LaTeX
16352  commands 
16353 \begin_inset Quotes eld
16354 \end_inset
16355
16356
16357 \family typewriter
16358
16359 \backslash
16360 settime{}
16361 \family default
16362
16363 \begin_inset Quotes erd
16364 \end_inset
16365
16366  and 
16367 \begin_inset Quotes eld
16368 \end_inset
16369
16370
16371 \family typewriter
16372
16373 \backslash
16374 addtime{}
16375 \family default
16376
16377 \begin_inset Quotes erd
16378 \end_inset
16379
16380 .
16381  The arguments of both commands are time measured in seconds.
16382  
16383 \begin_inset Quotes eld
16384 \end_inset
16385
16386
16387 \family typewriter
16388
16389 \backslash
16390 settime{}
16391 \family default
16392
16393 \begin_inset Quotes erd
16394 \end_inset
16395
16396  sets the time marker to a given time.
16397  
16398 \begin_inset Quotes eld
16399 \end_inset
16400
16401
16402 \family typewriter
16403
16404 \backslash
16405 addtime{}
16406 \family default
16407
16408 \begin_inset Quotes erd
16409 \end_inset
16410
16411  increments the time marker by the specified amount.
16412  Using time markers and 
16413 \family sans
16414 Note
16415 \family default
16416 s in this fashion,
16417  you can remind yourself how much time to spend on a particular 
16418 \family sans
16419 Slide
16420 \family default
16421 .
16422 \end_layout
16423
16424 \begin_layout Standard
16425 There's one last feature to describe.
16426  Clearly,
16427  you'd like to print out all of your 
16428 \family sans
16429 Slide
16430 \family default
16431 s and 
16432 \family sans
16433 Overlay
16434 \family default
16435 s on transparencies while printing all of your 
16436 \family sans
16437 Note
16438 \family default
16439 s on plain paper.
16440  However,
16441  a 
16442 \family sans
16443 Note
16444 \family default
16445  
16446 \emph on
16447 must
16448 \emph default
16449  follow the 
16450 \family sans
16451 Slide
16452 \family default
16453  with which it is associated.
16454  What's a person to do?
16455 \end_layout
16456
16457 \begin_layout Standard
16458 Luckily,
16459  there are two \SpecialChar LaTeX
16460  commands that allow you to select what to print out.
16461  Both must be placed into the preamble of your document.
16462  The command 
16463 \begin_inset Quotes eld
16464 \end_inset
16465
16466
16467 \family typewriter
16468
16469 \backslash
16470 onlyslides{
16471 \backslash
16472 slides}
16473 \family default
16474
16475 \begin_inset Quotes erd
16476 \end_inset
16477
16478  will cause the output to contain only the 
16479 \family sans
16480 Slide
16481 \family default
16482 s and 
16483 \family sans
16484 Overlay
16485 \family default
16486 s.
16487  Correspondingly,
16488  the command 
16489 \begin_inset Quotes eld
16490 \end_inset
16491
16492
16493 \family typewriter
16494
16495 \backslash
16496 onlynotes{
16497 \backslash
16498 notes}
16499 \family default
16500
16501 \begin_inset Quotes erd
16502 \end_inset
16503
16504  prevents the output of anything but 
16505 \family sans
16506 Note
16507 \family default
16508 s.
16509  I'd advise placing both commands in the preamble and initially comment both out.
16510  You can then preview your entire presentation as you write.
16511  When you're done writing,
16512  you can then uncomment one of the two to select what you want to print.
16513  I like to uncomment 
16514 \begin_inset Quotes eld
16515 \end_inset
16516
16517
16518 \family typewriter
16519
16520 \backslash
16521 onlyslides{
16522 \backslash
16523 slides}
16524 \family default
16525
16526 \begin_inset Quotes erd
16527 \end_inset
16528
16529  ,
16530  print to a file with 
16531 \begin_inset Quotes eld
16532 \end_inset
16533
16534
16535 \family typewriter
16536 -slides
16537 \family default
16538
16539 \begin_inset Quotes erd
16540 \end_inset
16541
16542  in its name,
16543  comment it back out,
16544  then uncomment 
16545 \begin_inset Quotes eld
16546 \end_inset
16547
16548
16549 \family typewriter
16550
16551 \backslash
16552 onlynotes{
16553 \backslash
16554 notes}
16555 \family default
16556
16557 \begin_inset Quotes erd
16558 \end_inset
16559
16560  and print to a 
16561 \begin_inset Quotes eld
16562 \end_inset
16563
16564
16565 \family typewriter
16566 *-notes.ps
16567 \family default
16568
16569 \begin_inset Quotes erd
16570 \end_inset
16571
16572  file.
16573  I can then send either file to a printer,
16574  loading transparencies or plain paper as appropriate.
16575 \end_layout
16576
16577 \begin_layout Standard
16578 You can also provide other arguments to the 
16579 \begin_inset Quotes eld
16580 \end_inset
16581
16582
16583 \family typewriter
16584
16585 \backslash
16586 onlyslides{}
16587 \family default
16588
16589 \begin_inset Quotes erd
16590 \end_inset
16591
16592  and 
16593 \begin_inset Quotes eld
16594 \end_inset
16595
16596
16597 \family typewriter
16598
16599 \backslash
16600 onlynotes{}
16601 \family default
16602
16603 \begin_inset Quotes erd
16604 \end_inset
16605
16606  commands.
16607  See a good \SpecialChar LaTeX
16608  book for details.
16609 \end_layout
16610
16611 \begin_layout Subsubsection
16612 The 
16613 \family sans
16614 slides
16615 \family default
16616  Class Template File
16617 \end_layout
16618
16619 \begin_layout Standard
16620 I have also provided a template file
16621 \change_deleted 564990737 1671617750
16622 ,
16623  
16624 \begin_inset Quotes eld
16625 \end_inset
16626
16627
16628 \family typewriter
16629 slides.lyx
16630 \family default
16631
16632 \begin_inset Quotes erd
16633 \end_inset
16634
16635 ,
16636
16637 \change_unchanged
16638  with the 
16639 \family sans
16640 slides
16641 \family default
16642  class.
16643  To use it,
16644  begin your new presentation with 
16645 \family sans
16646 File\SpecialChar menuseparator
16647 New
16648 \begin_inset space ~
16649 \end_inset
16650
16651 from
16652 \begin_inset space ~
16653 \end_inset
16654
16655 Template
16656 \change_inserted 564990737 1671616988
16657 \SpecialChar menuseparator
16658 Presentations\SpecialChar menuseparator
16659 Slides
16660 \change_unchanged
16661
16662 \family default
16663 .
16664  Your new \SpecialChar LyX
16665  presentation file will contain an example 
16666 \family sans
16667 Slide
16668 \family default
16669  – 
16670 \family sans
16671 Overlay
16672 \family default
16673  – 
16674 \family sans
16675 Note
16676 \family default
16677  triplet.
16678  The 
16679 \family sans
16680 Slide
16681 \family default
16682  and 
16683 \family sans
16684 Overlay
16685 \family default
16686  additionally contain an example of the use of 
16687 \family sans
16688 InvisibleText
16689 \family default
16690  and 
16691 \family sans
16692 VisibleText
16693 \family default
16694 .
16695  Lastly,
16696  the preamble will contain:
16697 \end_layout
16698
16699 \begin_layout LyX-Code
16700 % Uncomment to print out only slides and overlays
16701 \end_layout
16702
16703 \begin_layout LyX-Code
16704 %
16705 \end_layout
16706
16707 \begin_layout LyX-Code
16708 %
16709 \backslash
16710 onlyslides{
16711 \backslash
16712 slides}
16713 \begin_inset Newline newline
16714 \end_inset
16715
16716  
16717 \end_layout
16718
16719 \begin_layout LyX-Code
16720 % Uncomment to print out only notes
16721 \end_layout
16722
16723 \begin_layout LyX-Code
16724 %
16725 \end_layout
16726
16727 \begin_layout LyX-Code
16728 %
16729 \backslash
16730 onlynotes{
16731 \backslash
16732 notes}
16733 \end_layout
16734
16735 \begin_layout Standard
16736 One final thing:
16737  I created this class to support the \SpecialChar LaTeX2e
16738  
16739 \begin_inset Quotes eld
16740 \end_inset
16741
16742
16743 \noun on
16744 Sli\SpecialChar TeX
16745
16746 \noun default
16747  emulation
16748 \begin_inset Quotes erd
16749 \end_inset
16750
16751  class,
16752  one of the built-in \SpecialChar LaTeX2e
16753  classes.
16754  Neither I nor the rest of the \SpecialChar LyX
16755  Team endorse or oppose the use of this built-in slide class.
16756  It's here if you want it or need it.
16757  There exist other \SpecialChar LaTeX2e
16758  classes for creating presentations,
16759  such 
16760 \change_deleted -712698321 1673258708
16761 as the 
16762 \change_unchanged
16763
16764 \family sans
16765 Foils
16766 \family default
16767  
16768 \change_deleted -712698321 1673258709
16769 class 
16770 \change_inserted -712698321 1673258699
16771 (
16772 \change_deleted -712698321 1673258700
16773 [
16774 \change_unchanged
16775 see section
16776 \begin_inset space ~
16777 \end_inset
16778
16779
16780 \begin_inset CommandInset ref
16781 LatexCommand ref
16782 reference "sec:foiltex"
16783 nolink "false"
16784
16785 \end_inset
16786
16787
16788 \change_deleted -712698321 1673258703
16789 ]
16790 \change_inserted -712698321 1673258705
16791 )
16792 \change_unchanged
16793  or 
16794 \change_deleted -712698321 1673258714
16795 the 
16796 \begin_inset Quotes eld
16797 \end_inset
16798
16799
16800 \family typewriter
16801 seminar
16802 \family default
16803
16804 \begin_inset Quotes erd
16805 \end_inset
16806
16807  package [present on some \SpecialChar TeX
16808  distributions].
16809  The latter is not yet supported under \SpecialChar LyX
16810 .
16811 \begin_inset Foot
16812 status collapsed
16813
16814 \begin_layout Plain Layout
16815 Perhaps you can take on the task\SpecialChar ldots
16816
16817 \end_layout
16818
16819 \end_inset
16820
16821
16822 \change_inserted -712698321 1673258738
16823
16824 \family sans
16825 Seminar
16826 \family default
16827  (see section
16828 \begin_inset space ~
16829 \end_inset
16830
16831
16832 \begin_inset CommandInset ref
16833 LatexCommand ref
16834 reference "subsec:Seminar"
16835 plural "false"
16836 caps "false"
16837 noprefix "false"
16838 nolink "false"
16839
16840 \end_inset
16841
16842 ).
16843
16844 \change_unchanged
16845  
16846 \change_deleted -712698321 1673258749
16847 I know nothing about these other classes.
16848  
16849 \change_unchanged
16850 Try them out to see what sort of alternative they provide.
16851 \end_layout
16852
16853 \begin_layout Section
16854
16855 \change_inserted 564990737 1670439661
16856 Reports
16857 \end_layout
16858
16859 \begin_layout Subsection
16860
16861 \change_inserted 564990737 1670439661
16862 report
16863 \end_layout
16864
16865 \begin_layout Standard
16866
16867 \change_inserted -712698321 1673689969
16868 Report classes are sort of a hybrid between book and article classes:
16869  like book classes,
16870  they
16871 \change_deleted -712698321 1673689899
16872 The document class 
16873 \family sans
16874 report
16875 \family default
16876  provides the 
16877 \family sans
16878 report.cls
16879 \family default
16880  document class for preparing reports.
16881  Like the 
16882 \family sans
16883 book
16884 \family default
16885  document class,
16886  this
16887 \change_inserted 564990737 1670439661
16888  provide
16889 \change_deleted -712698321 1673689904
16890 s
16891 \change_inserted 564990737 1670439661
16892  parts,
16893  chapters and sections but does not provide 
16894 \change_deleted -712698321 1673690062
16895 the paragraph styles needed for a book
16896 \change_inserted -712698321 1673690073
16897 frontmatter,
16898  mainmatter,
16899  and backmatter
16900 \change_inserted 564990737 1670439661
16901 ;
16902  like 
16903 \change_deleted -712698321 1673690088
16904 the 
16905 \family sans
16906 article
16907 \family default
16908  document
16909 \change_inserted -712698321 1673690083
16910 article
16911 \change_inserted 564990737 1670439661
16912  class
16913 \change_inserted -712698321 1673690085
16914 es
16915 \change_inserted 564990737 1670439661
16916 ,
16917  
16918 \change_deleted -712698321 1673690094
16919 it
16920 \change_inserted -712698321 1673690094
16921 they
16922 \change_inserted 564990737 1670439661
16923  provide
16924 \change_deleted -712698321 1673690097
16925 s
16926 \change_inserted 564990737 1670439661
16927  
16928 \change_deleted -712698321 1673690101
16929 the 
16930 \change_inserted 564990737 1670439661
16931 abstract paragraph style
16932 \change_inserted -712698321 1673690514
16933 s and are one-sided by default.
16934  
16935 \change_deleted -712698321 1673690134
16936 .
16937  In two-sided mode,
16938  it does
16939 \change_inserted -712698321 1673690520
16940 Also,
16941  they do
16942 \change_inserted 564990737 1670439661
16943  not start a new chapter on the right hand page
16944 \change_inserted -712698321 1673690150
16945  (even in two-side mode)
16946 \change_inserted 564990737 1670439661
16947 .
16948 \end_layout
16949
16950 \begin_layout Standard
16951
16952 \change_deleted -712698321 1673690173
16953 The remaining
16954 \change_inserted -712698321 1673690287
16955 All externally maintained
16956 \change_inserted 564990737 1672743528
16957  
16958 \family sans
16959 report
16960 \family default
16961  document classes 
16962 \change_inserted -712698321 1673690678
16963 that are officially supported by \SpecialChar LyX
16964  
16965 \change_inserted 564990737 1672743528
16966 are described in the Collections (section
16967 \begin_inset space ~
16968 \end_inset
16969
16970
16971 \begin_inset CommandInset ref
16972 LatexCommand ref
16973 reference "sec:Collections"
16974 nolink "false"
16975
16976 \end_inset
16977
16978 )
16979 \change_inserted -712698321 1673690301
16980 :
16981 \change_deleted -712698321 1673690300
16982 .
16983 \change_inserted 564990737 1672743528
16984
16985 \end_layout
16986
16987 \begin_layout Itemize
16988
16989 \change_inserted 564990737 1672743530
16990 For 
16991 \change_deleted -712698321 1673690794
16992
16993 \family sans
16994 report
16995 \begin_inset space \thinspace{}
16996 \end_inset
16997
16998 (Japanese in vertical writing)
16999 \change_inserted -712698321 1675851188
17000 Japanese Report (Standard Class,
17001  vertical Writing)
17002 \change_inserted 564990737 1672743530
17003
17004 \family default
17005  and 
17006 \change_deleted -712698321 1673690762
17007
17008 \family sans
17009 report
17010 \begin_inset space \thinspace{}
17011 \end_inset
17012
17013 (Japanese)
17014 \change_inserted -712698321 1673690762
17015 Japanese Report (Standard Class)
17016 \change_inserted 564990737 1672743530
17017
17018 \family default
17019 ,
17020  see section
17021 \begin_inset space ~
17022 \end_inset
17023
17024
17025 \begin_inset CommandInset ref
17026 LatexCommand ref
17027 reference "subsec:Japanese"
17028 nolink "false"
17029
17030 \end_inset
17031
17032 .
17033 \end_layout
17034
17035 \begin_layout Itemize
17036
17037 \change_inserted 564990737 1672743530
17038 For 
17039 \change_deleted -712698321 1673690718
17040
17041 \family sans
17042 report
17043 \begin_inset space \thinspace{}
17044 \end_inset
17045
17046 (KOMA-Script)
17047 \change_inserted -712698321 1673690718
17048 KOMA-Script Report
17049 \change_inserted 564990737 1672743530
17050
17051 \family default
17052 ,
17053  see section
17054 \begin_inset space ~
17055 \end_inset
17056
17057
17058 \begin_inset CommandInset ref
17059 LatexCommand ref
17060 reference "subsec:KOMA-Script"
17061 nolink "false"
17062
17063 \end_inset
17064
17065 .
17066 \end_layout
17067
17068 \begin_layout Itemize
17069
17070 \change_inserted 564990737 1672743530
17071 For 
17072 \change_deleted -712698321 1673690815
17073
17074 \family sans
17075 report
17076 \begin_inset space \thinspace{}
17077 \end_inset
17078
17079 (with extra font sizes)
17080 \change_inserted -712698321 1673690815
17081 Report (Standard Class with Extra Font Sizes)
17082 \change_inserted 564990737 1672743530
17083
17084 \family default
17085 ,
17086  see section
17087 \begin_inset space ~
17088 \end_inset
17089
17090
17091 \begin_inset CommandInset ref
17092 LatexCommand ref
17093 reference "subsec:Extra-font-sizes"
17094 nolink "false"
17095
17096 \end_inset
17097
17098 .
17099 \end_layout
17100
17101 \begin_layout Itemize
17102
17103 \change_inserted 564990737 1672743569
17104 For 
17105 \change_deleted -712698321 1673690833
17106
17107 \family sans
17108 report
17109 \begin_inset space \thinspace{}
17110 \end_inset
17111
17112 (Polish version by M.
17113 \begin_inset space \thinspace{}
17114 \end_inset
17115
17116 W.)
17117 \change_inserted -712698321 1673690833
17118 Polish Report (MW Bundle)
17119 \change_inserted 564990737 1672743569
17120
17121 \family default
17122 ,
17123  see section
17124 \begin_inset space ~
17125 \end_inset
17126
17127
17128 \begin_inset CommandInset ref
17129 LatexCommand ref
17130 reference "subsec:Polish-M.W.collection"
17131 plural "false"
17132 caps "false"
17133 noprefix "false"
17134 nolink "false"
17135
17136 \end_inset
17137
17138 .
17139 \end_layout
17140
17141 \begin_layout Section
17142
17143 \change_inserted 564990737 1670439674
17144 Scripts
17145 \change_deleted -712698321 1673691106
17146  (drama)
17147 \change_inserted -712698321 1673691108
17148
17149 \end_layout
17150
17151 \begin_layout Standard
17152
17153 \change_inserted -712698321 1673691276
17154 In the 
17155 \family sans
17156 Scripts
17157 \family default
17158  category,
17159  we assemble document classes that help to write drama or movie scripts.
17160  The category is also open for other scripts,
17161  such as lecture scripts,
17162  for which no classes are officially supported yet by \SpecialChar LyX
17163  though.
17164 \change_inserted 564990737 1670439674
17165
17166 \end_layout
17167
17168 \begin_layout Subsection
17169 Broadway
17170 \end_layout
17171
17172 \begin_layout Standard
17173 by 
17174 \shape smallcaps
17175 Garst Reese
17176 \end_layout
17177
17178 \begin_layout Subsubsection
17179 Introduction
17180 \end_layout
17181
17182 \begin_layout Standard
17183
17184 \family sans
17185 Broadway
17186 \family default
17187  is for writing plays.
17188  The format is more decorative than 
17189 \family sans
17190 Hollywood
17191 \change_inserted -712698321 1673691568
17192
17193 \family default
17194  (see sec.
17195 \begin_inset space ~
17196 \end_inset
17197
17198
17199 \begin_inset CommandInset ref
17200 LatexCommand ref
17201 reference "subsec:Hollywood"
17202
17203 \end_inset
17204
17205 )
17206 \change_unchanged
17207 ,
17208  and much less standardized.
17209  This format should be suitable for workshops.
17210 \end_layout
17211
17212 \begin_layout Subsubsection
17213 Special problems
17214 \end_layout
17215
17216 \begin_layout Standard
17217 The same as in 
17218 \family sans
17219 Hollywood
17220 \change_inserted -712698321 1673691609
17221
17222 \family default
17223  (see section
17224 \begin_inset space ~
17225 \end_inset
17226
17227
17228 \begin_inset CommandInset ref
17229 LatexCommand ref
17230 reference "subsec:Special-problems-Hollywood"
17231
17232 \end_inset
17233
17234 )
17235 \change_unchanged
17236 .
17237 \end_layout
17238
17239 \begin_layout Subsubsection
17240 Special features
17241 \end_layout
17242
17243 \begin_layout Standard
17244 Insert the 
17245 \family sans
17246 Speaker
17247 \family default
17248  names as labels then cross-reference the label to insert the name.
17249  The cross-reference dialog will show the current cast of characters.
17250 \end_layout
17251
17252 \begin_layout Subsubsection
17253 Paper size and Margins
17254 \end_layout
17255
17256 \begin_layout Standard
17257 USLetter,
17258  left 1.6in,
17259  right 0.75in,
17260  top 0.5in,
17261  bottom 0.75in
17262 \end_layout
17263
17264 \begin_layout Subsubsection
17265 Environments
17266 \end_layout
17267
17268 \begin_layout Standard
17269 The following environments are available.
17270  You can use 
17271 \family typewriter
17272 broadway.bind
17273 \family default
17274  to get the bind keys shown at the right.
17275 \end_layout
17276
17277 \begin_layout Itemize
17278
17279 \family sans
17280 Standard
17281 \begin_inset Newline newline
17282 \end_inset
17283
17284
17285 \family default
17286 You should not have to use this,
17287  but it is here for anything that does not fit otherwise.
17288 \end_layout
17289
17290 \begin_layout Itemize
17291
17292 \family sans
17293 Narrative
17294 \begin_inset space \hfill{}
17295 \end_inset
17296
17297 M-z n
17298 \begin_inset Newline newline
17299 \end_inset
17300
17301
17302 \family default
17303 Used to describe stage setting and the action.
17304  First use of speaker names in all CAPs.
17305 \end_layout
17306
17307 \begin_layout Itemize
17308
17309 \family sans
17310 ACT
17311 \begin_inset space \hfill{}
17312 \end_inset
17313
17314 M-z a
17315 \begin_inset Newline newline
17316 \end_inset
17317
17318
17319 \family default
17320 Automatically numbered.
17321  On screen it will be arabic,
17322  but will print as Roman.
17323 \end_layout
17324
17325 \begin_layout Itemize
17326
17327 \family sans
17328 ACT*
17329 \begin_inset space \hfill{}
17330 \end_inset
17331
17332 M-z S at
17333 \begin_inset Newline newline
17334 \end_inset
17335
17336
17337 \family default
17338 Subtitle for 
17339 \family sans
17340 ACT.
17341
17342 \family default
17343  It is just centered text.
17344 \end_layout
17345
17346 \begin_layout Itemize
17347
17348 \family sans
17349 SCENE
17350 \begin_inset space \hfill{}
17351 \end_inset
17352
17353 M-z S-S
17354 \begin_inset Newline newline
17355 \end_inset
17356
17357
17358 \family default
17359 Not automatically numbered.
17360  You supply the number.
17361  This is because I couldn't figure out how.
17362 \end_layout
17363
17364 \begin_layout Itemize
17365
17366 \family sans
17367 AT_RISE:
17368 \begin_inset space \hfill{}
17369 \end_inset
17370
17371 M-z S-R
17372 \begin_inset Newline newline
17373 \end_inset
17374
17375
17376 \family default
17377 A special case of Narrative to describe the setting and action as the curtain rises.
17378 \end_layout
17379
17380 \begin_layout Itemize
17381
17382 \family sans
17383 Speaker
17384 \begin_inset space \hfill{}
17385 \end_inset
17386
17387 M-z s
17388 \begin_inset Newline newline
17389 \end_inset
17390
17391
17392 \family default
17393 The speaker's (actor's) title,
17394  centered in all CAPS.
17395 \end_layout
17396
17397 \begin_layout Itemize
17398
17399 \family sans
17400 Parenthetical
17401 \begin_inset space \hfill{}
17402 \end_inset
17403
17404 M-z p
17405 \begin_inset Newline newline
17406 \end_inset
17407
17408
17409 \family default
17410 Instructions to the speaker.
17411  The parentheses are automatically inserted.
17412  The ( will appear on screen,
17413  but both will be in the printed play.
17414  This environment is only used within 
17415 \family sans
17416 Dialogue
17417 \family default
17418 .
17419 \end_layout
17420
17421 \begin_layout Itemize
17422
17423 \family sans
17424 Dialogue
17425 \begin_inset space \hfill{}
17426 \end_inset
17427
17428 M-z d
17429 \begin_inset Newline newline
17430 \end_inset
17431
17432
17433 \family default
17434 What the Speaker says.
17435 \end_layout
17436
17437 \begin_layout Itemize
17438
17439 \family sans
17440 CURTAIN
17441 \begin_inset space \hfill{}
17442 \end_inset
17443
17444 M-z S-C
17445 \begin_inset Newline newline
17446 \end_inset
17447
17448
17449 \family default
17450 The curtain comes down.
17451 \end_layout
17452
17453 \begin_layout Itemize
17454
17455 \family sans
17456 Title
17457 \begin_inset space \hfill{}
17458 \end_inset
17459
17460 M-z S-T
17461 \end_layout
17462
17463 \begin_layout Itemize
17464
17465 \family sans
17466 Author
17467 \begin_inset space \hfill{}
17468 \end_inset
17469
17470 M-z S-A
17471 \end_layout
17472
17473 \begin_layout Itemize
17474
17475 \family sans
17476 Right_Address
17477 \begin_inset space \hfill{}
17478 \end_inset
17479
17480 M-z r
17481 \end_layout
17482
17483 \begin_layout Standard
17484 Hello there.
17485 \end_layout
17486
17487 \begin_layout Subsection
17488
17489 \change_inserted -712698321 1673691551
17490 \begin_inset CommandInset label
17491 LatexCommand label
17492 name "subsec:Hollywood"
17493
17494 \end_inset
17495
17496
17497 \change_unchanged
17498 Hollywood (Hollywood spec scripts)
17499 \end_layout
17500
17501 \begin_layout Standard
17502 by 
17503 \shape smallcaps
17504 Garst Reese
17505 \end_layout
17506
17507 \begin_layout Subsubsection
17508 Introduction
17509 \end_layout
17510
17511 \begin_layout Standard
17512 Getting the format of a Hollywood script right is a 
17513 \begin_inset Quotes eld
17514 \end_inset
17515
17516 rite of passage.
17517 \begin_inset Quotes erd
17518 \end_inset
17519
17520  It is designed to make the readers focus on content and to be easy and familiar for the actors to read.
17521  Each page of a script should be one minute of film.
17522  Nothing goes in a script that you cannot see or hear on screen.
17523  The courier 12 pt font should be used throughout.
17524  No italics.
17525 \end_layout
17526
17527 \begin_layout Subsubsection
17528
17529 \change_inserted -712698321 1673691597
17530 \begin_inset CommandInset label
17531 LatexCommand label
17532 name "subsec:Special-problems-Hollywood"
17533
17534 \end_inset
17535
17536
17537 \change_unchanged
17538 Special problems
17539 \end_layout
17540
17541 \begin_layout Standard
17542 Speakers' lines should 
17543 \change_deleted -712698321 1673691805
17544
17545 \emph on
17546 NEVER
17547 \change_inserted -712698321 1673691805
17548 never
17549 \change_unchanged
17550
17551 \emph default
17552  break in mid-sentence.
17553  If a speaker's lines continue over a page break,
17554  repeat the 
17555 \family sans
17556 Speaker
17557 \family default
17558  title followed by (Cont'd).
17559 \end_layout
17560
17561 \begin_layout Subsubsection
17562 Special features
17563 \end_layout
17564
17565 \begin_layout Standard
17566 Insert the 
17567 \family sans
17568 Speaker
17569 \family default
17570  names as labels then cross-reference the label to insert the name.
17571  The cross-reference dialog will show the current cast of characters.
17572  You can use this to insert the speaker name in narratives also.
17573 \end_layout
17574
17575 \begin_layout Subsubsection
17576 Paper size and Margins
17577 \end_layout
17578
17579 \begin_layout Standard
17580 USLetter,
17581  left 1.6in,
17582  right 0.75in,
17583  top 0.5in,
17584  bottom 0.75in
17585 \end_layout
17586
17587 \begin_layout Subsubsection
17588 Environments
17589 \end_layout
17590
17591 \begin_layout Standard
17592 The following environments are available.
17593  You can use 
17594 \family typewriter
17595 hollywood.bind
17596 \family default
17597  to get the bind keys shown at the right.
17598 \end_layout
17599
17600 \begin_layout Itemize
17601
17602 \family sans
17603 Standard
17604 \begin_inset Newline newline
17605 \end_inset
17606
17607
17608 \family default
17609 Used where nothing else works.
17610  Try to avoid it.
17611 \end_layout
17612
17613 \begin_layout Itemize
17614
17615 \family sans
17616 FADE_IN
17617 \family default
17618 :
17619 \begin_inset space \hfill{}
17620 \end_inset
17621
17622
17623 \family sans
17624 M-z S-I
17625 \family default
17626
17627 \begin_inset Newline newline
17628 \end_inset
17629
17630 Usually followed by something like 
17631 \begin_inset Quotes eld
17632 \end_inset
17633
17634 on Sally waking up.
17635 \begin_inset Quotes erd
17636 \end_inset
17637
17638
17639 \end_layout
17640
17641 \begin_layout Itemize
17642
17643 \family sans
17644 INT:
17645 \begin_inset space \hfill{}
17646 \end_inset
17647
17648 M-z i
17649 \begin_inset Newline newline
17650 \end_inset
17651
17652
17653 \family default
17654 Introduces a new INTERIOR camera set-up.
17655  Always followed by DAY or NIGHT,
17656  or something similar to define the lighting required.
17657  Everthing on this line in CAPS.
17658 \end_layout
17659
17660 \begin_layout Itemize
17661
17662 \family sans
17663 EXT:
17664 \begin_inset space \hfill{}
17665 \end_inset
17666
17667 M-z e
17668 \begin_inset Newline newline
17669 \end_inset
17670
17671
17672 \family default
17673 Introduces a new EXTERIOR camera set-up.
17674  Everthing on this line in CAPS.
17675 \end_layout
17676
17677 \begin_layout Itemize
17678
17679 \family sans
17680 Speaker
17681 \begin_inset space \hfill{}
17682 \end_inset
17683
17684 M-z s
17685 \begin_inset Newline newline
17686 \end_inset
17687
17688
17689 \family default
17690 The character speaking.
17691 \end_layout
17692
17693 \begin_layout Itemize
17694
17695 \family sans
17696 Parenthetical
17697 \begin_inset space \hfill{}
17698 \end_inset
17699
17700 M-z p
17701 \begin_inset Newline newline
17702 \end_inset
17703
17704
17705 \family default
17706 Instructions to the speaker.
17707  The () are automatically inserted.
17708 \end_layout
17709
17710 \begin_layout Itemize
17711
17712 \family sans
17713 Dialogue
17714 \begin_inset space \hfill{}
17715 \end_inset
17716
17717 M-z d
17718 \begin_inset Newline newline
17719 \end_inset
17720
17721
17722 \family default
17723 What the 
17724 \family sans
17725 Speaker
17726 \family default
17727  says.
17728 \end_layout
17729
17730 \begin_layout Itemize
17731
17732 \family sans
17733 Transition
17734 \begin_inset space \hfill{}
17735 \end_inset
17736
17737 M-z t
17738 \begin_inset Newline newline
17739 \end_inset
17740
17741
17742 \family default
17743 Camera movement instruction.
17744  e.
17745 \begin_inset space \thinspace{}
17746 \end_inset
17747
17748 g.
17749 \begin_inset space \space{}
17750 \end_inset
17751
17752 CUT TO:
17753 \end_layout
17754
17755 \begin_layout Itemize
17756
17757 \family sans
17758 FADE OUT:
17759 \begin_inset space \hfill{}
17760 \end_inset
17761
17762 M-z S-I
17763 \end_layout
17764
17765 \begin_layout Itemize
17766
17767 \family sans
17768 Author
17769 \begin_inset space \hfill{}
17770 \end_inset
17771
17772 M-z S-A
17773 \end_layout
17774
17775 \begin_layout Itemize
17776
17777 \family sans
17778 Title
17779 \begin_inset space \hfill{}
17780 \end_inset
17781
17782 M-z S-T
17783 \end_layout
17784
17785 \begin_layout Itemize
17786
17787 \family sans
17788 Right_Address
17789 \begin_inset space \hfill{}
17790 \end_inset
17791
17792 M-z r
17793 \end_layout
17794
17795 \begin_layout Subsubsection
17796 Script jargon
17797 \end_layout
17798
17799 \begin_layout Itemize
17800 (O.S) —
17801  off screen
17802 \end_layout
17803
17804 \begin_layout Itemize
17805 (V.0) —
17806  voice over
17807 \end_layout
17808
17809 \begin_layout Itemize
17810 b.
17811 \begin_inset space \thinspace{}
17812 \end_inset
17813
17814 g.
17815  —
17816  background
17817 \end_layout
17818
17819 \begin_layout Itemize
17820 C.U.
17821  —
17822  close-up
17823 \end_layout
17824
17825 \begin_layout Itemize
17826 PAN —
17827  camera movement
17828 \end_layout
17829
17830 \begin_layout Itemize
17831 INSERT —
17832  cut to close-up of
17833 \end_layout
17834
17835 \begin_layout Chapter
17836
17837 \change_inserted 564990737 1671185876
17838 Modules
17839 \end_layout
17840
17841 \begin_layout Section
17842
17843 \change_inserted 564990737 1671716212
17844 Academic Field Specifics
17845 \end_layout
17846
17847 \begin_layout Subsection
17848
17849 \change_inserted 564990737 1671716212
17850 Chemistry:
17851  Hazard and Precautionary Statements 
17852 \end_layout
17853
17854 \begin_layout Standard
17855
17856 \change_inserted 564990737 1671716212
17857 This module provides two insets 
17858 \change_inserted -712698321 1673779038
17859 and a paragraph style 
17860 \change_inserted 564990737 1671716212
17861 to typeset numbers and phrases of chemical hazard and precautionary statements.
17862  For a description see 
17863 \family sans
17864 File\SpecialChar menuseparator
17865 Open Example\SpecialChar menuseparator
17866 Modules\SpecialChar menuseparator
17867 Hazard and Precautionary Statements
17868 \family default
17869  and 
17870 \family sans
17871 Help\SpecialChar menuseparator
17872 Specific Manuals\SpecialChar menuseparator
17873 Hazard and Precautionary Statements
17874 \family default
17875 .
17876 \end_layout
17877
17878 \begin_layout Subsection
17879
17880 \change_inserted 564990737 1671716212
17881
17882 \series bold
17883 Chemistry:
17884  Risk and Safety Statements
17885 \end_layout
17886
17887 \begin_layout Standard
17888
17889 \change_inserted 564990737 1671716212
17890 This module provides two insets,
17891  
17892 \family sans
17893 R-S number
17894 \family default
17895  and 
17896 \family sans
17897 R-S phrase
17898 \family default
17899 ,
17900  accessible via the menu 
17901 \family sans
17902 \bar under
17903 I
17904 \bar default
17905 nsert\SpecialChar menuseparator
17906 Custom
17907 \begin_inset space ~
17908 \end_inset
17909
17910 Insets
17911 \family default
17912  and an environment to typeset numbers and phrases of chemical risk and safety statements.
17913 \end_layout
17914
17915 \begin_layout Subsection
17916
17917 \change_inserted 564990737 1671716212
17918 Linguistics
17919 \end_layout
17920
17921 \begin_layout Standard
17922
17923 \change_inserted 564990737 1671716212
17924 This module 
17925 \change_deleted -712698321 1673779847
17926 uses the 
17927 \family sans
17928 covington.sty
17929 \family default
17930  package to add
17931 \change_inserted -712698321 1673779869
17932 provides specific
17933 \change_inserted 564990737 1671716212
17934  environments useful for linguistics (numbered examples,
17935  glosses,
17936  semantic markup,
17937  
17938 \change_inserted -712698321 1673779891
17939 OT 
17940 \change_inserted 564990737 1671716212
17941 tableau floats).
17942  You can obtain information about this module in 
17943 \family sans
17944 \bar under
17945 H
17946 \bar default
17947 elp\SpecialChar menuseparator
17948 S
17949 \bar under
17950 p
17951 \bar default
17952 ecific
17953 \begin_inset space ~
17954 \end_inset
17955
17956 Manuals\SpecialChar menuseparator
17957
17958 \bar under
17959 L
17960 \bar default
17961 inguistics
17962 \family default
17963  and 
17964 \family sans
17965 File\SpecialChar menuseparator
17966 Open Example\SpecialChar menuseparator
17967 Modules\SpecialChar menuseparator
17968 Linguistics
17969 \family default
17970 .
17971 \end_layout
17972
17973 \begin_layout Section
17974
17975 \change_inserted 564990737 1671788778
17976 Accessibility
17977 \end_layout
17978
17979 \begin_layout Subsection
17980
17981 \change_inserted 564990737 1671788778
17982 Braille
17983 \end_layout
17984
17985 \begin_layout Standard
17986
17987 \change_inserted 564990737 1671788778
17988 This module supports the Braille 
17989 \change_deleted -712698321 1673779995
17990 writing system
17991 \change_inserted -712698321 1673779996
17992 script
17993 \change_inserted 564990737 1671788778
17994 .
17995  It requires the \SpecialChar LaTeX
17996  package 
17997 \family typewriter
17998 braille.sty
17999 \family default
18000 .
18001  This and its documentation can be obtained from 
18002 \begin_inset CommandInset href
18003 LatexCommand href
18004 name "CTAN"
18005 target "https://www.ctan.org/pkg/braille"
18006 literal "false"
18007
18008 \end_inset
18009
18010 .
18011  
18012 \change_deleted -712698321 1673780105
18013 You do not have to reconfigure your system after installing it.
18014  
18015 \change_inserted 564990737 1671788778
18016 See 
18017 \family sans
18018 \bar under
18019 H
18020 \bar default
18021 elp\SpecialChar menuseparator
18022 S
18023 \bar under
18024 p
18025 \bar default
18026 ecific
18027 \begin_inset space ~
18028 \end_inset
18029
18030 Manuals\SpecialChar menuseparator
18031
18032 \bar under
18033 B
18034 \bar default
18035 raille
18036 \family default
18037  and 
18038 \family sans
18039 File\SpecialChar menuseparator
18040 Open Example\SpecialChar menuseparator
18041 Modules\SpecialChar menuseparator
18042 Braille
18043 \family default
18044 .
18045 \end_layout
18046
18047 \begin_layout Section
18048
18049 \change_inserted 564990737 1671788778
18050 Annotation & Revision
18051 \end_layout
18052
18053 \begin_layout Subsection
18054
18055 \change_inserted 564990737 1671788778
18056 FiXme Notes
18057 \end_layout
18058
18059 \begin_layout Standard
18060
18061 \change_inserted 564990737 1671788778
18062 This module provides “FiXme” (marginal) annotations for document revision purposes.
18063  A list of annotations can be produced by using the “List of FIXMEs” paragraph style.
18064  The annotations are customizable via the LaTeX preamble.
18065  See the 
18066 \change_inserted -712698321 1673780478
18067
18068 \family typewriter
18069 fix
18070 \change_deleted -712698321 1673780479
18071 FiX
18072 \change_inserted 564990737 1671788778
18073 me
18074 \family default
18075  documentation which can be obtained from 
18076 \begin_inset CommandInset href
18077 LatexCommand href
18078 name "CTAN"
18079 target "http://mirrors.ctan.org/macros/latex/contrib/fixme/fixme.pdf"
18080 literal "false"
18081
18082 \end_inset
18083
18084 .
18085  
18086 \end_layout
18087
18088 \begin_layout Paragraph
18089
18090 \change_inserted 564990737 1671788778
18091 Note:
18092 \end_layout
18093
18094 \begin_layout Standard
18095
18096 \change_inserted 564990737 1671788778
18097 by default,
18098  the notes are only displayed in “draft” mode (if the option “draft” has been inserted in 
18099 \family sans
18100 Document\SpecialChar menuseparator
18101 Settings\SpecialChar menuseparator
18102 Document Class\SpecialChar menuseparator
18103 Class Options\SpecialChar menuseparator
18104 Custom
18105 \family default
18106 ).
18107  To display them always,
18108  insert 
18109 \family typewriter
18110
18111 \backslash
18112 fxsetup{draft}
18113 \family default
18114  in 
18115 \family sans
18116 Document\SpecialChar menuseparator
18117 Settings\SpecialChar menuseparator
18118 \SpecialChar LaTeX
18119  Preamble
18120 \family default
18121 .
18122  
18123 \end_layout
18124
18125 \begin_layout Subsection
18126
18127 \change_inserted 564990737 1671788778
18128 PDF Comments
18129 \end_layout
18130
18131 \begin_layout Standard
18132
18133 \change_inserted 564990737 1671788778
18134 This module provides various kinds of annotations for PDF output.
18135  See 
18136 \family sans
18137 Help\SpecialChar menuseparator
18138 Specific Manuals\SpecialChar menuseparator
18139 PDF comments 
18140 \family default
18141 and
18142 \family sans
18143  File\SpecialChar menuseparator
18144 Open Example\SpecialChar menuseparator
18145 Modules\SpecialChar menuseparator
18146 PDF Comments
18147 \family default
18148 .
18149 \end_layout
18150
18151 \begin_layout Subsection
18152
18153 \change_inserted 564990737 1671788778
18154
18155 \series bold
18156 PDF Form
18157 \end_layout
18158
18159 \begin_layout Standard
18160
18161 \change_inserted 564990737 1671788778
18162 This module provides fields and buttons for PDF forms.
18163  See the 
18164 \begin_inset CommandInset href
18165 LatexCommand href
18166 name "hyperref documentation"
18167 target "http://mirrors.ctan.org/macros/latex/contrib/hyperref/doc/hyperref-doc.pdf"
18168 literal "false"
18169
18170 \end_inset
18171
18172 ,
18173  
18174 \family sans
18175 Help\SpecialChar menuseparator
18176 Specific Manuals\SpecialChar menuseparator
18177 PDF forms 
18178 \family default
18179 and
18180 \family sans
18181  File\SpecialChar menuseparator
18182 Open Example\SpecialChar menuseparator
18183 Modules\SpecialChar menuseparator
18184 PDF Form
18185 \family default
18186 .
18187 \end_layout
18188
18189 \begin_layout Subsection
18190
18191 \change_inserted 564990737 1671788778
18192
18193 \series bold
18194 Ruby (Furigana)
18195 \end_layout
18196
18197 \begin_layout Standard
18198
18199 \change_inserted 564990737 1671788778
18200 This module defines an inset to typeset reading aids (ruby,
18201  furigana) to Chinese characters.
18202  It uses the 
18203 \change_deleted -712698321 1673781076
18204
18205 \change_inserted 564990737 1671788778
18206
18207 \family typewriter
18208 okumakro
18209 \family default
18210 ,
18211 \change_deleted -712698321 1673781078
18212
18213 \change_inserted 564990737 1671788778
18214  
18215 \change_deleted -712698321 1673781079
18216
18217 \change_inserted 564990737 1671788778
18218
18219 \family typewriter
18220 luatexja-ruby
18221 \change_deleted -712698321 1673781080
18222
18223 \family default
18224
18225 \change_inserted 564990737 1671788778
18226  or 
18227 \change_deleted -712698321 1673781082
18228
18229 \change_inserted 564990737 1671788778
18230
18231 \family typewriter
18232 ruby
18233 \change_deleted -712698321 1673781083
18234
18235 \family default
18236
18237 \change_inserted 564990737 1671788778
18238  package (depending on the TeX engine) or a fallback definition.
18239  
18240 \end_layout
18241
18242 \begin_layout Subsection
18243
18244 \change_inserted 564990737 1671788778
18245
18246 \series bold
18247 TODO notes
18248 \end_layout
18249
18250 \begin_layout Standard
18251
18252 \change_inserted 564990737 1671788778
18253 This module provides custom insets to insert TODO items in your document.
18254  In order to generate a “List of TODOs,” the module provides a paragraph style.
18255  Inserting 
18256 \change_deleted -712698321 1673781223
18257
18258 \change_inserted 564990737 1671788778
18259
18260 \family typewriter
18261 final
18262 \change_deleted -712698321 1673781224
18263
18264 \family default
18265
18266 \change_inserted 564990737 1671788778
18267  in 
18268 \family sans
18269 Document\SpecialChar menuseparator
18270 Settings\SpecialChar menuseparator
18271 Document Class\SpecialChar menuseparator
18272 Class Options\SpecialChar menuseparator
18273 Custom
18274 \family default
18275 ) suppresses the output of TODO notes.
18276  See the 
18277 \begin_inset CommandInset href
18278 LatexCommand href
18279 name "todonotes documentation"
18280 target "http://mirrors.ctan.org/macros/latex/contrib/todonotes/todonotes.pdf"
18281 literal "false"
18282
18283 \end_inset
18284
18285 .
18286 \end_layout
18287
18288 \begin_layout Section
18289
18290 \change_inserted 564990737 1671829045
18291 Bibliography 
18292 \end_layout
18293
18294 \begin_layout Subsection
18295
18296 \change_inserted 564990737 1671829045
18297 APA Style with Nat
18298 \change_deleted -712698321 1673781454
18299 B
18300 \change_inserted -712698321 1673781454
18301 b
18302 \change_inserted 564990737 1671829045
18303 ib
18304 \end_layout
18305
18306 \begin_layout Standard
18307
18308 \change_inserted 564990737 1671829045
18309 This module adds support for using natbib together with apacite (the bibliography style need not be 
18310 \family typewriter
18311 apacite
18312 \family default
18313  —
18314  it could be 
18315 \family typewriter
18316 apacite
18317 \family default
18318 ,
18319  
18320 \family typewriter
18321 apacitex
18322 \family default
18323 ,
18324  or any bibliography that works with both the natbib and apacite packages.) 
18325 \end_layout
18326
18327 \begin_layout Section
18328
18329 \change_inserted 564990737 1671829045
18330 Boxes
18331 \end_layout
18332
18333 \begin_layout Subsection
18334
18335 \change_inserted 564990737 1671829045
18336 Fancy Colored Boxes
18337 \end_layout
18338
18339 \begin_layout Standard
18340
18341 \change_inserted 564990737 1671829045
18342 This module adds ten custom insets that support colored boxes via the 
18343 \family typewriter
18344 tcolorbox
18345 \family default
18346  package.
18347  See 
18348 \family sans
18349 Help\SpecialChar menuseparator
18350 Specific Manuals\SpecialChar menuseparator
18351 Colored boxes
18352 \family default
18353 ,
18354  
18355 \family sans
18356 File\SpecialChar menuseparator
18357 Open Example\SpecialChar menuseparator
18358 Modules\SpecialChar menuseparator
18359 Fancy Color Boxes
18360 \family default
18361  
18362 \change_inserted -712698321 1673854244
18363 and 
18364 \change_inserted 564990737 1671829045
18365 the 
18366 \begin_inset CommandInset href
18367 LatexCommand href
18368 name "tcolorbox documentation"
18369 target "http://mirrors.ctan.org/macros/latex/contrib/tcolorbox/tcolorbox.pdf"
18370 literal "false"
18371
18372 \end_inset
18373
18374  for details.
18375  
18376 \end_layout
18377
18378 \begin_layout Subsection
18379
18380 \change_inserted 564990737 1671829045
18381 Graphic boxes
18382 \end_layout
18383
18384 \begin_layout Standard
18385
18386 \change_inserted 564990737 1671829045
18387 This provides the custom insets 
18388 \family sans
18389 Reflectbox
18390 \family default
18391 ,
18392  
18393 \family sans
18394 Resizebox
18395 \family default
18396 ,
18397  
18398 \family sans
18399 Rotatebox
18400 \family default
18401  and 
18402 \family sans
18403 Scalebox
18404 \family default
18405  to scale and rotate its content.
18406 \end_layout
18407
18408 \begin_layout Standard
18409
18410 \change_inserted 564990737 1671829045
18411
18412 \family sans
18413 Reflectbox
18414 \family default
18415  is a simple way of reversing text without any other enhancement:
18416 \end_layout
18417
18418 \begin_layout Standard
18419
18420 \change_inserted 564990737 1671829045
18421 \begin_inset Flex Reflectbox
18422 status open
18423
18424 \begin_layout Plain Layout
18425
18426 \change_inserted 564990737 1671829045
18427 Great Western Railway
18428 \change_unchanged
18429
18430 \end_layout
18431
18432 \end_inset
18433
18434
18435 \end_layout
18436
18437 \begin_layout Standard
18438
18439 \change_inserted 564990737 1671829045
18440 (You will need to use Ctrl-R to see any of these examples.)
18441 \end_layout
18442
18443 \begin_layout Standard
18444
18445 \change_inserted 564990737 1671829045
18446
18447 \family sans
18448 Resizebox
18449 \family default
18450  allows you to specify the dimensions of the text or image;
18451  permissible units are em,
18452  ex,
18453  in,
18454  pt,
18455  pc,
18456  cm,
18457  mm,
18458  dd,
18459  cc,
18460  nd,
18461  nc,
18462  bp,
18463  or sp;
18464  if you enter 
18465 \family typewriter
18466 !
18467
18468 \family default
18469  for 
18470 \family typewriter
18471 Height
18472 \family default
18473  it scales by the width factor:
18474 \end_layout
18475
18476 \begin_layout Standard
18477
18478 \change_inserted 564990737 1671829045
18479 \begin_inset Flex Resizebox
18480 status open
18481
18482 \begin_layout Plain Layout
18483
18484 \change_inserted 564990737 1671829045
18485 \begin_inset Argument 1
18486 status open
18487
18488 \begin_layout Plain Layout
18489
18490 \change_inserted 564990737 1671829045
18491 48mm
18492 \change_unchanged
18493
18494 \end_layout
18495
18496 \end_inset
18497
18498
18499 \begin_inset Argument 2
18500 status open
18501
18502 \begin_layout Plain Layout
18503
18504 \change_inserted 564990737 1671829045
18505 !
18506 \change_unchanged
18507
18508 \end_layout
18509
18510 \end_inset
18511
18512 Great Western Railway
18513 \change_unchanged
18514
18515 \end_layout
18516
18517 \end_inset
18518
18519
18520 \end_layout
18521
18522 \begin_layout Standard
18523
18524 \change_inserted 564990737 1671829045
18525
18526 \family sans
18527 Rotatebox
18528 \family default
18529  allows you to rotate 
18530 \change_deleted -712698321 1673856297
18531 text
18532 \change_inserted -712698321 1673856302
18533 its contents
18534 \change_inserted 564990737 1671829045
18535  around the reference point of the box.
18536  If you wish to rotate the box around a different origin,
18537  place the cursor inside the box and select Insert\SpecialChar menuseparator
18538 Origin;
18539  o
18540 \family typewriter
18541 rigin
18542 \family default
18543  is specified as 
18544 \family typewriter
18545 c
18546 \family default
18547 ,
18548
18549 \family typewriter
18550  l
18551 \family default
18552 ,
18553
18554 \family typewriter
18555  r
18556 \family default
18557 ,
18558
18559 \family typewriter
18560  b
18561 \family default
18562 ,
18563
18564 \family typewriter
18565  t
18566 \family default
18567  or meaningful combinations of these and the counterclockwise rotation angle is expressed in degrees.
18568  For example:
18569 \end_layout
18570
18571 \begin_layout Standard
18572
18573 \change_inserted 564990737 1671829045
18574 \begin_inset Flex Rotatebox
18575 status open
18576
18577 \begin_layout Plain Layout
18578
18579 \change_inserted 564990737 1671829045
18580 \begin_inset Argument 1
18581 status open
18582
18583 \begin_layout Plain Layout
18584
18585 \change_inserted 274215730 1672888693
18586 origin
18587 \change_inserted 564990737 1671829045
18588 =c
18589 \change_unchanged
18590
18591 \end_layout
18592
18593 \end_inset
18594
18595
18596 \begin_inset Argument 2
18597 status open
18598
18599 \begin_layout Plain Layout
18600
18601 \change_inserted 564990737 1671829045
18602 30
18603 \change_unchanged
18604
18605 \end_layout
18606
18607 \end_inset
18608
18609 Great Western Railway
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 1671829045
18622 You can combine boxes as in:
18623 \end_layout
18624
18625 \begin_layout Standard
18626
18627 \change_inserted 564990737 1671829045
18628 \begin_inset Flex Rotatebox
18629 status open
18630
18631 \begin_layout Plain Layout
18632
18633 \change_inserted 564990737 1671829045
18634 \begin_inset Argument 1
18635 status open
18636
18637 \begin_layout Plain Layout
18638
18639 \change_inserted 274215730 1672888702
18640 origin
18641 \change_inserted 564990737 1671829045
18642 =c
18643 \change_unchanged
18644
18645 \end_layout
18646
18647 \end_inset
18648
18649
18650 \begin_inset Argument 2
18651 status open
18652
18653 \begin_layout Plain Layout
18654
18655 \change_inserted 564990737 1671829045
18656 -15
18657 \change_unchanged
18658
18659 \end_layout
18660
18661 \end_inset
18662
18663
18664 \begin_inset Flex Resizebox
18665 status open
18666
18667 \begin_layout Plain Layout
18668
18669 \change_inserted 564990737 1671829045
18670 \begin_inset Argument 1
18671 status open
18672
18673 \begin_layout Plain Layout
18674
18675 \change_inserted 564990737 1671829045
18676 48mm
18677 \change_unchanged
18678
18679 \end_layout
18680
18681 \end_inset
18682
18683
18684 \begin_inset Argument 2
18685 status open
18686
18687 \begin_layout Plain Layout
18688
18689 \change_inserted 564990737 1671829045
18690 !
18691 \change_unchanged
18692
18693 \end_layout
18694
18695 \end_inset
18696
18697
18698 \begin_inset Flex Reflectbox
18699 status open
18700
18701 \begin_layout Plain Layout
18702
18703 \change_inserted 564990737 1671829045
18704 Great Western Railway
18705 \change_unchanged
18706
18707 \end_layout
18708
18709 \end_inset
18710
18711
18712 \change_unchanged
18713
18714 \end_layout
18715
18716 \end_inset
18717
18718
18719 \change_unchanged
18720
18721 \end_layout
18722
18723 \end_inset
18724
18725
18726 \end_layout
18727
18728 \begin_layout Standard
18729
18730 \change_inserted 564990737 1671829045
18731
18732 \family sans
18733 Scalebox
18734 \family default
18735  scales 
18736 \change_deleted -712698321 1673856306
18737 text
18738 \change_inserted -712698321 1673856308
18739 its contents
18740 \change_inserted 564990737 1671829045
18741 ;
18742  select Insert\SpecialChar menuseparator
18743 V-Factor to add a vertical factor.
18744  If the vertical factor is omitted,
18745  the horizontal is used.
18746  Adding different horizontal and vertical values creates distortion as in 
18747 \end_layout
18748
18749 \begin_layout Standard
18750
18751 \change_inserted 564990737 1671829045
18752
18753 \family typewriter
18754 \begin_inset Flex Scalebox
18755 status open
18756
18757 \begin_layout Plain Layout
18758
18759 \change_inserted 564990737 1671829045
18760 \begin_inset Argument 1
18761 status open
18762
18763 \begin_layout Plain Layout
18764
18765 \change_inserted 564990737 1671829045
18766 2
18767 \change_unchanged
18768
18769 \end_layout
18770
18771 \end_inset
18772
18773
18774 \begin_inset Argument 2
18775 status open
18776
18777 \begin_layout Plain Layout
18778
18779 \change_inserted 564990737 1671829045
18780 1.5
18781 \change_unchanged
18782
18783 \end_layout
18784
18785 \end_inset
18786
18787
18788 \family roman
18789 Great Western Railway
18790 \change_unchanged
18791
18792 \end_layout
18793
18794 \end_inset
18795
18796 .
18797 \end_layout
18798
18799 \begin_layout Standard
18800
18801 \change_inserted 564990737 1671829045
18802 A negative horizontal value reverses the text 
18803 \change_inserted -712698321 1673856686
18804 on the horizontal axis,
18805  
18806 \change_deleted -712698321 1673856688
18807 and 
18808 \change_inserted 564990737 1671829045
18809 a negative vertical value 
18810 \change_deleted -712698321 1673856694
18811 inverts
18812 \change_inserted -712698321 1673856702
18813  on the vertical axis,
18814
18815 \change_inserted 564990737 1671829045
18816  
18817 \change_deleted -712698321 1673856704
18818 it 
18819 \change_inserted 564990737 1671829045
18820 so that you get 
18821 \end_layout
18822
18823 \begin_layout Standard
18824
18825 \change_inserted 564990737 1671829045
18826 \begin_inset Flex Scalebox
18827 status open
18828
18829 \begin_layout Plain Layout
18830
18831 \change_inserted 564990737 1671829045
18832 \begin_inset Argument 1
18833 status open
18834
18835 \begin_layout Plain Layout
18836
18837 \change_inserted 564990737 1671829045
18838 -1
18839 \change_unchanged
18840
18841 \end_layout
18842
18843 \end_inset
18844
18845
18846 \begin_inset Argument 2
18847 status open
18848
18849 \begin_layout Plain Layout
18850
18851 \change_inserted 564990737 1671829045
18852 1
18853 \change_unchanged
18854
18855 \end_layout
18856
18857 \end_inset
18858
18859 Great Western Railway
18860 \change_unchanged
18861
18862 \end_layout
18863
18864 \end_inset
18865
18866  and 
18867 \begin_inset Flex Scalebox
18868 status open
18869
18870 \begin_layout Plain Layout
18871
18872 \change_inserted 564990737 1671829045
18873 \begin_inset Argument 1
18874 status open
18875
18876 \begin_layout Plain Layout
18877
18878 \change_inserted 564990737 1671829045
18879 1
18880 \change_unchanged
18881
18882 \end_layout
18883
18884 \end_inset
18885
18886
18887 \begin_inset Argument 2
18888 status open
18889
18890 \begin_layout Plain Layout
18891
18892 \change_inserted 564990737 1671829045
18893 -1
18894 \change_unchanged
18895
18896 \end_layout
18897
18898 \end_inset
18899
18900 Great Western Railway
18901 \change_unchanged
18902
18903 \end_layout
18904
18905 \end_inset
18906
18907 .
18908 \end_layout
18909
18910 \begin_layout Subsection
18911
18912 \change_inserted 564990737 1671884699
18913 Section Boxes
18914 \end_layout
18915
18916 \begin_layout Standard
18917
18918 \change_inserted 564990737 1671884699
18919 This module defines Boxes with section header.
18920  It is mainly intended for the SciPoster Document class.
18921  
18922 \end_layout
18923
18924 \begin_layout Subsection
18925
18926 \change_inserted 564990737 1671884699
18927 Variable-width Minipages
18928 \end_layout
18929
18930 \begin_layout Standard
18931
18932 \change_inserted 564990737 1671884699
18933 This module adds a 
18934 \family sans
18935 Minipage (Var.
18936 \begin_inset space \thinspace{}
18937 \end_inset
18938
18939 Width)
18940 \family default
18941  inset to 
18942 \family sans
18943 Insert\SpecialChar menuseparator
18944 Custom Inset
18945 \family default
18946  using the 
18947 \family typewriter
18948 varwidth
18949 \family default
18950  LaTeX package.
18951  The 
18952 \family typewriter
18953 varwidth
18954 \family default
18955  package provides a variable-width minipage,
18956  whose resulting width is the width of its contents (if this does not exceed the specified maximum width).
18957  The inset has two optional arguments which can be added by placing the cursor inside the minipage and entering 
18958 \family sans
18959 Insert\SpecialChar menuseparator
18960 Vert.
18961 \begin_inset space \thinspace{}
18962 \end_inset
18963
18964 Adjustment
18965 \family default
18966  (
18967 \family typewriter
18968 c|t|b
18969 \family default
18970 ) or 
18971 \family sans
18972 Insert\SpecialChar menuseparator
18973 Max.
18974 \begin_inset space \thinspace{}
18975 \end_inset
18976
18977 Width
18978 \family default
18979  (defaults to 
18980 \family typewriter
18981
18982 \backslash
18983 linewidth
18984 \family default
18985 ).
18986  See 
18987 \family sans
18988 File\SpecialChar menuseparator
18989 Open Example\SpecialChar menuseparator
18990 Variable-width Minipages
18991 \family default
18992 .
18993  
18994 \end_layout
18995
18996 \begin_layout Section
18997
18998 \change_inserted 564990737 1671884699
18999 Fixes & Hacks
19000 \end_layout
19001
19002 \begin_layout Subsection
19003
19004 \change_inserted 564990737 1671884699
19005 Fix Computer Modern Fonts
19006 \end_layout
19007
19008 \begin_layout Standard
19009
19010 \change_inserted 564990737 1671884699
19011 This module uses the 
19012 \family sans
19013 fix-cm
19014 \family default
19015  package to improve the appearance of Computer Modern fonts and make them available with arbitrary sizes.
19016  See the 
19017 \begin_inset CommandInset href
19018 LatexCommand href
19019 name "fix-cm documentation"
19020 target "http://mirrors.ctan.org/macros/latex/base/fix-cm.pdf"
19021 literal "false"
19022
19023 \end_inset
19024
19025 .
19026  
19027 \end_layout
19028
19029 \begin_layout Subsection
19030
19031 \change_inserted 564990737 1671884699
19032 \SpecialChar LaTeX
19033  Kernel Fixes (Obsolete)
19034 \end_layout
19035
19036 \begin_layout Standard
19037
19038 \change_inserted 564990737 1671884699
19039 This module loads the \SpecialChar LaTeX
19040  package 
19041 \family sans
19042 fixltx2e
19043 \family default
19044  which contains some bug fixes for \SpecialChar LaTeX
19045 .
19046  If you use this module your typeset document may look different when you process it,
19047  depending on the respective version of 
19048 \family sans
19049 fixltx2e
19050 \family default
19051 .
19052  
19053 \end_layout
19054
19055 \begin_layout Paragraph
19056
19057 \change_inserted 564990737 1671884699
19058 Note:
19059 \end_layout
19060
19061 \begin_layout Standard
19062
19063 \change_inserted 564990737 1671884699
19064 recent \SpecialChar LaTeX
19065  kernels (as of 2015/01/01) include the functionality of 
19066 \family sans
19067 fixltx2e
19068 \family default
19069 ,
19070  so the 
19071 \family sans
19072 fixltx2e
19073 \family default
19074  module is obsolete with newer \SpecialChar LaTeX
19075  distributions.
19076
19077 \change_deleted -712698321 1673857809
19078  
19079 \change_inserted 564990737 1671884699
19080
19081 \end_layout
19082
19083 \begin_layout Subsection
19084
19085 \change_inserted 564990737 1671884699
19086 Minimalistic Insets
19087 \end_layout
19088
19089 \begin_layout Standard
19090
19091 \change_inserted 564990737 1671884699
19092 This module redefines several insets (Index,
19093  Branch,
19094  URL) as being Minimalistic.
19095 \end_layout
19096
19097 \begin_layout Subsection
19098
19099 \change_inserted 564990737 1671884699
19100 Title and Preamble Hacks
19101 \end_layout
19102
19103 \begin_layout Standard
19104
19105 \change_inserted 564990737 1671884699
19106 This module provides two new paragraph styles:
19107  
19108 \end_layout
19109
19110 \begin_layout Enumerate
19111
19112 \change_inserted 564990737 1671884699
19113
19114 \family sans
19115 In Preamble
19116 \family default
19117  which puts whatever is entered into it into the preamble.
19118  This can be used,
19119  if one wishes,
19120  to include preamble code in the body of a LyX document.
19121  
19122 \end_layout
19123
19124 \begin_layout Enumerate
19125
19126 \change_inserted 564990737 1671884699
19127
19128 \family sans
19129 In Title
19130 \family default
19131  which that will put its contents into the body of the LaTeX document,
19132  but before 
19133 \family typewriter
19134
19135 \backslash
19136 maketitle
19137 \family default
19138  is issued.
19139  This is useful for making branches and notes in title-related material.
19140  (However,
19141  if you put these in a 
19142 \family sans
19143 Standard
19144 \family default
19145  layout,
19146  this signals to LyX to output 
19147 \family typewriter
19148
19149 \backslash
19150 maketitle
19151 \family default
19152 ,
19153  which may then come too early.)
19154 \end_layout
19155
19156 \begin_layout Section
19157
19158 \change_inserted 564990737 1672081439
19159 Floats & captions
19160 \end_layout
19161
19162 \begin_layout Subsection
19163
19164 \change_inserted 564990737 1672081439
19165 Algorithm2e Float
19166 \end_layout
19167
19168 \begin_layout Standard
19169
19170 \change_inserted 564990737 1672081439
19171 This module uses the 
19172 \family sans
19173 algorithm2e
19174 \family default
19175  package for algorithm floats rather than LyX’s home-brewed algorithm floats.
19176  Use the Algorithm paragraph style to enter and indent the algorithm.
19177  See the 
19178 \begin_inset CommandInset href
19179 LatexCommand href
19180 name "algorithm2e documentation"
19181 target "http://mirrors.ctan.org/macros/latex/contrib/algorithm2e/doc/algorithm2e.pdf"
19182 literal "false"
19183
19184 \end_inset
19185
19186 .
19187 \end_layout
19188
19189 \begin_layout Subsection
19190
19191 \change_inserted 564990737 1672081439
19192 Bilingual Captions AKA Multilingual Captions
19193 \end_layout
19194
19195 \begin_layout Standard
19196
19197 \change_inserted 564990737 1672081439
19198 This module provides the paragraph style 
19199 \family sans
19200 Caption
19201 \begin_inset space ~
19202 \end_inset
19203
19204 setup
19205 \family default
19206  with which to typeset 
19207 \change_deleted -712698321 1673859156
19208 mult
19209 \change_inserted -712698321 1673859156
19210 b
19211 \change_inserted 564990737 1672081439
19212 ilingual captions.
19213  Within this paragraph style 
19214 \family sans
19215 Insert\SpecialChar menuseparator
19216 Language
19217 \family default
19218  allows you to enter the desired 
19219 \change_inserted -712698321 1673859387
19220 second 
19221 \change_inserted 564990737 1672081439
19222 language using one of the babel names.
19223  See 
19224 \family sans
19225 File\SpecialChar menuseparator
19226 Open Example\SpecialChar menuseparator
19227
19228 \change_inserted -712698321 1673859558
19229 Modules\SpecialChar menuseparator
19230
19231 \change_inserted 564990737 1672081439
19232 Multilingual Captions
19233 \family default
19234  and 
19235 \family sans
19236 Help\SpecialChar menuseparator
19237 Specific Manuals\SpecialChar menuseparator
19238 Multilingual Captions
19239 \family default
19240  further information on its use.
19241 \end_layout
19242
19243 \begin_layout Subsection
19244
19245 \change_inserted 564990737 1672081439
19246 Number Figures by Section
19247 \end_layout
19248
19249 \begin_layout Standard
19250
19251 \change_inserted 564990737 1672081439
19252 This module resets the figure number at section start and prepends the section number to the figure number,
19253  as in “Figure 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
19254 \end_layout
19255
19256 \begin_layout Subsection
19257
19258 \change_inserted 564990737 1672081439
19259 Number Tables by Section
19260 \end_layout
19261
19262 \begin_layout Standard
19263
19264 \change_inserted 564990737 1672081439
19265 This module resets the table number at section start and prepends the section number to the table number,
19266  as in “Table 2.1.” (By default book and report document classes number by Chapter and article document classes have a single sequence.) 
19267 \end_layout
19268
19269 \begin_layout Section
19270
19271 \change_inserted 564990737 1672081439
19272 Foot- and Endnotes
19273 \end_layout
19274
19275 \begin_layout Subsection
19276
19277 \change_inserted 564990737 1672081439
19278 Endnotes (Basic)
19279 \end_layout
19280
19281 \begin_layout Standard
19282
19283 \change_inserted 564990737 1672081439
19284 This module adds an endnote inset,
19285  in addition to footnotes.
19286  This uses the 
19287 \family sans
19288 endnotes
19289 \family default
19290  package,
19291  which has some limitations but works with older 
19292 \change_deleted -712698321 1673861636
19293 LaTeX
19294 \change_inserted -712698321 1673861636
19295 \SpecialChar LaTeX
19296
19297 \change_inserted 564990737 1672081439
19298  distributions as well.
19299  Use 
19300 \family sans
19301 Insert\SpecialChar menuseparator
19302 Custom Inset\SpecialChar menuseparator
19303 Endnote
19304 \family default
19305  to insert an endnote and 
19306 \family sans
19307 Insert\SpecialChar menuseparator
19308 List/Contents/References\SpecialChar menuseparator
19309 Endnotes
19310 \family default
19311  to insert the endnotes list where you want the endnotes to appear.
19312  See also 
19313 \family sans
19314 Help\SpecialChar menuseparator
19315 Embedded
19316 \change_deleted -712698321 1673861792
19317 \SpecialChar menuseparator
19318
19319 \change_inserted 564990737 1672081439
19320  Objects
19321 \change_deleted -712698321 1673861963
19322 \SpecialChar menuseparator
19323 Notes\SpecialChar menuseparator
19324 Footnotes
19325 \change_inserted -712698321 1673861963
19326
19327 \family default
19328 ,
19329  section 
19330 \emph on
19331 4.2 Footnotes
19332 \change_inserted 564990737 1672081439
19333
19334 \emph default
19335 .
19336 \end_layout
19337
19338 \begin_layout Subsection
19339
19340 \change_inserted 564990737 1672081439
19341 Endnotes (Extended)
19342 \end_layout
19343
19344 \begin_layout Standard
19345
19346 \change_inserted 564990737 1672081439
19347 This module adds an endnote inset,
19348  in addition to footnotes.
19349  This uses the 
19350 \family sans
19351 enotez
19352 \family default
19353  package which is more powerful and customizable than the 
19354 \family sans
19355 endnotes
19356 \family default
19357  package,
19358  but requires a fairly modern 
19359 \change_deleted -712698321 1673861643
19360 LaTeX
19361 \change_inserted -712698321 1673861643
19362 \SpecialChar LaTeX
19363
19364 \change_inserted 564990737 1672081439
19365  distribution (with 
19366 \change_deleted -712698321 1673861645
19367 LaTeX
19368 \change_inserted -712698321 1673861645
19369 \SpecialChar LaTeX
19370
19371 \change_inserted 564990737 1672081439
19372 3).
19373  Use 
19374 \family sans
19375 Insert\SpecialChar menuseparator
19376 Custom Inset\SpecialChar menuseparator
19377 Endnote
19378 \family default
19379  to insert an endnote and 
19380 \family sans
19381 Insert\SpecialChar menuseparator
19382 List/Contents/References\SpecialChar menuseparator
19383 Endnotes
19384 \family default
19385  to insert the endnotes list where you want the endnotes to appear.
19386  See also 
19387 \family sans
19388 Help\SpecialChar menuseparator
19389 Embedded
19390 \change_deleted -712698321 1673861798
19391 \SpecialChar menuseparator
19392
19393 \change_inserted 564990737 1672081439
19394  Objects
19395 \change_inserted -712698321 1673861924
19396
19397 \family default
19398 ,
19399  section 
19400 \emph on
19401 4.2 Footnotes
19402 \emph default
19403 .
19404 \change_deleted -712698321 1673861927
19405
19406 \family sans
19407 \SpecialChar menuseparator
19408 Notes\SpecialChar menuseparator
19409 Footnotes
19410 \change_inserted 564990737 1672081439
19411
19412 \family default
19413 .
19414 \end_layout
19415
19416 \begin_layout Subsection
19417
19418 \change_inserted 564990737 1672081439
19419 Footnotes as Endnotes (Basic)
19420 \end_layout
19421
19422 \begin_layout Standard
19423
19424 \change_inserted 564990737 1672081439
19425 This module sets all footnotes as endnotes.
19426  This uses the 
19427 \family sans
19428 endnotes
19429 \family default
19430  package,
19431  which has some limitations but works with older 
19432 \change_deleted -712698321 1673861650
19433 LaTeX
19434 \change_inserted -712698321 1673861650
19435 \SpecialChar LaTeX
19436
19437 \change_inserted 564990737 1672081439
19438  distributions as well.
19439  Use 
19440 \family sans
19441 Insert\SpecialChar menuseparator
19442 List/Contents/References\SpecialChar menuseparator
19443 Endnotes
19444 \family default
19445  to insert the endnotes list where you want the endnotes to appear.
19446  See also 
19447 \family sans
19448 Help\SpecialChar menuseparator
19449 Embedded
19450 \change_deleted -712698321 1673861805
19451 \SpecialChar menuseparator
19452
19453 \change_inserted 564990737 1672081439
19454  Objects
19455 \change_deleted -712698321 1673861947
19456 \SpecialChar menuseparator
19457 Notes\SpecialChar menuseparator
19458 Footnotes
19459 \change_inserted -712698321 1673861947
19460
19461 \family default
19462 ,
19463  section 
19464 \emph on
19465 4.2 Footnotes
19466 \change_inserted 564990737 1672081439
19467
19468 \emph default
19469 .
19470 \end_layout
19471
19472 \begin_layout Subsection
19473
19474 \change_inserted 564990737 1672081439
19475 Footnotes as Endnotes (Extended)
19476 \end_layout
19477
19478 \begin_layout Standard
19479
19480 \change_inserted 564990737 1672081439
19481 This module sets all footnotes as endnotes.
19482  This uses the 
19483 \family sans
19484 enotez
19485 \family default
19486  package which is more powerful and customizable than then 
19487 \family sans
19488 endnotes
19489 \family default
19490  package,
19491  but requires a fairly modern 
19492 \change_deleted -712698321 1673861654
19493 LaTeX
19494 \change_inserted -712698321 1673861654
19495 \SpecialChar LaTeX
19496
19497 \change_inserted 564990737 1672081439
19498  distribution (with 
19499 \change_deleted -712698321 1673861656
19500 LaTeX
19501 \change_inserted -712698321 1673861656
19502 \SpecialChar LaTeX
19503
19504 \change_inserted 564990737 1672081439
19505 3).
19506  Use 
19507 \family sans
19508 Insert\SpecialChar menuseparator
19509 List/Contents/References\SpecialChar menuseparator
19510 Endnotes
19511 \family default
19512  to insert the endnotes list where you want the endnotes to appear.
19513  See also 
19514 \family sans
19515 Help\SpecialChar menuseparator
19516 Embedded
19517 \change_deleted -712698321 1673861808
19518 \SpecialChar menuseparator
19519
19520 \change_inserted 564990737 1672081439
19521  Objects
19522 \change_deleted -712698321 1673861955
19523 \SpecialChar menuseparator
19524 Notes\SpecialChar menuseparator
19525 Footnotes
19526 \change_inserted -712698321 1673861989
19527
19528 \family default
19529 ,
19530  section 
19531 \emph on
19532 4.2 Footnotes
19533 \emph default
19534 .
19535 \change_deleted -712698321 1673861956
19536 .
19537 \change_inserted 564990737 1672081439
19538
19539 \end_layout
19540
19541 \begin_layout Section
19542
19543 \change_inserted 564990737 1672081439
19544 Leisure,
19545  Sports and Music
19546 \end_layout
19547
19548 \begin_layout Subsection
19549
19550 \change_inserted 564990737 1672081439
19551 Chess Board
19552 \end_layout
19553
19554 \begin_layout Standard
19555
19556 \change_inserted 564990737 1672081439
19557 This module provides support for the 
19558 \family sans
19559 chessboard
19560 \family default
19561  package to print chess games.
19562  See 
19563 \family sans
19564 File\SpecialChar menuseparator
19565 Open Example\SpecialChar menuseparator
19566 Articles\SpecialChar menuseparator
19567 Chess
19568 \family default
19569  where you will find 
19570 \family sans
19571 Game 1
19572 \family default
19573  and 
19574 \family sans
19575 Game 2
19576 \family default
19577  and the 
19578 \begin_inset CommandInset href
19579 LatexCommand href
19580 name "chessboard documentation"
19581 target "http://mirrors.ctan.org/macros/latex/contrib/chessboard/chessboard.pdf"
19582 literal "false"
19583
19584 \end_inset
19585
19586 .
19587 \end_layout
19588
19589 \begin_layout Subsection
19590
19591 \change_inserted 564990737 1672081439
19592 Lilypond Music Notation
19593 \end_layout
19594
19595 \begin_layout Standard
19596
19597 \change_inserted 564990737 1672081439
19598 This module provides an inset via 
19599 \family sans
19600 \bar under
19601 I
19602 \bar default
19603 nsert\SpecialChar menuseparator
19604 Custom Inset\SpecialChar menuseparator
19605 Lilypond
19606 \family default
19607  in which to enter code for the LilyPond music editor.
19608  It will then be processed in the output.
19609  See 
19610 \family sans
19611 Help\SpecialChar menuseparator
19612 Specific Manuals\SpecialChar menuseparator
19613 Lilypond
19614 \family default
19615  and 
19616 \family sans
19617 File\SpecialChar menuseparator
19618 Open Example\SpecialChar menuseparator
19619 Modules\SpecialChar menuseparator
19620 Lilypond Book
19621 \family default
19622 .
19623  It cannot be used if the modules 
19624 \family sans
19625 Rnw
19626 \begin_inset space \thinspace{}
19627 \end_inset
19628
19629 (knitr) 
19630 \family default
19631 or
19632 \family sans
19633  Sweave
19634 \family default
19635  have been loaded.
19636 \end_layout
19637
19638 \begin_layout Section
19639
19640 \change_inserted 564990737 1672138150
19641 List enhancements
19642 \end_layout
19643
19644 \begin_layout Subsection
19645
19646 \change_inserted 564990737 1672138150
19647 Customizable Lists
19648 \begin_inset CommandInset label
19649 LatexCommand label
19650 name "subsec:Customizable-Lists"
19651
19652 \end_inset
19653
19654
19655 \end_layout
19656
19657 \begin_layout Standard
19658
19659 \change_inserted 564990737 1672138150
19660 This module uses the
19661 \family sans
19662  enumitem
19663 \family default
19664  package to enable the customization of various list environments.
19665 \end_layout
19666
19667 \begin_layout Subsubsection
19668
19669 \change_inserted 564990737 1672138150
19670 Custom Enumerate Lists
19671 \end_layout
19672
19673 \begin_layout Standard
19674 \noindent
19675
19676 \change_inserted 564990737 1672138150
19677 The default numbering of numbered lists can be changed by adding an optional argument (menu 
19678 \family sans
19679 \bar under
19680 I
19681 \bar default
19682 nsert\SpecialChar menuseparator
19683
19684 \bar under
19685 S
19686 \bar default
19687 hort Title
19688 \family default
19689 ) to the first item of each level in the list.
19690  There you add the command
19691 \end_layout
19692
19693 \begin_layout Standard
19694
19695 \change_inserted 564990737 1672138150
19696
19697 \family sans
19698 label=
19699 \backslash
19700 roman{enumi}
19701 \end_layout
19702
19703 \begin_layout Standard
19704
19705 \change_inserted 564990737 1672138150
19706 in \SpecialChar TeX
19707  Code (shortcut 
19708 \begin_inset Info
19709 type  "shortcut"
19710 arg   "ert-insert"
19711 \end_inset
19712
19713 ).
19714 \end_layout
19715
19716 \begin_layout Standard
19717
19718 \change_inserted 564990737 1672138150
19719
19720 \family sans
19721 enumi
19722 \family default
19723  is the first level counter of the enumeration.
19724  To change the numbering for the list sublevels,
19725  replace the “
19726 \family sans
19727 i
19728 \family default
19729 ” in the command by the small Roman numeral of the level (
19730 \family sans
19731 enumi
19732 \family default
19733 ,
19734  
19735 \family sans
19736 enumii
19737 \family default
19738 ,
19739  
19740 \family sans
19741 enumiii
19742 \family default
19743 ,
19744  
19745 \family sans
19746 enumiv
19747 \family default
19748 ).
19749 \end_layout
19750
19751 \begin_layout Standard
19752
19753 \change_inserted 564990737 1672138150
19754 The command 
19755 \family sans
19756
19757 \backslash
19758 roman
19759 \family default
19760  outputs the counter as a small Roman numeral.
19761  For capital Roman numerals replace 
19762 \family sans
19763
19764 \backslash
19765 roman
19766 \family default
19767  with 
19768 \family sans
19769
19770 \backslash
19771 Roman
19772 \family default
19773  in the command above.
19774  For Arabic numerals use 
19775 \family sans
19776
19777 \backslash
19778 arabic
19779 \family default
19780 .
19781  To 
19782 \begin_inset Quotes eld
19783 \end_inset
19784
19785 number
19786 \begin_inset Quotes erd
19787 \end_inset
19788
19789  items with capital or small Latin letters use 
19790 \family sans
19791
19792 \backslash
19793 Alph
19794 \family default
19795  or 
19796 \family sans
19797
19798 \backslash
19799 alph
19800 \family default
19801 ,
19802  respectively.
19803 \end_layout
19804
19805 \begin_layout Standard
19806 \noindent
19807
19808 \change_inserted 564990737 1672138150
19809 \begin_inset Note Greyedout
19810 status open
19811
19812 \begin_layout Plain Layout
19813
19814 \change_inserted 564990737 1672138150
19815
19816 \series bold
19817 Note:
19818
19819 \series default
19820  You can only number 26
19821 \begin_inset space ~
19822 \end_inset
19823
19824 items with Latin letters,
19825  because this numbering is limited to single letters.
19826 \end_layout
19827
19828 \end_inset
19829
19830
19831 \end_layout
19832
19833 \begin_layout Standard
19834
19835 \change_inserted 564990737 1672138150
19836 Here is a list with custom numbering:
19837 \end_layout
19838
19839 \begin_layout Enumerate
19840
19841 \change_inserted 564990737 1672138150
19842 \begin_inset Argument 1
19843 status collapsed
19844
19845 \begin_layout Plain Layout
19846
19847 \change_inserted 564990737 1672138150
19848 \begin_inset ERT
19849 status collapsed
19850
19851 \begin_layout Plain Layout
19852
19853 \change_inserted 564990737 1672138150
19854
19855 label=
19856 \backslash
19857 #
19858 \backslash
19859 Alph{enumi}
19860 \backslash
19861 #
19862 \end_layout
19863
19864 \end_inset
19865
19866
19867 \change_unchanged
19868
19869 \end_layout
19870
19871 \end_inset
19872
19873 Level 1
19874 \begin_inset Separator latexpar
19875 \end_inset
19876
19877
19878 \end_layout
19879
19880 \begin_deeper
19881 \begin_layout Enumerate
19882
19883 \change_inserted 564990737 1672138150
19884 \begin_inset Argument 1
19885 status collapsed
19886
19887 \begin_layout Plain Layout
19888
19889 \change_inserted 564990737 1672138150
19890 \begin_inset ERT
19891 status collapsed
19892
19893 \begin_layout Plain Layout
19894
19895 \change_inserted 564990737 1672138150
19896
19897 label=
19898 \backslash
19899 Alph{enumi}.
19900 \backslash
19901 arabic{enumii}
19902 \end_layout
19903
19904 \end_inset
19905
19906
19907 \change_unchanged
19908
19909 \end_layout
19910
19911 \end_inset
19912
19913 Level 2
19914 \end_layout
19915
19916 \begin_layout Enumerate
19917
19918 \change_inserted 564990737 1672138150
19919 Level 2
19920 \begin_inset Separator latexpar
19921 \end_inset
19922
19923
19924 \end_layout
19925
19926 \begin_deeper
19927 \begin_layout Enumerate
19928
19929 \change_inserted 564990737 1672138150
19930 \begin_inset Argument 1
19931 status collapsed
19932
19933 \begin_layout Plain Layout
19934
19935 \change_inserted 564990737 1672138150
19936 \begin_inset ERT
19937 status collapsed
19938
19939 \begin_layout Plain Layout
19940
19941 \change_inserted 564990737 1672138150
19942
19943 label=
19944 \change_deleted 274215730 1672889016
19945
19946 \backslash
19947 bf
19948 \change_inserted 274215730 1672889016
19949
19950 \backslash
19951 bfseries
19952 \change_inserted 564990737 1672138150
19953 {
19954 \backslash
19955 arabic{enumiii}}
19956 \end_layout
19957
19958 \end_inset
19959
19960
19961 \change_unchanged
19962
19963 \end_layout
19964
19965 \end_inset
19966
19967 Level 3
19968 \begin_inset Separator latexpar
19969 \end_inset
19970
19971
19972 \end_layout
19973
19974 \begin_deeper
19975 \begin_layout Enumerate
19976
19977 \change_inserted 564990737 1672138150
19978 \begin_inset Argument 1
19979 status collapsed
19980
19981 \begin_layout Plain Layout
19982
19983 \change_inserted 564990737 1672138150
19984 \begin_inset ERT
19985 status collapsed
19986
19987 \begin_layout Plain Layout
19988
19989 \change_inserted 564990737 1672138150
19990
19991 label=
19992 \backslash
19993 emph{
19994 \backslash
19995 roman{enumiv})}
19996 \end_layout
19997
19998 \end_inset
19999
20000
20001 \change_unchanged
20002
20003 \end_layout
20004
20005 \end_inset
20006
20007 Level 4
20008 \end_layout
20009
20010 \end_deeper
20011 \end_deeper
20012 \end_deeper
20013 \begin_layout Standard
20014
20015 \change_inserted 564990737 1672138150
20016 For this list these commands were used:
20017 \end_layout
20018
20019 \begin_layout Standard
20020 \noindent
20021
20022 \change_inserted 564990737 1672138150
20023
20024 \family sans
20025 label=
20026 \backslash
20027 #
20028 \backslash
20029 Alph{enumi}
20030 \backslash
20031 #
20032 \begin_inset Newline newline
20033 \end_inset
20034
20035 label=
20036 \backslash
20037 Alph{enumi}.
20038 \backslash
20039 arabic{enumii}
20040 \begin_inset Newline newline
20041 \end_inset
20042
20043 label=
20044 \change_deleted 274215730 1672889037
20045
20046 \backslash
20047 bf
20048 \change_inserted 274215730 1672889037
20049
20050 \backslash
20051 bfseries
20052 \change_inserted 564990737 1672138150
20053 {
20054 \backslash
20055 arabic{enumiii}}
20056 \begin_inset Newline newline
20057 \end_inset
20058
20059 label=
20060 \backslash
20061 emph{
20062 \backslash
20063 roman{enumiv})}
20064 \end_layout
20065
20066 \begin_layout Standard
20067
20068 \change_inserted 564990737 1672138150
20069 where the command 
20070 \family sans
20071
20072 \backslash
20073 emph{}
20074 \family default
20075  makes the label emphasized and 
20076 \change_deleted 274215730 1672889045
20077
20078 \family sans
20079
20080 \backslash
20081 bf{}
20082 \change_inserted 274215730 1672889046
20083
20084 \backslash
20085 bfseries{}
20086 \change_inserted 564990737 1672138150
20087
20088 \family default
20089  makes it bold.
20090 \end_layout
20091
20092 \begin_layout Standard
20093
20094 \change_inserted 564990737 1672138150
20095 \begin_inset Note Greyedout
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099
20100 \change_inserted 564990737 1672138150
20101
20102 \series bold
20103 Note:
20104
20105 \series default
20106  When you change the label of a list level,
20107  it will be used for all following lists until you change the definition.
20108 \end_layout
20109
20110 \end_inset
20111
20112
20113 \end_layout
20114
20115 \begin_layout Standard
20116
20117 \change_inserted 564990737 1672138150
20118 \begin_inset ERT
20119 status open
20120
20121 \begin_layout Plain Layout
20122
20123 \change_inserted 564990737 1672138150
20124
20125
20126 \backslash
20127 renewcommand{
20128 \backslash
20129 labelenumi}{
20130 \backslash
20131 thesection.
20132 \backslash
20133 arabic{enumi}}
20134 \end_layout
20135
20136 \end_inset
20137
20138
20139 \end_layout
20140
20141 \begin_layout Subsubsection
20142
20143 \change_inserted 564990737 1672138150
20144 Numbered Paragraphs in Reports
20145 \end_layout
20146
20147 \begin_layout Enumerate
20148
20149 \change_inserted 564990737 1672138213
20150 Official reports often include numbered paragraphs;
20151  you can achieve this with a variation on the approach outlined in 
20152 \change_deleted -712698321 1674916429
20153 the
20154 \change_inserted 564990737 1672138213
20155  
20156 \change_deleted -712698321 1674916431
20157 footnote
20158 \change_inserted -712698321 1674916432
20159 section
20160 \change_inserted 564990737 1672138213
20161
20162 \begin_inset space ~
20163 \end_inset
20164
20165
20166 \change_inserted -712698321 1674916425
20167
20168 \begin_inset CommandInset ref
20169 LatexCommand ref
20170 reference "sec:How-to-use"
20171
20172 \end_inset
20173
20174
20175 \change_deleted -712698321 1674916426
20176
20177 \begin_inset CommandInset ref
20178 LatexCommand ref
20179 reference "fn:If-you-really"
20180 plural "false"
20181 caps "false"
20182 noprefix "false"
20183 nolink "false"
20184
20185 \end_inset
20186
20187
20188 \change_inserted 564990737 1672138213
20189 .
20190  Replace 
20191 \family sans
20192 item
20193 \family default
20194  in each command with 
20195 \family sans
20196 enum
20197 \family default
20198 .
20199 \end_layout
20200
20201 \begin_layout Enumerate
20202
20203 \change_inserted 564990737 1672138150
20204 These numbered paragraphs were generated by inserting the \SpecialChar TeX
20205  Code
20206 \begin_inset Separator latexpar
20207 \end_inset
20208
20209
20210 \end_layout
20211
20212 \begin_deeper
20213 \begin_layout Standard
20214
20215 \change_inserted 564990737 1672138150
20216
20217 \family sans
20218
20219 \backslash
20220 renewcommand{
20221 \backslash
20222 labelenumi}{
20223 \backslash
20224 thesection.
20225 \backslash
20226 arabic{enumi}}
20227 \end_layout
20228
20229 \begin_layout Standard
20230
20231 \change_inserted 564990737 1672138150
20232 before the start of the section;
20233  
20234 \family sans
20235
20236 \backslash
20237 thesection
20238 \family default
20239  uses the \SpecialChar LaTeX
20240  section counter to generate the first part of the number.
20241 \end_layout
20242
20243 \end_deeper
20244 \begin_layout Enumerate
20245
20246 \change_inserted 564990737 1672138150
20247 I have ignored the subsection heading in this example because,
20248  with paragraphs numbered in this way,
20249  subsections are less likely to be used.
20250 \end_layout
20251
20252 \begin_layout Subsubsection
20253
20254 \change_inserted 564990737 1672138150
20255 Resumed Enumeration
20256 \end_layout
20257
20258 \begin_layout Standard
20259
20260 \change_inserted 564990737 1672138150
20261 \begin_inset ERT
20262 status open
20263
20264 \begin_layout Plain Layout
20265
20266 \change_inserted 564990737 1672138150
20267
20268
20269 \backslash
20270 renewcommand{
20271 \backslash
20272 labelenumi}{
20273 \backslash
20274 arabic{enumi}}
20275 \end_layout
20276
20277 \end_inset
20278
20279
20280 \end_layout
20281
20282 \begin_layout Standard
20283
20284 \change_inserted 564990737 1672138150
20285 Enumerations can be resumed after intermediate paragraphs:
20286 \end_layout
20287
20288 \begin_layout Enumerate
20289
20290 \change_inserted 564990737 1672138150
20291 \begin_inset Argument 1
20292 status collapsed
20293
20294 \begin_layout Plain Layout
20295
20296 \change_inserted 564990737 1672138150
20297 \begin_inset ERT
20298 status collapsed
20299
20300 \begin_layout Plain Layout
20301
20302 \change_inserted 564990737 1672138150
20303
20304 label=
20305 \backslash
20306 arabic{enumi}.
20307 \end_layout
20308
20309 \end_inset
20310
20311
20312 \change_unchanged
20313
20314 \end_layout
20315
20316 \end_inset
20317
20318 first
20319 \begin_inset Note Note
20320 status collapsed
20321
20322 \begin_layout Plain Layout
20323
20324 \change_inserted 564990737 1672138150
20325 goes back to default numbering
20326 \end_layout
20327
20328 \end_inset
20329
20330
20331 \end_layout
20332
20333 \begin_layout Enumerate
20334
20335 \change_inserted 564990737 1672138150
20336 second
20337 \end_layout
20338
20339 \begin_layout Standard
20340
20341 \change_inserted 564990737 1672138150
20342 regular text
20343 \end_layout
20344
20345 \begin_layout Enumerate-Resume
20346
20347 \change_inserted 564990737 1672138150
20348 resumed
20349 \end_layout
20350
20351 \begin_layout Standard
20352
20353 \change_inserted 564990737 1672138150
20354 To resume an enumeration,
20355  use the style 
20356 \family sans
20357 Enumerate-Resume
20358 \family default
20359 .
20360
20361 \change_deleted -712698321 1673882803
20362  Its numbering appears in blue within \SpecialChar LyX
20363  to indicate that it is a resumed list and that the numbering will not be correct in \SpecialChar LyX
20364 ,
20365  but in the output.
20366 \change_inserted 564990737 1672138150
20367
20368 \end_layout
20369
20370 \begin_layout Standard
20371
20372 \change_inserted 564990737 1672138150
20373 \begin_inset Note Greyedout
20374 status open
20375
20376 \begin_layout Plain Layout
20377
20378 \change_inserted 564990737 1672138150
20379
20380 \series bold
20381 Note:
20382
20383 \series default
20384  If there is no previous enumeration to resume,
20385  you will get a \SpecialChar LaTeX
20386  error.
20387 \end_layout
20388
20389 \end_inset
20390
20391
20392 \end_layout
20393
20394 \begin_layout Standard
20395
20396 \change_inserted 564990737 1672138150
20397 Perhaps you might want to resume the list with a different number from the next one.
20398  Or you want to start a new enumeration with a defined number.
20399  This is possible by adding an optional argument to the first list item of a normal enumeration.
20400  There,
20401  insert the command
20402 \end_layout
20403
20404 \begin_layout Standard
20405
20406 \change_inserted 564990737 1672138150
20407
20408 \family sans
20409 start=number
20410 \end_layout
20411
20412 \begin_layout Standard
20413
20414 \change_inserted 564990737 1672138150
20415 where 
20416 \family sans
20417 number
20418 \family default
20419  is the number with which you want to resume the list.
20420  An example:
20421 \end_layout
20422
20423 \begin_layout Enumerate
20424
20425 \change_inserted 564990737 1672138150
20426 first item
20427 \end_layout
20428
20429 \begin_layout Enumerate
20430
20431 \change_inserted 564990737 1672138150
20432 second item
20433 \end_layout
20434
20435 \begin_layout Standard
20436
20437 \change_inserted 564990737 1672138150
20438 Enumeration starting at a given value:
20439 \end_layout
20440
20441 \begin_layout Enumerate
20442
20443 \change_inserted 564990737 1672138150
20444 \begin_inset Argument 1
20445 status open
20446
20447 \begin_layout Plain Layout
20448
20449 \change_inserted 564990737 1672138150
20450 \begin_inset ERT
20451 status collapsed
20452
20453 \begin_layout Plain Layout
20454
20455 \change_inserted 564990737 1672138150
20456
20457 start=4
20458 \end_layout
20459
20460 \end_inset
20461
20462
20463 \change_unchanged
20464
20465 \end_layout
20466
20467 \end_inset
20468
20469 This enumeration starts at 4
20470 \end_layout
20471
20472 \begin_layout Subsubsection
20473
20474 \change_inserted 564990737 1672138150
20475 List Spacing
20476 \begin_inset Index idx
20477 range none
20478 pageformat default
20479 status collapsed
20480
20481 \begin_layout Plain Layout
20482
20483 \change_inserted 564990737 1672138150
20484 Lists !
20485  Spacing
20486 \change_unchanged
20487
20488 \end_layout
20489
20490 \end_inset
20491
20492
20493 \end_layout
20494
20495 \begin_layout Standard
20496
20497 \change_inserted 564990737 1672138150
20498 In some cases you might want less or more vertical space between the items of a list.
20499  For example if the default space is too much in your opinion in this case:
20500 \end_layout
20501
20502 \begin_layout Itemize
20503
20504 \change_inserted 564990737 1672138150
20505 A bullet list
20506 \end_layout
20507
20508 \begin_layout Itemize
20509
20510 \change_inserted 564990737 1672138150
20511 with standard spacing 
20512 \end_layout
20513
20514 \begin_layout Standard
20515
20516 \change_inserted 564990737 1672138150
20517 You can decrease the space by adding an optional argument to the first item of the list.
20518  Add there the command 
20519 \family sans
20520 nolistsep
20521 \family default
20522  to get no additional list space like in this example:
20523 \end_layout
20524
20525 \begin_layout Itemize
20526
20527 \change_inserted 564990737 1672138150
20528 \begin_inset Argument 1
20529 status open
20530
20531 \begin_layout Plain Layout
20532
20533 \change_inserted 564990737 1672138150
20534 \begin_inset ERT
20535 status collapsed
20536
20537 \begin_layout Plain Layout
20538
20539 \change_inserted 564990737 1672138150
20540
20541 nolistsep
20542 \end_layout
20543
20544 \end_inset
20545
20546
20547 \change_unchanged
20548
20549 \end_layout
20550
20551 \end_inset
20552
20553 A bullet list
20554 \end_layout
20555
20556 \begin_layout Itemize
20557
20558 \change_inserted 564990737 1672138150
20559 without additional
20560 \end_layout
20561
20562 \begin_layout Itemize
20563
20564 \change_inserted 564990737 1672138150
20565 vertical space
20566 \end_layout
20567
20568 \begin_layout Standard
20569
20570 \change_inserted 564990737 1672138150
20571 To add space you can use several other commands provided by the 
20572 \family sans
20573 enumitem
20574 \family default
20575
20576 \begin_inset Index idx
20577 range none
20578 pageformat default
20579 status collapsed
20580
20581 \begin_layout Plain Layout
20582
20583 \change_inserted 564990737 1672138150
20584 \SpecialChar LaTeX
20585 -packages !
20586  enumitem
20587 \change_unchanged
20588
20589 \end_layout
20590
20591 \end_inset
20592
20593  package.
20594  For more information see the 
20595 \begin_inset CommandInset href
20596 LatexCommand href
20597 name "enumitem documentation"
20598 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
20599 literal "false"
20600
20601 \end_inset
20602
20603 .
20604 \end_layout
20605
20606 \begin_layout Standard
20607
20608 \change_inserted 564990737 1672138150
20609 There are also many commands available to change the horizontal spacing and indentation.
20610  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
20611 \begin_inset space \thinspace{}
20612 \end_inset
20613
20614 cm so that the number is in the page margin:
20615 \end_layout
20616
20617 \begin_layout Enumerate
20618
20619 \change_inserted 564990737 1672138150
20620 \begin_inset Argument 1
20621 status open
20622
20623 \begin_layout Plain Layout
20624
20625 \change_inserted 564990737 1672138150
20626 \begin_inset ERT
20627 status collapsed
20628
20629 \begin_layout Plain Layout
20630
20631 \change_inserted 564990737 1672138150
20632
20633 labelindent=
20634 \backslash
20635 parindent,
20636  labelsep=2cm
20637 \end_layout
20638
20639 \end_inset
20640
20641
20642 \change_unchanged
20643
20644 \end_layout
20645
20646 \end_inset
20647
20648 An enumeration
20649 \end_layout
20650
20651 \begin_layout Enumerate
20652
20653 \change_inserted 564990737 1672138150
20654 with negative indentation
20655 \end_layout
20656
20657 \begin_layout Subsubsection
20658
20659 \change_inserted 564990737 1672138150
20660 Further Customization
20661 \begin_inset Index idx
20662 range none
20663 pageformat default
20664 status collapsed
20665
20666 \begin_layout Plain Layout
20667
20668 \change_inserted 564990737 1672138150
20669 Lists !
20670  Customization
20671 \change_unchanged
20672
20673 \end_layout
20674
20675 \end_inset
20676
20677
20678 \end_layout
20679
20680 \begin_layout Standard
20681
20682 \change_inserted 564990737 1672138150
20683 You can also change the style of description lists.
20684  The command
20685 \end_layout
20686
20687 \begin_layout Standard
20688
20689 \change_inserted 564990737 1672138150
20690
20691 \family sans
20692 font=definition
20693 \end_layout
20694
20695 \begin_layout Standard
20696
20697 \change_inserted 564990737 1672138150
20698 changes the description label font,
20699  the command
20700 \end_layout
20701
20702 \begin_layout Standard
20703
20704 \change_inserted 564990737 1672138150
20705
20706 \family sans
20707 style=definitio
20708 \family default
20709 \series bold
20710 n
20711 \end_layout
20712
20713 \begin_layout Standard
20714
20715 \change_inserted 564990737 1672138150
20716 sets the list style.
20717 \end_layout
20718
20719 \begin_layout Standard
20720
20721 \change_inserted 564990737 1672138150
20722 An example where the command
20723 \end_layout
20724
20725 \begin_layout Standard
20726
20727 \change_inserted 564990737 1672138150
20728
20729 \family sans
20730 font=
20731 \backslash
20732 itshape,
20733  style=nextline
20734 \end_layout
20735
20736 \begin_layout Standard
20737
20738 \change_inserted 564990737 1672138150
20739 is used:
20740 \end_layout
20741
20742 \begin_layout Description
20743
20744 \change_inserted 564990737 1672138150
20745 Ionizing
20746 \begin_inset space ~
20747 \end_inset
20748
20749 radiation:
20750  
20751 \begin_inset Argument 1
20752 status collapsed
20753
20754 \begin_layout Plain Layout
20755
20756 \change_inserted 564990737 1672138150
20757 \begin_inset ERT
20758 status collapsed
20759
20760 \begin_layout Plain Layout
20761
20762 \change_inserted 564990737 1672138150
20763
20764 labelindent=0pt,
20765  labelsep=1cm,
20766  font=
20767 \backslash
20768 itshape,
20769  style=nextline
20770 \end_layout
20771
20772 \end_inset
20773
20774
20775 \change_unchanged
20776
20777 \end_layout
20778
20779 \end_inset
20780
20781 Ionizing radiation consists of particles or electromagnetic waves that are energetic enough to detach electrons from atoms or molecules,
20782  therefore ionizing them.
20783 \end_layout
20784
20785 \begin_layout Description
20786
20787 \change_inserted 564990737 1672138150
20788 Reference
20789 \begin_inset space ~
20790 \end_inset
20791
20792 counting:
20793  In computer science,
20794  reference counting is a technique of storing the number of references,
20795  pointers,
20796  or handles to a resource such as an object,
20797  block of memory,
20798  disk space or other resource.
20799 \end_layout
20800
20801 \begin_layout Standard
20802
20803 \change_inserted 564990737 1672138150
20804 There are many more commands and features provided by the 
20805 \family sans
20806 enumitem
20807 \family default
20808
20809 \begin_inset Index idx
20810 range none
20811 pageformat default
20812 status collapsed
20813
20814 \begin_layout Plain Layout
20815
20816 \change_inserted 564990737 1672138150
20817 \SpecialChar LaTeX
20818 -packages !
20819  enumitem
20820 \change_unchanged
20821
20822 \end_layout
20823
20824 \end_inset
20825
20826  package.
20827  For more information see the 
20828 \begin_inset CommandInset href
20829 LatexCommand href
20830 name "enumitem documentation"
20831 target "http://mirrors.ctan.org/macros/latex/contrib/enumitem/enumitem.pdf"
20832 literal "false"
20833
20834 \end_inset
20835
20836 .
20837 \end_layout
20838
20839 \begin_layout Subsection
20840
20841 \change_inserted 564990737 1672138150
20842
20843 \series bold
20844 Paragraph Lists
20845 \end_layout
20846
20847 \begin_layout Standard
20848
20849 \change_inserted 564990737 1672138150
20850 This module uses the package 
20851 \family sans
20852 paralist
20853 \family default
20854  to provide nine new list environments.
20855  Itemized and enumerated lists can be typeset within paragraphs,
20856  as paragraphs and in a compact version.
20857  Most environments have optional arguments to format the labels.
20858  Additionally,
20859  the \SpecialChar LaTeX
20860  list environments itemize and enumerate are extended to use a similar optional argument.
20861  For further details see 
20862 \family sans
20863 File\SpecialChar menuseparator
20864 Open Example\SpecialChar menuseparator
20865 Modules\SpecialChar menuseparator
20866 Paragraph Lists (paralist)
20867 \family default
20868 ,
20869  
20870 \family sans
20871 Help\SpecialChar menuseparator
20872 Specific Manuals\SpecialChar menuseparator
20873 Paralist
20874 \family default
20875  and the 
20876 \begin_inset CommandInset href
20877 LatexCommand href
20878 name "paralist documentation"
20879 target "http://mirrors.ctan.org/macros/latex/contrib/paralist/paralist.pdf"
20880 literal "false"
20881
20882 \end_inset
20883
20884 .
20885 \end_layout
20886
20887 \begin_layout Section
20888
20889 \change_inserted 564990737 1672161542
20890 Literate Programming
20891 \change_deleted -712698321 1673885680
20892  
20893 \change_inserted 564990737 1672161542
20894
20895 \end_layout
20896
20897 \begin_layout Subsection
20898
20899 \change_inserted 564990737 1672161542
20900 Noweb
20901 \end_layout
20902
20903 \begin_layout Standard
20904
20905 \change_inserted 564990737 1672161542
20906 This module allows the use of Noweb as a literate programming tool.
20907  The files and the documentation for Noweb can be obtained from 
20908 \begin_inset CommandInset href
20909 LatexCommand href
20910 name "CTAN"
20911 target "https://www.ctan.org/pkg/noweb"
20912 literal "false"
20913
20914 \end_inset
20915
20916 .
20917  Literate programming is described in section
20918 \begin_inset space ~
20919 \end_inset
20920
20921
20922 \begin_inset CommandInset ref
20923 LatexCommand ref
20924 reference "sec:Literate-Programming"
20925 nolink "false"
20926
20927 \end_inset
20928
20929  and there are three example files:
20930  
20931 \family sans
20932 File\SpecialChar menuseparator
20933 Open Example\SpecialChar menuseparator
20934 Modules\SpecialChar menuseparator
20935 Noweb
20936 \family default
20937 ,
20938  
20939 \family sans
20940 File\SpecialChar menuseparator
20941 Open Example\SpecialChar menuseparator
20942 Modules\SpecialChar menuseparator
20943 Noweb Listerrors
20944 \family default
20945  and 
20946 \family sans
20947 File\SpecialChar menuseparator
20948 Open Example\SpecialChar menuseparator
20949 Modules\SpecialChar menuseparator
20950 Noweb2\SpecialChar LyX
20951
20952 \family default
20953 .
20954 \end_layout
20955
20956 \begin_layout Subsection
20957
20958 \change_inserted 564990737 1672161542
20959 Rnw (knitr)
20960 \end_layout
20961
20962 \begin_layout Standard
20963
20964 \change_inserted 564990737 1672161542
20965 This module uses the 
20966 \family typewriter
20967 knitr
20968 \family default
20969  and 
20970 \family sans
20971 includernw
20972 \family default
20973  packages.
20974  The
20975 \begin_inset Flex Code
20976 status collapsed
20977
20978 \begin_layout Plain Layout
20979
20980 \change_inserted 564990737 1672161542
20981 knitr
20982 \change_unchanged
20983
20984 \end_layout
20985
20986 \end_inset
20987
20988  package in R for dynamic report generation has to be installed for this module to work:
20989  
20990 \begin_inset Flex Code
20991 status collapsed
20992
20993 \begin_layout Plain Layout
20994
20995 \change_inserted 564990737 1672161542
20996 install.packages(“knitr”)
20997 \change_unchanged
20998
20999 \end_layout
21000
21001 \end_inset
21002
21003 .
21004  
21005 \end_layout
21006
21007 \begin_layout Paragraph
21008
21009 \change_inserted 564990737 1672161542
21010 Note 
21011 \end_layout
21012
21013 \begin_layout Itemize
21014
21015 \change_inserted 564990737 1672161542
21016 it depends on R >= 2.14.1.
21017  For more info see 
21018 \begin_inset Flex URL
21019 status collapsed
21020
21021 \begin_layout Plain Layout
21022
21023 \change_inserted 564990737 1672161542
21024
21025 http://yihui.name/knitr
21026 \change_unchanged
21027
21028 \end_layout
21029
21030 \end_inset
21031
21032 .
21033
21034 \change_deleted -712698321 1673886383
21035  
21036 \change_inserted 564990737 1672161542
21037
21038 \end_layout
21039
21040 \begin_layout Itemize
21041
21042 \change_inserted 564990737 1672161542
21043 The package 
21044 \family sans
21045 includernw
21046 \family default
21047  also has to be installed.
21048  
21049 \change_inserted -712698321 1673886396
21050
21051 \end_layout
21052
21053 \begin_layout Itemize
21054
21055 \change_inserted 564990737 1672161542
21056 It cannot be used if the modules 
21057 \family sans
21058 LilyPond
21059 \begin_inset space ~
21060 \end_inset
21061
21062 Book
21063 \family default
21064  or 
21065 \family sans
21066 Sweave
21067 \family default
21068  are loaded.
21069
21070 \change_deleted -712698321 1673886383
21071  
21072 \change_inserted -712698321 1673886376
21073
21074 \end_layout
21075
21076 \begin_layout Standard
21077
21078 \change_inserted 564990737 1672161542
21079 See 
21080 \family sans
21081 Help\SpecialChar menuseparator
21082 Specific Manuals\SpecialChar menuseparator
21083 Knitr
21084 \family default
21085 ,
21086  
21087 \family sans
21088 File\SpecialChar menuseparator
21089 Open Example\SpecialChar menuseparator
21090 Modules\SpecialChar menuseparator
21091 Rnw (knitr)
21092 \family default
21093  and section
21094 \begin_inset space ~
21095 \end_inset
21096
21097
21098 \begin_inset CommandInset ref
21099 LatexCommand ref
21100 reference "sec:Literate-Programming"
21101 nolink "false"
21102
21103 \end_inset
21104
21105  for information about literate programming.
21106 \end_layout
21107
21108 \begin_layout Subsection
21109
21110 \change_inserted 564990737 1672161542
21111 Sweave
21112 \end_layout
21113
21114 \begin_layout Standard
21115
21116 \change_inserted 564990737 1672161542
21117 This module allows the use of the statistical language S/R as a literate programming tool.
21118  It requires the 
21119 \family sans
21120 includernw
21121 \family default
21122  and 
21123 \family sans
21124 fancyvrb
21125 \family default
21126  packages.
21127  Both 
21128 \begin_inset CommandInset href
21129 LatexCommand href
21130 name "includernw"
21131 target "https://www.ctan.org/pkg/includernw"
21132 literal "false"
21133
21134 \end_inset
21135
21136  and 
21137 \begin_inset CommandInset href
21138 LatexCommand href
21139 name "fancyvrb"
21140 target "https://www.ctan.org/pkg/fancyvrb"
21141 literal "false"
21142
21143 \end_inset
21144
21145  are available from CTAN.
21146  It cannot be used if the module 
21147 \family sans
21148 LilyPond
21149 \begin_inset space ~
21150 \end_inset
21151
21152 Book
21153 \family default
21154  has been loaded.
21155  See 
21156 \family sans
21157 Help\SpecialChar menuseparator
21158 Specific Manuals\SpecialChar menuseparator
21159 Sweave,
21160
21161 \family default
21162  
21163 \family sans
21164 File\SpecialChar menuseparator
21165 Open Example\SpecialChar menuseparator
21166 Modules\SpecialChar menuseparator
21167 Sweave
21168 \family default
21169  and section
21170 \begin_inset space ~
21171 \end_inset
21172
21173
21174 \begin_inset CommandInset ref
21175 LatexCommand ref
21176 reference "sec:Literate-Programming"
21177 nolink "false"
21178
21179 \end_inset
21180
21181  for information about literate programming.
21182 \end_layout
21183
21184 \begin_layout Section
21185
21186 \change_inserted 564990737 1672224959
21187 Maths
21188 \end_layout
21189
21190 \begin_layout Subsection
21191
21192 \change_inserted 564990737 1672224959
21193 AMS Theorems
21194 \end_layout
21195
21196 \begin_layout Standard
21197
21198 \change_inserted 564990737 1672224959
21199 This modules defines theorem environments and the proof environment using the extended AMS machinery.
21200  Both numbered and unnumbered types are provided.
21201  By default,
21202  the theorems are numbered consecutively throughout the document.
21203  This can be changed by loading one of the 
21204 \family sans
21205 AMS Theorems (Numbered by \SpecialChar ldots
21206 )
21207 \family default
21208  modules.
21209  It cannot be used if the modules 
21210 \family sans
21211 Standard Theorems
21212 \family default
21213  or 
21214 \family sans
21215 Standard Theorems (Unnumbered)
21216 \family default
21217  have been loaded.
21218 \end_layout
21219
21220 \begin_layout Subsection
21221
21222 \change_inserted 564990737 1672224959
21223 AMS Theorems (Extended)
21224 \end_layout
21225
21226 \begin_layout Standard
21227
21228 \change_inserted 564990737 1672224959
21229 This module defines some additional theorem environments for use with the 
21230 \family sans
21231 AMS Theorems
21232 \family default
21233  package (which must be loaded).
21234  It includes 
21235 \family sans
21236 Criterion
21237 \family default
21238 ,
21239  
21240 \family sans
21241 Algorithm
21242 \family default
21243 ,
21244  
21245 \family sans
21246 Axiom
21247 \family default
21248 ,
21249  
21250 \family sans
21251 Condition
21252 \family default
21253 ,
21254  
21255 \family sans
21256 Note
21257 \family default
21258 ,
21259  
21260 \family sans
21261 Notation
21262 \family default
21263 ,
21264  
21265 \family sans
21266 Summary
21267 \family default
21268 ,
21269  
21270 \change_deleted -712698321 1675594790
21271
21272 \family sans
21273 Acknowledgement
21274 \family default
21275 ,
21276  
21277 \change_inserted 564990737 1672224959
21278
21279 \family sans
21280 Conclusion
21281 \family default
21282 ,
21283  
21284 \family sans
21285 Fact
21286 \family default
21287 ,
21288  
21289 \family sans
21290 Assumption
21291 \family default
21292 ,
21293  
21294 \family sans
21295 Case
21296 \family default
21297  and 
21298 \family sans
21299 Question
21300 \family default
21301  in both numbered and unnumbered forms.
21302 \end_layout
21303
21304 \begin_layout Subsection
21305
21306 \change_inserted 564990737 1672224959
21307 AMS Theorems (Extended,
21308  Numbered by Type within Chapters)
21309 \end_layout
21310
21311 \begin_layout Standard
21312
21313 \change_inserted 564990737 1672224959
21314 This module defines some additional theorem environments for use with the 
21315 \family sans
21316 AMS Theorems (Numbered by Type within Chapters)
21317 \family default
21318  
21319 \change_deleted -712698321 1674898102
21320 package
21321 \change_inserted -712698321 1674898103
21322 module
21323 \change_inserted 564990737 1672224959
21324  (which must be loaded).
21325  It includes 
21326 \family sans
21327 Criterion
21328 \family default
21329 ,
21330  
21331 \family sans
21332 Algorithm
21333 \family default
21334 ,
21335  
21336 \family sans
21337 Axiom
21338 \family default
21339 ,
21340  
21341 \family sans
21342 Condition
21343 \family default
21344 ,
21345  
21346 \family sans
21347 Note
21348 \family default
21349 ,
21350  
21351 \family sans
21352 Notation
21353 \family default
21354 ,
21355  
21356 \family sans
21357 Summary
21358 \family default
21359 ,
21360  
21361 \change_deleted -712698321 1675594800
21362
21363 \family sans
21364 Acknowledgement
21365 \family default
21366 ,
21367  
21368 \change_inserted 564990737 1672224959
21369
21370 \family sans
21371 Conclusion
21372 \family default
21373 ,
21374  
21375 \family sans
21376 Assumption
21377 \family default
21378  and 
21379 \family sans
21380 Case
21381 \family default
21382  in both numbered and unnumbered forms.
21383  
21384 \change_inserted -712698321 1674898226
21385
21386 \end_layout
21387
21388 \begin_layout Standard
21389
21390 \change_inserted 564990737 1672224959
21391 Unlike the 
21392 \family sans
21393 AMS Theorems (Extended)
21394 \family default
21395  module,
21396  the different theorem types provided here each have a separate counter,
21397  restarted with each new chapter (e.g.,
21398  
21399 \change_deleted -712698321 1674898319
21400
21401 \emph on
21402 c
21403 \change_inserted -712698321 1674898319
21404 C
21405 \change_inserted 564990737 1672224959
21406 riterion 1.1
21407 \emph default
21408 ,
21409  
21410 \change_deleted -712698321 1674898320
21411
21412 \emph on
21413 c
21414 \change_inserted -712698321 1674898321
21415 C
21416 \change_inserted 564990737 1672224959
21417 riterion 1.2
21418 \emph default
21419 ,
21420  
21421 \change_deleted -712698321 1674898322
21422
21423 \emph on
21424 a
21425 \change_inserted -712698321 1674898322
21426 A
21427 \change_inserted 564990737 1672224959
21428 xiom 1.1
21429 \emph default
21430 ,
21431  
21432 \change_deleted -712698321 1674898325
21433
21434 \emph on
21435 a
21436 \change_inserted -712698321 1674898325
21437 A
21438 \change_inserted 564990737 1672224959
21439 ssumption 1.1
21440 \emph default
21441 ,
21442  
21443 \change_deleted -712698321 1674898327
21444
21445 \emph on
21446 c
21447 \change_inserted -712698321 1674898327
21448 C
21449 \change_inserted 564990737 1672224959
21450 riterion 2.1
21451 \emph default
21452 ,
21453  
21454 \change_deleted -712698321 1674898329
21455
21456 \emph on
21457 c
21458 \change_inserted -712698321 1674898329
21459 C
21460 \change_inserted 564990737 1672224959
21461 riterion 2.2
21462 \emph default
21463 ,
21464
21465 \emph on
21466  
21467 \change_deleted -712698321 1674898339
21468 a
21469 \change_inserted -712698321 1674898339
21470 A
21471 \change_inserted 564990737 1672224959
21472 xiom 2.1
21473 \change_inserted -712698321 1674898336
21474
21475 \emph default
21476 ,
21477  
21478 \change_inserted 564990737 1672224959
21479 \SpecialChar ldots
21480 ,
21481  as opposed to 
21482 \change_deleted -712698321 1674898342
21483 c
21484 \change_inserted -712698321 1674898342
21485
21486 \emph on
21487 C
21488 \change_inserted 564990737 1672224959
21489 riterion 1
21490 \emph default
21491 ,
21492  
21493 \change_deleted -712698321 1674898344
21494 c
21495 \change_inserted -712698321 1674898344
21496
21497 \emph on
21498 C
21499 \change_inserted 564990737 1672224959
21500 riterion 2
21501 \emph default
21502 ,
21503  
21504 \change_deleted -712698321 1674898346
21505 a
21506 \change_inserted -712698321 1674898347
21507
21508 \emph on
21509 A
21510 \change_inserted 564990737 1672224959
21511 xiom 3
21512 \emph default
21513 ,
21514  
21515 \change_deleted -712698321 1674898348
21516 a
21517 \change_inserted -712698321 1674898348
21518
21519 \emph on
21520 A
21521 \change_inserted 564990737 1672224959
21522 ssumption 4
21523 \change_inserted -712698321 1674898350
21524
21525 \emph default
21526 ,
21527  
21528 \change_deleted -712698321 1674898352
21529 ...
21530 \change_inserted -712698321 1674898353
21531 \SpecialChar ldots
21532
21533 \change_inserted 564990737 1672224959
21534 ).
21535 \end_layout
21536
21537 \begin_layout Subsection
21538
21539 \change_inserted 564990737 1672224959
21540 AMS Theorems (Extended,
21541  Numbered by Type)
21542 \end_layout
21543
21544 \begin_layout Standard
21545
21546 \change_inserted 564990737 1672224959
21547 This module defines some additional theorem environments for use with the 
21548 \family sans
21549 AMS Theorems (Numbered by Type)
21550 \family default
21551  package (which must be loaded).
21552  It includes 
21553 \family sans
21554 Criterion
21555 \family default
21556 ,
21557  
21558 \family sans
21559 Algorithm
21560 \family default
21561 ,
21562  
21563 \family sans
21564 Axiom
21565 \family default
21566 ,
21567  
21568 \family sans
21569 Condition
21570 \family default
21571 ,
21572  
21573 \family sans
21574 Note
21575 \family default
21576 ,
21577  
21578 \family sans
21579 Notation
21580 \family default
21581 ,
21582  
21583 \family sans
21584 Summary
21585 \family default
21586 ,
21587  
21588 \change_deleted -712698321 1675594806
21589
21590 \family sans
21591 Acknowledgement
21592 \family default
21593 ,
21594
21595 \change_inserted 564990737 1672224959
21596  
21597 \family sans
21598 Conclusion
21599 \family default
21600 ,
21601  
21602 \family sans
21603 Assumption
21604 \family default
21605  and 
21606 \family sans
21607 Case
21608 \family default
21609  in both numbered and unnumbered forms.
21610  
21611 \change_inserted -712698321 1674898455
21612
21613 \end_layout
21614
21615 \begin_layout Standard
21616
21617 \change_inserted 564990737 1672224959
21618 Unlike the 
21619 \family sans
21620 AMS Theorems (Extended)
21621 \family default
21622  module,
21623  the different theorem types provided here each have a separate counter (e.g.,
21624  
21625 \change_deleted -712698321 1674898821
21626 c
21627 \change_inserted -712698321 1674898821
21628
21629 \emph on
21630 C
21631 \change_inserted 564990737 1672224959
21632 riterion 1
21633 \emph default
21634 ,
21635  
21636 \change_deleted -712698321 1674898823
21637 c
21638 \change_inserted -712698321 1674898823
21639
21640 \emph on
21641 C
21642 \change_inserted 564990737 1672224959
21643 riterion 2
21644 \emph default
21645 ,
21646  
21647 \change_deleted -712698321 1674898825
21648 a
21649 \change_inserted -712698321 1674898825
21650
21651 \emph on
21652 A
21653 \change_inserted 564990737 1672224959
21654 xiom 1
21655 \emph default
21656 ,
21657  
21658 \change_deleted -712698321 1674898827
21659 a
21660 \change_inserted -712698321 1674898827
21661
21662 \emph on
21663 A
21664 \change_inserted 564990737 1672224959
21665 ssumption 1
21666 \emph default
21667 ,
21668  
21669 \change_deleted -712698321 1674898830
21670 c
21671 \change_inserted -712698321 1674898830
21672
21673 \emph on
21674 C
21675 \change_inserted 564990737 1672224959
21676 riterion 3
21677 \emph default
21678 ,
21679  \SpecialChar ldots
21680 ,
21681  as opposed to 
21682 \change_deleted -712698321 1674898832
21683 c
21684 \change_inserted -712698321 1674898832
21685
21686 \emph on
21687 C
21688 \change_inserted 564990737 1672224959
21689 riterion 1
21690 \emph default
21691 ,
21692  
21693 \change_deleted -712698321 1674898834
21694 c
21695 \change_inserted -712698321 1674898834
21696
21697 \emph on
21698 C
21699 \change_inserted 564990737 1672224959
21700 riterion 2
21701 \emph default
21702 ,
21703  
21704 \change_deleted -712698321 1674898836
21705 a
21706 \change_inserted -712698321 1674898836
21707
21708 \emph on
21709 A
21710 \change_inserted 564990737 1672224959
21711 xiom 3
21712 \emph default
21713 ,
21714  
21715 \change_deleted -712698321 1674898838
21716 a
21717 \change_inserted -712698321 1674898838
21718
21719 \emph on
21720 A
21721 \change_inserted 564990737 1672224959
21722 ssumption 4
21723 \emph default
21724 ,
21725  \SpecialChar ldots
21726 ).
21727 \end_layout
21728
21729 \begin_layout Subsection
21730
21731 \change_inserted 564990737 1672224959
21732 AMS Theorems (Numbered by Type within Chapters) 
21733 \end_layout
21734
21735 \begin_layout Standard
21736
21737 \change_inserted 564990737 1672224959
21738 This module defines theorem environments and the proof environment using the extended AMS machinery.
21739  Both numbered and unnumbered types are provided.
21740  
21741 \change_inserted -712698321 1674901718
21742
21743 \end_layout
21744
21745 \begin_layout Standard
21746
21747 \change_inserted 564990737 1672224959
21748 Unlike the 
21749 \family sans
21750 AMS Theorems
21751 \family default
21752  module,
21753  the different theorem types provided here each have a separate counter (e.g.,
21754  
21755 \change_deleted -712698321 1674901843
21756 t
21757 \change_inserted -712698321 1674901843
21758
21759 \emph on
21760 T
21761 \change_inserted 564990737 1672224959
21762 heorem 1.1
21763 \emph default
21764 ,
21765  
21766 \change_deleted -712698321 1674901845
21767 t
21768 \change_inserted -712698321 1674901845
21769
21770 \emph on
21771 T
21772 \change_inserted 564990737 1672224959
21773 heorem 1.2
21774 \emph default
21775 ,
21776  
21777 \change_deleted -712698321 1674901847
21778
21779 \emph on
21780 l
21781 \change_inserted -712698321 1674901847
21782 L
21783 \change_inserted 564990737 1672224959
21784 emma 1.1
21785 \emph default
21786 ,
21787  
21788 \change_inserted -712698321 1674901849
21789
21790 \emph on
21791 P
21792 \change_deleted -712698321 1674901849
21793 p
21794 \change_inserted 564990737 1672224959
21795 roposition 1.1
21796 \emph default
21797 ,
21798  
21799 \change_inserted -712698321 1674901852
21800
21801 \emph on
21802 T
21803 \change_deleted -712698321 1674901852
21804 t
21805 \change_inserted 564990737 1672224959
21806 heorem 1.3
21807 \emph default
21808 ,
21809  
21810 \change_inserted -712698321 1674901854
21811
21812 \emph on
21813 L
21814 \change_deleted -712698321 1674901854
21815 l
21816 \change_inserted 564990737 1672224959
21817 emma 1.2
21818 \emph default
21819 ,
21820  \SpecialChar ldots
21821 ,
21822  as opposed to 
21823 \change_deleted -712698321 1674901859
21824 t
21825 \change_inserted -712698321 1674901859
21826
21827 \emph on
21828 T
21829 \change_inserted 564990737 1672224959
21830 heorem 1
21831 \emph default
21832 ,
21833  
21834 \change_deleted -712698321 1674901861
21835 t
21836 \change_inserted -712698321 1674901861
21837
21838 \emph on
21839 T
21840 \change_inserted 564990737 1672224959
21841 heorem 2
21842 \emph default
21843 ,
21844  
21845 \change_deleted -712698321 1674901863
21846 l
21847 \change_inserted -712698321 1674901863
21848
21849 \emph on
21850 L
21851 \change_inserted 564990737 1672224959
21852 emma 3
21853 \emph default
21854 ,
21855  
21856 \change_deleted -712698321 1674901868
21857 p
21858 \change_inserted -712698321 1674901868
21859
21860 \emph on
21861 P
21862 \change_inserted 564990737 1672224959
21863 roposition 4
21864 \emph default
21865 ,
21866  \SpecialChar ldots
21867 ).
21868  The numbering restarts for each chapter:
21869  
21870 \change_deleted -712698321 1674901871
21871 t
21872 \change_inserted -712698321 1674901871
21873
21874 \emph on
21875 T
21876 \change_inserted 564990737 1672224959
21877 heorem 1.1
21878 \emph default
21879 ,
21880  
21881 \change_deleted -712698321 1674901873
21882 t
21883 \change_inserted -712698321 1674901873
21884
21885 \emph on
21886 T
21887 \change_inserted 564990737 1672224959
21888 heorem 2.1
21889 \emph default
21890 ,
21891  \SpecialChar ldots
21892  
21893 \change_inserted -712698321 1674901725
21894
21895 \end_layout
21896
21897 \begin_layout Standard
21898
21899 \change_inserted 564990737 1672224959
21900 It cannot be used if the modules 
21901 \family sans
21902 AMS Theorems
21903 \family default
21904 ,
21905  
21906 \family sans
21907 Standard Theorems
21908 \family default
21909 ,
21910
21911 \family sans
21912  Standard Theorems (Numbered by Type)
21913 \family default
21914  or
21915 \family sans
21916  Standard Theorems (Unnumbered)
21917 \family default
21918  have been loaded.
21919 \end_layout
21920
21921 \begin_layout Subsection
21922
21923 \change_inserted 564990737 1672224959
21924 AMS Theorems (Numbered by Type)
21925 \end_layout
21926
21927 \begin_layout Standard
21928
21929 \change_inserted 564990737 1672224959
21930 This module defines theorem environments and the proof environment using the extended AMS machinery.
21931  Both numbered and unnumbered types are provided.
21932  Unlike the 
21933 \family sans
21934 AMS Theorems
21935 \family default
21936  module,
21937  the different theorem types provided here each have a separate counter (e.g.,
21938  
21939 \change_deleted -712698321 1674902051
21940 t
21941 \change_inserted -712698321 1674902051
21942
21943 \emph on
21944 T
21945 \change_inserted 564990737 1672224959
21946 heorem 1
21947 \emph default
21948 ,
21949  
21950 \change_deleted -712698321 1674902053
21951 t
21952 \change_inserted -712698321 1674902053
21953
21954 \emph on
21955 T
21956 \change_inserted 564990737 1672224959
21957 heorem 2
21958 \emph default
21959 ,
21960  
21961 \change_deleted -712698321 1674902055
21962 l
21963 \change_inserted -712698321 1674902055
21964
21965 \emph on
21966 L
21967 \change_inserted 564990737 1672224959
21968 emma 1
21969 \emph default
21970 ,
21971  
21972 \change_inserted -712698321 1674902058
21973
21974 \emph on
21975 P
21976 \change_deleted -712698321 1674902058
21977 p
21978 \change_inserted 564990737 1672224959
21979 roposition 1
21980 \emph default
21981 ,
21982  
21983 \change_inserted -712698321 1674902061
21984
21985 \emph on
21986 T
21987 \change_deleted -712698321 1674902060
21988 t
21989 \change_inserted 564990737 1672224959
21990 heorem 3
21991 \emph default
21992 ,
21993  
21994 \change_deleted -712698321 1674902063
21995 l
21996 \change_inserted -712698321 1674902063
21997
21998 \emph on
21999 L
22000 \change_inserted 564990737 1672224959
22001 emma 2
22002 \emph default
22003 ,
22004  \SpecialChar ldots
22005 ,
22006  as opposed to 
22007 \change_deleted -712698321 1674902066
22008 t
22009 \change_inserted -712698321 1674902067
22010
22011 \emph on
22012 T
22013 \change_inserted 564990737 1672224959
22014 heorem 1
22015 \emph default
22016 ,
22017  
22018 \change_deleted -712698321 1674902069
22019 t
22020 \change_inserted -712698321 1674902069
22021
22022 \emph on
22023 T
22024 \change_inserted 564990737 1672224959
22025 heorem 2
22026 \emph default
22027 ,
22028  
22029 \change_deleted -712698321 1674902071
22030 l
22031 \change_inserted -712698321 1674902071
22032
22033 \emph on
22034 L
22035 \change_inserted 564990737 1672224959
22036 emma 3
22037 \emph default
22038 ,
22039  
22040 \change_deleted -712698321 1674902075
22041 p
22042 \change_inserted -712698321 1674902075
22043
22044 \emph on
22045 P
22046 \change_inserted 564990737 1672224959
22047 roposition 4
22048 \emph default
22049 ,
22050  \SpecialChar ldots
22051 ).
22052  The numbering’s scope is the whole document.
22053  For chapter- and section-wide numbering,
22054  use one of the ‘within Sections’/‘within Chapters’ modules,
22055  respectively.
22056  
22057 \change_inserted -712698321 1674902047
22058
22059 \end_layout
22060
22061 \begin_layout Standard
22062
22063 \change_inserted 564990737 1672224959
22064 It cannot be used if the modules 
22065 \family sans
22066 AMS Theorems
22067 \family default
22068 ,
22069  
22070 \family sans
22071 Standard Theorems
22072 \family default
22073 ,
22074
22075 \family sans
22076  Standard Theorems (Numbered by Type)
22077 \family default
22078  or
22079 \family sans
22080  Standard Theorems (Unnumbered)
22081 \family default
22082  have been loaded.
22083 \end_layout
22084
22085 \begin_layout Subsection
22086
22087 \change_inserted 564990737 1672224959
22088 Number Equations by Section
22089 \end_layout
22090
22091 \begin_layout Standard
22092
22093 \change_inserted 564990737 1672224959
22094 This module resets the equation number at section start and prepends the section number to the equation number,
22095  as in 
22096 \change_deleted -712698321 1674902160
22097
22098 \change_inserted 564990737 1672224959
22099
22100 \emph on
22101 (2.1)
22102 \emph default
22103 .
22104 \change_deleted -712698321 1674902162
22105
22106 \change_inserted 564990737 1672224959
22107  
22108 \end_layout
22109
22110 \begin_layout Subsection
22111
22112 \change_inserted 564990737 1672224959
22113 Standard Theorems
22114 \end_layout
22115
22116 \begin_layout Standard
22117
22118 \change_inserted 564990737 1672224959
22119 This module defines some theorem environments for use with non-AMS classes.
22120  By default,
22121  the theorems are numbered consecutively throughout the document.
22122  This can be changed by loading one of the 
22123 \family sans
22124 Standard Theorems (Numbered by \SpecialChar ldots
22125 )
22126 \family default
22127  modules.
22128  
22129 \change_inserted -712698321 1674902414
22130
22131 \end_layout
22132
22133 \begin_layout Standard
22134
22135 \change_inserted 564990737 1672224959
22136 It cannot be used if the modules 
22137 \family sans
22138 AMS Theorems
22139 \family default
22140  or
22141 \family sans
22142  Standard Theorems (Unnumbered)
22143 \family default
22144  have been loaded.
22145  
22146 \end_layout
22147
22148 \begin_layout Subsection
22149
22150 \change_inserted 564990737 1672224959
22151 Standard Theorems (Nameable)
22152 \end_layout
22153
22154 \begin_layout Standard
22155
22156 \change_inserted 564990737 1672224959
22157 This module facilitates the use of named theorems.
22158  The name of the theorem 
22159 \change_deleted -712698321 1674902805
22160 goes into the
22161 \change_inserted -712698321 1674902825
22162 can be inserted via 
22163 \family sans
22164 Insert\SpecialChar menuseparator
22165
22166 \change_deleted -712698321 1674902827
22167  “
22168 \change_inserted 564990737 1672224959
22169 Additional Theorem Text
22170 \change_deleted -712698321 1674902831
22171
22172 \family default
22173 ” argument
22174 \change_inserted 564990737 1672224959
22175 .
22176  
22177 \end_layout
22178
22179 \begin_layout Subsection
22180
22181 \change_inserted 564990737 1672224959
22182 Standard Theorems (Numbered by Chapter)
22183 \end_layout
22184
22185 \begin_layout Standard
22186
22187 \change_inserted 564990737 1672224959
22188 This module numbers theorems and the like by chapter (i.e.,
22189  the counter is reset at each chapter start).
22190  Use this module only with document classes that provide a chapter environment.
22191  
22192 \change_inserted -712698321 1674903079
22193
22194 \end_layout
22195
22196 \begin_layout Standard
22197
22198 \change_inserted 564990737 1672224959
22199 One of the modules 
22200 \family sans
22201 AMS Theorems
22202 \family default
22203  or 
22204 \family sans
22205 Standard Theorems
22206 \family default
22207  must be loaded.
22208  
22209 \change_inserted -712698321 1674903082
22210
22211 \end_layout
22212
22213 \begin_layout Standard
22214
22215 \change_inserted 564990737 1672224959
22216 It cannot be used if the module
22217 \family sans
22218  Standard Theorems (Numbered by Section)
22219 \family default
22220  has been loaded.
22221 \end_layout
22222
22223 \begin_layout Subsection
22224
22225 \change_inserted 564990737 1672224959
22226 Standard Theorems (Numbered by Section)
22227 \end_layout
22228
22229 \begin_layout Standard
22230
22231 \change_inserted 564990737 1672224959
22232 This module numbers theorems and the like by section (i.e.,
22233  the counter is reset at each section start).
22234  One of the modules 
22235 \family sans
22236 AMS Theorems
22237 \family default
22238  or 
22239 \family sans
22240 Standard Theorems
22241 \family default
22242  must be loaded.
22243  It cannot be used if the module
22244 \family sans
22245  Standard Theorems (Numbered by Chapter)
22246 \family default
22247  has been loaded.
22248 \end_layout
22249
22250 \begin_layout Subsection
22251
22252 \change_inserted 564990737 1672224959
22253 Standard Theorems (Numbered by Type within Chapters) 
22254 \end_layout
22255
22256 \begin_layout Standard
22257
22258 \change_inserted 564990737 1672224959
22259 This module defines some theorem environments for use with non-AMS classes.
22260  Unlike the
22261 \family sans
22262  AMS Theorems
22263 \family default
22264  and 
22265 \family sans
22266 Standard Theorems
22267 \family default
22268  modules,
22269  the different theorem types provided here each have a separate counter (e.g.,
22270  
22271 \change_deleted -712698321 1674903338
22272 t
22273 \change_inserted -712698321 1674903338
22274
22275 \emph on
22276 T
22277 \change_inserted 564990737 1672224959
22278 heorem 1
22279 \emph default
22280 ,
22281  
22282 \change_deleted -712698321 1674903340
22283 t
22284 \change_inserted -712698321 1674903340
22285
22286 \emph on
22287 T
22288 \change_inserted 564990737 1672224959
22289 heorem 2
22290 \emph default
22291 ,
22292  
22293 \change_deleted -712698321 1674903343
22294 l
22295 \change_inserted -712698321 1674903343
22296
22297 \emph on
22298 L
22299 \change_inserted 564990737 1672224959
22300 emma 1
22301 \emph default
22302 ,
22303  
22304 \change_deleted -712698321 1674903346
22305 p
22306 \change_inserted -712698321 1674903346
22307
22308 \emph on
22309 P
22310 \change_inserted 564990737 1672224959
22311 roposition 1
22312 \emph default
22313 ,
22314  
22315 \change_deleted -712698321 1674903348
22316 t
22317 \change_inserted -712698321 1674903348
22318
22319 \emph on
22320 T
22321 \change_inserted 564990737 1672224959
22322 heorem 3
22323 \emph default
22324 ,
22325  
22326 \change_deleted -712698321 1674903351
22327 l
22328 \change_inserted -712698321 1674903351
22329
22330 \emph on
22331 L
22332 \change_inserted 564990737 1672224959
22333 emma 2
22334 \emph default
22335 ,
22336  \SpecialChar ldots
22337 ,
22338  as opposed to 
22339 \change_deleted -712698321 1674903354
22340 t
22341 \change_inserted -712698321 1674903354
22342
22343 \emph on
22344 T
22345 \change_inserted 564990737 1672224959
22346 heorem 1
22347 \emph default
22348 ,
22349  
22350 \change_deleted -712698321 1674903356
22351 t
22352 \change_inserted -712698321 1674903356
22353
22354 \emph on
22355 T
22356 \change_inserted 564990737 1672224959
22357 heorem 2
22358 \emph default
22359 ,
22360  
22361 \change_deleted -712698321 1674903359
22362 l
22363 \change_inserted -712698321 1674903359
22364
22365 \emph on
22366 L
22367 \change_inserted 564990737 1672224959
22368 emma 3
22369 \emph default
22370 ,
22371  
22372 \change_deleted -712698321 1674903361
22373 p
22374 \change_inserted -712698321 1674903361
22375
22376 \emph on
22377 P
22378 \change_inserted 564990737 1672224959
22379 roposition 4
22380 \emph default
22381 ,
22382  \SpecialChar ldots
22383 ).
22384  The numbering is reset at each chapter start.
22385  
22386 \change_inserted -712698321 1674902715
22387
22388 \end_layout
22389
22390 \begin_layout Standard
22391
22392 \change_inserted 564990737 1672224959
22393 One of the modules 
22394 \family sans
22395 AMS Theorems (Numbered by Type)
22396 \family default
22397  or 
22398 \family sans
22399 Standard Theorems (Numbered by Type)
22400 \family default
22401  must be loaded.
22402  
22403 \change_inserted -712698321 1674902717
22404
22405 \end_layout
22406
22407 \begin_layout Standard
22408
22409 \change_inserted 564990737 1672224959
22410 It cannot be used if any of the modules
22411 \family sans
22412  AMS Theorems
22413 \family default
22414 ,
22415  
22416 \family sans
22417 Standard Theorems
22418 \family default
22419 ,
22420  
22421 \family sans
22422 Standard Theorems (Unnumbered)
22423 \family default
22424 ,
22425
22426 \family sans
22427  Standard Theorems (Numbered by Sections)
22428 \family default
22429  or 
22430 \family sans
22431 Standard Theorems (Numbered by Type within Sections)
22432 \family default
22433  have been loaded.
22434 \end_layout
22435
22436 \begin_layout Subsection
22437
22438 \change_inserted 564990737 1672224959
22439 Standard Theorems (Numbered by Type within Sections) 
22440 \end_layout
22441
22442 \begin_layout Standard
22443
22444 \change_inserted 564990737 1672224959
22445 This module defines some theorem environments for use with non-AMS classes.
22446  Unlike the
22447 \family sans
22448  AMS Theorems
22449 \family default
22450  and 
22451 \family sans
22452 Standard Theorems
22453 \family default
22454  modules,
22455  the different theorem types provided here each have a separate counter (e.g.,
22456  
22457 \change_deleted -712698321 1674902520
22458 t
22459 \change_inserted -712698321 1674902520
22460
22461 \emph on
22462 T
22463 \change_inserted 564990737 1672224959
22464 heorem 1
22465 \emph default
22466 ,
22467  
22468 \change_deleted -712698321 1674902522
22469 t
22470 \change_inserted -712698321 1674902522
22471
22472 \emph on
22473 T
22474 \change_inserted 564990737 1672224959
22475 heorem 2
22476 \emph default
22477 ,
22478  
22479 \change_deleted -712698321 1674902527
22480 l
22481 \change_inserted -712698321 1674902527
22482
22483 \emph on
22484 L
22485 \change_inserted 564990737 1672224959
22486 emma 1
22487 \emph default
22488 ,
22489  
22490 \change_inserted -712698321 1674902529
22491
22492 \emph on
22493 P
22494 \change_deleted -712698321 1674902529
22495 p
22496 \change_inserted 564990737 1672224959
22497 roposition 1
22498 \emph default
22499 ,
22500  
22501 \change_deleted -712698321 1674902532
22502 t
22503 \change_inserted -712698321 1674902532
22504
22505 \emph on
22506 T
22507 \change_inserted 564990737 1672224959
22508 heorem 3
22509 \emph default
22510 ,
22511  
22512 \change_inserted -712698321 1674902535
22513
22514 \emph on
22515 L
22516 \change_deleted -712698321 1674902534
22517 l
22518 \change_inserted 564990737 1672224959
22519 emma 2
22520 \emph default
22521 ,
22522  \SpecialChar ldots
22523 ,
22524  as opposed to 
22525 \change_deleted -712698321 1674902538
22526 t
22527 \change_inserted -712698321 1674902538
22528
22529 \emph on
22530 T
22531 \change_inserted 564990737 1672224959
22532 heorem 1
22533 \emph default
22534 ,
22535  
22536 \change_deleted -712698321 1674902540
22537 t
22538 \change_inserted -712698321 1674902540
22539
22540 \emph on
22541 T
22542 \change_inserted 564990737 1672224959
22543 heorem 2
22544 \emph default
22545 ,
22546  
22547 \change_deleted -712698321 1674902543
22548 l
22549 \change_inserted -712698321 1674902543
22550
22551 \emph on
22552 L
22553 \change_inserted 564990737 1672224959
22554 emma 3
22555 \emph default
22556 ,
22557  
22558 \change_inserted -712698321 1674902545
22559
22560 \emph on
22561 P
22562 \change_deleted -712698321 1674902545
22563 p
22564 \change_inserted 564990737 1672224959
22565 roposition 4
22566 \emph default
22567 ,
22568  \SpecialChar ldots
22569 ).
22570  The numbering is reset at each section start.
22571  
22572 \change_inserted -712698321 1674902574
22573
22574 \end_layout
22575
22576 \begin_layout Standard
22577
22578 \change_inserted 564990737 1672224959
22579 One of the modules 
22580 \family sans
22581 AMS Theorems (Numbered by Type)
22582 \family default
22583  or 
22584 \family sans
22585 Standard Theorems (Numbered by Type)
22586 \family default
22587  must be loaded.
22588  
22589 \change_inserted -712698321 1674902609
22590
22591 \end_layout
22592
22593 \begin_layout Standard
22594
22595 \change_inserted 564990737 1672224959
22596 It cannot be used if any of the modules
22597 \family sans
22598  AMS Theorems
22599 \family default
22600 ,
22601  
22602 \family sans
22603 Standard Theorems
22604 \family default
22605 ,
22606  
22607 \family sans
22608 Standard Theorems (Unnumbered)
22609 \family default
22610 ,
22611
22612 \family sans
22613  Standard Theorems (Numbered by Chapters)
22614 \family default
22615  or 
22616 \family sans
22617 Standard Theorems (Numbered by Type within Chapters)
22618 \family default
22619  have been loaded.
22620 \end_layout
22621
22622 \begin_layout Subsection
22623
22624 \change_inserted 564990737 1672224959
22625 Standard Theorems (Numbered by Type)
22626 \end_layout
22627
22628 \begin_layout Standard
22629
22630 \change_inserted 564990737 1672224959
22631 This module defines some theorem environments for use with non-AMS classes.
22632  Unlike the 
22633 \family sans
22634 AMS Theorems
22635 \family default
22636  and 
22637 \family sans
22638 Standard Theorems
22639 \family default
22640  modules,
22641  the different theorem types provided here each have a separate counter (e.g.,
22642  
22643 \change_deleted -712698321 1674903220
22644 t
22645 \change_inserted -712698321 1674903220
22646
22647 \emph on
22648 T
22649 \change_inserted 564990737 1672224959
22650 heorem 1
22651 \emph default
22652 ,
22653  
22654 \change_deleted -712698321 1674903221
22655 t
22656 \change_inserted -712698321 1674903221
22657
22658 \emph on
22659 T
22660 \change_inserted 564990737 1672224959
22661 heorem 2
22662 \emph default
22663 ,
22664  
22665 \change_deleted -712698321 1674903225
22666 l
22667 \change_inserted -712698321 1674903226
22668
22669 \emph on
22670 L
22671 \change_inserted 564990737 1672224959
22672 emma 1
22673 \emph default
22674 ,
22675  
22676 \change_inserted -712698321 1674903228
22677
22678 \emph on
22679 P
22680 \change_deleted -712698321 1674903228
22681 p
22682 \change_inserted 564990737 1672224959
22683 roposition 1
22684 \emph default
22685 ,
22686  
22687 \change_deleted -712698321 1674903231
22688 t
22689 \change_inserted -712698321 1674903232
22690
22691 \emph on
22692 T
22693 \change_inserted 564990737 1672224959
22694 heorem 3
22695 \emph default
22696 ,
22697  
22698 \change_inserted -712698321 1674903261
22699
22700 \emph on
22701 L
22702 \change_deleted -712698321 1674903233
22703 l
22704 \change_inserted 564990737 1672224959
22705 emma 2
22706 \emph default
22707 ,
22708  \SpecialChar ldots
22709 ,
22710  as opposed to 
22711 \change_deleted -712698321 1674903237
22712 t
22713 \change_inserted -712698321 1674903237
22714
22715 \emph on
22716 T
22717 \change_inserted 564990737 1672224959
22718 heorem 1
22719 \emph default
22720 ,
22721  
22722 \change_deleted -712698321 1674903240
22723 t
22724 \change_inserted -712698321 1674903240
22725
22726 \emph on
22727 T
22728 \change_inserted 564990737 1672224959
22729 heorem 2
22730 \emph default
22731 ,
22732  
22733 \change_deleted -712698321 1674903242
22734 l
22735 \change_inserted -712698321 1674903242
22736
22737 \emph on
22738 L
22739 \change_inserted 564990737 1672224959
22740 emma 3
22741 \emph default
22742 ,
22743  
22744 \change_deleted -712698321 1674903246
22745 p
22746 \change_inserted -712698321 1674903246
22747
22748 \emph on
22749 P
22750 \change_inserted 564990737 1672224959
22751 roposition 4
22752 \emph default
22753 ,
22754  \SpecialChar ldots
22755 ).
22756  The numbering’s scope is the whole document.
22757  For chapter- and section-wide numbering,
22758  use one of the “within Chapters”/“within Sections” modules,
22759  respectively.
22760  
22761 \change_inserted -712698321 1674903280
22762
22763 \end_layout
22764
22765 \begin_layout Standard
22766
22767 \change_inserted 564990737 1672224959
22768 It cannot be used if any of the modules
22769 \family sans
22770  AMS Theorems
22771 \family default
22772 ,
22773  
22774 \family sans
22775 Standard Theorems
22776 \family default
22777 ,
22778  
22779 \family sans
22780 Standard Theorems (Unnumbered)
22781 \family default
22782  or
22783 \family sans
22784  AMS Theorems (Numbered by Type)
22785 \family default
22786  have been loaded.
22787 \end_layout
22788
22789 \begin_layout Subsection
22790
22791 \change_inserted 564990737 1672224959
22792 Standard Theorems (Unnumbered)
22793 \end_layout
22794
22795 \begin_layout Standard
22796
22797 \change_inserted 564990737 1672224959
22798 This module defines only unnumbered theorem environments and the proof environment,
22799  using the extended AMS machinery.
22800  It cannot be used if either of the modules
22801 \family sans
22802  AMS Theorems
22803 \family default
22804  or
22805 \family sans
22806  Standard Theorems
22807 \family default
22808  have been loaded.
22809 \end_layout
22810
22811 \begin_layout Subsection
22812
22813 \change_inserted 564990737 1672224959
22814 Subequations
22815 \end_layout
22816
22817 \begin_layout Standard
22818
22819 \change_inserted 564990737 1672224959
22820 This module provides a straightforward way to segregate subequations in LyX.
22821  See 
22822 \family sans
22823 Help\SpecialChar menuseparator
22824 Math\SpecialChar menuseparator
22825 Subnumbering
22826 \family default
22827 .
22828  
22829 \end_layout
22830
22831 \begin_layout Section
22832
22833 \change_inserted 564990737 1672236008
22834 Page Layout
22835 \end_layout
22836
22837 \begin_layout Subsection
22838
22839 \change_inserted 564990737 1672236008
22840 Custom Header/Footer Text
22841 \end_layout
22842
22843 \begin_layout Standard
22844
22845 \change_inserted 564990737 1672236008
22846 This module requires the 
22847 \family sans
22848 Page
22849 \begin_inset space ~
22850 \end_inset
22851
22852
22853 \bar under
22854 s
22855 \bar default
22856 tyle
22857 \family default
22858  option in the 
22859 \family sans
22860 \bar under
22861 D
22862 \bar default
22863 ocument\SpecialChar menuseparator
22864
22865 \bar under
22866 S
22867 \bar default
22868 ettings\SpecialChar menuseparator
22869 Page
22870 \begin_inset space ~
22871 \end_inset
22872
22873 Layout
22874 \family default
22875  dialog to be set to 
22876 \family typewriter
22877 fancy
22878 \family default
22879 .
22880  It adds six environments to document classes which support the 
22881 \family typewriter
22882 fancyhdr
22883 \family default
22884  package:
22885 \end_layout
22886
22887 \begin_layout Itemize
22888
22889 \change_inserted 564990737 1672236008
22890
22891 \family sans
22892 Left Header
22893 \end_layout
22894
22895 \begin_layout Itemize
22896
22897 \change_inserted 564990737 1672236008
22898
22899 \family sans
22900 Center Header
22901 \end_layout
22902
22903 \begin_layout Itemize
22904
22905 \change_inserted 564990737 1672236008
22906
22907 \family sans
22908 Right Header
22909 \end_layout
22910
22911 \begin_layout Itemize
22912
22913 \change_inserted 564990737 1672236008
22914
22915 \family sans
22916 Left Footer
22917 \end_layout
22918
22919 \begin_layout Itemize
22920
22921 \change_inserted 564990737 1672236008
22922
22923 \family sans
22924 Center Footer
22925 \end_layout
22926
22927 \begin_layout Itemize
22928
22929 \change_inserted 564990737 1672236008
22930
22931 \family sans
22932 Right Footer
22933 \end_layout
22934
22935 \begin_layout Subsubsection
22936
22937 \change_inserted 564990737 1672236008
22938 Fancy Headers and Footers
22939 \end_layout
22940
22941 \begin_layout Standard
22942
22943 \change_inserted 564990737 1672236008
22944 The default page layout is rather plain;
22945  for an
22946 \change_deleted -712698321 1674910295
22947  
22948 \begin_inset Flex Code
22949 status collapsed
22950
22951 \begin_layout Plain Layout
22952
22953 \change_inserted 564990737 1672236008
22954 article
22955 \change_unchanged
22956
22957 \end_layout
22958
22959 \end_inset
22960
22961
22962 \change_inserted 564990737 1672236008
22963  
22964 \change_inserted -712698321 1674910328
22965
22966 \family sans
22967 Article (Standard Class)
22968 \family default
22969  
22970 \change_inserted 564990737 1672236008
22971 document class,
22972  all you get is a centered page number at the bottom of the page.
22973  This document uses
22974 \change_inserted -712698321 1674910381
22975  the
22976 \change_inserted 564990737 1672236008
22977  
22978 \change_deleted -712698321 1674910376
22979 KOMA-script’s book
22980 \change_inserted -712698321 1674910376
22981
22982 \family sans
22983 KOMA-Script Book
22984 \change_inserted 564990737 1672236008
22985
22986 \family default
22987  class;
22988  so it appears to be a bit fancier.
22989  
22990 \change_inserted -712698321 1674910455
22991
22992 \end_layout
22993
22994 \begin_layout Standard
22995
22996 \change_inserted 564990737 1672236008
22997 Once the 
22998 \family sans
22999 Page
23000 \begin_inset space ~
23001 \end_inset
23002
23003
23004 \bar under
23005 s
23006 \bar default
23007 tyle
23008 \family default
23009  in 
23010 \family sans
23011 \bar under
23012 D
23013 \bar default
23014 ocument\SpecialChar menuseparator
23015
23016 \bar under
23017 S
23018 \bar default
23019 ettings\SpecialChar menuseparator
23020 Page Layout
23021 \family default
23022  is set to 
23023 \begin_inset Quotes eld
23024 \end_inset
23025
23026 fancy
23027 \begin_inset Quotes erd
23028 \end_inset
23029
23030 ,
23031  you will find that the page header is divided into three fields,
23032  not surprisingly labeled 
23033 \begin_inset Quotes eld
23034 \end_inset
23035
23036 left
23037 \begin_inset Quotes erd
23038 \end_inset
23039
23040 ,
23041  
23042 \begin_inset Quotes eld
23043 \end_inset
23044
23045 center
23046 \begin_inset Quotes erd
23047 \end_inset
23048
23049 ,
23050  and 
23051 \begin_inset Quotes eld
23052 \end_inset
23053
23054 right
23055 \begin_inset Quotes erd
23056 \end_inset
23057
23058 .
23059  The footer is also divided into these three fields.
23060  The \SpecialChar LaTeX
23061  commands to set these fields in the simplest manner are 
23062 \family typewriter
23063
23064 \backslash
23065 lhead
23066 \family default
23067 ,
23068  
23069 \family typewriter
23070
23071 \backslash
23072 chead
23073 \family default
23074 ,
23075  
23076 \family typewriter
23077
23078 \backslash
23079 rhead
23080 \family default
23081 ,
23082  
23083 \family typewriter
23084
23085 \backslash
23086 lfoot
23087 \family default
23088 ,
23089  etc.
23090  Suppose you wish to put your name in the upper left hand corner of each page.
23091  Simply insert the following command in the preamble:
23092  
23093 \end_layout
23094
23095 \begin_layout LyX-Code
23096
23097 \change_inserted 564990737 1672236008
23098
23099 \backslash
23100 lhead{John Q.
23101  DocWriter}
23102 \end_layout
23103
23104 \begin_layout Standard
23105
23106 \change_inserted 564990737 1672236008
23107 You will now see your name in the upper left.
23108  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,
23109  e.
23110 \begin_inset space \thinspace{}
23111 \end_inset
23112
23113 g.:
23114 \end_layout
23115
23116 \begin_layout LyX-Code
23117
23118 \change_inserted 564990737 1672236008
23119
23120 \backslash
23121 cfoot{}
23122 \end_layout
23123
23124 \begin_layout Standard
23125
23126 \change_inserted 564990737 1672236008
23127 There is,
23128  however,
23129  an easier way to make simple changes.
23130  If you load the 
23131 \family sans
23132 \bar under
23133 D
23134 \bar default
23135 ocument\SpecialChar menuseparator
23136
23137 \bar under
23138 S
23139 \bar default
23140 ettings\SpecialChar menuseparator
23141 Modules\SpecialChar menuseparator
23142 Page Layout\SpecialChar menuseparator
23143 Custom Header/Footer Text
23144 \family default
23145  module,
23146  you will find you have six new environments corresponding to the six fields described above.
23147 \end_layout
23148
23149 \begin_layout Standard
23150
23151 \change_inserted 564990737 1672236008
23152 Let's get really fancy:
23153  lets put the section number with the word 
23154 \begin_inset Quotes eld
23155 \end_inset
23156
23157 Section
23158 \begin_inset Quotes erd
23159 \end_inset
23160
23161  (e.
23162 \begin_inset space \thinspace{}
23163 \end_inset
23164
23165 g.
23166 \begin_inset space \space{}
23167 \end_inset
23168
23169 Section 3) in the upper left,
23170  the page number (e.
23171 \begin_inset space \thinspace{}
23172 \end_inset
23173
23174 g.
23175 \begin_inset space \space{}
23176 \end_inset
23177
23178 Page 4) in the upper right,
23179  your name in the lower left,
23180  and the date in the lower right.
23181  Use your newly enabled environments to add these entries:
23182 \end_layout
23183
23184 \begin_layout Standard
23185
23186 \change_deleted -712698321 1674910975
23187 \begin_inset VSpace defskip
23188 \end_inset
23189
23190
23191 \change_inserted 564990737 1672236008
23192
23193 \end_layout
23194
23195 \begin_layout LyX-Code
23196
23197 \change_inserted 564990737 1672236008
23198
23199 \family sans
23200 Left
23201 \begin_inset space ~
23202 \end_inset
23203
23204 header:
23205
23206 \family default
23207 \series bold
23208  
23209 \family roman
23210 \series default
23211 Section
23212 \family typewriter
23213  
23214 \family default
23215
23216 \backslash
23217 thesection
23218 \end_layout
23219
23220 \begin_layout LyX-Code
23221
23222 \change_inserted 564990737 1672236008
23223
23224 \family sans
23225 Center header:
23226 \end_layout
23227
23228 \begin_layout LyX-Code
23229
23230 \change_inserted 564990737 1672236008
23231
23232 \family sans
23233 Right header:
23234
23235 \family default
23236  
23237 \family roman
23238 Page
23239 \family typewriter
23240  
23241 \family default
23242
23243 \backslash
23244 thepage
23245 \end_layout
23246
23247 \begin_layout LyX-Code
23248
23249 \change_inserted 564990737 1672236008
23250
23251 \family sans
23252 Left footer:
23253
23254 \family default
23255  
23256 \family roman
23257 John Q.
23258  DocWriter
23259 \end_layout
23260
23261 \begin_layout LyX-Code
23262
23263 \change_inserted 564990737 1672236008
23264
23265 \family sans
23266 Center footer:
23267 \end_layout
23268
23269 \begin_layout LyX-Code
23270
23271 \change_inserted 564990737 1672236008
23272
23273 \family sans
23274 Right footer:
23275
23276 \family default
23277 \series bold
23278  
23279 \series default
23280
23281 \backslash
23282 today
23283 \end_layout
23284
23285 \begin_layout Standard
23286
23287 \change_deleted -712698321 1674910976
23288 \begin_inset VSpace defskip
23289 \end_inset
23290
23291
23292 \change_inserted 564990737 1672236008
23293
23294 \end_layout
23295
23296 \begin_layout Standard
23297
23298 \change_inserted 564990737 1672236008
23299 Make sure you enter the commands 
23300 \family typewriter
23301
23302 \backslash
23303 thesection
23304 \family default
23305 ,
23306  
23307 \family typewriter
23308
23309 \backslash
23310 thepage
23311 \family default
23312  and 
23313 \family typewriter
23314
23315 \backslash
23316 today
23317 \family default
23318  as \SpecialChar TeX
23319  Code commands
23320 \series bold
23321 .
23322
23323 \series default
23324  The commands 
23325 \family typewriter
23326
23327 \backslash
23328 thesection
23329 \family default
23330  and
23331 \family typewriter
23332  
23333 \backslash
23334 thepage
23335 \family default
23336  access \SpecialChar LaTeX
23337 ’s section and page counters,
23338  and so print out the current section and page numbers.
23339  
23340 \family typewriter
23341
23342 \backslash
23343 today
23344 \family default
23345  simply prints out today’s date.
23346 \end_layout
23347
23348 \begin_layout Standard
23349
23350 \change_inserted 564990737 1672236008
23351 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
23352  If you don't want one of the rules,
23353  set its thickness to 0.
23354  The header rule has a default thickness of 0.4pt,
23355  the footer rule is 0pt.
23356  For this you will need to use \SpecialChar TeX
23357  Code commands like 
23358 \end_layout
23359
23360 \begin_layout Standard
23361
23362 \change_inserted 564990737 1672236008
23363
23364 \family typewriter
23365
23366 \backslash
23367 renewcommand{
23368 \backslash
23369 headrulewidth}{0.4pt}
23370 \family default
23371  and 
23372 \end_layout
23373
23374 \begin_layout Standard
23375
23376 \change_inserted 564990737 1672236008
23377
23378 \family typewriter
23379
23380 \backslash
23381 renewcommand{
23382 \backslash
23383 footrulewidth}{0.4pt}
23384 \family default
23385  to set the thicknesses.
23386 \end_layout
23387
23388 \begin_layout Standard
23389
23390 \change_inserted 564990737 1672236008
23391 You can switch the header/footer settings on and off for individual pages using \SpecialChar TeX
23392  Code commands like 
23393 \family typewriter
23394
23395 \backslash
23396 thispagestyle{empty}
23397 \family default
23398 ,
23399  
23400 \family typewriter
23401
23402 \backslash
23403 thispagestyle{plain}
23404 \family default
23405 ,
23406  and 
23407 \family typewriter
23408
23409 \backslash
23410 thispagestyle{fancy}
23411 \family default
23412 .
23413  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
23414  code.
23415  In fact,
23416  title pages are marked as plain by default,
23417  while following pages are marked fancy when using the global fancy setting.
23418  
23419 \end_layout
23420
23421 \begin_layout Standard
23422
23423 \change_inserted 564990737 1672236008
23424 If you want a header or footer to be on the outer side of a two sided document,
23425  you need to use something like:
23426 \end_layout
23427
23428 \begin_layout LyX-Code
23429
23430 \change_deleted -712698321 1674911361
23431
23432 \family sans
23433 \begin_inset Flex Strong
23434 status collapsed
23435
23436 \begin_layout Plain Layout
23437
23438 \change_inserted 564990737 1672236008
23439
23440 \family sans
23441 \series medium
23442
23443 \backslash
23444 fancyfoot{}
23445 \change_unchanged
23446
23447 \end_layout
23448
23449 \end_inset
23450
23451
23452 \change_inserted -712698321 1674911361
23453
23454 \family default
23455
23456 \backslash
23457 fancyfoot{}
23458 \change_unchanged
23459
23460 \end_layout
23461
23462 \begin_layout LyX-Code
23463
23464 \change_deleted -712698321 1674911364
23465
23466 \family sans
23467 \begin_inset Flex Strong
23468 status collapsed
23469
23470 \begin_layout Plain Layout
23471
23472 \change_inserted 564990737 1672236008
23473
23474 \family sans
23475 \series medium
23476
23477 \backslash
23478 fancyfoot[LE,RO]{
23479 \backslash
23480 thepage}
23481 \change_unchanged
23482
23483 \end_layout
23484
23485 \end_inset
23486
23487
23488 \change_inserted -712698321 1674911364
23489
23490 \family default
23491
23492 \backslash
23493 fancyfoot[LE,RO]{
23494 \backslash
23495 thepage}
23496 \change_unchanged
23497
23498 \end_layout
23499
23500 \begin_layout Standard
23501
23502 \change_inserted 564990737 1672236008
23503 The first command clears all existing footers avoiding any conflicts with your new command.
23504 \end_layout
23505
23506 \begin_layout Standard
23507
23508 \change_inserted 564990737 1672236008
23509 You can enter any of these commands,
23510  the simpler ones in any of your new environments,
23511  the more complex ones as \SpecialChar TeX
23512  Code commands,
23513  at any point in your document and they will take effect on the next page.
23514 \end_layout
23515
23516 \begin_layout Standard
23517
23518 \change_inserted 564990737 1672236008
23519 As a final example,
23520  it is possible to include an image in the header or footer.
23521  Suppose you want to put a company logo in the upper left hand corner.
23522  You might try something like
23523 \change_inserted -712698321 1674911745
23524  this in 
23525 \family sans
23526 Document\SpecialChar menuseparator
23527 Settings\SpecialChar menuseparator
23528 LaTeX Preamble
23529 \family default
23530 :
23531 \change_inserted 564990737 1672236008
23532
23533 \end_layout
23534
23535 \begin_layout LyX-Code
23536
23537 \change_inserted 564990737 1672236008
23538
23539 \backslash
23540 lhead{
23541 \backslash
23542 resizebox{1in}{!}{
23543 \backslash
23544 includegraphics{logo.
23545 \change_deleted -712698321 1674911807
23546 eps
23547 \change_inserted -712698321 1674911807
23548 png
23549 \change_inserted 564990737 1672236008
23550 }}}
23551 \end_layout
23552
23553 \begin_layout Standard
23554 \noindent
23555
23556 \change_deleted -712698321 1674911836
23557 (y
23558 \change_inserted -712698321 1674911837
23559 Y
23560 \change_inserted 564990737 1672236008
23561 ou may need to preface this with 
23562 \family typewriter
23563
23564 \backslash
23565 usepackage{graphics}
23566 \family default
23567  if you don't include graphics elsewhere in your document
23568 \change_deleted -712698321 1674911839
23569 )
23570 \change_inserted 564990737 1672236008
23571 .
23572 \end_layout
23573
23574 \begin_layout Standard
23575
23576 \change_inserted 564990737 1672236008
23577 For more information on fancy headers,
23578  you can get the 
23579 \begin_inset Flex Code
23580 status collapsed
23581
23582 \begin_layout Plain Layout
23583
23584 \change_inserted 564990737 1672236008
23585 fancyhdr
23586 \change_unchanged
23587
23588 \end_layout
23589
23590 \end_inset
23591
23592  documentation from 
23593 \begin_inset CommandInset href
23594 LatexCommand href
23595 name "CTAN"
23596 target "http://www.ctan.org/pkg/fancyhdr"
23597 literal "false"
23598
23599 \end_inset
23600
23601 .
23602  
23603 \end_layout
23604
23605 \begin_layout Subsection
23606
23607 \change_inserted 564990737 1672236008
23608 Landscape Document Parts
23609 \end_layout
23610
23611 \begin_layout Standard
23612
23613 \change_inserted 564990737 1672236008
23614 This module outputs parts of the document in landscape mode using 
23615 \family sans
23616 Insert\SpecialChar menuseparator
23617 Custom Insets\SpecialChar menuseparator
23618 Landscape
23619 \family default
23620  or 
23621 \family sans
23622 Insert\SpecialChar menuseparator
23623 Custom Insets\SpecialChar menuseparator
23624 Landscape (Floating)
23625 \family default
23626 .
23627 \end_layout
23628
23629 \begin_layout Subsection
23630
23631 \change_inserted 564990737 1672236008
23632 \begin_inset CommandInset label
23633 LatexCommand label
23634 name "sec:Multiple-Columns"
23635
23636 \end_inset
23637
23638 Multiple Columns
23639 \end_layout
23640
23641 \begin_layout Standard
23642
23643 \change_inserted 564990737 1672236008
23644 This module uses the 
23645 \family sans
23646 multicol
23647 \family default
23648
23649 \begin_inset Index idx
23650 range none
23651 pageformat default
23652 status collapsed
23653
23654 \begin_layout Plain Layout
23655
23656 \change_inserted 564990737 1672236008
23657 \SpecialChar LaTeX
23658 -packages !
23659  multicol
23660 \change_unchanged
23661
23662 \end_layout
23663
23664 \end_inset
23665
23666  package and is independent of the option 
23667 \family sans
23668 Two-
23669 \bar under
23670 c
23671 \bar default
23672 olumn document
23673 \family default
23674  in the 
23675 \family sans
23676 \bar under
23677 D
23678 \bar default
23679 ocument\SpecialChar menuseparator
23680
23681 \bar under
23682 S
23683 \bar default
23684 ettings\SpecialChar menuseparator
23685 Text
23686 \begin_inset space ~
23687 \end_inset
23688
23689 Layout
23690 \family default
23691  dialog.
23692  If you want to have two columns for the whole document,
23693  you are recommended to use the 
23694 \family sans
23695 Two-
23696 \bar under
23697 c
23698 \bar default
23699 olumn document
23700 \family default
23701  option.
23702  For all other cases use this module.
23703 \change_deleted 564990737 1672236008
23704 Multiple Text Columns
23705 \end_layout
23706
23707 \begin_layout Standard
23708
23709 \change_deleted 564990737 1672236008
23710 This feature is independent of the option 
23711 \family sans
23712 Two-column document
23713 \family default
23714  in the document settings under 
23715 \family sans
23716 Text Layout
23717 \family default
23718 .
23719  If you want to have 2
23720 \begin_inset space ~
23721 \end_inset
23722
23723 columns for the whole document,
23724  it is recommended to use the 
23725 \family sans
23726 Two-column document
23727 \family default
23728  option.
23729  For all other cases use this feature.
23730 \end_layout
23731
23732 \begin_layout Standard
23733
23734 \change_deleted 564990737 1672236008
23735 To use multiple text columns in your document,
23736  you have to load the module 
23737 \family sans
23738 Multiple Columns
23739 \family default
23740  (menu 
23741 \family sans
23742 Document\SpecialChar menuseparator
23743 Settings\SpecialChar menuseparator
23744 Modules
23745 \family default
23746 ) and must have the \SpecialChar LaTeX
23747 -package 
23748 \begin_inset Flex Code
23749 status collapsed
23750
23751 \begin_layout Plain Layout
23752 multicol
23753 \end_layout
23754
23755 \end_inset
23756
23757  installed.
23758 \change_unchanged
23759
23760 \end_layout
23761
23762 \begin_layout Standard
23763 Footnotes within multiple columns will be placed at the bottom of the page and not under each column.
23764  Within the different columns you can use everything,
23765  with the limitation that for floats you need to 
23766 \change_deleted 564990737 1672236179
23767 use the float option 
23768 \family sans
23769 Span columns
23770 \change_inserted 564990737 1672236179
23771
23772 \family default
23773 check the option 
23774 \family sans
23775 \bar under
23776 S
23777 \bar default
23778 pan
23779 \begin_inset space ~
23780 \end_inset
23781
23782 columns
23783 \family default
23784  in 
23785 \family sans
23786 \bar under
23787 E
23788 \bar default
23789 dit\SpecialChar menuseparator
23790 Flo
23791 \bar under
23792 a
23793 \bar default
23794 t
23795 \begin_inset space ~
23796 \end_inset
23797
23798 Settings
23799 \change_unchanged
23800
23801 \family default
23802 .
23803 \end_layout
23804
23805 \begin_layout Subsubsection
23806 Basics
23807 \end_layout
23808
23809 \begin_layout Standard
23810 If you want to have 
23811 \change_deleted -712698321 1674912320
23812 2
23813 \change_inserted -712698321 1674912321
23814 two
23815 \change_deleted -712698321 1674912322
23816
23817 \begin_inset space ~
23818 \end_inset
23819
23820
23821 \change_inserted -712698321 1674912322
23822  
23823 \change_unchanged
23824 columns in your text,
23825  insert a multicolumn inset via the menu 
23826 \family sans
23827 Insert\SpecialChar menuseparator
23828 Custom
23829 \begin_inset space ~
23830 \end_inset
23831
23832 Insets\SpecialChar menuseparator
23833 Multiple
23834 \begin_inset space ~
23835 \end_inset
23836
23837 Columns
23838 \family default
23839  where the columns should start.
23840  Write all text that should be printed in 2
23841 \begin_inset space ~
23842 \end_inset
23843
23844 columns into this inset.
23845 \end_layout
23846
23847 \begin_layout Standard
23848 Here is an example:
23849 \end_layout
23850
23851 \begin_layout Standard
23852 \noindent
23853 \begin_inset Flex Multiple Columns
23854 status open
23855
23856 \begin_layout Plain Layout
23857 \noindent
23858
23859 \series bold
23860 \size small
23861 The Adventure of the Empty House
23862 \series default
23863
23864 \begin_inset Newline newline
23865 \end_inset
23866
23867 by 
23868 \noun on
23869 Sir Arthur Conan Doyle
23870 \end_layout
23871
23872 \begin_layout Plain Layout
23873
23874 \size small
23875 It was in the spring of the year 1894 that all London was interested,
23876  and the fashionable world dismayed,
23877  by the murder of the Honourable Ronald Adair under most unusual and inexplicable circumstances.
23878  The public has already learned those particulars of the crime which came out in the police investigation,
23879  but a good deal was suppressed upon that occasion,
23880  since the case for the prosecution was so overwhelmingly strong that it was not necessary to bring forward all the facts.
23881  Only now,
23882  at the end of nearly ten years,
23883  am I allowed to supply those missing links which make up the whole of that remarkable chain.
23884  The crime was of interest in itself,
23885  but that interest was as nothing to me compared to the inconceivable sequel,
23886  which afforded me the greatest shock and surprise of any event in my adventurous life.
23887  Even now,
23888  after this long interval,
23889  I find myself thrilling as I think of it,
23890  and feeling once more that sudden flood of joy,
23891  amazement,
23892  and incredulity which utterly submerged my mind.
23893  Let me say to that public,
23894  which has shown some interest in those glimpses which I have occasionally given them of the thoughts and actions of a very remarkable man,
23895  that they are not to blame me if I have not shared my knowledge with them,
23896  for I should have considered it my first duty to do so,
23897  had I not been barred by a positive prohibition from his own lips,
23898  which was only withdrawn upon the third of last month.
23899 \end_layout
23900
23901 \end_inset
23902
23903
23904 \end_layout
23905
23906 \begin_layout Standard
23907 To get 3 or more columns,
23908  set the cursor into the multicolumn inset and use the menu 
23909 \family sans
23910 Insert\SpecialChar menuseparator
23911 Number
23912 \begin_inset space ~
23913 \end_inset
23914
23915 of
23916 \begin_inset space ~
23917 \end_inset
23918
23919 Columns
23920 \family default
23921 .
23922  The number of the desired columns is written into that inset (for 3
23923 \begin_inset space ~
23924 \end_inset
23925
23926 columns write 
23927 \begin_inset Quotes eld
23928 \end_inset
23929
23930 3
23931 \begin_inset Quotes erd
23932 \end_inset
23933
23934 ).
23935 \begin_inset Newline newline
23936 \end_inset
23937
23938 Here is an example with 3
23939 \begin_inset space ~
23940 \end_inset
23941
23942 columns:
23943 \end_layout
23944
23945 \begin_layout Standard
23946 \begin_inset Flex Multiple Columns
23947 status open
23948
23949 \begin_layout Plain Layout
23950
23951 \size footnotesize
23952 \begin_inset Argument 1
23953 status open
23954
23955 \begin_layout Plain Layout
23956
23957 3
23958 \end_layout
23959
23960 \end_inset
23961
23962 It can be imagined that my close intimacy with Sherlock Holmes had interested me deeply in crime,
23963  and that after his disappearance I never failed to read with care the various problems which came before the public.
23964  And I even attempted,
23965  more than once,
23966  for my own private satisfaction,
23967  to employ his methods in their solution,
23968  though with indifferent success.
23969  There was none,
23970  however,
23971  which appealed to me like this tragedy of Ronald Adair.
23972  As I read the evidence at the inquest,
23973  which led up to a verdict of willful murder against some person or persons unknown,
23974  I realized more clearly than I had ever done the loss which the community had sustained by the death of Sherlock Holmes.
23975  There were points about this strange business which would,
23976  I was sure,
23977  have specially appealed to him,
23978  and the efforts of the police would have been supplemented,
23979  or more probably anticipated,
23980  by the trained observation and the alert mind of the first criminal agent in Europe.
23981  All day,
23982  as I drove upon my round,
23983  I turned over the case in my mind and found no explanation which appeared to me to be adequate.
23984  At the risk of telling a twice-told tale,
23985  I will recapitulate the facts as they were known to the public at the conclusion of the inquest.
23986 \end_layout
23987
23988 \end_inset
23989
23990
23991 \end_layout
23992
23993 \begin_layout Standard
23994 You can have up to 10
23995 \begin_inset space ~
23996 \end_inset
23997
23998 columns if you want to,
23999  but that might not be very pleasant for the readers of your document.
24000 \end_layout
24001
24002 \begin_layout Standard
24003
24004 \change_deleted 564990737 1672236245
24005 \begin_inset Newpage newpage
24006 \end_inset
24007
24008
24009 \change_unchanged
24010
24011 \end_layout
24012
24013 \begin_layout Subsubsection
24014 Columns inside Columns
24015 \end_layout
24016
24017 \begin_layout Standard
24018 You can also have columns inside columns:
24019 \end_layout
24020
24021 \begin_layout Standard
24022 \begin_inset Flex Multiple Columns
24023 status open
24024
24025 \begin_layout Plain Layout
24026
24027 \size footnotesize
24028 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
24029  at that time governor of one of the Australian colonies.
24030  Adair's mother had returned from Australia to undergo the operation for cataract,
24031  and she,
24032  her son Ronald,
24033  and her daughter Hilda were living together at 427 Park Lane.
24034 \end_layout
24035
24036 \begin_layout Plain Layout
24037 \begin_inset Flex Multiple Columns
24038 status open
24039
24040 \begin_layout Plain Layout
24041
24042 \size footnotesize
24043 The youth moved in the best society
24044 \begin_inset space ~
24045 \end_inset
24046
24047 – had,
24048  so far as was known,
24049  no enemies and no particular vices.
24050  He had been engaged to Miss Edith Woodley,
24051  of Carstairs,
24052  but the engagement had been broken off by mutual consent some months before,
24053  and there was no sign that it had left any very profound feeling behind it.
24054  For the rest {sic} the man's life moved in a narrow and conventional circle,
24055  for his habits were quiet and his nature unemotional.
24056  Yet it was upon this easy-going young aristocrat that death came,
24057  in most strange and unexpected form,
24058  between the hours of ten and eleven-twenty on the night of March 30,
24059  1894.
24060 \end_layout
24061
24062 \end_inset
24063
24064
24065 \end_layout
24066
24067 \begin_layout Plain Layout
24068
24069 \size footnotesize
24070 Ronald Adair was fond of cards
24071 \begin_inset space ~
24072 \end_inset
24073
24074 – playing continually,
24075  but never for such stakes as would hurt him.
24076  He was a member of the Baldwin,
24077  the Cavendish,
24078  and the Bagatelle card clubs.
24079  It was shown that,
24080  after dinner on the day of his death,
24081  he had played a rubber of whist at the latter club.
24082  He had also played there in the afternoon.
24083
24084 \size default
24085  
24086 \size footnotesize
24087 The evidence of those who had played with him
24088 \begin_inset space ~
24089 \end_inset
24090
24091 – Mr.
24092  Murray,
24093  Sir John Hardy,
24094  and Colonel Moran
24095 \begin_inset space ~
24096 \end_inset
24097
24098 – showed that the game was whist,
24099  and that there was a fairly equal fall of the cards.
24100  Adair might have lost five pounds,
24101  but not more.
24102  His fortune was a considerable one,
24103  and such a loss could not in any way affect him.
24104  He had played nearly every day at one club or other,
24105  but he was a cautious player,
24106  and usually rose a winner.
24107  It came out in evidence that,
24108  in partnership with Colonel Moran,
24109  he had actually won as much as four hundred and twenty pounds in a sitting,
24110  some weeks before,
24111  from Godfrey Milner and Lord Balmoral.
24112  So much for his recent history as it came out at the inquest.
24113 \end_layout
24114
24115 \end_inset
24116
24117
24118 \end_layout
24119
24120 \begin_layout Subsubsection
24121 Advanced Examples
24122 \end_layout
24123
24124 \begin_layout Standard
24125 The examples in this section show some more special features of multiple columns.
24126 \end_layout
24127
24128 \begin_layout Standard
24129 For more features of multiple columns,
24130  have a look at the 
24131 \begin_inset CommandInset href
24132 LatexCommand href
24133 name "documentation"
24134 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
24135 literal "false"
24136
24137 \end_inset
24138
24139  of the \SpecialChar LaTeX
24140 -package 
24141 \begin_inset Flex Code
24142 status collapsed
24143
24144 \begin_layout Plain Layout
24145 multicol
24146 \end_layout
24147
24148 \end_inset
24149
24150 .
24151 \end_layout
24152
24153 \begin_layout Paragraph
24154 Preface
24155 \end_layout
24156
24157 \begin_layout Standard
24158 To add a preface text for multiple columns,
24159  set the cursor into the multicolumn inset and use the menu 
24160 \family sans
24161 Insert\SpecialChar menuseparator
24162 Preface
24163 \family default
24164 .
24165  Write your preface text into that inset.
24166 \begin_inset Newline newline
24167 \end_inset
24168
24169 This is an example with some preface text:
24170 \end_layout
24171
24172 \begin_layout Standard
24173 \begin_inset VSpace bigskip
24174 \end_inset
24175
24176
24177 \end_layout
24178
24179 \begin_layout Standard
24180 \begin_inset Flex Multiple Columns
24181 status open
24182
24183 \begin_layout Plain Layout
24184 \begin_inset Argument 2
24185 status open
24186
24187 \begin_layout Plain Layout
24188 And the story continues and continues and continues and continues\SpecialChar ldots
24189
24190 \end_layout
24191
24192 \end_inset
24193
24194
24195 \size small
24196 On the evening of the crime,
24197  he returned from the club exactly at ten.
24198  His mother and sister were out spending the evening with a relation.
24199  The servant deposed that she heard him enter the front room on the second floor,
24200  generally used as his sitting-room.
24201  She had lit a fire there,
24202  and as it smoked she had opened the window.
24203  No sound was heard from the room until eleven-twenty,
24204  the hour of the return of Lady Maynooth and her daughter.
24205  Desiring to say good-night,
24206  she attempted to enter her son's room.
24207  The door was locked on the inside,
24208  and no answer could be got to their cries and knocking.
24209  Help was obtained,
24210  and the door forced.
24211  The unfortunate young man was found lying near the table.
24212  His head had been horribly mutilated by an expanding revolver bullet,
24213  but no weapon of any sort was to be found in the room.
24214 \end_layout
24215
24216 \end_inset
24217
24218
24219 \end_layout
24220
24221 \begin_layout Standard
24222 You can also use a section heading as the preface if you use a section command as \SpecialChar TeX
24223  Code.
24224  For example the command
24225 \end_layout
24226
24227 \begin_layout LyX-Code
24228
24229 \backslash
24230 subsection{subsection title}
24231 \end_layout
24232
24233 \begin_layout Standard
24234 creates a subsection.
24235  In this example the preface is a subsubsection:
24236 \end_layout
24237
24238 \begin_layout Standard
24239 \begin_inset Flex Multiple Columns
24240 status open
24241
24242 \begin_layout Plain Layout
24243 \begin_inset Argument 2
24244 status open
24245
24246 \begin_layout Plain Layout
24247 \begin_inset ERT
24248 status collapsed
24249
24250 \begin_layout Plain Layout
24251
24252
24253 \backslash
24254 subsubsection{
24255 \end_layout
24256
24257 \end_inset
24258
24259 This is a subsubsection heading as a preface
24260 \begin_inset ERT
24261 status collapsed
24262
24263 \begin_layout Plain Layout
24264
24265 }
24266 \end_layout
24267
24268 \end_inset
24269
24270
24271 \end_layout
24272
24273 \end_inset
24274
24275
24276 \size small
24277 A minute examination of the circumstances served only to make the case more complex.
24278  In the first place,
24279  no reason could be given why the young man should have fastened the door upon the inside.
24280  There was the possibility that the murderer had done this,
24281  and had afterwards escaped by the window.
24282  The drop was at least twenty feet,
24283  however,
24284  and a bed of crocuses in full bloom lay beneath.
24285  Neither the flowers nor the earth showed any sign of having been disturbed,
24286  nor were there any marks upon the narrow strip of grass which separated the house from the road.
24287  Apparently,
24288  therefore,
24289  it was the young man himself who had fastened the door.
24290  But how did he come by his death?
24291  No one could have climbed up to the window without leaving traces.
24292  Suppose a man had fired through the window,
24293  he would indeed be a remarkable shot who could with a revolver inflict so deadly a wound.
24294  Again,
24295  Park Lane is a frequented thoroughfare;
24296  there is a cab stand within a hundred yards of the house.
24297  No one had heard a shot.
24298 \end_layout
24299
24300 \end_inset
24301
24302
24303 \end_layout
24304
24305 \begin_layout Standard
24306 If there is less vertical space than 
24307 \change_deleted -712698321 1674913194
24308 6
24309 \begin_inset space ~
24310 \end_inset
24311
24312
24313 \change_inserted -712698321 1674913195
24314 six 
24315 \change_unchanged
24316 text lines is left on the page at the beginning of the multiple columns,
24317  a page break will be inserted before the multiple columns.
24318  Depending on the number of lines of the preface text,
24319  you might want to change this space.
24320  This is done by setting the cursor into the mulitcolumn inset behind the preface (if there is any) and using the menu 
24321 \family sans
24322 Insert\SpecialChar menuseparator
24323 Space
24324 \begin_inset space ~
24325 \end_inset
24326
24327 Before
24328 \begin_inset space ~
24329 \end_inset
24330
24331 Page
24332 \begin_inset space ~
24333 \end_inset
24334
24335 Break
24336 \family default
24337 .
24338  Insert into that inset the amount of space like e.
24339 \begin_inset space \thinspace{}
24340 \end_inset
24341
24342 g.
24343 \begin_inset space \space{}
24344 \end_inset
24345
24346
24347 \begin_inset Quotes eld
24348 \end_inset
24349
24350 5cm
24351 \begin_inset Quotes erd
24352 \end_inset
24353
24354 .
24355 \begin_inset Newline newline
24356 \end_inset
24357
24358 In this example the space is set to 7
24359 \begin_inset space ~
24360 \end_inset
24361
24362 text lines by using 
24363 \begin_inset Flex Code
24364 status collapsed
24365
24366 \begin_layout Plain Layout
24367 7
24368 \backslash
24369 baselineskip
24370 \end_layout
24371
24372 \end_inset
24373
24374  (where the command 
24375 \begin_inset Flex Code
24376 status collapsed
24377
24378 \begin_layout Plain Layout
24379
24380 \backslash
24381 baselineskip
24382 \end_layout
24383
24384 \end_inset
24385
24386  needs to be inserted as \SpecialChar TeX
24387  code):
24388 \end_layout
24389
24390 \begin_layout Standard
24391 \begin_inset Flex Multiple Columns
24392 status open
24393
24394 \begin_layout Plain Layout
24395 \begin_inset Argument 3
24396 status open
24397
24398 \begin_layout Plain Layout
24399 7
24400 \begin_inset ERT
24401 status collapsed
24402
24403 \begin_layout Plain Layout
24404
24405
24406 \backslash
24407 baselineskip
24408 \end_layout
24409
24410 \end_inset
24411
24412
24413 \end_layout
24414
24415 \end_inset
24416
24417
24418 \size small
24419 On the evening of the crime,
24420  he returned from the club exactly at ten.
24421  His mother and sister were out spending the evening with a relation.
24422  The servant deposed that she heard him enter the front room on the second floor,
24423  generally used as his sitting-room.
24424  She had lit a fire there,
24425  and as it smoked she had opened the window.
24426  No sound was heard from the room until eleven-twenty,
24427  the hour of the return of Lady Maynooth and her daughter.
24428  Desiring to say good-night,
24429  she attempted to enter her son's room.
24430  The door was locked on the inside,
24431  and no answer could be got to their cries and knocking.
24432  Help was obtained,
24433  and the door forced.
24434  The unfortunate young man was found lying near the table.
24435  His head had been horribly mutilated by an expanding revolver bullet,
24436  but no weapon of any sort was to be found in the room.
24437 \end_layout
24438
24439 \end_inset
24440
24441
24442 \end_layout
24443
24444 \begin_layout Paragraph
24445 Surrounding Space
24446 \end_layout
24447
24448 \begin_layout Standard
24449 The amount of space before and after multiple columns can be changed by changing the length 
24450 \begin_inset Flex Code
24451 status collapsed
24452
24453 \begin_layout Plain Layout
24454
24455 \backslash
24456 multicolsep
24457 \end_layout
24458
24459 \end_inset
24460
24461 .
24462  For example the command
24463 \end_layout
24464
24465 \begin_layout LyX-Code
24466
24467 \backslash
24468 setlength{
24469 \backslash
24470 multicolsep}{3cm}
24471 \end_layout
24472
24473 \begin_layout Standard
24474 in \SpecialChar TeX
24475  Code changes its value to 3
24476 \begin_inset space \thinspace{}
24477 \end_inset
24478
24479 cm.
24480  The change must be made before the multiple columns' start.
24481  The predefined value is 13
24482 \begin_inset space \thinspace{}
24483 \end_inset
24484
24485 pt.
24486 \end_layout
24487
24488 \begin_layout Standard
24489 For this example 
24490 \begin_inset Flex Code
24491 status collapsed
24492
24493 \begin_layout Plain Layout
24494
24495 \backslash
24496 multicolsep
24497 \end_layout
24498
24499 \end_inset
24500
24501  was set to 2.5
24502 \begin_inset space \thinspace{}
24503 \end_inset
24504
24505 cm:
24506 \end_layout
24507
24508 \begin_layout Standard
24509 \begin_inset ERT
24510 status open
24511
24512 \begin_layout Plain Layout
24513
24514
24515 \backslash
24516 setlength{
24517 \backslash
24518 multicolsep}{2.5cm}
24519 \end_layout
24520
24521 \end_inset
24522
24523
24524 \end_layout
24525
24526 \begin_layout Standard
24527 \begin_inset Flex Multiple Columns
24528 status open
24529
24530 \begin_layout Plain Layout
24531
24532 \size small
24533 All day I turned these facts over in my mind,
24534  endeavouring to hit upon some theory which could reconcile them all,
24535  and to find that line of least resistance which my poor friend had declared to be the starting-point of every investigation.
24536  I confess that I made little progress.
24537  In the evening I strolled across the Park,
24538  and found myself about six o'clock at the Oxford Street end of Park Lane.
24539  A group of loafers upon the pavements,
24540  all staring up at a particular window,
24541  directed me to the house which I had come to see.
24542  A tall,
24543  thin man with coloured glasses,
24544  whom I strongly suspected of being a plain-clothes detective,
24545  was pointing out some theory of his own,
24546  while the others crowded round to listen to what he said.
24547  I got as near him as I could,
24548  but his observations seemed to me to be absurd,
24549  so I withdrew again in some disgust.
24550  As I did so I struck against an elderly,
24551  deformed man,
24552  who had been behind me,
24553  and I knocked down several books which he was carrying.
24554 \end_layout
24555
24556 \end_inset
24557
24558
24559 \end_layout
24560
24561 \begin_layout Standard
24562 \begin_inset Note Greyedout
24563 status open
24564
24565 \begin_layout Plain Layout
24566
24567 \series bold
24568 Note:
24569
24570 \series default
24571  The values you set with 
24572 \begin_inset Flex Code
24573 status collapsed
24574
24575 \begin_layout Plain Layout
24576
24577 \backslash
24578 setlength
24579 \end_layout
24580
24581 \end_inset
24582
24583  will be used for all following multiple columns until you change them again.
24584 \end_layout
24585
24586 \end_inset
24587
24588
24589 \end_layout
24590
24591 \begin_layout Standard
24592 \begin_inset ERT
24593 status collapsed
24594
24595 \begin_layout Plain Layout
24596
24597
24598 \backslash
24599 setlength{
24600 \backslash
24601 multicolsep}{13pt}
24602 \end_layout
24603
24604 \end_inset
24605
24606
24607 \begin_inset Note Note
24608 status collapsed
24609
24610 \begin_layout Plain Layout
24611 go back to the default
24612 \end_layout
24613
24614 \end_inset
24615
24616
24617 \end_layout
24618
24619 \begin_layout Standard
24620
24621 \change_deleted 564990737 1672236355
24622 \begin_inset Newpage newpage
24623 \end_inset
24624
24625
24626 \change_unchanged
24627
24628 \end_layout
24629
24630 \begin_layout Paragraph
24631 Column Breaks
24632 \end_layout
24633
24634 \begin_layout Standard
24635 A column break can be forced by inserting the command 
24636 \begin_inset Flex Code
24637 status collapsed
24638
24639 \begin_layout Plain Layout
24640
24641 \backslash
24642 columnbreak{}
24643 \end_layout
24644
24645 \end_inset
24646
24647  as \SpecialChar TeX
24648  Code to that position in the text where the column should be broken.
24649  Note that this leads in most cases to whitespace in the text.
24650 \begin_inset Newline newline
24651 \end_inset
24652
24653 Here is an example:
24654 \end_layout
24655
24656 \begin_layout Standard
24657 \begin_inset Flex Multiple Columns
24658 status open
24659
24660 \begin_layout Plain Layout
24661
24662 \size small
24663 \begin_inset Quotes eld
24664 \end_inset
24665
24666 You're surprised to see me,
24667  sir,
24668 \begin_inset Quotes erd
24669 \end_inset
24670
24671  said he,
24672  in a strange,
24673  croaking voice.
24674 \end_layout
24675
24676 \begin_layout Plain Layout
24677
24678 \size small
24679 I acknowledged that I was.
24680 \end_layout
24681
24682 \begin_layout Plain Layout
24683
24684 \size small
24685 \begin_inset Quotes eld
24686 \end_inset
24687
24688 Well,
24689  I've a conscience,
24690  sir,
24691  and when I chanced to see you go into this house,
24692  as I came hobbling after you,
24693  I thought to myself,
24694  I'll just step in and see that kind gentleman,
24695  and tell him that if I was a bit gruff in my manner there was not any harm meant,
24696  and that I am much obliged to him for picking up my books.
24697 \begin_inset Quotes erd
24698 \end_inset
24699
24700
24701 \end_layout
24702
24703 \begin_layout Plain Layout
24704
24705 \size small
24706 \begin_inset Quotes eld
24707 \end_inset
24708
24709 You make too much of a trifle,
24710 \begin_inset Quotes erd
24711 \end_inset
24712
24713  said I.
24714  
24715 \begin_inset Quotes eld
24716 \end_inset
24717
24718 May I ask how you knew who I was?
24719 \begin_inset Quotes erd
24720 \end_inset
24721
24722  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
24723 \begin_inset ERT
24724 status collapsed
24725
24726 \begin_layout Plain Layout
24727
24728
24729 \backslash
24730 columnbreak{}
24731 \end_layout
24732
24733 \end_inset
24734
24735
24736 \end_layout
24737
24738 \begin_layout Plain Layout
24739
24740 \size small
24741 \begin_inset Quotes eld
24742 \end_inset
24743
24744 Well,
24745  sir,
24746  if it isn't too great a liberty,
24747  I am a neighbour of yours,
24748  for you'll find my little bookshop at the corner of Church Street,
24749  and very happy to see you,
24750  I am sure.
24751  Maybe you collect yourself,
24752  sir.
24753  Here's 
24754 \noun on
24755 British
24756 \begin_inset space ~
24757 \end_inset
24758
24759 Birds
24760 \noun default
24761 ,
24762  and 
24763 \noun on
24764 Catullus
24765 \noun default
24766 ,
24767  and 
24768 \noun on
24769 The Holy War
24770 \noun default
24771
24772 \begin_inset space ~
24773 \end_inset
24774
24775 – a bargain,
24776  every one of them.
24777  With five volumes you could just fill that gap on that second shelf.
24778  It looks untidy,
24779  does it not,
24780  sir?
24781 \begin_inset Quotes erd
24782 \end_inset
24783
24784
24785 \end_layout
24786
24787 \end_inset
24788
24789
24790 \end_layout
24791
24792 \begin_layout Paragraph
24793 Column Separation
24794 \end_layout
24795
24796 \begin_layout Standard
24797 The width of the columns is automatically calculated,
24798  but you can modify the space between the columns.
24799  This is done by changing the length 
24800 \begin_inset Flex Code
24801 status collapsed
24802
24803 \begin_layout Plain Layout
24804
24805 \backslash
24806 columnsep
24807 \end_layout
24808
24809 \end_inset
24810
24811 .
24812  Its predefined value is 10
24813 \begin_inset space \thinspace{}
24814 \end_inset
24815
24816 pt.
24817  Here is an example where 
24818 \begin_inset Flex Code
24819 status collapsed
24820
24821 \begin_layout Plain Layout
24822
24823 \backslash
24824 columnsep
24825 \end_layout
24826
24827 \end_inset
24828
24829  is set to 3
24830 \begin_inset space \thinspace{}
24831 \end_inset
24832
24833 cm:
24834 \end_layout
24835
24836 \begin_layout Standard
24837 \begin_inset ERT
24838 status open
24839
24840 \begin_layout Plain Layout
24841
24842
24843 \backslash
24844 setlength{
24845 \backslash
24846 columnsep}{3cm}
24847 \end_layout
24848
24849 \end_inset
24850
24851
24852 \end_layout
24853
24854 \begin_layout Standard
24855 \begin_inset Flex Multiple Columns
24856 status open
24857
24858 \begin_layout Plain Layout
24859
24860 \size small
24861 My observations of No.
24862 \begin_inset space \space{}
24863 \end_inset
24864
24865 427 Park Lane did little to clear up the problem in which I was interested.
24866  The house was separated from the street by a low wall and railing,
24867  the whole not more than five feet high.
24868  It was perfectly easy,
24869  therefore,
24870  for anyone to get into the garden,
24871  but the window was entirely inaccessible,
24872  since there was no water pipe or anything which could help the most active man to climb it.
24873  More puzzled than ever,
24874  I retraced my steps to Kensington.
24875  I had not been in my study five minutes when the maid entered to say that a person desired to see me.
24876  To my astonishment it was none other than my strange old book collector,
24877  his sharp,
24878  wizened face peering out from a frame of white hair,
24879  and his precious volumes,
24880  a dozen of them at least,
24881  wedged under his right arm.
24882 \end_layout
24883
24884 \end_inset
24885
24886
24887 \end_layout
24888
24889 \begin_layout Standard
24890 \begin_inset ERT
24891 status collapsed
24892
24893 \begin_layout Plain Layout
24894
24895
24896 \backslash
24897 setlength{
24898 \backslash
24899 columnsep}{10pt}
24900 \end_layout
24901
24902 \end_inset
24903
24904
24905 \begin_inset Note Note
24906 status collapsed
24907
24908 \begin_layout Plain Layout
24909 go back to the default
24910 \end_layout
24911
24912 \end_inset
24913
24914
24915 \end_layout
24916
24917 \begin_layout Paragraph
24918 Vertical Lines
24919 \end_layout
24920
24921 \begin_layout Standard
24922 Between the columns a rule with a width of the length 
24923 \begin_inset Flex Code
24924 status collapsed
24925
24926 \begin_layout Plain Layout
24927
24928 \backslash
24929 columnseprule
24930 \end_layout
24931
24932 \end_inset
24933
24934  is placed.
24935  If this rule width is set to 0
24936 \begin_inset space \thinspace{}
24937 \end_inset
24938
24939 pt (this is the default),
24940  the rule is suppressed.
24941  In the following example the rule is 2
24942 \begin_inset space \thinspace{}
24943 \end_inset
24944
24945 pt wide:
24946 \end_layout
24947
24948 \begin_layout Standard
24949 \begin_inset ERT
24950 status open
24951
24952 \begin_layout Plain Layout
24953
24954
24955 \backslash
24956 setlength{
24957 \backslash
24958 columnseprule}{2pt}
24959 \end_layout
24960
24961 \end_inset
24962
24963
24964 \end_layout
24965
24966 \begin_layout Standard
24967 \begin_inset Flex Multiple Columns
24968 status open
24969
24970 \begin_layout Plain Layout
24971
24972 \size small
24973 \begin_inset Quotes eld
24974 \end_inset
24975
24976 You're surprised to see me,
24977  sir,
24978 \begin_inset Quotes erd
24979 \end_inset
24980
24981  said he,
24982  in a strange,
24983  croaking voice.
24984 \end_layout
24985
24986 \begin_layout Plain Layout
24987
24988 \size small
24989 I acknowledged that I was.
24990 \end_layout
24991
24992 \begin_layout Plain Layout
24993
24994 \size small
24995 \begin_inset Quotes eld
24996 \end_inset
24997
24998 Well,
24999  I've a conscience,
25000  sir,
25001  and when I chanced to see you go into this house,
25002  as I came hobbling after you,
25003  I thought to myself,
25004  I'll just step in and see that kind gentleman,
25005  and tell him that if I was a bit gruff in my manner there was not any harm meant,
25006  and that I am much obliged to him for picking up my books.
25007 \begin_inset Quotes erd
25008 \end_inset
25009
25010
25011 \end_layout
25012
25013 \begin_layout Plain Layout
25014
25015 \size small
25016 \begin_inset Quotes eld
25017 \end_inset
25018
25019 You make too much of a trifle,
25020 \begin_inset Quotes erd
25021 \end_inset
25022
25023  said I.
25024  
25025 \begin_inset Quotes eld
25026 \end_inset
25027
25028 May I ask how you knew who I was?
25029 \begin_inset Quotes erd
25030 \end_inset
25031
25032
25033 \end_layout
25034
25035 \begin_layout Plain Layout
25036
25037 \size small
25038 \begin_inset Quotes eld
25039 \end_inset
25040
25041 Well,
25042  sir,
25043  if it isn't too great a liberty,
25044  I am a neighbour of yours,
25045  for you'll find my little bookshop at the corner of Church Street,
25046  and very happy to see you,
25047  I am sure.
25048  Maybe you collect yourself,
25049  sir.
25050  Here's 
25051 \noun on
25052 British
25053 \begin_inset space ~
25054 \end_inset
25055
25056 Birds
25057 \noun default
25058 ,
25059  and 
25060 \noun on
25061 Catullus
25062 \noun default
25063 ,
25064  and 
25065 \noun on
25066 The Holy War
25067 \noun default
25068
25069 \begin_inset space ~
25070 \end_inset
25071
25072 – a bargain,
25073  every one of them.
25074  With five volumes you could just fill that gap on that second shelf.
25075  It looks untidy,
25076  does it not,
25077  sir?
25078 \begin_inset Quotes erd
25079 \end_inset
25080
25081
25082 \end_layout
25083
25084 \end_inset
25085
25086
25087 \end_layout
25088
25089 \begin_layout Standard
25090 \begin_inset VSpace defskip
25091 \end_inset
25092
25093
25094 \end_layout
25095
25096 \begin_layout Standard
25097 The rule can be colored by redefining the command 
25098 \begin_inset Flex Code
25099 status collapsed
25100
25101 \begin_layout Plain Layout
25102
25103 \backslash
25104 columnseprulecolor
25105 \end_layout
25106
25107 \end_inset
25108
25109 .
25110  This is done by inserting the command
25111 \end_layout
25112
25113 \begin_layout LyX-Code
25114
25115 \backslash
25116 renewcommand{
25117 \backslash
25118 columnseprulecolor}{
25119 \backslash
25120 color{red}}
25121 \end_layout
25122
25123 \begin_layout Standard
25124 as \SpecialChar TeX
25125  Code before the multicolumn inset.
25126  Replace 
25127 \begin_inset Flex Code
25128 status collapsed
25129
25130 \begin_layout Plain Layout
25131 red
25132 \end_layout
25133
25134 \end_inset
25135
25136  in this command by a color of your choice.
25137  You can use all pre- and self-defined colors.
25138  See the 
25139 \emph on
25140 EmbeddedObjects
25141 \emph default
25142  manual,
25143  section 
25144 \emph on
25145 Colored
25146 \begin_inset space ~
25147 \end_inset
25148
25149 Tables
25150 \emph default
25151  for more information about pre- and self-defined colors.
25152  To go back to the default color insert the command
25153 \end_layout
25154
25155 \begin_layout LyX-Code
25156
25157 \backslash
25158 renewcommand{
25159 \backslash
25160 columnseprulecolor}{
25161 \backslash
25162 normalcolor}
25163 \end_layout
25164
25165 \begin_layout Standard
25166 Here is the example with a cyan rule and 1
25167 \begin_inset space \thinspace{}
25168 \end_inset
25169
25170 cm column separation:
25171 \end_layout
25172
25173 \begin_layout Standard
25174 \begin_inset ERT
25175 status open
25176
25177 \begin_layout Plain Layout
25178
25179
25180 \backslash
25181 setlength{
25182 \backslash
25183 columnsep}{1cm}
25184 \end_layout
25185
25186 \begin_layout Plain Layout
25187
25188
25189 \backslash
25190 renewcommand{
25191 \backslash
25192 columnseprulecolor}{
25193 \backslash
25194 color{cyan}}
25195 \end_layout
25196
25197 \end_inset
25198
25199
25200 \end_layout
25201
25202 \begin_layout Standard
25203 \begin_inset Flex Multiple Columns
25204 status open
25205
25206 \begin_layout Plain Layout
25207
25208 \size small
25209 \begin_inset Quotes eld
25210 \end_inset
25211
25212 You're surprised to see me,
25213  sir,
25214 \begin_inset Quotes erd
25215 \end_inset
25216
25217  said he,
25218  in a strange,
25219  croaking voice.
25220 \end_layout
25221
25222 \begin_layout Plain Layout
25223
25224 \size small
25225 I acknowledged that I was.
25226 \end_layout
25227
25228 \begin_layout Plain Layout
25229
25230 \size small
25231 \begin_inset Quotes eld
25232 \end_inset
25233
25234 Well,
25235  I've a conscience,
25236  sir,
25237  and when I chanced to see you go into this house,
25238  as I came hobbling after you,
25239  I thought to myself,
25240  I'll just step in and see that kind gentleman,
25241  and tell him that if I was a bit gruff in my manner there was not any harm meant,
25242  and that I am much obliged to him for picking up my books.
25243 \begin_inset Quotes erd
25244 \end_inset
25245
25246
25247 \end_layout
25248
25249 \begin_layout Plain Layout
25250
25251 \size small
25252 \begin_inset Quotes eld
25253 \end_inset
25254
25255 You make too much of a trifle,
25256 \begin_inset Quotes erd
25257 \end_inset
25258
25259  said I.
25260  
25261 \begin_inset Quotes eld
25262 \end_inset
25263
25264 May I ask how you knew who I was?
25265 \begin_inset Quotes erd
25266 \end_inset
25267
25268
25269 \end_layout
25270
25271 \begin_layout Plain Layout
25272
25273 \size small
25274 \begin_inset Quotes eld
25275 \end_inset
25276
25277 Well,
25278  sir,
25279  if it isn't too great a liberty,
25280  I am a neighbour of yours,
25281  for you'll find my little bookshop at the corner of Church Street,
25282  and very happy to see you,
25283  I am sure.
25284  Maybe you collect yourself,
25285  sir.
25286  Here's 
25287 \noun on
25288 British
25289 \begin_inset space ~
25290 \end_inset
25291
25292 Birds
25293 \noun default
25294 ,
25295  and 
25296 \noun on
25297 Catullus
25298 \noun default
25299 ,
25300  and 
25301 \noun on
25302 The Holy War
25303 \noun default
25304
25305 \begin_inset space ~
25306 \end_inset
25307
25308 – a bargain,
25309  every one of them.
25310  With five volumes you could just fill that gap on that second shelf.
25311  It looks untidy,
25312  does it not,
25313  sir?
25314 \begin_inset Quotes erd
25315 \end_inset
25316
25317
25318 \end_layout
25319
25320 \end_inset
25321
25322
25323 \end_layout
25324
25325 \begin_layout Standard
25326 \begin_inset ERT
25327 status collapsed
25328
25329 \begin_layout Plain Layout
25330
25331
25332 \backslash
25333 setlength{
25334 \backslash
25335 columnseprule}{0pt}
25336 \end_layout
25337
25338 \begin_layout Plain Layout
25339
25340
25341 \backslash
25342 renewcommand{
25343 \backslash
25344 columnseprulecolor}{
25345 \backslash
25346 normalcolor}
25347 \end_layout
25348
25349 \end_inset
25350
25351
25352 \begin_inset Note Note
25353 status collapsed
25354
25355 \begin_layout Plain Layout
25356 go back to the default
25357 \end_layout
25358
25359 \end_inset
25360
25361
25362 \end_layout
25363
25364 \begin_layout Section
25365
25366 \change_inserted 564990737 1671270380
25367 Paragraph Styles
25368 \end_layout
25369
25370 \begin_layout Subsection
25371
25372 \change_inserted 564990737 1671270398
25373 Custom
25374 \change_deleted 564990737 1671270396
25375 Non-standard
25376 \change_unchanged
25377  Paragraph Shapes
25378 \end_layout
25379
25380 \begin_layout Standard
25381 \noindent
25382 \SpecialChar LaTeX
25383  as well as any other text processor uses by default rectangular paragraphs.
25384  For special cases like for example posters,
25385  invitation cards or poems you can modify the paragraph shape to one of your choice.
25386  
25387 \change_deleted 564990737 1672311802
25388 This can be done by using the \SpecialChar LaTeX
25389 -package 
25390 \begin_inset Flex Code
25391 status collapsed
25392
25393 \begin_layout Plain Layout
25394 shapepar
25395 \end_layout
25396
25397 \end_inset
25398
25399  which is loaded by using in the document settings the module 
25400 \family sans
25401 Custom paragraph shapes
25402 \family default
25403 .
25404 \change_inserted 564990737 1672311802
25405 This module uses the 
25406 \family sans
25407 shapepar
25408 \family default
25409  package to provide over a dozen paragraph shapes as well as commands to define custom shapes.
25410  
25411 \change_unchanged
25412
25413 \end_layout
25414
25415 \begin_layout Subsubsection
25416 Predefined shapes
25417 \end_layout
25418
25419 \begin_layout Standard
25420
25421 \change_deleted 5863208 1701101601
25422
25423 \series bold
25424 The 
25425 \change_inserted 5863208 1701101603
25426
25427 \family sans
25428 \series default
25429 The 
25430 \change_unchanged
25431 shapepar
25432 \family default
25433  
25434 \change_inserted -712698321 1674913877
25435 package 
25436 \change_unchanged
25437 provides the following shapes:
25438 \end_layout
25439
25440 \begin_layout Standard
25441 \begin_inset Tabular
25442 <lyxtabular version="3" rows="13" columns="3">
25443 <features booktabs="true" islongtable="true" longtabularalignment="center">
25444 <column alignment="left" valignment="middle" width="16col%">
25445 <column alignment="left" valignment="middle" width="40col%">
25446 <column alignment="left" valignment="middle" width="35col%">
25447 <row endhead="true">
25448 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25449 \begin_inset Text
25450
25451 \begin_layout Plain Layout
25452
25453 \series bold
25454 \size small
25455 Name
25456 \end_layout
25457
25458 \end_inset
25459 </cell>
25460 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
25461 \begin_inset Text
25462
25463 \begin_layout Plain Layout
25464
25465 \series bold
25466 \size small
25467 Description
25468 \end_layout
25469
25470 \end_inset
25471 </cell>
25472 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
25473 \begin_inset Text
25474
25475 \begin_layout Plain Layout
25476
25477 \series bold
25478 \size small
25479 Annotation
25480 \end_layout
25481
25482 \end_inset
25483 </cell>
25484 </row>
25485 <row interlinespace="default">
25486 <cell alignment="left" valignment="top" usebox="none">
25487 \begin_inset Text
25488
25489 \begin_layout Plain Layout
25490
25491 \size small
25492 CDlabel
25493 \end_layout
25494
25495 \end_inset
25496 </cell>
25497 <cell alignment="left" valignment="top" usebox="none">
25498 \begin_inset Text
25499
25500 \begin_layout Plain Layout
25501
25502 \size small
25503 Circle with circular hole (in the size of a CD/DVD)
25504 \end_layout
25505
25506 \end_inset
25507 </cell>
25508 <cell alignment="left" valignment="top" usebox="none">
25509 \begin_inset Text
25510
25511 \begin_layout Plain Layout
25512
25513 \size small
25514 Cannot be scaled,
25515  take care there is not too much text
25516 \end_layout
25517
25518 \end_inset
25519 </cell>
25520 </row>
25521 <row interlinespace="default">
25522 <cell alignment="left" valignment="top" usebox="none">
25523 \begin_inset Text
25524
25525 \begin_layout Plain Layout
25526
25527 \size small
25528 Circle
25529 \end_layout
25530
25531 \end_inset
25532 </cell>
25533 <cell alignment="left" valignment="top" usebox="none">
25534 \begin_inset Text
25535
25536 \begin_layout Plain Layout
25537
25538 \size small
25539 Circle
25540 \end_layout
25541
25542 \end_inset
25543 </cell>
25544 <cell alignment="left" valignment="top" usebox="none">
25545 \begin_inset Text
25546
25547 \begin_layout Plain Layout
25548
25549 \size small
25550 Fragile,
25551  calculation might fail
25552 \end_layout
25553
25554 \end_inset
25555 </cell>
25556 </row>
25557 <row interlinespace="default">
25558 <cell alignment="left" valignment="top" usebox="none">
25559 \begin_inset Text
25560
25561 \begin_layout Plain Layout
25562
25563 \size small
25564 Diamond
25565 \end_layout
25566
25567 \end_inset
25568 </cell>
25569 <cell alignment="left" valignment="top" usebox="none">
25570 \begin_inset Text
25571
25572 \begin_layout Plain Layout
25573
25574 \size small
25575 Rhomboid (symbolizing a 
25576 \begin_inset Quotes eld
25577 \end_inset
25578
25579 diamond
25580 \begin_inset Quotes erd
25581 \end_inset
25582
25583 )
25584 \end_layout
25585
25586 \end_inset
25587 </cell>
25588 <cell alignment="left" valignment="top" usebox="none">
25589 \begin_inset Text
25590
25591 \begin_layout Plain Layout
25592
25593 \size small
25594 -
25595 \end_layout
25596
25597 \end_inset
25598 </cell>
25599 </row>
25600 <row interlinespace="default">
25601 <cell alignment="left" valignment="top" usebox="none">
25602 \begin_inset Text
25603
25604 \begin_layout Plain Layout
25605
25606 \size small
25607 Heart
25608 \end_layout
25609
25610 \end_inset
25611 </cell>
25612 <cell alignment="left" valignment="top" usebox="none">
25613 \begin_inset Text
25614
25615 \begin_layout Plain Layout
25616
25617 \size small
25618 Heart-like shape
25619 \end_layout
25620
25621 \end_inset
25622 </cell>
25623 <cell alignment="left" valignment="top" usebox="none">
25624 \begin_inset Text
25625
25626 \begin_layout Plain Layout
25627
25628 \size small
25629 -
25630 \end_layout
25631
25632 \end_inset
25633 </cell>
25634 </row>
25635 <row interlinespace="default">
25636 <cell alignment="left" valignment="top" usebox="none">
25637 \begin_inset Text
25638
25639 \begin_layout Plain Layout
25640
25641 \size small
25642 Hexagon
25643 \end_layout
25644
25645 \end_inset
25646 </cell>
25647 <cell alignment="left" valignment="top" usebox="none">
25648 \begin_inset Text
25649
25650 \begin_layout Plain Layout
25651
25652 \size small
25653 Hexagon
25654 \end_layout
25655
25656 \end_inset
25657 </cell>
25658 <cell alignment="left" valignment="top" usebox="none">
25659 \begin_inset Text
25660
25661 \begin_layout Plain Layout
25662
25663 \size small
25664 -
25665 \end_layout
25666
25667 \end_inset
25668 </cell>
25669 </row>
25670 <row interlinespace="default">
25671 <cell alignment="left" valignment="top" usebox="none">
25672 \begin_inset Text
25673
25674 \begin_layout Plain Layout
25675
25676 \size small
25677 Nut
25678 \end_layout
25679
25680 \end_inset
25681 </cell>
25682 <cell alignment="left" valignment="top" usebox="none">
25683 \begin_inset Text
25684
25685 \begin_layout Plain Layout
25686
25687 \size small
25688 Nut for bolt (hexagon with circular hole)
25689 \end_layout
25690
25691 \end_inset
25692 </cell>
25693 <cell alignment="left" valignment="top" usebox="none">
25694 \begin_inset Text
25695
25696 \begin_layout Plain Layout
25697
25698 \size small
25699 -
25700 \end_layout
25701
25702 \end_inset
25703 </cell>
25704 </row>
25705 <row interlinespace="default">
25706 <cell alignment="left" valignment="top" usebox="none">
25707 \begin_inset Text
25708
25709 \begin_layout Plain Layout
25710
25711 \size small
25712 Square
25713 \end_layout
25714
25715 \end_inset
25716 </cell>
25717 <cell alignment="left" valignment="top" usebox="none">
25718 \begin_inset Text
25719
25720 \begin_layout Plain Layout
25721
25722 \size small
25723 Square
25724 \end_layout
25725
25726 \end_inset
25727 </cell>
25728 <cell alignment="left" valignment="top" usebox="none">
25729 \begin_inset Text
25730
25731 \begin_layout Plain Layout
25732
25733 \size small
25734 -
25735 \end_layout
25736
25737 \end_inset
25738 </cell>
25739 </row>
25740 <row interlinespace="default">
25741 <cell alignment="left" valignment="top" usebox="none">
25742 \begin_inset Text
25743
25744 \begin_layout Plain Layout
25745
25746 \size small
25747 Star
25748 \end_layout
25749
25750 \end_inset
25751 </cell>
25752 <cell alignment="left" valignment="top" usebox="none">
25753 \begin_inset Text
25754
25755 \begin_layout Plain Layout
25756
25757 \size small
25758 Five-point star
25759 \end_layout
25760
25761 \end_inset
25762 </cell>
25763 <cell alignment="left" valignment="top" usebox="none">
25764 \begin_inset Text
25765
25766 \begin_layout Plain Layout
25767
25768 \size small
25769 -
25770 \end_layout
25771
25772 \end_inset
25773 </cell>
25774 </row>
25775 <row interlinespace="default">
25776 <cell alignment="left" valignment="top" usebox="none">
25777 \begin_inset Text
25778
25779 \begin_layout Plain Layout
25780
25781 \size small
25782 Candle
25783 \end_layout
25784
25785 \end_inset
25786 </cell>
25787 <cell alignment="left" valignment="top" usebox="none">
25788 \begin_inset Text
25789
25790 \begin_layout Plain Layout
25791
25792 \size small
25793 Burning candle
25794 \end_layout
25795
25796 \end_inset
25797 </cell>
25798 <cell alignment="left" valignment="top" usebox="none">
25799 \begin_inset Text
25800
25801 \begin_layout Plain Layout
25802
25803 \size small
25804 -
25805 \end_layout
25806
25807 \end_inset
25808 </cell>
25809 </row>
25810 <row interlinespace="default">
25811 <cell alignment="left" valignment="top" usebox="none">
25812 \begin_inset Text
25813
25814 \begin_layout Plain Layout
25815
25816 \size small
25817 Drop down/up
25818 \end_layout
25819
25820 \end_inset
25821 </cell>
25822 <cell alignment="left" valignment="top" usebox="none">
25823 \begin_inset Text
25824
25825 \begin_layout Plain Layout
25826
25827 \size small
25828 Normal/reversed rain drop
25829 \end_layout
25830
25831 \end_inset
25832 </cell>
25833 <cell alignment="left" valignment="top" usebox="none">
25834 \begin_inset Text
25835
25836 \begin_layout Plain Layout
25837
25838 \size small
25839 Fragile,
25840  calculation might fail
25841 \end_layout
25842
25843 \end_inset
25844 </cell>
25845 </row>
25846 <row interlinespace="default">
25847 <cell alignment="left" valignment="top" usebox="none">
25848 \begin_inset Text
25849
25850 \begin_layout Plain Layout
25851
25852 \size small
25853 \SpecialChar TeX
25854
25855 \end_layout
25856
25857 \end_inset
25858 </cell>
25859 <cell alignment="left" valignment="top" usebox="none">
25860 \begin_inset Text
25861
25862 \begin_layout Plain Layout
25863
25864 \size small
25865 The \SpecialChar TeX
25866  logo
25867 \end_layout
25868
25869 \end_inset
25870 </cell>
25871 <cell alignment="left" valignment="top" usebox="none">
25872 \begin_inset Text
25873
25874 \begin_layout Plain Layout
25875
25876 \size small
25877 -
25878 \end_layout
25879
25880 \end_inset
25881 </cell>
25882 </row>
25883 <row interlinespace="default">
25884 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
25885 \begin_inset Text
25886
25887 \begin_layout Plain Layout
25888
25889 \size small
25890 Triangle up/down/
25891 \begin_inset Newline newline
25892 \end_inset
25893
25894 left/right
25895 \end_layout
25896
25897 \end_inset
25898 </cell>
25899 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
25900 \begin_inset Text
25901
25902 \begin_layout Plain Layout
25903
25904 \size small
25905 Triangles in different orientations
25906 \end_layout
25907
25908 \end_inset
25909 </cell>
25910 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
25911 \begin_inset Text
25912
25913 \begin_layout Plain Layout
25914
25915 \size small
25916 -
25917 \end_layout
25918
25919 \end_inset
25920 </cell>
25921 </row>
25922 </lyxtabular>
25923
25924 \end_inset
25925
25926
25927 \end_layout
25928
25929 \begin_layout Standard
25930 To use a shape for your paragraph,
25931  simply select it in \SpecialChar LyX
25932 's pull-down box for environments in the toolbar.
25933 \end_layout
25934
25935 \begin_layout Standard
25936 \begin_inset Newpage newpage
25937 \end_inset
25938
25939
25940 \end_layout
25941
25942 \begin_layout Standard
25943 Here is an example paragraph in the shape of a nut:
25944 \end_layout
25945
25946 \begin_layout Standard
25947 \begin_inset VSpace bigskip
25948 \end_inset
25949
25950
25951 \end_layout
25952
25953 \begin_layout Nut
25954
25955 \lang latin
25956 Lorem ipsum dolor sit amet,
25957  consetetur sadipscing elitr,
25958  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
25959  sed diam voluptua.
25960  At vero eos et accusam et justo duo dolores et ea rebum.
25961  Stet clita kasd gubergren,
25962  no sea takimata sanctus est Lorem ipsum dolor sit amet.
25963  Lorem ipsum dolor sit amet,
25964  consetetur sadipscing elitr,
25965  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
25966  sed diam voluptua.
25967 \end_layout
25968
25969 \begin_layout Standard
25970 \begin_inset VSpace bigskip
25971 \end_inset
25972
25973
25974 \end_layout
25975
25976 \begin_layout Standard
25977 \begin_inset Note Greyedout
25978 status open
25979
25980 \begin_layout Plain Layout
25981
25982 \series bold
25983 Note
25984 \series default
25985 :
25986  
25987 \family sans
25988 shapepar
25989 \family default
25990  paragraphs cannot run over a page break.
25991 \end_layout
25992
25993 \end_inset
25994
25995
25996 \end_layout
25997
25998 \begin_layout Standard
25999 \begin_inset VSpace bigskip
26000 \end_inset
26001
26002
26003 \end_layout
26004
26005 \begin_layout Standard
26006 The package 
26007 \begin_inset Flex Code
26008 status collapsed
26009
26010 \begin_layout Plain Layout
26011 shapepar
26012 \end_layout
26013
26014 \end_inset
26015
26016  takes care that the shape will always be preserved,
26017  no matter how much text is in the paragraph.
26018  Therefore the paragraph size changes with the amount of contained text.
26019  This can lead to paragraph sizes exceeding the page margins.
26020  To demonstrate the size scaling,
26021  here is the same example paragraph but with twice as much text:
26022 \end_layout
26023
26024 \begin_layout Standard
26025 \begin_inset Newpage newpage
26026 \end_inset
26027
26028
26029 \end_layout
26030
26031 \begin_layout Nut
26032
26033 \lang latin
26034 Lorem ipsum dolor sit amet,
26035  consetetur sadipscing elitr,
26036  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26037  sed diam voluptua.
26038  At vero eos et accusam et justo duo dolores et ea rebum.
26039  Stet clita kasd gubergren,
26040  no sea takimata sanctus est Lorem ipsum dolor sit amet.
26041  Lorem ipsum dolor sit amet,
26042  consetetur sadipscing elitr,
26043  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26044  sed diam voluptua.
26045  Lorem ipsum dolor sit amet,
26046  consetetur sadipscing elitr,
26047  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26048  sed diam voluptua.
26049  At vero eos et accusam et justo duo dolores et ea rebum.
26050  Stet clita kasd gubergren,
26051  no sea takimata sanctus est Lorem ipsum dolor sit amet.
26052  Lorem ipsum dolor sit amet,
26053  consetetur sadipscing elitr,
26054  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26055  sed diam voluptua.
26056 \end_layout
26057
26058 \begin_layout Standard
26059 \begin_inset VSpace bigskip
26060 \end_inset
26061
26062
26063 \end_layout
26064
26065 \begin_layout Standard
26066 An exception is the shape 
26067 \family sans
26068 CDlabel
26069 \family default
26070 .
26071  It cannot be scaled because it must fit the size of a CD/DVD.
26072  Therefore the amount of text that fits into the shape is limited.
26073 \change_deleted -712698321 1674914001
26074
26075 \begin_inset Newline newline
26076 \end_inset
26077
26078
26079 \change_inserted -712698321 1674914001
26080
26081 \end_layout
26082
26083 \begin_layout Standard
26084 The 
26085 \family sans
26086 drop
26087 \family default
26088  shapes and the 
26089 \family sans
26090 circle
26091 \family default
26092  shape are fragile,
26093  meaning that the calculation of their size can fail,
26094  depending on the amount of text.
26095  You will then get the \SpecialChar LaTeX
26096  error 
26097 \begin_inset Quotes eld
26098 \end_inset
26099
26100 Arithmetic overflow
26101 \begin_inset Quotes erd
26102 \end_inset
26103
26104 .
26105  In this case one can try to remove or add some text;
26106  if nothing works one has to use another shape.
26107 \end_layout
26108
26109 \begin_layout Standard
26110
26111 \change_deleted -712698321 1674914021
26112 \begin_inset VSpace bigskip
26113 \end_inset
26114
26115
26116 \change_unchanged
26117
26118 \end_layout
26119
26120 \begin_layout Standard
26121 For shapes with tips you will maybe see that \SpecialChar LaTeX
26122 's hyphenation routine fails for text in the tips.
26123  Therefore it is often necessary to add hyphenation points 
26124 \family sans
26125 (
26126 \begin_inset Info
26127 type  "shortcut"
26128 arg   "specialchar-insert hyphenation"
26129 \end_inset
26130
26131
26132 \family default
26133 ) to the corresponding text parts.
26134 \end_layout
26135
26136 \begin_layout Standard
26137
26138 \change_deleted -712698321 1674914022
26139 \begin_inset VSpace bigskip
26140 \end_inset
26141
26142
26143 \change_unchanged
26144
26145 \end_layout
26146
26147 \begin_layout Standard
26148 Shapepar paragraphs are either always centered or placed on the page so that their left border touches the left page margin.
26149  You can therefore not use the paragraph dialog to align such paragraphs.
26150  A solution is to put the paragraph into a minipage or parbox and align the box.
26151  The problem is hereby to find the right width for the box.
26152  Because if it is too wide and you center the box,
26153  the paragraph is not centered too because it sticks at the left side of the box.
26154  So you might have to play a bit with the width until it fits.
26155  Here are two heart-shaped paragraphs,
26156  the first one is not aligned,
26157  the second one is right-aligned:
26158 \end_layout
26159
26160 \begin_layout Standard
26161 \begin_inset Newpage newpage
26162 \end_inset
26163
26164
26165 \end_layout
26166
26167 \begin_layout Heart
26168 \noindent
26169
26170 \lang latin
26171 Lo\SpecialChar softhyphen
26172 rem ipsum dolor sit amet,
26173  consetetur sadipscing elitr,
26174  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26175  sed diam voluptua.
26176  At vero eos et accusam et justo duo dolores et ea rebum.
26177  Stet clita kasd gubergren,
26178  no sea takimata sanctus est Lorem ipsum dolor sit amet.
26179 \end_layout
26180
26181 \begin_layout Standard
26182 \begin_inset VSpace bigskip
26183 \end_inset
26184
26185
26186 \end_layout
26187
26188 \begin_layout Standard
26189 \noindent
26190 \align right
26191 \begin_inset Box Frameless
26192 position "t"
26193 hor_pos "c"
26194 has_inner_box 1
26195 inner_pos "t"
26196 use_parbox 1
26197 use_makebox 0
26198 width "42col%"
26199 special "none"
26200 height "1in"
26201 height_special "totalheight"
26202 thickness "0.4pt"
26203 separation "3pt"
26204 shadowsize "4pt"
26205 framecolor "black"
26206 backgroundcolor "none"
26207 status open
26208
26209 \begin_layout Heart
26210 \noindent
26211
26212 \lang latin
26213 Lo\SpecialChar softhyphen
26214 rem ipsum dolor sit amet,
26215  consetetur sadipscing elitr,
26216  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26217  sed diam voluptua.
26218  At vero eos et accusam et justo duo dolores et ea rebum.
26219  Stet clita kasd gubergren,
26220  no sea takimata sanctus est Lorem ipsum dolor sit amet.
26221 \end_layout
26222
26223 \end_inset
26224
26225
26226 \end_layout
26227
26228 \begin_layout Subsubsection
26229 Custom shapes
26230 \end_layout
26231
26232 \begin_layout Standard
26233 You can define any shape you want.
26234  Doing this manually is a lot of work because every coordinate must be specified.
26235  But there is a way to let the computer calculate the coordinates:
26236 \end_layout
26237
26238 \begin_layout Enumerate
26239 Install the program 
26240 \begin_inset CommandInset href
26241 LatexCommand href
26242 name "Jpgfdraw"
26243 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
26244 literal "false"
26245
26246 \end_inset
26247
26248 .
26249 \end_layout
26250
26251 \begin_layout Enumerate
26252 In 
26253 \family sans
26254 Jpgfdraw
26255 \family default
26256  go to the menu 
26257 \family sans
26258 TeX/LaTeX\SpecialChar menuseparator
26259 Settings\SpecialChar menuseparator
26260 Set Normal Size
26261 \family default
26262  and select the font size you are using in your document.
26263  For example this document uses the size 12
26264 \begin_inset space \thinspace{}
26265 \end_inset
26266
26267 pt.
26268 \end_layout
26269
26270 \begin_layout Enumerate
26271 Draw a shape.
26272 \end_layout
26273
26274 \begin_layout Enumerate
26275 Use the menu 
26276 \family sans
26277 TeX/LaTeX\SpecialChar menuseparator
26278 Shapepar
26279 \family default
26280  to export the shape to coordinates.
26281  In the appearing dialog use either the outline of your shape for the coordinates or the path itself.
26282 \begin_inset Foot
26283 status collapsed
26284
26285 \begin_layout Plain Layout
26286 For more information see 
26287 \begin_inset CommandInset href
26288 LatexCommand href
26289 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
26290 literal "false"
26291
26292 \end_inset
26293
26294
26295 \end_layout
26296
26297 \end_inset
26298
26299
26300 \end_layout
26301
26302 \begin_layout Standard
26303 The coordinates are written into a \SpecialChar TeX
26304  file.
26305  To use it for your \SpecialChar LyX
26306  document
26307 \end_layout
26308
26309 \begin_layout Enumerate
26310 Place the cursor before the first character of your paragraph (or into a new empty one).
26311 \end_layout
26312
26313 \begin_layout Enumerate
26314 Open in \SpecialChar LyX
26315  the menu 
26316 \family sans
26317 Insert\SpecialChar menuseparator
26318 File\SpecialChar menuseparator
26319 Child
26320 \begin_inset space ~
26321 \end_inset
26322
26323 Document
26324 \family default
26325 ,
26326  select the file and use 
26327 \family sans
26328 Input
26329 \family default
26330  as 
26331 \family sans
26332 Include Type.
26333 \end_layout
26334
26335 \begin_layout Standard
26336 \begin_inset VSpace defskip
26337 \end_inset
26338
26339
26340 \end_layout
26341
26342 \begin_layout Standard
26343 \begin_inset Note Greyedout
26344 status open
26345
26346 \begin_layout Plain Layout
26347
26348 \series bold
26349 Note
26350 \series default
26351 :
26352  The changed shape only applies to the current paragraph;
26353  everything is reset to normal for the next paragraph.
26354  Therefore the shape definition file must be input into every paragraph with the desired shape.
26355 \end_layout
26356
26357 \end_inset
26358
26359
26360 \end_layout
26361
26362 \begin_layout Standard
26363 \begin_inset VSpace bigskip
26364 \end_inset
26365
26366
26367 \end_layout
26368
26369 \begin_layout Standard
26370 Here is an example:
26371 \end_layout
26372
26373 \begin_layout Standard
26374 \begin_inset VSpace bigskip
26375 \end_inset
26376
26377
26378 \end_layout
26379
26380 \begin_layout Standard
26381 \begin_inset CommandInset include
26382 LatexCommand input
26383 filename "SpecialParagraphShape.tex"
26384 literal "true"
26385
26386 \end_inset
26387
26388
26389 \lang latin
26390 Lorem ipsum dolor sit amet,
26391  consetetur sadipscing elitr,
26392  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26393  sed diam voluptua.
26394  At vero eos et accusam et justo duo dolores et ea rebum.
26395  Stet clita kasd gubergren,
26396  no sea takimata sanctus est Lorem ipsum dolor sit amet.
26397  Lorem ipsum dolor sit amet,
26398  consetetur sadipscing elitr,
26399  sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat,
26400  sed diam voluptua.
26401 \end_layout
26402
26403 \begin_layout Standard
26404 \begin_inset VSpace bigskip
26405 \end_inset
26406
26407
26408 \end_layout
26409
26410 \begin_layout Standard
26411
26412 \series bold
26413 A tip:
26414
26415 \series default
26416  to draw complexer shapes in 
26417 \family sans
26418 Jpgfdraw
26419 \family default
26420  you can draw the shape in a program of your choice and import the resulting image to 
26421 \family sans
26422 Jpgfdraw
26423 \family default
26424 .
26425  Then you only need to draw a line or spline along the outline of the image.
26426 \end_layout
26427
26428 \begin_layout Standard
26429
26430 \change_deleted -712698321 1674914114
26431 \begin_inset VSpace bigskip
26432 \end_inset
26433
26434
26435 \change_unchanged
26436
26437 \end_layout
26438
26439 \begin_layout Standard
26440 The module 
26441 \family sans
26442 Custom paragraph shapes
26443 \family default
26444  also provides the two commands 
26445 \family sans
26446 shapepar
26447 \family default
26448  and 
26449 \family sans
26450 Shapepar
26451 \family default
26452  which can be used to define custom shapes coordinate by coordinate.
26453 \begin_inset Foot
26454 status collapsed
26455
26456 \begin_layout Plain Layout
26457 These commands are internally used for all shapes described here.
26458 \end_layout
26459
26460 \end_inset
26461
26462  For information how these styles are used and about further customization possibilities,
26463  have a look at the 
26464 \begin_inset CommandInset href
26465 LatexCommand href
26466 name "documentation"
26467 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
26468 literal "false"
26469
26470 \end_inset
26471
26472  of the package 
26473 \begin_inset Flex Code
26474 status collapsed
26475
26476 \begin_layout Plain Layout
26477 shapepar
26478 \end_layout
26479
26480 \end_inset
26481
26482 .
26483 \end_layout
26484
26485 \begin_layout Subsection
26486
26487 \change_inserted 564990737 1672311925
26488 Hanging Paragraphs
26489 \end_layout
26490
26491 \begin_layout Hanging
26492
26493 \change_inserted 564990737 1672311925
26494 This module adds the 
26495 \family sans
26496 Hanging
26497 \family default
26498  paragraph style,
26499  that is,
26500  one where all but the first line of the paragraph is indented.
26501  This may not appear in your \SpecialChar LyX
26502  document but will appear in the final output.
26503 \end_layout
26504
26505 \begin_layout Subsection
26506
26507 \change_inserted 564990737 1672311925
26508 \begin_inset CommandInset label
26509 LatexCommand label
26510 name "subsec:Initials"
26511
26512 \end_inset
26513
26514 Initials (Drop Caps)
26515 \end_layout
26516
26517 \begin_layout Initial
26518
26519 \change_inserted 564990737 1672311925
26520 \begin_inset Argument 2
26521 status open
26522
26523 \begin_layout Plain Layout
26524
26525 \change_inserted 564990737 1672311925
26526 T
26527 \change_unchanged
26528
26529 \end_layout
26530
26531 \end_inset
26532
26533
26534 \begin_inset Argument 3
26535 status open
26536
26537 \begin_layout Plain Layout
26538
26539 \change_inserted 564990737 1672311925
26540 his
26541 \change_unchanged
26542
26543 \end_layout
26544
26545 \end_inset
26546
26547  module adds a drop capitals paragraph style 
26548 \family sans
26549 Initials
26550 \family default
26551  for paragraph environments which you can use wherever you want to have drop capitals.
26552  You then have three more items in the 
26553 \family sans
26554 Insert
26555 \family default
26556  menu:
26557 \end_layout
26558
26559 \begin_layout Itemize
26560
26561 \change_inserted 564990737 1672311925
26562
26563 \family sans
26564 Initial
26565 \family default
26566  which creates an inset for the drop capital
26567 \end_layout
26568
26569 \begin_layout Itemize
26570
26571 \change_inserted 564990737 1672311925
26572
26573 \family sans
26574 Rest of initial
26575 \family default
26576  which creates an inset for the rest of the word
26577 \end_layout
26578
26579 \begin_layout Itemize
26580
26581 \change_inserted 564990737 1672311925
26582
26583 \family sans
26584 Options
26585 \family default
26586  which allow you configure the formatting of the drop capital.
26587 \end_layout
26588
26589 \begin_layout Standard
26590
26591 \change_inserted 564990737 1672311925
26592 To customize the appearance of the style,
26593  see 
26594 \family sans
26595 Help\SpecialChar menuseparator
26596 Embedded Objects\SpecialChar menuseparator
26597 Objects Surrounded by Text\SpecialChar menuseparator
26598 Initials
26599 \family default
26600 .
26601 \end_layout
26602
26603 \begin_layout Section
26604
26605 \change_inserted 564990737 1672312011
26606 Text Markup
26607 \end_layout
26608
26609 \begin_layout Subsection
26610
26611 \change_inserted 564990737 1672312011
26612 Hyphenatable Text Markup
26613 \change_inserted -712698321 1674915075
26614  (Soul)
26615 \change_inserted 564990737 1672312011
26616
26617 \end_layout
26618
26619 \begin_layout Standard
26620
26621 \change_inserted 564990737 1672312011
26622 This 
26623 \change_deleted -712698321 1674915086
26624 package
26625 \change_inserted -712698321 1674915087
26626 modul
26627 \change_inserted 564990737 1672312011
26628  defines text styles to highlight,
26629  space-out,
26630  strike-through,
26631  underline and capitalize/small-cap text by means of the 
26632 \family sans
26633 soul
26634 \family default
26635  package.
26636  
26637 \change_inserted -712698321 1674915141
26638
26639 \end_layout
26640
26641 \begin_layout Standard
26642
26643 \change_inserted 564990737 1672312011
26644 As opposed to the markup provided by the Text Properties dialog,
26645  words marked-up with 
26646 \family sans
26647 soul
26648 \family default
26649  are hyphenated.
26650  See the 
26651 \begin_inset CommandInset href
26652 LatexCommand href
26653 name "soul documentation"
26654 target "http://mirrors.ctan.org/macros/generic/soul/soul.pdf"
26655 literal "false"
26656
26657 \end_inset
26658
26659 .
26660 \end_layout
26661
26662 \begin_layout Subsection
26663
26664 \change_inserted 564990737 1672312011
26665 Logical Markup
26666 \end_layout
26667
26668 \begin_layout Standard
26669
26670 \change_inserted 564990737 1672312011
26671 This module defines some character styles for logical markup:
26672  
26673 \noun on
26674
26675 \begin_inset Flex Noun
26676 status collapsed
26677
26678 \begin_layout Plain Layout
26679
26680 \change_inserted 564990737 1672312011
26681
26682 \noun on
26683 noun
26684 \change_unchanged
26685
26686 \end_layout
26687
26688 \end_inset
26689
26690
26691 \noun default
26692 ,
26693  
26694 \emph on
26695
26696 \begin_inset Flex Emph
26697 status collapsed
26698
26699 \begin_layout Plain Layout
26700
26701 \change_inserted 564990737 1672312011
26702
26703 \emph on
26704 emph
26705 \change_unchanged
26706
26707 \end_layout
26708
26709 \end_inset
26710
26711
26712 \emph default
26713 ,
26714  
26715 \begin_inset Flex Strong
26716 status collapsed
26717
26718 \begin_layout Plain Layout
26719
26720 \change_inserted 564990737 1672312011
26721 strong
26722 \change_unchanged
26723
26724 \end_layout
26725
26726 \end_inset
26727
26728 ,
26729  and 
26730 \begin_inset Flex Code
26731 status collapsed
26732
26733 \begin_layout Plain Layout
26734
26735 \change_inserted 564990737 1672312011
26736 code
26737 \change_unchanged
26738
26739 \end_layout
26740
26741 \end_inset
26742
26743  which are accessed via the 
26744 \family sans
26745 \bar under
26746 E
26747 \bar default
26748 dit\SpecialChar menuseparator
26749 Custom
26750 \begin_inset space ~
26751 \end_inset
26752
26753 Text
26754 \begin_inset space ~
26755 \end_inset
26756
26757
26758 \bar under
26759 S
26760 \bar default
26761 tyles
26762 \family default
26763  menu.
26764 \end_layout
26765
26766 \begin_layout Chapter
26767
26768 \change_deleted 564990737 1671304317
26769 Customizing 
26770 \change_unchanged
26771 Bibliograph
26772 \change_inserted 564990737 1671304322
26773 y
26774 \change_deleted 564990737 1671304331
26775 ies with Bib\SpecialChar TeX
26776  or Biblatex
26777 \change_unchanged
26778
26779 \end_layout
26780
26781 \begin_layout Standard
26782 The most basic information about how to use Bib\SpecialChar TeX
26783  or 
26784 \family sans
26785 Biblatex
26786 \family default
26787  with \SpecialChar LyX
26788  is contained in the section 
26789 \emph on
26790 Bibliography databases
26791 \emph default
26792  of the 
26793 \emph on
26794 User's Guide
26795 \emph default
26796 .
26797  The following subsections explain special bibliography features supported by \SpecialChar LyX
26798 .
26799 \end_layout
26800
26801 \begin_layout Section
26802 Alternative Citation Styles
26803 \end_layout
26804
26805 \begin_layout Standard
26806 Standard Bib\SpecialChar TeX
26807  uses numbers (e.
26808 \begin_inset space \thinspace{}
26809 \end_inset
26810
26811 g.
26812 \begin_inset space \space{}
26813 \end_inset
26814
26815
26816 \begin_inset Quotes eld
26817 \end_inset
26818
26819 [12]
26820 \begin_inset Quotes erd
26821 \end_inset
26822
26823 ) to refer to a cited work.
26824  However,
26825  in many scientific disciplines,
26826  other citation styles are in use.
26827  The most common one is the author-year style (e.
26828 \begin_inset space \thinspace{}
26829 \end_inset
26830
26831 g.
26832 \begin_inset space \space{}
26833 \end_inset
26834
26835
26836 \begin_inset Quotes eld
26837 \end_inset
26838
26839 Knuth 1984a
26840 \begin_inset Quotes erd
26841 \end_inset
26842
26843 ).
26844  \SpecialChar LyX
26845  supports three packages that provide this style,
26846  
26847 \begin_inset Flex Code
26848 status collapsed
26849
26850 \begin_layout Plain Layout
26851 biblatex
26852 \end_layout
26853
26854 \end_inset
26855
26856 ,
26857  
26858 \begin_inset Flex Code
26859 status collapsed
26860
26861 \begin_layout Plain Layout
26862 natbib
26863 \end_layout
26864
26865 \end_inset
26866
26867 ,
26868  and 
26869 \begin_inset Flex Code
26870 status collapsed
26871
26872 \begin_layout Plain Layout
26873 jurabib
26874 \end_layout
26875
26876 \end_inset
26877
26878 .
26879  Each of these packages has their pros and cons,
26880  which cannot be listed in detail.
26881  If you only want to have simple author-year (or author-numerical) style,
26882  or if you want to use one of the countless style files for 
26883 \begin_inset Flex Code
26884 status collapsed
26885
26886 \begin_layout Plain Layout
26887 natbib
26888 \end_layout
26889
26890 \end_inset
26891
26892 ,
26893  then the established 
26894 \begin_inset Flex Code
26895 status collapsed
26896
26897 \begin_layout Plain Layout
26898 natbib
26899 \end_layout
26900
26901 \end_inset
26902
26903  package is probably your choice.
26904  If you look for specific citation styles common in law studies,
26905  you might consider the 
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 jurabib
26911 \end_layout
26912
26913 \end_inset
26914
26915  package.
26916  If you want to have full control over the formatting or look for advanced features such as ibidem,
26917  footnote citations,
26918  full title citations,
26919  advanced date formats (such as 400 BC) or full localization to other languages than English,
26920  you should definitely consider 
26921 \begin_inset Flex Code
26922 status collapsed
26923
26924 \begin_layout Plain Layout
26925 biblatex
26926 \end_layout
26927
26928 \end_inset
26929
26930 ,
26931  which exceeds all other packages in terms of features,
26932  but is also quite heavy and more resource-hungry.
26933 \end_layout
26934
26935 \begin_layout Standard
26936 The handling of these packages in \SpecialChar LyX
26937  is basically the same.
26938  Go to 
26939 \change_deleted -712698321 1674917685
26940
26941 \begin_inset Flex Noun
26942 status collapsed
26943
26944 \begin_layout Plain Layout
26945 Document\SpecialChar menuseparator
26946 Settings
26947 \end_layout
26948
26949 \end_inset
26950
26951
26952 \change_inserted -712698321 1674917685
26953
26954 \family sans
26955 Document\SpecialChar menuseparator
26956 Settings
26957 \change_unchanged
26958
26959 \family default
26960  and select under 
26961 \change_deleted -712698321 1674917692
26962
26963 \begin_inset Flex Noun
26964 status collapsed
26965
26966 \begin_layout Plain Layout
26967 Bibliography
26968 \end_layout
26969
26970 \end_inset
26971
26972
26973 \change_inserted -712698321 1674917692
26974
26975 \family sans
26976 Bibliography
26977 \change_unchanged
26978
26979 \family default
26980  the 
26981 \change_deleted -712698321 1674917696
26982
26983 \begin_inset Flex Noun
26984 status collapsed
26985
26986 \begin_layout Plain Layout
26987 Style Format
26988 \end_layout
26989
26990 \end_inset
26991
26992
26993 \change_inserted -712698321 1674917696
26994
26995 \family sans
26996 Style Format
26997 \change_unchanged
26998
26999 \family default
27000  
27001 \change_deleted -712698321 1674917703
27002
27003 \begin_inset Flex Noun
27004 status collapsed
27005
27006 \begin_layout Plain Layout
27007 Basic (BibTeX)
27008 \end_layout
27009
27010 \end_inset
27011
27012
27013 \change_inserted -712698321 1674917703
27014
27015 \family sans
27016 Basic (BibTeX)
27017 \change_unchanged
27018
27019 \family default
27020 ,
27021  
27022 \change_deleted -712698321 1674917708
27023
27024 \begin_inset Flex Noun
27025 status collapsed
27026
27027 \begin_layout Plain Layout
27028 Biblatex
27029 \end_layout
27030
27031 \end_inset
27032
27033
27034 \change_inserted -712698321 1674917708
27035
27036 \family sans
27037 Biblatex
27038 \change_unchanged
27039
27040 \family default
27041 ,
27042  
27043 \change_deleted -712698321 1674917712
27044
27045 \begin_inset Flex Noun
27046 status collapsed
27047
27048 \begin_layout Plain Layout
27049 Biblatex (Natbib mode)
27050 \end_layout
27051
27052 \end_inset
27053
27054
27055 \change_inserted -712698321 1674917712
27056
27057 \family sans
27058 Biblatex (Natbib mode)
27059 \change_unchanged
27060
27061 \family default
27062 ,
27063  
27064 \change_deleted -712698321 1674917718
27065
27066 \begin_inset Flex Noun
27067 status collapsed
27068
27069 \begin_layout Plain Layout
27070 Natbib (BibTeX)
27071 \end_layout
27072
27073 \end_inset
27074
27075
27076 \change_inserted -712698321 1674917718
27077
27078 \family sans
27079 Natbib (BibTeX)
27080 \change_unchanged
27081
27082 \family default
27083  or 
27084 \change_deleted -712698321 1674917724
27085
27086 \begin_inset Flex Noun
27087 status collapsed
27088
27089 \begin_layout Plain Layout
27090 Jurabib (BibTeX)
27091 \end_layout
27092
27093 \end_inset
27094
27095
27096 \change_inserted -712698321 1674917724
27097
27098 \family sans
27099 Jurabib (BibTeX)
27100 \change_unchanged
27101
27102 \family default
27103  (see sec.
27104 \begin_inset space ~
27105 \end_inset
27106
27107 6.5.3 in the User's Guide for more information on these choices).
27108  With all these packages,
27109  you will get some extra features in the citation dialog and you can select the style of the reference (
27110 \begin_inset Quotes eld
27111 \end_inset
27112
27113 Knuth 1984
27114 \begin_inset Quotes erd
27115 \end_inset
27116
27117 ,
27118  
27119 \begin_inset Quotes eld
27120 \end_inset
27121
27122 Knuth (1984)
27123 \begin_inset Quotes erd
27124 \end_inset
27125
27126 ,
27127  
27128 \begin_inset Quotes eld
27129 \end_inset
27130
27131 Knuth,
27132  1984
27133 \begin_inset Quotes erd
27134 \end_inset
27135
27136 ,
27137  
27138 \begin_inset Quotes eld
27139 \end_inset
27140
27141 1984
27142 \begin_inset Quotes erd
27143 \end_inset
27144
27145  etc.).
27146  Note that either package needs specifically designed style files.
27147  They all ship their own,
27148  but there are lots of additional style files,
27149  and there is even an interactive style file builder
27150 \begin_inset Foot
27151 status collapsed
27152
27153 \begin_layout Plain Layout
27154 See 
27155 \begin_inset Flex URL
27156 status open
27157
27158 \begin_layout Plain Layout
27159
27160 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
27161 \end_layout
27162
27163 \end_inset
27164
27165
27166 \end_layout
27167
27168 \end_inset
27169
27170  for 
27171 \begin_inset Flex Code
27172 status collapsed
27173
27174 \begin_layout Plain Layout
27175 natbib
27176 \end_layout
27177
27178 \end_inset
27179
27180 .
27181 \end_layout
27182
27183 \begin_layout Section
27184 Subdivided Bibliographies
27185 \end_layout
27186
27187 \begin_layout Standard
27188 Sometimes you might need to divide your bibliography into several sections.
27189  If you are for instance a historian,
27190  the possibility to separate sources and scientific works is most likely a 
27191 \begin_inset Quotes eld
27192 \end_inset
27193
27194 must have
27195 \begin_inset Quotes erd
27196 \end_inset
27197
27198 .
27199  Unfortunately,
27200  Bib\SpecialChar TeX
27201  itself does not allow you to do this.
27202  But with the help of some \SpecialChar LaTeX
27203  packages,
27204  Bib\SpecialChar TeX
27205  can be extended to fit your needs.
27206 \end_layout
27207
27208 \begin_layout Standard
27209 \SpecialChar LyX
27210  provides native support for one of these packages,
27211  
27212 \family typewriter
27213 bibtopic
27214 \family default
27215 .
27216 \begin_inset Foot
27217 status collapsed
27218
27219 \begin_layout Plain Layout
27220 Available from 
27221 \begin_inset Flex URL
27222 status open
27223
27224 \begin_layout Plain Layout
27225
27226 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
27227 \end_layout
27228
27229 \end_inset
27230
27231
27232 \end_layout
27233
27234 \end_inset
27235
27236  The advantage of this package (compared to other packages such as 
27237 \family typewriter
27238 multibib
27239 \family default
27240 ) is that you don't need to define new citation commands.
27241  Instead,
27242  you need to prepare different bibliographic databases which include the entries for the different sections of the bibliography.
27243  For example:
27244  If you want to divide your bibliography into the sections 
27245 \begin_inset Quotes eld
27246 \end_inset
27247
27248 Sources
27249 \begin_inset Quotes erd
27250 \end_inset
27251
27252  and 
27253 \begin_inset Quotes eld
27254 \end_inset
27255
27256 Scientific works
27257 \begin_inset Quotes erd
27258 \end_inset
27259
27260 ,
27261  you first need to create two bibliographic databases,
27262  e.
27263 \begin_inset space \thinspace{}
27264 \end_inset
27265
27266 g.
27267 \begin_inset space \space{}
27268 \end_inset
27269
27270
27271 \begin_inset Flex Code
27272 status collapsed
27273
27274 \begin_layout Plain Layout
27275 sources.bib
27276 \end_layout
27277
27278 \end_inset
27279
27280  and 
27281 \begin_inset Flex Code
27282 status collapsed
27283
27284 \begin_layout Plain Layout
27285 scientific.bib
27286 \end_layout
27287
27288 \end_inset
27289
27290 .
27291  
27292 \end_layout
27293
27294 \begin_layout Standard
27295 Go to 
27296 \change_deleted -712698321 1674917736
27297
27298 \begin_inset Flex Noun
27299 status collapsed
27300
27301 \begin_layout Plain Layout
27302 Document\SpecialChar menuseparator
27303 Settings
27304 \end_layout
27305
27306 \end_inset
27307
27308
27309 \change_inserted -712698321 1674917736
27310
27311 \family sans
27312 Document\SpecialChar menuseparator
27313 Settings
27314 \change_unchanged
27315
27316 \family default
27317  and check under 
27318 \change_deleted -712698321 1674917752
27319
27320 \begin_inset Flex Noun
27321 status collapsed
27322
27323 \begin_layout Plain Layout
27324 Bibliography
27325 \end_layout
27326
27327 \end_inset
27328
27329
27330 \change_inserted -712698321 1674917752
27331
27332 \family sans
27333 Bibliography
27334 \change_unchanged
27335
27336 \family default
27337  the option 
27338 \change_deleted -712698321 1674917741
27339
27340 \family sans
27341
27342 \begin_inset Flex Noun
27343 status collapsed
27344
27345 \begin_layout Plain Layout
27346
27347 \family sans
27348 Subdivided bibliography
27349 \end_layout
27350
27351 \end_inset
27352
27353
27354 \change_inserted -712698321 1674917741
27355 Subdivided bibliography
27356 \change_unchanged
27357
27358 \family default
27359 .
27360  Now you can insert multiple Bib\SpecialChar TeX
27361  bibliographies,
27362  one for each section of your bibliography.
27363  Returning to our example:
27364  Insert the Bib\SpecialChar TeX
27365  bibliography 
27366 \begin_inset Flex Code
27367 status collapsed
27368
27369 \begin_layout Plain Layout
27370 sources.bib
27371 \end_layout
27372
27373 \end_inset
27374
27375  and a second one for the database 
27376 \begin_inset Flex Code
27377 status collapsed
27378
27379 \begin_layout Plain Layout
27380 scientific.bib
27381 \end_layout
27382
27383 \end_inset
27384
27385 .
27386  You are free to use the same or different styles for each section.
27387  Additionally,
27388  you can choose if the bibliography section should contain 
27389 \begin_inset Quotes eld
27390 \end_inset
27391
27392 all cited references
27393 \begin_inset Quotes erd
27394 \end_inset
27395
27396  of the specified database(s) (which is the default),
27397  
27398 \begin_inset Quotes eld
27399 \end_inset
27400
27401 all uncited references
27402 \begin_inset Quotes erd
27403 \end_inset
27404
27405  or even 
27406 \begin_inset Quotes eld
27407 \end_inset
27408
27409 all references
27410 \begin_inset Quotes erd
27411 \end_inset
27412
27413 .
27414  This might be useful if you would like to separate your bibliography into three sections:
27415  
27416 \begin_inset Quotes eld
27417 \end_inset
27418
27419 Cited sources
27420 \begin_inset Quotes erd
27421 \end_inset
27422
27423 ,
27424  
27425 \begin_inset Quotes eld
27426 \end_inset
27427
27428 Uncited sources
27429 \begin_inset Quotes erd
27430 \end_inset
27431
27432 ,
27433  and 
27434 \begin_inset Quotes eld
27435 \end_inset
27436
27437 Scientific works
27438 \begin_inset Quotes erd
27439 \end_inset
27440
27441 .
27442  The titles for the sections can be added as ordinary sections or subsections.
27443  Since 
27444 \begin_inset Flex Code
27445 status collapsed
27446
27447 \begin_layout Plain Layout
27448 bibtopic
27449 \end_layout
27450
27451 \end_inset
27452
27453  removes the bibliography title,
27454  you have to manually re-add that,
27455  too (as a chapter* or section*,
27456  for instance).
27457 \end_layout
27458
27459 \begin_layout Standard
27460 With 
27461 \family sans
27462 Biblatex
27463 \family default
27464 ,
27465  the procedure is a bit different.
27466  Since 
27467 \family typewriter
27468 bibtopic
27469 \family default
27470  does not work with 
27471 \family sans
27472 Biblatex
27473 \family default
27474 ,
27475  the aforementioned 
27476 \begin_inset Flex Noun
27477 status collapsed
27478
27479 \begin_layout Plain Layout
27480 Subdivided bibliography
27481 \end_layout
27482
27483 \end_inset
27484
27485  option is disabled if you use 
27486 \family sans
27487 Biblatex
27488 \family default
27489 .
27490  However,
27491  
27492 \family sans
27493 Biblatex
27494 \family default
27495  provides its own means to generate subdivided bibliographies.
27496  You can either add keywords to bibliography entries via the 
27497 \begin_inset Flex Code
27498 status collapsed
27499
27500 \begin_layout Plain Layout
27501 keywords
27502 \end_layout
27503
27504 \end_inset
27505
27506  entry option and then filter bibliography sections by keyword (by adding 
27507 \begin_inset Flex Code
27508 status collapsed
27509
27510 \begin_layout Plain Layout
27511 keyword=mykeyword
27512 \end_layout
27513
27514 \end_inset
27515
27516  to the 
27517 \begin_inset Flex Noun
27518 status collapsed
27519
27520 \begin_layout Plain Layout
27521 Options
27522 \end_layout
27523
27524 \end_inset
27525
27526  field of the dialog that opens if you left-click on the 
27527 \begin_inset Flex Noun
27528 status collapsed
27529
27530 \begin_layout Plain Layout
27531 Biblatex Generated Bibliography
27532 \end_layout
27533
27534 \end_inset
27535
27536  button),
27537  or you can filter by entry types (such as 
27538 \emph on
27539 book
27540 \emph default
27541  or 
27542 \emph on
27543 article
27544 \emph default
27545 ) by entering e.
27546 \begin_inset space \thinspace{}
27547 \end_inset
27548
27549 g.
27550  
27551 \begin_inset Flex Code
27552 status collapsed
27553
27554 \begin_layout Plain Layout
27555 type=book
27556 \end_layout
27557
27558 \end_inset
27559
27560  or 
27561 \begin_inset Flex Code
27562 status collapsed
27563
27564 \begin_layout Plain Layout
27565 nottype=collection
27566 \end_layout
27567
27568 \end_inset
27569
27570  to the mentioned 
27571 \begin_inset Flex Noun
27572 status collapsed
27573
27574 \begin_layout Plain Layout
27575 Options
27576 \end_layout
27577
27578 \end_inset
27579
27580  field,
27581  or you can create so-called 
27582 \begin_inset Quotes eld
27583 \end_inset
27584
27585 Bibliography Categories
27586 \begin_inset Quotes erd
27587 \end_inset
27588
27589  to which you can assign individual entries.
27590  Please refer to the Biblatex manual,
27591  section 
27592 \emph on
27593 Subdivided Bibliographies
27594 \emph default
27595 ,
27596  for details.
27597 \end_layout
27598
27599 \begin_layout Section
27600 Multiple Bibliographies
27601 \begin_inset CommandInset label
27602 LatexCommand label
27603 name "subsec:Multiple-Bibliographies"
27604
27605 \end_inset
27606
27607
27608 \end_layout
27609
27610 \begin_layout Standard
27611 Multiple bibliographies,
27612  e.
27613 \begin_inset space \thinspace{}
27614 \end_inset
27615
27616 g.
27617 \begin_inset space \space{}
27618 \end_inset
27619
27620 a bibliography for each part,
27621  chapter,
27622  section,
27623  subsection or child (sub-document) of the document,
27624  are also supported by \SpecialChar LyX
27625 .
27626  In order to enable it,
27627  go to 
27628 \change_deleted -712698321 1674917759
27629
27630 \begin_inset Flex Noun
27631 status collapsed
27632
27633 \begin_layout Plain Layout
27634 Document\SpecialChar menuseparator
27635 Settings\SpecialChar menuseparator
27636 Bibliography
27637 \end_layout
27638
27639 \end_inset
27640
27641
27642 \change_inserted -712698321 1674917759
27643
27644 \family sans
27645 Document\SpecialChar menuseparator
27646 Settings\SpecialChar menuseparator
27647 Bibliography
27648 \change_unchanged
27649
27650 \family default
27651  and select the relevant unit (e.
27652 \begin_inset space \thinspace{}
27653 \end_inset
27654
27655 g.,
27656  
27657 \begin_inset Quotes eld
27658 \end_inset
27659
27660 per section
27661 \begin_inset Quotes erd
27662 \end_inset
27663
27664 ) in the 
27665 \begin_inset Flex Noun
27666 status collapsed
27667
27668 \begin_layout Plain Layout
27669 Multiple Bibliographies
27670 \end_layout
27671
27672 \end_inset
27673
27674  combo box.
27675  Then add a Bib(la)\SpecialChar TeX
27676  bibliography to each unit (e.
27677 \begin_inset space \thinspace{}
27678 \end_inset
27679
27680 g.,
27681  section) of your document.
27682  In the output,
27683  a separate bibliography,
27684  containing only the references done in the current unit is generated.
27685 \end_layout
27686
27687 \begin_layout Standard
27688 If you use Bib\SpecialChar TeX
27689 ,
27690  either the 
27691 \begin_inset Flex Code
27692 status collapsed
27693
27694 \begin_layout Plain Layout
27695 chapterbib
27696 \end_layout
27697
27698 \end_inset
27699
27700  or the 
27701 \begin_inset Flex Code
27702 status collapsed
27703
27704 \begin_layout Plain Layout
27705 bibtopic
27706 \end_layout
27707
27708 \end_inset
27709
27710  package is used to create multiple bibliographies.
27711  The former package is used if you select 
27712 \begin_inset Quotes eld
27713 \end_inset
27714
27715 per child document
27716 \begin_inset Quotes erd
27717 \end_inset
27718
27719  and do 
27720 \emph on
27721 not
27722 \emph default
27723  check 
27724 \begin_inset Flex Noun
27725 status collapsed
27726
27727 \begin_layout Plain Layout
27728 Sectioned Bibliography
27729 \end_layout
27730
27731 \end_inset
27732
27733 .
27734  In all other cases,
27735  
27736 \begin_inset Flex Code
27737 status collapsed
27738
27739 \begin_layout Plain Layout
27740 bibtopic
27741 \end_layout
27742
27743 \end_inset
27744
27745  is used.
27746 \begin_inset Foot
27747 status collapsed
27748
27749 \begin_layout Plain Layout
27750 An alternative approach,
27751  if you are willing to use some 
27752 \begin_inset Flex Noun
27753 status collapsed
27754
27755 \begin_layout Plain Layout
27756 \SpecialChar TeX
27757  Code
27758 \end_layout
27759
27760 \end_inset
27761
27762  (see section
27763 \begin_inset space ~
27764 \end_inset
27765
27766
27767 \begin_inset CommandInset ref
27768 LatexCommand ref
27769 reference "sec:Inserting-TeX-Code"
27770 nolink "false"
27771
27772 \end_inset
27773
27774 ),
27775  is to use the 
27776 \begin_inset Flex Code
27777 status collapsed
27778
27779 \begin_layout Plain Layout
27780 bibunits
27781 \end_layout
27782
27783 \end_inset
27784
27785  package.
27786 \end_layout
27787
27788 \end_inset
27789
27790  If 
27791 \begin_inset Flex Code
27792 status collapsed
27793
27794 \begin_layout Plain Layout
27795 bibtopic
27796 \end_layout
27797
27798 \end_inset
27799
27800  is used,
27801  \SpecialChar LyX
27802  encloses the specified units in 
27803 \begin_inset Flex Code
27804 status collapsed
27805
27806 \begin_layout Plain Layout
27807 bibtopic
27808 \end_layout
27809
27810 \end_inset
27811
27812 's 
27813 \begin_inset Flex Code
27814 status collapsed
27815
27816 \begin_layout Plain Layout
27817
27818 \backslash
27819 begin{btUnit}
27820 \end_layout
27821
27822 \end_inset
27823
27824  and 
27825 \begin_inset Flex Code
27826 status collapsed
27827
27828 \begin_layout Plain Layout
27829
27830 \backslash
27831 end{btUnit}
27832 \end_layout
27833
27834 \end_inset
27835
27836  in order to create the units.
27837  Note that this approach has some limitations.
27838  First,
27839  every citation reference has to be inside some 
27840 \begin_inset Flex Code
27841 status collapsed
27842
27843 \begin_layout Plain Layout
27844 btUnit
27845 \end_layout
27846
27847 \end_inset
27848
27849 .
27850  So citations outside a defined unit (e.
27851 \begin_inset space \thinspace{}
27852 \end_inset
27853
27854 g.,
27855  before the first section if you use 
27856 \begin_inset Quotes eld
27857 \end_inset
27858
27859 by section
27860 \begin_inset Quotes erd
27861 \end_inset
27862
27863 ) will appear as 
27864 \begin_inset Quotes eld
27865 \end_inset
27866
27867 ???
27868 \begin_inset Quotes erd
27869 \end_inset
27870
27871 .
27872  You can also create your own units by entering 
27873 \begin_inset Flex Code
27874 status collapsed
27875
27876 \begin_layout Plain Layout
27877
27878 \backslash
27879 begin{btUnit}
27880 \end_layout
27881
27882 \end_inset
27883
27884  and 
27885 \begin_inset Flex Code
27886 status collapsed
27887
27888 \begin_layout Plain Layout
27889
27890 \backslash
27891 end{btUnit}
27892 \end_layout
27893
27894 \end_inset
27895
27896  as \SpecialChar TeX
27897  code (for instance to work around the mentioned limitation).
27898  Note,
27899  though,
27900  that 
27901 \begin_inset Flex Code
27902 status collapsed
27903
27904 \begin_layout Plain Layout
27905 btUnit
27906 \end_layout
27907
27908 \end_inset
27909
27910 s cannot be nested.
27911  A second limitation is that 
27912 \begin_inset Flex Code
27913 status collapsed
27914
27915 \begin_layout Plain Layout
27916 bibtopic
27917 \end_layout
27918
27919 \end_inset
27920
27921  always processes all references of a bibliography database,
27922  even if they are not cited.
27923  This can result in odd labels (e.
27924 \begin_inset space \thinspace{}
27925 \end_inset
27926
27927 g.
27928  
27929 \begin_inset Quotes eld
27930 \end_inset
27931
27932 Miller 2014b
27933 \begin_inset Quotes erd
27934 \end_inset
27935
27936  if two works of this author from 2014 are in the database,
27937  even if only one is cited).
27938 \end_layout
27939
27940 \begin_layout Standard
27941 If you use 
27942 \family sans
27943 Biblatex
27944 \family default
27945 ,
27946  the 
27947 \begin_inset Flex Code
27948 status collapsed
27949
27950 \begin_layout Plain Layout
27951 refsection
27952 \end_layout
27953
27954 \end_inset
27955
27956  option is used instead.
27957  If you need specific units,
27958  you can start them with the \SpecialChar TeX
27959  code 
27960 \begin_inset Flex Code
27961 status collapsed
27962
27963 \begin_layout Plain Layout
27964
27965 \backslash
27966 newrefsection
27967 \end_layout
27968
27969 \end_inset
27970
27971  or 
27972 \begin_inset Flex Code
27973 status collapsed
27974
27975 \begin_layout Plain Layout
27976
27977 \backslash
27978 newrefsegment
27979 \end_layout
27980
27981 \end_inset
27982
27983 ,
27984  respectively.
27985  If you also want to control the end of the unit,
27986  use the environment 
27987 \begin_inset Flex Code
27988 status collapsed
27989
27990 \begin_layout Plain Layout
27991
27992 \backslash
27993 begin{refsection}
27994 \end_layout
27995
27996 \end_inset
27997
27998  \SpecialChar ldots
27999  
28000 \begin_inset Flex Code
28001 status collapsed
28002
28003 \begin_layout Plain Layout
28004
28005 \backslash
28006 end{refsection}
28007 \end_layout
28008
28009 \end_inset
28010
28011  instead.
28012  Note,
28013  though,
28014  that 
28015 \begin_inset Flex Code
28016 status collapsed
28017
28018 \begin_layout Plain Layout
28019 refsection
28020 \end_layout
28021
28022 \end_inset
28023
28024 s cannot be nested.
28025  In addition to the individual bibliography of the current unit,
28026  
28027 \family sans
28028 Biblatex
28029 \family default
28030  also provides an easy way to output all bibliographies,
28031  subsequently,
28032  at one place (e.
28033 \begin_inset space \thinspace{}
28034 \end_inset
28035
28036 g.,
28037  at the end of the document).
28038  Select 
28039 \begin_inset Quotes eld
28040 \end_inset
28041
28042 all reference units
28043 \begin_inset Quotes erd
28044 \end_inset
28045
28046  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve this.
28047  Please refer to the 
28048 \family sans
28049 Biblatex
28050 \family default
28051  manual for more information on this topic.
28052 \end_layout
28053
28054 \begin_layout Chapter
28055
28056 \change_deleted 564990737 1671355654
28057 Itemize 
28058 \change_unchanged
28059 Bullet
28060 \change_inserted 564990737 1671355667
28061 s
28062 \change_deleted 564990737 1671355661
28063  Selection
28064 \change_inserted 564990737 1671355684
28065
28066 \begin_inset CommandInset label
28067 LatexCommand label
28068 name "chap:bullets"
28069
28070 \end_inset
28071
28072
28073 \change_deleted 564990737 1671355684
28074
28075 \begin_inset CommandInset label
28076 LatexCommand label
28077 name "sec:bullet"
28078
28079 \end_inset
28080
28081
28082 \change_unchanged
28083
28084 \end_layout
28085
28086 \begin_layout Standard
28087 by
28088 \noun on
28089  Allan Rae
28090 \end_layout
28091
28092 \begin_layout Section
28093 Introduction
28094 \end_layout
28095
28096 \begin_layout Standard
28097 \SpecialChar LyX
28098  provides 216 bullet shapes that can be accessed from a simple dialog.
28099  Using this dialog you can easily specify what bullet shape to use at each level of an itemized list.
28100  These settings are document-wide so you won't be able to specify different sets of bullets for different paragraphs.
28101 \begin_inset Foot
28102 status collapsed
28103
28104 \begin_layout Plain Layout
28105 Well,
28106  actually you can but you'll have to do it by hand.
28107 \end_layout
28108
28109 \end_inset
28110
28111
28112 \end_layout
28113
28114 \begin_layout Section
28115 How it looks
28116 \end_layout
28117
28118 \begin_layout Standard
28119 Open the dialog by selecting the 
28120 \change_deleted -712698321 1674916009
28121
28122 \begin_inset Flex Noun
28123 status collapsed
28124
28125 \begin_layout Plain Layout
28126 Document\SpecialChar menuseparator
28127 Settings
28128 \end_layout
28129
28130 \end_inset
28131
28132
28133 \change_inserted -712698321 1674916009
28134
28135 \family sans
28136 Document\SpecialChar menuseparator
28137 Settings
28138 \change_unchanged
28139
28140 \family default
28141  menu item and then select the 
28142 \begin_inset Flex Noun
28143 status collapsed
28144
28145 \begin_layout Plain Layout
28146 Bullets
28147 \end_layout
28148
28149 \end_inset
28150
28151  tab.
28152 \end_layout
28153
28154 \begin_layout Standard
28155 The dialog provides you with a table of bullet shapes.
28156  A column of buttons on the left of the table provides access to the six different panels of bullet shapes.
28157  The row of buttons across the top is used to select which bullet depth you are changing.
28158 \change_inserted -712698321 1674916033
28159
28160 \end_layout
28161
28162 \begin_layout Standard
28163
28164 \change_inserted -712698321 1674916177
28165 If you select 
28166 \family sans
28167 Custom bullet
28168 \family default
28169 ,
28170  
28171 \change_deleted -712698321 1674916065
28172  A
28173 \change_inserted -712698321 1674916067
28174 a
28175 \change_unchanged
28176  text entry under the table 
28177 \change_inserted -712698321 1674916074
28178 will be activated 
28179 \change_deleted -712698321 1674916096
28180 shows the currently selected
28181 \change_inserted -712698321 1674916101
28182 in which you can enter a
28183 \change_unchanged
28184  bullet shape's \SpecialChar LaTeX
28185  equivalent
28186 \change_deleted -712698321 1674916109
28187  and this can be edited if desired
28188 \change_unchanged
28189 .
28190  If you do modify the text you will also need to specify any needed packages in the \SpecialChar LaTeX
28191  preamble.
28192 \end_layout
28193
28194 \begin_layout Standard
28195 The six panels are divided up by the packages they require.
28196  The following table shows the mappings from button name to \SpecialChar LaTeX
28197  package.
28198 \end_layout
28199
28200 \begin_layout Standard
28201 \align center
28202 \begin_inset Tabular
28203 <lyxtabular version="3" rows="7" columns="2">
28204 <features tabularvalignment="middle">
28205 <column alignment="center" valignment="top" width="0pt">
28206 <column alignment="center" valignment="top" width="0pt">
28207 <row>
28208 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28209 \begin_inset Text
28210
28211 \begin_layout Plain Layout
28212
28213 \family roman
28214 \series medium
28215 \shape up
28216 \size normal
28217 \emph off
28218 \bar no
28219 \noun off
28220 \color none
28221 Button
28222 \end_layout
28223
28224 \end_inset
28225 </cell>
28226 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28227 \begin_inset Text
28228
28229 \begin_layout Plain Layout
28230
28231 \family roman
28232 \series medium
28233 \shape up
28234 \size normal
28235 \emph off
28236 \bar no
28237 \noun off
28238 \color none
28239 Packages Required
28240 \end_layout
28241
28242 \end_inset
28243 </cell>
28244 </row>
28245 <row>
28246 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28247 \begin_inset Text
28248
28249 \begin_layout Plain Layout
28250
28251 \family sans
28252 \series medium
28253 \shape up
28254 \size normal
28255 \emph off
28256 \bar no
28257 \noun off
28258 \color none
28259 Standard
28260 \end_layout
28261
28262 \end_inset
28263 </cell>
28264 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28265 \begin_inset Text
28266
28267 \begin_layout Plain Layout
28268
28269 \series medium
28270 \shape up
28271 \size normal
28272 \emph off
28273 \bar no
28274 \noun off
28275 \color none
28276 base \SpecialChar LaTeX
28277
28278 \end_layout
28279
28280 \end_inset
28281 </cell>
28282 </row>
28283 <row>
28284 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28285 \begin_inset Text
28286
28287 \begin_layout Plain Layout
28288
28289 \family sans
28290 \series medium
28291 \shape up
28292 \size normal
28293 \emph off
28294 \bar no
28295 \noun off
28296 \color none
28297 Maths
28298 \end_layout
28299
28300 \end_inset
28301 </cell>
28302 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28303 \begin_inset Text
28304
28305 \begin_layout Plain Layout
28306
28307 \family typewriter
28308 \series medium
28309 \shape up
28310 \size normal
28311 \emph off
28312 \bar no
28313 \noun off
28314 \color none
28315 amssymb.sty
28316 \end_layout
28317
28318 \end_inset
28319 </cell>
28320 </row>
28321 <row>
28322 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28323 \begin_inset Text
28324
28325 \begin_layout Plain Layout
28326
28327 \family sans
28328 \series medium
28329 \shape up
28330 \size normal
28331 \emph off
28332 \bar no
28333 \noun off
28334 \color none
28335 Ding1
28336 \end_layout
28337
28338 \end_inset
28339 </cell>
28340 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28341 \begin_inset Text
28342
28343 \begin_layout Plain Layout
28344
28345 \family typewriter
28346 \series medium
28347 \shape up
28348 \size normal
28349 \emph off
28350 \bar no
28351 \noun off
28352 \color none
28353 pifont.sty
28354 \end_layout
28355
28356 \end_inset
28357 </cell>
28358 </row>
28359 <row>
28360 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28361 \begin_inset Text
28362
28363 \begin_layout Plain Layout
28364
28365 \family sans
28366 \series medium
28367 \shape up
28368 \size normal
28369 \emph off
28370 \bar no
28371 \noun off
28372 \color none
28373 Ding2
28374 \end_layout
28375
28376 \end_inset
28377 </cell>
28378 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28379 \begin_inset Text
28380
28381 \begin_layout Plain Layout
28382
28383 \family typewriter
28384 \series medium
28385 \shape up
28386 \size normal
28387 \emph off
28388 \bar no
28389 \noun off
28390 \color none
28391 pifont.sty
28392 \end_layout
28393
28394 \end_inset
28395 </cell>
28396 </row>
28397 <row>
28398 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
28399 \begin_inset Text
28400
28401 \begin_layout Plain Layout
28402
28403 \family sans
28404 \series medium
28405 \shape up
28406 \size normal
28407 \emph off
28408 \bar no
28409 \noun off
28410 \color none
28411 Ding3
28412 \end_layout
28413
28414 \end_inset
28415 </cell>
28416 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
28417 \begin_inset Text
28418
28419 \begin_layout Plain Layout
28420
28421 \family typewriter
28422 \series medium
28423 \shape up
28424 \size normal
28425 \emph off
28426 \bar no
28427 \noun off
28428 \color none
28429 pifont.sty
28430 \end_layout
28431
28432 \end_inset
28433 </cell>
28434 </row>
28435 <row>
28436 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
28437 \begin_inset Text
28438
28439 \begin_layout Plain Layout
28440
28441 \family sans
28442 \series medium
28443 \shape up
28444 \size normal
28445 \emph off
28446 \bar no
28447 \noun off
28448 \color none
28449 Ding4
28450 \end_layout
28451
28452 \end_inset
28453 </cell>
28454 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
28455 \begin_inset Text
28456
28457 \begin_layout Plain Layout
28458
28459 \family typewriter
28460 \series medium
28461 \shape up
28462 \size normal
28463 \emph off
28464 \bar no
28465 \noun off
28466 \color none
28467 pifont.sty
28468 \end_layout
28469
28470 \end_inset
28471 </cell>
28472 </row>
28473 </lyxtabular>
28474
28475 \end_inset
28476
28477
28478 \end_layout
28479
28480 \begin_layout Standard
28481 \SpecialChar LyX
28482  doesn't stop you using bullets from packages you don't have.
28483  If you get errors from \SpecialChar LaTeX
28484  when you try to view or print the file,
28485  then it is likely you are missing a package.
28486 \begin_inset Foot
28487 status collapsed
28488
28489 \begin_layout Plain Layout
28490 \SpecialChar LyX
28491  doesn't restrict your use since you may be editing locally and exporting elsewhere.
28492 \end_layout
28493
28494 \end_inset
28495
28496
28497 \end_layout
28498
28499 \begin_layout Section
28500
28501 \change_inserted -712698321 1674916414
28502 \begin_inset CommandInset label
28503 LatexCommand label
28504 name "sec:How-to-use"
28505
28506 \end_inset
28507
28508
28509 \change_unchanged
28510 How to use it
28511 \end_layout
28512
28513 \begin_layout Standard
28514 Select which bullet depth you want to change then select the bullet shape and size.
28515  Any changes will not be visible in \SpecialChar LyX
28516 ,
28517  but are visible when viewing the document.
28518 \end_layout
28519
28520 \begin_layout Standard
28521 You can reset a bullet shape to the default simply by clicking your right mouse button on the appropriate bullet depth button.
28522 \change_deleted -712698321 1674916288
28523
28524 \begin_inset Foot
28525 status collapsed
28526
28527 \begin_layout Plain Layout
28528
28529 \change_deleted -712698321 1674916287
28530 \begin_inset CommandInset label
28531 LatexCommand label
28532 name "fn:If-you-really"
28533
28534 \end_inset
28535
28536
28537 \change_unchanged
28538 If you 
28539 \emph on
28540 really
28541 \emph default
28542  want to have multiple sets of paragraphs with different sets of bullets in each,
28543  then you're going to have to get your hands dirty with \SpecialChar TeX
28544  code.
28545  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
28546  code for a wide range of bullet shapes.
28547  To make your own custom paragraphs you have the following options:
28548 \end_layout
28549
28550 \begin_layout Plain Layout
28551 \begin_inset ERT
28552 status open
28553
28554 \begin_layout Plain Layout
28555
28556
28557 \backslash
28558 let
28559 \backslash
28560 savelabelitemi=
28561 \backslash
28562 labelitemi
28563 \end_layout
28564
28565 \end_inset
28566
28567
28568 \end_layout
28569
28570 \begin_layout Plain Layout
28571 \begin_inset ERT
28572 status open
28573
28574 \begin_layout Plain Layout
28575
28576
28577 \backslash
28578 renewcommand
28579 \backslash
28580 labelitemi[0]{
28581 \backslash
28582 small
28583 \backslash
28584 (
28585 \backslash
28586 sharp
28587 \backslash
28588 )}
28589 \end_layout
28590
28591 \end_inset
28592
28593
28594 \end_layout
28595
28596 \begin_layout Itemize
28597 Use the \SpecialChar LaTeX
28598  command 
28599 \begin_inset Flex Code
28600 status collapsed
28601
28602 \begin_layout Plain Layout
28603
28604 \backslash
28605 renewcommand{}{}
28606 \end_layout
28607
28608 \end_inset
28609
28610  to specify a new bullet shape for a given depth.
28611  You'll also need to save the current bullet shape so you can restore it again afterwards.
28612  In this itemized list the following \SpecialChar LaTeX
28613  code was used to change the bullet used for the first depth.
28614 \end_layout
28615
28616 \begin_deeper
28617 \begin_layout LyX-Code
28618
28619 \backslash
28620 let
28621 \backslash
28622 savelabelitemi=
28623 \backslash
28624 labelitemi 
28625 \end_layout
28626
28627 \begin_layout LyX-Code
28628
28629 \backslash
28630 renewcommand
28631 \backslash
28632 labelitemi[0]{
28633 \backslash
28634 small
28635 \backslash
28636 (
28637 \backslash
28638 sharp
28639 \backslash
28640 )}
28641 \end_layout
28642
28643 \end_deeper
28644 \begin_layout Itemize
28645 Note that the itemize depth is specified in Roman numerals as part of the 
28646 \family typewriter
28647
28648 \backslash
28649 labelitem
28650 \family default
28651  command.
28652 \end_layout
28653
28654 \begin_layout Itemize
28655 \begin_inset Argument item:1
28656 status open
28657
28658 \begin_layout Plain Layout
28659 \begin_inset ERT
28660 status open
28661
28662 \begin_layout Plain Layout
28663
28664
28665 \backslash
28666 (
28667 \backslash
28668 star
28669 \backslash
28670 )
28671 \end_layout
28672
28673 \end_inset
28674
28675
28676 \end_layout
28677
28678 \end_inset
28679
28680  Specify each individual entry by starting each item with the bullet shape enclosed in a 
28681 \begin_inset Quotes eld
28682 \end_inset
28683
28684 Custom Item
28685 \begin_inset Quotes erd
28686 \end_inset
28687
28688  inset (available at 
28689 \family sans
28690 Insert\SpecialChar menuseparator
28691 Custom Item
28692 \family default
28693 ) and set as 
28694 \begin_inset Flex Noun
28695 status collapsed
28696
28697 \begin_layout Plain Layout
28698 \SpecialChar TeX
28699  Code
28700 \end_layout
28701
28702 \end_inset
28703
28704 .
28705  For example,
28706  this item was started with 
28707 \begin_inset Flex Code
28708 status collapsed
28709
28710 \begin_layout Plain Layout
28711
28712 \backslash
28713 (
28714 \backslash
28715 star
28716 \backslash
28717 )
28718 \end_layout
28719
28720 \end_inset
28721
28722 .
28723 \end_layout
28724
28725 \begin_layout Plain Layout
28726 \begin_inset ERT
28727 status open
28728
28729 \begin_layout Plain Layout
28730
28731
28732 \backslash
28733 renewcommand
28734 \backslash
28735 labelitemi[0]{
28736 \backslash
28737 savelabelitemi}
28738 \end_layout
28739
28740 \end_inset
28741
28742
28743 \end_layout
28744
28745 \begin_layout Plain Layout
28746 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
28747  The way used here was:
28748 \end_layout
28749
28750 \begin_layout LyX-Code
28751
28752 \backslash
28753 renewcommand
28754 \backslash
28755 labelitemi[0]{
28756 \backslash
28757 savelabelitemi}
28758 \end_layout
28759
28760 \end_inset
28761
28762
28763 \change_inserted -712698321 1674916331
28764
28765 \begin_inset CommandInset label
28766 LatexCommand label
28767 name "fn:If-you-really"
28768
28769 \end_inset
28770
28771
28772 \end_layout
28773
28774 \begin_layout Standard
28775
28776 \change_inserted -712698321 1674916288
28777 If you 
28778 \emph on
28779 really
28780 \emph default
28781  want to have multiple sets of paragraphs with different sets of bullets in each,
28782  then you're going to have to get your hands dirty with \SpecialChar TeX
28783  code.
28784  The bullet selection dialog can help though because it provides you with the \SpecialChar LaTeX
28785  code for a wide range of bullet shapes.
28786  To make your own custom paragraphs you have the following options:
28787 \end_layout
28788
28789 \begin_layout Standard
28790
28791 \change_inserted -712698321 1674916288
28792 \begin_inset ERT
28793 status open
28794
28795 \begin_layout Plain Layout
28796
28797 \change_inserted -712698321 1674916288
28798
28799
28800 \backslash
28801 let
28802 \backslash
28803 savelabelitemi=
28804 \backslash
28805 labelitemi
28806 \end_layout
28807
28808 \end_inset
28809
28810
28811 \end_layout
28812
28813 \begin_layout Standard
28814
28815 \change_inserted -712698321 1674916288
28816 \begin_inset ERT
28817 status open
28818
28819 \begin_layout Plain Layout
28820
28821 \change_inserted -712698321 1674916288
28822
28823
28824 \backslash
28825 renewcommand
28826 \backslash
28827 labelitemi[0]{
28828 \backslash
28829 small
28830 \backslash
28831 (
28832 \backslash
28833 sharp
28834 \backslash
28835 )}
28836 \end_layout
28837
28838 \end_inset
28839
28840
28841 \end_layout
28842
28843 \begin_layout Itemize
28844
28845 \change_inserted -712698321 1674916288
28846 Use the \SpecialChar LaTeX
28847  command 
28848 \begin_inset Flex Code
28849 status collapsed
28850
28851 \begin_layout Plain Layout
28852
28853 \change_inserted -712698321 1674916288
28854
28855 \backslash
28856 renewcommand
28857 \change_unchanged
28858
28859 \end_layout
28860
28861 \end_inset
28862
28863  to specify a new bullet shape for a given depth.
28864  You'll also need to save the current bullet shape so you can restore it again afterwards.
28865  In this itemized list the following \SpecialChar LaTeX
28866  code was used to change the bullet used for the first depth.
28867 \end_layout
28868
28869 \begin_deeper
28870 \begin_layout LyX-Code
28871
28872 \change_inserted -712698321 1674916288
28873
28874 \backslash
28875 let
28876 \backslash
28877 savelabelitemi=
28878 \backslash
28879 labelitemi 
28880 \end_layout
28881
28882 \begin_layout LyX-Code
28883
28884 \change_inserted -712698321 1674916288
28885
28886 \backslash
28887 renewcommand
28888 \backslash
28889 labelitemi[0]{
28890 \backslash
28891 small
28892 \backslash
28893 (
28894 \backslash
28895 sharp
28896 \backslash
28897 )}
28898 \end_layout
28899
28900 \end_deeper
28901 \begin_layout Itemize
28902
28903 \change_inserted -712698321 1674916288
28904 Note that the itemize depth is specified in Roman numerals as part of the 
28905 \family typewriter
28906
28907 \backslash
28908 labelitem
28909 \family default
28910  command.
28911 \end_layout
28912
28913 \begin_layout Itemize
28914
28915 \change_inserted -712698321 1674916288
28916 \begin_inset Argument item:1
28917 status open
28918
28919 \begin_layout Plain Layout
28920
28921 \change_inserted -712698321 1674916288
28922 \begin_inset ERT
28923 status open
28924
28925 \begin_layout Plain Layout
28926
28927 \change_inserted -712698321 1674916288
28928
28929
28930 \backslash
28931 (
28932 \backslash
28933 star
28934 \backslash
28935 )
28936 \end_layout
28937
28938 \end_inset
28939
28940
28941 \change_unchanged
28942
28943 \end_layout
28944
28945 \end_inset
28946
28947  Specify each individual entry by starting each item with the bullet shape enclosed in a 
28948 \begin_inset Quotes eld
28949 \end_inset
28950
28951 Custom Item
28952 \begin_inset Quotes erd
28953 \end_inset
28954
28955  inset (available at 
28956 \family sans
28957 Insert\SpecialChar menuseparator
28958 Custom Item
28959 \family default
28960 ) and set as 
28961 \begin_inset Flex Noun
28962 status collapsed
28963
28964 \begin_layout Plain Layout
28965
28966 \change_inserted -712698321 1674916288
28967 \SpecialChar TeX
28968  Code
28969 \change_unchanged
28970
28971 \end_layout
28972
28973 \end_inset
28974
28975 .
28976  For example,
28977  this item was started with 
28978 \begin_inset Flex Code
28979 status collapsed
28980
28981 \begin_layout Plain Layout
28982
28983 \change_inserted -712698321 1674916288
28984
28985 \backslash
28986 (
28987 \backslash
28988 star
28989 \backslash
28990 )
28991 \change_unchanged
28992
28993 \end_layout
28994
28995 \end_inset
28996
28997 .
28998 \end_layout
28999
29000 \begin_layout Standard
29001
29002 \change_inserted -712698321 1674916288
29003 \begin_inset ERT
29004 status open
29005
29006 \begin_layout Plain Layout
29007
29008 \change_inserted -712698321 1674916288
29009
29010
29011 \backslash
29012 renewcommand
29013 \backslash
29014 labelitemi[0]{
29015 \backslash
29016 savelabelitemi}
29017 \end_layout
29018
29019 \end_inset
29020
29021
29022 \end_layout
29023
29024 \begin_layout Standard
29025
29026 \change_inserted -712698321 1674916288
29027 You'll also need to revert the labelitem back to its previous setting for the global bullet shape settings to remain in effect.
29028  The way used here was:
29029 \end_layout
29030
29031 \begin_layout LyX-Code
29032
29033 \change_inserted -712698321 1674916288
29034
29035 \backslash
29036 renewcommand
29037 \backslash
29038 labelitemi[0]{
29039 \backslash
29040 savelabelitemi}
29041 \change_unchanged
29042
29043 \end_layout
29044
29045 \begin_layout Chapter
29046 Supplemental Tools
29047 \end_layout
29048
29049 \begin_layout Section
29050 Multipart Documents
29051 \end_layout
29052
29053 \begin_layout Subsection
29054 General Operation
29055 \end_layout
29056
29057 \begin_layout Standard
29058 When you are working on a large file with many sections,
29059  it is often convenient to break up the document into several files,
29060  or perhaps you have something where a table may change from time to time,
29061  but the preceding text does not.
29062  In these cases,
29063  you should seriously consider using multipart documents.
29064  For example,
29065  scientific papers often have five major sections:
29066  the introduction,
29067  observations,
29068  results,
29069  discussion,
29070  and conclusion.
29071  Each of these could be its own separate \SpecialChar LyX
29072  file,
29073  with one 
29074 \begin_inset Quotes eld
29075 \end_inset
29076
29077 master
29078 \begin_inset Quotes erd
29079 \end_inset
29080
29081  file which contains the title,
29082  authors,
29083  abstract,
29084  references,
29085  etc.,
29086  plus the five included files.
29087  It is important to note that each of these files is a full \SpecialChar LyX
29088  file which can be formatted and printed on its own,
29089  as well as included in a master file.
29090  Each of these files must have the same document class,
29091  however—
29092 don't attempt to mix book classes with article classes.
29093  You may also include \SpecialChar LaTeX
29094  files;
29095  however,
29096  these files must not have their own preamble (i.
29097 \begin_inset space \thinspace{}
29098 \end_inset
29099
29100 e.
29101 \begin_inset space \space{}
29102 \end_inset
29103
29104 everything up to and including the 
29105 \begin_inset Flex Code
29106 status collapsed
29107
29108 \begin_layout Plain Layout
29109
29110 \backslash
29111 begin{document}
29112 \end_layout
29113
29114 \end_inset
29115
29116  line as well as the 
29117 \begin_inset Flex Code
29118 status collapsed
29119
29120 \begin_layout Plain Layout
29121
29122 \backslash
29123 end{document}
29124 \end_layout
29125
29126 \end_inset
29127
29128  line must be deleted) or else errors will be generated when you try to make a DVI file.
29129 \end_layout
29130
29131 \begin_layout Standard
29132 \SpecialChar LyX
29133  allows you to include files quite easily with 
29134 \change_deleted -712698321 1674917774
29135
29136 \begin_inset Flex Noun
29137 status collapsed
29138
29139 \begin_layout Plain Layout
29140 Insert\SpecialChar menuseparator
29141 Child
29142 \begin_inset space ~
29143 \end_inset
29144
29145 Document
29146 \end_layout
29147
29148 \end_inset
29149
29150
29151 \change_inserted -712698321 1674917774
29152
29153 \family sans
29154 Insert\SpecialChar menuseparator
29155 Child
29156 \begin_inset space ~
29157 \end_inset
29158
29159 Document
29160 \change_unchanged
29161
29162 \family default
29163 .
29164  When you click on this selection a small box is inserted into the file at the current cursor location.
29165  Clicking on the box raises a dialog which allows you to select the file to be included,
29166  and the method of its inclusion.
29167  
29168 \end_layout
29169
29170 \begin_layout Standard
29171 The file selection box should by now be obvious.
29172  The three inclusion methods are 
29173 \begin_inset Quotes eld
29174 \end_inset
29175
29176 include
29177 \begin_inset Quotes erd
29178 \end_inset
29179
29180 ,
29181  
29182 \begin_inset Quotes eld
29183 \end_inset
29184
29185 input
29186 \begin_inset Quotes erd
29187 \end_inset
29188
29189 ,
29190  and 
29191 \begin_inset Quotes eld
29192 \end_inset
29193
29194 verbatim
29195 \begin_inset Quotes erd
29196 \end_inset
29197
29198 .
29199  The methods 
29200 \begin_inset Quotes eld
29201 \end_inset
29202
29203 include
29204 \begin_inset Quotes erd
29205 \end_inset
29206
29207  and 
29208 \begin_inset Quotes eld
29209 \end_inset
29210
29211 input
29212 \begin_inset Quotes erd
29213 \end_inset
29214
29215  are similar in many ways,
29216  but there are also some notable differences:
29217 \end_layout
29218
29219 \begin_layout Enumerate
29220 Files that are 
29221 \begin_inset Quotes eld
29222 \end_inset
29223
29224 included
29225 \begin_inset Quotes erd
29226 \end_inset
29227
29228  are typeset beginning on a new page,
29229  while files that are 
29230 \begin_inset Quotes eld
29231 \end_inset
29232
29233 inputted
29234 \begin_inset Quotes erd
29235 \end_inset
29236
29237  are typeset starting on the current page.
29238 \end_layout
29239
29240 \begin_layout Enumerate
29241 \begin_inset Quotes eld
29242 \end_inset
29243
29244 Included
29245 \begin_inset Quotes erd
29246 \end_inset
29247
29248  files cannot themselves 
29249 \begin_inset Quotes eld
29250 \end_inset
29251
29252 include
29253 \begin_inset Quotes erd
29254 \end_inset
29255
29256  further files (
29257 \begin_inset Quotes eld
29258 \end_inset
29259
29260 grandchilds
29261 \begin_inset Quotes erd
29262 \end_inset
29263
29264 ).
29265  With 
29266 \begin_inset Quotes eld
29267 \end_inset
29268
29269 input
29270 \begin_inset Quotes erd
29271 \end_inset
29272
29273 ,
29274  on the other hand,
29275  infinite sub-inputting is possible.
29276 \end_layout
29277
29278 \begin_layout Enumerate
29279 \begin_inset Quotes eld
29280 \end_inset
29281
29282 Include
29283 \begin_inset Quotes erd
29284 \end_inset
29285
29286  allow for the output of only selected 
29287 \begin_inset Quotes eld
29288 \end_inset
29289
29290 included
29291 \begin_inset Quotes erd
29292 \end_inset
29293
29294  files,
29295  while maintaining the actual counters (pagination etc.) and references (please refer to the section 
29296 \emph on
29297 Child
29298 \begin_inset space ~
29299 \end_inset
29300
29301 Documents
29302 \emph default
29303  of the 
29304 \emph on
29305 Embedded
29306 \begin_inset space ~
29307 \end_inset
29308
29309 Objects
29310 \emph default
29311  manual for details).
29312 \end_layout
29313
29314 \begin_layout Standard
29315 Hence,
29316  
29317 \begin_inset Quotes eld
29318 \end_inset
29319
29320 include
29321 \begin_inset Quotes erd
29322 \end_inset
29323
29324  is the preferred method for chapters that are outsourced to child documents,
29325  while 
29326 \begin_inset Quotes eld
29327 \end_inset
29328
29329 input
29330 \begin_inset Quotes erd
29331 \end_inset
29332
29333  is more suitable for arbitrary file inheritance.
29334 \end_layout
29335
29336 \begin_layout Standard
29337
29338 \begin_inset Quotes eld
29339 \end_inset
29340
29341 verbatim
29342 \begin_inset Quotes erd
29343 \end_inset
29344
29345  included file allows you to include a file typeset exactly as it appears in the file,
29346  i.
29347 \begin_inset space \thinspace{}
29348 \end_inset
29349
29350 e.
29351 \begin_inset space \space{}
29352 \end_inset
29353
29354 in 
29355 \begin_inset Flex Code
29356 status collapsed
29357
29358 \begin_layout Plain Layout
29359 verbatim
29360 \end_layout
29361
29362 \end_inset
29363
29364  mode,
29365  with the characters set in a fixed-width typewriter font.
29366  Normally,
29367  spaces in this file are invisible,
29368  though two consecutive spaces are conserved,
29369  unlike \SpecialChar LyX
29370 's normal treatment of spaces.
29371  However,
29372  setting the 
29373 \begin_inset Flex Noun
29374 status collapsed
29375
29376 \begin_layout Plain Layout
29377 Mark
29378 \begin_inset space ~
29379 \end_inset
29380
29381 spaces
29382 \begin_inset space ~
29383 \end_inset
29384
29385 in
29386 \begin_inset space ~
29387 \end_inset
29388
29389 output
29390 \end_layout
29391
29392 \end_inset
29393
29394  checkbox typesets a mark to unambiguously define the presence of a space.
29395  
29396 \end_layout
29397
29398 \begin_layout Standard
29399 Generally,
29400  the master file is converted into a full \SpecialChar LaTeX
29401  file before typesetting,
29402  while the included files are converted to \SpecialChar LaTeX
29403  files that do not have all the preamble information.
29404 \end_layout
29405
29406 \begin_layout Subsection
29407 Cross-References Between Files
29408 \end_layout
29409
29410 \begin_layout Standard
29411 \begin_inset Box Shadowbox
29412 position "t"
29413 hor_pos "c"
29414 has_inner_box 1
29415 inner_pos "t"
29416 use_parbox 0
29417 use_makebox 0
29418 width "100col%"
29419 special "none"
29420 height "1in"
29421 height_special "totalheight"
29422 thickness "0.4pt"
29423 separation "3pt"
29424 shadowsize "4pt"
29425 framecolor "black"
29426 backgroundcolor "none"
29427 status open
29428
29429 \begin_layout Plain Layout
29430 This section is somewhat out of date.
29431  Need to describe default master documents and how children are opened when the master is.
29432  [[FIXME]]
29433 \end_layout
29434
29435 \end_inset
29436
29437
29438 \end_layout
29439
29440 \begin_layout Standard
29441 It is possible to set up cross-references between the different files.
29442  First,
29443  open all the files in question:
29444  let's call them A and B in a two file example,
29445  where B is included in A.
29446  Let's say you insert a label in A,
29447  then want to reference it in B.
29448  Open the cross-reference dialog whilst in document B,
29449  and you can select the 
29450 \begin_inset Quotes eld
29451 \end_inset
29452
29453 buffer
29454 \begin_inset Quotes erd
29455 \end_inset
29456
29457  to use.
29458 \end_layout
29459
29460 \begin_layout Subsection
29461 Bibliography Lists in all Subdocuments
29462 \end_layout
29463
29464 \begin_layout Standard
29465 If you work with child documents,
29466  you might want to have only one main bibliography at the end,
29467  but still be able to have a selected bibliography for the child if you output it on its own.
29468  Here is how to achieve this.
29469 \end_layout
29470
29471 \begin_layout Standard
29472 For the main document,
29473  you just insert a bibliography inset at the place where the main bibliography has to appear (within the master file or within a child).
29474  If the bibliography inset is in the master file,
29475  the references will be inherited by all children,
29476  so they are available in the citation dialog within each child.
29477 \end_layout
29478
29479 \begin_layout Standard
29480 For child-specific bibliographies,
29481  insert bibliography insets within the child documents,
29482  at the place where the bibliography should appear when the child is compiled separately.
29483  However,
29484  the trick is to insert them into a branch (
29485 \family sans
29486 Insert\SpecialChar menuseparator
29487 Branch\SpecialChar menuseparator
29488 Insert New Branch...
29489 \family default
29490 ),
29491  e.
29492 \begin_inset space \thinspace{}
29493 \end_inset
29494
29495 g.
29496  called 
29497 \begin_inset Quotes eld
29498 \end_inset
29499
29500 Childonly
29501 \begin_inset Quotes erd
29502 \end_inset
29503
29504 .
29505  Within the children,
29506  activate the branch (
29507 \family sans
29508 Document\SpecialChar menuseparator
29509 Settings...\SpecialChar menuseparator
29510 Branches
29511 \family default
29512 ).
29513  Within the master,
29514  deactivate the branch (
29515 \family sans
29516 Document\SpecialChar menuseparator
29517 Settings...\SpecialChar menuseparator
29518 Branches
29519 \family default
29520 ).
29521  Now the child's bibliography will be ignored by the master,
29522  but considered by the child.
29523 \end_layout
29524
29525 \begin_layout Standard
29526 If you need multiple bibliographies (e.
29527 \begin_inset space \thinspace{}
29528 \end_inset
29529
29530 g.,
29531  one per child in the 
29532 \emph on
29533 main document
29534 \emph default
29535 ),
29536  please refer to sec.
29537 \begin_inset space ~
29538 \end_inset
29539
29540
29541 \begin_inset CommandInset ref
29542 LatexCommand ref
29543 reference "subsec:Multiple-Bibliographies"
29544 nolink "false"
29545
29546 \end_inset
29547
29548 .
29549 \end_layout
29550
29551 \begin_layout Section
29552 \SpecialChar LyX
29553  Archives
29554 \end_layout
29555
29556 \begin_layout Standard
29557 Users sometimes need to be able to 
29558 \begin_inset Quotes eld
29559 \end_inset
29560
29561 bundle
29562 \begin_inset Quotes erd
29563 \end_inset
29564
29565  a \SpecialChar LyX
29566  file together with all the images (and other files) on which it depends,
29567  either for sending to a publisher or for sharing with a co-author.
29568  \SpecialChar LyX
29569  includes a Python script (
29570 \begin_inset Flex Code
29571 status collapsed
29572
29573 \begin_layout Plain Layout
29574 lyxpak.py
29575 \end_layout
29576
29577 \end_inset
29578
29579 ) that automates this process.
29580  To use it,
29581  you must have either the 
29582 \begin_inset Flex Code
29583 status collapsed
29584
29585 \begin_layout Plain Layout
29586 zipfile
29587 \end_layout
29588
29589 \end_inset
29590
29591  or 
29592 \begin_inset Flex Code
29593 status collapsed
29594
29595 \begin_layout Plain Layout
29596 tarfile
29597 \end_layout
29598
29599 \end_inset
29600
29601  python modules installed on your system.
29602  By default,
29603  the script prefers the 
29604 \begin_inset Flex Code
29605 status collapsed
29606
29607 \begin_layout Plain Layout
29608 gzip
29609 \end_layout
29610
29611 \end_inset
29612
29613 -compressed 
29614 \begin_inset Flex Code
29615 status collapsed
29616
29617 \begin_layout Plain Layout
29618 tar
29619 \end_layout
29620
29621 \end_inset
29622
29623  format on Unix-like systems and the 
29624 \begin_inset Flex Code
29625 status collapsed
29626
29627 \begin_layout Plain Layout
29628 zip
29629 \end_layout
29630
29631 \end_inset
29632
29633  format on Windows.
29634 \end_layout
29635
29636 \begin_layout Standard
29637 \SpecialChar LyX
29638 's configuration process will set the script up to export a `\SpecialChar LyX
29639  Archive',
29640  and this format will then be available under 
29641 \change_deleted -712698321 1674917789
29642
29643 \begin_inset Flex Code
29644 status collapsed
29645
29646 \begin_layout Plain Layout
29647 File\SpecialChar menuseparator
29648 Export
29649 \end_layout
29650
29651 \end_inset
29652
29653
29654 \change_inserted -712698321 1674917789
29655
29656 \family sans
29657 File\SpecialChar menuseparator
29658 Export
29659 \change_unchanged
29660
29661 \family default
29662 .
29663 \end_layout
29664
29665 \begin_layout Standard
29666 Independently of the platform,
29667  the generation of a particular archive format can be forced by adding either the 
29668 \begin_inset Flex Code
29669 status collapsed
29670
29671 \begin_layout Plain Layout
29672 -t
29673 \end_layout
29674
29675 \end_inset
29676
29677  (for the 
29678 \begin_inset Flex Code
29679 status collapsed
29680
29681 \begin_layout Plain Layout
29682 tar
29683 \end_layout
29684
29685 \end_inset
29686
29687  format) or 
29688 \begin_inset Flex Code
29689 status collapsed
29690
29691 \begin_layout Plain Layout
29692 -z
29693 \end_layout
29694
29695 \end_inset
29696
29697  (for the 
29698 \begin_inset Flex Code
29699 status collapsed
29700
29701 \begin_layout Plain Layout
29702 zip
29703 \end_layout
29704
29705 \end_inset
29706
29707  format) switch to the 
29708 \begin_inset Flex Code
29709 status collapsed
29710
29711 \begin_layout Plain Layout
29712 \SpecialChar LyX
29713
29714 \change_deleted -712698321 1674918890
29715 \SpecialChar menuseparator
29716
29717 \change_inserted -712698321 1674918890
29718 ->
29719 \change_unchanged
29720 \SpecialChar LyX
29721  Archive
29722 \end_layout
29723
29724 \end_inset
29725
29726  converter in 
29727 \change_deleted -712698321 1674917814
29728
29729 \begin_inset Flex Code
29730 status collapsed
29731
29732 \begin_layout Plain Layout
29733 Tools\SpecialChar menuseparator
29734 Preferences\SpecialChar menuseparator
29735 File Handling\SpecialChar menuseparator
29736 Converters
29737 \end_layout
29738
29739 \end_inset
29740
29741
29742 \change_inserted -712698321 1674917814
29743
29744 \family sans
29745 Tools\SpecialChar menuseparator
29746 Preferences\SpecialChar menuseparator
29747 File Handling\SpecialChar menuseparator
29748 Converters
29749 \change_unchanged
29750
29751 \family default
29752 .
29753  (Make sure you add the switch after the script name,
29754  not before it.)
29755 \end_layout
29756
29757 \begin_layout Section
29758
29759 \change_deleted -712698321 1674910251
29760 Fancy Headers and Footers
29761 \end_layout
29762
29763 \begin_layout Standard
29764
29765 \change_deleted -712698321 1674910251
29766 The default page layout is rather plain;
29767  for an 
29768 \begin_inset Flex Code
29769 status collapsed
29770
29771 \begin_layout Plain Layout
29772 article
29773 \end_layout
29774
29775 \end_inset
29776
29777  document class,
29778  all you get is a centered page number at the bottom of the page.
29779  This document uses KOMA-script's book class,
29780  so it appears to be a bit fancier.
29781  But to really put on a show,
29782  you need to set the document page style to 
29783 \begin_inset Quotes eld
29784 \end_inset
29785
29786 fancy
29787 \begin_inset Quotes erd
29788 \end_inset
29789
29790 ,
29791  as mentioned in the 
29792 \emph on
29793 User Guide
29794 \emph default
29795 .
29796  This section describes the \SpecialChar LaTeX
29797  code you need to insert in your \SpecialChar LaTeX
29798  preamble in order to get the desired effects.
29799 \end_layout
29800
29801 \begin_layout Standard
29802
29803 \change_deleted -712698321 1674910251
29804 For more information on fancy headers,
29805  see the 
29806 \begin_inset Flex Code
29807 status collapsed
29808
29809 \begin_layout Plain Layout
29810 fancyhdr
29811 \end_layout
29812
29813 \end_inset
29814
29815  package documentation.
29816  (
29817 \begin_inset Flex URL
29818 status collapsed
29819
29820 \begin_layout Plain Layout
29821
29822 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
29823 \end_layout
29824
29825 \end_inset
29826
29827 )
29828 \end_layout
29829
29830 \begin_layout Standard
29831
29832 \change_deleted -712698321 1674910251
29833 The page header is divided into three fields,
29834  not surprisingly labeled 
29835 \begin_inset Quotes eld
29836 \end_inset
29837
29838 left
29839 \begin_inset Quotes erd
29840 \end_inset
29841
29842 ,
29843  
29844 \begin_inset Quotes eld
29845 \end_inset
29846
29847 center
29848 \begin_inset Quotes erd
29849 \end_inset
29850
29851 ,
29852  and 
29853 \begin_inset Quotes eld
29854 \end_inset
29855
29856 right
29857 \begin_inset Quotes erd
29858 \end_inset
29859
29860 .
29861  The footer is also divided into these three fields.
29862  The \SpecialChar LaTeX
29863  commands to set these fields in the simplest manner are 
29864 \begin_inset Flex Code
29865 status collapsed
29866
29867 \begin_layout Plain Layout
29868
29869 \backslash
29870 lhead
29871 \end_layout
29872
29873 \end_inset
29874
29875 ,
29876  
29877 \begin_inset Flex Code
29878 status collapsed
29879
29880 \begin_layout Plain Layout
29881
29882 \backslash
29883 chead
29884 \end_layout
29885
29886 \end_inset
29887
29888 ,
29889  
29890 \begin_inset Flex Code
29891 status collapsed
29892
29893 \begin_layout Plain Layout
29894
29895 \backslash
29896 rhead
29897 \end_layout
29898
29899 \end_inset
29900
29901 ,
29902  
29903 \begin_inset Flex Code
29904 status collapsed
29905
29906 \begin_layout Plain Layout
29907
29908 \backslash
29909 lfoot
29910 \end_layout
29911
29912 \end_inset
29913
29914 ,
29915  etc.
29916  Suppose you wish to put your name in the upper left hand corner of each page.
29917  Simply insert the following command in the preamble:
29918  
29919 \end_layout
29920
29921 \begin_layout Standard
29922
29923 \change_deleted -712698321 1674910251
29924
29925 \family typewriter
29926
29927 \backslash
29928 lhead{John Q.
29929  DocWriter}
29930 \end_layout
29931
29932 \begin_layout Standard
29933
29934 \change_deleted -712698321 1674910251
29935 You will now see your name in the upper left.
29936  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,
29937  e.
29938 \begin_inset space \thinspace{}
29939 \end_inset
29940
29941 g.:
29942 \end_layout
29943
29944 \begin_layout Standard
29945
29946 \change_deleted -712698321 1674910251
29947
29948 \family typewriter
29949
29950 \backslash
29951 cfoot{}
29952 \end_layout
29953
29954 \begin_layout Standard
29955
29956 \change_deleted -712698321 1674910251
29957 Let's get really fancy:
29958  lets put the section number with the word 
29959 \begin_inset Quotes eld
29960 \end_inset
29961
29962 Section
29963 \begin_inset Quotes erd
29964 \end_inset
29965
29966  (e.
29967 \begin_inset space \thinspace{}
29968 \end_inset
29969
29970 g.
29971 \begin_inset space \space{}
29972 \end_inset
29973
29974 Section 3) in the upper left,
29975  the page number (e.
29976 \begin_inset space \thinspace{}
29977 \end_inset
29978
29979 g.
29980 \begin_inset space \space{}
29981 \end_inset
29982
29983 Page 4) in the upper right,
29984  your name in the lower left,
29985  and the date in the lower right.
29986  The following commands should now appear in the preamble:
29987 \end_layout
29988
29989 \begin_layout Standard
29990
29991 \change_deleted -712698321 1674910251
29992
29993 \family typewriter
29994
29995 \backslash
29996 lhead{Section 
29997 \backslash
29998 thesection}
29999 \end_layout
30000
30001 \begin_layout Standard
30002
30003 \change_deleted -712698321 1674910251
30004
30005 \family typewriter
30006
30007 \backslash
30008 chead{}
30009 \end_layout
30010
30011 \begin_layout Standard
30012
30013 \change_deleted -712698321 1674910251
30014
30015 \family typewriter
30016
30017 \backslash
30018 rhead{Page 
30019 \backslash
30020 thepage}
30021 \end_layout
30022
30023 \begin_layout Standard
30024
30025 \change_deleted -712698321 1674910251
30026
30027 \family typewriter
30028
30029 \backslash
30030 lfoot{John Q.
30031  DocWriter}
30032 \end_layout
30033
30034 \begin_layout Standard
30035
30036 \change_deleted -712698321 1674910251
30037
30038 \family typewriter
30039
30040 \backslash
30041 cfoot{}
30042 \end_layout
30043
30044 \begin_layout Standard
30045
30046 \change_deleted -712698321 1674910251
30047
30048 \family typewriter
30049
30050 \backslash
30051 rfoot{
30052 \backslash
30053 today}
30054 \end_layout
30055
30056 \begin_layout Standard
30057
30058 \change_deleted -712698321 1674910251
30059 The commands 
30060 \begin_inset Flex Code
30061 status collapsed
30062
30063 \begin_layout Plain Layout
30064
30065 \backslash
30066 thesection
30067 \end_layout
30068
30069 \end_inset
30070
30071  and 
30072 \begin_inset Flex Code
30073 status collapsed
30074
30075 \begin_layout Plain Layout
30076
30077 \backslash
30078 thepage
30079 \end_layout
30080
30081 \end_inset
30082
30083  access \SpecialChar LaTeX
30084 's section and page counters,
30085  and so print out the current section and page number.
30086  
30087 \begin_inset Flex Code
30088 status collapsed
30089
30090 \begin_layout Plain Layout
30091
30092 \backslash
30093 today
30094 \end_layout
30095
30096 \end_inset
30097
30098  simply prints out today's date.
30099 \end_layout
30100
30101 \begin_layout Standard
30102
30103 \change_deleted -712698321 1674910251
30104 The thicknesses of the horizontal rules drawn beneath the header and above the footer can also be modified.
30105  If you don't want one of the rules,
30106  set its thickness to 0.
30107  The header rule has a default thickness of 0.4pt,
30108  the footer rule is 0pt.
30109  Use commands
30110 \family typewriter
30111  
30112 \family default
30113 like 
30114 \begin_inset Flex Code
30115 status collapsed
30116
30117 \begin_layout Plain Layout
30118
30119 \backslash
30120 renewcommand{
30121 \backslash
30122 headrulewidth}{0.4pt}
30123 \end_layout
30124
30125 \end_inset
30126
30127  and 
30128 \begin_inset Flex Code
30129 status collapsed
30130
30131 \begin_layout Plain Layout
30132
30133 \backslash
30134 renewcommand{
30135 \backslash
30136 footrulewidth}{0.4pt}
30137 \end_layout
30138
30139 \end_inset
30140
30141  to set the thicknesses.
30142 \end_layout
30143
30144 \begin_layout Standard
30145
30146 \change_deleted -712698321 1674910251
30147 You can switch the header/footer settings on and off for individual pages using commands like 
30148 \begin_inset Flex Code
30149 status collapsed
30150
30151 \begin_layout Plain Layout
30152
30153 \backslash
30154 thispagestyle{empty}
30155 \end_layout
30156
30157 \end_inset
30158
30159 ,
30160  
30161 \begin_inset Flex Code
30162 status collapsed
30163
30164 \begin_layout Plain Layout
30165
30166 \backslash
30167 thispagestyle{plain}
30168 \end_layout
30169
30170 \end_inset
30171
30172 ,
30173  and 
30174 \begin_inset Flex Code
30175 status collapsed
30176
30177 \begin_layout Plain Layout
30178
30179 \backslash
30180 thispagestyle{fancy}
30181 \end_layout
30182
30183 \end_inset
30184
30185 .
30186  Simply insert them in the text on the page you want changed and mark them as \SpecialChar TeX
30187  code.
30188  In fact,
30189  title pages are marked as plain by default,
30190  while following pages are marked fancy when using the global fancy setting.
30191 \end_layout
30192
30193 \begin_layout Standard
30194
30195 \change_deleted -712698321 1674910251
30196 As a final example,
30197  it is possible to include an image in the header or footer.
30198  Suppose you want to put a company logo in the upper lefthand corner.
30199  You might try something like
30200 \end_layout
30201
30202 \begin_layout Standard
30203
30204 \change_deleted -712698321 1674910251
30205
30206 \family typewriter
30207
30208 \backslash
30209 lhead{
30210 \backslash
30211 resizebox{1in}{!}{
30212 \backslash
30213 includegraphics{logo.eps}}}
30214 \end_layout
30215
30216 \begin_layout Standard
30217 \noindent
30218
30219 \change_deleted -712698321 1674910251
30220 (you may need to preface this with 
30221 \begin_inset Flex Code
30222 status collapsed
30223
30224 \begin_layout Plain Layout
30225
30226 \backslash
30227 usepackage{graphics}
30228 \end_layout
30229
30230 \end_inset
30231
30232  if you don't include graphics elsewhere in your document).
30233 \change_unchanged
30234
30235 \end_layout
30236
30237 \begin_layout Chapter
30238 \SpecialChar LyX
30239  and the World Wide Web
30240 \end_layout
30241
30242 \begin_layout Standard
30243 \SpecialChar LyX
30244  has long supported the export of documents to various web-friendly formats,
30245  such as HTML.
30246  Before version 2.0,
30247  however,
30248  HTML export was always accomplished by the use of external converters.
30249 \begin_inset Foot
30250 status collapsed
30251
30252 \begin_layout Plain Layout
30253 For details on the use of external converters with \SpecialChar LyX
30254 ,
30255  see the 
30256 \emph on
30257 Converters
30258 \emph default
30259  section of the Customization manual.
30260 \end_layout
30261
30262 \end_inset
30263
30264  These fall into two large groups:
30265  there are converters that use \SpecialChar LaTeX
30266  as an intermediate format,
30267  such as 
30268 \begin_inset Flex Code
30269 status collapsed
30270
30271 \begin_layout Plain Layout
30272 htlatex
30273 \end_layout
30274
30275 \end_inset
30276
30277 ,
30278  
30279 \begin_inset Flex Code
30280 status collapsed
30281
30282 \begin_layout Plain Layout
30283 html2latex
30284 \end_layout
30285
30286 \end_inset
30287
30288 ,
30289  and 
30290 \begin_inset Flex Code
30291 status collapsed
30292
30293 \begin_layout Plain Layout
30294 plastex
30295 \end_layout
30296
30297 \end_inset
30298
30299 ,
30300  relying upon \SpecialChar LyX
30301  to produce the \SpecialChar LaTeX
30302 ;
30303  and there is a converter that works directly on \SpecialChar LyX
30304  files,
30305  
30306 \begin_inset Flex Code
30307 status collapsed
30308
30309 \begin_layout Plain Layout
30310 e\SpecialChar LyX
30311 er
30312 \end_layout
30313
30314 \end_inset
30315
30316 .
30317  All of these have different advantages and disadvantages.
30318  
30319 \end_layout
30320
30321 \begin_layout Standard
30322 The \SpecialChar LaTeX
30323 -based converters have the advantage that,
30324  in principle,
30325  they know everything about the exported document that \SpecialChar LaTeX
30326  does.
30327  Such converters do not care,
30328  for example,
30329  if a certain block of code was produced by \SpecialChar LyX
30330  or was Evil Red Text.
30331  These converters know about 
30332 \begin_inset Flex Code
30333 status collapsed
30334
30335 \begin_layout Plain Layout
30336 aux
30337 \end_layout
30338
30339 \end_inset
30340
30341  files,
30342  counters,
30343  and references,
30344  and can often make use of the 
30345 \begin_inset Flex Code
30346 status collapsed
30347
30348 \begin_layout Plain Layout
30349 bbl
30350 \end_layout
30351
30352 \end_inset
30353
30354  files generated by Bib\SpecialChar TeX
30355 .
30356  On the other hand,
30357  \SpecialChar LaTeX
30358  is a very hard language to parse—
30359 it is sometimes said that only \SpecialChar TeX
30360  itself understands \SpecialChar TeX
30361
30362 and \SpecialChar LaTeX
30363 -based converters will often choke on what seem to be quite simple constructs;
30364  complex ones can throw them completely,
30365  and as of this writing,
30366  for example,
30367  the 
30368 \emph on
30369 Embedded Objects
30370 \emph default
30371  manual will not export with 
30372 \begin_inset Flex Code
30373 status collapsed
30374
30375 \begin_layout Plain Layout
30376 htlatex
30377 \end_layout
30378
30379 \end_inset
30380
30381 ,
30382  though the others will.
30383  The other issue concerns how math is handled.
30384  These converters typically convert the formulae into little pictures that are then linked from the HTML document.
30385  Since these are actually generated by \SpecialChar LaTeX
30386 ,
30387  they are accurate.
30388  But they do not scale well,
30389  and just getting them to look as if they are actually meant to be in your document—
30390 so that the font sizes seem to be roughly the same—
30391 can be a challenge.
30392 \end_layout
30393
30394 \begin_layout Standard
30395 Alex Fernandez's 
30396 \begin_inset Flex Code
30397 status collapsed
30398
30399 \begin_layout Plain Layout
30400 e\SpecialChar LyX
30401 er
30402 \end_layout
30403
30404 \end_inset
30405
30406  (
30407 \begin_inset CommandInset href
30408 LatexCommand href
30409 name "http://pinchito.es/elyxer/"
30410 target "http://pinchito.es/elyxer/"
30411 literal "false"
30412
30413 \end_inset
30414
30415 ) solves some of these problems.
30416  In particular,
30417  the formulae it produces scale perfectly,
30418  since it renders math using a combination of HTML and CSS rather than converting the formulae to images.
30419  But even moderately complex formula are rendered less well than with 
30420 \begin_inset Flex Code
30421 status collapsed
30422
30423 \begin_layout Plain Layout
30424 htlatex
30425 \end_layout
30426
30427 \end_inset
30428
30429 ;
30430  this reflects the limitations of HTML.
30431 \begin_inset Foot
30432 status collapsed
30433
30434 \begin_layout Plain Layout
30435 That said,
30436  
30437 \begin_inset Flex Code
30438 status collapsed
30439
30440 \begin_layout Plain Layout
30441 e\SpecialChar LyX
30442 er
30443 \end_layout
30444
30445 \end_inset
30446
30447  can also use jsMath and MathJax for equations,
30448  but this setting is only available globally and requires one to have access to a server that runs the backend.
30449 \end_layout
30450
30451 \end_inset
30452
30453  More importantly (as of version 1.1.1,
30454  at least),
30455  
30456 \begin_inset Flex Code
30457 status collapsed
30458
30459 \begin_layout Plain Layout
30460 e\SpecialChar LyX
30461 er
30462 \end_layout
30463
30464 \end_inset
30465
30466  has limited support for math macros and no support for user-defined paragraph or character styles.
30467  These limitations make 
30468 \begin_inset Flex Code
30469 status collapsed
30470
30471 \begin_layout Plain Layout
30472 e\SpecialChar LyX
30473 er
30474 \end_layout
30475
30476 \end_inset
30477
30478  unsuitable for many of the documents \SpecialChar LyX
30479  users produce.
30480  In principle,
30481  of course,
30482  these problems could be solved,
30483  but the \SpecialChar LyX
30484  developers have decided to follow a different path and have made \SpecialChar LyX
30485  itself capable of writing XHTML,
30486  just as it is capable of writing \SpecialChar LaTeX
30487 ,
30488  DocBook,
30489  and plaintext.
30490 \end_layout
30491
30492 \begin_layout Standard
30493 As of this writing,
30494  XHTML output remains under development and should probably be regarded as 
30495 \begin_inset Quotes eld
30496 \end_inset
30497
30498 experimental
30499 \begin_inset Quotes erd
30500 \end_inset
30501
30502 .
30503 \begin_inset Foot
30504 status collapsed
30505
30506 \begin_layout Plain Layout
30507 The file 
30508 \begin_inset Flex Code
30509 status collapsed
30510
30511 \begin_layout Plain Layout
30512 development/HTML/HTML.notes
30513 \end_layout
30514
30515 \end_inset
30516
30517 ,
30518  which can be found in the \SpecialChar LyX
30519  source tree or 
30520 \begin_inset CommandInset href
30521 LatexCommand href
30522 name "accessed online"
30523 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
30524 literal "false"
30525
30526 \end_inset
30527
30528 ,
30529  usually contains up-to-date information about the state of XHTML output.
30530  See also the list of XHTML bugs on 
30531 \begin_inset CommandInset href
30532 LatexCommand href
30533 name "the bug tracker"
30534 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"
30535 literal "false"
30536
30537 \end_inset
30538
30539 .
30540 \end_layout
30541
30542 \end_inset
30543
30544  Still,
30545  the developers have chosen this approach because it has several potential advantages over the other two.
30546 \end_layout
30547
30548 \begin_layout Standard
30549 These advantages are primarily due to the fact that the XHTML output routines,
30550  since they are part of \SpecialChar LyX
30551 ,
30552  know everything \SpecialChar LyX
30553  knows about the document being exported.
30554 \begin_inset Foot
30555 status collapsed
30556
30557 \begin_layout Plain Layout
30558 Another advantage is that,
30559  since these routines are internal to \SpecialChar LyX
30560 ,
30561  they are immune to changes in \SpecialChar LyX
30562 's file format,
30563  or to changes in the semantics of existing insets.
30564 \end_layout
30565
30566 \end_inset
30567
30568  So they know about the table of contents (as displayed in the outline),
30569  about the counters associated with different paragraph styles,
30570  and about user-defined styles.
30571  The XHTML output routines know what \SpecialChar LyX
30572  knows about internationalization,
30573  too,
30574  so they will output 
30575 \begin_inset Quotes eld
30576 \end_inset
30577
30578 Chapter 1
30579 \begin_inset Quotes erd
30580 \end_inset
30581
30582  or 
30583 \begin_inset Quotes eld
30584 \end_inset
30585
30586
30587 \lang ngerman
30588 Kapitel
30589 \lang english
30590  1
30591 \begin_inset Quotes erd
30592 \end_inset
30593
30594 ,
30595  depending upon the language in effect at the time.
30596  
30597 \end_layout
30598
30599 \begin_layout Standard
30600 Quite generally,
30601  the output routines know what \SpecialChar LyX
30602  knows about document layout,
30603  that is,
30604  about how the document is to be rendered on screen.
30605  We use this information when we output the document as XHTML.
30606  In particular,
30607  \SpecialChar LyX
30608  
30609 \emph on
30610 automatically
30611 \emph default
30612  generates CSS style information corresponding to the layout information it uses to render the document on screen:
30613  if section headings are supposed to be sans-serif and bold as seen in \SpecialChar LyX
30614 ,
30615  then (by default) they will be sans-serif and bold when viewed in a web browser,
30616  too.
30617  And this is true not just for pre-defined styles,
30618  like Section,
30619  but for any style,
30620  including user-defined styles.
30621  Indeed,
30622  the XHTML output routines make no distinction between user-defined paragraph and 
30623 \change_deleted 244031559 1603876931
30624 character
30625 \change_inserted 244031559 1603876940
30626 text
30627 \change_unchanged
30628  styles and \SpecialChar LyX
30629 's own pre-defined styles:
30630  in each case,
30631  everything \SpecialChar LyX
30632  knows about the styles is contained in the layout files.
30633  And much the same is true as regards pre-defined textual insets,
30634  such as footnotes,
30635  and various custom insets.
30636  
30637 \end_layout
30638
30639 \begin_layout Standard
30640 The result is that XHTML output can be customized and extended in exactly the same way \SpecialChar LaTeX
30641  output can be customized and extended:
30642  through layout files and modules.
30643  See chapter five of the 
30644 \emph on
30645 Customization 
30646 \emph default
30647 manual for the details.
30648 \end_layout
30649
30650 \begin_layout Standard
30651 The remainder of this chapter contains more detailed information on XHTML output,
30652  its limitations,
30653  and ways to work around those limitations.
30654 \end_layout
30655
30656 \begin_layout Section
30657 Math Output in XHTML
30658 \end_layout
30659
30660 \begin_layout Standard
30661 \SpecialChar LyX
30662  offers four choices for how math is rendered.
30663  These have various advantages and disadvantages:
30664 \end_layout
30665
30666 \begin_layout Itemize
30667 MathML
30668 \begin_inset Newline newline
30669 \end_inset
30670
30671 MathML is a dialect of XML designed specifically for mathematics on the web,
30672  and it typically renders very well in browsers that support it.
30673  The disadvantage is that not all browsers support MathML,
30674  and support is not complete even in the Gecko-based browsers,
30675  such as Firefox.
30676 \begin_inset Newline newline
30677 \end_inset
30678
30679 If \SpecialChar LyX
30680  is unable to render a formula as MathML—
30681 for example,
30682  if the formula uses the 
30683 \begin_inset Flex Code
30684 status collapsed
30685
30686 \begin_layout Plain Layout
30687 xymatrix
30688 \end_layout
30689
30690 \end_inset
30691
30692  package or ERT—
30693 then it will instead output the formula as an image.
30694  
30695 \end_layout
30696
30697 \begin_layout Itemize
30698 HTML
30699 \begin_inset Newline newline
30700 \end_inset
30701
30702 As mentioned above,
30703  
30704 \begin_inset Flex Code
30705 status collapsed
30706
30707 \begin_layout Plain Layout
30708 elyxer
30709 \end_layout
30710
30711 \end_inset
30712
30713  outputs math as HTML,
30714  styled by CSS.
30715 \begin_inset Foot
30716 status collapsed
30717
30718 \begin_layout Plain Layout
30719 \SpecialChar LyX
30720  has borrowed some of the CSS for its HTML output from 
30721 \begin_inset Flex Code
30722 status collapsed
30723
30724 \begin_layout Plain Layout
30725 elyxer
30726 \end_layout
30727
30728 \end_inset
30729
30730 .
30731 \end_layout
30732
30733 \end_inset
30734
30735  For simple formulae,
30736  this can work quite well,
30737  though with more complicated formulae it tends to break down.
30738  Still,
30739  this method has the advantage that it is very widely supported and so it may be appropriate for documents that contain only a little,
30740  fairly simple math.
30741 \begin_inset Newline newline
30742 \end_inset
30743
30744 If Lyx is unable to render a formula as HTML—
30745 for example,
30746  if the formula uses the 
30747 \begin_inset Flex Code
30748 status collapsed
30749
30750 \begin_layout Plain Layout
30751 xymatrix
30752 \end_layout
30753
30754 \end_inset
30755
30756  package or ERT—
30757 then it will instead output the formula as an image.
30758  
30759 \end_layout
30760
30761 \begin_layout Itemize
30762 Images
30763 \begin_inset Newline newline
30764 \end_inset
30765
30766 Like 
30767 \begin_inset Flex Code
30768 status collapsed
30769
30770 \begin_layout Plain Layout
30771 htlatex
30772 \end_layout
30773
30774 \end_inset
30775
30776 ,
30777  \SpecialChar LyX
30778  will output formulae as images,
30779  the very same images,
30780  in fact,
30781  that are used for instant preview.
30782 \begin_inset Foot
30783 status collapsed
30784
30785 \begin_layout Plain Layout
30786 Instant preview does 
30787 \emph on
30788 not 
30789 \emph default
30790 have to be on for images to be output,
30791  however.
30792 \end_layout
30793
30794 \end_inset
30795
30796  The advantage to this method is that the images are simply generated by \SpecialChar LaTeX
30797 ,
30798  so they are very accurate.
30799  The disadvantage,
30800  as mentioned earlier,
30801  is that these are bitmapped images,
30802  so they do not scale terribly well,
30803  and one cannot copy them,
30804  etc.
30805 \begin_inset Newline newline
30806 \end_inset
30807
30808 The size of the images can be controlled by setting the 
30809 \begin_inset Quotes eld
30810 \end_inset
30811
30812 Math Images Scaling
30813 \begin_inset Quotes erd
30814 \end_inset
30815
30816  parameter under 
30817 \change_deleted -712698321 1674917822
30818
30819 \begin_inset Flex Noun
30820 status collapsed
30821
30822 \begin_layout Plain Layout
30823 Document\SpecialChar menuseparator
30824 Settings\SpecialChar menuseparator
30825 Formats
30826 \end_layout
30827
30828 \end_inset
30829
30830
30831 \change_inserted -712698321 1674917822
30832
30833 \family sans
30834 Document\SpecialChar menuseparator
30835 Settings\SpecialChar menuseparator
30836 Formats
30837 \change_unchanged
30838
30839 \family default
30840 .
30841 \begin_inset Foot
30842 status collapsed
30843
30844 \begin_layout Plain Layout
30845 For those who want to know,
30846  this controls the resolution of the image in dots per inch and is based upon a default of 75 dpi.
30847 \end_layout
30848
30849 \end_inset
30850
30851
30852 \begin_inset Newline newline
30853 \end_inset
30854
30855 If \SpecialChar LyX
30856  for some reason fails to create an image for a formula (e.g.,
30857  if a required \SpecialChar LaTeX
30858  package is not installed),
30859  then it will fall back to outputing the raw \SpecialChar LaTeX
30860 .
30861 \end_layout
30862
30863 \begin_layout Itemize
30864 \SpecialChar LaTeX
30865
30866 \begin_inset Newline newline
30867 \end_inset
30868
30869 Finally,
30870  \SpecialChar LyX
30871  will happily output math as \SpecialChar LaTeX
30872 .
30873  As well as being the output of last resort,
30874  this method can be used with such tools as 
30875 \begin_inset CommandInset href
30876 LatexCommand href
30877 name "jsMath"
30878 target "http://www.math.union.edu/~dpvc/jsMath/"
30879 literal "false"
30880
30881 \end_inset
30882
30883 ,
30884  which uses JavaScript to render \SpecialChar LaTeX
30885  embedded in HTML documents.
30886  \SpecialChar LyX
30887  wraps the \SpecialChar LaTeX
30888  in either a 
30889 \begin_inset Flex Code
30890 status collapsed
30891
30892 \begin_layout Plain Layout
30893 span
30894 \end_layout
30895
30896 \end_inset
30897
30898  (for inline formulas) or 
30899 \begin_inset Flex Code
30900 status collapsed
30901
30902 \begin_layout Plain Layout
30903 div
30904 \end_layout
30905
30906 \end_inset
30907
30908  (for displayed formulas) with 
30909 \begin_inset Flex Code
30910 status collapsed
30911
30912 \begin_layout Plain Layout
30913 class='math'
30914 \end_layout
30915
30916 \end_inset
30917
30918 ,
30919  as is required for jsMath.
30920 \end_layout
30921
30922 \begin_layout Standard
30923 One of these output methods must be selected under 
30924 \change_deleted -712698321 1674917830
30925
30926 \begin_inset Flex Noun
30927 status collapsed
30928
30929 \begin_layout Plain Layout
30930 Document\SpecialChar menuseparator
30931 Settings\SpecialChar menuseparator
30932 Formats
30933 \end_layout
30934
30935 \end_inset
30936
30937
30938 \change_inserted -712698321 1674917830
30939
30940 \family sans
30941 Document\SpecialChar menuseparator
30942 Settings\SpecialChar menuseparator
30943 Formats
30944 \change_unchanged
30945
30946 \family default
30947 .
30948  By default,
30949  \SpecialChar LyX
30950  outputs MathML.
30951  This is a document-wide setting,
30952  therefore.
30953 \end_layout
30954
30955 \begin_layout Standard
30956 Eventually,
30957  \SpecialChar LyX
30958  will offer the user the option to select an alternate output method for a particular inset,
30959  say,
30960  one that isn't being rendered very well by MathML.
30961 \begin_inset Foot
30962 status collapsed
30963
30964 \begin_layout Plain Layout
30965 That said,
30966  since \SpecialChar LyX
30967  falls back to images if the inset contains ERT,
30968  then one can force output as an image by putting some harmless ERT into the math,
30969  for example:
30970  
30971 \begin_inset Formula $a=b\relax$
30972 \end_inset
30973
30974 .
30975 \end_layout
30976
30977 \end_inset
30978
30979
30980 \end_layout
30981
30982 \begin_layout Section
30983 Bibliography and Citations
30984 \end_layout
30985
30986 \begin_layout Standard
30987 XHTML output fully supports bibliographies and citations.
30988  
30989 \end_layout
30990
30991 \begin_layout Standard
30992 Citation labels are generated by the same machinery that generates \SpecialChar LyX
30993 's on-screen labels,
30994  so the labels will look in the output much as they do in \SpecialChar LyX
30995 ,
30996  though better.
30997  If you are using numerical citations,
30998  then \SpecialChar LyX
30999  will output numerical labels,
31000  such as [1] or [17],
31001  rather than simply showing the citation key in square brackets,
31002  as it does on-screen.
31003  If you are using author-year citations,
31004  then \SpecialChar LyX
31005  will add lowercase letters to the years,
31006  just as Bib\SpecialChar TeX
31007  does,
31008  if it finds more than one citation for a given author-year combination.
31009  The labels will be printed with the bibliography entries.
31010  Note that there is,
31011  at present,
31012  no way to customize the appearance of the labels,
31013  for example,
31014  to choose between square brackets and parentheses.
31015 \end_layout
31016
31017 \begin_layout Standard
31018 Bibliography output is handled by the same machinery that handles the presentation of reference information in the citation dialog,
31019  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.
31020  The formatting can be customized in your layout file or,
31021  preferably,
31022  in a module.
31023  See the 
31024 \emph on
31025 Customization
31026 \emph default
31027  manual for the details.
31028 \end_layout
31029
31030 \begin_layout Standard
31031 The main defect at present is that cross-referenced information is printed with every entry with which it is associated.
31032  So you can see things like this:
31033 \end_layout
31034
31035 \begin_layout Quote
31036 Jason Stanley,
31037  
31038 \begin_inset Quotes eld
31039 \end_inset
31040
31041 Context and Logical Form
31042 \begin_inset Quotes erd
31043 \end_inset
31044
31045 ,
31046  in 
31047 \emph on
31048 Language in Context:
31049  Selected Essays
31050 \emph default
31051  (Oxford:
31052  Oxford University Press,
31053  2007),
31054  pp.
31055  30–68.
31056 \end_layout
31057
31058 \begin_layout Quote
31059 Jason Stanley,
31060  
31061 \begin_inset Quotes eld
31062 \end_inset
31063
31064 Semantics in Context
31065 \begin_inset Quotes erd
31066 \end_inset
31067
31068 ,
31069  in 
31070 \emph on
31071 Language in Context:
31072  Selected Essays
31073 \emph default
31074  (Oxford:
31075  Oxford University Press,
31076  2007),
31077  pp.
31078  201–30.
31079 \end_layout
31080
31081 \begin_layout Standard
31082 This should be fixed before long.
31083 \end_layout
31084
31085 \begin_layout Standard
31086 There is no support at present for sectioned bibliographies.
31087  If you have multiple bibliographies,
31088  then \SpecialChar LyX
31089  will print the same bibliography over and over.
31090 \end_layout
31091
31092 \begin_layout Section
31093 Indexes
31094 \end_layout
31095
31096 \begin_layout Standard
31097 \SpecialChar LyX
31098  will happily export indexes as XHTML,
31099  but with certain limitations at the moment.
31100 \end_layout
31101
31102 \begin_layout Standard
31103 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 
31104 \emph on
31105 User's Guide
31106 \emph default
31107 .
31108 \begin_inset Foot
31109 status collapsed
31110
31111 \begin_layout Plain Layout
31112 The main issue here is that \SpecialChar LyX
31113  itself does not really handle these.
31114  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
31115 .
31116 \end_layout
31117
31118 \end_inset
31119
31120  We'll describe how they are handled using the subsection headings from that section.
31121 \end_layout
31122
31123 \begin_layout Itemize
31124 Grouping Index Entries (aka,
31125  sub-entries):
31126  \SpecialChar LyX
31127  makes an effort to support these,
31128  but the entries must be separated by 
31129 \begin_inset Quotes eld
31130 \end_inset
31131
31132  !
31133  
31134 \begin_inset Quotes erd
31135 \end_inset
31136
31137 ,
31138  that is,
31139  there must be spaces around the exclamation point.
31140  This is because it is otherwise too difficult to check for escaped exclamation points,
31141  ones in math,
31142  and so forth.
31143 \end_layout
31144
31145 \begin_layout Itemize
31146 Page Ranges:
31147  There is no support at all for page ranges,
31148  since these make no sense with XHMTL.
31149  Instead,
31150  you will just get two index entries,
31151  one at either end.
31152 \end_layout
31153
31154 \begin_layout Itemize
31155 Cross-referencing:
31156  There is no support for cross-referencing.
31157  If \SpecialChar LyX
31158  finds an entry containing the 
31159 \begin_inset Quotes eld
31160 \end_inset
31161
31162 |see\SpecialChar ldots
31163
31164 \begin_inset Quotes erd
31165 \end_inset
31166
31167  construct,
31168  it is just dropped,
31169  and the rest is treated as an ordinary index entry.
31170 \end_layout
31171
31172 \begin_layout Itemize
31173 Index Entry Order:
31174  \SpecialChar LyX
31175  does support attempts to fix the sorting order.
31176  It will take what is before the first `@' it finds and use that for sorting,
31177  taking what follows the first `@' to be the actual entry.
31178  At present,
31179  \SpecialChar LyX
31180  does not check for escaped `@',
31181  so do not try to index email addresses.
31182 \end_layout
31183
31184 \begin_layout Itemize
31185 Index Entry Layout:
31186  You can format entries by using the text style dialog,
31187  or by using any other method available within \SpecialChar LyX
31188  itself.
31189  There is no support for constructs like:
31190  
31191 \begin_inset Quotes eld
31192 \end_inset
31193
31194 entry|textbf
31195 \begin_inset Quotes erd
31196 \end_inset
31197
31198 .
31199  Indeed,
31200  if \SpecialChar LyX
31201  finds a pipe symbol,
31202  `|',
31203  in an entry,
31204  it will delete it and everything that follows it.
31205 \end_layout
31206
31207 \begin_layout Itemize
31208 Multiple Indexes:
31209  There is no support for multiple indexes.
31210  Rather,
31211  all index entries will be printed as one large index.
31212  To avoid our printing several versions of the index,
31213  we print only the main index,
31214  so make sure you have one.
31215 \end_layout
31216
31217 \begin_layout Section
31218 Nomenclature and Glossary
31219 \end_layout
31220
31221 \begin_layout Standard
31222 There is at present no support for glossaries.
31223  Adding it would be fairly trivial,
31224  and welcome.
31225 \end_layout
31226
31227 \begin_layout Chapter
31228
31229 \change_inserted 1075283030 1616534180
31230 DocBook Output
31231 \end_layout
31232
31233 \begin_layout Standard
31234
31235 \change_inserted 1075283030 1616534386
31236 Apart from HTML,
31237  \SpecialChar LyX
31238  can generate documents in the DocBook XML vocabulary.
31239  With versions 2.3 and before,
31240  only select templates could be used to generate DocBook documents (only version 4).
31241  Starting with \SpecialChar LyX
31242  2.4,
31243  most \SpecialChar LyX
31244  layouts can generate valid DocBook documents (only version 5).
31245  This feature is built into \SpecialChar LyX
31246  and does not require the use of external tools.
31247 \end_layout
31248
31249 \begin_layout Standard
31250
31251 \change_inserted 1075283030 1616534437
31252 The result is that the DocBook output can be customized and extended in exactly the same way \SpecialChar LaTeX
31253  output can be customized and extended:
31254  through layout files and modules.
31255  See chapter five of the 
31256 \emph on
31257 Customization 
31258 \emph default
31259 manual for the details.
31260 \end_layout
31261
31262 \begin_layout Standard
31263
31264 \change_inserted 1075283030 1616534475
31265 Most \SpecialChar LyX
31266  features are supported with DocBook,
31267  like math output.
31268 \end_layout
31269
31270 \begin_layout Itemize
31271
31272 \change_inserted 1075283030 1616534741
31273 Math output is performed mostly in MathML (the major exception being constructions not supported by \SpecialChar LyX
31274 ,
31275  i.e.
31276  ERTs).
31277  All formulae are also available in raw \SpecialChar TeX
31278  in the DocBook output for further processing.
31279 \end_layout
31280
31281 \begin_layout Itemize
31282
31283 \change_inserted 1075283030 1616534852
31284 Bibliographies and citations are implemented,
31285  including with an external BibTeX file.
31286  Bibliography entries are not prerendered when the detailed information are available,
31287  but rather output with the standard DocBook constructs.
31288  The external DocBook processor is expected to handle the rendering of entries.
31289 \end_layout
31290
31291 \begin_layout Itemize
31292
31293 \change_inserted 1075283030 1616534863
31294 Indexes are supported,
31295  including multiple indices.
31296  Grouping (with 
31297 \family typewriter
31298 !
31299 \family default
31300 ),
31301  page ranges,
31302  and cross-references (
31303 \family typewriter
31304 |see
31305 \family default
31306 ) are supported,
31307  with the exception of the same symbols escaped.
31308  Entry order (
31309 \family typewriter
31310 @
31311 \family default
31312 ) and layout (
31313 \family typewriter
31314 |mathbf
31315 \family default
31316 ) are not supported.
31317  There is no support for escaping of index entries.
31318 \end_layout
31319
31320 \begin_layout Itemize
31321
31322 \change_inserted 1075283030 1616534884
31323 Glossaries are implemented.
31324 \end_layout
31325
31326 \begin_layout Standard
31327
31328 \change_inserted 1075283030 1616534894
31329 Two major parameters can be set at the document level.
31330 \end_layout
31331
31332 \begin_layout Itemize
31333
31334 \change_inserted 1075283030 1616534948
31335 Format for tables:
31336  \SpecialChar LyX
31337  can generate tables either as HTML (default value) or CALS,
31338  depending on the user's requirements.
31339  Most DocBook processors accept both formats.
31340 \end_layout
31341
31342 \begin_layout Itemize
31343
31344 \change_inserted 1075283030 1616535006
31345 MathML prefix:
31346  in DocBook,
31347  MathML is included within its own name space,
31348  unlike HTML.
31349  The implication is that there must be an indication of the tags belonging to the MathML standard.
31350  Three choices are offered:
31351  
31352 \end_layout
31353
31354 \begin_deeper
31355 \begin_layout Itemize
31356
31357 \change_inserted 1075283030 1616535044
31358 Inline:
31359  the MathML name space is defined for each formula (using the 
31360 \family typewriter
31361 xmlns
31362 \family default
31363  attribute on each formula)
31364 \end_layout
31365
31366 \begin_layout Itemize
31367
31368 \change_inserted 1075283030 1616535090
31369 With the 
31370 \family typewriter
31371 m
31372 \family default
31373  prefix (default):
31374  the MathML name space is defined at the document level (using the 
31375 \family typewriter
31376 xmlns:m
31377 \family default
31378  attribute on the root element).
31379  Each MathML is prefixed with 
31380 \family typewriter
31381 m
31382 \family default
31383 :
31384  for instance,
31385  
31386 \family typewriter
31387 m:math
31388 \end_layout
31389
31390 \begin_layout Itemize
31391
31392 \change_inserted 1075283030 1616620405
31393 With the 
31394 \family typewriter
31395 mml
31396 \family default
31397  prefix:
31398  similar to the 
31399 \family typewriter
31400 m
31401 \family default
31402  option,
31403  but with 
31404 \family typewriter
31405 mml
31406 \end_layout
31407
31408 \begin_layout Standard
31409
31410 \change_inserted 1075283030 1616620470
31411 This option is especially useful if you want \SpecialChar LyX
31412  to match your personal style or to work with buggy software that only accepts one prefix for MathML.
31413 \change_unchanged
31414
31415 \end_layout
31416
31417 \end_deeper
31418 \begin_layout Chapter
31419 The \SpecialChar LyX
31420  Server
31421 \end_layout
31422
31423 \begin_layout Section
31424 Introduction
31425 \end_layout
31426
31427 \begin_layout Standard
31428 The `\SpecialChar LyX
31429  server' allows other programs to talk to \SpecialChar LyX
31430 ,
31431  invoke \SpecialChar LyX
31432  commands,
31433  and retrieve information about the \SpecialChar LyX
31434  internal state.
31435  This is only intended for advanced users,
31436  but they should find it useful.
31437  It is by writing to the \SpecialChar LyX
31438  server,
31439  for example,
31440  that bibliography managers,
31441  such as JabRef,
31442  are able to 
31443 \begin_inset Quotes eld
31444 \end_inset
31445
31446 push
31447 \begin_inset Quotes erd
31448 \end_inset
31449
31450  citations to \SpecialChar LyX
31451 .
31452 \end_layout
31453
31454 \begin_layout Section
31455 Starting the \SpecialChar LyX
31456  Server
31457 \begin_inset CommandInset label
31458 LatexCommand label
31459 name "sec:Starting-the-Server"
31460
31461 \end_inset
31462
31463
31464 \end_layout
31465
31466 \begin_layout Standard
31467 The \SpecialChar LyX
31468  server works through the use of a pair of named pipes.
31469  These are usually located in 
31470 \begin_inset Flex Code
31471 status collapsed
31472
31473 \begin_layout Plain Layout
31474 UserDir
31475 \end_layout
31476
31477 \end_inset
31478
31479 ,
31480  (except on Windows,
31481  where 
31482 \emph on
31483 local
31484 \emph default
31485  named pipes are special objects located in 
31486 \begin_inset Flex Code
31487 status collapsed
31488
31489 \begin_layout Plain Layout
31490
31491 \backslash
31492
31493 \backslash
31494 .
31495 \backslash
31496 pipe
31497 \end_layout
31498
31499 \end_inset
31500
31501 ) and have the names 
31502 \begin_inset Quotes eld
31503 \end_inset
31504
31505
31506 \begin_inset Flex Code
31507 status collapsed
31508
31509 \begin_layout Plain Layout
31510 lyxpipe.in
31511 \end_layout
31512
31513 \end_inset
31514
31515
31516 \begin_inset Quotes erd
31517 \end_inset
31518
31519  and 
31520 \begin_inset Quotes eld
31521 \end_inset
31522
31523
31524 \begin_inset Flex Code
31525 status collapsed
31526
31527 \begin_layout Plain Layout
31528 lyxpipe.out
31529 \end_layout
31530
31531 \end_inset
31532
31533
31534 \begin_inset Quotes erd
31535 \end_inset
31536
31537 .
31538  External programs write into 
31539 \begin_inset Flex Code
31540 status collapsed
31541
31542 \begin_layout Plain Layout
31543 lyxpipe.in
31544 \end_layout
31545
31546 \end_inset
31547
31548  and read back data from 
31549 \begin_inset Flex Code
31550 status collapsed
31551
31552 \begin_layout Plain Layout
31553 lyxpipe.out
31554 \end_layout
31555
31556 \end_inset
31557
31558 .
31559  The stem of the pipe names can be defined in the 
31560 \change_deleted -712698321 1674917840
31561
31562 \begin_inset Flex Noun
31563 status collapsed
31564
31565 \begin_layout Plain Layout
31566 Tools\SpecialChar menuseparator
31567 Preferences
31568 \end_layout
31569
31570 \end_inset
31571
31572
31573 \change_inserted -712698321 1674917840
31574
31575 \family sans
31576 Tools\SpecialChar menuseparator
31577 Preferences
31578 \change_unchanged
31579
31580 \family default
31581  dialog,
31582  for example 
31583 \begin_inset Flex Code
31584 status collapsed
31585
31586 \begin_layout Plain Layout
31587 "/home/myhome/lyxpipe"
31588 \end_layout
31589
31590 \end_inset
31591
31592 ,
31593  or 
31594 \begin_inset Flex Code
31595 status collapsed
31596
31597 \begin_layout Plain Layout
31598 "
31599 \backslash
31600
31601 \backslash
31602 .
31603 \backslash
31604 pipe
31605 \backslash
31606 lyxpipe"
31607 \end_layout
31608
31609 \end_inset
31610
31611  on Windows (where any working path instead of lyxpipe can be used,
31612  for example 
31613 \begin_inset Flex Code
31614 status collapsed
31615
31616 \begin_layout Plain Layout
31617 "
31618 \backslash
31619
31620 \backslash
31621 .
31622 \backslash
31623 pipe
31624 \backslash
31625 my
31626 \backslash
31627 lyx
31628 \backslash
31629 pipe"
31630 \end_layout
31631
31632 \end_inset
31633
31634  would also work).
31635  You 
31636 \emph on
31637 must
31638 \emph default
31639  configure this manually in order for the server to start.
31640 \end_layout
31641
31642 \begin_layout Standard
31643 \SpecialChar LyX
31644  will add the '
31645 \begin_inset Flex Code
31646 status collapsed
31647
31648 \begin_layout Plain Layout
31649 .in
31650 \end_layout
31651
31652 \end_inset
31653
31654 ' and '
31655 \begin_inset Flex Code
31656 status collapsed
31657
31658 \begin_layout Plain Layout
31659 .out
31660 \end_layout
31661
31662 \end_inset
31663
31664 ' to create the pipes.
31665  If one of the pipes already exists,
31666  \SpecialChar LyX
31667  will assume that another \SpecialChar LyX
31668  process is already running and will not start the server.
31669  On POSIX (Unix like) systems,
31670  if for some other reason,
31671  an unused 
31672 \begin_inset Quotes eld
31673 \end_inset
31674
31675 stale
31676 \begin_inset Quotes erd
31677 \end_inset
31678
31679  pipe is left in existence when \SpecialChar LyX
31680  closes,
31681  then \SpecialChar LyX
31682  will try to delete it.
31683  If this fails for some reason,
31684  you will need to delete the pipes manually and then restart \SpecialChar LyX
31685 .
31686  On Windows,
31687  pipes are deleted by the OS on program termination or crash,
31688  so 
31689 \begin_inset Quotes eld
31690 \end_inset
31691
31692 stale
31693 \begin_inset Quotes erd
31694 \end_inset
31695
31696  pipes should not be possible.
31697 \end_layout
31698
31699 \begin_layout Standard
31700 To have several \SpecialChar LyX
31701  processes with servers at the same time,
31702  you have to use different configurations,
31703  perhaps by using separate user directories,
31704  each with its own 
31705 \begin_inset Flex Code
31706 status collapsed
31707
31708 \begin_layout Plain Layout
31709 preferences
31710 \end_layout
31711
31712 \end_inset
31713
31714  file,
31715  for each process.
31716 \end_layout
31717
31718 \begin_layout Standard
31719 If you are developing a client program,
31720  you might find it useful to enable debugging information from the \SpecialChar LyX
31721  server.
31722  Do this by starting \SpecialChar LyX
31723  as 
31724 \begin_inset Flex Code
31725 status collapsed
31726
31727 \begin_layout Plain Layout
31728 lyx -dbg lyxserver
31729 \end_layout
31730
31731 \end_inset
31732
31733 .
31734 \end_layout
31735
31736 \begin_layout Standard
31737 You can find a complete example client written in C++ in the source distribution as 
31738 \begin_inset Flex Code
31739 status collapsed
31740
31741 \begin_layout Plain Layout
31742 development/lyxserver/server_monitor.cpp
31743 \end_layout
31744
31745 \end_inset
31746
31747 .
31748 \end_layout
31749
31750 \begin_layout Standard
31751 Another useful tool is the command-line based client found in 
31752 \begin_inset Flex Code
31753 status collapsed
31754
31755 \begin_layout Plain Layout
31756 src/client/lyxclient
31757 \end_layout
31758
31759 \end_inset
31760
31761 .
31762 \end_layout
31763
31764 \begin_layout Section
31765 Normal communication
31766 \end_layout
31767
31768 \begin_layout Standard
31769 To issue a \SpecialChar LyX
31770  call,
31771  the client writes a line of ASCII text into the input pipe.
31772  This line has the following format:
31773 \end_layout
31774
31775 \begin_layout Quote
31776 LYXCMD:
31777 \emph on
31778 clientname
31779 \emph default
31780 :
31781 \emph on
31782 function
31783 \emph default
31784 :
31785 \emph on
31786 argument
31787 \end_layout
31788
31789 \begin_layout Description
31790 clientname is a name that the client can choose arbitrarily.
31791  Its only use is that \SpecialChar LyX
31792  will echo it if it sends an answer—
31793 so a client can dispatch results from different requesters.
31794 \end_layout
31795
31796 \begin_layout Description
31797 function is the function you want \SpecialChar LyX
31798  to perform.
31799  It is the same as the commands you'd use in the minibuffer.
31800 \end_layout
31801
31802 \begin_layout Description
31803 argument is an optional argument which is meaningful only to some functions (for instance,
31804  the 
31805 \begin_inset Quotes eld
31806 \end_inset
31807
31808 self-insert
31809 \begin_inset Quotes erd
31810 \end_inset
31811
31812  LFUN will insert the argument as text at the cursor position).
31813 \end_layout
31814
31815 \begin_layout Standard
31816 The answer from \SpecialChar LyX
31817  will arrive in the output pipe and be of the form
31818 \end_layout
31819
31820 \begin_layout Quote
31821 INFO:
31822 \emph on
31823 clientname
31824 \emph default
31825 :
31826 \emph on
31827 function
31828 \emph default
31829 :
31830 \emph on
31831 data
31832 \end_layout
31833
31834 \begin_layout Standard
31835 where 
31836 \emph on
31837 clientname
31838 \emph default
31839  and 
31840 \emph on
31841 function
31842 \emph default
31843  are just echoed from the command request,
31844  while 
31845 \emph on
31846 data
31847 \emph default
31848  is more or less useful information filled according to how the command execution worked out.
31849  Some commands,
31850  such as 
31851 \begin_inset Quotes eld
31852 \end_inset
31853
31854 font-state
31855 \begin_inset Quotes erd
31856 \end_inset
31857
31858 ,
31859  will return information about the internal state of \SpecialChar LyX
31860 ,
31861  while other will return an empty data-response.
31862  This means that the command execution went fine.
31863 \end_layout
31864
31865 \begin_layout Standard
31866 In case of errors,
31867  the response from \SpecialChar LyX
31868  will have this form
31869 \end_layout
31870
31871 \begin_layout Quote
31872 ERROR:
31873 \emph on
31874 clientname
31875 \emph default
31876 :
31877 \emph on
31878 function
31879 \emph default
31880 :
31881 \emph on
31882 error message
31883 \end_layout
31884
31885 \begin_layout Standard
31886 where the 
31887 \emph on
31888 error message
31889 \emph default
31890  should contain an explanation of why the command failed.
31891 \end_layout
31892
31893 \begin_layout Standard
31894 Examples:
31895 \end_layout
31896
31897 \begin_layout LyX-Code
31898 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
31899 \begin_inset Newline newline
31900 \end_inset
31901
31902 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
31903 \begin_inset Newline newline
31904 \end_inset
31905
31906 read a <~/.lyxpipe.out
31907 \begin_inset Newline newline
31908 \end_inset
31909
31910 echo $a
31911 \end_layout
31912
31913 \begin_layout Subsection
31914 AppleScript (Mac OS X)
31915 \end_layout
31916
31917 \begin_layout Standard
31918 Since \SpecialChar LyX
31919  2.1,
31920  \SpecialChar LyX
31921  supports basic interactions with AppleScript for normal communication through the command run.
31922  This command takes a direct argument (the 
31923 \series bold
31924 function
31925 \series default
31926  to perform) and an optional argument.
31927  It either returns the output of the function or triggers an error with the error message and code.
31928 \end_layout
31929
31930 \begin_layout Standard
31931 Example:
31932 \end_layout
31933
31934 \begin_layout LyX-Code
31935 tell application "\SpecialChar LyX
31936 "
31937 \end_layout
31938
31939 \begin_layout LyX-Code
31940   try
31941 \end_layout
31942
31943 \begin_layout LyX-Code
31944     -- Stores the current file name into f
31945 \end_layout
31946
31947 \begin_layout LyX-Code
31948     set f to (run "server-get-filename" with argument "")
31949 \end_layout
31950
31951 \begin_layout LyX-Code
31952     on error the error_message number the error_number
31953 \end_layout
31954
31955 \begin_layout LyX-Code
31956       display dialog "Error:
31957  " & the error_number & ".
31958  " ¬
31959 \end_layout
31960
31961 \begin_layout LyX-Code
31962               & the error_message buttons {"OK"} default button 1
31963 \end_layout
31964
31965 \begin_layout LyX-Code
31966   end try
31967 \end_layout
31968
31969 \begin_layout LyX-Code
31970 end tell
31971 \end_layout
31972
31973 \begin_layout Section
31974 Notification
31975 \end_layout
31976
31977 \begin_layout Standard
31978 \SpecialChar LyX
31979  can notify clients of events going on asynchronously.
31980  Currently it will only do this if the user binds a key sequence with the function 
31981 \begin_inset Quotes eld
31982 \end_inset
31983
31984 notify
31985 \begin_inset Quotes erd
31986 \end_inset
31987
31988 .
31989  The format of the string \SpecialChar LyX
31990  sends is as follows:
31991 \end_layout
31992
31993 \begin_layout Quote
31994 \begin_inset Flex Code
31995 status collapsed
31996
31997 \begin_layout Plain Layout
31998 NOTIFY:
31999 \end_layout
32000
32001 \end_inset
32002
32003
32004 \emph on
32005 key-sequence
32006 \end_layout
32007
32008 \begin_layout Standard
32009 where 
32010 \emph on
32011 key-sequence
32012 \emph default
32013  is the printed representation of the key sequence that was actually typed by the user.
32014 \end_layout
32015
32016 \begin_layout Standard
32017 This mechanism can be used to extend \SpecialChar LyX
32018 's command set and implement macros.
32019  Bind some key sequence to 
32020 \begin_inset Quotes eld
32021 \end_inset
32022
32023 notify
32024 \begin_inset Quotes erd
32025 \end_inset
32026
32027 .
32028  Then start a client that listens on the output pipe,
32029  dispatches the command according to the sequence,
32030  and starts a function that may use \SpecialChar LyX
32031  calls and \SpecialChar LyX
32032  requests to issue a command or a series of commands to \SpecialChar LyX
32033 .
32034 \end_layout
32035
32036 \begin_layout Section
32037 The simple \SpecialChar LyX
32038  Server Protocol
32039 \end_layout
32040
32041 \begin_layout Standard
32042 \SpecialChar LyX
32043  implements a simple protocol that can be used for session management.
32044  All messages are of the form
32045 \end_layout
32046
32047 \begin_layout Quote
32048 LYXSRV:
32049 \emph on
32050 clientname
32051 \emph default
32052 :
32053 \emph on
32054 protocol message
32055 \end_layout
32056
32057 \begin_layout Standard
32058 where 
32059 \emph on
32060 protocol message
32061 \emph default
32062  can be 
32063 \begin_inset Quotes eld
32064 \end_inset
32065
32066 hello
32067 \begin_inset Quotes erd
32068 \end_inset
32069
32070  or 
32071 \begin_inset Quotes eld
32072 \end_inset
32073
32074 bye
32075 \begin_inset Quotes erd
32076 \end_inset
32077
32078 .
32079  If 
32080 \begin_inset Quotes eld
32081 \end_inset
32082
32083 hello
32084 \begin_inset Quotes erd
32085 \end_inset
32086
32087  is received from a client,
32088  \SpecialChar LyX
32089  will report back to inform the client that it's listening to it's messages,
32090  while 
32091 \begin_inset Quotes eld
32092 \end_inset
32093
32094 bye
32095 \begin_inset Quotes erd
32096 \end_inset
32097
32098  sent from \SpecialChar LyX
32099  will inform clients that \SpecialChar LyX
32100  is closing.
32101 \end_layout
32102
32103 \begin_layout Section
32104 Reverse DVI/PDF search
32105 \end_layout
32106
32107 \begin_layout Standard
32108 Some DVI/PDF viewers
32109 \begin_inset Foot
32110 status collapsed
32111
32112 \begin_layout Plain Layout
32113 The following viewers offer the reverse PDF search feature:
32114  Okular on KDE/Linux,
32115  Qpdfview on Unix,
32116  Skim on Mac OSX and SumatraPDF on Windows.
32117 \end_layout
32118
32119 \end_inset
32120
32121  provide 
32122 \emph on
32123 reverse search
32124 \emph default
32125  facility (also called 
32126 \emph on
32127 inverse search
32128 \emph default
32129 ).
32130  This means that you can tell \SpecialChar LyX
32131  to put the cursor to a specific line in the document by clicking at the respective position in the DVI/PDF output.
32132  To achieve this,
32133  the viewer must be able to communicate with \SpecialChar LyX
32134 .
32135  This is done via the \SpecialChar LyX
32136  server either by using the named pipe (
32137 \emph on
32138 lyxpipe
32139 \emph default
32140 ),
32141  or the UNIX domain socket (
32142 \emph on
32143 lyxsocket
32144 \emph default
32145 ) that \SpecialChar LyX
32146  creates in its temporary directory (this is the way the 
32147 \begin_inset Flex Code
32148 status collapsed
32149
32150 \begin_layout Plain Layout
32151 lyxclient
32152 \end_layout
32153
32154 \end_inset
32155
32156  program communicates with \SpecialChar LyX
32157 ).
32158  In some cases,
32159  you need a helper script that mediates between the viewer and \SpecialChar LyX
32160 ,
32161  in others,
32162  the viewer can communicate with \SpecialChar LyX
32163  directly.
32164  This depends on the selected viewer and on your operating system.
32165  The same applies to the way viewers need to be configured and the way the reverse search is actually performed.
32166  In what follows,
32167  we will thus describe how to setup reverse search for specific viewers.
32168  Before we turn to this,
32169  though,
32170  we will explain what needs to be done generally to enable reverse search in the DVI/PDF output.
32171 \end_layout
32172
32173 \begin_layout Subsection
32174 Automatic setup
32175 \begin_inset CommandInset label
32176 LatexCommand label
32177 name "subsec:rev-search"
32178
32179 \end_inset
32180
32181
32182 \end_layout
32183
32184 \begin_layout Standard
32185 In most cases \SpecialChar LyX
32186  will do the work for you by pressing the following button in the toolbar:
32187  
32188 \begin_inset Info
32189 type  "icon"
32190 arg   "buffer-toggle-output-sync"
32191 \end_inset
32192
32193 .
32194  Alternatively,
32195  you can also enable the feature by checking 
32196 \family sans
32197 Synchronize with Output
32198 \family default
32199  in 
32200 \change_deleted -712698321 1674917848
32201
32202 \begin_inset Flex Noun
32203 status collapsed
32204
32205 \begin_layout Plain Layout
32206 Document\SpecialChar menuseparator
32207 Settings\SpecialChar menuseparator
32208 Formats
32209 \end_layout
32210
32211 \end_inset
32212
32213
32214 \change_inserted -712698321 1674917848
32215
32216 \family sans
32217 Document\SpecialChar menuseparator
32218 Settings\SpecialChar menuseparator
32219 Formats
32220 \change_unchanged
32221
32222 \family default
32223 .
32224  In such a case \SpecialChar LyX
32225  will automatically insert the necessary Sync\SpecialChar TeX
32226  macro (for PDF) or load the srcltx package (for DVI) respectively.
32227  This option can be easily reached also on 
32228 \begin_inset Flex Code
32229 status collapsed
32230
32231 \begin_layout Plain Layout
32232 View/Update
32233 \end_layout
32234
32235 \end_inset
32236
32237  Toolbar.
32238 \end_layout
32239
32240 \begin_layout Standard
32241 If you need a different setting,
32242  you can select or input a custom macro from the drop down box just below 
32243 \change_deleted -712698321 1674917855
32244
32245 \begin_inset Flex Noun
32246 status collapsed
32247
32248 \begin_layout Plain Layout
32249 Document\SpecialChar menuseparator
32250 Settings\SpecialChar menuseparator
32251 Output\SpecialChar menuseparator
32252 Synchronize with Output
32253 \end_layout
32254
32255 \end_inset
32256
32257
32258 \change_inserted -712698321 1674917855
32259
32260 \family sans
32261 Document\SpecialChar menuseparator
32262 Settings\SpecialChar menuseparator
32263 Output\SpecialChar menuseparator
32264 Synchronize with Output
32265 \change_unchanged
32266
32267 \family default
32268 .
32269 \end_layout
32270
32271 \begin_layout Standard
32272 Note that the method 
32273 \begin_inset Flex Code
32274 status collapsed
32275
32276 \begin_layout Plain Layout
32277
32278 \backslash
32279 synctex=1
32280 \end_layout
32281
32282 \end_inset
32283
32284  enables gzip compression.
32285  If your viewer does not support it,
32286  you should instead use 
32287 \begin_inset Flex Code
32288 status collapsed
32289
32290 \begin_layout Plain Layout
32291
32292 \backslash
32293 synctex=-1
32294 \end_layout
32295
32296 \end_inset
32297
32298 .
32299 \end_layout
32300
32301 \begin_layout Standard
32302 Please also note that including the 
32303 \begin_inset Flex Code
32304 status collapsed
32305
32306 \begin_layout Plain Layout
32307 srcltx
32308 \end_layout
32309
32310 \end_inset
32311
32312  package or 
32313 \begin_inset Flex Code
32314 status collapsed
32315
32316 \begin_layout Plain Layout
32317 src-specials
32318 \end_layout
32319
32320 \end_inset
32321
32322  sometimes has an undesired impact on the typesetting.
32323  Thus,
32324  you should switch output synchronization off for the final typesetting if you use the 
32325 \begin_inset Flex Code
32326 status collapsed
32327
32328 \begin_layout Plain Layout
32329 srcltx
32330 \end_layout
32331
32332 \end_inset
32333
32334  package or 
32335 \begin_inset Flex Code
32336 status collapsed
32337
32338 \begin_layout Plain Layout
32339 src-specials
32340 \end_layout
32341
32342 \end_inset
32343
32344 .
32345  
32346 \end_layout
32347
32348 \begin_layout Standard
32349 In case you need some more special settings that are not covered by the automatic settings,
32350  read the next section about how to set up output synchronization manually.
32351  If the automatic setup suits your needs,
32352  you can readily jump to section
32353 \begin_inset space ~
32354 \end_inset
32355
32356
32357 \begin_inset CommandInset ref
32358 LatexCommand ref
32359 reference "subsec:configuring-viewers"
32360 nolink "false"
32361
32362 \end_inset
32363
32364 ,
32365  where the necessary configuration steps in your viewer – needed both with the automatic and the manual setup – are described.
32366 \end_layout
32367
32368 \begin_layout Subsection
32369 Manual setup
32370 \end_layout
32371
32372 \begin_layout Standard
32373 \SpecialChar LaTeX
32374  provides several different methods for reverse search.
32375  Some are built-in in the 
32376 \begin_inset Flex Code
32377 status collapsed
32378
32379 \begin_layout Plain Layout
32380 latex/pdflatex
32381 \end_layout
32382
32383 \end_inset
32384
32385  program,
32386  some are provided by external packages.
32387  Your choice depends on whether your \SpecialChar LaTeX
32388  distribution already provides a given method (the built-in methods are rather new) and whether your viewer can cope with it.
32389  The available methods are described in the following.
32390 \end_layout
32391
32392 \begin_layout Subsubsection*
32393 Built-in DVI-search via src-specials (DVI only) 
32394 \end_layout
32395
32396 \begin_layout Standard
32397 This method provides the DVI file with the necessary information for reverse search.
32398  It is available in \SpecialChar LaTeX
32399  since quite some time (any somewhat recent \SpecialChar LaTeX
32400  distribution should include it),
32401  and it works reliably.
32402  To enable it,
32403  change the 
32404 \begin_inset Flex Noun
32405 status collapsed
32406
32407 \begin_layout Plain Layout
32408 La
32409 \family sans
32410 TeX
32411 \family default
32412  (plain)->DVI
32413 \end_layout
32414
32415 \end_inset
32416
32417  or 
32418 \begin_inset Flex Noun
32419 status collapsed
32420
32421 \begin_layout Plain Layout
32422 La
32423 \family sans
32424 TeX
32425 \family default
32426  (plain)->DraftDVI
32427 \end_layout
32428
32429 \end_inset
32430
32431  converter in 
32432 \change_deleted -712698321 1674917875
32433
32434 \begin_inset Flex Noun
32435 status collapsed
32436
32437 \begin_layout Plain Layout
32438 Preferences\SpecialChar menuseparator
32439 File Handling\SpecialChar menuseparator
32440 Converters
32441 \end_layout
32442
32443 \end_inset
32444
32445
32446 \change_inserted -712698321 1674917875
32447
32448 \family sans
32449 Preferences\SpecialChar menuseparator
32450 File Handling\SpecialChar menuseparator
32451 Converters
32452 \change_unchanged
32453
32454 \family default
32455  to 
32456 \begin_inset Flex Code
32457 status collapsed
32458
32459 \begin_layout Plain Layout
32460 latex -src-specials $$i
32461 \end_layout
32462
32463 \end_inset
32464
32465 .
32466  If this doesn't work,
32467  check if your \SpecialChar TeX
32468  engine needs different options (the syntax might differ in some distributions).
32469 \end_layout
32470
32471 \begin_layout Subsubsection*
32472 External Packages (PDFSync and scrltx) 
32473 \end_layout
32474
32475 \begin_layout Standard
32476 The packages 
32477 \emph on
32478 pdfsync
32479 \emph default
32480  and 
32481 \emph on
32482 scrltx
32483 \emph default
32484  provide reverse search facility for PDF output (via pdflatex) and DVI output,
32485  respectively.
32486  In order to enable it,
32487  load the packages in the \SpecialChar LyX
32488  preamble:
32489  
32490 \end_layout
32491
32492 \begin_layout Itemize
32493 \begin_inset Flex Code
32494 status collapsed
32495
32496 \begin_layout Plain Layout
32497
32498 \backslash
32499 usepackage{pdfsync}
32500 \end_layout
32501
32502 \end_inset
32503
32504  for reverse PDF search,
32505 \end_layout
32506
32507 \begin_layout Itemize
32508 \begin_inset Flex Code
32509 status collapsed
32510
32511 \begin_layout Plain Layout
32512
32513 \backslash
32514 usepackage[active]{srcltx}
32515 \end_layout
32516
32517 \end_inset
32518
32519  for reverse DVI search.
32520 \end_layout
32521
32522 \begin_layout Standard
32523 If you want to be able to perform both DVI and PDF reverse searches,
32524  you can also insert in the preamble the following lines
32525 \end_layout
32526
32527 \begin_layout LyX-Code
32528
32529 \backslash
32530 usepackage{ifpdf}
32531 \begin_inset Newline newline
32532 \end_inset
32533
32534
32535 \backslash
32536 ifpdf
32537 \begin_inset Newline newline
32538 \end_inset
32539
32540   
32541 \backslash
32542 usepackage{pdfsync}
32543 \begin_inset Newline newline
32544 \end_inset
32545
32546
32547 \backslash
32548 else
32549 \begin_inset Newline newline
32550 \end_inset
32551
32552   
32553 \backslash
32554 usepackage[active]{srcltx}
32555 \begin_inset Newline newline
32556 \end_inset
32557
32558
32559 \backslash
32560 fi
32561 \end_layout
32562
32563 \begin_layout Standard
32564 This way,
32565  you can preview the file as either DVI or PDF (pdflatex) and the right package will be used.
32566 \end_layout
32567
32568 \begin_layout Standard
32569 Note that PDFSync might affect the output layout of your document.
32570  It is therefore advised to disable PDFsync for final documents.
32571 \end_layout
32572
32573 \begin_layout Subsubsection*
32574 Built-in reverse search via Sync\SpecialChar TeX
32575  (DVI and PDF) 
32576 \end_layout
32577
32578 \begin_layout Standard
32579 Recent versions of 
32580 \begin_inset Flex Code
32581 status collapsed
32582
32583 \begin_layout Plain Layout
32584 (pdf)latex
32585 \end_layout
32586
32587 \end_inset
32588
32589  have built-in support for both PDF and DVI reverse search.
32590  This so-called 
32591 \emph on
32592 Sync\SpecialChar TeX
32593
32594 \emph default
32595  facility is basically the result of the integration of the PDFSync package to the pdftex program and its merge with the 
32596 \emph on
32597 scr-specials
32598 \emph default
32599  approach.
32600  You need at least \SpecialChar TeX
32601 Live 2008 or a recent Mik\SpecialChar TeX
32602  distribution in order to use it.
32603 \begin_inset Foot
32604 status collapsed
32605
32606 \begin_layout Plain Layout
32607 For some reason,
32608  Mik\SpecialChar TeX
32609  does not understand/obey the command \SpecialChar LyX
32610  inserts into the preamble when you check the "Enable Forward/Reverse Search" button in the toolbar and does not generate the necessary info.
32611 \end_layout
32612
32613 \begin_layout Plain Layout
32614 The generation of the required info can be forced by changing the converter "\SpecialChar LaTeX
32615  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e.,
32616  by adding the -synctex=1 switch).
32617 \end_layout
32618
32619 \end_inset
32620
32621  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
32622  Skim on the Mac,
32623  SumatraPDF on Windows;
32624  see the next section for details) already provide Sync\SpecialChar TeX
32625  support.
32626 \end_layout
32627
32628 \begin_layout Standard
32629 To enable Sync\SpecialChar TeX
32630  for DVI output,
32631  change the 
32632 \begin_inset Flex Noun
32633 status collapsed
32634
32635 \begin_layout Plain Layout
32636 La
32637 \family sans
32638 TeX
32639 \family default
32640  (plain) -> DVI
32641 \end_layout
32642
32643 \end_inset
32644
32645  or 
32646 \begin_inset Flex Noun
32647 status collapsed
32648
32649 \begin_layout Plain Layout
32650 La
32651 \family sans
32652 TeX
32653 \family default
32654  (plain) -> DraftDVI
32655 \end_layout
32656
32657 \end_inset
32658
32659  converter in 
32660 \change_deleted -712698321 1674917887
32661
32662 \begin_inset Flex Noun
32663 status collapsed
32664
32665 \begin_layout Plain Layout
32666 Preferences\SpecialChar menuseparator
32667 File Handling\SpecialChar menuseparator
32668 Converters
32669 \end_layout
32670
32671 \end_inset
32672
32673
32674 \change_inserted -712698321 1674917887
32675
32676 \family sans
32677 Preferences\SpecialChar menuseparator
32678 File Handling\SpecialChar menuseparator
32679 Converters
32680 \change_unchanged
32681  
32682 \family default
32683 to 
32684 \begin_inset Flex Code
32685 status collapsed
32686
32687 \begin_layout Plain Layout
32688 latex -synctex=1 $$i
32689 \end_layout
32690
32691 \end_inset
32692
32693 ,
32694  and for PDF output,
32695  change the 
32696 \begin_inset Flex Noun
32697 status collapsed
32698
32699 \begin_layout Plain Layout
32700 La
32701 \family sans
32702 TeX
32703 \family default
32704  (pdflatex) -> PDF (pdflatex)
32705 \end_layout
32706
32707 \end_inset
32708
32709  converter to 
32710 \begin_inset Flex Code
32711 status collapsed
32712
32713 \begin_layout Plain Layout
32714 pdflatex -synctex=1 $$i
32715 \end_layout
32716
32717 \end_inset
32718
32719 .
32720  Should your viewer not be considered in the following description,
32721  or in case of missing success,
32722  please check the documentation of your viewer whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
32723 .
32724 \begin_inset Foot
32725 status collapsed
32726
32727 \begin_layout Plain Layout
32728 Note that the option 
32729 \begin_inset Flex Code
32730 status collapsed
32731
32732 \begin_layout Plain Layout
32733 -synctex=1
32734 \end_layout
32735
32736 \end_inset
32737
32738  option enables gzip compression.
32739  If your viewer does not support it,
32740  you should instead use 
32741 \begin_inset Flex Code
32742 status collapsed
32743
32744 \begin_layout Plain Layout
32745 -synctex=-1
32746 \end_layout
32747
32748 \end_inset
32749
32750 .
32751 \end_layout
32752
32753 \end_inset
32754
32755
32756 \end_layout
32757
32758 \begin_layout Subsection
32759 Configuring and using specific viewers
32760 \begin_inset CommandInset label
32761 LatexCommand label
32762 name "subsec:configuring-viewers"
32763
32764 \end_inset
32765
32766
32767 \end_layout
32768
32769 \begin_layout Subsubsection*
32770 Xdvi (all platforms)
32771 \end_layout
32772
32773 \begin_layout Standard
32774 If you use 
32775 \begin_inset Flex Code
32776 status collapsed
32777
32778 \begin_layout Plain Layout
32779 xdvi
32780 \end_layout
32781
32782 \end_inset
32783
32784 ,
32785  you don't need to do anything else for performing a reverse DVI search,
32786  as \SpecialChar LyX
32787  already provides the necessary hooks for automatically using the 
32788 \begin_inset Flex Code
32789 status collapsed
32790
32791 \begin_layout Plain Layout
32792 lyxclient
32793 \end_layout
32794
32795 \end_inset
32796
32797  program.
32798  Just setup your document as described above (reverse search is triggered by Ctrl-click or Alt-click on Mac OSX,
32799  respectively).
32800 \end_layout
32801
32802 \begin_layout Standard
32803 However,
32804  if for whatever reason you want to use the named pipe instead of the socket for communicating with \SpecialChar LyX
32805 ,
32806  simply change the DVI viewer in 
32807 \change_deleted -712698321 1674917897
32808
32809 \begin_inset Flex Noun
32810 status collapsed
32811
32812 \begin_layout Plain Layout
32813 Preferences\SpecialChar menuseparator
32814 File Handling\SpecialChar menuseparator
32815 File formats
32816 \end_layout
32817
32818 \end_inset
32819
32820
32821 \change_inserted -712698321 1674917897
32822
32823 \family sans
32824 Preferences\SpecialChar menuseparator
32825 File Handling\SpecialChar menuseparator
32826 File formats
32827 \change_unchanged
32828
32829 \family default
32830  to
32831 \begin_inset Foot
32832 status collapsed
32833
32834 \begin_layout Plain Layout
32835 On Mac OSX you have to use 
32836 \begin_inset Flex Code
32837 status collapsed
32838
32839 \begin_layout Plain Layout
32840 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
32841 \end_layout
32842
32843 \end_inset
32844
32845
32846 \end_layout
32847
32848 \end_inset
32849
32850  
32851 \begin_inset Flex Code
32852 status collapsed
32853
32854 \begin_layout Plain Layout
32855 xdvi -editor "lyxeditor.sh %f %l"
32856 \end_layout
32857
32858 \end_inset
32859
32860 ,
32861  where 
32862 \begin_inset Flex Code
32863 status collapsed
32864
32865 \begin_layout Plain Layout
32866 lyxeditor.sh
32867 \end_layout
32868
32869 \end_inset
32870
32871  is a suitable script.
32872  For example,
32873  a minimal shell script is the following one:
32874 \end_layout
32875
32876 \begin_layout LyX-Code
32877 #!/bin/sh
32878 \begin_inset Newline newline
32879 \end_inset
32880
32881 LYXPIPE="/path/to/lyxpipe"
32882 \begin_inset Newline newline
32883 \end_inset
32884
32885 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
32886 \begin_inset Newline newline
32887 \end_inset
32888
32889 echo "$COMMAND" > "${LYXPIPE}".in || exit
32890 \begin_inset Newline newline
32891 \end_inset
32892
32893 read TMP < "${LYXPIPE}".out || exit
32894 \end_layout
32895
32896 \begin_layout Standard
32897 where 
32898 \begin_inset Flex Code
32899 status collapsed
32900
32901 \begin_layout Plain Layout
32902 /path/to/lyxpipe
32903 \end_layout
32904
32905 \end_inset
32906
32907  is the LyXServer pipe path specified in 
32908 \change_deleted -712698321 1674917907
32909
32910 \begin_inset Flex Noun
32911 status collapsed
32912
32913 \begin_layout Plain Layout
32914 Preferences\SpecialChar menuseparator
32915 Paths
32916 \end_layout
32917
32918 \end_inset
32919
32920
32921 \change_inserted -712698321 1674917907
32922
32923 \family sans
32924 Preferences\SpecialChar menuseparator
32925 Paths
32926 \change_unchanged
32927
32928 \family default
32929 .
32930 \begin_inset Foot
32931 status collapsed
32932
32933 \begin_layout Plain Layout
32934 In the 
32935 \begin_inset Flex Code
32936 status collapsed
32937
32938 \begin_layout Plain Layout
32939 development/tools
32940 \end_layout
32941
32942 \end_inset
32943
32944  folder of a source distribution you can find a 
32945 \begin_inset Flex Code
32946 status collapsed
32947
32948 \begin_layout Plain Layout
32949 lyxeditor
32950 \end_layout
32951
32952 \end_inset
32953
32954  script which is able to locate the 
32955 \emph on
32956 lyxpipe
32957 \emph default
32958  based on your preferences.
32959 \end_layout
32960
32961 \end_inset
32962
32963
32964 \end_layout
32965
32966 \begin_layout Subsubsection*
32967 MacDviX (Mac OSX)
32968 \end_layout
32969
32970 \begin_layout Standard
32971 At the end of 
32972 \begin_inset Flex Code
32973 status collapsed
32974
32975 \begin_layout Plain Layout
32976 /Applications/MacDviX_Folder/calleditor.script
32977 \end_layout
32978
32979 \end_inset
32980
32981 ,
32982  add the following lines:
32983 \end_layout
32984
32985 \begin_layout LyX-Code
32986 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
32987 \begin_inset Newline newline
32988 \end_inset
32989
32990 exit 1
32991 \end_layout
32992
32993 \begin_layout Standard
32994 Modify the lines accordingly if you install \SpecialChar LyX
32995  somewhere else than in the Applications folder.
32996 \end_layout
32997
32998 \begin_layout Standard
32999 Reverse search is triggered by Alt-click (OPTION-click).
33000 \end_layout
33001
33002 \begin_layout Subsubsection*
33003 Skim (Mac OSX)
33004 \end_layout
33005
33006 \begin_layout Standard
33007 Enter 
33008 \begin_inset Flex Code
33009 status collapsed
33010
33011 \begin_layout Plain Layout
33012 open -a Skim.app $$i
33013 \end_layout
33014
33015 \end_inset
33016
33017  to the viewer setting in 
33018 \change_deleted -712698321 1674917916
33019
33020 \begin_inset Flex Noun
33021 status collapsed
33022
33023 \begin_layout Plain Layout
33024 Preferences\SpecialChar menuseparator
33025 File Handling\SpecialChar menuseparator
33026 File formats\SpecialChar menuseparator
33027 PDF (pdflatex)
33028 \end_layout
33029
33030 \end_inset
33031
33032
33033 \change_inserted -712698321 1674917916
33034
33035 \family sans
33036 Preferences\SpecialChar menuseparator
33037 File Handling\SpecialChar menuseparator
33038 File formats\SpecialChar menuseparator
33039 PDF (pdflatex)
33040 \change_unchanged
33041
33042 \family default
33043 ,
33044  and then in 
33045 \change_deleted -712698321 1674917924
33046
33047 \begin_inset Flex Noun
33048 status collapsed
33049
33050 \begin_layout Plain Layout
33051 Skim\SpecialChar menuseparator
33052 Preferences\SpecialChar menuseparator
33053 Sync
33054 \end_layout
33055
33056 \end_inset
33057
33058
33059 \change_inserted -712698321 1674917924
33060
33061 \family sans
33062 Skim\SpecialChar menuseparator
33063 Preferences\SpecialChar menuseparator
33064 Sync
33065 \change_unchanged
33066
33067 \family default
33068  choose 
33069 \change_deleted -712698321 1674917931
33070
33071 \begin_inset Flex Noun
33072 status collapsed
33073
33074 \begin_layout Plain Layout
33075 custom
33076 \end_layout
33077
33078 \end_inset
33079
33080
33081 \change_inserted -712698321 1674917931
33082
33083 \family sans
33084 custom
33085 \change_unchanged
33086
33087 \family default
33088  preset and enter command 
33089 \begin_inset Flex Noun
33090 status collapsed
33091
33092 \begin_layout Plain Layout
33093 /Applications/\SpecialChar LyX
33094 .app/Contents/MacOS/lyxeditor
33095 \end_layout
33096
33097 \end_inset
33098
33099 .
33100 \end_layout
33101
33102 \begin_layout Standard
33103 Reverse search is triggered by COMMAND-SHIFT-click
33104 \end_layout
33105
33106 \begin_layout Subsubsection*
33107 Evince (GNOME)
33108 \end_layout
33109
33110 \begin_layout Standard
33111 Reverse search with evince does not work out of the box,
33112  but it can be achieved by means of some third party helper scripts.
33113  Please refer to 
33114 \begin_inset CommandInset href
33115 LatexCommand href
33116 target "https://wiki.lyx.org/LyX/SyncTeX"
33117 literal "false"
33118
33119 \end_inset
33120
33121  for details.
33122 \end_layout
33123
33124 \begin_layout Subsubsection*
33125 Okular (KDE)
33126 \end_layout
33127
33128 \begin_layout Standard
33129 Go to 
33130 \change_deleted -712698321 1674917941
33131
33132 \begin_inset Flex Noun
33133 status collapsed
33134
33135 \begin_layout Plain Layout
33136 Settings\SpecialChar menuseparator
33137 Configure Okular\SpecialChar menuseparator
33138 Editor
33139 \end_layout
33140
33141 \end_inset
33142
33143
33144 \change_inserted -712698321 1674917941
33145
33146 \family sans
33147 Settings\SpecialChar menuseparator
33148 Configure Okular\SpecialChar menuseparator
33149 Editor
33150 \change_unchanged
33151
33152 \family default
33153  and select LyX
33154 \begin_inset Quotes erd
33155 \end_inset
33156
33157  as editor.
33158  This inserts the appropriate command (
33159 \begin_inset Flex Code
33160 status collapsed
33161
33162 \begin_layout Plain Layout
33163 lyxclient -g %f %l
33164 \end_layout
33165
33166 \end_inset
33167
33168 ).
33169 \end_layout
33170
33171 \begin_layout Standard
33172 Reverse search is triggered by SHIFT-click.
33173
33174 \change_inserted -712698321 1578211026
33175  Note that this only works if Okular is in 
33176 \begin_inset Quotes eld
33177 \end_inset
33178
33179 Browse
33180 \begin_inset Quotes erd
33181 \end_inset
33182
33183  mode (i.
33184 \begin_inset space \thinspace{}
33185 \end_inset
33186
33187 e.,
33188  the hand symbol is clicked).
33189 \change_unchanged
33190
33191 \end_layout
33192
33193 \begin_layout Subsubsection*
33194 Qpdfview (Unix)
33195 \end_layout
33196
33197 \begin_layout Standard
33198 Qpdfview supports Sync\SpecialChar TeX
33199  since version 0.3.5.
33200  Go to 
33201 \change_deleted -712698321 1674917949
33202
33203 \begin_inset Flex Noun
33204 status collapsed
33205
33206 \begin_layout Plain Layout
33207 Edit\SpecialChar menuseparator
33208 Settings\SpecialChar menuseparator
33209 Behavior
33210 \end_layout
33211
33212 \end_inset
33213
33214
33215 \change_inserted -712698321 1674917949
33216
33217 \family sans
33218 Edit\SpecialChar menuseparator
33219 Settings\SpecialChar menuseparator
33220 Behavior
33221 \change_unchanged
33222
33223 \family default
33224 ,
33225  click on the input field of the 
33226 \begin_inset Quotes eld
33227 \end_inset
33228
33229 Source editor
33230 \begin_inset Quotes erd
33231 \end_inset
33232
33233  item and add the command 
33234 \begin_inset Flex Code
33235 status collapsed
33236
33237 \begin_layout Plain Layout
33238 lyxclient -g %1 %2
33239 \end_layout
33240
33241 \end_inset
33242
33243 .
33244 \end_layout
33245
33246 \begin_layout Standard
33247 Reverse search is triggered by double-click or,
33248  in more recent versions,
33249  by context menu.
33250 \end_layout
33251
33252 \begin_layout Subsubsection*
33253 YAP (Windows)
33254 \end_layout
33255
33256 \begin_layout Standard
33257 Launch yap,
33258  choose its 
33259 \change_deleted -712698321 1674917958
33260
33261 \begin_inset Flex Noun
33262 status collapsed
33263
33264 \begin_layout Plain Layout
33265 View\SpecialChar menuseparator
33266 Options
33267 \end_layout
33268
33269 \end_inset
33270
33271
33272 \change_inserted -712698321 1674917958
33273
33274 \family sans
33275 View\SpecialChar menuseparator
33276 Options
33277 \change_unchanged
33278
33279 \family default
33280  menu and select the 
33281 \begin_inset Quotes eld
33282 \end_inset
33283
33284 Inverse DVI Search
33285 \begin_inset Quotes erd
33286 \end_inset
33287
33288  tab.
33289  Click on the 
33290 \begin_inset Quotes eld
33291 \end_inset
33292
33293 New\SpecialChar ldots
33294
33295 \begin_inset Quotes erd
33296 \end_inset
33297
33298  button and,
33299  in the window that opens,
33300  enter 
33301 \begin_inset Quotes eld
33302 \end_inset
33303
33304 \SpecialChar LyX
33305  Editor
33306 \begin_inset Quotes erd
33307 \end_inset
33308
33309  (or any other name you like) in the 
33310 \begin_inset Quotes eld
33311 \end_inset
33312
33313 Name:
33314 \begin_inset Quotes erd
33315 \end_inset
33316
33317  field.
33318  Now click on the button labeled 
33319 \begin_inset Quotes eld
33320 \end_inset
33321
33322 \SpecialChar ldots
33323
33324 \begin_inset Quotes erd
33325 \end_inset
33326
33327  to open a file dialog and navigate to the directory containing the batch file 
33328 \begin_inset Flex Code
33329 status collapsed
33330
33331 \begin_layout Plain Layout
33332 lyxeditor.bat
33333 \end_layout
33334
33335 \end_inset
33336
33337  (see below).
33338  Select 
33339 \begin_inset Flex Code
33340 status collapsed
33341
33342 \begin_layout Plain Layout
33343 lyxeditor.bat
33344 \end_layout
33345
33346 \end_inset
33347
33348  and then specify the program arguments as 
33349 \begin_inset Flex Code
33350 status collapsed
33351
33352 \begin_layout Plain Layout
33353 %f %l
33354 \end_layout
33355
33356 \end_inset
33357
33358 .
33359  The 
33360 \begin_inset Flex Code
33361 status collapsed
33362
33363 \begin_layout Plain Layout
33364 lyxeditor.bat
33365 \end_layout
33366
33367 \end_inset
33368
33369  wrapper is used for communicating with \SpecialChar LyX
33370  through the 
33371 \emph on
33372 lyxpipe
33373 \emph default
33374  and is as follows:
33375 \end_layout
33376
33377 \begin_layout LyX-Code
33378 @echo off
33379 \begin_inset Newline newline
33380 \end_inset
33381
33382 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
33383 \backslash
33384
33385 \backslash
33386 .
33387 \backslash
33388 pipe
33389 \backslash
33390 lyxpipe.in
33391 \begin_inset Newline newline
33392 \end_inset
33393
33394 type 
33395 \backslash
33396
33397 \backslash
33398 .
33399 \backslash
33400 pipe
33401 \backslash
33402 lyxpipe.out
33403 \end_layout
33404
33405 \begin_layout Standard
33406 Make sure that the \SpecialChar LyX
33407 Server pipe path you specified in \SpecialChar LyX
33408  is 
33409 \begin_inset Flex Code
33410 status collapsed
33411
33412 \begin_layout Plain Layout
33413
33414 \backslash
33415
33416 \backslash
33417 .
33418 \backslash
33419 pipe
33420 \backslash
33421 lyxpipe
33422 \end_layout
33423
33424 \end_inset
33425
33426 ,
33427  otherwise change the 
33428 \begin_inset Flex Code
33429 status collapsed
33430
33431 \begin_layout Plain Layout
33432 lyxeditor.bat
33433 \end_layout
33434
33435 \end_inset
33436
33437  wrapper accordingly.
33438 \end_layout
33439
33440 \begin_layout Standard
33441 In yap,
33442  reverse search is triggered by double-click.
33443 \end_layout
33444
33445 \begin_layout Subsubsection*
33446 SumatraPDF (Windows)
33447 \end_layout
33448
33449 \begin_layout Standard
33450 In order to use SumatraPDF for inverse search,
33451  enter 
33452 \begin_inset Flex Code
33453 status collapsed
33454
33455 \begin_layout Plain Layout
33456 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
33457 \end_layout
33458
33459 \end_inset
33460
33461  in the viewer setting in 
33462 \change_deleted -712698321 1674917965
33463
33464 \begin_inset Flex Noun
33465 status collapsed
33466
33467 \begin_layout Plain Layout
33468 Preferences\SpecialChar menuseparator
33469 File Handling\SpecialChar menuseparator
33470 File formats\SpecialChar menuseparator
33471 PDF (pdflatex)
33472 \end_layout
33473
33474 \end_inset
33475
33476
33477 \change_inserted -712698321 1674917965
33478
33479 \family sans
33480 Preferences\SpecialChar menuseparator
33481 File Handling\SpecialChar menuseparator
33482 File formats\SpecialChar menuseparator
33483 PDF (pdflatex)
33484 \change_unchanged
33485
33486 \family default
33487 ,
33488  where 
33489 \begin_inset Flex Code
33490 status collapsed
33491
33492 \begin_layout Plain Layout
33493 lyxeditor.bat
33494 \end_layout
33495
33496 \end_inset
33497
33498  is the previous wrapper.
33499  If SumatraPDF.exe is not in your command PATH,
33500  use its full file name.
33501 \end_layout
33502
33503 \begin_layout Standard
33504 Reverse search is triggered by double-click.
33505 \end_layout
33506
33507 \begin_layout Subsubsection*
33508 YAP (Cygwin)
33509 \end_layout
33510
33511 \begin_layout Standard
33512 First of all,
33513  make sure that yap is your default DVI viewer in the Windows environment,
33514  then launch it,
33515  choose its 
33516 \change_deleted -712698321 1674917973
33517
33518 \begin_inset Flex Noun
33519 status collapsed
33520
33521 \begin_layout Plain Layout
33522 View\SpecialChar menuseparator
33523 Options
33524 \end_layout
33525
33526 \end_inset
33527
33528
33529 \change_inserted -712698321 1674917973
33530
33531 \family sans
33532 View\SpecialChar menuseparator
33533 Options
33534 \change_unchanged
33535
33536 \family default
33537  menu and select the 
33538 \begin_inset Quotes eld
33539 \end_inset
33540
33541 Inverse DVI Search
33542 \begin_inset Quotes erd
33543 \end_inset
33544
33545  tab.
33546  Click on the 
33547 \begin_inset Quotes eld
33548 \end_inset
33549
33550 New\SpecialChar ldots
33551
33552 \begin_inset Quotes erd
33553 \end_inset
33554
33555  button and,
33556  in the window that opens,
33557  enter 
33558 \begin_inset Quotes eld
33559 \end_inset
33560
33561 \SpecialChar LyX
33562  Editor
33563 \begin_inset Quotes erd
33564 \end_inset
33565
33566  (or any other name you like) in the 
33567 \begin_inset Quotes eld
33568 \end_inset
33569
33570 Name:
33571 \begin_inset Quotes erd
33572 \end_inset
33573
33574  field.
33575  Now click on the button labeled 
33576 \begin_inset Quotes eld
33577 \end_inset
33578
33579 \SpecialChar ldots
33580
33581 \begin_inset Quotes erd
33582 \end_inset
33583
33584  to open a file dialog and navigate to the directory containing the 
33585 \begin_inset Flex Code
33586 status collapsed
33587
33588 \begin_layout Plain Layout
33589 lyxeditor.exe
33590 \end_layout
33591
33592 \end_inset
33593
33594  program (which is installed by default on Cygwin along with the \SpecialChar LyX
33595  executable).
33596  Select 
33597 \begin_inset Flex Code
33598 status collapsed
33599
33600 \begin_layout Plain Layout
33601 lyxeditor.exe
33602 \end_layout
33603
33604 \end_inset
33605
33606  and then specify the program arguments as 
33607 \begin_inset Flex Code
33608 status collapsed
33609
33610 \begin_layout Plain Layout
33611 -g %f %l
33612 \end_layout
33613
33614 \end_inset
33615
33616 .
33617  In this way,
33618  you will be using the 
33619 \emph on
33620 lyxsocket
33621 \emph default
33622  for communicating with \SpecialChar LyX
33623 .
33624  If,
33625  for whatever reason,
33626  you want to use the 
33627 \emph on
33628 lyxpipe
33629 \emph default
33630 ,
33631  omit the 
33632 \begin_inset Flex Code
33633 status collapsed
33634
33635 \begin_layout Plain Layout
33636 -g
33637 \end_layout
33638
33639 \end_inset
33640
33641  option and be sure to specify the \SpecialChar LyX
33642 Server pipe path in the \SpecialChar LyX
33643  preferences.
33644 \end_layout
33645
33646 \begin_layout Standard
33647 In yap,
33648  reverse search is triggered by double-click.
33649 \end_layout
33650
33651 \begin_layout Subsubsection*
33652 SumatraPDF (Cygwin)
33653 \end_layout
33654
33655 \begin_layout Standard
33656 In order to use SumatraPDF for inverse search,
33657  enter 
33658 \begin_inset Flex Code
33659 status collapsed
33660
33661 \begin_layout Plain Layout
33662 SumatraPDF -inverse-search "lyxeditor -g %f %l"
33663 \end_layout
33664
33665 \end_inset
33666
33667  in the viewer setting in 
33668 \change_deleted -712698321 1674917986
33669
33670 \begin_inset Flex Noun
33671 status collapsed
33672
33673 \begin_layout Plain Layout
33674 Preferences\SpecialChar menuseparator
33675 File Handling\SpecialChar menuseparator
33676 File formats\SpecialChar menuseparator
33677 PDF (pdflatex)
33678 \end_layout
33679
33680 \end_inset
33681
33682
33683 \change_inserted -712698321 1674917986
33684
33685 \family sans
33686 Preferences\SpecialChar menuseparator
33687 File Handling\SpecialChar menuseparator
33688 File formats\SpecialChar menuseparator
33689 PDF (pdflatex)
33690 \change_unchanged
33691
33692 \family default
33693 .
33694  If SumatraPDF.exe is not in your command PATH,
33695  use its full posix path.
33696  The 
33697 \begin_inset Flex Code
33698 status collapsed
33699
33700 \begin_layout Plain Layout
33701 -g
33702 \end_layout
33703
33704 \end_inset
33705
33706  enables communication via the 
33707 \emph on
33708 lyxsocket
33709 \emph default
33710 .
33711  Again,
33712  omit the 
33713 \begin_inset Flex Code
33714 status collapsed
33715
33716 \begin_layout Plain Layout
33717 -g
33718 \end_layout
33719
33720 \end_inset
33721
33722  option if you want to use the 
33723 \emph on
33724 lyxpipe
33725 \emph default
33726 ,
33727  and be sure to specify the \SpecialChar LyX
33728 Server pipe path in the \SpecialChar LyX
33729  preferences.
33730 \end_layout
33731
33732 \begin_layout Standard
33733 Reverse search is triggered by double-click.
33734 \end_layout
33735
33736 \begin_layout Section
33737 Forward search
33738 \end_layout
33739
33740 \begin_layout Standard
33741 Forward search is,
33742  as the name implies,
33743  in a sense the 
33744 \begin_inset Quotes eld
33745 \end_inset
33746
33747 opposite
33748 \begin_inset Quotes erd
33749 \end_inset
33750
33751  of reverse search.
33752  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
33753 .
33754  If forward search is set up (as described in what follows),
33755  you can put the cursor anywhere in your \SpecialChar LyX
33756  document,
33757  and hit 
33758 \change_deleted -712698321 1674917994
33759
33760 \begin_inset Flex Noun
33761 status collapsed
33762
33763 \begin_layout Plain Layout
33764 Navigate\SpecialChar menuseparator
33765 Forward search
33766 \end_layout
33767
33768 \end_inset
33769
33770
33771 \change_inserted -712698321 1674917994
33772
33773 \family sans
33774 Navigate\SpecialChar menuseparator
33775 Forward search
33776 \change_unchanged
33777
33778 \family default
33779  (or select 
33780 \change_deleted -712698321 1674918002
33781
33782 \family sans
33783
33784 \begin_inset Flex Noun
33785 status collapsed
33786
33787 \begin_layout Plain Layout
33788
33789 \family sans
33790 Forward search
33791 \end_layout
33792
33793 \end_inset
33794
33795
33796 \change_inserted -712698321 1674918002
33797 Forward search
33798 \change_unchanged
33799
33800 \family default
33801  in the context menu via right mouse click),
33802  and then the viewer will jump to that position as well.
33803  This implies,
33804  of course,
33805  that your viewer supports this function.
33806 \end_layout
33807
33808 \begin_layout Standard
33809 To make forward search possible,
33810  you first need to provide the generated output PDF/DVI file with additional information about the \SpecialChar TeX
33811  sources.
33812  This can be done via the methods described in the section 
33813 \begin_inset CommandInset ref
33814 LatexCommand ref
33815 reference "subsec:rev-search"
33816 nolink "false"
33817
33818 \end_inset
33819
33820 .
33821 \end_layout
33822
33823 \begin_layout Standard
33824 Additionally,
33825  you need to configure \SpecialChar LyX
33826  for using your viewers in 
33827 \change_deleted -712698321 1674918011
33828
33829 \begin_inset Flex Noun
33830 status collapsed
33831
33832 \begin_layout Plain Layout
33833 Tools\SpecialChar menuseparator
33834 Preferences\SpecialChar menuseparator
33835 Output\SpecialChar menuseparator
33836 General
33837 \end_layout
33838
33839 \end_inset
33840
33841
33842 \change_inserted -712698321 1674918011
33843
33844 \family sans
33845 Tools\SpecialChar menuseparator
33846 Preferences\SpecialChar menuseparator
33847 Output\SpecialChar menuseparator
33848 General
33849 \change_unchanged
33850
33851 \family default
33852 .
33853  We provide a range of tested configurations for some viewers,
33854  which you can select from the drop down list.
33855  If none of these configurations suits you,
33856  you have to find out and enter a suitable configuration yourself.
33857  The definition syntax uses the following placeholders:
33858 \end_layout
33859
33860 \begin_layout Itemize
33861 \noindent
33862 \begin_inset Flex Code
33863 status collapsed
33864
33865 \begin_layout Plain Layout
33866 $$n
33867 \end_layout
33868
33869 \end_inset
33870
33871 :
33872  row number
33873 \end_layout
33874
33875 \begin_layout Itemize
33876 \noindent
33877 \begin_inset Flex Code
33878 status collapsed
33879
33880 \begin_layout Plain Layout
33881 $$t
33882 \end_layout
33883
33884 \end_inset
33885
33886 :
33887  name of the (temporary) exported .tex file (without path)
33888 \end_layout
33889
33890 \begin_layout Itemize
33891 \noindent
33892 \begin_inset Flex Code
33893 status collapsed
33894
33895 \begin_layout Plain Layout
33896 $$f
33897 \end_layout
33898
33899 \end_inset
33900
33901 :
33902  name of the (temporary) exported .tex file (including path)
33903 \end_layout
33904
33905 \begin_layout Itemize
33906 \noindent
33907 \begin_inset Flex Code
33908 status collapsed
33909
33910 \begin_layout Plain Layout
33911 $$o
33912 \end_layout
33913
33914 \end_inset
33915
33916 :
33917  name of the exported output file (either dvi or pdf,
33918  depending on which one exists in the temporary directory)
33919 \end_layout
33920
33921 \begin_layout Standard
33922 Note that only some of the viewers provide full and usable forward search functionality out of the box,
33923  among them yap,
33924  xdvi,
33925  okular
33926 \begin_inset Foot
33927 status collapsed
33928
33929 \begin_layout Plain Layout
33930 You might want to set 
33931 \begin_inset Flex Code
33932 status collapsed
33933
33934 \begin_layout Plain Layout
33935 okular --unique
33936 \end_layout
33937
33938 \end_inset
33939
33940  in 
33941 \change_deleted -712698321 1674918020
33942
33943 \begin_inset Flex Noun
33944 status collapsed
33945
33946 \begin_layout Plain Layout
33947 Tools\SpecialChar menuseparator
33948 Preferences\SpecialChar menuseparator
33949 File Handling\SpecialChar menuseparator
33950 File
33951 \begin_inset space ~
33952 \end_inset
33953
33954 Formats
33955 \end_layout
33956
33957 \end_inset
33958
33959
33960 \change_inserted -712698321 1674918020
33961
33962 \family sans
33963 Tools\SpecialChar menuseparator
33964 Preferences\SpecialChar menuseparator
33965 File Handling\SpecialChar menuseparator
33966 File
33967 \begin_inset space ~
33968 \end_inset
33969
33970 Formats
33971 \change_unchanged
33972
33973 \end_layout
33974
33975 \end_inset
33976
33977 ,
33978  qpdfview,
33979  and SumatraPDF
33980 \begin_inset Foot
33981 status collapsed
33982
33983 \begin_layout Plain Layout
33984 SumatraPDF can also use DDE commands through the external program CMCDDE —
33985  downloadable from 
33986 \begin_inset CommandInset href
33987 LatexCommand href
33988 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
33989 literal "false"
33990
33991 \end_inset
33992
33993
33994 \end_layout
33995
33996 \end_inset
33997
33998 .
33999  Others,
34000  such as evince
34001 \begin_inset Foot
34002 status collapsed
34003
34004 \begin_layout Plain Layout
34005 Forward search with evince can be achieved by means of third party helper scripts.
34006  Please refer to 
34007 \begin_inset CommandInset href
34008 LatexCommand href
34009 target "https://wiki.lyx.org/LyX/SyncTeX"
34010 literal "false"
34011
34012 \end_inset
34013
34014  for details.
34015 \end_layout
34016
34017 \end_inset
34018
34019 ,
34020  require some extra tools in order to use forward search.
34021  While many of the widespread PDF viewers (most notably Adobe Reader) do not support forward search at all,
34022  some other viewers – e.
34023 \begin_inset space \thinspace{}
34024 \end_inset
34025
34026 g.
34027  xpdf – allow at least to reload the document and jump to a specific page of the file,
34028  so you can at least navigate 
34029 \begin_inset Quotes eld
34030 \end_inset
34031
34032 near
34033 \begin_inset Quotes erd
34034 \end_inset
34035
34036 .
34037  This latter functionality is provided by an external call of synctex (see the predefined example configurations).
34038  
34039 \end_layout
34040
34041 \begin_layout Standard
34042 Forward search works both with DVI and PDF output.
34043  \SpecialChar LyX
34044  simply checks which preview format you have used before (i.
34045 \begin_inset space \thinspace{}
34046 \end_inset
34047
34048 e.,
34049  which format is already there in the temporary directory) and chooses the appropriate configuration for the respective format.
34050 \change_deleted 564990737 1672743015
34051
34052 \end_layout
34053
34054 \begin_layout Standard
34055
34056 \change_deleted 564990737 1672743015
34057 Special Document Classes
34058 \end_layout
34059
34060 \begin_layout Standard
34061
34062 \change_deleted 564990737 1669742044
34063 A&A Paper
34064 \end_layout
34065
34066 \begin_layout Standard
34067
34068 \change_deleted 564990737 1669742044
34069 by 
34070 \noun on
34071 Peter Sütterlin
34072 \end_layout
34073
34074 \begin_layout Standard
34075
34076 \change_deleted 564990737 1669742044
34077 Introduction
34078 \end_layout
34079
34080 \begin_layout Standard
34081
34082 \change_deleted 564990737 1669742044
34083 This section describes how \SpecialChar LyX
34084  can be used to write articles for submission to the scientific journal 
34085 \emph on
34086 Astronomy and Astrophysics
34087 \emph default
34088  (
34089 \begin_inset Flex URL
34090 status collapsed
34091
34092 \begin_layout Plain Layout
34093
34094 https://www.aanda.org/
34095 \end_layout
34096
34097 \end_inset
34098
34099 ) using Version 5.01 of the document class 
34100 \family typewriter
34101 aa.cls
34102 \family default
34103 .
34104  This package can be downloaded from the ftp site
34105 \end_layout
34106
34107 \begin_layout Standard
34108
34109 \change_deleted 564990737 1669742044
34110 \begin_inset VSpace medskip
34111 \end_inset
34112
34113
34114 \end_layout
34115
34116 \begin_layout Standard
34117 \align center
34118
34119 \change_deleted 564990737 1669742044
34120 \begin_inset Flex URL
34121 status collapsed
34122
34123 \begin_layout Plain Layout
34124
34125 ftp://ftp.edpsciences.org/pub/aa/readme.html
34126 \end_layout
34127
34128 \end_inset
34129
34130
34131 \end_layout
34132
34133 \begin_layout Standard
34134
34135 \change_deleted 564990737 1669742044
34136 \begin_inset VSpace medskip
34137 \end_inset
34138
34139
34140 \end_layout
34141
34142 \begin_layout Standard
34143
34144 \change_deleted 564990737 1669742044
34145 A manual comes together with that package,
34146  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.
34147  
34148 \end_layout
34149
34150 \begin_layout Standard
34151
34152 \change_deleted 564990737 1669742044
34153 Please note that the publisher of the journal was changed from Springer to EDP Sciences starting January 1,
34154  2001.
34155  That change involved also some slight changes to the style files,
34156  namely the removal of the thesaurus command.
34157  The \SpecialChar LyX
34158  class aa supports the newest version of these style files,
34159  V 5.01.
34160  If you have an older version installed,
34161  please upgrade.
34162  For compatibility,
34163  the old (version 4) layout has been kept as 
34164 \family sans
34165 article (A&A V4)
34166 \family default
34167 .
34168  Please refer to the comments in 
34169 \family typewriter
34170 \SpecialChar LyX
34171 Dir/layouts/aapaper.layout
34172 \family default
34173 .
34174 \end_layout
34175
34176 \begin_layout Standard
34177
34178 \change_deleted 564990737 1669742044
34179 Getting started
34180 \end_layout
34181
34182 \begin_layout Standard
34183
34184 \change_deleted 564990737 1669742044
34185 It is recommended you start from the example template distributed with \SpecialChar LyX
34186 .
34187  If you are not using a template,
34188  note the following settings:
34189 \end_layout
34190
34191 \begin_layout Itemize
34192
34193 \change_deleted 564990737 1669742044
34194 Select 
34195 \family sans
34196 article (A&A)
34197 \family default
34198  in the 
34199 \family sans
34200 Document\SpecialChar menuseparator
34201 Settings
34202 \family default
34203  dialog (OK,
34204  that one was obvious).
34205 \end_layout
34206
34207 \begin_layout Itemize
34208
34209 \change_deleted 564990737 1669742044
34210 Don't change the option 
34211 \family sans
34212 Page
34213 \begin_inset space ~
34214 \end_inset
34215
34216 style
34217 \family default
34218 :
34219  Leave it set to 
34220 \family sans
34221 default
34222 \family default
34223 .
34224  The whole layout is done by the macros,
34225  you shouldn't change anything.
34226 \end_layout
34227
34228 \begin_layout Standard
34229
34230 \change_deleted 564990737 1669742044
34231 The header block
34232 \end_layout
34233
34234 \begin_layout Standard
34235
34236 \change_deleted 564990737 1669742044
34237 First thing to enter is the header information.
34238  It consists of seven entries,
34239  of which some are optional.
34240  They are
34241 \end_layout
34242
34243 \begin_layout Itemize
34244
34245 \change_deleted 564990737 1669742044
34246
34247 \family sans
34248 Title
34249 \family default
34250 :
34251  [required] 
34252 \end_layout
34253
34254 \begin_layout Itemize
34255
34256 \change_deleted 564990737 1669742044
34257
34258 \family sans
34259 Subtitle
34260 \family default
34261 :
34262  [optional] 
34263 \end_layout
34264
34265 \begin_layout Itemize
34266
34267 \change_deleted 564990737 1669742044
34268
34269 \family sans
34270 Author
34271 \family default
34272 :
34273  [required]
34274 \end_layout
34275
34276 \begin_layout Itemize
34277
34278 \change_deleted 564990737 1669742044
34279
34280 \family sans
34281 Address
34282 \family default
34283 :
34284  [required]
34285 \end_layout
34286
34287 \begin_layout Itemize
34288
34289 \change_deleted 564990737 1669742044
34290
34291 \family sans
34292 Offprints
34293 \family default
34294 :
34295  [optional] if more than one author:
34296  whom to contact for offprint requests.
34297 \end_layout
34298
34299 \begin_layout Itemize
34300
34301 \change_deleted 564990737 1669742044
34302
34303 \family sans
34304 Mail
34305 \family default
34306 :
34307  [optional] mail address for contacts.
34308 \end_layout
34309
34310 \begin_layout Itemize
34311
34312 \change_deleted 564990737 1669742044
34313
34314 \family sans
34315 Date
34316 \family default
34317 :
34318  [required].
34319  Suggested format is 
34320 \family typewriter
34321 Received:
34322  <date>;
34323  Accepted <date> 
34324 \end_layout
34325
34326 \begin_layout Standard
34327
34328 \change_deleted 564990737 1669742044
34329 There is no need to issue the 
34330 \family typewriter
34331
34332 \backslash
34333 maketitle
34334 \family default
34335  command,
34336  this is done automatically by \SpecialChar LyX
34337  when the header is finished.
34338  Although the order of the single header entries doesn't matter it is advised to keep the above sequence,
34339  just to get the best optics and meets the layout of the real document.
34340 \end_layout
34341
34342 \begin_layout Standard
34343
34344 \change_deleted 564990737 1669742044
34345 If you want to place footnotes in the header block,
34346  e.
34347 \begin_inset space \thinspace{}
34348 \end_inset
34349
34350 g.
34351 \begin_inset space \space{}
34352 \end_inset
34353
34354 to state your present address,
34355  just use the standard footnote via the menu 
34356 \family sans
34357 Insert\SpecialChar menuseparator
34358 Footnote.
34359
34360 \family default
34361  \SpecialChar LyX
34362  will automagically use the term 
34363 \family typewriter
34364
34365 \backslash
34366 thanks{}
34367 \family default
34368  in that case.
34369 \end_layout
34370
34371 \begin_layout Standard
34372
34373 \change_deleted 564990737 1669742044
34374 Under 
34375 \family sans
34376 Edit\SpecialChar menuseparator
34377 Text Style
34378 \family default
34379 ,
34380  you'll find two insets which are relevant for the titling:
34381 \end_layout
34382
34383 \begin_layout Itemize
34384
34385 \change_deleted 564990737 1669742044
34386
34387 \family sans
34388 Institute
34389 \family typewriter
34390  
34391 \family default
34392 to mark corresponding author\SpecialChar breakableslash
34393 institute pairs.
34394  The institutes are numbered sequentially as they appear in the 
34395 \family sans
34396 Address
34397 \family default
34398  field,
34399  so you have to put a marker to each author.
34400 \end_layout
34401
34402 \begin_layout Itemize
34403
34404 \change_deleted 564990737 1669742044
34405
34406 \family sans
34407 Email
34408 \family default
34409  to supply an email address for fast contact.
34410 \end_layout
34411
34412 \begin_layout Standard
34413
34414 \change_deleted 564990737 1669742044
34415 In addition to these topics,
34416  the macros use one additional \SpecialChar LaTeX
34417  command that has no counterpart in \SpecialChar LyX
34418 :
34419 \end_layout
34420
34421 \begin_layout Itemize
34422
34423 \change_deleted 564990737 1669742044
34424
34425 \family typewriter
34426
34427 \backslash
34428 and
34429 \family default
34430  to separate different names for more than one author and institute,
34431  respectively.
34432 \end_layout
34433
34434 \begin_layout Standard
34435
34436 \change_deleted 564990737 1669742044
34437 The appropriate command has to be entered in \SpecialChar LyX
34438  and marked as \SpecialChar LaTeX
34439  code.
34440  See the examples.
34441  
34442 \end_layout
34443
34444 \begin_layout Standard
34445
34446 \change_deleted 564990737 1669742044
34447 The abstract
34448 \end_layout
34449
34450 \begin_layout Standard
34451
34452 \change_deleted 564990737 1669742044
34453 The abstract should immediately follow the header block.
34454  With version 5 the abstract environment was changed to a command,
34455  and there is now a restriction to only one paragraph.
34456  In addition,
34457  it should contain an entry with the keywords.
34458  This is done via the paragraph style 
34459 \family sans
34460 Keywords
34461 \family default
34462 .
34463  Refer to the example paper.
34464 \end_layout
34465
34466 \begin_layout Standard
34467
34468 \change_deleted 564990737 1669742044
34469 Supported environments
34470 \end_layout
34471
34472 \begin_layout Standard
34473
34474 \change_deleted 564990737 1669742044
34475 The A&A paper layout supports the following environments for structuring your text:
34476 \end_layout
34477
34478 \begin_layout Itemize
34479
34480 \change_deleted 564990737 1669742044
34481
34482 \family sans
34483 Standard
34484 \end_layout
34485
34486 \begin_layout Itemize
34487
34488 \change_deleted 564990737 1669742044
34489
34490 \family sans
34491 Section
34492 \end_layout
34493
34494 \begin_layout Itemize
34495
34496 \change_deleted 564990737 1669742044
34497
34498 \family sans
34499 Subsection
34500 \end_layout
34501
34502 \begin_layout Itemize
34503
34504 \change_deleted 564990737 1669742044
34505
34506 \family sans
34507 Subsubsection
34508 \end_layout
34509
34510 \begin_layout Itemize
34511
34512 \change_deleted 564990737 1669742044
34513
34514 \family sans
34515 Itemize
34516 \end_layout
34517
34518 \begin_layout Itemize
34519
34520 \change_deleted 564990737 1669742044
34521
34522 \family sans
34523 Enumerate
34524 \end_layout
34525
34526 \begin_layout Itemize
34527
34528 \change_deleted 564990737 1669742044
34529
34530 \family sans
34531 Description
34532 \end_layout
34533
34534 \begin_layout Itemize
34535
34536 \change_deleted 564990737 1669742044
34537
34538 \family sans
34539 Caption
34540 \end_layout
34541
34542 \begin_layout Itemize
34543
34544 \change_deleted 564990737 1669742044
34545
34546 \family sans
34547 Abstract
34548 \end_layout
34549
34550 \begin_layout Itemize
34551
34552 \change_deleted 564990737 1669742044
34553
34554 \family sans
34555 Acknowledgment
34556 \end_layout
34557
34558 \begin_layout Itemize
34559
34560 \change_deleted 564990737 1669742044
34561
34562 \family sans
34563 Bibliography
34564 \end_layout
34565
34566 \begin_layout Itemize
34567
34568 \change_deleted 564990737 1669742044
34569
34570 \family sans
34571 \SpecialChar LaTeX
34572
34573 \end_layout
34574
34575 \begin_layout Standard
34576
34577 \change_deleted 564990737 1669742044
34578 Commands not supported by \SpecialChar LyX
34579
34580 \end_layout
34581
34582 \begin_layout Standard
34583
34584 \change_deleted 564990737 1669742044
34585 Some commands are not yet supported by the 
34586 \family sans
34587 paper (A&A)
34588 \family default
34589  layout for \SpecialChar LyX
34590 .
34591  Some have already been mentioned.
34592  For the sake of completeness,
34593  they are listed all together here:
34594 \end_layout
34595
34596 \begin_layout Itemize
34597
34598 \change_deleted 564990737 1669742044
34599
34600 \family typewriter
34601
34602 \backslash
34603 and
34604 \end_layout
34605
34606 \begin_layout Itemize
34607
34608 \change_deleted 564990737 1669742044
34609
34610 \family typewriter
34611
34612 \backslash
34613 authorrunning
34614 \end_layout
34615
34616 \begin_layout Itemize
34617
34618 \change_deleted 564990737 1669742044
34619
34620 \family typewriter
34621
34622 \backslash
34623 object{}
34624 \end_layout
34625
34626 \begin_layout Itemize
34627
34628 \change_deleted 564990737 1669742044
34629
34630 \family typewriter
34631
34632 \backslash
34633 titlerunning{}
34634 \end_layout
34635
34636 \begin_layout Standard
34637
34638 \change_deleted 564990737 1669742044
34639 If you want to use any of these commands,
34640  you have to enter them yourself.
34641  
34642 \series bold
34643 Do not forget to mark them as \SpecialChar LaTeX
34644  code!
34645 \end_layout
34646
34647 \begin_layout Standard
34648
34649 \change_deleted 564990737 1669742044
34650 Figure and Table Floats
34651 \end_layout
34652
34653 \begin_layout Standard
34654
34655 \change_deleted 564990737 1669742044
34656 \SpecialChar LyX
34657  provides support for the necessary float environments 
34658 \family sans
34659 figure,
34660  figure*,
34661  table
34662 \family default
34663  and 
34664 \family sans
34665 table*
34666 \family default
34667 ,
34668  therefore we won't tell much about it here.
34669  Refer to the 
34670 \emph on
34671 User's
34672 \begin_inset space ~
34673 \end_inset
34674
34675 Guide
34676 \emph default
34677 .
34678  Just remember that tables should be left-aligned.
34679  For that,
34680  select the table and change the alignment in 
34681 \family sans
34682 Edit\SpecialChar menuseparator
34683 Paragraph
34684 \begin_inset space ~
34685 \end_inset
34686
34687 Settings.
34688 \end_layout
34689
34690 \begin_layout Standard
34691
34692 \change_deleted 564990737 1669742044
34693 There is only one special thing:
34694  the figures with caption besides the figure.
34695  To create such a figure,
34696  you have to do the following:
34697 \end_layout
34698
34699 \begin_layout Enumerate
34700
34701 \change_deleted 564990737 1669742044
34702 Create a wide figure float:
34703  
34704 \family sans
34705 Insert\SpecialChar menuseparator
34706 Float\SpecialChar menuseparator
34707 Figure
34708 \family default
34709 ,
34710  then right click in the figure and select 
34711 \family sans
34712 Span
34713 \begin_inset space ~
34714 \end_inset
34715
34716 columns
34717 \family default
34718 .
34719 \end_layout
34720
34721 \begin_layout Enumerate
34722
34723 \change_deleted 564990737 1669742044
34724 Enter your caption text.
34725 \end_layout
34726
34727 \begin_layout Enumerate
34728
34729 \change_deleted 564990737 1669742044
34730 Press 
34731 \family sans
34732 Return
34733 \family default
34734  to move the cursor above the caption.
34735 \end_layout
34736
34737 \begin_layout Enumerate
34738
34739 \change_deleted 564990737 1669742044
34740 Insert your figure
34741 \end_layout
34742
34743 \begin_layout Enumerate
34744
34745 \change_deleted 564990737 1669742044
34746 Position the cursor behind the figure and insert a horizontal fill:
34747  
34748 \family sans
34749 Insert\SpecialChar menuseparator
34750 Special
34751 \begin_inset space ~
34752 \end_inset
34753
34754 Character\SpecialChar menuseparator
34755 Horizontal
34756 \begin_inset space ~
34757 \end_inset
34758
34759 Fill
34760 \family default
34761 .
34762 \end_layout
34763
34764 \begin_layout Enumerate
34765
34766 \change_deleted 564990737 1669742044
34767 Switch to \SpecialChar LaTeX
34768  mode:
34769  
34770 \family sans
34771 M-c
34772 \begin_inset space ~
34773 \end_inset
34774
34775 t
34776 \family default
34777 .
34778 \end_layout
34779
34780 \begin_layout Enumerate
34781
34782 \change_deleted 564990737 1669742044
34783 Enter 
34784 \family typewriter
34785
34786 \backslash
34787 parbox[b]{55mm}{
34788 \family default
34789 .
34790  
34791 \series bold
34792 Do not close the brace!
34793 \end_layout
34794
34795 \begin_layout Enumerate
34796
34797 \change_deleted 564990737 1669742044
34798 Position the cursor behind the caption text,
34799  switch to \SpecialChar LaTeX
34800  mode and insert the closing brace:
34801  
34802 \family sans
34803 M-c
34804 \begin_inset space ~
34805 \end_inset
34806
34807 t
34808 \family default
34809  
34810 \family typewriter
34811 }
34812 \family default
34813 .
34814 \end_layout
34815
34816 \begin_layout Standard
34817
34818 \change_deleted 564990737 1669742044
34819 Also,
34820  refer to the figures in the example paper.
34821 \end_layout
34822
34823 \begin_layout Standard
34824
34825 \change_deleted 564990737 1669742044
34826 Referee layout
34827 \end_layout
34828
34829 \begin_layout Standard
34830
34831 \change_deleted 564990737 1669742044
34832 For submission,
34833  the paper has to be formated in a special double-spacing layout.
34834  For this purpose,
34835  you have to give the option 
34836 \family typewriter
34837 referee
34838 \family default
34839  to the document class.
34840  This must be done using the custom class options field in the 
34841 \family sans
34842 Document\SpecialChar menuseparator
34843 Settings
34844 \family default
34845  dialog.
34846  Just enter the string 
34847 \family typewriter
34848 referee
34849 \family default
34850  there.
34851 \end_layout
34852
34853 \begin_layout Standard
34854
34855 \change_deleted 564990737 1669742044
34856 The example paper
34857 \end_layout
34858
34859 \begin_layout Standard
34860
34861 \change_deleted 564990737 1669742044
34862 The 
34863 \family sans
34864 Examples
34865 \family default
34866  directory contains an example paper written with \SpecialChar LyX
34867 .
34868  It is the example paper from the original macro package,
34869  translated to \SpecialChar LyX
34870 .
34871  Use it for inspiration,
34872  and compare the original \SpecialChar LaTeX
34873  code with \SpecialChar LyX
34874  way of writing.
34875 \end_layout
34876
34877 \begin_layout Standard
34878
34879 \change_deleted 564990737 1671097429
34880 Dinbrief
34881 \end_layout
34882
34883 \begin_layout Standard
34884
34885 \change_deleted 564990737 1671097429
34886 The document class 
34887 \family sans
34888 dinbrief
34889 \family default
34890  can be used to type letters according to German conventions.
34891  A template file is included in 
34892 \family typewriter
34893 .../lyx/share/templates
34894 \family default
34895  for you to use as a starting point.
34896 \end_layout
34897
34898 \begin_layout Standard
34899
34900 \change_deleted 564990737 1671097429
34901 Elsevier Journals
34902 \end_layout
34903
34904 \begin_layout Standard
34905
34906 \change_deleted 564990737 1671097429
34907 See the \SpecialChar LyX
34908  template file 
34909 \family typewriter
34910 elsarticle.lyx
34911 \family default
34912 .
34913  It contains all infos you need.
34914 \end_layout
34915
34916 \begin_layout Standard
34917
34918 \change_deleted 564990737 1669755802
34919 ijmpc and ijmpd
34920 \end_layout
34921
34922 \begin_layout Standard
34923
34924 \change_deleted 564990737 1669755802
34925 by 
34926 \noun on
34927 Panayotis Papasotiriou
34928 \end_layout
34929
34930 \begin_layout Standard
34931
34932 \change_deleted 564990737 1669755802
34933 Overview
34934 \end_layout
34935
34936 \begin_layout Standard
34937
34938 \change_deleted 564990737 1669755802
34939 The ijmpc package is a set of macros that facilitates electronic manuscript submission to the 
34940 \emph on
34941 International Journal of Modern Physics C
34942 \emph default
34943 .
34944  Similarly,
34945  the ijmpd package is for creating manuscripts to be submitted to the 
34946 \emph on
34947 International Journal of Modern Physics D
34948 \emph default
34949 .
34950  Both journals are published by World Scientific.
34951  The corresponding document classes are named 
34952 \family typewriter
34953 ws-ijmpc.cls
34954 \family default
34955  and 
34956 \family typewriter
34957 ws-ijmpd.cls
34958 \family default
34959 ,
34960  respectively.
34961  These files,
34962  together with instructions for the authors,
34963  can be downloaded from the sites 
34964 \begin_inset Flex URL
34965 status collapsed
34966
34967 \begin_layout Plain Layout
34968
34969 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
34970 \end_layout
34971
34972 \end_inset
34973
34974  and 
34975 \begin_inset Flex URL
34976 status collapsed
34977
34978 \begin_layout Plain Layout
34979
34980 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
34981 \end_layout
34982
34983 \end_inset
34984
34985 .
34986  Both packages are modified versions of the standard 
34987 \begin_inset Quotes eld
34988 \end_inset
34989
34990 article
34991 \begin_inset Quotes erd
34992 \end_inset
34993
34994  package,
34995  and they are almost (but not exactly) identical.
34996  Most of their features are supported by \SpecialChar LyX
34997 .
34998  I have used \SpecialChar LyX
34999  successfully to write articles submitted to both journals without any problem.
35000 \end_layout
35001
35002 \begin_layout Standard
35003
35004 \change_deleted 564990737 1669755802
35005 Writing a paper
35006 \end_layout
35007
35008 \begin_layout Standard
35009
35010 \change_deleted 564990737 1669755802
35011 As usual,
35012  the easiest way to write a paper is to start with a template.
35013  Click on 
35014 \family sans
35015 File\SpecialChar menuseparator
35016 New from
35017 \family default
35018  
35019 \family sans
35020 Template
35021 \family default
35022 ,
35023  then choose the 
35024 \family typewriter
35025 ijmpc.lyx
35026 \family default
35027  or 
35028 \family typewriter
35029 ijmpd.lyx
35030 \family default
35031  template.
35032  This will give an (almost) empty document that includes the most common fields found in a manuscript.
35033  Simply overwrite the existing text (including the brackets,
35034  
35035 \family typewriter
35036 <>
35037 \family default
35038 ) with your text.
35039  You should keep in mind the following remarks.
35040 \end_layout
35041
35042 \begin_layout Enumerate
35043
35044 \change_deleted 564990737 1669755802
35045 \SpecialChar LyX
35046  won't let you change the font size and the page style of the document,
35047  because such modifications are not allowed by both packages.
35048 \end_layout
35049
35050 \begin_layout Enumerate
35051
35052 \change_deleted 564990737 1669755802
35053 The language of the document should not be changed.
35054  Before previewing your paper,
35055  be sure that the babel package is not used.
35056  To do this,
35057  click on 
35058 \begin_inset Info
35059 type  "menu"
35060 arg   "dialog-show document"
35061 \end_inset
35062
35063  
35064 \family sans
35065 \SpecialChar menuseparator
35066 Language
35067 \family default
35068 ,
35069  and select 
35070 \begin_inset Quotes eld
35071 \end_inset
35072
35073 None
35074 \begin_inset Quotes erd
35075 \end_inset
35076
35077  as 
35078 \family sans
35079 Language Package
35080 \family default
35081 .
35082 \end_layout
35083
35084 \begin_layout Enumerate
35085
35086 \change_deleted 564990737 1669755802
35087 The 
35088 \begin_inset Quotes eld
35089 \end_inset
35090
35091 Keywords
35092 \begin_inset Quotes erd
35093 \end_inset
35094
35095  style must be used to define keywords.
35096 \end_layout
35097
35098 \begin_layout Enumerate
35099
35100 \change_deleted 564990737 1669755802
35101 The ijmpc package provides a style named 
35102 \begin_inset Quotes eld
35103 \end_inset
35104
35105 Classification Codes
35106 \begin_inset Quotes erd
35107 \end_inset
35108
35109 ,
35110  which can be used to define classification codes,
35111  such as PACS numbers.
35112  Note that this facility is not supported by the ijmpd package.
35113 \end_layout
35114
35115 \begin_layout Enumerate
35116
35117 \change_deleted 564990737 1669755802
35118 Several new environments are available:
35119  
35120 \begin_inset Quotes eld
35121 \end_inset
35122
35123 Definition
35124 \begin_inset Quotes erd
35125 \end_inset
35126
35127 ,
35128  
35129 \begin_inset Quotes eld
35130 \end_inset
35131
35132 Step
35133 \begin_inset Quotes erd
35134 \end_inset
35135
35136 ,
35137  
35138 \begin_inset Quotes eld
35139 \end_inset
35140
35141 Example
35142 \begin_inset Quotes erd
35143 \end_inset
35144
35145 ,
35146  
35147 \begin_inset Quotes eld
35148 \end_inset
35149
35150 Remark
35151 \begin_inset Quotes erd
35152 \end_inset
35153
35154 ,
35155  
35156 \begin_inset Quotes eld
35157 \end_inset
35158
35159 Notation
35160 \begin_inset Quotes erd
35161 \end_inset
35162
35163 ,
35164  
35165 \begin_inset Quotes eld
35166 \end_inset
35167
35168 Theorem
35169 \begin_inset Quotes erd
35170 \end_inset
35171
35172 ,
35173  
35174 \begin_inset Quotes eld
35175 \end_inset
35176
35177 Proof
35178 \begin_inset Quotes erd
35179 \end_inset
35180
35181 ,
35182  
35183 \begin_inset Quotes eld
35184 \end_inset
35185
35186 Corollary
35187 \begin_inset Quotes erd
35188 \end_inset
35189
35190 ,
35191  
35192 \begin_inset Quotes eld
35193 \end_inset
35194
35195 Lemma
35196 \begin_inset Quotes erd
35197 \end_inset
35198
35199 ,
35200  
35201 \begin_inset Quotes eld
35202 \end_inset
35203
35204 Proposition
35205 \begin_inset Quotes erd
35206 \end_inset
35207
35208 ,
35209  
35210 \begin_inset Quotes eld
35211 \end_inset
35212
35213 Prop
35214 \begin_inset Quotes erd
35215 \end_inset
35216
35217 ,
35218  
35219 \begin_inset Quotes eld
35220 \end_inset
35221
35222 Question
35223 \begin_inset Quotes erd
35224 \end_inset
35225
35226 ,
35227  
35228 \begin_inset Quotes eld
35229 \end_inset
35230
35231 Claim
35232 \begin_inset Quotes erd
35233 \end_inset
35234
35235 ,
35236  and 
35237 \begin_inset Quotes eld
35238 \end_inset
35239
35240 Conjecture
35241 \begin_inset Quotes erd
35242 \end_inset
35243
35244 .
35245  Their use is more or less obvious.
35246  \SpecialChar LyX
35247  supports all these environments;
35248  it will use the proper label,
35249  text style,
35250  and numbering scheme for each of them.
35251 \end_layout
35252
35253 \begin_layout Enumerate
35254
35255 \change_deleted 564990737 1669755802
35256 Both packages use basic citations;
35257  the natbib package should not be used.
35258  In \SpecialChar LyX
35259 ,
35260  citation references are shown as usual;
35261  in the output,
35262  citations are shown as superscripts.
35263  If you want to use a citation as normal text,
35264  you should use the 
35265 \family typewriter
35266 refcite
35267 \family default
35268  command,
35269  e.
35270 \begin_inset space \thinspace{}
35271 \end_inset
35272
35273 g.
35274 \begin_inset space \space{}
35275 \end_inset
35276
35277
35278 \begin_inset Quotes eld
35279 \end_inset
35280
35281 See Ref.
35282 \begin_inset space \space{}
35283 \end_inset
35284
35285
35286 \family typewriter
35287
35288 \backslash
35289 refcite{key}
35290 \family default
35291
35292 \begin_inset Quotes erd
35293 \end_inset
35294
35295 .
35296 \end_layout
35297
35298 \begin_layout Enumerate
35299
35300 \change_deleted 564990737 1669755802
35301 There is no 
35302 \begin_inset Quotes eld
35303 \end_inset
35304
35305 Acknowledgments
35306 \begin_inset Quotes erd
35307 \end_inset
35308
35309  section in both packages.
35310  To put acknowledgments,
35311  just use the 
35312 \begin_inset Quotes eld
35313 \end_inset
35314
35315 Section*
35316 \begin_inset Quotes erd
35317 \end_inset
35318
35319  environment.
35320 \end_layout
35321
35322 \begin_layout Enumerate
35323
35324 \change_deleted 564990737 1669755802
35325 Appendices may be added to the paper,
35326  
35327 \emph on
35328 after
35329 \emph default
35330  the Acknowledgments and 
35331 \shape italic
35332 before
35333 \shape default
35334  the References.
35335  \SpecialChar LyX
35336  provides a special environment,
35337  called 
35338 \begin_inset Quotes eld
35339 \end_inset
35340
35341 Appendices Section
35342 \begin_inset Quotes erd
35343 \end_inset
35344
35345  which marks the beginning of the appendices.
35346  This environment should be left blank;
35347  it just sends a \SpecialChar LaTeX
35348  command,
35349  but nothing is really printed.
35350  In \SpecialChar LyX
35351 ,
35352  the word 
35353 \begin_inset Quotes eld
35354 \end_inset
35355
35356 Appendix
35357 \begin_inset Quotes erd
35358 \end_inset
35359
35360  is printed with blue letters,
35361  as a signal that all sections after that point are appendices.
35362  To write an appendix,
35363  use the 
35364 \begin_inset Quotes eld
35365 \end_inset
35366
35367 Appendix
35368 \begin_inset Quotes erd
35369 \end_inset
35370
35371  environment.
35372  \SpecialChar LyX
35373  will number each appendix with capital letters,
35374  as required by both journals.
35375  Note that 
35376 \begin_inset Quotes eld
35377 \end_inset
35378
35379 Appendices Section
35380 \begin_inset Quotes erd
35381 \end_inset
35382
35383  
35384 \emph on
35385 must
35386 \emph default
35387  be present before the first appendix;
35388  if not,
35389  all appendices will be numbered as normal sections in the output.
35390 \end_layout
35391
35392 \begin_layout Enumerate
35393
35394 \change_deleted 564990737 1669755802
35395 The ijmpc and the ijmpd packages use the 
35396 \family typewriter
35397 tbl
35398 \family default
35399  command to implement table captions.
35400  As a result,
35401  a table created by \SpecialChar LyX
35402  is printed correctly,
35403  but its caption is ignored.
35404  However,
35405  you can use some \SpecialChar TeX
35406  code to overcome this problem,
35407  so that captions are printed as expected.
35408  To do so,
35409  create a float table as usual,
35410  remove the caption,
35411  and replace it with the \SpecialChar TeX
35412  code 
35413 \family typewriter
35414
35415 \backslash
35416 tbl{
35417 \emph on
35418 your table caption
35419 \emph default
35420 }{
35421 \family default
35422  (sic);
35423  you must also the \SpecialChar TeX
35424  code 
35425 \family typewriter
35426 }
35427 \family default
35428  immediately after the tabular material.
35429  Study the example table included in the template files to see how this trick is implemented.
35430  Alternatively,
35431  If you need table captions,
35432  you should implement the whole table float in a 
35433 \family typewriter
35434 .tex
35435 \family default
35436  file,
35437  then include this file to the \SpecialChar LyX
35438  document (
35439 \family sans
35440 Insert\SpecialChar menuseparator
35441 File\SpecialChar menuseparator
35442 Child
35443 \begin_inset space ~
35444 \end_inset
35445
35446 Document
35447 \family default
35448 ).
35449  Details on how to create a table float can be found in the files 
35450 \family typewriter
35451 ws-ijmpc.tex
35452 \family default
35453  and 
35454 \family typewriter
35455 ws-ijmpd.tex
35456 \family default
35457 ,
35458  included in the corresponding packages.
35459 \end_layout
35460
35461 \begin_layout Standard
35462
35463 \change_deleted 564990737 1669755802
35464 Preparing a paper for submission
35465 \end_layout
35466
35467 \begin_layout Standard
35468
35469 \change_deleted 564990737 1669755802
35470 Before you submit your paper you must export the \SpecialChar LyX
35471  document as a \SpecialChar LaTeX
35472  file (
35473 \family sans
35474 File\SpecialChar menuseparator
35475 Export\SpecialChar menuseparator
35476 \SpecialChar LaTeX
35477
35478 \family default
35479 )
35480 \begin_inset Foot
35481 status open
35482
35483 \begin_layout Plain Layout
35484 Actually you have the choice between \SpecialChar LaTeX
35485  (plain) and pdflatex.
35486  If you intend to use pdflatex to prepare the paper,
35487  you should use the pdflatex option so that included graphics are converted to PDF format,
35488  ready for use by pdflatex.
35489 \end_layout
35490
35491 \end_inset
35492
35493 ,
35494  then make the following changes to the resulting 
35495 \family typewriter
35496 .tex
35497 \family default
35498  file.
35499 \end_layout
35500
35501 \begin_layout Enumerate
35502
35503 \change_deleted 564990737 1669755802
35504 Remove the comment lines before the 
35505 \family typewriter
35506
35507 \backslash
35508 documentclass
35509 \family default
35510  command.
35511 \end_layout
35512
35513 \begin_layout Enumerate
35514
35515 \change_deleted 564990737 1669755802
35516 Remove everything between (and including) the 
35517 \family typewriter
35518
35519 \backslash
35520 makeatletter
35521 \family default
35522  and 
35523 \family typewriter
35524
35525 \backslash
35526 makeatother
35527 \family default
35528  commands,
35529  except for any commands you specifically put into the \SpecialChar LaTeX
35530  preamble.
35531 \end_layout
35532
35533 \begin_layout Standard
35534
35535 \change_deleted 564990737 1672743015
35536 The modified 
35537 \family typewriter
35538 .tex
35539 \family default
35540  file should be saved and processed through \SpecialChar LaTeX
35541  as many times as necessary.
35542  You may also want to check the resulting 
35543 \family typewriter
35544 .dvi
35545 \family default
35546  document.
35547 \end_layout
35548
35549 \begin_layout Standard
35550
35551 \change_deleted 564990737 1669801478
35552 iopart
35553 \end_layout
35554
35555 \begin_layout Standard
35556
35557 \change_deleted 564990737 1669801478
35558 by 
35559 \noun on
35560 Uwe Stöhr
35561 \end_layout
35562
35563 \begin_layout Standard
35564
35565 \change_deleted 564990737 1669801478
35566 Overview
35567 \end_layout
35568
35569 \begin_layout Standard
35570
35571 \change_deleted 564990737 1669801478
35572 The iopart package provides a document class to create electronic manuscript submission to the journals published by the Institute of Physics.
35573  Instructions for the authors how to create a paper using the iopart class can be downloaded together with the iopart package from the site 
35574 \begin_inset Flex URL
35575 status collapsed
35576
35577 \begin_layout Plain Layout
35578
35579 ftp://ftp.iop.org/pub/journals/latex2e
35580 \end_layout
35581
35582 \end_inset
35583
35584 .
35585 \end_layout
35586
35587 \begin_layout Standard
35588
35589 \change_deleted 564990737 1669801478
35590 Writing a paper
35591 \end_layout
35592
35593 \begin_layout Standard
35594
35595 \change_deleted 564990737 1669801478
35596 The easiest way to write a paper is to start with the template 
35597 \emph on
35598 IOP-article.lyx
35599 \emph default
35600  that is available via 
35601 \family sans
35602 File\SpecialChar menuseparator
35603 New From Template
35604 \family default
35605  The template explains how to use the special text environments.
35606  Here are the most important advices:
35607 \end_layout
35608
35609 \begin_layout Itemize
35610
35611 \change_deleted 564990737 1669801478
35612 To be able to compile your document to a PDF,
35613  PS,
35614  or DVI,
35615  ensure that the no AMS packages are loaded in 
35616 \family sans
35617 Document\SpecialChar menuseparator
35618 Settings\SpecialChar menuseparator
35619 Math Options
35620 \family default
35621 !
35622 \end_layout
35623
35624 \begin_layout Itemize
35625
35626 \change_deleted 564990737 1669801478
35627
35628 \size normal
35629 The title environment defines the kind of your paper.
35630  So use one of the following environments for the title:
35631 \end_layout
35632
35633 \begin_deeper
35634 \begin_layout Itemize
35635
35636 \change_deleted 564990737 1669801478
35637
35638 \family sans
35639 \size normal
35640 Title
35641 \family default
35642  for a Paper
35643 \end_layout
35644
35645 \begin_layout Itemize
35646
35647 \change_deleted 564990737 1669801478
35648
35649 \family sans
35650 \size normal
35651 Review
35652 \family default
35653  for a Review
35654 \end_layout
35655
35656 \begin_layout Itemize
35657
35658 \change_deleted 564990737 1669801478
35659
35660 \family sans
35661 \size normal
35662 Topical
35663 \family default
35664  for a Topical review
35665 \end_layout
35666
35667 \begin_layout Itemize
35668
35669 \change_deleted 564990737 1669801478
35670
35671 \family sans
35672 \size normal
35673 Comment
35674 \family default
35675  for a Comment
35676 \end_layout
35677
35678 \begin_layout Itemize
35679
35680 \change_deleted 564990737 1669801478
35681
35682 \family sans
35683 \size normal
35684 Note
35685 \family default
35686  for a Note
35687 \end_layout
35688
35689 \begin_layout Itemize
35690
35691 \change_deleted 564990737 1669801478
35692
35693 \family sans
35694 \size normal
35695 Paper
35696 \family default
35697  for a Paper (same as Title)
35698 \end_layout
35699
35700 \begin_layout Itemize
35701
35702 \change_deleted 564990737 1669801478
35703
35704 \family sans
35705 \size normal
35706 Prelim
35707 \family default
35708  for a Preliminary communication
35709 \end_layout
35710
35711 \begin_layout Itemize
35712
35713 \change_deleted 564990737 1669801478
35714
35715 \family sans
35716 \size normal
35717 Rapid
35718 \family default
35719  for a Rapid communication
35720 \end_layout
35721
35722 \begin_layout Itemize
35723
35724 \change_deleted 564990737 1669801478
35725
35726 \family sans
35727 \size normal
35728 Letter
35729 \family default
35730  for a Letter to the editor
35731 \end_layout
35732
35733 \end_deeper
35734 \begin_layout Itemize
35735
35736 \change_deleted 564990737 1669801478
35737
35738 \size normal
35739 All title environments except of 
35740 \family sans
35741 Letter
35742 \family default
35743  can have an optional short title.
35744 \end_layout
35745
35746 \begin_layout Itemize
35747
35748 \change_deleted 564990737 1669801478
35749 There is a general title environment 
35750 \family sans
35751 Article
35752 \family default
35753  which is not directly supported by \SpecialChar LyX
35754 .
35755  This can be used as \SpecialChar TeX
35756  code when your document doesn't fit into one of the other title types.
35757 \end_layout
35758
35759 \begin_layout Standard
35760
35761 \change_deleted 564990737 1672743015
35762 For more informations like hints for special table and formula formatting,
35763  look at the IOP author guidelines.
35764 \end_layout
35765
35766 \begin_layout Standard
35767
35768 \change_deleted 564990737 1670317155
35769 Kluwer
35770 \end_layout
35771
35772 \begin_layout Standard
35773
35774 \change_deleted 564990737 1670317155
35775 by 
35776 \noun on
35777 Panayotis Papasotiriou
35778 \end_layout
35779
35780 \begin_layout Standard
35781
35782 \change_deleted 564990737 1670317155
35783 Overview
35784 \end_layout
35785
35786 \begin_layout Standard
35787
35788 \change_deleted 564990737 1670317155
35789 The Kluwer package is a set of macros produced by Kluwer Academic Publishers that facilitates electronic manuscript submission to the journals they publish.
35790  Most known of them (at least in my domain of interest) are 
35791 \emph on
35792 Astrophysics and Space Science
35793 \emph default
35794  and 
35795 \emph on
35796 Solar Physics
35797 \emph default
35798 ,
35799  but there are many others (see a complete list at 
35800 \begin_inset Flex URL
35801 status collapsed
35802
35803 \begin_layout Plain Layout
35804
35805 http://www.wkap.nl/jrnllist.htm/JRNLHOME
35806 \end_layout
35807
35808 \end_inset
35809
35810 ).
35811  The Kluwer package may be downloaded from the site 
35812 \begin_inset Flex URL
35813 status collapsed
35814
35815 \begin_layout Plain Layout
35816
35817 http://www.wkap.nl/kaphtml.htm/STYLEFILES
35818 \end_layout
35819
35820 \end_inset
35821
35822 .
35823  A complete user guide is contained in that package (but it can also be downloaded separately).
35824 \end_layout
35825
35826 \begin_layout Standard
35827
35828 \change_deleted 564990737 1670317155
35829 \SpecialChar LyX
35830  supports many features of the package but not everything.
35831  However,
35832  the \SpecialChar TeX
35833  code needed is reduced to some 
35834 \begin_inset Quotes eld
35835 \end_inset
35836
35837 peculiar
35838 \begin_inset Quotes erd
35839 \end_inset
35840
35841  commands of the package (see
35842 \begin_inset space ~
35843 \end_inset
35844
35845
35846 \begin_inset CommandInset ref
35847 LatexCommand ref
35848 reference "subsec:kluwer_peculiarities"
35849 nolink "false"
35850
35851 \end_inset
35852
35853 ).
35854  I have recently used \SpecialChar LyX
35855  to write an article submitted to the 
35856 \emph on
35857 Astrophysics and Space Science
35858 \emph default
35859  without any problem.
35860 \end_layout
35861
35862 \begin_layout Standard
35863
35864 \change_deleted 564990737 1670317155
35865 Writing a paper
35866 \end_layout
35867
35868 \begin_layout Standard
35869
35870 \change_deleted 564990737 1670317155
35871 The easiest way to write a paper is to start with the Kluwer template file.
35872  Click on 
35873 \family sans
35874 File\SpecialChar menuseparator
35875 New from
35876 \family default
35877  
35878 \family sans
35879 Template
35880 \family default
35881 ,
35882  then choose the 
35883 \family typewriter
35884 kluwer.lyx
35885 \family default
35886  template.
35887  This will give an (almost) empty document that includes the most common fields found in a manuscript and a short description of their use.
35888  As in most templates,
35889  simply overwrite the existing text (including the brackets,
35890  
35891 \family typewriter
35892 <>
35893 \family default
35894 ) with the correct information.
35895 \end_layout
35896
35897 \begin_layout Standard
35898
35899 \change_deleted 564990737 1670317155
35900 Preparing a paper for submission
35901 \end_layout
35902
35903 \begin_layout Standard
35904
35905 \change_deleted 564990737 1670317155
35906 As in the AAS\SpecialChar TeX
35907  package,
35908  before you submit your paper to a journal you must 
35909 \begin_inset Quotes eld
35910 \end_inset
35911
35912 postprocess
35913 \begin_inset Quotes erd
35914 \end_inset
35915
35916  it as follows.
35917 \end_layout
35918
35919 \begin_layout Enumerate
35920
35921 \change_deleted 564990737 1670317155
35922 Export your paper as a \SpecialChar LaTeX
35923  file.
35924  To do this,
35925  click on 
35926 \family sans
35927 File\SpecialChar menuseparator
35928 Export\SpecialChar menuseparator
35929 \SpecialChar LaTeX
35930
35931 \family default
35932 .
35933  
35934 \end_layout
35935
35936 \begin_layout Enumerate
35937
35938 \change_deleted 564990737 1670317155
35939 Edit the resulting 
35940 \family typewriter
35941 .tex
35942 \family default
35943  file with a text editor and make the following changes
35944 \end_layout
35945
35946 \begin_deeper
35947 \begin_layout Enumerate
35948
35949 \change_deleted 564990737 1670317155
35950 remove the comment lines before the 
35951 \family typewriter
35952
35953 \backslash
35954 documentclass
35955 \family default
35956  command,
35957 \end_layout
35958
35959 \begin_layout Enumerate
35960
35961 \change_deleted 564990737 1670317155
35962 remove everything between (and including) the 
35963 \family typewriter
35964
35965 \backslash
35966 makeatletter
35967 \family default
35968  and 
35969 \family typewriter
35970
35971 \backslash
35972 makeatother
35973 \family default
35974  commands,
35975  except for any commands you specifically put into the \SpecialChar LaTeX
35976  preamble.
35977 \end_layout
35978
35979 \begin_layout Standard
35980
35981 \change_deleted 564990737 1670317155
35982 Save the resulting 
35983 \family typewriter
35984 .tex
35985 \family default
35986  file.
35987 \end_layout
35988
35989 \end_deeper
35990 \begin_layout Enumerate
35991
35992 \change_deleted 564990737 1670317155
35993 Run the 
35994 \family typewriter
35995 .tex
35996 \family default
35997  file through \SpecialChar LaTeX
35998  as many times as necessary (usually up to three).
35999 \end_layout
36000
36001 \begin_layout Enumerate
36002
36003 \change_deleted 564990737 1670317155
36004 View the resulting 
36005 \family typewriter
36006 .dvi
36007 \family default
36008  document using,
36009  e.
36010 \begin_inset space \thinspace{}
36011 \end_inset
36012
36013 g.
36014 \begin_inset space \space{}
36015 \end_inset
36016
36017
36018 \family sans
36019 xdvi
36020 \family default
36021 ,
36022  and check if everything is OK (it should,
36023  if you didn't make any mistake).
36024 \end_layout
36025
36026 \begin_layout Standard
36027
36028 \change_deleted 564990737 1670317155
36029 \begin_inset Quotes eld
36030 \end_inset
36031
36032 Peculiarities
36033 \begin_inset Quotes erd
36034 \end_inset
36035
36036  of the Kluwer package
36037 \begin_inset CommandInset label
36038 LatexCommand label
36039 name "subsec:kluwer_peculiarities"
36040
36041 \end_inset
36042
36043
36044 \end_layout
36045
36046 \begin_layout Standard
36047
36048 \change_deleted 564990737 1670317155
36049 The Kluwer package has the following 
36050 \begin_inset Quotes eld
36051 \end_inset
36052
36053 peculiarities
36054 \begin_inset Quotes erd
36055 \end_inset
36056
36057 .
36058 \end_layout
36059
36060 \begin_layout Enumerate
36061
36062 \change_deleted 564990737 1670317155
36063 It is possible to write multiple articles in the same \SpecialChar LaTeX
36064  file
36065 \begin_inset Foot
36066 status collapsed
36067
36068 \begin_layout Plain Layout
36069 I can't imagine any good reason to do this.
36070 \end_layout
36071
36072 \end_inset
36073
36074 .
36075  Each article must be included in the environment 
36076 \begin_inset Quotes eld
36077 \end_inset
36078
36079 article
36080 \begin_inset Quotes erd
36081 \end_inset
36082
36083 .
36084  Unfortunately,
36085  this environment cannot be omitted,
36086  even if you write just one article.
36087  Therefore,
36088  each article starts with the command 
36089 \family typewriter
36090
36091 \backslash
36092 begin{article}
36093 \family default
36094  and,
36095  obviously,
36096  ends with the command 
36097 \family typewriter
36098
36099 \backslash
36100 end{article}
36101 \family default
36102 .
36103  Although this can be implemented in \SpecialChar LyX
36104 ,
36105  I didn't included it,
36106  since it looks ugly and can confuse the novice user.
36107  Therefore,
36108  you need to enter them directly and mark them as \SpecialChar LaTeX
36109  code (the well-known 
36110 \begin_inset Quotes eld
36111 \end_inset
36112
36113 \SpecialChar TeX
36114  code
36115 \begin_inset Quotes erd
36116 \end_inset
36117
36118 ).
36119 \end_layout
36120
36121 \begin_layout Enumerate
36122
36123 \change_deleted 564990737 1670317155
36124 Information given at the beginning of the article (i.
36125 \begin_inset space \thinspace{}
36126 \end_inset
36127
36128 e.
36129 \begin_inset space \space{}
36130 \end_inset
36131
36132 title,
36133  subtitle,
36134  author,
36135  institution,
36136  running title,
36137  running author,
36138  abstract and keywords) must be included in an environment called 
36139 \begin_inset Quotes eld
36140 \end_inset
36141
36142 opening
36143 \begin_inset Quotes erd
36144 \end_inset
36145
36146 .
36147  This is not implemented in \SpecialChar LyX
36148 ,
36149  so you must enter title,
36150  subtitle etc.
36151 \begin_inset space ~
36152 \end_inset
36153
36154 between two \SpecialChar TeX
36155  code lines (
36156 \family typewriter
36157
36158 \backslash
36159 begin{opening}
36160 \family default
36161  and 
36162 \family typewriter
36163
36164 \backslash
36165 end{opening}
36166 \family default
36167 ).
36168 \end_layout
36169
36170 \begin_layout Enumerate
36171
36172 \change_deleted 564990737 1670317155
36173 According to the user manual,
36174  the label of each bibliography item must be written as 
36175 \family typewriter
36176
36177 \backslash
36178 protect
36179 \backslash
36180 citeauthoryear{
36181 \family default
36182 \emph on
36183 author(s)
36184 \family typewriter
36185 \emph default
36186 }{
36187 \family default
36188 \emph on
36189 year
36190 \family typewriter
36191 \emph default
36192 }
36193 \family default
36194 .
36195 \end_layout
36196
36197 \begin_layout Standard
36198
36199 \change_deleted 564990737 1670317155
36200 The 
36201 \family typewriter
36202 kluwer.lyx
36203 \family default
36204  template takes care of all these 
36205 \begin_inset Quotes eld
36206 \end_inset
36207
36208 peculiarities
36209 \begin_inset Quotes erd
36210 \end_inset
36211
36212 .
36213  If you start a new paper using this template you don't need to do anything special.
36214  Just 
36215 \end_layout
36216
36217 \begin_layout Enumerate
36218
36219 \change_deleted 564990737 1670317155
36220 don't delete the \SpecialChar TeX
36221  code included in the template,
36222  and
36223 \end_layout
36224
36225 \begin_layout Enumerate
36226
36227 \change_deleted 564990737 1670317155
36228 copy the example bibliography item included in the template and modify it as necessary to enter new bibliography items.
36229 \end_layout
36230
36231 \begin_layout Standard
36232
36233 \change_deleted 564990737 1671097446
36234 Paper
36235 \end_layout
36236
36237 \begin_layout Standard
36238
36239 \change_deleted 564990737 1671097446
36240 The document class 
36241 \family sans
36242 paper
36243 \family default
36244  provides an alternative to the standard 
36245 \family sans
36246 article
36247 \family default
36248  class.
36249  It provides similar functionality,
36250  but you might prefer this layout with sans serif sections,
36251  headings,
36252  and more.
36253 \end_layout
36254
36255 \begin_layout Standard
36256
36257 \change_deleted 564990737 1671097446
36258 Springer Journals (
36259 \family sans
36260 svjour
36261 \family default
36262 )
36263 \end_layout
36264
36265 \begin_layout Standard
36266
36267 \change_deleted 564990737 1671097446
36268 by 
36269 \noun on
36270 Martin Vermeer
36271 \end_layout
36272
36273 \begin_layout Standard
36274
36275 \change_deleted 564990737 1671097446
36276 Description
36277 \end_layout
36278
36279 \begin_layout Standard
36280
36281 \change_deleted 564990737 1671097446
36282 These are the layout files for some of the journal formats used by Springer Verlag and listed on 
36283 \begin_inset Flex URL
36284 status collapsed
36285
36286 \begin_layout Plain Layout
36287
36288 http://www.springer.de/author/tex/help-journals.html
36289 \end_layout
36290
36291 \end_inset
36292
36293 ,
36294  where you should also go to fetch the class files (yes,
36295  these are \SpecialChar LaTeX2e
36296  now!).
36297  It is a modular system:
36298  the things common to all journals are implemented in 
36299 \family typewriter
36300 svjour.inc
36301 \family default
36302 ,
36303  which journal-specific layout files (such as,
36304  e.
36305 \begin_inset space \thinspace{}
36306 \end_inset
36307
36308 g.
36309 \begin_inset space \space{}
36310 \end_inset
36311
36312
36313 \family typewriter
36314 svjog.layout
36315 \family default
36316  for Journal of Geodesy) can include.
36317 \end_layout
36318
36319 \begin_layout Standard
36320
36321 \change_deleted 564990737 1671097446
36322 This means that implementing support for any other Springer journal on this list is as simple as writing your own 
36323 \family typewriter
36324 sv
36325 \family default
36326 <myjournal>
36327 \family typewriter
36328 .layout
36329 \family default
36330  file following the outline given in 
36331 \family typewriter
36332 svjog.layout
36333 \family default
36334 .
36335  
36336 \end_layout
36337
36338 \begin_layout Standard
36339
36340 \change_deleted 564990737 1671097446
36341 It is reasonably well tested only for the Journal of Geodesy.
36342  
36343 \family typewriter
36344 svjour
36345 \family default
36346  and 
36347 \family typewriter
36348 svjog
36349 \family default
36350  come with the standard \SpecialChar LyX
36351  distribution.
36352  Install the relevant class file (downloaded from Springer) in a proper directory,
36353  reconfigure \SpecialChar LaTeX
36354  (in the te\SpecialChar TeX
36355  case by running 
36356 \family typewriter
36357 texhash
36358 \family default
36359 ,
36360  as root if necessary —
36361  doesn't \SpecialChar LyX
36362  take care of this?),
36363  reconfigure \SpecialChar LyX
36364  and it should work.
36365 \end_layout
36366
36367 \begin_layout Standard
36368
36369 \change_deleted 564990737 1671097446
36370 New styles
36371 \end_layout
36372
36373 \begin_layout Standard
36374
36375 \change_deleted 564990737 1671097446
36376 A large number of theorem-like styles —
36377  
36378 \family sans
36379 Claim,
36380  Conjecture,
36381
36382 \family default
36383  
36384 \family sans
36385 \SpecialChar ldots
36386 Theorem
36387 \family default
36388 .
36389 \end_layout
36390
36391 \begin_layout Standard
36392
36393 \change_deleted 564990737 1671097446
36394
36395 \family sans
36396 Headnote,
36397  Dedication,
36398  Subtitle,
36399  Running_\SpecialChar LaTeX
36400 _Title,
36401  Author_Running,
36402  Institute,
36403  Mail,
36404  Offprints,
36405  Keywords,
36406  Acknowledgements,
36407  Acknowledgement
36408 \family default
36409 .
36410  See the Springer class file documentation for details.
36411 \end_layout
36412
36413 \begin_layout Standard
36414
36415 \change_deleted 564990737 1671097446
36416 Supported journals
36417 \end_layout
36418
36419 \begin_layout Itemize
36420
36421 \change_deleted 564990737 1671097446
36422
36423 \emph on
36424 Journal of Geodesy
36425 \emph default
36426 :
36427  
36428 \family typewriter
36429 svjog.layout
36430 \family default
36431  —
36432  Martin Vermeer
36433 \end_layout
36434
36435 \begin_layout Itemize
36436
36437 \change_deleted 564990737 1671097446
36438
36439 \emph on
36440 Probability Theory and Related Fields
36441 \emph default
36442 :
36443  
36444 \family typewriter
36445 svprobth.layout
36446 \family default
36447  —
36448  Jean-Marc Lasgouttes
36449 \end_layout
36450
36451 \begin_layout Standard
36452
36453 \change_deleted 564990737 1671097446
36454 Add your own,
36455  it isn't so hard!
36456 \end_layout
36457
36458 \begin_layout Standard
36459
36460 \change_deleted 564990737 1671097446
36461 Credits
36462 \end_layout
36463
36464 \begin_layout Standard
36465
36466 \change_deleted 564990737 1671097446
36467 These files are partly based on the older 
36468 \family typewriter
36469 ejour2.layout
36470 \family default
36471 ,
36472  which was again based on a tinkered-with version of an old \SpecialChar LaTeX
36473  2.09 style file from Springer.
36474  All this,
36475  and the 
36476 \family typewriter
36477 ejour2
36478 \family default
36479  layout,
36480  are now defunct.
36481  Jean-Marc Lasgouttes helped out big in making me find my way around the \SpecialChar LyX
36482  layout file mechanism.
36483 \end_layout
36484
36485 \begin_layout Standard
36486
36487 \change_deleted 564990737 1671097446
36488 Bugs
36489 \end_layout
36490
36491 \begin_layout Standard
36492
36493 \change_deleted 564990737 1671097446
36494 Probably.
36495  But probably less than in the old hacked-\SpecialChar LaTeX
36496  
36497 \family typewriter
36498 ejour2
36499 \family default
36500 .
36501 \end_layout
36502
36503 \begin_layout Chapter
36504 \SpecialChar LyX
36505  Features needing Extra Software
36506 \end_layout
36507
36508 \begin_layout Section
36509 Checking \SpecialChar TeX
36510
36511 \end_layout
36512
36513 \begin_layout Standard
36514 by 
36515 \noun on
36516 Asger Alstrup
36517 \end_layout
36518
36519 \begin_layout Subsection
36520 Introduction
36521 \end_layout
36522
36523 \begin_layout Standard
36524 If you have the 
36525 \family typewriter
36526 chktex
36527 \family default
36528  program installed
36529 \begin_inset Foot
36530 status collapsed
36531
36532 \begin_layout Plain Layout
36533
36534 \family typewriter
36535 chktex
36536 \family default
36537  is not yet available when you are using the \SpecialChar LaTeX
36538  distribution MiK\SpecialChar TeX
36539 .
36540 \end_layout
36541
36542 \end_inset
36543
36544 ,
36545  you'll find in the 
36546 \family sans
36547 Tools
36548 \family default
36549  menu the entry:
36550  
36551 \family sans
36552 Check
36553 \begin_inset space ~
36554 \end_inset
36555
36556 TeX
36557 \family default
36558 .
36559  You can get 
36560 \family typewriter
36561 chktex
36562 \family default
36563  from CTAN,
36564 \begin_inset Newline newline
36565 \end_inset
36566
36567
36568 \begin_inset CommandInset href
36569 LatexCommand href
36570 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
36571 literal "false"
36572
36573 \end_inset
36574
36575 .
36576 \end_layout
36577
36578 \begin_layout Standard
36579 The 
36580 \family sans
36581 Chk\SpecialChar TeX
36582
36583 \family default
36584  package is a program that was written by 
36585 \begin_inset Flex Noun
36586 status collapsed
36587
36588 \begin_layout Plain Layout
36589 Jens T.
36590 \begin_inset space ~
36591 \end_inset
36592
36593 Berger Thielemann
36594 \end_layout
36595
36596 \end_inset
36597
36598  in frustration because some constructs in \SpecialChar LaTeX
36599  are sometimes non-intuitive,
36600  and easy to forget.
36601  The program runs over your \SpecialChar LaTeX
36602  file,
36603  checks the integrity of the file,
36604  and flags some common errors.
36605  In other technical words,
36606  it is 
36607 \family typewriter
36608 lint
36609 \family default
36610  for \SpecialChar LaTeX
36611 .
36612 \end_layout
36613
36614 \begin_layout Standard
36615 Well,
36616  what is a syntax checker doing in \SpecialChar LyX
36617  which is supposed to produce correct \SpecialChar LaTeX
36618  anyways?
36619  The answer is simple:
36620  Just as 
36621 \family typewriter
36622 Lint
36623 \family default
36624  not only checks the 
36625 \emph on
36626 syntax
36627 \emph default
36628  of C programs,
36629  but also does 
36630 \emph on
36631 semantic
36632 \emph default
36633  checks for type-errors,
36634  
36635 \family sans
36636 Chk\SpecialChar TeX
36637
36638 \family default
36639  catches some common 
36640 \emph on
36641 typographic
36642 \emph default
36643  errors,
36644  in addition to the syntactical ones.
36645  Specifically,
36646  
36647 \family sans
36648 Chk\SpecialChar TeX
36649
36650 \family default
36651  is capable of detecting several common errors,
36652  such as
36653 \end_layout
36654
36655 \begin_layout Itemize
36656 Ellipsis detection:
36657 \begin_inset Newline newline
36658 \end_inset
36659
36660 Use \SpecialChar ldots
36661  instead of ...
36662 \end_layout
36663
36664 \begin_layout Itemize
36665 No space in front of/after parenthesis:
36666 \begin_inset Newline newline
36667 \end_inset
36668
36669 ( wrong spacing )
36670 \end_layout
36671
36672 \begin_layout Itemize
36673 Enforcement of normal space after common abbreviations:
36674 \begin_inset Newline newline
36675 \end_inset
36676
36677 e.
36678 \begin_inset space \thinspace{}
36679 \end_inset
36680
36681 g.
36682 \begin_inset space \space{}
36683 \end_inset
36684
36685 is too wide spacing.
36686 \end_layout
36687
36688 \begin_layout Itemize
36689 Enforcement of end-of-sentence space when the last sentence ends with a capital letter:
36690 \begin_inset Newline newline
36691 \end_inset
36692
36693 This is a TEST.
36694  And this is wrong spacing.
36695 \end_layout
36696
36697 \begin_layout Itemize
36698 Space in front of labels and similar commands:
36699 \begin_inset Newline newline
36700 \end_inset
36701
36702 The label should stick right up to the text to avoid falling to a wrong page.
36703  
36704 \begin_inset CommandInset label
36705 LatexCommand label
36706 name "sec:chktex"
36707
36708 \end_inset
36709
36710  
36711 \begin_inset Foot
36712 status collapsed
36713
36714 \begin_layout Plain Layout
36715 This footnote is in danger of falling off to a wrong page
36716 \end_layout
36717
36718 \end_inset
36719
36720  The label is separated too much.
36721 \end_layout
36722
36723 \begin_layout Itemize
36724 Space in front of references,
36725  instead of hard spaces:
36726 \begin_inset Newline newline
36727 \end_inset
36728
36729 If you have bad luck,
36730  the text will break right between the referenced text and reference number,
36731  and that's a pity.
36732  See section 
36733 \begin_inset CommandInset ref
36734 LatexCommand ref
36735 reference "sec:chktex"
36736 nolink "false"
36737
36738 \end_inset
36739
36740 .
36741 \end_layout
36742
36743 \begin_layout Itemize
36744 Use of 
36745 \begin_inset Quotes eld
36746 \end_inset
36747
36748 x
36749 \begin_inset Quotes erd
36750 \end_inset
36751
36752  instead of 
36753 \begin_inset Formula $\times$
36754 \end_inset
36755
36756  between numbers:
36757 \begin_inset Newline newline
36758 \end_inset
36759
36760 2x2 looks cheap compared to 
36761 \begin_inset Formula $2\times2$
36762 \end_inset
36763
36764 .
36765 \end_layout
36766
36767 \begin_layout Standard
36768 and more \SpecialChar ldots
36769  It is an invaluable tool when you are 
36770 \begin_inset Quotes eld
36771 \end_inset
36772
36773 finishing up
36774 \begin_inset Quotes erd
36775 \end_inset
36776
36777  your document before printing,
36778  and you should run it right after the obligatory spelling check,
36779  and before you go fine tuning the typesetting.
36780 \end_layout
36781
36782 \begin_layout Subsection
36783 How to use it
36784 \end_layout
36785
36786 \begin_layout Standard
36787 If you have the program installed,
36788  usage is as simple as choosing 
36789 \family sans
36790 Tools\SpecialChar menuseparator
36791 Check
36792 \begin_inset space ~
36793 \end_inset
36794
36795 TeX
36796 \family default
36797 .
36798  This will make \SpecialChar LyX
36799  generate a \SpecialChar LaTeX
36800  file of your document,
36801  start 
36802 \family sans
36803 Chk\SpecialChar TeX
36804
36805 \family default
36806  to check it,
36807  and then make \SpecialChar LyX
36808  insert 
36809 \begin_inset Quotes eld
36810 \end_inset
36811
36812 error boxes
36813 \begin_inset Quotes erd
36814 \end_inset
36815
36816  with the warnings from 
36817 \family sans
36818 Chk\SpecialChar TeX
36819
36820 \family default
36821 ,
36822  if there were any.
36823  The warnings will be placed close to the point of the mistake,
36824  and you can quickly find them by using the 
36825 \family sans
36826 Navigate\SpecialChar menuseparator
36827 Error
36828 \family default
36829  menu item,
36830  or the shortcut key 
36831 \family sans
36832 C-g
36833 \family default
36834  from the default 
36835 \family typewriter
36836 cua
36837 \family default
36838  bind file.
36839  Open the error boxes by clicking on them with the mouse,
36840  or use the shortcut key 
36841 \family sans
36842 C-i
36843 \family default
36844  from 
36845 \family typewriter
36846 cua
36847 \family default
36848  bindings,
36849  or the corresponding 
36850 \family sans
36851 C-o
36852 \family default
36853  for the alternate 
36854 \family typewriter
36855 emacs
36856 \family default
36857  bind file.
36858  Read the warning and correct the mistake,
36859  if it is a mistake.
36860  If you have trouble understanding what the warning is about,
36861  you can safely ignore it.
36862  Remember that there is a hidden layer between the document on screen and the technical details in invoking 
36863 \family sans
36864 Chk\SpecialChar TeX
36865
36866 \family default
36867 ,
36868  and this gap can make some warnings seem arcane or just plain silly.
36869 \end_layout
36870
36871 \begin_layout Standard
36872 This document is an excellent testing bed for the feature,
36873  and it should provide quite a few warnings for you to fiddle with.
36874  Since computers are only so smart,
36875  expect most of the warnings to be false alarms,
36876  though.
36877 \end_layout
36878
36879 \begin_layout Subsection
36880 How to fine tune it
36881 \end_layout
36882
36883 \begin_layout Standard
36884 Sometimes,
36885  you'll find that 
36886 \family sans
36887 Chk\SpecialChar TeX
36888
36889 \family default
36890  makes more noise than suits your mood.
36891  Then you can choose not to use it,
36892  wait until your mood changes,
36893  or try to customize 
36894 \family sans
36895 Chk\SpecialChar TeX
36896
36897 \family default
36898  to get better along with you.
36899 \end_layout
36900
36901 \begin_layout Standard
36902 Although 
36903 \family sans
36904 Chk\SpecialChar TeX
36905
36906 \family default
36907  
36908 \emph on
36909 is
36910 \emph default
36911  very configurable and extensible,
36912  you should not expect to solve all problems with 
36913 \family sans
36914 Chk\SpecialChar TeX
36915
36916 \family default
36917  in \SpecialChar LyX
36918  this way.
36919  Since \SpecialChar LyX
36920  has to generate a somewhat special \SpecialChar LaTeX
36921  file to be able to match the line numbers from the 
36922 \family sans
36923 Chk\SpecialChar TeX
36924
36925 \family default
36926  output
36927 \begin_inset Foot
36928 status collapsed
36929
36930 \begin_layout Plain Layout
36931 You can inspect the specific output from 
36932 \family sans
36933 chktex
36934 \family default
36935  by using 
36936 \family sans
36937 Document\SpecialChar menuseparator
36938 \SpecialChar LaTeX
36939
36940 \begin_inset space ~
36941 \end_inset
36942
36943 Log
36944 \family default
36945  right after a 
36946 \family sans
36947 chktex
36948 \family default
36949  run.
36950 \end_layout
36951
36952 \end_inset
36953
36954  to the internal document structure,
36955  some of the warnings will not appear correctly.
36956  There are two things you can do about this:
36957 \end_layout
36958
36959 \begin_layout Itemize
36960 Fine tune the 
36961 \family sans
36962 Chk\SpecialChar TeX
36963
36964 \family default
36965  invocation command line in 
36966 \change_deleted -712698321 1674918035
36967
36968 \begin_inset Flex Noun
36969 status collapsed
36970
36971 \begin_layout Plain Layout
36972 Tools\SpecialChar menuseparator
36973 Preferences\SpecialChar menuseparator
36974 Output\SpecialChar menuseparator
36975 LaTeX\SpecialChar menuseparator
36976 CheckTeX command
36977 \end_layout
36978
36979 \end_inset
36980
36981
36982 \change_inserted -712698321 1674918035
36983
36984 \family sans
36985 Tools\SpecialChar menuseparator
36986 Preferences\SpecialChar menuseparator
36987 Output\SpecialChar menuseparator
36988 LaTeX\SpecialChar menuseparator
36989 CheckTeX command
36990 \change_unchanged
36991
36992 \family default
36993 ,
36994  or the global 
36995 \family sans
36996 Chk\SpecialChar TeX
36997
36998 \family default
36999  installation configuration file (usually with the file 
37000 \family typewriter
37001 chktexrc
37002 \family default
37003 ).
37004  See below to learn what warnings can be enabled and disabled on the command line.
37005 \end_layout
37006
37007 \begin_layout Itemize
37008 Export your document as a raw \SpecialChar LaTeX
37009  file using 
37010 \family sans
37011 File\SpecialChar menuseparator
37012 Export\SpecialChar menuseparator
37013 \SpecialChar LaTeX
37014
37015 \family default
37016  and run 
37017 \family typewriter
37018 chktex
37019 \family default
37020  manually on that.
37021  Invoked in this way,
37022  it can be a hassle to find the corresponding place in the document inside \SpecialChar LyX
37023 ,
37024  but with a little patience,
37025  you should be able to do it.
37026 \end_layout
37027
37028 \begin_layout Standard
37029 Here follows the warning messages that can be enabled and disabled in 
37030 \family sans
37031 Preferences
37032 \family default
37033 .
37034  Use 
37035 \family typewriter
37036 -n#
37037 \family default
37038  to disable a warning,
37039  and 
37040 \family typewriter
37041 -w#
37042 \family default
37043  to enable a warning.
37044  The emphasized entries are disabled by default,
37045  because the default is "
37046 \family typewriter
37047 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
37048 \family default
37049 ".
37050 \end_layout
37051
37052 \begin_layout Standard
37053 Notice that you should only use the options that enable and disable warnings,
37054  because \SpecialChar LyX
37055  relies on some of the other command line parameters to be set in a specific way to have a chance to communicate with 
37056 \family typewriter
37057 chktex
37058 \family default
37059 .
37060 \end_layout
37061
37062 \begin_layout Enumerate
37063
37064 \size small
37065 \emph on
37066 Command terminated with space.
37067 \end_layout
37068
37069 \begin_layout Enumerate
37070
37071 \size small
37072 Non-breaking space (
37073 \begin_inset Quotes eld
37074 \end_inset
37075
37076
37077 \family typewriter
37078 ~
37079 \family default
37080
37081 \begin_inset Quotes erd
37082 \end_inset
37083
37084 ) should have been used.
37085 \end_layout
37086
37087 \begin_layout Enumerate
37088
37089 \size small
37090 \emph on
37091 You should enclose the previous parenthesis with 
37092 \begin_inset Quotes eld
37093 \end_inset
37094
37095
37096 \family typewriter
37097 {}
37098 \family default
37099
37100 \begin_inset Quotes erd
37101 \end_inset
37102
37103 .
37104 \end_layout
37105
37106 \begin_layout Enumerate
37107
37108 \size small
37109 Italic correction (
37110 \begin_inset Quotes eld
37111 \end_inset
37112
37113
37114 \family typewriter
37115
37116 \backslash
37117 /
37118 \family default
37119
37120 \begin_inset Quotes erd
37121 \end_inset
37122
37123 ) found in non-italic buffer.
37124 \end_layout
37125
37126 \begin_layout Enumerate
37127
37128 \size small
37129 Italic correction (
37130 \begin_inset Quotes eld
37131 \end_inset
37132
37133
37134 \family typewriter
37135
37136 \backslash
37137 /
37138 \family default
37139
37140 \begin_inset Quotes erd
37141 \end_inset
37142
37143 ) found more than once.
37144 \end_layout
37145
37146 \begin_layout Enumerate
37147
37148 \size small
37149 \emph on
37150 No italic correction (
37151 \begin_inset Quotes eld
37152 \end_inset
37153
37154
37155 \family typewriter
37156
37157 \backslash
37158 /
37159 \family default
37160
37161 \begin_inset Quotes erd
37162 \end_inset
37163
37164 ) found.
37165 \end_layout
37166
37167 \begin_layout Enumerate
37168
37169 \size small
37170 Accent command 
37171 \begin_inset Quotes eld
37172 \end_inset
37173
37174
37175 \family typewriter
37176 cmd
37177 \family default
37178
37179 \begin_inset Quotes erd
37180 \end_inset
37181
37182  needs use of 
37183 \begin_inset Quotes eld
37184 \end_inset
37185
37186
37187 \family typewriter
37188 cmd
37189 \family default
37190
37191 \begin_inset Quotes erd
37192 \end_inset
37193
37194 .
37195 \end_layout
37196
37197 \begin_layout Enumerate
37198
37199 \size small
37200 Wrong length of dash may have been used.
37201 \end_layout
37202
37203 \begin_layout Enumerate
37204
37205 \size small
37206 \emph on
37207 \begin_inset Quotes eld
37208 \end_inset
37209
37210
37211 \family typewriter
37212 %s
37213 \family default
37214
37215 \begin_inset Quotes erd
37216 \end_inset
37217
37218  expected,
37219  found 
37220 \begin_inset Quotes eld
37221 \end_inset
37222
37223
37224 \family typewriter
37225 %s
37226 \family default
37227
37228 \begin_inset Quotes erd
37229 \end_inset
37230
37231 .
37232 \end_layout
37233
37234 \begin_layout Enumerate
37235
37236 \size small
37237 Solo 
37238 \begin_inset Quotes eld
37239 \end_inset
37240
37241
37242 \family typewriter
37243 %s
37244 \family default
37245
37246 \begin_inset Quotes erd
37247 \end_inset
37248
37249  found.
37250 \end_layout
37251
37252 \begin_layout Enumerate
37253
37254 \size small
37255 You should use 
37256 \begin_inset Quotes eld
37257 \end_inset
37258
37259
37260 \family typewriter
37261 %s
37262 \family default
37263
37264 \begin_inset Quotes erd
37265 \end_inset
37266
37267  to achieve an ellipsis.
37268 \end_layout
37269
37270 \begin_layout Enumerate
37271
37272 \size small
37273 Inter-word spacing (
37274 \begin_inset Quotes eld
37275 \end_inset
37276
37277
37278 \family typewriter
37279
37280 \backslash
37281
37282 \family default
37283  
37284 \begin_inset Quotes eld
37285 \end_inset
37286
37287 ) should perhaps be used.
37288 \end_layout
37289
37290 \begin_layout Enumerate
37291
37292 \size small
37293 Inter-sentence spacing (
37294 \begin_inset Quotes eld
37295 \end_inset
37296
37297
37298 \family typewriter
37299
37300 \backslash
37301 @
37302 \family default
37303
37304 \begin_inset Quotes erd
37305 \end_inset
37306
37307 ) should perhaps be used.
37308 \end_layout
37309
37310 \begin_layout Enumerate
37311
37312 \size small
37313 Could not find argument for command.
37314 \end_layout
37315
37316 \begin_layout Enumerate
37317
37318 \size small
37319 No match found for 
37320 \begin_inset Quotes eld
37321 \end_inset
37322
37323
37324 \family typewriter
37325 %s
37326 \family default
37327
37328 \begin_inset Quotes erd
37329 \end_inset
37330
37331 .
37332 \end_layout
37333
37334 \begin_layout Enumerate
37335
37336 \size small
37337 Math mode still on at end of \SpecialChar LaTeX
37338  file.
37339 \end_layout
37340
37341 \begin_layout Enumerate
37342
37343 \size small
37344 Number of 
37345 \begin_inset Quotes eld
37346 \end_inset
37347
37348
37349 \family typewriter
37350 char
37351 \family default
37352
37353 \begin_inset Quotes erd
37354 \end_inset
37355
37356  doesn't match the number of 
37357 \begin_inset Quotes eld
37358 \end_inset
37359
37360
37361 \family typewriter
37362 char
37363 \family default
37364
37365 \begin_inset Quotes erd
37366 \end_inset
37367
37368 .
37369 \end_layout
37370
37371 \begin_layout Enumerate
37372
37373 \size small
37374 You should use either 
37375 \family typewriter
37376
37377 \begin_inset Quotes eld
37378 \end_inset
37379
37380
37381 \family default
37382  or 
37383 \family typewriter
37384
37385 \begin_inset Quotes erd
37386 \end_inset
37387
37388
37389 \family default
37390  as an alternative to 
37391 \begin_inset Quotes eld
37392 \end_inset
37393
37394
37395 \family typewriter
37396 "
37397 \family default
37398
37399 \begin_inset Quotes erd
37400 \end_inset
37401
37402 .
37403 \end_layout
37404
37405 \begin_layout Enumerate
37406
37407 \size small
37408 You should use "
37409 \family typewriter
37410 '
37411 \family default
37412 " (ASCII 39) instead of "
37413 \family typewriter
37414 ´
37415 \family default
37416 " (ASCII 180).
37417 \end_layout
37418
37419 \begin_layout Enumerate
37420
37421 \size small
37422 User-specified pattern found.
37423 \end_layout
37424
37425 \begin_layout Enumerate
37426
37427 \size small
37428 This command might not be intended.
37429 \end_layout
37430
37431 \begin_layout Enumerate
37432
37433 \size small
37434 \emph on
37435 Comment displayed.
37436 \end_layout
37437
37438 \begin_layout Enumerate
37439
37440 \size small
37441 Either 
37442 \family typewriter
37443 ''
37444 \backslash
37445 ,'
37446 \family default
37447  or 
37448 \family typewriter
37449 '
37450 \backslash
37451 ,''
37452 \family default
37453  will look better.
37454 \end_layout
37455
37456 \begin_layout Enumerate
37457
37458 \size small
37459 Delete this space to maintain correct page references.
37460 \end_layout
37461
37462 \begin_layout Enumerate
37463
37464 \size small
37465 \emph on
37466 You might wish to put this between a pair of 
37467 \begin_inset Quotes eld
37468 \end_inset
37469
37470
37471 \family typewriter
37472 {}
37473 \family default
37474
37475 \begin_inset Quotes erd
37476 \end_inset
37477
37478 .
37479 \end_layout
37480
37481 \begin_layout Enumerate
37482
37483 \size small
37484 You ought to remove spaces in front of punctuation.
37485 \end_layout
37486
37487 \begin_layout Enumerate
37488
37489 \size small
37490 Could not execute \SpecialChar LaTeX
37491  command.
37492 \end_layout
37493
37494 \begin_layout Enumerate
37495
37496 \size small
37497 Don't use 
37498 \family typewriter
37499
37500 \backslash
37501 /
37502 \family default
37503  in front of small punctuation.
37504 \end_layout
37505
37506 \begin_layout Enumerate
37507
37508 \family typewriter
37509 \size small
37510 $
37511 \backslash
37512 times$
37513 \family default
37514  may look prettier here.
37515 \end_layout
37516
37517 \begin_layout Enumerate
37518
37519 \size small
37520 \emph on
37521 Multiple spaces detected in output.
37522 \end_layout
37523
37524 \begin_layout Enumerate
37525
37526 \size small
37527 This text may be ignored.
37528 \end_layout
37529
37530 \begin_layout Enumerate
37531
37532 \size small
37533 Use 
37534 \family typewriter
37535
37536 \begin_inset Quotes eld
37537 \end_inset
37538
37539
37540 \family default
37541  to begin quotation,
37542  not 
37543 \family typewriter
37544 '
37545 \family default
37546 .
37547 \end_layout
37548
37549 \begin_layout Enumerate
37550
37551 \size small
37552 Use 
37553 \family typewriter
37554 '
37555 \family default
37556  to end quotation,
37557  not 
37558 \family typewriter
37559
37560 \begin_inset Quotes eld
37561 \end_inset
37562
37563
37564 \family default
37565 .
37566 \end_layout
37567
37568 \begin_layout Enumerate
37569
37570 \size small
37571 Don't mix quotes.
37572 \end_layout
37573
37574 \begin_layout Enumerate
37575
37576 \size small
37577 You should perhaps use 
37578 \begin_inset Quotes eld
37579 \end_inset
37580
37581
37582 \family typewriter
37583 cmd
37584 \family default
37585
37586 \begin_inset Quotes erd
37587 \end_inset
37588
37589  instead.
37590 \end_layout
37591
37592 \begin_layout Enumerate
37593
37594 \size small
37595 You should put a space in front of/after parenthesis.
37596 \end_layout
37597
37598 \begin_layout Enumerate
37599
37600 \size small
37601 You should avoid spaces in front of/after parenthesis.
37602 \end_layout
37603
37604 \begin_layout Enumerate
37605
37606 \size small
37607 \emph on
37608 You should not use punctuation in front of/after quotes.
37609 \end_layout
37610
37611 \begin_layout Enumerate
37612
37613 \size small
37614 Double space found.
37615 \end_layout
37616
37617 \begin_layout Enumerate
37618
37619 \size small
37620 You should put punctuation outside inner/inside display math mode.
37621 \end_layout
37622
37623 \begin_layout Enumerate
37624
37625 \size small
37626 You ought to not use primitive \SpecialChar TeX
37627  in \SpecialChar LaTeX
37628  code.
37629 \end_layout
37630
37631 \begin_layout Enumerate
37632
37633 \size small
37634 You should remove spaces in front of 
37635 \begin_inset Quotes eld
37636 \end_inset
37637
37638
37639 \family typewriter
37640 %s
37641 \family default
37642
37643 \begin_inset Quotes erd
37644 \end_inset
37645
37646
37647 \end_layout
37648
37649 \begin_layout Enumerate
37650
37651 \size small
37652 \begin_inset Quotes eld
37653 \end_inset
37654
37655
37656 \family typewriter
37657 %s
37658 \family default
37659
37660 \begin_inset Quotes erd
37661 \end_inset
37662
37663  is normally not followed by 
37664 \begin_inset Quotes eld
37665 \end_inset
37666
37667
37668 \family typewriter
37669 %c
37670 \family default
37671
37672 \begin_inset Quotes erd
37673 \end_inset
37674
37675 .
37676 \end_layout
37677
37678 \begin_layout Standard
37679 In later versions of \SpecialChar LyX
37680 ,
37681  we hope to provide a more complete interface to this tool (and it's smaller cousin 
37682 \family typewriter
37683 lacheck
37684 \family default
37685 ) to exploit the full power of it.
37686  But it's not exactly useless as it is now:
37687  go try it on one of your existing documents of a certain length and be surprised.
37688 \end_layout
37689
37690 \begin_layout Section
37691 Version Control in \SpecialChar LyX
37692
37693 \end_layout
37694
37695 \begin_layout Standard
37696 by
37697 \noun on
37698  Lars Gullik Bjønnes 
37699 \noun default
37700 and 
37701 \noun on
37702 Pavel Sanda
37703 \end_layout
37704
37705 \begin_layout Subsection
37706 Introduction
37707 \end_layout
37708
37709 \begin_layout Standard
37710 \SpecialChar LyX
37711  supports some of the most basic RCS/CVS/SVN/GIT commands.
37712  If you need something a bit more sophisticated you will have to do that manually in a terminal
37713 \change_inserted 5863208 1685691238
37714  or your favourite client
37715 \change_unchanged
37716 .
37717 \end_layout
37718
37719 \begin_layout Standard
37720 Also note that CVS support is not as good as subversion support,
37721  so we advise using SVN instead.
37722  A good place to start learning Subversion is the SVN Book
37723 \begin_inset Foot
37724 status collapsed
37725
37726 \begin_layout Plain Layout
37727 \begin_inset CommandInset href
37728 LatexCommand href
37729 target "http://svnbook.red-bean.com/"
37730 literal "false"
37731
37732 \end_inset
37733
37734
37735 \end_layout
37736
37737 \end_inset
37738
37739 .
37740  In the case of RCS you should read 
37741 \begin_inset Quotes eld
37742 \end_inset
37743
37744 rcsintro
37745 \begin_inset Quotes erd
37746 \end_inset
37747
37748  (a man file,
37749  read it with 
37750 \family typewriter
37751 man rcsintro
37752 \family default
37753 ).
37754  This file describes all the basic features of RCS.
37755  You should especially notice the comment about a RCS directory,
37756  and the notion of a master RCS file (the file ending in 
37757 \family typewriter
37758 ,v
37759 \family default
37760 ).
37761 \end_layout
37762
37763 \begin_layout Standard
37764 Before you begin to use the version control features in \SpecialChar LyX
37765 ,
37766  you should be familiar with RCS/CVS/SVN/GIT usage.
37767  The implementation in \SpecialChar LyX
37768  assumes a recent version of the GNU RCS or CVS/SVN package —
37769  no guarantees are made for older versions.
37770  Most of the log messages are not currently displayed after operations —
37771  you can check them in the Messages pane if you are unsure.
37772  Regular users of version control will appreciate the VC toolbar,
37773  which can be enabled via 
37774 \family sans
37775 View\SpecialChar menuseparator
37776 Toolbars\SpecialChar menuseparator
37777 Version
37778 \begin_inset space ~
37779 \end_inset
37780
37781 Control
37782 \family default
37783 .
37784 \end_layout
37785
37786 \begin_layout Standard
37787 For introducing your own external commands consult 
37788 \begin_inset Flex Code
37789 status collapsed
37790
37791 \begin_layout Plain Layout
37792 vc-command
37793 \end_layout
37794
37795 \end_inset
37796
37797  in the manual 
37798 \emph on
37799 \SpecialChar LyX
37800  Functions
37801 \emph default
37802 .
37803 \end_layout
37804
37805 \begin_layout Standard
37806 It is strongly recommended to store documents in uncompressed format if using version control (uncheck 
37807 \family sans
37808 Document\SpecialChar menuseparator
37809 Compressed
37810 \family default
37811  if it is checked):
37812  Uncompressed LyX documents are text files and therefore for merging two different versions by version control systems.
37813  Compressed LyX documents are binary files,
37814  which cannot be merged by version control systems.
37815
37816 \change_inserted 5863208 1685692758
37817
37818 \family sans
37819  Also to avoid unnecessary merge conflicts we advise to disable document Document\SpecialChar menuseparator
37820 Settings\SpecialChar menuseparator
37821 Output\SpecialChar menuseparator
37822 Save transient properties when more users work on the same document.
37823 \change_unchanged
37824
37825 \end_layout
37826
37827 \begin_layout Subsection
37828 RCS commands in \SpecialChar LyX
37829
37830 \end_layout
37831
37832 \begin_layout Standard
37833 The following sections describe the RCS commands supported by \SpecialChar LyX
37834 .
37835  You can find them in the 
37836 \family sans
37837 File\SpecialChar menuseparator
37838 Version
37839 \begin_inset space ~
37840 \end_inset
37841
37842 Control
37843 \family default
37844  submenu.
37845  \SpecialChar LyX
37846  was tested against RCS 5.7/5.8
37847 \change_inserted 5863208 1685694069
37848 /5.10
37849 \change_unchanged
37850 .
37851 \end_layout
37852
37853 \begin_layout Subsubsection
37854
37855 \family sans
37856 Register
37857 \end_layout
37858
37859 \begin_layout Standard
37860 If your document is not under revision control,
37861  this is the only item shown in the menu.
37862  And if it is under revision control,
37863  the 
37864 \family sans
37865 Register
37866 \family default
37867  item is not visible.
37868  
37869 \end_layout
37870
37871 \begin_layout Standard
37872 This command registers your document with RCS (unless you are under the directory managed by CVS)\SpecialChar endofsentence
37873  You are asked interactively to supply an initial description of the document.
37874  The document is now set in Read-Only mode and you have to 
37875 \family sans
37876 Check
37877 \begin_inset space ~
37878 \end_inset
37879
37880 Out
37881 \begin_inset space ~
37882 \end_inset
37883
37884 For
37885 \begin_inset space ~
37886 \end_inset
37887
37888 Edit
37889 \family default
37890 ,
37891  before making any changes to it.
37892  A document under revision control has a 
37893 \begin_inset Quotes eld
37894 \end_inset
37895
37896 [RCS:<version> <locker>]
37897 \begin_inset Quotes erd
37898 \end_inset
37899
37900  item tagged to the filename in the minibuffer.
37901 \end_layout
37902
37903 \begin_layout Standard
37904 RCS command that is run:
37905 \end_layout
37906
37907 \begin_layout LyX-Code
37908
37909 \family typewriter
37910 ci -q -u -i -t-"<initial description>" <file-name>
37911 \end_layout
37912
37913 \begin_layout Standard
37914 Read 
37915 \family typewriter
37916 man ci
37917 \family default
37918  to understand the switches.
37919  
37920 \end_layout
37921
37922 \begin_layout Subsubsection
37923
37924 \family sans
37925 Check In Changes
37926 \end_layout
37927
37928 \begin_layout Standard
37929 When you are finished editing a file,
37930  you check in your changes.
37931  When you do this,
37932  you are asked for a description of the changes.
37933  This is stored in the history log.
37934  The version number is bumped,
37935  your changes are applied to the master RCS file,
37936  the document is unlocked and set to Read-Only mode.
37937 \end_layout
37938
37939 \begin_layout Itemize
37940 RCS command:
37941  
37942 \family typewriter
37943 ci -q -u -m"<description>" <file-name>
37944 \end_layout
37945
37946 \begin_layout Subsubsection
37947
37948 \family sans
37949 Check Out For Edit
37950 \end_layout
37951
37952 \begin_layout Standard
37953 By doing this you lock the document so that only you can edit it.
37954  This will also make the document Read-Write only for you.
37955  You will usually continue editing for a while and when you are finished you check in your changes.
37956  The status line is changed to reflect that you have locked the file.
37957 \end_layout
37958
37959 \begin_layout Itemize
37960 RCS command:
37961  
37962 \family typewriter
37963 co -q -l <file-name>
37964 \end_layout
37965
37966 \begin_layout Subsubsection
37967
37968 \family sans
37969 Revert To Repository Version
37970 \end_layout
37971
37972 \begin_layout Standard
37973 This will discard all changes made to the document since the last check in.
37974  You get a warning before changes are discarded.
37975 \end_layout
37976
37977 \begin_layout Itemize
37978 RCS command:
37979  
37980 \family typewriter
37981 co -f -u<version> <file-name>
37982 \end_layout
37983
37984 \begin_layout Subsubsection
37985
37986 \family sans
37987 Copy
37988 \end_layout
37989
37990 \begin_layout Standard
37991 This will create a copy of the current document.
37992  Since RCS does not support copy operations natively,
37993  the version history is not preserved,
37994  and the copy is added as a new file.
37995  It requires a clean document without any changes since the last checkin.
37996  You are asked for a file name and a description of the copy operation.
37997  After that the copy is created,
37998  both locally and in the repository.
37999  If the parent directories of the copied and original document differ,
38000  all relative paths of included files of the copy are adjusted (like in 
38001 \family sans
38002 File\SpecialChar menuseparator
38003 Save As
38004 \family default
38005 \SpecialChar ldots
38006 ).
38007  Finally,
38008  the copy is loaded instead of the original document.
38009 \end_layout
38010
38011 \begin_layout Labeling
38012 \labelwidthstring 00.00.0000
38013 RCS
38014 \begin_inset space ~
38015 \end_inset
38016
38017 commands:
38018  
38019 \begin_inset space ~
38020 \end_inset
38021
38022
38023 \begin_inset Newline newline
38024 \end_inset
38025
38026 Copy 
38027 \begin_inset Flex Code
38028 status collapsed
38029
38030 \begin_layout Plain Layout
38031
38032 \family typewriter
38033 \begin_inset Quotes qld
38034 \end_inset
38035
38036 <file-name>
38037 \begin_inset Quotes qld
38038 \end_inset
38039
38040
38041 \end_layout
38042
38043 \end_inset
38044
38045  to 
38046 \begin_inset Flex Code
38047 status collapsed
38048
38049 \begin_layout Plain Layout
38050
38051 \family typewriter
38052 \begin_inset Quotes qld
38053 \end_inset
38054
38055 <new-file-name>
38056 \begin_inset Quotes qld
38057 \end_inset
38058
38059
38060 \end_layout
38061
38062 \end_inset
38063
38064
38065 \begin_inset Newline newline
38066 \end_inset
38067
38068
38069 \begin_inset Flex Code
38070 status collapsed
38071
38072 \begin_layout Plain Layout
38073 ci -q -u 
38074 \family typewriter
38075 -i 
38076 \begin_inset Quotes qld
38077 \end_inset
38078
38079 <new-file-name>
38080 \begin_inset Quotes qld
38081 \end_inset
38082
38083
38084 \end_layout
38085
38086 \end_inset
38087
38088
38089 \end_layout
38090
38091 \begin_layout Subsubsection
38092
38093 \family sans
38094 Undo Last Checkin
38095 \end_layout
38096
38097 \begin_layout Standard
38098 This makes as if the last check in never happened.
38099  No changes are made to the document loaded into \SpecialChar LyX
38100 ,
38101  but the last version is removed from the master RCS file.
38102 \end_layout
38103
38104 \begin_layout Itemize
38105 RCS command:
38106  
38107 \family typewriter
38108 rcs -o<version> <file-name>
38109 \end_layout
38110
38111 \begin_layout Subsubsection
38112
38113 \family sans
38114 Show History
38115 \end_layout
38116
38117 \begin_layout Standard
38118 This shows the complete history of the RCS document.
38119  The output of 
38120 \family typewriter
38121 rlog <file-name>
38122 \family default
38123  is shown in a browser.
38124  See 
38125 \family typewriter
38126 man rlog
38127 \family default
38128  for more info.
38129 \end_layout
38130
38131 \begin_layout Subsubsection
38132 Revision info
38133 \end_layout
38134
38135 \begin_layout Standard
38136 \SpecialChar LyX
38137  supports RCS version number,
38138  author name,
38139  date and time of last commit.
38140  All those are extracted from 
38141 \family typewriter
38142 rlog -r <file-name>
38143 \family default
38144 .
38145  See 
38146 \begin_inset CommandInset ref
38147 LatexCommand ref
38148 reference "subsec:VCS-Revision-Information"
38149 nolink "false"
38150
38151 \end_inset
38152
38153  for details.
38154 \end_layout
38155
38156 \begin_layout Subsection
38157 CVS commands in \SpecialChar LyX
38158
38159 \end_layout
38160
38161 \begin_layout Standard
38162 A subset of CVS operations is supported by \SpecialChar LyX
38163 .
38164  You can find the commands in the 
38165 \family sans
38166 File\SpecialChar menuseparator
38167 Version
38168 \begin_inset space ~
38169 \end_inset
38170
38171 Control
38172 \family default
38173  submenu.
38174  The version control system SVN is more powerful,
38175  so please use it instead of CVS if possible.
38176 \end_layout
38177
38178 \begin_layout Subsubsection
38179
38180 \family sans
38181 General CVS usage
38182 \end_layout
38183
38184 \begin_layout Standard
38185 If you start from scratch with CVS you have to create your repository and checkout the working copy with external tools.
38186  If you're using a client-server setup you may need to login before doing the first repository checkout.
38187 \end_layout
38188
38189 \begin_layout Standard
38190 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.
38191  Standard CVS repositories don't operate with a file locking mechanism.
38192  This may be surprising,
38193  but conflicts only occur if people disagree on the proper content of the same part of a document.
38194  So,
38195  if co-workers are used to communicate regularly,
38196  these conflicts occur rarely.
38197  If they don't communicate they have a fundamental problem anyway.
38198  Nevertheless some people like to work with so called 
38199 \begin_inset Quotes eld
38200 \end_inset
38201
38202 reserved checkouts
38203 \begin_inset Quotes erd
38204 \end_inset
38205
38206 .
38207  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.
38208  When the changes are checked in the working copy returns to readonly state.
38209  With \SpecialChar LyX
38210  one has to edit the 
38211 \begin_inset Flex Code
38212 status collapsed
38213
38214 \begin_layout Plain Layout
38215 .cvsrc
38216 \end_layout
38217
38218 \end_inset
38219
38220  file and add the line 
38221 \begin_inset Flex Code
38222 status collapsed
38223
38224 \begin_layout Plain Layout
38225 cvs -r
38226 \end_layout
38227
38228 \end_inset
38229
38230  to work with reserved checkouts.
38231  The benefit is the possibility to see who is using a writable copy of some document.
38232  It's not guaranteed only one user makes a copy writable.
38233 \end_layout
38234
38235 \begin_layout Standard
38236 \SpecialChar LyX
38237  tries to guess if you're using reserved or non-reserved checkouts.
38238  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.
38239  When a reserved checkout is detected you have to use 
38240 \begin_inset Flex Noun
38241 status collapsed
38242
38243 \begin_layout Plain Layout
38244 Check Out
38245 \end_layout
38246
38247 \end_inset
38248
38249  to make your working copy writable if it's readonly.
38250  After doing so the 
38251 \begin_inset Flex Noun
38252 status collapsed
38253
38254 \begin_layout Plain Layout
38255 Check In
38256 \end_layout
38257
38258 \end_inset
38259
38260  operation is possible and that makes your working copy readonly again after transferring your changes to the repository.
38261 \end_layout
38262
38263 \begin_layout Standard
38264 More information about CVS can be found here 
38265 \begin_inset Flex URL
38266 status collapsed
38267
38268 \begin_layout Plain Layout
38269
38270 http://www.nongnu.org/cvs
38271 \end_layout
38272
38273 \end_inset
38274
38275  and here 
38276 \begin_inset Flex URL
38277 status collapsed
38278
38279 \begin_layout Plain Layout
38280
38281 http://ximbiot.com/cvs
38282 \end_layout
38283
38284 \end_inset
38285
38286 .
38287 \end_layout
38288
38289 \begin_layout Standard
38290 Read 
38291 \family typewriter
38292 man cvs
38293 \family default
38294  to understand the sub-commands and the switches mentioned below.
38295 \end_layout
38296
38297 \begin_layout Subsubsection
38298
38299 \family sans
38300 Register
38301 \end_layout
38302
38303 \begin_layout Standard
38304 If your document is not under revision control,
38305  this is the only item shown in the menu.
38306  And if it is under revision control,
38307  the 
38308 \family sans
38309 Register
38310 \family default
38311  item is not visible.
38312  
38313 \end_layout
38314
38315 \begin_layout Standard
38316 This command registers in CVS your document 
38317 \begin_inset Flex Strong
38318 status collapsed
38319
38320 \begin_layout Plain Layout
38321
38322 \emph on
38323 only
38324 \end_layout
38325
38326 \end_inset
38327
38328  in the case you have already the documents directory under CVS control (in particular 
38329 \family typewriter
38330 CVS/Entries
38331 \family default
38332  file exists).
38333  This means you have to create or checkout the archive by yourself using external tools.
38334  (In case you forget that step \SpecialChar LyX
38335  registers the document with RCS.)
38336 \end_layout
38337
38338 \begin_layout Standard
38339 Then you are asked interactively to supply an initial description of the document.
38340  Don't forget that registered file is not yet checked in.
38341 \end_layout
38342
38343 \begin_layout Standard
38344 CVS command that is run:
38345  
38346 \family typewriter
38347 cvs -q add -m"<entered message>" "<file-name>"
38348 \end_layout
38349
38350 \begin_layout Standard
38351 The term 
38352 \family typewriter
38353 "<file-name>"
38354 \family default
38355  above and for all other CVS commands is an abbreviation for 
38356 \begin_inset Quotes eld
38357 \end_inset
38358
38359 change the current working directory to file location and use the file name without path component as argument
38360 \begin_inset Quotes erd
38361 \end_inset
38362
38363 .
38364 \end_layout
38365
38366 \begin_layout Subsubsection
38367
38368 \family sans
38369 Check In Changes
38370 \end_layout
38371
38372 \begin_layout Standard
38373 When you are finished editing a file,
38374  you commit your changes.
38375  When you do this and you had changed the document,
38376  you are asked for a description of the changes.
38377  After that changes are written to the repository.
38378  In case you didn't change the document and a reserved checkout is detected the reservation made on 
38379 \begin_inset Flex Noun
38380 status collapsed
38381
38382 \begin_layout Plain Layout
38383 Check Out
38384 \end_layout
38385
38386 \end_inset
38387
38388  is undone.
38389 \end_layout
38390
38391 \begin_layout Labeling
38392 \labelwidthstring 00.00.0000
38393 CVS
38394 \begin_inset space ~
38395 \end_inset
38396
38397 command:
38398  
38399 \begin_inset space ~
38400 \end_inset
38401
38402
38403 \begin_inset Newline newline
38404 \end_inset
38405
38406
38407 \begin_inset Flex Code
38408 status collapsed
38409
38410 \begin_layout Plain Layout
38411 cvs 
38412 \family typewriter
38413 -q commit -m"<description>" "<file-name>"
38414 \end_layout
38415
38416 \end_inset
38417
38418  or
38419 \begin_inset Newline newline
38420 \end_inset
38421
38422
38423 \begin_inset Flex Code
38424 status collapsed
38425
38426 \begin_layout Plain Layout
38427 cvs -q unedit 
38428 \family typewriter
38429 "<file-name>"
38430 \end_layout
38431
38432 \end_inset
38433
38434
38435 \end_layout
38436
38437 \begin_layout Subsubsection
38438
38439 \family sans
38440 Check Out Changes
38441 \end_layout
38442
38443 \begin_layout Standard
38444 When you are sharing a repository with others,
38445  you may have to incorporate their changes into your working copy.
38446 \end_layout
38447
38448 \begin_layout Standard
38449 CVS command:
38450  
38451 \family typewriter
38452 cvs -q update "<file-name>"
38453 \end_layout
38454
38455 \begin_layout Standard
38456 If a readonly checkout is detected the working copy is made writable and reserved.
38457 \end_layout
38458
38459 \begin_layout Standard
38460 CVS command:
38461  
38462 \family typewriter
38463 cvs -q edit "<file-name>"
38464 \end_layout
38465
38466 \begin_layout Subsubsection
38467
38468 \family sans
38469 Revert To Repository Version
38470 \end_layout
38471
38472 \begin_layout Standard
38473 This will discard all changes made to the document since the last check in.
38474  You get a warning before changes are discarded.
38475  Firstly the file is deleted,
38476  secondly CVS update command is run.
38477 \end_layout
38478
38479 \begin_layout Standard
38480 CVS command:
38481  
38482 \family typewriter
38483 cvs -q update "<file-name>"
38484 \end_layout
38485
38486 \begin_layout Standard
38487 If a reserved checkout is detected and the working copy has no changes only the reservation is undone.
38488 \end_layout
38489
38490 \begin_layout Standard
38491 CVS command:
38492  
38493 \family typewriter
38494 cvs -q unedit "<file-name>"
38495 \end_layout
38496
38497 \begin_layout Subsubsection
38498
38499 \family sans
38500 Copy
38501 \end_layout
38502
38503 \begin_layout Standard
38504 This will create a copy of the current document.
38505  Since CVS does not support copy operations natively,
38506  the version history is not preserved,
38507  and the copy is added as a new file.
38508  It requires a clean document without any changes since the last checkin.
38509  You are asked for a file name and a description of the copy operation.
38510  After that the copy is created,
38511  both locally and in the repository.
38512  If the parent directories of the copied and original document differ,
38513  all relative paths of included files of the copy are adjusted (like in 
38514 \family sans
38515 File\SpecialChar menuseparator
38516 Save As
38517 \family default
38518 \SpecialChar ldots
38519 ).
38520  Finally,
38521  the copy is loaded instead of the original document.
38522 \end_layout
38523
38524 \begin_layout Labeling
38525 \labelwidthstring 00.00.0000
38526 CVS
38527 \begin_inset space ~
38528 \end_inset
38529
38530 commands:
38531  
38532 \begin_inset space ~
38533 \end_inset
38534
38535
38536 \begin_inset Newline newline
38537 \end_inset
38538
38539 Copy 
38540 \begin_inset Flex Code
38541 status collapsed
38542
38543 \begin_layout Plain Layout
38544 "<file-name>"
38545 \end_layout
38546
38547 \end_inset
38548
38549  to 
38550 \begin_inset Flex Code
38551 status collapsed
38552
38553 \begin_layout Plain Layout
38554 "<new-file-name>"
38555 \end_layout
38556
38557 \end_inset
38558
38559
38560 \begin_inset Newline newline
38561 \end_inset
38562
38563
38564 \begin_inset Flex Code
38565 status collapsed
38566
38567 \begin_layout Plain Layout
38568 cvs -q add "<new-file-name>"
38569 \end_layout
38570
38571 \end_inset
38572
38573
38574 \end_layout
38575
38576 \begin_layout Subsubsection
38577
38578 \family sans
38579 Rename
38580 \end_layout
38581
38582 \begin_layout Standard
38583 This will rename the current document.
38584  Since CVS does not support rename operations natively,
38585  the version history is not preserved,
38586  the renamed document is added as a new file,
38587  and the original document is deleted.
38588  It requires a clean document without any changes since the last checkin.
38589  You are asked for a file name and a description of the rename operation.
38590  After that the document is renamed,
38591  both locally and in the repository.
38592  If the parent directories of the new and old file names differ,
38593  all relative paths of included files are adjusted (like in 
38594 \family sans
38595 File\SpecialChar menuseparator
38596 Save As
38597 \family default
38598 \SpecialChar ldots
38599 ).
38600  Finally,
38601  the document is reloaded using the new name.
38602 \end_layout
38603
38604 \begin_layout Labeling
38605 \labelwidthstring 00.00.0000
38606 CVS
38607 \begin_inset space ~
38608 \end_inset
38609
38610 commands:
38611  
38612 \begin_inset space ~
38613 \end_inset
38614
38615
38616 \begin_inset Newline newline
38617 \end_inset
38618
38619 Rename 
38620 \begin_inset Flex Code
38621 status collapsed
38622
38623 \begin_layout Plain Layout
38624 "<file-name>"
38625 \end_layout
38626
38627 \end_inset
38628
38629  to 
38630 \begin_inset Flex Code
38631 status collapsed
38632
38633 \begin_layout Plain Layout
38634 "<new-file-name>"
38635 \end_layout
38636
38637 \end_inset
38638
38639
38640 \begin_inset Newline newline
38641 \end_inset
38642
38643
38644 \begin_inset Flex Code
38645 status collapsed
38646
38647 \begin_layout Plain Layout
38648 cvs -q add "<new-file-name>"
38649 \end_layout
38650
38651 \end_inset
38652
38653
38654 \begin_inset Newline newline
38655 \end_inset
38656
38657
38658 \begin_inset Flex Code
38659 status collapsed
38660
38661 \begin_layout Plain Layout
38662 cvs -q remove "<file-name>"
38663 \end_layout
38664
38665 \end_inset
38666
38667
38668 \end_layout
38669
38670 \begin_layout Subsubsection
38671 Update of the local directory checkout from repository
38672 \end_layout
38673
38674 \begin_layout Standard
38675 Once your documents gets more complex,
38676  containing sub-documents and pictures,
38677  including external 
38678 \begin_inset Flex Code
38679 status collapsed
38680
38681 \begin_layout Plain Layout
38682 .tex
38683 \end_layout
38684
38685 \end_inset
38686
38687  files and so on using version control becomes more complicated.
38688  \SpecialChar LyX
38689  supports updating the whole tree in which resides the document.
38690  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.
38691  You have to organize the files structure so that all external files are in the same directory or subdirectories of the document.
38692  It's good practice anyway to store multipart documents in an extra directory.
38693 \end_layout
38694
38695 \begin_layout Standard
38696 The 
38697 \begin_inset Flex Code
38698 status collapsed
38699
38700 \begin_layout Plain Layout
38701 Update local directory from repository
38702 \end_layout
38703
38704 \end_inset
38705
38706  command updates the whole directory.
38707  If local changes are detected user is warned before update starts.
38708  In case of merge conflicts both versions of the conflicting document parts are placed in the final document.
38709  You have to review and correct the result of the merge.
38710  You'll find the conflicts enclosed in pairs of 
38711 \begin_inset Flex Code
38712 status collapsed
38713
38714 \begin_layout Plain Layout
38715 <<<<<<<
38716 \end_layout
38717
38718 \end_inset
38719
38720  and 
38721 \begin_inset Flex Code
38722 status collapsed
38723
38724 \begin_layout Plain Layout
38725 >>>>>>>
38726 \end_layout
38727
38728 \end_inset
38729
38730  separated by 
38731 \begin_inset Flex Code
38732 status collapsed
38733
38734 \begin_layout Plain Layout
38735 =======
38736 \end_layout
38737
38738 \end_inset
38739
38740 .
38741  The first part is your version as before the update operation with the document name prepended.
38742  The second one is the repository version with the version number after the sequence of 
38743 \begin_inset Flex Code
38744 status collapsed
38745
38746 \begin_layout Plain Layout
38747 >
38748 \end_layout
38749
38750 \end_inset
38751
38752  signs.
38753 \end_layout
38754
38755 \begin_layout Labeling
38756 \labelwidthstring 00.00.0000
38757 CVS
38758 \begin_inset space ~
38759 \end_inset
38760
38761 commands:
38762  
38763 \begin_inset space ~
38764 \end_inset
38765
38766
38767 \begin_inset Newline newline
38768 \end_inset
38769
38770
38771 \begin_inset Flex Code
38772 status collapsed
38773
38774 \begin_layout Plain Layout
38775 cd $path;
38776  cvs diff 
38777 \family typewriter
38778 "."
38779 \end_layout
38780
38781 \end_inset
38782
38783  (Ask if changes are detected.)
38784 \begin_inset Newline newline
38785 \end_inset
38786
38787
38788 \begin_inset Flex Code
38789 status collapsed
38790
38791 \begin_layout Plain Layout
38792 cd $path;
38793  cvs -q update 
38794 \family typewriter
38795 "."
38796 \end_layout
38797
38798 \end_inset
38799
38800
38801 \end_layout
38802
38803 \begin_layout Standard
38804 where 
38805 \begin_inset Flex Code
38806 status collapsed
38807
38808 \begin_layout Plain Layout
38809 $path
38810 \end_layout
38811
38812 \end_inset
38813
38814  stands for the path to the document.
38815 \end_layout
38816
38817 \begin_layout Subsubsection
38818
38819 \family sans
38820 Show History
38821 \end_layout
38822
38823 \begin_layout Standard
38824 This shows the complete history of the CVS document.
38825  The output of 
38826 \family typewriter
38827 cvs log "<file-name>"
38828 \family default
38829  is shown in a browser.
38830 \end_layout
38831
38832 \begin_layout Subsubsection
38833 Revision info
38834 \end_layout
38835
38836 \begin_layout Standard
38837 \SpecialChar LyX
38838  supports CVS version number,
38839  author name,
38840  date and time of last commit.
38841  All those are extracted from 
38842 \family typewriter
38843 cvs log -r <file-name>
38844 \family default
38845 .
38846  See 
38847 \begin_inset CommandInset ref
38848 LatexCommand ref
38849 reference "subsec:VCS-Revision-Information"
38850 nolink "false"
38851
38852 \end_inset
38853
38854  for details.
38855 \end_layout
38856
38857 \begin_layout Subsection
38858 SVN commands in \SpecialChar LyX
38859
38860 \end_layout
38861
38862 \begin_layout Standard
38863 SVN is now partially supported by \SpecialChar LyX
38864 .
38865  You can find the commands in the 
38866 \family sans
38867 File\SpecialChar menuseparator
38868 Version
38869 \begin_inset space ~
38870 \end_inset
38871
38872 Control
38873 \family default
38874  submenu.
38875  Please note that if you use password protected access to repository via ssh,
38876  you will be asked in terminal window.
38877  \SpecialChar LyX
38878  was tested against SVN 1.5,
38879  1.6,
38880  1.7 and 1.8
38881 \begin_inset Foot
38882 status collapsed
38883
38884 \begin_layout Plain Layout
38885 Most of the commands will work with 1.4 too,
38886  see 
38887 \begin_inset CommandInset ref
38888 LatexCommand ref
38889 reference "subsec:SVN-Repo-Update"
38890 nolink "false"
38891
38892 \end_inset
38893
38894 .
38895  There seems to be currently unresolved permissions problem under SVN 1.8 with reverting changes when file is locked.
38896 \end_layout
38897
38898 \end_inset
38899
38900
38901 \end_layout
38902
38903 \begin_layout Subsubsection
38904
38905 \family sans
38906 Register
38907 \end_layout
38908
38909 \begin_layout Standard
38910 If your document is not under revision control,
38911  this is the only item shown in the menu.
38912  And if it is under revision control,
38913  the 
38914 \family sans
38915 Register
38916 \family default
38917  item is not visible.
38918 \end_layout
38919
38920 \begin_layout Standard
38921 This command registers in SVN your document ONLY in case you have already the documents directory under SVN control (in particular 
38922 \family typewriter
38923 .svn/entries
38924 \family default
38925  file exists).
38926  This means you have to checkout the archive by yourself.
38927 \end_layout
38928
38929 \begin_layout Standard
38930 Then you are asked interactively to supply an initial description of the document.
38931  Don't forget that registered file is not yet commited.
38932 \end_layout
38933
38934 \begin_layout Standard
38935 SVN command that is run:
38936  
38937 \family typewriter
38938 svn add -q 
38939 \begin_inset Quotes qld
38940 \end_inset
38941
38942 <file-name>
38943 \begin_inset Quotes qld
38944 \end_inset
38945
38946
38947 \end_layout
38948
38949 \begin_layout Standard
38950 Read 
38951 \family typewriter
38952 man svn
38953 \family default
38954  to understand the switches.
38955 \end_layout
38956
38957 \begin_layout Subsubsection
38958
38959 \family sans
38960 Check In Changes
38961 \end_layout
38962
38963 \begin_layout Standard
38964 When you are finished editing a file,
38965  you commit your changes.
38966  When you do this,
38967  you are asked for a description of the changes.
38968  After that changes are commited.
38969 \end_layout
38970
38971 \begin_layout Standard
38972 SVN command:
38973 \begin_inset Foot
38974 status collapsed
38975
38976 \begin_layout Plain Layout
38977 In case locking is not enabled.
38978  See Section 
38979 \begin_inset CommandInset ref
38980 LatexCommand ref
38981 reference "subsec:SVN-File-Locking"
38982 nolink "false"
38983
38984 \end_inset
38985
38986 .
38987 \end_layout
38988
38989 \end_inset
38990
38991  
38992 \family typewriter
38993 svn commit -q -m"<description>" <file-name>
38994 \end_layout
38995
38996 \begin_layout Subsubsection
38997
38998 \family sans
38999 Check Out For Edit
39000 \end_layout
39001
39002 \begin_layout Standard
39003 Updates the changes of this file from the repository.
39004  Be sure you understand SVN merging and conflicts resolving before using this function,
39005  because all conflicts has to be resolved manually by you!
39006 \end_layout
39007
39008 \begin_layout Standard
39009 SVN command:
39010 \begin_inset Foot
39011 status collapsed
39012
39013 \begin_layout Plain Layout
39014 Ditto.
39015 \end_layout
39016
39017 \end_inset
39018
39019  
39020 \family typewriter
39021 svn update --non-interactive 
39022 \begin_inset Quotes qld
39023 \end_inset
39024
39025 <file-name>
39026 \begin_inset Quotes qld
39027 \end_inset
39028
39029
39030 \end_layout
39031
39032 \begin_layout Subsubsection
39033
39034 \family sans
39035 Revert To Repository Version
39036 \end_layout
39037
39038 \begin_layout Standard
39039 This will discard all changes made to the document since the last check in.
39040  You get a warning before changes are discarded.
39041 \end_layout
39042
39043 \begin_layout Standard
39044 SVN command:
39045  
39046 \family typewriter
39047 svn revert -q 
39048 \begin_inset Quotes qld
39049 \end_inset
39050
39051 <file-name>
39052 \begin_inset Quotes qld
39053 \end_inset
39054
39055
39056 \end_layout
39057
39058 \begin_layout Subsubsection
39059
39060 \family sans
39061 Copy
39062 \end_layout
39063
39064 \begin_layout Standard
39065 This will create a copy of the current document including the version history.
39066  It requires a clean document without any changes since the last checkin.
39067  You are asked for a file name and a description of the copy operation.
39068  After that the copy is created,
39069  both locally and in the repository.
39070  If the parent directories of the copied and original document differ,
39071  all relative paths of included files of the copy are adjusted (like in 
39072 \family sans
39073 File\SpecialChar menuseparator
39074 Save As
39075 \family default
39076 \SpecialChar ldots
39077 ).
39078  Finally,
39079  the copy is loaded instead of the original document.
39080 \end_layout
39081
39082 \begin_layout Labeling
39083 \labelwidthstring 00.00.0000
39084 SVN
39085 \begin_inset space ~
39086 \end_inset
39087
39088 commands:
39089  
39090 \begin_inset space ~
39091 \end_inset
39092
39093
39094 \begin_inset Newline newline
39095 \end_inset
39096
39097
39098 \begin_inset Flex Code
39099 status collapsed
39100
39101 \begin_layout Plain Layout
39102 svn copy -q 
39103 \family typewriter
39104
39105 \begin_inset Quotes qld
39106 \end_inset
39107
39108 <file-name>
39109 \begin_inset Quotes qld
39110 \end_inset
39111
39112  
39113 \begin_inset Quotes qld
39114 \end_inset
39115
39116 <new-file-name>
39117 \begin_inset Quotes qld
39118 \end_inset
39119
39120
39121 \end_layout
39122
39123 \end_inset
39124
39125
39126 \begin_inset Newline newline
39127 \end_inset
39128
39129
39130 \begin_inset Flex Code
39131 status collapsed
39132
39133 \begin_layout Plain Layout
39134 svn commit
39135 \end_layout
39136
39137 \end_inset
39138
39139
39140 \end_layout
39141
39142 \begin_layout Subsubsection
39143
39144 \family sans
39145 Rename
39146 \end_layout
39147
39148 \begin_layout Standard
39149 This will rename the current document including the version history.
39150  It requires a clean document without any changes since the last checkin.
39151  You are asked for a file name and a description of the rename operation.
39152  After that the document is renamed,
39153  both locally and in the repository.
39154  If the parent directories of the new and old file names differ,
39155  all relative paths of included files are adjusted (like in 
39156 \family sans
39157 File\SpecialChar menuseparator
39158 Save As
39159 \family default
39160 \SpecialChar ldots
39161 ).
39162  Finally,
39163  the document is reloaded using the new name.
39164 \end_layout
39165
39166 \begin_layout Labeling
39167 \labelwidthstring 00.00.0000
39168 SVN
39169 \begin_inset space ~
39170 \end_inset
39171
39172 commands:
39173  
39174 \begin_inset space ~
39175 \end_inset
39176
39177
39178 \begin_inset Newline newline
39179 \end_inset
39180
39181
39182 \begin_inset Flex Code
39183 status collapsed
39184
39185 \begin_layout Plain Layout
39186 svn move -q 
39187 \family typewriter
39188
39189 \begin_inset Quotes qld
39190 \end_inset
39191
39192 <file-name>
39193 \begin_inset Quotes qld
39194 \end_inset
39195
39196  
39197 \begin_inset Quotes qld
39198 \end_inset
39199
39200 <new-file-name>
39201 \begin_inset Quotes qld
39202 \end_inset
39203
39204
39205 \end_layout
39206
39207 \end_inset
39208
39209
39210 \begin_inset Newline newline
39211 \end_inset
39212
39213
39214 \begin_inset Flex Code
39215 status collapsed
39216
39217 \begin_layout Plain Layout
39218 svn commit
39219 \end_layout
39220
39221 \end_inset
39222
39223
39224 \end_layout
39225
39226 \begin_layout Subsubsection
39227 \begin_inset CommandInset label
39228 LatexCommand label
39229 name "subsec:SVN-Repo-Update"
39230
39231 \end_inset
39232
39233 Update of the local directory checkout from repository
39234 \begin_inset Foot
39235 status collapsed
39236
39237 \begin_layout Plain Layout
39238 Note that this command will work only with subversion 
39239 \begin_inset Formula $\geqq1.5$
39240 \end_inset
39241
39242
39243 \end_layout
39244
39245 \end_inset
39246
39247
39248 \end_layout
39249
39250 \begin_layout Standard
39251 All the commands above have one shortcoming – they deal with the current document only.
39252  Once your document contains pictures,
39253  includes external 
39254 \begin_inset Flex Code
39255 status collapsed
39256
39257 \begin_layout Plain Layout
39258 .tex
39259 \end_layout
39260
39261 \end_inset
39262
39263  files and so on administration becomes more complicated.
39264  \SpecialChar LyX
39265  now supports updating the whole tree in which resides the document
39266 \begin_inset Foot
39267 status collapsed
39268
39269 \begin_layout Plain Layout
39270 One need to organize the files structure so that all external files are in the same directory or subdirectories of the document.
39271  
39272 \end_layout
39273
39274 \end_inset
39275
39276 .
39277  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.
39278  
39279 \end_layout
39280
39281 \begin_layout Standard
39282 \begin_inset Flex Code
39283 status collapsed
39284
39285 \begin_layout Plain Layout
39286 Update local directory from repository
39287 \end_layout
39288
39289 \end_inset
39290
39291  command updates the whole directory and in case of merge conflicts local version of the files are left,
39292  so no unintended data loss occurs.
39293  If local changes are detected user is warned before update starts.
39294 \end_layout
39295
39296 \begin_layout Labeling
39297 \labelwidthstring 00.00.0000
39298 SVN
39299 \begin_inset space ~
39300 \end_inset
39301
39302 commands:
39303  
39304 \begin_inset space ~
39305 \end_inset
39306
39307
39308 \begin_inset Newline newline
39309 \end_inset
39310
39311
39312 \begin_inset Flex Code
39313 status collapsed
39314
39315 \begin_layout Plain Layout
39316 svn diff $path
39317 \end_layout
39318
39319 \end_inset
39320
39321  (Ask if changes are detected.)
39322 \begin_inset Newline newline
39323 \end_inset
39324
39325
39326 \begin_inset Flex Code
39327 status collapsed
39328
39329 \begin_layout Plain Layout
39330 svn update --accept mine-full $path
39331 \end_layout
39332
39333 \end_inset
39334
39335
39336 \end_layout
39337
39338 \begin_layout Standard
39339 where 
39340 \begin_inset Flex Code
39341 status collapsed
39342
39343 \begin_layout Plain Layout
39344 $path
39345 \end_layout
39346
39347 \end_inset
39348
39349  stands for the path to the document.
39350 \end_layout
39351
39352 \begin_layout Subsubsection
39353
39354 \family sans
39355 Show History
39356 \end_layout
39357
39358 \begin_layout Standard
39359 This shows the complete history of the SVN document.
39360  The output of 
39361 \family typewriter
39362 svn log 
39363 \begin_inset Quotes qld
39364 \end_inset
39365
39366 <file-name>
39367 \begin_inset Quotes qld
39368 \end_inset
39369
39370
39371 \family default
39372  is shown in a browser.
39373 \end_layout
39374
39375 \begin_layout Subsubsection
39376 File Locking
39377 \begin_inset CommandInset label
39378 LatexCommand label
39379 name "subsec:SVN-File-Locking"
39380
39381 \end_inset
39382
39383
39384 \end_layout
39385
39386 \begin_layout Standard
39387 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.
39388  When such a conflict happens it needs manual resolving and one reasonable alternative is to provide some kind of locking mechanism,
39389  which guarantees that only one user is allowed to edit file at the given time.
39390 \end_layout
39391
39392 \begin_layout Standard
39393 SVN has two such mechanisms to provide mutual exclusivity for file access – locks and automatic setting of write permissions (see sec.
39394  
39395 \begin_inset CommandInset ref
39396 LatexCommand ref
39397 reference "subsec:Automatical-Locking-Property"
39398 nolink "false"
39399
39400 \end_inset
39401
39402 ) based on 
39403 \begin_inset Flex Code
39404 status collapsed
39405
39406 \begin_layout Plain Layout
39407 svn:needs-lock
39408 \end_layout
39409
39410 \end_inset
39411
39412  file svn property
39413 \begin_inset Foot
39414 status collapsed
39415
39416 \begin_layout Plain Layout
39417 \begin_inset Flex URL
39418 status open
39419
39420 \begin_layout Plain Layout
39421
39422 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
39423 \end_layout
39424
39425 \end_inset
39426
39427
39428 \end_layout
39429
39430 \end_inset
39431
39432 .
39433  If this property is detected for a given document \SpecialChar LyX
39434  starts to use SVN locks for document editing automatically and the whole check-in/out mechanism switches to the same regimen as for RCS.
39435  This in particular means there are two different modes of file use in \SpecialChar LyX
39436 :
39437 \end_layout
39438
39439 \begin_layout Itemize
39440 Unlocked state.
39441  The loaded file is in the read-only mode.
39442  For editing on needs to check-out.
39443  
39444 \emph on
39445 Check-out
39446 \emph default
39447  consists of updating from the repository and gaining write lock.
39448  If the lock is not possible to obtain,
39449  we remain in unlocked state.
39450 \end_layout
39451
39452 \begin_layout Itemize
39453 Locked state.
39454  The loaded file is in the 
39455 \begin_inset Quotes els
39456 \end_inset
39457
39458 normal
39459 \begin_inset Quotes ers
39460 \end_inset
39461
39462  edit mode.
39463  No other user is allowed to edit the file.
39464  
39465 \emph on
39466 Check-in
39467 \emph default
39468  consists of commiting changes and releasing write-lock.
39469  If no changes have been made to the document,
39470  no commit will be produced
39471 \begin_inset Foot
39472 status collapsed
39473
39474 \begin_layout Plain Layout
39475 Don't be puzzled by the fact that you will be asked for commit message anyway.
39476 \end_layout
39477
39478 \end_inset
39479
39480  and only the write-lock will be released.
39481 \end_layout
39482
39483 \begin_layout Standard
39484 SVN commands:
39485 \end_layout
39486
39487 \begin_layout Labeling
39488 \labelwidthstring 00.00.0000
39489 Check-in:
39490
39491 \family typewriter
39492  svn commit -q -m"<description>" "<file-name>"
39493 \begin_inset Newline newline
39494 \end_inset
39495
39496 svn unlock "<file-name>"
39497 \end_layout
39498
39499 \begin_layout Labeling
39500 \labelwidthstring 00.00.0000
39501 Check-out:
39502  
39503 \family typewriter
39504 svn update "<file-name>"
39505 \begin_inset Newline newline
39506 \end_inset
39507
39508 svn lock "<file-name>"
39509 \end_layout
39510
39511 \begin_layout Subsubsection
39512
39513 \family typewriter
39514 \begin_inset CommandInset label
39515 LatexCommand label
39516 name "subsec:Automatical-Locking-Property"
39517
39518 \end_inset
39519
39520
39521 \family default
39522 Automatic Locking Property
39523 \end_layout
39524
39525 \begin_layout Standard
39526 The above mentioned automatic setting of write permissions of the .lyx file can be set through
39527 \family sans
39528  File\SpecialChar menuseparator
39529 Version
39530 \begin_inset space ~
39531 \end_inset
39532
39533 Control\SpecialChar menuseparator
39534 Use Locking Property
39535 \family default
39536 .
39537  This command is active only when the file is not locked on the svn server (i.e.
39538  you need to check-out before proceeding).
39539 \end_layout
39540
39541 \begin_layout Labeling
39542 \labelwidthstring 00.00.0000
39543 SVN
39544 \begin_inset space ~
39545 \end_inset
39546
39547 commands:
39548 \end_layout
39549
39550 \begin_layout Labeling
39551 \labelwidthstring 00.00.0000
39552 Set:
39553
39554 \family typewriter
39555  svn propset svn:needs-lock ON "<file-name>"
39556 \end_layout
39557
39558 \begin_layout Labeling
39559 \labelwidthstring 00.00.0000
39560 Unset:
39561  
39562 \family typewriter
39563 svn propdel svn:needs-lock "<file-name>"
39564 \end_layout
39565
39566 \begin_layout Subsubsection
39567 \begin_inset CommandInset label
39568 LatexCommand label
39569 name "subsec:VCS-Revision-Information"
39570
39571 \end_inset
39572
39573 Revision Information in Documents
39574 \end_layout
39575
39576 \begin_layout Standard
39577 There are more possibilities how to activate revision information in our document.
39578 \end_layout
39579
39580 \begin_layout Itemize
39581 \SpecialChar LyX
39582  supports directly:
39583 \end_layout
39584
39585 \begin_deeper
39586 \begin_layout Itemize
39587 tree revision information (
39588 \begin_inset Flex Code
39589 status collapsed
39590
39591 \begin_layout Plain Layout
39592 vcs-tree-revision
39593 \end_layout
39594
39595 \end_inset
39596
39597 ).
39598  The result is the output of the 
39599 \begin_inset Flex Code
39600 status collapsed
39601
39602 \begin_layout Plain Layout
39603 svnversion
39604 \end_layout
39605
39606 \end_inset
39607
39608  command,
39609  the following table gives you an idea,
39610  how to read the results.
39611 \end_layout
39612
39613 \begin_layout Standard
39614 \align center
39615 \begin_inset Tabular
39616 <lyxtabular version="3" rows="6" columns="2">
39617 <features tabularvalignment="middle">
39618 <column alignment="left" valignment="top">
39619 <column alignment="left" valignment="top">
39620 <row>
39621 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39622 \begin_inset Text
39623
39624 \begin_layout Plain Layout
39625
39626 \series bold
39627 Output
39628 \end_layout
39629
39630 \end_inset
39631 </cell>
39632 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39633 \begin_inset Text
39634
39635 \begin_layout Plain Layout
39636
39637 \series bold
39638 Meaning
39639 \end_layout
39640
39641 \end_inset
39642 </cell>
39643 </row>
39644 <row>
39645 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
39646 \begin_inset Text
39647
39648 \begin_layout Plain Layout
39649 4123:4168
39650 \end_layout
39651
39652 \end_inset
39653 </cell>
39654 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39655 \begin_inset Text
39656
39657 \begin_layout Plain Layout
39658 mixed revision working copy
39659 \end_layout
39660
39661 \end_inset
39662 </cell>
39663 </row>
39664 <row>
39665 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
39666 \begin_inset Text
39667
39668 \begin_layout Plain Layout
39669 4168M
39670 \end_layout
39671
39672 \end_inset
39673 </cell>
39674 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39675 \begin_inset Text
39676
39677 \begin_layout Plain Layout
39678 modified working copy
39679 \end_layout
39680
39681 \end_inset
39682 </cell>
39683 </row>
39684 <row>
39685 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
39686 \begin_inset Text
39687
39688 \begin_layout Plain Layout
39689 4123S
39690 \end_layout
39691
39692 \end_inset
39693 </cell>
39694 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39695 \begin_inset Text
39696
39697 \begin_layout Plain Layout
39698 switched working copy
39699 \end_layout
39700
39701 \end_inset
39702 </cell>
39703 </row>
39704 <row>
39705 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
39706 \begin_inset Text
39707
39708 \begin_layout Plain Layout
39709 4123P
39710 \end_layout
39711
39712 \end_inset
39713 </cell>
39714 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
39715 \begin_inset Text
39716
39717 \begin_layout Plain Layout
39718 partial working copy,
39719  from a sparse checkout
39720 \end_layout
39721
39722 \end_inset
39723 </cell>
39724 </row>
39725 <row>
39726 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
39727 \begin_inset Text
39728
39729 \begin_layout Plain Layout
39730 4123:4168MS
39731 \end_layout
39732
39733 \end_inset
39734 </cell>
39735 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
39736 \begin_inset Text
39737
39738 \begin_layout Plain Layout
39739 mixed revision,
39740  modified,
39741  switched working copy
39742 \end_layout
39743
39744 \end_inset
39745 </cell>
39746 </row>
39747 </lyxtabular>
39748
39749 \end_inset
39750
39751
39752 \end_layout
39753
39754 \begin_layout Itemize
39755 file revision information.
39756  The result comes from parsing the output of 
39757 \begin_inset Flex Code
39758 status collapsed
39759
39760 \begin_layout Plain Layout
39761 svn
39762 \begin_inset space ~
39763 \end_inset
39764
39765 info
39766 \begin_inset space ~
39767 \end_inset
39768
39769 --xml
39770 \begin_inset space ~
39771 \end_inset
39772
39773 file.lyx
39774 \end_layout
39775
39776 \end_inset
39777
39778 .
39779  Supported flags are:
39780 \end_layout
39781
39782 \begin_deeper
39783 \begin_layout Itemize
39784 version number of the last commit (
39785 \begin_inset Flex Code
39786 status collapsed
39787
39788 \begin_layout Plain Layout
39789 vcs-revision
39790 \end_layout
39791
39792 \end_inset
39793
39794 )
39795 \end_layout
39796
39797 \begin_layout Itemize
39798 author of the last commit (
39799 \begin_inset Flex Code
39800 status collapsed
39801
39802 \begin_layout Plain Layout
39803 vcs-author
39804 \end_layout
39805
39806 \end_inset
39807
39808 )
39809 \end_layout
39810
39811 \begin_layout Itemize
39812 date of the last commit (
39813 \begin_inset Flex Code
39814 status collapsed
39815
39816 \begin_layout Plain Layout
39817 vcs-date
39818 \end_layout
39819
39820 \end_inset
39821
39822 )
39823 \end_layout
39824
39825 \begin_layout Itemize
39826 time of the last commit (
39827 \begin_inset Flex Code
39828 status collapsed
39829
39830 \begin_layout Plain Layout
39831 vcs-time
39832 \end_layout
39833
39834 \end_inset
39835
39836 )
39837 \end_layout
39838
39839 \end_deeper
39840 \begin_layout Standard
39841 You can obtain this info via InsetInfo (
39842 \change_inserted 5863208 1564400022
39843
39844 \family sans
39845 Insert\SpecialChar menuseparator
39846 Field\SpecialChar menuseparator
39847 Version Control Revision
39848 \change_deleted 5863208 1564399852
39849
39850 \family default
39851 e.g.
39852  
39853 \begin_inset Flex Code
39854 status collapsed
39855
39856 \begin_layout Plain Layout
39857 info-insert buffer vcs-date
39858 \end_layout
39859
39860 \end_inset
39861
39862
39863 \change_unchanged
39864 ).
39865  The information will be available only when you have the file stored under svn managment (i.e.
39866  the 
39867 \begin_inset Flex Code
39868 status collapsed
39869
39870 \begin_layout Plain Layout
39871 .svn
39872 \end_layout
39873
39874 \end_inset
39875
39876  directory is available with your document).
39877 \end_layout
39878
39879 \end_deeper
39880 \begin_layout Itemize
39881 Another—
39882 a hacking one—
39883 possibility is to use svn keywords
39884 \begin_inset Foot
39885 status collapsed
39886
39887 \begin_layout Plain Layout
39888 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
39889 \end_layout
39890
39891 \end_inset
39892
39893 .
39894  In short – you set file keywords property (e.g.
39895  
39896 \family sans
39897 svn propset svn:keywords 'Rev' file.lyx
39898 \family default
39899 ) and then paste keyword \SpecialChar TeX
39900  code
39901 \begin_inset Foot
39902 status collapsed
39903
39904 \begin_layout Plain Layout
39905 This is an easy way how to ensure that \SpecialChar LyX
39906  won't break the line in the middle of keyword tag.
39907 \end_layout
39908
39909 \end_inset
39910
39911  tag in your document (e.g.
39912  
39913 \begin_inset Flex Code
39914 status collapsed
39915
39916 \begin_layout Plain Layout
39917 $Rev$
39918 \end_layout
39919
39920 \end_inset
39921
39922 ).
39923  This way svn client will automatically substitute revision number (e.g.
39924  
39925 \begin_inset Flex Code
39926 status collapsed
39927
39928 \begin_layout Plain Layout
39929 $Rev:
39930  59 $
39931 \end_layout
39932
39933 \end_inset
39934
39935 ) after each update and commit.
39936  There are more problems with this approach.
39937  Firstly,
39938  the '$' character is used in \SpecialChar TeX
39939  world for math equations,
39940  so any occurence of math formula 
39941 \begin_inset Formula $Rev$
39942 \end_inset
39943
39944  become 
39945 \begin_inset Formula $Rev:59$
39946 \end_inset
39947
39948  in your \SpecialChar LyX
39949  document.
39950  Similarly for other keywords like Id,
39951  Date,
39952  Author,
39953  etc.
39954  Secondly svn output is dependent on your locales,
39955  so its very easy that svn would produce some problematic strings once Date is used.
39956  Thirdly you get the whole 'Rev:
39957  59' string in your document instead of the plain number.
39958  Until subversion implements user's custom keywords it will be hard to use this approach reliably or let \SpecialChar LyX
39959  to support it directly.
39960 \end_layout
39961
39962 \begin_layout Subsection
39963 SVN and Windows Environment
39964 \end_layout
39965
39966 \begin_layout Quote
39967 My inclination is to say that if the user cannot figure out the command line operations on their own fairly quickly,
39968  they would be well advised to use TortoiseSVN.
39969  —
39970 P.
39971  A.
39972  Rubin
39973 \end_layout
39974
39975 \begin_layout Subsubsection
39976 Preparation
39977 \end_layout
39978
39979 \begin_layout Standard
39980 In addition to installing \SpecialChar LyX
39981 ,
39982  and having access to a Subversion repository,
39983  the user will need to install the Subversion client program.
39984  A Windows installer for the client program is available from 
39985 \begin_inset CommandInset href
39986 LatexCommand href
39987 name "CollabNet"
39988 target "http://www.collab.net/nonav/downloads/subversion/"
39989 literal "false"
39990
39991 \end_inset
39992
39993 .
39994  The user may also want to install 
39995 \begin_inset CommandInset href
39996 LatexCommand href
39997 name "TortoiseSVN"
39998 target "http://tortoisesvn.tigris.org/"
39999 literal "false"
40000
40001 \end_inset
40002
40003 ,
40004  which integrates Subversion operations into the context (rightclick) menu of Windows Explorer.
40005  Operations done outside \SpecialChar LyX
40006  will typically be more convenient using the Explorer context menu.
40007  Note that TortoiseSVN is not a replacement for the client program,
40008  which is what \SpecialChar LyX
40009  itself will use.
40010 \end_layout
40011
40012 \begin_layout Subsubsection
40013 Bringing a document under Subversion control
40014 \end_layout
40015
40016 \begin_layout Standard
40017 Before a \SpecialChar LyX
40018  document can be brought under version control in Subversion,
40019  its parent directory needs to be under version control.
40020  If the document is being added to a project already in the repository,
40021  this is accomplished by checking the project out to the directory where the new document will be placed.
40022  If the project itself is not yet under version control (for instance,
40023  if this document starts a new project),
40024  the directory must be imported into the repository.
40025  This is done outside \SpecialChar LyX
40026 .
40027  Both import and checkout are easily accomplished from the Explorer context menu using TortoiseSVN,
40028  or alternatively can be done using the command line client at a DOS prompt.
40029  The procedure for importing the project using TortoiseSVN is described below,
40030  assuming an existing repository and a new project being started in 
40031 \family typewriter
40032 C:
40033 \backslash
40034 new project
40035 \family default
40036 .
40037  For information on using the Subversion client program,
40038  run 
40039 \family typewriter
40040 svn --help 
40041 \family default
40042 in a DOS shell.
40043 \end_layout
40044
40045 \begin_layout Enumerate
40046 Locate 
40047 \family typewriter
40048 C:
40049 \backslash
40050 new project 
40051 \family default
40052 in Windows Explorer,
40053  right click it,
40054  and select 
40055 \family sans
40056 TortoiseSVN\SpecialChar menuseparator
40057 Repo-browser
40058 \family default
40059 .
40060  If necessary,
40061  adjust the URL for the repository,
40062  then click OK.
40063 \end_layout
40064
40065 \begin_layout Enumerate
40066 Right click the level of the repository under which you want to place the new project folder (typically the top level) and click 
40067 \family sans
40068 Create folder
40069 \family default
40070  Supply a name for the project folder and click OK.
40071  Add a message for the log file if desired,
40072  then click OK again.
40073  The new project folder should appear in the repository.
40074  Finally,
40075  click OK again to exit the repository browser.
40076 \end_layout
40077
40078 \begin_layout Enumerate
40079 Once again right click 
40080 \family typewriter
40081 C:
40082 \backslash
40083 new project
40084 \family default
40085 ,
40086  this time selecting SVN Checkout\SpecialChar ldots
40087  Select the URL of the project folder you just created in the repository,
40088  and set the checkout directory to 
40089 \family typewriter
40090 C:
40091 \backslash
40092 new project.
40093
40094 \family default
40095  Click OK.
40096  You will be warned about a non-empty folder;
40097  click OK to proceed.
40098  You should now have a 
40099 \family typewriter
40100 .svn
40101 \family default
40102  directory under 
40103 \family typewriter
40104 C:
40105 \backslash
40106 new project.
40107 \end_layout
40108
40109 \begin_layout Enumerate
40110 Create or open your document in \SpecialChar LyX
40111  and click 
40112 \family sans
40113 File\SpecialChar menuseparator
40114 Version
40115 \begin_inset space ~
40116 \end_inset
40117
40118 Control\SpecialChar menuseparator
40119 Register.
40120  
40121 \family default
40122 Add a log message and click OK to commit the document to version control.
40123 \end_layout
40124
40125 \begin_layout Standard
40126 From this point onward,
40127  you should have full functionality in the 
40128 \family sans
40129 File\SpecialChar menuseparator
40130 Version
40131 \begin_inset space ~
40132 \end_inset
40133
40134 Control
40135 \family default
40136  menu.
40137  You also have the option of checking the document in and out,
40138  viewing its history,
40139  etc.
40140  using the TortoiseSVN context menu in Windows Explorer or the Subversion client program from a command prompt.
40141 \end_layout
40142
40143 \begin_layout Subsubsection
40144 SSH tunnel used with SVN under Windows
40145 \end_layout
40146
40147 \begin_layout Standard
40148 Compared with Linux setting up an svn client to communicate over ssh under Windows is a rather troublesome task.
40149  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,
40150  also be prepared for a great deal of frustration\SpecialChar ldots
40151
40152 \end_layout
40153
40154 \begin_layout Enumerate
40155 Get an svn client for windows,
40156  as described in the previous sections.
40157  When it is a fresh install run some svn command (e.g.
40158  
40159 \begin_inset Flex Code
40160 status collapsed
40161
40162 \begin_layout Plain Layout
40163 svn --version
40164 \end_layout
40165
40166 \end_inset
40167
40168 ) to create config files,
40169  which you will need to change later on.
40170 \end_layout
40171
40172 \begin_layout Enumerate
40173 Choose an ssh client for Windows.
40174  There are several possibilities,
40175  we will use the one from Putty tools
40176 \begin_inset Foot
40177 status collapsed
40178
40179 \begin_layout Plain Layout
40180 \begin_inset Flex URL
40181 status collapsed
40182
40183 \begin_layout Plain Layout
40184
40185 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
40186 \end_layout
40187
40188 \end_inset
40189
40190
40191 \end_layout
40192
40193 \end_inset
40194
40195 .
40196  You will need to set the connection up so that the client doesn't ask for any password from you.
40197  To keep things easy we will use only keys without any additional password protection etc.
40198 \end_layout
40199
40200 \begin_deeper
40201 \begin_layout Enumerate
40202 Generate keys by 
40203 \begin_inset Flex Code
40204 status collapsed
40205
40206 \begin_layout Plain Layout
40207 puttygen
40208 \end_layout
40209
40210 \end_inset
40211
40212 .
40213  Save your private .ppk key file and put the public one on the server side.
40214  If the SVN server runs on Linux,
40215  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 
40216 \begin_inset Quotes eld
40217 \end_inset
40218
40219
40220 \emph on
40221 Public key for pasting into OpenSSH authorized_keys file
40222 \emph default
40223 :
40224 \begin_inset Quotes erd
40225 \end_inset
40226
40227  edit field into the server's 
40228 \begin_inset Flex Code
40229 status collapsed
40230
40231 \begin_layout Plain Layout
40232 ~/.ssh/authorized_keys
40233 \end_layout
40234
40235 \end_inset
40236
40237  / 
40238 \begin_inset Flex Code
40239 status collapsed
40240
40241 \begin_layout Plain Layout
40242 authorized_keys2
40243 \end_layout
40244
40245 \end_inset
40246
40247  file.
40248 \end_layout
40249
40250 \begin_layout Enumerate
40251 Get the Putty's 
40252 \begin_inset Flex Code
40253 status collapsed
40254
40255 \begin_layout Plain Layout
40256 plink
40257 \end_layout
40258
40259 \end_inset
40260
40261 .
40262  In the SVN config file
40263 \begin_inset Foot
40264 status collapsed
40265
40266 \begin_layout Plain Layout
40267 Exact path depends on Windows version,
40268  usually somewhere around 
40269 \begin_inset Flex Code
40270 status collapsed
40271
40272 \begin_layout Plain Layout
40273 c:
40274 \backslash
40275 Documents and Settings
40276 \backslash
40277 user
40278 \backslash
40279 Application Data
40280 \backslash
40281 Subversion
40282 \backslash
40283 config
40284 \end_layout
40285
40286 \end_inset
40287
40288  / 
40289 \begin_inset Flex Code
40290 status collapsed
40291
40292 \begin_layout Plain Layout
40293 AppData
40294 \backslash
40295 Roaming
40296 \backslash
40297 Subversion
40298 \end_layout
40299
40300 \end_inset
40301
40302 .
40303 \end_layout
40304
40305 \end_inset
40306
40307 ,
40308  section [tunnels],
40309  setup ssh command,
40310  e.g.
40311  
40312 \begin_inset Flex Code
40313 status collapsed
40314
40315 \begin_layout Plain Layout
40316 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
40317 \end_layout
40318
40319 \end_inset
40320
40321 .
40322 \begin_inset Foot
40323 status collapsed
40324
40325 \begin_layout Plain Layout
40326 It will usually take a lot of time to get exact command right and it depends on many things.
40327  For example do not have some remote server saved as a default session in Putty etc.
40328  If things fail,
40329  try to connect via plink without SVN first.
40330 \end_layout
40331
40332 \end_inset
40333
40334
40335 \end_layout
40336
40337 \end_deeper
40338 \begin_layout Enumerate
40339 Checkout the SVN archive,
40340  e.
40341 \begin_inset space \thinspace{}
40342 \end_inset
40343
40344 g.
40345 \begin_inset Newline newline
40346 \end_inset
40347
40348
40349 \begin_inset Flex Code
40350 status collapsed
40351
40352 \begin_layout Plain Layout
40353 svn co svn+ssh://user@server/repository_path
40354 \end_layout
40355
40356 \end_inset
40357
40358 .
40359 \end_layout
40360
40361 \begin_layout Subsubsection
40362 End-of-Line Conversions
40363 \end_layout
40364
40365 \begin_layout Standard
40366 When the collaborators are mixing Linux and Windows environments,
40367  \SpecialChar LyX
40368  will use different line endings inside the .lyx files.
40369  This is not a problem as far as \SpecialChar LyX
40370  functionality is concerned,
40371  but the commit diffs will be huge and merge-conflicts prone.
40372  Fortunately SVN itself knows
40373 \begin_inset Foot
40374 status collapsed
40375
40376 \begin_layout Plain Layout
40377 \begin_inset Flex URL
40378 status collapsed
40379
40380 \begin_layout Plain Layout
40381
40382 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
40383 \end_layout
40384
40385 \end_inset
40386
40387
40388 \end_layout
40389
40390 \end_inset
40391
40392  how to deal with CR/LF problems when switching .lyx files to the 
40393 \begin_inset Flex Code
40394 status collapsed
40395
40396 \begin_layout Plain Layout
40397 native
40398 \end_layout
40399
40400 \end_inset
40401
40402  mode.
40403 \begin_inset Foot
40404 status collapsed
40405
40406 \begin_layout Plain Layout
40407 For the lazy guys:
40408  
40409 \begin_inset Flex Code
40410 status collapsed
40411
40412 \begin_layout Plain Layout
40413 svn propset svn:eol-style native FILE_NAME
40414 \end_layout
40415
40416 \end_inset
40417
40418
40419 \end_layout
40420
40421 \end_inset
40422
40423
40424 \end_layout
40425
40426 \begin_layout Subsection
40427 GIT commands in \SpecialChar LyX
40428
40429 \end_layout
40430
40431 \begin_layout Standard
40432 A minimal subset of GIT commands is now supported by \SpecialChar LyX
40433 .
40434  You can find the commands in the 
40435 \family sans
40436 File\SpecialChar menuseparator
40437 Version
40438 \begin_inset space ~
40439 \end_inset
40440
40441 Control
40442 \family default
40443  submenu.
40444  Please note that if you use password protected access to repository via ssh,
40445  you will be asked in terminal window.
40446  \SpecialChar LyX
40447  was tested against GIT 1.7
40448 \change_inserted 5863208 1685694088
40449 /2.30
40450 \change_unchanged
40451 .
40452 \begin_inset Foot
40453 status collapsed
40454
40455 \begin_layout Plain Layout
40456 Windows users please note that you need to ensure that git is on the path.
40457  This can be set from within \SpecialChar LyX
40458  at 
40459 \family sans
40460 Tools\SpecialChar menuseparator
40461 Preferences\SpecialChar menuseparator
40462 Paths\SpecialChar menuseparator
40463 PATH prefix
40464 \family default
40465 .
40466 \end_layout
40467
40468 \end_inset
40469
40470
40471 \end_layout
40472
40473 \begin_layout Standard
40474 One big difference of GIT and the other supported version control systems is the distributed nature of GIT:
40475  With traditional version control systems there is one central server which hosts the repository.
40476  Users commit their changes to the server,
40477  and get updates made by other users from it.
40478  With GIT,
40479  users commit to a local repository.
40480  The local repository can be synchronized with one or more remote repositories using the 
40481 \begin_inset Flex Code
40482 status collapsed
40483
40484 \begin_layout Plain Layout
40485 pull
40486 \end_layout
40487
40488 \end_inset
40489
40490  and 
40491 \begin_inset Flex Code
40492 status collapsed
40493
40494 \begin_layout Plain Layout
40495 push
40496 \end_layout
40497
40498 \end_inset
40499
40500  GIT commands.
40501  \SpecialChar LyX
40502  does not interact in any way with remote GIT repositories.
40503  It works exclusively with the local repository in a very similar way as with a central CVS or SVN repository.
40504  If you use remote GIT repositories you need to do the 
40505 \begin_inset Flex Code
40506 status collapsed
40507
40508 \begin_layout Plain Layout
40509 pull
40510 \end_layout
40511
40512 \end_inset
40513
40514  and 
40515 \begin_inset Flex Code
40516 status collapsed
40517
40518 \begin_layout Plain Layout
40519 push
40520 \end_layout
40521
40522 \end_inset
40523
40524  operations with your favourite GIT client.
40525 \end_layout
40526
40527 \begin_layout Subsubsection
40528
40529 \family sans
40530 Register
40531 \end_layout
40532
40533 \begin_layout Standard
40534 If your document is not under revision control,
40535  this is the only item shown in the menu.
40536  And if it is under revision control,
40537  the 
40538 \family sans
40539 Register
40540 \family default
40541  item is not visible.
40542 \end_layout
40543
40544 \begin_layout Standard
40545 This command registers in GIT your document ONLY in case you have already the documents directory under GIT control (in particular 
40546 \family typewriter
40547 .git/index
40548 \family default
40549  file exists
40550 \change_inserted 5863208 1685693727
40551
40552 \begin_inset Foot
40553 status open
40554
40555 \begin_layout Plain Layout
40556
40557 \change_inserted 5863208 1685693727
40558 For that both 
40559 \family typewriter
40560 git init
40561 \family default
40562  *and* initial repository commit (or at least 
40563 \family typewriter
40564 git add
40565 \family default
40566 ) needs to be manually done.
40567 \change_unchanged
40568
40569 \end_layout
40570
40571 \end_inset
40572
40573
40574 \change_unchanged
40575 ).
40576  This means you have to checkout the archive by yourself.
40577 \end_layout
40578
40579 \begin_layout Standard
40580 Then you are asked interactively to supply an initial description of the document.
40581  Don't forget that registered file is not yet committed.
40582 \end_layout
40583
40584 \begin_layout Standard
40585 GIT command that is run:
40586  
40587 \family typewriter
40588 git add 
40589 \begin_inset Quotes qld
40590 \end_inset
40591
40592 <file-name>
40593 \begin_inset Quotes qld
40594 \end_inset
40595
40596
40597 \end_layout
40598
40599 \begin_layout Standard
40600 Read 
40601 \family typewriter
40602 man git
40603 \family default
40604  to understand the switches.
40605 \end_layout
40606
40607 \begin_layout Subsubsection
40608
40609 \family sans
40610 Check In Changes
40611 \end_layout
40612
40613 \begin_layout Standard
40614 When you are finished editing a file,
40615  you commit your changes.
40616  When you do this,
40617  you are asked for a description of the changes.
40618  After that changes are committed.
40619 \end_layout
40620
40621 \begin_layout Standard
40622 GIT command:
40623  
40624 \family typewriter
40625 git commit -q -m"<description>" <file-name>
40626 \end_layout
40627
40628 \begin_layout Subsubsection
40629
40630 \family sans
40631 Revert To Repository Version
40632 \end_layout
40633
40634 \begin_layout Standard
40635 This will discard all changes made to the document since the last check in.
40636  You get a warning before changes are discarded.
40637 \end_layout
40638
40639 \begin_layout Standard
40640 GIT command:
40641  
40642 \family typewriter
40643 git checkout -q 
40644 \begin_inset Quotes qld
40645 \end_inset
40646
40647 <file-name>
40648 \begin_inset Quotes qld
40649 \end_inset
40650
40651
40652 \end_layout
40653
40654 \begin_layout Subsubsection
40655
40656 \family sans
40657 Rename
40658 \end_layout
40659
40660 \begin_layout Standard
40661 This will rename the current document including the version history.
40662  It requires a clean document without any changes since the last checkin.
40663  You are asked for a file name and a description of the rename operation.
40664  After that the document is renamed,
40665  both locally and in the repository.
40666  If the parent directories of the new and old file names differ,
40667  all relative paths of included files are adjusted (like in 
40668 \family sans
40669 File\SpecialChar menuseparator
40670 Save As
40671 \family default
40672 \SpecialChar ldots
40673 ).
40674  Finally,
40675  the document is reloaded using the new name.
40676 \end_layout
40677
40678 \begin_layout Labeling
40679 \labelwidthstring 00.00.0000
40680 GIT
40681 \begin_inset space ~
40682 \end_inset
40683
40684 commands:
40685  
40686 \begin_inset space ~
40687 \end_inset
40688
40689
40690 \begin_inset Newline newline
40691 \end_inset
40692
40693
40694 \begin_inset Flex Code
40695 status collapsed
40696
40697 \begin_layout Plain Layout
40698 git mv 
40699 \family typewriter
40700
40701 \begin_inset Quotes qld
40702 \end_inset
40703
40704 <file-name>
40705 \begin_inset Quotes qld
40706 \end_inset
40707
40708  
40709 \begin_inset Quotes qld
40710 \end_inset
40711
40712 <new-file-name>
40713 \begin_inset Quotes qld
40714 \end_inset
40715
40716
40717 \end_layout
40718
40719 \end_inset
40720
40721
40722 \begin_inset Newline newline
40723 \end_inset
40724
40725
40726 \begin_inset Flex Code
40727 status collapsed
40728
40729 \begin_layout Plain Layout
40730 git commit
40731 \end_layout
40732
40733 \end_inset
40734
40735
40736 \end_layout
40737
40738 \begin_layout Subsubsection
40739
40740 \family sans
40741 Show History
40742 \end_layout
40743
40744 \begin_layout Standard
40745 This shows the complete history of the GIT document.
40746  The output of 
40747 \family typewriter
40748 git log 
40749 \begin_inset Quotes qld
40750 \end_inset
40751
40752 <file-name>
40753 \begin_inset Quotes qld
40754 \end_inset
40755
40756
40757 \family default
40758  is shown in a browser.
40759 \end_layout
40760
40761 \begin_layout Subsubsection
40762 Version Info
40763 \end_layout
40764
40765 \begin_layout Standard
40766 \SpecialChar LyX
40767  supports GIT hash number of the last commit to the file,
40768  
40769 \change_inserted 1119979965 1564297456
40770 its abbreviated form,
40771  
40772 \change_unchanged
40773 author name,
40774  date and time of last commit.
40775  All those are extracted from 
40776 \family typewriter
40777 git log -n 1 --pretty=format:%H%n
40778 \change_inserted 1119979965 1564297427
40779 %h%n
40780 \change_unchanged
40781 %an%n%ai
40782 \family default
40783 .
40784  Tree version information is obtained via 
40785 \family typewriter
40786 git describe --abbrev --dirty --long
40787 \family default
40788 .
40789  See 
40790 \begin_inset CommandInset ref
40791 LatexCommand ref
40792 reference "subsec:VCS-Revision-Information"
40793 nolink "false"
40794
40795 \end_inset
40796
40797  for other details.
40798 \end_layout
40799
40800 \begin_layout Subsection
40801 Further tuning
40802 \end_layout
40803
40804 \begin_layout Standard
40805 With the recent addition of the 
40806 \begin_inset Flex Code
40807 status collapsed
40808
40809 \begin_layout Plain Layout
40810 vc-command
40811 \end_layout
40812
40813 \end_inset
40814
40815  function \SpecialChar LyX
40816  power users are allowed to create their own commands for revision control.
40817 \end_layout
40818
40819 \begin_layout Standard
40820 As an example you can see how two TortoiseSVN commands could be integrated directly:
40821 \end_layout
40822
40823 \begin_layout Description
40824 Commit:
40825  
40826 \begin_inset Flex Code
40827 status collapsed
40828
40829 \begin_layout Plain Layout
40830 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
40831 \end_layout
40832
40833 \end_inset
40834
40835
40836 \end_layout
40837
40838 \begin_layout Description
40839 Revert:
40840  
40841 \begin_inset Flex Code
40842 status collapsed
40843
40844 \begin_layout Plain Layout
40845 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
40846 \end_layout
40847
40848 \end_inset
40849
40850
40851 \end_layout
40852
40853 \begin_layout Subsection
40854 Version control and Document comparison
40855 \end_layout
40856
40857 \begin_layout Standard
40858 One of the typical uses of version control is to inspect the changes between revisions,
40859  usually by creating 
40860 \begin_inset Flex Code
40861 status collapsed
40862
40863 \begin_layout Plain Layout
40864 diff
40865 \end_layout
40866
40867 \end_inset
40868
40869  dumps.
40870  While this is useful for plain text files,
40871  it is much less useful in the case of \SpecialChar LyX
40872  files,
40873  which have more a complicated structure.
40874  Hence we provide binding to the Document comparison feature.
40875  There are two ways of calling this feature – either by direct call of 
40876 \begin_inset Flex Code
40877 status collapsed
40878
40879 \begin_layout Plain Layout
40880 vc-compare
40881 \end_layout
40882
40883 \end_inset
40884
40885  \SpecialChar LyX
40886  function (for details see \SpecialChar LyX
40887  functions manual) or by the toolbar icon 
40888 \begin_inset Info
40889 type  "icon"
40890 arg   "vc-compare"
40891 \end_inset
40892
40893  or the menu item 
40894 \begin_inset Info
40895 type  "menu"
40896 arg   "vc-compare"
40897 \end_inset
40898
40899 ,
40900  respectively.
40901  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 '
40902 \begin_inset Flex Noun
40903 status collapsed
40904
40905 \begin_layout Plain Layout
40906 0
40907 \end_layout
40908
40909 \end_inset
40910
40911 ' revisions back means comparison of the edited file with last commited revision).
40912  
40913 \end_layout
40914
40915 \begin_layout Standard
40916 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,
40917  numbers always point to the last number in RCS revision number,
40918  i.e.
40919  '35' in '1.2.35'.
40920  We don't currently support GIT addressing of revisions,
40921  one can just compare edited document with its revision X steps backs,
40922  where X is addressed as 
40923 \begin_inset Flex Code
40924 status collapsed
40925
40926 \begin_layout Plain Layout
40927 HEAD~X
40928 \end_layout
40929
40930 \end_inset
40931
40932 .
40933 \end_layout
40934
40935 \begin_layout Section
40936
40937 \change_inserted 564990737 1672161575
40938 \begin_inset CommandInset label
40939 LatexCommand label
40940 name "sec:Literate-Programming"
40941
40942 \end_inset
40943
40944
40945 \change_unchanged
40946 Literate Programming
40947 \end_layout
40948
40949 \begin_layout Standard
40950 Updated by 
40951 \noun on
40952 Kayvan Sylvan 
40953 \noun default
40954 (kayvan@sylvan.com)
40955 \noun on
40956 ,
40957  
40958 \noun default
40959 original documentation written by 
40960 \noun on
40961 Edmar Wienskoski Jr.
40962
40963 \noun default
40964  (edmar-w-jr@technologist.com)
40965 \end_layout
40966
40967 \begin_layout Subsection
40968 Introduction
40969 \end_layout
40970
40971 \begin_layout Standard
40972 The main purpose of this documentation is to show you how to use \SpecialChar LyX
40973  for literate programming,
40974  where it is assumed that you are familiar with this programming technique,
40975  and know what 
40976 \begin_inset Quotes eld
40977 \end_inset
40978
40979 tangling
40980 \begin_inset Quotes erd
40981 \end_inset
40982
40983  and 
40984 \begin_inset Quotes eld
40985 \end_inset
40986
40987 weaving
40988 \begin_inset Quotes erd
40989 \end_inset
40990
40991  means.
40992  If that is not the case,
40993  please follow the web links provided in the following sections.
40994  There is a lot of good documentation out there covering old development history to the latest tools tips.
40995 \end_layout
40996
40997 \begin_layout Standard
40998 It is also assumed that you are familiar with \SpecialChar LyX
40999  itself to a point that you are comfortable changing your \SpecialChar LyX
41000  preferences,
41001  and X resources file.
41002  If that is not the case please refer to other \SpecialChar LyX
41003  documentation to cover your specific needs.
41004 \end_layout
41005
41006 \begin_layout Subsection
41007 Literate Programming
41008 \end_layout
41009
41010 \begin_layout Standard
41011 From the Literate Programming FAQ:
41012  
41013 \end_layout
41014
41015 \begin_layout Quotation
41016 Literate programming is the combination of documentation and source together in a fashion suited for reading by human beings.
41017  In fact,
41018  literate programs should be enjoyable reading,
41019  even inviting!
41020  (Sorry Bob,
41021  I couldn't resist!) In general,
41022  literate programs combine source and documentation in a single file.
41023  Literate programming tools then parse the file to produce either readable documentation or compilable source.
41024  The WEB style of literate programming was created by D.
41025 \begin_inset space \thinspace{}
41026 \end_inset
41027
41028 E.
41029  Knuth during the development of his \SpecialChar TeX
41030  typesetting software.
41031  
41032 \end_layout
41033
41034 \begin_layout Standard
41035 Another excerpt says:
41036 \end_layout
41037
41038 \begin_layout Quotation
41039
41040 \emph on
41041 How is literate programming different from verbose commenting?
41042 \end_layout
41043
41044 \begin_layout Quotation
41045 There are three distinguishing characteristics.
41046  In order of importance,
41047  they are:
41048  
41049 \end_layout
41050
41051 \begin_deeper
41052 \begin_layout Itemize
41053 flexible order of elaboration 
41054 \end_layout
41055
41056 \begin_layout Itemize
41057 automatic support for browsing 
41058 \end_layout
41059
41060 \begin_layout Itemize
41061 typeset documentation,
41062  especially diagrams and mathematics 
41063 \end_layout
41064
41065 \end_deeper
41066 \begin_layout Standard
41067 Now that I sparked your curiosity,
41068  take a look in the references.
41069 \end_layout
41070
41071 \begin_layout Subsubsection
41072 References
41073 \end_layout
41074
41075 \begin_layout Standard
41076 The complete Literate Programming FAQ can be found at:
41077 \end_layout
41078
41079 \begin_layout Quote
41080 Literate Programming FAQ 
41081 \begin_inset Flex URL
41082 status open
41083
41084 \begin_layout Plain Layout
41085
41086 http://www.literateprogramming.com/lpfaq.pdf
41087 \end_layout
41088
41089 \end_inset
41090
41091
41092 \end_layout
41093
41094 \begin_layout Standard
41095 The FAQ lists 23 (twenty three!) different literate programming tools.
41096  Where some are specialized or 
41097 \begin_inset Quotes eld
41098 \end_inset
41099
41100 tailored
41101 \begin_inset Quotes erd
41102 \end_inset
41103
41104  for particular programming languages,
41105  while other have general scope.
41106  I selected 
41107 \noun on
41108 Noweb
41109 \noun default
41110  for my own use for several reasons:
41111 \end_layout
41112
41113 \begin_layout Itemize
41114 It can generate the documentation either in \SpecialChar LaTeX
41115  or HTML.
41116 \end_layout
41117
41118 \begin_layout Itemize
41119 It has a open architecture,
41120  i.
41121 \begin_inset space \thinspace{}
41122 \end_inset
41123
41124 e.
41125 \begin_inset space \space{}
41126 \end_inset
41127
41128 it is easy to plug in new filters
41129 \begin_inset Foot
41130 status collapsed
41131
41132 \begin_layout Plain Layout
41133
41134 \emph on
41135 Filters 
41136 \emph default
41137 are programs that read a given data stream and output a manipulated data stream.
41138  That way,
41139  a WEB file (consisting of literate code) can be turned into a file consisting only of C program code or \SpecialChar LaTeX
41140  code.
41141 \end_layout
41142
41143 \end_inset
41144
41145  and to perform special processing that you may need.
41146  
41147 \end_layout
41148
41149 \begin_layout Itemize
41150 There is a good selection of filters available already (the HTML is one of them).
41151 \end_layout
41152
41153 \begin_layout Itemize
41154 It is free.
41155 \end_layout
41156
41157 \begin_layout Standard
41158 The Noweb web page can be found at:
41159  
41160 \end_layout
41161
41162 \begin_layout Quote
41163 Noweb home page 
41164 \begin_inset Flex URL
41165 status collapsed
41166
41167 \begin_layout Plain Layout
41168
41169 https://www.cs.tufts.edu/~nr/noweb/
41170 \end_layout
41171
41172 \end_inset
41173
41174
41175 \end_layout
41176
41177 \begin_layout Standard
41178 Starting from there you can reach many other interesting links and even some literate program examples.
41179 \end_layout
41180
41181 \begin_layout Subsection
41182 \SpecialChar LyX
41183  and Literate Programming with Noweb
41184 \end_layout
41185
41186 \begin_layout Standard
41187 The \SpecialChar LyX
41188  support for Literate Programming is provided by using the generic \SpecialChar LyX
41189  converters mechanism.
41190  This support is provided in a 
41191 \begin_inset Quotes eld
41192 \end_inset
41193
41194 Noweb independent
41195 \begin_inset Quotes erd
41196 \end_inset
41197
41198  way,
41199  i.
41200 \begin_inset space \thinspace{}
41201 \end_inset
41202
41203 e.
41204 \begin_inset space \space{}
41205 \end_inset
41206
41207 you will be able to use this new \SpecialChar LyX
41208  feature with some other literate programming tool of your choice by just changing your \SpecialChar LyX
41209  preferences.
41210 \end_layout
41211
41212 \begin_layout Subsubsection
41213 Generating documents and code (weaving and tangling)
41214 \end_layout
41215
41216 \begin_layout Paragraph
41217 Using the noweb module
41218 \end_layout
41219
41220 \begin_layout Standard
41221 If you have installed Noweb and \SpecialChar LyX
41222  successfully,
41223  whenever you open a new document,
41224  after you have chosen its document class,
41225  use the 
41226 \family sans
41227 Document\SpecialChar menuseparator
41228 Settings
41229 \family default
41230  menu to add the 
41231 \begin_inset Quotes eld
41232 \end_inset
41233
41234 noweb
41235 \begin_inset Quotes erd
41236 \end_inset
41237
41238  module.
41239  If Noweb is correctly installed,
41240  when you click on the 
41241 \begin_inset Quotes eld
41242 \end_inset
41243
41244 Modules
41245 \begin_inset Quotes erd
41246 \end_inset
41247
41248  link,
41249  you will see the 
41250 \begin_inset Quotes eld
41251 \end_inset
41252
41253 noweb
41254 \begin_inset Quotes erd
41255 \end_inset
41256
41257  module in the available list and you can add it to your document.
41258 \end_layout
41259
41260 \begin_layout Paragraph
41261 Typing code in
41262 \end_layout
41263
41264 \begin_layout Standard
41265 \SpecialChar LyX
41266  enables you to write code with a custom inset named 
41267 \begin_inset Flex Noun
41268 status collapsed
41269
41270 \begin_layout Plain Layout
41271 Chunk
41272 \end_layout
41273
41274 \end_inset
41275
41276 .
41277  Noweb delimits chunks like this:
41278 \end_layout
41279
41280 \begin_layout LyX-Code
41281 <<My code>>=
41282 \end_layout
41283
41284 \begin_layout LyX-Code
41285   code
41286 \end_layout
41287
41288 \begin_layout LyX-Code
41289   more code
41290 \end_layout
41291
41292 \begin_layout LyX-Code
41293   even more code
41294 \end_layout
41295
41296 \begin_layout LyX-Code
41297   @
41298 \end_layout
41299
41300 \begin_layout Standard
41301 The problem is that whatever is written in between the << and the 
41302 \family typewriter
41303 @
41304 \family default
41305  must be taken literally,
41306  i.
41307 \begin_inset space \thinspace{}
41308 \end_inset
41309
41310 e.
41311 \begin_inset space \space{}
41312 \end_inset
41313
41314 \SpecialChar LyX
41315  should be prevented from making any special interpretation of what has been written.
41316  This is also handled by 
41317 \begin_inset Flex Noun
41318 status collapsed
41319
41320 \begin_layout Plain Layout
41321 Chunk
41322 \end_layout
41323
41324 \end_inset
41325
41326 ,
41327  that works like a normal text inset but has a free spacing capability.
41328 \end_layout
41329
41330 \begin_layout Standard
41331 As a special note,
41332  you can also use the 
41333 \begin_inset Quotes eld
41334 \end_inset
41335
41336 %def
41337 \begin_inset Quotes erd
41338 \end_inset
41339
41340  construct of Noweb in your chunks to add items to Noweb's identifier cross-reference:
41341 \end_layout
41342
41343 \begin_layout LyX-Code
41344 <<My chunk>>=
41345 \end_layout
41346
41347 \begin_layout LyX-Code
41348 def some_function(args):
41349 \end_layout
41350
41351 \begin_layout LyX-Code
41352    "This is the doc string for this function."
41353 \end_layout
41354
41355 \begin_layout LyX-Code
41356    print "My args:
41357  ",
41358  args
41359 \end_layout
41360
41361 \begin_layout LyX-Code
41362 @ %def some_function
41363 \end_layout
41364
41365 \begin_layout Standard
41366 For an example of this usage and the resulting cross-reference output,
41367  look at the Literate python program in 
41368 \emph on
41369 LIBDIR/examples/listerrors.lyx
41370 \emph default
41371  which should make this all clear.
41372 \end_layout
41373
41374 \begin_layout Paragraph
41375 Generating the documentation
41376 \end_layout
41377
41378 \begin_layout Standard
41379 At this point you already have a new document file with a proper document class,
41380  and with some code and text on it.
41381  How do I print it?
41382  The answer is simple,
41383  you select 
41384 \family sans
41385 View\SpecialChar menuseparator
41386 DVI,
41387
41388 \family default
41389  etc.
41390  Just like you would do for a plain document.
41391  No special procedure is required.
41392 \end_layout
41393
41394 \begin_layout Standard
41395 To help orientate you,
41396  I will now explain what happens inside \SpecialChar LyX
41397 :
41398 \end_layout
41399
41400 \begin_layout Enumerate
41401 When the 
41402 \family sans
41403 Update\SpecialChar menuseparator
41404 DVI
41405 \family default
41406  menu option is chosen,
41407  a \SpecialChar LaTeX
41408  file is generated.
41409  
41410 \end_layout
41411
41412 \begin_deeper
41413 \begin_layout Standard
41414 If the document is of any literate class the generated file will be named with an extension name defined by the 
41415 \begin_inset Quotes eld
41416 \end_inset
41417
41418 literate
41419 \begin_inset Quotes erd
41420 \end_inset
41421
41422  format (defined in the Preferences panel),
41423  otherwise the file will have the usual 
41424 \family typewriter
41425 .tex
41426 \family default
41427  extension.
41428 \end_layout
41429
41430 \end_deeper
41431 \begin_layout Enumerate
41432 Note that the only difference so far is in the name of the file,
41433  no special processing is required by \SpecialChar LyX
41434 .
41435  Given that you formatted the code using the 
41436 \begin_inset Flex Noun
41437 status collapsed
41438
41439 \begin_layout Plain Layout
41440 Chunk
41441 \end_layout
41442
41443 \end_inset
41444
41445  inset that,
41446  by itself,
41447  takes care of the business.
41448 \end_layout
41449
41450 \begin_layout Enumerate
41451 If the document is of any literate class \SpecialChar LyX
41452  will then use the internal \SpecialChar LyX
41453  to Noweb converter,
41454  followed by the Noweb to \SpecialChar LaTeX
41455  converter
41456 \begin_inset Foot
41457 status collapsed
41458
41459 \begin_layout Plain Layout
41460 The converters are defined in the 
41461 \family sans
41462 Tools\SpecialChar menuseparator
41463 Preferences
41464 \family default
41465  panel,
41466  under the 
41467 \begin_inset Quotes eld
41468 \end_inset
41469
41470 Conversion
41471 \begin_inset Quotes erd
41472 \end_inset
41473
41474  tab.
41475  See section 
41476 \emph on
41477 Converters
41478 \emph default
41479  of the 
41480 \emph on
41481 Customization
41482 \emph default
41483  manual for general information about converters.
41484 \end_layout
41485
41486 \end_inset
41487
41488  to generate the \SpecialChar LaTeX
41489  file.
41490 \end_layout
41491
41492 \begin_deeper
41493 \begin_layout Standard
41494 Otherwise it will just skip this step.
41495 \end_layout
41496
41497 \end_deeper
41498 \begin_layout Enumerate
41499 Finally,
41500  \SpecialChar LaTeX
41501  is invoked and the regular post processing continues as in a plain document.
41502 \end_layout
41503
41504 \begin_layout Standard
41505 Independence from a particular 
41506 \begin_inset Quotes eld
41507 \end_inset
41508
41509 literate tool
41510 \begin_inset Quotes erd
41511 \end_inset
41512
41513  is easily achieved by changing the commands that are run by the various converters.
41514 \end_layout
41515
41516 \begin_layout Paragraph
41517 Generating the code
41518 \end_layout
41519
41520 \begin_layout Standard
41521 When the build menu option is chosen or the corresponding button in the toolbar is pressed,
41522  a \SpecialChar LaTeX
41523  file is generated just like step 1 above.
41524  Next,
41525  \SpecialChar LyX
41526  invokes the 
41527 \family typewriter
41528 Noweb->Program
41529 \family default
41530  converter.
41531  This converter needs to be defined by the user and is not installed by default,
41532  though the Program format is.
41533  This converter (like any other converter) will have two parts:
41534 \end_layout
41535
41536 \begin_layout Enumerate
41537 The converter program itself.
41538  This program performs the conversion from the one format to the other (in this case,
41539  from the Noweb format to the Program pseudo-format).
41540 \end_layout
41541
41542 \begin_layout Enumerate
41543 The error log parser.
41544  This is a program whose sole purpose is to rewrite error messages in a format that \SpecialChar LyX
41545  understands.
41546  This makes it possible for \SpecialChar LyX
41547  to place error boxes in the right places in the file buffer.
41548 \end_layout
41549
41550 \begin_layout Standard
41551 The first part,
41552  the 
41553 \begin_inset Quotes eld
41554 \end_inset
41555
41556 Converter
41557 \begin_inset Quotes erd
41558 \end_inset
41559
41560  setting,
41561  should be set to
41562 \end_layout
41563
41564 \begin_layout LyX-Code
41565
41566 \family typewriter
41567 build-script $$i
41568 \family default
41569  $$r
41570 \end_layout
41571
41572 \begin_layout Standard
41573 This basically means that \SpecialChar LyX
41574  will call 
41575 \begin_inset Quotes eld
41576 \end_inset
41577
41578 build-script
41579 \begin_inset Quotes erd
41580 \end_inset
41581
41582  (a program or script) with the name of the Noweb file (normally a file in the \SpecialChar LyX
41583  temp directory) and the directory path of the original \SpecialChar LyX
41584  file.
41585  
41586 \end_layout
41587
41588 \begin_layout Standard
41589 This is an implementation of 
41590 \begin_inset Quotes eld
41591 \end_inset
41592
41593 build-script
41594 \begin_inset Quotes erd
41595 \end_inset
41596
41597  that you can place in a directory on your path:
41598 \end_layout
41599
41600 \begin_layout LyX-Code
41601
41602 \family sans
41603 #!/bin/sh
41604 \end_layout
41605
41606 \begin_layout LyX-Code
41607
41608 \family sans
41609 #
41610 \end_layout
41611
41612 \begin_layout LyX-Code
41613
41614 \family sans
41615 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
41616 \end_layout
41617
41618 \begin_layout Standard
41619 The next part of the converter setting is the 
41620 \begin_inset Quotes eld
41621 \end_inset
41622
41623 Flags
41624 \begin_inset Quotes erd
41625 \end_inset
41626
41627  which is to be set to
41628 \end_layout
41629
41630 \begin_layout LyX-Code
41631
41632 \family typewriter
41633 parselog=$$s/scripts/listerrors
41634 \end_layout
41635
41636 \begin_layout Standard
41637 This will run any errors that are generated by the 
41638 \begin_inset Quotes eld
41639 \end_inset
41640
41641 build-script
41642 \begin_inset Quotes erd
41643 \end_inset
41644
41645  process through the 
41646 \begin_inset Quotes eld
41647 \end_inset
41648
41649 listerrors
41650 \begin_inset Quotes erd
41651 \end_inset
41652
41653  program.
41654 \end_layout
41655
41656 \begin_layout Standard
41657 The build will normally take place in \SpecialChar LyX
41658 's temporary directory,
41659  so the files produced by the conversion will be in that directory.
41660  \SpecialChar LyX
41661  will copy out what it regards as the `main' file,
41662  but the 
41663 \family typewriter
41664 Noweb->Program
41665 \family default
41666  conversion may produce several files,
41667  and so most of these would then be deleted when \SpecialChar LyX
41668  was closed.
41669  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.
41670 \end_layout
41671
41672 \begin_layout Paragraph
41673 Build instructions in the document
41674 \end_layout
41675
41676 \begin_layout Standard
41677 The last piece of the integration between \SpecialChar LyX
41678  and noweb is the 
41679 \begin_inset Quotes eld
41680 \end_inset
41681
41682 build-script
41683 \begin_inset Quotes erd
41684 \end_inset
41685
41686  chunk.
41687  Generally,
41688  the instructions for building your program should be embedded in a chunk of its own.
41689  The noweb-specific 
41690 \begin_inset Quotes eld
41691 \end_inset
41692
41693 build-script
41694 \begin_inset Quotes erd
41695 \end_inset
41696
41697  above uses the notangle command to look for this chunk (called 
41698 \begin_inset Quotes eld
41699 \end_inset
41700
41701 build-script
41702 \begin_inset Quotes erd
41703 \end_inset
41704
41705 ) and runs its contents through 
41706 \begin_inset Quotes eld
41707 \end_inset
41708
41709 sh
41710 \begin_inset Quotes erd
41711 \end_inset
41712
41713 .
41714 \end_layout
41715
41716 \begin_layout Standard
41717 Typically,
41718  such a chunk would look something like this:
41719 \end_layout
41720
41721 \begin_layout LyX-Code
41722 <<build-script>>=
41723 \end_layout
41724
41725 \begin_layout LyX-Code
41726 #!/bin/sh
41727 \begin_inset Newline newline
41728 \end_inset
41729
41730 if [ -z "${NOWEB_SOURCE}" ]
41731 \begin_inset Newline newline
41732 \end_inset
41733
41734 then
41735 \end_layout
41736
41737 \begin_layout LyX-Code
41738 NOWEB_SOURCE=myfile.nw
41739 \begin_inset Newline newline
41740 \end_inset
41741
41742 fi
41743 \begin_inset Newline newline
41744 \end_inset
41745
41746 [...
41747  code to extract files ...
41748  use NOWEB_OUTPUT_DIR here ...]
41749 \begin_inset Newline newline
41750 \end_inset
41751
41752 [...
41753  code to compile files ...]
41754 \begin_inset Newline newline
41755 \end_inset
41756
41757 @
41758 \end_layout
41759
41760 \begin_layout Standard
41761 Look in 
41762 \change_deleted 564990737 1672161716
41763
41764 \emph on
41765 LIBDIR/examples/listerrors.lyx
41766 \emph default
41767  or in 
41768 \emph on
41769 LIBDIR/examples/Literate.lyx
41770 \change_inserted 564990737 1672161716
41771
41772 \family sans
41773 \emph default
41774 File\SpecialChar menuseparator
41775 Open Example\SpecialChar menuseparator
41776 Modules\SpecialChar menuseparator
41777 Noweb Listerrors
41778 \change_unchanged
41779
41780 \family default
41781  
41782 \change_inserted -712698321 1674917096
41783 or in 
41784 \family sans
41785 File\SpecialChar menuseparator
41786 Open Example\SpecialChar menuseparator
41787 Modules\SpecialChar menuseparator
41788 Noweb2LyX
41789 \family default
41790  
41791 \change_unchanged
41792 which implement 
41793 \change_deleted 564990737 1672161729
41794 two 
41795 \change_unchanged
41796 versions of the 
41797 \begin_inset Quotes eld
41798 \end_inset
41799
41800 listerrors
41801 \begin_inset Quotes erd
41802 \end_inset
41803
41804  program for some illustrations of how all of these pieces go together 
41805 \change_deleted -712698321 1674917093
41806 or in 
41807 \change_deleted 564990737 1672161756
41808
41809 \emph on
41810 LIBDIR/examples/noweb2lyx.lyx
41811 \change_deleted -712698321 1674917093
41812
41813 \family sans
41814 \emph default
41815 File\SpecialChar menuseparator
41816 Open Example\SpecialChar menuseparator
41817 Modules\SpecialChar menuseparator
41818 Noweb2\SpecialChar LyX
41819
41820 \change_unchanged
41821
41822 \family default
41823 \emph on
41824 .
41825
41826 \emph default
41827  Interestingly,
41828  these 
41829 \change_deleted 564990737 1672161767
41830 three 
41831 \change_unchanged
41832 files show off the language-indepence of the \SpecialChar LyX
41833  literate programming support since they are written in Python
41834 \change_deleted 564990737 1672161782
41835 ,
41836  C
41837 \change_unchanged
41838  and Perl respectively.
41839 \end_layout
41840
41841 \begin_layout Subsubsection
41842 Configuring \SpecialChar LyX
41843
41844 \end_layout
41845
41846 \begin_layout Standard
41847 All the Literate Programming support is configured by the 
41848 \family sans
41849 Tools\SpecialChar menuseparator
41850 Preferences
41851 \family default
41852  panel in the 
41853 \begin_inset Quotes eld
41854 \end_inset
41855
41856 File Handling
41857 \begin_inset Quotes erd
41858 \end_inset
41859
41860  tab.
41861  The important parts are:
41862 \end_layout
41863
41864 \begin_layout Description
41865 the
41866 \begin_inset space ~
41867 \end_inset
41868
41869
41870 \begin_inset Quotes eld
41871 \end_inset
41872
41873 NoWeb
41874 \begin_inset Quotes erd
41875 \end_inset
41876
41877
41878 \begin_inset space ~
41879 \end_inset
41880
41881 format Set up via the File Formats tab,
41882  this is where the Noweb-specific pieces are set up.
41883  The 
41884 \family sans
41885 GUI Name
41886 \family default
41887  is set to 
41888 \family typewriter
41889 NoWeb
41890 \family default
41891 ,
41892  the file extension is set to 
41893 \family typewriter
41894 .nw
41895 \family default
41896 .
41897  This tells \SpecialChar LyX
41898  to create a file with a 
41899 \family typewriter
41900 .nw
41901 \family default
41902  extension in the first step of the conversion process.
41903 \end_layout
41904
41905 \begin_layout Description
41906 the
41907 \begin_inset space ~
41908 \end_inset
41909
41910
41911 \family sans
41912 Program
41913 \family default
41914
41915 \begin_inset space ~
41916 \end_inset
41917
41918 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).
41919 \end_layout
41920
41921 \begin_layout Description
41922
41923 \family sans
41924 NoWeb
41925 \family default
41926 ->
41927 \family sans
41928 \SpecialChar LaTeX
41929
41930 \family default
41931  This converter performs the 
41932 \begin_inset Quotes eld
41933 \end_inset
41934
41935 weaving
41936 \begin_inset Quotes erd
41937 \end_inset
41938
41939  of the literate document.
41940  For Noweb,
41941  it is set to 
41942 \begin_inset Quotes eld
41943 \end_inset
41944
41945
41946 \family typewriter
41947 noweave -delay -index $$i > $$o
41948 \family default
41949
41950 \begin_inset Quotes erd
41951 \end_inset
41952
41953
41954 \end_layout
41955
41956 \begin_layout Description
41957
41958 \family sans
41959 NoWeb
41960 \family default
41961 ->
41962 \family sans
41963 Program
41964 \family default
41965  This performs the 
41966 \begin_inset Quotes eld
41967 \end_inset
41968
41969 tangling step
41970 \begin_inset Quotes erd
41971 \end_inset
41972
41973 .
41974  As stated above,
41975  the Converter is set to 
41976 \begin_inset Quotes eld
41977 \end_inset
41978
41979
41980 \family typewriter
41981 build-script $$i
41982 \family default
41983  $$r
41984 \begin_inset Quotes erd
41985 \end_inset
41986
41987 ,
41988  with Flags set to
41989 \begin_inset Newline newline
41990 \end_inset
41991
41992
41993 \begin_inset Quotes eld
41994 \end_inset
41995
41996
41997 \family typewriter
41998 parselog=$$s/scripts/listerrors
41999 \family default
42000
42001 \begin_inset Quotes erd
42002 \end_inset
42003
42004 .
42005 \end_layout
42006
42007 \begin_layout Subsubsection
42008 Debug extensions
42009 \end_layout
42010
42011 \begin_layout Standard
42012 There is also a new function implemented in the \SpecialChar LyX
42013  server,
42014  the 
42015 \begin_inset Quotes eld
42016 \end_inset
42017
42018 server-goto-file-row" function,
42019  to be used with ddd/gdb or other debugger.
42020  
42021 \end_layout
42022
42023 \begin_layout Standard
42024 When debugging code with ddd/gdb,
42025  it is possible to invoke a text editor at the current execution position with a single key stroke.
42026  The default ddd configuration for that is shift-ctrl-V.
42027  It happens that you can define the editor command line invocation in ddd by accessing the 
42028 \family sans
42029 Edit\SpecialChar menuseparator
42030 Preferences\SpecialChar menuseparator
42031 Helpers
42032 \family default
42033  dialog and changing the "Edit Sources" entry.
42034 \end_layout
42035
42036 \begin_layout Standard
42037 I take advantage of the newly created \SpecialChar LyX
42038  server function and this ddd feature,
42039  and set 
42040 \begin_inset Quotes eld
42041 \end_inset
42042
42043 Edit Sources
42044 \begin_inset Quotes erd
42045 \end_inset
42046
42047  to:
42048 \end_layout
42049
42050 \begin_layout LyX-Code
42051 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
42052 \end_layout
42053
42054 \begin_layout Standard
42055 With this,
42056  whenever you are using ddd and find a point in the program that you want to edit,
42057  you just press shift-ctrl-V (in the ddd window),
42058  and ddd will forward this information to \SpecialChar LyX
42059  through the \SpecialChar LyX
42060  server and then the \SpecialChar LyX
42061  window will show the same file with the cursor at the same position ddd was pointing to.
42062  No more guessing or long scrolling to locate a point in the program back from debugging !
42063 \end_layout
42064
42065 \begin_layout Standard
42066 Note however that you must enable the \SpecialChar LyX
42067  server to get this feature working (it is disabled by default).
42068  Sec.
42069 \begin_inset space ~
42070 \end_inset
42071
42072
42073 \begin_inset CommandInset ref
42074 LatexCommand ref
42075 reference "sec:Starting-the-Server"
42076 nolink "false"
42077
42078 \end_inset
42079
42080  explains how to do that.
42081 \end_layout
42082
42083 \begin_layout Subsubsection
42084 Toolbar extensions
42085 \end_layout
42086
42087 \begin_layout Standard
42088 There are six new buttons that can be added to your \SpecialChar LyX
42089  toolbar.
42090  Four of these buttons are short cuts to layout styles:
42091  
42092 \family sans
42093 Standard
42094 \family default
42095 ,
42096  
42097 \family sans
42098 Section
42099 \family default
42100 ,
42101  
42102 \family sans
42103 \SpecialChar LaTeX
42104
42105 \family default
42106 ,
42107  and 
42108 \family sans
42109 \SpecialChar LyX
42110 -Code
42111 \family default
42112 ,
42113  one for the custom inset 
42114 \family sans
42115 Chunk
42116 \family default
42117 .
42118  The last one is a short cut to the 
42119 \begin_inset Quotes eld
42120 \end_inset
42121
42122 Build Program
42123 \begin_inset Quotes erd
42124 \end_inset
42125
42126  File menu entry.
42127  
42128 \end_layout
42129
42130 \begin_layout Standard
42131 \SpecialChar LyX
42132  has a range of buttons that are available for tool bar customization.
42133  In my toolbar I like to combine the six short cuts above with two more:
42134  One for 
42135 \family sans
42136 Document
42137 \family default
42138 \SpecialChar menuseparator
42139
42140 \family sans
42141 Update
42142 \family default
42143 \SpecialChar menuseparator
42144
42145 \family sans
42146 DVI
42147 \family default
42148  and the other for 
42149 \family sans
42150 Document\SpecialChar menuseparator
42151 View\SpecialChar menuseparator
42152 DVI
42153 \family default
42154  File menu entries.
42155  Here is how it looks like:
42156 \end_layout
42157
42158 \begin_layout LyX-Code
42159 Toolbar
42160 \end_layout
42161
42162 \begin_layout LyX-Code
42163   Layouts
42164 \end_layout
42165
42166 \begin_layout LyX-Code
42167   Icon "layout Standard"
42168 \end_layout
42169
42170 \begin_layout LyX-Code
42171   Icon "layout Section"
42172 \end_layout
42173
42174 \begin_layout LyX-Code
42175   Icon "layout \SpecialChar LaTeX
42176 "
42177 \end_layout
42178
42179 \begin_layout LyX-Code
42180   Icon "layout \SpecialChar LyX
42181 -Code"
42182 \end_layout
42183
42184 \begin_layout LyX-Code
42185   Icon "flex.insert Chunk"
42186 \end_layout
42187
42188 \begin_layout LyX-Code
42189   Separator
42190 \end_layout
42191
42192 \begin_layout LyX-Code
42193   Icon "buffer-view"
42194 \end_layout
42195
42196 \begin_layout LyX-Code
42197   Icon "buffer-typeset"
42198 \end_layout
42199
42200 \begin_layout LyX-Code
42201   Icon "build-program"
42202 \end_layout
42203
42204 \begin_layout LyX-Code
42205   Separator
42206 \end_layout
42207
42208 \begin_layout LyX-Code
42209 .
42210 \end_layout
42211
42212 \begin_layout LyX-Code
42213 .
42214 \end_layout
42215
42216 \begin_layout LyX-Code
42217 .
42218 \end_layout
42219
42220 \begin_layout LyX-Code
42221 End
42222 \end_layout
42223
42224 \begin_layout Subsubsection
42225 Colors customization
42226 \end_layout
42227
42228 \begin_layout Standard
42229 There are a number of colors in \SpecialChar LyX
42230  that can be customized in 
42231 \family sans
42232 Preferences
42233 \family default
42234 .
42235  One of the things that bothers people is the \SpecialChar LaTeX
42236  font color.
42237  The default color is red,
42238  since the chunks uses \SpecialChar LaTeX
42239  font,
42240  and there is a lot of chunks in literate documents,
42241  you may get tired of seeing everything in red.
42242  You can change it by going to the tabs 
42243 \family sans
42244 Look&Feel
42245 \family default
42246 ,
42247  
42248 \family sans
42249 Colors.
42250 \end_layout
42251
42252 \begin_layout Standard
42253 The next thing is the visible presence of the newline character in the screen.
42254  You can choose the color of this particular character and make it blend in the background.
42255  I recommend you choosing a color that is close to the background but not equal,
42256  that way you still can see it is there,
42257  but it is not bothering you anymore.
42258 \end_layout
42259
42260 \begin_layout Subsection
42261 \SpecialChar LyX
42262  and knitr/Sweave
42263 \end_layout
42264
42265 \begin_layout Standard
42266 Support for 
42267 \family sans
42268 knitr
42269 \family default
42270  and 
42271 \family sans
42272 Sweave
42273 \family default
42274  is documented in
42275 \change_inserted 564990737 1672161863
42276  
42277 \family sans
42278 Help\SpecialChar menuseparator
42279 Specific Manuals\SpecialChar menuseparator
42280 Knitr
42281 \family default
42282  and
42283 \change_unchanged
42284  
42285 \change_deleted 564990737 1671643409
42286 the 
42287 \emph on
42288 knitr.lyx
42289 \emph default
42290  example file
42291 \change_inserted 564990737 1672161856
42292
42293 \family sans
42294 File\SpecialChar menuseparator
42295 Open Example\SpecialChar menuseparator
42296 Modules\SpecialChar menuseparator
42297 Rnw (knitr)
42298 \change_unchanged
42299
42300 \family default
42301  and in 
42302 \change_deleted 564990737 1671643461
42303 the Sweave manual (menu 
42304 \family sans
42305 Help\SpecialChar menuseparator
42306 Specific Manuals
42307 \family default
42308 )
42309 \change_inserted 564990737 1672161856
42310
42311 \family sans
42312 Help\SpecialChar menuseparator
42313 Specific Manuals\SpecialChar menuseparator
42314 Sweave
42315 \change_deleted 564990737 1672161921
42316
42317 \family default
42318 .
42319
42320 \change_inserted 564990737 1672161917
42321  and 
42322 \family sans
42323 File\SpecialChar menuseparator
42324 Open Example\SpecialChar menuseparator
42325 Modules\SpecialChar menuseparator
42326 Sweave
42327 \family default
42328 .
42329 \change_deleted 564990737 1672742969
42330
42331 \end_layout
42332
42333 \begin_layout Standard
42334
42335 \change_deleted 564990737 1671355343
42336 Special features
42337 \end_layout
42338
42339 \begin_layout Standard
42340
42341 \change_deleted 564990737 1671355343
42342 You can do everything with \SpecialChar LyX
42343  that you can do with \SpecialChar LaTeX
42344 .
42345  However,
42346  \SpecialChar LyX
42347  cannot support every \SpecialChar LaTeX
42348  feature directly.
42349  But you can always use \SpecialChar TeX
42350  Code.
42351  This chapter shows you some more special things you might want to use.
42352  For other special things you can do with figures,
42353  tables,
42354  floats,
42355  boxes and notes,
42356  have a look at the 
42357 \emph on
42358 Embedded
42359 \begin_inset space ~
42360 \end_inset
42361
42362 Objects
42363 \emph default
42364  manual.
42365 \change_inserted -712698321 1674917293
42366
42367 \end_layout
42368
42369 \begin_layout Standard
42370
42371 \change_inserted -712698321 1674917303
42372 \begin_inset CommandInset index_print
42373 LatexCommand printindex
42374 type "idx"
42375 name "Index"
42376
42377 \end_inset
42378
42379
42380 \change_unchanged
42381
42382 \end_layout
42383
42384 \end_body
42385 \end_document