]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert short entries for Extra Font Sizes, Hebrew and Japanese document classes in...
[lyx.git] / lib / doc / Additional.lyx
1 #LyX 2.4 created this file. For more info see https://www.lyx.org/
2 \lyxformat 610
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 \end_modules
40 \maintain_unincluded_children no
41 \language english
42 \language_package default
43 \inputencoding utf8
44 \fontencoding auto
45 \font_roman "lmodern" "default"
46 \font_sans "lmss" "default"
47 \font_typewriter "lmtt" "default"
48 \font_math "auto" "auto"
49 \font_default_family default
50 \use_non_tex_fonts false
51 \font_sc false
52 \font_roman_osf false
53 \font_sans_osf false
54 \font_typewriter_osf false
55 \font_sf_scale 100 100
56 \font_tt_scale 100 100
57 \use_microtype false
58 \use_dash_ligatures true
59 \graphics default
60 \default_output_format pdf2
61 \output_sync 0
62 \bibtex_command default
63 \index_command default
64 \paperfontsize 12
65 \spacing single
66 \use_hyperref true
67 \pdf_title "LyX's Additional Features manual"
68 \pdf_author "LyX Team"
69 \pdf_subject "LyX's additional features documentation"
70 \pdf_keywords "LyX, Documentation, Additional"
71 \pdf_bookmarks true
72 \pdf_bookmarksnumbered true
73 \pdf_bookmarksopen false
74 \pdf_bookmarksopenlevel 1
75 \pdf_breaklinks false
76 \pdf_pdfborder false
77 \pdf_colorlinks true
78 \pdf_backref false
79 \pdf_pdfusetitle false
80 \pdf_quoted_options "linkcolor=black, citecolor=black, urlcolor=blue, filecolor=blue, pdfpagelayout=OneColumn, pdfnewwindow=true, pdfstartview=XYZ, plainpages=false"
81 \papersize a4
82 \use_geometry false
83 \use_package amsmath 1
84 \use_package amssymb 1
85 \use_package cancel 1
86 \use_package esint 1
87 \use_package mathdots 1
88 \use_package mathtools 1
89 \use_package mhchem 1
90 \use_package stackrel 1
91 \use_package stmaryrd 1
92 \use_package undertilde 1
93 \cite_engine basic
94 \cite_engine_type default
95 \biblio_style plain
96 \use_bibtopic false
97 \use_indices false
98 \paperorientation portrait
99 \suppress_date false
100 \justification true
101 \use_refstyle 0
102 \use_minted 0
103 \use_lineno 0
104 \notefontcolor #0000ff
105 \index Index
106 \shortcut idx
107 \color #008000
108 \end_index
109 \secnumdepth 3
110 \tocdepth 3
111 \paragraph_separation indent
112 \paragraph_indentation default
113 \is_math_indent 1
114 \math_indentation default
115 \math_numbering_side default
116 \quotes_style english
117 \dynamic_quotes 0
118 \papercolumns 1
119 \papersides 2
120 \paperpagestyle headings
121 \tablestyle default
122 \tracking_changes true
123 \output_changes false
124 \change_bars false
125 \postpone_fragile_content false
126 \html_math_output 0
127 \html_css_as_file 0
128 \html_be_strict true
129 \docbook_table_output 0
130 \docbook_mathml_prefix 1
131 \author -712698321 "Jürgen Spitzmüller"
132 \author 177693 "x"
133 \author 5863208 "ab"
134 \author 244031559 "Yuriy"
135 \author 564990737 "John Lyx"
136 \author 630872221 "Jean-Pierre Chrétien" jeanpierre.chretien@free.fr
137 \author 1075283030 "Thibaut"
138 \author 1119979965 "Joel A. Kulesza"
139 \end_header
140
141 \begin_body
142
143 \begin_layout Title
144 Additional \SpecialChar LyX
145  Features
146 \end_layout
147
148 \begin_layout Subtitle
149 Version 2.
150 \change_deleted 630872221 1622909155
151 3
152 \change_inserted 630872221 1622909155
153 4
154 \change_unchanged
155 .x
156 \end_layout
157
158 \begin_layout Author
159 by the \SpecialChar LyX
160  Team
161 \begin_inset Foot
162 status collapsed
163
164 \begin_layout Plain Layout
165 \noindent
166 Principal maintainer of this file is
167 \noun on
168  Richard Kimberly Heck
169 \noun default
170 .
171  If you have comments or error corrections, please send them to the \SpecialChar LyX
172  Documentati
173 on mailing list, 
174 \begin_inset Flex Code
175 status collapsed
176
177 \begin_layout Plain Layout
178 <lyx-docs@lists.lyx.org>
179 \end_layout
180
181 \end_inset
182
183 .
184 \end_layout
185
186 \end_inset
187
188
189 \end_layout
190
191 \begin_layout Standard
192 \begin_inset CommandInset toc
193 LatexCommand tableofcontents
194
195 \end_inset
196
197
198 \end_layout
199
200 \begin_layout Chapter
201 Introduction
202 \end_layout
203
204 \begin_layout Standard
205 This manual is essentially Part II of the 
206 \emph on
207 User's Guide\SpecialChar endofsentence
208
209 \emph default
210  The reason for separating the two documents is simple: the 
211 \emph on
212 User's Guide
213 \emph default
214  is already quite lengthy, and it contains information on all of the basic
215  features one needs to know in order to prepare most documents.
216  However, the \SpecialChar LyX
217  Team has worked to make \SpecialChar LyX
218  extensible through various configuration
219  files and external packages.
220  That means that if you want to support the Fizzwizzle \SpecialChar LaTeX
221  package, you can
222  create a layout file (or module) for it without having to alter \SpecialChar LyX
223  itself.
224  We've already had contributions of several new features this way, and some
225  of them are documented here.
226  There are also some more `advanced' features, such as how to control the
227  presentation of bibliographies and how to work with multi-part documents,
228  that are not covered in the 
229 \emph on
230 User's Guide
231 \emph default
232  and are discussed here.
233 \end_layout
234
235 \begin_layout Standard
236 This manual also documents some special features, like fax support
237 \change_deleted 244031559 1603802929
238 ,
239 \change_inserted 244031559 1603802931
240  and
241 \change_unchanged
242  version control
243 \change_deleted 244031559 1603802954
244 , and SGML support
245 \change_unchanged
246 , which require additional software to work properly.
247  There is also a chapter on \SpecialChar LyX
248 's support for HTML.
249  And lastly, there's a chapter of \SpecialChar LaTeX
250  tools and tips, things you can use to
251  spruce up your documents by directly using the powerful features of \SpecialChar LaTeX
252 .
253  After all, \SpecialChar LyX
254  
255 \emph on
256 is
257 \emph default
258  only WYSIWYM and will only ever interface to some, not all, \SpecialChar LaTeX
259  features.
260 \end_layout
261
262 \begin_layout Standard
263 If you haven't read the 
264 \emph on
265 Introduction
266 \emph default
267  yet, you are definitely in the wrong manual.
268  The 
269 \emph on
270 Introduction
271 \emph default
272  is the first place to go, since it describes the notation and format of
273  all of the manuals.
274  You should also be thoroughly familiar with the 
275 \emph on
276 User's Guide
277 \emph default
278  and all of the basic features of \SpecialChar LyX
279  before attempting to read this one.
280 \end_layout
281
282 \begin_layout Standard
283 Since many of the topics in this manual depend heavily on \SpecialChar LyX
284 's interaction
285  with \SpecialChar LaTeX
286 , this first chapter covers the inner workings of \SpecialChar LyX
287  and how to direct
288  \SpecialChar LyX
289  to generate exactly the \SpecialChar LaTeX
290  code you want.
291  It is obviously for more seasoned \SpecialChar LyX
292  users.
293 \end_layout
294
295 \begin_layout Chapter
296 \SpecialChar LyX
297  and \SpecialChar LaTeX
298
299 \end_layout
300
301 \begin_layout Section
302 How \SpecialChar LyX
303  Uses \SpecialChar LaTeX
304
305 \end_layout
306
307 \begin_layout Standard
308 This chapter is for both \SpecialChar TeX
309 -nicians and the \SpecialChar LaTeX
310 -curious.
311  In it, we'll explain how \SpecialChar LyX
312  and \SpecialChar LaTeX
313  work together to produce printable output.
314  This is the only place in any of the manuals where we assume you know something
315  about \SpecialChar LaTeX
316 .
317 \end_layout
318
319 \begin_layout Standard
320 At one time, \SpecialChar LyX
321  was called a 
322 \begin_inset Quotes eld
323 \end_inset
324
325 WYSIWYM frontend to \SpecialChar LaTeX
326 ,
327 \begin_inset Quotes erd
328 \end_inset
329
330  but that's no longer true.
331  There are frontends to \SpecialChar LaTeX
332  out there.
333 \begin_inset Foot
334 status collapsed
335
336 \begin_layout Plain Layout
337 Some familar ones are \SpecialChar TeX
338 maker and kile, on Linux, and \SpecialChar TeX
339 shop, OSX.
340  There are also the \SpecialChar LaTeX
341  modes for vi and emacs, of course.
342 \end_layout
343
344 \end_inset
345
346  These are basically text editors with the ability to run \SpecialChar LaTeX
347  and mark any
348  errors in the file you're editing.
349  Although \SpecialChar LyX
350  
351 \emph on
352 is
353 \emph default
354  an editor, and it 
355 \emph on
356 does
357 \emph default
358  run \SpecialChar LaTeX
359 , and it also indicates errors in the file, it also does much, much
360  more.
361  For one thing, you don't need to know \SpecialChar LaTeX
362  to use \SpecialChar LyX
363  effectively.
364  And \SpecialChar LyX
365  has added its own extensions to \SpecialChar LaTeX
366 .
367  Try the following sometime: select 
368 \begin_inset Flex Noun
369 status collapsed
370
371 \begin_layout Plain Layout
372 Export\SpecialChar menuseparator
373 LaTeX
374 \end_layout
375
376 \end_inset
377
378  from the 
379 \begin_inset Flex Noun
380 status collapsed
381
382 \begin_layout Plain Layout
383 File
384 \end_layout
385
386 \end_inset
387
388  menu (or 
389 \begin_inset Flex Noun
390 status collapsed
391
392 \begin_layout Plain Layout
393 View\SpecialChar menuseparator
394 Source
395 \begin_inset space ~
396 \end_inset
397
398 Pane
399 \end_layout
400
401 \end_inset
402
403 ), then look at the preamble of the resulting 
404 \begin_inset Flex Code
405 status collapsed
406
407 \begin_layout Plain Layout
408 .tex
409 \end_layout
410
411 \end_inset
412
413  file.
414  You'll notice a variety of new macros defined specifically by \SpecialChar LyX
415 .
416  These macros are defined automatically, according to the features you use
417  in the document.
418 \end_layout
419
420 \begin_layout Standard
421 There are several commands that automatically invoke \SpecialChar LaTeX
422 .
423  They are:
424 \end_layout
425
426 \begin_layout Itemize
427 \begin_inset Flex Noun
428 status collapsed
429
430 \begin_layout Plain Layout
431 Document\SpecialChar menuseparator
432 View
433 \end_layout
434
435 \end_inset
436
437
438 \end_layout
439
440 \begin_layout Itemize
441 \begin_inset Flex Noun
442 status collapsed
443
444 \begin_layout Plain Layout
445 Document\SpecialChar menuseparator
446 Update
447 \end_layout
448
449 \end_inset
450
451
452 \end_layout
453
454 \begin_layout Standard
455 They will only invoke \SpecialChar LaTeX
456  if the file has changed since the last time \SpecialChar LaTeX
457  was
458  run.
459  
460 \end_layout
461
462 \begin_layout Standard
463 When \SpecialChar LyX
464  runs \SpecialChar LaTeX
465  on the file you're editing, it performs these steps:
466 \end_layout
467
468 \begin_layout Enumerate
469 Convert the document to \SpecialChar LaTeX
470  and save to a file with the extension 
471 \begin_inset Flex Code
472 status collapsed
473
474 \begin_layout Plain Layout
475 .tex
476 \end_layout
477
478 \end_inset
479
480  in place of 
481 \begin_inset Flex Code
482 status collapsed
483
484 \begin_layout Plain Layout
485 .lyx
486 \end_layout
487
488 \end_inset
489
490 .
491 \end_layout
492
493 \begin_layout Enumerate
494 Run \SpecialChar LaTeX
495  on the 
496 \begin_inset Flex Code
497 status collapsed
498
499 \begin_layout Plain Layout
500 .tex
501 \end_layout
502
503 \end_inset
504
505  file (maybe several times), and run any other commands (such as 
506 \begin_inset Flex Code
507 status collapsed
508
509 \begin_layout Plain Layout
510 bibtex
511 \end_layout
512
513 \end_inset
514
515  or 
516 \begin_inset Flex Code
517 status collapsed
518
519 \begin_layout Plain Layout
520 makeindex
521 \end_layout
522
523 \end_inset
524
525 ) needed to compile the \SpecialChar LaTeX
526  file.
527 \end_layout
528
529 \begin_layout Enumerate
530 If there are any errors, show the error log.
531 \end_layout
532
533 \begin_layout Standard
534 If you have run \SpecialChar LaTeX
535  using 
536 \begin_inset Flex Noun
537 status collapsed
538
539 \begin_layout Plain Layout
540 View\SpecialChar menuseparator
541 DVI
542 \end_layout
543
544 \end_inset
545
546 , \SpecialChar LyX
547  then runs a DVI viewer to display the DVI-file.
548  If you have used 
549 \begin_inset Flex Noun
550 status collapsed
551
552 \begin_layout Plain Layout
553 View\SpecialChar menuseparator
554 PostScript
555 \end_layout
556
557 \end_inset
558
559 , \SpecialChar LyX
560  performs further steps:
561 \end_layout
562
563 \begin_layout Enumerate
564 Run 
565 \begin_inset Flex Code
566 status collapsed
567
568 \begin_layout Plain Layout
569 dvips
570 \end_layout
571
572 \end_inset
573
574  to convert the DVI file to PostScript.
575 \end_layout
576
577 \begin_layout Enumerate
578 Run a PostScript viewer, such as 
579 \begin_inset Flex Code
580 status collapsed
581
582 \begin_layout Plain Layout
583 ghostview
584 \end_layout
585
586 \end_inset
587
588 , to display the PostScript file.
589 \end_layout
590
591 \begin_layout Standard
592 \SpecialChar LyX
593  does similar things when viewing, or exporting, other formats.
594 \end_layout
595
596 \begin_layout Section
597 Translating \SpecialChar LaTeX
598  files into \SpecialChar LyX
599
600 \end_layout
601
602 \begin_layout Standard
603 You can import a \SpecialChar LaTeX
604  file into \SpecialChar LyX
605  by using the 
606 \begin_inset Flex Noun
607 status collapsed
608
609 \begin_layout Plain Layout
610 File\SpecialChar menuseparator
611 Import\SpecialChar menuseparator
612 LaTeX
613 \end_layout
614
615 \end_inset
616
617  command in \SpecialChar LyX
618 .
619  This will call a program named 
620 \begin_inset Flex Code
621 status collapsed
622
623 \begin_layout Plain Layout
624 tex2lyx
625 \end_layout
626
627 \end_inset
628
629  which will create a file 
630 \begin_inset Flex Code
631 status collapsed
632
633 \begin_layout Plain Layout
634 foo.lyx
635 \end_layout
636
637 \end_inset
638
639  from the file 
640 \begin_inset Flex Code
641 status collapsed
642
643 \begin_layout Plain Layout
644 foo.tex
645 \end_layout
646
647 \end_inset
648
649 .
650  \SpecialChar LyX
651  will then open that file.
652 \begin_inset Foot
653 status collapsed
654
655 \begin_layout Plain Layout
656 \begin_inset Flex Code
657 status collapsed
658
659 \begin_layout Plain Layout
660 tex2lyx
661 \end_layout
662
663 \end_inset
664
665  can also be run from the command line, of course.
666 \end_layout
667
668 \end_inset
669
670
671 \end_layout
672
673 \begin_layout Standard
674 \begin_inset Flex Code
675 status collapsed
676
677 \begin_layout Plain Layout
678 tex2lyx
679 \end_layout
680
681 \end_inset
682
683  will translate most legal \SpecialChar LaTeX
684 , but not everything.
685  It will put things it doesn't understand into \SpecialChar TeX
686  code, so after translating
687  a file with 
688 \begin_inset Flex Code
689 status collapsed
690
691 \begin_layout Plain Layout
692 tex2lyx
693 \end_layout
694
695 \end_inset
696
697 , you can look for \SpecialChar TeX
698  code and hand-edit it until it looks right.
699 \end_layout
700
701 \begin_layout Standard
702 If you don't know what \SpecialChar TeX
703  code is, read the next section.
704 \end_layout
705
706 \begin_layout Section
707 \begin_inset CommandInset label
708 LatexCommand label
709 name "sec:Inserting-TeX-Code"
710
711 \end_inset
712
713 Inserting \SpecialChar TeX
714  Code into \SpecialChar LyX
715  Documents 
716 \end_layout
717
718 \begin_layout Standard
719 Anything you can do in \SpecialChar LaTeX
720  you can do in \SpecialChar LyX
721 , for a very simple reason: You can
722  always insert \SpecialChar TeX
723  code into any \SpecialChar LyX
724  document.
725  \SpecialChar LyX
726  cannot, and will never be able to, display every possible \SpecialChar LaTeX
727  construct.
728  If ever you need to insert \SpecialChar LaTeX
729  commands into your \SpecialChar LyX
730  document, you can use the
731  
732 \begin_inset Flex Code
733 status collapsed
734
735 \begin_layout Plain Layout
736 \SpecialChar TeX
737  Code
738 \end_layout
739
740 \end_inset
741
742  box, which you can insert into your document with 
743 \begin_inset Flex Noun
744 status collapsed
745
746 \begin_layout Plain Layout
747 Insert\SpecialChar menuseparator
748
749 \family sans
750 TeX
751 \family default
752  Code
753 \end_layout
754
755 \end_inset
756
757  or the keyboard shortcut 
758 \begin_inset Info
759 type  "shortcut"
760 arg   "ert-insert"
761 \end_inset
762
763 .
764 \end_layout
765
766 \begin_layout Standard
767 Here's an example of inserting \SpecialChar LaTeX
768  commands in a \SpecialChar LyX
769  document.
770  The code looks like this:
771 \end_layout
772
773 \begin_layout LyX-Code
774
775 \backslash
776 begin{tabular}{ll}
777 \begin_inset Newline newline
778 \end_inset
779
780
781 \backslash
782 begin{minipage}{5cm}
783 \begin_inset Newline newline
784 \end_inset
785
786 This is an example of a minipage environment.
787  You 
788 \begin_inset Newline newline
789 \end_inset
790
791 can put nearly everything in it, even (non-floating) 
792 \begin_inset Newline newline
793 \end_inset
794
795 figures and tables.
796  
797 \begin_inset Newline newline
798 \end_inset
799
800
801 \backslash
802 end{minipage}
803 \begin_inset Newline newline
804 \end_inset
805
806 &
807 \begin_inset Newline newline
808 \end_inset
809
810
811 \backslash
812 begin{minipage}{5cm}
813 \begin_inset Newline newline
814 \end_inset
815
816
817 \backslash
818 begin{verbatim}
819 \begin_inset Newline newline
820 \end_inset
821
822
823 \backslash
824 begin{minipage}{5cm}
825 \begin_inset Newline newline
826 \end_inset
827
828 This ...
829  
830 \begin_inset Newline newline
831 \end_inset
832
833
834 \backslash
835 end{minipage}
836 \begin_inset Newline newline
837 \end_inset
838
839
840 \backslash
841 end{verbatim}
842 \begin_inset Newline newline
843 \end_inset
844
845
846 \backslash
847 end{minipage}
848 \begin_inset Newline newline
849 \end_inset
850
851
852 \backslash
853 end{tabular}
854 \end_layout
855
856 \begin_layout LyX-Code
857
858 \end_layout
859
860 \begin_layout Standard
861 The 
862 \begin_inset Flex Code
863 status collapsed
864
865 \begin_layout Plain Layout
866 \SpecialChar TeX
867  Code
868 \end_layout
869
870 \end_inset
871
872  box containing this text is directly after this paragraph.
873  Those of you reading the manual in \SpecialChar LyX
874  will only see the \SpecialChar TeX
875  code inset.
876  Those reading a printed version of the manuals will see the actual results:
877 \begin_inset VSpace bigskip
878 \end_inset
879
880
881 \end_layout
882
883 \begin_layout Standard
884 \begin_inset ERT
885 status open
886
887 \begin_layout Plain Layout
888
889
890 \backslash
891 begin{tabular}{ll}
892 \end_layout
893
894 \begin_layout Plain Layout
895
896
897 \backslash
898 begin{minipage}{5cm}
899 \end_layout
900
901 \begin_layout Plain Layout
902
903 This is an example of a minipage environment.
904  You can put nearly everything in it, even (non-floating) figures and tables.
905  
906 \end_layout
907
908 \begin_layout Plain Layout
909
910
911 \backslash
912 end{minipage}
913 \end_layout
914
915 \begin_layout Plain Layout
916
917 &
918 \end_layout
919
920 \begin_layout Plain Layout
921
922
923 \backslash
924 begin{minipage}{5cm}
925 \end_layout
926
927 \begin_layout Plain Layout
928
929
930 \backslash
931 begin{verbatim}
932 \end_layout
933
934 \begin_layout Plain Layout
935
936
937 \backslash
938 begin{minipage}{5cm}
939 \end_layout
940
941 \begin_layout Plain Layout
942
943 This ...
944  
945 \end_layout
946
947 \begin_layout Plain Layout
948
949
950 \backslash
951 end{minipage}
952 \end_layout
953
954 \begin_layout Plain Layout
955
956
957 \backslash
958 end{verbatim}
959 \end_layout
960
961 \begin_layout Plain Layout
962
963
964 \backslash
965 end{minipage}
966 \end_layout
967
968 \begin_layout Plain Layout
969
970
971 \backslash
972 end{tabular}
973 \end_layout
974
975 \end_inset
976
977
978 \begin_inset VSpace bigskip
979 \end_inset
980
981
982 \end_layout
983
984 \begin_layout Standard
985 In addition to using \SpecialChar TeX
986  code, you can also create a separate file containing
987  some complex \SpecialChar LaTeX
988  structure and then use 
989 \begin_inset Flex Noun
990 status collapsed
991
992 \begin_layout Plain Layout
993 Insert\SpecialChar menuseparator
994 Child
995 \begin_inset space ~
996 \end_inset
997
998 Document
999 \end_layout
1000
1001 \end_inset
1002
1003  to include your file (you should select the type 
1004 \begin_inset Flex Code
1005 status collapsed
1006
1007 \begin_layout Plain Layout
1008 Input
1009 \end_layout
1010
1011 \end_inset
1012
1013 ).
1014  We recommend that you only do this if you have a 
1015 \begin_inset Flex Code
1016 status collapsed
1017
1018 \begin_layout Plain Layout
1019 .tex
1020 \end_layout
1021
1022 \end_inset
1023
1024  file which you 
1025 \emph on
1026 know
1027 \emph default
1028  works already.
1029  Otherwise, you'll have a big job tracking down \SpecialChar LaTeX
1030  errors.
1031 \end_layout
1032
1033 \begin_layout Standard
1034 There are a few last points to emphasize:
1035 \end_layout
1036
1037 \begin_layout Itemize
1038 \SpecialChar LyX
1039  
1040 \emph on
1041 does not
1042 \emph default
1043  check if your \SpecialChar LaTeX
1044  code is correct.
1045 \end_layout
1046
1047 \begin_layout Itemize
1048 Beware of reinventing the wheel.
1049 \end_layout
1050
1051 \begin_layout Standard
1052 On that last point, \SpecialChar LyX
1053  does have quite a few features tucked into it, and
1054  more are coming.
1055  Be sure to check the manuals to make sure that \SpecialChar LyX
1056  doesn't have such-and-such
1057  feature before you decide you have to do it by hand.
1058  Moreover, there are numerous \SpecialChar LaTeX
1059  packages out there to do all sorts of things,
1060  from labels to envelopes to fancy multipage tables.
1061  Check out 
1062 \change_inserted 244031559 1603815732
1063
1064 \begin_inset CommandInset href
1065 LatexCommand href
1066 name "CTAN"
1067 target "https://www.ctan.org/"
1068 literal "false"
1069
1070 \end_inset
1071
1072
1073 \change_deleted 244031559 1603815732
1074
1075 \begin_inset CommandInset href
1076 LatexCommand href
1077 name "CTAN"
1078 target "http://www.ctan.org/"
1079 literal "false"
1080
1081 \end_inset
1082
1083
1084 \change_unchanged
1085  for details.
1086 \end_layout
1087
1088 \begin_layout Standard
1089 If you do need to do some wild and fancy things within your document, be
1090  sure to check out a good \SpecialChar LaTeX
1091  book for assistance.
1092  There are a number of them listed in the bibliography of the 
1093 \emph on
1094 User's Guide
1095 \emph default
1096 .
1097 \end_layout
1098
1099 \begin_layout Section
1100 \SpecialChar LyX
1101  and the \SpecialChar LaTeX
1102  Preamble
1103 \end_layout
1104
1105 \begin_layout Subsection
1106 About the \SpecialChar LaTeX
1107  Preamble
1108 \end_layout
1109
1110 \begin_layout Standard
1111 If you already know \SpecialChar LaTeX
1112 , there is no need to explain here what the preamble
1113  is good for.
1114  If you don't, the following will give you some ideas—we recommend again
1115  that you consult a \SpecialChar LaTeX
1116  book for further information.
1117  In any case, you should read the points below, because they explain what
1118  you can do and what you don't need to do in the \SpecialChar LaTeX
1119  preamble of a \SpecialChar LyX
1120  document.
1121 \end_layout
1122
1123 \begin_layout Standard
1124 The \SpecialChar LaTeX
1125  preamble comes at the very beginning of a document, 
1126 \emph on
1127 before
1128 \emph default
1129  the text.
1130  It serves to:
1131 \end_layout
1132
1133 \begin_layout Itemize
1134 Declare the document class.
1135  
1136 \begin_inset Newline newline
1137 \end_inset
1138
1139 \SpecialChar LyX
1140  already does this for you.
1141  If you're a seasoned \SpecialChar LaTeX
1142 -nician, and you have a custom document class you
1143  want to use, check out the 
1144 \emph on
1145 Customization Manual
1146 \emph default
1147  for information on how to make \SpecialChar LyX
1148  interface to it.
1149 \end_layout
1150
1151 \begin_layout Itemize
1152 Declare the usage of packages.
1153  
1154 \begin_inset Newline newline
1155 \end_inset
1156
1157 \SpecialChar LaTeX
1158  packages provide special commands, which are only available within a document
1159  when the package has been declared in the preamble.
1160  In addition to providing special commands, the inclusion of a package can
1161  change the document.
1162  For example, the package 
1163 \begin_inset Flex Code
1164 status collapsed
1165
1166 \begin_layout Plain Layout
1167 indentfirst
1168 \end_layout
1169
1170 \end_inset
1171
1172  forces all paragraphs to be indented.
1173  There are other packages for labels, envelopes, margins, etc.
1174  
1175 \end_layout
1176
1177 \begin_layout Itemize
1178 Set counters, variables, lengths and widths.
1179  
1180 \begin_inset Newline newline
1181 \end_inset
1182
1183 There are several \SpecialChar LaTeX
1184  counters and variables that 
1185 \emph on
1186 must
1187 \emph default
1188  be set globally from within the preamble in order to have the desired effect.
1189  (There are variables that you can set and reset inside the document, too.)
1190  Margins are a good example of something that must be set in the preamble.
1191  Another example is the label format for lists.
1192  You can actually set these just about anywhere, but it's best to do it
1193  just once, inside the preamble.
1194 \end_layout
1195
1196 \begin_layout Itemize
1197 Declare user defined commands (with 
1198 \begin_inset Flex Code
1199 status collapsed
1200
1201 \begin_layout Plain Layout
1202
1203 \backslash
1204 newcommand
1205 \end_layout
1206
1207 \end_inset
1208
1209  or 
1210 \begin_inset Flex Code
1211 status collapsed
1212
1213 \begin_layout Plain Layout
1214
1215 \backslash
1216 renewcommand
1217 \end_layout
1218
1219 \end_inset
1220
1221 ).
1222 \begin_inset Newline newline
1223 \end_inset
1224
1225 These are abbreviations for \SpecialChar LaTeX
1226  commands which appear very often inside a document.
1227  Although the preamble is a good place to declare such commands, they 
1228 \emph on
1229 can
1230 \emph default
1231  be declared anywhere (before they are used for the first time, of course).
1232  This can be useful if there is a lot of raw \SpecialChar LaTeX
1233  code in your document, which
1234  normally should not be the case.
1235 \end_layout
1236
1237 \begin_layout Standard
1238 \SpecialChar LyX
1239  adds its own set of definitions to the preamble of the 
1240 \begin_inset Flex Code
1241 status collapsed
1242
1243 \begin_layout Plain Layout
1244 .tex
1245 \end_layout
1246
1247 \end_inset
1248
1249  file it produces.
1250  This makes \SpecialChar LaTeX
1251  files generated by \SpecialChar LyX
1252  portable.
1253 \end_layout
1254
1255 \begin_layout Subsection
1256 Changing the Preamble
1257 \end_layout
1258
1259 \begin_layout Standard
1260 The commands which \SpecialChar LyX
1261  adds to the preamble of a \SpecialChar LaTeX
1262  file are fixed; you can't
1263  change them without patching \SpecialChar LyX
1264  itself.
1265  You can, however, add your own stuff to the preamble by selecting 
1266 \begin_inset Flex Noun
1267 status collapsed
1268
1269 \begin_layout Plain Layout
1270 \SpecialChar LaTeX
1271
1272 \begin_inset space ~
1273 \end_inset
1274
1275 Preamble
1276 \end_layout
1277
1278 \end_inset
1279
1280  in the 
1281 \begin_inset Flex Noun
1282 status collapsed
1283
1284 \begin_layout Plain Layout
1285 Document\SpecialChar menuseparator
1286 Settings
1287 \end_layout
1288
1289 \end_inset
1290
1291  dialog.
1292  \SpecialChar LyX
1293  adds anything in the 
1294 \begin_inset Flex Noun
1295 status collapsed
1296
1297 \begin_layout Plain Layout
1298 Preamble
1299 \end_layout
1300
1301 \end_inset
1302
1303  dialog to its own built-in preamble.
1304  Before adding your own declarations in the preamble, you should make sure
1305  that \SpecialChar LyX
1306  doesn't already support what you want to do.
1307  (Remember what we said about reinventing the wheel?) Also, 
1308 \emph on
1309 make sure your preamble code is correct
1310 \emph default
1311 .
1312  \SpecialChar LyX
1313  doesn't check it for you.
1314  If there is an error, you're likely to get an error like 
1315 \begin_inset Quotes eld
1316 \end_inset
1317
1318
1319 \begin_inset Flex Code
1320 status collapsed
1321
1322 \begin_layout Plain Layout
1323 Missing 
1324 \backslash
1325 begin{document}
1326 \end_layout
1327
1328 \end_inset
1329
1330
1331 \begin_inset Quotes erd
1332 \end_inset
1333
1334 .
1335  If you see this error, check your preamble.
1336 \end_layout
1337
1338 \begin_layout Subsection
1339 Examples
1340 \end_layout
1341
1342 \begin_layout Standard
1343 Here are some examples of what you can add to a preamble, and what they
1344  do.
1345 \end_layout
1346
1347 \begin_layout Subsubsection
1348 Example #1: Offsets
1349 \end_layout
1350
1351 \begin_layout Standard
1352 There are two variables under \SpecialChar LaTeX
1353  that control page position: 
1354 \begin_inset Flex Code
1355 status collapsed
1356
1357 \begin_layout Plain Layout
1358
1359 \backslash
1360 hoffset
1361 \end_layout
1362
1363 \end_inset
1364
1365  and 
1366 \begin_inset Flex Code
1367 status collapsed
1368
1369 \begin_layout Plain Layout
1370
1371 \backslash
1372 voffset
1373 \end_layout
1374
1375 \end_inset
1376
1377 .
1378  Their names should be self-explanatory.
1379  These variables are useful if you think for a moment about computer labels.
1380  Sometimes, the size of a print medium and the area of the medium that you
1381  can actually print on aren't the same.
1382  This is where 
1383 \begin_inset Flex Code
1384 status collapsed
1385
1386 \begin_layout Plain Layout
1387
1388 \backslash
1389 hoffset
1390 \end_layout
1391
1392 \end_inset
1393
1394  and 
1395 \begin_inset Flex Code
1396 status collapsed
1397
1398 \begin_layout Plain Layout
1399
1400 \backslash
1401 voffset
1402 \end_layout
1403
1404 \end_inset
1405
1406  come in.
1407 \end_layout
1408
1409 \begin_layout Standard
1410 The default values for 
1411 \begin_inset Flex Code
1412 status collapsed
1413
1414 \begin_layout Plain Layout
1415
1416 \backslash
1417 hoffset
1418 \end_layout
1419
1420 \end_inset
1421
1422  and 
1423 \begin_inset Flex Code
1424 status collapsed
1425
1426 \begin_layout Plain Layout
1427
1428 \backslash
1429 voffset
1430 \end_layout
1431
1432 \end_inset
1433
1434  are both 0
1435 \begin_inset space \thinspace{}
1436 \end_inset
1437
1438 points, i.
1439 \begin_inset space \thinspace{}
1440 \end_inset
1441
1442 e.
1443 \begin_inset space \space{}
1444 \end_inset
1445
1446 the page isn't shifted.
1447  Unfortunately, some DVI drivers always seem to shift the page.
1448  We have no idea why, or why the sysadmin hasn't fixed such behavior.
1449  If you're using \SpecialChar LyX
1450  on a system that you don't personally maintain, and your
1451  sysadmin is a doofus, 
1452 \begin_inset Flex Code
1453 status collapsed
1454
1455 \begin_layout Plain Layout
1456
1457 \backslash
1458 hoffset
1459 \end_layout
1460
1461 \end_inset
1462
1463  and 
1464 \begin_inset Flex Code
1465 status collapsed
1466
1467 \begin_layout Plain Layout
1468
1469 \backslash
1470 voffset
1471 \end_layout
1472
1473 \end_inset
1474
1475  can save the day.
1476  Suppose your left and top margins are always 0.5
1477 \begin_inset space \thinspace{}
1478 \end_inset
1479
1480 inches too big.
1481  You can add this to the preamble:
1482 \end_layout
1483
1484 \begin_layout LyX-Code
1485
1486 \backslash
1487 setlength{
1488 \backslash
1489 hoffset}{-0.5 in}
1490 \end_layout
1491
1492 \begin_layout LyX-Code
1493
1494 \backslash
1495 setlength{
1496 \backslash
1497 voffset}{-0.5 in}
1498 \end_layout
1499
1500 \begin_layout Standard
1501 and your margins should now be correct.
1502 \end_layout
1503
1504 \begin_layout Subsubsection
1505 Example #2: Labels
1506 \end_layout
1507
1508 \begin_layout Standard
1509 Speaking of labels, suppose you wanted to print out a bunch of address labels.
1510  There's a rather nice package, available at your nearest CTAN archive,
1511  for printing sheets of labels: 
1512 \begin_inset Flex Code
1513 status collapsed
1514
1515 \begin_layout Plain Layout
1516 labels.sty
1517 \end_layout
1518
1519 \end_inset
1520
1521 .
1522  Now, your system may not have this package installed by default.
1523  We leave that up to you to check.
1524  You'll also want to read the documentation for it; we're not going to do
1525  that for you.
1526  Since this is an example, however, we'll give you an example of how you
1527  use this package.
1528 \end_layout
1529
1530 \begin_layout Standard
1531 First, make sure you're using the 
1532 \begin_inset Flex Code
1533 status collapsed
1534
1535 \begin_layout Plain Layout
1536 article
1537 \end_layout
1538
1539 \end_inset
1540
1541  document class.
1542  Next, you need to put the following in your preamble:
1543 \end_layout
1544
1545 \begin_layout LyX-Code
1546
1547 \backslash
1548 usepackage{labels}
1549 \end_layout
1550
1551 \begin_layout LyX-Code
1552
1553 \backslash
1554 LabelCols=3
1555 \end_layout
1556
1557 \begin_layout LyX-Code
1558
1559 \backslash
1560 LabelRows=7
1561 \end_layout
1562
1563 \begin_layout LyX-Code
1564
1565 \backslash
1566 LeftBorder=8mm
1567 \end_layout
1568
1569 \begin_layout LyX-Code
1570
1571 \backslash
1572 RightBorder=8mm
1573 \end_layout
1574
1575 \begin_layout LyX-Code
1576
1577 \backslash
1578 TopBorder=9mm
1579 \end_layout
1580
1581 \begin_layout LyX-Code
1582
1583 \backslash
1584 BottomBorder=2mm
1585 \end_layout
1586
1587 \begin_layout Standard
1588 This sets things up for Avery label sheets, stock #5360.
1589  You're now ready to print labels, but you'll need to insert \SpecialChar LaTeX
1590  code, placing
1591  the commands 
1592 \begin_inset Flex Code
1593 status collapsed
1594
1595 \begin_layout Plain Layout
1596
1597 \backslash
1598 begin{labels}
1599 \end_layout
1600
1601 \end_inset
1602
1603  and 
1604 \begin_inset Flex Code
1605 status collapsed
1606
1607 \begin_layout Plain Layout
1608
1609 \backslash
1610 end{labels}
1611 \end_layout
1612
1613 \end_inset
1614
1615  around each label text.
1616  This and other special features of 
1617 \begin_inset Flex Code
1618 status collapsed
1619
1620 \begin_layout Plain Layout
1621 labels.sty
1622 \end_layout
1623
1624 \end_inset
1625
1626  are explained in its documentation.
1627 \end_layout
1628
1629 \begin_layout Standard
1630 Someday, someone may write a \SpecialChar LyX
1631  layout file to support this package directly.
1632  Maybe that someone is you.
1633 \end_layout
1634
1635 \begin_layout Subsubsection
1636 Example #3: Paragraph Indentation
1637 \end_layout
1638
1639 \begin_layout Standard
1640 Americans are trained to indent the first line of 
1641 \emph on
1642 every
1643 \emph default
1644  paragraph.
1645  As with all of their other weird quirks, most Americans will whine and
1646  moan until they can have their way and indent the first line of all paragraphs.
1647  (Yes, we're joking.
1648  (We are?) 
1649 \emph on
1650 Yeah
1651 \emph default
1652 , we are.)
1653 \end_layout
1654
1655 \begin_layout Standard
1656 Of course, this behavior isn't standard typography.
1657  In books, you typically only indent the first line of a paragraph 
1658 \emph on
1659 if
1660 \emph default
1661  it follows another one.
1662  The idea behind indenting the first line of a paragraph is to distinguish
1663  neighboring paragraphs from one another.
1664  If there is no previous paragraph—for example, if it follows a figure or
1665  is the first paragraph in a section—then there is no need for indentation.
1666  
1667 \end_layout
1668
1669 \begin_layout Standard
1670 If you're a typical American (we're still joking!), though, you don't care
1671  about such esoteric things; you want your indentation! Add this to the
1672  preamble:
1673 \end_layout
1674
1675 \begin_layout LyX-Code
1676
1677 \backslash
1678 usepackage{indentfirst}
1679 \end_layout
1680
1681 \begin_layout Standard
1682 If your \SpecialChar TeX
1683  distribution isn't braindead, you'll have this package, and all
1684  of your paragraphs will get the indentation the Founding Fathers intended
1685  they should have.
1686 \end_layout
1687
1688 \begin_layout Subsubsection
1689 Example #4: This Document
1690 \end_layout
1691
1692 \begin_layout Standard
1693 You can also check out the preamble of this document to get an idea of some
1694  of the advanced things you can do.
1695 \end_layout
1696
1697 \begin_layout Section
1698 \SpecialChar LyX
1699  and \SpecialChar LaTeX
1700  Errors
1701 \end_layout
1702
1703 \begin_layout Standard
1704 When \SpecialChar LyX
1705  calls \SpecialChar LaTeX
1706 , it tells \SpecialChar LaTeX
1707  to blithely ignore any errors and keep going.
1708  It then uses the logfile from the \SpecialChar LaTeX
1709  run to do a post-mortem.
1710  After analyzing the logfile, \SpecialChar LyX
1711  displays a dialog listing the errors.
1712  Clicking on any one of them will take you to the position in your \SpecialChar LyX
1713  file
1714  where the error occurred.
1715 \begin_inset Foot
1716 status collapsed
1717
1718 \begin_layout Plain Layout
1719 Well, usually.
1720  Analyzing the logfile is a tough job, and \SpecialChar LyX
1721  doesn't always go to the right
1722  line.
1723  There are also cases where \SpecialChar LaTeX
1724  reports the error on one line, but the actual
1725  error is earlier.
1726  This is not unlike forgetting a closing brace in a program: You'll get
1727  an error, but only later.
1728 \end_layout
1729
1730 \end_inset
1731
1732
1733 \end_layout
1734
1735 \begin_layout Standard
1736 Some folks also like to look at the log file directly: It is available from
1737  
1738 \begin_inset Flex Noun
1739 status collapsed
1740
1741 \begin_layout Plain Layout
1742 Document\SpecialChar menuseparator
1743 LaTeX
1744 \begin_inset space ~
1745 \end_inset
1746
1747 Log
1748 \end_layout
1749
1750 \end_inset
1751
1752 .
1753  There are some fairly common error messages and warnings.
1754  We'll cover those here.
1755  You should look at a good \SpecialChar LaTeX
1756  book for a complete listing.
1757 \end_layout
1758
1759 \begin_layout Itemize
1760 \begin_inset Flex Code
1761 status collapsed
1762
1763 \begin_layout Plain Layout
1764 LaTeX Warning
1765 \end_layout
1766
1767 \end_inset
1768
1769
1770 \begin_inset Newline newline
1771 \end_inset
1772
1773 Anything beginning with these words is a warning message for the purpose
1774  of 
1775 \begin_inset Quotes eld
1776 \end_inset
1777
1778 debugging
1779 \begin_inset Quotes erd
1780 \end_inset
1781
1782  the \SpecialChar LaTeX
1783  code itself.
1784  You'll get messages like this if you added or changed cross-references
1785  or bibliography entries, in which case, \SpecialChar LaTeX
1786  is trying to tell you that you
1787  need to make another run.
1788  You can by-and-large ignore these.
1789 \end_layout
1790
1791 \begin_layout Itemize
1792 \begin_inset Flex Code
1793 status collapsed
1794
1795 \begin_layout Plain Layout
1796 LaTeX Font Warning
1797 \end_layout
1798
1799 \end_inset
1800
1801
1802 \begin_inset Newline newline
1803 \end_inset
1804
1805 Another warning message, this time about fonts which \SpecialChar LaTeX
1806  couldn't find.
1807  The rest of the message will often say something about a replacement font
1808  that \SpecialChar LaTeX
1809  used.
1810  You can safely ignore these, too.
1811 \end_layout
1812
1813 \begin_layout Itemize
1814 \begin_inset Flex Code
1815 status collapsed
1816
1817 \begin_layout Plain Layout
1818 Overfull 
1819 \backslash
1820 hbox
1821 \end_layout
1822
1823 \end_inset
1824
1825
1826 \begin_inset Newline newline
1827 \end_inset
1828
1829 \SpecialChar LaTeX
1830  absolutely 
1831 \emph on
1832 loves
1833 \emph default
1834  to spew these out.
1835  It seems to generate at least one of these messages for just about any
1836  document you write.
1837  They are warnings about lines that were too long and run past the right
1838  margin.
1839  This happens if \SpecialChar LaTeX
1840  does not find a reasonable way to break the lines (notoriously
1841  often with typewriter font, since this does not allow for automatic break
1842  points).
1843  In many cases, this is unnoticeable in the final output.
1844  (It can be just a point or two.) Sometimes, however, the lines run rather
1845  visibly into the margin; something you will not want to have in your final
1846  print.
1847  
1848 \begin_inset Newline newline
1849 \end_inset
1850
1851 There are several global ways to try to minimize the overfull lines.
1852  Clicking 
1853 \family sans
1854 Enable micro-typographic extensions
1855 \family default
1856  in 
1857 \family sans
1858 Document\SpecialChar menuseparator
1859 Settings\SpecialChar menuseparator
1860 Fonts
1861 \family default
1862  might already improve things a lot.
1863  Furthermore, \SpecialChar LaTeX
1864  code such as the following in 
1865 \family sans
1866 Document\SpecialChar menuseparator
1867 Settings\SpecialChar menuseparator
1868 Preamble
1869 \family default
1870  usually reduces the overfull lines drastically (we use this in the preamble
1871  of this document):
1872 \end_layout
1873
1874 \begin_deeper
1875 \begin_layout LyX-Code
1876
1877 \backslash
1878 tolerance 1414
1879 \begin_inset Newline newline
1880 \end_inset
1881
1882
1883 \backslash
1884 hbadness 1414
1885 \begin_inset Newline newline
1886 \end_inset
1887
1888
1889 \backslash
1890 emergencystretch 1.5em
1891 \begin_inset Newline newline
1892 \end_inset
1893
1894
1895 \backslash
1896 hfuzz 0.3pt
1897 \end_layout
1898
1899 \begin_layout Standard
1900 In some cases, however, you eventually have to rewrite the text to get the
1901  line breaking right.
1902 \begin_inset Foot
1903 status collapsed
1904
1905 \begin_layout Plain Layout
1906 For more information, see 
1907 \begin_inset Flex URL
1908 status open
1909
1910 \begin_layout Plain Layout
1911
1912 http://www.tex.ac.uk/FAQ-overfull.html
1913 \end_layout
1914
1915 \end_inset
1916
1917
1918 \end_layout
1919
1920 \end_inset
1921
1922
1923 \end_layout
1924
1925 \begin_layout Standard
1926 In any case, you should check the respective lines, at least for the final
1927  version of your document.
1928  Your eyes will tell you if there's a problem with something that's too
1929  wide.
1930 \begin_inset Foot
1931 status collapsed
1932
1933 \begin_layout Plain Layout
1934 You can also enable the `draft' option in 
1935 \begin_inset Flex Noun
1936 status collapsed
1937
1938 \begin_layout Plain Layout
1939 Document\SpecialChar menuseparator
1940 Settings
1941 \end_layout
1942
1943 \end_inset
1944
1945 , and then \SpecialChar LaTeX
1946  will draw a black box in the margin of lines that are overfull.
1947 \end_layout
1948
1949 \end_inset
1950
1951  
1952 \end_layout
1953
1954 \end_deeper
1955 \begin_layout Itemize
1956 \begin_inset Flex Code
1957 status collapsed
1958
1959 \begin_layout Plain Layout
1960 Underfull 
1961 \backslash
1962 hbox
1963 \end_layout
1964
1965 \end_inset
1966
1967
1968 \begin_inset Newline newline
1969 \end_inset
1970
1971 Not quite as common as its cousin.
1972  This happens again if \SpecialChar LaTeX
1973  does not find a reasonable break point and consequently
1974  generates too loose lines.
1975  As with the overfull lines, you should check if this is a visible problem.
1976 \end_layout
1977
1978 \begin_layout Itemize
1979 \begin_inset Flex Code
1980 status collapsed
1981
1982 \begin_layout Plain Layout
1983 Overfull 
1984 \backslash
1985 vbox
1986 \end_layout
1987
1988 \end_inset
1989
1990  and 
1991 \begin_inset Flex Code
1992 status collapsed
1993
1994 \begin_layout Plain Layout
1995 Underfull 
1996 \backslash
1997 vbox
1998 \end_layout
1999
2000 \end_inset
2001
2002
2003 \begin_inset Newline newline
2004 \end_inset
2005
2006 Warnings about troubles breaking the page.
2007  Once again, just look at the output.
2008  Your eyes will tell you where something has gone wrong.
2009 \end_layout
2010
2011 \begin_layout Itemize
2012 \begin_inset Flex Code
2013 status collapsed
2014
2015 \begin_layout Plain Layout
2016 LaTeX Error: File 
2017 \begin_inset Quotes els
2018 \end_inset
2019
2020 Xxxx
2021 \begin_inset Quotes ers
2022 \end_inset
2023
2024  not found
2025 \end_layout
2026
2027 \end_inset
2028
2029
2030 \begin_inset Newline newline
2031 \end_inset
2032
2033 The file 
2034 \begin_inset Quotes eld
2035 \end_inset
2036
2037 Xxxx
2038 \begin_inset Quotes erd
2039 \end_inset
2040
2041  isn't installed on this system.
2042  This usually appears because some package your document needs isn't installed.
2043  If you didn't touch the preamble or didn't use the 
2044 \begin_inset Flex Code
2045 status collapsed
2046
2047 \begin_layout Plain Layout
2048
2049 \backslash
2050 usepackage{}
2051 \end_layout
2052
2053 \end_inset
2054
2055  command, then one of the packages \SpecialChar LyX
2056  tried to load is missing.
2057  Use 
2058 \begin_inset Flex Noun
2059 status collapsed
2060
2061 \begin_layout Plain Layout
2062 Help\SpecialChar menuseparator
2063 \SpecialChar LaTeX
2064  Configuration
2065 \end_layout
2066
2067 \end_inset
2068
2069  to get a list of packages that \SpecialChar LyX
2070  knows about.
2071  This file is updated whenever you reconfigure \SpecialChar LyX
2072  (using 
2073 \begin_inset Flex Noun
2074 status collapsed
2075
2076 \begin_layout Plain Layout
2077 Tools\SpecialChar menuseparator
2078 Reconfigure
2079 \end_layout
2080
2081 \end_inset
2082
2083 ) and tells you which packages have been detected and what they do.
2084 \begin_inset Newline newline
2085 \end_inset
2086
2087 If you did use the 
2088 \begin_inset Flex Code
2089 status collapsed
2090
2091 \begin_layout Plain Layout
2092
2093 \backslash
2094 usepackage{}
2095 \end_layout
2096
2097 \end_inset
2098
2099  command and the package in question isn't installed, then you'll need to
2100  install it yourself.
2101 \end_layout
2102
2103 \begin_layout Itemize
2104 \begin_inset Flex Code
2105 status collapsed
2106
2107 \begin_layout Plain Layout
2108 LaTeX Error: Unknown option
2109 \end_layout
2110
2111 \end_inset
2112
2113
2114 \begin_inset Newline newline
2115 \end_inset
2116
2117 Error messages beginning with this are trying to tell you that you specified
2118  a bad or undefined option to a package.
2119  Check the package's documentation.
2120 \end_layout
2121
2122 \begin_layout Itemize
2123 \begin_inset Flex Code
2124 status collapsed
2125
2126 \begin_layout Plain Layout
2127 Undefined control sequence
2128 \end_layout
2129
2130 \end_inset
2131
2132
2133 \begin_inset Newline newline
2134 \end_inset
2135
2136 If you've inserted \SpecialChar LaTeX
2137  code into your document, but made a typo, you'll get
2138  one of these.
2139  You may have forgotten to load a package.
2140  In any case, this error message usually means that you used an undefined
2141  command.
2142  
2143 \end_layout
2144
2145 \begin_layout Standard
2146 There are other error and warning messages.
2147  Some are self-explanatory.
2148  These are usually \SpecialChar LaTeX
2149  messages.
2150  Others are downright cryptic.
2151  These are usually \SpecialChar TeX
2152  error messages, and we really have 
2153 \emph on
2154 no clue
2155 \emph default
2156  what they mean or how to decipher them.
2157  No-one does.
2158 \end_layout
2159
2160 \begin_layout Standard
2161 There's a general sequence you should follow if you get error messages:
2162 \end_layout
2163
2164 \begin_layout Enumerate
2165 Look at the \SpecialChar LaTeX
2166  code you inserted for typos.
2167 \end_layout
2168
2169 \begin_layout Enumerate
2170 If there are no typos, check that you used the command(s) correctly.
2171 \end_layout
2172
2173 \begin_layout Enumerate
2174 If you get a bunch of error boxes piled up at the very top of the document—and
2175  especially if you see a 
2176 \begin_inset Quotes eld
2177 \end_inset
2178
2179
2180 \begin_inset Flex Code
2181 status collapsed
2182
2183 \begin_layout Plain Layout
2184 Missing 
2185 \backslash
2186 begin{document}
2187 \end_layout
2188
2189 \end_inset
2190
2191
2192 \begin_inset Quotes erd
2193 \end_inset
2194
2195  error—it means that there are errors in the preamble.
2196  Start debugging your preamble.
2197 \end_layout
2198
2199 \begin_layout Enumerate
2200 If you didn't add anything to the preamble and didn't add any \SpecialChar LaTeX
2201  code to the
2202  document, the first suspect is your \SpecialChar LaTeX
2203  distribution itself.
2204  Check for missing packages and install them.
2205 \end_layout
2206
2207 \begin_layout Enumerate
2208 Okay, so there are no missing packages.
2209  Did you use any of the fine-tuning options in \SpecialChar LyX
2210 ? Specifically, did you 
2211 \emph on
2212 misuse
2213 \emph default
2214  any of them, like trying to manually insert lots of 
2215 \begin_inset Flex Code
2216 status collapsed
2217
2218 \begin_layout Plain Layout
2219
2220 \change_deleted 177693 1654669036
2221 Protected
2222 \change_inserted 177693 1654669038
2223 Non-Breaking
2224 \change_unchanged
2225
2226 \begin_inset space ~
2227 \end_inset
2228
2229
2230 \change_deleted 177693 1654669040
2231 Blanks
2232 \change_inserted 177693 1654669041
2233 Spaces
2234 \change_unchanged
2235
2236 \end_layout
2237
2238 \end_inset
2239
2240
2241 \begin_inset Flex Code
2242 status collapsed
2243
2244 \begin_layout Plain Layout
2245 Linebreaks
2246 \end_layout
2247
2248 \end_inset
2249
2250 , or 
2251 \begin_inset Flex Code
2252 status collapsed
2253
2254 \begin_layout Plain Layout
2255 Pagebreaks
2256 \end_layout
2257
2258 \end_inset
2259
2260 ? Did you try to kludge something together with these instead of using the
2261  appropriate paragraph environment?
2262 \end_layout
2263
2264 \begin_layout Enumerate
2265 All right, you didn't use any of the fine-tuning options, you played by
2266  the rules.
2267  Did you try to pull a fancy maneuver? Did you do something funky inside
2268  a table or an equation, like inserting a graphic into a table cell?
2269 \end_layout
2270
2271 \begin_layout Enumerate
2272 Do you have long sections of text where \SpecialChar LaTeX
2273  cannot find a place to break a
2274  line? By default, \SpecialChar LaTeX
2275  is rather strict about how much extra inter-word spacing
2276  it will add in order to break a line.
2277  Preferably, you should rework the paragraph to avoid the problem.
2278 \end_layout
2279
2280 \begin_layout Enumerate
2281 Did you go overboard with the nesting? \SpecialChar LyX
2282  (currently) doesn't check to make
2283  sure you're in the limits for nesting environments.
2284  If you nested a bunch of environments to the 
2285 \begin_inset Formula $17^{\mathrm{th}}$
2286 \end_inset
2287
2288  level, that's the problem.
2289  (The limit in \SpecialChar LaTeX
2290  is five.)
2291 \end_layout
2292
2293 \begin_layout Enumerate
2294 Okay, you didn't get any error messages, but your output looks awful.
2295  If you have a table or figure that's too wide or long for the page, you
2296  need to:
2297 \end_layout
2298
2299 \begin_deeper
2300 \begin_layout Enumerate
2301 rescale the figure so it fits.
2302 \end_layout
2303
2304 \begin_layout Enumerate
2305 trim down the table so it fits.
2306 \end_layout
2307
2308 \end_deeper
2309 \begin_layout Enumerate
2310 If something else is wrong with the output, and you didn't try to pull anything
2311  fancy or kludge the fine-tuning options, we're not sure what's wrong.
2312 \end_layout
2313
2314 \begin_layout Standard
2315 If all this doesn't help—well, then 
2316 \emph on
2317 perhaps
2318 \emph default
2319  you might have found a bug in \SpecialChar LyX
2320 \SpecialChar ldots
2321 .
2322 \end_layout
2323
2324 \begin_layout Chapter
2325
2326 \change_inserted 564990737 1670439508
2327 Document classes
2328 \end_layout
2329
2330 \begin_layout Section
2331
2332 \change_inserted 564990737 1670439533
2333 \begin_inset CommandInset label
2334 LatexCommand label
2335 name "sec:Collections"
2336
2337 \end_inset
2338
2339 Collections
2340 \end_layout
2341
2342 \begin_layout Subsection
2343 AMS \SpecialChar LaTeX
2344
2345 \end_layout
2346
2347 \begin_layout Standard
2348 by 
2349 \noun on
2350 David Johnson
2351 \noun default
2352 ; updated by 
2353 \noun on
2354 Richard Kimberly Heck
2355 \end_layout
2356
2357 \begin_layout Standard
2358 \begin_inset VSpace bigskip
2359 \end_inset
2360
2361
2362 \end_layout
2363
2364 \begin_layout Standard
2365 \noindent
2366 The AMS \SpecialChar LaTeX
2367  layouts are set up to conform to suggested styles for mathematical
2368  papers to be submitted to American Mathematical Society publications.
2369  The layouts are not tailored to a specific journal, but easily can be.
2370  You should refer to the AMS documentation for specific instructions for
2371  each journal (usually it will entail only changing a single line in the
2372  \SpecialChar TeX
2373  output).
2374  That documentation is available on the Web at 
2375 \begin_inset Flex URL
2376 status open
2377
2378 \begin_layout Plain Layout
2379
2380 http://www.ams.org
2381 \end_layout
2382
2383 \end_inset
2384
2385  or by ftp at 
2386 \begin_inset Flex URL
2387 status open
2388
2389 \begin_layout Plain Layout
2390
2391 ftp://ftp.ams.org/pub/tex/amslatex/
2392 \end_layout
2393
2394 \end_inset
2395
2396 .
2397  These layouts are appropriate, and useful, for any mathematical writing.
2398  
2399 \end_layout
2400
2401 \begin_layout Standard
2402 There are two basic AMS \SpecialChar LaTeX
2403  layouts: 
2404 \end_layout
2405
2406 \begin_layout Itemize
2407 amsart: The standard AMS article format.
2408 \end_layout
2409
2410 \begin_layout Itemize
2411 amsbook: the standard AMS book (really, monograph) format.
2412  
2413 \end_layout
2414
2415 \begin_layout Standard
2416 The layouts themselves contain only the minimum necessary to use the AMS
2417  classes.
2418  They do not, in particular, contain any of the `theorem' environments used
2419  for setting theorems, lemmas, and the like.
2420  These are contained, instead, in the 
2421 \begin_inset Flex Code
2422 status collapsed
2423
2424 \begin_layout Plain Layout
2425 Theorems (AMS)
2426 \end_layout
2427
2428 \end_inset
2429
2430  module, which is loaded by default when you select one of the AMS classes.
2431  (It can also be used with other classes and can be removed, if you would
2432  rather use something else.) Less commonly used environments are in the 
2433 \begin_inset Flex Code
2434 status collapsed
2435
2436 \begin_layout Plain Layout
2437 Theorems (AMS-Extended)
2438 \end_layout
2439
2440 \end_inset
2441
2442  module, which must be loaded manually.
2443 \end_layout
2444
2445 \begin_layout Standard
2446 By default, theorems and the like are numbered consecutively throughout
2447  the document, but this may be modified by loading the module 
2448 \begin_inset Flex Code
2449 status collapsed
2450
2451 \begin_layout Plain Layout
2452 Theorems (Order by Section)
2453 \end_layout
2454
2455 \end_inset
2456
2457  or, if you are using 
2458 \begin_inset Flex Code
2459 status collapsed
2460
2461 \begin_layout Plain Layout
2462 book (AMS)
2463 \end_layout
2464
2465 \end_inset
2466
2467 , the module 
2468 \begin_inset Flex Code
2469 status collapsed
2470
2471 \begin_layout Plain Layout
2472 Theorems (Order by Chapter)
2473 \end_layout
2474
2475 \end_inset
2476
2477 .
2478  These will number the results as 
2479 \begin_inset Formula $n.m$
2480 \end_inset
2481
2482 , where the first number refers to the section (or chapter) and the second
2483  refers to the total number of results so far in that section (or chapter).
2484  Many environments are also available unnumbered.
2485  These are indicated by an asterisk at the end.
2486  If you happen to want 
2487 \emph on
2488 only
2489 \emph default
2490  unnumbered results, the module 
2491 \begin_inset Flex Code
2492 status collapsed
2493
2494 \begin_layout Plain Layout
2495 Theorems (Starred)
2496 \end_layout
2497
2498 \end_inset
2499
2500  provides that option.
2501 \end_layout
2502
2503 \begin_layout Standard
2504 Note that these modules do not 
2505 \emph on
2506 have
2507 \emph default
2508  to be used with the AMS classes.
2509  It is perfectly possible to use the 
2510 \begin_inset Flex Code
2511 status collapsed
2512
2513 \begin_layout Plain Layout
2514 Theorems (AMS)
2515 \end_layout
2516
2517 \end_inset
2518
2519  module, and the others mentioned, with other classes, such as 
2520 \begin_inset Flex Code
2521 status collapsed
2522
2523 \begin_layout Plain Layout
2524 article
2525 \end_layout
2526
2527 \end_inset
2528
2529
2530 \begin_inset Flex Code
2531 status collapsed
2532
2533 \begin_layout Plain Layout
2534 report
2535 \end_layout
2536
2537 \end_inset
2538
2539
2540 \begin_inset Flex Code
2541 status collapsed
2542
2543 \begin_layout Plain Layout
2544 book (KOMA-script)
2545 \end_layout
2546
2547 \end_inset
2548
2549 , and so forth.
2550 \end_layout
2551
2552 \begin_layout Subsubsection
2553 What these layouts provide
2554 \end_layout
2555
2556 \begin_layout Standard
2557 There is a long list of included environments provided by these layouts.
2558  In AMS-\SpecialChar LaTeX
2559 , there is, in fact, an opportunity to define an unlimited variety
2560  of `theorem' environments.
2561  However, the AMS recommends the environments that are available in \SpecialChar LyX
2562 .
2563  
2564 \end_layout
2565
2566 \begin_layout Standard
2567 The following environments—as well as the standard environments, such as
2568  
2569 \begin_inset Flex Noun
2570 status collapsed
2571
2572 \begin_layout Plain Layout
2573 section
2574 \end_layout
2575
2576 \end_inset
2577
2578
2579 \begin_inset Flex Noun
2580 status collapsed
2581
2582 \begin_layout Plain Layout
2583 bibliography
2584 \end_layout
2585
2586 \end_inset
2587
2588
2589 \begin_inset Flex Noun
2590 status collapsed
2591
2592 \begin_layout Plain Layout
2593 title
2594 \end_layout
2595
2596 \end_inset
2597
2598
2599 \begin_inset Flex Noun
2600 status collapsed
2601
2602 \begin_layout Plain Layout
2603 author
2604 \end_layout
2605
2606 \end_inset
2607
2608 , and 
2609 \begin_inset Flex Noun
2610 status collapsed
2611
2612 \begin_layout Plain Layout
2613 date
2614 \end_layout
2615
2616 \end_inset
2617
2618 —are provided by 
2619 \begin_inset Flex Code
2620 status collapsed
2621
2622 \begin_layout Plain Layout
2623 article (AMS)
2624 \end_layout
2625
2626 \end_inset
2627
2628  and 
2629 \begin_inset Flex Code
2630 status collapsed
2631
2632 \begin_layout Plain Layout
2633 book (AMS)
2634 \end_layout
2635
2636 \end_inset
2637
2638 :
2639 \end_layout
2640
2641 \begin_layout Description
2642 Address This should be the author's permanent address.
2643 \end_layout
2644
2645 \begin_layout Description
2646 Current
2647 \begin_inset space ~
2648 \end_inset
2649
2650 Address This should be the author's temporary address at the time of submission,
2651  if different from the Address.
2652 \end_layout
2653
2654 \begin_layout Description
2655 Email Author's e-mail address
2656 \end_layout
2657
2658 \begin_layout Description
2659 URL Author's Web address, if desired.
2660 \end_layout
2661
2662 \begin_layout Description
2663 Keywords Key words or phrases used to identify specific topics discussed
2664  in the paper.
2665 \end_layout
2666
2667 \begin_layout Description
2668 Subjectclass These refer to the AMS Subject Classifications, published and
2669  described in 
2670 \emph on
2671 Mathematical Reviews
2672 \emph default
2673 .
2674  These are also available online at the AMS cites listed above.
2675 \end_layout
2676
2677 \begin_layout Description
2678 Thanks
2679 \end_layout
2680
2681 \begin_layout Description
2682 Dedicatory
2683 \end_layout
2684
2685 \begin_layout Description
2686 Translator
2687 \end_layout
2688
2689 \begin_layout Standard
2690 The following environments are provided by both the 
2691 \begin_inset Flex Code
2692 status collapsed
2693
2694 \begin_layout Plain Layout
2695 Theorems
2696 \end_layout
2697
2698 \end_inset
2699
2700  and 
2701 \begin_inset Flex Code
2702 status collapsed
2703
2704 \begin_layout Plain Layout
2705 Theorems (AMS)
2706 \end_layout
2707
2708 \end_inset
2709
2710  modules, in the latter case in both starred (unnumbered) and unstarred
2711  (numbered) versions.
2712  These same environments are provided only in the starred versions by the
2713  
2714 \begin_inset Flex Code
2715 status collapsed
2716
2717 \begin_layout Plain Layout
2718 Theorems (Starred)
2719 \end_layout
2720
2721 \end_inset
2722
2723  module:
2724 \end_layout
2725
2726 \begin_layout Theorem
2727 This is typically used for the statements of major results.
2728  
2729 \end_layout
2730
2731 \begin_layout Corollary*
2732 This is used for statements which follow fairly directly from previous statement
2733 s.
2734  Again, these can be major results.
2735  
2736 \end_layout
2737
2738 \begin_layout Lemma
2739 These are smaller results needed to prove other statements.
2740 \end_layout
2741
2742 \begin_layout Proposition
2743 These are less major results which (hopefully) add to the general theory
2744  being discussed.
2745 \end_layout
2746
2747 \begin_layout Conjecture
2748 These are statements provided without justification, which the author does
2749  not know how to prove, but which seem to be true (to the author, at least).
2750 \end_layout
2751
2752 \begin_layout Definition*
2753 Guess what this is for.
2754  The font is different for this environment than for the previous ones.
2755  
2756 \end_layout
2757
2758 \begin_layout Example*
2759 Used for examples illustrating proven results.
2760 \end_layout
2761
2762 \begin_layout Problem
2763 It's not really known what this is for.
2764  You should figure it out.
2765 \end_layout
2766
2767 \begin_layout Exercise*
2768 Write a description for this one.
2769 \end_layout
2770
2771 \begin_layout Remark
2772 This environment is also a type of theorem, usually a lesser sort of observation.
2773 \end_layout
2774
2775 \begin_layout Claim*
2776 Often used in the course of giving a proof of a larger result.
2777 \end_layout
2778
2779 \begin_layout Case
2780 Generally, these are used to break up long arguments, using specific instances
2781  of some condition.
2782  
2783 \end_layout
2784
2785 \begin_layout Case
2786 The numbering scheme for cases is on its own, not together with other numbered
2787  statements.
2788  
2789 \end_layout
2790
2791 \begin_layout Proof
2792 At the end of this environment, a QED symbol (usually a square, but it can
2793  vary with different styles) is placed.
2794  If you want to have other environments within this one—for example, Case
2795  environments—and have the QED symbol appear only after them, then the other
2796  environments need to be nested within the proof environment.
2797  See the section 
2798 \emph on
2799 Nesting Environments
2800 \emph default
2801  of the 
2802 \emph on
2803 User's Guide
2804 \emph default
2805  for information on nesting.
2806 \end_layout
2807
2808 \begin_layout Standard
2809 And these environments are provided by 
2810 \begin_inset Flex Code
2811 status collapsed
2812
2813 \begin_layout Plain Layout
2814 Theorems (AMS-Extended)
2815 \end_layout
2816
2817 \end_inset
2818
2819 :
2820 \end_layout
2821
2822 \begin_layout Criterion*
2823 A required condition.
2824 \end_layout
2825
2826 \begin_layout Algorithm*
2827 A general procedure to be used.
2828 \end_layout
2829
2830 \begin_layout Axiom*
2831 This is a property or statement taken as true within the system being discussed.
2832 \end_layout
2833
2834 \begin_layout Condition*
2835 Sometimes used to state a condition assumed within the present context of
2836  discussion.
2837 \end_layout
2838
2839 \begin_layout Note*
2840 Similar to a Remark.
2841 \end_layout
2842
2843 \begin_layout Notation*
2844 Used for the explanation of, yes, notation.
2845 \end_layout
2846
2847 \begin_layout Summary
2848 Do we really need to tell you? 
2849 \end_layout
2850
2851 \begin_layout Acknowledgement*
2852 Acknowledgement.
2853 \end_layout
2854
2855 \begin_layout Conclusion*
2856 Sometimes used at the end of a long train of argument.
2857 \end_layout
2858
2859 \begin_layout Fact
2860 Used in a way similar to Proposition, though perhaps lower on the scale.
2861 \end_layout
2862
2863 \begin_layout Standard
2864 In addition, the AMS classes automatically provide the AMS \SpecialChar LaTeX
2865  and AMS fonts
2866  packages.
2867  They need to be available on your system in order to use these environments.
2868 \end_layout
2869
2870 \begin_layout Subsection
2871
2872 \change_inserted 564990737 1671383236
2873
2874 \lang american
2875 \begin_inset CommandInset label
2876 LatexCommand label
2877 name "subsec:Extra-font-sizes"
2878
2879 \end_inset
2880
2881 Extra font sizes
2882 \end_layout
2883
2884 \begin_layout Standard
2885
2886 \change_inserted 564990737 1671383236
2887
2888 \lang american
2889 The “Extra font sizes” collection provides the document classes 
2890 \family sans
2891 article
2892 \begin_inset space \thinspace{}
2893 \end_inset
2894
2895 (with extra font sizes)
2896 \family default
2897
2898 \family sans
2899 book
2900 \begin_inset space \thinspace{}
2901 \end_inset
2902
2903 (with extra font sizes)
2904 \family default
2905
2906 \family sans
2907 letter
2908 \begin_inset space \thinspace{}
2909 \end_inset
2910
2911 (with extra font sizes)
2912 \family default
2913  and 
2914 \family sans
2915 report
2916 \begin_inset space \thinspace{}
2917 \end_inset
2918
2919 (with extra font sizes)
2920 \family default
2921  which use the 
2922 \family typewriter
2923 article.cls
2924 \family default
2925
2926 \family typewriter
2927 book.cls
2928 \family default
2929
2930 \family typewriter
2931 letter.cls
2932 \family default
2933  and 
2934 \family typewriter
2935 report.cls
2936 \family default
2937  document classes respectively but offer the additional 
2938 \family sans
2939 \bar under
2940 B
2941 \bar default
2942 ase
2943 \begin_inset space ~
2944 \end_inset
2945
2946 Size
2947 \family default
2948  options 8, 9, 14, 17 and 20 in the 
2949 \family sans
2950 \bar under
2951 D
2952 \bar default
2953 ocument\SpecialChar menuseparator
2954
2955 \bar under
2956 S
2957 \bar default
2958 ettings\SpecialChar menuseparator
2959 Fonts
2960 \family default
2961  dialog.
2962 \end_layout
2963
2964 \begin_layout Subsection
2965
2966 \change_inserted 564990737 1671383236
2967
2968 \lang american
2969 Hebrew
2970 \end_layout
2971
2972 \begin_layout Standard
2973
2974 \change_inserted 564990737 1671383236
2975
2976 \lang american
2977 The document classes 
2978 \family sans
2979 article
2980 \begin_inset space \thinspace{}
2981 \end_inset
2982
2983 (Hebrew)
2984 \family default
2985  and 
2986 \family sans
2987 letter
2988 \begin_inset space \thinspace{}
2989 \end_inset
2990
2991 (Hebrew)
2992 \family default
2993  use the 
2994 \family typewriter
2995 article.cl
2996 \family sans
2997 s
2998 \family default
2999  and 
3000 \family typewriter
3001 letter.cls
3002 \family default
3003  document classes to facilitate the use of Hebrew in \SpecialChar LyX
3004 .
3005 \end_layout
3006
3007 \begin_layout Subsection
3008
3009 \change_inserted 564990737 1671383236
3010
3011 \lang american
3012 \begin_inset CommandInset label
3013 LatexCommand label
3014 name "subsec:Japanese"
3015
3016 \end_inset
3017
3018 Japanese
3019 \end_layout
3020
3021 \begin_layout Standard
3022
3023 \change_inserted 564990737 1671383236
3024
3025 \lang american
3026 The document classes 
3027 \family sans
3028 article
3029 \begin_inset space \thinspace{}
3030 \end_inset
3031
3032 (Japanese JS Class)
3033 \family default
3034 ,
3035 \family sans
3036  article
3037 \begin_inset space \thinspace{}
3038 \end_inset
3039
3040 (Japanese Standard Class Vertical Writing)
3041 \family default
3042
3043 \family sans
3044 article
3045 \begin_inset space \thinspace{}
3046 \end_inset
3047
3048 (Japanese Standard Class)
3049 \family default
3050
3051 \family sans
3052 book
3053 \begin_inset space \thinspace{}
3054 \end_inset
3055
3056 (Japanese JS Class)
3057 \family default
3058 ,
3059 \family sans
3060  book
3061 \begin_inset space \thinspace{}
3062 \end_inset
3063
3064 (Japanese Standard Class Vertical Writing)
3065 \family default
3066
3067 \family sans
3068 book
3069 \begin_inset space \thinspace{}
3070 \end_inset
3071
3072 (Japanese Standard Class)
3073 \family default
3074
3075 \family sans
3076 report
3077 \begin_inset space \thinspace{}
3078 \end_inset
3079
3080 (Japanese Vertical Writing)
3081 \family default
3082  and 
3083 \family sans
3084 report
3085 \begin_inset space \thinspace{}
3086 \end_inset
3087
3088 (Japanese Standard Class)
3089 \family default
3090  provide document classes for the Japanese language.
3091 \end_layout
3092
3093 \begin_layout Subsection
3094 Koma-Script
3095 \end_layout
3096
3097 \begin_layout Standard
3098 by 
3099 \noun on
3100 Bernd Rellermeyer
3101 \end_layout
3102
3103 \begin_layout Subsubsection
3104 Overview
3105 \end_layout
3106
3107 \begin_layout Standard
3108 The \SpecialChar LyX
3109  document classes 
3110 \emph on
3111 article (koma-script)
3112 \emph default
3113
3114 \emph on
3115 report (koma-script)
3116 \emph default
3117
3118 \emph on
3119 book
3120 \emph default
3121  
3122 \emph on
3123 (koma-script)
3124 \emph default
3125 , and 
3126 \emph on
3127 letter
3128 \emph default
3129  
3130 \emph on
3131 (koma-script)
3132 \emph default
3133  correspond to the \SpecialChar LaTeX
3134  document classes 
3135 \family typewriter
3136 scrartcl.cls
3137 \family default
3138
3139 \family typewriter
3140 scrreprt.cls
3141 \family default
3142
3143 \family typewriter
3144 scrbook.cls
3145 \family default
3146 , and 
3147 \family typewriter
3148 scrlettr.cls
3149 \family default
3150 , resp.
3151 \begin_inset space ~
3152 \end_inset
3153
3154 of the Koma-Script family.
3155  They are replacements for the standard document classes 
3156 \family typewriter
3157 article.cls
3158 \family default
3159
3160 \family typewriter
3161 report.cls
3162 \family default
3163
3164 \family typewriter
3165 book.cls
3166 \family default
3167  and 
3168 \family typewriter
3169 letter.cls
3170 \family default
3171 , resp., and fit better to European typography conventions in a number of
3172  points.
3173 \end_layout
3174
3175 \begin_layout Itemize
3176 Standard character size is 11pt in 
3177 \emph on
3178 article (koma-script)
3179 \emph default
3180
3181 \emph on
3182 report (koma-script)
3183 \emph default
3184 , and 
3185 \emph on
3186 book (koma-script)
3187 \emph default
3188 , and 12pt in 
3189 \emph on
3190 letter (koma-script)
3191 \emph default
3192 .
3193 \end_layout
3194
3195 \begin_layout Itemize
3196 Headings, labels of the description environment, and a number of elements
3197  of the 
3198 \emph on
3199 letter (koma-script)
3200 \emph default
3201  document class are set in a bold sans serif font.
3202 \begin_inset Foot
3203 status collapsed
3204
3205 \begin_layout Plain Layout
3206 There is a big difference between the bold sans serif old cm fonts and new
3207  ec fonts, especially in the appearance of headings.
3208  In comparison, the ec bold sans serif fonts look a bit thin.
3209  Here the \SpecialChar LaTeX
3210  package 
3211 \family typewriter
3212 cmsd.sty by
3213 \family default
3214  
3215 \shape smallcaps
3216 Walter Schmidt
3217 \shape default
3218  helps to produce the 
3219 \begin_inset Quotes eld
3220 \end_inset
3221
3222 usual
3223 \begin_inset Quotes erd
3224 \end_inset
3225
3226  appearance when using the ec fonts.
3227 \end_layout
3228
3229 \end_inset
3230
3231  The numbering of chapter headings is made in the same way as the numbering
3232  of section headings, that is without the extra line 
3233 \begin_inset Quotes eld
3234 \end_inset
3235
3236 Chapter\SpecialChar ldots
3237
3238 \begin_inset Quotes erd
3239 \end_inset
3240
3241 .
3242  In addition, the appearance of the headings can be modified by using a
3243  number of options (in \SpecialChar LyX
3244  to be entered in the field 
3245 \family sans
3246 Extra
3247 \begin_inset space ~
3248 \end_inset
3249
3250 Options
3251 \family default
3252  of the dialog 
3253 \family sans
3254 Layout\SpecialChar menuseparator
3255 Document
3256 \family default
3257 ).
3258  
3259 \end_layout
3260
3261 \begin_layout Itemize
3262 The main means in the Koma-Script document classes to design the type area
3263  are the options 
3264 \family sans
3265 BCOR
3266 \family default
3267  and 
3268 \family sans
3269 DIV
3270 \family default
3271  (in \SpecialChar LyX
3272  to be entered in the extra class options field in the dialog 
3273 \family sans
3274 Document\SpecialChar menuseparator
3275 Settings
3276 \family default
3277 ).
3278  They make a clearer modification of page margins possible as do the options
3279  of the dialog 
3280 \family sans
3281 Document\SpecialChar menuseparator
3282 Settings
3283 \family default
3284 .
3285  
3286 \end_layout
3287
3288 \begin_layout Itemize
3289 The \SpecialChar LaTeX
3290  document classes of the Koma-Script family define a number of additional
3291  commands.
3292  Those part of it which makes sense in \SpecialChar LyX
3293  is implemented in corresponding
3294  paragraph types.
3295 \end_layout
3296
3297 \begin_layout Standard
3298 Detailed descriptions of the \SpecialChar LaTeX
3299  document classes of the Koma-Script family
3300  can be found in the Koma-Script documentation 
3301 \emph on
3302 scrguide
3303 \emph default
3304  (German) and 
3305 \emph on
3306 scrguien
3307 \emph default
3308  (English).
3309 \end_layout
3310
3311 \begin_layout Subsubsection
3312 article (koma-script), report (koma-script), and book (koma-script)
3313 \end_layout
3314
3315 \begin_layout Standard
3316 The document classes 
3317 \emph on
3318 article (koma-script)
3319 \emph default
3320
3321 \emph on
3322 report (koma-script)
3323 \emph default
3324 , and 
3325 \emph on
3326 book
3327 \emph default
3328  
3329 \emph on
3330 (koma-script)
3331 \emph default
3332  are implemented in the layout files 
3333 \family typewriter
3334 scrartcl.layout
3335 \family default
3336
3337 \family typewriter
3338 scrreprt.layout
3339 \family default
3340 , and 
3341 \family typewriter
3342 scrbook.layout
3343 \family default
3344 , resp.
3345  They contain all the paragraph types of the corresponding standard document
3346  classes 
3347 \emph on
3348 article
3349 \emph default
3350
3351 \emph on
3352 report
3353 \emph default
3354 , and 
3355 \emph on
3356 book
3357 \emph default
3358 , resp., partly modified, with the exception of the \SpecialChar LyX
3359  specific 
3360 \family sans
3361 List
3362 \family default
3363 -type, which is replaced by the new 
3364 \family sans
3365 Labeling
3366 \family default
3367 -type having the same functionality.
3368  Beside the 
3369 \family sans
3370 Labeling
3371 \family default
3372 -Type there is a number of new paragraph types added.
3373  They are 
3374 \emph on
3375 not
3376 \emph default
3377  part of 
3378 \emph on
3379 letter (koma-script)
3380 \emph default
3381 .
3382 \end_layout
3383
3384 \begin_layout Itemize
3385
3386 \family sans
3387 Addpart, Addchap
3388 \family default
3389
3390 \family sans
3391 Addsec
3392 \family default
3393 : are equivalents to 
3394 \family sans
3395 Part*, Chapter*
3396 \family default
3397  and 
3398 \family sans
3399 Section*
3400 \family default
3401 , resp., additionally inserting an entry in the table of contents.
3402  
3403 \family sans
3404 Addpart
3405 \family default
3406  and 
3407 \family sans
3408 Addchap
3409 \family default
3410  are not contained in 
3411 \emph on
3412 article (koma-script)
3413 \emph default
3414 .
3415 \end_layout
3416
3417 \begin_layout Itemize
3418
3419 \family sans
3420 Addchap*
3421 \family default
3422
3423 \family sans
3424 Addsec*
3425 \family default
3426 : behave exactly as 
3427 \family sans
3428 Addchap
3429 \family default
3430  and 
3431 \family sans
3432 Addsec
3433 \family default
3434 , resp., additionally clearing running heads.
3435  
3436 \family sans
3437 Addchap*
3438 \family default
3439  is not contained in 
3440 \emph on
3441 article (koma-script)
3442 \emph default
3443 .
3444 \begin_inset Foot
3445 status collapsed
3446
3447 \begin_layout Plain Layout
3448 There is also an 
3449 \family typewriter
3450
3451 \backslash
3452 addpart*
3453 \family default
3454  command in 
3455 \emph on
3456 book (koma-script)
3457 \emph default
3458  and in 
3459 \emph on
3460 report (koma-script)
3461 \emph default
3462 , but since this is identical to 
3463 \family sans
3464 Part*
3465 \family default
3466 , is has not been implemented in \SpecialChar LyX
3467 .
3468 \end_layout
3469
3470 \end_inset
3471
3472
3473 \end_layout
3474
3475 \begin_layout Itemize
3476
3477 \family sans
3478 Minisec
3479 \family default
3480 : generates a heading directly above the following paragraph in the standard
3481  character size without affecting the structure of the document.
3482 \end_layout
3483
3484 \begin_layout Itemize
3485
3486 \family sans
3487 Captionabove
3488 \family default
3489  and 
3490 \family sans
3491 Captionbelow
3492 \family default
3493  are special captions which respect the different space settings needed
3494  for captions placed above or below an element (if you follow strict typographic
3495  rules, you might want to place table captions always above the table).
3496  You can also use the class option 
3497 \family typewriter
3498 tablecaptionsabove
3499 \family default
3500 , which will switch 
3501 \family sans
3502 caption
3503 \family default
3504  to 
3505 \family sans
3506 captionabove
3507 \family default
3508  for tables and 
3509 \family sans
3510 captionbelow
3511 \family default
3512  for figures.
3513  You need at least Koma-Script version 2.8q to use this.
3514 \end_layout
3515
3516 \begin_layout Itemize
3517
3518 \family sans
3519 Dictum
3520 \family default
3521 : can be used to set a bonmot, e.
3522 \begin_inset space \thinspace{}
3523 \end_inset
3524
3525 g.
3526 \begin_inset space \space{}
3527 \end_inset
3528
3529 at the beginning of a chapter.
3530  If you use the optional argument (
3531 \family sans
3532 Insert\SpecialChar menuseparator
3533 Dictum
3534 \begin_inset space ~
3535 \end_inset
3536
3537 Author
3538 \family default
3539 ), you can insert the dictum's author there.
3540  Dictum and author are separated by a line.
3541  You need at least Koma-Script version 2.8q to use this.
3542  
3543 \family sans
3544 Dictum
3545 \family default
3546  is not contained in 
3547 \emph on
3548 article (koma-script)
3549 \emph default
3550 .
3551 \end_layout
3552
3553 \begin_layout Standard
3554 The following types, together with the standard types 
3555 \family sans
3556 Title
3557 \family default
3558
3559 \family sans
3560 Author
3561 \family default
3562 , and 
3563 \family sans
3564 Date
3565 \family default
3566 , form the title area of the document.
3567  They must be entered ahead of the first 
3568 \begin_inset Quotes eld
3569 \end_inset
3570
3571 ordinary
3572 \begin_inset Quotes erd
3573 \end_inset
3574
3575  paragraph.
3576 \begin_inset Foot
3577 status collapsed
3578
3579 \begin_layout Plain Layout
3580 The corresponding \SpecialChar LaTeX
3581  commands must appear before the 
3582 \family typewriter
3583
3584 \backslash
3585 maketitle
3586 \family default
3587  command.
3588 \end_layout
3589
3590 \end_inset
3591
3592  When such a type is used more than once, the latter usage overwrites the
3593  former one, that means, for every type only the latest usage is valid.
3594  The order of the different types however has, like 
3595 \family sans
3596 Title
3597 \family default
3598
3599 \family sans
3600 Author
3601 \family default
3602 , and 
3603 \family sans
3604 Date
3605 \family default
3606 , no effect on the appearance of the produced document.
3607 \end_layout
3608
3609 \begin_layout Itemize
3610
3611 \family sans
3612 Subject
3613 \family default
3614 : produces a centered paragraph above the ordinary title (
3615 \family sans
3616 Title
3617 \family default
3618
3619 \family sans
3620 Author
3621 \family default
3622
3623 \family sans
3624 Date
3625 \family default
3626 ) for the subject of the document.
3627 \end_layout
3628
3629 \begin_layout Itemize
3630
3631 \family sans
3632 Publishers
3633 \family default
3634 : produces a centered paragraph below the ordinary title (
3635 \family sans
3636 Title
3637 \family default
3638
3639 \family sans
3640 Author
3641 \family default
3642
3643 \family sans
3644 Date
3645 \family default
3646 ) for the publishers' name.
3647 \end_layout
3648
3649 \begin_layout Itemize
3650
3651 \family sans
3652 Dedication
3653 \family default
3654 : in 
3655 \emph on
3656 report (koma-script)
3657 \emph default
3658  and 
3659 \emph on
3660 book (koma-script)
3661 \emph default
3662  produces a centered paragraph on its own page behind the title page, or
3663  in 
3664 \emph on
3665 article (koma-script)
3666 \emph default
3667  produces a centered paragraph below the ordinary title (
3668 \family sans
3669 Title
3670 \family default
3671
3672 \family sans
3673 Author
3674 \family default
3675
3676 \family sans
3677 Date
3678 \family default
3679
3680 \family sans
3681 Publishers
3682 \family default
3683 ) for a dedication.
3684 \end_layout
3685
3686 \begin_layout Itemize
3687
3688 \family sans
3689 Titlehead
3690 \family default
3691 : produces a left aligned paragraph above the ordinary title (
3692 \family sans
3693 Title
3694 \family default
3695
3696 \family sans
3697 Author
3698 \family default
3699
3700 \family sans
3701 Date
3702 \family default
3703
3704 \family sans
3705 Subject
3706 \family default
3707 ) for a document`s head.
3708 \end_layout
3709
3710 \begin_layout Itemize
3711
3712 \family sans
3713 Uppertitleback
3714 \family default
3715 : produces in a double-sided print in 
3716 \emph on
3717 report (koma-script)
3718 \emph default
3719  and 
3720 \emph on
3721 book (koma-script)
3722 \emph default
3723  a left-aligned paragraph at the top of the title page`s back or has no
3724  effect in a single-sided print or in 
3725 \emph on
3726 article (koma-script)
3727 \emph default
3728 .
3729 \end_layout
3730
3731 \begin_layout Itemize
3732
3733 \family sans
3734 Lowertitleback
3735 \family default
3736 : produces in a double-sided print in 
3737 \emph on
3738 report (koma-script)
3739 \emph default
3740  and 
3741 \emph on
3742 book (koma-script)
3743 \emph default
3744  a left-aligned paragraph at the bottom of the title page`s back or has
3745  no effect in a single-sided print or in 
3746 \emph on
3747 article (koma-script)
3748 \emph default
3749 .
3750 \end_layout
3751
3752 \begin_layout Itemize
3753
3754 \family sans
3755 Extratitle
3756 \family default
3757 : produces a special 
3758 \begin_inset Quotes eld
3759 \end_inset
3760
3761 dirty
3762 \begin_inset Quotes erd
3763 \end_inset
3764
3765  page ahead of the actual document containing a paragraph without special
3766  formatting.
3767 \end_layout
3768
3769 \begin_layout Standard
3770 The layout files for the document classes 
3771 \emph on
3772 article (koma-script)
3773 \emph default
3774
3775 \emph on
3776 report (koma-script)
3777 \emph default
3778 , and 
3779 \emph on
3780 book (koma-script)
3781 \emph default
3782  do include the file 
3783 \family typewriter
3784 scrmacros.inc
3785 \family default
3786 .
3787  This is thought of as a place to define your own types.
3788  Copy scrmacros
3789 \family typewriter
3790 .inc
3791 \family default
3792  in your personal layout directory and edit the file!
3793 \end_layout
3794
3795 \begin_layout Subsubsection
3796 letter (koma-script)
3797 \end_layout
3798
3799 \begin_layout Description
3800 Note: This section discusses the obsolete 
3801 \family sans
3802 KOMA-Script-Letter (v.
3803 \begin_inset space ~
3804 \end_inset
3805
3806 1)
3807 \family default
3808 , which is not even included anymore in recent KOMA releases.
3809  Please refer to the next section for the current KOMA-Script-Letter class
3810  (v.
3811 \begin_inset space ~
3812 \end_inset
3813
3814 2)!
3815 \end_layout
3816
3817 \begin_layout Standard
3818 \noindent
3819 The document class 
3820 \emph on
3821 letter (koma-script)
3822 \emph default
3823  is implemented in the layout file 
3824 \family typewriter
3825 scrlettr.layout
3826 \family default
3827 .
3828  It contains all the paragraph types of the corresponding standard document
3829  class 
3830 \emph on
3831 letter
3832 \emph default
3833 , partly modified, with the exception of the \SpecialChar LyX
3834  specific types 
3835 \family sans
3836 \SpecialChar LyX
3837 -Code
3838 \family default
3839  and 
3840 \family sans
3841 Comment
3842 \family default
3843  and the 
3844 \family sans
3845 List
3846 \family default
3847  type, which is replaced by the new 
3848 \family sans
3849 Labeling
3850 \family default
3851  type.
3852  In addition, it contains, in contrast to the standard document class, the
3853  standard types 
3854 \family sans
3855 \SpecialChar LaTeX
3856
3857 \family default
3858
3859 \family sans
3860 Quotation
3861 \family default
3862
3863 \family sans
3864 Quote
3865 \family default
3866 , and 
3867 \family sans
3868 Verse
3869 \family default
3870 .
3871  Furthermore, there are a number of new letter specific types.
3872 \end_layout
3873
3874 \begin_layout Standard
3875 The appearance of the letter produced by this document class can be controlled
3876  by a number of \SpecialChar LaTeX
3877  commands, which you can put in the \SpecialChar LaTeX
3878  preamble.
3879 \begin_inset Foot
3880 status collapsed
3881
3882 \begin_layout Plain Layout
3883 For example, the standard appearance of the letter`s heading, consisting
3884  of name and address, is quite self-willed.
3885  An 
3886 \begin_inset Quotes eld
3887 \end_inset
3888
3889 ordinary
3890 \begin_inset Quotes erd
3891 \end_inset
3892
3893  heading is produced by the following \SpecialChar LaTeX
3894  commands in the preamble:
3895 \end_layout
3896
3897 \begin_layout LyX-Code
3898
3899 \backslash
3900 firsthead{
3901 \backslash
3902 parbox[b]{
3903 \backslash
3904 textwidth}
3905 \end_layout
3906
3907 \begin_layout LyX-Code
3908   {
3909 \backslash
3910 ignorespaces 
3911 \backslash
3912 fromname
3913 \backslash
3914
3915 \backslash
3916  
3917 \backslash
3918 ignorespaces 
3919 \backslash
3920 fromaddress}} 
3921 \end_layout
3922
3923 \begin_layout LyX-Code
3924
3925 \backslash
3926 nexthead{
3927 \backslash
3928 parbox[b]{
3929 \backslash
3930 textwidth}
3931 \end_layout
3932
3933 \begin_layout LyX-Code
3934   {
3935 \backslash
3936 ignorespaces 
3937 \backslash
3938 fromname 
3939 \backslash
3940 hfill 
3941 \backslash
3942 ignorespaces 
3943 \backslash
3944 pagename
3945 \backslash
3946  
3947 \backslash
3948 thepage}}
3949 \end_layout
3950
3951 \end_inset
3952
3953  A detailed German description of such \SpecialChar LaTeX
3954  commands can be found in the Koma-Script
3955  documentation 
3956 \emph on
3957 scrguide
3958 \emph default
3959 .
3960  With it, the letter's author can produce his personal letter layout.
3961 \end_layout
3962
3963 \begin_layout Standard
3964 The types 
3965 \family sans
3966 Letter
3967 \family default
3968  and 
3969 \family sans
3970 Opening
3971 \family default
3972  define the beginning of the letter and must be used in every letter.
3973  To emphasize them in the \SpecialChar LyX
3974  document class, they are marked with the letter
3975  
3976 \shape italic
3977 L
3978 \shape default
3979  or 
3980 \shape italic
3981 O
3982 \shape default
3983 , resp.
3984 \begin_inset space ~
3985 \end_inset
3986
3987 in the left margin.
3988  It is possible to write any number of letters in one file.
3989  An 
3990 \family sans
3991 Opening
3992 \family default
3993  type produces a new letter using the same addressee and a 
3994 \family sans
3995 Letter
3996 \family default
3997  type produces a new addressee.
3998  The types 
3999 \family sans
4000 Closing
4001 \family default
4002
4003 \family sans
4004 PS
4005 \family default
4006
4007 \family sans
4008 CC
4009 \family default
4010 , and 
4011 \family sans
4012 Encl
4013 \family default
4014  are ordinary paragraph types and can also be used several times in one
4015  and the same letter.
4016 \end_layout
4017
4018 \begin_layout Itemize
4019
4020 \family sans
4021 Letter
4022 \family default
4023 : produces a paragraph for the addressee and implicitly defines the beginning
4024  of the letter.
4025 \end_layout
4026
4027 \begin_layout Itemize
4028
4029 \family sans
4030 Opening
4031 \family default
4032 : produces a paragraph for the form of address and implicitly produces a
4033  new letter.
4034 \end_layout
4035
4036 \begin_layout Itemize
4037
4038 \family sans
4039 Closing
4040 \family default
4041 : produces a paragraph for a close.
4042 \end_layout
4043
4044 \begin_layout Itemize
4045
4046 \family sans
4047 PS
4048 \family default
4049 : produces a paragraph for a postscript.
4050 \end_layout
4051
4052 \begin_layout Itemize
4053
4054 \family sans
4055 CC
4056 \family default
4057 : produces a paragraph for a distribution list.
4058 \end_layout
4059
4060 \begin_layout Itemize
4061
4062 \family sans
4063 Encl
4064 \family default
4065 : produces a paragraph for enclosures.
4066 \end_layout
4067
4068 \begin_layout Standard
4069 The types 
4070 \family sans
4071 Name
4072 \family default
4073
4074 \family sans
4075 Signature
4076 \family default
4077
4078 \family sans
4079 Address
4080 \family default
4081
4082 \family sans
4083 Telephone
4084 \family default
4085
4086 \family sans
4087 Place
4088 \family default
4089
4090 \family sans
4091 Backaddress
4092 \family default
4093
4094 \family sans
4095 Specialmail
4096 \family default
4097
4098 \family sans
4099 Location
4100 \family default
4101
4102 \family sans
4103 Title
4104 \family default
4105 , and 
4106 \family sans
4107 Subject
4108 \family default
4109  are input types provided with a label to enter information, which will
4110  be processed by the document class.
4111 \begin_inset Foot
4112 status collapsed
4113
4114 \begin_layout Plain Layout
4115 It could be seen as a matter of inconsequence, that the types 
4116 \family sans
4117 Letter
4118 \family default
4119  and 
4120 \family sans
4121 Opening
4122 \family default
4123  described above are not such input types as well.
4124  Because of the special meaning of those types, however, I have implemented
4125  them as ordinary paragraph types with a one letter mark in the left margin.
4126  Moreover, it would affect my feeling of symmetry, if the 
4127 \family sans
4128 Opening
4129 \family default
4130  type and the 
4131 \family sans
4132 Closing
4133 \family default
4134  type had such a serious different appearance.
4135 \end_layout
4136
4137 \end_inset
4138
4139  The types must be used ahead of the corresponding 
4140 \family sans
4141 Opening
4142 \family default
4143  type.
4144 \end_layout
4145
4146 \begin_layout Standard
4147 An implementation of these types in a WYSIWYG fashion does not seem to make
4148  sense, because the real appearance of the produced letter does not only
4149  depend on the usage of the particular type, but also on other factors.
4150  For example, a signature entered in the 
4151 \family sans
4152 Signature
4153 \family default
4154  type will in the standard behavior appear in the produced letter only,
4155  when in the same letter also a 
4156 \family sans
4157 Closing
4158 \family default
4159  type is used.
4160  The entered value of the 
4161 \family sans
4162 Telephone
4163 \family default
4164  type will in the standard behavior not appear in the produced letter at
4165  all.
4166  The possibility to design the letter`s heading freely is already indicated
4167  in a footnote above.
4168 \end_layout
4169
4170 \begin_layout Standard
4171 The input types can also be used as empty paragraphs.
4172  This makes sense e.
4173 \begin_inset space \thinspace{}
4174 \end_inset
4175
4176 g.
4177 \begin_inset space \space{}
4178 \end_inset
4179
4180 for the 
4181 \family sans
4182 Signature
4183 \family default
4184  type.
4185  If the 
4186 \family sans
4187 Signature
4188 \family default
4189  type is not used at all, in the standard behavior the value of the 
4190 \family sans
4191 Name
4192 \family default
4193  type is used as signature, whereas if an empty 
4194 \family sans
4195 Signature
4196 \family default
4197  type is used, no signature value is defined.
4198 \end_layout
4199
4200 \begin_layout Standard
4201 By using the input types it is possible to write a letter template, containing
4202  filled input types with your personal dates (name, address, etc.) and empty
4203  input types for other dates you want to enter.
4204 \end_layout
4205
4206 \begin_layout Itemize
4207
4208 \family sans
4209 Name
4210 \family default
4211 : sender's name, in the standard behavior appears as a centered paragraph
4212  in small caps in the letter`s heading.
4213 \end_layout
4214
4215 \begin_layout Itemize
4216
4217 \family sans
4218 Signature
4219 \family default
4220 : sender's signature, in the standard behavior appears below the 
4221 \family sans
4222 Closing
4223 \family default
4224  type.
4225  If no 
4226 \family sans
4227 Signature
4228 \family default
4229  type is used, the value of the 
4230 \family sans
4231 Name
4232 \family default
4233  type appears instead.
4234 \end_layout
4235
4236 \begin_layout Itemize
4237
4238 \family sans
4239 Address
4240 \family default
4241 : sender's address, in the standard behavior appears in a centered paragraph
4242  in the letter`s heading below the sender's name.
4243 \end_layout
4244
4245 \begin_layout Itemize
4246
4247 \family sans
4248 Telephone
4249 \family default
4250 : sender's telephone number, in the standard behavior only sets the \SpecialChar LaTeX
4251  variable
4252  
4253 \family typewriter
4254
4255 \backslash
4256 telephonenum
4257 \family default
4258 .
4259 \end_layout
4260
4261 \begin_layout Itemize
4262
4263 \family sans
4264 Place
4265 \family default
4266 : place of the letter`s making.
4267 \end_layout
4268
4269 \begin_layout Itemize
4270
4271 \family sans
4272 Date
4273 \family default
4274 : date of the letter`s making.
4275  
4276 \family sans
4277 Place
4278 \family default
4279  and 
4280 \family sans
4281 Date
4282 \family default
4283 , in the standard behavior, produce the place and the date in a right-aligned
4284  line below the addressee's field.
4285  If an empty 
4286 \family sans
4287 Date
4288 \family default
4289  type is used, neither place nor date appear, independent of the value of
4290  the 
4291 \family sans
4292 Place
4293 \family default
4294  type.
4295  If no 
4296 \family sans
4297 Date
4298 \family default
4299  type is used, the date of the letter `s production is used.
4300 \end_layout
4301
4302 \begin_layout Itemize
4303
4304 \family sans
4305 Backaddress
4306 \family default
4307 : sender`s back address, in the standard behavior appears above the addressee's
4308  field in a small sans serif font.
4309 \end_layout
4310
4311 \begin_layout Itemize
4312
4313 \family sans
4314 Specialmail
4315 \family default
4316 : special mail information, in the standard behavior appears underlined
4317  above the addressee's field below the back address.
4318 \end_layout
4319
4320 \begin_layout Itemize
4321
4322 \family sans
4323 Location
4324 \family default
4325 : additional information, in the standard behavior appears on right side
4326  below the addressee`s field.
4327 \end_layout
4328
4329 \begin_layout Itemize
4330
4331 \family sans
4332 Title
4333 \family default
4334 : the letter's title, in the standard behavior appears in a big, bold, sans
4335  serif font above the subject.
4336 \end_layout
4337
4338 \begin_layout Itemize
4339
4340 \family sans
4341 Subject
4342 \family default
4343 : the letter's subject, in the standard behavior appears in a bold font
4344  above the 
4345 \family sans
4346 Opening
4347 \family default
4348  paragraph.
4349 \end_layout
4350
4351 \begin_layout Standard
4352 The types 
4353 \family sans
4354 Yourref
4355 \family default
4356
4357 \family sans
4358 Yourmail
4359 \family default
4360
4361 \family sans
4362 Myref
4363 \family default
4364
4365 \family sans
4366 Customer
4367 \family default
4368 , and 
4369 \family sans
4370 Invoice
4371 \family default
4372  produce a business letter like line above the 
4373 \family sans
4374 Title
4375 \family default
4376  line containing the fields 
4377 \begin_inset Quotes eld
4378 \end_inset
4379
4380 Your ref.
4381 \begin_inset Quotes erd
4382 \end_inset
4383
4384
4385 \begin_inset Quotes eld
4386 \end_inset
4387
4388 Your letter of
4389 \begin_inset Quotes erd
4390 \end_inset
4391
4392
4393 \begin_inset Quotes eld
4394 \end_inset
4395
4396 Our ref.
4397 \begin_inset Quotes erd
4398 \end_inset
4399
4400
4401 \begin_inset Quotes eld
4402 \end_inset
4403
4404 Customer no.
4405 \begin_inset Quotes erd
4406 \end_inset
4407
4408
4409 \begin_inset Quotes eld
4410 \end_inset
4411
4412 Invoice no.
4413 \begin_inset Quotes erd
4414 \end_inset
4415
4416 , and 
4417 \begin_inset Quotes eld
4418 \end_inset
4419
4420 Date
4421 \begin_inset Quotes erd
4422 \end_inset
4423
4424 .
4425  For the date field, the value of the 
4426 \family sans
4427 Date
4428 \family default
4429  type is used.
4430  If one of these 
4431 \begin_inset Quotes eld
4432 \end_inset
4433
4434 business letter types
4435 \begin_inset Quotes erd
4436 \end_inset
4437
4438  is used, the value of the 
4439 \family sans
4440 Place
4441 \family default
4442  type however does not appear, but only the \SpecialChar LaTeX
4443  variable 
4444 \family typewriter
4445
4446 \backslash
4447 fromplace
4448 \family default
4449  is set.
4450  The ordinary output of place and date in a right-aligned line below the
4451  addressee`s field is suppressed.
4452  The types are implemented as input types provided with a label and must
4453  be used ahead of the corresponding 
4454 \family sans
4455 Opening
4456 \family default
4457  type.
4458 \end_layout
4459
4460 \begin_layout Itemize
4461
4462 \family sans
4463 Yourref
4464 \family default
4465 : Your ref.
4466 \end_layout
4467
4468 \begin_layout Itemize
4469
4470 \family sans
4471 Yourmail
4472 \family default
4473 : Your letter of.
4474 \end_layout
4475
4476 \begin_layout Itemize
4477
4478 \family sans
4479 Myref
4480 \family default
4481 : Our ref.
4482 \end_layout
4483
4484 \begin_layout Itemize
4485
4486 \family sans
4487 Customer
4488 \family default
4489 : Customer no.
4490 \end_layout
4491
4492 \begin_layout Itemize
4493
4494 \family sans
4495 Invoice
4496 \family default
4497 : Invoice no.
4498 \end_layout
4499
4500 \begin_layout Subsubsection
4501 The new letter class: letter (koma-script v.2)
4502 \end_layout
4503
4504 \begin_layout Standard
4505 by 
4506 \noun on
4507 Jürgen Spitzmüller
4508 \end_layout
4509
4510 \begin_layout Standard
4511 \begin_inset VSpace medskip
4512 \end_inset
4513
4514
4515 \end_layout
4516
4517 \begin_layout Standard
4518 \noindent
4519 Koma-Script version 2.8 has introduced a new letter class 
4520 \family typewriter
4521 scrlttr2
4522 \family default
4523  which supersedes the now unsupported 
4524 \family typewriter
4525 scrlettr
4526 \family default
4527 .
4528  It has — on the \SpecialChar LaTeX
4529  side — a completely new interface and is not compatible
4530  with the old class.
4531  Therefore, \SpecialChar LyX
4532  supports both, though it is recommended you use the new class.
4533 \end_layout
4534
4535 \begin_layout Standard
4536 This class covers the same functionality as 
4537 \emph on
4538 letter (koma-script),
4539 \emph default
4540  and a few more.
4541  The basic items are 
4542 \family sans
4543 Address
4544 \family default
4545  (receiver's address, same as 
4546 \family sans
4547 Letter
4548 \family default
4549  in the old layout), 
4550 \family sans
4551 Opening
4552 \family default
4553 , and 
4554 \family sans
4555 Closing
4556 \family default
4557 .
4558  
4559 \family sans
4560 NextAddress
4561 \family default
4562  will start a new letter (i.
4563 \begin_inset space \thinspace{}
4564 \end_inset
4565
4566 e.
4567 \begin_inset space \space{}
4568 \end_inset
4569
4570 you can write several letters per document).
4571  New elements are sender's 
4572 \family sans
4573 E-Mail
4574 \family default
4575
4576 \family sans
4577 URL
4578 \family default
4579
4580 \family sans
4581 Fax
4582 \family default
4583
4584 \family sans
4585 Bank
4586 \family default
4587  and the possibility to use a 
4588 \family sans
4589 Logo
4590 \family default
4591  (via 
4592 \family sans
4593 Insert\SpecialChar menuseparator
4594 Graphics
4595 \family default
4596 ) in the header.
4597 \end_layout
4598
4599 \begin_layout Standard
4600 The biggest improvement is, though, that the letter's layout is configurable
4601  to meet almost any needs.
4602  This can be done via the preamble or with a special style file (Letter
4603  Class Option, extension 
4604 \family typewriter
4605 *.lco
4606 \family default
4607 ), that will be read in as a class option.
4608 \begin_inset Foot
4609 status collapsed
4610
4611 \begin_layout Plain Layout
4612 The KOMA package comes with some default 
4613 \family typewriter
4614 *.lco
4615 \family default
4616  files.
4617  There is, for instance, a 
4618 \family typewriter
4619 DIN.lco
4620 \family default
4621  file that follows german typesetting rules, or a 
4622 \family typewriter
4623 KOMAold.lco
4624 \family default
4625  that provides the default layout of the old 
4626 \family typewriter
4627 scrlettr
4628 \family default
4629  class.
4630  The latter can be loaded with the class option 
4631 \family typewriter
4632 KOMAold
4633 \family default
4634 , inserted via the 
4635 \family sans
4636 Layout\SpecialChar menuseparator
4637 Document\SpecialChar menuseparator
4638 Extra Options
4639 \family default
4640  field.
4641 \end_layout
4642
4643 \end_inset
4644
4645  Have a look at the 
4646 \emph on
4647 koma-letter2
4648 \emph default
4649  template that is included in \SpecialChar LyX
4650  for examples.
4651  A detailed description is to be found in the Koma-Script documentation
4652  (
4653 \emph on
4654 scrguide
4655 \emph default
4656 ).
4657 \end_layout
4658
4659 \begin_layout Subsubsection
4660 Problems
4661 \end_layout
4662
4663 \begin_layout Standard
4664 Visualizing the Koma-Script document classes in \SpecialChar LyX
4665 , the \SpecialChar LyX
4666  internals cause some
4667  problems.
4668 \end_layout
4669
4670 \begin_layout Itemize
4671 The chapter number of a 
4672 \family sans
4673 Chapter
4674 \family default
4675  type appears on a line of its own above the chapter heading instead of
4676  appearing in the same line ahead of it.
4677  The cause for that is the \SpecialChar LyX
4678  internal behavior for the labeltype 
4679 \family sans
4680 Counter_Chapter
4681 \family default
4682  in the layout file.
4683 \end_layout
4684
4685 \begin_layout Itemize
4686 The headings of the types 
4687 \family sans
4688 Addchap
4689 \family default
4690  and 
4691 \family sans
4692 Addsec
4693 \family default
4694  are only put in the 
4695 \begin_inset Quotes eld
4696 \end_inset
4697
4698 true
4699 \begin_inset Quotes erd
4700 \end_inset
4701
4702  \SpecialChar LaTeX
4703  table of contents, but not in the \SpecialChar LyX
4704  table of contents (
4705 \family sans
4706 Document\SpecialChar menuseparator
4707 Table
4708 \begin_inset space ~
4709 \end_inset
4710
4711 of
4712 \begin_inset space ~
4713 \end_inset
4714
4715 Contents
4716 \family default
4717 ).
4718 \end_layout
4719
4720 \begin_layout Itemize
4721 The paragraphs in a 
4722 \emph on
4723 letter
4724 \emph default
4725  document class appear in a skip separation mode, not indented.
4726  This is the standard behavior, no special \SpecialChar LaTeX
4727  commands are needed for that.
4728  But in the 
4729 \family sans
4730 Document\SpecialChar menuseparator
4731 Settings
4732 \family default
4733  dialog the corresponding radio button indicates 
4734 \family sans
4735 Indent
4736 \family default
4737 .
4738  A 
4739 \family sans
4740 Skip
4741 \family default
4742  value always has the effect that extra \SpecialChar LaTeX
4743  commands are inserted in the document
4744  to produce the gap, which is not what is wanted in this case.
4745 \end_layout
4746
4747 \begin_layout Subsection
4748
4749 \change_inserted 564990737 1670924924
4750 Polish M.
4751 \begin_inset space \thinspace{}
4752 \end_inset
4753
4754 W.
4755 \begin_inset space \space{}
4756 \end_inset
4757
4758 collection
4759 \change_deleted 564990737 1670924933
4760 Article (mwart), book (mwbk) and report (mwrep)
4761 \begin_inset Argument status
4762 status collapsed
4763
4764 \begin_layout Plain Layout
4765 The 
4766 \family typewriter
4767 mw
4768 \family default
4769  Classes
4770 \end_layout
4771
4772 \end_inset
4773
4774
4775 \change_unchanged
4776
4777 \end_layout
4778
4779 \begin_layout Standard
4780 by 
4781 \noun on
4782 Tomasz Luczak
4783 \end_layout
4784
4785 \begin_layout Standard
4786 The \SpecialChar LyX
4787  document classes 
4788 \emph on
4789 article (mwart)
4790 \emph default
4791
4792 \emph on
4793 report (mwrep)
4794 \emph default
4795  and 
4796 \emph on
4797 book
4798 \emph default
4799  
4800 \emph on
4801 (mwbk)
4802 \emph default
4803  correspond to the \SpecialChar LaTeX
4804  document classes 
4805 \family typewriter
4806 mwart.cls
4807 \family default
4808
4809 \family typewriter
4810 mwrep.cls
4811 \family default
4812  and 
4813 \family typewriter
4814 mwbk.cls
4815 \family default
4816 , resp.
4817  They are replacements for the standard document classes 
4818 \family typewriter
4819 article.cls
4820 \family default
4821
4822 \family typewriter
4823 report.cls
4824 \family default
4825  and 
4826 \family typewriter
4827 book.cls
4828 \family default
4829 , resp., and fit better to Polish typography conventions in a number of points.
4830  
4831 \end_layout
4832
4833 \begin_layout Standard
4834 Basic differences:
4835 \end_layout
4836
4837 \begin_layout Itemize
4838 Unnumbered titles (with star, e.
4839 \begin_inset space \thinspace{}
4840 \end_inset
4841
4842 g.
4843 \begin_inset space \space{}
4844 \end_inset
4845
4846
4847 \family sans
4848 Section*
4849 \family default
4850 ) are added into table of contents,
4851 \end_layout
4852
4853 \begin_layout Itemize
4854 Additional page styles:
4855 \end_layout
4856
4857 \begin_deeper
4858 \begin_layout Description
4859 uheadings header with separated lines,
4860 \end_layout
4861
4862 \begin_layout Description
4863 myheadings custom header, contents headers via commands: 
4864 \family typewriter
4865
4866 \backslash
4867 markright
4868 \family default
4869  and 
4870 \family typewriter
4871
4872 \backslash
4873 markboth
4874 \family default
4875 ,
4876 \end_layout
4877
4878 \begin_layout Description
4879 myuheadings custom header with separated lines,
4880 \end_layout
4881
4882 \begin_layout Description
4883 outer page number is placed on outer side of page
4884 \end_layout
4885
4886 \end_deeper
4887 \begin_layout Itemize
4888 Options 
4889 \end_layout
4890
4891 \begin_deeper
4892 \begin_layout Description
4893 rmheadings serif titles — default,
4894 \end_layout
4895
4896 \begin_layout Description
4897 sfheadings sansserif titles,
4898 \end_layout
4899
4900 \begin_layout Description
4901 authortitle on title page first placed is author next title — default,
4902 \end_layout
4903
4904 \begin_layout Description
4905 titleauthor on title page first placed is title next author,
4906 \end_layout
4907
4908 \begin_layout Description
4909 withmarginpar reserve place on page for margins.
4910 \end_layout
4911
4912 \end_deeper
4913 \begin_layout Section
4914
4915 \change_inserted 564990737 1670439534
4916 Articles
4917 \end_layout
4918
4919 \begin_layout Standard
4920
4921 \change_inserted 564990737 1670794710
4922 See also the document classes in the Collections (section
4923 \begin_inset space ~
4924 \end_inset
4925
4926
4927 \begin_inset CommandInset ref
4928 LatexCommand ref
4929 reference "sec:Collections"
4930
4931 \end_inset
4932
4933 ).
4934 \end_layout
4935
4936 \begin_layout Subsection
4937
4938 \change_inserted 564990737 1670794716
4939
4940 \lang american
4941 A&A Paper
4942 \end_layout
4943
4944 \begin_layout Standard
4945
4946 \change_inserted 564990737 1670794716
4947
4948 \lang american
4949 Original by 
4950 \noun on
4951 Peter Sütterlin
4952 \noun default
4953 ; updated by the \SpecialChar LyX
4954  Team
4955 \end_layout
4956
4957 \begin_layout Subsubsection
4958
4959 \change_inserted 564990737 1670794716
4960
4961 \lang american
4962 Introduction
4963 \end_layout
4964
4965 \begin_layout Standard
4966
4967 \change_inserted 564990737 1670794716
4968
4969 \lang american
4970 This section describes how \SpecialChar LyX
4971  can be used to write articles for submission
4972  to the scientific journal 
4973 \emph on
4974 Astronomy and Astrophysics
4975 \emph default
4976  (
4977 \begin_inset CommandInset href
4978 LatexCommand href
4979 name "aa-package"
4980 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
4981 literal "false"
4982
4983 \end_inset
4984
4985 ) using Version 9.1 of the document class 
4986 \family typewriter
4987 aa.cls
4988 \family default
4989 ; information about it is available at 
4990 \begin_inset Flex URL
4991 status collapsed
4992
4993 \begin_layout Plain Layout
4994
4995 \change_inserted 564990737 1670794716
4996
4997 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
4998 \change_unchanged
4999
5000 \end_layout
5001
5002 \end_inset
5003
5004 .
5005 \end_layout
5006
5007 \begin_layout Standard
5008
5009 \change_inserted 564990737 1670794716
5010
5011 \lang american
5012 A manual comes together with the package and should be consulted before
5013  installing this document class as described in the 
5014 \emph on
5015 Installing New Document Classe
5016 \emph default
5017 s section of the 
5018 \emph on
5019 Customization
5020 \emph default
5021  manual.
5022  
5023 \end_layout
5024
5025 \begin_layout Standard
5026
5027 \change_inserted 564990737 1670794716
5028
5029 \lang american
5030 \begin_inset Note Greyedout
5031 status open
5032
5033 \begin_layout Plain Layout
5034
5035 \change_inserted 564990737 1670794716
5036
5037 \lang american
5038 Please note that the publisher of the journal was changed from Springer
5039  to EDP Sciences starting January 1, 2001.
5040  That change also involved some slight changes to the style files, namely
5041  the removal of the thesaurus command.
5042  If you have an older version installed, please upgrade.
5043  For information about compatibility with the old (version 4) layout, please
5044  refer to the comments in 
5045 \family typewriter
5046 \SpecialChar LyX
5047 Dir/layouts/aapaper.layout
5048 \family default
5049 .
5050 \end_layout
5051
5052 \end_inset
5053
5054
5055 \end_layout
5056
5057 \begin_layout Subsubsection
5058
5059 \change_inserted 564990737 1670794716
5060
5061 \lang american
5062 Getting started
5063 \end_layout
5064
5065 \begin_layout Standard
5066
5067 \change_inserted 564990737 1670794716
5068
5069 \lang american
5070 It is recommended you start from the template 
5071 \emph on
5072 aa.lyx
5073 \emph default
5074  in the menu 
5075 \family sans
5076 \bar under
5077 F
5078 \bar default
5079 ile\SpecialChar menuseparator
5080 New
5081 \begin_inset space ~
5082 \end_inset
5083
5084 fro
5085 \bar under
5086 m
5087 \bar default
5088
5089 \begin_inset space ~
5090 \end_inset
5091
5092 Template
5093 \family default
5094 .
5095  If you are not using the template, note the following settings:
5096 \end_layout
5097
5098 \begin_layout Itemize
5099
5100 \change_inserted 564990737 1670794716
5101
5102 \lang american
5103 Select 
5104 \family sans
5105 article (A&A)
5106 \family default
5107  in the 
5108 \family sans
5109 \bar under
5110 D
5111 \bar default
5112 ocument\SpecialChar menuseparator
5113
5114 \bar under
5115 S
5116 \bar default
5117 ettings\SpecialChar menuseparator
5118 Document
5119 \begin_inset space ~
5120 \end_inset
5121
5122 Class
5123 \family default
5124  dialog (OK, that one was obvious).
5125 \end_layout
5126
5127 \begin_layout Itemize
5128
5129 \change_inserted 564990737 1670794716
5130
5131 \lang american
5132 Don't change the 
5133 \family sans
5134 Headings
5135 \begin_inset space ~
5136 \end_inset
5137
5138
5139 \bar under
5140 s
5141 \bar default
5142 tyle
5143 \family default
5144  in the 
5145 \family sans
5146 Page
5147 \begin_inset space ~
5148 \end_inset
5149
5150 Layout
5151 \family default
5152  dialog: leave it set to 
5153 \family sans
5154 Default
5155 \family default
5156 .
5157  The whole layout is done by the macros, you shouldn't change anything.
5158 \end_layout
5159
5160 \begin_layout Subsubsection
5161
5162 \change_inserted 564990737 1670794716
5163
5164 \lang american
5165 The header block
5166 \end_layout
5167
5168 \begin_layout Standard
5169
5170 \change_inserted 564990737 1670794716
5171
5172 \lang american
5173 First thing to enter is the header information.
5174  It consists of five entries, of which one is optional.
5175  They are
5176 \end_layout
5177
5178 \begin_layout Itemize
5179
5180 \change_inserted 564990737 1670794716
5181
5182 \family sans
5183 \lang american
5184 Title
5185 \family default
5186 : [required] 
5187 \end_layout
5188
5189 \begin_layout Itemize
5190
5191 \change_inserted 564990737 1670794716
5192
5193 \family sans
5194 \lang american
5195 Subtitle
5196 \family default
5197 : [optional] 
5198 \end_layout
5199
5200 \begin_layout Itemize
5201
5202 \change_inserted 564990737 1670794716
5203
5204 \family sans
5205 \lang american
5206 Author
5207 \family default
5208 : [required]
5209 \end_layout
5210
5211 \begin_layout Itemize
5212
5213 \change_inserted 564990737 1670794716
5214
5215 \family typewriter
5216 \lang american
5217 Institute
5218 \family default
5219 : [required]
5220 \end_layout
5221
5222 \begin_layout Itemize
5223
5224 \change_inserted 564990737 1670794716
5225
5226 \family sans
5227 \lang american
5228 Date
5229 \family default
5230 : [required].
5231  Suggested format is 
5232 \family typewriter
5233 Received: <date>; Accepted <date> 
5234 \end_layout
5235
5236 \begin_layout Standard
5237
5238 \change_inserted 564990737 1670794716
5239
5240 \lang american
5241 Although the order of the single header entries doesn't matter it is advised
5242  to keep the above sequence, just to get the best optics and meets the layout
5243  of the real document.
5244 \end_layout
5245
5246 \begin_layout Standard
5247
5248 \change_inserted 564990737 1670794716
5249
5250 \lang american
5251 If you want to place footnotes in the header block, e.
5252 \begin_inset space \thinspace{}
5253 \end_inset
5254
5255 g.
5256 \begin_inset space \space{}
5257 \end_inset
5258
5259 to state your present address, just use the standard footnote via the menu
5260  
5261 \family sans
5262 \bar under
5263 I
5264 \bar default
5265 nsert\SpecialChar menuseparator
5266
5267 \bar under
5268 F
5269 \bar default
5270 ootnote.
5271
5272 \family default
5273  \SpecialChar LyX
5274  will automagically use the term 
5275 \family typewriter
5276
5277 \backslash
5278 thanks{}
5279 \family default
5280  in that case.
5281 \end_layout
5282
5283 \begin_layout Standard
5284
5285 \change_inserted 564990737 1670794716
5286
5287 \lang american
5288 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5289  commands that
5290  have no counterpart in \SpecialChar LyX
5291 :
5292 \end_layout
5293
5294 \begin_layout Itemize
5295
5296 \change_inserted 564990737 1670794716
5297
5298 \family typewriter
5299 \lang american
5300
5301 \backslash
5302 and
5303 \family default
5304  to separate different names for more than one author and institute, respectivel
5305 y.
5306 \end_layout
5307
5308 \begin_layout Itemize
5309
5310 \change_inserted 564990737 1670794716
5311
5312 \family typewriter
5313 \lang american
5314
5315 \backslash
5316 inst{<nr>}
5317 \family default
5318  to mark corresponding author/institute pairs.
5319  The institutes are numbered sequentially as they appear in the 
5320 \family sans
5321 Institute
5322 \family default
5323  field, so you have to put a marker to each author.
5324 \end_layout
5325
5326 \begin_layout Itemize
5327
5328 \change_inserted 564990737 1670794716
5329
5330 \family typewriter
5331 \lang american
5332
5333 \backslash
5334 email{address}
5335 \family default
5336  to supply an email address for fast contact.
5337 \end_layout
5338
5339 \begin_layout Standard
5340
5341 \change_inserted 564990737 1670794716
5342
5343 \lang american
5344 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5345  code in \SpecialChar LyX
5346 .
5347  See the examples in the template and in the file 
5348 \emph on
5349 aa_sample.lyx
5350 \emph default
5351  in the 
5352 \family sans
5353 Examples
5354 \family default
5355  directory.
5356  
5357 \end_layout
5358
5359 \begin_layout Subsubsection
5360
5361 \change_inserted 564990737 1670794716
5362
5363 \lang american
5364 The abstract
5365 \end_layout
5366
5367 \begin_layout Standard
5368
5369 \change_inserted 564990737 1670794716
5370
5371 \lang american
5372 The abstract should immediately follow the header block and must contain
5373  five tokens: 
5374 \family typewriter
5375
5376 \backslash
5377 abstract{}{}{}{}{}
5378 \family default
5379  
5380 \end_layout
5381
5382 \begin_layout Enumerate
5383
5384 \change_inserted 564990737 1670794716
5385
5386 \family typewriter
5387 \lang american
5388 context heading
5389 \family default
5390  (optional) {} leave it empty if necessary 
5391 \end_layout
5392
5393 \begin_layout Enumerate
5394
5395 \change_inserted 564990737 1670794716
5396
5397 \family typewriter
5398 \lang american
5399 aims heading
5400 \family default
5401  (mandatory) {} 
5402 \end_layout
5403
5404 \begin_layout Enumerate
5405
5406 \change_inserted 564990737 1670794716
5407
5408 \family typewriter
5409 \lang american
5410 methods heading
5411 \family default
5412  (mandatory) {} 
5413 \end_layout
5414
5415 \begin_layout Enumerate
5416
5417 \change_inserted 564990737 1670794716
5418
5419 \family typewriter
5420 \lang american
5421 results heading
5422 \family default
5423  (mandatory) {} 
5424 \end_layout
5425
5426 \begin_layout Enumerate
5427
5428 \change_inserted 564990737 1670794716
5429
5430 \family typewriter
5431 \lang american
5432 conclusions heading
5433 \family default
5434  (optional) {} leave it empty if necessary 
5435 \end_layout
5436
5437 \begin_layout Standard
5438
5439 \change_inserted 564990737 1670794716
5440
5441 \lang american
5442 (NB.
5443  This structure not shown in 
5444 \emph on
5445 aa_sample.lyx.
5446 \emph default
5447 )
5448 \end_layout
5449
5450 \begin_layout Subsubsection
5451
5452 \change_inserted 564990737 1670794716
5453
5454 \lang american
5455 Supported environments
5456 \end_layout
5457
5458 \begin_layout Standard
5459
5460 \change_inserted 564990737 1670794716
5461
5462 \lang american
5463 The A&A paper layout supports the following environments for structuring
5464  your text:
5465 \end_layout
5466
5467 \begin_layout Itemize
5468
5469 \change_inserted 564990737 1670794716
5470
5471 \family sans
5472 \lang american
5473 Standard
5474 \end_layout
5475
5476 \begin_layout Itemize
5477
5478 \change_inserted 564990737 1670794716
5479
5480 \family sans
5481 \lang american
5482 Section
5483 \end_layout
5484
5485 \begin_layout Itemize
5486
5487 \change_inserted 564990737 1670794716
5488
5489 \family sans
5490 \lang american
5491 Subsection
5492 \end_layout
5493
5494 \begin_layout Itemize
5495
5496 \change_inserted 564990737 1670794716
5497
5498 \family sans
5499 \lang american
5500 Subsubsection
5501 \end_layout
5502
5503 \begin_layout Itemize
5504
5505 \change_inserted 564990737 1670794716
5506
5507 \family sans
5508 \lang american
5509 Itemize
5510 \end_layout
5511
5512 \begin_layout Itemize
5513
5514 \change_inserted 564990737 1670794716
5515
5516 \family sans
5517 \lang american
5518 Enumerate
5519 \end_layout
5520
5521 \begin_layout Itemize
5522
5523 \change_inserted 564990737 1670794716
5524
5525 \family sans
5526 \lang american
5527 Description
5528 \end_layout
5529
5530 \begin_layout Itemize
5531
5532 \change_inserted 564990737 1670794716
5533
5534 \family sans
5535 \lang american
5536 Caption
5537 \end_layout
5538
5539 \begin_layout Itemize
5540
5541 \change_inserted 564990737 1670794716
5542
5543 \family sans
5544 \lang american
5545 Abstract
5546 \end_layout
5547
5548 \begin_layout Itemize
5549
5550 \change_inserted 564990737 1670794716
5551
5552 \family sans
5553 \lang american
5554 Acknowledgment
5555 \end_layout
5556
5557 \begin_layout Itemize
5558
5559 \change_inserted 564990737 1670794716
5560
5561 \family sans
5562 \lang american
5563 Bibliography
5564 \end_layout
5565
5566 \begin_layout Itemize
5567
5568 \change_inserted 564990737 1670794716
5569
5570 \family sans
5571 \lang american
5572 \SpecialChar LaTeX
5573
5574 \end_layout
5575
5576 \begin_layout Subsubsection
5577
5578 \change_inserted 564990737 1670794716
5579
5580 \lang american
5581 Commands not supported by \SpecialChar LyX
5582
5583 \end_layout
5584
5585 \begin_layout Standard
5586
5587 \change_inserted 564990737 1670794716
5588
5589 \lang american
5590 Some commands are not yet supported by the 
5591 \family sans
5592 paper (A&A)
5593 \family default
5594  layout for \SpecialChar LyX
5595 .
5596  Some have already been mentioned.
5597  For the sake of completeness, they are listed all together here:
5598 \end_layout
5599
5600 \begin_layout Itemize
5601
5602 \change_inserted 564990737 1670794716
5603
5604 \family typewriter
5605 \lang american
5606
5607 \backslash
5608 and
5609 \end_layout
5610
5611 \begin_layout Itemize
5612
5613 \change_inserted 564990737 1670794716
5614
5615 \family typewriter
5616 \lang american
5617
5618 \backslash
5619 email
5620 \end_layout
5621
5622 \begin_layout Itemize
5623
5624 \change_inserted 564990737 1670794716
5625
5626 \family typewriter
5627 \lang american
5628
5629 \backslash
5630 inst{}
5631 \end_layout
5632
5633 \begin_layout Itemize
5634
5635 \change_inserted 564990737 1670794716
5636
5637 \family typewriter
5638 \lang american
5639
5640 \backslash
5641 keywords{}
5642 \end_layout
5643
5644 \begin_layout Itemize
5645
5646 \change_inserted 564990737 1670794716
5647
5648 \family typewriter
5649 \lang american
5650
5651 \backslash
5652 object{}
5653 \end_layout
5654
5655 \begin_layout Standard
5656
5657 \change_inserted 564990737 1670794716
5658
5659 \lang american
5660 If you want to use any of these commands, you have to enter them yourself.
5661  
5662 \family typewriter
5663 Do not forget to use
5664 \family sans
5665  
5666 \bar under
5667 I
5668 \bar default
5669 nsert\SpecialChar menuseparator
5670 \SpecialChar TeX
5671
5672 \begin_inset space ~
5673 \end_inset
5674
5675 Code
5676 \family default
5677 \series bold
5678 !
5679 \end_layout
5680
5681 \begin_layout Subsubsection
5682
5683 \change_inserted 564990737 1670794716
5684
5685 \lang american
5686 Figure and Table Floats
5687 \end_layout
5688
5689 \begin_layout Standard
5690
5691 \change_inserted 564990737 1670794716
5692
5693 \lang american
5694 \SpecialChar LyX
5695  provides support for the necessary float environments 
5696 \family sans
5697 figure, figure*, table
5698 \family default
5699  and 
5700 \family sans
5701 table*
5702 \family default
5703 , therefore we won't tell much about it here.
5704  Refer to the 
5705 \emph on
5706 User's
5707 \begin_inset space ~
5708 \end_inset
5709
5710 Guide
5711 \emph default
5712 .
5713  Just remember that tables should be left-aligned.
5714  For that, select the table and change the alignment in 
5715 \family sans
5716 \bar under
5717 E
5718 \bar default
5719 dit\SpecialChar menuseparator
5720
5721 \bar under
5722 P
5723 \bar default
5724 aragraph
5725 \begin_inset space ~
5726 \end_inset
5727
5728 Settings.
5729 \end_layout
5730
5731 \begin_layout Standard
5732
5733 \change_inserted 564990737 1670794716
5734
5735 \lang american
5736 There is only one special thing: the figures with a caption beside the figure.
5737  To create such a figure, you have to do the following:
5738 \end_layout
5739
5740 \begin_layout Enumerate
5741
5742 \change_inserted 564990737 1670794716
5743
5744 \lang american
5745 Create a wide figure float: 
5746 \family sans
5747 \bar under
5748 I
5749 \bar default
5750 nsert\SpecialChar menuseparator
5751 Flo
5752 \bar under
5753 a
5754 \bar default
5755 t\SpecialChar menuseparator
5756 Figure
5757 \family default
5758 , then, from within the float, use the menu 
5759 \family sans
5760 \bar under
5761 E
5762 \bar default
5763 dit\SpecialChar menuseparator
5764 Flo
5765 \bar under
5766 a
5767 \bar default
5768 t
5769 \begin_inset space ~
5770 \end_inset
5771
5772 Settings
5773 \family default
5774  and check 
5775 \family sans
5776 \bar under
5777 S
5778 \bar default
5779 pan
5780 \begin_inset space ~
5781 \end_inset
5782
5783 columns
5784 \family default
5785  in the 
5786 \family sans
5787 float
5788 \family default
5789  dialog.
5790 \end_layout
5791
5792 \begin_layout Enumerate
5793
5794 \change_inserted 564990737 1670794716
5795
5796 \lang american
5797 Enter your caption text.
5798 \end_layout
5799
5800 \begin_layout Enumerate
5801
5802 \change_inserted 564990737 1670794716
5803
5804 \lang american
5805 Press 
5806 \family sans
5807 Return
5808 \family default
5809  to move the cursor above the caption.
5810 \end_layout
5811
5812 \begin_layout Enumerate
5813
5814 \change_inserted 564990737 1670794716
5815
5816 \lang american
5817 Insert your figure
5818 \end_layout
5819
5820 \begin_layout Enumerate
5821
5822 \change_inserted 564990737 1670794716
5823
5824 \lang american
5825 Position the cursor after the figure and insert a horizontal fill by using
5826  the menu: 
5827 \family sans
5828 \bar under
5829 I
5830 \bar default
5831 nsert\SpecialChar menuseparator
5832 F
5833 \bar under
5834 o
5835 \bar default
5836 rmatting\SpecialChar menuseparator
5837 H
5838 \bar under
5839 o
5840 \bar default
5841 rizontal
5842 \begin_inset space ~
5843 \end_inset
5844
5845 Space
5846 \family default
5847  to open the 
5848 \family sans
5849 space
5850 \family default
5851  dialog and select the 
5852 \family sans
5853 Horizontal fill
5854 \family default
5855  option from the 
5856 \family sans
5857 \bar under
5858 S
5859 \bar default
5860 pacing
5861 \family default
5862  pull-down menu.
5863 \end_layout
5864
5865 \begin_layout Enumerate
5866
5867 \change_inserted 564990737 1670794716
5868
5869 \lang american
5870 Switch to \SpecialChar LaTeX
5871  mode: 
5872 \family sans
5873 M-c
5874 \begin_inset space ~
5875 \end_inset
5876
5877 t
5878 \family default
5879 .
5880 \end_layout
5881
5882 \begin_layout Enumerate
5883
5884 \change_inserted 564990737 1670794716
5885
5886 \lang american
5887 Enter 
5888 \family typewriter
5889
5890 \backslash
5891 parbox[b]{55mm}{
5892 \family default
5893  
5894 \emph on
5895 Do not close the brace!
5896 \end_layout
5897
5898 \begin_layout Enumerate
5899
5900 \change_inserted 564990737 1670794716
5901
5902 \lang american
5903 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5904  mode and insert
5905  the closing brace: 
5906 \family sans
5907 M-c
5908 \begin_inset space ~
5909 \end_inset
5910
5911 t
5912 \family default
5913  
5914 \family typewriter
5915 }
5916 \family default
5917 .
5918 \end_layout
5919
5920 \begin_layout Standard
5921
5922 \change_inserted 564990737 1670794716
5923
5924 \lang american
5925 Also, refer to the figures in the file 
5926 \emph on
5927 aa_sample.lyx
5928 \emph default
5929  in the 
5930 \family sans
5931 Examples
5932 \family default
5933  directory.
5934 \end_layout
5935
5936 \begin_layout Subsubsection
5937
5938 \change_inserted 564990737 1670794716
5939
5940 \lang american
5941 Referee layout
5942 \end_layout
5943
5944 \begin_layout Standard
5945
5946 \change_inserted 564990737 1670794716
5947
5948 \lang american
5949 For submission, the paper has to be formatted in a special double-spacing
5950  layout.
5951  For this purpose, you have to add the option 
5952 \family typewriter
5953 referee
5954 \family default
5955  to the 
5956 \family sans
5957 Cus
5958 \bar under
5959 t
5960 \bar default
5961 om Class
5962 \begin_inset space ~
5963 \end_inset
5964
5965 options
5966 \family default
5967  in the 
5968 \family sans
5969 \bar under
5970 D
5971 \bar default
5972 ocument\SpecialChar menuseparator
5973
5974 \bar under
5975 S
5976 \bar default
5977 ettings\SpecialChar menuseparator
5978 Document
5979 \begin_inset space ~
5980 \end_inset
5981
5982 Class
5983 \family default
5984  dialog.
5985  
5986 \end_layout
5987
5988 \begin_layout Subsubsection
5989
5990 \change_inserted 564990737 1670794716
5991
5992 \lang american
5993 The example paper
5994 \end_layout
5995
5996 \begin_layout Standard
5997
5998 \change_inserted 564990737 1670794716
5999
6000 \lang american
6001 The example paper 
6002 \emph on
6003 aa_sample.lyx
6004 \emph default
6005  was written with \SpecialChar LyX
6006 .
6007  It is the example paper from the original macro package, 
6008 \family typewriter
6009 aa.dem
6010 \family default
6011  in the 
6012 \begin_inset CommandInset href
6013 LatexCommand href
6014 name "aa-package"
6015 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6016 literal "false"
6017
6018 \end_inset
6019
6020 , but translated to \SpecialChar LyX
6021  using the older unstructured abstract type.
6022  Use it for inspiration, and compare the \SpecialChar LaTeX
6023  code in 
6024 \family typewriter
6025 aa.dem
6026 \family default
6027  with the \SpecialChar LyX
6028  way of writing.
6029 \end_layout
6030
6031 \begin_layout Subsection
6032 AAS\SpecialChar TeX
6033
6034 \end_layout
6035
6036 \begin_layout Standard
6037 by 
6038 \noun on
6039 Mike Ressler
6040 \end_layout
6041
6042 \begin_layout Subsubsection
6043 Introduction
6044 \end_layout
6045
6046 \begin_layout Standard
6047 AAS\SpecialChar TeX
6048  is a set of macros produced by the American Astronomical Society to
6049  facilitate electronic manuscript submission to the three journals they
6050  publish: the Astrophysical Journal (including the Letters and Supplement),
6051  the Astronomical Journal, and the Publications of the Astronomical Society
6052  of the Pacific.
6053  \SpecialChar LyX
6054  has proven to be an excellent tool for generating these documents, especially
6055  given its equation, citation, and figure handling capabilities.
6056  \SpecialChar LyX
6057  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6058  is the version described here, or higher.
6059  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6060 2.09 and are fundamentally
6061  incompatible with \SpecialChar LyX
6062 .
6063  The AAS\SpecialChar TeX
6064  package may be downloaded from the AAS\SpecialChar TeX
6065  Web site
6066 \end_layout
6067
6068 \begin_layout Standard
6069 \begin_inset VSpace medskip
6070 \end_inset
6071
6072
6073 \end_layout
6074
6075 \begin_layout Standard
6076 \align center
6077 \begin_inset Flex URL
6078 status collapsed
6079
6080 \begin_layout Plain Layout
6081
6082 https://aas.org/aastex/aastex-downloads
6083 \end_layout
6084
6085 \end_inset
6086
6087
6088 \end_layout
6089
6090 \begin_layout Standard
6091 \begin_inset VSpace medskip
6092 \end_inset
6093
6094
6095 \end_layout
6096
6097 \begin_layout Standard
6098 A complete user guide is contained in that package and you should familiarize
6099  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6100 .
6101  \SpecialChar LyX
6102  will not reduce the need to figure out all the AAS\SpecialChar TeX
6103  commands, it will only
6104  reduce the drudgery of typing everything in.
6105  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6106  document conforms
6107  completely to the requirements of the journal to which you are submitting
6108  your paper.
6109 \end_layout
6110
6111 \begin_layout Subsubsection
6112 Starting a New Paper
6113 \end_layout
6114
6115 \begin_layout Standard
6116 I strongly suggest that you start with the AAS\SpecialChar TeX
6117  template file.
6118  Click on 
6119 \family sans
6120 File\SpecialChar menuseparator
6121 New from
6122 \family default
6123  
6124 \family sans
6125 Template
6126 \family default
6127 , enter the new file name, then choose the 
6128 \family typewriter
6129 aastex6.lyx
6130 \family default
6131  template.
6132  This will show the most common fields found in a manuscript.
6133  Simply overwrite the existing text (including the brackets, 
6134 \family typewriter
6135 <>
6136 \family default
6137 ) with the correct information.
6138  Many of the AAS\SpecialChar TeX
6139  commands and environments can be implemented directly in
6140  \SpecialChar LyX
6141 , but some cannot.
6142  For commands such as these, the \SpecialChar LaTeX
6143  code must be entered directly and marked
6144  as such.
6145  Such commands are referred to as \SpecialChar TeX
6146  code, or Evil Red Text.
6147  I tried to minimize the amount of \SpecialChar TeX
6148  code needed in an AAS\SpecialChar TeX
6149  document.
6150 \end_layout
6151
6152 \begin_layout Subsubsection
6153 Finishing Your Paper
6154 \end_layout
6155
6156 \begin_layout Standard
6157 When the paper is finished to your satisfaction and previews/prints correctly,
6158  there are a few 
6159 \begin_inset Quotes eld
6160 \end_inset
6161
6162 postprocessing
6163 \begin_inset Quotes erd
6164 \end_inset
6165
6166  actions which need to be done before you submit it to the journals.
6167  
6168 \end_layout
6169
6170 \begin_layout Enumerate
6171 Export your paper as a \SpecialChar LaTeX
6172  file (
6173 \family sans
6174 File\SpecialChar menuseparator
6175 Export\SpecialChar menuseparator
6176 \SpecialChar LaTeX
6177
6178 \family default
6179 ).
6180  
6181 \end_layout
6182
6183 \begin_layout Enumerate
6184 Edit the resulting 
6185 \family typewriter
6186 .tex
6187 \family default
6188  file with your favorite text editor
6189 \end_layout
6190
6191 \begin_deeper
6192 \begin_layout Enumerate
6193 remove the comment lines before the 
6194 \family typewriter
6195
6196 \backslash
6197 documentclass
6198 \family default
6199  command
6200 \end_layout
6201
6202 \begin_layout Enumerate
6203 remove the 
6204 \family typewriter
6205
6206 \backslash
6207 usepackage...{fontenc}
6208 \family default
6209  line if it appears (usually just after 
6210 \family typewriter
6211
6212 \backslash
6213 documentclass
6214 \family default
6215 }; also remove the 
6216 \family typewriter
6217
6218 \backslash
6219 secnumdepth
6220 \family default
6221  line if it appears.
6222 \end_layout
6223
6224 \begin_layout Enumerate
6225 remove everything between (and including) the 
6226 \family typewriter
6227
6228 \backslash
6229 makeatletter
6230 \family default
6231  and 
6232 \family typewriter
6233
6234 \backslash
6235 makeatother
6236 \family default
6237  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6238  preamble
6239  (which should appear immediately after the 
6240 \begin_inset Quotes eld
6241 \end_inset
6242
6243 User specified \SpecialChar LaTeX
6244  commands
6245 \begin_inset Quotes erd
6246 \end_inset
6247
6248  comment in the 
6249 \family typewriter
6250 .tex
6251 \family default
6252  file).
6253 \end_layout
6254
6255 \end_deeper
6256 \begin_layout Enumerate
6257 Run the resulting file through \SpecialChar LaTeX
6258  to make sure it still processes correctly.
6259 \end_layout
6260
6261 \begin_layout Enumerate
6262 Reread the journal requirements to make sure your filenames and formats
6263  are correct.
6264 \end_layout
6265
6266 \begin_layout Enumerate
6267 Submit it.
6268 \end_layout
6269
6270 \begin_layout Subsubsection
6271 Comments On Specific Commands
6272 \end_layout
6273
6274 \begin_layout Standard
6275 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6276  commands: the
6277  AAS\SpecialChar TeX
6278  User Guide (
6279 \family typewriter
6280 aasguide.tex
6281 \family default
6282 ) gives a good description of each.
6283  Thus it's probably easiest for me to go down the list as found in the guide
6284  and offer comments where necessary.
6285  So let's begin \SpecialChar ldots
6286
6287 \end_layout
6288
6289 \begin_layout Paragraph
6290 Things that work as expected
6291 \end_layout
6292
6293 \begin_layout Standard
6294 Because they work as you might expect, I simply list them and the section
6295  they are found in: 
6296 \family typewriter
6297
6298 \backslash
6299 documentclass
6300 \family default
6301  (2.1.1), 
6302 \family typewriter
6303
6304 \backslash
6305 begin{document}
6306 \family default
6307  (2.2), 
6308 \family typewriter
6309
6310 \backslash
6311 title
6312 \family default
6313  (2.3), 
6314 \family typewriter
6315
6316 \backslash
6317 author
6318 \family default
6319  (2.3), 
6320 \family typewriter
6321
6322 \backslash
6323 affil
6324 \family default
6325  (2.3), 
6326 \family typewriter
6327
6328 \backslash
6329 abstract
6330 \family default
6331  (2.4), 
6332 \family typewriter
6333
6334 \backslash
6335 keywords
6336 \family default
6337  (2.5), 
6338 \family typewriter
6339
6340 \backslash
6341 section
6342 \family default
6343  (2.7), 
6344 \family typewriter
6345
6346 \backslash
6347 subsection
6348 \family default
6349  (2.7), 
6350 \family typewriter
6351
6352 \backslash
6353 subsubsection
6354 \family default
6355  (2.7), 
6356 \family typewriter
6357
6358 \backslash
6359 paragraph
6360 \family default
6361  (2.7), 
6362 \family typewriter
6363
6364 \backslash
6365 facility
6366 \family default
6367  (2.10), 
6368 \family typewriter
6369
6370 \backslash
6371 begin{displaymath}
6372 \family default
6373  (2.12), 
6374 \family typewriter
6375
6376 \backslash
6377 begin{equation}
6378 \family default
6379  (2.12), 
6380 \family typewriter
6381
6382 \backslash
6383 begin{eqnarray}
6384 \family default
6385  (2.12), 
6386 \family typewriter
6387
6388 \backslash
6389 begin{mathletters}
6390 \family default
6391  (2.12), 
6392 \family typewriter
6393
6394 \backslash
6395 begin{thebibliography}
6396 \family default
6397  (2.13.1), 
6398 \family typewriter
6399
6400 \backslash
6401 bibitem
6402 \family default
6403  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6404  graphicx figure commands (2.14.1), 
6405 \family typewriter
6406
6407 \backslash
6408 begin{table}
6409 \family default
6410  (2.15.4), 
6411 \family typewriter
6412
6413 \backslash
6414 begin{tabular}
6415 \family default
6416  (2.15.4), 
6417 \family typewriter
6418
6419 \backslash
6420 caption
6421 \family default
6422  (2.15.4), 
6423 \family typewriter
6424
6425 \backslash
6426 label
6427 \family default
6428  (2.15.4, amongst other places), 
6429 \family typewriter
6430
6431 \backslash
6432 tablerefs
6433 \family default
6434  (2.15.5), 
6435 \family typewriter
6436
6437 \backslash
6438 tablecomments
6439 \family default
6440  (2.15.5), 
6441 \family typewriter
6442
6443 \backslash
6444 url
6445 \family default
6446  (2.17.4), 
6447 \family typewriter
6448
6449 \backslash
6450 end{document}
6451 \family default
6452  (2.18).
6453 \end_layout
6454
6455 \begin_layout Standard
6456 The following style options also work correctly: 
6457 \family typewriter
6458 longabstract
6459 \family default
6460  (2.4), 
6461 \family typewriter
6462 preprint
6463 \family default
6464  (3.2.1), 
6465 \family typewriter
6466 preprint2
6467 \family default
6468  (3.2.2), 
6469 \family typewriter
6470 eqsecnum
6471 \family default
6472  (3.3), 
6473 \family typewriter
6474 flushrt
6475 \family default
6476  (3.4).
6477  Simply put them in the 
6478 \family sans
6479 Options
6480 \family default
6481  box in 
6482 \family sans
6483 Layout\SpecialChar menuseparator
6484 Document
6485 \family default
6486 .
6487 \end_layout
6488
6489 \begin_layout Paragraph
6490 Things that work, but require more comment
6491 \end_layout
6492
6493 \begin_layout Standard
6494 The following items work, but require a little more discussion:
6495 \end_layout
6496
6497 \begin_layout Itemize
6498 These items are reserved for use by the journal editors, but you can put
6499  them into the \SpecialChar LaTeX
6500  preamble if you feel compelled to do so: 
6501 \family typewriter
6502
6503 \backslash
6504 received
6505 \family default
6506
6507 \family typewriter
6508
6509 \backslash
6510 revised
6511 \family default
6512
6513 \family typewriter
6514
6515 \backslash
6516 accepted
6517 \family default
6518
6519 \family typewriter
6520
6521 \backslash
6522 ccc
6523 \family default
6524
6525 \family typewriter
6526
6527 \backslash
6528 cpright
6529 \family default
6530  (all from 2.1.3)
6531 \end_layout
6532
6533 \begin_layout Itemize
6534 These items may be placed in the \SpecialChar LaTeX
6535  preamble, and are included as blanks in
6536  the template file: 
6537 \family typewriter
6538
6539 \backslash
6540 slugcomment
6541 \family default
6542  (2.1.4), 
6543 \family typewriter
6544
6545 \backslash
6546 shorttitle
6547 \family default
6548  (2.1.5), 
6549 \family typewriter
6550
6551 \backslash
6552 shortauthors
6553 \family default
6554  (2.1.5)
6555 \end_layout
6556
6557 \begin_layout Itemize
6558
6559 \family typewriter
6560
6561 \backslash
6562 email
6563 \family default
6564  (2.3) – can only be used 
6565 \begin_inset Quotes eld
6566 \end_inset
6567
6568 standalone
6569 \begin_inset Quotes erd
6570 \end_inset
6571
6572 , not in the middle of a paragraph.
6573  Use \SpecialChar TeX
6574  code if you need to embed it.
6575 \end_layout
6576
6577 \begin_layout Itemize
6578
6579 \family typewriter
6580
6581 \backslash
6582 and
6583 \family default
6584  (2.3) – will have extra {} after it.
6585  This should not cause an error.
6586 \end_layout
6587
6588 \begin_layout Itemize
6589
6590 \family typewriter
6591
6592 \backslash
6593 notetoeditor
6594 \family default
6595  (2.6) – can only be used 
6596 \begin_inset Quotes eld
6597 \end_inset
6598
6599 standalone
6600 \begin_inset Quotes erd
6601 \end_inset
6602
6603 , not in the middle of a paragraph.
6604  Use \SpecialChar TeX
6605  code if you need to embed it.
6606 \end_layout
6607
6608 \begin_layout Itemize
6609
6610 \family typewriter
6611
6612 \backslash
6613 placetable
6614 \family default
6615  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6616  hand
6617 \end_layout
6618
6619 \begin_layout Itemize
6620
6621 \family typewriter
6622
6623 \backslash
6624 placefigure
6625 \family default
6626  (2.8) – same as for 
6627 \family typewriter
6628
6629 \backslash
6630 placetable
6631 \end_layout
6632
6633 \begin_layout Itemize
6634
6635 \family typewriter
6636
6637 \backslash
6638 acknowledgements
6639 \family default
6640  (2.9) – will have extra {} after it.
6641  This should not cause an error.
6642 \end_layout
6643
6644 \begin_layout Itemize
6645
6646 \family typewriter
6647
6648 \backslash
6649 appendix
6650 \family default
6651  (2.11) – will have extra {} after it.
6652  This should not cause an error.
6653 \end_layout
6654
6655 \begin_layout Itemize
6656
6657 \family typewriter
6658
6659 \backslash
6660 figcaption
6661 \family default
6662  (2.14.2) – you can insert an optional filename argument by placing the cursor
6663  at the beginning of the text and selecting 
6664 \family sans
6665 Insert\SpecialChar menuseparator
6666 Short Title
6667 \family default
6668 .
6669  
6670 \begin_inset Quotes eld
6671 \end_inset
6672
6673 Short Title
6674 \begin_inset Quotes erd
6675 \end_inset
6676
6677  inserts an optional argument of the type needed by 
6678 \family typewriter
6679
6680 \backslash
6681 figcaption
6682 \family default
6683 .
6684  Hopefully it will be renamed someday.
6685 \end_layout
6686
6687 \begin_layout Itemize
6688
6689 \family typewriter
6690
6691 \backslash
6692 objectname
6693 \family default
6694  (2.17.1) – same as 
6695 \family typewriter
6696
6697 \backslash
6698 figcaption
6699 \family default
6700  for the catalog ID optional parameter
6701 \end_layout
6702
6703 \begin_layout Itemize
6704
6705 \family typewriter
6706
6707 \backslash
6708 dataset
6709 \family default
6710  (2.17.1) – same as 
6711 \family typewriter
6712
6713 \backslash
6714 figcaption
6715 \family default
6716  for the catalog ID optional parameter
6717 \end_layout
6718
6719 \begin_layout Paragraph
6720 Things not implemented, use \SpecialChar TeX
6721  code
6722 \end_layout
6723
6724 \begin_layout Standard
6725
6726 \family typewriter
6727
6728 \backslash
6729 eqnum
6730 \family default
6731  (2.12), 
6732 \family typewriter
6733
6734 \backslash
6735 setcounter{equation}
6736 \family default
6737  (2.12), Journal name abbreviations (2.13.4), 
6738 \family typewriter
6739
6740 \backslash
6741 figurenum
6742 \family default
6743  (2.14.1), 
6744 \family typewriter
6745
6746 \backslash
6747 epsscale
6748 \family default
6749  (2.14.1), 
6750 \family typewriter
6751
6752 \backslash
6753 plotone
6754 \family default
6755  (2.14.1), 
6756 \family typewriter
6757
6758 \backslash
6759 plottwo
6760 \family default
6761  (2.14.1), 
6762 \family typewriter
6763
6764 \backslash
6765 tablenum
6766 \family default
6767  (2.15.4), 
6768 \family typewriter
6769
6770 \backslash
6771 tableline
6772 \family default
6773  (2.15.4, insert it as the first element in the lefthand cell after where
6774  you want it.
6775  Don't use any of \SpecialChar LyX
6776 's rules in the table), 
6777 \family typewriter
6778
6779 \backslash
6780 tablenotemark
6781 \family default
6782  (2.15.5), 
6783 \family typewriter
6784
6785 \backslash
6786 tablenotetext
6787 \family default
6788  (2.15.5), much of Misc (2.17, except 
6789 \family typewriter
6790
6791 \backslash
6792 objectname
6793 \family default
6794
6795 \family typewriter
6796
6797 \backslash
6798 dataset
6799 \family default
6800
6801 \family typewriter
6802
6803 \backslash
6804 url
6805 \family default
6806 , and 
6807 \family typewriter
6808
6809 \backslash
6810 email
6811 \family default
6812 ; see above), 
6813 \family typewriter
6814
6815 \backslash
6816 singlespace
6817 \family default
6818  (3.1), 
6819 \family typewriter
6820
6821 \backslash
6822 doublespace
6823 \family default
6824  (3.1), 
6825 \family typewriter
6826
6827 \backslash
6828 onecolumn
6829 \family default
6830  (3.2), 
6831 \family typewriter
6832
6833 \backslash
6834 twocolumn
6835 \family default
6836  (3.2)
6837 \end_layout
6838
6839 \begin_layout Paragraph
6840 Things that cannot be implemented
6841 \end_layout
6842
6843 \begin_layout Standard
6844 \SpecialChar ldots
6845  at least in any meaningful sort of way, so I suggest ignoring them.
6846  They are the references environment (2.13.3), and the deluxetable environment
6847  (2.15).
6848  If you really, really need to use deluxetable, I suggest editing it in
6849  a separate file with a text editor, then using 
6850 \family sans
6851 Insert\SpecialChar menuseparator
6852 Child
6853 \begin_inset space ~
6854 \end_inset
6855
6856 Document
6857 \family default
6858  to include it in your \SpecialChar LyX
6859  document.
6860  See the 
6861 \family typewriter
6862 aas_sample.lyx
6863 \family default
6864  file to see an example of this.
6865 \end_layout
6866
6867 \begin_layout Subsubsection
6868 FAQs, Tips, Tricks, and Other Ruminations
6869 \end_layout
6870
6871 \begin_layout Paragraph
6872 Getting \SpecialChar LyX
6873  and AAS\SpecialChar TeX
6874  to cooperate
6875 \end_layout
6876
6877 \begin_layout Standard
6878 It can be a bit tricky to get \SpecialChar LyX
6879  to recognize a new layout and document class.
6880  When all else fails, do this:
6881 \end_layout
6882
6883 \begin_layout Enumerate
6884 Make certain that \SpecialChar LaTeX
6885  can find AAS\SpecialChar TeX
6886 .
6887  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6888  distribution into a
6889  directory completely unrelated to \SpecialChar LaTeX
6890  or AAS\SpecialChar TeX
6891  and run \SpecialChar LaTeX
6892  on 
6893 \family typewriter
6894 sample.tex
6895 \family default
6896 .
6897 \end_layout
6898
6899 \begin_layout Enumerate
6900 Make certain that 
6901 \family typewriter
6902 aastex.layout
6903 \family default
6904  appears in \SpecialChar LyX
6905 's 
6906 \family typewriter
6907 layouts
6908 \family default
6909  folder
6910 \end_layout
6911
6912 \begin_layout Enumerate
6913 Rerun 
6914 \family sans
6915 Tools\SpecialChar menuseparator
6916 Reconfigure
6917 \family default
6918  in \SpecialChar LyX
6919 , then restart \SpecialChar LyX
6920 .
6921 \end_layout
6922
6923 \begin_layout Enumerate
6924 Open a regular new file, not from a template.
6925  Does AAS\SpecialChar TeX
6926  appear in the class list in 
6927 \family sans
6928 Document\SpecialChar menuseparator
6929 Settings
6930 \family default
6931 ?
6932 \end_layout
6933
6934 \begin_layout Standard
6935 If you get a warning from an existing AAS\SpecialChar TeX
6936  document about not being able
6937  to find the AAS\SpecialChar TeX
6938  layout or a message about 
6939 \begin_inset Quotes eld
6940 \end_inset
6941
6942 You should not mix title layouts with normal ones
6943 \begin_inset Quotes erd
6944 \end_inset
6945
6946 , things haven't been installed correctly.
6947 \end_layout
6948
6949 \begin_layout Paragraph
6950 \SpecialChar LaTeX
6951  error processing a table 
6952 \end_layout
6953
6954 \begin_layout Standard
6955 \SpecialChar LyX
6956 , by default, attempts to center the table caption/title.
6957  This seems to produce a bad interaction in AAS\SpecialChar TeX
6958  so you should click somewhere
6959  in the caption/title, then select 
6960 \family sans
6961 Edit\SpecialChar menuseparator
6962 Paragraph
6963 \begin_inset space ~
6964 \end_inset
6965
6966 Settings
6967 \family default
6968 , then set the 
6969 \family sans
6970 Alignment
6971 \family default
6972  to 
6973 \family sans
6974 Block
6975 \family default
6976 .
6977  This took care of it for me.
6978 \end_layout
6979
6980 \begin_layout Paragraph
6981 References
6982 \end_layout
6983
6984 \begin_layout Standard
6985 A couple of things: 1) I have noticed some funny spacing in the reference
6986  entries in the text.
6987  When you enter the bibliography item data, make sure their is 
6988 \emph on
6989 no
6990 \emph default
6991  space between the last author and the parenthesis setting off the year;
6992  
6993 \emph on
6994 e.
6995 \begin_inset space \thinspace{}
6996 \end_inset
6997
6998 g.
6999 \begin_inset space \space{}
7000 \end_inset
7001
7002
7003 \emph default
7004 type 
7005 \family typewriter
7006 Ressler(1992)
7007 \family default
7008 , not 
7009 \family typewriter
7010 Ressler (1992)
7011 \family default
7012 .
7013  2) Entering the references at all is not obvious.
7014  The easiest thing is to start typing your first reference at the end of
7015  the document, then mark it as type 
7016 \family sans
7017 References
7018 \family default
7019 .
7020  That will put a small gray box in front of what you just typed.
7021  Click on the box to fill in the rest of the information.
7022  For new references, go to the end of an existing reference and press return.
7023  That will create a new line with its own box, etc.
7024 \end_layout
7025
7026 \begin_layout Paragraph
7027 Including EPS files
7028 \end_layout
7029
7030 \begin_layout Standard
7031 Even though AAS\SpecialChar TeX
7032  provides its own figure commands (
7033 \family typewriter
7034
7035 \backslash
7036 plotone
7037 \family default
7038 , for example), I much prefer \SpecialChar LaTeX
7039 's standard figure commands (with the default
7040  graphicx).
7041  You can insert the 
7042 \family typewriter
7043
7044 \backslash
7045 plotone
7046 \family default
7047 , etc.
7048 \begin_inset space ~
7049 \end_inset
7050
7051 commands as \SpecialChar TeX
7052  code into a Figure Float box if you desire, but I never have
7053  much luck getting the layout right.
7054  With the standard graphics, \SpecialChar LyX
7055  will insert a 
7056 \family typewriter
7057
7058 \backslash
7059 usepackage{graphicx}
7060 \family default
7061  command into the \SpecialChar LaTeX
7062  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7063  way,
7064  interspersing the figures in the text.
7065  I believe ApJ accepts figures exactly this way now; AJ might still use
7066  the 
7067 \begin_inset Quotes eld
7068 \end_inset
7069
7070 stack everything at the end
7071 \begin_inset Quotes erd
7072 \end_inset
7073
7074  technique.
7075 \end_layout
7076
7077 \begin_layout Paragraph
7078 Things I could have done, but didn't
7079 \end_layout
7080
7081 \begin_layout Standard
7082 There are a few 
7083 \begin_inset Quotes eld
7084 \end_inset
7085
7086 pretty
7087 \begin_inset Quotes erd
7088 \end_inset
7089
7090  things I could have implemented, but chose not to.
7091  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7092  window,
7093  even though it is double-spaced in the paper manuscript.
7094  Also, I chose not to make separate layouts for the preprint and preprint2
7095  styles.
7096  Since I assume you will spend most of your time in the plain manuscript
7097  mode anyway, I decided not to chew up more disk space with this.
7098  
7099 \end_layout
7100
7101 \begin_layout Subsubsection
7102 Final Caveat
7103 \end_layout
7104
7105 \begin_layout Standard
7106 Your mileage may vary.
7107  I've now had papers published by both ApJ and AJ that have had 98% of the
7108  effort done in \SpecialChar LyX
7109 ; the last 2% was the \SpecialChar LaTeX
7110  post-processing and a few cleanups.
7111  I have had no trouble with the submission process, and I'm sure the journals
7112  were never aware that there might be a difference.
7113  So, go forth and publish!
7114 \end_layout
7115
7116 \begin_layout Subsection
7117
7118 \change_inserted 564990737 1671042028
7119
7120 \lang american
7121 Elsevier
7122 \end_layout
7123
7124 \begin_layout Standard
7125
7126 \change_inserted 564990737 1671042028
7127
7128 \lang american
7129 The document class 
7130 \family sans
7131 article
7132 \begin_inset space \thinspace{}
7133 \end_inset
7134
7135 (Elsevier)
7136 \family default
7137  provides the 
7138 \family typewriter
7139 elsarticle.cls
7140 \family default
7141  document class.
7142  This provides the following additional environments: 
7143 \family sans
7144 Title
7145 \begin_inset space ~
7146 \end_inset
7147
7148 footnote
7149 \family default
7150
7151 \family sans
7152 Author
7153 \begin_inset space ~
7154 \end_inset
7155
7156 footnote
7157 \family default
7158
7159 \family sans
7160 Corresponding
7161 \begin_inset space ~
7162 \end_inset
7163
7164 author
7165 \family default
7166
7167 \family sans
7168 Address
7169 \family default
7170
7171 \family sans
7172 Email
7173 \family default
7174  and 
7175 \family sans
7176 Keywords
7177 \family default
7178 .
7179  A template 
7180 \family typewriter
7181 elsarticle.lyx
7182 \family default
7183 .
7184  is available in the menu 
7185 \family sans
7186 \bar under
7187 F
7188 \bar default
7189 ile\SpecialChar menuseparator
7190 New
7191 \begin_inset space ~
7192 \end_inset
7193
7194 fro
7195 \bar under
7196 m
7197 \bar default
7198
7199 \begin_inset space ~
7200 \end_inset
7201
7202 Template
7203 \family default
7204 .
7205  It has been customized with further environments and contains all the informati
7206 on you may need.
7207  However, the documentation is also available from 
7208 \begin_inset CommandInset href
7209 LatexCommand href
7210 name "CTAN"
7211 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7212 literal "false"
7213
7214 \end_inset
7215
7216 .
7217 \end_layout
7218
7219 \begin_layout Subsection
7220
7221 \change_inserted 564990737 1671042046
7222
7223 \lang american
7224 Paper
7225 \end_layout
7226
7227 \begin_layout Standard
7228
7229 \change_inserted 564990737 1671042046
7230
7231 \lang american
7232 The document class 
7233 \family sans
7234 article
7235 \begin_inset space \thinspace{}
7236 \end_inset
7237
7238 (paper)
7239 \family default
7240  provides an alternative to the 
7241 \family typewriter
7242 article.cls
7243 \family default
7244  document class.
7245  It provides similar functionality, but you might prefer this layout with
7246  sans serif sections, headings, and more.
7247 \end_layout
7248
7249 \begin_layout Subsection
7250 Rev\SpecialChar TeX
7251 4
7252 \end_layout
7253
7254 \begin_layout Standard
7255 by 
7256 \noun on
7257 Amir Karger
7258 \end_layout
7259
7260 \begin_layout Standard
7261 \begin_inset VSpace bigskip
7262 \end_inset
7263
7264
7265 \end_layout
7266
7267 \begin_layout Standard
7268 \noindent
7269 The 
7270 \family sans
7271 Revtex
7272 \begin_inset space ~
7273 \end_inset
7274
7275 4
7276 \family default
7277  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7278  4.0 (the 
7279 \begin_inset Formula $\beta$
7280 \end_inset
7281
7282  release of May, 1999) class.
7283 \end_layout
7284
7285 \begin_layout Standard
7286 \SpecialChar LyX
7287  has a 
7288 \family sans
7289 Revtex
7290 \family default
7291  textclass, which works with Rev\SpecialChar TeX
7292  3.1.
7293  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7294  2.09.
7295  That means that it doesn't interact very well with \SpecialChar LyX
7296 , which requires \SpecialChar LaTeX2e
7297 , although
7298  it has been kludged to work.
7299  Since Rev\SpecialChar TeX
7300  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7301 , \SpecialChar LyX
7302  with the
7303  
7304 \family sans
7305 Rev\SpecialChar TeX
7306
7307 \begin_inset space ~
7308 \end_inset
7309
7310 4
7311 \family default
7312  textclass should also be pretty easy to use.
7313 \end_layout
7314
7315 \begin_layout Standard
7316 These documents are supposed to be used in 
7317 \emph on
7318 addition
7319 \emph default
7320  to the Rev\SpecialChar TeX
7321  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7322  macros,
7323  and assume you'll know what to put in the preamble if necessary.
7324 \end_layout
7325
7326 \begin_layout Subsubsection
7327 Installation
7328 \end_layout
7329
7330 \begin_layout Standard
7331 All you need to do is install Rev\SpecialChar TeX
7332  4, as described in the package's README
7333  file.
7334  The package can be found at The Rev\SpecialChar TeX
7335  4 Web Site 
7336 \begin_inset Flex URL
7337 status collapsed
7338
7339 \begin_layout Plain Layout
7340
7341 http://publish.aps.org/revtex4/
7342 \end_layout
7343
7344 \end_inset
7345
7346 .
7347  Install it somewhere that \SpecialChar LaTeX
7348  can see it.
7349  Test it by trying to \SpecialChar LaTeX
7350  a short Rev\SpecialChar TeX
7351  4 document in some random directory (i.
7352 \begin_inset space \thinspace{}
7353 \end_inset
7354
7355 e.
7356 \begin_inset space \space{}
7357 \end_inset
7358
7359 not the directory where you installed the class file.) Then, if you reconfigure
7360  \SpecialChar LyX
7361 , it will find the class file and let you use the Rev\SpecialChar TeX
7362 4 textclass.
7363 \end_layout
7364
7365 \begin_layout Standard
7366 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7367  4 document
7368  using 
7369 \family typewriter
7370 tex2lyx
7371 \family default
7372 , or to use the 
7373 \family sans
7374 Revtex
7375 \begin_inset space ~
7376 \end_inset
7377
7378 4
7379 \family default
7380  template, found in the templates directory.
7381 \end_layout
7382
7383 \begin_layout Subsubsection
7384 Preamble Matter
7385 \end_layout
7386
7387 \begin_layout Standard
7388 Optional arguments to 
7389 \family typewriter
7390
7391 \backslash
7392 documentclass
7393 \family default
7394 , like 
7395 \begin_inset Quotes eld
7396 \end_inset
7397
7398 preprint
7399 \begin_inset Quotes erd
7400 \end_inset
7401
7402  and 
7403 \begin_inset Quotes eld
7404 \end_inset
7405
7406 aps
7407 \begin_inset Quotes erd
7408 \end_inset
7409
7410 , go in the 
7411 \family sans
7412 Extra
7413 \begin_inset space ~
7414 \end_inset
7415
7416 Options
7417 \family default
7418  field in the 
7419 \family sans
7420 Document
7421 \begin_inset space ~
7422 \end_inset
7423
7424 Layout
7425 \family default
7426  dialog, as usual.
7427  Remember that in Rev\SpecialChar TeX
7428 , at least one optional argument is required! 
7429 \end_layout
7430
7431 \begin_layout Standard
7432 Other preamble matter, like 
7433 \family typewriter
7434
7435 \backslash
7436 draft
7437 \family default
7438  etc.
7439 \begin_inset space ~
7440 \end_inset
7441
7442 goes in the 
7443 \family sans
7444 \SpecialChar LaTeX
7445
7446 \begin_inset space ~
7447 \end_inset
7448
7449 Preamble
7450 \family default
7451  dialog, also as usual.
7452 \end_layout
7453
7454 \begin_layout Subsubsection
7455 Layouts
7456 \end_layout
7457
7458 \begin_layout Standard
7459 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7460 4.0.
7461  For example, the Email layout corresponds to 
7462 \family typewriter
7463
7464 \backslash
7465 email{}
7466 \family default
7467 .
7468  Note that (at least as of Rev\SpecialChar TeX
7469  4.0 Beta), the 
7470 \family sans
7471 Address
7472 \family default
7473  and 
7474 \family sans
7475 Affiliation
7476 \family default
7477  layouts are exactly equivalent, so you shouldn't need to use both.
7478 \begin_inset Foot
7479 status collapsed
7480
7481 \begin_layout Plain Layout
7482 In case you're curious, both were included so that 
7483 \family typewriter
7484 tex2lyx
7485 \family default
7486  would be able to translate both 
7487 \family typewriter
7488
7489 \backslash
7490 address
7491 \family default
7492  and 
7493 \family typewriter
7494
7495 \backslash
7496 affiliation
7497 \family default
7498 .
7499 \end_layout
7500
7501 \end_inset
7502
7503
7504 \end_layout
7505
7506 \begin_layout Subsubsection
7507 Important Notes
7508 \end_layout
7509
7510 \begin_layout Standard
7511 There are a couple of important unique aspects of Rev\SpecialChar TeX
7512  4 which might cause
7513  bugs that will be even more confusing in \SpecialChar LyX
7514 .
7515 \end_layout
7516
7517 \begin_layout Standard
7518 In Rev\SpecialChar TeX
7519 , the 
7520 \family typewriter
7521
7522 \backslash
7523 thanks
7524 \family default
7525  command goes 
7526 \emph on
7527 outside
7528 \emph default
7529  the 
7530 \family typewriter
7531
7532 \backslash
7533 author
7534 \family default
7535  command.
7536  The \SpecialChar LyX
7537  equivalent is that there is a separate Thanks layout.
7538  Do 
7539 \emph on
7540 not
7541 \emph default
7542  write footnotes in the 
7543 \family sans
7544 Author
7545 \family default
7546  layout, or weird things may happen.
7547  See the Rev\SpecialChar TeX
7548  4 documentation for more details.
7549 \end_layout
7550
7551 \begin_layout Standard
7552 Also, the 
7553 \family sans
7554 Author
7555 \begin_inset space ~
7556 \end_inset
7557
7558 Email
7559 \family default
7560
7561 \family sans
7562 Author
7563 \begin_inset space ~
7564 \end_inset
7565
7566 URL
7567 \family default
7568 , and 
7569 \family sans
7570 Thanks
7571 \family default
7572  layouts must be placed 
7573 \emph on
7574 in between
7575 \emph default
7576  the 
7577 \family sans
7578 Author
7579 \family default
7580  layout and the corresponding 
7581 \family sans
7582 Address
7583 \family default
7584  (or equivalent 
7585 \family sans
7586 Affiliation
7587 \family default
7588 ) layout.
7589  If you put the 
7590 \family sans
7591 Thanks
7592 \family default
7593  after the 
7594 \family sans
7595 Address
7596 \family default
7597 , the \SpecialChar LaTeX
7598  won't compile.
7599 \end_layout
7600
7601 \begin_layout Subsection
7602
7603 \change_inserted 564990737 1671042072
7604
7605 \lang american
7606 Springer Journals
7607 \end_layout
7608
7609 \begin_layout Standard
7610
7611 \change_inserted 564990737 1671042072
7612
7613 \lang american
7614 All the 
7615 \family sans
7616 svj*
7617 \family default
7618  classes were replaced in 2013 with a completely new 
7619 \family sans
7620 sr-vorl.cls
7621 \family default
7622 .
7623  This package provides a \SpecialChar LaTeX
7624  class and templates for books to be published
7625  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7626  Research, Springer VS Research, or Springer VS Forschung.
7627  The documentation is available in German from 
7628 \begin_inset CommandInset href
7629 LatexCommand href
7630 name "CTAN"
7631 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7632 literal "false"
7633
7634 \end_inset
7635
7636 .
7637 \end_layout
7638
7639 \begin_layout Section
7640
7641 \change_inserted 564990737 1670439560
7642 Books
7643 \end_layout
7644
7645 \begin_layout Standard
7646
7647 \change_inserted 564990737 1670439581
7648 See also the document classes in the Collections (section
7649 \begin_inset space ~
7650 \end_inset
7651
7652
7653 \begin_inset CommandInset ref
7654 LatexCommand ref
7655 reference "sec:Collections"
7656
7657 \end_inset
7658
7659 ).
7660 \end_layout
7661
7662 \begin_layout Subsection
7663 Memoir
7664 \end_layout
7665
7666 \begin_layout Standard
7667 By 
7668 \noun on
7669 Jürgen Spitzmüller
7670 \end_layout
7671
7672 \begin_layout Subsubsection
7673 Overview
7674 \end_layout
7675
7676 \begin_layout Standard
7677 Memoir is a very powerful and constantly evolving class.
7678  It has been designed with regard to fictional and non-fictional literature.
7679  Its aim is to let the user have maximum control over the typesetting of
7680  his document.
7681  Memoir is based on the standard book class, but it can also emulate the
7682  article class (see below).
7683 \end_layout
7684
7685 \begin_layout Standard
7686 Peter Wilson, the developer of Memoir, is known as the author of lots of
7687  useful packages in the \SpecialChar LaTeX
7688  world.
7689  Most of them have been merged with Memoir.
7690  Therefore, it is much easier to layout the table of contents, appendices,
7691  chapter designs and such.
7692  \SpecialChar LyX
7693 , though, does not support all of these goodies natively.
7694  Some of them might be added to forthcoming releases
7695 \begin_inset Foot
7696 status collapsed
7697
7698 \begin_layout Plain Layout
7699 You are invited to send suggestions to 
7700 \begin_inset Flex URL
7701 status collapsed
7702
7703 \begin_layout Plain Layout
7704
7705 lyx-devel@lists.lyx.org
7706 \end_layout
7707
7708 \end_inset
7709
7710 .
7711 \end_layout
7712
7713 \end_inset
7714
7715 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7716 's framework.
7717  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7718
7719  commands (\SpecialChar TeX
7720  code
7721 \begin_inset Foot
7722 status collapsed
7723
7724 \begin_layout Plain Layout
7725 Cf.
7726 \begin_inset ERT
7727 status collapsed
7728
7729 \begin_layout Plain Layout
7730
7731
7732 \backslash
7733  
7734 \end_layout
7735
7736 \end_inset
7737
7738 section
7739 \begin_inset space ~
7740 \end_inset
7741
7742
7743 \begin_inset CommandInset ref
7744 LatexCommand ref
7745 reference "sec:Inserting-TeX-Code"
7746
7747 \end_inset
7748
7749  for details.
7750 \end_layout
7751
7752 \end_inset
7753
7754 ).
7755  In this section, we can only list those features that are natively supported
7756  by \SpecialChar LyX
7757 .
7758  For detailed descriptions (and for the rest of features) we recommend you
7759  have a look at the detailed manual of the Memoir class
7760 \begin_inset Foot
7761 status collapsed
7762
7763 \begin_layout Plain Layout
7764 Cf.
7765 \begin_inset ERT
7766 status collapsed
7767
7768 \begin_layout Plain Layout
7769
7770
7771 \backslash
7772  
7773 \end_layout
7774
7775 \end_inset
7776
7777
7778 \begin_inset Flex URL
7779 status collapsed
7780
7781 \begin_layout Plain Layout
7782
7783 CTAN:/macros/latex/memoir/memman.pdf
7784 \end_layout
7785
7786 \end_inset
7787
7788 .
7789 \end_layout
7790
7791 \end_inset
7792
7793 , which is not only a user guide for the class, but also both a comprehensive
7794  description on good typesetting and a superb example for good typesetting
7795  itself.
7796 \end_layout
7797
7798 \begin_layout Subsubsection
7799 Basic features and restrictions
7800 \end_layout
7801
7802 \begin_layout Standard
7803 Memoir supports basically all features of the standard book classes.
7804  There are, however, some differences, as follows:
7805 \end_layout
7806
7807 \begin_layout Description
7808 Font
7809 \begin_inset space ~
7810 \end_inset
7811
7812 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7813 \end_layout
7814
7815 \begin_layout Description
7816 Page
7817 \begin_inset space ~
7818 \end_inset
7819
7820 style: The fancy page style is not supported, due to a command clash between
7821  Memoir and the fancyhdr package (they both define a command with the same
7822  name, which confuses \SpecialChar LaTeX
7823 ).
7824  Instead, Memoir comes with a number of its own page styles (see 
7825 \family sans
7826 Document\SpecialChar menuseparator
7827 Settings\SpecialChar menuseparator
7828 Page
7829 \begin_inset space ~
7830 \end_inset
7831
7832 Style
7833 \family default
7834 ).
7835  If you want to use these for the chapter pages, you have to use the command
7836  
7837 \family typewriter
7838
7839 \backslash
7840 chapterstyle
7841 \family default
7842  in the main text or in preamble (e.
7843 \begin_inset space \thinspace{}
7844 \end_inset
7845
7846 g.
7847 \begin_inset space \space{}
7848 \end_inset
7849
7850
7851 \family typewriter
7852
7853 \backslash
7854 chapterstyle{companion}
7855 \family default
7856 ).
7857 \end_layout
7858
7859 \begin_layout Description
7860 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7861  optional argument in the standard classes.
7862  With this, you can specify an alternative version of the title for the
7863  table of contents and the headers (for instance, if the title is too long).
7864  In \SpecialChar LyX
7865 , you can do this via 
7866 \family sans
7867 Insert\SpecialChar menuseparator
7868 Short
7869 \begin_inset space ~
7870 \end_inset
7871
7872 Title
7873 \family default
7874  at the beginning of a chapter/section.
7875  Memoir features a second optional argument and thus separates the table
7876  of contents from the header.
7877  You can define three variants of a title with this: one for the main text,
7878  one for the table of contents, and one for the headers.
7879  \SpecialChar LyX
7880  makes these available in form of specific 
7881 \family sans
7882 Short Title
7883 \family default
7884  variants in the 
7885 \family sans
7886 Insert
7887 \family default
7888  menu.
7889 \end_layout
7890
7891 \begin_layout Description
7892 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7893  of contents, the list of figures and the list of table start a new page
7894  automatically.
7895  Memoir does not follow this route.
7896  You have to insert a page break yourself, if you want to have one.
7897 \end_layout
7898
7899 \begin_layout Description
7900 Titlepage: For some unknown reason, Memoir uses pagination on the title
7901  page (in the standard classes, title pages are 
7902 \begin_inset Quotes eld
7903 \end_inset
7904
7905 empty
7906 \begin_inset Quotes erd
7907 \end_inset
7908
7909 ).
7910  If you want an empty title page, type 
7911 \family typewriter
7912
7913 \backslash
7914 aliaspagestyle{title}{empty}
7915 \family default
7916  in the preamble.
7917 \end_layout
7918
7919 \begin_layout Description
7920 Article: With the class option 
7921 \emph on
7922 article
7923 \emph default
7924  (to be inserted in 
7925 \family sans
7926 Document\SpecialChar menuseparator
7927 Settings\SpecialChar menuseparator
7928 Class Settings\SpecialChar menuseparator
7929 Custom
7930 \begin_inset space ~
7931 \end_inset
7932
7933 Options
7934 \family default
7935 ), you can emulate article style.
7936  That is, counters (footnotes, figures, tables etc.) will not be reset on
7937  new chapters, chapters don't start a new page (but are—in contrary to 
7938 \begin_inset Quotes eld
7939 \end_inset
7940
7941 real
7942 \begin_inset Quotes erd
7943 \end_inset
7944
7945  article classes—still allowed), parts, though, use their own page, as in
7946  book.
7947 \end_layout
7948
7949 \begin_layout Description
7950 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7951  font commands, which have been used in the old \SpecialChar LaTeX
7952  version 2.09 (e.
7953 \begin_inset space \thinspace{}
7954 \end_inset
7955
7956 g.
7957 \begin_inset space \space{}
7958 \end_inset
7959
7960
7961 \family typewriter
7962
7963 \backslash
7964 rm
7965 \family default
7966
7967 \family typewriter
7968
7969 \backslash
7970 it
7971 \family default
7972 ).
7973  It produces an error and stops \SpecialChar LaTeX
7974  whenever such a command appears.
7975  The class option 
7976 \emph on
7977 oldfontcommands
7978 \emph default
7979  reallows the commands and spits out warnings instead (which does at least
7980  not stop \SpecialChar LaTeX
7981 ).
7982  Since a lot of packages and particularly Bib\SpecialChar TeX
7983  style files are still using
7984  those commands, we have decided to use this option by default.
7985 \end_layout
7986
7987 \begin_layout Subsubsection
7988 Extra features
7989 \end_layout
7990
7991 \begin_layout Standard
7992 We will only describe the features supported by \SpecialChar LyX
7993  (which is not much currently).
7994  Please consult the Memoir manual
7995 \begin_inset Foot
7996 status collapsed
7997
7998 \begin_layout Plain Layout
7999 Cf.
8000 \begin_inset ERT
8001 status collapsed
8002
8003 \begin_layout Plain Layout
8004
8005
8006 \backslash
8007  
8008 \end_layout
8009
8010 \end_inset
8011
8012
8013 \begin_inset Flex URL
8014 status collapsed
8015
8016 \begin_layout Plain Layout
8017
8018 CTAN:/macros/latex/memoir/memman.pdf
8019 \end_layout
8020
8021 \end_inset
8022
8023 .
8024 \end_layout
8025
8026 \end_inset
8027
8028  for details.
8029 \end_layout
8030
8031 \begin_layout Description
8032 Abstract: You may wonder why an abstract is an extra feature.
8033  Well, it is in book class.
8034  Usually books don't have abstracts.
8035  Memoir, however, has.
8036  You can use it wherever and how often you like.
8037 \end_layout
8038
8039 \begin_layout Description
8040 Chapterprecis: You may know this older typesetting style: The contents of
8041  a chapter are summarized below the title and also in the table of contents
8042  (e.
8043 \begin_inset space \thinspace{}
8044 \end_inset
8045
8046 g.
8047 \begin_inset space \space{}
8048 \end_inset
8049
8050
8051 \emph on
8052 Our hero arrives in Troia; he loses some friends; he finds others
8053 \emph default
8054 ).
8055  Chapterprecis does exactly this.
8056  It is therefore only sensible below a chapter.
8057 \end_layout
8058
8059 \begin_layout Description
8060 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8061  The epigraph environment provides an elegant way of typesetting such a
8062  motto.
8063  The motto itself (text) and its (optional) author (source) are divided
8064  by a short line.
8065  The author (source) can be inserted via 
8066 \family sans
8067 Insert\SpecialChar menuseparator
8068 Epigraph Source
8069 \family default
8070 \emph on
8071 .
8072 \end_layout
8073
8074 \begin_layout Description
8075 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8076  complex figurative poems).
8077  \SpecialChar LyX
8078  can only support a few of them.
8079  One is poemtitle, which is a centered title for poems, which will also
8080  be added to the table of contents (verse is the standard environment for
8081  poems.
8082  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8083  code,
8084  because they have to be nested inside regular verse environments, which
8085  is not possible with \SpecialChar LyX
8086 ).
8087 \end_layout
8088
8089 \begin_layout Description
8090 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8091 \end_layout
8092
8093 \begin_layout Section
8094
8095 \change_inserted 564990737 1670439605
8096 Curricula vitarum
8097 \end_layout
8098
8099 \begin_layout Section
8100
8101 \change_inserted 564990737 1671041968
8102 Letters
8103 \end_layout
8104
8105 \begin_layout Subsection
8106
8107 \change_inserted 564990737 1671041970
8108
8109 \lang american
8110 Din-Brief
8111 \end_layout
8112
8113 \begin_layout Standard
8114
8115 \change_inserted 564990737 1671041970
8116
8117 \lang american
8118 The document class 
8119 \family sans
8120 Din-Brief
8121 \family default
8122  provides the 
8123 \family typewriter
8124 dinbrief.cls
8125 \family default
8126  document class for writing letters according to the 
8127 \emph on
8128 Deutsches Institut für Normung
8129 \emph default
8130  conventions.
8131  The file 
8132 \emph on
8133 dinbrief.lyx
8134 \emph default
8135  in the menu 
8136 \family sans
8137 \bar under
8138 F
8139 \bar default
8140 ile\SpecialChar menuseparator
8141 New
8142 \begin_inset space ~
8143 \end_inset
8144
8145 fro
8146 \bar under
8147 m
8148 \bar default
8149
8150 \begin_inset space ~
8151 \end_inset
8152
8153 Template
8154 \family default
8155  offers guidance on its use.
8156  The documentation is available from 
8157 \begin_inset CommandInset href
8158 LatexCommand href
8159 name "CTAN"
8160 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8161 literal "false"
8162
8163 \end_inset
8164
8165 .
8166 \end_layout
8167
8168 \begin_layout Section
8169
8170 \change_inserted 564990737 1670439660
8171 Presentations
8172 \end_layout
8173
8174 \begin_layout Subsection
8175 Foils [aka 
8176 \family sans
8177 Foil\SpecialChar TeX
8178
8179 \family default
8180 ]
8181 \begin_inset CommandInset label
8182 LatexCommand label
8183 name "sec:foiltex"
8184
8185 \end_inset
8186
8187
8188 \end_layout
8189
8190 \begin_layout Standard
8191 by 
8192 \noun on
8193 Allan Rae
8194 \end_layout
8195
8196 \begin_layout Subsubsection
8197 Introduction
8198 \end_layout
8199
8200 \begin_layout Standard
8201 This section describes how to use \SpecialChar LyX
8202  to make slides for overhead projectors.
8203  There are two document classes that can do this: the default slides class
8204  and the 
8205 \family sans
8206 Foil\SpecialChar TeX
8207
8208 \family default
8209  slides class.
8210  This section documents the latter.
8211 \end_layout
8212
8213 \begin_layout Standard
8214 I'm going to say this again, nice and clear, so that there's no misunderstanding
8215 :
8216 \end_layout
8217
8218 \begin_layout Standard
8219 \begin_inset VSpace bigskip
8220 \end_inset
8221
8222
8223 \end_layout
8224
8225 \begin_layout Standard
8226 \align center
8227
8228 \size large
8229 This section documents the class 
8230 \begin_inset Quotes eld
8231 \end_inset
8232
8233
8234 \family sans
8235 FoilTeX
8236 \family default
8237
8238 \begin_inset Quotes erd
8239 \end_inset
8240
8241  
8242 \emph on
8243 only.
8244 \end_layout
8245
8246 \begin_layout Standard
8247 \begin_inset VSpace bigskip
8248 \end_inset
8249
8250
8251 \end_layout
8252
8253 \begin_layout Standard
8254 If you're looking for the documentation for 
8255 \begin_inset Quotes eld
8256 \end_inset
8257
8258
8259 \family sans
8260 slides (default)
8261 \family default
8262
8263 \begin_inset Quotes erd
8264 \end_inset
8265
8266 , check out section
8267 \begin_inset space ~
8268 \end_inset
8269
8270
8271 \begin_inset CommandInset ref
8272 LatexCommand ref
8273 reference "sec:slitex"
8274
8275 \end_inset
8276
8277 .
8278  If your machine doesn't have the 
8279 \family sans
8280 foils
8281 \family default
8282  class 
8283 \family sans
8284 FoilTeX
8285 \family default
8286  installed, you'll probably have to use the default 
8287 \family sans
8288 slides
8289 \family default
8290  class, which isn't quite as good as 
8291 \family sans
8292 foils.
8293 \end_layout
8294
8295 \begin_layout Standard
8296 The 
8297 \family sans
8298 foils
8299 \family default
8300  class is designed for use with version
8301 \begin_inset space ~
8302 \end_inset
8303
8304 2.1 of the 
8305 \family sans
8306 foils.cls
8307 \family default
8308  \SpecialChar LaTeX
8309  class file which is now an integral part of \SpecialChar LaTeX2e
8310 .
8311 \end_layout
8312
8313 \begin_layout Subsubsection
8314 Getting Started
8315 \end_layout
8316
8317 \begin_layout Standard
8318 Obviously, to use this document class, you need to select 
8319 \family sans
8320 FoilTeX
8321 \family default
8322  from the 
8323 \family sans
8324 Class
8325 \family default
8326  entry in the 
8327 \family sans
8328 Document
8329 \begin_inset space ~
8330 \end_inset
8331
8332 Layout
8333 \family default
8334  dialog.
8335  There are some settings in the 
8336 \family sans
8337 Document
8338 \begin_inset space ~
8339 \end_inset
8340
8341 Layout
8342 \family default
8343  dialog that you should know about that are specific to this class:
8344 \end_layout
8345
8346 \begin_layout Itemize
8347 Don't change the options 
8348 \family sans
8349 Sides
8350 \family default
8351  and 
8352 \family sans
8353 Columns
8354 \family default
8355  on the 
8356 \family sans
8357 Document
8358 \begin_inset space ~
8359 \end_inset
8360
8361 Layout
8362 \family default
8363  dialog.
8364  They're ignored by the 
8365 \family sans
8366 foils
8367 \family default
8368  class.
8369 \end_layout
8370
8371 \begin_layout Itemize
8372 The default font size is 20
8373 \begin_inset space \thinspace{}
8374 \end_inset
8375
8376 pt with the other options being 17
8377 \begin_inset space \thinspace{}
8378 \end_inset
8379
8380 pt, 25
8381 \begin_inset space \thinspace{}
8382 \end_inset
8383
8384 pt and 30
8385 \begin_inset space \thinspace{}
8386 \end_inset
8387
8388 pt.
8389 \end_layout
8390
8391 \begin_layout Itemize
8392 The default font is 
8393 \family sans
8394 sans
8395 \family default
8396  
8397 \family sans
8398 serif
8399 \family default
8400  but all math equations are still typeset in the usual roman font.
8401 \end_layout
8402
8403 \begin_layout Itemize
8404
8405 \family sans
8406 Foil\SpecialChar TeX
8407
8408 \family default
8409  supports A4 and Letter paper sizes as well as a special size for working
8410  with 35
8411 \begin_inset space \thinspace{}
8412 \end_inset
8413
8414 mm slides.
8415  It doesn't support A5, B5, legal or executive paper sizes.
8416 \end_layout
8417
8418 \begin_layout Itemize
8419 Don't bother changing the 
8420 \family sans
8421 Float Placement
8422 \family default
8423  settings because they are ignored anyway.
8424  All floats appear where they are defined in the text.
8425 \end_layout
8426
8427 \begin_layout Itemize
8428 The 
8429 \family sans
8430 Pagestyle
8431 \family default
8432  setting behaves a bit differently for this class.
8433  
8434 \family sans
8435 Foil\SpecialChar TeX
8436
8437 \family default
8438  provides extensive footer and header capabilities including a user-defined
8439  logo.
8440  See section
8441 \begin_inset space ~
8442 \end_inset
8443
8444
8445 \begin_inset CommandInset ref
8446 LatexCommand ref
8447 reference "sec:foilfoot"
8448
8449 \end_inset
8450
8451  for more details.
8452  The title page is treated differently to all other pages in the document
8453  and is 
8454 \emph on
8455 always
8456 \emph default
8457  unnumbered and 
8458 \emph on
8459 always
8460 \emph default
8461  has the logo centered at the bottom of the page (if one is defined).
8462  The possible page style choices and what they do are as follows:
8463 \end_layout
8464
8465 \begin_deeper
8466 \begin_layout Labeling
8467 \labelwidthstring MMMMMMM
8468
8469 \family sans
8470 \series bold
8471 empty
8472 \family default
8473 \series default
8474  The final output contains no page numbers, or other headers or footers
8475  (except footnotes of course).
8476  
8477 \end_layout
8478
8479 \begin_layout Labeling
8480 \labelwidthstring MMMMMMM
8481
8482 \family sans
8483 \series bold
8484 plain
8485 \family default
8486 \series default
8487  The final output contains page numbers centered at the bottom of the page.
8488  No other headings or footers (other than footnotes).
8489 \end_layout
8490
8491 \begin_layout Labeling
8492 \labelwidthstring MMMMMMM
8493
8494 \series bold
8495 foilheadings
8496 \series default
8497  Page numbers in lower right corner.
8498  Additional headers and footers are also shown.
8499  This is also the default.
8500 \end_layout
8501
8502 \begin_layout Labeling
8503 \labelwidthstring MMMMMMM
8504
8505 \series bold
8506 fancy
8507 \series default
8508  Gives you access to the 
8509 \family sans
8510 fancyheadings
8511 \family default
8512  package although its use with 
8513 \family sans
8514 Foil\SpecialChar TeX
8515
8516 \family default
8517  is discouraged by the writer of the 
8518 \family sans
8519 Foil\SpecialChar TeX
8520
8521 \family default
8522  package because of some potential page layout clashes.
8523 \end_layout
8524
8525 \end_deeper
8526 \begin_layout Paragraph
8527 Extra Options
8528 \end_layout
8529
8530 \begin_layout Standard
8531 The following options may be used in the extra class options in the 
8532 \family sans
8533 Document\SpecialChar menuseparator
8534 Settings
8535 \family default
8536  dialog.
8537 \end_layout
8538
8539 \begin_layout Labeling
8540 \labelwidthstring MMMMMMx
8541
8542 \series bold
8543 35mmSlide
8544 \series default
8545  This sets up the page layout for 7.33
8546 \begin_inset space \thinspace{}
8547 \end_inset
8548
8549 in by 11
8550 \begin_inset space \thinspace{}
8551 \end_inset
8552
8553 in paper, which is about the same aspect ratio as a 35
8554 \begin_inset space \thinspace{}
8555 \end_inset
8556
8557 mm slide, making it a bit easier to work with this medium.
8558 \end_layout
8559
8560 \begin_layout Labeling
8561 \labelwidthstring MMMMMMx
8562
8563 \series bold
8564 headrule
8565 \series default
8566  Places a rule across the page below the header on every page except the
8567  title page.
8568 \end_layout
8569
8570 \begin_layout Labeling
8571 \labelwidthstring MMMMMMx
8572
8573 \series bold
8574 footrule
8575 \series default
8576  Places a rule across the page above the footer on every page except the
8577  title page.
8578 \end_layout
8579
8580 \begin_layout Labeling
8581 \labelwidthstring MMMMMMx
8582
8583 \series bold
8584 dvips
8585 \series default
8586  This is automatically set each time you create a new 
8587 \family sans
8588 foils
8589 \family default
8590  document.
8591  This option tells 
8592 \family sans
8593 Foil\SpecialChar TeX
8594
8595 \family default
8596  to use the dvips driver to rotate those pages that are set as landscape
8597  foils.
8598 \end_layout
8599
8600 \begin_layout Labeling
8601 \labelwidthstring MMMMMMx
8602
8603 \series bold
8604 landscape
8605 \series default
8606  Simply changes the page dimensions to those of a landscape page but doesn't
8607  do any rotation.
8608  Thus if you use this option you need to use an external program to rotate
8609  each page or feed your paper through your printer as landscape.
8610  Note that this option effectively reverses the roles of the 
8611 \family sans
8612 Foilhead
8613 \family default
8614  and 
8615 \family sans
8616 Rotatefoilhead
8617 \family default
8618  environments (don't worry these are described in the next section).
8619 \end_layout
8620
8621 \begin_layout Labeling
8622 \labelwidthstring MMMMMMx
8623
8624 \series bold
8625 leqno
8626 \series default
8627  Equation numbers on the left.
8628 \end_layout
8629
8630 \begin_layout Labeling
8631 \labelwidthstring MMMMMMx
8632
8633 \series bold
8634 fleqn
8635 \series default
8636  Flush-left equations.
8637 \end_layout
8638
8639 \begin_layout Subsubsection
8640 Supported Environments
8641 \end_layout
8642
8643 \begin_layout Standard
8644 Most of the environments commonly supported in other classes are also supported
8645  by the 
8646 \family sans
8647 foils
8648 \family default
8649  class.
8650  There are several additional environments provided by 
8651 \family sans
8652 Foil\SpecialChar TeX
8653
8654 \family default
8655  as well as a couple added by \SpecialChar LyX
8656 .
8657  The following environments are shared with other classes:
8658 \end_layout
8659
8660 \begin_layout Standard
8661 \begin_inset Flex Multiple Columns
8662 status open
8663
8664 \begin_layout Itemize
8665
8666 \family sans
8667 Standard
8668 \end_layout
8669
8670 \begin_layout Itemize
8671
8672 \family sans
8673 Itemize
8674 \end_layout
8675
8676 \begin_layout Itemize
8677
8678 \family sans
8679 Enumerate
8680 \end_layout
8681
8682 \begin_layout Itemize
8683
8684 \family sans
8685 Description
8686 \end_layout
8687
8688 \begin_layout Itemize
8689
8690 \family sans
8691 List
8692 \end_layout
8693
8694 \begin_layout Itemize
8695
8696 \family sans
8697 \SpecialChar LyX
8698 -Code
8699 \end_layout
8700
8701 \begin_layout Itemize
8702
8703 \family sans
8704 Verse
8705 \end_layout
8706
8707 \begin_layout Itemize
8708
8709 \family sans
8710 Quote
8711 \end_layout
8712
8713 \begin_layout Itemize
8714
8715 \family sans
8716 Quotation
8717 \end_layout
8718
8719 \begin_layout Itemize
8720
8721 \family sans
8722 TitleAuthor
8723 \end_layout
8724
8725 \begin_layout Itemize
8726
8727 \family sans
8728 Date
8729 \end_layout
8730
8731 \begin_layout Itemize
8732
8733 \family sans
8734 Abstract
8735 \end_layout
8736
8737 \begin_layout Itemize
8738
8739 \family sans
8740 Bibliography
8741 \end_layout
8742
8743 \begin_layout Itemize
8744
8745 \family sans
8746 Address
8747 \end_layout
8748
8749 \begin_layout Itemize
8750
8751 \family sans
8752 RightAddress
8753 \end_layout
8754
8755 \end_inset
8756
8757
8758 \end_layout
8759
8760 \begin_layout Standard
8761 That is, all the major environments apart from the sectioning environments.
8762  Since foils are essentially self-contained sections, with a title and body,
8763  
8764 \family sans
8765 Foil\SpecialChar TeX
8766
8767 \family default
8768  provides specific commands for starting new foils and these are:
8769 \end_layout
8770
8771 \begin_layout Itemize
8772
8773 \family sans
8774 Foilhead
8775 \end_layout
8776
8777 \begin_layout Itemize
8778
8779 \family sans
8780 Rotatefoilhead
8781 \end_layout
8782
8783 \begin_layout Standard
8784 \SpecialChar LyX
8785  also provides slightly modified versions of these two environments called:
8786 \end_layout
8787
8788 \begin_layout Itemize
8789
8790 \family sans
8791 ShortFoilhead
8792 \end_layout
8793
8794 \begin_layout Itemize
8795
8796 \family sans
8797 ShortRotatefoilhead
8798 \end_layout
8799
8800 \begin_layout Standard
8801 and the differences will be explained in the next section.
8802 \end_layout
8803
8804 \begin_layout Standard
8805 Since foils are often used in presenting ideas or new theorems and such
8806  
8807 \family sans
8808 Foil\SpecialChar TeX
8809
8810 \family default
8811  also provides a comprehensive box of goodies for presenting them:
8812 \end_layout
8813
8814 \begin_layout Standard
8815 \begin_inset Flex Multiple Columns
8816 status open
8817
8818 \begin_layout Itemize
8819
8820 \family sans
8821 Theorem
8822 \end_layout
8823
8824 \begin_layout Itemize
8825
8826 \family sans
8827 Lemma
8828 \end_layout
8829
8830 \begin_layout Itemize
8831
8832 \family sans
8833 Corollary
8834 \end_layout
8835
8836 \begin_layout Itemize
8837
8838 \family sans
8839 Proposition
8840 \end_layout
8841
8842 \begin_layout Itemize
8843
8844 \family sans
8845 Definition
8846 \end_layout
8847
8848 \begin_layout Itemize
8849
8850 \family sans
8851 Proof
8852 \end_layout
8853
8854 \begin_layout Itemize
8855
8856 \family sans
8857 Theorem*
8858 \end_layout
8859
8860 \begin_layout Itemize
8861
8862 \family sans
8863 Lemma*
8864 \end_layout
8865
8866 \begin_layout Itemize
8867
8868 \family sans
8869 Corollary*
8870 \end_layout
8871
8872 \begin_layout Itemize
8873
8874 \family sans
8875 Proposition*
8876 \end_layout
8877
8878 \begin_layout Itemize
8879
8880 \family sans
8881 Definition*
8882 \end_layout
8883
8884 \end_inset
8885
8886
8887 \end_layout
8888
8889 \begin_layout Standard
8890 The starred versions are unnumbered while the unstarred versions are numbered.
8891  There are also two list environments added by \SpecialChar LyX
8892  and these are:
8893 \end_layout
8894
8895 \begin_layout Itemize
8896
8897 \family sans
8898 TickList
8899 \end_layout
8900
8901 \begin_layout Itemize
8902
8903 \family sans
8904 CrossList
8905 \end_layout
8906
8907 \begin_layout Standard
8908
8909 \family sans
8910 Foil\SpecialChar TeX
8911
8912 \family default
8913  provides some powerful header and footer capabilities that are best set
8914  in the preamble although they may be set at any point in a document.
8915  If you want to change these settings in your document the best place to
8916  do so is at the very top of a foil, i.
8917 \begin_inset space \thinspace{}
8918 \end_inset
8919
8920 e.
8921 \emph on
8922
8923 \begin_inset space \space{}
8924 \end_inset
8925
8926
8927 \emph default
8928 straight after the foilhead.
8929 \end_layout
8930
8931 \begin_layout Standard
8932 For this purpose, the following command styles are provided [
8933 \shape smallcaps
8934 Martin Vermeer
8935 \shape default
8936 ]:
8937 \end_layout
8938
8939 \begin_layout Standard
8940 \begin_inset Flex Multiple Columns
8941 status open
8942
8943 \begin_layout Itemize
8944
8945 \family sans
8946 My
8947 \begin_inset space ~
8948 \end_inset
8949
8950 Logo
8951 \end_layout
8952
8953 \begin_layout Itemize
8954
8955 \family sans
8956 Restriction
8957 \end_layout
8958
8959 \begin_layout Itemize
8960
8961 \family sans
8962 Right
8963 \begin_inset space ~
8964 \end_inset
8965
8966 Footer
8967 \end_layout
8968
8969 \begin_layout Itemize
8970
8971 \family sans
8972 Right
8973 \begin_inset space ~
8974 \end_inset
8975
8976 Header
8977 \end_layout
8978
8979 \begin_layout Itemize
8980
8981 \family sans
8982 Left
8983 \begin_inset space ~
8984 \end_inset
8985
8986 Header
8987 \end_layout
8988
8989 \begin_deeper
8990 \begin_layout Plain Layout
8991 \begin_inset space ~
8992 \end_inset
8993
8994
8995 \end_layout
8996
8997 \end_deeper
8998 \end_inset
8999
9000
9001 \end_layout
9002
9003 \begin_layout Standard
9004 There are also a few commands provided by 
9005 \family sans
9006 Foil\SpecialChar TeX
9007
9008 \family default
9009  that aren't directly supported by \SpecialChar LyX
9010  but I'll tell you what they do and how
9011  to use them in section
9012 \begin_inset space ~
9013 \end_inset
9014
9015
9016 \begin_inset CommandInset ref
9017 LatexCommand ref
9018 reference "sec:unsuppfoils"
9019
9020 \end_inset
9021
9022 .
9023 \end_layout
9024
9025 \begin_layout Subsubsection
9026 Building a Set of Foils
9027 \end_layout
9028
9029 \begin_layout Standard
9030 This section will give a simple introduction to using the different environments
9031  to build a set of foils.
9032  If you want to see an example set of foils, take a look at the 
9033 \family typewriter
9034 Foils.lyx
9035 \family default
9036  file you find in \SpecialChar LyX
9037 's 
9038 \family typewriter
9039 examples
9040 \family default
9041  folder.
9042 \end_layout
9043
9044 \begin_layout Paragraph
9045 Give It a Title Page
9046 \end_layout
9047
9048 \begin_layout Standard
9049 Unlike other classes that provide 
9050 \family sans
9051 Title
9052 \family default
9053
9054 \family sans
9055 Author
9056 \family default
9057
9058 \family sans
9059 Date
9060 \family default
9061  and 
9062 \family sans
9063 Abstract
9064 \family default
9065  environments, 
9066 \family sans
9067 foils
9068 \family default
9069  creates the title on a page of its own.
9070  If you leave out the 
9071 \family sans
9072 Date
9073 \family default
9074  environment \SpecialChar LaTeX
9075  will substitute the current date (every time you regenerate
9076  the output).
9077 \end_layout
9078
9079 \begin_layout Paragraph
9080 Start a New Foil
9081 \end_layout
9082
9083 \begin_layout Standard
9084 As I mentioned earlier, there are four ways of starting a new foil.
9085  For portrait foils you should use 
9086 \family sans
9087 Foilhead
9088 \family default
9089  or 
9090 \family sans
9091 ShortFoilhead.
9092
9093 \family default
9094  The difference between these two environments is the amount of space between
9095  the title of the foil (the foilhead) and the body of the foil.
9096 \end_layout
9097
9098 \begin_layout Standard
9099 Landscape foils are generated using the 
9100 \family sans
9101 Rotatefoilhead
9102 \family default
9103  and 
9104 \family sans
9105 ShortRotatefoilhead
9106 \family default
9107  environments.
9108  Again the only difference is the spacing between foilhead and body.
9109  Both of the short versions have 0.5
9110 \begin_inset space ~
9111 \end_inset
9112
9113 inches less separation between the foilhead and the body.
9114  
9115 \end_layout
9116
9117 \begin_layout Standard
9118 One problem with the support for landscape foils is the requirement that
9119  you have to use the 
9120 \family typewriter
9121 dvips
9122 \family default
9123  driver to generate the PostScript output otherwise the foils won't be rotated.
9124  It is possible to get landscape foils even if you haven't got the 
9125 \family typewriter
9126 dvips
9127 \family default
9128  driver provided you can feed your foils sideways through your printer ;-)
9129 \end_layout
9130
9131 \begin_layout Paragraph
9132 Theorems, Lemmas, Proofs and more
9133 \end_layout
9134
9135 \begin_layout Standard
9136 You can't have two of the same type of these environments directly following
9137  each other.
9138  If you use a normal paragraph break, , you will just be extending the previous
9139  environment as if you had merged the two environments together.
9140  Rather than that, you need to insert a so-called separator.
9141  Please refer to the section entitled 
9142 \emph on
9143 Separate Nestings
9144 \emph default
9145  in the 
9146 \emph on
9147 User's Guide
9148 \emph default
9149 .
9150 \end_layout
9151
9152 \begin_layout Paragraph
9153 Lists
9154 \end_layout
9155
9156 \begin_layout Standard
9157 You get all the commonly supported list styles found in other classes as
9158  well as two new ones.
9159  I'll only describe the new ones here.
9160  If you want to find out more about the other list environments check out
9161  the 
9162 \emph on
9163 User's Guide.
9164
9165 \emph default
9166  If you intend to use itemized lists you might also want to read about the
9167  
9168 \family sans
9169 Itemize
9170 \begin_inset space ~
9171 \end_inset
9172
9173 Bullet
9174 \begin_inset space ~
9175 \end_inset
9176
9177 Selection
9178 \family default
9179  dialog described above in section
9180 \begin_inset space ~
9181 \end_inset
9182
9183
9184 \change_inserted 564990737 1671355684
9185
9186 \begin_inset CommandInset ref
9187 LatexCommand ref
9188 reference "chap:bullets"
9189
9190 \end_inset
9191
9192
9193 \change_deleted 564990737 1671355684
9194
9195 \begin_inset CommandInset ref
9196 LatexCommand ref
9197 reference "sec:bullet"
9198
9199 \end_inset
9200
9201
9202 \change_unchanged
9203 .
9204 \end_layout
9205
9206 \begin_layout Standard
9207 The two new list styles, 
9208 \family sans
9209 TickList
9210 \family default
9211  and 
9212 \family sans
9213 CrossList
9214 \family default
9215 , are designed to make it easier for you to create lists of do's and don'ts
9216  or right and wrong by providing dedicated environments that use a tick
9217  or a cross as the label of the list.
9218  These lists are in fact dedicated variants of the 
9219 \family sans
9220 Itemize
9221 \family default
9222  environment.
9223  They do however require that you have the 
9224 \family typewriter
9225 psnfss
9226 \family default
9227  packages installed.
9228 \end_layout
9229
9230 \begin_layout Paragraph
9231 Figures and Tables
9232 \end_layout
9233
9234 \begin_layout Standard
9235
9236 \family sans
9237 Foil\SpecialChar TeX
9238
9239 \family default
9240  redefines the floating tables and figures so that they appear exactly where
9241  they are in the text rather than pushing them to the top of the page or
9242  to some user specified location.
9243  In fact if you change the float placement settings they are simply ignored.
9244 \end_layout
9245
9246 \begin_layout Paragraph
9247 Page Headers and Footers
9248 \begin_inset CommandInset label
9249 LatexCommand label
9250 name "sec:foilfoot"
9251
9252 \end_inset
9253
9254
9255 \end_layout
9256
9257 \begin_layout Standard
9258
9259 \family sans
9260 My
9261 \begin_inset space ~
9262 \end_inset
9263
9264 Logo
9265 \family default
9266  and 
9267 \family sans
9268 Restriction
9269 \family default
9270  are two commands used to control the left-footer text string.
9271  The first is meant to allow you to include a graphic logo on your foils
9272  and defaults to 
9273 \begin_inset Quotes eld
9274 \end_inset
9275
9276 -Typeset by 
9277 \family sans
9278 Foil\SpecialChar TeX
9279
9280 \family default
9281 -
9282 \begin_inset Quotes erd
9283 \end_inset
9284
9285 .
9286  While the second is meant to provide a classification for the audience,
9287  
9288 \emph on
9289 e.
9290 \begin_inset space \thinspace{}
9291 \end_inset
9292
9293 g.
9294 \emph default
9295
9296 \begin_inset space \space{}
9297 \end_inset
9298
9299 Confidential.
9300  It is empty by default.
9301 \end_layout
9302
9303 \begin_layout Standard
9304 The remaining page corners can be filled by 
9305 \family sans
9306 Right
9307 \begin_inset space ~
9308 \end_inset
9309
9310 Footer
9311 \family default
9312  (which defaults to page numbers), 
9313 \family sans
9314 Right
9315 \begin_inset space ~
9316 \end_inset
9317
9318 Header
9319 \family default
9320  (top right) and 
9321 \family sans
9322 Left
9323 \begin_inset space ~
9324 \end_inset
9325
9326 Header
9327 \family default
9328  (top left).
9329 \end_layout
9330
9331 \begin_layout Subsubsection
9332 Unsupported 
9333 \family sans
9334 Foil\SpecialChar TeX
9335
9336 \family default
9337  Goodies
9338 \begin_inset CommandInset label
9339 LatexCommand label
9340 name "sec:unsuppfoils"
9341
9342 \end_inset
9343
9344
9345 \end_layout
9346
9347 \begin_layout Standard
9348 All the commands mentioned below need to be set in a 
9349 \family sans
9350 \SpecialChar LaTeX
9351
9352 \family default
9353  environment or as 
9354 \family sans
9355 \SpecialChar TeX
9356
9357 \family default
9358  within another environment.
9359 \end_layout
9360
9361 \begin_layout Paragraph
9362 Lengths
9363 \end_layout
9364
9365 \begin_layout Standard
9366 All lengths are adjusted using the 
9367 \family typewriter
9368
9369 \backslash
9370 setlength{
9371 \family default
9372 \emph on
9373 lengthname
9374 \family typewriter
9375 \emph default
9376 }{
9377 \family default
9378 \emph on
9379 newlength
9380 \family typewriter
9381 \emph default
9382 }
9383 \family default
9384  command.
9385  Where 
9386 \emph on
9387 lengthname
9388 \emph default
9389  should be replaced by the name given to the length you want to change and
9390  
9391 \emph on
9392 newlength
9393 \emph default
9394  is the length value.
9395  All lengths should be specified in units of length such as inches (
9396 \family typewriter
9397 in
9398 \family default
9399 ), millimeters (
9400 \family typewriter
9401 mm
9402 \family default
9403 ) or points (
9404 \family typewriter
9405 pt
9406 \family default
9407 ) or relative to some document or font-based length such as 
9408 \family typewriter
9409
9410 \backslash
9411 textwidth
9412 \family default
9413 .
9414  
9415 \end_layout
9416
9417 \begin_layout Standard
9418 It's possible to change the spacing between a foilhead and the body of the
9419  foil by adjusting the length specified by 
9420 \family typewriter
9421
9422 \backslash
9423 foilheadskip
9424 \family default
9425 .
9426  For example, to make 
9427 \emph on
9428 all
9429 \emph default
9430  foilheads 0.5
9431 \begin_inset space \space{}
9432 \end_inset
9433
9434 in closer to their bodies put the following in the preamble: 
9435 \family typewriter
9436
9437 \backslash
9438 setlength{
9439 \backslash
9440 foilheadskip}{-0.5in}
9441 \end_layout
9442
9443 \begin_layout Standard
9444 The spacings around floats can be adjusted by setting these lengths:
9445 \end_layout
9446
9447 \begin_layout Labeling
9448 \labelwidthstring MMMMMMMMMMM
9449
9450 \family typewriter
9451
9452 \backslash
9453 abovefloatskip
9454 \family default
9455  Separation between the text and the top of the float
9456 \end_layout
9457
9458 \begin_layout Labeling
9459 \labelwidthstring MMMMMMMMMMM
9460
9461 \family typewriter
9462
9463 \backslash
9464 abovecaptionskip
9465 \family default
9466  Separation between the float and the caption
9467 \end_layout
9468
9469 \begin_layout Labeling
9470 \labelwidthstring MMMMMMMMMMM
9471
9472 \family typewriter
9473
9474 \backslash
9475 belowcaptionskip
9476 \family default
9477  Separation between the caption and the following text
9478 \end_layout
9479
9480 \begin_layout Labeling
9481 \labelwidthstring MMMMMMMMMMM
9482
9483 \family typewriter
9484
9485 \backslash
9486 captionwidth
9487 \family default
9488  You can make the captions narrower than the surrounding text by adjusting
9489  this length.
9490  Best done relative to 
9491 \family typewriter
9492
9493 \backslash
9494 textwidth
9495 \family default
9496 .
9497 \end_layout
9498
9499 \begin_layout Standard
9500 There are also several title page related lengths that you may find useful
9501  if you have a long title or several authors:
9502 \end_layout
9503
9504 \begin_layout Labeling
9505 \labelwidthstring MMMMMMMMMMM
9506
9507 \family typewriter
9508
9509 \backslash
9510 abovetitleskip
9511 \family default
9512  Separation from headers to 
9513 \family sans
9514 Title
9515 \end_layout
9516
9517 \begin_layout Labeling
9518 \labelwidthstring MMMMMMMMMMM
9519
9520 \family typewriter
9521
9522 \backslash
9523 titleauthorskip
9524 \family default
9525  between 
9526 \family sans
9527 Title
9528 \family default
9529  and 
9530 \family sans
9531 Author
9532 \family default
9533  environments
9534 \end_layout
9535
9536 \begin_layout Labeling
9537 \labelwidthstring MMMMMMMMMMM
9538
9539 \family typewriter
9540
9541 \backslash
9542 authorauthorskip
9543 \family default
9544  between multiple 
9545 \family sans
9546 Author
9547 \family default
9548  lines
9549 \end_layout
9550
9551 \begin_layout Labeling
9552 \labelwidthstring MMMMMMMMMMM
9553
9554 \family typewriter
9555
9556 \backslash
9557 authordateskip
9558 \family default
9559  between the 
9560 \family sans
9561 Author
9562 \family default
9563  and the 
9564 \family sans
9565 Date
9566 \end_layout
9567
9568 \begin_layout Labeling
9569 \labelwidthstring MMMMMMMMMMM
9570
9571 \family typewriter
9572
9573 \backslash
9574 dateabstractskip
9575 \family default
9576  between the 
9577 \family sans
9578 Date
9579 \family default
9580  and the 
9581 \family sans
9582 Abstract
9583 \end_layout
9584
9585 \begin_layout Standard
9586 The last length related command affects all the list environments.
9587  If you place 
9588 \family typewriter
9589
9590 \backslash
9591 zerolistvertdimens
9592 \family default
9593  
9594 \emph on
9595 inside
9596 \emph default
9597  a list environment then all the vertical spacing between the list items
9598  is removed.
9599  Note that this is a command not a length so it doesn't require 
9600 \family typewriter
9601
9602 \backslash
9603 setlength
9604 \family default
9605  like the stuff mentioned above.
9606 \end_layout
9607
9608 \begin_layout Paragraph
9609 Headers and Footers
9610 \end_layout
9611
9612 \begin_layout Standard
9613 The 
9614 \family typewriter
9615
9616 \backslash
9617 LogoOn
9618 \family default
9619  and 
9620 \family typewriter
9621
9622 \backslash
9623 LogoOff
9624 \family default
9625  commands control whether the logo in the 
9626 \family sans
9627 MyLogo
9628 \family default
9629  definition appear on a given page.
9630  If you put 
9631 \family typewriter
9632
9633 \backslash
9634 LogoOff
9635 \family default
9636  in the preamble then none of the foils will have the logo on them.
9637  If you don't want the logo on a particular page place the 
9638 \family typewriter
9639
9640 \backslash
9641 LogoOff
9642 \family default
9643  directly after the foilhead of that page and the 
9644 \family typewriter
9645
9646 \backslash
9647 LogoOn
9648 \family default
9649  directly after the next foilhead.
9650 \end_layout
9651
9652 \begin_layout Standard
9653 If you decide to use the 
9654 \family sans
9655 fancy
9656 \family default
9657  page style setting in the 
9658 \family sans
9659 Document
9660 \begin_inset space ~
9661 \end_inset
9662
9663 Layout
9664 \family default
9665  dialog you should probably add 
9666 \family typewriter
9667
9668 \backslash
9669 let
9670 \backslash
9671 headwidth
9672 \backslash
9673 textwidth
9674 \family default
9675  to your preamble so headers and footers on landscape pages are correctly
9676  placed when rotated.
9677  This is due to some clashes between the page layouts provided by the 
9678 \family sans
9679 fancyheadings
9680 \family default
9681  package and the 
9682 \family sans
9683 foils
9684 \family default
9685  class.
9686 \end_layout
9687
9688 \begin_layout Subsection
9689 Slides [aka 
9690 \noun on
9691 Sli\SpecialChar TeX
9692
9693 \noun default
9694 ]
9695 \begin_inset CommandInset label
9696 LatexCommand label
9697 name "sec:slitex"
9698
9699 \end_inset
9700
9701
9702 \end_layout
9703
9704 \begin_layout Standard
9705 by 
9706 \noun on
9707 John Weiss
9708 \noun default
9709  
9710 \end_layout
9711
9712 \begin_layout Subsubsection
9713 Introduction
9714 \end_layout
9715
9716 \begin_layout Standard
9717 This section describes how to use \SpecialChar LyX
9718  to make slides for overhead projectors.
9719  There are two document classes that can do this: the default slides class
9720  and the 
9721 \family sans
9722 Foil\SpecialChar TeX
9723
9724 \family default
9725  slides class.
9726  This section documents the former.
9727 \end_layout
9728
9729 \begin_layout Standard
9730 I'm going to say this again, nice and clear, so that there's no misunderstanding
9731 :
9732 \end_layout
9733
9734 \begin_layout Standard
9735 \begin_inset VSpace bigskip
9736 \end_inset
9737
9738
9739 \end_layout
9740
9741 \begin_layout Standard
9742 \align center
9743
9744 \size large
9745 This section documents the class 
9746 \begin_inset Quotes eld
9747 \end_inset
9748
9749
9750 \family sans
9751 slides (default)
9752 \family default
9753
9754 \begin_inset Quotes erd
9755 \end_inset
9756
9757  
9758 \emph on
9759 only.
9760 \end_layout
9761
9762 \begin_layout Standard
9763 \begin_inset VSpace bigskip
9764 \end_inset
9765
9766
9767 \end_layout
9768
9769 \begin_layout Standard
9770 If you're looking for the documentation for 
9771 \begin_inset Quotes eld
9772 \end_inset
9773
9774
9775 \family sans
9776 slides (Foil\SpecialChar TeX
9777 )
9778 \family default
9779
9780 \begin_inset Quotes erd
9781 \end_inset
9782
9783 , check out section
9784 \begin_inset space ~
9785 \end_inset
9786
9787
9788 \begin_inset CommandInset ref
9789 LatexCommand ref
9790 reference "sec:foiltex"
9791
9792 \end_inset
9793
9794 .
9795  The 
9796 \family sans
9797 foils
9798 \family default
9799  class [
9800 \begin_inset Quotes eld
9801 \end_inset
9802
9803
9804 \family sans
9805 slides (Foil\SpecialChar TeX
9806 )
9807 \family default
9808
9809 \begin_inset Quotes erd
9810 \end_inset
9811
9812 ] is actually somewhat better than the default 
9813 \family sans
9814 slides
9815 \family default
9816  class,
9817 \begin_inset Foot
9818 status collapsed
9819
9820 \begin_layout Plain Layout
9821 \SpecialChar ldots
9822 or so I've been told repeatedly by its advocates.
9823  Having never used it, I have no idea if this claim is true or not.
9824 \end_layout
9825
9826 \end_inset
9827
9828  which this section documents.
9829 \end_layout
9830
9831 \begin_layout Standard
9832 This class is the \SpecialChar LaTeX2e
9833  improvement of the old 
9834 \noun on
9835 Sli\SpecialChar TeX
9836
9837 \noun default
9838  package.
9839  Every \SpecialChar LaTeX2e
9840  distribution includes this class [which I'll just refer to as 
9841 \begin_inset Quotes eld
9842 \end_inset
9843
9844
9845 \family sans
9846 slides
9847 \family default
9848
9849 \begin_inset Quotes erd
9850 \end_inset
9851
9852  from now on], so you're bound to have it.
9853  As I noted earlier, there are other classes, such as 
9854 \family sans
9855 foils
9856 \family default
9857 , which also produce slides for overhead projectors and do a better job
9858  at it.
9859  However, there are some things which 
9860 \family sans
9861 slides
9862 \family default
9863  can do which the others can't, such as generate overlays.
9864  Read on to learn more!
9865 \end_layout
9866
9867 \begin_layout Subsubsection
9868 Getting Started
9869 \begin_inset CommandInset label
9870 LatexCommand label
9871 name "sec:slidesetup"
9872
9873 \end_inset
9874
9875
9876 \end_layout
9877
9878 \begin_layout Standard
9879 Obviously, to use this document class, you need to select 
9880 \begin_inset Quotes eld
9881 \end_inset
9882
9883
9884 \family sans
9885 slides (default)
9886 \family default
9887
9888 \begin_inset Quotes erd
9889 \end_inset
9890
9891  from the class list in the 
9892 \family sans
9893 Document\SpecialChar menuseparator
9894 Settings
9895 \family default
9896  dialog.
9897  There are some other special things you should know about this class:
9898 \end_layout
9899
9900 \begin_layout Itemize
9901 Don't bother changing the options 
9902 \family sans
9903 Sides and Columns
9904 \family default
9905 .
9906  They're not supported by the 
9907 \family sans
9908 slides
9909 \family default
9910  class, anyways.
9911 \end_layout
9912
9913 \begin_layout Itemize
9914 The option 
9915 \family sans
9916 Page
9917 \begin_inset space ~
9918 \end_inset
9919
9920 style
9921 \family default
9922  behaves a bit differently for this class.
9923  The possible choices and what they do are as follows:
9924 \end_layout
9925
9926 \begin_deeper
9927 \begin_layout Description
9928
9929 \family sans
9930 plain
9931 \family default
9932  The final output contains page numbers in the lower right corner.
9933 \end_layout
9934
9935 \begin_layout Description
9936
9937 \family sans
9938 headings
9939 \family default
9940  Like 
9941 \family sans
9942 plain
9943 \family default
9944 , but also prints out any time markers you've put in.
9945  This is the default.
9946 \end_layout
9947
9948 \begin_layout Description
9949
9950 \family sans
9951 empty
9952 \family default
9953  The final output contains no page numbers, time markers, or alignment markers.
9954 \end_layout
9955
9956 \end_deeper
9957 \begin_layout Itemize
9958 The 
9959 \family sans
9960 slides
9961 \family default
9962  class has an extra option: 
9963 \family typewriter
9964 clock
9965 \family default
9966 .
9967  To use it, put 
9968 \begin_inset Quotes eld
9969 \end_inset
9970
9971
9972 \family typewriter
9973 clock
9974 \family default
9975
9976 \begin_inset Quotes erd
9977 \end_inset
9978
9979  in the extra class options.
9980 \end_layout
9981
9982 \begin_deeper
9983 \begin_layout Standard
9984 Using this options allows you to add time markers to 
9985 \family sans
9986 Note
9987 \family default
9988 s.
9989  See section
9990 \begin_inset space ~
9991 \end_inset
9992
9993
9994 \begin_inset CommandInset ref
9995 LatexCommand ref
9996 reference "sec:slideNote"
9997
9998 \end_inset
9999
10000  for more details.
10001 \end_layout
10002
10003 \end_deeper
10004 \begin_layout Standard
10005 You can also use the template file 
10006 \begin_inset Quotes eld
10007 \end_inset
10008
10009
10010 \family typewriter
10011 slides.lyx
10012 \family default
10013
10014 \begin_inset Quotes erd
10015 \end_inset
10016
10017  to automatically set up a document to use the 
10018 \family sans
10019 slides
10020 \family default
10021  class [using 
10022 \family sans
10023 File\SpecialChar menuseparator
10024 New
10025 \begin_inset space ~
10026 \end_inset
10027
10028 from
10029 \begin_inset space ~
10030 \end_inset
10031
10032 Template
10033 \family default
10034  to open your new document].
10035  The template file also contains some examples of the special paragraph
10036  environments used by this class.
10037  I'll describe those next.
10038 \end_layout
10039
10040 \begin_layout Subsubsection
10041 Paragraph Environments
10042 \end_layout
10043
10044 \begin_layout Paragraph
10045 Supported Environments
10046 \end_layout
10047
10048 \begin_layout Standard
10049 The first thing you'll notice when you start up a new 
10050 \family sans
10051 slides
10052 \family default
10053  document is the font size and type: it's the equivalent of the size 
10054 \begin_inset Quotes eld
10055 \end_inset
10056
10057
10058 \family sans
10059 Largest
10060 \family default
10061
10062 \begin_inset Quotes erd
10063 \end_inset
10064
10065  in the 
10066 \family sans
10067 Sans
10068 \begin_inset space ~
10069 \end_inset
10070
10071 Serif
10072 \family default
10073  font.
10074  This is also what's used in the output.
10075  Think of this as a 
10076 \begin_inset Quotes eld
10077 \end_inset
10078
10079 visual cue
10080 \begin_inset Quotes erd
10081 \end_inset
10082
10083  to remind you that this is a slide.
10084  Your final slides will use a larger font; ergo, you'll have less space.
10085  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10086 \end_layout
10087
10088 \begin_layout Standard
10089 The next thing that becomes obvious is the changes to the paragraph environment
10090  pull-down box [at the far-left end of the toolbar].
10091  Most of the paragraph environments you're used to seeing are missing.
10092  There are also five new ones.
10093  That's because the 
10094 \family sans
10095 slides
10096 \family default
10097  class itself only supports certain paragraph environments:
10098 \end_layout
10099
10100 \begin_layout Itemize
10101
10102 \family sans
10103 Standard
10104 \end_layout
10105
10106 \begin_layout Itemize
10107
10108 \family sans
10109 Itemize
10110 \end_layout
10111
10112 \begin_layout Itemize
10113
10114 \family sans
10115 Enumerate
10116 \end_layout
10117
10118 \begin_layout Itemize
10119
10120 \family sans
10121 Description
10122 \end_layout
10123
10124 \begin_layout Itemize
10125
10126 \family sans
10127 List
10128 \end_layout
10129
10130 \begin_layout Itemize
10131
10132 \family sans
10133 Quotation
10134 \end_layout
10135
10136 \begin_layout Itemize
10137
10138 \family sans
10139 Quote
10140 \end_layout
10141
10142 \begin_layout Itemize
10143
10144 \family sans
10145 Verse
10146 \end_layout
10147
10148 \begin_layout Itemize
10149
10150 \family sans
10151 Caption
10152 \end_layout
10153
10154 \begin_layout Itemize
10155
10156 \family sans
10157 \SpecialChar LyX
10158 -Code
10159 \end_layout
10160
10161 \begin_layout Standard
10162 All of the other standard environments, including the section-heading environmen
10163 ts, aren't used in the 
10164 \family sans
10165 slides
10166 \family default
10167  class.
10168 \end_layout
10169
10170 \begin_layout Standard
10171 On the other hand, you'll notice the following new environments:
10172 \end_layout
10173
10174 \begin_layout Itemize
10175
10176 \family sans
10177 Slide
10178 \end_layout
10179
10180 \begin_layout Itemize
10181
10182 \family sans
10183 Overlay
10184 \end_layout
10185
10186 \begin_layout Itemize
10187
10188 \family sans
10189 Note
10190 \end_layout
10191
10192 \begin_layout Itemize
10193
10194 \family sans
10195 InvisibleText
10196 \end_layout
10197
10198 \begin_layout Itemize
10199
10200 \family sans
10201 VisibleText
10202 \end_layout
10203
10204 \begin_layout Standard
10205 These five are kind of quirky, due to a 
10206 \begin_inset Quotes eld
10207 \end_inset
10208
10209 feature
10210 \begin_inset Quotes erd
10211 \end_inset
10212
10213  in \SpecialChar LyX
10214 .
10215  You see, \SpecialChar LyX
10216  doesn't permit you to nest any other paragraph environment into
10217  an empty environment.
10218  Now, that's fine and dandy, but it means that you wouldn't be able to start
10219  a slide with anything except plain text.
10220  To deal with this, I've performed a little 
10221 \begin_inset Quotes eld
10222 \end_inset
10223
10224 \SpecialChar LaTeX
10225  magic.
10226 \begin_inset Quotes erd
10227 \end_inset
10228
10229  
10230 \end_layout
10231
10232 \begin_layout Paragraph
10233 Quirks of the New Environments
10234 \begin_inset CommandInset label
10235 LatexCommand label
10236 name "sec:slideQuirk"
10237
10238 \end_inset
10239
10240
10241 \end_layout
10242
10243 \begin_layout Standard
10244 All five of the new paragraph environments are somewhat quirky due to inherent
10245  limitiations in the current version of \SpecialChar LyX
10246 .
10247  As I just mentioned, \SpecialChar LyX
10248  forbids environments that begin with another environment.
10249  To get around this, the 
10250 \family sans
10251 Slide
10252 \family default
10253  environment isn't a paragraph environment as described in the 
10254 \emph on
10255 User's Guide
10256 \emph default
10257 .
10258  
10259 \end_layout
10260
10261 \begin_layout Standard
10262 You should consider 
10263 \family sans
10264 Slide
10265 \family default
10266
10267 \family sans
10268 Overlay
10269 \family default
10270 , and 
10271 \family sans
10272 Note
10273 \family default
10274  to be 
10275 \begin_inset Quotes eld
10276 \end_inset
10277
10278 pseudo-environments.
10279 \begin_inset Quotes erd
10280 \end_inset
10281
10282  They look like a section heading or a 
10283 \begin_inset Quotes eld
10284 \end_inset
10285
10286
10287 \family sans
10288 Caption
10289 \family default
10290 ,
10291 \begin_inset Quotes erd
10292 \end_inset
10293
10294  but really begin a [and, if necessary, end the previous] paragraph environment.
10295  Likewise, treat 
10296 \family sans
10297 InvisibleText
10298 \family default
10299  and 
10300 \family sans
10301 VisibleText
10302 \family default
10303  as 
10304 \begin_inset Quotes eld
10305 \end_inset
10306
10307 pseudo-commands.
10308 \begin_inset Quotes erd
10309 \end_inset
10310
10311  These two perform some action.
10312 \end_layout
10313
10314 \begin_layout Standard
10315 A common feature of all five environments, 
10316 \family sans
10317 Slide
10318 \family default
10319
10320 \family sans
10321 Overlay
10322 \family default
10323
10324 \family sans
10325 Note
10326 \family default
10327
10328 \family sans
10329 InvisibleText
10330 \family default
10331  and 
10332 \family sans
10333 VisibleText
10334 \family default
10335 , is a rather long-ish label.
10336  The text following this label — ordinarily the contents of the paragraph
10337  environment — is utterly irrelevant for 
10338 \family sans
10339 Slide
10340 \family default
10341
10342 \family sans
10343 Overlay
10344 \family default
10345
10346 \family sans
10347 Note
10348 \family default
10349
10350 \family sans
10351 InvisibleText
10352 \family default
10353  and 
10354 \family sans
10355 VisibleText
10356 \family default
10357 .
10358  \SpecialChar LyX
10359  completely ignores it.
10360  In fact, you can leave these five environments completely empty.
10361  
10362 \end_layout
10363
10364 \begin_layout Standard
10365 While you don't 
10366 \emph on
10367 have
10368 \emph default
10369  to put any text after the rather long-ish label, you might want to.
10370  This could be a short description of the contents of the 
10371 \family sans
10372 Slide
10373 \family default
10374 , for example.
10375  In that case, enter your descriptive comment and hit 
10376 \family sans
10377 Return
10378 \family default
10379  as you normally would.
10380 \end_layout
10381
10382 \begin_layout Standard
10383 If, on the other hand, you don't want to enter any descriptive text, you'll
10384  hit another \SpecialChar LyX
10385  quirk.
10386  \SpecialChar LyX
10387 , like nature, abhors a vacuum, and will not let you start a new paragraph
10388  environment until you put something in the old one.
10389  So, do this:
10390 \end_layout
10391
10392 \begin_layout Itemize
10393 Start entering the text that will 
10394 \emph on
10395 follow
10396 \emph default
10397  the new 
10398 \family sans
10399 Slide
10400 \family default
10401
10402 \family sans
10403 Overlay
10404 \family default
10405
10406 \family sans
10407 Note
10408 \family default
10409
10410 \family sans
10411 InvisibleText
10412 \family default
10413  or 
10414 \family sans
10415 VisibleText
10416 \family default
10417 .
10418  
10419 \end_layout
10420
10421 \begin_layout Itemize
10422 Now move to the beginning of that paragraph.
10423  
10424 \end_layout
10425
10426 \begin_layout Itemize
10427 Next, hit 
10428 \family sans
10429 Return
10430 \family default
10431 .
10432  
10433 \end_layout
10434
10435 \begin_layout Itemize
10436 Finally, change this new, empty paragraph to a 
10437 \family sans
10438 Slide
10439 \family default
10440
10441 \family sans
10442 Overlay
10443 \family default
10444
10445 \family sans
10446 Note
10447 \family default
10448
10449 \family sans
10450 InvisibleText
10451 \family default
10452  or 
10453 \family sans
10454 VisibleText
10455 \family default
10456 .
10457  
10458 \end_layout
10459
10460 \begin_layout Standard
10461 Some future version of \SpecialChar LyX
10462  will, hopefully, resolve this quirkiness\SpecialChar ldots
10463
10464 \end_layout
10465
10466 \begin_layout Subsubsection
10467 Making a Presentation with 
10468 \family sans
10469 Slide
10470 \family default
10471
10472 \family sans
10473 Overlay
10474 \family default
10475  and 
10476 \family sans
10477 Note
10478 \end_layout
10479
10480 \begin_layout Paragraph
10481 Using the 
10482 \family sans
10483 Slide
10484 \family default
10485  Environment
10486 \end_layout
10487
10488 \begin_layout Standard
10489 If you're expecting this section to teach you how to actually make a presentatio
10490 n, you'll be sorely disappointed.
10491  Naturally, I'll describe all of the ways the 
10492 \family sans
10493 slides
10494 \family default
10495  class can assist you in preparing the materials for a presentation.
10496  Filling in the contents, however, is up to you.
10497  [Then again, that 
10498 \emph on
10499 is
10500 \emph default
10501  the \SpecialChar LyX
10502  philosophy.]
10503 \end_layout
10504
10505 \begin_layout Standard
10506 Choosing the 
10507 \family sans
10508 Slide
10509 \family default
10510  environment [in the manner described in section
10511 \begin_inset space ~
10512 \end_inset
10513
10514
10515 \begin_inset CommandInset ref
10516 LatexCommand ref
10517 reference "sec:slideQuirk"
10518
10519 \end_inset
10520
10521 ] tells \SpecialChar LyX
10522  to begin a new slide [duh].
10523  The label for this environment/
10524 \begin_inset Quotes erd
10525 \end_inset
10526
10527 pseudo-command
10528 \begin_inset Quotes erd
10529 \end_inset
10530
10531  is an 
10532 \begin_inset Quotes eld
10533 \end_inset
10534
10535 ASCII line,
10536 \begin_inset Quotes erd
10537 \end_inset
10538
10539  in cool blue, followed by the label, 
10540 \begin_inset Quotes eld
10541 \end_inset
10542
10543 NewSlide:
10544 \begin_inset Quotes erd
10545 \end_inset
10546
10547 .
10548  Any text or paragraph environments that follow this one go on the new slide.
10549  It's that simple.
10550 \end_layout
10551
10552 \begin_layout Standard
10553 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10554
10555  (this can be specified in the 
10556 \family sans
10557 Paragraph Layout
10558 \family default
10559  dialog).
10560  In fact, you'll want to, once you finish entering the contents of one slide.
10561  If you've entered more text than can physically fit on a slide, the extra
10562  overflows onto a new slide.
10563  I don't recommend doing this, however, since the overflow slide won't have
10564  any page number on it.
10565  Furthermore, it may interfere with any 
10566 \family sans
10567 Overlay
10568 \family default
10569  you've made to accompany the oversized 
10570 \family sans
10571 Slide
10572 \family default
10573 .
10574 \end_layout
10575
10576 \begin_layout Standard
10577 The 
10578 \family sans
10579 Overlay
10580 \family default
10581  and 
10582 \family sans
10583 Note
10584 \family default
10585  environments work the same way as the 
10586 \family sans
10587 Slide
10588 \family default
10589  environment.
10590  They both create an 
10591 \begin_inset Quotes eld
10592 \end_inset
10593
10594 ASCII line
10595 \begin_inset Quotes erd
10596 \end_inset
10597
10598  followed by a label [
10599 \begin_inset Quotes eld
10600 \end_inset
10601
10602 NewOverlay:
10603 \begin_inset Quotes erd
10604 \end_inset
10605
10606  and 
10607 \begin_inset Quotes eld
10608 \end_inset
10609
10610 NewNote:
10611 \begin_inset Quotes erd
10612 \end_inset
10613
10614 , respectively].
10615  The color is a stunning magenta instead of blue, and the 
10616 \begin_inset Quotes eld
10617 \end_inset
10618
10619 ASCII line
10620 \begin_inset Quotes erd
10621 \end_inset
10622
10623  will look different, in style and in length.
10624  The label fonts of all three also differ from one another.
10625 \end_layout
10626
10627 \begin_layout Standard
10628 As with a 
10629 \family sans
10630 Slide
10631 \family default
10632 , if the contents of a 
10633 \family sans
10634 Note
10635 \family default
10636  or 
10637 \family sans
10638 Overlay
10639 \family default
10640  exceed the physical size of a slide or sheet of paper, the extra will overflow
10641  onto a new sheet.
10642  Again, you should avoid this.
10643  It defeats the whole purpose of 
10644 \family sans
10645 Note
10646 \family default
10647 s and 
10648 \family sans
10649 Overlay
10650 \family default
10651 s.
10652 \end_layout
10653
10654 \begin_layout Paragraph
10655 Using 
10656 \family sans
10657 Overlay
10658 \family default
10659  with 
10660 \family sans
10661 Slide
10662 \end_layout
10663
10664 \begin_layout Standard
10665 The idea behind an 
10666 \family sans
10667 Overlay
10668 \family default
10669  is a slide that sits atop another slide.
10670  Perhaps you wish to discuss a figure on the main 
10671 \family sans
10672 Slide
10673 \family default
10674  before displaying the text associated with it.
10675  One way to accomplish this is tape a flap of dark paper over the part of
10676  the 
10677 \family sans
10678 Slide
10679 \family default
10680  you want to display later.
10681  This method fails, however, if you wish to overlap one graph with another,
10682  for example.
10683  You would then have to fumble while speaking to align the two separate,
10684  overlapping 
10685 \family sans
10686 Slide
10687 \family default
10688 s to align the two graphs.
10689  The use of an 
10690 \family sans
10691 Overlay
10692 \family default
10693  environment in both cases makes life much easier.
10694 \end_layout
10695
10696 \begin_layout Standard
10697 Each 
10698 \family sans
10699 Overlay
10700 \family default
10701  receives the page number of its 
10702 \begin_inset Quotes eld
10703 \end_inset
10704
10705 parent
10706 \begin_inset Quotes erd
10707 \end_inset
10708
10709  
10710 \family sans
10711 Slide
10712 \family default
10713 , appended by 
10714 \begin_inset Quotes eld
10715 \end_inset
10716
10717
10718 \family typewriter
10719 -a
10720 \family default
10721
10722 \begin_inset Quotes erd
10723 \end_inset
10724
10725 .
10726 \begin_inset Foot
10727 status collapsed
10728
10729 \begin_layout Plain Layout
10730 Presumably, mutliple 
10731 \family sans
10732 Overlay
10733 \family default
10734 s would have 
10735 \begin_inset Quotes eld
10736 \end_inset
10737
10738
10739 \family typewriter
10740 -a
10741 \family default
10742
10743 \begin_inset Quotes erd
10744 \end_inset
10745
10746
10747 \begin_inset Quotes eld
10748 \end_inset
10749
10750
10751 \family typewriter
10752 -b
10753 \family default
10754
10755 \begin_inset Quotes erd
10756 \end_inset
10757
10758
10759 \begin_inset Quotes eld
10760 \end_inset
10761
10762
10763 \family typewriter
10764 -c
10765 \family default
10766
10767 \begin_inset Quotes erd
10768 \end_inset
10769
10770 , etc.
10771 \begin_inset space ~
10772 \end_inset
10773
10774 appended to the page number of the parent 
10775 \family sans
10776 Slide
10777 \family default
10778 .
10779  
10780 \end_layout
10781
10782 \end_inset
10783
10784  Clearly, you want the contents of both the 
10785 \family sans
10786 Slide
10787 \family default
10788  and the 
10789 \family sans
10790 Overlay
10791 \family default
10792  to each fit on a single physical slide! You should probably consider an
10793  
10794 \family sans
10795 Overlay
10796 \family default
10797  as 
10798 \begin_inset Quotes eld
10799 \end_inset
10800
10801 part of
10802 \begin_inset Quotes erd
10803 \end_inset
10804
10805  a 
10806 \family sans
10807 Slide
10808 \family default
10809 .
10810  Indeed, the \SpecialChar LyX
10811  
10812 \family sans
10813 slides
10814 \family default
10815  class provides a visual cue for this: the label at the start of an 
10816 \family sans
10817 Overlay
10818 \family default
10819  is shorter than that at the start of a 
10820 \family sans
10821 Slide
10822 \family default
10823 .
10824  Lastly, when you generate printable output, you'll find alignment markers
10825  in all four corners of both the 
10826 \family sans
10827 Overlay
10828 \family default
10829  page and its parent 
10830 \family sans
10831 Slide
10832 \family default
10833 .
10834  These will assist you in lining up the two physical slides.
10835 \end_layout
10836
10837 \begin_layout Standard
10838 The major problem in overlaying two slides is aligning the contents of the
10839  two transparencies.
10840  How much space should you leave for that graph on the second slide? Worse
10841  still, what if you want a graph and a sentence on second slide, but there
10842  is text on the main transparency that goes in between them? You could try
10843  and insert vertical space of the right size.
10844  The better way is to use 
10845 \family sans
10846 InvisibleText
10847 \family default
10848  and 
10849 \family sans
10850 VisibleText
10851 \family default
10852 .
10853 \end_layout
10854
10855 \begin_layout Standard
10856 As their names imply, 
10857 \family sans
10858 InvisibleText
10859 \family default
10860  and 
10861 \family sans
10862 VisibleText
10863 \family default
10864  are two command-like paragraph environments that make all subsequent text
10865  invisible and visible, respectively.
10866  Note from section
10867 \begin_inset space ~
10868 \end_inset
10869
10870
10871 \begin_inset CommandInset ref
10872 LatexCommand ref
10873 reference "sec:slideQuirk"
10874
10875 \end_inset
10876
10877  that you don't place anything 
10878 \emph on
10879 into
10880 \emph default
10881  these two environments, however.
10882  When you create an 
10883 \family sans
10884 InvisibleText
10885 \family default
10886 , it inserts a centered, sky-blue label into the page reading 
10887 \begin_inset Quotes eld
10888 \end_inset
10889
10890 <Invisible Text Follows>
10891 \begin_inset Quotes erd
10892 \end_inset
10893
10894 .
10895  For paragraphs following this label, the parts of the 
10896 \family sans
10897 Slide
10898 \family default
10899  [or 
10900 \family sans
10901 Overlay
10902 \family default
10903 ; it doesn't matter which] where they would be contain instead blank space.
10904  
10905 \end_layout
10906
10907 \begin_layout Standard
10908 For 
10909 \family sans
10910 VisibleText
10911 \family default
10912 , the corresponding centered label is 
10913 \begin_inset Quotes eld
10914 \end_inset
10915
10916 <Visible Text Follows>
10917 \begin_inset Quotes erd
10918 \end_inset
10919
10920  in blazing green.
10921  Paragraphs following this label behave normally.
10922  Note that the beginning of a new 
10923 \family sans
10924 Slide
10925 \family default
10926
10927 \family sans
10928 Overlay
10929 \family default
10930 , or 
10931 \family sans
10932 Note
10933 \family default
10934  automatically shuts off an 
10935 \family sans
10936 InvisibleText
10937 \family default
10938 .
10939  It's therefore not necessary to use 
10940 \family sans
10941 VisibleText
10942 \family default
10943  at the end of a 
10944 \family sans
10945 Slide
10946 \family default
10947 .
10948 \end_layout
10949
10950 \begin_layout Standard
10951 By now, it should be obvious how to create overlay transparencies using
10952  the proper combination of 
10953 \family sans
10954 InvisibleText
10955 \family default
10956  and 
10957 \family sans
10958 VisibleText
10959 \family default
10960  on a 
10961 \family sans
10962 Slide
10963 \family default
10964  and 
10965 \family sans
10966 Overlay
10967 \family default
10968 :
10969 \end_layout
10970
10971 \begin_layout Enumerate
10972 Create a 
10973 \family sans
10974 Slide
10975 \family default
10976 , including everything that will appear on it, whether on the main slide
10977  or on the 
10978 \family sans
10979 Overlay
10980 \family default
10981 .
10982 \end_layout
10983
10984 \begin_layout Enumerate
10985 Before each figure or paragraph that will appear only on the 
10986 \family sans
10987 Overlay
10988 \family default
10989 , insert an 
10990 \family sans
10991 InvisibleText
10992 \family default
10993  environment.
10994  If necessary, insert a 
10995 \family sans
10996 VisibleText
10997 \family default
10998  environment after the 
10999 \family sans
11000 Overlay
11001 \family default
11002 -only text.
11003 \end_layout
11004
11005 \begin_layout Enumerate
11006 Start an 
11007 \family sans
11008 Overlay
11009 \family default
11010  immediately following the 
11011 \family sans
11012 Slide
11013 \family default
11014 .
11015 \end_layout
11016
11017 \begin_layout Enumerate
11018 Copy the contents of this 
11019 \family sans
11020 Slide
11021 \family default
11022  into the 
11023 \family sans
11024 Overlay
11025 \family default
11026 .
11027 \end_layout
11028
11029 \begin_layout Enumerate
11030 Within the 
11031 \family sans
11032 Overlay
11033 \family default
11034 , change all of the 
11035 \family sans
11036 InvisibleText
11037 \family default
11038  lines to 
11039 \family sans
11040 VisibleText
11041 \family default
11042  and vice-versa.
11043 \end_layout
11044
11045 \begin_layout Standard
11046 That's it.
11047  You've just made an 
11048 \family sans
11049 Overlay
11050 \family default
11051 .
11052 \end_layout
11053
11054 \begin_layout Standard
11055 There's one problem with the way I've designed the \SpecialChar LyX
11056  
11057 \family sans
11058 slides
11059 \family default
11060  class: you can't make text in the middle of a paragraph invisible, nor
11061  make text in the middle of an invisible paragraph visible again.
11062  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11063  codes.
11064 \begin_inset Foot
11065 status collapsed
11066
11067 \begin_layout Plain Layout
11068 The commands of interest are: 
11069 \end_layout
11070
11071 \begin_layout Itemize
11072
11073 \family typewriter
11074 {
11075 \backslash
11076 invisible \SpecialChar ldots
11077  }
11078 \end_layout
11079
11080 \begin_layout Itemize
11081
11082 \family typewriter
11083 {
11084 \backslash
11085 visible \SpecialChar ldots
11086  }
11087 \end_layout
11088
11089 \begin_layout Plain Layout
11090 \SpecialChar ldots
11091 and need to be marked as \SpecialChar TeX
11092 .
11093  The text whose 
11094 \begin_inset Quotes eld
11095 \end_inset
11096
11097 visibility
11098 \begin_inset Quotes erd
11099 \end_inset
11100
11101  you wish to change goes in between the brackets [and after the 
11102 \family typewriter
11103
11104 \backslash
11105 invisible
11106 \family default
11107  or 
11108 \family typewriter
11109
11110 \backslash
11111 visible
11112 \family default
11113  command].
11114  If you don't know how to mark text as \SpecialChar TeX
11115 , see the appropriate section of
11116  the 
11117 \emph on
11118 User's Guide
11119 \emph default
11120 .
11121 \end_layout
11122
11123 \end_inset
11124
11125
11126 \end_layout
11127
11128 \begin_layout Paragraph
11129 Using 
11130 \family sans
11131 Note
11132 \family default
11133  with 
11134 \family sans
11135 Slide
11136 \family default
11137
11138 \begin_inset CommandInset label
11139 LatexCommand label
11140 name "sec:slideNote"
11141
11142 \end_inset
11143
11144
11145 \end_layout
11146
11147 \begin_layout Standard
11148 Like an 
11149 \family sans
11150 Overlay
11151 \family default
11152 , a 
11153 \family sans
11154 Note
11155 \family default
11156  is associated with a 
11157 \begin_inset Quotes eld
11158 \end_inset
11159
11160 parent
11161 \begin_inset Quotes erd
11162 \end_inset
11163
11164  
11165 \family sans
11166 Slide
11167 \family default
11168 .
11169  Here, too, the \SpecialChar LyX
11170  
11171 \family sans
11172 slides
11173 \family default
11174  class provides visual cues.
11175  The label for a 
11176 \family sans
11177 Note
11178 \family default
11179  is shorter than that of a 
11180 \family sans
11181 Slide
11182 \family default
11183  [yet longer than that of an 
11184 \family sans
11185 Overlay
11186 \family default
11187 ] and, like the label of an 
11188 \family sans
11189 Overlay
11190 \family default
11191  is shockingly magenta.
11192  Additionally, the printed 
11193 \family sans
11194 Note
11195 \family default
11196  has the page number of its 
11197 \begin_inset Quotes eld
11198 \end_inset
11199
11200 parent
11201 \begin_inset Quotes erd
11202 \end_inset
11203
11204  
11205 \family sans
11206 Slide
11207 \family default
11208 , appended by 
11209 \begin_inset Quotes eld
11210 \end_inset
11211
11212
11213 \family typewriter
11214 -
11215 \family default
11216 1
11217 \begin_inset Quotes erd
11218 \end_inset
11219
11220
11221 \begin_inset Quotes eld
11222 \end_inset
11223
11224
11225 \family typewriter
11226 -
11227 \family default
11228 2
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232
11233 \begin_inset Quotes eld
11234 \end_inset
11235
11236
11237 \family typewriter
11238 -
11239 \family default
11240 3
11241 \begin_inset Quotes erd
11242 \end_inset
11243
11244 , etc.
11245  You can have multiple 
11246 \family sans
11247 Note
11248 \family default
11249 s associated with a single 
11250 \family sans
11251 Slide
11252 \family default
11253 , and, as with 
11254 \family sans
11255 Slide
11256 \family default
11257  and 
11258 \family sans
11259 Overlay
11260 \family default
11261 , you'll probably want to break up long 
11262 \family sans
11263 Note
11264 \family default
11265 s so that they fit on a single sheet of paper.
11266 \end_layout
11267
11268 \begin_layout Standard
11269 The purpose of a 
11270 \family sans
11271 Note
11272 \family default
11273  is obvious: it contains anything additional you might want to say about
11274  a 
11275 \family sans
11276 Slide
11277 \family default
11278 .
11279  It could also be used as a sheet of reminders for a particular 
11280 \family sans
11281 Slide
11282 \family default
11283 .
11284  In the case of the latter, you might want to make use of time markers.
11285  Currently, the \SpecialChar LyX
11286  
11287 \family sans
11288 slides
11289 \family default
11290  class has no 
11291 \begin_inset Quotes eld
11292 \end_inset
11293
11294 native
11295 \begin_inset Quotes erd
11296 \end_inset
11297
11298  support for time markers, a 
11299 \noun on
11300 Sli\SpecialChar TeX
11301
11302 \noun default
11303  feature.
11304  So, you'll have to resort to using the \SpecialChar LaTeX
11305  codes.
11306 \end_layout
11307
11308 \begin_layout Standard
11309 To use time markers, you'll need to specify the extra class option 
11310 \begin_inset Quotes eld
11311 \end_inset
11312
11313
11314 \family typewriter
11315 clock
11316 \family default
11317
11318 \begin_inset Quotes erd
11319 \end_inset
11320
11321  [see section
11322 \begin_inset space ~
11323 \end_inset
11324
11325
11326 \begin_inset CommandInset ref
11327 LatexCommand ref
11328 reference "sec:slidesetup"
11329
11330 \end_inset
11331
11332 ].
11333  This option turns on timing marks, which will appear in the lower-left-hand
11334  corner of every 
11335 \family sans
11336 Note
11337 \family default
11338  you generate.
11339  To set what appears in the time marker, you use the \SpecialChar LaTeX
11340  commands 
11341 \begin_inset Quotes eld
11342 \end_inset
11343
11344
11345 \family typewriter
11346
11347 \backslash
11348 settime{}
11349 \family default
11350
11351 \begin_inset Quotes erd
11352 \end_inset
11353
11354  and 
11355 \begin_inset Quotes eld
11356 \end_inset
11357
11358
11359 \family typewriter
11360
11361 \backslash
11362 addtime{}
11363 \family default
11364
11365 \begin_inset Quotes erd
11366 \end_inset
11367
11368 .
11369  The arguments of both commands are time measured in seconds.
11370  
11371 \begin_inset Quotes eld
11372 \end_inset
11373
11374
11375 \family typewriter
11376
11377 \backslash
11378 settime{}
11379 \family default
11380
11381 \begin_inset Quotes erd
11382 \end_inset
11383
11384  sets the time marker to a given time.
11385  
11386 \begin_inset Quotes eld
11387 \end_inset
11388
11389
11390 \family typewriter
11391
11392 \backslash
11393 addtime{}
11394 \family default
11395
11396 \begin_inset Quotes erd
11397 \end_inset
11398
11399  increments the time marker by the specified amount.
11400  Using time markers and 
11401 \family sans
11402 Note
11403 \family default
11404 s in this fashion, you can remind yourself how much time to spend on a particula
11405
11406 \family sans
11407 Slide
11408 \family default
11409 .
11410 \end_layout
11411
11412 \begin_layout Standard
11413 There's one last feature to describe.
11414  Clearly, you'd like to print out all of your 
11415 \family sans
11416 Slide
11417 \family default
11418 s and 
11419 \family sans
11420 Overlay
11421 \family default
11422 s on transparencies while printing all of your 
11423 \family sans
11424 Note
11425 \family default
11426 s on plain paper.
11427  However, a 
11428 \family sans
11429 Note
11430 \family default
11431  
11432 \emph on
11433 must
11434 \emph default
11435  follow the 
11436 \family sans
11437 Slide
11438 \family default
11439  with which it is associated.
11440  What's a person to do?
11441 \end_layout
11442
11443 \begin_layout Standard
11444 Luckily, there are two \SpecialChar LaTeX
11445  commands that allow you to select what to print
11446  out.
11447  Both must be placed into the preamble of your document.
11448  The command 
11449 \begin_inset Quotes eld
11450 \end_inset
11451
11452
11453 \family typewriter
11454
11455 \backslash
11456 onlyslides{
11457 \backslash
11458 slides}
11459 \family default
11460
11461 \begin_inset Quotes erd
11462 \end_inset
11463
11464  will cause the output to contain only the 
11465 \family sans
11466 Slide
11467 \family default
11468 s and 
11469 \family sans
11470 Overlay
11471 \family default
11472 s.
11473  Correspondingly, the command 
11474 \begin_inset Quotes eld
11475 \end_inset
11476
11477
11478 \family typewriter
11479
11480 \backslash
11481 onlynotes{
11482 \backslash
11483 notes}
11484 \family default
11485
11486 \begin_inset Quotes erd
11487 \end_inset
11488
11489  prevents the output of anything but 
11490 \family sans
11491 Note
11492 \family default
11493 s.
11494  I'd advise placing both commands in the preamble and initially comment
11495  both out.
11496  You can then preview your entire presentation as you write.
11497  When you're done writing, you can then uncomment one of the two to select
11498  what you want to print.
11499  I like to uncomment 
11500 \begin_inset Quotes eld
11501 \end_inset
11502
11503
11504 \family typewriter
11505
11506 \backslash
11507 onlyslides{
11508 \backslash
11509 slides}
11510 \family default
11511
11512 \begin_inset Quotes erd
11513 \end_inset
11514
11515  , print to a file with 
11516 \begin_inset Quotes eld
11517 \end_inset
11518
11519
11520 \family typewriter
11521 -slides
11522 \family default
11523
11524 \begin_inset Quotes erd
11525 \end_inset
11526
11527  in its name, comment it back out, then uncomment 
11528 \begin_inset Quotes eld
11529 \end_inset
11530
11531
11532 \family typewriter
11533
11534 \backslash
11535 onlynotes{
11536 \backslash
11537 notes}
11538 \family default
11539
11540 \begin_inset Quotes erd
11541 \end_inset
11542
11543  and print to a 
11544 \begin_inset Quotes eld
11545 \end_inset
11546
11547
11548 \family typewriter
11549 *-notes.ps
11550 \family default
11551
11552 \begin_inset Quotes erd
11553 \end_inset
11554
11555  file.
11556  I can then send either file to a printer, loading transparencies or plain
11557  paper as appropriate.
11558 \end_layout
11559
11560 \begin_layout Standard
11561 You can also provide other arguments to the 
11562 \begin_inset Quotes eld
11563 \end_inset
11564
11565
11566 \family typewriter
11567
11568 \backslash
11569 onlyslides{}
11570 \family default
11571
11572 \begin_inset Quotes erd
11573 \end_inset
11574
11575  and 
11576 \begin_inset Quotes eld
11577 \end_inset
11578
11579
11580 \family typewriter
11581
11582 \backslash
11583 onlynotes{}
11584 \family default
11585
11586 \begin_inset Quotes erd
11587 \end_inset
11588
11589  commands.
11590  See a good \SpecialChar LaTeX
11591  book for details.
11592 \end_layout
11593
11594 \begin_layout Subsubsection
11595 The 
11596 \family sans
11597 slides
11598 \family default
11599  Class Template File
11600 \end_layout
11601
11602 \begin_layout Standard
11603 I have also provided a template file, 
11604 \begin_inset Quotes eld
11605 \end_inset
11606
11607
11608 \family typewriter
11609 slides.lyx
11610 \family default
11611
11612 \begin_inset Quotes erd
11613 \end_inset
11614
11615 , with the 
11616 \family sans
11617 slides
11618 \family default
11619  class.
11620  To use it, begin your new presentation with 
11621 \family sans
11622 File\SpecialChar menuseparator
11623 New
11624 \begin_inset space ~
11625 \end_inset
11626
11627 from
11628 \begin_inset space ~
11629 \end_inset
11630
11631 Template
11632 \family default
11633 .
11634  Your new \SpecialChar LyX
11635  presentation file will contain an example 
11636 \family sans
11637 Slide
11638 \family default
11639  – 
11640 \family sans
11641 Overlay
11642 \family default
11643  – 
11644 \family sans
11645 Note
11646 \family default
11647  triplet.
11648  The 
11649 \family sans
11650 Slide
11651 \family default
11652  and 
11653 \family sans
11654 Overlay
11655 \family default
11656  additionally contain an example of the use of 
11657 \family sans
11658 InvisibleText
11659 \family default
11660  and 
11661 \family sans
11662 VisibleText
11663 \family default
11664 .
11665  Lastly, the preamble will contain:
11666 \end_layout
11667
11668 \begin_layout LyX-Code
11669 % Uncomment to print out only slides and overlays
11670 \end_layout
11671
11672 \begin_layout LyX-Code
11673 %
11674 \end_layout
11675
11676 \begin_layout LyX-Code
11677 %
11678 \backslash
11679 onlyslides{
11680 \backslash
11681 slides}
11682 \begin_inset Newline newline
11683 \end_inset
11684
11685  
11686 \end_layout
11687
11688 \begin_layout LyX-Code
11689 % Uncomment to print out only notes
11690 \end_layout
11691
11692 \begin_layout LyX-Code
11693 %
11694 \end_layout
11695
11696 \begin_layout LyX-Code
11697 %
11698 \backslash
11699 onlynotes{
11700 \backslash
11701 notes}
11702 \end_layout
11703
11704 \begin_layout Standard
11705 One final thing: I created this class to support the \SpecialChar LaTeX2e
11706  
11707 \begin_inset Quotes eld
11708 \end_inset
11709
11710
11711 \noun on
11712 Sli\SpecialChar TeX
11713
11714 \noun default
11715  emulation
11716 \begin_inset Quotes erd
11717 \end_inset
11718
11719  class, one of the built-in \SpecialChar LaTeX2e
11720  classes.
11721  Neither I nor the rest of the \SpecialChar LyX
11722  Team endorse or oppose the use of this built-in
11723  slide class.
11724  It's here if you want it or need it.
11725  There exist other \SpecialChar LaTeX2e
11726  classes for creating presentations, such as the 
11727 \family sans
11728 Foils
11729 \family default
11730  class [see section
11731 \begin_inset space ~
11732 \end_inset
11733
11734
11735 \begin_inset CommandInset ref
11736 LatexCommand ref
11737 reference "sec:foiltex"
11738
11739 \end_inset
11740
11741 ] or the 
11742 \begin_inset Quotes eld
11743 \end_inset
11744
11745
11746 \family typewriter
11747 seminar
11748 \family default
11749
11750 \begin_inset Quotes erd
11751 \end_inset
11752
11753  package [present on some \SpecialChar TeX
11754  distributions].
11755  The latter is not yet supported under \SpecialChar LyX
11756 .
11757 \begin_inset Foot
11758 status collapsed
11759
11760 \begin_layout Plain Layout
11761 Perhaps you can take on the task\SpecialChar ldots
11762
11763 \end_layout
11764
11765 \end_inset
11766
11767  I know nothing about these other classes.
11768  Try them out to see what sort of alternative they provide.
11769 \end_layout
11770
11771 \begin_layout Section
11772
11773 \change_inserted 564990737 1670439661
11774 Reports
11775 \end_layout
11776
11777 \begin_layout Subsection
11778
11779 \change_inserted 564990737 1670439661
11780 report
11781 \end_layout
11782
11783 \begin_layout Standard
11784
11785 \change_inserted 564990737 1670439661
11786 The document class 
11787 \family sans
11788 report
11789 \family default
11790  provides the 
11791 \family sans
11792 report.cls
11793 \family default
11794  document class for preparing reports.
11795  Like the 
11796 \family sans
11797 book
11798 \family default
11799  document class, this provides parts, chapters and sections but does not
11800  provide the paragraph styles needed for a book; like the 
11801 \family sans
11802 article
11803 \family default
11804  document class, it provides the abstract paragraph style.
11805  In two-sided mode, it does not start a new chapter on the right hand page.
11806 \end_layout
11807
11808 \begin_layout Standard
11809
11810 \change_inserted 564990737 1670439674
11811 The remaining 
11812 \family sans
11813 report
11814 \family default
11815  document classes are described in the Collections (section
11816 \begin_inset space ~
11817 \end_inset
11818
11819
11820 \begin_inset CommandInset ref
11821 LatexCommand ref
11822 reference "sec:Collections"
11823
11824 \end_inset
11825
11826 ).
11827 \end_layout
11828
11829 \begin_layout Section
11830
11831 \change_inserted 564990737 1670439674
11832 Scripts (drama)
11833 \end_layout
11834
11835 \begin_layout Subsection
11836 Broadway
11837 \end_layout
11838
11839 \begin_layout Standard
11840 by 
11841 \shape smallcaps
11842 Garst Reese
11843 \end_layout
11844
11845 \begin_layout Subsubsection
11846 Introduction
11847 \end_layout
11848
11849 \begin_layout Standard
11850 Broadway is for writing plays.
11851  The format is more decorative than Hollywood, and much less standardized.
11852  This format should be suitable for workshops.
11853 \end_layout
11854
11855 \begin_layout Subsubsection
11856 Special problems
11857 \end_layout
11858
11859 \begin_layout Standard
11860 The same as in Hollywood.
11861 \end_layout
11862
11863 \begin_layout Subsubsection
11864 Special features
11865 \end_layout
11866
11867 \begin_layout Standard
11868 Insert the 
11869 \family sans
11870 Speaker
11871 \family default
11872  names as labels then cross-reference the label to insert the name.
11873  The cross-reference dialog will show the current cast of characters.
11874 \end_layout
11875
11876 \begin_layout Subsubsection
11877 Paper size and Margins
11878 \end_layout
11879
11880 \begin_layout Standard
11881 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
11882 \end_layout
11883
11884 \begin_layout Subsubsection
11885 Environments
11886 \end_layout
11887
11888 \begin_layout Standard
11889 The following environments are available.
11890  You can use broadway.bind to get the bind keys shown at the right.
11891 \end_layout
11892
11893 \begin_layout Itemize
11894
11895 \family sans
11896 Standard
11897 \begin_inset Newline newline
11898 \end_inset
11899
11900
11901 \family default
11902 You should not have to use this, but it is here for anything that does not
11903  fit otherwise.
11904 \end_layout
11905
11906 \begin_layout Itemize
11907
11908 \family sans
11909 Narrative
11910 \begin_inset space \hfill{}
11911 \end_inset
11912
11913 M-z n
11914 \begin_inset Newline newline
11915 \end_inset
11916
11917
11918 \family default
11919 Used to describe stage setting and the action.
11920  First use of speaker names in all CAPs.
11921 \end_layout
11922
11923 \begin_layout Itemize
11924
11925 \family sans
11926 ACT
11927 \begin_inset space \hfill{}
11928 \end_inset
11929
11930 M-z a
11931 \begin_inset Newline newline
11932 \end_inset
11933
11934
11935 \family default
11936 Automatically numbered.
11937  On screen it will be arabic, but will print as Roman.
11938 \end_layout
11939
11940 \begin_layout Itemize
11941
11942 \family sans
11943 ACT*
11944 \begin_inset space \hfill{}
11945 \end_inset
11946
11947 M-z S at
11948 \begin_inset Newline newline
11949 \end_inset
11950
11951
11952 \family default
11953 Subtitle for 
11954 \family sans
11955 ACT.
11956
11957 \family default
11958  It is just centered text.
11959 \end_layout
11960
11961 \begin_layout Itemize
11962
11963 \family sans
11964 SCENE
11965 \begin_inset space \hfill{}
11966 \end_inset
11967
11968 M-z S-S
11969 \begin_inset Newline newline
11970 \end_inset
11971
11972
11973 \family default
11974 Not automatically numbered.
11975  You supply the number.
11976  This is because I couldn't figure out how.
11977 \end_layout
11978
11979 \begin_layout Itemize
11980
11981 \family sans
11982 AT_RISE:
11983 \begin_inset space \hfill{}
11984 \end_inset
11985
11986 M-z S-R
11987 \begin_inset Newline newline
11988 \end_inset
11989
11990
11991 \family default
11992 A special case of Narrative to describe the setting and action as the curtain
11993  rises.
11994 \end_layout
11995
11996 \begin_layout Itemize
11997
11998 \family sans
11999 Speaker
12000 \begin_inset space \hfill{}
12001 \end_inset
12002
12003 M-z s
12004 \begin_inset Newline newline
12005 \end_inset
12006
12007
12008 \family default
12009 The speaker's (actor's) title, centered in all CAPS.
12010 \end_layout
12011
12012 \begin_layout Itemize
12013
12014 \family sans
12015 Parenthetical
12016 \begin_inset space \hfill{}
12017 \end_inset
12018
12019 M-z p
12020 \begin_inset Newline newline
12021 \end_inset
12022
12023
12024 \family default
12025 Instructions to the speaker.
12026  The parentheses are automatically inserted.
12027  The ( will appear on screen, but both will be in the printed play.
12028  This environment is only used within 
12029 \family sans
12030 Dialogue
12031 \family default
12032 .
12033 \end_layout
12034
12035 \begin_layout Itemize
12036
12037 \family sans
12038 Dialogue
12039 \begin_inset space \hfill{}
12040 \end_inset
12041
12042 M-z d
12043 \begin_inset Newline newline
12044 \end_inset
12045
12046
12047 \family default
12048 What the Speaker says.
12049 \end_layout
12050
12051 \begin_layout Itemize
12052
12053 \family sans
12054 CURTAIN
12055 \begin_inset space \hfill{}
12056 \end_inset
12057
12058 M-z S-C
12059 \begin_inset Newline newline
12060 \end_inset
12061
12062
12063 \family default
12064 The curtain comes down.
12065 \end_layout
12066
12067 \begin_layout Itemize
12068
12069 \family sans
12070 Title
12071 \begin_inset space \hfill{}
12072 \end_inset
12073
12074 M-z S-T
12075 \end_layout
12076
12077 \begin_layout Itemize
12078
12079 \family sans
12080 Author
12081 \begin_inset space \hfill{}
12082 \end_inset
12083
12084 M-z S-A
12085 \end_layout
12086
12087 \begin_layout Itemize
12088
12089 \family sans
12090 Right_Address
12091 \begin_inset space \hfill{}
12092 \end_inset
12093
12094 M-z r
12095 \end_layout
12096
12097 \begin_layout Standard
12098 Hello there.
12099 \end_layout
12100
12101 \begin_layout Subsection
12102 Hollywood (Hollywood spec scripts)
12103 \end_layout
12104
12105 \begin_layout Standard
12106 by 
12107 \shape smallcaps
12108 Garst Reese
12109 \end_layout
12110
12111 \begin_layout Subsubsection
12112 Introduction
12113 \end_layout
12114
12115 \begin_layout Standard
12116 Getting the format of a Hollywood script right is a 
12117 \begin_inset Quotes eld
12118 \end_inset
12119
12120 rite of passage.
12121 \begin_inset Quotes erd
12122 \end_inset
12123
12124  It is designed to make the readers focus on content and to be easy and
12125  familiar for the actors to read.
12126  Each page of a script should be one minute of film.
12127  Nothing goes in a script that you cannot see or hear on screen.
12128  The courier 12 pt font should be used throughout.
12129  No italics.
12130 \end_layout
12131
12132 \begin_layout Subsubsection
12133 Special problems
12134 \end_layout
12135
12136 \begin_layout Standard
12137 Speakers' lines should NEVER break in mid-sentence.
12138  If a speaker's lines continue over a page break, repeat the 
12139 \family sans
12140 Speaker
12141 \family default
12142  title followed by (Cont'd).
12143 \end_layout
12144
12145 \begin_layout Subsubsection
12146 Special features
12147 \end_layout
12148
12149 \begin_layout Standard
12150 Insert the 
12151 \family sans
12152 Speaker
12153 \family default
12154  names as labels then cross-reference the label to insert the name.
12155  The cross-reference dialog will show the current cast of characters.
12156  You can use this to insert the speaker name in narratives also.
12157 \end_layout
12158
12159 \begin_layout Subsubsection
12160 Paper size and Margins
12161 \end_layout
12162
12163 \begin_layout Standard
12164 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12165 \end_layout
12166
12167 \begin_layout Subsubsection
12168 Environments
12169 \end_layout
12170
12171 \begin_layout Standard
12172 The following environments are available.
12173  You can use hollywood.bind to get the bind keys shown at the right.
12174 \end_layout
12175
12176 \begin_layout Itemize
12177
12178 \family sans
12179 Standard
12180 \begin_inset Newline newline
12181 \end_inset
12182
12183
12184 \family default
12185 Used where nothing else works.
12186  Try to avoid it.
12187 \end_layout
12188
12189 \begin_layout Itemize
12190
12191 \family sans
12192 FADE_IN
12193 \family default
12194 :
12195 \begin_inset space \hfill{}
12196 \end_inset
12197
12198
12199 \family sans
12200 M-z S-I
12201 \family default
12202
12203 \begin_inset Newline newline
12204 \end_inset
12205
12206 Usually followed by something like 
12207 \begin_inset Quotes eld
12208 \end_inset
12209
12210 on Sally waking up.
12211 \begin_inset Quotes erd
12212 \end_inset
12213
12214
12215 \end_layout
12216
12217 \begin_layout Itemize
12218
12219 \family sans
12220 INT:
12221 \begin_inset space \hfill{}
12222 \end_inset
12223
12224 M-z i
12225 \begin_inset Newline newline
12226 \end_inset
12227
12228
12229 \family default
12230 Introduces a new INTERIOR camera set-up.
12231  Always followed by DAY or NIGHT, or something similar to define the lighting
12232  required.
12233  Everthing on this line in CAPS.
12234 \end_layout
12235
12236 \begin_layout Itemize
12237
12238 \family sans
12239 EXT:
12240 \begin_inset space \hfill{}
12241 \end_inset
12242
12243 M-z e
12244 \begin_inset Newline newline
12245 \end_inset
12246
12247
12248 \family default
12249 Introduces a new EXTERIOR camera set-up.
12250  Everthing on this line in CAPS.
12251 \end_layout
12252
12253 \begin_layout Itemize
12254
12255 \family sans
12256 Speaker
12257 \begin_inset space \hfill{}
12258 \end_inset
12259
12260 M-z s
12261 \begin_inset Newline newline
12262 \end_inset
12263
12264
12265 \family default
12266 The character speaking.
12267 \end_layout
12268
12269 \begin_layout Itemize
12270
12271 \family sans
12272 Parenthetical
12273 \begin_inset space \hfill{}
12274 \end_inset
12275
12276 M-z p
12277 \begin_inset Newline newline
12278 \end_inset
12279
12280
12281 \family default
12282 Instructions to the speaker.
12283  The () are automatically inserted.
12284 \end_layout
12285
12286 \begin_layout Itemize
12287
12288 \family sans
12289 Dialogue
12290 \begin_inset space \hfill{}
12291 \end_inset
12292
12293 M-z d
12294 \begin_inset Newline newline
12295 \end_inset
12296
12297
12298 \family default
12299 What the 
12300 \family sans
12301 Speaker
12302 \family default
12303  says.
12304 \end_layout
12305
12306 \begin_layout Itemize
12307
12308 \family sans
12309 Transition
12310 \begin_inset space \hfill{}
12311 \end_inset
12312
12313 M-z t
12314 \begin_inset Newline newline
12315 \end_inset
12316
12317
12318 \family default
12319 Camera movement instruction.
12320  e.
12321 \begin_inset space \thinspace{}
12322 \end_inset
12323
12324 g.
12325 \begin_inset space \space{}
12326 \end_inset
12327
12328 CUT TO:
12329 \end_layout
12330
12331 \begin_layout Itemize
12332
12333 \family sans
12334 FADE OUT:
12335 \begin_inset space \hfill{}
12336 \end_inset
12337
12338 M-z S-I
12339 \end_layout
12340
12341 \begin_layout Itemize
12342
12343 \family sans
12344 Author
12345 \begin_inset space \hfill{}
12346 \end_inset
12347
12348 M-z S-A
12349 \end_layout
12350
12351 \begin_layout Itemize
12352
12353 \family sans
12354 Title
12355 \begin_inset space \hfill{}
12356 \end_inset
12357
12358 M-z S-T
12359 \end_layout
12360
12361 \begin_layout Itemize
12362
12363 \family sans
12364 Right_Address
12365 \begin_inset space \hfill{}
12366 \end_inset
12367
12368 M-z r
12369 \end_layout
12370
12371 \begin_layout Subsubsection
12372 Script jargon
12373 \end_layout
12374
12375 \begin_layout Itemize
12376 (O.S) — off screen
12377 \end_layout
12378
12379 \begin_layout Itemize
12380 (V.0) — voice over
12381 \end_layout
12382
12383 \begin_layout Itemize
12384 b.
12385 \begin_inset space \thinspace{}
12386 \end_inset
12387
12388 g.
12389  — background
12390 \end_layout
12391
12392 \begin_layout Itemize
12393 C.U.
12394  — close-up
12395 \end_layout
12396
12397 \begin_layout Itemize
12398 PAN — camera movement
12399 \end_layout
12400
12401 \begin_layout Itemize
12402 INSERT — cut to close-up of
12403 \end_layout
12404
12405 \begin_layout Chapter
12406
12407 \change_inserted 564990737 1671185876
12408 Modules
12409 \end_layout
12410
12411 \begin_layout Section
12412 Multiple Text Columns
12413 \end_layout
12414
12415 \begin_layout Standard
12416 This feature is independent of the option 
12417 \family sans
12418 Two-column document
12419 \family default
12420  in the document settings under 
12421 \family sans
12422 Text Layout
12423 \family default
12424 .
12425  If you want to have 2
12426 \begin_inset space ~
12427 \end_inset
12428
12429 columns for the whole document, it is recommended to use the 
12430 \family sans
12431 Two-column document
12432 \family default
12433  option.
12434  For all other cases use this feature.
12435 \end_layout
12436
12437 \begin_layout Standard
12438 To use multiple text columns in your document, you have to load the module
12439  
12440 \family sans
12441 Multiple Columns
12442 \family default
12443  (menu 
12444 \family sans
12445 Document\SpecialChar menuseparator
12446 Settings\SpecialChar menuseparator
12447 Modules
12448 \family default
12449 ) and must have the \SpecialChar LaTeX
12450 -package 
12451 \begin_inset Flex Code
12452 status collapsed
12453
12454 \begin_layout Plain Layout
12455 multicol
12456 \end_layout
12457
12458 \end_inset
12459
12460  installed.
12461 \end_layout
12462
12463 \begin_layout Standard
12464 Footnotes within multiple columns will be placed at the bottom of the page
12465  and not under each column.
12466  Within the different columns you can use everything, with the limitation
12467  that for floats you need to use the float option 
12468 \family sans
12469 Span columns
12470 \family default
12471 .
12472 \end_layout
12473
12474 \begin_layout Subsection
12475 Basics
12476 \end_layout
12477
12478 \begin_layout Standard
12479 If you want to have 2
12480 \begin_inset space ~
12481 \end_inset
12482
12483 columns in your text, insert a multicolumn inset via the menu 
12484 \family sans
12485 Insert\SpecialChar menuseparator
12486 Custom
12487 \begin_inset space ~
12488 \end_inset
12489
12490 Insets\SpecialChar menuseparator
12491 Multiple
12492 \begin_inset space ~
12493 \end_inset
12494
12495 Columns
12496 \family default
12497  where the columns should start.
12498  Write all text that should be printed in 2
12499 \begin_inset space ~
12500 \end_inset
12501
12502 columns into this inset.
12503 \end_layout
12504
12505 \begin_layout Standard
12506 Here is an example:
12507 \end_layout
12508
12509 \begin_layout Standard
12510 \noindent
12511 \begin_inset Flex Multiple Columns
12512 status open
12513
12514 \begin_layout Plain Layout
12515 \noindent
12516
12517 \series bold
12518 \size small
12519 The Adventure of the Empty House
12520 \series default
12521
12522 \begin_inset Newline newline
12523 \end_inset
12524
12525 by Sir Arthur Conan Doyle
12526 \end_layout
12527
12528 \begin_layout Plain Layout
12529
12530 \size small
12531 It was in the spring of the year 1894 that all London was interested, and
12532  the fashionable world dismayed, by the murder of the Honourable Ronald
12533  Adair under most unusual and inexplicable circumstances.
12534  The public has already learned those particulars of the crime which came
12535  out in the police investigation, but a good deal was suppressed upon that
12536  occasion, since the case for the prosecution was so overwhelmingly strong
12537  that it was not necessary to bring forward all the facts.
12538  Only now, at the end of nearly ten years, am I allowed to supply those
12539  missing links which make up the whole of that remarkable chain.
12540  The crime was of interest in itself, but that interest was as nothing to
12541  me compared to the inconceivable sequel, which afforded me the greatest
12542  shock and surprise of any event in my adventurous life.
12543  Even now, after this long interval, I find myself thrilling as I think
12544  of it, and feeling once more that sudden flood of joy, amazement, and increduli
12545 ty which utterly submerged my mind.
12546  Let me say to that public, which has shown some interest in those glimpses
12547  which I have occasionally given them of the thoughts and actions of a very
12548  remarkable man, that they are not to blame me if I have not shared my knowledge
12549  with them, for I should have considered it my first duty to do so, had
12550  I not been barred by a positive prohibition from his own lips, which was
12551  only withdrawn upon the third of last month.
12552 \end_layout
12553
12554 \end_inset
12555
12556
12557 \end_layout
12558
12559 \begin_layout Standard
12560 To get 3 or more columns, set the cursor into the multicolumn inset and
12561  use the menu 
12562 \family sans
12563 Insert\SpecialChar menuseparator
12564 Number
12565 \begin_inset space ~
12566 \end_inset
12567
12568 of
12569 \begin_inset space ~
12570 \end_inset
12571
12572 Columns
12573 \family default
12574 .
12575  The number of the desired columns is written into that inset (for 3
12576 \begin_inset space ~
12577 \end_inset
12578
12579 columns write 
12580 \begin_inset Quotes eld
12581 \end_inset
12582
12583 3
12584 \begin_inset Quotes erd
12585 \end_inset
12586
12587 ).
12588 \begin_inset Newline newline
12589 \end_inset
12590
12591 Here is an example with 3
12592 \begin_inset space ~
12593 \end_inset
12594
12595 columns:
12596 \end_layout
12597
12598 \begin_layout Standard
12599 \begin_inset Flex Multiple Columns
12600 status open
12601
12602 \begin_layout Plain Layout
12603
12604 \size footnotesize
12605 \begin_inset Argument 1
12606 status open
12607
12608 \begin_layout Plain Layout
12609
12610 3
12611 \end_layout
12612
12613 \end_inset
12614
12615 It can be imagined that my close intimacy with Sherlock Holmes had interested
12616  me deeply in crime, and that after his disappearance I never failed to
12617  read with care the various problems which came before the public.
12618  And I even attempted, more than once, for my own private satisfaction,
12619  to employ his methods in their solution, though with indifferent success.
12620  There was none, however, which appealed to me like this tragedy of Ronald
12621  Adair.
12622  As I read the evidence at the inquest, which led up to a verdict of willful
12623  murder against some person or persons unknown, I realized more clearly
12624  than I had ever done the loss which the community had sustained by the
12625  death of Sherlock Holmes.
12626  There were points about this strange business which would, I was sure,
12627  have specially appealed to him, and the efforts of the police would have
12628  been supplemented, or more probably anticipated, by the trained observation
12629  and the alert mind of the first criminal agent in Europe.
12630  All day, as I drove upon my round, I turned over the case in my mind and
12631  found no explanation which appeared to me to be adequate.
12632  At the risk of telling a twice-told tale, I will recapitulate the facts
12633  as they were known to the public at the conclusion of the inquest.
12634 \end_layout
12635
12636 \end_inset
12637
12638
12639 \end_layout
12640
12641 \begin_layout Standard
12642 You can have up to 10
12643 \begin_inset space ~
12644 \end_inset
12645
12646 columns if you want to, but that might not be very pleasant for the readers
12647  of your document.
12648 \end_layout
12649
12650 \begin_layout Standard
12651 \begin_inset Newpage newpage
12652 \end_inset
12653
12654
12655 \end_layout
12656
12657 \begin_layout Subsection
12658 Columns inside Columns
12659 \end_layout
12660
12661 \begin_layout Standard
12662 You can also have columns inside columns:
12663 \end_layout
12664
12665 \begin_layout Standard
12666 \begin_inset Flex Multiple Columns
12667 status open
12668
12669 \begin_layout Plain Layout
12670
12671 \size footnotesize
12672 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
12673  at that time governor of one of the Australian colonies.
12674  Adair's mother had returned from Australia to undergo the operation for
12675  cataract, and she, her son Ronald, and her daughter Hilda were living together
12676  at 427 Park Lane.
12677 \end_layout
12678
12679 \begin_layout Plain Layout
12680 \begin_inset Flex Multiple Columns
12681 status open
12682
12683 \begin_layout Plain Layout
12684
12685 \size footnotesize
12686 The youth moved in the best society
12687 \begin_inset space ~
12688 \end_inset
12689
12690 – had, so far as was known, no enemies and no particular vices.
12691  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
12692  had been broken off by mutual consent some months before, and there was
12693  no sign that it had left any very profound feeling behind it.
12694  For the rest {sic} the man's life moved in a narrow and conventional circle,
12695  for his habits were quiet and his nature unemotional.
12696  Yet it was upon this easy-going young aristocrat that death came, in most
12697  strange and unexpected form, between the hours of ten and eleven-twenty
12698  on the night of March 30, 1894.
12699 \end_layout
12700
12701 \end_inset
12702
12703
12704 \end_layout
12705
12706 \begin_layout Plain Layout
12707
12708 \size footnotesize
12709 Ronald Adair was fond of cards
12710 \begin_inset space ~
12711 \end_inset
12712
12713 – playing continually, but never for such stakes as would hurt him.
12714  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
12715  It was shown that, after dinner on the day of his death, he had played
12716  a rubber of whist at the latter club.
12717  He had also played there in the afternoon.
12718
12719 \size default
12720  
12721 \size footnotesize
12722 The evidence of those who had played with him
12723 \begin_inset space ~
12724 \end_inset
12725
12726 – Mr.
12727  Murray, Sir John Hardy, and Colonel Moran
12728 \begin_inset space ~
12729 \end_inset
12730
12731 – showed that the game was whist, and that there was a fairly equal fall
12732  of the cards.
12733  Adair might have lost five pounds, but not more.
12734  His fortune was a considerable one, and such a loss could not in any way
12735  affect him.
12736  He had played nearly every day at one club or other, but he was a cautious
12737  player, and usually rose a winner.
12738  It came out in evidence that, in partnership with Colonel Moran, he had
12739  actually won as much as four hundred and twenty pounds in a sitting, some
12740  weeks before, from Godfrey Milner and Lord Balmoral.
12741  So much for his recent history as it came out at the inquest.
12742 \end_layout
12743
12744 \end_inset
12745
12746
12747 \end_layout
12748
12749 \begin_layout Subsection
12750 Advanced Examples
12751 \end_layout
12752
12753 \begin_layout Standard
12754 The examples in this section show some more special features of multiple
12755  columns.
12756 \end_layout
12757
12758 \begin_layout Standard
12759 For more features of multiple columns, have a look at the 
12760 \begin_inset CommandInset href
12761 LatexCommand href
12762 name "documentation"
12763 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
12764 literal "false"
12765
12766 \end_inset
12767
12768  of the \SpecialChar LaTeX
12769 -package 
12770 \begin_inset Flex Code
12771 status collapsed
12772
12773 \begin_layout Plain Layout
12774 multicol
12775 \end_layout
12776
12777 \end_inset
12778
12779 .
12780 \end_layout
12781
12782 \begin_layout Subsubsection
12783 Preface
12784 \end_layout
12785
12786 \begin_layout Standard
12787 To add a preface text for multiple columns, set the cursor into the multicolumn
12788  inset and use the menu 
12789 \family sans
12790 Insert\SpecialChar menuseparator
12791 Preface
12792 \family default
12793 .
12794  Write your preface text into that inset.
12795 \begin_inset Newline newline
12796 \end_inset
12797
12798 This is an example with some preface text:
12799 \end_layout
12800
12801 \begin_layout Standard
12802 \begin_inset VSpace bigskip
12803 \end_inset
12804
12805
12806 \end_layout
12807
12808 \begin_layout Standard
12809 \begin_inset Flex Multiple Columns
12810 status open
12811
12812 \begin_layout Plain Layout
12813 \begin_inset Argument 2
12814 status open
12815
12816 \begin_layout Plain Layout
12817 And the story continues and continues and continues and continues\SpecialChar ldots
12818
12819 \end_layout
12820
12821 \end_inset
12822
12823
12824 \size small
12825 On the evening of the crime, he returned from the club exactly at ten.
12826  His mother and sister were out spending the evening with a relation.
12827  The servant deposed that she heard him enter the front room on the second
12828  floor, generally used as his sitting-room.
12829  She had lit a fire there, and as it smoked she had opened the window.
12830  No sound was heard from the room until eleven-twenty, the hour of the return
12831  of Lady Maynooth and her daughter.
12832  Desiring to say good-night, she attempted to enter her son's room.
12833  The door was locked on the inside, and no answer could be got to their
12834  cries and knocking.
12835  Help was obtained, and the door forced.
12836  The unfortunate young man was found lying near the table.
12837  His head had been horribly mutilated by an expanding revolver bullet, but
12838  no weapon of any sort was to be found in the room.
12839 \end_layout
12840
12841 \end_inset
12842
12843
12844 \end_layout
12845
12846 \begin_layout Standard
12847 You can also use a section heading as the preface if you use a section command
12848  as \SpecialChar TeX
12849  Code.
12850  For example the command
12851 \end_layout
12852
12853 \begin_layout LyX-Code
12854
12855 \backslash
12856 subsection{subsection title}
12857 \end_layout
12858
12859 \begin_layout Standard
12860 creates a subsection.
12861  In this example the preface is a subsubsection:
12862 \end_layout
12863
12864 \begin_layout Standard
12865 \begin_inset Flex Multiple Columns
12866 status open
12867
12868 \begin_layout Plain Layout
12869 \begin_inset Argument 2
12870 status open
12871
12872 \begin_layout Plain Layout
12873 \begin_inset ERT
12874 status collapsed
12875
12876 \begin_layout Plain Layout
12877
12878
12879 \backslash
12880 subsubsection{
12881 \end_layout
12882
12883 \end_inset
12884
12885 This is a subsubsection heading as a preface
12886 \begin_inset ERT
12887 status collapsed
12888
12889 \begin_layout Plain Layout
12890
12891 }
12892 \end_layout
12893
12894 \end_inset
12895
12896
12897 \end_layout
12898
12899 \end_inset
12900
12901
12902 \size small
12903 A minute examination of the circumstances served only to make the case more
12904  complex.
12905  In the first place, no reason could be given why the young man should have
12906  fastened the door upon the inside.
12907  There was the possibility that the murderer had done this, and had afterwards
12908  escaped by the window.
12909  The drop was at least twenty feet, however, and a bed of crocuses in full
12910  bloom lay beneath.
12911  Neither the flowers nor the earth showed any sign of having been disturbed,
12912  nor were there any marks upon the narrow strip of grass which separated
12913  the house from the road.
12914  Apparently, therefore, it was the young man himself who had fastened the
12915  door.
12916  But how did he come by his death? No one could have climbed up to the window
12917  without leaving traces.
12918  Suppose a man had fired through the window, he would indeed be a remarkable
12919  shot who could with a revolver inflict so deadly a wound.
12920  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
12921  a hundred yards of the house.
12922  No one had heard a shot.
12923 \end_layout
12924
12925 \end_inset
12926
12927
12928 \end_layout
12929
12930 \begin_layout Standard
12931 If there is less vertical space than 6
12932 \begin_inset space ~
12933 \end_inset
12934
12935 text lines is left on the page at the beginning of the multiple columns,
12936  a page break will be inserted before the multiple columns.
12937  Depending on the number of lines of the preface text, you might want to
12938  change this space.
12939  This is done by setting the cursor into the mulitcolumn inset behind the
12940  preface (if there is any) and using the menu 
12941 \family sans
12942 Insert\SpecialChar menuseparator
12943 Space
12944 \begin_inset space ~
12945 \end_inset
12946
12947 Before
12948 \begin_inset space ~
12949 \end_inset
12950
12951 Page
12952 \begin_inset space ~
12953 \end_inset
12954
12955 Break
12956 \family default
12957 .
12958  Insert into that inset the amount of space like e.
12959 \begin_inset space \thinspace{}
12960 \end_inset
12961
12962 g.
12963 \begin_inset space \space{}
12964 \end_inset
12965
12966
12967 \begin_inset Quotes eld
12968 \end_inset
12969
12970 5cm
12971 \begin_inset Quotes erd
12972 \end_inset
12973
12974 .
12975 \begin_inset Newline newline
12976 \end_inset
12977
12978 In this example the space is set to 7
12979 \begin_inset space ~
12980 \end_inset
12981
12982 text lines by using 
12983 \begin_inset Flex Code
12984 status collapsed
12985
12986 \begin_layout Plain Layout
12987 7
12988 \backslash
12989 baselineskip
12990 \end_layout
12991
12992 \end_inset
12993
12994  (where the command 
12995 \begin_inset Flex Code
12996 status collapsed
12997
12998 \begin_layout Plain Layout
12999
13000 \backslash
13001 baselineskip
13002 \end_layout
13003
13004 \end_inset
13005
13006  needs to be inserted as \SpecialChar TeX
13007  code):
13008 \end_layout
13009
13010 \begin_layout Standard
13011 \begin_inset Flex Multiple Columns
13012 status open
13013
13014 \begin_layout Plain Layout
13015 \begin_inset Argument 3
13016 status open
13017
13018 \begin_layout Plain Layout
13019 7
13020 \begin_inset ERT
13021 status collapsed
13022
13023 \begin_layout Plain Layout
13024
13025
13026 \backslash
13027 baselineskip
13028 \end_layout
13029
13030 \end_inset
13031
13032
13033 \end_layout
13034
13035 \end_inset
13036
13037
13038 \size small
13039 On the evening of the crime, he returned from the club exactly at ten.
13040  His mother and sister were out spending the evening with a relation.
13041  The servant deposed that she heard him enter the front room on the second
13042  floor, generally used as his sitting-room.
13043  She had lit a fire there, and as it smoked she had opened the window.
13044  No sound was heard from the room until eleven-twenty, the hour of the return
13045  of Lady Maynooth and her daughter.
13046  Desiring to say good-night, she attempted to enter her son's room.
13047  The door was locked on the inside, and no answer could be got to their
13048  cries and knocking.
13049  Help was obtained, and the door forced.
13050  The unfortunate young man was found lying near the table.
13051  His head had been horribly mutilated by an expanding revolver bullet, but
13052  no weapon of any sort was to be found in the room.
13053 \end_layout
13054
13055 \end_inset
13056
13057
13058 \end_layout
13059
13060 \begin_layout Subsubsection
13061 Surrounding Space
13062 \end_layout
13063
13064 \begin_layout Standard
13065 The amount of space before and after multiple columns can be changed by
13066  changing the length 
13067 \begin_inset Flex Code
13068 status collapsed
13069
13070 \begin_layout Plain Layout
13071
13072 \backslash
13073 multicolsep
13074 \end_layout
13075
13076 \end_inset
13077
13078 .
13079  For example the command
13080 \end_layout
13081
13082 \begin_layout LyX-Code
13083
13084 \backslash
13085 setlength{
13086 \backslash
13087 multicolsep}{3cm}
13088 \end_layout
13089
13090 \begin_layout Standard
13091 in \SpecialChar TeX
13092  Code changes its value to 3
13093 \begin_inset space \thinspace{}
13094 \end_inset
13095
13096 cm.
13097  The change must be made before the multiple columns' start.
13098  The predefined value is 13
13099 \begin_inset space \thinspace{}
13100 \end_inset
13101
13102 pt.
13103 \end_layout
13104
13105 \begin_layout Standard
13106 For this example 
13107 \begin_inset Flex Code
13108 status collapsed
13109
13110 \begin_layout Plain Layout
13111
13112 \backslash
13113 multicolsep
13114 \end_layout
13115
13116 \end_inset
13117
13118  was set to 2.5
13119 \begin_inset space \thinspace{}
13120 \end_inset
13121
13122 cm:
13123 \end_layout
13124
13125 \begin_layout Standard
13126 \begin_inset ERT
13127 status open
13128
13129 \begin_layout Plain Layout
13130
13131
13132 \backslash
13133 setlength{
13134 \backslash
13135 multicolsep}{2.5cm}
13136 \end_layout
13137
13138 \end_inset
13139
13140
13141 \end_layout
13142
13143 \begin_layout Standard
13144 \begin_inset Flex Multiple Columns
13145 status open
13146
13147 \begin_layout Plain Layout
13148
13149 \size small
13150 All day I turned these facts over in my mind, endeavouring to hit upon some
13151  theory which could reconcile them all, and to find that line of least resistanc
13152 e which my poor friend had declared to be the starting-point of every investigat
13153 ion.
13154  I confess that I made little progress.
13155  In the evening I strolled across the Park, and found myself about six o'clock
13156  at the Oxford Street end of Park Lane.
13157  A group of loafers upon the pavements, all staring up at a particular window,
13158  directed me to the house which I had come to see.
13159  A tall, thin man with coloured glasses, whom I strongly suspected of being
13160  a plain-clothes detective, was pointing out some theory of his own, while
13161  the others crowded round to listen to what he said.
13162  I got as near him as I could, but his observations seemed to me to be absurd,
13163  so I withdrew again in some disgust.
13164  As I did so I struck against an elderly, deformed man, who had been behind
13165  me, and I knocked down several books which he was carrying.
13166 \end_layout
13167
13168 \end_inset
13169
13170
13171 \end_layout
13172
13173 \begin_layout Standard
13174 \begin_inset Note Greyedout
13175 status open
13176
13177 \begin_layout Plain Layout
13178
13179 \series bold
13180 Note:
13181 \series default
13182  The values you set with 
13183 \begin_inset Flex Code
13184 status collapsed
13185
13186 \begin_layout Plain Layout
13187
13188 \backslash
13189 setlength
13190 \end_layout
13191
13192 \end_inset
13193
13194  will be used for all following multiple columns until you change them again.
13195 \end_layout
13196
13197 \end_inset
13198
13199
13200 \end_layout
13201
13202 \begin_layout Standard
13203 \begin_inset ERT
13204 status collapsed
13205
13206 \begin_layout Plain Layout
13207
13208
13209 \backslash
13210 setlength{
13211 \backslash
13212 multicolsep}{13pt}
13213 \end_layout
13214
13215 \end_inset
13216
13217
13218 \begin_inset Note Note
13219 status collapsed
13220
13221 \begin_layout Plain Layout
13222 go back to the default
13223 \end_layout
13224
13225 \end_inset
13226
13227
13228 \end_layout
13229
13230 \begin_layout Standard
13231 \begin_inset Newpage newpage
13232 \end_inset
13233
13234
13235 \end_layout
13236
13237 \begin_layout Subsubsection
13238 Column Breaks
13239 \end_layout
13240
13241 \begin_layout Standard
13242 A column break can be forced by inserting the command 
13243 \begin_inset Flex Code
13244 status collapsed
13245
13246 \begin_layout Plain Layout
13247
13248 \backslash
13249 columnbreak{}
13250 \end_layout
13251
13252 \end_inset
13253
13254  as \SpecialChar TeX
13255  Code to that position in the text where the column should be broken.
13256  Note that this leads in most cases to whitespace in the text.
13257 \begin_inset Newline newline
13258 \end_inset
13259
13260 Here is an example:
13261 \end_layout
13262
13263 \begin_layout Standard
13264 \begin_inset Flex Multiple Columns
13265 status open
13266
13267 \begin_layout Plain Layout
13268
13269 \size small
13270 \begin_inset Quotes eld
13271 \end_inset
13272
13273 You're surprised to see me, sir,
13274 \begin_inset Quotes erd
13275 \end_inset
13276
13277  said he, in a strange, croaking voice.
13278 \end_layout
13279
13280 \begin_layout Plain Layout
13281
13282 \size small
13283 I acknowledged that I was.
13284 \end_layout
13285
13286 \begin_layout Plain Layout
13287
13288 \size small
13289 \begin_inset Quotes eld
13290 \end_inset
13291
13292 Well, I've a conscience, sir, and when I chanced to see you go into this
13293  house, as I came hobbling after you, I thought to myself, I'll just step
13294  in and see that kind gentleman, and tell him that if I was a bit gruff
13295  in my manner there was not any harm meant, and that I am much obliged to
13296  him for picking up my books.
13297 \begin_inset Quotes erd
13298 \end_inset
13299
13300
13301 \end_layout
13302
13303 \begin_layout Plain Layout
13304
13305 \size small
13306 \begin_inset Quotes eld
13307 \end_inset
13308
13309 You make too much of a trifle,
13310 \begin_inset Quotes erd
13311 \end_inset
13312
13313  said I.
13314  
13315 \begin_inset Quotes eld
13316 \end_inset
13317
13318 May I ask how you knew who I was?
13319 \begin_inset Quotes erd
13320 \end_inset
13321
13322  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
13323 \begin_inset ERT
13324 status collapsed
13325
13326 \begin_layout Plain Layout
13327
13328
13329 \backslash
13330 columnbreak{}
13331 \end_layout
13332
13333 \end_inset
13334
13335
13336 \end_layout
13337
13338 \begin_layout Plain Layout
13339
13340 \size small
13341 \begin_inset Quotes eld
13342 \end_inset
13343
13344 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13345  you'll find my little bookshop at the corner of Church Street, and very
13346  happy to see you, I am sure.
13347  Maybe you collect yourself, sir.
13348  Here's 
13349 \noun on
13350 British
13351 \begin_inset space ~
13352 \end_inset
13353
13354 Birds
13355 \noun default
13356 , and 
13357 \noun on
13358 Catullus
13359 \noun default
13360 , and 
13361 \noun on
13362 The Holy War
13363 \noun default
13364
13365 \begin_inset space ~
13366 \end_inset
13367
13368 – a bargain, every one of them.
13369  With five volumes you could just fill that gap on that second shelf.
13370  It looks untidy, does it not, sir?
13371 \begin_inset Quotes erd
13372 \end_inset
13373
13374
13375 \end_layout
13376
13377 \end_inset
13378
13379
13380 \end_layout
13381
13382 \begin_layout Subsubsection
13383 Column Separation
13384 \end_layout
13385
13386 \begin_layout Standard
13387 The width of the columns is automatically calculated, but you can modify
13388  the space between the columns.
13389  This is done by changing the length 
13390 \begin_inset Flex Code
13391 status collapsed
13392
13393 \begin_layout Plain Layout
13394
13395 \backslash
13396 columnsep
13397 \end_layout
13398
13399 \end_inset
13400
13401 .
13402  Its predefined value is 10
13403 \begin_inset space \thinspace{}
13404 \end_inset
13405
13406 pt.
13407  Here is an example where 
13408 \begin_inset Flex Code
13409 status collapsed
13410
13411 \begin_layout Plain Layout
13412
13413 \backslash
13414 columnsep
13415 \end_layout
13416
13417 \end_inset
13418
13419  is set to 3
13420 \begin_inset space \thinspace{}
13421 \end_inset
13422
13423 cm:
13424 \end_layout
13425
13426 \begin_layout Standard
13427 \begin_inset ERT
13428 status open
13429
13430 \begin_layout Plain Layout
13431
13432
13433 \backslash
13434 setlength{
13435 \backslash
13436 columnsep}{3cm}
13437 \end_layout
13438
13439 \end_inset
13440
13441
13442 \end_layout
13443
13444 \begin_layout Standard
13445 \begin_inset Flex Multiple Columns
13446 status open
13447
13448 \begin_layout Plain Layout
13449
13450 \size small
13451 My observations of No.
13452 \begin_inset space \space{}
13453 \end_inset
13454
13455 427 Park Lane did little to clear up the problem in which I was interested.
13456  The house was separated from the street by a low wall and railing, the
13457  whole not more than five feet high.
13458  It was perfectly easy, therefore, for anyone to get into the garden, but
13459  the window was entirely inaccessible, since there was no water pipe or
13460  anything which could help the most active man to climb it.
13461  More puzzled than ever, I retraced my steps to Kensington.
13462  I had not been in my study five minutes when the maid entered to say that
13463  a person desired to see me.
13464  To my astonishment it was none other than my strange old book collector,
13465  his sharp, wizened face peering out from a frame of white hair, and his
13466  precious volumes, a dozen of them at least, wedged under his right arm.
13467 \end_layout
13468
13469 \end_inset
13470
13471
13472 \end_layout
13473
13474 \begin_layout Standard
13475 \begin_inset ERT
13476 status collapsed
13477
13478 \begin_layout Plain Layout
13479
13480
13481 \backslash
13482 setlength{
13483 \backslash
13484 columnsep}{10pt}
13485 \end_layout
13486
13487 \end_inset
13488
13489
13490 \begin_inset Note Note
13491 status collapsed
13492
13493 \begin_layout Plain Layout
13494 go back to the default
13495 \end_layout
13496
13497 \end_inset
13498
13499
13500 \end_layout
13501
13502 \begin_layout Subsubsection
13503 Vertical Lines
13504 \end_layout
13505
13506 \begin_layout Standard
13507 Between the columns a rule with a width of the length 
13508 \begin_inset Flex Code
13509 status collapsed
13510
13511 \begin_layout Plain Layout
13512
13513 \backslash
13514 columnseprule
13515 \end_layout
13516
13517 \end_inset
13518
13519  is placed.
13520  If this rule width is set to 0
13521 \begin_inset space \thinspace{}
13522 \end_inset
13523
13524 pt (this is the default), the rule is suppressed.
13525  In the following example the rule is 2
13526 \begin_inset space \thinspace{}
13527 \end_inset
13528
13529 pt wide:
13530 \end_layout
13531
13532 \begin_layout Standard
13533 \begin_inset ERT
13534 status open
13535
13536 \begin_layout Plain Layout
13537
13538
13539 \backslash
13540 setlength{
13541 \backslash
13542 columnseprule}{2pt}
13543 \end_layout
13544
13545 \end_inset
13546
13547
13548 \end_layout
13549
13550 \begin_layout Standard
13551 \begin_inset Flex Multiple Columns
13552 status open
13553
13554 \begin_layout Plain Layout
13555
13556 \size small
13557 \begin_inset Quotes eld
13558 \end_inset
13559
13560 You're surprised to see me, sir,
13561 \begin_inset Quotes erd
13562 \end_inset
13563
13564  said he, in a strange, croaking voice.
13565 \end_layout
13566
13567 \begin_layout Plain Layout
13568
13569 \size small
13570 I acknowledged that I was.
13571 \end_layout
13572
13573 \begin_layout Plain Layout
13574
13575 \size small
13576 \begin_inset Quotes eld
13577 \end_inset
13578
13579 Well, I've a conscience, sir, and when I chanced to see you go into this
13580  house, as I came hobbling after you, I thought to myself, I'll just step
13581  in and see that kind gentleman, and tell him that if I was a bit gruff
13582  in my manner there was not any harm meant, and that I am much obliged to
13583  him for picking up my books.
13584 \begin_inset Quotes erd
13585 \end_inset
13586
13587
13588 \end_layout
13589
13590 \begin_layout Plain Layout
13591
13592 \size small
13593 \begin_inset Quotes eld
13594 \end_inset
13595
13596 You make too much of a trifle,
13597 \begin_inset Quotes erd
13598 \end_inset
13599
13600  said I.
13601  
13602 \begin_inset Quotes eld
13603 \end_inset
13604
13605 May I ask how you knew who I was?
13606 \begin_inset Quotes erd
13607 \end_inset
13608
13609
13610 \end_layout
13611
13612 \begin_layout Plain Layout
13613
13614 \size small
13615 \begin_inset Quotes eld
13616 \end_inset
13617
13618 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13619  you'll find my little bookshop at the corner of Church Street, and very
13620  happy to see you, I am sure.
13621  Maybe you collect yourself, sir.
13622  Here's 
13623 \noun on
13624 British
13625 \begin_inset space ~
13626 \end_inset
13627
13628 Birds
13629 \noun default
13630 , and 
13631 \noun on
13632 Catullus
13633 \noun default
13634 , and 
13635 \noun on
13636 The Holy War
13637 \noun default
13638
13639 \begin_inset space ~
13640 \end_inset
13641
13642 – a bargain, every one of them.
13643  With five volumes you could just fill that gap on that second shelf.
13644  It looks untidy, does it not, sir?
13645 \begin_inset Quotes erd
13646 \end_inset
13647
13648
13649 \end_layout
13650
13651 \end_inset
13652
13653
13654 \end_layout
13655
13656 \begin_layout Standard
13657 \begin_inset VSpace defskip
13658 \end_inset
13659
13660
13661 \end_layout
13662
13663 \begin_layout Standard
13664 The rule can be colored by redefining the command 
13665 \begin_inset Flex Code
13666 status collapsed
13667
13668 \begin_layout Plain Layout
13669
13670 \backslash
13671 columnseprulecolor
13672 \end_layout
13673
13674 \end_inset
13675
13676 .
13677  This is done by inserting the command
13678 \end_layout
13679
13680 \begin_layout LyX-Code
13681
13682 \backslash
13683 renewcommand{
13684 \backslash
13685 columnseprulecolor}{
13686 \backslash
13687 color{red}}
13688 \end_layout
13689
13690 \begin_layout Standard
13691 as \SpecialChar TeX
13692  Code before the multicolumn inset.
13693  Replace 
13694 \begin_inset Flex Code
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698 red
13699 \end_layout
13700
13701 \end_inset
13702
13703  in this command by a color of your choice.
13704  You can use all pre- and self-defined colors.
13705  See the 
13706 \emph on
13707 EmbeddedObjects
13708 \emph default
13709  manual, section 
13710 \emph on
13711 Colored
13712 \begin_inset space ~
13713 \end_inset
13714
13715 Tables
13716 \emph default
13717  for more information about pre- and self-defined colors.
13718  To go back to the default color insert the command
13719 \end_layout
13720
13721 \begin_layout LyX-Code
13722
13723 \backslash
13724 renewcommand{
13725 \backslash
13726 columnseprulecolor}{
13727 \backslash
13728 normalcolor}
13729 \end_layout
13730
13731 \begin_layout Standard
13732 Here is the example with a cyan rule and 1
13733 \begin_inset space \thinspace{}
13734 \end_inset
13735
13736 cm column separation:
13737 \end_layout
13738
13739 \begin_layout Standard
13740 \begin_inset ERT
13741 status open
13742
13743 \begin_layout Plain Layout
13744
13745
13746 \backslash
13747 setlength{
13748 \backslash
13749 columnsep}{1cm}
13750 \end_layout
13751
13752 \begin_layout Plain Layout
13753
13754
13755 \backslash
13756 renewcommand{
13757 \backslash
13758 columnseprulecolor}{
13759 \backslash
13760 color{cyan}}
13761 \end_layout
13762
13763 \end_inset
13764
13765
13766 \end_layout
13767
13768 \begin_layout Standard
13769 \begin_inset Flex Multiple Columns
13770 status open
13771
13772 \begin_layout Plain Layout
13773
13774 \size small
13775 \begin_inset Quotes eld
13776 \end_inset
13777
13778 You're surprised to see me, sir,
13779 \begin_inset Quotes erd
13780 \end_inset
13781
13782  said he, in a strange, croaking voice.
13783 \end_layout
13784
13785 \begin_layout Plain Layout
13786
13787 \size small
13788 I acknowledged that I was.
13789 \end_layout
13790
13791 \begin_layout Plain Layout
13792
13793 \size small
13794 \begin_inset Quotes eld
13795 \end_inset
13796
13797 Well, I've a conscience, sir, and when I chanced to see you go into this
13798  house, as I came hobbling after you, I thought to myself, I'll just step
13799  in and see that kind gentleman, and tell him that if I was a bit gruff
13800  in my manner there was not any harm meant, and that I am much obliged to
13801  him for picking up my books.
13802 \begin_inset Quotes erd
13803 \end_inset
13804
13805
13806 \end_layout
13807
13808 \begin_layout Plain Layout
13809
13810 \size small
13811 \begin_inset Quotes eld
13812 \end_inset
13813
13814 You make too much of a trifle,
13815 \begin_inset Quotes erd
13816 \end_inset
13817
13818  said I.
13819  
13820 \begin_inset Quotes eld
13821 \end_inset
13822
13823 May I ask how you knew who I was?
13824 \begin_inset Quotes erd
13825 \end_inset
13826
13827
13828 \end_layout
13829
13830 \begin_layout Plain Layout
13831
13832 \size small
13833 \begin_inset Quotes eld
13834 \end_inset
13835
13836 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13837  you'll find my little bookshop at the corner of Church Street, and very
13838  happy to see you, I am sure.
13839  Maybe you collect yourself, sir.
13840  Here's 
13841 \noun on
13842 British
13843 \begin_inset space ~
13844 \end_inset
13845
13846 Birds
13847 \noun default
13848 , and 
13849 \noun on
13850 Catullus
13851 \noun default
13852 , and 
13853 \noun on
13854 The Holy War
13855 \noun default
13856
13857 \begin_inset space ~
13858 \end_inset
13859
13860 – a bargain, every one of them.
13861  With five volumes you could just fill that gap on that second shelf.
13862  It looks untidy, does it not, sir?
13863 \begin_inset Quotes erd
13864 \end_inset
13865
13866
13867 \end_layout
13868
13869 \end_inset
13870
13871
13872 \end_layout
13873
13874 \begin_layout Standard
13875 \begin_inset ERT
13876 status collapsed
13877
13878 \begin_layout Plain Layout
13879
13880
13881 \backslash
13882 setlength{
13883 \backslash
13884 columnseprule}{0pt}
13885 \end_layout
13886
13887 \begin_layout Plain Layout
13888
13889
13890 \backslash
13891 renewcommand{
13892 \backslash
13893 columnseprulecolor}{
13894 \backslash
13895 normalcolor}
13896 \end_layout
13897
13898 \end_inset
13899
13900
13901 \begin_inset Note Note
13902 status collapsed
13903
13904 \begin_layout Plain Layout
13905 go back to the default
13906 \end_layout
13907
13908 \end_inset
13909
13910
13911 \end_layout
13912
13913 \begin_layout Section
13914
13915 \change_inserted 564990737 1671270380
13916 Paragraph Styles
13917 \end_layout
13918
13919 \begin_layout Subsection
13920
13921 \change_inserted 564990737 1671270398
13922 Custom
13923 \change_deleted 564990737 1671270396
13924 Non-standard
13925 \change_unchanged
13926  Paragraph Shapes
13927 \end_layout
13928
13929 \begin_layout Standard
13930 \noindent
13931 \SpecialChar LaTeX
13932  as well as any other text processor uses by default rectangular paragraphs.
13933  For special cases like for example posters, invitation cards or poems you
13934  can modify the paragraph shape to one of your choice.
13935  This can be done by using the \SpecialChar LaTeX
13936 -package 
13937 \begin_inset Flex Code
13938 status collapsed
13939
13940 \begin_layout Plain Layout
13941 shapepar
13942 \end_layout
13943
13944 \end_inset
13945
13946  which is loaded by using in the document settings the module 
13947 \family sans
13948 Custom paragraph shapes
13949 \family default
13950 .
13951 \end_layout
13952
13953 \begin_layout Subsubsection
13954 Predefined shapes
13955 \end_layout
13956
13957 \begin_layout Standard
13958
13959 \series bold
13960 shapepar
13961 \series default
13962  provides the following shapes:
13963 \end_layout
13964
13965 \begin_layout Standard
13966 \begin_inset Tabular
13967 <lyxtabular version="3" rows="13" columns="3">
13968 <features booktabs="true" islongtable="true" longtabularalignment="center">
13969 <column alignment="left" valignment="middle" width="16col%">
13970 <column alignment="left" valignment="middle" width="40col%">
13971 <column alignment="left" valignment="middle" width="35col%">
13972 <row endhead="true">
13973 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13974 \begin_inset Text
13975
13976 \begin_layout Plain Layout
13977
13978 \series bold
13979 \size small
13980 Name
13981 \end_layout
13982
13983 \end_inset
13984 </cell>
13985 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
13986 \begin_inset Text
13987
13988 \begin_layout Plain Layout
13989
13990 \series bold
13991 \size small
13992 Description
13993 \end_layout
13994
13995 \end_inset
13996 </cell>
13997 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
13998 \begin_inset Text
13999
14000 \begin_layout Plain Layout
14001
14002 \series bold
14003 \size small
14004 Annotation
14005 \end_layout
14006
14007 \end_inset
14008 </cell>
14009 </row>
14010 <row interlinespace="default">
14011 <cell alignment="left" valignment="top" usebox="none">
14012 \begin_inset Text
14013
14014 \begin_layout Plain Layout
14015
14016 \size small
14017 CDlabel
14018 \end_layout
14019
14020 \end_inset
14021 </cell>
14022 <cell alignment="left" valignment="top" usebox="none">
14023 \begin_inset Text
14024
14025 \begin_layout Plain Layout
14026
14027 \size small
14028 Circle with circular hole (in the size of a CD/DVD)
14029 \end_layout
14030
14031 \end_inset
14032 </cell>
14033 <cell alignment="left" valignment="top" usebox="none">
14034 \begin_inset Text
14035
14036 \begin_layout Plain Layout
14037
14038 \size small
14039 Cannot be scaled, take care there is not too much text
14040 \end_layout
14041
14042 \end_inset
14043 </cell>
14044 </row>
14045 <row interlinespace="default">
14046 <cell alignment="left" valignment="top" usebox="none">
14047 \begin_inset Text
14048
14049 \begin_layout Plain Layout
14050
14051 \size small
14052 Circle
14053 \end_layout
14054
14055 \end_inset
14056 </cell>
14057 <cell alignment="left" valignment="top" usebox="none">
14058 \begin_inset Text
14059
14060 \begin_layout Plain Layout
14061
14062 \size small
14063 Circle
14064 \end_layout
14065
14066 \end_inset
14067 </cell>
14068 <cell alignment="left" valignment="top" usebox="none">
14069 \begin_inset Text
14070
14071 \begin_layout Plain Layout
14072
14073 \size small
14074 Fragile, calculation might fail
14075 \end_layout
14076
14077 \end_inset
14078 </cell>
14079 </row>
14080 <row interlinespace="default">
14081 <cell alignment="left" valignment="top" usebox="none">
14082 \begin_inset Text
14083
14084 \begin_layout Plain Layout
14085
14086 \size small
14087 Diamond
14088 \end_layout
14089
14090 \end_inset
14091 </cell>
14092 <cell alignment="left" valignment="top" usebox="none">
14093 \begin_inset Text
14094
14095 \begin_layout Plain Layout
14096
14097 \size small
14098 Rhomboid (symbolizing a 
14099 \begin_inset Quotes eld
14100 \end_inset
14101
14102 diamond
14103 \begin_inset Quotes erd
14104 \end_inset
14105
14106 )
14107 \end_layout
14108
14109 \end_inset
14110 </cell>
14111 <cell alignment="left" valignment="top" usebox="none">
14112 \begin_inset Text
14113
14114 \begin_layout Plain Layout
14115
14116 \size small
14117 -
14118 \end_layout
14119
14120 \end_inset
14121 </cell>
14122 </row>
14123 <row interlinespace="default">
14124 <cell alignment="left" valignment="top" usebox="none">
14125 \begin_inset Text
14126
14127 \begin_layout Plain Layout
14128
14129 \size small
14130 Heart
14131 \end_layout
14132
14133 \end_inset
14134 </cell>
14135 <cell alignment="left" valignment="top" usebox="none">
14136 \begin_inset Text
14137
14138 \begin_layout Plain Layout
14139
14140 \size small
14141 Heart-like shape
14142 \end_layout
14143
14144 \end_inset
14145 </cell>
14146 <cell alignment="left" valignment="top" usebox="none">
14147 \begin_inset Text
14148
14149 \begin_layout Plain Layout
14150
14151 \size small
14152 -
14153 \end_layout
14154
14155 \end_inset
14156 </cell>
14157 </row>
14158 <row interlinespace="default">
14159 <cell alignment="left" valignment="top" usebox="none">
14160 \begin_inset Text
14161
14162 \begin_layout Plain Layout
14163
14164 \size small
14165 Hexagon
14166 \end_layout
14167
14168 \end_inset
14169 </cell>
14170 <cell alignment="left" valignment="top" usebox="none">
14171 \begin_inset Text
14172
14173 \begin_layout Plain Layout
14174
14175 \size small
14176 Hexagon
14177 \end_layout
14178
14179 \end_inset
14180 </cell>
14181 <cell alignment="left" valignment="top" usebox="none">
14182 \begin_inset Text
14183
14184 \begin_layout Plain Layout
14185
14186 \size small
14187 -
14188 \end_layout
14189
14190 \end_inset
14191 </cell>
14192 </row>
14193 <row interlinespace="default">
14194 <cell alignment="left" valignment="top" usebox="none">
14195 \begin_inset Text
14196
14197 \begin_layout Plain Layout
14198
14199 \size small
14200 Nut
14201 \end_layout
14202
14203 \end_inset
14204 </cell>
14205 <cell alignment="left" valignment="top" usebox="none">
14206 \begin_inset Text
14207
14208 \begin_layout Plain Layout
14209
14210 \size small
14211 Nut for bolt (hexagon with circular hole)
14212 \end_layout
14213
14214 \end_inset
14215 </cell>
14216 <cell alignment="left" valignment="top" usebox="none">
14217 \begin_inset Text
14218
14219 \begin_layout Plain Layout
14220
14221 \size small
14222 -
14223 \end_layout
14224
14225 \end_inset
14226 </cell>
14227 </row>
14228 <row interlinespace="default">
14229 <cell alignment="left" valignment="top" usebox="none">
14230 \begin_inset Text
14231
14232 \begin_layout Plain Layout
14233
14234 \size small
14235 Square
14236 \end_layout
14237
14238 \end_inset
14239 </cell>
14240 <cell alignment="left" valignment="top" usebox="none">
14241 \begin_inset Text
14242
14243 \begin_layout Plain Layout
14244
14245 \size small
14246 Square
14247 \end_layout
14248
14249 \end_inset
14250 </cell>
14251 <cell alignment="left" valignment="top" usebox="none">
14252 \begin_inset Text
14253
14254 \begin_layout Plain Layout
14255
14256 \size small
14257 -
14258 \end_layout
14259
14260 \end_inset
14261 </cell>
14262 </row>
14263 <row interlinespace="default">
14264 <cell alignment="left" valignment="top" usebox="none">
14265 \begin_inset Text
14266
14267 \begin_layout Plain Layout
14268
14269 \size small
14270 Star
14271 \end_layout
14272
14273 \end_inset
14274 </cell>
14275 <cell alignment="left" valignment="top" usebox="none">
14276 \begin_inset Text
14277
14278 \begin_layout Plain Layout
14279
14280 \size small
14281 Five-point star
14282 \end_layout
14283
14284 \end_inset
14285 </cell>
14286 <cell alignment="left" valignment="top" usebox="none">
14287 \begin_inset Text
14288
14289 \begin_layout Plain Layout
14290
14291 \size small
14292 -
14293 \end_layout
14294
14295 \end_inset
14296 </cell>
14297 </row>
14298 <row interlinespace="default">
14299 <cell alignment="left" valignment="top" usebox="none">
14300 \begin_inset Text
14301
14302 \begin_layout Plain Layout
14303
14304 \size small
14305 Candle
14306 \end_layout
14307
14308 \end_inset
14309 </cell>
14310 <cell alignment="left" valignment="top" usebox="none">
14311 \begin_inset Text
14312
14313 \begin_layout Plain Layout
14314
14315 \size small
14316 Burning candle
14317 \end_layout
14318
14319 \end_inset
14320 </cell>
14321 <cell alignment="left" valignment="top" usebox="none">
14322 \begin_inset Text
14323
14324 \begin_layout Plain Layout
14325
14326 \size small
14327 -
14328 \end_layout
14329
14330 \end_inset
14331 </cell>
14332 </row>
14333 <row interlinespace="default">
14334 <cell alignment="left" valignment="top" usebox="none">
14335 \begin_inset Text
14336
14337 \begin_layout Plain Layout
14338
14339 \size small
14340 Drop down/up
14341 \end_layout
14342
14343 \end_inset
14344 </cell>
14345 <cell alignment="left" valignment="top" usebox="none">
14346 \begin_inset Text
14347
14348 \begin_layout Plain Layout
14349
14350 \size small
14351 Normal/reversed rain drop
14352 \end_layout
14353
14354 \end_inset
14355 </cell>
14356 <cell alignment="left" valignment="top" usebox="none">
14357 \begin_inset Text
14358
14359 \begin_layout Plain Layout
14360
14361 \size small
14362 Fragile, calculation might fail
14363 \end_layout
14364
14365 \end_inset
14366 </cell>
14367 </row>
14368 <row interlinespace="default">
14369 <cell alignment="left" valignment="top" usebox="none">
14370 \begin_inset Text
14371
14372 \begin_layout Plain Layout
14373
14374 \size small
14375 \SpecialChar TeX
14376
14377 \end_layout
14378
14379 \end_inset
14380 </cell>
14381 <cell alignment="left" valignment="top" usebox="none">
14382 \begin_inset Text
14383
14384 \begin_layout Plain Layout
14385
14386 \size small
14387 The \SpecialChar TeX
14388  logo
14389 \end_layout
14390
14391 \end_inset
14392 </cell>
14393 <cell alignment="left" valignment="top" usebox="none">
14394 \begin_inset Text
14395
14396 \begin_layout Plain Layout
14397
14398 \size small
14399 -
14400 \end_layout
14401
14402 \end_inset
14403 </cell>
14404 </row>
14405 <row interlinespace="default">
14406 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14407 \begin_inset Text
14408
14409 \begin_layout Plain Layout
14410
14411 \size small
14412 Triangle up/down/
14413 \begin_inset Newline newline
14414 \end_inset
14415
14416 left/right
14417 \end_layout
14418
14419 \end_inset
14420 </cell>
14421 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14422 \begin_inset Text
14423
14424 \begin_layout Plain Layout
14425
14426 \size small
14427 Triangles in different orientations
14428 \end_layout
14429
14430 \end_inset
14431 </cell>
14432 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14433 \begin_inset Text
14434
14435 \begin_layout Plain Layout
14436
14437 \size small
14438 -
14439 \end_layout
14440
14441 \end_inset
14442 </cell>
14443 </row>
14444 </lyxtabular>
14445
14446 \end_inset
14447
14448
14449 \end_layout
14450
14451 \begin_layout Standard
14452 To use a shape for your paragraph, simply select it in \SpecialChar LyX
14453 's pull-down box
14454  for environments in the toolbar.
14455 \end_layout
14456
14457 \begin_layout Standard
14458 \begin_inset Newpage newpage
14459 \end_inset
14460
14461
14462 \end_layout
14463
14464 \begin_layout Standard
14465 Here is an example paragraph in the shape of a nut:
14466 \end_layout
14467
14468 \begin_layout Standard
14469 \begin_inset VSpace bigskip
14470 \end_inset
14471
14472
14473 \end_layout
14474
14475 \begin_layout Nut
14476
14477 \lang latin
14478 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14479  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14480  voluptua.
14481  At vero eos et accusam et justo duo dolores et ea rebum.
14482  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14483  sit amet.
14484  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14485  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14486  voluptua.
14487 \end_layout
14488
14489 \begin_layout Standard
14490 \begin_inset VSpace bigskip
14491 \end_inset
14492
14493
14494 \end_layout
14495
14496 \begin_layout Standard
14497 \begin_inset Note Greyedout
14498 status open
14499
14500 \begin_layout Plain Layout
14501
14502 \series bold
14503 Note
14504 \series default
14505
14506 \family sans
14507 shapepar
14508 \family default
14509  paragraphs cannot run over a page break.
14510 \end_layout
14511
14512 \end_inset
14513
14514
14515 \end_layout
14516
14517 \begin_layout Standard
14518 \begin_inset VSpace bigskip
14519 \end_inset
14520
14521
14522 \end_layout
14523
14524 \begin_layout Standard
14525 The package 
14526 \begin_inset Flex Code
14527 status collapsed
14528
14529 \begin_layout Plain Layout
14530 shapepar
14531 \end_layout
14532
14533 \end_inset
14534
14535  takes care that the shape will always be preserved, no matter how much
14536  text is in the paragraph.
14537  Therefore the paragraph size changes with the amount of contained text.
14538  This can lead to paragraph sizes exceeding the page margins.
14539  To demonstrate the size scaling, here is the same example paragraph but
14540  with twice as much text:
14541 \end_layout
14542
14543 \begin_layout Standard
14544 \begin_inset Newpage newpage
14545 \end_inset
14546
14547
14548 \end_layout
14549
14550 \begin_layout Nut
14551
14552 \lang latin
14553 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14554  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14555  voluptua.
14556  At vero eos et accusam et justo duo dolores et ea rebum.
14557  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14558  sit amet.
14559  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14560  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14561  voluptua.
14562  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14563  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14564  voluptua.
14565  At vero eos et accusam et justo duo dolores et ea rebum.
14566  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14567  sit amet.
14568  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14569  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14570  voluptua.
14571 \end_layout
14572
14573 \begin_layout Standard
14574 \begin_inset VSpace bigskip
14575 \end_inset
14576
14577
14578 \end_layout
14579
14580 \begin_layout Standard
14581 An exception is the shape 
14582 \family sans
14583 CDlabel
14584 \family default
14585 .
14586  It cannot be scaled because it must fit the size of a CD/DVD.
14587  Therefore the amount of text that fits into the shape is limited.
14588 \begin_inset Newline newline
14589 \end_inset
14590
14591 The 
14592 \family sans
14593 drop
14594 \family default
14595  shapes and the 
14596 \family sans
14597 circle
14598 \family default
14599  shape are fragile, meaning that the calculation of their size can fail,
14600  depending on the amount of text.
14601  You will then get the \SpecialChar LaTeX
14602  error 
14603 \begin_inset Quotes eld
14604 \end_inset
14605
14606 Arithmetic overflow
14607 \begin_inset Quotes erd
14608 \end_inset
14609
14610 .
14611  In this case one can try to remove or add some text; if nothing works one
14612  has to use another shape.
14613 \end_layout
14614
14615 \begin_layout Standard
14616 \begin_inset VSpace bigskip
14617 \end_inset
14618
14619
14620 \end_layout
14621
14622 \begin_layout Standard
14623 For shapes with tips you will maybe see that \SpecialChar LaTeX
14624 's hyphenation routine fails
14625  for text in the tips.
14626  Therefore it is often necessary to add hyphenation points 
14627 \family sans
14628 (
14629 \begin_inset Info
14630 type  "shortcut"
14631 arg   "specialchar-insert hyphenation"
14632 \end_inset
14633
14634
14635 \family default
14636 ) to the corresponding text parts.
14637 \end_layout
14638
14639 \begin_layout Standard
14640 \begin_inset VSpace bigskip
14641 \end_inset
14642
14643
14644 \end_layout
14645
14646 \begin_layout Standard
14647 Shapepar paragraphs are either always centered or placed on the page so
14648  that their left border touches the left page margin.
14649  You can therefore not use the paragraph dialog to align such paragraphs.
14650  A solution is to put the paragraph into a minipage or parbox and align
14651  the box.
14652  The problem is hereby to find the right width for the box.
14653  Because if it is too wide and you center the box, the paragraph is not
14654  centered too because it sticks at the left side of the box.
14655  So you might have to play a bit with the width until it fits.
14656  Here are two heart-shaped paragraphs, the first one is not aligned, the
14657  second one is right-aligned:
14658 \end_layout
14659
14660 \begin_layout Standard
14661 \begin_inset Newpage newpage
14662 \end_inset
14663
14664
14665 \end_layout
14666
14667 \begin_layout Heart
14668 \noindent
14669
14670 \lang latin
14671 Lo\SpecialChar softhyphen
14672 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14673  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14674  voluptua.
14675  At vero eos et accusam et justo duo dolores et ea rebum.
14676  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14677  sit amet.
14678 \end_layout
14679
14680 \begin_layout Standard
14681 \begin_inset VSpace bigskip
14682 \end_inset
14683
14684
14685 \end_layout
14686
14687 \begin_layout Standard
14688 \noindent
14689 \align right
14690 \begin_inset Box Frameless
14691 position "t"
14692 hor_pos "c"
14693 has_inner_box 1
14694 inner_pos "t"
14695 use_parbox 1
14696 use_makebox 0
14697 width "42col%"
14698 special "none"
14699 height "1in"
14700 height_special "totalheight"
14701 thickness "0.4pt"
14702 separation "3pt"
14703 shadowsize "4pt"
14704 framecolor "black"
14705 backgroundcolor "none"
14706 status open
14707
14708 \begin_layout Heart
14709 \noindent
14710
14711 \lang latin
14712 Lo\SpecialChar softhyphen
14713 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14714  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14715  voluptua.
14716  At vero eos et accusam et justo duo dolores et ea rebum.
14717  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14718  sit amet.
14719 \end_layout
14720
14721 \end_inset
14722
14723
14724 \end_layout
14725
14726 \begin_layout Subsubsection
14727 Custom shapes
14728 \end_layout
14729
14730 \begin_layout Standard
14731 You can define any shape you want.
14732  Doing this manually is a lot of work because every coordinate must be specified.
14733  But there is a way to let the computer calculate the coordinates:
14734 \end_layout
14735
14736 \begin_layout Enumerate
14737 Install the program 
14738 \begin_inset CommandInset href
14739 LatexCommand href
14740 name "Jpgfdraw"
14741 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
14742 literal "false"
14743
14744 \end_inset
14745
14746 .
14747 \end_layout
14748
14749 \begin_layout Enumerate
14750 In 
14751 \family sans
14752 Jpgfdraw
14753 \family default
14754  go to the menu 
14755 \family sans
14756 TeX/LaTeX\SpecialChar menuseparator
14757 Settings\SpecialChar menuseparator
14758 Set Normal Size
14759 \family default
14760  and select the font size you are using in your document.
14761  For example this document uses the size 12
14762 \begin_inset space \thinspace{}
14763 \end_inset
14764
14765 pt.
14766 \end_layout
14767
14768 \begin_layout Enumerate
14769 Draw a shape.
14770 \end_layout
14771
14772 \begin_layout Enumerate
14773 Use the menu 
14774 \family sans
14775 TeX/LaTeX\SpecialChar menuseparator
14776 Shapepar
14777 \family default
14778  to export the shape to coordinates.
14779  In the appearing dialog use either the outline of your shape for the coordinate
14780 s or the path itself.
14781 \begin_inset Foot
14782 status collapsed
14783
14784 \begin_layout Plain Layout
14785 For more information see 
14786 \begin_inset CommandInset href
14787 LatexCommand href
14788 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
14789 literal "false"
14790
14791 \end_inset
14792
14793
14794 \end_layout
14795
14796 \end_inset
14797
14798
14799 \end_layout
14800
14801 \begin_layout Standard
14802 The coordinates are written into a \SpecialChar TeX
14803  file.
14804  To use it for your \SpecialChar LyX
14805  document
14806 \end_layout
14807
14808 \begin_layout Enumerate
14809 Place the cursor before the first character of your paragraph (or into a
14810  new empty one).
14811 \end_layout
14812
14813 \begin_layout Enumerate
14814 Open in \SpecialChar LyX
14815  the menu 
14816 \family sans
14817 Insert\SpecialChar menuseparator
14818 File\SpecialChar menuseparator
14819 Child
14820 \begin_inset space ~
14821 \end_inset
14822
14823 Document
14824 \family default
14825 , select the file and use 
14826 \family sans
14827 Input
14828 \family default
14829  as 
14830 \family sans
14831 Include Type.
14832 \end_layout
14833
14834 \begin_layout Standard
14835 \begin_inset VSpace defskip
14836 \end_inset
14837
14838
14839 \end_layout
14840
14841 \begin_layout Standard
14842 \begin_inset Note Greyedout
14843 status open
14844
14845 \begin_layout Plain Layout
14846
14847 \series bold
14848 Note
14849 \series default
14850 : The changed shape only applies to the current paragraph; everything is
14851  reset to normal for the next paragraph.
14852  Therefore the shape definition file must be input into every paragraph
14853  with the desired shape.
14854 \end_layout
14855
14856 \end_inset
14857
14858
14859 \end_layout
14860
14861 \begin_layout Standard
14862 \begin_inset VSpace bigskip
14863 \end_inset
14864
14865
14866 \end_layout
14867
14868 \begin_layout Standard
14869 Here is an example:
14870 \end_layout
14871
14872 \begin_layout Standard
14873 \begin_inset VSpace bigskip
14874 \end_inset
14875
14876
14877 \end_layout
14878
14879 \begin_layout Standard
14880 \begin_inset CommandInset include
14881 LatexCommand input
14882 filename "SpecialParagraphShape.tex"
14883 literal "true"
14884
14885 \end_inset
14886
14887
14888 \lang latin
14889 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14890  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14891  voluptua.
14892  At vero eos et accusam et justo duo dolores et ea rebum.
14893  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14894  sit amet.
14895  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14896  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14897  voluptua.
14898 \end_layout
14899
14900 \begin_layout Standard
14901 \begin_inset VSpace bigskip
14902 \end_inset
14903
14904
14905 \end_layout
14906
14907 \begin_layout Standard
14908
14909 \series bold
14910 A tip:
14911 \series default
14912  to draw complexer shapes in 
14913 \family sans
14914 Jpgfdraw
14915 \family default
14916  you can draw the shape in a program of your choice and import the resulting
14917  image to 
14918 \family sans
14919 Jpgfdraw
14920 \family default
14921 .
14922  Then you only need to draw a line or spline along the outline of the image.
14923 \end_layout
14924
14925 \begin_layout Standard
14926 \begin_inset VSpace bigskip
14927 \end_inset
14928
14929
14930 \end_layout
14931
14932 \begin_layout Standard
14933 The module 
14934 \family sans
14935 Custom paragraph shapes
14936 \family default
14937  also provides the two commands 
14938 \family sans
14939 shapepar
14940 \family default
14941  and 
14942 \family sans
14943 Shapepar
14944 \family default
14945  which can be used to define custom shapes coordinate by coordinate.
14946 \begin_inset Foot
14947 status collapsed
14948
14949 \begin_layout Plain Layout
14950 These commands are internally used for all shapes described here.
14951 \end_layout
14952
14953 \end_inset
14954
14955  For information how these styles are used and about further customization
14956  possibilities, have a look at the 
14957 \begin_inset CommandInset href
14958 LatexCommand href
14959 name "documentation"
14960 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
14961 literal "false"
14962
14963 \end_inset
14964
14965  of the package 
14966 \begin_inset Flex Code
14967 status collapsed
14968
14969 \begin_layout Plain Layout
14970 shapepar
14971 \end_layout
14972
14973 \end_inset
14974
14975 .
14976 \end_layout
14977
14978 \begin_layout Chapter
14979
14980 \change_deleted 564990737 1671304317
14981 Customizing 
14982 \change_unchanged
14983 Bibliograph
14984 \change_inserted 564990737 1671304322
14985 y
14986 \change_deleted 564990737 1671304331
14987 ies with Bib\SpecialChar TeX
14988  or Biblatex
14989 \change_unchanged
14990
14991 \end_layout
14992
14993 \begin_layout Standard
14994 The most basic information about how to use Bib\SpecialChar TeX
14995  or 
14996 \family sans
14997 Biblatex
14998 \family default
14999  with \SpecialChar LyX
15000  is contained in the section 
15001 \emph on
15002 Bibliography databases
15003 \emph default
15004  of the 
15005 \emph on
15006 User's Guide
15007 \emph default
15008 .
15009  The following subsections explain special bibliography features supported
15010  by \SpecialChar LyX
15011 .
15012 \end_layout
15013
15014 \begin_layout Section
15015 Alternative Citation Styles
15016 \end_layout
15017
15018 \begin_layout Standard
15019 Standard Bib\SpecialChar TeX
15020  uses numbers (e.
15021 \begin_inset space \thinspace{}
15022 \end_inset
15023
15024 g.
15025 \begin_inset space \space{}
15026 \end_inset
15027
15028
15029 \begin_inset Quotes eld
15030 \end_inset
15031
15032 [12]
15033 \begin_inset Quotes erd
15034 \end_inset
15035
15036 ) to refer to a cited work.
15037  However, in many scientific disciplines, other citation styles are in use.
15038  The most common one is the author-year style (e.
15039 \begin_inset space \thinspace{}
15040 \end_inset
15041
15042 g.
15043 \begin_inset space \space{}
15044 \end_inset
15045
15046
15047 \begin_inset Quotes eld
15048 \end_inset
15049
15050 Knuth 1984a
15051 \begin_inset Quotes erd
15052 \end_inset
15053
15054 ).
15055  \SpecialChar LyX
15056  supports three packages that provide this style, 
15057 \begin_inset Flex Code
15058 status collapsed
15059
15060 \begin_layout Plain Layout
15061 biblatex
15062 \end_layout
15063
15064 \end_inset
15065
15066
15067 \begin_inset Flex Code
15068 status collapsed
15069
15070 \begin_layout Plain Layout
15071 natbib
15072 \end_layout
15073
15074 \end_inset
15075
15076 , and 
15077 \begin_inset Flex Code
15078 status collapsed
15079
15080 \begin_layout Plain Layout
15081 jurabib
15082 \end_layout
15083
15084 \end_inset
15085
15086 .
15087  Each of these packages has their pros and cons, which cannot be listed
15088  in detail.
15089  If you only want to have simple author-year (or author-numerical) style,
15090  or if you want to use one of the countless style files for 
15091 \begin_inset Flex Code
15092 status collapsed
15093
15094 \begin_layout Plain Layout
15095 natbib
15096 \end_layout
15097
15098 \end_inset
15099
15100 , then the established 
15101 \begin_inset Flex Code
15102 status collapsed
15103
15104 \begin_layout Plain Layout
15105 natbib
15106 \end_layout
15107
15108 \end_inset
15109
15110  package is probably your choice.
15111  If you look for specific citation styles common in law studies, you might
15112  consider the 
15113 \begin_inset Flex Code
15114 status collapsed
15115
15116 \begin_layout Plain Layout
15117 jurabib
15118 \end_layout
15119
15120 \end_inset
15121
15122  package.
15123  If you want to have full control over the formatting or look for advanced
15124  features such as ibidem, footnote citations, full title citations, advanced
15125  date formats (such as 400 BC) or full localization to other languages than
15126  English, you should definitely consider 
15127 \begin_inset Flex Code
15128 status collapsed
15129
15130 \begin_layout Plain Layout
15131 biblatex
15132 \end_layout
15133
15134 \end_inset
15135
15136 , which exceeds all other packages in terms of features, but is also quite
15137  heavy and more resource-hungry.
15138 \end_layout
15139
15140 \begin_layout Standard
15141 The handling of these packages in \SpecialChar LyX
15142  is basically the same.
15143  Go to 
15144 \begin_inset Flex Noun
15145 status collapsed
15146
15147 \begin_layout Plain Layout
15148 Document\SpecialChar menuseparator
15149 Settings
15150 \end_layout
15151
15152 \end_inset
15153
15154  and select under 
15155 \begin_inset Flex Noun
15156 status collapsed
15157
15158 \begin_layout Plain Layout
15159 Bibliography
15160 \end_layout
15161
15162 \end_inset
15163
15164  the 
15165 \begin_inset Flex Noun
15166 status collapsed
15167
15168 \begin_layout Plain Layout
15169 Style Format
15170 \end_layout
15171
15172 \end_inset
15173
15174  
15175 \begin_inset Flex Noun
15176 status collapsed
15177
15178 \begin_layout Plain Layout
15179 Basic (BibTeX)
15180 \end_layout
15181
15182 \end_inset
15183
15184
15185 \begin_inset Flex Noun
15186 status collapsed
15187
15188 \begin_layout Plain Layout
15189 Biblatex
15190 \end_layout
15191
15192 \end_inset
15193
15194
15195 \begin_inset Flex Noun
15196 status collapsed
15197
15198 \begin_layout Plain Layout
15199 Biblatex (Natbib mode)
15200 \end_layout
15201
15202 \end_inset
15203
15204
15205 \begin_inset Flex Noun
15206 status collapsed
15207
15208 \begin_layout Plain Layout
15209 Natbib (BibTeX)
15210 \end_layout
15211
15212 \end_inset
15213
15214  or 
15215 \begin_inset Flex Noun
15216 status collapsed
15217
15218 \begin_layout Plain Layout
15219 Jurabib (BibTeX)
15220 \end_layout
15221
15222 \end_inset
15223
15224  (see sec.
15225 \begin_inset space ~
15226 \end_inset
15227
15228 6.5.3 in the User's Guide for more information on these choices).
15229  With all these packages, you will get some extra features in the citation
15230  dialog and you can select the style of the reference (
15231 \begin_inset Quotes eld
15232 \end_inset
15233
15234 Knuth 1984
15235 \begin_inset Quotes erd
15236 \end_inset
15237
15238
15239 \begin_inset Quotes eld
15240 \end_inset
15241
15242 Knuth (1984)
15243 \begin_inset Quotes erd
15244 \end_inset
15245
15246
15247 \begin_inset Quotes eld
15248 \end_inset
15249
15250 Knuth, 1984
15251 \begin_inset Quotes erd
15252 \end_inset
15253
15254
15255 \begin_inset Quotes eld
15256 \end_inset
15257
15258 1984
15259 \begin_inset Quotes erd
15260 \end_inset
15261
15262  etc.).
15263  Note that either package needs specifically designed style files.
15264  They all ship their own, but there are lots of additional style files,
15265  and there is even an interactive style file builder
15266 \begin_inset Foot
15267 status collapsed
15268
15269 \begin_layout Plain Layout
15270 See 
15271 \begin_inset Flex URL
15272 status open
15273
15274 \begin_layout Plain Layout
15275
15276 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
15277 \end_layout
15278
15279 \end_inset
15280
15281
15282 \end_layout
15283
15284 \end_inset
15285
15286  for 
15287 \begin_inset Flex Code
15288 status collapsed
15289
15290 \begin_layout Plain Layout
15291 natbib
15292 \end_layout
15293
15294 \end_inset
15295
15296 .
15297 \end_layout
15298
15299 \begin_layout Section
15300 Subdivided Bibliographies
15301 \end_layout
15302
15303 \begin_layout Standard
15304 Sometimes you might need to divide your bibliography into several sections.
15305  If you are for instance a historian, the possibility to separate sources
15306  and scientific works is most likely a 
15307 \begin_inset Quotes eld
15308 \end_inset
15309
15310 must have
15311 \begin_inset Quotes erd
15312 \end_inset
15313
15314 .
15315  Unfortunately, Bib\SpecialChar TeX
15316  itself does not allow you to do this.
15317  But with the help of some \SpecialChar LaTeX
15318  packages, Bib\SpecialChar TeX
15319  can be extended to fit your needs.
15320 \end_layout
15321
15322 \begin_layout Standard
15323 \SpecialChar LyX
15324  provides native support for one of these packages, 
15325 \family typewriter
15326 bibtopic
15327 \family default
15328 .
15329 \begin_inset Foot
15330 status collapsed
15331
15332 \begin_layout Plain Layout
15333 Available from 
15334 \begin_inset Flex URL
15335 status open
15336
15337 \begin_layout Plain Layout
15338
15339 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
15340 \end_layout
15341
15342 \end_inset
15343
15344
15345 \end_layout
15346
15347 \end_inset
15348
15349  The advantage of this package (compared to other packages such as 
15350 \family typewriter
15351 multibib
15352 \family default
15353 ) is that you don't need to define new citation commands.
15354  Instead, you need to prepare different bibliographic databases which include
15355  the entries for the different sections of the bibliography.
15356  For example: If you want to divide your bibliography into the sections
15357  
15358 \begin_inset Quotes eld
15359 \end_inset
15360
15361 Sources
15362 \begin_inset Quotes erd
15363 \end_inset
15364
15365  and 
15366 \begin_inset Quotes eld
15367 \end_inset
15368
15369 Scientific works
15370 \begin_inset Quotes erd
15371 \end_inset
15372
15373 , you first need to create two bibliographic databases, e.
15374 \begin_inset space \thinspace{}
15375 \end_inset
15376
15377 g.
15378 \begin_inset space \space{}
15379 \end_inset
15380
15381
15382 \begin_inset Flex Code
15383 status collapsed
15384
15385 \begin_layout Plain Layout
15386 sources.bib
15387 \end_layout
15388
15389 \end_inset
15390
15391  and 
15392 \begin_inset Flex Code
15393 status collapsed
15394
15395 \begin_layout Plain Layout
15396 scientific.bib
15397 \end_layout
15398
15399 \end_inset
15400
15401 .
15402  
15403 \end_layout
15404
15405 \begin_layout Standard
15406 Go to 
15407 \begin_inset Flex Noun
15408 status collapsed
15409
15410 \begin_layout Plain Layout
15411 Document\SpecialChar menuseparator
15412 Settings
15413 \end_layout
15414
15415 \end_inset
15416
15417  and check under 
15418 \begin_inset Flex Noun
15419 status collapsed
15420
15421 \begin_layout Plain Layout
15422 Bibliography
15423 \end_layout
15424
15425 \end_inset
15426
15427  the option 
15428 \begin_inset Flex Noun
15429 status collapsed
15430
15431 \begin_layout Plain Layout
15432 Subdivided bibliography
15433 \end_layout
15434
15435 \end_inset
15436
15437 .
15438  Now you can insert multiple Bib\SpecialChar TeX
15439  bibliographies, one for each section of
15440  your bibliography.
15441  Returning to our example: Insert the Bib\SpecialChar TeX
15442  bibliography 
15443 \begin_inset Flex Code
15444 status collapsed
15445
15446 \begin_layout Plain Layout
15447 sources.bib
15448 \end_layout
15449
15450 \end_inset
15451
15452  and a second one for the database 
15453 \begin_inset Flex Code
15454 status collapsed
15455
15456 \begin_layout Plain Layout
15457 scientific.bib
15458 \end_layout
15459
15460 \end_inset
15461
15462 .
15463  You are free to use the same or different styles for each section.
15464  Additionally, you can choose if the bibliography section should contain
15465  
15466 \begin_inset Quotes eld
15467 \end_inset
15468
15469 all cited references
15470 \begin_inset Quotes erd
15471 \end_inset
15472
15473  of the specified database(s) (which is the default), 
15474 \begin_inset Quotes eld
15475 \end_inset
15476
15477 all uncited references
15478 \begin_inset Quotes erd
15479 \end_inset
15480
15481  or even 
15482 \begin_inset Quotes eld
15483 \end_inset
15484
15485 all references
15486 \begin_inset Quotes erd
15487 \end_inset
15488
15489 .
15490  This might be useful if you would like to separate your bibliography into
15491  three sections: 
15492 \begin_inset Quotes eld
15493 \end_inset
15494
15495 Cited sources
15496 \begin_inset Quotes erd
15497 \end_inset
15498
15499
15500 \begin_inset Quotes eld
15501 \end_inset
15502
15503 Uncited sources
15504 \begin_inset Quotes erd
15505 \end_inset
15506
15507 , and 
15508 \begin_inset Quotes eld
15509 \end_inset
15510
15511 Scientific works
15512 \begin_inset Quotes erd
15513 \end_inset
15514
15515 .
15516  The titles for the sections can be added as ordinary sections or subsections.
15517  Since 
15518 \begin_inset Flex Code
15519 status collapsed
15520
15521 \begin_layout Plain Layout
15522 bibtopic
15523 \end_layout
15524
15525 \end_inset
15526
15527  removes the bibliography title, you have to manually re-add that, too (as
15528  a chapter* or section*, for instance).
15529 \end_layout
15530
15531 \begin_layout Standard
15532 With 
15533 \family sans
15534 Biblatex
15535 \family default
15536 , the procedure is a bit different.
15537  Since 
15538 \family typewriter
15539 bibtopic
15540 \family default
15541  does not work with 
15542 \family sans
15543 Biblatex
15544 \family default
15545 , the aforementioned 
15546 \begin_inset Flex Noun
15547 status collapsed
15548
15549 \begin_layout Plain Layout
15550 Subdivided bibliography
15551 \end_layout
15552
15553 \end_inset
15554
15555  option is disabled if you use 
15556 \family sans
15557 Biblatex
15558 \family default
15559 .
15560  However, 
15561 \family sans
15562 Biblatex
15563 \family default
15564  provides its own means to generate subdivided bibliographies.
15565  You can either add keywords to bibliography entries via the 
15566 \begin_inset Flex Code
15567 status collapsed
15568
15569 \begin_layout Plain Layout
15570 keywords
15571 \end_layout
15572
15573 \end_inset
15574
15575  entry option and then filter bibliography sections by keyword (by adding
15576  
15577 \begin_inset Flex Code
15578 status collapsed
15579
15580 \begin_layout Plain Layout
15581 keyword=mykeyword
15582 \end_layout
15583
15584 \end_inset
15585
15586  to the 
15587 \begin_inset Flex Noun
15588 status collapsed
15589
15590 \begin_layout Plain Layout
15591 Options
15592 \end_layout
15593
15594 \end_inset
15595
15596  field of the dialog that opens if you left-click on the 
15597 \begin_inset Flex Noun
15598 status collapsed
15599
15600 \begin_layout Plain Layout
15601 Biblatex Generated Bibliography
15602 \end_layout
15603
15604 \end_inset
15605
15606  button), or you can filter by entry types (such as 
15607 \emph on
15608 book
15609 \emph default
15610  or 
15611 \emph on
15612 article
15613 \emph default
15614 ) by entering e.
15615 \begin_inset space \thinspace{}
15616 \end_inset
15617
15618 g.
15619  
15620 \begin_inset Flex Code
15621 status collapsed
15622
15623 \begin_layout Plain Layout
15624 type=book
15625 \end_layout
15626
15627 \end_inset
15628
15629  or 
15630 \begin_inset Flex Code
15631 status collapsed
15632
15633 \begin_layout Plain Layout
15634 nottype=collection
15635 \end_layout
15636
15637 \end_inset
15638
15639  to the mentioned 
15640 \begin_inset Flex Noun
15641 status collapsed
15642
15643 \begin_layout Plain Layout
15644 Options
15645 \end_layout
15646
15647 \end_inset
15648
15649  field, or you can create so-called 
15650 \begin_inset Quotes eld
15651 \end_inset
15652
15653 Bibliography Categories
15654 \begin_inset Quotes erd
15655 \end_inset
15656
15657  to which you can assign individual entries.
15658  Please refer to the Biblatex manual, section 
15659 \emph on
15660 Subdivided Bibliographies
15661 \emph default
15662 , for details.
15663 \end_layout
15664
15665 \begin_layout Section
15666 Multiple Bibliographies
15667 \begin_inset CommandInset label
15668 LatexCommand label
15669 name "subsec:Multiple-Bibliographies"
15670
15671 \end_inset
15672
15673
15674 \end_layout
15675
15676 \begin_layout Standard
15677 Multiple bibliographies, e.
15678 \begin_inset space \thinspace{}
15679 \end_inset
15680
15681 g.
15682 \begin_inset space \space{}
15683 \end_inset
15684
15685 a bibliography for each part, chapter, section, subsection or child (sub-documen
15686 t) of the document, are also supported by \SpecialChar LyX
15687 .
15688  In order to enable it, go to 
15689 \begin_inset Flex Noun
15690 status collapsed
15691
15692 \begin_layout Plain Layout
15693 Document\SpecialChar menuseparator
15694 Settings\SpecialChar menuseparator
15695 Bibliography
15696 \end_layout
15697
15698 \end_inset
15699
15700  and select the relevant unit (e.
15701 \begin_inset space \thinspace{}
15702 \end_inset
15703
15704 g., 
15705 \begin_inset Quotes eld
15706 \end_inset
15707
15708 per section
15709 \begin_inset Quotes erd
15710 \end_inset
15711
15712 ) in the 
15713 \begin_inset Flex Noun
15714 status collapsed
15715
15716 \begin_layout Plain Layout
15717 Multiple Bibliographies
15718 \end_layout
15719
15720 \end_inset
15721
15722  combo box.
15723  Then add a Bib(la)\SpecialChar TeX
15724  bibliography to each unit (e.
15725 \begin_inset space \thinspace{}
15726 \end_inset
15727
15728 g., section) of your document.
15729  In the output, a separate bibliography, containing only the references
15730  done in the current unit is generated.
15731 \end_layout
15732
15733 \begin_layout Standard
15734 If you use Bib\SpecialChar TeX
15735 , either the 
15736 \begin_inset Flex Code
15737 status collapsed
15738
15739 \begin_layout Plain Layout
15740 chapterbib
15741 \end_layout
15742
15743 \end_inset
15744
15745  or the 
15746 \begin_inset Flex Code
15747 status collapsed
15748
15749 \begin_layout Plain Layout
15750 bibtopic
15751 \end_layout
15752
15753 \end_inset
15754
15755  package is used to create multiple bibliographies.
15756  The former package is used if you select 
15757 \begin_inset Quotes eld
15758 \end_inset
15759
15760 per child document
15761 \begin_inset Quotes erd
15762 \end_inset
15763
15764  and do 
15765 \emph on
15766 not
15767 \emph default
15768  check 
15769 \begin_inset Flex Noun
15770 status collapsed
15771
15772 \begin_layout Plain Layout
15773 Sectioned Bibliography
15774 \end_layout
15775
15776 \end_inset
15777
15778 .
15779  In all other cases, 
15780 \begin_inset Flex Code
15781 status collapsed
15782
15783 \begin_layout Plain Layout
15784 bibtopic
15785 \end_layout
15786
15787 \end_inset
15788
15789  is used.
15790 \begin_inset Foot
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 An alternative approach, if you are willing to use some 
15795 \begin_inset Flex Noun
15796 status collapsed
15797
15798 \begin_layout Plain Layout
15799 \SpecialChar TeX
15800  Code
15801 \end_layout
15802
15803 \end_inset
15804
15805  (see section
15806 \begin_inset space ~
15807 \end_inset
15808
15809
15810 \begin_inset CommandInset ref
15811 LatexCommand ref
15812 reference "sec:Inserting-TeX-Code"
15813
15814 \end_inset
15815
15816 ), is to use the 
15817 \begin_inset Flex Code
15818 status collapsed
15819
15820 \begin_layout Plain Layout
15821 bibunits
15822 \end_layout
15823
15824 \end_inset
15825
15826  package.
15827 \end_layout
15828
15829 \end_inset
15830
15831  If 
15832 \begin_inset Flex Code
15833 status collapsed
15834
15835 \begin_layout Plain Layout
15836 bibtopic
15837 \end_layout
15838
15839 \end_inset
15840
15841  is used, \SpecialChar LyX
15842  encloses the specified units in 
15843 \begin_inset Flex Code
15844 status collapsed
15845
15846 \begin_layout Plain Layout
15847 bibtopic
15848 \end_layout
15849
15850 \end_inset
15851
15852 's 
15853 \begin_inset Flex Code
15854 status collapsed
15855
15856 \begin_layout Plain Layout
15857
15858 \backslash
15859 begin{btUnit}
15860 \end_layout
15861
15862 \end_inset
15863
15864  and 
15865 \begin_inset Flex Code
15866 status collapsed
15867
15868 \begin_layout Plain Layout
15869
15870 \backslash
15871 end{btUnit}
15872 \end_layout
15873
15874 \end_inset
15875
15876  in order to create the units.
15877  Note that this approach has some limitations.
15878  First, every citation reference has to be inside some 
15879 \begin_inset Flex Code
15880 status collapsed
15881
15882 \begin_layout Plain Layout
15883 btUnit
15884 \end_layout
15885
15886 \end_inset
15887
15888 .
15889  So citations outside a defined unit (e.
15890 \begin_inset space \thinspace{}
15891 \end_inset
15892
15893 g., before the first section if you use 
15894 \begin_inset Quotes eld
15895 \end_inset
15896
15897 by section
15898 \begin_inset Quotes erd
15899 \end_inset
15900
15901 ) will appear as 
15902 \begin_inset Quotes eld
15903 \end_inset
15904
15905 ???
15906 \begin_inset Quotes erd
15907 \end_inset
15908
15909 .
15910  You can also create your own units by entering 
15911 \begin_inset Flex Code
15912 status collapsed
15913
15914 \begin_layout Plain Layout
15915
15916 \backslash
15917 begin{btUnit}
15918 \end_layout
15919
15920 \end_inset
15921
15922  and 
15923 \begin_inset Flex Code
15924 status collapsed
15925
15926 \begin_layout Plain Layout
15927
15928 \backslash
15929 end{btUnit}
15930 \end_layout
15931
15932 \end_inset
15933
15934  as \SpecialChar TeX
15935  code (for instance to work around the mentioned limitation).
15936  Note, though, that 
15937 \begin_inset Flex Code
15938 status collapsed
15939
15940 \begin_layout Plain Layout
15941 btUnit
15942 \end_layout
15943
15944 \end_inset
15945
15946 s cannot be nested.
15947  A second limitation is that 
15948 \begin_inset Flex Code
15949 status collapsed
15950
15951 \begin_layout Plain Layout
15952 bibtopic
15953 \end_layout
15954
15955 \end_inset
15956
15957  always processes all references of a bibliography database, even if they
15958  are not cited.
15959  This can result in odd labels (e.
15960 \begin_inset space \thinspace{}
15961 \end_inset
15962
15963 g.
15964  
15965 \begin_inset Quotes eld
15966 \end_inset
15967
15968 Miller 2014b
15969 \begin_inset Quotes erd
15970 \end_inset
15971
15972  if two works of this author from 2014 are in the database, even if only
15973  one is cited).
15974 \end_layout
15975
15976 \begin_layout Standard
15977 If you use 
15978 \family sans
15979 Biblatex
15980 \family default
15981 , the 
15982 \begin_inset Flex Code
15983 status collapsed
15984
15985 \begin_layout Plain Layout
15986 refsection
15987 \end_layout
15988
15989 \end_inset
15990
15991  option is used instead.
15992  If you need specific units, you can start them with the \SpecialChar TeX
15993  code 
15994 \begin_inset Flex Code
15995 status collapsed
15996
15997 \begin_layout Plain Layout
15998
15999 \backslash
16000 newrefsection
16001 \end_layout
16002
16003 \end_inset
16004
16005  or 
16006 \begin_inset Flex Code
16007 status collapsed
16008
16009 \begin_layout Plain Layout
16010
16011 \backslash
16012 newrefsegment
16013 \end_layout
16014
16015 \end_inset
16016
16017 , respectively.
16018  If you also want to control the end of the unit, use the environment 
16019 \begin_inset Flex Code
16020 status collapsed
16021
16022 \begin_layout Plain Layout
16023
16024 \backslash
16025 begin{refsection}
16026 \end_layout
16027
16028 \end_inset
16029
16030  \SpecialChar ldots
16031  
16032 \begin_inset Flex Code
16033 status collapsed
16034
16035 \begin_layout Plain Layout
16036
16037 \backslash
16038 end{refsection}
16039 \end_layout
16040
16041 \end_inset
16042
16043  instead.
16044  Note, though, that 
16045 \begin_inset Flex Code
16046 status collapsed
16047
16048 \begin_layout Plain Layout
16049 refsection
16050 \end_layout
16051
16052 \end_inset
16053
16054 s cannot be nested.
16055  In addition to the individual bibliography of the current unit, 
16056 \family sans
16057 Biblatex
16058 \family default
16059  also provides an easy way to output all bibliographies, subsequently, at
16060  one place (e.
16061 \begin_inset space \thinspace{}
16062 \end_inset
16063
16064 g., at the end of the document).
16065  Select 
16066 \begin_inset Quotes eld
16067 \end_inset
16068
16069 all reference units
16070 \begin_inset Quotes erd
16071 \end_inset
16072
16073  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
16074  this.
16075  Please refer to the 
16076 \family sans
16077 Biblatex
16078 \family default
16079  manual for more information on this topic.
16080 \end_layout
16081
16082 \begin_layout Chapter
16083
16084 \change_deleted 564990737 1671355654
16085 Itemize 
16086 \change_unchanged
16087 Bullet
16088 \change_inserted 564990737 1671355667
16089 s
16090 \change_deleted 564990737 1671355661
16091  Selection
16092 \change_inserted 564990737 1671355684
16093
16094 \begin_inset CommandInset label
16095 LatexCommand label
16096 name "chap:bullets"
16097
16098 \end_inset
16099
16100
16101 \change_deleted 564990737 1671355684
16102
16103 \begin_inset CommandInset label
16104 LatexCommand label
16105 name "sec:bullet"
16106
16107 \end_inset
16108
16109
16110 \change_unchanged
16111
16112 \end_layout
16113
16114 \begin_layout Standard
16115 by
16116 \noun on
16117  Allan Rae
16118 \end_layout
16119
16120 \begin_layout Section
16121 Introduction
16122 \end_layout
16123
16124 \begin_layout Standard
16125 \SpecialChar LyX
16126  provides 216 bullet shapes that can be accessed from a simple dialog.
16127  Using this dialog you can easily specify what bullet shape to use at each
16128  level of an itemized list.
16129  These settings are document-wide so you won't be able to specify different
16130  sets of bullets for different paragraphs.
16131 \begin_inset Foot
16132 status collapsed
16133
16134 \begin_layout Plain Layout
16135 Well, actually you can but you'll have to do it by hand.
16136 \end_layout
16137
16138 \end_inset
16139
16140
16141 \end_layout
16142
16143 \begin_layout Section
16144 How it looks
16145 \end_layout
16146
16147 \begin_layout Standard
16148 Open the dialog by selecting the 
16149 \begin_inset Flex Noun
16150 status collapsed
16151
16152 \begin_layout Plain Layout
16153 Document\SpecialChar menuseparator
16154 Settings
16155 \end_layout
16156
16157 \end_inset
16158
16159  menu item and then select the 
16160 \begin_inset Flex Noun
16161 status collapsed
16162
16163 \begin_layout Plain Layout
16164 Bullets
16165 \end_layout
16166
16167 \end_inset
16168
16169  tab.
16170 \end_layout
16171
16172 \begin_layout Standard
16173 The dialog provides you with a table of bullet shapes.
16174  A column of buttons on the left of the table provides access to the six
16175  different panels of bullet shapes.
16176  The row of buttons across the top is used to select which bullet depth
16177  you are changing.
16178
16179 \change_deleted 244031559 1603875981
16180  A text entry under the table shows the currently selected bullet shape's
16181  \SpecialChar LaTeX
16182  equivalent and this can be edited if desired.
16183  If you do modify the text you will also need to specify any needed packages
16184  in the \SpecialChar LaTeX
16185  preamble.
16186 \change_unchanged
16187
16188 \end_layout
16189
16190 \begin_layout Standard
16191 The six panels are divided up by the packages they require.
16192  The following table shows the mappings from button name to \SpecialChar LaTeX
16193  package.
16194 \end_layout
16195
16196 \begin_layout Standard
16197 \align center
16198 \begin_inset Tabular
16199 <lyxtabular version="3" rows="7" columns="2">
16200 <features tabularvalignment="middle">
16201 <column alignment="center" valignment="top" width="0pt">
16202 <column alignment="center" valignment="top" width="0pt">
16203 <row>
16204 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16205 \begin_inset Text
16206
16207 \begin_layout Plain Layout
16208
16209 \family roman
16210 \series medium
16211 \shape up
16212 \size normal
16213 \emph off
16214 \bar no
16215 \noun off
16216 \color none
16217 Button
16218 \end_layout
16219
16220 \end_inset
16221 </cell>
16222 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16223 \begin_inset Text
16224
16225 \begin_layout Plain Layout
16226
16227 \family roman
16228 \series medium
16229 \shape up
16230 \size normal
16231 \emph off
16232 \bar no
16233 \noun off
16234 \color none
16235 Packages Required
16236 \end_layout
16237
16238 \end_inset
16239 </cell>
16240 </row>
16241 <row>
16242 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16243 \begin_inset Text
16244
16245 \begin_layout Plain Layout
16246
16247 \family sans
16248 \series medium
16249 \shape up
16250 \size normal
16251 \emph off
16252 \bar no
16253 \noun off
16254 \color none
16255 Standard
16256 \end_layout
16257
16258 \end_inset
16259 </cell>
16260 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16261 \begin_inset Text
16262
16263 \begin_layout Plain Layout
16264
16265 \series medium
16266 \shape up
16267 \size normal
16268 \emph off
16269 \bar no
16270 \noun off
16271 \color none
16272 base \SpecialChar LaTeX
16273
16274 \end_layout
16275
16276 \end_inset
16277 </cell>
16278 </row>
16279 <row>
16280 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16281 \begin_inset Text
16282
16283 \begin_layout Plain Layout
16284
16285 \family sans
16286 \series medium
16287 \shape up
16288 \size normal
16289 \emph off
16290 \bar no
16291 \noun off
16292 \color none
16293 Maths
16294 \end_layout
16295
16296 \end_inset
16297 </cell>
16298 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16299 \begin_inset Text
16300
16301 \begin_layout Plain Layout
16302
16303 \family typewriter
16304 \series medium
16305 \shape up
16306 \size normal
16307 \emph off
16308 \bar no
16309 \noun off
16310 \color none
16311 amssymb.sty
16312 \end_layout
16313
16314 \end_inset
16315 </cell>
16316 </row>
16317 <row>
16318 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16319 \begin_inset Text
16320
16321 \begin_layout Plain Layout
16322
16323 \family sans
16324 \series medium
16325 \shape up
16326 \size normal
16327 \emph off
16328 \bar no
16329 \noun off
16330 \color none
16331 Ding1
16332 \end_layout
16333
16334 \end_inset
16335 </cell>
16336 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16337 \begin_inset Text
16338
16339 \begin_layout Plain Layout
16340
16341 \family typewriter
16342 \series medium
16343 \shape up
16344 \size normal
16345 \emph off
16346 \bar no
16347 \noun off
16348 \color none
16349 pifont.sty
16350 \end_layout
16351
16352 \end_inset
16353 </cell>
16354 </row>
16355 <row>
16356 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16357 \begin_inset Text
16358
16359 \begin_layout Plain Layout
16360
16361 \family sans
16362 \series medium
16363 \shape up
16364 \size normal
16365 \emph off
16366 \bar no
16367 \noun off
16368 \color none
16369 Ding2
16370 \end_layout
16371
16372 \end_inset
16373 </cell>
16374 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16375 \begin_inset Text
16376
16377 \begin_layout Plain Layout
16378
16379 \family typewriter
16380 \series medium
16381 \shape up
16382 \size normal
16383 \emph off
16384 \bar no
16385 \noun off
16386 \color none
16387 pifont.sty
16388 \end_layout
16389
16390 \end_inset
16391 </cell>
16392 </row>
16393 <row>
16394 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16395 \begin_inset Text
16396
16397 \begin_layout Plain Layout
16398
16399 \family sans
16400 \series medium
16401 \shape up
16402 \size normal
16403 \emph off
16404 \bar no
16405 \noun off
16406 \color none
16407 Ding3
16408 \end_layout
16409
16410 \end_inset
16411 </cell>
16412 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16413 \begin_inset Text
16414
16415 \begin_layout Plain Layout
16416
16417 \family typewriter
16418 \series medium
16419 \shape up
16420 \size normal
16421 \emph off
16422 \bar no
16423 \noun off
16424 \color none
16425 pifont.sty
16426 \end_layout
16427
16428 \end_inset
16429 </cell>
16430 </row>
16431 <row>
16432 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16433 \begin_inset Text
16434
16435 \begin_layout Plain Layout
16436
16437 \family sans
16438 \series medium
16439 \shape up
16440 \size normal
16441 \emph off
16442 \bar no
16443 \noun off
16444 \color none
16445 Ding4
16446 \end_layout
16447
16448 \end_inset
16449 </cell>
16450 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16451 \begin_inset Text
16452
16453 \begin_layout Plain Layout
16454
16455 \family typewriter
16456 \series medium
16457 \shape up
16458 \size normal
16459 \emph off
16460 \bar no
16461 \noun off
16462 \color none
16463 pifont.sty
16464 \end_layout
16465
16466 \end_inset
16467 </cell>
16468 </row>
16469 </lyxtabular>
16470
16471 \end_inset
16472
16473
16474 \end_layout
16475
16476 \begin_layout Standard
16477 \SpecialChar LyX
16478  doesn't stop you using bullets from packages you don't have.
16479  If you get errors from \SpecialChar LaTeX
16480  when you try to view or print the file, then it
16481  is likely you are missing a package.
16482 \begin_inset Foot
16483 status collapsed
16484
16485 \begin_layout Plain Layout
16486 \SpecialChar LyX
16487  doesn't restrict your use since you may be editing locally and exporting
16488  elsewhere.
16489 \end_layout
16490
16491 \end_inset
16492
16493
16494 \end_layout
16495
16496 \begin_layout Section
16497 How to use it
16498 \end_layout
16499
16500 \begin_layout Standard
16501 Select which bullet depth you want to change then select the bullet shape
16502  and size.
16503  Any changes will not be visible in \SpecialChar LyX
16504 , but are visible when viewing the document.
16505 \end_layout
16506
16507 \begin_layout Standard
16508 You can reset a bullet shape to the default simply by clicking your right
16509  mouse button on the appropriate bullet depth button.
16510 \begin_inset Foot
16511 status open
16512
16513 \begin_layout Plain Layout
16514 If you 
16515 \emph on
16516 really
16517 \emph default
16518  want to have multiple sets of paragraphs with different sets of bullets
16519  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
16520  code.
16521  The bullet selection dialog can help though because it provides you with
16522  the \SpecialChar LaTeX
16523  code for a wide range of bullet shapes.
16524  To make your own custom paragraphs you have the following options:
16525 \end_layout
16526
16527 \begin_layout Plain Layout
16528 \begin_inset ERT
16529 status open
16530
16531 \begin_layout Plain Layout
16532
16533
16534 \backslash
16535 let
16536 \backslash
16537 savelabelitemi=
16538 \backslash
16539 labelitemi
16540 \end_layout
16541
16542 \end_inset
16543
16544
16545 \end_layout
16546
16547 \begin_layout Plain Layout
16548 \begin_inset ERT
16549 status open
16550
16551 \begin_layout Plain Layout
16552
16553
16554 \backslash
16555 renewcommand
16556 \backslash
16557 labelitemi[0]{
16558 \backslash
16559 small
16560 \backslash
16561 (
16562 \backslash
16563 sharp
16564 \backslash
16565 )}
16566 \end_layout
16567
16568 \end_inset
16569
16570
16571 \end_layout
16572
16573 \begin_layout Itemize
16574 Use the \SpecialChar LaTeX
16575  command 
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580
16581 \backslash
16582 renewcommand{}{}
16583 \end_layout
16584
16585 \end_inset
16586
16587  to specify a new bullet shape for a given depth.
16588  You'll also need to save the current bullet shape so you can restore it
16589  again afterwards.
16590  In this itemized list the following \SpecialChar LaTeX
16591  code was used to change the bullet
16592  used for the first depth.
16593 \end_layout
16594
16595 \begin_deeper
16596 \begin_layout LyX-Code
16597
16598 \backslash
16599 let
16600 \backslash
16601 savelabelitemi=
16602 \backslash
16603 labelitemi 
16604 \end_layout
16605
16606 \begin_layout LyX-Code
16607
16608 \backslash
16609 renewcommand
16610 \backslash
16611 labelitemi[0]{
16612 \backslash
16613 small
16614 \backslash
16615 (
16616 \backslash
16617 sharp
16618 \backslash
16619 )}
16620 \end_layout
16621
16622 \end_deeper
16623 \begin_layout Itemize
16624 Note that the itemize depth is specified in Roman numerals as part of the
16625  
16626 \family typewriter
16627
16628 \backslash
16629 labelitem
16630 \family default
16631  command.
16632 \end_layout
16633
16634 \begin_layout Itemize
16635 \begin_inset Argument item:1
16636 status open
16637
16638 \begin_layout Plain Layout
16639 \begin_inset ERT
16640 status open
16641
16642 \begin_layout Plain Layout
16643
16644
16645 \backslash
16646 (
16647 \backslash
16648 star
16649 \backslash
16650 )
16651 \end_layout
16652
16653 \end_inset
16654
16655
16656 \end_layout
16657
16658 \end_inset
16659
16660  Specify each individual entry by starting each item with the bullet shape
16661  enclosed in a 
16662 \begin_inset Quotes eld
16663 \end_inset
16664
16665 Custom Item
16666 \begin_inset Quotes erd
16667 \end_inset
16668
16669  inset (available at 
16670 \family sans
16671 Insert\SpecialChar menuseparator
16672 Custom Item
16673 \family default
16674 ) and set as 
16675 \begin_inset Flex Noun
16676 status collapsed
16677
16678 \begin_layout Plain Layout
16679 \SpecialChar TeX
16680  Code
16681 \end_layout
16682
16683 \end_inset
16684
16685 .
16686  For example, this item was started with 
16687 \begin_inset Flex Code
16688 status collapsed
16689
16690 \begin_layout Plain Layout
16691
16692 \backslash
16693 (
16694 \backslash
16695 star
16696 \backslash
16697 )
16698 \end_layout
16699
16700 \end_inset
16701
16702 .
16703 \end_layout
16704
16705 \begin_layout Plain Layout
16706 \begin_inset ERT
16707 status open
16708
16709 \begin_layout Plain Layout
16710
16711
16712 \backslash
16713 renewcommand
16714 \backslash
16715 labelitemi[0]{
16716 \backslash
16717 savelabelitemi}
16718 \end_layout
16719
16720 \end_inset
16721
16722
16723 \end_layout
16724
16725 \begin_layout Plain Layout
16726 You'll also need to revert the labelitem back to its previous setting for
16727  the global bullet shape settings to remain in effect.
16728  The way used here was:
16729 \end_layout
16730
16731 \begin_layout LyX-Code
16732
16733 \backslash
16734 renewcommand
16735 \backslash
16736 labelitemi[0]{
16737 \backslash
16738 savelabelitemi}
16739 \end_layout
16740
16741 \end_inset
16742
16743
16744 \end_layout
16745
16746 \begin_layout Chapter
16747 Supplemental Tools
16748 \end_layout
16749
16750 \begin_layout Section
16751 Multipart Documents
16752 \end_layout
16753
16754 \begin_layout Subsection
16755 General Operation
16756 \end_layout
16757
16758 \begin_layout Standard
16759 When you are working on a large file with many sections, it is often convenient
16760  to break up the document into several files, or perhaps you have something
16761  where a table may change from time to time, but the preceding text does
16762  not.
16763  In these cases, you should seriously consider using multipart documents.
16764  For example, scientific papers often have five major sections: the introduction
16765 , observations, results, discussion, and conclusion.
16766  Each of these could be its own separate \SpecialChar LyX
16767  file, with one 
16768 \begin_inset Quotes eld
16769 \end_inset
16770
16771 master
16772 \begin_inset Quotes erd
16773 \end_inset
16774
16775  file which contains the title, authors, abstract, references, etc., plus
16776  the five included files.
16777  It is important to note that each of these files is a full \SpecialChar LyX
16778  file which
16779  can be formatted and printed on its own, as well as included in a master
16780  file.
16781  Each of these files must have the same document class, however—don't attempt
16782  to mix book classes with article classes.
16783  You may also include \SpecialChar LaTeX
16784  files; however, these files must not have their own
16785  preamble (i.
16786 \begin_inset space \thinspace{}
16787 \end_inset
16788
16789 e.
16790 \begin_inset space \space{}
16791 \end_inset
16792
16793 everything up to and including the 
16794 \begin_inset Flex Code
16795 status collapsed
16796
16797 \begin_layout Plain Layout
16798
16799 \backslash
16800 begin{document}
16801 \end_layout
16802
16803 \end_inset
16804
16805  line as well as the 
16806 \begin_inset Flex Code
16807 status collapsed
16808
16809 \begin_layout Plain Layout
16810
16811 \backslash
16812 end{document}
16813 \end_layout
16814
16815 \end_inset
16816
16817  line must be deleted) or else errors will be generated when you try to
16818  make a DVI file.
16819 \end_layout
16820
16821 \begin_layout Standard
16822 \SpecialChar LyX
16823  allows you to include files quite easily with 
16824 \begin_inset Flex Noun
16825 status collapsed
16826
16827 \begin_layout Plain Layout
16828 Insert\SpecialChar menuseparator
16829 Child
16830 \begin_inset space ~
16831 \end_inset
16832
16833 Document
16834 \end_layout
16835
16836 \end_inset
16837
16838 .
16839  When you click on this selection a small box is inserted into the file
16840  at the current cursor location.
16841  Clicking on the box raises a dialog which allows you to select the file
16842  to be included, and the method of its inclusion.
16843  
16844 \end_layout
16845
16846 \begin_layout Standard
16847 The file selection box should by now be obvious.
16848  The three inclusion methods are 
16849 \begin_inset Quotes eld
16850 \end_inset
16851
16852 include
16853 \begin_inset Quotes erd
16854 \end_inset
16855
16856
16857 \begin_inset Quotes eld
16858 \end_inset
16859
16860 input
16861 \begin_inset Quotes erd
16862 \end_inset
16863
16864 , and 
16865 \begin_inset Quotes eld
16866 \end_inset
16867
16868 verbatim
16869 \begin_inset Quotes erd
16870 \end_inset
16871
16872 .
16873  The methods 
16874 \begin_inset Quotes eld
16875 \end_inset
16876
16877 include
16878 \begin_inset Quotes erd
16879 \end_inset
16880
16881  and 
16882 \begin_inset Quotes eld
16883 \end_inset
16884
16885 input
16886 \begin_inset Quotes erd
16887 \end_inset
16888
16889  are similar in many ways, but there are also some notable differences:
16890 \end_layout
16891
16892 \begin_layout Enumerate
16893 Files that are 
16894 \begin_inset Quotes eld
16895 \end_inset
16896
16897 included
16898 \begin_inset Quotes erd
16899 \end_inset
16900
16901  are typeset beginning on a new page, while files that are 
16902 \begin_inset Quotes eld
16903 \end_inset
16904
16905 inputted
16906 \begin_inset Quotes erd
16907 \end_inset
16908
16909  are typeset starting on the current page.
16910 \end_layout
16911
16912 \begin_layout Enumerate
16913 \begin_inset Quotes eld
16914 \end_inset
16915
16916 Included
16917 \begin_inset Quotes erd
16918 \end_inset
16919
16920  files cannot themselves 
16921 \begin_inset Quotes eld
16922 \end_inset
16923
16924 include
16925 \begin_inset Quotes erd
16926 \end_inset
16927
16928  further files (
16929 \begin_inset Quotes eld
16930 \end_inset
16931
16932 grandchilds
16933 \begin_inset Quotes erd
16934 \end_inset
16935
16936 ).
16937  With 
16938 \begin_inset Quotes eld
16939 \end_inset
16940
16941 input
16942 \begin_inset Quotes erd
16943 \end_inset
16944
16945 , on the other hand, infinite sub-inputting is possible.
16946 \end_layout
16947
16948 \begin_layout Enumerate
16949 \begin_inset Quotes eld
16950 \end_inset
16951
16952 Include
16953 \begin_inset Quotes erd
16954 \end_inset
16955
16956  allow for the output of only selected 
16957 \begin_inset Quotes eld
16958 \end_inset
16959
16960 included
16961 \begin_inset Quotes erd
16962 \end_inset
16963
16964  files, while maintaining the actual counters (pagination etc.) and references
16965  (please refer to the section 
16966 \emph on
16967 Child
16968 \begin_inset space ~
16969 \end_inset
16970
16971 Documents
16972 \emph default
16973  of the 
16974 \emph on
16975 Embedded
16976 \begin_inset space ~
16977 \end_inset
16978
16979 Objects
16980 \emph default
16981  manual for details).
16982 \end_layout
16983
16984 \begin_layout Standard
16985 Hence, 
16986 \begin_inset Quotes eld
16987 \end_inset
16988
16989 include
16990 \begin_inset Quotes erd
16991 \end_inset
16992
16993  is the preferred method for chapters that are outsourced to child documents,
16994  while 
16995 \begin_inset Quotes eld
16996 \end_inset
16997
16998 input
16999 \begin_inset Quotes erd
17000 \end_inset
17001
17002  is more suitable for arbitrary file inheritance.
17003 \end_layout
17004
17005 \begin_layout Standard
17006
17007 \begin_inset Quotes eld
17008 \end_inset
17009
17010 verbatim
17011 \begin_inset Quotes erd
17012 \end_inset
17013
17014  included file allows you to include a file typeset exactly as it appears
17015  in the file, i.
17016 \begin_inset space \thinspace{}
17017 \end_inset
17018
17019 e.
17020 \begin_inset space \space{}
17021 \end_inset
17022
17023 in 
17024 \begin_inset Flex Code
17025 status collapsed
17026
17027 \begin_layout Plain Layout
17028 verbatim
17029 \end_layout
17030
17031 \end_inset
17032
17033  mode, with the characters set in a fixed-width typewriter font.
17034  Normally, spaces in this file are invisible, though two consecutive spaces
17035  are conserved, unlike \SpecialChar LyX
17036 's normal treatment of spaces.
17037  However, setting the 
17038 \begin_inset Flex Noun
17039 status collapsed
17040
17041 \begin_layout Plain Layout
17042 Mark
17043 \begin_inset space ~
17044 \end_inset
17045
17046 spaces
17047 \begin_inset space ~
17048 \end_inset
17049
17050 in
17051 \begin_inset space ~
17052 \end_inset
17053
17054 output
17055 \end_layout
17056
17057 \end_inset
17058
17059  checkbox typesets a mark to unambiguously define the presence of a space.
17060  
17061 \end_layout
17062
17063 \begin_layout Standard
17064 Generally, the master file is converted into a full \SpecialChar LaTeX
17065  file before typesetting,
17066  while the included files are converted to \SpecialChar LaTeX
17067  files that do not have all the
17068  preamble information.
17069 \end_layout
17070
17071 \begin_layout Subsection
17072 Cross-References Between Files
17073 \end_layout
17074
17075 \begin_layout Standard
17076 \begin_inset Box Shadowbox
17077 position "t"
17078 hor_pos "c"
17079 has_inner_box 1
17080 inner_pos "t"
17081 use_parbox 0
17082 use_makebox 0
17083 width "100col%"
17084 special "none"
17085 height "1in"
17086 height_special "totalheight"
17087 thickness "0.4pt"
17088 separation "3pt"
17089 shadowsize "4pt"
17090 framecolor "black"
17091 backgroundcolor "none"
17092 status open
17093
17094 \begin_layout Plain Layout
17095 This section is somewhat out of date.
17096  Need to describe default master documents and how children are opened when
17097  the master is.
17098  [[FIXME]]
17099 \end_layout
17100
17101 \end_inset
17102
17103
17104 \end_layout
17105
17106 \begin_layout Standard
17107 It is possible to set up cross-references between the different files.
17108  First, open all the files in question: let's call them A and B in a two
17109  file example, where B is included in A.
17110  Let's say you insert a label in A, then want to reference it in B.
17111  Open the cross-reference dialog whilst in document B, and you can select
17112  the 
17113 \begin_inset Quotes eld
17114 \end_inset
17115
17116 buffer
17117 \begin_inset Quotes erd
17118 \end_inset
17119
17120  to use.
17121 \end_layout
17122
17123 \begin_layout Subsection
17124 Bibliography Lists in all Subdocuments
17125 \end_layout
17126
17127 \begin_layout Standard
17128 If you work with child documents, you might want to have only one main bibliogra
17129 phy at the end, but still be able to have a selected bibliography for the
17130  child if you output it on its own.
17131  Here is how to achieve this.
17132 \end_layout
17133
17134 \begin_layout Standard
17135 For the main document, you just insert a bibliography inset at the place
17136  where the main bibliography has to appear (within the master file or within
17137  a child).
17138  If the bibliography inset is in the master file, the references will be
17139  inherited by all children, so they are available in the citation dialog
17140  within each child.
17141 \end_layout
17142
17143 \begin_layout Standard
17144 For child-specific bibliographies, insert bibliography insets within the
17145  child documents, at the place where the bibliography should appear when
17146  the child is compiled separately.
17147  However, the trick is to insert them into a branch (
17148 \family sans
17149 Insert\SpecialChar menuseparator
17150 Branch\SpecialChar menuseparator
17151 Insert New Branch...
17152 \family default
17153 ), e.
17154 \begin_inset space \thinspace{}
17155 \end_inset
17156
17157 g.
17158  called 
17159 \begin_inset Quotes eld
17160 \end_inset
17161
17162 Childonly
17163 \begin_inset Quotes erd
17164 \end_inset
17165
17166 .
17167  Within the children, activate the branch (
17168 \family sans
17169 Document\SpecialChar menuseparator
17170 Settings...\SpecialChar menuseparator
17171 Branches
17172 \family default
17173 ).
17174  Within the master, deactivate the branch (
17175 \family sans
17176 Document\SpecialChar menuseparator
17177 Settings...\SpecialChar menuseparator
17178 Branches
17179 \family default
17180 ).
17181  Now the child's bibliography will be ignored by the master, but considered
17182  by the child.
17183 \end_layout
17184
17185 \begin_layout Standard
17186 If you need multiple bibliographies (e.
17187 \begin_inset space \thinspace{}
17188 \end_inset
17189
17190 g., one per child in the 
17191 \emph on
17192 main document
17193 \emph default
17194 ), please refer to sec.
17195 \begin_inset space ~
17196 \end_inset
17197
17198
17199 \begin_inset CommandInset ref
17200 LatexCommand ref
17201 reference "subsec:Multiple-Bibliographies"
17202
17203 \end_inset
17204
17205 .
17206 \end_layout
17207
17208 \begin_layout Section
17209 \SpecialChar LyX
17210  Archives
17211 \end_layout
17212
17213 \begin_layout Standard
17214 Users sometimes need to be able to 
17215 \begin_inset Quotes eld
17216 \end_inset
17217
17218 bundle
17219 \begin_inset Quotes erd
17220 \end_inset
17221
17222  a \SpecialChar LyX
17223  file together with all the images (and other files) on which it depends,
17224  either for sending to a publisher or for sharing with a co-author.
17225  \SpecialChar LyX
17226  includes a Python script (
17227 \begin_inset Flex Code
17228 status collapsed
17229
17230 \begin_layout Plain Layout
17231 lyxpak.py
17232 \end_layout
17233
17234 \end_inset
17235
17236 ) that automates this process.
17237  To use it, you must have either the 
17238 \begin_inset Flex Code
17239 status collapsed
17240
17241 \begin_layout Plain Layout
17242 zipfile
17243 \end_layout
17244
17245 \end_inset
17246
17247  or 
17248 \begin_inset Flex Code
17249 status collapsed
17250
17251 \begin_layout Plain Layout
17252 tarfile
17253 \end_layout
17254
17255 \end_inset
17256
17257  python modules installed on your system.
17258  By default, the script prefers the 
17259 \begin_inset Flex Code
17260 status collapsed
17261
17262 \begin_layout Plain Layout
17263 gzip
17264 \end_layout
17265
17266 \end_inset
17267
17268 -compressed 
17269 \begin_inset Flex Code
17270 status collapsed
17271
17272 \begin_layout Plain Layout
17273 tar
17274 \end_layout
17275
17276 \end_inset
17277
17278  format on Unix-like systems and the 
17279 \begin_inset Flex Code
17280 status collapsed
17281
17282 \begin_layout Plain Layout
17283 zip
17284 \end_layout
17285
17286 \end_inset
17287
17288  format on Windows.
17289 \end_layout
17290
17291 \begin_layout Standard
17292 \SpecialChar LyX
17293 's configuration process will set the script up to export a `\SpecialChar LyX
17294  Archive',
17295  and this format will then be available under 
17296 \begin_inset Flex Code
17297 status collapsed
17298
17299 \begin_layout Plain Layout
17300 File\SpecialChar menuseparator
17301 Export
17302 \end_layout
17303
17304 \end_inset
17305
17306 .
17307 \end_layout
17308
17309 \begin_layout Standard
17310 Independently of the platform, the generation of a particular archive format
17311  can be forced by adding either the 
17312 \begin_inset Flex Code
17313 status collapsed
17314
17315 \begin_layout Plain Layout
17316 -t
17317 \end_layout
17318
17319 \end_inset
17320
17321  (for the 
17322 \begin_inset Flex Code
17323 status collapsed
17324
17325 \begin_layout Plain Layout
17326 tar
17327 \end_layout
17328
17329 \end_inset
17330
17331  format) or 
17332 \begin_inset Flex Code
17333 status collapsed
17334
17335 \begin_layout Plain Layout
17336 -z
17337 \end_layout
17338
17339 \end_inset
17340
17341  (for the 
17342 \begin_inset Flex Code
17343 status collapsed
17344
17345 \begin_layout Plain Layout
17346 zip
17347 \end_layout
17348
17349 \end_inset
17350
17351  format) switch to the 
17352 \begin_inset Flex Code
17353 status collapsed
17354
17355 \begin_layout Plain Layout
17356 \SpecialChar LyX
17357 \SpecialChar menuseparator
17358 \SpecialChar LyX
17359  Archive
17360 \end_layout
17361
17362 \end_inset
17363
17364  converter in 
17365 \begin_inset Flex Code
17366 status collapsed
17367
17368 \begin_layout Plain Layout
17369 Tools\SpecialChar menuseparator
17370 Preferences\SpecialChar menuseparator
17371 File Handling\SpecialChar menuseparator
17372 Converters
17373 \end_layout
17374
17375 \end_inset
17376
17377 .
17378  (Make sure you add the switch after the script name, not before it.)
17379 \end_layout
17380
17381 \begin_layout Section
17382 Fancy Headers and Footers
17383 \end_layout
17384
17385 \begin_layout Standard
17386 The default page layout is rather plain; for an 
17387 \begin_inset Flex Code
17388 status collapsed
17389
17390 \begin_layout Plain Layout
17391 article
17392 \end_layout
17393
17394 \end_inset
17395
17396  document class, all you get is a centered page number at the bottom of
17397  the page.
17398  This document uses KOMA-script's book class, so it appears to be a bit
17399  fancier.
17400  But to really put on a show, you need to set the document page style to
17401  
17402 \begin_inset Quotes eld
17403 \end_inset
17404
17405 fancy
17406 \begin_inset Quotes erd
17407 \end_inset
17408
17409 , as mentioned in the 
17410 \emph on
17411 User Guide
17412 \emph default
17413 .
17414  This section describes the \SpecialChar LaTeX
17415  code you need to insert in your \SpecialChar LaTeX
17416  preamble in
17417  order to get the desired effects.
17418 \end_layout
17419
17420 \begin_layout Standard
17421 For more information on fancy headers, see the 
17422 \begin_inset Flex Code
17423 status collapsed
17424
17425 \begin_layout Plain Layout
17426 fancyhdr
17427 \end_layout
17428
17429 \end_inset
17430
17431  package documentation.
17432  (
17433 \begin_inset Flex URL
17434 status collapsed
17435
17436 \begin_layout Plain Layout
17437
17438 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
17439 \end_layout
17440
17441 \end_inset
17442
17443 )
17444 \end_layout
17445
17446 \begin_layout Standard
17447 The page header is divided into three fields, not surprisingly labeled 
17448 \begin_inset Quotes eld
17449 \end_inset
17450
17451 left
17452 \begin_inset Quotes erd
17453 \end_inset
17454
17455
17456 \begin_inset Quotes eld
17457 \end_inset
17458
17459 center
17460 \begin_inset Quotes erd
17461 \end_inset
17462
17463 , and 
17464 \begin_inset Quotes eld
17465 \end_inset
17466
17467 right
17468 \begin_inset Quotes erd
17469 \end_inset
17470
17471 .
17472  The footer is also divided into these three fields.
17473  The \SpecialChar LaTeX
17474  commands to set these fields in the simplest manner are 
17475 \begin_inset Flex Code
17476 status collapsed
17477
17478 \begin_layout Plain Layout
17479
17480 \backslash
17481 lhead
17482 \end_layout
17483
17484 \end_inset
17485
17486
17487 \begin_inset Flex Code
17488 status collapsed
17489
17490 \begin_layout Plain Layout
17491
17492 \backslash
17493 chead
17494 \end_layout
17495
17496 \end_inset
17497
17498
17499 \begin_inset Flex Code
17500 status collapsed
17501
17502 \begin_layout Plain Layout
17503
17504 \backslash
17505 rhead
17506 \end_layout
17507
17508 \end_inset
17509
17510
17511 \begin_inset Flex Code
17512 status collapsed
17513
17514 \begin_layout Plain Layout
17515
17516 \backslash
17517 lfoot
17518 \end_layout
17519
17520 \end_inset
17521
17522 , etc.
17523  Suppose you wish to put your name in the upper left hand corner of each
17524  page.
17525  Simply insert the following command in the preamble: 
17526 \end_layout
17527
17528 \begin_layout Standard
17529
17530 \family typewriter
17531
17532 \backslash
17533 lhead{John Q.
17534  DocWriter}
17535 \end_layout
17536
17537 \begin_layout Standard
17538 You will now see your name in the upper left.
17539  If a field has a default entry that you would like to get rid of (often
17540  the page number appears in the central footer) simply include a command
17541  with a blank argument, e.
17542 \begin_inset space \thinspace{}
17543 \end_inset
17544
17545 g.:
17546 \end_layout
17547
17548 \begin_layout Standard
17549
17550 \family typewriter
17551
17552 \backslash
17553 cfoot{}
17554 \end_layout
17555
17556 \begin_layout Standard
17557 Let's get really fancy: lets put the section number with the word 
17558 \begin_inset Quotes eld
17559 \end_inset
17560
17561 Section
17562 \begin_inset Quotes erd
17563 \end_inset
17564
17565  (e.
17566 \begin_inset space \thinspace{}
17567 \end_inset
17568
17569 g.
17570 \begin_inset space \space{}
17571 \end_inset
17572
17573 Section 3) in the upper left, the page number (e.
17574 \begin_inset space \thinspace{}
17575 \end_inset
17576
17577 g.
17578 \begin_inset space \space{}
17579 \end_inset
17580
17581 Page 4) in the upper right, your name in the lower left, and the date in
17582  the lower right.
17583  The following commands should now appear in the preamble:
17584 \end_layout
17585
17586 \begin_layout Standard
17587
17588 \family typewriter
17589
17590 \backslash
17591 lhead{Section 
17592 \backslash
17593 thesection}
17594 \end_layout
17595
17596 \begin_layout Standard
17597
17598 \family typewriter
17599
17600 \backslash
17601 chead{}
17602 \end_layout
17603
17604 \begin_layout Standard
17605
17606 \family typewriter
17607
17608 \backslash
17609 rhead{Page 
17610 \backslash
17611 thepage}
17612 \end_layout
17613
17614 \begin_layout Standard
17615
17616 \family typewriter
17617
17618 \backslash
17619 lfoot{John Q.
17620  DocWriter}
17621 \end_layout
17622
17623 \begin_layout Standard
17624
17625 \family typewriter
17626
17627 \backslash
17628 cfoot{}
17629 \end_layout
17630
17631 \begin_layout Standard
17632
17633 \family typewriter
17634
17635 \backslash
17636 rfoot{
17637 \backslash
17638 today}
17639 \end_layout
17640
17641 \begin_layout Standard
17642 The commands 
17643 \begin_inset Flex Code
17644 status collapsed
17645
17646 \begin_layout Plain Layout
17647
17648 \backslash
17649 thesection
17650 \end_layout
17651
17652 \end_inset
17653
17654  and 
17655 \begin_inset Flex Code
17656 status collapsed
17657
17658 \begin_layout Plain Layout
17659
17660 \backslash
17661 thepage
17662 \end_layout
17663
17664 \end_inset
17665
17666  access \SpecialChar LaTeX
17667 's section and page counters, and so print out the current section
17668  and page number.
17669  
17670 \begin_inset Flex Code
17671 status collapsed
17672
17673 \begin_layout Plain Layout
17674
17675 \backslash
17676 today
17677 \end_layout
17678
17679 \end_inset
17680
17681  simply prints out today's date.
17682 \end_layout
17683
17684 \begin_layout Standard
17685 The thicknesses of the horizontal rules drawn beneath the header and above
17686  the footer can also be modified.
17687  If you don't want one of the rules, set its thickness to 0.
17688  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
17689  Use commands
17690 \family typewriter
17691  
17692 \family default
17693 like 
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698
17699 \backslash
17700 renewcommand{
17701 \backslash
17702 headrulewidth}{0.4pt}
17703 \end_layout
17704
17705 \end_inset
17706
17707  and 
17708 \begin_inset Flex Code
17709 status collapsed
17710
17711 \begin_layout Plain Layout
17712
17713 \backslash
17714 renewcommand{
17715 \backslash
17716 footrulewidth}{0.4pt}
17717 \end_layout
17718
17719 \end_inset
17720
17721  to set the thicknesses.
17722 \end_layout
17723
17724 \begin_layout Standard
17725 You can switch the header/footer settings on and off for individual pages
17726  using commands like 
17727 \begin_inset Flex Code
17728 status collapsed
17729
17730 \begin_layout Plain Layout
17731
17732 \backslash
17733 thispagestyle{empty}
17734 \end_layout
17735
17736 \end_inset
17737
17738
17739 \begin_inset Flex Code
17740 status collapsed
17741
17742 \begin_layout Plain Layout
17743
17744 \backslash
17745 thispagestyle{plain}
17746 \end_layout
17747
17748 \end_inset
17749
17750 , and 
17751 \begin_inset Flex Code
17752 status collapsed
17753
17754 \begin_layout Plain Layout
17755
17756 \backslash
17757 thispagestyle{fancy}
17758 \end_layout
17759
17760 \end_inset
17761
17762 .
17763  Simply insert them in the text on the page you want changed and mark them
17764  as \SpecialChar TeX
17765  code.
17766  In fact, title pages are marked as plain by default, while following pages
17767  are marked fancy when using the global fancy setting.
17768 \end_layout
17769
17770 \begin_layout Standard
17771 As a final example, it is possible to include an image in the header or
17772  footer.
17773  Suppose you want to put a company logo in the upper lefthand corner.
17774  You might try something like
17775 \end_layout
17776
17777 \begin_layout Standard
17778
17779 \family typewriter
17780
17781 \backslash
17782 lhead{
17783 \backslash
17784 resizebox{1in}{!}{
17785 \backslash
17786 includegraphics{logo.eps}}}
17787 \end_layout
17788
17789 \begin_layout Standard
17790 \noindent
17791 (you may need to preface this with 
17792 \begin_inset Flex Code
17793 status collapsed
17794
17795 \begin_layout Plain Layout
17796
17797 \backslash
17798 usepackage{graphics}
17799 \end_layout
17800
17801 \end_inset
17802
17803  if you don't include graphics elsewhere in your document).
17804 \end_layout
17805
17806 \begin_layout Chapter
17807 \SpecialChar LyX
17808  and the World Wide Web
17809 \end_layout
17810
17811 \begin_layout Standard
17812 \SpecialChar LyX
17813  has long supported the export of documents to various web-friendly formats,
17814  such as HTML.
17815  Before version 2.0, however, HTML export was always accomplished by the
17816  use of external converters.
17817 \begin_inset Foot
17818 status collapsed
17819
17820 \begin_layout Plain Layout
17821 For details on the use of external converters with \SpecialChar LyX
17822 , see the 
17823 \emph on
17824 Converters
17825 \emph default
17826  section of the Customization manual.
17827 \end_layout
17828
17829 \end_inset
17830
17831  These fall into two large groups: there are converters that use \SpecialChar LaTeX
17832  as an
17833  intermediate format, such as 
17834 \begin_inset Flex Code
17835 status collapsed
17836
17837 \begin_layout Plain Layout
17838 htlatex
17839 \end_layout
17840
17841 \end_inset
17842
17843
17844 \begin_inset Flex Code
17845 status collapsed
17846
17847 \begin_layout Plain Layout
17848 html2latex
17849 \end_layout
17850
17851 \end_inset
17852
17853 , and 
17854 \begin_inset Flex Code
17855 status collapsed
17856
17857 \begin_layout Plain Layout
17858 plastex
17859 \end_layout
17860
17861 \end_inset
17862
17863 , relying upon \SpecialChar LyX
17864  to produce the \SpecialChar LaTeX
17865 ; and there is a converter that works directly
17866  on \SpecialChar LyX
17867  files, 
17868 \begin_inset Flex Code
17869 status collapsed
17870
17871 \begin_layout Plain Layout
17872 e\SpecialChar LyX
17873 er
17874 \end_layout
17875
17876 \end_inset
17877
17878 .
17879  All of these have different advantages and disadvantages.
17880  
17881 \end_layout
17882
17883 \begin_layout Standard
17884 The \SpecialChar LaTeX
17885 -based converters have the advantage that, in principle, they know everythin
17886 g about the exported document that \SpecialChar LaTeX
17887  does.
17888  Such converters do not care, for example, if a certain block of code was
17889  produced by \SpecialChar LyX
17890  or was Evil Red Text.
17891  These converters know about 
17892 \begin_inset Flex Code
17893 status collapsed
17894
17895 \begin_layout Plain Layout
17896 aux
17897 \end_layout
17898
17899 \end_inset
17900
17901  files, counters, and references, and can often make use of the 
17902 \begin_inset Flex Code
17903 status collapsed
17904
17905 \begin_layout Plain Layout
17906 bbl
17907 \end_layout
17908
17909 \end_inset
17910
17911  files generated by Bib\SpecialChar TeX
17912 .
17913  On the other hand, \SpecialChar LaTeX
17914  is a very hard language to parse—it is sometimes said
17915  that only \SpecialChar TeX
17916  itself understands \SpecialChar TeX
17917 —and \SpecialChar LaTeX
17918 -based converters will often choke on
17919  what seem to be quite simple constructs; complex ones can throw them completely
17920 , and as of this writing, for example, the 
17921 \emph on
17922 Embedded Objects
17923 \emph default
17924  manual will not export with 
17925 \begin_inset Flex Code
17926 status collapsed
17927
17928 \begin_layout Plain Layout
17929 htlatex
17930 \end_layout
17931
17932 \end_inset
17933
17934 , though the others will.
17935  The other issue concerns how math is handled.
17936  These converters typically convert the formulae into little pictures that
17937  are then linked from the HTML document.
17938  Since these are actually generated by \SpecialChar LaTeX
17939 , they are accurate.
17940  But they do not scale well, and just getting them to look as if they are
17941  actually meant to be in your document—so that the font sizes seem to be
17942  roughly the same—can be a challenge.
17943 \end_layout
17944
17945 \begin_layout Standard
17946 Alex Fernandez's 
17947 \begin_inset Flex Code
17948 status collapsed
17949
17950 \begin_layout Plain Layout
17951 e\SpecialChar LyX
17952 er
17953 \end_layout
17954
17955 \end_inset
17956
17957  (
17958 \begin_inset CommandInset href
17959 LatexCommand href
17960 name "http://pinchito.es/elyxer/"
17961 target "http://pinchito.es/elyxer/"
17962 literal "false"
17963
17964 \end_inset
17965
17966 ) solves some of these problems.
17967  In particular, the formulae it produces scale perfectly, since it renders
17968  math using a combination of HTML and CSS rather than converting the formulae
17969  to images.
17970  But even moderately complex formula are rendered less well than with 
17971 \begin_inset Flex Code
17972 status collapsed
17973
17974 \begin_layout Plain Layout
17975 htlatex
17976 \end_layout
17977
17978 \end_inset
17979
17980 ; this reflects the limitations of HTML.
17981 \begin_inset Foot
17982 status collapsed
17983
17984 \begin_layout Plain Layout
17985 That said, 
17986 \begin_inset Flex Code
17987 status collapsed
17988
17989 \begin_layout Plain Layout
17990 e\SpecialChar LyX
17991 er
17992 \end_layout
17993
17994 \end_inset
17995
17996  can also use jsMath and MathJax for equations, but this setting is only
17997  available globally and requires one to have access to a server that runs
17998  the backend.
17999 \end_layout
18000
18001 \end_inset
18002
18003  More importantly (as of version 1.1.1, at least), 
18004 \begin_inset Flex Code
18005 status collapsed
18006
18007 \begin_layout Plain Layout
18008 e\SpecialChar LyX
18009 er
18010 \end_layout
18011
18012 \end_inset
18013
18014  has limited support for math macros and no support for user-defined paragraph
18015  or character styles.
18016  These limitations make 
18017 \begin_inset Flex Code
18018 status collapsed
18019
18020 \begin_layout Plain Layout
18021 e\SpecialChar LyX
18022 er
18023 \end_layout
18024
18025 \end_inset
18026
18027  unsuitable for many of the documents \SpecialChar LyX
18028  users produce.
18029  In principle, of course, these problems could be solved, but the \SpecialChar LyX
18030  developers
18031  have decided to follow a different path and have made \SpecialChar LyX
18032  itself capable of
18033  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
18034 , DocBook, and plaintext.
18035 \end_layout
18036
18037 \begin_layout Standard
18038 As of this writing, XHTML output remains under development and should probably
18039  be regarded as 
18040 \begin_inset Quotes eld
18041 \end_inset
18042
18043 experimental
18044 \begin_inset Quotes erd
18045 \end_inset
18046
18047 .
18048 \begin_inset Foot
18049 status collapsed
18050
18051 \begin_layout Plain Layout
18052 The file 
18053 \begin_inset Flex Code
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 development/HTML/HTML.notes
18058 \end_layout
18059
18060 \end_inset
18061
18062 , which can be found in the \SpecialChar LyX
18063  source tree or 
18064 \begin_inset CommandInset href
18065 LatexCommand href
18066 name "accessed online"
18067 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
18068 literal "false"
18069
18070 \end_inset
18071
18072 , usually contains up-to-date information about the state of XHTML output.
18073  See also the list of XHTML bugs on 
18074 \begin_inset CommandInset href
18075 LatexCommand href
18076 name "the bug tracker"
18077 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"
18078 literal "false"
18079
18080 \end_inset
18081
18082 .
18083 \end_layout
18084
18085 \end_inset
18086
18087  Still, the developers have chosen this approach because it has several
18088  potential advantages over the other two.
18089 \end_layout
18090
18091 \begin_layout Standard
18092 These advantages are primarily due to the fact that the XHTML output routines,
18093  since they are part of \SpecialChar LyX
18094 , know everything \SpecialChar LyX
18095  knows about the document being
18096  exported.
18097 \begin_inset Foot
18098 status collapsed
18099
18100 \begin_layout Plain Layout
18101 Another advantage is that, since these routines are internal to \SpecialChar LyX
18102 , they are
18103  immune to changes in \SpecialChar LyX
18104 's file format, or to changes in the semantics of
18105  existing insets.
18106 \end_layout
18107
18108 \end_inset
18109
18110  So they know about the table of contents (as displayed in the outline),
18111  about the counters associated with different paragraph styles, and about
18112  user-defined styles.
18113  The XHTML output routines know what \SpecialChar LyX
18114  knows about internationalization,
18115  too, so they will output 
18116 \begin_inset Quotes eld
18117 \end_inset
18118
18119 Chapter 1
18120 \begin_inset Quotes erd
18121 \end_inset
18122
18123  or 
18124 \begin_inset Quotes eld
18125 \end_inset
18126
18127
18128 \lang ngerman
18129 Kapitel
18130 \lang english
18131  1
18132 \begin_inset Quotes erd
18133 \end_inset
18134
18135 , depending upon the language in effect at the time.
18136  
18137 \end_layout
18138
18139 \begin_layout Standard
18140 Quite generally, the output routines know what \SpecialChar LyX
18141  knows about document layout,
18142  that is, about how the document is to be rendered on screen.
18143  We use this information when we output the document as XHTML.
18144  In particular, \SpecialChar LyX
18145  
18146 \emph on
18147 automatically
18148 \emph default
18149  generates CSS style information corresponding to the layout information
18150  it uses to render the document on screen: if section headings are supposed
18151  to be sans-serif and bold as seen in \SpecialChar LyX
18152 , then (by default) they will be sans-seri
18153 f and bold when viewed in a web browser, too.
18154  And this is true not just for pre-defined styles, like Section, but for
18155  any style, including user-defined styles.
18156  Indeed, the XHTML output routines make no distinction between user-defined
18157  paragraph and 
18158 \change_deleted 244031559 1603876931
18159 character
18160 \change_inserted 244031559 1603876940
18161 text
18162 \change_unchanged
18163  styles and \SpecialChar LyX
18164 's own pre-defined styles: in each case, everything \SpecialChar LyX
18165  knows about
18166  the styles is contained in the layout files.
18167  And much the same is true as regards pre-defined textual insets, such as
18168  footnotes, and various custom insets.
18169  
18170 \end_layout
18171
18172 \begin_layout Standard
18173 The result is that XHTML output can be customized and extended in exactly
18174  the same way \SpecialChar LaTeX
18175  output can be customized and extended: through layout files
18176  and modules.
18177  See chapter five of the 
18178 \emph on
18179 Customization 
18180 \emph default
18181 manual for the details.
18182 \end_layout
18183
18184 \begin_layout Standard
18185 The remainder of this chapter contains more detailed information on XHTML
18186  output, its limitations, and ways to work around those limitations.
18187 \end_layout
18188
18189 \begin_layout Section
18190 Math Output in XHTML
18191 \end_layout
18192
18193 \begin_layout Standard
18194 \SpecialChar LyX
18195  offers four choices for how math is rendered.
18196  These have various advantages and disadvantages:
18197 \end_layout
18198
18199 \begin_layout Itemize
18200 MathML
18201 \begin_inset Newline newline
18202 \end_inset
18203
18204 MathML is a dialect of XML designed specifically for mathematics on the
18205  web, and it typically renders very well in browsers that support it.
18206  The disadvantage is that not all browsers support MathML, and support is
18207  not complete even in the Gecko-based browsers, such as Firefox.
18208 \begin_inset Newline newline
18209 \end_inset
18210
18211 If \SpecialChar LyX
18212  is unable to render a formula as MathML—for example, if the formula
18213  uses the 
18214 \begin_inset Flex Code
18215 status collapsed
18216
18217 \begin_layout Plain Layout
18218 xymatrix
18219 \end_layout
18220
18221 \end_inset
18222
18223  package or ERT—then it will instead output the formula as an image.
18224  
18225 \end_layout
18226
18227 \begin_layout Itemize
18228 HTML
18229 \begin_inset Newline newline
18230 \end_inset
18231
18232 As mentioned above, 
18233 \begin_inset Flex Code
18234 status collapsed
18235
18236 \begin_layout Plain Layout
18237 elyxer
18238 \end_layout
18239
18240 \end_inset
18241
18242  outputs math as HTML, styled by CSS.
18243 \begin_inset Foot
18244 status collapsed
18245
18246 \begin_layout Plain Layout
18247 \SpecialChar LyX
18248  has borrowed some of the CSS for its HTML output from 
18249 \begin_inset Flex Code
18250 status collapsed
18251
18252 \begin_layout Plain Layout
18253 elyxer
18254 \end_layout
18255
18256 \end_inset
18257
18258 .
18259 \end_layout
18260
18261 \end_inset
18262
18263  For simple formulae, this can work quite well, though with more complicated
18264  formulae it tends to break down.
18265  Still, this method has the advantage that it is very widely supported and
18266  so it may be appropriate for documents that contain only a little, fairly
18267  simple math.
18268 \begin_inset Newline newline
18269 \end_inset
18270
18271 If Lyx is unable to render a formula as HTML—for example, if the formula
18272  uses the 
18273 \begin_inset Flex Code
18274 status collapsed
18275
18276 \begin_layout Plain Layout
18277 xymatrix
18278 \end_layout
18279
18280 \end_inset
18281
18282  package or ERT—then it will instead output the formula as an image.
18283  
18284 \end_layout
18285
18286 \begin_layout Itemize
18287 Images
18288 \begin_inset Newline newline
18289 \end_inset
18290
18291 Like 
18292 \begin_inset Flex Code
18293 status collapsed
18294
18295 \begin_layout Plain Layout
18296 htlatex
18297 \end_layout
18298
18299 \end_inset
18300
18301 , \SpecialChar LyX
18302  will output formulae as images, the very same images, in fact, that are
18303  used for instant preview.
18304 \begin_inset Foot
18305 status collapsed
18306
18307 \begin_layout Plain Layout
18308 Instant preview does 
18309 \emph on
18310 not 
18311 \emph default
18312 have to be on for images to be output, however.
18313 \end_layout
18314
18315 \end_inset
18316
18317  The advantage to this method is that the images are simply generated by
18318  \SpecialChar LaTeX
18319 , so they are very accurate.
18320  The disadvantage, as mentioned earlier, is that these are bitmapped images,
18321  so they do not scale terribly well, and one cannot copy them, etc.
18322 \begin_inset Newline newline
18323 \end_inset
18324
18325 The size of the images can be controlled by setting the 
18326 \begin_inset Quotes eld
18327 \end_inset
18328
18329 Math Images Scaling
18330 \begin_inset Quotes erd
18331 \end_inset
18332
18333  parameter under 
18334 \begin_inset Flex Noun
18335 status collapsed
18336
18337 \begin_layout Plain Layout
18338 Document\SpecialChar menuseparator
18339 Settings\SpecialChar menuseparator
18340 Formats
18341 \end_layout
18342
18343 \end_inset
18344
18345 .
18346 \begin_inset Foot
18347 status collapsed
18348
18349 \begin_layout Plain Layout
18350 For those who want to know, this controls the resolution of the image in
18351  dots per inch and is based upon a default of 75 dpi.
18352 \end_layout
18353
18354 \end_inset
18355
18356
18357 \begin_inset Newline newline
18358 \end_inset
18359
18360 If \SpecialChar LyX
18361  for some reason fails to create an image for a formula (e.g., if a required
18362  \SpecialChar LaTeX
18363  package is not installed), then it will fall back to outputing the raw
18364  \SpecialChar LaTeX
18365 .
18366 \end_layout
18367
18368 \begin_layout Itemize
18369 \SpecialChar LaTeX
18370
18371 \begin_inset Newline newline
18372 \end_inset
18373
18374 Finally, \SpecialChar LyX
18375  will happily output math as \SpecialChar LaTeX
18376 .
18377  As well as being the output of last resort, this method can be used with
18378  such tools as 
18379 \begin_inset CommandInset href
18380 LatexCommand href
18381 name "jsMath"
18382 target "http://www.math.union.edu/~dpvc/jsMath/"
18383 literal "false"
18384
18385 \end_inset
18386
18387 , which uses JavaScript to render \SpecialChar LaTeX
18388  embedded in HTML documents.
18389  \SpecialChar LyX
18390  wraps the \SpecialChar LaTeX
18391  in either a 
18392 \begin_inset Flex Code
18393 status collapsed
18394
18395 \begin_layout Plain Layout
18396 span
18397 \end_layout
18398
18399 \end_inset
18400
18401  (for inline formulas) or 
18402 \begin_inset Flex Code
18403 status collapsed
18404
18405 \begin_layout Plain Layout
18406 div
18407 \end_layout
18408
18409 \end_inset
18410
18411  (for displayed formulas) with 
18412 \begin_inset Flex Code
18413 status collapsed
18414
18415 \begin_layout Plain Layout
18416 class='math'
18417 \end_layout
18418
18419 \end_inset
18420
18421 , as is required for jsMath.
18422 \end_layout
18423
18424 \begin_layout Standard
18425 One of these output methods must be selected under 
18426 \begin_inset Flex Noun
18427 status collapsed
18428
18429 \begin_layout Plain Layout
18430 Document\SpecialChar menuseparator
18431 Settings\SpecialChar menuseparator
18432 Formats
18433 \end_layout
18434
18435 \end_inset
18436
18437 .
18438  By default, \SpecialChar LyX
18439  outputs MathML.
18440  This is a document-wide setting, therefore.
18441 \end_layout
18442
18443 \begin_layout Standard
18444 Eventually, \SpecialChar LyX
18445  will offer the user the option to select an alternate output
18446  method for a particular inset, say, one that isn't being rendered very
18447  well by MathML.
18448 \begin_inset Foot
18449 status collapsed
18450
18451 \begin_layout Plain Layout
18452 That said, since \SpecialChar LyX
18453  falls back to images if the inset contains ERT, then one
18454  can force output as an image by putting some harmless ERT into the math,
18455  for example: 
18456 \begin_inset Formula $a=b\relax$
18457 \end_inset
18458
18459 .
18460 \end_layout
18461
18462 \end_inset
18463
18464
18465 \end_layout
18466
18467 \begin_layout Section
18468 Bibliography and Citations
18469 \end_layout
18470
18471 \begin_layout Standard
18472 XHTML output fully supports bibliographies and citations.
18473  
18474 \end_layout
18475
18476 \begin_layout Standard
18477 Citation labels are generated by the same machinery that generates \SpecialChar LyX
18478 's on-screen
18479  labels, so the labels will look in the output much as they do in \SpecialChar LyX
18480 , though
18481  better.
18482  If you are using numerical citations, then \SpecialChar LyX
18483  will output numerical labels,
18484  such as [1] or [17], rather than simply showing the citation key in square
18485  brackets, as it does on-screen.
18486  If you are using author-year citations, then \SpecialChar LyX
18487  will add lowercase letters
18488  to the years, just as Bib\SpecialChar TeX
18489  does, if it finds more than one citation for
18490  a given author-year combination.
18491  The labels will be printed with the bibliography entries.
18492  Note that there is, at present, no way to customize the appearance of the
18493  labels, for example, to choose between square brackets and parentheses.
18494 \end_layout
18495
18496 \begin_layout Standard
18497 Bibliography output is handled by the same machinery that handles the presentati
18498 on of reference information in the citation dialog, so you will see in the
18499  XHTML output pretty much what you would see if you were to look at a given
18500  entry in the citation dialog.
18501  The formatting can be customized in your layout file or, preferably, in
18502  a module.
18503  See the 
18504 \emph on
18505 Customization
18506 \emph default
18507  manual for the details.
18508 \end_layout
18509
18510 \begin_layout Standard
18511 The main defect at present is that cross-referenced information is printed
18512  with every entry with which it is associated.
18513  So you can see things like this:
18514 \end_layout
18515
18516 \begin_layout Quote
18517 Jason Stanley, 
18518 \begin_inset Quotes eld
18519 \end_inset
18520
18521 Context and Logical Form
18522 \begin_inset Quotes erd
18523 \end_inset
18524
18525 , in 
18526 \emph on
18527 Language in Context: Selected Essays
18528 \emph default
18529  (Oxford: Oxford University Press, 2007), pp.
18530  30–68.
18531 \end_layout
18532
18533 \begin_layout Quote
18534 Jason Stanley, 
18535 \begin_inset Quotes eld
18536 \end_inset
18537
18538 Semantics in Context
18539 \begin_inset Quotes erd
18540 \end_inset
18541
18542 , in 
18543 \emph on
18544 Language in Context: Selected Essays
18545 \emph default
18546  (Oxford: Oxford University Press, 2007), pp.
18547  201–30.
18548 \end_layout
18549
18550 \begin_layout Standard
18551 This should be fixed before long.
18552 \end_layout
18553
18554 \begin_layout Standard
18555 There is no support at present for sectioned bibliographies.
18556  If you have multiple bibliographies, then \SpecialChar LyX
18557  will print the same bibliography
18558  over and over.
18559 \end_layout
18560
18561 \begin_layout Section
18562 Indexes
18563 \end_layout
18564
18565 \begin_layout Standard
18566 \SpecialChar LyX
18567  will happily export indexes as XHTML, but with certain limitations at the
18568  moment.
18569 \end_layout
18570
18571 \begin_layout Standard
18572 Index export will be most reliable when you do not attempt to use the fancy
18573  constructs that are described in the section on indexes in the 
18574 \emph on
18575 User's Guide
18576 \emph default
18577 .
18578 \begin_inset Foot
18579 status collapsed
18580
18581 \begin_layout Plain Layout
18582 The main issue here is that \SpecialChar LyX
18583  itself does not really handle these.
18584  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
18585 .
18586 \end_layout
18587
18588 \end_inset
18589
18590  We'll describe how they are handled using the subsection headings from
18591  that section.
18592 \end_layout
18593
18594 \begin_layout Itemize
18595 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
18596  makes an effort to support these,
18597  but the entries must be separated by 
18598 \begin_inset Quotes eld
18599 \end_inset
18600
18601  ! 
18602 \begin_inset Quotes erd
18603 \end_inset
18604
18605 , that is, there must be spaces around the exclamation point.
18606  This is because it is otherwise too difficult to check for escaped exclamation
18607  points, ones in math, and so forth.
18608 \end_layout
18609
18610 \begin_layout Itemize
18611 Page Ranges: There is no support at all for page ranges, since these make
18612  no sense with XHMTL.
18613  Instead, you will just get two index entries, one at either end.
18614 \end_layout
18615
18616 \begin_layout Itemize
18617 Cross-referencing: There is no support for cross-referencing.
18618  If \SpecialChar LyX
18619  finds an entry containing the 
18620 \begin_inset Quotes eld
18621 \end_inset
18622
18623 |see\SpecialChar ldots
18624
18625 \begin_inset Quotes erd
18626 \end_inset
18627
18628  construct, it is just dropped, and the rest is treated as an ordinary index
18629  entry.
18630 \end_layout
18631
18632 \begin_layout Itemize
18633 Index Entry Order: \SpecialChar LyX
18634  does support attempts to fix the sorting order.
18635  It will take what is before the first `@' it finds and use that for sorting,
18636  taking what follows the first `@' to be the actual entry.
18637  At present, \SpecialChar LyX
18638  does not check for escaped `@', so do not try to index email
18639  addresses.
18640 \end_layout
18641
18642 \begin_layout Itemize
18643 Index Entry Layout: You can format entries by using the text style dialog,
18644  or by using any other method available within \SpecialChar LyX
18645  itself.
18646  There is no support for constructs like: 
18647 \begin_inset Quotes eld
18648 \end_inset
18649
18650 entry|textbf
18651 \begin_inset Quotes erd
18652 \end_inset
18653
18654 .
18655  Indeed, if \SpecialChar LyX
18656  finds a pipe symbol, `|', in an entry, it will delete it and
18657  everything that follows it.
18658 \end_layout
18659
18660 \begin_layout Itemize
18661 Multiple Indexes: There is no support for multiple indexes.
18662  Rather, all index entries will be printed as one large index.
18663  To avoid our printing several versions of the index, we print only the
18664  main index, so make sure you have one.
18665 \end_layout
18666
18667 \begin_layout Section
18668 Nomenclature and Glossary
18669 \end_layout
18670
18671 \begin_layout Standard
18672 There is at present no support for glossaries.
18673  Adding it would be fairly trivial, and welcome.
18674 \end_layout
18675
18676 \begin_layout Chapter
18677
18678 \change_inserted 1075283030 1616534180
18679 DocBook Output
18680 \end_layout
18681
18682 \begin_layout Standard
18683
18684 \change_inserted 1075283030 1616534386
18685 Apart from HTML, \SpecialChar LyX
18686  can generate documents in the DocBook XML vocabulary.
18687  With versions 2.3 and before, only select templates could be used to generate
18688  DocBook documents (only version 4).
18689  Starting with \SpecialChar LyX
18690  2.4, most \SpecialChar LyX
18691  layouts can generate valid DocBook documents (only
18692  version 5).
18693  This feature is built into \SpecialChar LyX
18694  and does not require the use of external tools.
18695 \end_layout
18696
18697 \begin_layout Standard
18698
18699 \change_inserted 1075283030 1616534437
18700 The result is that the DocBook output can be customized and extended in
18701  exactly the same way \SpecialChar LaTeX
18702  output can be customized and extended: through layout
18703  files and modules.
18704  See chapter five of the 
18705 \emph on
18706 Customization 
18707 \emph default
18708 manual for the details.
18709 \end_layout
18710
18711 \begin_layout Standard
18712
18713 \change_inserted 1075283030 1616534475
18714 Most \SpecialChar LyX
18715  features are supported with DocBook, like math output.
18716 \end_layout
18717
18718 \begin_layout Itemize
18719
18720 \change_inserted 1075283030 1616534741
18721 Math output is performed mostly in MathML (the major exception being constructio
18722 ns not supported by \SpecialChar LyX
18723 , i.e.
18724  ERTs).
18725  All formulae are also available in raw \SpecialChar TeX
18726  in the DocBook output for further
18727  processing.
18728 \end_layout
18729
18730 \begin_layout Itemize
18731
18732 \change_inserted 1075283030 1616534852
18733 Bibliographies and citations are implemented, including with an external
18734  BibTeX file.
18735  Bibliography entries are not prerendered when the detailed information
18736  are available, but rather output with the standard DocBook constructs.
18737  The external DocBook processor is expected to handle the rendering of entries.
18738 \end_layout
18739
18740 \begin_layout Itemize
18741
18742 \change_inserted 1075283030 1616534863
18743 Indexes are supported, including multiple indices.
18744  Grouping (with 
18745 \family typewriter
18746 !
18747 \family default
18748 ), page ranges, and cross-references (
18749 \family typewriter
18750 |see
18751 \family default
18752 ) are supported, with the exception of the same symbols escaped.
18753  Entry order (
18754 \family typewriter
18755 @
18756 \family default
18757 ) and layout (
18758 \family typewriter
18759 |mathbf
18760 \family default
18761 ) are not supported.
18762  There is no support for escaping of index entries.
18763 \end_layout
18764
18765 \begin_layout Itemize
18766
18767 \change_inserted 1075283030 1616534884
18768 Glossaries are implemented.
18769 \end_layout
18770
18771 \begin_layout Standard
18772
18773 \change_inserted 1075283030 1616534894
18774 Two major parameters can be set at the document level.
18775 \end_layout
18776
18777 \begin_layout Itemize
18778
18779 \change_inserted 1075283030 1616534948
18780 Format for tables: \SpecialChar LyX
18781  can generate tables either as HTML (default value) or
18782  CALS, depending on the user's requirements.
18783  Most DocBook processors accept both formats.
18784 \end_layout
18785
18786 \begin_layout Itemize
18787
18788 \change_inserted 1075283030 1616535006
18789 MathML prefix: in DocBook, MathML is included within its own name space,
18790  unlike HTML.
18791  The implication is that there must be an indication of the tags belonging
18792  to the MathML standard.
18793  Three choices are offered: 
18794 \end_layout
18795
18796 \begin_deeper
18797 \begin_layout Itemize
18798
18799 \change_inserted 1075283030 1616535044
18800 Inline: the MathML name space is defined for each formula (using the 
18801 \family typewriter
18802 xmlns
18803 \family default
18804  attribute on each formula)
18805 \end_layout
18806
18807 \begin_layout Itemize
18808
18809 \change_inserted 1075283030 1616535090
18810 With the 
18811 \family typewriter
18812 m
18813 \family default
18814  prefix (default): the MathML name space is defined at the document level
18815  (using the 
18816 \family typewriter
18817 xmlns:m
18818 \family default
18819  attribute on the root element).
18820  Each MathML is prefixed with 
18821 \family typewriter
18822 m
18823 \family default
18824 : for instance, 
18825 \family typewriter
18826 m:math
18827 \end_layout
18828
18829 \begin_layout Itemize
18830
18831 \change_inserted 1075283030 1616620405
18832 With the 
18833 \family typewriter
18834 mml
18835 \family default
18836  prefix: similar to the 
18837 \family typewriter
18838 m
18839 \family default
18840  option, but with 
18841 \family typewriter
18842 mml
18843 \end_layout
18844
18845 \begin_layout Standard
18846
18847 \change_inserted 1075283030 1616620470
18848 This option is especially useful if you want \SpecialChar LyX
18849  to match your personal style
18850  or to work with buggy software that only accepts one prefix for MathML.
18851 \change_unchanged
18852
18853 \end_layout
18854
18855 \end_deeper
18856 \begin_layout Chapter
18857 The \SpecialChar LyX
18858  Server
18859 \end_layout
18860
18861 \begin_layout Section
18862 Introduction
18863 \end_layout
18864
18865 \begin_layout Standard
18866 The `\SpecialChar LyX
18867  server' allows other programs to talk to \SpecialChar LyX
18868 , invoke \SpecialChar LyX
18869  commands, and retrieve
18870  information about the \SpecialChar LyX
18871  internal state.
18872  This is only intended for advanced users, but they should find it useful.
18873  It is by writing to the \SpecialChar LyX
18874  server, for example, that bibliography managers,
18875  such as JabRef, are able to 
18876 \begin_inset Quotes eld
18877 \end_inset
18878
18879 push
18880 \begin_inset Quotes erd
18881 \end_inset
18882
18883  citations to \SpecialChar LyX
18884 .
18885 \end_layout
18886
18887 \begin_layout Section
18888 Starting the \SpecialChar LyX
18889  Server
18890 \begin_inset CommandInset label
18891 LatexCommand label
18892 name "sec:Starting-the-Server"
18893
18894 \end_inset
18895
18896
18897 \end_layout
18898
18899 \begin_layout Standard
18900 The \SpecialChar LyX
18901  server works through the use of a pair of named pipes.
18902  These are usually located in 
18903 \begin_inset Flex Code
18904 status collapsed
18905
18906 \begin_layout Plain Layout
18907 UserDir
18908 \end_layout
18909
18910 \end_inset
18911
18912 , (except on Windows, where 
18913 \emph on
18914 local
18915 \emph default
18916  named pipes are special objects located in 
18917 \begin_inset Flex Code
18918 status collapsed
18919
18920 \begin_layout Plain Layout
18921
18922 \backslash
18923
18924 \backslash
18925 .
18926 \backslash
18927 pipe
18928 \end_layout
18929
18930 \end_inset
18931
18932 ) and have the names 
18933 \begin_inset Quotes eld
18934 \end_inset
18935
18936
18937 \begin_inset Flex Code
18938 status collapsed
18939
18940 \begin_layout Plain Layout
18941 lyxpipe.in
18942 \end_layout
18943
18944 \end_inset
18945
18946
18947 \begin_inset Quotes erd
18948 \end_inset
18949
18950  and 
18951 \begin_inset Quotes eld
18952 \end_inset
18953
18954
18955 \begin_inset Flex Code
18956 status collapsed
18957
18958 \begin_layout Plain Layout
18959 lyxpipe.out
18960 \end_layout
18961
18962 \end_inset
18963
18964
18965 \begin_inset Quotes erd
18966 \end_inset
18967
18968 .
18969  External programs write into 
18970 \begin_inset Flex Code
18971 status collapsed
18972
18973 \begin_layout Plain Layout
18974 lyxpipe.in
18975 \end_layout
18976
18977 \end_inset
18978
18979  and read back data from 
18980 \begin_inset Flex Code
18981 status collapsed
18982
18983 \begin_layout Plain Layout
18984 lyxpipe.out
18985 \end_layout
18986
18987 \end_inset
18988
18989 .
18990  The stem of the pipe names can be defined in the 
18991 \begin_inset Flex Noun
18992 status collapsed
18993
18994 \begin_layout Plain Layout
18995 Tools\SpecialChar menuseparator
18996 Preferences
18997 \end_layout
18998
18999 \end_inset
19000
19001  dialog, for example 
19002 \begin_inset Flex Code
19003 status collapsed
19004
19005 \begin_layout Plain Layout
19006 "/home/myhome/lyxpipe"
19007 \end_layout
19008
19009 \end_inset
19010
19011 , or 
19012 \begin_inset Flex Code
19013 status collapsed
19014
19015 \begin_layout Plain Layout
19016 "
19017 \backslash
19018
19019 \backslash
19020 .
19021 \backslash
19022 pipe
19023 \backslash
19024 lyxpipe"
19025 \end_layout
19026
19027 \end_inset
19028
19029  on Windows (where any working path instead of lyxpipe can be used, for
19030  example 
19031 \begin_inset Flex Code
19032 status collapsed
19033
19034 \begin_layout Plain Layout
19035 "
19036 \backslash
19037
19038 \backslash
19039 .
19040 \backslash
19041 pipe
19042 \backslash
19043 my
19044 \backslash
19045 lyx
19046 \backslash
19047 pipe"
19048 \end_layout
19049
19050 \end_inset
19051
19052  would also work).
19053  You 
19054 \emph on
19055 must
19056 \emph default
19057  configure this manually in order for the server to start.
19058 \end_layout
19059
19060 \begin_layout Standard
19061 \SpecialChar LyX
19062  will add the '
19063 \begin_inset Flex Code
19064 status collapsed
19065
19066 \begin_layout Plain Layout
19067 .in
19068 \end_layout
19069
19070 \end_inset
19071
19072 ' and '
19073 \begin_inset Flex Code
19074 status collapsed
19075
19076 \begin_layout Plain Layout
19077 .out
19078 \end_layout
19079
19080 \end_inset
19081
19082 ' to create the pipes.
19083  If one of the pipes already exists, \SpecialChar LyX
19084  will assume that another \SpecialChar LyX
19085  process
19086  is already running and will not start the server.
19087  On POSIX (Unix like) systems, if for some other reason, an unused 
19088 \begin_inset Quotes eld
19089 \end_inset
19090
19091 stale
19092 \begin_inset Quotes erd
19093 \end_inset
19094
19095  pipe is left in existence when \SpecialChar LyX
19096  closes, then \SpecialChar LyX
19097  will try to delete it.
19098  If this fails for some reason, you will need to delete the pipes manually
19099  and then restart \SpecialChar LyX
19100 .
19101  On Windows, pipes are deleted by the OS on program termination or crash,
19102  so 
19103 \begin_inset Quotes eld
19104 \end_inset
19105
19106 stale
19107 \begin_inset Quotes erd
19108 \end_inset
19109
19110  pipes should not be possible.
19111 \end_layout
19112
19113 \begin_layout Standard
19114 To have several \SpecialChar LyX
19115  processes with servers at the same time, you have to use
19116  different configurations, perhaps by using separate user directories, each
19117  with its own 
19118 \begin_inset Flex Code
19119 status collapsed
19120
19121 \begin_layout Plain Layout
19122 preferences
19123 \end_layout
19124
19125 \end_inset
19126
19127  file, for each process.
19128 \end_layout
19129
19130 \begin_layout Standard
19131 If you are developing a client program, you might find it useful to enable
19132  debugging information from the \SpecialChar LyX
19133  server.
19134  Do this by starting \SpecialChar LyX
19135  as 
19136 \begin_inset Flex Code
19137 status collapsed
19138
19139 \begin_layout Plain Layout
19140 lyx -dbg lyxserver
19141 \end_layout
19142
19143 \end_inset
19144
19145 .
19146 \end_layout
19147
19148 \begin_layout Standard
19149 You can find a complete example client written in C++ in the source distribution
19150  as 
19151 \begin_inset Flex Code
19152 status collapsed
19153
19154 \begin_layout Plain Layout
19155 development/lyxserver/server_monitor.cpp
19156 \end_layout
19157
19158 \end_inset
19159
19160 .
19161 \end_layout
19162
19163 \begin_layout Standard
19164 Another useful tool is the command-line based client found in 
19165 \begin_inset Flex Code
19166 status collapsed
19167
19168 \begin_layout Plain Layout
19169 src/client/lyxclient
19170 \end_layout
19171
19172 \end_inset
19173
19174 .
19175 \end_layout
19176
19177 \begin_layout Section
19178 Normal communication
19179 \end_layout
19180
19181 \begin_layout Standard
19182 To issue a \SpecialChar LyX
19183  call, the client writes a line of ASCII text into the input
19184  pipe.
19185  This line has the following format:
19186 \end_layout
19187
19188 \begin_layout Quote
19189 LYXCMD:
19190 \emph on
19191 clientname
19192 \emph default
19193 :
19194 \emph on
19195 function
19196 \emph default
19197 :
19198 \emph on
19199 argument
19200 \end_layout
19201
19202 \begin_layout Description
19203 clientname is a name that the client can choose arbitrarily.
19204  Its only use is that \SpecialChar LyX
19205  will echo it if it sends an answer—so a client can
19206  dispatch results from different requesters.
19207 \end_layout
19208
19209 \begin_layout Description
19210 function is the function you want \SpecialChar LyX
19211  to perform.
19212  It is the same as the commands you'd use in the minibuffer.
19213 \end_layout
19214
19215 \begin_layout Description
19216 argument is an optional argument which is meaningful only to some functions
19217  (for instance, the 
19218 \begin_inset Quotes eld
19219 \end_inset
19220
19221 self-insert
19222 \begin_inset Quotes erd
19223 \end_inset
19224
19225  LFUN will insert the argument as text at the cursor position).
19226 \end_layout
19227
19228 \begin_layout Standard
19229 The answer from \SpecialChar LyX
19230  will arrive in the output pipe and be of the form
19231 \end_layout
19232
19233 \begin_layout Quote
19234 INFO:
19235 \emph on
19236 clientname
19237 \emph default
19238 :
19239 \emph on
19240 function
19241 \emph default
19242 :
19243 \emph on
19244 data
19245 \end_layout
19246
19247 \begin_layout Standard
19248 where 
19249 \emph on
19250 clientname
19251 \emph default
19252  and 
19253 \emph on
19254 function
19255 \emph default
19256  are just echoed from the command request, while 
19257 \emph on
19258 data
19259 \emph default
19260  is more or less useful information filled according to how the command
19261  execution worked out.
19262  Some commands, such as 
19263 \begin_inset Quotes eld
19264 \end_inset
19265
19266 font-state
19267 \begin_inset Quotes erd
19268 \end_inset
19269
19270 , will return information about the internal state of \SpecialChar LyX
19271 , while other will
19272  return an empty data-response.
19273  This means that the command execution went fine.
19274 \end_layout
19275
19276 \begin_layout Standard
19277 In case of errors, the response from \SpecialChar LyX
19278  will have this form
19279 \end_layout
19280
19281 \begin_layout Quote
19282 ERROR:
19283 \emph on
19284 clientname
19285 \emph default
19286 :
19287 \emph on
19288 function
19289 \emph default
19290 :
19291 \emph on
19292 error message
19293 \end_layout
19294
19295 \begin_layout Standard
19296 where the 
19297 \emph on
19298 error message
19299 \emph default
19300  should contain an explanation of why the command failed.
19301 \end_layout
19302
19303 \begin_layout Standard
19304 Examples:
19305 \end_layout
19306
19307 \begin_layout LyX-Code
19308 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
19309 \begin_inset Newline newline
19310 \end_inset
19311
19312 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
19313 \begin_inset Newline newline
19314 \end_inset
19315
19316 read a <~/.lyxpipe.out
19317 \begin_inset Newline newline
19318 \end_inset
19319
19320 echo $a
19321 \end_layout
19322
19323 \begin_layout Subsection
19324 AppleScript (Mac OS X)
19325 \end_layout
19326
19327 \begin_layout Standard
19328 Since \SpecialChar LyX
19329  2.1, \SpecialChar LyX
19330  supports basic interactions with AppleScript for normal communicatio
19331 n through the command run.
19332  This command takes a direct argument (the 
19333 \series bold
19334 function
19335 \series default
19336  to perform) and an optional argument.
19337  It either returns the output of the function or triggers an error with
19338  the error message and code.
19339 \end_layout
19340
19341 \begin_layout Standard
19342 Example:
19343 \end_layout
19344
19345 \begin_layout LyX-Code
19346 tell application "\SpecialChar LyX
19347 "
19348 \end_layout
19349
19350 \begin_layout LyX-Code
19351   try
19352 \end_layout
19353
19354 \begin_layout LyX-Code
19355     -- Stores the current file name into f
19356 \end_layout
19357
19358 \begin_layout LyX-Code
19359     set f to (run "server-get-filename" with argument "")
19360 \end_layout
19361
19362 \begin_layout LyX-Code
19363     on error the error_message number the error_number
19364 \end_layout
19365
19366 \begin_layout LyX-Code
19367       display dialog "Error: " & the error_number & ".
19368  " ¬
19369 \end_layout
19370
19371 \begin_layout LyX-Code
19372               & the error_message buttons {"OK"} default button 1
19373 \end_layout
19374
19375 \begin_layout LyX-Code
19376   end try
19377 \end_layout
19378
19379 \begin_layout LyX-Code
19380 end tell
19381 \end_layout
19382
19383 \begin_layout Section
19384 Notification
19385 \end_layout
19386
19387 \begin_layout Standard
19388 \SpecialChar LyX
19389  can notify clients of events going on asynchronously.
19390  Currently it will only do this if the user binds a key sequence with the
19391  function 
19392 \begin_inset Quotes eld
19393 \end_inset
19394
19395 notify
19396 \begin_inset Quotes erd
19397 \end_inset
19398
19399 .
19400  The format of the string \SpecialChar LyX
19401  sends is as follows:
19402 \end_layout
19403
19404 \begin_layout Quote
19405 \begin_inset Flex Code
19406 status collapsed
19407
19408 \begin_layout Plain Layout
19409 NOTIFY:
19410 \end_layout
19411
19412 \end_inset
19413
19414
19415 \emph on
19416 key-sequence
19417 \end_layout
19418
19419 \begin_layout Standard
19420 where 
19421 \emph on
19422 key-sequence
19423 \emph default
19424  is the printed representation of the key sequence that was actually typed
19425  by the user.
19426 \end_layout
19427
19428 \begin_layout Standard
19429 This mechanism can be used to extend \SpecialChar LyX
19430 's command set and implement macros.
19431  Bind some key sequence to 
19432 \begin_inset Quotes eld
19433 \end_inset
19434
19435 notify
19436 \begin_inset Quotes erd
19437 \end_inset
19438
19439 .
19440  Then start a client that listens on the output pipe, dispatches the command
19441  according to the sequence, and starts a function that may use \SpecialChar LyX
19442  calls and
19443  \SpecialChar LyX
19444  requests to issue a command or a series of commands to \SpecialChar LyX
19445 .
19446 \end_layout
19447
19448 \begin_layout Section
19449 The simple \SpecialChar LyX
19450  Server Protocol
19451 \end_layout
19452
19453 \begin_layout Standard
19454 \SpecialChar LyX
19455  implements a simple protocol that can be used for session management.
19456  All messages are of the form
19457 \end_layout
19458
19459 \begin_layout Quote
19460 LYXSRV:
19461 \emph on
19462 clientname
19463 \emph default
19464 :
19465 \emph on
19466 protocol message
19467 \end_layout
19468
19469 \begin_layout Standard
19470 where 
19471 \emph on
19472 protocol message
19473 \emph default
19474  can be 
19475 \begin_inset Quotes eld
19476 \end_inset
19477
19478 hello
19479 \begin_inset Quotes erd
19480 \end_inset
19481
19482  or 
19483 \begin_inset Quotes eld
19484 \end_inset
19485
19486 bye
19487 \begin_inset Quotes erd
19488 \end_inset
19489
19490 .
19491  If 
19492 \begin_inset Quotes eld
19493 \end_inset
19494
19495 hello
19496 \begin_inset Quotes erd
19497 \end_inset
19498
19499  is received from a client, \SpecialChar LyX
19500  will report back to inform the client that
19501  it's listening to it's messages, while 
19502 \begin_inset Quotes eld
19503 \end_inset
19504
19505 bye
19506 \begin_inset Quotes erd
19507 \end_inset
19508
19509  sent from \SpecialChar LyX
19510  will inform clients that \SpecialChar LyX
19511  is closing.
19512 \end_layout
19513
19514 \begin_layout Section
19515 Reverse DVI/PDF search
19516 \end_layout
19517
19518 \begin_layout Standard
19519 Some DVI/PDF viewers
19520 \begin_inset Foot
19521 status collapsed
19522
19523 \begin_layout Plain Layout
19524 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
19525  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
19526 \end_layout
19527
19528 \end_inset
19529
19530  provide 
19531 \emph on
19532 reverse search
19533 \emph default
19534  facility (also called 
19535 \emph on
19536 inverse search
19537 \emph default
19538 ).
19539  This means that you can tell \SpecialChar LyX
19540  to put the cursor to a specific line in the
19541  document by clicking at the respective position in the DVI/PDF output.
19542  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
19543 .
19544  This is done via the \SpecialChar LyX
19545  server either by using the named pipe (
19546 \emph on
19547 lyxpipe
19548 \emph default
19549 ), or the UNIX domain socket (
19550 \emph on
19551 lyxsocket
19552 \emph default
19553 ) that \SpecialChar LyX
19554  creates in its temporary directory (this is the way the 
19555 \begin_inset Flex Code
19556 status collapsed
19557
19558 \begin_layout Plain Layout
19559 lyxclient
19560 \end_layout
19561
19562 \end_inset
19563
19564  program communicates with \SpecialChar LyX
19565 ).
19566  In some cases, you need a helper script that mediates between the viewer
19567  and \SpecialChar LyX
19568 , in others, the viewer can communicate with \SpecialChar LyX
19569  directly.
19570  This depends on the selected viewer and on your operating system.
19571  The same applies to the way viewers need to be configured and the way the
19572  reverse search is actually performed.
19573  In what follows, we will thus describe how to setup reverse search for
19574  specific viewers.
19575  Before we turn to this, though, we will explain what needs to be done generally
19576  to enable reverse search in the DVI/PDF output.
19577 \end_layout
19578
19579 \begin_layout Subsection
19580 Automatic setup
19581 \begin_inset CommandInset label
19582 LatexCommand label
19583 name "subsec:rev-search"
19584
19585 \end_inset
19586
19587
19588 \end_layout
19589
19590 \begin_layout Standard
19591 In most cases \SpecialChar LyX
19592  will do the work for you by pressing the following button
19593  in the toolbar: 
19594 \begin_inset Info
19595 type  "icon"
19596 arg   "buffer-toggle-output-sync"
19597 \end_inset
19598
19599 .
19600  Alternatively, you can also enable the feature by checking 
19601 \family sans
19602 Synchronize with Output
19603 \family default
19604  in 
19605 \begin_inset Flex Noun
19606 status collapsed
19607
19608 \begin_layout Plain Layout
19609 Document\SpecialChar menuseparator
19610 Settings\SpecialChar menuseparator
19611 Formats
19612 \end_layout
19613
19614 \end_inset
19615
19616 .
19617  In such a case \SpecialChar LyX
19618  will automatically insert the necessary Sync\SpecialChar TeX
19619  macro (for
19620  PDF) or load the srcltx package (for DVI) respectively.
19621  This option can be easily reached also on 
19622 \begin_inset Flex Code
19623 status collapsed
19624
19625 \begin_layout Plain Layout
19626 View/Update
19627 \end_layout
19628
19629 \end_inset
19630
19631  Toolbar.
19632 \end_layout
19633
19634 \begin_layout Standard
19635 If you need a different setting, you can select or input a custom macro
19636  from the drop down box just below 
19637 \begin_inset Flex Noun
19638 status collapsed
19639
19640 \begin_layout Plain Layout
19641 Document\SpecialChar menuseparator
19642 Settings\SpecialChar menuseparator
19643 Output\SpecialChar menuseparator
19644 Synchronize with Output
19645 \end_layout
19646
19647 \end_inset
19648
19649 .
19650 \end_layout
19651
19652 \begin_layout Standard
19653 Note that the method 
19654 \begin_inset Flex Code
19655 status collapsed
19656
19657 \begin_layout Plain Layout
19658
19659 \backslash
19660 synctex=1
19661 \end_layout
19662
19663 \end_inset
19664
19665  enables gzip compression.
19666  If your viewer does not support it, you should instead use 
19667 \begin_inset Flex Code
19668 status collapsed
19669
19670 \begin_layout Plain Layout
19671
19672 \backslash
19673 synctex=-1
19674 \end_layout
19675
19676 \end_inset
19677
19678 .
19679 \end_layout
19680
19681 \begin_layout Standard
19682 Please also note that including the 
19683 \begin_inset Flex Code
19684 status collapsed
19685
19686 \begin_layout Plain Layout
19687 srcltx
19688 \end_layout
19689
19690 \end_inset
19691
19692  package or 
19693 \begin_inset Flex Code
19694 status collapsed
19695
19696 \begin_layout Plain Layout
19697 src-specials
19698 \end_layout
19699
19700 \end_inset
19701
19702  sometimes has an undesired impact on the typesetting.
19703  Thus, you should switch output synchronization off for the final typesetting
19704  if you use the 
19705 \begin_inset Flex Code
19706 status collapsed
19707
19708 \begin_layout Plain Layout
19709 srcltx
19710 \end_layout
19711
19712 \end_inset
19713
19714  package or 
19715 \begin_inset Flex Code
19716 status collapsed
19717
19718 \begin_layout Plain Layout
19719 src-specials
19720 \end_layout
19721
19722 \end_inset
19723
19724 .
19725  
19726 \end_layout
19727
19728 \begin_layout Standard
19729 In case you need some more special settings that are not covered by the
19730  automatic settings, read the next section about how to set up output synchroniz
19731 ation manually.
19732  If the automatic setup suits your needs, you can readily jump to section
19733 \begin_inset space ~
19734 \end_inset
19735
19736
19737 \begin_inset CommandInset ref
19738 LatexCommand ref
19739 reference "subsec:configuring-viewers"
19740
19741 \end_inset
19742
19743 , where the necessary configuration steps in your viewer – needed both with
19744  the automatic and the manual setup – are described.
19745 \end_layout
19746
19747 \begin_layout Subsection
19748 Manual setup
19749 \end_layout
19750
19751 \begin_layout Standard
19752 \SpecialChar LaTeX
19753  provides several different methods for reverse search.
19754  Some are built-in in the 
19755 \begin_inset Flex Code
19756 status collapsed
19757
19758 \begin_layout Plain Layout
19759 latex/pdflatex
19760 \end_layout
19761
19762 \end_inset
19763
19764  program, some are provided by external packages.
19765  Your choice depends on whether your \SpecialChar LaTeX
19766  distribution already provides a given
19767  method (the built-in methods are rather new) and whether your viewer can
19768  cope with it.
19769  The available methods are described in the following.
19770 \end_layout
19771
19772 \begin_layout Subsubsection*
19773 Built-in DVI-search via src-specials (DVI only) 
19774 \end_layout
19775
19776 \begin_layout Standard
19777 This method provides the DVI file with the necessary information for reverse
19778  search.
19779  It is available in \SpecialChar LaTeX
19780  since quite some time (any somewhat recent \SpecialChar LaTeX
19781  distribution
19782  should include it), and it works reliably.
19783  To enable it, change the 
19784 \begin_inset Flex Noun
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 La
19789 \family sans
19790 TeX
19791 \family default
19792  (plain)->DVI
19793 \end_layout
19794
19795 \end_inset
19796
19797  or 
19798 \begin_inset Flex Noun
19799 status collapsed
19800
19801 \begin_layout Plain Layout
19802 La
19803 \family sans
19804 TeX
19805 \family default
19806  (plain)->DraftDVI
19807 \end_layout
19808
19809 \end_inset
19810
19811  converter in 
19812 \begin_inset Flex Noun
19813 status collapsed
19814
19815 \begin_layout Plain Layout
19816 Preferences\SpecialChar menuseparator
19817 File Handling\SpecialChar menuseparator
19818 Converters
19819 \end_layout
19820
19821 \end_inset
19822
19823  to 
19824 \begin_inset Flex Code
19825 status collapsed
19826
19827 \begin_layout Plain Layout
19828 latex -src-specials $$i
19829 \end_layout
19830
19831 \end_inset
19832
19833 .
19834  If this doesn't work, check if your \SpecialChar TeX
19835  engine needs different options (the
19836  syntax might differ in some distributions).
19837 \end_layout
19838
19839 \begin_layout Subsubsection*
19840 External Packages (PDFSync and scrltx) 
19841 \end_layout
19842
19843 \begin_layout Standard
19844 The packages 
19845 \emph on
19846 pdfsync
19847 \emph default
19848  and 
19849 \emph on
19850 scrltx
19851 \emph default
19852  provide reverse search facility for PDF output (via pdflatex) and DVI output,
19853  respectively.
19854  In order to enable it, load the packages in the \SpecialChar LyX
19855  preamble: 
19856 \end_layout
19857
19858 \begin_layout Itemize
19859 \begin_inset Flex Code
19860 status collapsed
19861
19862 \begin_layout Plain Layout
19863
19864 \backslash
19865 usepackage{pdfsync}
19866 \end_layout
19867
19868 \end_inset
19869
19870  for reverse PDF search,
19871 \end_layout
19872
19873 \begin_layout Itemize
19874 \begin_inset Flex Code
19875 status collapsed
19876
19877 \begin_layout Plain Layout
19878
19879 \backslash
19880 usepackage[active]{srcltx}
19881 \end_layout
19882
19883 \end_inset
19884
19885  for reverse DVI search.
19886 \end_layout
19887
19888 \begin_layout Standard
19889 If you want to be able to perform both DVI and PDF reverse searches, you
19890  can also insert in the preamble the following lines
19891 \end_layout
19892
19893 \begin_layout LyX-Code
19894
19895 \backslash
19896 usepackage{ifpdf}
19897 \begin_inset Newline newline
19898 \end_inset
19899
19900
19901 \backslash
19902 ifpdf
19903 \begin_inset Newline newline
19904 \end_inset
19905
19906   
19907 \backslash
19908 usepackage{pdfsync}
19909 \begin_inset Newline newline
19910 \end_inset
19911
19912
19913 \backslash
19914 else
19915 \begin_inset Newline newline
19916 \end_inset
19917
19918   
19919 \backslash
19920 usepackage[active]{srcltx}
19921 \begin_inset Newline newline
19922 \end_inset
19923
19924
19925 \backslash
19926 fi
19927 \end_layout
19928
19929 \begin_layout Standard
19930 This way, you can preview the file as either DVI or PDF (pdflatex) and the
19931  right package will be used.
19932 \end_layout
19933
19934 \begin_layout Standard
19935 Note that PDFSync might affect the output layout of your document.
19936  It is therefore advised to disable PDFsync for final documents.
19937 \end_layout
19938
19939 \begin_layout Subsubsection*
19940 Built-in reverse search via Sync\SpecialChar TeX
19941  (DVI and PDF) 
19942 \end_layout
19943
19944 \begin_layout Standard
19945 Recent versions of 
19946 \begin_inset Flex Code
19947 status collapsed
19948
19949 \begin_layout Plain Layout
19950 (pdf)latex
19951 \end_layout
19952
19953 \end_inset
19954
19955  have built-in support for both PDF and DVI reverse search.
19956  This so-called 
19957 \emph on
19958 Sync\SpecialChar TeX
19959
19960 \emph default
19961  facility is basically the result of the integration of the PDFSync package
19962  to the pdftex program and its merge with the 
19963 \emph on
19964 scr-specials
19965 \emph default
19966  approach.
19967  You need at least \SpecialChar TeX
19968 Live 2008 or a recent Mik\SpecialChar TeX
19969  distribution in order to use
19970  it.
19971 \begin_inset Foot
19972 status collapsed
19973
19974 \begin_layout Plain Layout
19975 For some reason, Mik\SpecialChar TeX
19976  does not understand/obey the command \SpecialChar LyX
19977  inserts into
19978  the preamble when you check the "Enable Forward/Reverse Search" button
19979  in the toolbar and does not generate the necessary info.
19980 \end_layout
19981
19982 \begin_layout Plain Layout
19983 The generation of the required info can be forced by changing the converter
19984  "\SpecialChar LaTeX
19985  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
19986  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
19987  the -synctex=1 switch).
19988 \end_layout
19989
19990 \end_inset
19991
19992  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
19993  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
19994  already provide Sync\SpecialChar TeX
19995  support.
19996 \end_layout
19997
19998 \begin_layout Standard
19999 To enable Sync\SpecialChar TeX
20000  for DVI output, change the 
20001 \begin_inset Flex Noun
20002 status collapsed
20003
20004 \begin_layout Plain Layout
20005 La
20006 \family sans
20007 TeX
20008 \family default
20009  (plain) -> DVI
20010 \end_layout
20011
20012 \end_inset
20013
20014  or 
20015 \begin_inset Flex Noun
20016 status collapsed
20017
20018 \begin_layout Plain Layout
20019 La
20020 \family sans
20021 TeX
20022 \family default
20023  (plain) -> DraftDVI
20024 \end_layout
20025
20026 \end_inset
20027
20028  converter in 
20029 \begin_inset Flex Noun
20030 status collapsed
20031
20032 \begin_layout Plain Layout
20033 Preferences\SpecialChar menuseparator
20034 File Handling\SpecialChar menuseparator
20035 Converters
20036 \end_layout
20037
20038 \end_inset
20039
20040  to 
20041 \begin_inset Flex Code
20042 status collapsed
20043
20044 \begin_layout Plain Layout
20045 latex -synctex=1 $$i
20046 \end_layout
20047
20048 \end_inset
20049
20050 , and for PDF output, change the 
20051 \begin_inset Flex Noun
20052 status collapsed
20053
20054 \begin_layout Plain Layout
20055 La
20056 \family sans
20057 TeX
20058 \family default
20059  (pdflatex) -> PDF (pdflatex)
20060 \end_layout
20061
20062 \end_inset
20063
20064  converter to 
20065 \begin_inset Flex Code
20066 status collapsed
20067
20068 \begin_layout Plain Layout
20069 pdflatex -synctex=1 $$i
20070 \end_layout
20071
20072 \end_inset
20073
20074 .
20075  Should your viewer not be considered in the following description, or in
20076  case of missing success, please check the documentation of your viewer
20077  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
20078 .
20079 \begin_inset Foot
20080 status collapsed
20081
20082 \begin_layout Plain Layout
20083 Note that the option 
20084 \begin_inset Flex Code
20085 status collapsed
20086
20087 \begin_layout Plain Layout
20088 -synctex=1
20089 \end_layout
20090
20091 \end_inset
20092
20093  option enables gzip compression.
20094  If your viewer does not support it, you should instead use 
20095 \begin_inset Flex Code
20096 status collapsed
20097
20098 \begin_layout Plain Layout
20099 -synctex=-1
20100 \end_layout
20101
20102 \end_inset
20103
20104 .
20105 \end_layout
20106
20107 \end_inset
20108
20109
20110 \end_layout
20111
20112 \begin_layout Subsection
20113 Configuring and using specific viewers
20114 \begin_inset CommandInset label
20115 LatexCommand label
20116 name "subsec:configuring-viewers"
20117
20118 \end_inset
20119
20120
20121 \end_layout
20122
20123 \begin_layout Subsubsection*
20124 Xdvi (all platforms)
20125 \end_layout
20126
20127 \begin_layout Standard
20128 If you use 
20129 \begin_inset Flex Code
20130 status collapsed
20131
20132 \begin_layout Plain Layout
20133 xdvi
20134 \end_layout
20135
20136 \end_inset
20137
20138 , you don't need to do anything else for performing a reverse DVI search,
20139  as \SpecialChar LyX
20140  already provides the necessary hooks for automatically using the 
20141 \begin_inset Flex Code
20142 status collapsed
20143
20144 \begin_layout Plain Layout
20145 lyxclient
20146 \end_layout
20147
20148 \end_inset
20149
20150  program.
20151  Just setup your document as described above (reverse search is triggered
20152  by Ctrl-click or Alt-click on Mac OSX, respectively).
20153 \end_layout
20154
20155 \begin_layout Standard
20156 However, if for whatever reason you want to use the named pipe instead of
20157  the socket for communicating with \SpecialChar LyX
20158 , simply change the DVI viewer in 
20159 \begin_inset Flex Noun
20160 status collapsed
20161
20162 \begin_layout Plain Layout
20163 Preferences\SpecialChar menuseparator
20164 File Handling\SpecialChar menuseparator
20165 File formats
20166 \end_layout
20167
20168 \end_inset
20169
20170  to
20171 \begin_inset Foot
20172 status collapsed
20173
20174 \begin_layout Plain Layout
20175 On Mac OSX you have to use 
20176 \begin_inset Flex Code
20177 status collapsed
20178
20179 \begin_layout Plain Layout
20180 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
20181 \end_layout
20182
20183 \end_inset
20184
20185
20186 \end_layout
20187
20188 \end_inset
20189
20190  
20191 \begin_inset Flex Code
20192 status collapsed
20193
20194 \begin_layout Plain Layout
20195 xdvi -editor "lyxeditor.sh %f %l"
20196 \end_layout
20197
20198 \end_inset
20199
20200 , where 
20201 \begin_inset Flex Code
20202 status collapsed
20203
20204 \begin_layout Plain Layout
20205 lyxeditor.sh
20206 \end_layout
20207
20208 \end_inset
20209
20210  is a suitable script.
20211  For example, a minimal shell script is the following one:
20212 \end_layout
20213
20214 \begin_layout LyX-Code
20215 #!/bin/sh
20216 \begin_inset Newline newline
20217 \end_inset
20218
20219 LYXPIPE="/path/to/lyxpipe"
20220 \begin_inset Newline newline
20221 \end_inset
20222
20223 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
20224 \begin_inset Newline newline
20225 \end_inset
20226
20227 echo "$COMMAND" > "${LYXPIPE}".in || exit
20228 \begin_inset Newline newline
20229 \end_inset
20230
20231 read TMP < "${LYXPIPE}".out || exit
20232 \end_layout
20233
20234 \begin_layout Standard
20235 where 
20236 \begin_inset Flex Code
20237 status collapsed
20238
20239 \begin_layout Plain Layout
20240 /path/to/lyxpipe
20241 \end_layout
20242
20243 \end_inset
20244
20245  is the LyXServer pipe path specified in 
20246 \begin_inset Flex Noun
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250 Preferences\SpecialChar menuseparator
20251 Paths
20252 \end_layout
20253
20254 \end_inset
20255
20256 .
20257 \begin_inset Foot
20258 status collapsed
20259
20260 \begin_layout Plain Layout
20261 In the 
20262 \begin_inset Flex Code
20263 status collapsed
20264
20265 \begin_layout Plain Layout
20266 development/tools
20267 \end_layout
20268
20269 \end_inset
20270
20271  folder of a source distribution you can find a 
20272 \begin_inset Flex Code
20273 status collapsed
20274
20275 \begin_layout Plain Layout
20276 lyxeditor
20277 \end_layout
20278
20279 \end_inset
20280
20281  script which is able to locate the 
20282 \emph on
20283 lyxpipe
20284 \emph default
20285  based on your preferences.
20286 \end_layout
20287
20288 \end_inset
20289
20290
20291 \end_layout
20292
20293 \begin_layout Subsubsection*
20294 MacDviX (Mac OSX)
20295 \end_layout
20296
20297 \begin_layout Standard
20298 At the end of 
20299 \begin_inset Flex Code
20300 status collapsed
20301
20302 \begin_layout Plain Layout
20303 /Applications/MacDviX_Folder/calleditor.script
20304 \end_layout
20305
20306 \end_inset
20307
20308 , add the following lines:
20309 \end_layout
20310
20311 \begin_layout LyX-Code
20312 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
20313 \begin_inset Newline newline
20314 \end_inset
20315
20316 exit 1
20317 \end_layout
20318
20319 \begin_layout Standard
20320 Modify the lines accordingly if you install \SpecialChar LyX
20321  somewhere else than in the
20322  Applications folder.
20323 \end_layout
20324
20325 \begin_layout Standard
20326 Reverse search is triggered by Alt-click (OPTION-click).
20327 \end_layout
20328
20329 \begin_layout Subsubsection*
20330 Skim (Mac OSX)
20331 \end_layout
20332
20333 \begin_layout Standard
20334 Enter 
20335 \begin_inset Flex Code
20336 status collapsed
20337
20338 \begin_layout Plain Layout
20339 open -a Skim.app $$i
20340 \end_layout
20341
20342 \end_inset
20343
20344  to the viewer setting in 
20345 \begin_inset Flex Noun
20346 status collapsed
20347
20348 \begin_layout Plain Layout
20349 Preferences\SpecialChar menuseparator
20350 File Handling\SpecialChar menuseparator
20351 File formats\SpecialChar menuseparator
20352 PDF (pdflatex)
20353 \end_layout
20354
20355 \end_inset
20356
20357 , and then in 
20358 \begin_inset Flex Noun
20359 status collapsed
20360
20361 \begin_layout Plain Layout
20362 Skim\SpecialChar menuseparator
20363 Preferences\SpecialChar menuseparator
20364 Sync
20365 \end_layout
20366
20367 \end_inset
20368
20369  choose 
20370 \begin_inset Flex Noun
20371 status collapsed
20372
20373 \begin_layout Plain Layout
20374 custom
20375 \end_layout
20376
20377 \end_inset
20378
20379  preset and enter command 
20380 \begin_inset Flex Noun
20381 status collapsed
20382
20383 \begin_layout Plain Layout
20384 /Applications/\SpecialChar LyX
20385 .app/Contents/MacOS/lyxeditor
20386 \end_layout
20387
20388 \end_inset
20389
20390 .
20391 \end_layout
20392
20393 \begin_layout Standard
20394 Reverse search is triggered by COMMAND-SHIFT-click
20395 \end_layout
20396
20397 \begin_layout Subsubsection*
20398 Evince (GNOME)
20399 \end_layout
20400
20401 \begin_layout Standard
20402 Reverse search with evince does not work out of the box, but it can be achieved
20403  by means of some third party helper scripts.
20404  Please refer to 
20405 \begin_inset CommandInset href
20406 LatexCommand href
20407 target "https://wiki.lyx.org/LyX/SyncTeX"
20408 literal "false"
20409
20410 \end_inset
20411
20412  for details.
20413 \end_layout
20414
20415 \begin_layout Subsubsection*
20416 Okular (KDE)
20417 \end_layout
20418
20419 \begin_layout Standard
20420 Go to 
20421 \begin_inset Flex Noun
20422 status collapsed
20423
20424 \begin_layout Plain Layout
20425 Settings\SpecialChar menuseparator
20426 Configure Okular\SpecialChar menuseparator
20427 Editor
20428 \end_layout
20429
20430 \end_inset
20431
20432  and select LyX
20433 \begin_inset Quotes erd
20434 \end_inset
20435
20436  as editor.
20437  This inserts the appropriate command (
20438 \begin_inset Flex Code
20439 status collapsed
20440
20441 \begin_layout Plain Layout
20442 lyxclient -g %f %l
20443 \end_layout
20444
20445 \end_inset
20446
20447 ).
20448 \end_layout
20449
20450 \begin_layout Standard
20451 Reverse search is triggered by SHIFT-click.
20452
20453 \change_inserted -712698321 1578211026
20454  Note that this only works if Okular is in 
20455 \begin_inset Quotes eld
20456 \end_inset
20457
20458 Browse
20459 \begin_inset Quotes erd
20460 \end_inset
20461
20462  mode (i.
20463 \begin_inset space \thinspace{}
20464 \end_inset
20465
20466 e., the hand symbol is clicked).
20467 \change_unchanged
20468
20469 \end_layout
20470
20471 \begin_layout Subsubsection*
20472 Qpdfview (Unix)
20473 \end_layout
20474
20475 \begin_layout Standard
20476 Qpdfview supports Sync\SpecialChar TeX
20477  since version 0.3.5.
20478  Go to 
20479 \begin_inset Flex Noun
20480 status collapsed
20481
20482 \begin_layout Plain Layout
20483 Edit\SpecialChar menuseparator
20484 Settings\SpecialChar menuseparator
20485 Behavior
20486 \end_layout
20487
20488 \end_inset
20489
20490 , click on the input field of the 
20491 \begin_inset Quotes eld
20492 \end_inset
20493
20494 Source editor
20495 \begin_inset Quotes erd
20496 \end_inset
20497
20498  item and add the command 
20499 \begin_inset Flex Code
20500 status collapsed
20501
20502 \begin_layout Plain Layout
20503 lyxclient -g %1 %2
20504 \end_layout
20505
20506 \end_inset
20507
20508 .
20509 \end_layout
20510
20511 \begin_layout Standard
20512 Reverse search is triggered by double-click or, in more recent versions,
20513  by context menu.
20514 \end_layout
20515
20516 \begin_layout Subsubsection*
20517 YAP (Windows)
20518 \end_layout
20519
20520 \begin_layout Standard
20521 Launch yap, choose its 
20522 \begin_inset Flex Noun
20523 status collapsed
20524
20525 \begin_layout Plain Layout
20526 View\SpecialChar menuseparator
20527 Options
20528 \end_layout
20529
20530 \end_inset
20531
20532  menu and select the 
20533 \begin_inset Quotes eld
20534 \end_inset
20535
20536 Inverse DVI Search
20537 \begin_inset Quotes erd
20538 \end_inset
20539
20540  tab.
20541  Click on the 
20542 \begin_inset Quotes eld
20543 \end_inset
20544
20545 New\SpecialChar ldots
20546
20547 \begin_inset Quotes erd
20548 \end_inset
20549
20550  button and, in the window that opens, enter 
20551 \begin_inset Quotes eld
20552 \end_inset
20553
20554 \SpecialChar LyX
20555  Editor
20556 \begin_inset Quotes erd
20557 \end_inset
20558
20559  (or any other name you like) in the 
20560 \begin_inset Quotes eld
20561 \end_inset
20562
20563 Name:
20564 \begin_inset Quotes erd
20565 \end_inset
20566
20567  field.
20568  Now click on the button labeled 
20569 \begin_inset Quotes eld
20570 \end_inset
20571
20572 \SpecialChar ldots
20573
20574 \begin_inset Quotes erd
20575 \end_inset
20576
20577  to open a file dialog and navigate to the directory containing the batch
20578  file 
20579 \begin_inset Flex Code
20580 status collapsed
20581
20582 \begin_layout Plain Layout
20583 lyxeditor.bat
20584 \end_layout
20585
20586 \end_inset
20587
20588  (see below).
20589  Select 
20590 \begin_inset Flex Code
20591 status collapsed
20592
20593 \begin_layout Plain Layout
20594 lyxeditor.bat
20595 \end_layout
20596
20597 \end_inset
20598
20599  and then specify the program arguments as 
20600 \begin_inset Flex Code
20601 status collapsed
20602
20603 \begin_layout Plain Layout
20604 %f %l
20605 \end_layout
20606
20607 \end_inset
20608
20609 .
20610  The 
20611 \begin_inset Flex Code
20612 status collapsed
20613
20614 \begin_layout Plain Layout
20615 lyxeditor.bat
20616 \end_layout
20617
20618 \end_inset
20619
20620  wrapper is used for communicating with \SpecialChar LyX
20621  through the 
20622 \emph on
20623 lyxpipe
20624 \emph default
20625  and is as follows:
20626 \end_layout
20627
20628 \begin_layout LyX-Code
20629 @echo off
20630 \begin_inset Newline newline
20631 \end_inset
20632
20633 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
20634 \backslash
20635
20636 \backslash
20637 .
20638 \backslash
20639 pipe
20640 \backslash
20641 lyxpipe.in
20642 \begin_inset Newline newline
20643 \end_inset
20644
20645 type 
20646 \backslash
20647
20648 \backslash
20649 .
20650 \backslash
20651 pipe
20652 \backslash
20653 lyxpipe.out
20654 \end_layout
20655
20656 \begin_layout Standard
20657 Make sure that the \SpecialChar LyX
20658 Server pipe path you specified in \SpecialChar LyX
20659  is 
20660 \begin_inset Flex Code
20661 status collapsed
20662
20663 \begin_layout Plain Layout
20664
20665 \backslash
20666
20667 \backslash
20668 .
20669 \backslash
20670 pipe
20671 \backslash
20672 lyxpipe
20673 \end_layout
20674
20675 \end_inset
20676
20677 , otherwise change the 
20678 \begin_inset Flex Code
20679 status collapsed
20680
20681 \begin_layout Plain Layout
20682 lyxeditor.bat
20683 \end_layout
20684
20685 \end_inset
20686
20687  wrapper accordingly.
20688 \end_layout
20689
20690 \begin_layout Standard
20691 In yap, reverse search is triggered by double-click.
20692 \end_layout
20693
20694 \begin_layout Subsubsection*
20695 SumatraPDF (Windows)
20696 \end_layout
20697
20698 \begin_layout Standard
20699 In order to use SumatraPDF for inverse search, enter 
20700 \begin_inset Flex Code
20701 status collapsed
20702
20703 \begin_layout Plain Layout
20704 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
20705 \end_layout
20706
20707 \end_inset
20708
20709  in the viewer setting in 
20710 \begin_inset Flex Noun
20711 status collapsed
20712
20713 \begin_layout Plain Layout
20714 Preferences\SpecialChar menuseparator
20715 File Handling\SpecialChar menuseparator
20716 File formats\SpecialChar menuseparator
20717 PDF (pdflatex)
20718 \end_layout
20719
20720 \end_inset
20721
20722 , where 
20723 \begin_inset Flex Code
20724 status collapsed
20725
20726 \begin_layout Plain Layout
20727 lyxeditor.bat
20728 \end_layout
20729
20730 \end_inset
20731
20732  is the previous wrapper.
20733  If SumatraPDF.exe is not in your command PATH, use its full file name.
20734 \end_layout
20735
20736 \begin_layout Standard
20737 Reverse search is triggered by double-click.
20738 \end_layout
20739
20740 \begin_layout Subsubsection*
20741 YAP (Cygwin)
20742 \end_layout
20743
20744 \begin_layout Standard
20745 First of all, make sure that yap is your default DVI viewer in the Windows
20746  environment, then launch it, choose its 
20747 \begin_inset Flex Noun
20748 status collapsed
20749
20750 \begin_layout Plain Layout
20751 View\SpecialChar menuseparator
20752 Options
20753 \end_layout
20754
20755 \end_inset
20756
20757  menu and select the 
20758 \begin_inset Quotes eld
20759 \end_inset
20760
20761 Inverse DVI Search
20762 \begin_inset Quotes erd
20763 \end_inset
20764
20765  tab.
20766  Click on the 
20767 \begin_inset Quotes eld
20768 \end_inset
20769
20770 New\SpecialChar ldots
20771
20772 \begin_inset Quotes erd
20773 \end_inset
20774
20775  button and, in the window that opens, enter 
20776 \begin_inset Quotes eld
20777 \end_inset
20778
20779 \SpecialChar LyX
20780  Editor
20781 \begin_inset Quotes erd
20782 \end_inset
20783
20784  (or any other name you like) in the 
20785 \begin_inset Quotes eld
20786 \end_inset
20787
20788 Name:
20789 \begin_inset Quotes erd
20790 \end_inset
20791
20792  field.
20793  Now click on the button labeled 
20794 \begin_inset Quotes eld
20795 \end_inset
20796
20797 \SpecialChar ldots
20798
20799 \begin_inset Quotes erd
20800 \end_inset
20801
20802  to open a file dialog and navigate to the directory containing the 
20803 \begin_inset Flex Code
20804 status collapsed
20805
20806 \begin_layout Plain Layout
20807 lyxeditor.exe
20808 \end_layout
20809
20810 \end_inset
20811
20812  program (which is installed by default on Cygwin along with the \SpecialChar LyX
20813  executable).
20814  Select 
20815 \begin_inset Flex Code
20816 status collapsed
20817
20818 \begin_layout Plain Layout
20819 lyxeditor.exe
20820 \end_layout
20821
20822 \end_inset
20823
20824  and then specify the program arguments as 
20825 \begin_inset Flex Code
20826 status collapsed
20827
20828 \begin_layout Plain Layout
20829 -g %f %l
20830 \end_layout
20831
20832 \end_inset
20833
20834 .
20835  In this way, you will be using the 
20836 \emph on
20837 lyxsocket
20838 \emph default
20839  for communicating with \SpecialChar LyX
20840 .
20841  If, for whatever reason, you want to use the 
20842 \emph on
20843 lyxpipe
20844 \emph default
20845 , omit the 
20846 \begin_inset Flex Code
20847 status collapsed
20848
20849 \begin_layout Plain Layout
20850 -g
20851 \end_layout
20852
20853 \end_inset
20854
20855  option and be sure to specify the \SpecialChar LyX
20856 Server pipe path in the \SpecialChar LyX
20857  preferences.
20858 \end_layout
20859
20860 \begin_layout Standard
20861 In yap, reverse search is triggered by double-click.
20862 \end_layout
20863
20864 \begin_layout Subsubsection*
20865 SumatraPDF (Cygwin)
20866 \end_layout
20867
20868 \begin_layout Standard
20869 In order to use SumatraPDF for inverse search, enter 
20870 \begin_inset Flex Code
20871 status collapsed
20872
20873 \begin_layout Plain Layout
20874 SumatraPDF -inverse-search "lyxeditor -g %f %l"
20875 \end_layout
20876
20877 \end_inset
20878
20879  in the viewer setting in 
20880 \begin_inset Flex Noun
20881 status collapsed
20882
20883 \begin_layout Plain Layout
20884 Preferences\SpecialChar menuseparator
20885 File Handling\SpecialChar menuseparator
20886 File formats\SpecialChar menuseparator
20887 PDF (pdflatex)
20888 \end_layout
20889
20890 \end_inset
20891
20892 .
20893  If SumatraPDF.exe is not in your command PATH, use its full posix path.
20894  The 
20895 \begin_inset Flex Code
20896 status collapsed
20897
20898 \begin_layout Plain Layout
20899 -g
20900 \end_layout
20901
20902 \end_inset
20903
20904  enables communication via the 
20905 \emph on
20906 lyxsocket
20907 \emph default
20908 .
20909  Again, omit the 
20910 \begin_inset Flex Code
20911 status collapsed
20912
20913 \begin_layout Plain Layout
20914 -g
20915 \end_layout
20916
20917 \end_inset
20918
20919  option if you want to use the 
20920 \emph on
20921 lyxpipe
20922 \emph default
20923 , and be sure to specify the \SpecialChar LyX
20924 Server pipe path in the \SpecialChar LyX
20925  preferences.
20926 \end_layout
20927
20928 \begin_layout Standard
20929 Reverse search is triggered by double-click.
20930 \end_layout
20931
20932 \begin_layout Section
20933 Forward search
20934 \end_layout
20935
20936 \begin_layout Standard
20937 Forward search is, as the name implies, in a sense the 
20938 \begin_inset Quotes eld
20939 \end_inset
20940
20941 opposite
20942 \begin_inset Quotes erd
20943 \end_inset
20944
20945  of reverse search.
20946  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
20947 .
20948  If forward search is set up (as described in what follows), you can put
20949  the cursor anywhere in your \SpecialChar LyX
20950  document, and hit 
20951 \begin_inset Flex Noun
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955 Navigate\SpecialChar menuseparator
20956 Forward search
20957 \end_layout
20958
20959 \end_inset
20960
20961  (or select 
20962 \begin_inset Flex Noun
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966 Forward search
20967 \end_layout
20968
20969 \end_inset
20970
20971  in the context menu via right mouse click), and then the viewer will jump
20972  to that position as well.
20973  This implies, of course, that your viewer supports this function.
20974 \end_layout
20975
20976 \begin_layout Standard
20977 To make forward search possible, you first need to provide the generated
20978  output PDF/DVI file with additional information about the \SpecialChar TeX
20979  sources.
20980  This can be done via the methods described in the section 
20981 \begin_inset CommandInset ref
20982 LatexCommand ref
20983 reference "subsec:rev-search"
20984
20985 \end_inset
20986
20987 .
20988 \end_layout
20989
20990 \begin_layout Standard
20991 Additionally, you need to configure \SpecialChar LyX
20992  for using your viewers in 
20993 \begin_inset Flex Noun
20994 status collapsed
20995
20996 \begin_layout Plain Layout
20997 Tools\SpecialChar menuseparator
20998 Preferences\SpecialChar menuseparator
20999 Output\SpecialChar menuseparator
21000 General
21001 \end_layout
21002
21003 \end_inset
21004
21005 .
21006  We provide a range of tested configurations for some viewers, which you
21007  can select from the drop down list.
21008  If none of these configurations suits you, you have to find out and enter
21009  a suitable configuration yourself.
21010  The definition syntax uses the following placeholders:
21011 \end_layout
21012
21013 \begin_layout Itemize
21014 \noindent
21015 \begin_inset Flex Code
21016 status collapsed
21017
21018 \begin_layout Plain Layout
21019 $$n
21020 \end_layout
21021
21022 \end_inset
21023
21024 : row number
21025 \end_layout
21026
21027 \begin_layout Itemize
21028 \noindent
21029 \begin_inset Flex Code
21030 status collapsed
21031
21032 \begin_layout Plain Layout
21033 $$t
21034 \end_layout
21035
21036 \end_inset
21037
21038 : name of the (temporary) exported .tex file (without path)
21039 \end_layout
21040
21041 \begin_layout Itemize
21042 \noindent
21043 \begin_inset Flex Code
21044 status collapsed
21045
21046 \begin_layout Plain Layout
21047 $$f
21048 \end_layout
21049
21050 \end_inset
21051
21052 : name of the (temporary) exported .tex file (including path)
21053 \end_layout
21054
21055 \begin_layout Itemize
21056 \noindent
21057 \begin_inset Flex Code
21058 status collapsed
21059
21060 \begin_layout Plain Layout
21061 $$o
21062 \end_layout
21063
21064 \end_inset
21065
21066 : name of the exported output file (either dvi or pdf, depending on which
21067  one exists in the temporary directory)
21068 \end_layout
21069
21070 \begin_layout Standard
21071 Note that only some of the viewers provide full and usable forward search
21072  functionality out of the box, among them yap, xdvi, okular
21073 \begin_inset Foot
21074 status collapsed
21075
21076 \begin_layout Plain Layout
21077 You might want to set 
21078 \begin_inset Flex Code
21079 status collapsed
21080
21081 \begin_layout Plain Layout
21082 okular --unique
21083 \end_layout
21084
21085 \end_inset
21086
21087  in 
21088 \begin_inset Flex Noun
21089 status collapsed
21090
21091 \begin_layout Plain Layout
21092 Tools\SpecialChar menuseparator
21093 Preferences\SpecialChar menuseparator
21094 File Handling\SpecialChar menuseparator
21095 File
21096 \begin_inset space ~
21097 \end_inset
21098
21099 Formats
21100 \end_layout
21101
21102 \end_inset
21103
21104
21105 \end_layout
21106
21107 \end_inset
21108
21109 , qpdfview, and SumatraPDF
21110 \begin_inset Foot
21111 status collapsed
21112
21113 \begin_layout Plain Layout
21114 SumatraPDF can also use DDE commands through the external program CMCDDE
21115  — downloadable from 
21116 \begin_inset CommandInset href
21117 LatexCommand href
21118 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
21119 literal "false"
21120
21121 \end_inset
21122
21123
21124 \end_layout
21125
21126 \end_inset
21127
21128 .
21129  Others, such as evince
21130 \begin_inset Foot
21131 status collapsed
21132
21133 \begin_layout Plain Layout
21134 Forward search with evince can be achieved by means of third party helper
21135  scripts.
21136  Please refer to 
21137 \begin_inset CommandInset href
21138 LatexCommand href
21139 target "https://wiki.lyx.org/LyX/SyncTeX"
21140 literal "false"
21141
21142 \end_inset
21143
21144  for details.
21145 \end_layout
21146
21147 \end_inset
21148
21149 , require some extra tools in order to use forward search.
21150  While many of the widespread PDF viewers (most notably Adobe Reader) do
21151  not support forward search at all, some other viewers – e.
21152 \begin_inset space \thinspace{}
21153 \end_inset
21154
21155 g.
21156  xpdf – allow at least to reload the document and jump to a specific page
21157  of the file, so you can at least navigate 
21158 \begin_inset Quotes eld
21159 \end_inset
21160
21161 near
21162 \begin_inset Quotes erd
21163 \end_inset
21164
21165 .
21166  This latter functionality is provided by an external call of synctex (see
21167  the predefined example configurations).
21168  
21169 \end_layout
21170
21171 \begin_layout Standard
21172 Forward search works both with DVI and PDF output.
21173  \SpecialChar LyX
21174  simply checks which preview format you have used before (i.
21175 \begin_inset space \thinspace{}
21176 \end_inset
21177
21178 e., which format is already there in the temporary directory) and chooses
21179  the appropriate configuration for the respective format.
21180 \end_layout
21181
21182 \begin_layout Chapter
21183
21184 \change_deleted 564990737 1671097409
21185 Special Document Classes
21186 \change_unchanged
21187
21188 \end_layout
21189
21190 \begin_layout Section
21191
21192 \change_deleted 564990737 1669742044
21193 A&A Paper
21194 \end_layout
21195
21196 \begin_layout Standard
21197
21198 \change_deleted 564990737 1669742044
21199 by 
21200 \noun on
21201 Peter Sütterlin
21202 \end_layout
21203
21204 \begin_layout Subsection
21205
21206 \change_deleted 564990737 1669742044
21207 Introduction
21208 \end_layout
21209
21210 \begin_layout Standard
21211
21212 \change_deleted 564990737 1669742044
21213 This section describes how \SpecialChar LyX
21214  can be used to write articles for submission
21215  to the scientific journal 
21216 \emph on
21217 Astronomy and Astrophysics
21218 \emph default
21219  (
21220 \begin_inset Flex URL
21221 status collapsed
21222
21223 \begin_layout Plain Layout
21224
21225 https://www.aanda.org/
21226 \end_layout
21227
21228 \end_inset
21229
21230 ) using Version 5.01 of the document class 
21231 \family typewriter
21232 aa.cls
21233 \family default
21234 .
21235  This package can be downloaded from the ftp site
21236 \end_layout
21237
21238 \begin_layout Standard
21239
21240 \change_deleted 564990737 1669742044
21241 \begin_inset VSpace medskip
21242 \end_inset
21243
21244
21245 \end_layout
21246
21247 \begin_layout Standard
21248 \align center
21249
21250 \change_deleted 564990737 1669742044
21251 \begin_inset Flex URL
21252 status collapsed
21253
21254 \begin_layout Plain Layout
21255
21256 ftp://ftp.edpsciences.org/pub/aa/readme.html
21257 \end_layout
21258
21259 \end_inset
21260
21261
21262 \end_layout
21263
21264 \begin_layout Standard
21265
21266 \change_deleted 564990737 1669742044
21267 \begin_inset VSpace medskip
21268 \end_inset
21269
21270
21271 \end_layout
21272
21273 \begin_layout Standard
21274
21275 \change_deleted 564990737 1669742044
21276 A manual comes together with that package, and this text is not meant to
21277  replace the original manual but is merely a short guide in how to realize
21278  the correct form of your paper.
21279  
21280 \end_layout
21281
21282 \begin_layout Standard
21283
21284 \change_deleted 564990737 1669742044
21285 Please note that the publisher of the journal was changed from Springer
21286  to EDP Sciences starting January 1, 2001.
21287  That change involved also some slight changes to the style files, namely
21288  the removal of the thesaurus command.
21289  The \SpecialChar LyX
21290  class aa supports the newest version of these style files, V 5.01.
21291  If you have an older version installed, please upgrade.
21292  For compatibility, the old (version 4) layout has been kept as 
21293 \family sans
21294 article (A&A V4)
21295 \family default
21296 .
21297  Please refer to the comments in 
21298 \family typewriter
21299 \SpecialChar LyX
21300 Dir/layouts/aapaper.layout
21301 \family default
21302 .
21303 \end_layout
21304
21305 \begin_layout Subsection
21306
21307 \change_deleted 564990737 1669742044
21308 Getting started
21309 \end_layout
21310
21311 \begin_layout Standard
21312
21313 \change_deleted 564990737 1669742044
21314 It is recommended you start from the example template distributed with \SpecialChar LyX
21315 .
21316  If you are not using a template, note the following settings:
21317 \end_layout
21318
21319 \begin_layout Itemize
21320
21321 \change_deleted 564990737 1669742044
21322 Select 
21323 \family sans
21324 article (A&A)
21325 \family default
21326  in the 
21327 \family sans
21328 Document\SpecialChar menuseparator
21329 Settings
21330 \family default
21331  dialog (OK, that one was obvious).
21332 \end_layout
21333
21334 \begin_layout Itemize
21335
21336 \change_deleted 564990737 1669742044
21337 Don't change the option 
21338 \family sans
21339 Page
21340 \begin_inset space ~
21341 \end_inset
21342
21343 style
21344 \family default
21345 : Leave it set to 
21346 \family sans
21347 default
21348 \family default
21349 .
21350  The whole layout is done by the macros, you shouldn't change anything.
21351 \end_layout
21352
21353 \begin_layout Subsection
21354
21355 \change_deleted 564990737 1669742044
21356 The header block
21357 \end_layout
21358
21359 \begin_layout Standard
21360
21361 \change_deleted 564990737 1669742044
21362 First thing to enter is the header information.
21363  It consists of seven entries, of which some are optional.
21364  They are
21365 \end_layout
21366
21367 \begin_layout Itemize
21368
21369 \change_deleted 564990737 1669742044
21370
21371 \family sans
21372 Title
21373 \family default
21374 : [required] 
21375 \end_layout
21376
21377 \begin_layout Itemize
21378
21379 \change_deleted 564990737 1669742044
21380
21381 \family sans
21382 Subtitle
21383 \family default
21384 : [optional] 
21385 \end_layout
21386
21387 \begin_layout Itemize
21388
21389 \change_deleted 564990737 1669742044
21390
21391 \family sans
21392 Author
21393 \family default
21394 : [required]
21395 \end_layout
21396
21397 \begin_layout Itemize
21398
21399 \change_deleted 564990737 1669742044
21400
21401 \family sans
21402 Address
21403 \family default
21404 : [required]
21405 \end_layout
21406
21407 \begin_layout Itemize
21408
21409 \change_deleted 564990737 1669742044
21410
21411 \family sans
21412 Offprints
21413 \family default
21414 : [optional] if more than one author: whom to contact for offprint requests.
21415 \end_layout
21416
21417 \begin_layout Itemize
21418
21419 \change_deleted 564990737 1669742044
21420
21421 \family sans
21422 Mail
21423 \family default
21424 : [optional] mail address for contacts.
21425 \end_layout
21426
21427 \begin_layout Itemize
21428
21429 \change_deleted 564990737 1669742044
21430
21431 \family sans
21432 Date
21433 \family default
21434 : [required].
21435  Suggested format is 
21436 \family typewriter
21437 Received: <date>; Accepted <date> 
21438 \end_layout
21439
21440 \begin_layout Standard
21441
21442 \change_deleted 564990737 1669742044
21443 There is no need to issue the 
21444 \family typewriter
21445
21446 \backslash
21447 maketitle
21448 \family default
21449  command, this is done automatically by \SpecialChar LyX
21450  when the header is finished.
21451  Although the order of the single header entries doesn't matter it is advised
21452  to keep the above sequence, just to get the best optics and meets the layout
21453  of the real document.
21454 \end_layout
21455
21456 \begin_layout Standard
21457
21458 \change_deleted 564990737 1669742044
21459 If you want to place footnotes in the header block, e.
21460 \begin_inset space \thinspace{}
21461 \end_inset
21462
21463 g.
21464 \begin_inset space \space{}
21465 \end_inset
21466
21467 to state your present address, just use the standard footnote via the menu
21468  
21469 \family sans
21470 Insert\SpecialChar menuseparator
21471 Footnote.
21472
21473 \family default
21474  \SpecialChar LyX
21475  will automagically use the term 
21476 \family typewriter
21477
21478 \backslash
21479 thanks{}
21480 \family default
21481  in that case.
21482 \end_layout
21483
21484 \begin_layout Standard
21485
21486 \change_deleted 564990737 1669742044
21487 Under 
21488 \family sans
21489 Edit\SpecialChar menuseparator
21490 Text Style
21491 \family default
21492 , you'll find two insets which are relevant for the titling:
21493 \end_layout
21494
21495 \begin_layout Itemize
21496
21497 \change_deleted 564990737 1669742044
21498
21499 \family sans
21500 Institute
21501 \family typewriter
21502  
21503 \family default
21504 to mark corresponding author\SpecialChar breakableslash
21505 institute pairs.
21506  The institutes are numbered sequentially as they appear in the 
21507 \family sans
21508 Address
21509 \family default
21510  field, so you have to put a marker to each author.
21511 \end_layout
21512
21513 \begin_layout Itemize
21514
21515 \change_deleted 564990737 1669742044
21516
21517 \family sans
21518 Email
21519 \family default
21520  to supply an email address for fast contact.
21521 \end_layout
21522
21523 \begin_layout Standard
21524
21525 \change_deleted 564990737 1669742044
21526 In addition to these topics, the macros use one additional \SpecialChar LaTeX
21527  command that
21528  has no counterpart in \SpecialChar LyX
21529 :
21530 \end_layout
21531
21532 \begin_layout Itemize
21533
21534 \change_deleted 564990737 1669742044
21535
21536 \family typewriter
21537
21538 \backslash
21539 and
21540 \family default
21541  to separate different names for more than one author and institute, respectivel
21542 y.
21543 \end_layout
21544
21545 \begin_layout Standard
21546
21547 \change_deleted 564990737 1669742044
21548 The appropriate command has to be entered in \SpecialChar LyX
21549  and marked as \SpecialChar LaTeX
21550  code.
21551  See the examples.
21552  
21553 \end_layout
21554
21555 \begin_layout Subsection
21556
21557 \change_deleted 564990737 1669742044
21558 The abstract
21559 \end_layout
21560
21561 \begin_layout Standard
21562
21563 \change_deleted 564990737 1669742044
21564 The abstract should immediately follow the header block.
21565  With version 5 the abstract environment was changed to a command, and there
21566  is now a restriction to only one paragraph.
21567  In addition, it should contain an entry with the keywords.
21568  This is done via the paragraph style 
21569 \family sans
21570 Keywords
21571 \family default
21572 .
21573  Refer to the example paper.
21574 \end_layout
21575
21576 \begin_layout Subsection
21577
21578 \change_deleted 564990737 1669742044
21579 Supported environments
21580 \end_layout
21581
21582 \begin_layout Standard
21583
21584 \change_deleted 564990737 1669742044
21585 The A&A paper layout supports the following environments for structuring
21586  your text:
21587 \end_layout
21588
21589 \begin_layout Itemize
21590
21591 \change_deleted 564990737 1669742044
21592
21593 \family sans
21594 Standard
21595 \end_layout
21596
21597 \begin_layout Itemize
21598
21599 \change_deleted 564990737 1669742044
21600
21601 \family sans
21602 Section
21603 \end_layout
21604
21605 \begin_layout Itemize
21606
21607 \change_deleted 564990737 1669742044
21608
21609 \family sans
21610 Subsection
21611 \end_layout
21612
21613 \begin_layout Itemize
21614
21615 \change_deleted 564990737 1669742044
21616
21617 \family sans
21618 Subsubsection
21619 \end_layout
21620
21621 \begin_layout Itemize
21622
21623 \change_deleted 564990737 1669742044
21624
21625 \family sans
21626 Itemize
21627 \end_layout
21628
21629 \begin_layout Itemize
21630
21631 \change_deleted 564990737 1669742044
21632
21633 \family sans
21634 Enumerate
21635 \end_layout
21636
21637 \begin_layout Itemize
21638
21639 \change_deleted 564990737 1669742044
21640
21641 \family sans
21642 Description
21643 \end_layout
21644
21645 \begin_layout Itemize
21646
21647 \change_deleted 564990737 1669742044
21648
21649 \family sans
21650 Caption
21651 \end_layout
21652
21653 \begin_layout Itemize
21654
21655 \change_deleted 564990737 1669742044
21656
21657 \family sans
21658 Abstract
21659 \end_layout
21660
21661 \begin_layout Itemize
21662
21663 \change_deleted 564990737 1669742044
21664
21665 \family sans
21666 Acknowledgment
21667 \end_layout
21668
21669 \begin_layout Itemize
21670
21671 \change_deleted 564990737 1669742044
21672
21673 \family sans
21674 Bibliography
21675 \end_layout
21676
21677 \begin_layout Itemize
21678
21679 \change_deleted 564990737 1669742044
21680
21681 \family sans
21682 \SpecialChar LaTeX
21683
21684 \end_layout
21685
21686 \begin_layout Subsection
21687
21688 \change_deleted 564990737 1669742044
21689 Commands not supported by \SpecialChar LyX
21690
21691 \end_layout
21692
21693 \begin_layout Standard
21694
21695 \change_deleted 564990737 1669742044
21696 Some commands are not yet supported by the 
21697 \family sans
21698 paper (A&A)
21699 \family default
21700  layout for \SpecialChar LyX
21701 .
21702  Some have already been mentioned.
21703  For the sake of completeness, they are listed all together here:
21704 \end_layout
21705
21706 \begin_layout Itemize
21707
21708 \change_deleted 564990737 1669742044
21709
21710 \family typewriter
21711
21712 \backslash
21713 and
21714 \end_layout
21715
21716 \begin_layout Itemize
21717
21718 \change_deleted 564990737 1669742044
21719
21720 \family typewriter
21721
21722 \backslash
21723 authorrunning
21724 \end_layout
21725
21726 \begin_layout Itemize
21727
21728 \change_deleted 564990737 1669742044
21729
21730 \family typewriter
21731
21732 \backslash
21733 object{}
21734 \end_layout
21735
21736 \begin_layout Itemize
21737
21738 \change_deleted 564990737 1669742044
21739
21740 \family typewriter
21741
21742 \backslash
21743 titlerunning{}
21744 \end_layout
21745
21746 \begin_layout Standard
21747
21748 \change_deleted 564990737 1669742044
21749 If you want to use any of these commands, you have to enter them yourself.
21750  
21751 \series bold
21752 Do not forget to mark them as \SpecialChar LaTeX
21753  code!
21754 \end_layout
21755
21756 \begin_layout Subsection
21757
21758 \change_deleted 564990737 1669742044
21759 Figure and Table Floats
21760 \end_layout
21761
21762 \begin_layout Standard
21763
21764 \change_deleted 564990737 1669742044
21765 \SpecialChar LyX
21766  provides support for the necessary float environments 
21767 \family sans
21768 figure, figure*, table
21769 \family default
21770  and 
21771 \family sans
21772 table*
21773 \family default
21774 , therefore we won't tell much about it here.
21775  Refer to the 
21776 \emph on
21777 User's
21778 \begin_inset space ~
21779 \end_inset
21780
21781 Guide
21782 \emph default
21783 .
21784  Just remember that tables should be left-aligned.
21785  For that, select the table and change the alignment in 
21786 \family sans
21787 Edit\SpecialChar menuseparator
21788 Paragraph
21789 \begin_inset space ~
21790 \end_inset
21791
21792 Settings.
21793 \end_layout
21794
21795 \begin_layout Standard
21796
21797 \change_deleted 564990737 1669742044
21798 There is only one special thing: the figures with caption besides the figure.
21799  To create such a figure, you have to do the following:
21800 \end_layout
21801
21802 \begin_layout Enumerate
21803
21804 \change_deleted 564990737 1669742044
21805 Create a wide figure float: 
21806 \family sans
21807 Insert\SpecialChar menuseparator
21808 Float\SpecialChar menuseparator
21809 Figure
21810 \family default
21811 , then right click in the figure and select 
21812 \family sans
21813 Span
21814 \begin_inset space ~
21815 \end_inset
21816
21817 columns
21818 \family default
21819 .
21820 \end_layout
21821
21822 \begin_layout Enumerate
21823
21824 \change_deleted 564990737 1669742044
21825 Enter your caption text.
21826 \end_layout
21827
21828 \begin_layout Enumerate
21829
21830 \change_deleted 564990737 1669742044
21831 Press 
21832 \family sans
21833 Return
21834 \family default
21835  to move the cursor above the caption.
21836 \end_layout
21837
21838 \begin_layout Enumerate
21839
21840 \change_deleted 564990737 1669742044
21841 Insert your figure
21842 \end_layout
21843
21844 \begin_layout Enumerate
21845
21846 \change_deleted 564990737 1669742044
21847 Position the cursor behind the figure and insert a horizontal fill: 
21848 \family sans
21849 Insert\SpecialChar menuseparator
21850 Special
21851 \begin_inset space ~
21852 \end_inset
21853
21854 Character\SpecialChar menuseparator
21855 Horizontal
21856 \begin_inset space ~
21857 \end_inset
21858
21859 Fill
21860 \family default
21861 .
21862 \end_layout
21863
21864 \begin_layout Enumerate
21865
21866 \change_deleted 564990737 1669742044
21867 Switch to \SpecialChar LaTeX
21868  mode: 
21869 \family sans
21870 M-c
21871 \begin_inset space ~
21872 \end_inset
21873
21874 t
21875 \family default
21876 .
21877 \end_layout
21878
21879 \begin_layout Enumerate
21880
21881 \change_deleted 564990737 1669742044
21882 Enter 
21883 \family typewriter
21884
21885 \backslash
21886 parbox[b]{55mm}{
21887 \family default
21888 .
21889  
21890 \series bold
21891 Do not close the brace!
21892 \end_layout
21893
21894 \begin_layout Enumerate
21895
21896 \change_deleted 564990737 1669742044
21897 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
21898  mode and insert
21899  the closing brace: 
21900 \family sans
21901 M-c
21902 \begin_inset space ~
21903 \end_inset
21904
21905 t
21906 \family default
21907  
21908 \family typewriter
21909 }
21910 \family default
21911 .
21912 \end_layout
21913
21914 \begin_layout Standard
21915
21916 \change_deleted 564990737 1669742044
21917 Also, refer to the figures in the example paper.
21918 \end_layout
21919
21920 \begin_layout Subsection
21921
21922 \change_deleted 564990737 1669742044
21923 Referee layout
21924 \end_layout
21925
21926 \begin_layout Standard
21927
21928 \change_deleted 564990737 1669742044
21929 For submission, the paper has to be formated in a special double-spacing
21930  layout.
21931  For this purpose, you have to give the option 
21932 \family typewriter
21933 referee
21934 \family default
21935  to the document class.
21936  This must be done using the custom class options field in the 
21937 \family sans
21938 Document\SpecialChar menuseparator
21939 Settings
21940 \family default
21941  dialog.
21942  Just enter the string 
21943 \family typewriter
21944 referee
21945 \family default
21946  there.
21947 \end_layout
21948
21949 \begin_layout Subsection
21950
21951 \change_deleted 564990737 1669742044
21952 The example paper
21953 \end_layout
21954
21955 \begin_layout Standard
21956
21957 \change_deleted 564990737 1669742044
21958 The 
21959 \family sans
21960 Examples
21961 \family default
21962  directory contains an example paper written with \SpecialChar LyX
21963 .
21964  It is the example paper from the original macro package, translated to
21965  \SpecialChar LyX
21966 .
21967  Use it for inspiration, and compare the original \SpecialChar LaTeX
21968  code with \SpecialChar LyX
21969  way of writing.
21970 \end_layout
21971
21972 \begin_layout Section
21973
21974 \change_deleted 564990737 1671097429
21975 Dinbrief
21976 \end_layout
21977
21978 \begin_layout Standard
21979
21980 \change_deleted 564990737 1671097429
21981 The document class 
21982 \family sans
21983 dinbrief
21984 \family default
21985  can be used to type letters according to German conventions.
21986  A template file is included in 
21987 \family typewriter
21988 .../lyx/share/templates
21989 \family default
21990  for you to use as a starting point.
21991 \end_layout
21992
21993 \begin_layout Section
21994
21995 \change_deleted 564990737 1671097429
21996 Elsevier Journals
21997 \end_layout
21998
21999 \begin_layout Standard
22000
22001 \change_deleted 564990737 1671097429
22002 See the \SpecialChar LyX
22003  template file 
22004 \family typewriter
22005 elsarticle.lyx
22006 \family default
22007 .
22008  It contains all infos you need.
22009 \end_layout
22010
22011 \begin_layout Section
22012
22013 \change_deleted 564990737 1669755802
22014 ijmpc and ijmpd
22015 \end_layout
22016
22017 \begin_layout Standard
22018
22019 \change_deleted 564990737 1669755802
22020 by 
22021 \noun on
22022 Panayotis Papasotiriou
22023 \end_layout
22024
22025 \begin_layout Subsection
22026
22027 \change_deleted 564990737 1669755802
22028 Overview
22029 \end_layout
22030
22031 \begin_layout Standard
22032
22033 \change_deleted 564990737 1669755802
22034 The ijmpc package is a set of macros that facilitates electronic manuscript
22035  submission to the 
22036 \emph on
22037 International Journal of Modern Physics C
22038 \emph default
22039 .
22040  Similarly, the ijmpd package is for creating manuscripts to be submitted
22041  to the 
22042 \emph on
22043 International Journal of Modern Physics D
22044 \emph default
22045 .
22046  Both journals are published by World Scientific.
22047  The corresponding document classes are named 
22048 \family typewriter
22049 ws-ijmpc.cls
22050 \family default
22051  and 
22052 \family typewriter
22053 ws-ijmpd.cls
22054 \family default
22055 , respectively.
22056  These files, together with instructions for the authors, can be downloaded
22057  from the sites 
22058 \begin_inset Flex URL
22059 status collapsed
22060
22061 \begin_layout Plain Layout
22062
22063 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
22064 \end_layout
22065
22066 \end_inset
22067
22068  and 
22069 \begin_inset Flex URL
22070 status collapsed
22071
22072 \begin_layout Plain Layout
22073
22074 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
22075 \end_layout
22076
22077 \end_inset
22078
22079 .
22080  Both packages are modified versions of the standard 
22081 \begin_inset Quotes eld
22082 \end_inset
22083
22084 article
22085 \begin_inset Quotes erd
22086 \end_inset
22087
22088  package, and they are almost (but not exactly) identical.
22089  Most of their features are supported by \SpecialChar LyX
22090 .
22091  I have used \SpecialChar LyX
22092  successfully to write articles submitted to both journals
22093  without any problem.
22094 \end_layout
22095
22096 \begin_layout Subsection
22097
22098 \change_deleted 564990737 1669755802
22099 Writing a paper
22100 \end_layout
22101
22102 \begin_layout Standard
22103
22104 \change_deleted 564990737 1669755802
22105 As usual, the easiest way to write a paper is to start with a template.
22106  Click on 
22107 \family sans
22108 File\SpecialChar menuseparator
22109 New from
22110 \family default
22111  
22112 \family sans
22113 Template
22114 \family default
22115 , then choose the 
22116 \family typewriter
22117 ijmpc.lyx
22118 \family default
22119  or 
22120 \family typewriter
22121 ijmpd.lyx
22122 \family default
22123  template.
22124  This will give an (almost) empty document that includes the most common
22125  fields found in a manuscript.
22126  Simply overwrite the existing text (including the brackets, 
22127 \family typewriter
22128 <>
22129 \family default
22130 ) with your text.
22131  You should keep in mind the following remarks.
22132 \end_layout
22133
22134 \begin_layout Enumerate
22135
22136 \change_deleted 564990737 1669755802
22137 \SpecialChar LyX
22138  won't let you change the font size and the page style of the document,
22139  because such modifications are not allowed by both packages.
22140 \end_layout
22141
22142 \begin_layout Enumerate
22143
22144 \change_deleted 564990737 1669755802
22145 The language of the document should not be changed.
22146  Before previewing your paper, be sure that the babel package is not used.
22147  To do this, click on 
22148 \begin_inset Info
22149 type  "menu"
22150 arg   "dialog-show document"
22151 \end_inset
22152
22153  
22154 \family sans
22155 \SpecialChar menuseparator
22156 Language
22157 \family default
22158 , and select 
22159 \begin_inset Quotes eld
22160 \end_inset
22161
22162 None
22163 \begin_inset Quotes erd
22164 \end_inset
22165
22166  as 
22167 \family sans
22168 Language Package
22169 \family default
22170 .
22171 \end_layout
22172
22173 \begin_layout Enumerate
22174
22175 \change_deleted 564990737 1669755802
22176 The 
22177 \begin_inset Quotes eld
22178 \end_inset
22179
22180 Keywords
22181 \begin_inset Quotes erd
22182 \end_inset
22183
22184  style must be used to define keywords.
22185 \end_layout
22186
22187 \begin_layout Enumerate
22188
22189 \change_deleted 564990737 1669755802
22190 The ijmpc package provides a style named 
22191 \begin_inset Quotes eld
22192 \end_inset
22193
22194 Classification Codes
22195 \begin_inset Quotes erd
22196 \end_inset
22197
22198 , which can be used to define classification codes, such as PACS numbers.
22199  Note that this facility is not supported by the ijmpd package.
22200 \end_layout
22201
22202 \begin_layout Enumerate
22203
22204 \change_deleted 564990737 1669755802
22205 Several new environments are available: 
22206 \begin_inset Quotes eld
22207 \end_inset
22208
22209 Definition
22210 \begin_inset Quotes erd
22211 \end_inset
22212
22213
22214 \begin_inset Quotes eld
22215 \end_inset
22216
22217 Step
22218 \begin_inset Quotes erd
22219 \end_inset
22220
22221
22222 \begin_inset Quotes eld
22223 \end_inset
22224
22225 Example
22226 \begin_inset Quotes erd
22227 \end_inset
22228
22229
22230 \begin_inset Quotes eld
22231 \end_inset
22232
22233 Remark
22234 \begin_inset Quotes erd
22235 \end_inset
22236
22237
22238 \begin_inset Quotes eld
22239 \end_inset
22240
22241 Notation
22242 \begin_inset Quotes erd
22243 \end_inset
22244
22245
22246 \begin_inset Quotes eld
22247 \end_inset
22248
22249 Theorem
22250 \begin_inset Quotes erd
22251 \end_inset
22252
22253
22254 \begin_inset Quotes eld
22255 \end_inset
22256
22257 Proof
22258 \begin_inset Quotes erd
22259 \end_inset
22260
22261
22262 \begin_inset Quotes eld
22263 \end_inset
22264
22265 Corollary
22266 \begin_inset Quotes erd
22267 \end_inset
22268
22269
22270 \begin_inset Quotes eld
22271 \end_inset
22272
22273 Lemma
22274 \begin_inset Quotes erd
22275 \end_inset
22276
22277
22278 \begin_inset Quotes eld
22279 \end_inset
22280
22281 Proposition
22282 \begin_inset Quotes erd
22283 \end_inset
22284
22285
22286 \begin_inset Quotes eld
22287 \end_inset
22288
22289 Prop
22290 \begin_inset Quotes erd
22291 \end_inset
22292
22293
22294 \begin_inset Quotes eld
22295 \end_inset
22296
22297 Question
22298 \begin_inset Quotes erd
22299 \end_inset
22300
22301
22302 \begin_inset Quotes eld
22303 \end_inset
22304
22305 Claim
22306 \begin_inset Quotes erd
22307 \end_inset
22308
22309 , and 
22310 \begin_inset Quotes eld
22311 \end_inset
22312
22313 Conjecture
22314 \begin_inset Quotes erd
22315 \end_inset
22316
22317 .
22318  Their use is more or less obvious.
22319  \SpecialChar LyX
22320  supports all these environments; it will use the proper label, text style,
22321  and numbering scheme for each of them.
22322 \end_layout
22323
22324 \begin_layout Enumerate
22325
22326 \change_deleted 564990737 1669755802
22327 Both packages use basic citations; the natbib package should not be used.
22328  In \SpecialChar LyX
22329 , citation references are shown as usual; in the output, citations are
22330  shown as superscripts.
22331  If you want to use a citation as normal text, you should use the 
22332 \family typewriter
22333 refcite
22334 \family default
22335  command, e.
22336 \begin_inset space \thinspace{}
22337 \end_inset
22338
22339 g.
22340 \begin_inset space \space{}
22341 \end_inset
22342
22343
22344 \begin_inset Quotes eld
22345 \end_inset
22346
22347 See Ref.
22348 \begin_inset space \space{}
22349 \end_inset
22350
22351
22352 \family typewriter
22353
22354 \backslash
22355 refcite{key}
22356 \family default
22357
22358 \begin_inset Quotes erd
22359 \end_inset
22360
22361 .
22362 \end_layout
22363
22364 \begin_layout Enumerate
22365
22366 \change_deleted 564990737 1669755802
22367 There is no 
22368 \begin_inset Quotes eld
22369 \end_inset
22370
22371 Acknowledgments
22372 \begin_inset Quotes erd
22373 \end_inset
22374
22375  section in both packages.
22376  To put acknowledgments, just use the 
22377 \begin_inset Quotes eld
22378 \end_inset
22379
22380 Section*
22381 \begin_inset Quotes erd
22382 \end_inset
22383
22384  environment.
22385 \end_layout
22386
22387 \begin_layout Enumerate
22388
22389 \change_deleted 564990737 1669755802
22390 Appendices may be added to the paper, 
22391 \emph on
22392 after
22393 \emph default
22394  the Acknowledgments and 
22395 \shape italic
22396 before
22397 \shape default
22398  the References.
22399  \SpecialChar LyX
22400  provides a special environment, called 
22401 \begin_inset Quotes eld
22402 \end_inset
22403
22404 Appendices Section
22405 \begin_inset Quotes erd
22406 \end_inset
22407
22408  which marks the beginning of the appendices.
22409  This environment should be left blank; it just sends a \SpecialChar LaTeX
22410  command, but nothing
22411  is really printed.
22412  In \SpecialChar LyX
22413 , the word 
22414 \begin_inset Quotes eld
22415 \end_inset
22416
22417 Appendix
22418 \begin_inset Quotes erd
22419 \end_inset
22420
22421  is printed with blue letters, as a signal that all sections after that
22422  point are appendices.
22423  To write an appendix, use the 
22424 \begin_inset Quotes eld
22425 \end_inset
22426
22427 Appendix
22428 \begin_inset Quotes erd
22429 \end_inset
22430
22431  environment.
22432  \SpecialChar LyX
22433  will number each appendix with capital letters, as required by both journals.
22434  Note that 
22435 \begin_inset Quotes eld
22436 \end_inset
22437
22438 Appendices Section
22439 \begin_inset Quotes erd
22440 \end_inset
22441
22442  
22443 \emph on
22444 must
22445 \emph default
22446  be present before the first appendix; if not, all appendices will be numbered
22447  as normal sections in the output.
22448 \end_layout
22449
22450 \begin_layout Enumerate
22451
22452 \change_deleted 564990737 1669755802
22453 The ijmpc and the ijmpd packages use the 
22454 \family typewriter
22455 tbl
22456 \family default
22457  command to implement table captions.
22458  As a result, a table created by \SpecialChar LyX
22459  is printed correctly, but its caption
22460  is ignored.
22461  However, you can use some \SpecialChar TeX
22462  code to overcome this problem, so that captions
22463  are printed as expected.
22464  To do so, create a float table as usual, remove the caption, and replace
22465  it with the \SpecialChar TeX
22466  code 
22467 \family typewriter
22468
22469 \backslash
22470 tbl{
22471 \emph on
22472 your table caption
22473 \emph default
22474 }{
22475 \family default
22476  (sic); you must also the \SpecialChar TeX
22477  code 
22478 \family typewriter
22479 }
22480 \family default
22481  immediately after the tabular material.
22482  Study the example table included in the template files to see how this
22483  trick is implemented.
22484  Alternatively, If you need table captions, you should implement the whole
22485  table float in a 
22486 \family typewriter
22487 .tex
22488 \family default
22489  file, then include this file to the \SpecialChar LyX
22490  document (
22491 \family sans
22492 Insert\SpecialChar menuseparator
22493 File\SpecialChar menuseparator
22494 Child
22495 \begin_inset space ~
22496 \end_inset
22497
22498 Document
22499 \family default
22500 ).
22501  Details on how to create a table float can be found in the files 
22502 \family typewriter
22503 ws-ijmpc.tex
22504 \family default
22505  and 
22506 \family typewriter
22507 ws-ijmpd.tex
22508 \family default
22509 , included in the corresponding packages.
22510 \end_layout
22511
22512 \begin_layout Subsection
22513
22514 \change_deleted 564990737 1669755802
22515 Preparing a paper for submission
22516 \end_layout
22517
22518 \begin_layout Standard
22519
22520 \change_deleted 564990737 1669755802
22521 Before you submit your paper you must export the \SpecialChar LyX
22522  document as a \SpecialChar LaTeX
22523  file (
22524 \family sans
22525 File\SpecialChar menuseparator
22526 Export\SpecialChar menuseparator
22527 \SpecialChar LaTeX
22528
22529 \family default
22530 )
22531 \begin_inset Foot
22532 status open
22533
22534 \begin_layout Plain Layout
22535 Actually you have the choice between \SpecialChar LaTeX
22536  (plain) and pdflatex.
22537  If you intend to use pdflatex to prepare the paper, you should use the
22538  pdflatex option so that included graphics are converted to PDF format,
22539  ready for use by pdflatex.
22540 \end_layout
22541
22542 \end_inset
22543
22544 , then make the following changes to the resulting 
22545 \family typewriter
22546 .tex
22547 \family default
22548  file.
22549 \end_layout
22550
22551 \begin_layout Enumerate
22552
22553 \change_deleted 564990737 1669755802
22554 Remove the comment lines before the 
22555 \family typewriter
22556
22557 \backslash
22558 documentclass
22559 \family default
22560  command.
22561 \end_layout
22562
22563 \begin_layout Enumerate
22564
22565 \change_deleted 564990737 1669755802
22566 Remove everything between (and including) the 
22567 \family typewriter
22568
22569 \backslash
22570 makeatletter
22571 \family default
22572  and 
22573 \family typewriter
22574
22575 \backslash
22576 makeatother
22577 \family default
22578  commands, except for any commands you specifically put into the \SpecialChar LaTeX
22579  preamble.
22580 \end_layout
22581
22582 \begin_layout Standard
22583
22584 \change_deleted 564990737 1669755802
22585 The modified 
22586 \family typewriter
22587 .tex
22588 \family default
22589  file should be saved and processed through \SpecialChar LaTeX
22590  as many times as necessary.
22591  You may also want to check the resulting 
22592 \family typewriter
22593 .dvi
22594 \family default
22595  document.
22596 \change_unchanged
22597
22598 \end_layout
22599
22600 \begin_layout Section
22601
22602 \change_deleted 564990737 1669801478
22603 iopart
22604 \end_layout
22605
22606 \begin_layout Standard
22607
22608 \change_deleted 564990737 1669801478
22609 by 
22610 \noun on
22611 Uwe Stöhr
22612 \end_layout
22613
22614 \begin_layout Subsection
22615
22616 \change_deleted 564990737 1669801478
22617 Overview
22618 \end_layout
22619
22620 \begin_layout Standard
22621
22622 \change_deleted 564990737 1669801478
22623 The iopart package provides a document class to create electronic manuscript
22624  submission to the journals published by the Institute of Physics.
22625  Instructions for the authors how to create a paper using the iopart class
22626  can be downloaded together with the iopart package from the site 
22627 \begin_inset Flex URL
22628 status collapsed
22629
22630 \begin_layout Plain Layout
22631
22632 ftp://ftp.iop.org/pub/journals/latex2e
22633 \end_layout
22634
22635 \end_inset
22636
22637 .
22638 \end_layout
22639
22640 \begin_layout Subsection
22641
22642 \change_deleted 564990737 1669801478
22643 Writing a paper
22644 \end_layout
22645
22646 \begin_layout Standard
22647
22648 \change_deleted 564990737 1669801478
22649 The easiest way to write a paper is to start with the template 
22650 \emph on
22651 IOP-article.lyx
22652 \emph default
22653  that is available via 
22654 \family sans
22655 File\SpecialChar menuseparator
22656 New From Template
22657 \family default
22658  The template explains how to use the special text environments.
22659  Here are the most important advices:
22660 \end_layout
22661
22662 \begin_layout Itemize
22663
22664 \change_deleted 564990737 1669801478
22665 To be able to compile your document to a PDF, PS, or DVI, ensure that the
22666  no AMS packages are loaded in 
22667 \family sans
22668 Document\SpecialChar menuseparator
22669 Settings\SpecialChar menuseparator
22670 Math Options
22671 \family default
22672 !
22673 \end_layout
22674
22675 \begin_layout Itemize
22676
22677 \change_deleted 564990737 1669801478
22678
22679 \size normal
22680 The title environment defines the kind of your paper.
22681  So use one of the following environments for the title:
22682 \end_layout
22683
22684 \begin_deeper
22685 \begin_layout Itemize
22686
22687 \change_deleted 564990737 1669801478
22688
22689 \family sans
22690 \size normal
22691 Title
22692 \family default
22693  for a Paper
22694 \end_layout
22695
22696 \begin_layout Itemize
22697
22698 \change_deleted 564990737 1669801478
22699
22700 \family sans
22701 \size normal
22702 Review
22703 \family default
22704  for a Review
22705 \end_layout
22706
22707 \begin_layout Itemize
22708
22709 \change_deleted 564990737 1669801478
22710
22711 \family sans
22712 \size normal
22713 Topical
22714 \family default
22715  for a Topical review
22716 \end_layout
22717
22718 \begin_layout Itemize
22719
22720 \change_deleted 564990737 1669801478
22721
22722 \family sans
22723 \size normal
22724 Comment
22725 \family default
22726  for a Comment
22727 \end_layout
22728
22729 \begin_layout Itemize
22730
22731 \change_deleted 564990737 1669801478
22732
22733 \family sans
22734 \size normal
22735 Note
22736 \family default
22737  for a Note
22738 \end_layout
22739
22740 \begin_layout Itemize
22741
22742 \change_deleted 564990737 1669801478
22743
22744 \family sans
22745 \size normal
22746 Paper
22747 \family default
22748  for a Paper (same as Title)
22749 \end_layout
22750
22751 \begin_layout Itemize
22752
22753 \change_deleted 564990737 1669801478
22754
22755 \family sans
22756 \size normal
22757 Prelim
22758 \family default
22759  for a Preliminary communication
22760 \end_layout
22761
22762 \begin_layout Itemize
22763
22764 \change_deleted 564990737 1669801478
22765
22766 \family sans
22767 \size normal
22768 Rapid
22769 \family default
22770  for a Rapid communication
22771 \end_layout
22772
22773 \begin_layout Itemize
22774
22775 \change_deleted 564990737 1669801478
22776
22777 \family sans
22778 \size normal
22779 Letter
22780 \family default
22781  for a Letter to the editor
22782 \end_layout
22783
22784 \end_deeper
22785 \begin_layout Itemize
22786
22787 \change_deleted 564990737 1669801478
22788
22789 \size normal
22790 All title environments except of 
22791 \family sans
22792 Letter
22793 \family default
22794  can have an optional short title.
22795 \end_layout
22796
22797 \begin_layout Itemize
22798
22799 \change_deleted 564990737 1669801478
22800 There is a general title environment 
22801 \family sans
22802 Article
22803 \family default
22804  which is not directly supported by \SpecialChar LyX
22805 .
22806  This can be used as \SpecialChar TeX
22807  code when your document doesn't fit into one of the
22808  other title types.
22809 \end_layout
22810
22811 \begin_layout Standard
22812
22813 \change_deleted 564990737 1669801478
22814 For more informations like hints for special table and formula formatting,
22815  look at the IOP author guidelines.
22816 \change_unchanged
22817
22818 \end_layout
22819
22820 \begin_layout Section
22821
22822 \change_deleted 564990737 1670317155
22823 Kluwer
22824 \end_layout
22825
22826 \begin_layout Standard
22827
22828 \change_deleted 564990737 1670317155
22829 by 
22830 \noun on
22831 Panayotis Papasotiriou
22832 \end_layout
22833
22834 \begin_layout Subsection
22835
22836 \change_deleted 564990737 1670317155
22837 Overview
22838 \end_layout
22839
22840 \begin_layout Standard
22841
22842 \change_deleted 564990737 1670317155
22843 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
22844  that facilitates electronic manuscript submission to the journals they
22845  publish.
22846  Most known of them (at least in my domain of interest) are 
22847 \emph on
22848 Astrophysics and Space Science
22849 \emph default
22850  and 
22851 \emph on
22852 Solar Physics
22853 \emph default
22854 , but there are many others (see a complete list at 
22855 \begin_inset Flex URL
22856 status collapsed
22857
22858 \begin_layout Plain Layout
22859
22860 http://www.wkap.nl/jrnllist.htm/JRNLHOME
22861 \end_layout
22862
22863 \end_inset
22864
22865 ).
22866  The Kluwer package may be downloaded from the site 
22867 \begin_inset Flex URL
22868 status collapsed
22869
22870 \begin_layout Plain Layout
22871
22872 http://www.wkap.nl/kaphtml.htm/STYLEFILES
22873 \end_layout
22874
22875 \end_inset
22876
22877 .
22878  A complete user guide is contained in that package (but it can also be
22879  downloaded separately).
22880 \end_layout
22881
22882 \begin_layout Standard
22883
22884 \change_deleted 564990737 1670317155
22885 \SpecialChar LyX
22886  supports many features of the package but not everything.
22887  However, the \SpecialChar TeX
22888  code needed is reduced to some 
22889 \begin_inset Quotes eld
22890 \end_inset
22891
22892 peculiar
22893 \begin_inset Quotes erd
22894 \end_inset
22895
22896  commands of the package (see
22897 \begin_inset space ~
22898 \end_inset
22899
22900
22901 \begin_inset CommandInset ref
22902 LatexCommand ref
22903 reference "subsec:kluwer_peculiarities"
22904
22905 \end_inset
22906
22907 ).
22908  I have recently used \SpecialChar LyX
22909  to write an article submitted to the 
22910 \emph on
22911 Astrophysics and Space Science
22912 \emph default
22913  without any problem.
22914 \end_layout
22915
22916 \begin_layout Subsection
22917
22918 \change_deleted 564990737 1670317155
22919 Writing a paper
22920 \end_layout
22921
22922 \begin_layout Standard
22923
22924 \change_deleted 564990737 1670317155
22925 The easiest way to write a paper is to start with the Kluwer template file.
22926  Click on 
22927 \family sans
22928 File\SpecialChar menuseparator
22929 New from
22930 \family default
22931  
22932 \family sans
22933 Template
22934 \family default
22935 , then choose the 
22936 \family typewriter
22937 kluwer.lyx
22938 \family default
22939  template.
22940  This will give an (almost) empty document that includes the most common
22941  fields found in a manuscript and a short description of their use.
22942  As in most templates, simply overwrite the existing text (including the
22943  brackets, 
22944 \family typewriter
22945 <>
22946 \family default
22947 ) with the correct information.
22948 \end_layout
22949
22950 \begin_layout Subsection
22951
22952 \change_deleted 564990737 1670317155
22953 Preparing a paper for submission
22954 \end_layout
22955
22956 \begin_layout Standard
22957
22958 \change_deleted 564990737 1670317155
22959 As in the AAS\SpecialChar TeX
22960  package, before you submit your paper to a journal you must
22961  
22962 \begin_inset Quotes eld
22963 \end_inset
22964
22965 postprocess
22966 \begin_inset Quotes erd
22967 \end_inset
22968
22969  it as follows.
22970 \end_layout
22971
22972 \begin_layout Enumerate
22973
22974 \change_deleted 564990737 1670317155
22975 Export your paper as a \SpecialChar LaTeX
22976  file.
22977  To do this, click on 
22978 \family sans
22979 File\SpecialChar menuseparator
22980 Export\SpecialChar menuseparator
22981 \SpecialChar LaTeX
22982
22983 \family default
22984 .
22985  
22986 \end_layout
22987
22988 \begin_layout Enumerate
22989
22990 \change_deleted 564990737 1670317155
22991 Edit the resulting 
22992 \family typewriter
22993 .tex
22994 \family default
22995  file with a text editor and make the following changes
22996 \end_layout
22997
22998 \begin_deeper
22999 \begin_layout Enumerate
23000
23001 \change_deleted 564990737 1670317155
23002 remove the comment lines before the 
23003 \family typewriter
23004
23005 \backslash
23006 documentclass
23007 \family default
23008  command,
23009 \end_layout
23010
23011 \begin_layout Enumerate
23012
23013 \change_deleted 564990737 1670317155
23014 remove everything between (and including) the 
23015 \family typewriter
23016
23017 \backslash
23018 makeatletter
23019 \family default
23020  and 
23021 \family typewriter
23022
23023 \backslash
23024 makeatother
23025 \family default
23026  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23027  preamble.
23028 \end_layout
23029
23030 \begin_layout Standard
23031
23032 \change_deleted 564990737 1670317155
23033 Save the resulting 
23034 \family typewriter
23035 .tex
23036 \family default
23037  file.
23038 \end_layout
23039
23040 \end_deeper
23041 \begin_layout Enumerate
23042
23043 \change_deleted 564990737 1670317155
23044 Run the 
23045 \family typewriter
23046 .tex
23047 \family default
23048  file through \SpecialChar LaTeX
23049  as many times as necessary (usually up to three).
23050 \end_layout
23051
23052 \begin_layout Enumerate
23053
23054 \change_deleted 564990737 1670317155
23055 View the resulting 
23056 \family typewriter
23057 .dvi
23058 \family default
23059  document using, e.
23060 \begin_inset space \thinspace{}
23061 \end_inset
23062
23063 g.
23064 \begin_inset space \space{}
23065 \end_inset
23066
23067
23068 \family sans
23069 xdvi
23070 \family default
23071 , and check if everything is OK (it should, if you didn't make any mistake).
23072 \end_layout
23073
23074 \begin_layout Subsection
23075
23076 \change_deleted 564990737 1670317155
23077 \begin_inset Quotes eld
23078 \end_inset
23079
23080 Peculiarities
23081 \begin_inset Quotes erd
23082 \end_inset
23083
23084  of the Kluwer package
23085 \begin_inset CommandInset label
23086 LatexCommand label
23087 name "subsec:kluwer_peculiarities"
23088
23089 \end_inset
23090
23091
23092 \end_layout
23093
23094 \begin_layout Standard
23095
23096 \change_deleted 564990737 1670317155
23097 The Kluwer package has the following 
23098 \begin_inset Quotes eld
23099 \end_inset
23100
23101 peculiarities
23102 \begin_inset Quotes erd
23103 \end_inset
23104
23105 .
23106 \end_layout
23107
23108 \begin_layout Enumerate
23109
23110 \change_deleted 564990737 1670317155
23111 It is possible to write multiple articles in the same \SpecialChar LaTeX
23112  file
23113 \begin_inset Foot
23114 status collapsed
23115
23116 \begin_layout Plain Layout
23117 I can't imagine any good reason to do this.
23118 \end_layout
23119
23120 \end_inset
23121
23122 .
23123  Each article must be included in the environment 
23124 \begin_inset Quotes eld
23125 \end_inset
23126
23127 article
23128 \begin_inset Quotes erd
23129 \end_inset
23130
23131 .
23132  Unfortunately, this environment cannot be omitted, even if you write just
23133  one article.
23134  Therefore, each article starts with the command 
23135 \family typewriter
23136
23137 \backslash
23138 begin{article}
23139 \family default
23140  and, obviously, ends with the command 
23141 \family typewriter
23142
23143 \backslash
23144 end{article}
23145 \family default
23146 .
23147  Although this can be implemented in \SpecialChar LyX
23148 , I didn't included it, since it looks
23149  ugly and can confuse the novice user.
23150  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
23151  code (the
23152  well-known 
23153 \begin_inset Quotes eld
23154 \end_inset
23155
23156 \SpecialChar TeX
23157  code
23158 \begin_inset Quotes erd
23159 \end_inset
23160
23161 ).
23162 \end_layout
23163
23164 \begin_layout Enumerate
23165
23166 \change_deleted 564990737 1670317155
23167 Information given at the beginning of the article (i.
23168 \begin_inset space \thinspace{}
23169 \end_inset
23170
23171 e.
23172 \begin_inset space \space{}
23173 \end_inset
23174
23175 title, subtitle, author, institution, running title, running author, abstract
23176  and keywords) must be included in an environment called 
23177 \begin_inset Quotes eld
23178 \end_inset
23179
23180 opening
23181 \begin_inset Quotes erd
23182 \end_inset
23183
23184 .
23185  This is not implemented in \SpecialChar LyX
23186 , so you must enter title, subtitle etc.
23187 \begin_inset space ~
23188 \end_inset
23189
23190 between two \SpecialChar TeX
23191  code lines (
23192 \family typewriter
23193
23194 \backslash
23195 begin{opening}
23196 \family default
23197  and 
23198 \family typewriter
23199
23200 \backslash
23201 end{opening}
23202 \family default
23203 ).
23204 \end_layout
23205
23206 \begin_layout Enumerate
23207
23208 \change_deleted 564990737 1670317155
23209 According to the user manual, the label of each bibliography item must be
23210  written as 
23211 \family typewriter
23212
23213 \backslash
23214 protect
23215 \backslash
23216 citeauthoryear{
23217 \family default
23218 \emph on
23219 author(s)
23220 \family typewriter
23221 \emph default
23222 }{
23223 \family default
23224 \emph on
23225 year
23226 \family typewriter
23227 \emph default
23228 }
23229 \family default
23230 .
23231 \end_layout
23232
23233 \begin_layout Standard
23234
23235 \change_deleted 564990737 1670317155
23236 The 
23237 \family typewriter
23238 kluwer.lyx
23239 \family default
23240  template takes care of all these 
23241 \begin_inset Quotes eld
23242 \end_inset
23243
23244 peculiarities
23245 \begin_inset Quotes erd
23246 \end_inset
23247
23248 .
23249  If you start a new paper using this template you don't need to do anything
23250  special.
23251  Just 
23252 \end_layout
23253
23254 \begin_layout Enumerate
23255
23256 \change_deleted 564990737 1670317155
23257 don't delete the \SpecialChar TeX
23258  code included in the template, and
23259 \end_layout
23260
23261 \begin_layout Enumerate
23262
23263 \change_deleted 564990737 1670317155
23264 copy the example bibliography item included in the template and modify it
23265  as necessary to enter new bibliography items.
23266 \end_layout
23267
23268 \begin_layout Section
23269
23270 \change_deleted 564990737 1671097446
23271 Paper
23272 \end_layout
23273
23274 \begin_layout Standard
23275
23276 \change_deleted 564990737 1671097446
23277 The document class 
23278 \family sans
23279 paper
23280 \family default
23281  provides an alternative to the standard 
23282 \family sans
23283 article
23284 \family default
23285  class.
23286  It provides similar functionality, but you might prefer this layout with
23287  sans serif sections, headings, and more.
23288 \end_layout
23289
23290 \begin_layout Section
23291
23292 \change_deleted 564990737 1671097446
23293 Springer Journals (
23294 \family sans
23295 svjour
23296 \family default
23297 )
23298 \end_layout
23299
23300 \begin_layout Standard
23301
23302 \change_deleted 564990737 1671097446
23303 by 
23304 \noun on
23305 Martin Vermeer
23306 \end_layout
23307
23308 \begin_layout Subsection
23309
23310 \change_deleted 564990737 1671097446
23311 Description
23312 \end_layout
23313
23314 \begin_layout Standard
23315
23316 \change_deleted 564990737 1671097446
23317 These are the layout files for some of the journal formats used by Springer
23318  Verlag and listed on 
23319 \begin_inset Flex URL
23320 status collapsed
23321
23322 \begin_layout Plain Layout
23323
23324 http://www.springer.de/author/tex/help-journals.html
23325 \end_layout
23326
23327 \end_inset
23328
23329 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
23330  now!).
23331  It is a modular system: the things common to all journals are implemented
23332  in 
23333 \family typewriter
23334 svjour.inc
23335 \family default
23336 , which journal-specific layout files (such as, e.
23337 \begin_inset space \thinspace{}
23338 \end_inset
23339
23340 g.
23341 \begin_inset space \space{}
23342 \end_inset
23343
23344
23345 \family typewriter
23346 svjog.layout
23347 \family default
23348  for Journal of Geodesy) can include.
23349 \end_layout
23350
23351 \begin_layout Standard
23352
23353 \change_deleted 564990737 1671097446
23354 This means that implementing support for any other Springer journal on this
23355  list is as simple as writing your own 
23356 \family typewriter
23357 sv
23358 \family default
23359 <myjournal>
23360 \family typewriter
23361 .layout
23362 \family default
23363  file following the outline given in 
23364 \family typewriter
23365 svjog.layout
23366 \family default
23367 .
23368  
23369 \end_layout
23370
23371 \begin_layout Standard
23372
23373 \change_deleted 564990737 1671097446
23374 It is reasonably well tested only for the Journal of Geodesy.
23375  
23376 \family typewriter
23377 svjour
23378 \family default
23379  and 
23380 \family typewriter
23381 svjog
23382 \family default
23383  come with the standard \SpecialChar LyX
23384  distribution.
23385  Install the relevant class file (downloaded from Springer) in a proper
23386  directory, reconfigure \SpecialChar LaTeX
23387  (in the te\SpecialChar TeX
23388  case by running 
23389 \family typewriter
23390 texhash
23391 \family default
23392 , as root if necessary — doesn't \SpecialChar LyX
23393  take care of this?), reconfigure \SpecialChar LyX
23394  and
23395  it should work.
23396 \end_layout
23397
23398 \begin_layout Subsection
23399
23400 \change_deleted 564990737 1671097446
23401 New styles
23402 \end_layout
23403
23404 \begin_layout Standard
23405
23406 \change_deleted 564990737 1671097446
23407 A large number of theorem-like styles — 
23408 \family sans
23409 Claim, Conjecture,
23410 \family default
23411  
23412 \family sans
23413 \SpecialChar ldots
23414 Theorem
23415 \family default
23416 .
23417 \end_layout
23418
23419 \begin_layout Standard
23420
23421 \change_deleted 564990737 1671097446
23422
23423 \family sans
23424 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
23425 _Title, Author_Running, Institute,
23426  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
23427 \family default
23428 .
23429  See the Springer class file documentation for details.
23430 \end_layout
23431
23432 \begin_layout Subsection
23433
23434 \change_deleted 564990737 1671097446
23435 Supported journals
23436 \end_layout
23437
23438 \begin_layout Itemize
23439
23440 \change_deleted 564990737 1671097446
23441
23442 \emph on
23443 Journal of Geodesy
23444 \emph default
23445
23446 \family typewriter
23447 svjog.layout
23448 \family default
23449  — Martin Vermeer
23450 \end_layout
23451
23452 \begin_layout Itemize
23453
23454 \change_deleted 564990737 1671097446
23455
23456 \emph on
23457 Probability Theory and Related Fields
23458 \emph default
23459
23460 \family typewriter
23461 svprobth.layout
23462 \family default
23463  — Jean-Marc Lasgouttes
23464 \end_layout
23465
23466 \begin_layout Standard
23467
23468 \change_deleted 564990737 1671097446
23469 Add your own, it isn't so hard!
23470 \end_layout
23471
23472 \begin_layout Subsection
23473
23474 \change_deleted 564990737 1671097446
23475 Credits
23476 \end_layout
23477
23478 \begin_layout Standard
23479
23480 \change_deleted 564990737 1671097446
23481 These files are partly based on the older 
23482 \family typewriter
23483 ejour2.layout
23484 \family default
23485 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
23486  2.09 style
23487  file from Springer.
23488  All this, and the 
23489 \family typewriter
23490 ejour2
23491 \family default
23492  layout, are now defunct.
23493  Jean-Marc Lasgouttes helped out big in making me find my way around the
23494  \SpecialChar LyX
23495  layout file mechanism.
23496 \end_layout
23497
23498 \begin_layout Subsection
23499
23500 \change_deleted 564990737 1671097446
23501 Bugs
23502 \end_layout
23503
23504 \begin_layout Standard
23505
23506 \change_deleted 564990737 1671097446
23507 Probably.
23508  But probably less than in the old hacked-\SpecialChar LaTeX
23509  
23510 \family typewriter
23511 ejour2
23512 \family default
23513 .
23514 \end_layout
23515
23516 \begin_layout Chapter
23517 \SpecialChar LyX
23518  Features needing Extra Software
23519 \end_layout
23520
23521 \begin_layout Section
23522 Checking \SpecialChar TeX
23523
23524 \end_layout
23525
23526 \begin_layout Standard
23527 by 
23528 \noun on
23529 Asger Alstrup
23530 \end_layout
23531
23532 \begin_layout Subsection
23533 Introduction
23534 \end_layout
23535
23536 \begin_layout Standard
23537 If you have the 
23538 \family typewriter
23539 chktex
23540 \family default
23541  program installed
23542 \begin_inset Foot
23543 status collapsed
23544
23545 \begin_layout Plain Layout
23546
23547 \family typewriter
23548 chktex
23549 \family default
23550  is not yet available when you are using the \SpecialChar LaTeX
23551  distribution MiK\SpecialChar TeX
23552 .
23553 \end_layout
23554
23555 \end_inset
23556
23557 , you'll find in the 
23558 \family sans
23559 Tools
23560 \family default
23561  menu the entry: 
23562 \family sans
23563 Check
23564 \begin_inset space ~
23565 \end_inset
23566
23567 TeX
23568 \family default
23569 .
23570  You can get 
23571 \family typewriter
23572 chktex
23573 \family default
23574  from CTAN,
23575 \begin_inset Newline newline
23576 \end_inset
23577
23578
23579 \begin_inset CommandInset href
23580 LatexCommand href
23581 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
23582 literal "false"
23583
23584 \end_inset
23585
23586 .
23587 \end_layout
23588
23589 \begin_layout Standard
23590 The 
23591 \family sans
23592 Chk\SpecialChar TeX
23593
23594 \family default
23595  package is a program that was written by 
23596 \begin_inset Flex Noun
23597 status collapsed
23598
23599 \begin_layout Plain Layout
23600 Jens T.
23601 \begin_inset space ~
23602 \end_inset
23603
23604 Berger Thielemann
23605 \end_layout
23606
23607 \end_inset
23608
23609  in frustration because some constructs in \SpecialChar LaTeX
23610  are sometimes non-intuitive,
23611  and easy to forget.
23612  The program runs over your \SpecialChar LaTeX
23613  file, checks the integrity of the file, and
23614  flags some common errors.
23615  In other technical words, it is 
23616 \family typewriter
23617 lint
23618 \family default
23619  for \SpecialChar LaTeX
23620 .
23621 \end_layout
23622
23623 \begin_layout Standard
23624 Well, what is a syntax checker doing in \SpecialChar LyX
23625  which is supposed to produce correct
23626  \SpecialChar LaTeX
23627  anyways? The answer is simple: Just as 
23628 \family typewriter
23629 Lint
23630 \family default
23631  not only checks the 
23632 \emph on
23633 syntax
23634 \emph default
23635  of C programs, but also does 
23636 \emph on
23637 semantic
23638 \emph default
23639  checks for type-errors, 
23640 \family sans
23641 Chk\SpecialChar TeX
23642
23643 \family default
23644  catches some common 
23645 \emph on
23646 typographic
23647 \emph default
23648  errors, in addition to the syntactical ones.
23649  Specifically, 
23650 \family sans
23651 Chk\SpecialChar TeX
23652
23653 \family default
23654  is capable of detecting several common errors, such as
23655 \end_layout
23656
23657 \begin_layout Itemize
23658 Ellipsis detection:
23659 \begin_inset Newline newline
23660 \end_inset
23661
23662 Use \SpecialChar ldots
23663  instead of ...
23664 \end_layout
23665
23666 \begin_layout Itemize
23667 No space in front of/after parenthesis:
23668 \begin_inset Newline newline
23669 \end_inset
23670
23671 ( wrong spacing )
23672 \end_layout
23673
23674 \begin_layout Itemize
23675 Enforcement of normal space after common abbreviations:
23676 \begin_inset Newline newline
23677 \end_inset
23678
23679 e.
23680 \begin_inset space \thinspace{}
23681 \end_inset
23682
23683 g.
23684 \begin_inset space \space{}
23685 \end_inset
23686
23687 is too wide spacing.
23688 \end_layout
23689
23690 \begin_layout Itemize
23691 Enforcement of end-of-sentence space when the last sentence ends with a
23692  capital letter:
23693 \begin_inset Newline newline
23694 \end_inset
23695
23696 This is a TEST.
23697  And this is wrong spacing.
23698 \end_layout
23699
23700 \begin_layout Itemize
23701 Space in front of labels and similar commands:
23702 \begin_inset Newline newline
23703 \end_inset
23704
23705 The label should stick right up to the text to avoid falling to a wrong
23706  page.
23707  
23708 \begin_inset CommandInset label
23709 LatexCommand label
23710 name "sec:chktex"
23711
23712 \end_inset
23713
23714  
23715 \begin_inset Foot
23716 status collapsed
23717
23718 \begin_layout Plain Layout
23719 This footnote is in danger of falling off to a wrong page
23720 \end_layout
23721
23722 \end_inset
23723
23724  The label is separated too much.
23725 \end_layout
23726
23727 \begin_layout Itemize
23728 Space in front of references, instead of hard spaces:
23729 \begin_inset Newline newline
23730 \end_inset
23731
23732 If you have bad luck, the text will break right between the referenced text
23733  and reference number, and that's a pity.
23734  See section 
23735 \begin_inset CommandInset ref
23736 LatexCommand ref
23737 reference "sec:chktex"
23738
23739 \end_inset
23740
23741 .
23742 \end_layout
23743
23744 \begin_layout Itemize
23745 Use of 
23746 \begin_inset Quotes eld
23747 \end_inset
23748
23749 x
23750 \begin_inset Quotes erd
23751 \end_inset
23752
23753  instead of 
23754 \begin_inset Formula $\times$
23755 \end_inset
23756
23757  between numbers:
23758 \begin_inset Newline newline
23759 \end_inset
23760
23761 2x2 looks cheap compared to 
23762 \begin_inset Formula $2\times2$
23763 \end_inset
23764
23765 .
23766 \end_layout
23767
23768 \begin_layout Standard
23769 and more \SpecialChar ldots
23770  It is an invaluable tool when you are 
23771 \begin_inset Quotes eld
23772 \end_inset
23773
23774 finishing up
23775 \begin_inset Quotes erd
23776 \end_inset
23777
23778  your document before printing, and you should run it right after the obligatory
23779  spelling check, and before you go fine tuning the typesetting.
23780 \end_layout
23781
23782 \begin_layout Subsection
23783 How to use it
23784 \end_layout
23785
23786 \begin_layout Standard
23787 If you have the program installed, usage is as simple as choosing 
23788 \family sans
23789 Tools\SpecialChar menuseparator
23790 Check
23791 \begin_inset space ~
23792 \end_inset
23793
23794 TeX
23795 \family default
23796 .
23797  This will make \SpecialChar LyX
23798  generate a \SpecialChar LaTeX
23799  file of your document, start 
23800 \family sans
23801 Chk\SpecialChar TeX
23802
23803 \family default
23804  to check it, and then make \SpecialChar LyX
23805  insert 
23806 \begin_inset Quotes eld
23807 \end_inset
23808
23809 error boxes
23810 \begin_inset Quotes erd
23811 \end_inset
23812
23813  with the warnings from 
23814 \family sans
23815 Chk\SpecialChar TeX
23816
23817 \family default
23818 , if there were any.
23819  The warnings will be placed close to the point of the mistake, and you
23820  can quickly find them by using the 
23821 \family sans
23822 Navigate\SpecialChar menuseparator
23823 Error
23824 \family default
23825  menu item, or the shortcut key 
23826 \family sans
23827 C-g
23828 \family default
23829  from the default 
23830 \family typewriter
23831 cua
23832 \family default
23833  bind file.
23834  Open the error boxes by clicking on them with the mouse, or use the shortcut
23835  key 
23836 \family sans
23837 C-i
23838 \family default
23839  from 
23840 \family typewriter
23841 cua
23842 \family default
23843  bindings, or the corresponding 
23844 \family sans
23845 C-o
23846 \family default
23847  for the alternate 
23848 \family typewriter
23849 emacs
23850 \family default
23851  bind file.
23852  Read the warning and correct the mistake, if it is a mistake.
23853  If you have trouble understanding what the warning is about, you can safely
23854  ignore it.
23855  Remember that there is a hidden layer between the document on screen and
23856  the technical details in invoking 
23857 \family sans
23858 Chk\SpecialChar TeX
23859
23860 \family default
23861 , and this gap can make some warnings seem arcane or just plain silly.
23862 \end_layout
23863
23864 \begin_layout Standard
23865 This document is an excellent testing bed for the feature, and it should
23866  provide quite a few warnings for you to fiddle with.
23867  Since computers are only so smart, expect most of the warnings to be false
23868  alarms, though.
23869 \end_layout
23870
23871 \begin_layout Subsection
23872 How to fine tune it
23873 \end_layout
23874
23875 \begin_layout Standard
23876 Sometimes, you'll find that 
23877 \family sans
23878 Chk\SpecialChar TeX
23879
23880 \family default
23881  makes more noise than suits your mood.
23882  Then you can choose not to use it, wait until your mood changes, or try
23883  to customize 
23884 \family sans
23885 Chk\SpecialChar TeX
23886
23887 \family default
23888  to get better along with you.
23889 \end_layout
23890
23891 \begin_layout Standard
23892 Although 
23893 \family sans
23894 Chk\SpecialChar TeX
23895
23896 \family default
23897  
23898 \emph on
23899 is
23900 \emph default
23901  very configurable and extensible, you should not expect to solve all problems
23902  with 
23903 \family sans
23904 Chk\SpecialChar TeX
23905
23906 \family default
23907  in \SpecialChar LyX
23908  this way.
23909  Since \SpecialChar LyX
23910  has to generate a somewhat special \SpecialChar LaTeX
23911  file to be able to match the
23912  line numbers from the 
23913 \family sans
23914 Chk\SpecialChar TeX
23915
23916 \family default
23917  output
23918 \begin_inset Foot
23919 status collapsed
23920
23921 \begin_layout Plain Layout
23922 You can inspect the specific output from 
23923 \family sans
23924 chktex
23925 \family default
23926  by using 
23927 \family sans
23928 Document\SpecialChar menuseparator
23929 \SpecialChar LaTeX
23930
23931 \begin_inset space ~
23932 \end_inset
23933
23934 Log
23935 \family default
23936  right after a 
23937 \family sans
23938 chktex
23939 \family default
23940  run.
23941 \end_layout
23942
23943 \end_inset
23944
23945  to the internal document structure, some of the warnings will not appear
23946  correctly.
23947  There are two things you can do about this:
23948 \end_layout
23949
23950 \begin_layout Itemize
23951 Fine tune the 
23952 \family sans
23953 Chk\SpecialChar TeX
23954
23955 \family default
23956  invocation command line in 
23957 \begin_inset Flex Noun
23958 status collapsed
23959
23960 \begin_layout Plain Layout
23961 Tools\SpecialChar menuseparator
23962 Preferences\SpecialChar menuseparator
23963 Output\SpecialChar menuseparator
23964 LaTeX\SpecialChar menuseparator
23965 CheckTeX command
23966 \end_layout
23967
23968 \end_inset
23969
23970 , or the global 
23971 \family sans
23972 Chk\SpecialChar TeX
23973
23974 \family default
23975  installation configuration file (usually with the file 
23976 \family typewriter
23977 chktexrc
23978 \family default
23979 ).
23980  See below to learn what warnings can be enabled and disabled on the command
23981  line.
23982 \end_layout
23983
23984 \begin_layout Itemize
23985 Export your document as a raw \SpecialChar LaTeX
23986  file using 
23987 \family sans
23988 File\SpecialChar menuseparator
23989 Export\SpecialChar menuseparator
23990 \SpecialChar LaTeX
23991
23992 \family default
23993  and run 
23994 \family typewriter
23995 chktex
23996 \family default
23997  manually on that.
23998  Invoked in this way, it can be a hassle to find the corresponding place
23999  in the document inside \SpecialChar LyX
24000 , but with a little patience, you should be able
24001  to do it.
24002 \end_layout
24003
24004 \begin_layout Standard
24005 Here follows the warning messages that can be enabled and disabled in 
24006 \family sans
24007 Preferences
24008 \family default
24009 .
24010  Use 
24011 \family typewriter
24012 -n#
24013 \family default
24014  to disable a warning, and 
24015 \family typewriter
24016 -w#
24017 \family default
24018  to enable a warning.
24019  The emphasized entries are disabled by default, because the default is
24020  "
24021 \family typewriter
24022 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
24023 \family default
24024 ".
24025 \end_layout
24026
24027 \begin_layout Standard
24028 Notice that you should only use the options that enable and disable warnings,
24029  because \SpecialChar LyX
24030  relies on some of the other command line parameters to be set
24031  in a specific way to have a chance to communicate with 
24032 \family typewriter
24033 chktex
24034 \family default
24035 .
24036 \end_layout
24037
24038 \begin_layout Enumerate
24039
24040 \size small
24041 \emph on
24042 Command terminated with space.
24043 \end_layout
24044
24045 \begin_layout Enumerate
24046
24047 \size small
24048 Non-breaking space (
24049 \begin_inset Quotes eld
24050 \end_inset
24051
24052
24053 \family typewriter
24054 ~
24055 \family default
24056
24057 \begin_inset Quotes erd
24058 \end_inset
24059
24060 ) should have been used.
24061 \end_layout
24062
24063 \begin_layout Enumerate
24064
24065 \size small
24066 \emph on
24067 You should enclose the previous parenthesis with 
24068 \begin_inset Quotes eld
24069 \end_inset
24070
24071
24072 \family typewriter
24073 {}
24074 \family default
24075
24076 \begin_inset Quotes erd
24077 \end_inset
24078
24079 .
24080 \end_layout
24081
24082 \begin_layout Enumerate
24083
24084 \size small
24085 Italic correction (
24086 \begin_inset Quotes eld
24087 \end_inset
24088
24089
24090 \family typewriter
24091
24092 \backslash
24093 /
24094 \family default
24095
24096 \begin_inset Quotes erd
24097 \end_inset
24098
24099 ) found in non-italic buffer.
24100 \end_layout
24101
24102 \begin_layout Enumerate
24103
24104 \size small
24105 Italic correction (
24106 \begin_inset Quotes eld
24107 \end_inset
24108
24109
24110 \family typewriter
24111
24112 \backslash
24113 /
24114 \family default
24115
24116 \begin_inset Quotes erd
24117 \end_inset
24118
24119 ) found more than once.
24120 \end_layout
24121
24122 \begin_layout Enumerate
24123
24124 \size small
24125 \emph on
24126 No italic correction (
24127 \begin_inset Quotes eld
24128 \end_inset
24129
24130
24131 \family typewriter
24132
24133 \backslash
24134 /
24135 \family default
24136
24137 \begin_inset Quotes erd
24138 \end_inset
24139
24140 ) found.
24141 \end_layout
24142
24143 \begin_layout Enumerate
24144
24145 \size small
24146 Accent command 
24147 \begin_inset Quotes eld
24148 \end_inset
24149
24150
24151 \family typewriter
24152 cmd
24153 \family default
24154
24155 \begin_inset Quotes erd
24156 \end_inset
24157
24158  needs use of 
24159 \begin_inset Quotes eld
24160 \end_inset
24161
24162
24163 \family typewriter
24164 cmd
24165 \family default
24166
24167 \begin_inset Quotes erd
24168 \end_inset
24169
24170 .
24171 \end_layout
24172
24173 \begin_layout Enumerate
24174
24175 \size small
24176 Wrong length of dash may have been used.
24177 \end_layout
24178
24179 \begin_layout Enumerate
24180
24181 \size small
24182 \emph on
24183 \begin_inset Quotes eld
24184 \end_inset
24185
24186
24187 \family typewriter
24188 %s
24189 \family default
24190
24191 \begin_inset Quotes erd
24192 \end_inset
24193
24194  expected, found 
24195 \begin_inset Quotes eld
24196 \end_inset
24197
24198
24199 \family typewriter
24200 %s
24201 \family default
24202
24203 \begin_inset Quotes erd
24204 \end_inset
24205
24206 .
24207 \end_layout
24208
24209 \begin_layout Enumerate
24210
24211 \size small
24212 Solo 
24213 \begin_inset Quotes eld
24214 \end_inset
24215
24216
24217 \family typewriter
24218 %s
24219 \family default
24220
24221 \begin_inset Quotes erd
24222 \end_inset
24223
24224  found.
24225 \end_layout
24226
24227 \begin_layout Enumerate
24228
24229 \size small
24230 You should use 
24231 \begin_inset Quotes eld
24232 \end_inset
24233
24234
24235 \family typewriter
24236 %s
24237 \family default
24238
24239 \begin_inset Quotes erd
24240 \end_inset
24241
24242  to achieve an ellipsis.
24243 \end_layout
24244
24245 \begin_layout Enumerate
24246
24247 \size small
24248 Inter-word spacing (
24249 \begin_inset Quotes eld
24250 \end_inset
24251
24252
24253 \family typewriter
24254
24255 \backslash
24256
24257 \family default
24258  
24259 \begin_inset Quotes eld
24260 \end_inset
24261
24262 ) should perhaps be used.
24263 \end_layout
24264
24265 \begin_layout Enumerate
24266
24267 \size small
24268 Inter-sentence spacing (
24269 \begin_inset Quotes eld
24270 \end_inset
24271
24272
24273 \family typewriter
24274
24275 \backslash
24276 @
24277 \family default
24278
24279 \begin_inset Quotes erd
24280 \end_inset
24281
24282 ) should perhaps be used.
24283 \end_layout
24284
24285 \begin_layout Enumerate
24286
24287 \size small
24288 Could not find argument for command.
24289 \end_layout
24290
24291 \begin_layout Enumerate
24292
24293 \size small
24294 No match found for 
24295 \begin_inset Quotes eld
24296 \end_inset
24297
24298
24299 \family typewriter
24300 %s
24301 \family default
24302
24303 \begin_inset Quotes erd
24304 \end_inset
24305
24306 .
24307 \end_layout
24308
24309 \begin_layout Enumerate
24310
24311 \size small
24312 Math mode still on at end of \SpecialChar LaTeX
24313  file.
24314 \end_layout
24315
24316 \begin_layout Enumerate
24317
24318 \size small
24319 Number of 
24320 \begin_inset Quotes eld
24321 \end_inset
24322
24323
24324 \family typewriter
24325 char
24326 \family default
24327
24328 \begin_inset Quotes erd
24329 \end_inset
24330
24331  doesn't match the number of 
24332 \begin_inset Quotes eld
24333 \end_inset
24334
24335
24336 \family typewriter
24337 char
24338 \family default
24339
24340 \begin_inset Quotes erd
24341 \end_inset
24342
24343 .
24344 \end_layout
24345
24346 \begin_layout Enumerate
24347
24348 \size small
24349 You should use either 
24350 \family typewriter
24351
24352 \begin_inset Quotes eld
24353 \end_inset
24354
24355
24356 \family default
24357  or 
24358 \family typewriter
24359
24360 \begin_inset Quotes erd
24361 \end_inset
24362
24363
24364 \family default
24365  as an alternative to 
24366 \begin_inset Quotes eld
24367 \end_inset
24368
24369
24370 \family typewriter
24371 "
24372 \family default
24373
24374 \begin_inset Quotes erd
24375 \end_inset
24376
24377 .
24378 \end_layout
24379
24380 \begin_layout Enumerate
24381
24382 \size small
24383 You should use "
24384 \family typewriter
24385 '
24386 \family default
24387 " (ASCII 39) instead of "
24388 \family typewriter
24389 ´
24390 \family default
24391 " (ASCII 180).
24392 \end_layout
24393
24394 \begin_layout Enumerate
24395
24396 \size small
24397 User-specified pattern found.
24398 \end_layout
24399
24400 \begin_layout Enumerate
24401
24402 \size small
24403 This command might not be intended.
24404 \end_layout
24405
24406 \begin_layout Enumerate
24407
24408 \size small
24409 \emph on
24410 Comment displayed.
24411 \end_layout
24412
24413 \begin_layout Enumerate
24414
24415 \size small
24416 Either 
24417 \family typewriter
24418 ''
24419 \backslash
24420 ,'
24421 \family default
24422  or 
24423 \family typewriter
24424 '
24425 \backslash
24426 ,''
24427 \family default
24428  will look better.
24429 \end_layout
24430
24431 \begin_layout Enumerate
24432
24433 \size small
24434 Delete this space to maintain correct page references.
24435 \end_layout
24436
24437 \begin_layout Enumerate
24438
24439 \size small
24440 \emph on
24441 You might wish to put this between a pair of 
24442 \begin_inset Quotes eld
24443 \end_inset
24444
24445
24446 \family typewriter
24447 {}
24448 \family default
24449
24450 \begin_inset Quotes erd
24451 \end_inset
24452
24453 .
24454 \end_layout
24455
24456 \begin_layout Enumerate
24457
24458 \size small
24459 You ought to remove spaces in front of punctuation.
24460 \end_layout
24461
24462 \begin_layout Enumerate
24463
24464 \size small
24465 Could not execute \SpecialChar LaTeX
24466  command.
24467 \end_layout
24468
24469 \begin_layout Enumerate
24470
24471 \size small
24472 Don't use 
24473 \family typewriter
24474
24475 \backslash
24476 /
24477 \family default
24478  in front of small punctuation.
24479 \end_layout
24480
24481 \begin_layout Enumerate
24482
24483 \family typewriter
24484 \size small
24485 $
24486 \backslash
24487 times$
24488 \family default
24489  may look prettier here.
24490 \end_layout
24491
24492 \begin_layout Enumerate
24493
24494 \size small
24495 \emph on
24496 Multiple spaces detected in output.
24497 \end_layout
24498
24499 \begin_layout Enumerate
24500
24501 \size small
24502 This text may be ignored.
24503 \end_layout
24504
24505 \begin_layout Enumerate
24506
24507 \size small
24508 Use 
24509 \family typewriter
24510
24511 \begin_inset Quotes eld
24512 \end_inset
24513
24514
24515 \family default
24516  to begin quotation, not 
24517 \family typewriter
24518 '
24519 \family default
24520 .
24521 \end_layout
24522
24523 \begin_layout Enumerate
24524
24525 \size small
24526 Use 
24527 \family typewriter
24528 '
24529 \family default
24530  to end quotation, not 
24531 \family typewriter
24532
24533 \begin_inset Quotes eld
24534 \end_inset
24535
24536
24537 \family default
24538 .
24539 \end_layout
24540
24541 \begin_layout Enumerate
24542
24543 \size small
24544 Don't mix quotes.
24545 \end_layout
24546
24547 \begin_layout Enumerate
24548
24549 \size small
24550 You should perhaps use 
24551 \begin_inset Quotes eld
24552 \end_inset
24553
24554
24555 \family typewriter
24556 cmd
24557 \family default
24558
24559 \begin_inset Quotes erd
24560 \end_inset
24561
24562  instead.
24563 \end_layout
24564
24565 \begin_layout Enumerate
24566
24567 \size small
24568 You should put a space in front of/after parenthesis.
24569 \end_layout
24570
24571 \begin_layout Enumerate
24572
24573 \size small
24574 You should avoid spaces in front of/after parenthesis.
24575 \end_layout
24576
24577 \begin_layout Enumerate
24578
24579 \size small
24580 \emph on
24581 You should not use punctuation in front of/after quotes.
24582 \end_layout
24583
24584 \begin_layout Enumerate
24585
24586 \size small
24587 Double space found.
24588 \end_layout
24589
24590 \begin_layout Enumerate
24591
24592 \size small
24593 You should put punctuation outside inner/inside display math mode.
24594 \end_layout
24595
24596 \begin_layout Enumerate
24597
24598 \size small
24599 You ought to not use primitive \SpecialChar TeX
24600  in \SpecialChar LaTeX
24601  code.
24602 \end_layout
24603
24604 \begin_layout Enumerate
24605
24606 \size small
24607 You should remove spaces in front of 
24608 \begin_inset Quotes eld
24609 \end_inset
24610
24611
24612 \family typewriter
24613 %s
24614 \family default
24615
24616 \begin_inset Quotes erd
24617 \end_inset
24618
24619
24620 \end_layout
24621
24622 \begin_layout Enumerate
24623
24624 \size small
24625 \begin_inset Quotes eld
24626 \end_inset
24627
24628
24629 \family typewriter
24630 %s
24631 \family default
24632
24633 \begin_inset Quotes erd
24634 \end_inset
24635
24636  is normally not followed by 
24637 \begin_inset Quotes eld
24638 \end_inset
24639
24640
24641 \family typewriter
24642 %c
24643 \family default
24644
24645 \begin_inset Quotes erd
24646 \end_inset
24647
24648 .
24649 \end_layout
24650
24651 \begin_layout Standard
24652 In later versions of \SpecialChar LyX
24653 , we hope to provide a more complete interface to this
24654  tool (and it's smaller cousin 
24655 \family typewriter
24656 lacheck
24657 \family default
24658 ) to exploit the full power of it.
24659  But it's not exactly useless as it is now: go try it on one of your existing
24660  documents of a certain length and be surprised.
24661 \end_layout
24662
24663 \begin_layout Section
24664 Version Control in \SpecialChar LyX
24665
24666 \end_layout
24667
24668 \begin_layout Standard
24669 by
24670 \noun on
24671  Lars Gullik Bjønnes 
24672 \noun default
24673 and 
24674 \noun on
24675 Pavel Sanda
24676 \end_layout
24677
24678 \begin_layout Subsection
24679 Introduction
24680 \end_layout
24681
24682 \begin_layout Standard
24683 \SpecialChar LyX
24684  supports some of the most basic RCS/CVS/SVN/GIT commands.
24685  If you need something a bit more sophisticated you will have to do that
24686  manually in a terminal.
24687 \end_layout
24688
24689 \begin_layout Standard
24690 Also note that CVS support is not as good as subversion support, so we advise
24691  using SVN instead.
24692  A good place to start learning Subversion is the SVN Book
24693 \begin_inset Foot
24694 status collapsed
24695
24696 \begin_layout Plain Layout
24697 \begin_inset CommandInset href
24698 LatexCommand href
24699 target "http://svnbook.red-bean.com/"
24700 literal "false"
24701
24702 \end_inset
24703
24704
24705 \end_layout
24706
24707 \end_inset
24708
24709 .
24710  In the case of RCS you should read 
24711 \begin_inset Quotes eld
24712 \end_inset
24713
24714 rcsintro
24715 \begin_inset Quotes erd
24716 \end_inset
24717
24718  (a man file, read it with 
24719 \family typewriter
24720 man rcsintro
24721 \family default
24722 ).
24723  This file describes all the basic features of RCS.
24724  You should especially notice the comment about a RCS directory, and the
24725  notion of a master RCS file (the file ending in 
24726 \family typewriter
24727 ,v
24728 \family default
24729 ).
24730 \end_layout
24731
24732 \begin_layout Standard
24733 Before you begin to use the version control features in \SpecialChar LyX
24734 , you should be
24735  familiar with RCS/CVS/SVN/GIT usage.
24736  The implementation in \SpecialChar LyX
24737  assumes a recent version of the GNU RCS or CVS/SVN
24738  package — no guarantees are made for older versions.
24739  Most of the log messages are not currently displayed after operations —
24740  you can check them in the Messages pane if you are unsure.
24741  Regular users of version control will appreciate the VC toolbar, which
24742  can be enabled via 
24743 \family sans
24744 View\SpecialChar menuseparator
24745 Toolbars\SpecialChar menuseparator
24746 Version
24747 \begin_inset space ~
24748 \end_inset
24749
24750 Control
24751 \family default
24752 .
24753 \end_layout
24754
24755 \begin_layout Standard
24756 For introducing your own external commands consult 
24757 \begin_inset Flex Code
24758 status collapsed
24759
24760 \begin_layout Plain Layout
24761 vc-command
24762 \end_layout
24763
24764 \end_inset
24765
24766  in the manual 
24767 \emph on
24768 \SpecialChar LyX
24769  Functions
24770 \emph default
24771 .
24772 \end_layout
24773
24774 \begin_layout Standard
24775 It is strongly recommended to store documents in uncompressed format if
24776  using version control (uncheck 
24777 \family sans
24778 Document\SpecialChar menuseparator
24779 Compressed
24780 \family default
24781  if it is checked): Uncompressed LyX documents are text files and therefore
24782  for merging two different versions by version control systems.
24783  Compressed LyX documents are binary files, which cannot be merged by version
24784  control systems.
24785 \end_layout
24786
24787 \begin_layout Subsection
24788 RCS commands in \SpecialChar LyX
24789
24790 \end_layout
24791
24792 \begin_layout Standard
24793 The following sections describe the RCS commands supported by \SpecialChar LyX
24794 .
24795  You can find them in the 
24796 \family sans
24797 File\SpecialChar menuseparator
24798 Version
24799 \begin_inset space ~
24800 \end_inset
24801
24802 Control
24803 \family default
24804  submenu.
24805  \SpecialChar LyX
24806  was tested against RCS 5.7/5.8.
24807 \end_layout
24808
24809 \begin_layout Subsubsection
24810
24811 \family sans
24812 Register
24813 \end_layout
24814
24815 \begin_layout Standard
24816 If your document is not under revision control, this is the only item shown
24817  in the menu.
24818  And if it is under revision control, the 
24819 \family sans
24820 Register
24821 \family default
24822  item is not visible.
24823  
24824 \end_layout
24825
24826 \begin_layout Standard
24827 This command registers your document with RCS (unless you are under the
24828  directory managed by CVS)\SpecialChar endofsentence
24829  You are asked interactively to supply an initial
24830  description of the document.
24831  The document is now set in Read-Only mode and you have to 
24832 \family sans
24833 Check
24834 \begin_inset space ~
24835 \end_inset
24836
24837 Out
24838 \begin_inset space ~
24839 \end_inset
24840
24841 For
24842 \begin_inset space ~
24843 \end_inset
24844
24845 Edit
24846 \family default
24847 , before making any changes to it.
24848  A document under revision control has a 
24849 \begin_inset Quotes eld
24850 \end_inset
24851
24852 [RCS:<version> <locker>]
24853 \begin_inset Quotes erd
24854 \end_inset
24855
24856  item tagged to the filename in the minibuffer.
24857 \end_layout
24858
24859 \begin_layout Standard
24860 RCS command that is run:
24861 \end_layout
24862
24863 \begin_layout LyX-Code
24864
24865 \family typewriter
24866 ci -q -u -i -t-"<initial description>" <file-name>
24867 \end_layout
24868
24869 \begin_layout Standard
24870 Read 
24871 \family typewriter
24872 man ci
24873 \family default
24874  to understand the switches.
24875  
24876 \end_layout
24877
24878 \begin_layout Subsubsection
24879
24880 \family sans
24881 Check In Changes
24882 \end_layout
24883
24884 \begin_layout Standard
24885 When you are finished editing a file, you check in your changes.
24886  When you do this, you are asked for a description of the changes.
24887  This is stored in the history log.
24888  The version number is bumped, your changes are applied to the master RCS
24889  file, the document is unlocked and set to Read-Only mode.
24890 \end_layout
24891
24892 \begin_layout Itemize
24893 RCS command: 
24894 \family typewriter
24895 ci -q -u -m"<description>" <file-name>
24896 \end_layout
24897
24898 \begin_layout Subsubsection
24899
24900 \family sans
24901 Check Out For Edit
24902 \end_layout
24903
24904 \begin_layout Standard
24905 By doing this you lock the document so that only you can edit it.
24906  This will also make the document Read-Write only for you.
24907  You will usually continue editing for a while and when you are finished
24908  you check in your changes.
24909  The status line is changed to reflect that you have locked the file.
24910 \end_layout
24911
24912 \begin_layout Itemize
24913 RCS command: 
24914 \family typewriter
24915 co -q -l <file-name>
24916 \end_layout
24917
24918 \begin_layout Subsubsection
24919
24920 \family sans
24921 Revert To Repository Version
24922 \end_layout
24923
24924 \begin_layout Standard
24925 This will discard all changes made to the document since the last check
24926  in.
24927  You get a warning before changes are discarded.
24928 \end_layout
24929
24930 \begin_layout Itemize
24931 RCS command: 
24932 \family typewriter
24933 co -f -u<version> <file-name>
24934 \end_layout
24935
24936 \begin_layout Subsubsection
24937
24938 \family sans
24939 Copy
24940 \end_layout
24941
24942 \begin_layout Standard
24943 This will create a copy of the current document.
24944  Since RCS does not support copy operations natively, the version history
24945  is not preserved, and the copy is added as a new file.
24946  It requires a clean document without any changes since the last checkin.
24947  You are asked for a file name and a description of the copy operation.
24948  After that the copy is created, both locally and in the repository.
24949  If the parent directories of the copied and original document differ, all
24950  relative paths of included files of the copy are adjusted (like in 
24951 \family sans
24952 File\SpecialChar menuseparator
24953 Save As
24954 \family default
24955 \SpecialChar ldots
24956 ).
24957  Finally, the copy is loaded instead of the original document.
24958 \end_layout
24959
24960 \begin_layout Labeling
24961 \labelwidthstring 00.00.0000
24962 RCS
24963 \begin_inset space ~
24964 \end_inset
24965
24966 commands: 
24967 \begin_inset space ~
24968 \end_inset
24969
24970
24971 \begin_inset Newline newline
24972 \end_inset
24973
24974 Copy 
24975 \begin_inset Flex Code
24976 status collapsed
24977
24978 \begin_layout Plain Layout
24979
24980 \family typewriter
24981 \begin_inset Quotes qld
24982 \end_inset
24983
24984 <file-name>
24985 \begin_inset Quotes qld
24986 \end_inset
24987
24988
24989 \end_layout
24990
24991 \end_inset
24992
24993  to 
24994 \begin_inset Flex Code
24995 status collapsed
24996
24997 \begin_layout Plain Layout
24998
24999 \family typewriter
25000 \begin_inset Quotes qld
25001 \end_inset
25002
25003 <new-file-name>
25004 \begin_inset Quotes qld
25005 \end_inset
25006
25007
25008 \end_layout
25009
25010 \end_inset
25011
25012
25013 \begin_inset Newline newline
25014 \end_inset
25015
25016
25017 \begin_inset Flex Code
25018 status collapsed
25019
25020 \begin_layout Plain Layout
25021 ci -q -u 
25022 \family typewriter
25023 -i 
25024 \begin_inset Quotes qld
25025 \end_inset
25026
25027 <new-file-name>
25028 \begin_inset Quotes qld
25029 \end_inset
25030
25031
25032 \end_layout
25033
25034 \end_inset
25035
25036
25037 \end_layout
25038
25039 \begin_layout Subsubsection
25040
25041 \family sans
25042 Undo Last Checkin
25043 \end_layout
25044
25045 \begin_layout Standard
25046 This makes as if the last check in never happened.
25047  No changes are made to the document loaded into \SpecialChar LyX
25048 , but the last version
25049  is removed from the master RCS file.
25050 \end_layout
25051
25052 \begin_layout Itemize
25053 RCS command: 
25054 \family typewriter
25055 rcs -o<version> <file-name>
25056 \end_layout
25057
25058 \begin_layout Subsubsection
25059
25060 \family sans
25061 Show History
25062 \end_layout
25063
25064 \begin_layout Standard
25065 This shows the complete history of the RCS document.
25066  The output of 
25067 \family typewriter
25068 rlog <file-name>
25069 \family default
25070  is shown in a browser.
25071  See 
25072 \family typewriter
25073 man rlog
25074 \family default
25075  for more info.
25076 \end_layout
25077
25078 \begin_layout Subsubsection
25079 Revision info
25080 \end_layout
25081
25082 \begin_layout Standard
25083 \SpecialChar LyX
25084  supports RCS version number, author name, date and time of last commit.
25085  All those are extracted from 
25086 \family typewriter
25087 rlog -r <file-name>
25088 \family default
25089 .
25090  See 
25091 \begin_inset CommandInset ref
25092 LatexCommand ref
25093 reference "subsec:VCS-Revision-Information"
25094
25095 \end_inset
25096
25097  for details.
25098 \end_layout
25099
25100 \begin_layout Subsection
25101 CVS commands in \SpecialChar LyX
25102
25103 \end_layout
25104
25105 \begin_layout Standard
25106 A subset of CVS operations is supported by \SpecialChar LyX
25107 .
25108  You can find the commands in the 
25109 \family sans
25110 File\SpecialChar menuseparator
25111 Version
25112 \begin_inset space ~
25113 \end_inset
25114
25115 Control
25116 \family default
25117  submenu.
25118  The version control system SVN is more powerful, so please use it instead
25119  of CVS if possible.
25120 \end_layout
25121
25122 \begin_layout Subsubsection
25123
25124 \family sans
25125 General CVS usage
25126 \end_layout
25127
25128 \begin_layout Standard
25129 If you start from scratch with CVS you have to create your repository and
25130  checkout the working copy with external tools.
25131  If you're using a client-server setup you may need to login before doing
25132  the first repository checkout.
25133 \end_layout
25134
25135 \begin_layout Standard
25136 If your documents are under revision control and others are using the same
25137  repository problems arise when different changes to the same document at
25138  the same location happen.
25139  Standard CVS repositories don't operate with a file locking mechanism.
25140  This may be surprising, but conflicts only occur if people disagree on
25141  the proper content of the same part of a document.
25142  So, if co-workers are used to communicate regularly, these conflicts occur
25143  rarely.
25144  If they don't communicate they have a fundamental problem anyway.
25145  Nevertheless some people like to work with so called 
25146 \begin_inset Quotes eld
25147 \end_inset
25148
25149 reserved checkouts
25150 \begin_inset Quotes erd
25151 \end_inset
25152
25153 .
25154  If they do so the working copy of all files is readonly when checked out
25155  first and the user starts editing after using a special command to make
25156  the working copy writable.
25157  When the changes are checked in the working copy returns to readonly state.
25158  With \SpecialChar LyX
25159  one has to edit the 
25160 \begin_inset Flex Code
25161 status collapsed
25162
25163 \begin_layout Plain Layout
25164 .cvsrc
25165 \end_layout
25166
25167 \end_inset
25168
25169  file and add the line 
25170 \begin_inset Flex Code
25171 status collapsed
25172
25173 \begin_layout Plain Layout
25174 cvs -r
25175 \end_layout
25176
25177 \end_inset
25178
25179  to work with reserved checkouts.
25180  The benefit is the possibility to see who is using a writable copy of some
25181  document.
25182  It's not guaranteed only one user makes a copy writable.
25183 \end_layout
25184
25185 \begin_layout Standard
25186 \SpecialChar LyX
25187  tries to guess if you're using reserved or non-reserved checkouts.
25188  If your working copy is readonly or it is writable and an additional copy
25189  of your document exists in the CVS/Base sub-directory a reserved otherwise
25190  a non-reserved checkout is assumed.
25191  When a reserved checkout is detected you have to use 
25192 \begin_inset Flex Noun
25193 status collapsed
25194
25195 \begin_layout Plain Layout
25196 Check Out
25197 \end_layout
25198
25199 \end_inset
25200
25201  to make your working copy writable if it's readonly.
25202  After doing so the 
25203 \begin_inset Flex Noun
25204 status collapsed
25205
25206 \begin_layout Plain Layout
25207 Check In
25208 \end_layout
25209
25210 \end_inset
25211
25212  operation is possible and that makes your working copy readonly again after
25213  transferring your changes to the repository.
25214 \end_layout
25215
25216 \begin_layout Standard
25217 More information about CVS can be found here 
25218 \begin_inset Flex URL
25219 status collapsed
25220
25221 \begin_layout Plain Layout
25222
25223 http://www.nongnu.org/cvs
25224 \end_layout
25225
25226 \end_inset
25227
25228  and here 
25229 \begin_inset Flex URL
25230 status collapsed
25231
25232 \begin_layout Plain Layout
25233
25234 http://ximbiot.com/cvs
25235 \end_layout
25236
25237 \end_inset
25238
25239 .
25240 \end_layout
25241
25242 \begin_layout Standard
25243 Read 
25244 \family typewriter
25245 man cvs
25246 \family default
25247  to understand the sub-commands and the switches mentioned below.
25248 \end_layout
25249
25250 \begin_layout Subsubsection
25251
25252 \family sans
25253 Register
25254 \end_layout
25255
25256 \begin_layout Standard
25257 If your document is not under revision control, this is the only item shown
25258  in the menu.
25259  And if it is under revision control, the 
25260 \family sans
25261 Register
25262 \family default
25263  item is not visible.
25264  
25265 \end_layout
25266
25267 \begin_layout Standard
25268 This command registers in CVS your document 
25269 \begin_inset Flex Strong
25270 status collapsed
25271
25272 \begin_layout Plain Layout
25273
25274 \emph on
25275 only
25276 \end_layout
25277
25278 \end_inset
25279
25280  in the case you have already the documents directory under CVS control
25281  (in particular 
25282 \family typewriter
25283 CVS/Entries
25284 \family default
25285  file exists).
25286  This means you have to create or checkout the archive by yourself using
25287  external tools.
25288  (In case you forget that step \SpecialChar LyX
25289  registers the document with RCS.)
25290 \end_layout
25291
25292 \begin_layout Standard
25293 Then you are asked interactively to supply an initial description of the
25294  document.
25295  Don't forget that registered file is not yet checked in.
25296 \end_layout
25297
25298 \begin_layout Standard
25299 CVS command that is run: 
25300 \family typewriter
25301 cvs -q add -m"<entered message>" "<file-name>"
25302 \end_layout
25303
25304 \begin_layout Standard
25305 The term 
25306 \family typewriter
25307 "<file-name>"
25308 \family default
25309  above and for all other CVS commands is an abbreviation for 
25310 \begin_inset Quotes eld
25311 \end_inset
25312
25313 change the current working directory to file location and use the file name
25314  without path component as argument
25315 \begin_inset Quotes erd
25316 \end_inset
25317
25318 .
25319 \end_layout
25320
25321 \begin_layout Subsubsection
25322
25323 \family sans
25324 Check In Changes
25325 \end_layout
25326
25327 \begin_layout Standard
25328 When you are finished editing a file, you commit your changes.
25329  When you do this and you had changed the document, you are asked for a
25330  description of the changes.
25331  After that changes are written to the repository.
25332  In case you didn't change the document and a reserved checkout is detected
25333  the reservation made on 
25334 \begin_inset Flex Noun
25335 status collapsed
25336
25337 \begin_layout Plain Layout
25338 Check Out
25339 \end_layout
25340
25341 \end_inset
25342
25343  is undone.
25344 \end_layout
25345
25346 \begin_layout Labeling
25347 \labelwidthstring 00.00.0000
25348 CVS
25349 \begin_inset space ~
25350 \end_inset
25351
25352 command: 
25353 \begin_inset space ~
25354 \end_inset
25355
25356
25357 \begin_inset Newline newline
25358 \end_inset
25359
25360
25361 \begin_inset Flex Code
25362 status collapsed
25363
25364 \begin_layout Plain Layout
25365 cvs 
25366 \family typewriter
25367 -q commit -m"<description>" "<file-name>"
25368 \end_layout
25369
25370 \end_inset
25371
25372  or
25373 \begin_inset Newline newline
25374 \end_inset
25375
25376
25377 \begin_inset Flex Code
25378 status collapsed
25379
25380 \begin_layout Plain Layout
25381 cvs -q unedit 
25382 \family typewriter
25383 "<file-name>"
25384 \end_layout
25385
25386 \end_inset
25387
25388
25389 \end_layout
25390
25391 \begin_layout Subsubsection
25392
25393 \family sans
25394 Check Out Changes
25395 \end_layout
25396
25397 \begin_layout Standard
25398 When you are sharing a repository with others, you may have to incorporate
25399  their changes into your working copy.
25400 \end_layout
25401
25402 \begin_layout Standard
25403 CVS command: 
25404 \family typewriter
25405 cvs -q update "<file-name>"
25406 \end_layout
25407
25408 \begin_layout Standard
25409 If a readonly checkout is detected the working copy is made writable and
25410  reserved.
25411 \end_layout
25412
25413 \begin_layout Standard
25414 CVS command: 
25415 \family typewriter
25416 cvs -q edit "<file-name>"
25417 \end_layout
25418
25419 \begin_layout Subsubsection
25420
25421 \family sans
25422 Revert To Repository Version
25423 \end_layout
25424
25425 \begin_layout Standard
25426 This will discard all changes made to the document since the last check
25427  in.
25428  You get a warning before changes are discarded.
25429  Firstly the file is deleted, secondly CVS update command is run.
25430 \end_layout
25431
25432 \begin_layout Standard
25433 CVS command: 
25434 \family typewriter
25435 cvs -q update "<file-name>"
25436 \end_layout
25437
25438 \begin_layout Standard
25439 If a reserved checkout is detected and the working copy has no changes only
25440  the reservation is undone.
25441 \end_layout
25442
25443 \begin_layout Standard
25444 CVS command: 
25445 \family typewriter
25446 cvs -q unedit "<file-name>"
25447 \end_layout
25448
25449 \begin_layout Subsubsection
25450
25451 \family sans
25452 Copy
25453 \end_layout
25454
25455 \begin_layout Standard
25456 This will create a copy of the current document.
25457  Since CVS does not support copy operations natively, the version history
25458  is not preserved, and the copy is added as a new file.
25459  It requires a clean document without any changes since the last checkin.
25460  You are asked for a file name and a description of the copy operation.
25461  After that the copy is created, both locally and in the repository.
25462  If the parent directories of the copied and original document differ, all
25463  relative paths of included files of the copy are adjusted (like in 
25464 \family sans
25465 File\SpecialChar menuseparator
25466 Save As
25467 \family default
25468 \SpecialChar ldots
25469 ).
25470  Finally, the copy is loaded instead of the original document.
25471 \end_layout
25472
25473 \begin_layout Labeling
25474 \labelwidthstring 00.00.0000
25475 CVS
25476 \begin_inset space ~
25477 \end_inset
25478
25479 commands: 
25480 \begin_inset space ~
25481 \end_inset
25482
25483
25484 \begin_inset Newline newline
25485 \end_inset
25486
25487 Copy 
25488 \begin_inset Flex Code
25489 status collapsed
25490
25491 \begin_layout Plain Layout
25492 "<file-name>"
25493 \end_layout
25494
25495 \end_inset
25496
25497  to 
25498 \begin_inset Flex Code
25499 status collapsed
25500
25501 \begin_layout Plain Layout
25502 "<new-file-name>"
25503 \end_layout
25504
25505 \end_inset
25506
25507
25508 \begin_inset Newline newline
25509 \end_inset
25510
25511
25512 \begin_inset Flex Code
25513 status collapsed
25514
25515 \begin_layout Plain Layout
25516 cvs -q add "<new-file-name>"
25517 \end_layout
25518
25519 \end_inset
25520
25521
25522 \end_layout
25523
25524 \begin_layout Subsubsection
25525
25526 \family sans
25527 Rename
25528 \end_layout
25529
25530 \begin_layout Standard
25531 This will rename the current document.
25532  Since CVS does not support rename operations natively, the version history
25533  is not preserved, the renamed document is added as a new file, and the
25534  original document is deleted.
25535  It requires a clean document without any changes since the last checkin.
25536  You are asked for a file name and a description of the rename operation.
25537  After that the document is renamed, both locally and in the repository.
25538  If the parent directories of the new and old file names differ, all relative
25539  paths of included files are adjusted (like in 
25540 \family sans
25541 File\SpecialChar menuseparator
25542 Save As
25543 \family default
25544 \SpecialChar ldots
25545 ).
25546  Finally, the document is reloaded using the new name.
25547 \end_layout
25548
25549 \begin_layout Labeling
25550 \labelwidthstring 00.00.0000
25551 CVS
25552 \begin_inset space ~
25553 \end_inset
25554
25555 commands: 
25556 \begin_inset space ~
25557 \end_inset
25558
25559
25560 \begin_inset Newline newline
25561 \end_inset
25562
25563 Rename 
25564 \begin_inset Flex Code
25565 status collapsed
25566
25567 \begin_layout Plain Layout
25568 "<file-name>"
25569 \end_layout
25570
25571 \end_inset
25572
25573  to 
25574 \begin_inset Flex Code
25575 status collapsed
25576
25577 \begin_layout Plain Layout
25578 "<new-file-name>"
25579 \end_layout
25580
25581 \end_inset
25582
25583
25584 \begin_inset Newline newline
25585 \end_inset
25586
25587
25588 \begin_inset Flex Code
25589 status collapsed
25590
25591 \begin_layout Plain Layout
25592 cvs -q add "<new-file-name>"
25593 \end_layout
25594
25595 \end_inset
25596
25597
25598 \begin_inset Newline newline
25599 \end_inset
25600
25601
25602 \begin_inset Flex Code
25603 status collapsed
25604
25605 \begin_layout Plain Layout
25606 cvs -q remove "<file-name>"
25607 \end_layout
25608
25609 \end_inset
25610
25611
25612 \end_layout
25613
25614 \begin_layout Subsubsection
25615 Update of the local directory checkout from repository
25616 \end_layout
25617
25618 \begin_layout Standard
25619 Once your documents gets more complex, containing sub-documents and pictures,
25620  including external 
25621 \begin_inset Flex Code
25622 status collapsed
25623
25624 \begin_layout Plain Layout
25625 .tex
25626 \end_layout
25627
25628 \end_inset
25629
25630  files and so on using version control becomes more complicated.
25631  \SpecialChar LyX
25632  supports updating the whole tree in which resides the document.
25633  This become especially useful once you cooperate with people which neither
25634  have detailed knowledge about CVS usage nor they have ambition to commit
25635  additional material to the repository.
25636  You have to organize the files structure so that all external files are
25637  in the same directory or subdirectories of the document.
25638  It's good practice anyway to store multipart documents in an extra directory.
25639 \end_layout
25640
25641 \begin_layout Standard
25642 The 
25643 \begin_inset Flex Code
25644 status collapsed
25645
25646 \begin_layout Plain Layout
25647 Update local directory from repository
25648 \end_layout
25649
25650 \end_inset
25651
25652  command updates the whole directory.
25653  If local changes are detected user is warned before update starts.
25654  In case of merge conflicts both versions of the conflicting document parts
25655  are placed in the final document.
25656  You have to review and correct the result of the merge.
25657  You'll find the conflicts enclosed in pairs of 
25658 \begin_inset Flex Code
25659 status collapsed
25660
25661 \begin_layout Plain Layout
25662 <<<<<<<
25663 \end_layout
25664
25665 \end_inset
25666
25667  and 
25668 \begin_inset Flex Code
25669 status collapsed
25670
25671 \begin_layout Plain Layout
25672 >>>>>>>
25673 \end_layout
25674
25675 \end_inset
25676
25677  separated by 
25678 \begin_inset Flex Code
25679 status collapsed
25680
25681 \begin_layout Plain Layout
25682 =======
25683 \end_layout
25684
25685 \end_inset
25686
25687 .
25688  The first part is your version as before the update operation with the
25689  document name prepended.
25690  The second one is the repository version with the version number after
25691  the sequence of 
25692 \begin_inset Flex Code
25693 status collapsed
25694
25695 \begin_layout Plain Layout
25696 >
25697 \end_layout
25698
25699 \end_inset
25700
25701  signs.
25702 \end_layout
25703
25704 \begin_layout Labeling
25705 \labelwidthstring 00.00.0000
25706 CVS
25707 \begin_inset space ~
25708 \end_inset
25709
25710 commands: 
25711 \begin_inset space ~
25712 \end_inset
25713
25714
25715 \begin_inset Newline newline
25716 \end_inset
25717
25718
25719 \begin_inset Flex Code
25720 status collapsed
25721
25722 \begin_layout Plain Layout
25723 cd $path; cvs diff 
25724 \family typewriter
25725 "."
25726 \end_layout
25727
25728 \end_inset
25729
25730  (Ask if changes are detected.)
25731 \begin_inset Newline newline
25732 \end_inset
25733
25734
25735 \begin_inset Flex Code
25736 status collapsed
25737
25738 \begin_layout Plain Layout
25739 cd $path; cvs -q update 
25740 \family typewriter
25741 "."
25742 \end_layout
25743
25744 \end_inset
25745
25746
25747 \end_layout
25748
25749 \begin_layout Standard
25750 where 
25751 \begin_inset Flex Code
25752 status collapsed
25753
25754 \begin_layout Plain Layout
25755 $path
25756 \end_layout
25757
25758 \end_inset
25759
25760  stands for the path to the document.
25761 \end_layout
25762
25763 \begin_layout Subsubsection
25764
25765 \family sans
25766 Show History
25767 \end_layout
25768
25769 \begin_layout Standard
25770 This shows the complete history of the CVS document.
25771  The output of 
25772 \family typewriter
25773 cvs log "<file-name>"
25774 \family default
25775  is shown in a browser.
25776 \end_layout
25777
25778 \begin_layout Subsubsection
25779 Revision info
25780 \end_layout
25781
25782 \begin_layout Standard
25783 \SpecialChar LyX
25784  supports CVS version number, author name, date and time of last commit.
25785  All those are extracted from 
25786 \family typewriter
25787 cvs log -r <file-name>
25788 \family default
25789 .
25790  See 
25791 \begin_inset CommandInset ref
25792 LatexCommand ref
25793 reference "subsec:VCS-Revision-Information"
25794
25795 \end_inset
25796
25797  for details.
25798 \end_layout
25799
25800 \begin_layout Subsection
25801 SVN commands in \SpecialChar LyX
25802
25803 \end_layout
25804
25805 \begin_layout Standard
25806 SVN is now partially supported by \SpecialChar LyX
25807 .
25808  You can find the commands in the 
25809 \family sans
25810 File\SpecialChar menuseparator
25811 Version
25812 \begin_inset space ~
25813 \end_inset
25814
25815 Control
25816 \family default
25817  submenu.
25818  Please note that if you use password protected access to repository via
25819  ssh, you will be asked in terminal window.
25820  \SpecialChar LyX
25821  was tested against SVN 1.5, 1.6, 1.7 and 1.8
25822 \begin_inset Foot
25823 status collapsed
25824
25825 \begin_layout Plain Layout
25826 Most of the commands will work with 1.4 too, see 
25827 \begin_inset CommandInset ref
25828 LatexCommand ref
25829 reference "subsec:SVN-Repo-Update"
25830
25831 \end_inset
25832
25833 .
25834  There seems to be currently unresolved permissions problem under SVN 1.8
25835  with reverting changes when file is locked.
25836 \end_layout
25837
25838 \end_inset
25839
25840
25841 \end_layout
25842
25843 \begin_layout Subsubsection
25844
25845 \family sans
25846 Register
25847 \end_layout
25848
25849 \begin_layout Standard
25850 If your document is not under revision control, this is the only item shown
25851  in the menu.
25852  And if it is under revision control, the 
25853 \family sans
25854 Register
25855 \family default
25856  item is not visible.
25857 \end_layout
25858
25859 \begin_layout Standard
25860 This command registers in SVN your document ONLY in case you have already
25861  the documents directory under SVN control (in particular 
25862 \family typewriter
25863 .svn/entries
25864 \family default
25865  file exists).
25866  This means you have to checkout the archive by yourself.
25867 \end_layout
25868
25869 \begin_layout Standard
25870 Then you are asked interactively to supply an initial description of the
25871  document.
25872  Don't forget that registered file is not yet commited.
25873 \end_layout
25874
25875 \begin_layout Standard
25876 SVN command that is run: 
25877 \family typewriter
25878 svn add -q 
25879 \begin_inset Quotes qld
25880 \end_inset
25881
25882 <file-name>
25883 \begin_inset Quotes qld
25884 \end_inset
25885
25886
25887 \end_layout
25888
25889 \begin_layout Standard
25890 Read 
25891 \family typewriter
25892 man svn
25893 \family default
25894  to understand the switches.
25895 \end_layout
25896
25897 \begin_layout Subsubsection
25898
25899 \family sans
25900 Check In Changes
25901 \end_layout
25902
25903 \begin_layout Standard
25904 When you are finished editing a file, you commit your changes.
25905  When you do this, you are asked for a description of the changes.
25906  After that changes are commited.
25907 \end_layout
25908
25909 \begin_layout Standard
25910 SVN command:
25911 \begin_inset Foot
25912 status collapsed
25913
25914 \begin_layout Plain Layout
25915 In case locking is not enabled.
25916  See Section 
25917 \begin_inset CommandInset ref
25918 LatexCommand ref
25919 reference "subsec:SVN-File-Locking"
25920
25921 \end_inset
25922
25923 .
25924 \end_layout
25925
25926 \end_inset
25927
25928  
25929 \family typewriter
25930 svn commit -q -m"<description>" <file-name>
25931 \end_layout
25932
25933 \begin_layout Subsubsection
25934
25935 \family sans
25936 Check Out For Edit
25937 \end_layout
25938
25939 \begin_layout Standard
25940 Updates the changes of this file from the repository.
25941  Be sure you understand SVN merging and conflicts resolving before using
25942  this function, because all conflicts has to be resolved manually by you!
25943 \end_layout
25944
25945 \begin_layout Standard
25946 SVN command:
25947 \begin_inset Foot
25948 status collapsed
25949
25950 \begin_layout Plain Layout
25951 Ditto.
25952 \end_layout
25953
25954 \end_inset
25955
25956  
25957 \family typewriter
25958 svn update --non-interactive 
25959 \begin_inset Quotes qld
25960 \end_inset
25961
25962 <file-name>
25963 \begin_inset Quotes qld
25964 \end_inset
25965
25966
25967 \end_layout
25968
25969 \begin_layout Subsubsection
25970
25971 \family sans
25972 Revert To Repository Version
25973 \end_layout
25974
25975 \begin_layout Standard
25976 This will discard all changes made to the document since the last check
25977  in.
25978  You get a warning before changes are discarded.
25979 \end_layout
25980
25981 \begin_layout Standard
25982 SVN command: 
25983 \family typewriter
25984 svn revert -q 
25985 \begin_inset Quotes qld
25986 \end_inset
25987
25988 <file-name>
25989 \begin_inset Quotes qld
25990 \end_inset
25991
25992
25993 \end_layout
25994
25995 \begin_layout Subsubsection
25996
25997 \family sans
25998 Copy
25999 \end_layout
26000
26001 \begin_layout Standard
26002 This will create a copy of the current document including the version history.
26003  It requires a clean document without any changes since the last checkin.
26004  You are asked for a file name and a description of the copy operation.
26005  After that the copy is created, both locally and in the repository.
26006  If the parent directories of the copied and original document differ, all
26007  relative paths of included files of the copy are adjusted (like in 
26008 \family sans
26009 File\SpecialChar menuseparator
26010 Save As
26011 \family default
26012 \SpecialChar ldots
26013 ).
26014  Finally, the copy is loaded instead of the original document.
26015 \end_layout
26016
26017 \begin_layout Labeling
26018 \labelwidthstring 00.00.0000
26019 SVN
26020 \begin_inset space ~
26021 \end_inset
26022
26023 commands: 
26024 \begin_inset space ~
26025 \end_inset
26026
26027
26028 \begin_inset Newline newline
26029 \end_inset
26030
26031
26032 \begin_inset Flex Code
26033 status collapsed
26034
26035 \begin_layout Plain Layout
26036 svn copy -q 
26037 \family typewriter
26038
26039 \begin_inset Quotes qld
26040 \end_inset
26041
26042 <file-name>
26043 \begin_inset Quotes qld
26044 \end_inset
26045
26046  
26047 \begin_inset Quotes qld
26048 \end_inset
26049
26050 <new-file-name>
26051 \begin_inset Quotes qld
26052 \end_inset
26053
26054
26055 \end_layout
26056
26057 \end_inset
26058
26059
26060 \begin_inset Newline newline
26061 \end_inset
26062
26063
26064 \begin_inset Flex Code
26065 status collapsed
26066
26067 \begin_layout Plain Layout
26068 svn commit
26069 \end_layout
26070
26071 \end_inset
26072
26073
26074 \end_layout
26075
26076 \begin_layout Subsubsection
26077
26078 \family sans
26079 Rename
26080 \end_layout
26081
26082 \begin_layout Standard
26083 This will rename the current document including the version history.
26084  It requires a clean document without any changes since the last checkin.
26085  You are asked for a file name and a description of the rename operation.
26086  After that the document is renamed, both locally and in the repository.
26087  If the parent directories of the new and old file names differ, all relative
26088  paths of included files are adjusted (like in 
26089 \family sans
26090 File\SpecialChar menuseparator
26091 Save As
26092 \family default
26093 \SpecialChar ldots
26094 ).
26095  Finally, the document is reloaded using the new name.
26096 \end_layout
26097
26098 \begin_layout Labeling
26099 \labelwidthstring 00.00.0000
26100 SVN
26101 \begin_inset space ~
26102 \end_inset
26103
26104 commands: 
26105 \begin_inset space ~
26106 \end_inset
26107
26108
26109 \begin_inset Newline newline
26110 \end_inset
26111
26112
26113 \begin_inset Flex Code
26114 status collapsed
26115
26116 \begin_layout Plain Layout
26117 svn move -q 
26118 \family typewriter
26119
26120 \begin_inset Quotes qld
26121 \end_inset
26122
26123 <file-name>
26124 \begin_inset Quotes qld
26125 \end_inset
26126
26127  
26128 \begin_inset Quotes qld
26129 \end_inset
26130
26131 <new-file-name>
26132 \begin_inset Quotes qld
26133 \end_inset
26134
26135
26136 \end_layout
26137
26138 \end_inset
26139
26140
26141 \begin_inset Newline newline
26142 \end_inset
26143
26144
26145 \begin_inset Flex Code
26146 status collapsed
26147
26148 \begin_layout Plain Layout
26149 svn commit
26150 \end_layout
26151
26152 \end_inset
26153
26154
26155 \end_layout
26156
26157 \begin_layout Subsubsection
26158 \begin_inset CommandInset label
26159 LatexCommand label
26160 name "subsec:SVN-Repo-Update"
26161
26162 \end_inset
26163
26164 Update of the local directory checkout from repository
26165 \begin_inset Foot
26166 status collapsed
26167
26168 \begin_layout Plain Layout
26169 Note that this command will work only with subversion 
26170 \begin_inset Formula $\geqq1.5$
26171 \end_inset
26172
26173
26174 \end_layout
26175
26176 \end_inset
26177
26178
26179 \end_layout
26180
26181 \begin_layout Standard
26182 All the commands above have one shortcoming – they deal with the current
26183  document only.
26184  Once your document contains pictures, includes external 
26185 \begin_inset Flex Code
26186 status collapsed
26187
26188 \begin_layout Plain Layout
26189 .tex
26190 \end_layout
26191
26192 \end_inset
26193
26194  files and so on administration becomes more complicated.
26195  \SpecialChar LyX
26196  now supports updating the whole tree in which resides the document
26197 \begin_inset Foot
26198 status collapsed
26199
26200 \begin_layout Plain Layout
26201 One need to organize the files structure so that all external files are
26202  in the same directory or subdirectories of the document.
26203  
26204 \end_layout
26205
26206 \end_inset
26207
26208 .
26209  This become especially useful once you cooperate with people which neither
26210  know about subversion management nor they have ambition to commit additional
26211  material to the repository.
26212  
26213 \end_layout
26214
26215 \begin_layout Standard
26216 \begin_inset Flex Code
26217 status collapsed
26218
26219 \begin_layout Plain Layout
26220 Update local directory from repository
26221 \end_layout
26222
26223 \end_inset
26224
26225  command updates the whole directory and in case of merge conflicts local
26226  version of the files are left, so no unintended data loss occurs.
26227  If local changes are detected user is warned before update starts.
26228 \end_layout
26229
26230 \begin_layout Labeling
26231 \labelwidthstring 00.00.0000
26232 SVN
26233 \begin_inset space ~
26234 \end_inset
26235
26236 commands: 
26237 \begin_inset space ~
26238 \end_inset
26239
26240
26241 \begin_inset Newline newline
26242 \end_inset
26243
26244
26245 \begin_inset Flex Code
26246 status collapsed
26247
26248 \begin_layout Plain Layout
26249 svn diff $path
26250 \end_layout
26251
26252 \end_inset
26253
26254  (Ask if changes are detected.)
26255 \begin_inset Newline newline
26256 \end_inset
26257
26258
26259 \begin_inset Flex Code
26260 status collapsed
26261
26262 \begin_layout Plain Layout
26263 svn update --accept mine-full $path
26264 \end_layout
26265
26266 \end_inset
26267
26268
26269 \end_layout
26270
26271 \begin_layout Standard
26272 where 
26273 \begin_inset Flex Code
26274 status collapsed
26275
26276 \begin_layout Plain Layout
26277 $path
26278 \end_layout
26279
26280 \end_inset
26281
26282  stands for the path to the document.
26283 \end_layout
26284
26285 \begin_layout Subsubsection
26286
26287 \family sans
26288 Show History
26289 \end_layout
26290
26291 \begin_layout Standard
26292 This shows the complete history of the SVN document.
26293  The output of 
26294 \family typewriter
26295 svn log 
26296 \begin_inset Quotes qld
26297 \end_inset
26298
26299 <file-name>
26300 \begin_inset Quotes qld
26301 \end_inset
26302
26303
26304 \family default
26305  is shown in a browser.
26306 \end_layout
26307
26308 \begin_layout Subsubsection
26309 File Locking
26310 \begin_inset CommandInset label
26311 LatexCommand label
26312 name "subsec:SVN-File-Locking"
26313
26314 \end_inset
26315
26316
26317 \end_layout
26318
26319 \begin_layout Standard
26320 The file exchange through various revision control systems brings the problem
26321  of merge conflicts in case two different users try to edit the same (parts
26322  of) document.
26323  When such a conflict happens it needs manual resolving and one reasonable
26324  alternative is to provide some kind of locking mechanism, which guarantees
26325  that only one user is allowed to edit file at the given time.
26326 \end_layout
26327
26328 \begin_layout Standard
26329 SVN has two such mechanisms to provide mutual exclusivity for file access
26330  – locks and automatic setting of write permissions (see sec.
26331  
26332 \begin_inset CommandInset ref
26333 LatexCommand ref
26334 reference "subsec:Automatical-Locking-Property"
26335
26336 \end_inset
26337
26338 ) based on 
26339 \begin_inset Flex Code
26340 status collapsed
26341
26342 \begin_layout Plain Layout
26343 svn:needs-lock
26344 \end_layout
26345
26346 \end_inset
26347
26348  file svn property
26349 \begin_inset Foot
26350 status collapsed
26351
26352 \begin_layout Plain Layout
26353 \begin_inset Flex URL
26354 status open
26355
26356 \begin_layout Plain Layout
26357
26358 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
26359 \end_layout
26360
26361 \end_inset
26362
26363
26364 \end_layout
26365
26366 \end_inset
26367
26368 .
26369  If this property is detected for a given document \SpecialChar LyX
26370  starts to use SVN locks
26371  for document editing automatically and the whole check-in/out mechanism
26372  switches to the same regimen as for RCS.
26373  This in particular means there are two different modes of file use in \SpecialChar LyX
26374 :
26375 \end_layout
26376
26377 \begin_layout Itemize
26378 Unlocked state.
26379  The loaded file is in the read-only mode.
26380  For editing on needs to check-out.
26381  
26382 \emph on
26383 Check-out
26384 \emph default
26385  consists of updating from the repository and gaining write lock.
26386  If the lock is not possible to obtain, we remain in unlocked state.
26387 \end_layout
26388
26389 \begin_layout Itemize
26390 Locked state.
26391  The loaded file is in the 
26392 \begin_inset Quotes els
26393 \end_inset
26394
26395 normal
26396 \begin_inset Quotes ers
26397 \end_inset
26398
26399  edit mode.
26400  No other user is allowed to edit the file.
26401  
26402 \emph on
26403 Check-in
26404 \emph default
26405  consists of commiting changes and releasing write-lock.
26406  If no changes have been made to the document, no commit will be produced
26407 \begin_inset Foot
26408 status collapsed
26409
26410 \begin_layout Plain Layout
26411 Don't be puzzled by the fact that you will be asked for commit message anyway.
26412 \end_layout
26413
26414 \end_inset
26415
26416  and only the write-lock will be released.
26417 \end_layout
26418
26419 \begin_layout Standard
26420 SVN commands:
26421 \end_layout
26422
26423 \begin_layout Labeling
26424 \labelwidthstring 00.00.0000
26425 Check-in:
26426 \family typewriter
26427  svn commit -q -m"<description>" "<file-name>"
26428 \begin_inset Newline newline
26429 \end_inset
26430
26431 svn unlock "<file-name>"
26432 \end_layout
26433
26434 \begin_layout Labeling
26435 \labelwidthstring 00.00.0000
26436 Check-out: 
26437 \family typewriter
26438 svn update "<file-name>"
26439 \begin_inset Newline newline
26440 \end_inset
26441
26442 svn lock "<file-name>"
26443 \end_layout
26444
26445 \begin_layout Subsubsection
26446
26447 \family typewriter
26448 \begin_inset CommandInset label
26449 LatexCommand label
26450 name "subsec:Automatical-Locking-Property"
26451
26452 \end_inset
26453
26454
26455 \family default
26456 Automatic Locking Property
26457 \end_layout
26458
26459 \begin_layout Standard
26460 The above mentioned automatic setting of write permissions of the .lyx file
26461  can be set through
26462 \family sans
26463  File\SpecialChar menuseparator
26464 Version
26465 \begin_inset space ~
26466 \end_inset
26467
26468 Control\SpecialChar menuseparator
26469 Use Locking Property
26470 \family default
26471 .
26472  This command is active only when the file is not locked on the svn server
26473  (i.e.
26474  you need to check-out before proceeding).
26475 \end_layout
26476
26477 \begin_layout Labeling
26478 \labelwidthstring 00.00.0000
26479 SVN
26480 \begin_inset space ~
26481 \end_inset
26482
26483 commands:
26484 \end_layout
26485
26486 \begin_layout Labeling
26487 \labelwidthstring 00.00.0000
26488 Set:
26489 \family typewriter
26490  svn propset svn:needs-lock ON "<file-name>"
26491 \end_layout
26492
26493 \begin_layout Labeling
26494 \labelwidthstring 00.00.0000
26495 Unset: 
26496 \family typewriter
26497 svn propdel svn:needs-lock "<file-name>"
26498 \end_layout
26499
26500 \begin_layout Subsubsection
26501 \begin_inset CommandInset label
26502 LatexCommand label
26503 name "subsec:VCS-Revision-Information"
26504
26505 \end_inset
26506
26507 Revision Information in Documents
26508 \end_layout
26509
26510 \begin_layout Standard
26511 There are more possibilities how to activate revision information in our
26512  document.
26513 \end_layout
26514
26515 \begin_layout Itemize
26516 \SpecialChar LyX
26517  supports directly:
26518 \end_layout
26519
26520 \begin_deeper
26521 \begin_layout Itemize
26522 tree revision information (
26523 \begin_inset Flex Code
26524 status collapsed
26525
26526 \begin_layout Plain Layout
26527 vcs-tree-revision
26528 \end_layout
26529
26530 \end_inset
26531
26532 ).
26533  The result is the output of the 
26534 \begin_inset Flex Code
26535 status collapsed
26536
26537 \begin_layout Plain Layout
26538 svnversion
26539 \end_layout
26540
26541 \end_inset
26542
26543  command, the following table gives you an idea, how to read the results.
26544 \end_layout
26545
26546 \begin_layout Standard
26547 \align center
26548 \begin_inset Tabular
26549 <lyxtabular version="3" rows="6" columns="2">
26550 <features tabularvalignment="middle">
26551 <column alignment="left" valignment="top">
26552 <column alignment="left" valignment="top">
26553 <row>
26554 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26555 \begin_inset Text
26556
26557 \begin_layout Plain Layout
26558
26559 \series bold
26560 Output
26561 \end_layout
26562
26563 \end_inset
26564 </cell>
26565 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26566 \begin_inset Text
26567
26568 \begin_layout Plain Layout
26569
26570 \series bold
26571 Meaning
26572 \end_layout
26573
26574 \end_inset
26575 </cell>
26576 </row>
26577 <row>
26578 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26579 \begin_inset Text
26580
26581 \begin_layout Plain Layout
26582 4123:4168
26583 \end_layout
26584
26585 \end_inset
26586 </cell>
26587 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26588 \begin_inset Text
26589
26590 \begin_layout Plain Layout
26591 mixed revision working copy
26592 \end_layout
26593
26594 \end_inset
26595 </cell>
26596 </row>
26597 <row>
26598 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26599 \begin_inset Text
26600
26601 \begin_layout Plain Layout
26602 4168M
26603 \end_layout
26604
26605 \end_inset
26606 </cell>
26607 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26608 \begin_inset Text
26609
26610 \begin_layout Plain Layout
26611 modified working copy
26612 \end_layout
26613
26614 \end_inset
26615 </cell>
26616 </row>
26617 <row>
26618 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26619 \begin_inset Text
26620
26621 \begin_layout Plain Layout
26622 4123S
26623 \end_layout
26624
26625 \end_inset
26626 </cell>
26627 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26628 \begin_inset Text
26629
26630 \begin_layout Plain Layout
26631 switched working copy
26632 \end_layout
26633
26634 \end_inset
26635 </cell>
26636 </row>
26637 <row>
26638 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26639 \begin_inset Text
26640
26641 \begin_layout Plain Layout
26642 4123P
26643 \end_layout
26644
26645 \end_inset
26646 </cell>
26647 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26648 \begin_inset Text
26649
26650 \begin_layout Plain Layout
26651 partial working copy, from a sparse checkout
26652 \end_layout
26653
26654 \end_inset
26655 </cell>
26656 </row>
26657 <row>
26658 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26659 \begin_inset Text
26660
26661 \begin_layout Plain Layout
26662 4123:4168MS
26663 \end_layout
26664
26665 \end_inset
26666 </cell>
26667 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26668 \begin_inset Text
26669
26670 \begin_layout Plain Layout
26671 mixed revision, modified, switched working copy
26672 \end_layout
26673
26674 \end_inset
26675 </cell>
26676 </row>
26677 </lyxtabular>
26678
26679 \end_inset
26680
26681
26682 \end_layout
26683
26684 \begin_layout Itemize
26685 file revision information.
26686  The result comes from parsing the output of 
26687 \begin_inset Flex Code
26688 status collapsed
26689
26690 \begin_layout Plain Layout
26691 svn
26692 \begin_inset space ~
26693 \end_inset
26694
26695 info
26696 \begin_inset space ~
26697 \end_inset
26698
26699 --xml
26700 \begin_inset space ~
26701 \end_inset
26702
26703 file.lyx
26704 \end_layout
26705
26706 \end_inset
26707
26708 .
26709  Supported flags are:
26710 \end_layout
26711
26712 \begin_deeper
26713 \begin_layout Itemize
26714 version number of the last commit (
26715 \begin_inset Flex Code
26716 status collapsed
26717
26718 \begin_layout Plain Layout
26719 vcs-revision
26720 \end_layout
26721
26722 \end_inset
26723
26724 )
26725 \end_layout
26726
26727 \begin_layout Itemize
26728 author of the last commit (
26729 \begin_inset Flex Code
26730 status collapsed
26731
26732 \begin_layout Plain Layout
26733 vcs-author
26734 \end_layout
26735
26736 \end_inset
26737
26738 )
26739 \end_layout
26740
26741 \begin_layout Itemize
26742 date of the last commit (
26743 \begin_inset Flex Code
26744 status collapsed
26745
26746 \begin_layout Plain Layout
26747 vcs-date
26748 \end_layout
26749
26750 \end_inset
26751
26752 )
26753 \end_layout
26754
26755 \begin_layout Itemize
26756 time of the last commit (
26757 \begin_inset Flex Code
26758 status collapsed
26759
26760 \begin_layout Plain Layout
26761 vcs-time
26762 \end_layout
26763
26764 \end_inset
26765
26766 )
26767 \end_layout
26768
26769 \end_deeper
26770 \begin_layout Standard
26771 You can obtain this info via InsetInfo (
26772 \change_inserted 5863208 1564400022
26773
26774 \lang american
26775 Insert\SpecialChar menuseparator
26776 Field\SpecialChar menuseparator
26777 Version Control Revision
26778 \change_deleted 5863208 1564399852
26779
26780 \lang english
26781 e.g.
26782  
26783 \begin_inset Flex Code
26784 status collapsed
26785
26786 \begin_layout Plain Layout
26787 info-insert buffer vcs-date
26788 \end_layout
26789
26790 \end_inset
26791
26792
26793 \change_unchanged
26794 ).
26795  The information will be available only when you have the file stored under
26796  svn managment (i.e.
26797  the 
26798 \begin_inset Flex Code
26799 status collapsed
26800
26801 \begin_layout Plain Layout
26802 .svn
26803 \end_layout
26804
26805 \end_inset
26806
26807  directory is available with your document).
26808 \end_layout
26809
26810 \end_deeper
26811 \begin_layout Itemize
26812 Another—a hacking one—possibility is to use svn keywords
26813 \begin_inset Foot
26814 status collapsed
26815
26816 \begin_layout Plain Layout
26817 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
26818 \end_layout
26819
26820 \end_inset
26821
26822 .
26823  In short – you set file keywords property (e.g.
26824  
26825 \family sans
26826 svn propset svn:keywords 'Rev' file.lyx
26827 \family default
26828 ) and then paste keyword \SpecialChar TeX
26829  code
26830 \begin_inset Foot
26831 status collapsed
26832
26833 \begin_layout Plain Layout
26834 This is an easy way how to ensure that \SpecialChar LyX
26835  won't break the line in the middle
26836  of keyword tag.
26837 \end_layout
26838
26839 \end_inset
26840
26841  tag in your document (e.g.
26842  
26843 \begin_inset Flex Code
26844 status collapsed
26845
26846 \begin_layout Plain Layout
26847 $Rev$
26848 \end_layout
26849
26850 \end_inset
26851
26852 ).
26853  This way svn client will automatically substitute revision number (e.g.
26854  
26855 \begin_inset Flex Code
26856 status collapsed
26857
26858 \begin_layout Plain Layout
26859 $Rev: 59 $
26860 \end_layout
26861
26862 \end_inset
26863
26864 ) after each update and commit.
26865  There are more problems with this approach.
26866  Firstly, the '$' character is used in \SpecialChar TeX
26867  world for math equations, so any
26868  occurence of math formula 
26869 \begin_inset Formula $Rev$
26870 \end_inset
26871
26872  become 
26873 \begin_inset Formula $Rev:59$
26874 \end_inset
26875
26876  in your \SpecialChar LyX
26877  document.
26878  Similarly for other keywords like Id, Date, Author, etc.
26879  Secondly svn output is dependent on your locales, so its very easy that
26880  svn would produce some problematic strings once Date is used.
26881  Thirdly you get the whole 'Rev: 59' string in your document instead of
26882  the plain number.
26883  Until subversion implements user's custom keywords it will be hard to use
26884  this approach reliably or let \SpecialChar LyX
26885  to support it directly.
26886 \end_layout
26887
26888 \begin_layout Subsection
26889 SVN and Windows Environment
26890 \end_layout
26891
26892 \begin_layout Quote
26893 My inclination is to say that if the user cannot figure out the command
26894  line operations on their own fairly quickly, they would be well advised
26895  to use TortoiseSVN.
26896  —P.
26897  A.
26898  Rubin
26899 \end_layout
26900
26901 \begin_layout Subsubsection
26902 Preparation
26903 \end_layout
26904
26905 \begin_layout Standard
26906 In addition to installing \SpecialChar LyX
26907 , and having access to a Subversion repository,
26908  the user will need to install the Subversion client program.
26909  A Windows installer for the client program is available from 
26910 \begin_inset CommandInset href
26911 LatexCommand href
26912 name "CollabNet"
26913 target "http://www.collab.net/nonav/downloads/subversion/"
26914 literal "false"
26915
26916 \end_inset
26917
26918 .
26919  The user may also want to install 
26920 \begin_inset CommandInset href
26921 LatexCommand href
26922 name "TortoiseSVN"
26923 target "http://tortoisesvn.tigris.org/"
26924 literal "false"
26925
26926 \end_inset
26927
26928 , which integrates Subversion operations into the context (rightclick) menu
26929  of Windows Explorer.
26930  Operations done outside \SpecialChar LyX
26931  will typically be more convenient using the Explorer
26932  context menu.
26933  Note that TortoiseSVN is not a replacement for the client program, which
26934  is what \SpecialChar LyX
26935  itself will use.
26936 \end_layout
26937
26938 \begin_layout Subsubsection
26939 Bringing a document under Subversion control
26940 \end_layout
26941
26942 \begin_layout Standard
26943 Before a \SpecialChar LyX
26944  document can be brought under version control in Subversion, its
26945  parent directory needs to be under version control.
26946  If the document is being added to a project already in the repository,
26947  this is accomplished by checking the project out to the directory where
26948  the new document will be placed.
26949  If the project itself is not yet under version control (for instance, if
26950  this document starts a new project), the directory must be imported into
26951  the repository.
26952  This is done outside \SpecialChar LyX
26953 .
26954  Both import and checkout are easily accomplished from the Explorer context
26955  menu using TortoiseSVN, or alternatively can be done using the command
26956  line client at a DOS prompt.
26957  The procedure for importing the project using TortoiseSVN is described
26958  below, assuming an existing repository and a new project being started
26959  in 
26960 \family typewriter
26961 C:
26962 \backslash
26963 new project
26964 \family default
26965 .
26966  For information on using the Subversion client program, run 
26967 \family typewriter
26968 svn --help 
26969 \family default
26970 in a DOS shell.
26971 \end_layout
26972
26973 \begin_layout Enumerate
26974 Locate 
26975 \family typewriter
26976 C:
26977 \backslash
26978 new project 
26979 \family default
26980 in Windows Explorer, right click it, and select 
26981 \family sans
26982 TortoiseSVN\SpecialChar menuseparator
26983 Repo-browser
26984 \family default
26985 .
26986  If necessary, adjust the URL for the repository, then click OK.
26987 \end_layout
26988
26989 \begin_layout Enumerate
26990 Right click the level of the repository under which you want to place the
26991  new project folder (typically the top level) and click 
26992 \family sans
26993 Create folder
26994 \family default
26995  Supply a name for the project folder and click OK.
26996  Add a message for the log file if desired, then click OK again.
26997  The new project folder should appear in the repository.
26998  Finally, click OK again to exit the repository browser.
26999 \end_layout
27000
27001 \begin_layout Enumerate
27002 Once again right click 
27003 \family typewriter
27004 C:
27005 \backslash
27006 new project
27007 \family default
27008 , this time selecting SVN Checkout\SpecialChar ldots
27009  Select the URL of the project folder
27010  you just created in the repository, and set the checkout directory to 
27011 \family typewriter
27012 C:
27013 \backslash
27014 new project.
27015
27016 \family default
27017  Click OK.
27018  You will be warned about a non-empty folder; click OK to proceed.
27019  You should now have a 
27020 \family typewriter
27021 .svn
27022 \family default
27023  directory under 
27024 \family typewriter
27025 C:
27026 \backslash
27027 new project.
27028 \end_layout
27029
27030 \begin_layout Enumerate
27031 Create or open your document in \SpecialChar LyX
27032  and click 
27033 \family sans
27034 File\SpecialChar menuseparator
27035 Version
27036 \begin_inset space ~
27037 \end_inset
27038
27039 Control\SpecialChar menuseparator
27040 Register.
27041  
27042 \family default
27043 Add a log message and click OK to commit the document to version control.
27044 \end_layout
27045
27046 \begin_layout Standard
27047 From this point onward, you should have full functionality in the 
27048 \family sans
27049 File\SpecialChar menuseparator
27050 Version
27051 \begin_inset space ~
27052 \end_inset
27053
27054 Control
27055 \family default
27056  menu.
27057  You also have the option of checking the document in and out, viewing its
27058  history, etc.
27059  using the TortoiseSVN context menu in Windows Explorer or the Subversion
27060  client program from a command prompt.
27061 \end_layout
27062
27063 \begin_layout Subsubsection
27064 SSH tunnel used with SVN under Windows
27065 \end_layout
27066
27067 \begin_layout Standard
27068 Compared with Linux setting up an svn client to communicate over ssh under
27069  Windows is a rather troublesome task.
27070  We will at least offer some hints how to setup the client side but prior
27071  knowledge about ssh and the Windows command line is needed, also be prepared
27072  for a great deal of frustration\SpecialChar ldots
27073
27074 \end_layout
27075
27076 \begin_layout Enumerate
27077 Get an svn client for windows, as described in the previous sections.
27078  When it is a fresh install run some svn command (e.g.
27079  
27080 \begin_inset Flex Code
27081 status collapsed
27082
27083 \begin_layout Plain Layout
27084 svn --version
27085 \end_layout
27086
27087 \end_inset
27088
27089 ) to create config files, which you will need to change later on.
27090 \end_layout
27091
27092 \begin_layout Enumerate
27093 Choose an ssh client for Windows.
27094  There are several possibilities, we will use the one from Putty tools
27095 \begin_inset Foot
27096 status collapsed
27097
27098 \begin_layout Plain Layout
27099 \begin_inset Flex URL
27100 status collapsed
27101
27102 \begin_layout Plain Layout
27103
27104 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
27105 \end_layout
27106
27107 \end_inset
27108
27109
27110 \end_layout
27111
27112 \end_inset
27113
27114 .
27115  You will need to set the connection up so that the client doesn't ask for
27116  any password from you.
27117  To keep things easy we will use only keys without any additional password
27118  protection etc.
27119 \end_layout
27120
27121 \begin_deeper
27122 \begin_layout Enumerate
27123 Generate keys by 
27124 \begin_inset Flex Code
27125 status collapsed
27126
27127 \begin_layout Plain Layout
27128 puttygen
27129 \end_layout
27130
27131 \end_inset
27132
27133 .
27134  Save your private .ppk key file and put the public one on the server side.
27135  If the SVN server runs on Linux, note that the format of the public key
27136  is not compatible with Linux openssh and you will need to direcly copy-paste
27137  the key from the 
27138 \begin_inset Quotes eld
27139 \end_inset
27140
27141
27142 \emph on
27143 Public key for pasting into OpenSSH authorized_keys file
27144 \emph default
27145 :
27146 \begin_inset Quotes erd
27147 \end_inset
27148
27149  edit field into the server's 
27150 \begin_inset Flex Code
27151 status collapsed
27152
27153 \begin_layout Plain Layout
27154 ~/.ssh/authorized_keys
27155 \end_layout
27156
27157 \end_inset
27158
27159  / 
27160 \begin_inset Flex Code
27161 status collapsed
27162
27163 \begin_layout Plain Layout
27164 authorized_keys2
27165 \end_layout
27166
27167 \end_inset
27168
27169  file.
27170 \end_layout
27171
27172 \begin_layout Enumerate
27173 Get the Putty's 
27174 \begin_inset Flex Code
27175 status collapsed
27176
27177 \begin_layout Plain Layout
27178 plink
27179 \end_layout
27180
27181 \end_inset
27182
27183 .
27184  In the SVN config file
27185 \begin_inset Foot
27186 status collapsed
27187
27188 \begin_layout Plain Layout
27189 Exact path depends on Windows version, usually somewhere around 
27190 \begin_inset Flex Code
27191 status collapsed
27192
27193 \begin_layout Plain Layout
27194 c:
27195 \backslash
27196 Documents and Settings
27197 \backslash
27198 user
27199 \backslash
27200 Application Data
27201 \backslash
27202 Subversion
27203 \backslash
27204 config
27205 \end_layout
27206
27207 \end_inset
27208
27209  / 
27210 \begin_inset Flex Code
27211 status collapsed
27212
27213 \begin_layout Plain Layout
27214 AppData
27215 \backslash
27216 Roaming
27217 \backslash
27218 Subversion
27219 \end_layout
27220
27221 \end_inset
27222
27223 .
27224 \end_layout
27225
27226 \end_inset
27227
27228 , section [tunnels], setup ssh command, e.g.
27229  
27230 \begin_inset Flex Code
27231 status collapsed
27232
27233 \begin_layout Plain Layout
27234 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
27235 \end_layout
27236
27237 \end_inset
27238
27239 .
27240 \begin_inset Foot
27241 status collapsed
27242
27243 \begin_layout Plain Layout
27244 It will usually take a lot of time to get exact command right and it depends
27245  on many things.
27246  For example do not have some remote server saved as a default session in
27247  Putty etc.
27248  If things fail, try to connect via plink without SVN first.
27249 \end_layout
27250
27251 \end_inset
27252
27253
27254 \end_layout
27255
27256 \end_deeper
27257 \begin_layout Enumerate
27258 Checkout the SVN archive, e.
27259 \begin_inset space \thinspace{}
27260 \end_inset
27261
27262 g.
27263 \begin_inset Newline newline
27264 \end_inset
27265
27266
27267 \begin_inset Flex Code
27268 status collapsed
27269
27270 \begin_layout Plain Layout
27271 svn co svn+ssh://user@server/repository_path
27272 \end_layout
27273
27274 \end_inset
27275
27276 .
27277 \end_layout
27278
27279 \begin_layout Subsubsection
27280 End-of-Line Conversions
27281 \end_layout
27282
27283 \begin_layout Standard
27284 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
27285  will
27286  use different line endings inside the .lyx files.
27287  This is not a problem as far as \SpecialChar LyX
27288  functionality is concerned, but the commit
27289  diffs will be huge and merge-conflicts prone.
27290  Fortunately SVN itself knows
27291 \begin_inset Foot
27292 status collapsed
27293
27294 \begin_layout Plain Layout
27295 \begin_inset Flex URL
27296 status collapsed
27297
27298 \begin_layout Plain Layout
27299
27300 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
27301 \end_layout
27302
27303 \end_inset
27304
27305
27306 \end_layout
27307
27308 \end_inset
27309
27310  how to deal with CR/LF problems when switching .lyx files to the 
27311 \begin_inset Flex Code
27312 status collapsed
27313
27314 \begin_layout Plain Layout
27315 native
27316 \end_layout
27317
27318 \end_inset
27319
27320  mode.
27321 \begin_inset Foot
27322 status collapsed
27323
27324 \begin_layout Plain Layout
27325 For the lazy guys: 
27326 \begin_inset Flex Code
27327 status collapsed
27328
27329 \begin_layout Plain Layout
27330 svn propset svn:eol-style native FILE_NAME
27331 \end_layout
27332
27333 \end_inset
27334
27335
27336 \end_layout
27337
27338 \end_inset
27339
27340
27341 \end_layout
27342
27343 \begin_layout Subsection
27344 GIT commands in \SpecialChar LyX
27345
27346 \end_layout
27347
27348 \begin_layout Standard
27349 A minimal subset of GIT commands is now supported by \SpecialChar LyX
27350 .
27351  You can find the commands in the 
27352 \family sans
27353 File\SpecialChar menuseparator
27354 Version
27355 \begin_inset space ~
27356 \end_inset
27357
27358 Control
27359 \family default
27360  submenu.
27361  Please note that if you use password protected access to repository via
27362  ssh, you will be asked in terminal window.
27363  \SpecialChar LyX
27364  was tested against GIT 1.7.
27365 \begin_inset Foot
27366 status collapsed
27367
27368 \begin_layout Plain Layout
27369 Windows users please note that you need to ensure that git is on the path.
27370  This can be set from within \SpecialChar LyX
27371  at 
27372 \family sans
27373 Tools\SpecialChar menuseparator
27374 Preferences\SpecialChar menuseparator
27375 Paths\SpecialChar menuseparator
27376 PATH prefix
27377 \family default
27378 .
27379 \end_layout
27380
27381 \end_inset
27382
27383
27384 \end_layout
27385
27386 \begin_layout Standard
27387 One big difference of GIT and the other supported version control systems
27388  is the distributed nature of GIT: With traditional version control systems
27389  there is one central server which hosts the repository.
27390  Users commit their changes to the server, and get updates made by other
27391  users from it.
27392  With GIT, users commit to a local repository.
27393  The local repository can be synchronized with one or more remote repositories
27394  using the 
27395 \begin_inset Flex Code
27396 status collapsed
27397
27398 \begin_layout Plain Layout
27399 pull
27400 \end_layout
27401
27402 \end_inset
27403
27404  and 
27405 \begin_inset Flex Code
27406 status collapsed
27407
27408 \begin_layout Plain Layout
27409 push
27410 \end_layout
27411
27412 \end_inset
27413
27414  GIT commands.
27415  \SpecialChar LyX
27416  does not interact in any way with remote GIT repositories.
27417  It works exclusively with the local repository in a very similar way as
27418  with a central CVS or SVN repository.
27419  If you use remote GIT repositories you need to do the 
27420 \begin_inset Flex Code
27421 status collapsed
27422
27423 \begin_layout Plain Layout
27424 pull
27425 \end_layout
27426
27427 \end_inset
27428
27429  and 
27430 \begin_inset Flex Code
27431 status collapsed
27432
27433 \begin_layout Plain Layout
27434 push
27435 \end_layout
27436
27437 \end_inset
27438
27439  operations with your favourite GIT client.
27440 \end_layout
27441
27442 \begin_layout Subsubsection
27443
27444 \family sans
27445 Register
27446 \end_layout
27447
27448 \begin_layout Standard
27449 If your document is not under revision control, this is the only item shown
27450  in the menu.
27451  And if it is under revision control, the 
27452 \family sans
27453 Register
27454 \family default
27455  item is not visible.
27456 \end_layout
27457
27458 \begin_layout Standard
27459 This command registers in GIT your document ONLY in case you have already
27460  the documents directory under GIT control (in particular 
27461 \family typewriter
27462 .git/index
27463 \family default
27464  file exists).
27465  This means you have to checkout the archive by yourself.
27466 \end_layout
27467
27468 \begin_layout Standard
27469 Then you are asked interactively to supply an initial description of the
27470  document.
27471  Don't forget that registered file is not yet committed.
27472 \end_layout
27473
27474 \begin_layout Standard
27475 GIT command that is run: 
27476 \family typewriter
27477 git add 
27478 \begin_inset Quotes qld
27479 \end_inset
27480
27481 <file-name>
27482 \begin_inset Quotes qld
27483 \end_inset
27484
27485
27486 \end_layout
27487
27488 \begin_layout Standard
27489 Read 
27490 \family typewriter
27491 man git
27492 \family default
27493  to understand the switches.
27494 \end_layout
27495
27496 \begin_layout Subsubsection
27497
27498 \family sans
27499 Check In Changes
27500 \end_layout
27501
27502 \begin_layout Standard
27503 When you are finished editing a file, you commit your changes.
27504  When you do this, you are asked for a description of the changes.
27505  After that changes are committed.
27506 \end_layout
27507
27508 \begin_layout Standard
27509 GIT command: 
27510 \family typewriter
27511 git commit -q -m"<description>" <file-name>
27512 \end_layout
27513
27514 \begin_layout Subsubsection
27515
27516 \family sans
27517 Revert To Repository Version
27518 \end_layout
27519
27520 \begin_layout Standard
27521 This will discard all changes made to the document since the last check
27522  in.
27523  You get a warning before changes are discarded.
27524 \end_layout
27525
27526 \begin_layout Standard
27527 GIT command: 
27528 \family typewriter
27529 git checkout -q 
27530 \begin_inset Quotes qld
27531 \end_inset
27532
27533 <file-name>
27534 \begin_inset Quotes qld
27535 \end_inset
27536
27537
27538 \end_layout
27539
27540 \begin_layout Subsubsection
27541
27542 \family sans
27543 Rename
27544 \end_layout
27545
27546 \begin_layout Standard
27547 This will rename the current document including the version history.
27548  It requires a clean document without any changes since the last checkin.
27549  You are asked for a file name and a description of the rename operation.
27550  After that the document is renamed, both locally and in the repository.
27551  If the parent directories of the new and old file names differ, all relative
27552  paths of included files are adjusted (like in 
27553 \family sans
27554 File\SpecialChar menuseparator
27555 Save As
27556 \family default
27557 \SpecialChar ldots
27558 ).
27559  Finally, the document is reloaded using the new name.
27560 \end_layout
27561
27562 \begin_layout Labeling
27563 \labelwidthstring 00.00.0000
27564 GIT
27565 \begin_inset space ~
27566 \end_inset
27567
27568 commands: 
27569 \begin_inset space ~
27570 \end_inset
27571
27572
27573 \begin_inset Newline newline
27574 \end_inset
27575
27576
27577 \begin_inset Flex Code
27578 status collapsed
27579
27580 \begin_layout Plain Layout
27581 git mv 
27582 \family typewriter
27583
27584 \begin_inset Quotes qld
27585 \end_inset
27586
27587 <file-name>
27588 \begin_inset Quotes qld
27589 \end_inset
27590
27591  
27592 \begin_inset Quotes qld
27593 \end_inset
27594
27595 <new-file-name>
27596 \begin_inset Quotes qld
27597 \end_inset
27598
27599
27600 \end_layout
27601
27602 \end_inset
27603
27604
27605 \begin_inset Newline newline
27606 \end_inset
27607
27608
27609 \begin_inset Flex Code
27610 status collapsed
27611
27612 \begin_layout Plain Layout
27613 git commit
27614 \end_layout
27615
27616 \end_inset
27617
27618
27619 \end_layout
27620
27621 \begin_layout Subsubsection
27622
27623 \family sans
27624 Show History
27625 \end_layout
27626
27627 \begin_layout Standard
27628 This shows the complete history of the GIT document.
27629  The output of 
27630 \family typewriter
27631 git log 
27632 \begin_inset Quotes qld
27633 \end_inset
27634
27635 <file-name>
27636 \begin_inset Quotes qld
27637 \end_inset
27638
27639
27640 \family default
27641  is shown in a browser.
27642 \end_layout
27643
27644 \begin_layout Subsubsection
27645 Version Info
27646 \end_layout
27647
27648 \begin_layout Standard
27649 \SpecialChar LyX
27650  supports GIT hash number of the last commit to the file, 
27651 \change_inserted 1119979965 1564297456
27652 its abbreviated form, 
27653 \change_unchanged
27654 author name, date and time of last commit.
27655  All those are extracted from 
27656 \family typewriter
27657 git log -n 1 --pretty=format:%H%n
27658 \change_inserted 1119979965 1564297427
27659 %h%n
27660 \change_unchanged
27661 %an%n%ai
27662 \family default
27663 .
27664  Tree version information is obtained via 
27665 \family typewriter
27666 git describe --abbrev --dirty --long
27667 \family default
27668 .
27669  See 
27670 \begin_inset CommandInset ref
27671 LatexCommand ref
27672 reference "subsec:VCS-Revision-Information"
27673
27674 \end_inset
27675
27676  for other details.
27677 \end_layout
27678
27679 \begin_layout Subsection
27680 Further tuning
27681 \end_layout
27682
27683 \begin_layout Standard
27684 With the recent addition of the 
27685 \begin_inset Flex Code
27686 status collapsed
27687
27688 \begin_layout Plain Layout
27689 vc-command
27690 \end_layout
27691
27692 \end_inset
27693
27694  function \SpecialChar LyX
27695  power users are allowed to create their own commands for revision
27696  control.
27697 \end_layout
27698
27699 \begin_layout Standard
27700 As an example you can see how two TortoiseSVN commands could be integrated
27701  directly:
27702 \end_layout
27703
27704 \begin_layout Description
27705 Commit: 
27706 \begin_inset Flex Code
27707 status collapsed
27708
27709 \begin_layout Plain Layout
27710 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
27711 \end_layout
27712
27713 \end_inset
27714
27715
27716 \end_layout
27717
27718 \begin_layout Description
27719 Revert: 
27720 \begin_inset Flex Code
27721 status collapsed
27722
27723 \begin_layout Plain Layout
27724 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
27725 \end_layout
27726
27727 \end_inset
27728
27729
27730 \end_layout
27731
27732 \begin_layout Subsection
27733 Version control and Document comparison
27734 \end_layout
27735
27736 \begin_layout Standard
27737 One of the typical uses of version control is to inspect the changes between
27738  revisions, usually by creating 
27739 \begin_inset Flex Code
27740 status collapsed
27741
27742 \begin_layout Plain Layout
27743 diff
27744 \end_layout
27745
27746 \end_inset
27747
27748  dumps.
27749  While this is useful for plain text files, it is much less useful in the
27750  case of \SpecialChar LyX
27751  files, which have more a complicated structure.
27752  Hence we provide binding to the Document comparison feature.
27753  There are two ways of calling this feature – either by direct call of 
27754 \begin_inset Flex Code
27755 status collapsed
27756
27757 \begin_layout Plain Layout
27758 vc-compare
27759 \end_layout
27760
27761 \end_inset
27762
27763  \SpecialChar LyX
27764  function (for details see \SpecialChar LyX
27765  functions manual) or by the toolbar icon 
27766 \begin_inset Info
27767 type  "icon"
27768 arg   "vc-compare"
27769 \end_inset
27770
27771  or the menu item 
27772 \begin_inset Info
27773 type  "menu"
27774 arg   "vc-compare"
27775 \end_inset
27776
27777 , respectively.
27778  One can either compare two chosen revisions of the document or he can simply
27779  compare the current version of edited text with older revisions (where
27780  '
27781 \begin_inset Flex Noun
27782 status collapsed
27783
27784 \begin_layout Plain Layout
27785 0
27786 \end_layout
27787
27788 \end_inset
27789
27790 ' revisions back means comparison of the edited file with last commited
27791  revision).
27792  
27793 \end_layout
27794
27795 \begin_layout Standard
27796 This feature is supported for SVN and RCS though due to the more complicated
27797  versioning scheme of RCS there is a constraint – when addressing the revisions
27798  in dialog, numbers always point to the last number in RCS revision number,
27799  i.e.
27800  '35' in '1.2.35'.
27801  We don't currently support GIT addressing of revisions, one can just compare
27802  edited document with its revision X steps backs, where X is addressed as
27803  
27804 \begin_inset Flex Code
27805 status collapsed
27806
27807 \begin_layout Plain Layout
27808 HEAD~X
27809 \end_layout
27810
27811 \end_inset
27812
27813 .
27814 \end_layout
27815
27816 \begin_layout Section
27817 Literate Programming
27818 \end_layout
27819
27820 \begin_layout Standard
27821 Updated by 
27822 \noun on
27823 Kayvan Sylvan 
27824 \noun default
27825 (kayvan@sylvan.com)
27826 \noun on
27827
27828 \noun default
27829 original documentation written by 
27830 \noun on
27831 Edmar Wienskoski Jr.
27832
27833 \noun default
27834  (edmar-w-jr@technologist.com)
27835 \end_layout
27836
27837 \begin_layout Subsection
27838 Introduction
27839 \end_layout
27840
27841 \begin_layout Standard
27842 The main purpose of this documentation is to show you how to use \SpecialChar LyX
27843  for literate
27844  programming, where it is assumed that you are familiar with this programming
27845  technique, and know what 
27846 \begin_inset Quotes eld
27847 \end_inset
27848
27849 tangling
27850 \begin_inset Quotes erd
27851 \end_inset
27852
27853  and 
27854 \begin_inset Quotes eld
27855 \end_inset
27856
27857 weaving
27858 \begin_inset Quotes erd
27859 \end_inset
27860
27861  means.
27862  If that is not the case, please follow the web links provided in the following
27863  sections.
27864  There is a lot of good documentation out there covering old development
27865  history to the latest tools tips.
27866 \end_layout
27867
27868 \begin_layout Standard
27869 It is also assumed that you are familiar with \SpecialChar LyX
27870  itself to a point that you
27871  are comfortable changing your \SpecialChar LyX
27872  preferences, and X resources file.
27873  If that is not the case please refer to other \SpecialChar LyX
27874  documentation to cover your
27875  specific needs.
27876 \end_layout
27877
27878 \begin_layout Subsection
27879 Literate Programming
27880 \end_layout
27881
27882 \begin_layout Standard
27883 From the Literate Programming FAQ: 
27884 \end_layout
27885
27886 \begin_layout Quotation
27887 Literate programming is the combination of documentation and source together
27888  in a fashion suited for reading by human beings.
27889  In fact, literate programs should be enjoyable reading, even inviting!
27890  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
27891  and documentation in a single file.
27892  Literate programming tools then parse the file to produce either readable
27893  documentation or compilable source.
27894  The WEB style of literate programming was created by D.
27895 \begin_inset space \thinspace{}
27896 \end_inset
27897
27898 E.
27899  Knuth during the development of his \SpecialChar TeX
27900  typesetting software.
27901  
27902 \end_layout
27903
27904 \begin_layout Standard
27905 Another excerpt says:
27906 \end_layout
27907
27908 \begin_layout Quotation
27909
27910 \emph on
27911 How is literate programming different from verbose commenting?
27912 \end_layout
27913
27914 \begin_layout Quotation
27915 There are three distinguishing characteristics.
27916  In order of importance, they are: 
27917 \end_layout
27918
27919 \begin_deeper
27920 \begin_layout Itemize
27921 flexible order of elaboration 
27922 \end_layout
27923
27924 \begin_layout Itemize
27925 automatic support for browsing 
27926 \end_layout
27927
27928 \begin_layout Itemize
27929 typeset documentation, especially diagrams and mathematics 
27930 \end_layout
27931
27932 \end_deeper
27933 \begin_layout Standard
27934 Now that I sparked your curiosity, take a look in the references.
27935 \end_layout
27936
27937 \begin_layout Subsubsection
27938 References
27939 \end_layout
27940
27941 \begin_layout Standard
27942 The complete Literate Programming FAQ can be found at:
27943 \end_layout
27944
27945 \begin_layout Quote
27946 Literate Programming FAQ 
27947 \begin_inset Flex URL
27948 status open
27949
27950 \begin_layout Plain Layout
27951
27952 http://www.literateprogramming.com/lpfaq.pdf
27953 \end_layout
27954
27955 \end_inset
27956
27957
27958 \end_layout
27959
27960 \begin_layout Standard
27961 The FAQ lists 23 (twenty three!) different literate programming tools.
27962  Where some are specialized or 
27963 \begin_inset Quotes eld
27964 \end_inset
27965
27966 tailored
27967 \begin_inset Quotes erd
27968 \end_inset
27969
27970  for particular programming languages, while other have general scope.
27971  I selected 
27972 \noun on
27973 Noweb
27974 \noun default
27975  for my own use for several reasons:
27976 \end_layout
27977
27978 \begin_layout Itemize
27979 It can generate the documentation either in \SpecialChar LaTeX
27980  or HTML.
27981 \end_layout
27982
27983 \begin_layout Itemize
27984 It has a open architecture, i.
27985 \begin_inset space \thinspace{}
27986 \end_inset
27987
27988 e.
27989 \begin_inset space \space{}
27990 \end_inset
27991
27992 it is easy to plug in new filters
27993 \begin_inset Foot
27994 status collapsed
27995
27996 \begin_layout Plain Layout
27997
27998 \emph on
27999 Filters 
28000 \emph default
28001 are programs that read a given data stream and output a manipulated data
28002  stream.
28003  That way, a WEB file (consisting of literate code) can be turned into a
28004  file consisting only of C program code or \SpecialChar LaTeX
28005  code.
28006 \end_layout
28007
28008 \end_inset
28009
28010  and to perform special processing that you may need.
28011  
28012 \end_layout
28013
28014 \begin_layout Itemize
28015 There is a good selection of filters available already (the HTML is one
28016  of them).
28017 \end_layout
28018
28019 \begin_layout Itemize
28020 It is free.
28021 \end_layout
28022
28023 \begin_layout Standard
28024 The Noweb web page can be found at: 
28025 \end_layout
28026
28027 \begin_layout Quote
28028 Noweb home page 
28029 \begin_inset Flex URL
28030 status collapsed
28031
28032 \begin_layout Plain Layout
28033
28034 https://www.cs.tufts.edu/~nr/noweb/
28035 \end_layout
28036
28037 \end_inset
28038
28039
28040 \end_layout
28041
28042 \begin_layout Standard
28043 Starting from there you can reach many other interesting links and even
28044  some literate program examples.
28045 \end_layout
28046
28047 \begin_layout Subsection
28048 \SpecialChar LyX
28049  and Literate Programming with Noweb
28050 \end_layout
28051
28052 \begin_layout Standard
28053 The \SpecialChar LyX
28054  support for Literate Programming is provided by using the generic \SpecialChar LyX
28055
28056  converters mechanism.
28057  This support is provided in a 
28058 \begin_inset Quotes eld
28059 \end_inset
28060
28061 Noweb independent
28062 \begin_inset Quotes erd
28063 \end_inset
28064
28065  way, i.
28066 \begin_inset space \thinspace{}
28067 \end_inset
28068
28069 e.
28070 \begin_inset space \space{}
28071 \end_inset
28072
28073 you will be able to use this new \SpecialChar LyX
28074  feature with some other literate programming
28075  tool of your choice by just changing your \SpecialChar LyX
28076  preferences.
28077 \end_layout
28078
28079 \begin_layout Subsubsection
28080 Generating documents and code (weaving and tangling)
28081 \end_layout
28082
28083 \begin_layout Paragraph
28084 Using the noweb module
28085 \end_layout
28086
28087 \begin_layout Standard
28088 If you have installed Noweb and \SpecialChar LyX
28089  successfully, whenever you open a new document,
28090  after you have chosen its document class, use the 
28091 \family sans
28092 Document\SpecialChar menuseparator
28093 Settings
28094 \family default
28095  menu to add the 
28096 \begin_inset Quotes eld
28097 \end_inset
28098
28099 noweb
28100 \begin_inset Quotes erd
28101 \end_inset
28102
28103  module.
28104  If Noweb is correctly installed, when you click on the 
28105 \begin_inset Quotes eld
28106 \end_inset
28107
28108 Modules
28109 \begin_inset Quotes erd
28110 \end_inset
28111
28112  link, you will see the 
28113 \begin_inset Quotes eld
28114 \end_inset
28115
28116 noweb
28117 \begin_inset Quotes erd
28118 \end_inset
28119
28120  module in the available list and you can add it to your document.
28121 \end_layout
28122
28123 \begin_layout Paragraph
28124 Typing code in
28125 \end_layout
28126
28127 \begin_layout Standard
28128 \SpecialChar LyX
28129  enables you to write code with a custom inset named 
28130 \begin_inset Flex Noun
28131 status collapsed
28132
28133 \begin_layout Plain Layout
28134 Chunk
28135 \end_layout
28136
28137 \end_inset
28138
28139 .
28140  Noweb delimits chunks like this:
28141 \end_layout
28142
28143 \begin_layout LyX-Code
28144 <<My code>>=
28145 \end_layout
28146
28147 \begin_layout LyX-Code
28148   code
28149 \end_layout
28150
28151 \begin_layout LyX-Code
28152   more code
28153 \end_layout
28154
28155 \begin_layout LyX-Code
28156   even more code
28157 \end_layout
28158
28159 \begin_layout LyX-Code
28160   @
28161 \end_layout
28162
28163 \begin_layout Standard
28164 The problem is that whatever is written in between the << and the 
28165 \family typewriter
28166 @
28167 \family default
28168  must be taken literally, i.
28169 \begin_inset space \thinspace{}
28170 \end_inset
28171
28172 e.
28173 \begin_inset space \space{}
28174 \end_inset
28175
28176 \SpecialChar LyX
28177  should be prevented from making any special interpretation of what has
28178  been written.
28179  This is also handled by 
28180 \begin_inset Flex Noun
28181 status collapsed
28182
28183 \begin_layout Plain Layout
28184 Chunk
28185 \end_layout
28186
28187 \end_inset
28188
28189 , that works like a normal text inset but has a free spacing capability.
28190 \end_layout
28191
28192 \begin_layout Standard
28193 As a special note, you can also use the 
28194 \begin_inset Quotes eld
28195 \end_inset
28196
28197 %def
28198 \begin_inset Quotes erd
28199 \end_inset
28200
28201  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
28202 rence:
28203 \end_layout
28204
28205 \begin_layout LyX-Code
28206 <<My chunk>>=
28207 \end_layout
28208
28209 \begin_layout LyX-Code
28210 def some_function(args):
28211 \end_layout
28212
28213 \begin_layout LyX-Code
28214    "This is the doc string for this function."
28215 \end_layout
28216
28217 \begin_layout LyX-Code
28218    print "My args: ", args
28219 \end_layout
28220
28221 \begin_layout LyX-Code
28222 @ %def some_function
28223 \end_layout
28224
28225 \begin_layout Standard
28226 For an example of this usage and the resulting cross-reference output, look
28227  at the Literate python program in 
28228 \emph on
28229 LIBDIR/examples/listerrors.lyx
28230 \emph default
28231  which should make this all clear.
28232 \end_layout
28233
28234 \begin_layout Paragraph
28235 Generating the documentation
28236 \end_layout
28237
28238 \begin_layout Standard
28239 At this point you already have a new document file with a proper document
28240  class, and with some code and text on it.
28241  How do I print it? The answer is simple, you select 
28242 \family sans
28243 View\SpecialChar menuseparator
28244 DVI,
28245 \family default
28246  etc.
28247  Just like you would do for a plain document.
28248  No special procedure is required.
28249 \end_layout
28250
28251 \begin_layout Standard
28252 To help orientate you, I will now explain what happens inside \SpecialChar LyX
28253 :
28254 \end_layout
28255
28256 \begin_layout Enumerate
28257 When the 
28258 \family sans
28259 Update\SpecialChar menuseparator
28260 DVI
28261 \family default
28262  menu option is chosen, a \SpecialChar LaTeX
28263  file is generated.
28264  
28265 \end_layout
28266
28267 \begin_deeper
28268 \begin_layout Standard
28269 If the document is of any literate class the generated file will be named
28270  with an extension name defined by the 
28271 \begin_inset Quotes eld
28272 \end_inset
28273
28274 literate
28275 \begin_inset Quotes erd
28276 \end_inset
28277
28278  format (defined in the Preferences panel), otherwise the file will have
28279  the usual 
28280 \family typewriter
28281 .tex
28282 \family default
28283  extension.
28284 \end_layout
28285
28286 \end_deeper
28287 \begin_layout Enumerate
28288 Note that the only difference so far is in the name of the file, no special
28289  processing is required by \SpecialChar LyX
28290 .
28291  Given that you formatted the code using the 
28292 \begin_inset Flex Noun
28293 status collapsed
28294
28295 \begin_layout Plain Layout
28296 Chunk
28297 \end_layout
28298
28299 \end_inset
28300
28301  inset that, by itself, takes care of the business.
28302 \end_layout
28303
28304 \begin_layout Enumerate
28305 If the document is of any literate class \SpecialChar LyX
28306  will then use the internal \SpecialChar LyX
28307  to
28308  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
28309  converter
28310 \begin_inset Foot
28311 status collapsed
28312
28313 \begin_layout Plain Layout
28314 The converters are defined in the 
28315 \family sans
28316 Tools\SpecialChar menuseparator
28317 Preferences
28318 \family default
28319  panel, under the 
28320 \begin_inset Quotes eld
28321 \end_inset
28322
28323 Conversion
28324 \begin_inset Quotes erd
28325 \end_inset
28326
28327  tab.
28328  See section 
28329 \emph on
28330 Converters
28331 \emph default
28332  of the 
28333 \emph on
28334 Customization
28335 \emph default
28336  manual for general information about converters.
28337 \end_layout
28338
28339 \end_inset
28340
28341  to generate the \SpecialChar LaTeX
28342  file.
28343 \end_layout
28344
28345 \begin_deeper
28346 \begin_layout Standard
28347 Otherwise it will just skip this step.
28348 \end_layout
28349
28350 \end_deeper
28351 \begin_layout Enumerate
28352 Finally, \SpecialChar LaTeX
28353  is invoked and the regular post processing continues as in a plain
28354  document.
28355 \end_layout
28356
28357 \begin_layout Standard
28358 Independence from a particular 
28359 \begin_inset Quotes eld
28360 \end_inset
28361
28362 literate tool
28363 \begin_inset Quotes erd
28364 \end_inset
28365
28366  is easily achieved by changing the commands that are run by the various
28367  converters.
28368 \end_layout
28369
28370 \begin_layout Paragraph
28371 Generating the code
28372 \end_layout
28373
28374 \begin_layout Standard
28375 When the build menu option is chosen or the corresponding button in the
28376  toolbar is pressed, a \SpecialChar LaTeX
28377  file is generated just like step 1 above.
28378  Next, \SpecialChar LyX
28379  invokes the 
28380 \family typewriter
28381 Noweb->Program
28382 \family default
28383  converter.
28384  This converter needs to be defined by the user and is not installed by
28385  default, though the Program format is.
28386  This converter (like any other converter) will have two parts:
28387 \end_layout
28388
28389 \begin_layout Enumerate
28390 The converter program itself.
28391  This program performs the conversion from the one format to the other (in
28392  this case, from the Noweb format to the Program pseudo-format).
28393 \end_layout
28394
28395 \begin_layout Enumerate
28396 The error log parser.
28397  This is a program whose sole purpose is to rewrite error messages in a
28398  format that \SpecialChar LyX
28399  understands.
28400  This makes it possible for \SpecialChar LyX
28401  to place error boxes in the right places in
28402  the file buffer.
28403 \end_layout
28404
28405 \begin_layout Standard
28406 The first part, the 
28407 \begin_inset Quotes eld
28408 \end_inset
28409
28410 Converter
28411 \begin_inset Quotes erd
28412 \end_inset
28413
28414  setting, should be set to
28415 \end_layout
28416
28417 \begin_layout LyX-Code
28418
28419 \family typewriter
28420 build-script $$i
28421 \family default
28422  $$r
28423 \end_layout
28424
28425 \begin_layout Standard
28426 This basically means that \SpecialChar LyX
28427  will call 
28428 \begin_inset Quotes eld
28429 \end_inset
28430
28431 build-script
28432 \begin_inset Quotes erd
28433 \end_inset
28434
28435  (a program or script) with the name of the Noweb file (normally a file
28436  in the \SpecialChar LyX
28437  temp directory) and the directory path of the original \SpecialChar LyX
28438  file.
28439  
28440 \end_layout
28441
28442 \begin_layout Standard
28443 This is an implementation of 
28444 \begin_inset Quotes eld
28445 \end_inset
28446
28447 build-script
28448 \begin_inset Quotes erd
28449 \end_inset
28450
28451  that you can place in a directory on your path:
28452 \end_layout
28453
28454 \begin_layout LyX-Code
28455
28456 \family sans
28457 #!/bin/sh
28458 \end_layout
28459
28460 \begin_layout LyX-Code
28461
28462 \family sans
28463 #
28464 \end_layout
28465
28466 \begin_layout LyX-Code
28467
28468 \family sans
28469 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
28470 \end_layout
28471
28472 \begin_layout Standard
28473 The next part of the converter setting is the 
28474 \begin_inset Quotes eld
28475 \end_inset
28476
28477 Flags
28478 \begin_inset Quotes erd
28479 \end_inset
28480
28481  which is to be set to
28482 \end_layout
28483
28484 \begin_layout LyX-Code
28485
28486 \family typewriter
28487 parselog=$$s/scripts/listerrors
28488 \end_layout
28489
28490 \begin_layout Standard
28491 This will run any errors that are generated by the 
28492 \begin_inset Quotes eld
28493 \end_inset
28494
28495 build-script
28496 \begin_inset Quotes erd
28497 \end_inset
28498
28499  process through the 
28500 \begin_inset Quotes eld
28501 \end_inset
28502
28503 listerrors
28504 \begin_inset Quotes erd
28505 \end_inset
28506
28507  program.
28508 \end_layout
28509
28510 \begin_layout Standard
28511 The build will normally take place in \SpecialChar LyX
28512 's temporary directory, so the files
28513  produced by the conversion will be in that directory.
28514  \SpecialChar LyX
28515  will copy out what it regards as the `main' file, but the 
28516 \family typewriter
28517 Noweb->Program
28518 \family default
28519  conversion may produce several files, and so most of these would then be
28520  deleted when \SpecialChar LyX
28521  was closed.
28522  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
28523  the build-script chunk can place the generated files in that location.
28524 \end_layout
28525
28526 \begin_layout Paragraph
28527 Build instructions in the document
28528 \end_layout
28529
28530 \begin_layout Standard
28531 The last piece of the integration between \SpecialChar LyX
28532  and noweb is the 
28533 \begin_inset Quotes eld
28534 \end_inset
28535
28536 build-script
28537 \begin_inset Quotes erd
28538 \end_inset
28539
28540  chunk.
28541  Generally, the instructions for building your program should be embedded
28542  in a chunk of its own.
28543  The noweb-specific 
28544 \begin_inset Quotes eld
28545 \end_inset
28546
28547 build-script
28548 \begin_inset Quotes erd
28549 \end_inset
28550
28551  above uses the notangle command to look for this chunk (called 
28552 \begin_inset Quotes eld
28553 \end_inset
28554
28555 build-script
28556 \begin_inset Quotes erd
28557 \end_inset
28558
28559 ) and runs its contents through 
28560 \begin_inset Quotes eld
28561 \end_inset
28562
28563 sh
28564 \begin_inset Quotes erd
28565 \end_inset
28566
28567 .
28568 \end_layout
28569
28570 \begin_layout Standard
28571 Typically, such a chunk would look something like this:
28572 \end_layout
28573
28574 \begin_layout LyX-Code
28575 <<build-script>>=
28576 \end_layout
28577
28578 \begin_layout LyX-Code
28579 #!/bin/sh
28580 \begin_inset Newline newline
28581 \end_inset
28582
28583 if [ -z "${NOWEB_SOURCE}" ]
28584 \begin_inset Newline newline
28585 \end_inset
28586
28587 then
28588 \end_layout
28589
28590 \begin_layout LyX-Code
28591 NOWEB_SOURCE=myfile.nw
28592 \begin_inset Newline newline
28593 \end_inset
28594
28595 fi
28596 \begin_inset Newline newline
28597 \end_inset
28598
28599 [...
28600  code to extract files ...
28601  use NOWEB_OUTPUT_DIR here ...]
28602 \begin_inset Newline newline
28603 \end_inset
28604
28605 [...
28606  code to compile files ...]
28607 \begin_inset Newline newline
28608 \end_inset
28609
28610 @
28611 \end_layout
28612
28613 \begin_layout Standard
28614 Look in 
28615 \emph on
28616 LIBDIR/examples/listerrors.lyx
28617 \emph default
28618  or in 
28619 \emph on
28620 LIBDIR/examples/Literate.lyx
28621 \emph default
28622  which implement two versions of the 
28623 \begin_inset Quotes eld
28624 \end_inset
28625
28626 listerrors
28627 \begin_inset Quotes erd
28628 \end_inset
28629
28630  program for some illustrations of how all of these pieces go together or
28631  in 
28632 \emph on
28633 LIBDIR/examples/noweb2lyx.lyx.
28634
28635 \emph default
28636  Interestingly, these three files show off the language-indepence of the
28637  \SpecialChar LyX
28638  literate programming support since they are written in Python, C and Perl
28639  respectively.
28640 \end_layout
28641
28642 \begin_layout Subsubsection
28643 Configuring \SpecialChar LyX
28644
28645 \end_layout
28646
28647 \begin_layout Standard
28648 All the Literate Programming support is configured by the 
28649 \family sans
28650 Tools\SpecialChar menuseparator
28651 Preferences
28652 \family default
28653  panel in the 
28654 \begin_inset Quotes eld
28655 \end_inset
28656
28657 File Handling
28658 \begin_inset Quotes erd
28659 \end_inset
28660
28661  tab.
28662  The important parts are:
28663 \end_layout
28664
28665 \begin_layout Description
28666 the
28667 \begin_inset space ~
28668 \end_inset
28669
28670
28671 \begin_inset Quotes eld
28672 \end_inset
28673
28674 NoWeb
28675 \begin_inset Quotes erd
28676 \end_inset
28677
28678
28679 \begin_inset space ~
28680 \end_inset
28681
28682 format Set up via the File Formats tab, this is where the Noweb-specific
28683  pieces are set up.
28684  The 
28685 \family sans
28686 GUI Name
28687 \family default
28688  is set to 
28689 \family typewriter
28690 NoWeb
28691 \family default
28692 , the file extension is set to 
28693 \family typewriter
28694 .nw
28695 \family default
28696 .
28697  This tells \SpecialChar LyX
28698  to create a file with a 
28699 \family typewriter
28700 .nw
28701 \family default
28702  extension in the first step of the conversion process.
28703 \end_layout
28704
28705 \begin_layout Description
28706 the
28707 \begin_inset space ~
28708 \end_inset
28709
28710
28711 \family sans
28712 Program
28713 \family default
28714
28715 \begin_inset space ~
28716 \end_inset
28717
28718 format This is an empty format whose sole purpose is to be the endpoint
28719  of a conversion (which then allows us to set up a converter for it).
28720 \end_layout
28721
28722 \begin_layout Description
28723
28724 \family sans
28725 NoWeb
28726 \family default
28727 ->
28728 \family sans
28729 \SpecialChar LaTeX
28730
28731 \family default
28732  This converter performs the 
28733 \begin_inset Quotes eld
28734 \end_inset
28735
28736 weaving
28737 \begin_inset Quotes erd
28738 \end_inset
28739
28740  of the literate document.
28741  For Noweb, it is set to 
28742 \begin_inset Quotes eld
28743 \end_inset
28744
28745
28746 \family typewriter
28747 noweave -delay -index $$i > $$o
28748 \family default
28749
28750 \begin_inset Quotes erd
28751 \end_inset
28752
28753
28754 \end_layout
28755
28756 \begin_layout Description
28757
28758 \family sans
28759 NoWeb
28760 \family default
28761 ->
28762 \family sans
28763 Program
28764 \family default
28765  This performs the 
28766 \begin_inset Quotes eld
28767 \end_inset
28768
28769 tangling step
28770 \begin_inset Quotes erd
28771 \end_inset
28772
28773 .
28774  As stated above, the Converter is set to 
28775 \begin_inset Quotes eld
28776 \end_inset
28777
28778
28779 \family typewriter
28780 build-script $$i
28781 \family default
28782  $$r
28783 \begin_inset Quotes erd
28784 \end_inset
28785
28786 , with Flags set to
28787 \begin_inset Newline newline
28788 \end_inset
28789
28790
28791 \begin_inset Quotes eld
28792 \end_inset
28793
28794
28795 \family typewriter
28796 parselog=$$s/scripts/listerrors
28797 \family default
28798
28799 \begin_inset Quotes erd
28800 \end_inset
28801
28802 .
28803 \end_layout
28804
28805 \begin_layout Subsubsection
28806 Debug extensions
28807 \end_layout
28808
28809 \begin_layout Standard
28810 There is also a new function implemented in the \SpecialChar LyX
28811  server, the 
28812 \begin_inset Quotes eld
28813 \end_inset
28814
28815 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
28816  
28817 \end_layout
28818
28819 \begin_layout Standard
28820 When debugging code with ddd/gdb, it is possible to invoke a text editor
28821  at the current execution position with a single key stroke.
28822  The default ddd configuration for that is shift-ctrl-V.
28823  It happens that you can define the editor command line invocation in ddd
28824  by accessing the 
28825 \family sans
28826 Edit\SpecialChar menuseparator
28827 Preferences\SpecialChar menuseparator
28828 Helpers
28829 \family default
28830  dialog and changing the "Edit Sources" entry.
28831 \end_layout
28832
28833 \begin_layout Standard
28834 I take advantage of the newly created \SpecialChar LyX
28835  server function and this ddd feature,
28836  and set 
28837 \begin_inset Quotes eld
28838 \end_inset
28839
28840 Edit Sources
28841 \begin_inset Quotes erd
28842 \end_inset
28843
28844  to:
28845 \end_layout
28846
28847 \begin_layout LyX-Code
28848 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
28849 \end_layout
28850
28851 \begin_layout Standard
28852 With this, whenever you are using ddd and find a point in the program that
28853  you want to edit, you just press shift-ctrl-V (in the ddd window), and
28854  ddd will forward this information to \SpecialChar LyX
28855  through the \SpecialChar LyX
28856  server and then the
28857  \SpecialChar LyX
28858  window will show the same file with the cursor at the same position ddd
28859  was pointing to.
28860  No more guessing or long scrolling to locate a point in the program back
28861  from debugging !
28862 \end_layout
28863
28864 \begin_layout Standard
28865 Note however that you must enable the \SpecialChar LyX
28866  server to get this feature working
28867  (it is disabled by default).
28868  Sec.
28869 \begin_inset space ~
28870 \end_inset
28871
28872
28873 \begin_inset CommandInset ref
28874 LatexCommand ref
28875 reference "sec:Starting-the-Server"
28876
28877 \end_inset
28878
28879  explains how to do that.
28880 \end_layout
28881
28882 \begin_layout Subsubsection
28883 Toolbar extensions
28884 \end_layout
28885
28886 \begin_layout Standard
28887 There are six new buttons that can be added to your \SpecialChar LyX
28888  toolbar.
28889  Four of these buttons are short cuts to layout styles: 
28890 \family sans
28891 Standard
28892 \family default
28893
28894 \family sans
28895 Section
28896 \family default
28897
28898 \family sans
28899 \SpecialChar LaTeX
28900
28901 \family default
28902 , and 
28903 \family sans
28904 \SpecialChar LyX
28905 -Code
28906 \family default
28907 , one for the custom inset 
28908 \family sans
28909 Chunk
28910 \family default
28911 .
28912  The last one is a short cut to the 
28913 \begin_inset Quotes eld
28914 \end_inset
28915
28916 Build Program
28917 \begin_inset Quotes erd
28918 \end_inset
28919
28920  File menu entry.
28921  
28922 \end_layout
28923
28924 \begin_layout Standard
28925 \SpecialChar LyX
28926  has a range of buttons that are available for tool bar customization.
28927  In my toolbar I like to combine the six short cuts above with two more:
28928  One for 
28929 \family sans
28930 Document
28931 \family default
28932 \SpecialChar menuseparator
28933
28934 \family sans
28935 Update
28936 \family default
28937 \SpecialChar menuseparator
28938
28939 \family sans
28940 DVI
28941 \family default
28942  and the other for 
28943 \family sans
28944 Document\SpecialChar menuseparator
28945 View\SpecialChar menuseparator
28946 DVI
28947 \family default
28948  File menu entries.
28949  Here is how it looks like:
28950 \end_layout
28951
28952 \begin_layout LyX-Code
28953 Toolbar
28954 \end_layout
28955
28956 \begin_layout LyX-Code
28957   Layouts
28958 \end_layout
28959
28960 \begin_layout LyX-Code
28961   Icon "layout Standard"
28962 \end_layout
28963
28964 \begin_layout LyX-Code
28965   Icon "layout Section"
28966 \end_layout
28967
28968 \begin_layout LyX-Code
28969   Icon "layout \SpecialChar LaTeX
28970 "
28971 \end_layout
28972
28973 \begin_layout LyX-Code
28974   Icon "layout \SpecialChar LyX
28975 -Code"
28976 \end_layout
28977
28978 \begin_layout LyX-Code
28979   Icon "flex.insert Chunk"
28980 \end_layout
28981
28982 \begin_layout LyX-Code
28983   Separator
28984 \end_layout
28985
28986 \begin_layout LyX-Code
28987   Icon "buffer-view"
28988 \end_layout
28989
28990 \begin_layout LyX-Code
28991   Icon "buffer-typeset"
28992 \end_layout
28993
28994 \begin_layout LyX-Code
28995   Icon "build-program"
28996 \end_layout
28997
28998 \begin_layout LyX-Code
28999   Separator
29000 \end_layout
29001
29002 \begin_layout LyX-Code
29003 .
29004 \end_layout
29005
29006 \begin_layout LyX-Code
29007 .
29008 \end_layout
29009
29010 \begin_layout LyX-Code
29011 .
29012 \end_layout
29013
29014 \begin_layout LyX-Code
29015 End
29016 \end_layout
29017
29018 \begin_layout Subsubsection
29019 Colors customization
29020 \end_layout
29021
29022 \begin_layout Standard
29023 There are a number of colors in \SpecialChar LyX
29024  that can be customized in 
29025 \family sans
29026 Preferences
29027 \family default
29028 .
29029  One of the things that bothers people is the \SpecialChar LaTeX
29030  font color.
29031  The default color is red, since the chunks uses \SpecialChar LaTeX
29032  font, and there is a lot
29033  of chunks in literate documents, you may get tired of seeing everything
29034  in red.
29035  You can change it by going to the tabs 
29036 \family sans
29037 Look&Feel
29038 \family default
29039
29040 \family sans
29041 Colors.
29042 \end_layout
29043
29044 \begin_layout Standard
29045 The next thing is the visible presence of the newline character in the screen.
29046  You can choose the color of this particular character and make it blend
29047  in the background.
29048  I recommend you choosing a color that is close to the background but not
29049  equal, that way you still can see it is there, but it is not bothering
29050  you anymore.
29051 \end_layout
29052
29053 \begin_layout Subsection
29054 \SpecialChar LyX
29055  and knitr/Sweave
29056 \end_layout
29057
29058 \begin_layout Standard
29059 Support for 
29060 \family sans
29061 knitr
29062 \family default
29063  and 
29064 \family sans
29065 Sweave
29066 \family default
29067  is documented in the 
29068 \emph on
29069 knitr.lyx
29070 \emph default
29071  example file and in the Sweave manual (menu 
29072 \family sans
29073 Help\SpecialChar menuseparator
29074 Specific Manuals
29075 \family default
29076 ).
29077 \end_layout
29078
29079 \begin_layout Chapter
29080
29081 \change_deleted 564990737 1671355343
29082 Special features
29083 \end_layout
29084
29085 \begin_layout Standard
29086
29087 \change_deleted 564990737 1671355343
29088 You can do everything with \SpecialChar LyX
29089  that you can do with \SpecialChar LaTeX
29090 .
29091  However, \SpecialChar LyX
29092  cannot support every \SpecialChar LaTeX
29093  feature directly.
29094  But you can always use \SpecialChar TeX
29095  Code.
29096  This chapter shows you some more special things you might want to use.
29097  For other special things you can do with figures, tables, floats, boxes
29098  and notes, have a look at the 
29099 \emph on
29100 Embedded
29101 \begin_inset space ~
29102 \end_inset
29103
29104 Objects
29105 \emph default
29106  manual.
29107 \change_unchanged
29108
29109 \end_layout
29110
29111 \end_body
29112 \end_document