]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Insert entries for Chess, Recipe book and the four CV classes into Chapter 3 Document...
[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 1671442131
7119
7120 \lang american
7121 Chess
7122 \end_layout
7123
7124 \begin_layout Standard
7125
7126 \change_inserted 564990737 1671442131
7127
7128 \lang american
7129 The document class 
7130 \family sans
7131 article
7132 \begin_inset space \thinspace{}
7133 \end_inset
7134
7135 (Chess)
7136 \family default
7137  uses the 
7138 \family typewriter
7139 article.cls
7140 \family default
7141  document class together with the style 
7142 \family sans
7143 lyxskak.sty
7144 \family default
7145  to facilitate the description of chess games.
7146  The example files 
7147 \family typewriter
7148 chess-article.lyx
7149 \family default
7150  and 
7151 \family typewriter
7152 chessgame.lyx
7153 \family default
7154  are in the 
7155 \family sans
7156 Examples
7157 \family default
7158  directory.
7159 \end_layout
7160
7161 \begin_layout Subsection
7162
7163 \change_inserted 564990737 1671042028
7164
7165 \lang american
7166 Elsevier
7167 \end_layout
7168
7169 \begin_layout Standard
7170
7171 \change_inserted 564990737 1671042028
7172
7173 \lang american
7174 The document class 
7175 \family sans
7176 article
7177 \begin_inset space \thinspace{}
7178 \end_inset
7179
7180 (Elsevier)
7181 \family default
7182  provides the 
7183 \family typewriter
7184 elsarticle.cls
7185 \family default
7186  document class.
7187  This provides the following additional environments: 
7188 \family sans
7189 Title
7190 \begin_inset space ~
7191 \end_inset
7192
7193 footnote
7194 \family default
7195
7196 \family sans
7197 Author
7198 \begin_inset space ~
7199 \end_inset
7200
7201 footnote
7202 \family default
7203
7204 \family sans
7205 Corresponding
7206 \begin_inset space ~
7207 \end_inset
7208
7209 author
7210 \family default
7211
7212 \family sans
7213 Address
7214 \family default
7215
7216 \family sans
7217 Email
7218 \family default
7219  and 
7220 \family sans
7221 Keywords
7222 \family default
7223 .
7224  A template 
7225 \family typewriter
7226 elsarticle.lyx
7227 \family default
7228 .
7229  is available in the menu 
7230 \family sans
7231 \bar under
7232 F
7233 \bar default
7234 ile\SpecialChar menuseparator
7235 New
7236 \begin_inset space ~
7237 \end_inset
7238
7239 fro
7240 \bar under
7241 m
7242 \bar default
7243
7244 \begin_inset space ~
7245 \end_inset
7246
7247 Template
7248 \family default
7249 .
7250  It has been customized with further environments and contains all the informati
7251 on you may need.
7252  However, the documentation is also available from 
7253 \begin_inset CommandInset href
7254 LatexCommand href
7255 name "CTAN"
7256 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7257 literal "false"
7258
7259 \end_inset
7260
7261 .
7262 \end_layout
7263
7264 \begin_layout Subsection
7265
7266 \change_inserted 564990737 1671042046
7267
7268 \lang american
7269 Paper
7270 \end_layout
7271
7272 \begin_layout Standard
7273
7274 \change_inserted 564990737 1671042046
7275
7276 \lang american
7277 The document class 
7278 \family sans
7279 article
7280 \begin_inset space \thinspace{}
7281 \end_inset
7282
7283 (paper)
7284 \family default
7285  provides an alternative to the 
7286 \family typewriter
7287 article.cls
7288 \family default
7289  document class.
7290  It provides similar functionality, but you might prefer this layout with
7291  sans serif sections, headings, and more.
7292 \end_layout
7293
7294 \begin_layout Subsection
7295 Rev\SpecialChar TeX
7296 4
7297 \end_layout
7298
7299 \begin_layout Standard
7300 by 
7301 \noun on
7302 Amir Karger
7303 \end_layout
7304
7305 \begin_layout Standard
7306 \begin_inset VSpace bigskip
7307 \end_inset
7308
7309
7310 \end_layout
7311
7312 \begin_layout Standard
7313 \noindent
7314 The 
7315 \family sans
7316 Revtex
7317 \begin_inset space ~
7318 \end_inset
7319
7320 4
7321 \family default
7322  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7323  4.0 (the 
7324 \begin_inset Formula $\beta$
7325 \end_inset
7326
7327  release of May, 1999) class.
7328 \end_layout
7329
7330 \begin_layout Standard
7331 \SpecialChar LyX
7332  has a 
7333 \family sans
7334 Revtex
7335 \family default
7336  textclass, which works with Rev\SpecialChar TeX
7337  3.1.
7338  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7339  2.09.
7340  That means that it doesn't interact very well with \SpecialChar LyX
7341 , which requires \SpecialChar LaTeX2e
7342 , although
7343  it has been kludged to work.
7344  Since Rev\SpecialChar TeX
7345  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7346 , \SpecialChar LyX
7347  with the
7348  
7349 \family sans
7350 Rev\SpecialChar TeX
7351
7352 \begin_inset space ~
7353 \end_inset
7354
7355 4
7356 \family default
7357  textclass should also be pretty easy to use.
7358 \end_layout
7359
7360 \begin_layout Standard
7361 These documents are supposed to be used in 
7362 \emph on
7363 addition
7364 \emph default
7365  to the Rev\SpecialChar TeX
7366  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7367  macros,
7368  and assume you'll know what to put in the preamble if necessary.
7369 \end_layout
7370
7371 \begin_layout Subsubsection
7372 Installation
7373 \end_layout
7374
7375 \begin_layout Standard
7376 All you need to do is install Rev\SpecialChar TeX
7377  4, as described in the package's README
7378  file.
7379  The package can be found at The Rev\SpecialChar TeX
7380  4 Web Site 
7381 \begin_inset Flex URL
7382 status collapsed
7383
7384 \begin_layout Plain Layout
7385
7386 http://publish.aps.org/revtex4/
7387 \end_layout
7388
7389 \end_inset
7390
7391 .
7392  Install it somewhere that \SpecialChar LaTeX
7393  can see it.
7394  Test it by trying to \SpecialChar LaTeX
7395  a short Rev\SpecialChar TeX
7396  4 document in some random directory (i.
7397 \begin_inset space \thinspace{}
7398 \end_inset
7399
7400 e.
7401 \begin_inset space \space{}
7402 \end_inset
7403
7404 not the directory where you installed the class file.) Then, if you reconfigure
7405  \SpecialChar LyX
7406 , it will find the class file and let you use the Rev\SpecialChar TeX
7407 4 textclass.
7408 \end_layout
7409
7410 \begin_layout Standard
7411 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7412  4 document
7413  using 
7414 \family typewriter
7415 tex2lyx
7416 \family default
7417 , or to use the 
7418 \family sans
7419 Revtex
7420 \begin_inset space ~
7421 \end_inset
7422
7423 4
7424 \family default
7425  template, found in the templates directory.
7426 \end_layout
7427
7428 \begin_layout Subsubsection
7429 Preamble Matter
7430 \end_layout
7431
7432 \begin_layout Standard
7433 Optional arguments to 
7434 \family typewriter
7435
7436 \backslash
7437 documentclass
7438 \family default
7439 , like 
7440 \begin_inset Quotes eld
7441 \end_inset
7442
7443 preprint
7444 \begin_inset Quotes erd
7445 \end_inset
7446
7447  and 
7448 \begin_inset Quotes eld
7449 \end_inset
7450
7451 aps
7452 \begin_inset Quotes erd
7453 \end_inset
7454
7455 , go in the 
7456 \family sans
7457 Extra
7458 \begin_inset space ~
7459 \end_inset
7460
7461 Options
7462 \family default
7463  field in the 
7464 \family sans
7465 Document
7466 \begin_inset space ~
7467 \end_inset
7468
7469 Layout
7470 \family default
7471  dialog, as usual.
7472  Remember that in Rev\SpecialChar TeX
7473 , at least one optional argument is required! 
7474 \end_layout
7475
7476 \begin_layout Standard
7477 Other preamble matter, like 
7478 \family typewriter
7479
7480 \backslash
7481 draft
7482 \family default
7483  etc.
7484 \begin_inset space ~
7485 \end_inset
7486
7487 goes in the 
7488 \family sans
7489 \SpecialChar LaTeX
7490
7491 \begin_inset space ~
7492 \end_inset
7493
7494 Preamble
7495 \family default
7496  dialog, also as usual.
7497 \end_layout
7498
7499 \begin_layout Subsubsection
7500 Layouts
7501 \end_layout
7502
7503 \begin_layout Standard
7504 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7505 4.0.
7506  For example, the Email layout corresponds to 
7507 \family typewriter
7508
7509 \backslash
7510 email{}
7511 \family default
7512 .
7513  Note that (at least as of Rev\SpecialChar TeX
7514  4.0 Beta), the 
7515 \family sans
7516 Address
7517 \family default
7518  and 
7519 \family sans
7520 Affiliation
7521 \family default
7522  layouts are exactly equivalent, so you shouldn't need to use both.
7523 \begin_inset Foot
7524 status collapsed
7525
7526 \begin_layout Plain Layout
7527 In case you're curious, both were included so that 
7528 \family typewriter
7529 tex2lyx
7530 \family default
7531  would be able to translate both 
7532 \family typewriter
7533
7534 \backslash
7535 address
7536 \family default
7537  and 
7538 \family typewriter
7539
7540 \backslash
7541 affiliation
7542 \family default
7543 .
7544 \end_layout
7545
7546 \end_inset
7547
7548
7549 \end_layout
7550
7551 \begin_layout Subsubsection
7552 Important Notes
7553 \end_layout
7554
7555 \begin_layout Standard
7556 There are a couple of important unique aspects of Rev\SpecialChar TeX
7557  4 which might cause
7558  bugs that will be even more confusing in \SpecialChar LyX
7559 .
7560 \end_layout
7561
7562 \begin_layout Standard
7563 In Rev\SpecialChar TeX
7564 , the 
7565 \family typewriter
7566
7567 \backslash
7568 thanks
7569 \family default
7570  command goes 
7571 \emph on
7572 outside
7573 \emph default
7574  the 
7575 \family typewriter
7576
7577 \backslash
7578 author
7579 \family default
7580  command.
7581  The \SpecialChar LyX
7582  equivalent is that there is a separate Thanks layout.
7583  Do 
7584 \emph on
7585 not
7586 \emph default
7587  write footnotes in the 
7588 \family sans
7589 Author
7590 \family default
7591  layout, or weird things may happen.
7592  See the Rev\SpecialChar TeX
7593  4 documentation for more details.
7594 \end_layout
7595
7596 \begin_layout Standard
7597 Also, the 
7598 \family sans
7599 Author
7600 \begin_inset space ~
7601 \end_inset
7602
7603 Email
7604 \family default
7605
7606 \family sans
7607 Author
7608 \begin_inset space ~
7609 \end_inset
7610
7611 URL
7612 \family default
7613 , and 
7614 \family sans
7615 Thanks
7616 \family default
7617  layouts must be placed 
7618 \emph on
7619 in between
7620 \emph default
7621  the 
7622 \family sans
7623 Author
7624 \family default
7625  layout and the corresponding 
7626 \family sans
7627 Address
7628 \family default
7629  (or equivalent 
7630 \family sans
7631 Affiliation
7632 \family default
7633 ) layout.
7634  If you put the 
7635 \family sans
7636 Thanks
7637 \family default
7638  after the 
7639 \family sans
7640 Address
7641 \family default
7642 , the \SpecialChar LaTeX
7643  won't compile.
7644 \end_layout
7645
7646 \begin_layout Subsection
7647
7648 \change_inserted 564990737 1671042072
7649
7650 \lang american
7651 Springer Journals
7652 \end_layout
7653
7654 \begin_layout Standard
7655
7656 \change_inserted 564990737 1671042072
7657
7658 \lang american
7659 All the 
7660 \family sans
7661 svj*
7662 \family default
7663  classes were replaced in 2013 with a completely new 
7664 \family sans
7665 sr-vorl.cls
7666 \family default
7667 .
7668  This package provides a \SpecialChar LaTeX
7669  class and templates for books to be published
7670  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7671  Research, Springer VS Research, or Springer VS Forschung.
7672  The documentation is available in German from 
7673 \begin_inset CommandInset href
7674 LatexCommand href
7675 name "CTAN"
7676 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7677 literal "false"
7678
7679 \end_inset
7680
7681 .
7682 \end_layout
7683
7684 \begin_layout Section
7685
7686 \change_inserted 564990737 1670439560
7687 Books
7688 \end_layout
7689
7690 \begin_layout Standard
7691
7692 \change_inserted 564990737 1670439581
7693 See also the document classes in the Collections (section
7694 \begin_inset space ~
7695 \end_inset
7696
7697
7698 \begin_inset CommandInset ref
7699 LatexCommand ref
7700 reference "sec:Collections"
7701
7702 \end_inset
7703
7704 ).
7705 \end_layout
7706
7707 \begin_layout Subsection
7708 Memoir
7709 \end_layout
7710
7711 \begin_layout Standard
7712 By 
7713 \noun on
7714 Jürgen Spitzmüller
7715 \end_layout
7716
7717 \begin_layout Subsubsection
7718 Overview
7719 \end_layout
7720
7721 \begin_layout Standard
7722 Memoir is a very powerful and constantly evolving class.
7723  It has been designed with regard to fictional and non-fictional literature.
7724  Its aim is to let the user have maximum control over the typesetting of
7725  his document.
7726  Memoir is based on the standard book class, but it can also emulate the
7727  article class (see below).
7728 \end_layout
7729
7730 \begin_layout Standard
7731 Peter Wilson, the developer of Memoir, is known as the author of lots of
7732  useful packages in the \SpecialChar LaTeX
7733  world.
7734  Most of them have been merged with Memoir.
7735  Therefore, it is much easier to layout the table of contents, appendices,
7736  chapter designs and such.
7737  \SpecialChar LyX
7738 , though, does not support all of these goodies natively.
7739  Some of them might be added to forthcoming releases
7740 \begin_inset Foot
7741 status collapsed
7742
7743 \begin_layout Plain Layout
7744 You are invited to send suggestions to 
7745 \begin_inset Flex URL
7746 status collapsed
7747
7748 \begin_layout Plain Layout
7749
7750 lyx-devel@lists.lyx.org
7751 \end_layout
7752
7753 \end_inset
7754
7755 .
7756 \end_layout
7757
7758 \end_inset
7759
7760 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7761 's framework.
7762  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7763
7764  commands (\SpecialChar TeX
7765  code
7766 \begin_inset Foot
7767 status collapsed
7768
7769 \begin_layout Plain Layout
7770 Cf.
7771 \begin_inset ERT
7772 status collapsed
7773
7774 \begin_layout Plain Layout
7775
7776
7777 \backslash
7778  
7779 \end_layout
7780
7781 \end_inset
7782
7783 section
7784 \begin_inset space ~
7785 \end_inset
7786
7787
7788 \begin_inset CommandInset ref
7789 LatexCommand ref
7790 reference "sec:Inserting-TeX-Code"
7791
7792 \end_inset
7793
7794  for details.
7795 \end_layout
7796
7797 \end_inset
7798
7799 ).
7800  In this section, we can only list those features that are natively supported
7801  by \SpecialChar LyX
7802 .
7803  For detailed descriptions (and for the rest of features) we recommend you
7804  have a look at the detailed manual of the Memoir class
7805 \begin_inset Foot
7806 status collapsed
7807
7808 \begin_layout Plain Layout
7809 Cf.
7810 \begin_inset ERT
7811 status collapsed
7812
7813 \begin_layout Plain Layout
7814
7815
7816 \backslash
7817  
7818 \end_layout
7819
7820 \end_inset
7821
7822
7823 \begin_inset Flex URL
7824 status collapsed
7825
7826 \begin_layout Plain Layout
7827
7828 CTAN:/macros/latex/memoir/memman.pdf
7829 \end_layout
7830
7831 \end_inset
7832
7833 .
7834 \end_layout
7835
7836 \end_inset
7837
7838 , which is not only a user guide for the class, but also both a comprehensive
7839  description on good typesetting and a superb example for good typesetting
7840  itself.
7841 \end_layout
7842
7843 \begin_layout Subsubsection
7844 Basic features and restrictions
7845 \end_layout
7846
7847 \begin_layout Standard
7848 Memoir supports basically all features of the standard book classes.
7849  There are, however, some differences, as follows:
7850 \end_layout
7851
7852 \begin_layout Description
7853 Font
7854 \begin_inset space ~
7855 \end_inset
7856
7857 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7858 \end_layout
7859
7860 \begin_layout Description
7861 Page
7862 \begin_inset space ~
7863 \end_inset
7864
7865 style: The fancy page style is not supported, due to a command clash between
7866  Memoir and the fancyhdr package (they both define a command with the same
7867  name, which confuses \SpecialChar LaTeX
7868 ).
7869  Instead, Memoir comes with a number of its own page styles (see 
7870 \family sans
7871 Document\SpecialChar menuseparator
7872 Settings\SpecialChar menuseparator
7873 Page
7874 \begin_inset space ~
7875 \end_inset
7876
7877 Style
7878 \family default
7879 ).
7880  If you want to use these for the chapter pages, you have to use the command
7881  
7882 \family typewriter
7883
7884 \backslash
7885 chapterstyle
7886 \family default
7887  in the main text or in preamble (e.
7888 \begin_inset space \thinspace{}
7889 \end_inset
7890
7891 g.
7892 \begin_inset space \space{}
7893 \end_inset
7894
7895
7896 \family typewriter
7897
7898 \backslash
7899 chapterstyle{companion}
7900 \family default
7901 ).
7902 \end_layout
7903
7904 \begin_layout Description
7905 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7906  optional argument in the standard classes.
7907  With this, you can specify an alternative version of the title for the
7908  table of contents and the headers (for instance, if the title is too long).
7909  In \SpecialChar LyX
7910 , you can do this via 
7911 \family sans
7912 Insert\SpecialChar menuseparator
7913 Short
7914 \begin_inset space ~
7915 \end_inset
7916
7917 Title
7918 \family default
7919  at the beginning of a chapter/section.
7920  Memoir features a second optional argument and thus separates the table
7921  of contents from the header.
7922  You can define three variants of a title with this: one for the main text,
7923  one for the table of contents, and one for the headers.
7924  \SpecialChar LyX
7925  makes these available in form of specific 
7926 \family sans
7927 Short Title
7928 \family default
7929  variants in the 
7930 \family sans
7931 Insert
7932 \family default
7933  menu.
7934 \end_layout
7935
7936 \begin_layout Description
7937 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
7938  of contents, the list of figures and the list of table start a new page
7939  automatically.
7940  Memoir does not follow this route.
7941  You have to insert a page break yourself, if you want to have one.
7942 \end_layout
7943
7944 \begin_layout Description
7945 Titlepage: For some unknown reason, Memoir uses pagination on the title
7946  page (in the standard classes, title pages are 
7947 \begin_inset Quotes eld
7948 \end_inset
7949
7950 empty
7951 \begin_inset Quotes erd
7952 \end_inset
7953
7954 ).
7955  If you want an empty title page, type 
7956 \family typewriter
7957
7958 \backslash
7959 aliaspagestyle{title}{empty}
7960 \family default
7961  in the preamble.
7962 \end_layout
7963
7964 \begin_layout Description
7965 Article: With the class option 
7966 \emph on
7967 article
7968 \emph default
7969  (to be inserted in 
7970 \family sans
7971 Document\SpecialChar menuseparator
7972 Settings\SpecialChar menuseparator
7973 Class Settings\SpecialChar menuseparator
7974 Custom
7975 \begin_inset space ~
7976 \end_inset
7977
7978 Options
7979 \family default
7980 ), you can emulate article style.
7981  That is, counters (footnotes, figures, tables etc.) will not be reset on
7982  new chapters, chapters don't start a new page (but are—in contrary to 
7983 \begin_inset Quotes eld
7984 \end_inset
7985
7986 real
7987 \begin_inset Quotes erd
7988 \end_inset
7989
7990  article classes—still allowed), parts, though, use their own page, as in
7991  book.
7992 \end_layout
7993
7994 \begin_layout Description
7995 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
7996  font commands, which have been used in the old \SpecialChar LaTeX
7997  version 2.09 (e.
7998 \begin_inset space \thinspace{}
7999 \end_inset
8000
8001 g.
8002 \begin_inset space \space{}
8003 \end_inset
8004
8005
8006 \family typewriter
8007
8008 \backslash
8009 rm
8010 \family default
8011
8012 \family typewriter
8013
8014 \backslash
8015 it
8016 \family default
8017 ).
8018  It produces an error and stops \SpecialChar LaTeX
8019  whenever such a command appears.
8020  The class option 
8021 \emph on
8022 oldfontcommands
8023 \emph default
8024  reallows the commands and spits out warnings instead (which does at least
8025  not stop \SpecialChar LaTeX
8026 ).
8027  Since a lot of packages and particularly Bib\SpecialChar TeX
8028  style files are still using
8029  those commands, we have decided to use this option by default.
8030 \end_layout
8031
8032 \begin_layout Subsubsection
8033 Extra features
8034 \end_layout
8035
8036 \begin_layout Standard
8037 We will only describe the features supported by \SpecialChar LyX
8038  (which is not much currently).
8039  Please consult the Memoir manual
8040 \begin_inset Foot
8041 status collapsed
8042
8043 \begin_layout Plain Layout
8044 Cf.
8045 \begin_inset ERT
8046 status collapsed
8047
8048 \begin_layout Plain Layout
8049
8050
8051 \backslash
8052  
8053 \end_layout
8054
8055 \end_inset
8056
8057
8058 \begin_inset Flex URL
8059 status collapsed
8060
8061 \begin_layout Plain Layout
8062
8063 CTAN:/macros/latex/memoir/memman.pdf
8064 \end_layout
8065
8066 \end_inset
8067
8068 .
8069 \end_layout
8070
8071 \end_inset
8072
8073  for details.
8074 \end_layout
8075
8076 \begin_layout Description
8077 Abstract: You may wonder why an abstract is an extra feature.
8078  Well, it is in book class.
8079  Usually books don't have abstracts.
8080  Memoir, however, has.
8081  You can use it wherever and how often you like.
8082 \end_layout
8083
8084 \begin_layout Description
8085 Chapterprecis: You may know this older typesetting style: The contents of
8086  a chapter are summarized below the title and also in the table of contents
8087  (e.
8088 \begin_inset space \thinspace{}
8089 \end_inset
8090
8091 g.
8092 \begin_inset space \space{}
8093 \end_inset
8094
8095
8096 \emph on
8097 Our hero arrives in Troia; he loses some friends; he finds others
8098 \emph default
8099 ).
8100  Chapterprecis does exactly this.
8101  It is therefore only sensible below a chapter.
8102 \end_layout
8103
8104 \begin_layout Description
8105 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8106  The epigraph environment provides an elegant way of typesetting such a
8107  motto.
8108  The motto itself (text) and its (optional) author (source) are divided
8109  by a short line.
8110  The author (source) can be inserted via 
8111 \family sans
8112 Insert\SpecialChar menuseparator
8113 Epigraph Source
8114 \family default
8115 \emph on
8116 .
8117 \end_layout
8118
8119 \begin_layout Description
8120 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8121  complex figurative poems).
8122  \SpecialChar LyX
8123  can only support a few of them.
8124  One is poemtitle, which is a centered title for poems, which will also
8125  be added to the table of contents (verse is the standard environment for
8126  poems.
8127  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8128  code,
8129  because they have to be nested inside regular verse environments, which
8130  is not possible with \SpecialChar LyX
8131 ).
8132 \end_layout
8133
8134 \begin_layout Description
8135 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8136 \end_layout
8137
8138 \begin_layout Subsection
8139
8140 \change_inserted 564990737 1671442175
8141
8142 \lang american
8143 Recipe Book
8144 \end_layout
8145
8146 \begin_layout Standard
8147
8148 \change_inserted 564990737 1671442175
8149
8150 \lang american
8151 The document class 
8152 \family typewriter
8153 RecipeBook.cls
8154 \family default
8155  uses the 
8156 \family sans
8157 book
8158 \begin_inset space \thinspace{}
8159 \end_inset
8160
8161 (KOMA-Script)
8162 \family default
8163  document class but adds two environments:
8164 \end_layout
8165
8166 \begin_layout Description
8167
8168 \change_inserted 564990737 1671442175
8169
8170 \lang american
8171 Recipe a numbered section environment at the 
8172 \family typewriter
8173 Subsubsection
8174 \family default
8175  level which generates a bold centered heading above a double horizontal
8176  rule
8177 \end_layout
8178
8179 \begin_layout Description
8180
8181 \change_inserted 564990737 1671442175
8182
8183 \lang american
8184 Ingredients a 
8185 \family typewriter
8186 Description
8187 \family default
8188  environment where 
8189 \series bold
8190 \emph on
8191 Ingredients
8192 \series default
8193 \emph default
8194  are what are being described and the environment ends with a horizontal
8195  rule.
8196 \end_layout
8197
8198 \begin_layout Standard
8199
8200 \change_inserted 564990737 1671442175
8201
8202 \lang american
8203 The file 
8204 \emph on
8205 recipebook.lyx
8206 \emph default
8207  in the 
8208 \family sans
8209 Examples
8210 \family default
8211  directory illustrates its use.
8212 \end_layout
8213
8214 \begin_layout Standard
8215
8216 \change_inserted 564990737 1671442175
8217
8218 \lang american
8219 It is designed for typesetting one or two recipes per page, with dimensions
8220  of 5.5
8221 \begin_inset Quotes qrd
8222 \end_inset
8223
8224  x 8.5
8225 \begin_inset Quotes qrd
8226 \end_inset
8227
8228 .
8229  The hyperlinked table of contents (ToC) and page numbers make browsing
8230  recipes convenient, and the pages can be joined together or printed 2 per
8231  page to normal letterpaper easily.
8232  The size was chosen to work in half-page 3-ring binder cover sheets, because
8233  un-laminated paper just doesn't last in the kitchen.
8234 \end_layout
8235
8236 \begin_layout Standard
8237
8238 \change_inserted 564990737 1671442175
8239
8240 \lang american
8241 The half-letter pages can be printed two per page using your printer driver,
8242  or bound together using 
8243 \family typewriter
8244 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8245 \family default
8246  
8247 \family typewriter
8248 Recipes.pdf
8249 \family default
8250  where 
8251 \family typewriter
8252 Recipes.pdf
8253 \family default
8254  is the compiled version of your recipes.
8255 \end_layout
8256
8257 \begin_layout Section
8258
8259 \change_inserted 564990737 1671442207
8260 Curricula vitarum
8261 \end_layout
8262
8263 \begin_layout Subsection
8264
8265 \change_inserted 564990737 1671442208
8266
8267 \lang american
8268 Europass
8269 \end_layout
8270
8271 \begin_layout Standard
8272
8273 \change_inserted 564990737 1671442208
8274
8275 \lang american
8276 The document class 
8277 \family sans
8278 curriculum
8279 \begin_inset space \space{}
8280 \end_inset
8281
8282 vitae
8283 \begin_inset space \thinspace{}
8284 \end_inset
8285
8286 (Europass)
8287 \family default
8288  provides the 
8289 \family typewriter
8290 europasscv.cls
8291 \family default
8292  document class, an unofficial implementation of the ‘Europass CV’ recommended
8293  by the European Commission in 2013.
8294  The file 
8295 \emph on
8296 europassCV.lyx
8297 \emph default
8298  in the 
8299 \family sans
8300 Examples
8301 \family default
8302  directory offers guidance on its use.
8303  Its documentation is available from 
8304 \begin_inset CommandInset href
8305 LatexCommand href
8306 name "CTAN"
8307 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8308 literal "false"
8309
8310 \end_inset
8311
8312 .
8313 \end_layout
8314
8315 \begin_layout Subsection
8316
8317 \change_inserted 564990737 1671442208
8318
8319 \lang american
8320 European
8321 \end_layout
8322
8323 \begin_layout Standard
8324
8325 \change_inserted 564990737 1671442208
8326
8327 \lang american
8328 The document class 
8329 \family sans
8330 curriculum
8331 \begin_inset space \space{}
8332 \end_inset
8333
8334 vitae
8335 \begin_inset space \thinspace{}
8336 \end_inset
8337
8338 (Europe)
8339 \family default
8340  provides the 
8341 \family typewriter
8342 europecv.cls
8343 \family default
8344  document class, an unofficial implementation of the “Europass CV” recommended
8345  by the European Commission in 2002.
8346  The file 
8347 \emph on
8348 europeCV.lyx
8349 \emph default
8350  in the 
8351 \family sans
8352 Examples
8353 \family default
8354  directory offers guidance on its use.
8355  Its documentation is available from 
8356 \begin_inset CommandInset href
8357 LatexCommand href
8358 name "CTAN"
8359 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8360 literal "false"
8361
8362 \end_inset
8363
8364 .
8365 \end_layout
8366
8367 \begin_layout Subsection
8368
8369 \change_inserted 564990737 1671442208
8370
8371 \lang american
8372 Modern
8373 \end_layout
8374
8375 \begin_layout Standard
8376
8377 \change_inserted 564990737 1671442208
8378
8379 \lang american
8380 The document class 
8381 \family sans
8382 curriculum
8383 \begin_inset space \space{}
8384 \end_inset
8385
8386 vitae
8387 \begin_inset space \thinspace{}
8388 \end_inset
8389
8390 (modern)
8391 \family default
8392  provides the 
8393 \family typewriter
8394 moderncv.cls
8395 \family default
8396  document class.
8397  This allows the creation of customizable CVs.
8398  The file 
8399 \emph on
8400 modernCV.lyx
8401 \emph default
8402  in the 
8403 \family sans
8404 Examples
8405 \family default
8406  directory offers guidance on its use.
8407  Its documentation is available from 
8408 \begin_inset CommandInset href
8409 LatexCommand href
8410 name "CTAN"
8411 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8412 literal "false"
8413
8414 \end_inset
8415
8416 .
8417 \end_layout
8418
8419 \begin_layout Subsection
8420
8421 \change_inserted 564990737 1671442208
8422
8423 \lang american
8424 Simple
8425 \end_layout
8426
8427 \begin_layout Standard
8428
8429 \change_inserted 564990737 1671442208
8430
8431 \lang american
8432 The document class 
8433 \family sans
8434 curriculum
8435 \begin_inset space \space{}
8436 \end_inset
8437
8438 vitae
8439 \begin_inset space \thinspace{}
8440 \end_inset
8441
8442 (simple)
8443 \family default
8444  provides the 
8445 \family typewriter
8446 simplecv.cls
8447 \family default
8448  document class, originally developed for use with \SpecialChar LyX
8449 .
8450  The file 
8451 \emph on
8452 simplecv.lyx
8453 \emph default
8454  in the 
8455 \family sans
8456 Examples
8457 \family default
8458  directory offers guidance on its use.
8459  Its documentation is available from 
8460 \begin_inset CommandInset href
8461 LatexCommand href
8462 name "CTAN"
8463 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8464 literal "false"
8465
8466 \end_inset
8467
8468
8469 \end_layout
8470
8471 \begin_layout Section
8472
8473 \change_inserted 564990737 1671041968
8474 Letters
8475 \end_layout
8476
8477 \begin_layout Subsection
8478
8479 \change_inserted 564990737 1671041970
8480
8481 \lang american
8482 Din-Brief
8483 \end_layout
8484
8485 \begin_layout Standard
8486
8487 \change_inserted 564990737 1671041970
8488
8489 \lang american
8490 The document class 
8491 \family sans
8492 Din-Brief
8493 \family default
8494  provides the 
8495 \family typewriter
8496 dinbrief.cls
8497 \family default
8498  document class for writing letters according to the 
8499 \emph on
8500 Deutsches Institut für Normung
8501 \emph default
8502  conventions.
8503  The file 
8504 \emph on
8505 dinbrief.lyx
8506 \emph default
8507  in the menu 
8508 \family sans
8509 \bar under
8510 F
8511 \bar default
8512 ile\SpecialChar menuseparator
8513 New
8514 \begin_inset space ~
8515 \end_inset
8516
8517 fro
8518 \bar under
8519 m
8520 \bar default
8521
8522 \begin_inset space ~
8523 \end_inset
8524
8525 Template
8526 \family default
8527  offers guidance on its use.
8528  The documentation is available from 
8529 \begin_inset CommandInset href
8530 LatexCommand href
8531 name "CTAN"
8532 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8533 literal "false"
8534
8535 \end_inset
8536
8537 .
8538 \end_layout
8539
8540 \begin_layout Section
8541
8542 \change_inserted 564990737 1670439660
8543 Presentations
8544 \end_layout
8545
8546 \begin_layout Subsection
8547 Foils [aka 
8548 \family sans
8549 Foil\SpecialChar TeX
8550
8551 \family default
8552 ]
8553 \begin_inset CommandInset label
8554 LatexCommand label
8555 name "sec:foiltex"
8556
8557 \end_inset
8558
8559
8560 \end_layout
8561
8562 \begin_layout Standard
8563 by 
8564 \noun on
8565 Allan Rae
8566 \end_layout
8567
8568 \begin_layout Subsubsection
8569 Introduction
8570 \end_layout
8571
8572 \begin_layout Standard
8573 This section describes how to use \SpecialChar LyX
8574  to make slides for overhead projectors.
8575  There are two document classes that can do this: the default slides class
8576  and the 
8577 \family sans
8578 Foil\SpecialChar TeX
8579
8580 \family default
8581  slides class.
8582  This section documents the latter.
8583 \end_layout
8584
8585 \begin_layout Standard
8586 I'm going to say this again, nice and clear, so that there's no misunderstanding
8587 :
8588 \end_layout
8589
8590 \begin_layout Standard
8591 \begin_inset VSpace bigskip
8592 \end_inset
8593
8594
8595 \end_layout
8596
8597 \begin_layout Standard
8598 \align center
8599
8600 \size large
8601 This section documents the class 
8602 \begin_inset Quotes eld
8603 \end_inset
8604
8605
8606 \family sans
8607 FoilTeX
8608 \family default
8609
8610 \begin_inset Quotes erd
8611 \end_inset
8612
8613  
8614 \emph on
8615 only.
8616 \end_layout
8617
8618 \begin_layout Standard
8619 \begin_inset VSpace bigskip
8620 \end_inset
8621
8622
8623 \end_layout
8624
8625 \begin_layout Standard
8626 If you're looking for the documentation for 
8627 \begin_inset Quotes eld
8628 \end_inset
8629
8630
8631 \family sans
8632 slides (default)
8633 \family default
8634
8635 \begin_inset Quotes erd
8636 \end_inset
8637
8638 , check out section
8639 \begin_inset space ~
8640 \end_inset
8641
8642
8643 \begin_inset CommandInset ref
8644 LatexCommand ref
8645 reference "sec:slitex"
8646
8647 \end_inset
8648
8649 .
8650  If your machine doesn't have the 
8651 \family sans
8652 foils
8653 \family default
8654  class 
8655 \family sans
8656 FoilTeX
8657 \family default
8658  installed, you'll probably have to use the default 
8659 \family sans
8660 slides
8661 \family default
8662  class, which isn't quite as good as 
8663 \family sans
8664 foils.
8665 \end_layout
8666
8667 \begin_layout Standard
8668 The 
8669 \family sans
8670 foils
8671 \family default
8672  class is designed for use with version
8673 \begin_inset space ~
8674 \end_inset
8675
8676 2.1 of the 
8677 \family sans
8678 foils.cls
8679 \family default
8680  \SpecialChar LaTeX
8681  class file which is now an integral part of \SpecialChar LaTeX2e
8682 .
8683 \end_layout
8684
8685 \begin_layout Subsubsection
8686 Getting Started
8687 \end_layout
8688
8689 \begin_layout Standard
8690 Obviously, to use this document class, you need to select 
8691 \family sans
8692 FoilTeX
8693 \family default
8694  from the 
8695 \family sans
8696 Class
8697 \family default
8698  entry in the 
8699 \family sans
8700 Document
8701 \begin_inset space ~
8702 \end_inset
8703
8704 Layout
8705 \family default
8706  dialog.
8707  There are some settings in the 
8708 \family sans
8709 Document
8710 \begin_inset space ~
8711 \end_inset
8712
8713 Layout
8714 \family default
8715  dialog that you should know about that are specific to this class:
8716 \end_layout
8717
8718 \begin_layout Itemize
8719 Don't change the options 
8720 \family sans
8721 Sides
8722 \family default
8723  and 
8724 \family sans
8725 Columns
8726 \family default
8727  on the 
8728 \family sans
8729 Document
8730 \begin_inset space ~
8731 \end_inset
8732
8733 Layout
8734 \family default
8735  dialog.
8736  They're ignored by the 
8737 \family sans
8738 foils
8739 \family default
8740  class.
8741 \end_layout
8742
8743 \begin_layout Itemize
8744 The default font size is 20
8745 \begin_inset space \thinspace{}
8746 \end_inset
8747
8748 pt with the other options being 17
8749 \begin_inset space \thinspace{}
8750 \end_inset
8751
8752 pt, 25
8753 \begin_inset space \thinspace{}
8754 \end_inset
8755
8756 pt and 30
8757 \begin_inset space \thinspace{}
8758 \end_inset
8759
8760 pt.
8761 \end_layout
8762
8763 \begin_layout Itemize
8764 The default font is 
8765 \family sans
8766 sans
8767 \family default
8768  
8769 \family sans
8770 serif
8771 \family default
8772  but all math equations are still typeset in the usual roman font.
8773 \end_layout
8774
8775 \begin_layout Itemize
8776
8777 \family sans
8778 Foil\SpecialChar TeX
8779
8780 \family default
8781  supports A4 and Letter paper sizes as well as a special size for working
8782  with 35
8783 \begin_inset space \thinspace{}
8784 \end_inset
8785
8786 mm slides.
8787  It doesn't support A5, B5, legal or executive paper sizes.
8788 \end_layout
8789
8790 \begin_layout Itemize
8791 Don't bother changing the 
8792 \family sans
8793 Float Placement
8794 \family default
8795  settings because they are ignored anyway.
8796  All floats appear where they are defined in the text.
8797 \end_layout
8798
8799 \begin_layout Itemize
8800 The 
8801 \family sans
8802 Pagestyle
8803 \family default
8804  setting behaves a bit differently for this class.
8805  
8806 \family sans
8807 Foil\SpecialChar TeX
8808
8809 \family default
8810  provides extensive footer and header capabilities including a user-defined
8811  logo.
8812  See section
8813 \begin_inset space ~
8814 \end_inset
8815
8816
8817 \begin_inset CommandInset ref
8818 LatexCommand ref
8819 reference "sec:foilfoot"
8820
8821 \end_inset
8822
8823  for more details.
8824  The title page is treated differently to all other pages in the document
8825  and is 
8826 \emph on
8827 always
8828 \emph default
8829  unnumbered and 
8830 \emph on
8831 always
8832 \emph default
8833  has the logo centered at the bottom of the page (if one is defined).
8834  The possible page style choices and what they do are as follows:
8835 \end_layout
8836
8837 \begin_deeper
8838 \begin_layout Labeling
8839 \labelwidthstring MMMMMMM
8840
8841 \family sans
8842 \series bold
8843 empty
8844 \family default
8845 \series default
8846  The final output contains no page numbers, or other headers or footers
8847  (except footnotes of course).
8848  
8849 \end_layout
8850
8851 \begin_layout Labeling
8852 \labelwidthstring MMMMMMM
8853
8854 \family sans
8855 \series bold
8856 plain
8857 \family default
8858 \series default
8859  The final output contains page numbers centered at the bottom of the page.
8860  No other headings or footers (other than footnotes).
8861 \end_layout
8862
8863 \begin_layout Labeling
8864 \labelwidthstring MMMMMMM
8865
8866 \series bold
8867 foilheadings
8868 \series default
8869  Page numbers in lower right corner.
8870  Additional headers and footers are also shown.
8871  This is also the default.
8872 \end_layout
8873
8874 \begin_layout Labeling
8875 \labelwidthstring MMMMMMM
8876
8877 \series bold
8878 fancy
8879 \series default
8880  Gives you access to the 
8881 \family sans
8882 fancyheadings
8883 \family default
8884  package although its use with 
8885 \family sans
8886 Foil\SpecialChar TeX
8887
8888 \family default
8889  is discouraged by the writer of the 
8890 \family sans
8891 Foil\SpecialChar TeX
8892
8893 \family default
8894  package because of some potential page layout clashes.
8895 \end_layout
8896
8897 \end_deeper
8898 \begin_layout Paragraph
8899 Extra Options
8900 \end_layout
8901
8902 \begin_layout Standard
8903 The following options may be used in the extra class options in the 
8904 \family sans
8905 Document\SpecialChar menuseparator
8906 Settings
8907 \family default
8908  dialog.
8909 \end_layout
8910
8911 \begin_layout Labeling
8912 \labelwidthstring MMMMMMx
8913
8914 \series bold
8915 35mmSlide
8916 \series default
8917  This sets up the page layout for 7.33
8918 \begin_inset space \thinspace{}
8919 \end_inset
8920
8921 in by 11
8922 \begin_inset space \thinspace{}
8923 \end_inset
8924
8925 in paper, which is about the same aspect ratio as a 35
8926 \begin_inset space \thinspace{}
8927 \end_inset
8928
8929 mm slide, making it a bit easier to work with this medium.
8930 \end_layout
8931
8932 \begin_layout Labeling
8933 \labelwidthstring MMMMMMx
8934
8935 \series bold
8936 headrule
8937 \series default
8938  Places a rule across the page below the header on every page except the
8939  title page.
8940 \end_layout
8941
8942 \begin_layout Labeling
8943 \labelwidthstring MMMMMMx
8944
8945 \series bold
8946 footrule
8947 \series default
8948  Places a rule across the page above the footer on every page except the
8949  title page.
8950 \end_layout
8951
8952 \begin_layout Labeling
8953 \labelwidthstring MMMMMMx
8954
8955 \series bold
8956 dvips
8957 \series default
8958  This is automatically set each time you create a new 
8959 \family sans
8960 foils
8961 \family default
8962  document.
8963  This option tells 
8964 \family sans
8965 Foil\SpecialChar TeX
8966
8967 \family default
8968  to use the dvips driver to rotate those pages that are set as landscape
8969  foils.
8970 \end_layout
8971
8972 \begin_layout Labeling
8973 \labelwidthstring MMMMMMx
8974
8975 \series bold
8976 landscape
8977 \series default
8978  Simply changes the page dimensions to those of a landscape page but doesn't
8979  do any rotation.
8980  Thus if you use this option you need to use an external program to rotate
8981  each page or feed your paper through your printer as landscape.
8982  Note that this option effectively reverses the roles of the 
8983 \family sans
8984 Foilhead
8985 \family default
8986  and 
8987 \family sans
8988 Rotatefoilhead
8989 \family default
8990  environments (don't worry these are described in the next section).
8991 \end_layout
8992
8993 \begin_layout Labeling
8994 \labelwidthstring MMMMMMx
8995
8996 \series bold
8997 leqno
8998 \series default
8999  Equation numbers on the left.
9000 \end_layout
9001
9002 \begin_layout Labeling
9003 \labelwidthstring MMMMMMx
9004
9005 \series bold
9006 fleqn
9007 \series default
9008  Flush-left equations.
9009 \end_layout
9010
9011 \begin_layout Subsubsection
9012 Supported Environments
9013 \end_layout
9014
9015 \begin_layout Standard
9016 Most of the environments commonly supported in other classes are also supported
9017  by the 
9018 \family sans
9019 foils
9020 \family default
9021  class.
9022  There are several additional environments provided by 
9023 \family sans
9024 Foil\SpecialChar TeX
9025
9026 \family default
9027  as well as a couple added by \SpecialChar LyX
9028 .
9029  The following environments are shared with other classes:
9030 \end_layout
9031
9032 \begin_layout Standard
9033 \begin_inset Flex Multiple Columns
9034 status open
9035
9036 \begin_layout Itemize
9037
9038 \family sans
9039 Standard
9040 \end_layout
9041
9042 \begin_layout Itemize
9043
9044 \family sans
9045 Itemize
9046 \end_layout
9047
9048 \begin_layout Itemize
9049
9050 \family sans
9051 Enumerate
9052 \end_layout
9053
9054 \begin_layout Itemize
9055
9056 \family sans
9057 Description
9058 \end_layout
9059
9060 \begin_layout Itemize
9061
9062 \family sans
9063 List
9064 \end_layout
9065
9066 \begin_layout Itemize
9067
9068 \family sans
9069 \SpecialChar LyX
9070 -Code
9071 \end_layout
9072
9073 \begin_layout Itemize
9074
9075 \family sans
9076 Verse
9077 \end_layout
9078
9079 \begin_layout Itemize
9080
9081 \family sans
9082 Quote
9083 \end_layout
9084
9085 \begin_layout Itemize
9086
9087 \family sans
9088 Quotation
9089 \end_layout
9090
9091 \begin_layout Itemize
9092
9093 \family sans
9094 TitleAuthor
9095 \end_layout
9096
9097 \begin_layout Itemize
9098
9099 \family sans
9100 Date
9101 \end_layout
9102
9103 \begin_layout Itemize
9104
9105 \family sans
9106 Abstract
9107 \end_layout
9108
9109 \begin_layout Itemize
9110
9111 \family sans
9112 Bibliography
9113 \end_layout
9114
9115 \begin_layout Itemize
9116
9117 \family sans
9118 Address
9119 \end_layout
9120
9121 \begin_layout Itemize
9122
9123 \family sans
9124 RightAddress
9125 \end_layout
9126
9127 \end_inset
9128
9129
9130 \end_layout
9131
9132 \begin_layout Standard
9133 That is, all the major environments apart from the sectioning environments.
9134  Since foils are essentially self-contained sections, with a title and body,
9135  
9136 \family sans
9137 Foil\SpecialChar TeX
9138
9139 \family default
9140  provides specific commands for starting new foils and these are:
9141 \end_layout
9142
9143 \begin_layout Itemize
9144
9145 \family sans
9146 Foilhead
9147 \end_layout
9148
9149 \begin_layout Itemize
9150
9151 \family sans
9152 Rotatefoilhead
9153 \end_layout
9154
9155 \begin_layout Standard
9156 \SpecialChar LyX
9157  also provides slightly modified versions of these two environments called:
9158 \end_layout
9159
9160 \begin_layout Itemize
9161
9162 \family sans
9163 ShortFoilhead
9164 \end_layout
9165
9166 \begin_layout Itemize
9167
9168 \family sans
9169 ShortRotatefoilhead
9170 \end_layout
9171
9172 \begin_layout Standard
9173 and the differences will be explained in the next section.
9174 \end_layout
9175
9176 \begin_layout Standard
9177 Since foils are often used in presenting ideas or new theorems and such
9178  
9179 \family sans
9180 Foil\SpecialChar TeX
9181
9182 \family default
9183  also provides a comprehensive box of goodies for presenting them:
9184 \end_layout
9185
9186 \begin_layout Standard
9187 \begin_inset Flex Multiple Columns
9188 status open
9189
9190 \begin_layout Itemize
9191
9192 \family sans
9193 Theorem
9194 \end_layout
9195
9196 \begin_layout Itemize
9197
9198 \family sans
9199 Lemma
9200 \end_layout
9201
9202 \begin_layout Itemize
9203
9204 \family sans
9205 Corollary
9206 \end_layout
9207
9208 \begin_layout Itemize
9209
9210 \family sans
9211 Proposition
9212 \end_layout
9213
9214 \begin_layout Itemize
9215
9216 \family sans
9217 Definition
9218 \end_layout
9219
9220 \begin_layout Itemize
9221
9222 \family sans
9223 Proof
9224 \end_layout
9225
9226 \begin_layout Itemize
9227
9228 \family sans
9229 Theorem*
9230 \end_layout
9231
9232 \begin_layout Itemize
9233
9234 \family sans
9235 Lemma*
9236 \end_layout
9237
9238 \begin_layout Itemize
9239
9240 \family sans
9241 Corollary*
9242 \end_layout
9243
9244 \begin_layout Itemize
9245
9246 \family sans
9247 Proposition*
9248 \end_layout
9249
9250 \begin_layout Itemize
9251
9252 \family sans
9253 Definition*
9254 \end_layout
9255
9256 \end_inset
9257
9258
9259 \end_layout
9260
9261 \begin_layout Standard
9262 The starred versions are unnumbered while the unstarred versions are numbered.
9263  There are also two list environments added by \SpecialChar LyX
9264  and these are:
9265 \end_layout
9266
9267 \begin_layout Itemize
9268
9269 \family sans
9270 TickList
9271 \end_layout
9272
9273 \begin_layout Itemize
9274
9275 \family sans
9276 CrossList
9277 \end_layout
9278
9279 \begin_layout Standard
9280
9281 \family sans
9282 Foil\SpecialChar TeX
9283
9284 \family default
9285  provides some powerful header and footer capabilities that are best set
9286  in the preamble although they may be set at any point in a document.
9287  If you want to change these settings in your document the best place to
9288  do so is at the very top of a foil, i.
9289 \begin_inset space \thinspace{}
9290 \end_inset
9291
9292 e.
9293 \emph on
9294
9295 \begin_inset space \space{}
9296 \end_inset
9297
9298
9299 \emph default
9300 straight after the foilhead.
9301 \end_layout
9302
9303 \begin_layout Standard
9304 For this purpose, the following command styles are provided [
9305 \shape smallcaps
9306 Martin Vermeer
9307 \shape default
9308 ]:
9309 \end_layout
9310
9311 \begin_layout Standard
9312 \begin_inset Flex Multiple Columns
9313 status open
9314
9315 \begin_layout Itemize
9316
9317 \family sans
9318 My
9319 \begin_inset space ~
9320 \end_inset
9321
9322 Logo
9323 \end_layout
9324
9325 \begin_layout Itemize
9326
9327 \family sans
9328 Restriction
9329 \end_layout
9330
9331 \begin_layout Itemize
9332
9333 \family sans
9334 Right
9335 \begin_inset space ~
9336 \end_inset
9337
9338 Footer
9339 \end_layout
9340
9341 \begin_layout Itemize
9342
9343 \family sans
9344 Right
9345 \begin_inset space ~
9346 \end_inset
9347
9348 Header
9349 \end_layout
9350
9351 \begin_layout Itemize
9352
9353 \family sans
9354 Left
9355 \begin_inset space ~
9356 \end_inset
9357
9358 Header
9359 \end_layout
9360
9361 \begin_deeper
9362 \begin_layout Plain Layout
9363 \begin_inset space ~
9364 \end_inset
9365
9366
9367 \end_layout
9368
9369 \end_deeper
9370 \end_inset
9371
9372
9373 \end_layout
9374
9375 \begin_layout Standard
9376 There are also a few commands provided by 
9377 \family sans
9378 Foil\SpecialChar TeX
9379
9380 \family default
9381  that aren't directly supported by \SpecialChar LyX
9382  but I'll tell you what they do and how
9383  to use them in section
9384 \begin_inset space ~
9385 \end_inset
9386
9387
9388 \begin_inset CommandInset ref
9389 LatexCommand ref
9390 reference "sec:unsuppfoils"
9391
9392 \end_inset
9393
9394 .
9395 \end_layout
9396
9397 \begin_layout Subsubsection
9398 Building a Set of Foils
9399 \end_layout
9400
9401 \begin_layout Standard
9402 This section will give a simple introduction to using the different environments
9403  to build a set of foils.
9404  If you want to see an example set of foils, take a look at the 
9405 \family typewriter
9406 Foils.lyx
9407 \family default
9408  file you find in \SpecialChar LyX
9409 's 
9410 \family typewriter
9411 examples
9412 \family default
9413  folder.
9414 \end_layout
9415
9416 \begin_layout Paragraph
9417 Give It a Title Page
9418 \end_layout
9419
9420 \begin_layout Standard
9421 Unlike other classes that provide 
9422 \family sans
9423 Title
9424 \family default
9425
9426 \family sans
9427 Author
9428 \family default
9429
9430 \family sans
9431 Date
9432 \family default
9433  and 
9434 \family sans
9435 Abstract
9436 \family default
9437  environments, 
9438 \family sans
9439 foils
9440 \family default
9441  creates the title on a page of its own.
9442  If you leave out the 
9443 \family sans
9444 Date
9445 \family default
9446  environment \SpecialChar LaTeX
9447  will substitute the current date (every time you regenerate
9448  the output).
9449 \end_layout
9450
9451 \begin_layout Paragraph
9452 Start a New Foil
9453 \end_layout
9454
9455 \begin_layout Standard
9456 As I mentioned earlier, there are four ways of starting a new foil.
9457  For portrait foils you should use 
9458 \family sans
9459 Foilhead
9460 \family default
9461  or 
9462 \family sans
9463 ShortFoilhead.
9464
9465 \family default
9466  The difference between these two environments is the amount of space between
9467  the title of the foil (the foilhead) and the body of the foil.
9468 \end_layout
9469
9470 \begin_layout Standard
9471 Landscape foils are generated using the 
9472 \family sans
9473 Rotatefoilhead
9474 \family default
9475  and 
9476 \family sans
9477 ShortRotatefoilhead
9478 \family default
9479  environments.
9480  Again the only difference is the spacing between foilhead and body.
9481  Both of the short versions have 0.5
9482 \begin_inset space ~
9483 \end_inset
9484
9485 inches less separation between the foilhead and the body.
9486  
9487 \end_layout
9488
9489 \begin_layout Standard
9490 One problem with the support for landscape foils is the requirement that
9491  you have to use the 
9492 \family typewriter
9493 dvips
9494 \family default
9495  driver to generate the PostScript output otherwise the foils won't be rotated.
9496  It is possible to get landscape foils even if you haven't got the 
9497 \family typewriter
9498 dvips
9499 \family default
9500  driver provided you can feed your foils sideways through your printer ;-)
9501 \end_layout
9502
9503 \begin_layout Paragraph
9504 Theorems, Lemmas, Proofs and more
9505 \end_layout
9506
9507 \begin_layout Standard
9508 You can't have two of the same type of these environments directly following
9509  each other.
9510  If you use a normal paragraph break, , you will just be extending the previous
9511  environment as if you had merged the two environments together.
9512  Rather than that, you need to insert a so-called separator.
9513  Please refer to the section entitled 
9514 \emph on
9515 Separate Nestings
9516 \emph default
9517  in the 
9518 \emph on
9519 User's Guide
9520 \emph default
9521 .
9522 \end_layout
9523
9524 \begin_layout Paragraph
9525 Lists
9526 \end_layout
9527
9528 \begin_layout Standard
9529 You get all the commonly supported list styles found in other classes as
9530  well as two new ones.
9531  I'll only describe the new ones here.
9532  If you want to find out more about the other list environments check out
9533  the 
9534 \emph on
9535 User's Guide.
9536
9537 \emph default
9538  If you intend to use itemized lists you might also want to read about the
9539  
9540 \family sans
9541 Itemize
9542 \begin_inset space ~
9543 \end_inset
9544
9545 Bullet
9546 \begin_inset space ~
9547 \end_inset
9548
9549 Selection
9550 \family default
9551  dialog described above in section
9552 \begin_inset space ~
9553 \end_inset
9554
9555
9556 \change_inserted 564990737 1671355684
9557
9558 \begin_inset CommandInset ref
9559 LatexCommand ref
9560 reference "chap:bullets"
9561
9562 \end_inset
9563
9564
9565 \change_deleted 564990737 1671355684
9566
9567 \begin_inset CommandInset ref
9568 LatexCommand ref
9569 reference "sec:bullet"
9570
9571 \end_inset
9572
9573
9574 \change_unchanged
9575 .
9576 \end_layout
9577
9578 \begin_layout Standard
9579 The two new list styles, 
9580 \family sans
9581 TickList
9582 \family default
9583  and 
9584 \family sans
9585 CrossList
9586 \family default
9587 , are designed to make it easier for you to create lists of do's and don'ts
9588  or right and wrong by providing dedicated environments that use a tick
9589  or a cross as the label of the list.
9590  These lists are in fact dedicated variants of the 
9591 \family sans
9592 Itemize
9593 \family default
9594  environment.
9595  They do however require that you have the 
9596 \family typewriter
9597 psnfss
9598 \family default
9599  packages installed.
9600 \end_layout
9601
9602 \begin_layout Paragraph
9603 Figures and Tables
9604 \end_layout
9605
9606 \begin_layout Standard
9607
9608 \family sans
9609 Foil\SpecialChar TeX
9610
9611 \family default
9612  redefines the floating tables and figures so that they appear exactly where
9613  they are in the text rather than pushing them to the top of the page or
9614  to some user specified location.
9615  In fact if you change the float placement settings they are simply ignored.
9616 \end_layout
9617
9618 \begin_layout Paragraph
9619 Page Headers and Footers
9620 \begin_inset CommandInset label
9621 LatexCommand label
9622 name "sec:foilfoot"
9623
9624 \end_inset
9625
9626
9627 \end_layout
9628
9629 \begin_layout Standard
9630
9631 \family sans
9632 My
9633 \begin_inset space ~
9634 \end_inset
9635
9636 Logo
9637 \family default
9638  and 
9639 \family sans
9640 Restriction
9641 \family default
9642  are two commands used to control the left-footer text string.
9643  The first is meant to allow you to include a graphic logo on your foils
9644  and defaults to 
9645 \begin_inset Quotes eld
9646 \end_inset
9647
9648 -Typeset by 
9649 \family sans
9650 Foil\SpecialChar TeX
9651
9652 \family default
9653 -
9654 \begin_inset Quotes erd
9655 \end_inset
9656
9657 .
9658  While the second is meant to provide a classification for the audience,
9659  
9660 \emph on
9661 e.
9662 \begin_inset space \thinspace{}
9663 \end_inset
9664
9665 g.
9666 \emph default
9667
9668 \begin_inset space \space{}
9669 \end_inset
9670
9671 Confidential.
9672  It is empty by default.
9673 \end_layout
9674
9675 \begin_layout Standard
9676 The remaining page corners can be filled by 
9677 \family sans
9678 Right
9679 \begin_inset space ~
9680 \end_inset
9681
9682 Footer
9683 \family default
9684  (which defaults to page numbers), 
9685 \family sans
9686 Right
9687 \begin_inset space ~
9688 \end_inset
9689
9690 Header
9691 \family default
9692  (top right) and 
9693 \family sans
9694 Left
9695 \begin_inset space ~
9696 \end_inset
9697
9698 Header
9699 \family default
9700  (top left).
9701 \end_layout
9702
9703 \begin_layout Subsubsection
9704 Unsupported 
9705 \family sans
9706 Foil\SpecialChar TeX
9707
9708 \family default
9709  Goodies
9710 \begin_inset CommandInset label
9711 LatexCommand label
9712 name "sec:unsuppfoils"
9713
9714 \end_inset
9715
9716
9717 \end_layout
9718
9719 \begin_layout Standard
9720 All the commands mentioned below need to be set in a 
9721 \family sans
9722 \SpecialChar LaTeX
9723
9724 \family default
9725  environment or as 
9726 \family sans
9727 \SpecialChar TeX
9728
9729 \family default
9730  within another environment.
9731 \end_layout
9732
9733 \begin_layout Paragraph
9734 Lengths
9735 \end_layout
9736
9737 \begin_layout Standard
9738 All lengths are adjusted using the 
9739 \family typewriter
9740
9741 \backslash
9742 setlength{
9743 \family default
9744 \emph on
9745 lengthname
9746 \family typewriter
9747 \emph default
9748 }{
9749 \family default
9750 \emph on
9751 newlength
9752 \family typewriter
9753 \emph default
9754 }
9755 \family default
9756  command.
9757  Where 
9758 \emph on
9759 lengthname
9760 \emph default
9761  should be replaced by the name given to the length you want to change and
9762  
9763 \emph on
9764 newlength
9765 \emph default
9766  is the length value.
9767  All lengths should be specified in units of length such as inches (
9768 \family typewriter
9769 in
9770 \family default
9771 ), millimeters (
9772 \family typewriter
9773 mm
9774 \family default
9775 ) or points (
9776 \family typewriter
9777 pt
9778 \family default
9779 ) or relative to some document or font-based length such as 
9780 \family typewriter
9781
9782 \backslash
9783 textwidth
9784 \family default
9785 .
9786  
9787 \end_layout
9788
9789 \begin_layout Standard
9790 It's possible to change the spacing between a foilhead and the body of the
9791  foil by adjusting the length specified by 
9792 \family typewriter
9793
9794 \backslash
9795 foilheadskip
9796 \family default
9797 .
9798  For example, to make 
9799 \emph on
9800 all
9801 \emph default
9802  foilheads 0.5
9803 \begin_inset space \space{}
9804 \end_inset
9805
9806 in closer to their bodies put the following in the preamble: 
9807 \family typewriter
9808
9809 \backslash
9810 setlength{
9811 \backslash
9812 foilheadskip}{-0.5in}
9813 \end_layout
9814
9815 \begin_layout Standard
9816 The spacings around floats can be adjusted by setting these lengths:
9817 \end_layout
9818
9819 \begin_layout Labeling
9820 \labelwidthstring MMMMMMMMMMM
9821
9822 \family typewriter
9823
9824 \backslash
9825 abovefloatskip
9826 \family default
9827  Separation between the text and the top of the float
9828 \end_layout
9829
9830 \begin_layout Labeling
9831 \labelwidthstring MMMMMMMMMMM
9832
9833 \family typewriter
9834
9835 \backslash
9836 abovecaptionskip
9837 \family default
9838  Separation between the float and the caption
9839 \end_layout
9840
9841 \begin_layout Labeling
9842 \labelwidthstring MMMMMMMMMMM
9843
9844 \family typewriter
9845
9846 \backslash
9847 belowcaptionskip
9848 \family default
9849  Separation between the caption and the following text
9850 \end_layout
9851
9852 \begin_layout Labeling
9853 \labelwidthstring MMMMMMMMMMM
9854
9855 \family typewriter
9856
9857 \backslash
9858 captionwidth
9859 \family default
9860  You can make the captions narrower than the surrounding text by adjusting
9861  this length.
9862  Best done relative to 
9863 \family typewriter
9864
9865 \backslash
9866 textwidth
9867 \family default
9868 .
9869 \end_layout
9870
9871 \begin_layout Standard
9872 There are also several title page related lengths that you may find useful
9873  if you have a long title or several authors:
9874 \end_layout
9875
9876 \begin_layout Labeling
9877 \labelwidthstring MMMMMMMMMMM
9878
9879 \family typewriter
9880
9881 \backslash
9882 abovetitleskip
9883 \family default
9884  Separation from headers to 
9885 \family sans
9886 Title
9887 \end_layout
9888
9889 \begin_layout Labeling
9890 \labelwidthstring MMMMMMMMMMM
9891
9892 \family typewriter
9893
9894 \backslash
9895 titleauthorskip
9896 \family default
9897  between 
9898 \family sans
9899 Title
9900 \family default
9901  and 
9902 \family sans
9903 Author
9904 \family default
9905  environments
9906 \end_layout
9907
9908 \begin_layout Labeling
9909 \labelwidthstring MMMMMMMMMMM
9910
9911 \family typewriter
9912
9913 \backslash
9914 authorauthorskip
9915 \family default
9916  between multiple 
9917 \family sans
9918 Author
9919 \family default
9920  lines
9921 \end_layout
9922
9923 \begin_layout Labeling
9924 \labelwidthstring MMMMMMMMMMM
9925
9926 \family typewriter
9927
9928 \backslash
9929 authordateskip
9930 \family default
9931  between the 
9932 \family sans
9933 Author
9934 \family default
9935  and the 
9936 \family sans
9937 Date
9938 \end_layout
9939
9940 \begin_layout Labeling
9941 \labelwidthstring MMMMMMMMMMM
9942
9943 \family typewriter
9944
9945 \backslash
9946 dateabstractskip
9947 \family default
9948  between the 
9949 \family sans
9950 Date
9951 \family default
9952  and the 
9953 \family sans
9954 Abstract
9955 \end_layout
9956
9957 \begin_layout Standard
9958 The last length related command affects all the list environments.
9959  If you place 
9960 \family typewriter
9961
9962 \backslash
9963 zerolistvertdimens
9964 \family default
9965  
9966 \emph on
9967 inside
9968 \emph default
9969  a list environment then all the vertical spacing between the list items
9970  is removed.
9971  Note that this is a command not a length so it doesn't require 
9972 \family typewriter
9973
9974 \backslash
9975 setlength
9976 \family default
9977  like the stuff mentioned above.
9978 \end_layout
9979
9980 \begin_layout Paragraph
9981 Headers and Footers
9982 \end_layout
9983
9984 \begin_layout Standard
9985 The 
9986 \family typewriter
9987
9988 \backslash
9989 LogoOn
9990 \family default
9991  and 
9992 \family typewriter
9993
9994 \backslash
9995 LogoOff
9996 \family default
9997  commands control whether the logo in the 
9998 \family sans
9999 MyLogo
10000 \family default
10001  definition appear on a given page.
10002  If you put 
10003 \family typewriter
10004
10005 \backslash
10006 LogoOff
10007 \family default
10008  in the preamble then none of the foils will have the logo on them.
10009  If you don't want the logo on a particular page place the 
10010 \family typewriter
10011
10012 \backslash
10013 LogoOff
10014 \family default
10015  directly after the foilhead of that page and the 
10016 \family typewriter
10017
10018 \backslash
10019 LogoOn
10020 \family default
10021  directly after the next foilhead.
10022 \end_layout
10023
10024 \begin_layout Standard
10025 If you decide to use the 
10026 \family sans
10027 fancy
10028 \family default
10029  page style setting in the 
10030 \family sans
10031 Document
10032 \begin_inset space ~
10033 \end_inset
10034
10035 Layout
10036 \family default
10037  dialog you should probably add 
10038 \family typewriter
10039
10040 \backslash
10041 let
10042 \backslash
10043 headwidth
10044 \backslash
10045 textwidth
10046 \family default
10047  to your preamble so headers and footers on landscape pages are correctly
10048  placed when rotated.
10049  This is due to some clashes between the page layouts provided by the 
10050 \family sans
10051 fancyheadings
10052 \family default
10053  package and the 
10054 \family sans
10055 foils
10056 \family default
10057  class.
10058 \end_layout
10059
10060 \begin_layout Subsection
10061 Slides [aka 
10062 \noun on
10063 Sli\SpecialChar TeX
10064
10065 \noun default
10066 ]
10067 \begin_inset CommandInset label
10068 LatexCommand label
10069 name "sec:slitex"
10070
10071 \end_inset
10072
10073
10074 \end_layout
10075
10076 \begin_layout Standard
10077 by 
10078 \noun on
10079 John Weiss
10080 \noun default
10081  
10082 \end_layout
10083
10084 \begin_layout Subsubsection
10085 Introduction
10086 \end_layout
10087
10088 \begin_layout Standard
10089 This section describes how to use \SpecialChar LyX
10090  to make slides for overhead projectors.
10091  There are two document classes that can do this: the default slides class
10092  and the 
10093 \family sans
10094 Foil\SpecialChar TeX
10095
10096 \family default
10097  slides class.
10098  This section documents the former.
10099 \end_layout
10100
10101 \begin_layout Standard
10102 I'm going to say this again, nice and clear, so that there's no misunderstanding
10103 :
10104 \end_layout
10105
10106 \begin_layout Standard
10107 \begin_inset VSpace bigskip
10108 \end_inset
10109
10110
10111 \end_layout
10112
10113 \begin_layout Standard
10114 \align center
10115
10116 \size large
10117 This section documents the class 
10118 \begin_inset Quotes eld
10119 \end_inset
10120
10121
10122 \family sans
10123 slides (default)
10124 \family default
10125
10126 \begin_inset Quotes erd
10127 \end_inset
10128
10129  
10130 \emph on
10131 only.
10132 \end_layout
10133
10134 \begin_layout Standard
10135 \begin_inset VSpace bigskip
10136 \end_inset
10137
10138
10139 \end_layout
10140
10141 \begin_layout Standard
10142 If you're looking for the documentation for 
10143 \begin_inset Quotes eld
10144 \end_inset
10145
10146
10147 \family sans
10148 slides (Foil\SpecialChar TeX
10149 )
10150 \family default
10151
10152 \begin_inset Quotes erd
10153 \end_inset
10154
10155 , check out section
10156 \begin_inset space ~
10157 \end_inset
10158
10159
10160 \begin_inset CommandInset ref
10161 LatexCommand ref
10162 reference "sec:foiltex"
10163
10164 \end_inset
10165
10166 .
10167  The 
10168 \family sans
10169 foils
10170 \family default
10171  class [
10172 \begin_inset Quotes eld
10173 \end_inset
10174
10175
10176 \family sans
10177 slides (Foil\SpecialChar TeX
10178 )
10179 \family default
10180
10181 \begin_inset Quotes erd
10182 \end_inset
10183
10184 ] is actually somewhat better than the default 
10185 \family sans
10186 slides
10187 \family default
10188  class,
10189 \begin_inset Foot
10190 status collapsed
10191
10192 \begin_layout Plain Layout
10193 \SpecialChar ldots
10194 or so I've been told repeatedly by its advocates.
10195  Having never used it, I have no idea if this claim is true or not.
10196 \end_layout
10197
10198 \end_inset
10199
10200  which this section documents.
10201 \end_layout
10202
10203 \begin_layout Standard
10204 This class is the \SpecialChar LaTeX2e
10205  improvement of the old 
10206 \noun on
10207 Sli\SpecialChar TeX
10208
10209 \noun default
10210  package.
10211  Every \SpecialChar LaTeX2e
10212  distribution includes this class [which I'll just refer to as 
10213 \begin_inset Quotes eld
10214 \end_inset
10215
10216
10217 \family sans
10218 slides
10219 \family default
10220
10221 \begin_inset Quotes erd
10222 \end_inset
10223
10224  from now on], so you're bound to have it.
10225  As I noted earlier, there are other classes, such as 
10226 \family sans
10227 foils
10228 \family default
10229 , which also produce slides for overhead projectors and do a better job
10230  at it.
10231  However, there are some things which 
10232 \family sans
10233 slides
10234 \family default
10235  can do which the others can't, such as generate overlays.
10236  Read on to learn more!
10237 \end_layout
10238
10239 \begin_layout Subsubsection
10240 Getting Started
10241 \begin_inset CommandInset label
10242 LatexCommand label
10243 name "sec:slidesetup"
10244
10245 \end_inset
10246
10247
10248 \end_layout
10249
10250 \begin_layout Standard
10251 Obviously, to use this document class, you need to select 
10252 \begin_inset Quotes eld
10253 \end_inset
10254
10255
10256 \family sans
10257 slides (default)
10258 \family default
10259
10260 \begin_inset Quotes erd
10261 \end_inset
10262
10263  from the class list in the 
10264 \family sans
10265 Document\SpecialChar menuseparator
10266 Settings
10267 \family default
10268  dialog.
10269  There are some other special things you should know about this class:
10270 \end_layout
10271
10272 \begin_layout Itemize
10273 Don't bother changing the options 
10274 \family sans
10275 Sides and Columns
10276 \family default
10277 .
10278  They're not supported by the 
10279 \family sans
10280 slides
10281 \family default
10282  class, anyways.
10283 \end_layout
10284
10285 \begin_layout Itemize
10286 The option 
10287 \family sans
10288 Page
10289 \begin_inset space ~
10290 \end_inset
10291
10292 style
10293 \family default
10294  behaves a bit differently for this class.
10295  The possible choices and what they do are as follows:
10296 \end_layout
10297
10298 \begin_deeper
10299 \begin_layout Description
10300
10301 \family sans
10302 plain
10303 \family default
10304  The final output contains page numbers in the lower right corner.
10305 \end_layout
10306
10307 \begin_layout Description
10308
10309 \family sans
10310 headings
10311 \family default
10312  Like 
10313 \family sans
10314 plain
10315 \family default
10316 , but also prints out any time markers you've put in.
10317  This is the default.
10318 \end_layout
10319
10320 \begin_layout Description
10321
10322 \family sans
10323 empty
10324 \family default
10325  The final output contains no page numbers, time markers, or alignment markers.
10326 \end_layout
10327
10328 \end_deeper
10329 \begin_layout Itemize
10330 The 
10331 \family sans
10332 slides
10333 \family default
10334  class has an extra option: 
10335 \family typewriter
10336 clock
10337 \family default
10338 .
10339  To use it, put 
10340 \begin_inset Quotes eld
10341 \end_inset
10342
10343
10344 \family typewriter
10345 clock
10346 \family default
10347
10348 \begin_inset Quotes erd
10349 \end_inset
10350
10351  in the extra class options.
10352 \end_layout
10353
10354 \begin_deeper
10355 \begin_layout Standard
10356 Using this options allows you to add time markers to 
10357 \family sans
10358 Note
10359 \family default
10360 s.
10361  See section
10362 \begin_inset space ~
10363 \end_inset
10364
10365
10366 \begin_inset CommandInset ref
10367 LatexCommand ref
10368 reference "sec:slideNote"
10369
10370 \end_inset
10371
10372  for more details.
10373 \end_layout
10374
10375 \end_deeper
10376 \begin_layout Standard
10377 You can also use the template file 
10378 \begin_inset Quotes eld
10379 \end_inset
10380
10381
10382 \family typewriter
10383 slides.lyx
10384 \family default
10385
10386 \begin_inset Quotes erd
10387 \end_inset
10388
10389  to automatically set up a document to use the 
10390 \family sans
10391 slides
10392 \family default
10393  class [using 
10394 \family sans
10395 File\SpecialChar menuseparator
10396 New
10397 \begin_inset space ~
10398 \end_inset
10399
10400 from
10401 \begin_inset space ~
10402 \end_inset
10403
10404 Template
10405 \family default
10406  to open your new document].
10407  The template file also contains some examples of the special paragraph
10408  environments used by this class.
10409  I'll describe those next.
10410 \end_layout
10411
10412 \begin_layout Subsubsection
10413 Paragraph Environments
10414 \end_layout
10415
10416 \begin_layout Paragraph
10417 Supported Environments
10418 \end_layout
10419
10420 \begin_layout Standard
10421 The first thing you'll notice when you start up a new 
10422 \family sans
10423 slides
10424 \family default
10425  document is the font size and type: it's the equivalent of the size 
10426 \begin_inset Quotes eld
10427 \end_inset
10428
10429
10430 \family sans
10431 Largest
10432 \family default
10433
10434 \begin_inset Quotes erd
10435 \end_inset
10436
10437  in the 
10438 \family sans
10439 Sans
10440 \begin_inset space ~
10441 \end_inset
10442
10443 Serif
10444 \family default
10445  font.
10446  This is also what's used in the output.
10447  Think of this as a 
10448 \begin_inset Quotes eld
10449 \end_inset
10450
10451 visual cue
10452 \begin_inset Quotes erd
10453 \end_inset
10454
10455  to remind you that this is a slide.
10456  Your final slides will use a larger font; ergo, you'll have less space.
10457  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10458 \end_layout
10459
10460 \begin_layout Standard
10461 The next thing that becomes obvious is the changes to the paragraph environment
10462  pull-down box [at the far-left end of the toolbar].
10463  Most of the paragraph environments you're used to seeing are missing.
10464  There are also five new ones.
10465  That's because the 
10466 \family sans
10467 slides
10468 \family default
10469  class itself only supports certain paragraph environments:
10470 \end_layout
10471
10472 \begin_layout Itemize
10473
10474 \family sans
10475 Standard
10476 \end_layout
10477
10478 \begin_layout Itemize
10479
10480 \family sans
10481 Itemize
10482 \end_layout
10483
10484 \begin_layout Itemize
10485
10486 \family sans
10487 Enumerate
10488 \end_layout
10489
10490 \begin_layout Itemize
10491
10492 \family sans
10493 Description
10494 \end_layout
10495
10496 \begin_layout Itemize
10497
10498 \family sans
10499 List
10500 \end_layout
10501
10502 \begin_layout Itemize
10503
10504 \family sans
10505 Quotation
10506 \end_layout
10507
10508 \begin_layout Itemize
10509
10510 \family sans
10511 Quote
10512 \end_layout
10513
10514 \begin_layout Itemize
10515
10516 \family sans
10517 Verse
10518 \end_layout
10519
10520 \begin_layout Itemize
10521
10522 \family sans
10523 Caption
10524 \end_layout
10525
10526 \begin_layout Itemize
10527
10528 \family sans
10529 \SpecialChar LyX
10530 -Code
10531 \end_layout
10532
10533 \begin_layout Standard
10534 All of the other standard environments, including the section-heading environmen
10535 ts, aren't used in the 
10536 \family sans
10537 slides
10538 \family default
10539  class.
10540 \end_layout
10541
10542 \begin_layout Standard
10543 On the other hand, you'll notice the following new environments:
10544 \end_layout
10545
10546 \begin_layout Itemize
10547
10548 \family sans
10549 Slide
10550 \end_layout
10551
10552 \begin_layout Itemize
10553
10554 \family sans
10555 Overlay
10556 \end_layout
10557
10558 \begin_layout Itemize
10559
10560 \family sans
10561 Note
10562 \end_layout
10563
10564 \begin_layout Itemize
10565
10566 \family sans
10567 InvisibleText
10568 \end_layout
10569
10570 \begin_layout Itemize
10571
10572 \family sans
10573 VisibleText
10574 \end_layout
10575
10576 \begin_layout Standard
10577 These five are kind of quirky, due to a 
10578 \begin_inset Quotes eld
10579 \end_inset
10580
10581 feature
10582 \begin_inset Quotes erd
10583 \end_inset
10584
10585  in \SpecialChar LyX
10586 .
10587  You see, \SpecialChar LyX
10588  doesn't permit you to nest any other paragraph environment into
10589  an empty environment.
10590  Now, that's fine and dandy, but it means that you wouldn't be able to start
10591  a slide with anything except plain text.
10592  To deal with this, I've performed a little 
10593 \begin_inset Quotes eld
10594 \end_inset
10595
10596 \SpecialChar LaTeX
10597  magic.
10598 \begin_inset Quotes erd
10599 \end_inset
10600
10601  
10602 \end_layout
10603
10604 \begin_layout Paragraph
10605 Quirks of the New Environments
10606 \begin_inset CommandInset label
10607 LatexCommand label
10608 name "sec:slideQuirk"
10609
10610 \end_inset
10611
10612
10613 \end_layout
10614
10615 \begin_layout Standard
10616 All five of the new paragraph environments are somewhat quirky due to inherent
10617  limitiations in the current version of \SpecialChar LyX
10618 .
10619  As I just mentioned, \SpecialChar LyX
10620  forbids environments that begin with another environment.
10621  To get around this, the 
10622 \family sans
10623 Slide
10624 \family default
10625  environment isn't a paragraph environment as described in the 
10626 \emph on
10627 User's Guide
10628 \emph default
10629 .
10630  
10631 \end_layout
10632
10633 \begin_layout Standard
10634 You should consider 
10635 \family sans
10636 Slide
10637 \family default
10638
10639 \family sans
10640 Overlay
10641 \family default
10642 , and 
10643 \family sans
10644 Note
10645 \family default
10646  to be 
10647 \begin_inset Quotes eld
10648 \end_inset
10649
10650 pseudo-environments.
10651 \begin_inset Quotes erd
10652 \end_inset
10653
10654  They look like a section heading or a 
10655 \begin_inset Quotes eld
10656 \end_inset
10657
10658
10659 \family sans
10660 Caption
10661 \family default
10662 ,
10663 \begin_inset Quotes erd
10664 \end_inset
10665
10666  but really begin a [and, if necessary, end the previous] paragraph environment.
10667  Likewise, treat 
10668 \family sans
10669 InvisibleText
10670 \family default
10671  and 
10672 \family sans
10673 VisibleText
10674 \family default
10675  as 
10676 \begin_inset Quotes eld
10677 \end_inset
10678
10679 pseudo-commands.
10680 \begin_inset Quotes erd
10681 \end_inset
10682
10683  These two perform some action.
10684 \end_layout
10685
10686 \begin_layout Standard
10687 A common feature of all five environments, 
10688 \family sans
10689 Slide
10690 \family default
10691
10692 \family sans
10693 Overlay
10694 \family default
10695
10696 \family sans
10697 Note
10698 \family default
10699
10700 \family sans
10701 InvisibleText
10702 \family default
10703  and 
10704 \family sans
10705 VisibleText
10706 \family default
10707 , is a rather long-ish label.
10708  The text following this label — ordinarily the contents of the paragraph
10709  environment — is utterly irrelevant for 
10710 \family sans
10711 Slide
10712 \family default
10713
10714 \family sans
10715 Overlay
10716 \family default
10717
10718 \family sans
10719 Note
10720 \family default
10721
10722 \family sans
10723 InvisibleText
10724 \family default
10725  and 
10726 \family sans
10727 VisibleText
10728 \family default
10729 .
10730  \SpecialChar LyX
10731  completely ignores it.
10732  In fact, you can leave these five environments completely empty.
10733  
10734 \end_layout
10735
10736 \begin_layout Standard
10737 While you don't 
10738 \emph on
10739 have
10740 \emph default
10741  to put any text after the rather long-ish label, you might want to.
10742  This could be a short description of the contents of the 
10743 \family sans
10744 Slide
10745 \family default
10746 , for example.
10747  In that case, enter your descriptive comment and hit 
10748 \family sans
10749 Return
10750 \family default
10751  as you normally would.
10752 \end_layout
10753
10754 \begin_layout Standard
10755 If, on the other hand, you don't want to enter any descriptive text, you'll
10756  hit another \SpecialChar LyX
10757  quirk.
10758  \SpecialChar LyX
10759 , like nature, abhors a vacuum, and will not let you start a new paragraph
10760  environment until you put something in the old one.
10761  So, do this:
10762 \end_layout
10763
10764 \begin_layout Itemize
10765 Start entering the text that will 
10766 \emph on
10767 follow
10768 \emph default
10769  the new 
10770 \family sans
10771 Slide
10772 \family default
10773
10774 \family sans
10775 Overlay
10776 \family default
10777
10778 \family sans
10779 Note
10780 \family default
10781
10782 \family sans
10783 InvisibleText
10784 \family default
10785  or 
10786 \family sans
10787 VisibleText
10788 \family default
10789 .
10790  
10791 \end_layout
10792
10793 \begin_layout Itemize
10794 Now move to the beginning of that paragraph.
10795  
10796 \end_layout
10797
10798 \begin_layout Itemize
10799 Next, hit 
10800 \family sans
10801 Return
10802 \family default
10803 .
10804  
10805 \end_layout
10806
10807 \begin_layout Itemize
10808 Finally, change this new, empty paragraph to a 
10809 \family sans
10810 Slide
10811 \family default
10812
10813 \family sans
10814 Overlay
10815 \family default
10816
10817 \family sans
10818 Note
10819 \family default
10820
10821 \family sans
10822 InvisibleText
10823 \family default
10824  or 
10825 \family sans
10826 VisibleText
10827 \family default
10828 .
10829  
10830 \end_layout
10831
10832 \begin_layout Standard
10833 Some future version of \SpecialChar LyX
10834  will, hopefully, resolve this quirkiness\SpecialChar ldots
10835
10836 \end_layout
10837
10838 \begin_layout Subsubsection
10839 Making a Presentation with 
10840 \family sans
10841 Slide
10842 \family default
10843
10844 \family sans
10845 Overlay
10846 \family default
10847  and 
10848 \family sans
10849 Note
10850 \end_layout
10851
10852 \begin_layout Paragraph
10853 Using the 
10854 \family sans
10855 Slide
10856 \family default
10857  Environment
10858 \end_layout
10859
10860 \begin_layout Standard
10861 If you're expecting this section to teach you how to actually make a presentatio
10862 n, you'll be sorely disappointed.
10863  Naturally, I'll describe all of the ways the 
10864 \family sans
10865 slides
10866 \family default
10867  class can assist you in preparing the materials for a presentation.
10868  Filling in the contents, however, is up to you.
10869  [Then again, that 
10870 \emph on
10871 is
10872 \emph default
10873  the \SpecialChar LyX
10874  philosophy.]
10875 \end_layout
10876
10877 \begin_layout Standard
10878 Choosing the 
10879 \family sans
10880 Slide
10881 \family default
10882  environment [in the manner described in section
10883 \begin_inset space ~
10884 \end_inset
10885
10886
10887 \begin_inset CommandInset ref
10888 LatexCommand ref
10889 reference "sec:slideQuirk"
10890
10891 \end_inset
10892
10893 ] tells \SpecialChar LyX
10894  to begin a new slide [duh].
10895  The label for this environment/
10896 \begin_inset Quotes erd
10897 \end_inset
10898
10899 pseudo-command
10900 \begin_inset Quotes erd
10901 \end_inset
10902
10903  is an 
10904 \begin_inset Quotes eld
10905 \end_inset
10906
10907 ASCII line,
10908 \begin_inset Quotes erd
10909 \end_inset
10910
10911  in cool blue, followed by the label, 
10912 \begin_inset Quotes eld
10913 \end_inset
10914
10915 NewSlide:
10916 \begin_inset Quotes erd
10917 \end_inset
10918
10919 .
10920  Any text or paragraph environments that follow this one go on the new slide.
10921  It's that simple.
10922 \end_layout
10923
10924 \begin_layout Standard
10925 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
10926
10927  (this can be specified in the 
10928 \family sans
10929 Paragraph Layout
10930 \family default
10931  dialog).
10932  In fact, you'll want to, once you finish entering the contents of one slide.
10933  If you've entered more text than can physically fit on a slide, the extra
10934  overflows onto a new slide.
10935  I don't recommend doing this, however, since the overflow slide won't have
10936  any page number on it.
10937  Furthermore, it may interfere with any 
10938 \family sans
10939 Overlay
10940 \family default
10941  you've made to accompany the oversized 
10942 \family sans
10943 Slide
10944 \family default
10945 .
10946 \end_layout
10947
10948 \begin_layout Standard
10949 The 
10950 \family sans
10951 Overlay
10952 \family default
10953  and 
10954 \family sans
10955 Note
10956 \family default
10957  environments work the same way as the 
10958 \family sans
10959 Slide
10960 \family default
10961  environment.
10962  They both create an 
10963 \begin_inset Quotes eld
10964 \end_inset
10965
10966 ASCII line
10967 \begin_inset Quotes erd
10968 \end_inset
10969
10970  followed by a label [
10971 \begin_inset Quotes eld
10972 \end_inset
10973
10974 NewOverlay:
10975 \begin_inset Quotes erd
10976 \end_inset
10977
10978  and 
10979 \begin_inset Quotes eld
10980 \end_inset
10981
10982 NewNote:
10983 \begin_inset Quotes erd
10984 \end_inset
10985
10986 , respectively].
10987  The color is a stunning magenta instead of blue, and the 
10988 \begin_inset Quotes eld
10989 \end_inset
10990
10991 ASCII line
10992 \begin_inset Quotes erd
10993 \end_inset
10994
10995  will look different, in style and in length.
10996  The label fonts of all three also differ from one another.
10997 \end_layout
10998
10999 \begin_layout Standard
11000 As with a 
11001 \family sans
11002 Slide
11003 \family default
11004 , if the contents of a 
11005 \family sans
11006 Note
11007 \family default
11008  or 
11009 \family sans
11010 Overlay
11011 \family default
11012  exceed the physical size of a slide or sheet of paper, the extra will overflow
11013  onto a new sheet.
11014  Again, you should avoid this.
11015  It defeats the whole purpose of 
11016 \family sans
11017 Note
11018 \family default
11019 s and 
11020 \family sans
11021 Overlay
11022 \family default
11023 s.
11024 \end_layout
11025
11026 \begin_layout Paragraph
11027 Using 
11028 \family sans
11029 Overlay
11030 \family default
11031  with 
11032 \family sans
11033 Slide
11034 \end_layout
11035
11036 \begin_layout Standard
11037 The idea behind an 
11038 \family sans
11039 Overlay
11040 \family default
11041  is a slide that sits atop another slide.
11042  Perhaps you wish to discuss a figure on the main 
11043 \family sans
11044 Slide
11045 \family default
11046  before displaying the text associated with it.
11047  One way to accomplish this is tape a flap of dark paper over the part of
11048  the 
11049 \family sans
11050 Slide
11051 \family default
11052  you want to display later.
11053  This method fails, however, if you wish to overlap one graph with another,
11054  for example.
11055  You would then have to fumble while speaking to align the two separate,
11056  overlapping 
11057 \family sans
11058 Slide
11059 \family default
11060 s to align the two graphs.
11061  The use of an 
11062 \family sans
11063 Overlay
11064 \family default
11065  environment in both cases makes life much easier.
11066 \end_layout
11067
11068 \begin_layout Standard
11069 Each 
11070 \family sans
11071 Overlay
11072 \family default
11073  receives the page number of its 
11074 \begin_inset Quotes eld
11075 \end_inset
11076
11077 parent
11078 \begin_inset Quotes erd
11079 \end_inset
11080
11081  
11082 \family sans
11083 Slide
11084 \family default
11085 , appended by 
11086 \begin_inset Quotes eld
11087 \end_inset
11088
11089
11090 \family typewriter
11091 -a
11092 \family default
11093
11094 \begin_inset Quotes erd
11095 \end_inset
11096
11097 .
11098 \begin_inset Foot
11099 status collapsed
11100
11101 \begin_layout Plain Layout
11102 Presumably, mutliple 
11103 \family sans
11104 Overlay
11105 \family default
11106 s would have 
11107 \begin_inset Quotes eld
11108 \end_inset
11109
11110
11111 \family typewriter
11112 -a
11113 \family default
11114
11115 \begin_inset Quotes erd
11116 \end_inset
11117
11118
11119 \begin_inset Quotes eld
11120 \end_inset
11121
11122
11123 \family typewriter
11124 -b
11125 \family default
11126
11127 \begin_inset Quotes erd
11128 \end_inset
11129
11130
11131 \begin_inset Quotes eld
11132 \end_inset
11133
11134
11135 \family typewriter
11136 -c
11137 \family default
11138
11139 \begin_inset Quotes erd
11140 \end_inset
11141
11142 , etc.
11143 \begin_inset space ~
11144 \end_inset
11145
11146 appended to the page number of the parent 
11147 \family sans
11148 Slide
11149 \family default
11150 .
11151  
11152 \end_layout
11153
11154 \end_inset
11155
11156  Clearly, you want the contents of both the 
11157 \family sans
11158 Slide
11159 \family default
11160  and the 
11161 \family sans
11162 Overlay
11163 \family default
11164  to each fit on a single physical slide! You should probably consider an
11165  
11166 \family sans
11167 Overlay
11168 \family default
11169  as 
11170 \begin_inset Quotes eld
11171 \end_inset
11172
11173 part of
11174 \begin_inset Quotes erd
11175 \end_inset
11176
11177  a 
11178 \family sans
11179 Slide
11180 \family default
11181 .
11182  Indeed, the \SpecialChar LyX
11183  
11184 \family sans
11185 slides
11186 \family default
11187  class provides a visual cue for this: the label at the start of an 
11188 \family sans
11189 Overlay
11190 \family default
11191  is shorter than that at the start of a 
11192 \family sans
11193 Slide
11194 \family default
11195 .
11196  Lastly, when you generate printable output, you'll find alignment markers
11197  in all four corners of both the 
11198 \family sans
11199 Overlay
11200 \family default
11201  page and its parent 
11202 \family sans
11203 Slide
11204 \family default
11205 .
11206  These will assist you in lining up the two physical slides.
11207 \end_layout
11208
11209 \begin_layout Standard
11210 The major problem in overlaying two slides is aligning the contents of the
11211  two transparencies.
11212  How much space should you leave for that graph on the second slide? Worse
11213  still, what if you want a graph and a sentence on second slide, but there
11214  is text on the main transparency that goes in between them? You could try
11215  and insert vertical space of the right size.
11216  The better way is to use 
11217 \family sans
11218 InvisibleText
11219 \family default
11220  and 
11221 \family sans
11222 VisibleText
11223 \family default
11224 .
11225 \end_layout
11226
11227 \begin_layout Standard
11228 As their names imply, 
11229 \family sans
11230 InvisibleText
11231 \family default
11232  and 
11233 \family sans
11234 VisibleText
11235 \family default
11236  are two command-like paragraph environments that make all subsequent text
11237  invisible and visible, respectively.
11238  Note from section
11239 \begin_inset space ~
11240 \end_inset
11241
11242
11243 \begin_inset CommandInset ref
11244 LatexCommand ref
11245 reference "sec:slideQuirk"
11246
11247 \end_inset
11248
11249  that you don't place anything 
11250 \emph on
11251 into
11252 \emph default
11253  these two environments, however.
11254  When you create an 
11255 \family sans
11256 InvisibleText
11257 \family default
11258 , it inserts a centered, sky-blue label into the page reading 
11259 \begin_inset Quotes eld
11260 \end_inset
11261
11262 <Invisible Text Follows>
11263 \begin_inset Quotes erd
11264 \end_inset
11265
11266 .
11267  For paragraphs following this label, the parts of the 
11268 \family sans
11269 Slide
11270 \family default
11271  [or 
11272 \family sans
11273 Overlay
11274 \family default
11275 ; it doesn't matter which] where they would be contain instead blank space.
11276  
11277 \end_layout
11278
11279 \begin_layout Standard
11280 For 
11281 \family sans
11282 VisibleText
11283 \family default
11284 , the corresponding centered label is 
11285 \begin_inset Quotes eld
11286 \end_inset
11287
11288 <Visible Text Follows>
11289 \begin_inset Quotes erd
11290 \end_inset
11291
11292  in blazing green.
11293  Paragraphs following this label behave normally.
11294  Note that the beginning of a new 
11295 \family sans
11296 Slide
11297 \family default
11298
11299 \family sans
11300 Overlay
11301 \family default
11302 , or 
11303 \family sans
11304 Note
11305 \family default
11306  automatically shuts off an 
11307 \family sans
11308 InvisibleText
11309 \family default
11310 .
11311  It's therefore not necessary to use 
11312 \family sans
11313 VisibleText
11314 \family default
11315  at the end of a 
11316 \family sans
11317 Slide
11318 \family default
11319 .
11320 \end_layout
11321
11322 \begin_layout Standard
11323 By now, it should be obvious how to create overlay transparencies using
11324  the proper combination of 
11325 \family sans
11326 InvisibleText
11327 \family default
11328  and 
11329 \family sans
11330 VisibleText
11331 \family default
11332  on a 
11333 \family sans
11334 Slide
11335 \family default
11336  and 
11337 \family sans
11338 Overlay
11339 \family default
11340 :
11341 \end_layout
11342
11343 \begin_layout Enumerate
11344 Create a 
11345 \family sans
11346 Slide
11347 \family default
11348 , including everything that will appear on it, whether on the main slide
11349  or on the 
11350 \family sans
11351 Overlay
11352 \family default
11353 .
11354 \end_layout
11355
11356 \begin_layout Enumerate
11357 Before each figure or paragraph that will appear only on the 
11358 \family sans
11359 Overlay
11360 \family default
11361 , insert an 
11362 \family sans
11363 InvisibleText
11364 \family default
11365  environment.
11366  If necessary, insert a 
11367 \family sans
11368 VisibleText
11369 \family default
11370  environment after the 
11371 \family sans
11372 Overlay
11373 \family default
11374 -only text.
11375 \end_layout
11376
11377 \begin_layout Enumerate
11378 Start an 
11379 \family sans
11380 Overlay
11381 \family default
11382  immediately following the 
11383 \family sans
11384 Slide
11385 \family default
11386 .
11387 \end_layout
11388
11389 \begin_layout Enumerate
11390 Copy the contents of this 
11391 \family sans
11392 Slide
11393 \family default
11394  into the 
11395 \family sans
11396 Overlay
11397 \family default
11398 .
11399 \end_layout
11400
11401 \begin_layout Enumerate
11402 Within the 
11403 \family sans
11404 Overlay
11405 \family default
11406 , change all of the 
11407 \family sans
11408 InvisibleText
11409 \family default
11410  lines to 
11411 \family sans
11412 VisibleText
11413 \family default
11414  and vice-versa.
11415 \end_layout
11416
11417 \begin_layout Standard
11418 That's it.
11419  You've just made an 
11420 \family sans
11421 Overlay
11422 \family default
11423 .
11424 \end_layout
11425
11426 \begin_layout Standard
11427 There's one problem with the way I've designed the \SpecialChar LyX
11428  
11429 \family sans
11430 slides
11431 \family default
11432  class: you can't make text in the middle of a paragraph invisible, nor
11433  make text in the middle of an invisible paragraph visible again.
11434  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11435  codes.
11436 \begin_inset Foot
11437 status collapsed
11438
11439 \begin_layout Plain Layout
11440 The commands of interest are: 
11441 \end_layout
11442
11443 \begin_layout Itemize
11444
11445 \family typewriter
11446 {
11447 \backslash
11448 invisible \SpecialChar ldots
11449  }
11450 \end_layout
11451
11452 \begin_layout Itemize
11453
11454 \family typewriter
11455 {
11456 \backslash
11457 visible \SpecialChar ldots
11458  }
11459 \end_layout
11460
11461 \begin_layout Plain Layout
11462 \SpecialChar ldots
11463 and need to be marked as \SpecialChar TeX
11464 .
11465  The text whose 
11466 \begin_inset Quotes eld
11467 \end_inset
11468
11469 visibility
11470 \begin_inset Quotes erd
11471 \end_inset
11472
11473  you wish to change goes in between the brackets [and after the 
11474 \family typewriter
11475
11476 \backslash
11477 invisible
11478 \family default
11479  or 
11480 \family typewriter
11481
11482 \backslash
11483 visible
11484 \family default
11485  command].
11486  If you don't know how to mark text as \SpecialChar TeX
11487 , see the appropriate section of
11488  the 
11489 \emph on
11490 User's Guide
11491 \emph default
11492 .
11493 \end_layout
11494
11495 \end_inset
11496
11497
11498 \end_layout
11499
11500 \begin_layout Paragraph
11501 Using 
11502 \family sans
11503 Note
11504 \family default
11505  with 
11506 \family sans
11507 Slide
11508 \family default
11509
11510 \begin_inset CommandInset label
11511 LatexCommand label
11512 name "sec:slideNote"
11513
11514 \end_inset
11515
11516
11517 \end_layout
11518
11519 \begin_layout Standard
11520 Like an 
11521 \family sans
11522 Overlay
11523 \family default
11524 , a 
11525 \family sans
11526 Note
11527 \family default
11528  is associated with a 
11529 \begin_inset Quotes eld
11530 \end_inset
11531
11532 parent
11533 \begin_inset Quotes erd
11534 \end_inset
11535
11536  
11537 \family sans
11538 Slide
11539 \family default
11540 .
11541  Here, too, the \SpecialChar LyX
11542  
11543 \family sans
11544 slides
11545 \family default
11546  class provides visual cues.
11547  The label for a 
11548 \family sans
11549 Note
11550 \family default
11551  is shorter than that of a 
11552 \family sans
11553 Slide
11554 \family default
11555  [yet longer than that of an 
11556 \family sans
11557 Overlay
11558 \family default
11559 ] and, like the label of an 
11560 \family sans
11561 Overlay
11562 \family default
11563  is shockingly magenta.
11564  Additionally, the printed 
11565 \family sans
11566 Note
11567 \family default
11568  has the page number of its 
11569 \begin_inset Quotes eld
11570 \end_inset
11571
11572 parent
11573 \begin_inset Quotes erd
11574 \end_inset
11575
11576  
11577 \family sans
11578 Slide
11579 \family default
11580 , appended by 
11581 \begin_inset Quotes eld
11582 \end_inset
11583
11584
11585 \family typewriter
11586 -
11587 \family default
11588 1
11589 \begin_inset Quotes erd
11590 \end_inset
11591
11592
11593 \begin_inset Quotes eld
11594 \end_inset
11595
11596
11597 \family typewriter
11598 -
11599 \family default
11600 2
11601 \begin_inset Quotes erd
11602 \end_inset
11603
11604
11605 \begin_inset Quotes eld
11606 \end_inset
11607
11608
11609 \family typewriter
11610 -
11611 \family default
11612 3
11613 \begin_inset Quotes erd
11614 \end_inset
11615
11616 , etc.
11617  You can have multiple 
11618 \family sans
11619 Note
11620 \family default
11621 s associated with a single 
11622 \family sans
11623 Slide
11624 \family default
11625 , and, as with 
11626 \family sans
11627 Slide
11628 \family default
11629  and 
11630 \family sans
11631 Overlay
11632 \family default
11633 , you'll probably want to break up long 
11634 \family sans
11635 Note
11636 \family default
11637 s so that they fit on a single sheet of paper.
11638 \end_layout
11639
11640 \begin_layout Standard
11641 The purpose of a 
11642 \family sans
11643 Note
11644 \family default
11645  is obvious: it contains anything additional you might want to say about
11646  a 
11647 \family sans
11648 Slide
11649 \family default
11650 .
11651  It could also be used as a sheet of reminders for a particular 
11652 \family sans
11653 Slide
11654 \family default
11655 .
11656  In the case of the latter, you might want to make use of time markers.
11657  Currently, the \SpecialChar LyX
11658  
11659 \family sans
11660 slides
11661 \family default
11662  class has no 
11663 \begin_inset Quotes eld
11664 \end_inset
11665
11666 native
11667 \begin_inset Quotes erd
11668 \end_inset
11669
11670  support for time markers, a 
11671 \noun on
11672 Sli\SpecialChar TeX
11673
11674 \noun default
11675  feature.
11676  So, you'll have to resort to using the \SpecialChar LaTeX
11677  codes.
11678 \end_layout
11679
11680 \begin_layout Standard
11681 To use time markers, you'll need to specify the extra class option 
11682 \begin_inset Quotes eld
11683 \end_inset
11684
11685
11686 \family typewriter
11687 clock
11688 \family default
11689
11690 \begin_inset Quotes erd
11691 \end_inset
11692
11693  [see section
11694 \begin_inset space ~
11695 \end_inset
11696
11697
11698 \begin_inset CommandInset ref
11699 LatexCommand ref
11700 reference "sec:slidesetup"
11701
11702 \end_inset
11703
11704 ].
11705  This option turns on timing marks, which will appear in the lower-left-hand
11706  corner of every 
11707 \family sans
11708 Note
11709 \family default
11710  you generate.
11711  To set what appears in the time marker, you use the \SpecialChar LaTeX
11712  commands 
11713 \begin_inset Quotes eld
11714 \end_inset
11715
11716
11717 \family typewriter
11718
11719 \backslash
11720 settime{}
11721 \family default
11722
11723 \begin_inset Quotes erd
11724 \end_inset
11725
11726  and 
11727 \begin_inset Quotes eld
11728 \end_inset
11729
11730
11731 \family typewriter
11732
11733 \backslash
11734 addtime{}
11735 \family default
11736
11737 \begin_inset Quotes erd
11738 \end_inset
11739
11740 .
11741  The arguments of both commands are time measured in seconds.
11742  
11743 \begin_inset Quotes eld
11744 \end_inset
11745
11746
11747 \family typewriter
11748
11749 \backslash
11750 settime{}
11751 \family default
11752
11753 \begin_inset Quotes erd
11754 \end_inset
11755
11756  sets the time marker to a given time.
11757  
11758 \begin_inset Quotes eld
11759 \end_inset
11760
11761
11762 \family typewriter
11763
11764 \backslash
11765 addtime{}
11766 \family default
11767
11768 \begin_inset Quotes erd
11769 \end_inset
11770
11771  increments the time marker by the specified amount.
11772  Using time markers and 
11773 \family sans
11774 Note
11775 \family default
11776 s in this fashion, you can remind yourself how much time to spend on a particula
11777
11778 \family sans
11779 Slide
11780 \family default
11781 .
11782 \end_layout
11783
11784 \begin_layout Standard
11785 There's one last feature to describe.
11786  Clearly, you'd like to print out all of your 
11787 \family sans
11788 Slide
11789 \family default
11790 s and 
11791 \family sans
11792 Overlay
11793 \family default
11794 s on transparencies while printing all of your 
11795 \family sans
11796 Note
11797 \family default
11798 s on plain paper.
11799  However, a 
11800 \family sans
11801 Note
11802 \family default
11803  
11804 \emph on
11805 must
11806 \emph default
11807  follow the 
11808 \family sans
11809 Slide
11810 \family default
11811  with which it is associated.
11812  What's a person to do?
11813 \end_layout
11814
11815 \begin_layout Standard
11816 Luckily, there are two \SpecialChar LaTeX
11817  commands that allow you to select what to print
11818  out.
11819  Both must be placed into the preamble of your document.
11820  The command 
11821 \begin_inset Quotes eld
11822 \end_inset
11823
11824
11825 \family typewriter
11826
11827 \backslash
11828 onlyslides{
11829 \backslash
11830 slides}
11831 \family default
11832
11833 \begin_inset Quotes erd
11834 \end_inset
11835
11836  will cause the output to contain only the 
11837 \family sans
11838 Slide
11839 \family default
11840 s and 
11841 \family sans
11842 Overlay
11843 \family default
11844 s.
11845  Correspondingly, the command 
11846 \begin_inset Quotes eld
11847 \end_inset
11848
11849
11850 \family typewriter
11851
11852 \backslash
11853 onlynotes{
11854 \backslash
11855 notes}
11856 \family default
11857
11858 \begin_inset Quotes erd
11859 \end_inset
11860
11861  prevents the output of anything but 
11862 \family sans
11863 Note
11864 \family default
11865 s.
11866  I'd advise placing both commands in the preamble and initially comment
11867  both out.
11868  You can then preview your entire presentation as you write.
11869  When you're done writing, you can then uncomment one of the two to select
11870  what you want to print.
11871  I like to uncomment 
11872 \begin_inset Quotes eld
11873 \end_inset
11874
11875
11876 \family typewriter
11877
11878 \backslash
11879 onlyslides{
11880 \backslash
11881 slides}
11882 \family default
11883
11884 \begin_inset Quotes erd
11885 \end_inset
11886
11887  , print to a file with 
11888 \begin_inset Quotes eld
11889 \end_inset
11890
11891
11892 \family typewriter
11893 -slides
11894 \family default
11895
11896 \begin_inset Quotes erd
11897 \end_inset
11898
11899  in its name, comment it back out, then uncomment 
11900 \begin_inset Quotes eld
11901 \end_inset
11902
11903
11904 \family typewriter
11905
11906 \backslash
11907 onlynotes{
11908 \backslash
11909 notes}
11910 \family default
11911
11912 \begin_inset Quotes erd
11913 \end_inset
11914
11915  and print to a 
11916 \begin_inset Quotes eld
11917 \end_inset
11918
11919
11920 \family typewriter
11921 *-notes.ps
11922 \family default
11923
11924 \begin_inset Quotes erd
11925 \end_inset
11926
11927  file.
11928  I can then send either file to a printer, loading transparencies or plain
11929  paper as appropriate.
11930 \end_layout
11931
11932 \begin_layout Standard
11933 You can also provide other arguments to the 
11934 \begin_inset Quotes eld
11935 \end_inset
11936
11937
11938 \family typewriter
11939
11940 \backslash
11941 onlyslides{}
11942 \family default
11943
11944 \begin_inset Quotes erd
11945 \end_inset
11946
11947  and 
11948 \begin_inset Quotes eld
11949 \end_inset
11950
11951
11952 \family typewriter
11953
11954 \backslash
11955 onlynotes{}
11956 \family default
11957
11958 \begin_inset Quotes erd
11959 \end_inset
11960
11961  commands.
11962  See a good \SpecialChar LaTeX
11963  book for details.
11964 \end_layout
11965
11966 \begin_layout Subsubsection
11967 The 
11968 \family sans
11969 slides
11970 \family default
11971  Class Template File
11972 \end_layout
11973
11974 \begin_layout Standard
11975 I have also provided a template file, 
11976 \begin_inset Quotes eld
11977 \end_inset
11978
11979
11980 \family typewriter
11981 slides.lyx
11982 \family default
11983
11984 \begin_inset Quotes erd
11985 \end_inset
11986
11987 , with the 
11988 \family sans
11989 slides
11990 \family default
11991  class.
11992  To use it, begin your new presentation with 
11993 \family sans
11994 File\SpecialChar menuseparator
11995 New
11996 \begin_inset space ~
11997 \end_inset
11998
11999 from
12000 \begin_inset space ~
12001 \end_inset
12002
12003 Template
12004 \family default
12005 .
12006  Your new \SpecialChar LyX
12007  presentation file will contain an example 
12008 \family sans
12009 Slide
12010 \family default
12011  – 
12012 \family sans
12013 Overlay
12014 \family default
12015  – 
12016 \family sans
12017 Note
12018 \family default
12019  triplet.
12020  The 
12021 \family sans
12022 Slide
12023 \family default
12024  and 
12025 \family sans
12026 Overlay
12027 \family default
12028  additionally contain an example of the use of 
12029 \family sans
12030 InvisibleText
12031 \family default
12032  and 
12033 \family sans
12034 VisibleText
12035 \family default
12036 .
12037  Lastly, the preamble will contain:
12038 \end_layout
12039
12040 \begin_layout LyX-Code
12041 % Uncomment to print out only slides and overlays
12042 \end_layout
12043
12044 \begin_layout LyX-Code
12045 %
12046 \end_layout
12047
12048 \begin_layout LyX-Code
12049 %
12050 \backslash
12051 onlyslides{
12052 \backslash
12053 slides}
12054 \begin_inset Newline newline
12055 \end_inset
12056
12057  
12058 \end_layout
12059
12060 \begin_layout LyX-Code
12061 % Uncomment to print out only notes
12062 \end_layout
12063
12064 \begin_layout LyX-Code
12065 %
12066 \end_layout
12067
12068 \begin_layout LyX-Code
12069 %
12070 \backslash
12071 onlynotes{
12072 \backslash
12073 notes}
12074 \end_layout
12075
12076 \begin_layout Standard
12077 One final thing: I created this class to support the \SpecialChar LaTeX2e
12078  
12079 \begin_inset Quotes eld
12080 \end_inset
12081
12082
12083 \noun on
12084 Sli\SpecialChar TeX
12085
12086 \noun default
12087  emulation
12088 \begin_inset Quotes erd
12089 \end_inset
12090
12091  class, one of the built-in \SpecialChar LaTeX2e
12092  classes.
12093  Neither I nor the rest of the \SpecialChar LyX
12094  Team endorse or oppose the use of this built-in
12095  slide class.
12096  It's here if you want it or need it.
12097  There exist other \SpecialChar LaTeX2e
12098  classes for creating presentations, such as the 
12099 \family sans
12100 Foils
12101 \family default
12102  class [see section
12103 \begin_inset space ~
12104 \end_inset
12105
12106
12107 \begin_inset CommandInset ref
12108 LatexCommand ref
12109 reference "sec:foiltex"
12110
12111 \end_inset
12112
12113 ] or the 
12114 \begin_inset Quotes eld
12115 \end_inset
12116
12117
12118 \family typewriter
12119 seminar
12120 \family default
12121
12122 \begin_inset Quotes erd
12123 \end_inset
12124
12125  package [present on some \SpecialChar TeX
12126  distributions].
12127  The latter is not yet supported under \SpecialChar LyX
12128 .
12129 \begin_inset Foot
12130 status collapsed
12131
12132 \begin_layout Plain Layout
12133 Perhaps you can take on the task\SpecialChar ldots
12134
12135 \end_layout
12136
12137 \end_inset
12138
12139  I know nothing about these other classes.
12140  Try them out to see what sort of alternative they provide.
12141 \end_layout
12142
12143 \begin_layout Section
12144
12145 \change_inserted 564990737 1670439661
12146 Reports
12147 \end_layout
12148
12149 \begin_layout Subsection
12150
12151 \change_inserted 564990737 1670439661
12152 report
12153 \end_layout
12154
12155 \begin_layout Standard
12156
12157 \change_inserted 564990737 1670439661
12158 The document class 
12159 \family sans
12160 report
12161 \family default
12162  provides the 
12163 \family sans
12164 report.cls
12165 \family default
12166  document class for preparing reports.
12167  Like the 
12168 \family sans
12169 book
12170 \family default
12171  document class, this provides parts, chapters and sections but does not
12172  provide the paragraph styles needed for a book; like the 
12173 \family sans
12174 article
12175 \family default
12176  document class, it provides the abstract paragraph style.
12177  In two-sided mode, it does not start a new chapter on the right hand page.
12178 \end_layout
12179
12180 \begin_layout Standard
12181
12182 \change_inserted 564990737 1670439674
12183 The remaining 
12184 \family sans
12185 report
12186 \family default
12187  document classes are described in the Collections (section
12188 \begin_inset space ~
12189 \end_inset
12190
12191
12192 \begin_inset CommandInset ref
12193 LatexCommand ref
12194 reference "sec:Collections"
12195
12196 \end_inset
12197
12198 ).
12199 \end_layout
12200
12201 \begin_layout Section
12202
12203 \change_inserted 564990737 1670439674
12204 Scripts (drama)
12205 \end_layout
12206
12207 \begin_layout Subsection
12208 Broadway
12209 \end_layout
12210
12211 \begin_layout Standard
12212 by 
12213 \shape smallcaps
12214 Garst Reese
12215 \end_layout
12216
12217 \begin_layout Subsubsection
12218 Introduction
12219 \end_layout
12220
12221 \begin_layout Standard
12222 Broadway is for writing plays.
12223  The format is more decorative than Hollywood, and much less standardized.
12224  This format should be suitable for workshops.
12225 \end_layout
12226
12227 \begin_layout Subsubsection
12228 Special problems
12229 \end_layout
12230
12231 \begin_layout Standard
12232 The same as in Hollywood.
12233 \end_layout
12234
12235 \begin_layout Subsubsection
12236 Special features
12237 \end_layout
12238
12239 \begin_layout Standard
12240 Insert the 
12241 \family sans
12242 Speaker
12243 \family default
12244  names as labels then cross-reference the label to insert the name.
12245  The cross-reference dialog will show the current cast of characters.
12246 \end_layout
12247
12248 \begin_layout Subsubsection
12249 Paper size and Margins
12250 \end_layout
12251
12252 \begin_layout Standard
12253 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12254 \end_layout
12255
12256 \begin_layout Subsubsection
12257 Environments
12258 \end_layout
12259
12260 \begin_layout Standard
12261 The following environments are available.
12262  You can use broadway.bind to get the bind keys shown at the right.
12263 \end_layout
12264
12265 \begin_layout Itemize
12266
12267 \family sans
12268 Standard
12269 \begin_inset Newline newline
12270 \end_inset
12271
12272
12273 \family default
12274 You should not have to use this, but it is here for anything that does not
12275  fit otherwise.
12276 \end_layout
12277
12278 \begin_layout Itemize
12279
12280 \family sans
12281 Narrative
12282 \begin_inset space \hfill{}
12283 \end_inset
12284
12285 M-z n
12286 \begin_inset Newline newline
12287 \end_inset
12288
12289
12290 \family default
12291 Used to describe stage setting and the action.
12292  First use of speaker names in all CAPs.
12293 \end_layout
12294
12295 \begin_layout Itemize
12296
12297 \family sans
12298 ACT
12299 \begin_inset space \hfill{}
12300 \end_inset
12301
12302 M-z a
12303 \begin_inset Newline newline
12304 \end_inset
12305
12306
12307 \family default
12308 Automatically numbered.
12309  On screen it will be arabic, but will print as Roman.
12310 \end_layout
12311
12312 \begin_layout Itemize
12313
12314 \family sans
12315 ACT*
12316 \begin_inset space \hfill{}
12317 \end_inset
12318
12319 M-z S at
12320 \begin_inset Newline newline
12321 \end_inset
12322
12323
12324 \family default
12325 Subtitle for 
12326 \family sans
12327 ACT.
12328
12329 \family default
12330  It is just centered text.
12331 \end_layout
12332
12333 \begin_layout Itemize
12334
12335 \family sans
12336 SCENE
12337 \begin_inset space \hfill{}
12338 \end_inset
12339
12340 M-z S-S
12341 \begin_inset Newline newline
12342 \end_inset
12343
12344
12345 \family default
12346 Not automatically numbered.
12347  You supply the number.
12348  This is because I couldn't figure out how.
12349 \end_layout
12350
12351 \begin_layout Itemize
12352
12353 \family sans
12354 AT_RISE:
12355 \begin_inset space \hfill{}
12356 \end_inset
12357
12358 M-z S-R
12359 \begin_inset Newline newline
12360 \end_inset
12361
12362
12363 \family default
12364 A special case of Narrative to describe the setting and action as the curtain
12365  rises.
12366 \end_layout
12367
12368 \begin_layout Itemize
12369
12370 \family sans
12371 Speaker
12372 \begin_inset space \hfill{}
12373 \end_inset
12374
12375 M-z s
12376 \begin_inset Newline newline
12377 \end_inset
12378
12379
12380 \family default
12381 The speaker's (actor's) title, centered in all CAPS.
12382 \end_layout
12383
12384 \begin_layout Itemize
12385
12386 \family sans
12387 Parenthetical
12388 \begin_inset space \hfill{}
12389 \end_inset
12390
12391 M-z p
12392 \begin_inset Newline newline
12393 \end_inset
12394
12395
12396 \family default
12397 Instructions to the speaker.
12398  The parentheses are automatically inserted.
12399  The ( will appear on screen, but both will be in the printed play.
12400  This environment is only used within 
12401 \family sans
12402 Dialogue
12403 \family default
12404 .
12405 \end_layout
12406
12407 \begin_layout Itemize
12408
12409 \family sans
12410 Dialogue
12411 \begin_inset space \hfill{}
12412 \end_inset
12413
12414 M-z d
12415 \begin_inset Newline newline
12416 \end_inset
12417
12418
12419 \family default
12420 What the Speaker says.
12421 \end_layout
12422
12423 \begin_layout Itemize
12424
12425 \family sans
12426 CURTAIN
12427 \begin_inset space \hfill{}
12428 \end_inset
12429
12430 M-z S-C
12431 \begin_inset Newline newline
12432 \end_inset
12433
12434
12435 \family default
12436 The curtain comes down.
12437 \end_layout
12438
12439 \begin_layout Itemize
12440
12441 \family sans
12442 Title
12443 \begin_inset space \hfill{}
12444 \end_inset
12445
12446 M-z S-T
12447 \end_layout
12448
12449 \begin_layout Itemize
12450
12451 \family sans
12452 Author
12453 \begin_inset space \hfill{}
12454 \end_inset
12455
12456 M-z S-A
12457 \end_layout
12458
12459 \begin_layout Itemize
12460
12461 \family sans
12462 Right_Address
12463 \begin_inset space \hfill{}
12464 \end_inset
12465
12466 M-z r
12467 \end_layout
12468
12469 \begin_layout Standard
12470 Hello there.
12471 \end_layout
12472
12473 \begin_layout Subsection
12474 Hollywood (Hollywood spec scripts)
12475 \end_layout
12476
12477 \begin_layout Standard
12478 by 
12479 \shape smallcaps
12480 Garst Reese
12481 \end_layout
12482
12483 \begin_layout Subsubsection
12484 Introduction
12485 \end_layout
12486
12487 \begin_layout Standard
12488 Getting the format of a Hollywood script right is a 
12489 \begin_inset Quotes eld
12490 \end_inset
12491
12492 rite of passage.
12493 \begin_inset Quotes erd
12494 \end_inset
12495
12496  It is designed to make the readers focus on content and to be easy and
12497  familiar for the actors to read.
12498  Each page of a script should be one minute of film.
12499  Nothing goes in a script that you cannot see or hear on screen.
12500  The courier 12 pt font should be used throughout.
12501  No italics.
12502 \end_layout
12503
12504 \begin_layout Subsubsection
12505 Special problems
12506 \end_layout
12507
12508 \begin_layout Standard
12509 Speakers' lines should NEVER break in mid-sentence.
12510  If a speaker's lines continue over a page break, repeat the 
12511 \family sans
12512 Speaker
12513 \family default
12514  title followed by (Cont'd).
12515 \end_layout
12516
12517 \begin_layout Subsubsection
12518 Special features
12519 \end_layout
12520
12521 \begin_layout Standard
12522 Insert the 
12523 \family sans
12524 Speaker
12525 \family default
12526  names as labels then cross-reference the label to insert the name.
12527  The cross-reference dialog will show the current cast of characters.
12528  You can use this to insert the speaker name in narratives also.
12529 \end_layout
12530
12531 \begin_layout Subsubsection
12532 Paper size and Margins
12533 \end_layout
12534
12535 \begin_layout Standard
12536 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12537 \end_layout
12538
12539 \begin_layout Subsubsection
12540 Environments
12541 \end_layout
12542
12543 \begin_layout Standard
12544 The following environments are available.
12545  You can use hollywood.bind to get the bind keys shown at the right.
12546 \end_layout
12547
12548 \begin_layout Itemize
12549
12550 \family sans
12551 Standard
12552 \begin_inset Newline newline
12553 \end_inset
12554
12555
12556 \family default
12557 Used where nothing else works.
12558  Try to avoid it.
12559 \end_layout
12560
12561 \begin_layout Itemize
12562
12563 \family sans
12564 FADE_IN
12565 \family default
12566 :
12567 \begin_inset space \hfill{}
12568 \end_inset
12569
12570
12571 \family sans
12572 M-z S-I
12573 \family default
12574
12575 \begin_inset Newline newline
12576 \end_inset
12577
12578 Usually followed by something like 
12579 \begin_inset Quotes eld
12580 \end_inset
12581
12582 on Sally waking up.
12583 \begin_inset Quotes erd
12584 \end_inset
12585
12586
12587 \end_layout
12588
12589 \begin_layout Itemize
12590
12591 \family sans
12592 INT:
12593 \begin_inset space \hfill{}
12594 \end_inset
12595
12596 M-z i
12597 \begin_inset Newline newline
12598 \end_inset
12599
12600
12601 \family default
12602 Introduces a new INTERIOR camera set-up.
12603  Always followed by DAY or NIGHT, or something similar to define the lighting
12604  required.
12605  Everthing on this line in CAPS.
12606 \end_layout
12607
12608 \begin_layout Itemize
12609
12610 \family sans
12611 EXT:
12612 \begin_inset space \hfill{}
12613 \end_inset
12614
12615 M-z e
12616 \begin_inset Newline newline
12617 \end_inset
12618
12619
12620 \family default
12621 Introduces a new EXTERIOR camera set-up.
12622  Everthing on this line in CAPS.
12623 \end_layout
12624
12625 \begin_layout Itemize
12626
12627 \family sans
12628 Speaker
12629 \begin_inset space \hfill{}
12630 \end_inset
12631
12632 M-z s
12633 \begin_inset Newline newline
12634 \end_inset
12635
12636
12637 \family default
12638 The character speaking.
12639 \end_layout
12640
12641 \begin_layout Itemize
12642
12643 \family sans
12644 Parenthetical
12645 \begin_inset space \hfill{}
12646 \end_inset
12647
12648 M-z p
12649 \begin_inset Newline newline
12650 \end_inset
12651
12652
12653 \family default
12654 Instructions to the speaker.
12655  The () are automatically inserted.
12656 \end_layout
12657
12658 \begin_layout Itemize
12659
12660 \family sans
12661 Dialogue
12662 \begin_inset space \hfill{}
12663 \end_inset
12664
12665 M-z d
12666 \begin_inset Newline newline
12667 \end_inset
12668
12669
12670 \family default
12671 What the 
12672 \family sans
12673 Speaker
12674 \family default
12675  says.
12676 \end_layout
12677
12678 \begin_layout Itemize
12679
12680 \family sans
12681 Transition
12682 \begin_inset space \hfill{}
12683 \end_inset
12684
12685 M-z t
12686 \begin_inset Newline newline
12687 \end_inset
12688
12689
12690 \family default
12691 Camera movement instruction.
12692  e.
12693 \begin_inset space \thinspace{}
12694 \end_inset
12695
12696 g.
12697 \begin_inset space \space{}
12698 \end_inset
12699
12700 CUT TO:
12701 \end_layout
12702
12703 \begin_layout Itemize
12704
12705 \family sans
12706 FADE OUT:
12707 \begin_inset space \hfill{}
12708 \end_inset
12709
12710 M-z S-I
12711 \end_layout
12712
12713 \begin_layout Itemize
12714
12715 \family sans
12716 Author
12717 \begin_inset space \hfill{}
12718 \end_inset
12719
12720 M-z S-A
12721 \end_layout
12722
12723 \begin_layout Itemize
12724
12725 \family sans
12726 Title
12727 \begin_inset space \hfill{}
12728 \end_inset
12729
12730 M-z S-T
12731 \end_layout
12732
12733 \begin_layout Itemize
12734
12735 \family sans
12736 Right_Address
12737 \begin_inset space \hfill{}
12738 \end_inset
12739
12740 M-z r
12741 \end_layout
12742
12743 \begin_layout Subsubsection
12744 Script jargon
12745 \end_layout
12746
12747 \begin_layout Itemize
12748 (O.S) — off screen
12749 \end_layout
12750
12751 \begin_layout Itemize
12752 (V.0) — voice over
12753 \end_layout
12754
12755 \begin_layout Itemize
12756 b.
12757 \begin_inset space \thinspace{}
12758 \end_inset
12759
12760 g.
12761  — background
12762 \end_layout
12763
12764 \begin_layout Itemize
12765 C.U.
12766  — close-up
12767 \end_layout
12768
12769 \begin_layout Itemize
12770 PAN — camera movement
12771 \end_layout
12772
12773 \begin_layout Itemize
12774 INSERT — cut to close-up of
12775 \end_layout
12776
12777 \begin_layout Chapter
12778
12779 \change_inserted 564990737 1671185876
12780 Modules
12781 \end_layout
12782
12783 \begin_layout Section
12784 Multiple Text Columns
12785 \end_layout
12786
12787 \begin_layout Standard
12788 This feature is independent of the option 
12789 \family sans
12790 Two-column document
12791 \family default
12792  in the document settings under 
12793 \family sans
12794 Text Layout
12795 \family default
12796 .
12797  If you want to have 2
12798 \begin_inset space ~
12799 \end_inset
12800
12801 columns for the whole document, it is recommended to use the 
12802 \family sans
12803 Two-column document
12804 \family default
12805  option.
12806  For all other cases use this feature.
12807 \end_layout
12808
12809 \begin_layout Standard
12810 To use multiple text columns in your document, you have to load the module
12811  
12812 \family sans
12813 Multiple Columns
12814 \family default
12815  (menu 
12816 \family sans
12817 Document\SpecialChar menuseparator
12818 Settings\SpecialChar menuseparator
12819 Modules
12820 \family default
12821 ) and must have the \SpecialChar LaTeX
12822 -package 
12823 \begin_inset Flex Code
12824 status collapsed
12825
12826 \begin_layout Plain Layout
12827 multicol
12828 \end_layout
12829
12830 \end_inset
12831
12832  installed.
12833 \end_layout
12834
12835 \begin_layout Standard
12836 Footnotes within multiple columns will be placed at the bottom of the page
12837  and not under each column.
12838  Within the different columns you can use everything, with the limitation
12839  that for floats you need to use the float option 
12840 \family sans
12841 Span columns
12842 \family default
12843 .
12844 \end_layout
12845
12846 \begin_layout Subsection
12847 Basics
12848 \end_layout
12849
12850 \begin_layout Standard
12851 If you want to have 2
12852 \begin_inset space ~
12853 \end_inset
12854
12855 columns in your text, insert a multicolumn inset via the menu 
12856 \family sans
12857 Insert\SpecialChar menuseparator
12858 Custom
12859 \begin_inset space ~
12860 \end_inset
12861
12862 Insets\SpecialChar menuseparator
12863 Multiple
12864 \begin_inset space ~
12865 \end_inset
12866
12867 Columns
12868 \family default
12869  where the columns should start.
12870  Write all text that should be printed in 2
12871 \begin_inset space ~
12872 \end_inset
12873
12874 columns into this inset.
12875 \end_layout
12876
12877 \begin_layout Standard
12878 Here is an example:
12879 \end_layout
12880
12881 \begin_layout Standard
12882 \noindent
12883 \begin_inset Flex Multiple Columns
12884 status open
12885
12886 \begin_layout Plain Layout
12887 \noindent
12888
12889 \series bold
12890 \size small
12891 The Adventure of the Empty House
12892 \series default
12893
12894 \begin_inset Newline newline
12895 \end_inset
12896
12897 by Sir Arthur Conan Doyle
12898 \end_layout
12899
12900 \begin_layout Plain Layout
12901
12902 \size small
12903 It was in the spring of the year 1894 that all London was interested, and
12904  the fashionable world dismayed, by the murder of the Honourable Ronald
12905  Adair under most unusual and inexplicable circumstances.
12906  The public has already learned those particulars of the crime which came
12907  out in the police investigation, but a good deal was suppressed upon that
12908  occasion, since the case for the prosecution was so overwhelmingly strong
12909  that it was not necessary to bring forward all the facts.
12910  Only now, at the end of nearly ten years, am I allowed to supply those
12911  missing links which make up the whole of that remarkable chain.
12912  The crime was of interest in itself, but that interest was as nothing to
12913  me compared to the inconceivable sequel, which afforded me the greatest
12914  shock and surprise of any event in my adventurous life.
12915  Even now, after this long interval, I find myself thrilling as I think
12916  of it, and feeling once more that sudden flood of joy, amazement, and increduli
12917 ty which utterly submerged my mind.
12918  Let me say to that public, which has shown some interest in those glimpses
12919  which I have occasionally given them of the thoughts and actions of a very
12920  remarkable man, that they are not to blame me if I have not shared my knowledge
12921  with them, for I should have considered it my first duty to do so, had
12922  I not been barred by a positive prohibition from his own lips, which was
12923  only withdrawn upon the third of last month.
12924 \end_layout
12925
12926 \end_inset
12927
12928
12929 \end_layout
12930
12931 \begin_layout Standard
12932 To get 3 or more columns, set the cursor into the multicolumn inset and
12933  use the menu 
12934 \family sans
12935 Insert\SpecialChar menuseparator
12936 Number
12937 \begin_inset space ~
12938 \end_inset
12939
12940 of
12941 \begin_inset space ~
12942 \end_inset
12943
12944 Columns
12945 \family default
12946 .
12947  The number of the desired columns is written into that inset (for 3
12948 \begin_inset space ~
12949 \end_inset
12950
12951 columns write 
12952 \begin_inset Quotes eld
12953 \end_inset
12954
12955 3
12956 \begin_inset Quotes erd
12957 \end_inset
12958
12959 ).
12960 \begin_inset Newline newline
12961 \end_inset
12962
12963 Here is an example with 3
12964 \begin_inset space ~
12965 \end_inset
12966
12967 columns:
12968 \end_layout
12969
12970 \begin_layout Standard
12971 \begin_inset Flex Multiple Columns
12972 status open
12973
12974 \begin_layout Plain Layout
12975
12976 \size footnotesize
12977 \begin_inset Argument 1
12978 status open
12979
12980 \begin_layout Plain Layout
12981
12982 3
12983 \end_layout
12984
12985 \end_inset
12986
12987 It can be imagined that my close intimacy with Sherlock Holmes had interested
12988  me deeply in crime, and that after his disappearance I never failed to
12989  read with care the various problems which came before the public.
12990  And I even attempted, more than once, for my own private satisfaction,
12991  to employ his methods in their solution, though with indifferent success.
12992  There was none, however, which appealed to me like this tragedy of Ronald
12993  Adair.
12994  As I read the evidence at the inquest, which led up to a verdict of willful
12995  murder against some person or persons unknown, I realized more clearly
12996  than I had ever done the loss which the community had sustained by the
12997  death of Sherlock Holmes.
12998  There were points about this strange business which would, I was sure,
12999  have specially appealed to him, and the efforts of the police would have
13000  been supplemented, or more probably anticipated, by the trained observation
13001  and the alert mind of the first criminal agent in Europe.
13002  All day, as I drove upon my round, I turned over the case in my mind and
13003  found no explanation which appeared to me to be adequate.
13004  At the risk of telling a twice-told tale, I will recapitulate the facts
13005  as they were known to the public at the conclusion of the inquest.
13006 \end_layout
13007
13008 \end_inset
13009
13010
13011 \end_layout
13012
13013 \begin_layout Standard
13014 You can have up to 10
13015 \begin_inset space ~
13016 \end_inset
13017
13018 columns if you want to, but that might not be very pleasant for the readers
13019  of your document.
13020 \end_layout
13021
13022 \begin_layout Standard
13023 \begin_inset Newpage newpage
13024 \end_inset
13025
13026
13027 \end_layout
13028
13029 \begin_layout Subsection
13030 Columns inside Columns
13031 \end_layout
13032
13033 \begin_layout Standard
13034 You can also have columns inside columns:
13035 \end_layout
13036
13037 \begin_layout Standard
13038 \begin_inset Flex Multiple Columns
13039 status open
13040
13041 \begin_layout Plain Layout
13042
13043 \size footnotesize
13044 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
13045  at that time governor of one of the Australian colonies.
13046  Adair's mother had returned from Australia to undergo the operation for
13047  cataract, and she, her son Ronald, and her daughter Hilda were living together
13048  at 427 Park Lane.
13049 \end_layout
13050
13051 \begin_layout Plain Layout
13052 \begin_inset Flex Multiple Columns
13053 status open
13054
13055 \begin_layout Plain Layout
13056
13057 \size footnotesize
13058 The youth moved in the best society
13059 \begin_inset space ~
13060 \end_inset
13061
13062 – had, so far as was known, no enemies and no particular vices.
13063  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
13064  had been broken off by mutual consent some months before, and there was
13065  no sign that it had left any very profound feeling behind it.
13066  For the rest {sic} the man's life moved in a narrow and conventional circle,
13067  for his habits were quiet and his nature unemotional.
13068  Yet it was upon this easy-going young aristocrat that death came, in most
13069  strange and unexpected form, between the hours of ten and eleven-twenty
13070  on the night of March 30, 1894.
13071 \end_layout
13072
13073 \end_inset
13074
13075
13076 \end_layout
13077
13078 \begin_layout Plain Layout
13079
13080 \size footnotesize
13081 Ronald Adair was fond of cards
13082 \begin_inset space ~
13083 \end_inset
13084
13085 – playing continually, but never for such stakes as would hurt him.
13086  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
13087  It was shown that, after dinner on the day of his death, he had played
13088  a rubber of whist at the latter club.
13089  He had also played there in the afternoon.
13090
13091 \size default
13092  
13093 \size footnotesize
13094 The evidence of those who had played with him
13095 \begin_inset space ~
13096 \end_inset
13097
13098 – Mr.
13099  Murray, Sir John Hardy, and Colonel Moran
13100 \begin_inset space ~
13101 \end_inset
13102
13103 – showed that the game was whist, and that there was a fairly equal fall
13104  of the cards.
13105  Adair might have lost five pounds, but not more.
13106  His fortune was a considerable one, and such a loss could not in any way
13107  affect him.
13108  He had played nearly every day at one club or other, but he was a cautious
13109  player, and usually rose a winner.
13110  It came out in evidence that, in partnership with Colonel Moran, he had
13111  actually won as much as four hundred and twenty pounds in a sitting, some
13112  weeks before, from Godfrey Milner and Lord Balmoral.
13113  So much for his recent history as it came out at the inquest.
13114 \end_layout
13115
13116 \end_inset
13117
13118
13119 \end_layout
13120
13121 \begin_layout Subsection
13122 Advanced Examples
13123 \end_layout
13124
13125 \begin_layout Standard
13126 The examples in this section show some more special features of multiple
13127  columns.
13128 \end_layout
13129
13130 \begin_layout Standard
13131 For more features of multiple columns, have a look at the 
13132 \begin_inset CommandInset href
13133 LatexCommand href
13134 name "documentation"
13135 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
13136 literal "false"
13137
13138 \end_inset
13139
13140  of the \SpecialChar LaTeX
13141 -package 
13142 \begin_inset Flex Code
13143 status collapsed
13144
13145 \begin_layout Plain Layout
13146 multicol
13147 \end_layout
13148
13149 \end_inset
13150
13151 .
13152 \end_layout
13153
13154 \begin_layout Subsubsection
13155 Preface
13156 \end_layout
13157
13158 \begin_layout Standard
13159 To add a preface text for multiple columns, set the cursor into the multicolumn
13160  inset and use the menu 
13161 \family sans
13162 Insert\SpecialChar menuseparator
13163 Preface
13164 \family default
13165 .
13166  Write your preface text into that inset.
13167 \begin_inset Newline newline
13168 \end_inset
13169
13170 This is an example with some preface text:
13171 \end_layout
13172
13173 \begin_layout Standard
13174 \begin_inset VSpace bigskip
13175 \end_inset
13176
13177
13178 \end_layout
13179
13180 \begin_layout Standard
13181 \begin_inset Flex Multiple Columns
13182 status open
13183
13184 \begin_layout Plain Layout
13185 \begin_inset Argument 2
13186 status open
13187
13188 \begin_layout Plain Layout
13189 And the story continues and continues and continues and continues\SpecialChar ldots
13190
13191 \end_layout
13192
13193 \end_inset
13194
13195
13196 \size small
13197 On the evening of the crime, he returned from the club exactly at ten.
13198  His mother and sister were out spending the evening with a relation.
13199  The servant deposed that she heard him enter the front room on the second
13200  floor, generally used as his sitting-room.
13201  She had lit a fire there, and as it smoked she had opened the window.
13202  No sound was heard from the room until eleven-twenty, the hour of the return
13203  of Lady Maynooth and her daughter.
13204  Desiring to say good-night, she attempted to enter her son's room.
13205  The door was locked on the inside, and no answer could be got to their
13206  cries and knocking.
13207  Help was obtained, and the door forced.
13208  The unfortunate young man was found lying near the table.
13209  His head had been horribly mutilated by an expanding revolver bullet, but
13210  no weapon of any sort was to be found in the room.
13211 \end_layout
13212
13213 \end_inset
13214
13215
13216 \end_layout
13217
13218 \begin_layout Standard
13219 You can also use a section heading as the preface if you use a section command
13220  as \SpecialChar TeX
13221  Code.
13222  For example the command
13223 \end_layout
13224
13225 \begin_layout LyX-Code
13226
13227 \backslash
13228 subsection{subsection title}
13229 \end_layout
13230
13231 \begin_layout Standard
13232 creates a subsection.
13233  In this example the preface is a subsubsection:
13234 \end_layout
13235
13236 \begin_layout Standard
13237 \begin_inset Flex Multiple Columns
13238 status open
13239
13240 \begin_layout Plain Layout
13241 \begin_inset Argument 2
13242 status open
13243
13244 \begin_layout Plain Layout
13245 \begin_inset ERT
13246 status collapsed
13247
13248 \begin_layout Plain Layout
13249
13250
13251 \backslash
13252 subsubsection{
13253 \end_layout
13254
13255 \end_inset
13256
13257 This is a subsubsection heading as a preface
13258 \begin_inset ERT
13259 status collapsed
13260
13261 \begin_layout Plain Layout
13262
13263 }
13264 \end_layout
13265
13266 \end_inset
13267
13268
13269 \end_layout
13270
13271 \end_inset
13272
13273
13274 \size small
13275 A minute examination of the circumstances served only to make the case more
13276  complex.
13277  In the first place, no reason could be given why the young man should have
13278  fastened the door upon the inside.
13279  There was the possibility that the murderer had done this, and had afterwards
13280  escaped by the window.
13281  The drop was at least twenty feet, however, and a bed of crocuses in full
13282  bloom lay beneath.
13283  Neither the flowers nor the earth showed any sign of having been disturbed,
13284  nor were there any marks upon the narrow strip of grass which separated
13285  the house from the road.
13286  Apparently, therefore, it was the young man himself who had fastened the
13287  door.
13288  But how did he come by his death? No one could have climbed up to the window
13289  without leaving traces.
13290  Suppose a man had fired through the window, he would indeed be a remarkable
13291  shot who could with a revolver inflict so deadly a wound.
13292  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
13293  a hundred yards of the house.
13294  No one had heard a shot.
13295 \end_layout
13296
13297 \end_inset
13298
13299
13300 \end_layout
13301
13302 \begin_layout Standard
13303 If there is less vertical space than 6
13304 \begin_inset space ~
13305 \end_inset
13306
13307 text lines is left on the page at the beginning of the multiple columns,
13308  a page break will be inserted before the multiple columns.
13309  Depending on the number of lines of the preface text, you might want to
13310  change this space.
13311  This is done by setting the cursor into the mulitcolumn inset behind the
13312  preface (if there is any) and using the menu 
13313 \family sans
13314 Insert\SpecialChar menuseparator
13315 Space
13316 \begin_inset space ~
13317 \end_inset
13318
13319 Before
13320 \begin_inset space ~
13321 \end_inset
13322
13323 Page
13324 \begin_inset space ~
13325 \end_inset
13326
13327 Break
13328 \family default
13329 .
13330  Insert into that inset the amount of space like e.
13331 \begin_inset space \thinspace{}
13332 \end_inset
13333
13334 g.
13335 \begin_inset space \space{}
13336 \end_inset
13337
13338
13339 \begin_inset Quotes eld
13340 \end_inset
13341
13342 5cm
13343 \begin_inset Quotes erd
13344 \end_inset
13345
13346 .
13347 \begin_inset Newline newline
13348 \end_inset
13349
13350 In this example the space is set to 7
13351 \begin_inset space ~
13352 \end_inset
13353
13354 text lines by using 
13355 \begin_inset Flex Code
13356 status collapsed
13357
13358 \begin_layout Plain Layout
13359 7
13360 \backslash
13361 baselineskip
13362 \end_layout
13363
13364 \end_inset
13365
13366  (where the command 
13367 \begin_inset Flex Code
13368 status collapsed
13369
13370 \begin_layout Plain Layout
13371
13372 \backslash
13373 baselineskip
13374 \end_layout
13375
13376 \end_inset
13377
13378  needs to be inserted as \SpecialChar TeX
13379  code):
13380 \end_layout
13381
13382 \begin_layout Standard
13383 \begin_inset Flex Multiple Columns
13384 status open
13385
13386 \begin_layout Plain Layout
13387 \begin_inset Argument 3
13388 status open
13389
13390 \begin_layout Plain Layout
13391 7
13392 \begin_inset ERT
13393 status collapsed
13394
13395 \begin_layout Plain Layout
13396
13397
13398 \backslash
13399 baselineskip
13400 \end_layout
13401
13402 \end_inset
13403
13404
13405 \end_layout
13406
13407 \end_inset
13408
13409
13410 \size small
13411 On the evening of the crime, he returned from the club exactly at ten.
13412  His mother and sister were out spending the evening with a relation.
13413  The servant deposed that she heard him enter the front room on the second
13414  floor, generally used as his sitting-room.
13415  She had lit a fire there, and as it smoked she had opened the window.
13416  No sound was heard from the room until eleven-twenty, the hour of the return
13417  of Lady Maynooth and her daughter.
13418  Desiring to say good-night, she attempted to enter her son's room.
13419  The door was locked on the inside, and no answer could be got to their
13420  cries and knocking.
13421  Help was obtained, and the door forced.
13422  The unfortunate young man was found lying near the table.
13423  His head had been horribly mutilated by an expanding revolver bullet, but
13424  no weapon of any sort was to be found in the room.
13425 \end_layout
13426
13427 \end_inset
13428
13429
13430 \end_layout
13431
13432 \begin_layout Subsubsection
13433 Surrounding Space
13434 \end_layout
13435
13436 \begin_layout Standard
13437 The amount of space before and after multiple columns can be changed by
13438  changing the length 
13439 \begin_inset Flex Code
13440 status collapsed
13441
13442 \begin_layout Plain Layout
13443
13444 \backslash
13445 multicolsep
13446 \end_layout
13447
13448 \end_inset
13449
13450 .
13451  For example the command
13452 \end_layout
13453
13454 \begin_layout LyX-Code
13455
13456 \backslash
13457 setlength{
13458 \backslash
13459 multicolsep}{3cm}
13460 \end_layout
13461
13462 \begin_layout Standard
13463 in \SpecialChar TeX
13464  Code changes its value to 3
13465 \begin_inset space \thinspace{}
13466 \end_inset
13467
13468 cm.
13469  The change must be made before the multiple columns' start.
13470  The predefined value is 13
13471 \begin_inset space \thinspace{}
13472 \end_inset
13473
13474 pt.
13475 \end_layout
13476
13477 \begin_layout Standard
13478 For this example 
13479 \begin_inset Flex Code
13480 status collapsed
13481
13482 \begin_layout Plain Layout
13483
13484 \backslash
13485 multicolsep
13486 \end_layout
13487
13488 \end_inset
13489
13490  was set to 2.5
13491 \begin_inset space \thinspace{}
13492 \end_inset
13493
13494 cm:
13495 \end_layout
13496
13497 \begin_layout Standard
13498 \begin_inset ERT
13499 status open
13500
13501 \begin_layout Plain Layout
13502
13503
13504 \backslash
13505 setlength{
13506 \backslash
13507 multicolsep}{2.5cm}
13508 \end_layout
13509
13510 \end_inset
13511
13512
13513 \end_layout
13514
13515 \begin_layout Standard
13516 \begin_inset Flex Multiple Columns
13517 status open
13518
13519 \begin_layout Plain Layout
13520
13521 \size small
13522 All day I turned these facts over in my mind, endeavouring to hit upon some
13523  theory which could reconcile them all, and to find that line of least resistanc
13524 e which my poor friend had declared to be the starting-point of every investigat
13525 ion.
13526  I confess that I made little progress.
13527  In the evening I strolled across the Park, and found myself about six o'clock
13528  at the Oxford Street end of Park Lane.
13529  A group of loafers upon the pavements, all staring up at a particular window,
13530  directed me to the house which I had come to see.
13531  A tall, thin man with coloured glasses, whom I strongly suspected of being
13532  a plain-clothes detective, was pointing out some theory of his own, while
13533  the others crowded round to listen to what he said.
13534  I got as near him as I could, but his observations seemed to me to be absurd,
13535  so I withdrew again in some disgust.
13536  As I did so I struck against an elderly, deformed man, who had been behind
13537  me, and I knocked down several books which he was carrying.
13538 \end_layout
13539
13540 \end_inset
13541
13542
13543 \end_layout
13544
13545 \begin_layout Standard
13546 \begin_inset Note Greyedout
13547 status open
13548
13549 \begin_layout Plain Layout
13550
13551 \series bold
13552 Note:
13553 \series default
13554  The values you set with 
13555 \begin_inset Flex Code
13556 status collapsed
13557
13558 \begin_layout Plain Layout
13559
13560 \backslash
13561 setlength
13562 \end_layout
13563
13564 \end_inset
13565
13566  will be used for all following multiple columns until you change them again.
13567 \end_layout
13568
13569 \end_inset
13570
13571
13572 \end_layout
13573
13574 \begin_layout Standard
13575 \begin_inset ERT
13576 status collapsed
13577
13578 \begin_layout Plain Layout
13579
13580
13581 \backslash
13582 setlength{
13583 \backslash
13584 multicolsep}{13pt}
13585 \end_layout
13586
13587 \end_inset
13588
13589
13590 \begin_inset Note Note
13591 status collapsed
13592
13593 \begin_layout Plain Layout
13594 go back to the default
13595 \end_layout
13596
13597 \end_inset
13598
13599
13600 \end_layout
13601
13602 \begin_layout Standard
13603 \begin_inset Newpage newpage
13604 \end_inset
13605
13606
13607 \end_layout
13608
13609 \begin_layout Subsubsection
13610 Column Breaks
13611 \end_layout
13612
13613 \begin_layout Standard
13614 A column break can be forced by inserting the command 
13615 \begin_inset Flex Code
13616 status collapsed
13617
13618 \begin_layout Plain Layout
13619
13620 \backslash
13621 columnbreak{}
13622 \end_layout
13623
13624 \end_inset
13625
13626  as \SpecialChar TeX
13627  Code to that position in the text where the column should be broken.
13628  Note that this leads in most cases to whitespace in the text.
13629 \begin_inset Newline newline
13630 \end_inset
13631
13632 Here is an example:
13633 \end_layout
13634
13635 \begin_layout Standard
13636 \begin_inset Flex Multiple Columns
13637 status open
13638
13639 \begin_layout Plain Layout
13640
13641 \size small
13642 \begin_inset Quotes eld
13643 \end_inset
13644
13645 You're surprised to see me, sir,
13646 \begin_inset Quotes erd
13647 \end_inset
13648
13649  said he, in a strange, croaking voice.
13650 \end_layout
13651
13652 \begin_layout Plain Layout
13653
13654 \size small
13655 I acknowledged that I was.
13656 \end_layout
13657
13658 \begin_layout Plain Layout
13659
13660 \size small
13661 \begin_inset Quotes eld
13662 \end_inset
13663
13664 Well, I've a conscience, sir, and when I chanced to see you go into this
13665  house, as I came hobbling after you, I thought to myself, I'll just step
13666  in and see that kind gentleman, and tell him that if I was a bit gruff
13667  in my manner there was not any harm meant, and that I am much obliged to
13668  him for picking up my books.
13669 \begin_inset Quotes erd
13670 \end_inset
13671
13672
13673 \end_layout
13674
13675 \begin_layout Plain Layout
13676
13677 \size small
13678 \begin_inset Quotes eld
13679 \end_inset
13680
13681 You make too much of a trifle,
13682 \begin_inset Quotes erd
13683 \end_inset
13684
13685  said I.
13686  
13687 \begin_inset Quotes eld
13688 \end_inset
13689
13690 May I ask how you knew who I was?
13691 \begin_inset Quotes erd
13692 \end_inset
13693
13694  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
13695 \begin_inset ERT
13696 status collapsed
13697
13698 \begin_layout Plain Layout
13699
13700
13701 \backslash
13702 columnbreak{}
13703 \end_layout
13704
13705 \end_inset
13706
13707
13708 \end_layout
13709
13710 \begin_layout Plain Layout
13711
13712 \size small
13713 \begin_inset Quotes eld
13714 \end_inset
13715
13716 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13717  you'll find my little bookshop at the corner of Church Street, and very
13718  happy to see you, I am sure.
13719  Maybe you collect yourself, sir.
13720  Here's 
13721 \noun on
13722 British
13723 \begin_inset space ~
13724 \end_inset
13725
13726 Birds
13727 \noun default
13728 , and 
13729 \noun on
13730 Catullus
13731 \noun default
13732 , and 
13733 \noun on
13734 The Holy War
13735 \noun default
13736
13737 \begin_inset space ~
13738 \end_inset
13739
13740 – a bargain, every one of them.
13741  With five volumes you could just fill that gap on that second shelf.
13742  It looks untidy, does it not, sir?
13743 \begin_inset Quotes erd
13744 \end_inset
13745
13746
13747 \end_layout
13748
13749 \end_inset
13750
13751
13752 \end_layout
13753
13754 \begin_layout Subsubsection
13755 Column Separation
13756 \end_layout
13757
13758 \begin_layout Standard
13759 The width of the columns is automatically calculated, but you can modify
13760  the space between the columns.
13761  This is done by changing the length 
13762 \begin_inset Flex Code
13763 status collapsed
13764
13765 \begin_layout Plain Layout
13766
13767 \backslash
13768 columnsep
13769 \end_layout
13770
13771 \end_inset
13772
13773 .
13774  Its predefined value is 10
13775 \begin_inset space \thinspace{}
13776 \end_inset
13777
13778 pt.
13779  Here is an example where 
13780 \begin_inset Flex Code
13781 status collapsed
13782
13783 \begin_layout Plain Layout
13784
13785 \backslash
13786 columnsep
13787 \end_layout
13788
13789 \end_inset
13790
13791  is set to 3
13792 \begin_inset space \thinspace{}
13793 \end_inset
13794
13795 cm:
13796 \end_layout
13797
13798 \begin_layout Standard
13799 \begin_inset ERT
13800 status open
13801
13802 \begin_layout Plain Layout
13803
13804
13805 \backslash
13806 setlength{
13807 \backslash
13808 columnsep}{3cm}
13809 \end_layout
13810
13811 \end_inset
13812
13813
13814 \end_layout
13815
13816 \begin_layout Standard
13817 \begin_inset Flex Multiple Columns
13818 status open
13819
13820 \begin_layout Plain Layout
13821
13822 \size small
13823 My observations of No.
13824 \begin_inset space \space{}
13825 \end_inset
13826
13827 427 Park Lane did little to clear up the problem in which I was interested.
13828  The house was separated from the street by a low wall and railing, the
13829  whole not more than five feet high.
13830  It was perfectly easy, therefore, for anyone to get into the garden, but
13831  the window was entirely inaccessible, since there was no water pipe or
13832  anything which could help the most active man to climb it.
13833  More puzzled than ever, I retraced my steps to Kensington.
13834  I had not been in my study five minutes when the maid entered to say that
13835  a person desired to see me.
13836  To my astonishment it was none other than my strange old book collector,
13837  his sharp, wizened face peering out from a frame of white hair, and his
13838  precious volumes, a dozen of them at least, wedged under his right arm.
13839 \end_layout
13840
13841 \end_inset
13842
13843
13844 \end_layout
13845
13846 \begin_layout Standard
13847 \begin_inset ERT
13848 status collapsed
13849
13850 \begin_layout Plain Layout
13851
13852
13853 \backslash
13854 setlength{
13855 \backslash
13856 columnsep}{10pt}
13857 \end_layout
13858
13859 \end_inset
13860
13861
13862 \begin_inset Note Note
13863 status collapsed
13864
13865 \begin_layout Plain Layout
13866 go back to the default
13867 \end_layout
13868
13869 \end_inset
13870
13871
13872 \end_layout
13873
13874 \begin_layout Subsubsection
13875 Vertical Lines
13876 \end_layout
13877
13878 \begin_layout Standard
13879 Between the columns a rule with a width of the length 
13880 \begin_inset Flex Code
13881 status collapsed
13882
13883 \begin_layout Plain Layout
13884
13885 \backslash
13886 columnseprule
13887 \end_layout
13888
13889 \end_inset
13890
13891  is placed.
13892  If this rule width is set to 0
13893 \begin_inset space \thinspace{}
13894 \end_inset
13895
13896 pt (this is the default), the rule is suppressed.
13897  In the following example the rule is 2
13898 \begin_inset space \thinspace{}
13899 \end_inset
13900
13901 pt wide:
13902 \end_layout
13903
13904 \begin_layout Standard
13905 \begin_inset ERT
13906 status open
13907
13908 \begin_layout Plain Layout
13909
13910
13911 \backslash
13912 setlength{
13913 \backslash
13914 columnseprule}{2pt}
13915 \end_layout
13916
13917 \end_inset
13918
13919
13920 \end_layout
13921
13922 \begin_layout Standard
13923 \begin_inset Flex Multiple Columns
13924 status open
13925
13926 \begin_layout Plain Layout
13927
13928 \size small
13929 \begin_inset Quotes eld
13930 \end_inset
13931
13932 You're surprised to see me, sir,
13933 \begin_inset Quotes erd
13934 \end_inset
13935
13936  said he, in a strange, croaking voice.
13937 \end_layout
13938
13939 \begin_layout Plain Layout
13940
13941 \size small
13942 I acknowledged that I was.
13943 \end_layout
13944
13945 \begin_layout Plain Layout
13946
13947 \size small
13948 \begin_inset Quotes eld
13949 \end_inset
13950
13951 Well, I've a conscience, sir, and when I chanced to see you go into this
13952  house, as I came hobbling after you, I thought to myself, I'll just step
13953  in and see that kind gentleman, and tell him that if I was a bit gruff
13954  in my manner there was not any harm meant, and that I am much obliged to
13955  him for picking up my books.
13956 \begin_inset Quotes erd
13957 \end_inset
13958
13959
13960 \end_layout
13961
13962 \begin_layout Plain Layout
13963
13964 \size small
13965 \begin_inset Quotes eld
13966 \end_inset
13967
13968 You make too much of a trifle,
13969 \begin_inset Quotes erd
13970 \end_inset
13971
13972  said I.
13973  
13974 \begin_inset Quotes eld
13975 \end_inset
13976
13977 May I ask how you knew who I was?
13978 \begin_inset Quotes erd
13979 \end_inset
13980
13981
13982 \end_layout
13983
13984 \begin_layout Plain Layout
13985
13986 \size small
13987 \begin_inset Quotes eld
13988 \end_inset
13989
13990 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
13991  you'll find my little bookshop at the corner of Church Street, and very
13992  happy to see you, I am sure.
13993  Maybe you collect yourself, sir.
13994  Here's 
13995 \noun on
13996 British
13997 \begin_inset space ~
13998 \end_inset
13999
14000 Birds
14001 \noun default
14002 , and 
14003 \noun on
14004 Catullus
14005 \noun default
14006 , and 
14007 \noun on
14008 The Holy War
14009 \noun default
14010
14011 \begin_inset space ~
14012 \end_inset
14013
14014 – a bargain, every one of them.
14015  With five volumes you could just fill that gap on that second shelf.
14016  It looks untidy, does it not, sir?
14017 \begin_inset Quotes erd
14018 \end_inset
14019
14020
14021 \end_layout
14022
14023 \end_inset
14024
14025
14026 \end_layout
14027
14028 \begin_layout Standard
14029 \begin_inset VSpace defskip
14030 \end_inset
14031
14032
14033 \end_layout
14034
14035 \begin_layout Standard
14036 The rule can be colored by redefining the command 
14037 \begin_inset Flex Code
14038 status collapsed
14039
14040 \begin_layout Plain Layout
14041
14042 \backslash
14043 columnseprulecolor
14044 \end_layout
14045
14046 \end_inset
14047
14048 .
14049  This is done by inserting the command
14050 \end_layout
14051
14052 \begin_layout LyX-Code
14053
14054 \backslash
14055 renewcommand{
14056 \backslash
14057 columnseprulecolor}{
14058 \backslash
14059 color{red}}
14060 \end_layout
14061
14062 \begin_layout Standard
14063 as \SpecialChar TeX
14064  Code before the multicolumn inset.
14065  Replace 
14066 \begin_inset Flex Code
14067 status collapsed
14068
14069 \begin_layout Plain Layout
14070 red
14071 \end_layout
14072
14073 \end_inset
14074
14075  in this command by a color of your choice.
14076  You can use all pre- and self-defined colors.
14077  See the 
14078 \emph on
14079 EmbeddedObjects
14080 \emph default
14081  manual, section 
14082 \emph on
14083 Colored
14084 \begin_inset space ~
14085 \end_inset
14086
14087 Tables
14088 \emph default
14089  for more information about pre- and self-defined colors.
14090  To go back to the default color insert the command
14091 \end_layout
14092
14093 \begin_layout LyX-Code
14094
14095 \backslash
14096 renewcommand{
14097 \backslash
14098 columnseprulecolor}{
14099 \backslash
14100 normalcolor}
14101 \end_layout
14102
14103 \begin_layout Standard
14104 Here is the example with a cyan rule and 1
14105 \begin_inset space \thinspace{}
14106 \end_inset
14107
14108 cm column separation:
14109 \end_layout
14110
14111 \begin_layout Standard
14112 \begin_inset ERT
14113 status open
14114
14115 \begin_layout Plain Layout
14116
14117
14118 \backslash
14119 setlength{
14120 \backslash
14121 columnsep}{1cm}
14122 \end_layout
14123
14124 \begin_layout Plain Layout
14125
14126
14127 \backslash
14128 renewcommand{
14129 \backslash
14130 columnseprulecolor}{
14131 \backslash
14132 color{cyan}}
14133 \end_layout
14134
14135 \end_inset
14136
14137
14138 \end_layout
14139
14140 \begin_layout Standard
14141 \begin_inset Flex Multiple Columns
14142 status open
14143
14144 \begin_layout Plain Layout
14145
14146 \size small
14147 \begin_inset Quotes eld
14148 \end_inset
14149
14150 You're surprised to see me, sir,
14151 \begin_inset Quotes erd
14152 \end_inset
14153
14154  said he, in a strange, croaking voice.
14155 \end_layout
14156
14157 \begin_layout Plain Layout
14158
14159 \size small
14160 I acknowledged that I was.
14161 \end_layout
14162
14163 \begin_layout Plain Layout
14164
14165 \size small
14166 \begin_inset Quotes eld
14167 \end_inset
14168
14169 Well, I've a conscience, sir, and when I chanced to see you go into this
14170  house, as I came hobbling after you, I thought to myself, I'll just step
14171  in and see that kind gentleman, and tell him that if I was a bit gruff
14172  in my manner there was not any harm meant, and that I am much obliged to
14173  him for picking up my books.
14174 \begin_inset Quotes erd
14175 \end_inset
14176
14177
14178 \end_layout
14179
14180 \begin_layout Plain Layout
14181
14182 \size small
14183 \begin_inset Quotes eld
14184 \end_inset
14185
14186 You make too much of a trifle,
14187 \begin_inset Quotes erd
14188 \end_inset
14189
14190  said I.
14191  
14192 \begin_inset Quotes eld
14193 \end_inset
14194
14195 May I ask how you knew who I was?
14196 \begin_inset Quotes erd
14197 \end_inset
14198
14199
14200 \end_layout
14201
14202 \begin_layout Plain Layout
14203
14204 \size small
14205 \begin_inset Quotes eld
14206 \end_inset
14207
14208 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14209  you'll find my little bookshop at the corner of Church Street, and very
14210  happy to see you, I am sure.
14211  Maybe you collect yourself, sir.
14212  Here's 
14213 \noun on
14214 British
14215 \begin_inset space ~
14216 \end_inset
14217
14218 Birds
14219 \noun default
14220 , and 
14221 \noun on
14222 Catullus
14223 \noun default
14224 , and 
14225 \noun on
14226 The Holy War
14227 \noun default
14228
14229 \begin_inset space ~
14230 \end_inset
14231
14232 – a bargain, every one of them.
14233  With five volumes you could just fill that gap on that second shelf.
14234  It looks untidy, does it not, sir?
14235 \begin_inset Quotes erd
14236 \end_inset
14237
14238
14239 \end_layout
14240
14241 \end_inset
14242
14243
14244 \end_layout
14245
14246 \begin_layout Standard
14247 \begin_inset ERT
14248 status collapsed
14249
14250 \begin_layout Plain Layout
14251
14252
14253 \backslash
14254 setlength{
14255 \backslash
14256 columnseprule}{0pt}
14257 \end_layout
14258
14259 \begin_layout Plain Layout
14260
14261
14262 \backslash
14263 renewcommand{
14264 \backslash
14265 columnseprulecolor}{
14266 \backslash
14267 normalcolor}
14268 \end_layout
14269
14270 \end_inset
14271
14272
14273 \begin_inset Note Note
14274 status collapsed
14275
14276 \begin_layout Plain Layout
14277 go back to the default
14278 \end_layout
14279
14280 \end_inset
14281
14282
14283 \end_layout
14284
14285 \begin_layout Section
14286
14287 \change_inserted 564990737 1671270380
14288 Paragraph Styles
14289 \end_layout
14290
14291 \begin_layout Subsection
14292
14293 \change_inserted 564990737 1671270398
14294 Custom
14295 \change_deleted 564990737 1671270396
14296 Non-standard
14297 \change_unchanged
14298  Paragraph Shapes
14299 \end_layout
14300
14301 \begin_layout Standard
14302 \noindent
14303 \SpecialChar LaTeX
14304  as well as any other text processor uses by default rectangular paragraphs.
14305  For special cases like for example posters, invitation cards or poems you
14306  can modify the paragraph shape to one of your choice.
14307  This can be done by using the \SpecialChar LaTeX
14308 -package 
14309 \begin_inset Flex Code
14310 status collapsed
14311
14312 \begin_layout Plain Layout
14313 shapepar
14314 \end_layout
14315
14316 \end_inset
14317
14318  which is loaded by using in the document settings the module 
14319 \family sans
14320 Custom paragraph shapes
14321 \family default
14322 .
14323 \end_layout
14324
14325 \begin_layout Subsubsection
14326 Predefined shapes
14327 \end_layout
14328
14329 \begin_layout Standard
14330
14331 \series bold
14332 shapepar
14333 \series default
14334  provides the following shapes:
14335 \end_layout
14336
14337 \begin_layout Standard
14338 \begin_inset Tabular
14339 <lyxtabular version="3" rows="13" columns="3">
14340 <features booktabs="true" islongtable="true" longtabularalignment="center">
14341 <column alignment="left" valignment="middle" width="16col%">
14342 <column alignment="left" valignment="middle" width="40col%">
14343 <column alignment="left" valignment="middle" width="35col%">
14344 <row endhead="true">
14345 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14346 \begin_inset Text
14347
14348 \begin_layout Plain Layout
14349
14350 \series bold
14351 \size small
14352 Name
14353 \end_layout
14354
14355 \end_inset
14356 </cell>
14357 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14358 \begin_inset Text
14359
14360 \begin_layout Plain Layout
14361
14362 \series bold
14363 \size small
14364 Description
14365 \end_layout
14366
14367 \end_inset
14368 </cell>
14369 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14370 \begin_inset Text
14371
14372 \begin_layout Plain Layout
14373
14374 \series bold
14375 \size small
14376 Annotation
14377 \end_layout
14378
14379 \end_inset
14380 </cell>
14381 </row>
14382 <row interlinespace="default">
14383 <cell alignment="left" valignment="top" usebox="none">
14384 \begin_inset Text
14385
14386 \begin_layout Plain Layout
14387
14388 \size small
14389 CDlabel
14390 \end_layout
14391
14392 \end_inset
14393 </cell>
14394 <cell alignment="left" valignment="top" usebox="none">
14395 \begin_inset Text
14396
14397 \begin_layout Plain Layout
14398
14399 \size small
14400 Circle with circular hole (in the size of a CD/DVD)
14401 \end_layout
14402
14403 \end_inset
14404 </cell>
14405 <cell alignment="left" valignment="top" usebox="none">
14406 \begin_inset Text
14407
14408 \begin_layout Plain Layout
14409
14410 \size small
14411 Cannot be scaled, take care there is not too much text
14412 \end_layout
14413
14414 \end_inset
14415 </cell>
14416 </row>
14417 <row interlinespace="default">
14418 <cell alignment="left" valignment="top" usebox="none">
14419 \begin_inset Text
14420
14421 \begin_layout Plain Layout
14422
14423 \size small
14424 Circle
14425 \end_layout
14426
14427 \end_inset
14428 </cell>
14429 <cell alignment="left" valignment="top" usebox="none">
14430 \begin_inset Text
14431
14432 \begin_layout Plain Layout
14433
14434 \size small
14435 Circle
14436 \end_layout
14437
14438 \end_inset
14439 </cell>
14440 <cell alignment="left" valignment="top" usebox="none">
14441 \begin_inset Text
14442
14443 \begin_layout Plain Layout
14444
14445 \size small
14446 Fragile, calculation might fail
14447 \end_layout
14448
14449 \end_inset
14450 </cell>
14451 </row>
14452 <row interlinespace="default">
14453 <cell alignment="left" valignment="top" usebox="none">
14454 \begin_inset Text
14455
14456 \begin_layout Plain Layout
14457
14458 \size small
14459 Diamond
14460 \end_layout
14461
14462 \end_inset
14463 </cell>
14464 <cell alignment="left" valignment="top" usebox="none">
14465 \begin_inset Text
14466
14467 \begin_layout Plain Layout
14468
14469 \size small
14470 Rhomboid (symbolizing a 
14471 \begin_inset Quotes eld
14472 \end_inset
14473
14474 diamond
14475 \begin_inset Quotes erd
14476 \end_inset
14477
14478 )
14479 \end_layout
14480
14481 \end_inset
14482 </cell>
14483 <cell alignment="left" valignment="top" usebox="none">
14484 \begin_inset Text
14485
14486 \begin_layout Plain Layout
14487
14488 \size small
14489 -
14490 \end_layout
14491
14492 \end_inset
14493 </cell>
14494 </row>
14495 <row interlinespace="default">
14496 <cell alignment="left" valignment="top" usebox="none">
14497 \begin_inset Text
14498
14499 \begin_layout Plain Layout
14500
14501 \size small
14502 Heart
14503 \end_layout
14504
14505 \end_inset
14506 </cell>
14507 <cell alignment="left" valignment="top" usebox="none">
14508 \begin_inset Text
14509
14510 \begin_layout Plain Layout
14511
14512 \size small
14513 Heart-like shape
14514 \end_layout
14515
14516 \end_inset
14517 </cell>
14518 <cell alignment="left" valignment="top" usebox="none">
14519 \begin_inset Text
14520
14521 \begin_layout Plain Layout
14522
14523 \size small
14524 -
14525 \end_layout
14526
14527 \end_inset
14528 </cell>
14529 </row>
14530 <row interlinespace="default">
14531 <cell alignment="left" valignment="top" usebox="none">
14532 \begin_inset Text
14533
14534 \begin_layout Plain Layout
14535
14536 \size small
14537 Hexagon
14538 \end_layout
14539
14540 \end_inset
14541 </cell>
14542 <cell alignment="left" valignment="top" usebox="none">
14543 \begin_inset Text
14544
14545 \begin_layout Plain Layout
14546
14547 \size small
14548 Hexagon
14549 \end_layout
14550
14551 \end_inset
14552 </cell>
14553 <cell alignment="left" valignment="top" usebox="none">
14554 \begin_inset Text
14555
14556 \begin_layout Plain Layout
14557
14558 \size small
14559 -
14560 \end_layout
14561
14562 \end_inset
14563 </cell>
14564 </row>
14565 <row interlinespace="default">
14566 <cell alignment="left" valignment="top" usebox="none">
14567 \begin_inset Text
14568
14569 \begin_layout Plain Layout
14570
14571 \size small
14572 Nut
14573 \end_layout
14574
14575 \end_inset
14576 </cell>
14577 <cell alignment="left" valignment="top" usebox="none">
14578 \begin_inset Text
14579
14580 \begin_layout Plain Layout
14581
14582 \size small
14583 Nut for bolt (hexagon with circular hole)
14584 \end_layout
14585
14586 \end_inset
14587 </cell>
14588 <cell alignment="left" valignment="top" usebox="none">
14589 \begin_inset Text
14590
14591 \begin_layout Plain Layout
14592
14593 \size small
14594 -
14595 \end_layout
14596
14597 \end_inset
14598 </cell>
14599 </row>
14600 <row interlinespace="default">
14601 <cell alignment="left" valignment="top" usebox="none">
14602 \begin_inset Text
14603
14604 \begin_layout Plain Layout
14605
14606 \size small
14607 Square
14608 \end_layout
14609
14610 \end_inset
14611 </cell>
14612 <cell alignment="left" valignment="top" usebox="none">
14613 \begin_inset Text
14614
14615 \begin_layout Plain Layout
14616
14617 \size small
14618 Square
14619 \end_layout
14620
14621 \end_inset
14622 </cell>
14623 <cell alignment="left" valignment="top" usebox="none">
14624 \begin_inset Text
14625
14626 \begin_layout Plain Layout
14627
14628 \size small
14629 -
14630 \end_layout
14631
14632 \end_inset
14633 </cell>
14634 </row>
14635 <row interlinespace="default">
14636 <cell alignment="left" valignment="top" usebox="none">
14637 \begin_inset Text
14638
14639 \begin_layout Plain Layout
14640
14641 \size small
14642 Star
14643 \end_layout
14644
14645 \end_inset
14646 </cell>
14647 <cell alignment="left" valignment="top" usebox="none">
14648 \begin_inset Text
14649
14650 \begin_layout Plain Layout
14651
14652 \size small
14653 Five-point star
14654 \end_layout
14655
14656 \end_inset
14657 </cell>
14658 <cell alignment="left" valignment="top" usebox="none">
14659 \begin_inset Text
14660
14661 \begin_layout Plain Layout
14662
14663 \size small
14664 -
14665 \end_layout
14666
14667 \end_inset
14668 </cell>
14669 </row>
14670 <row interlinespace="default">
14671 <cell alignment="left" valignment="top" usebox="none">
14672 \begin_inset Text
14673
14674 \begin_layout Plain Layout
14675
14676 \size small
14677 Candle
14678 \end_layout
14679
14680 \end_inset
14681 </cell>
14682 <cell alignment="left" valignment="top" usebox="none">
14683 \begin_inset Text
14684
14685 \begin_layout Plain Layout
14686
14687 \size small
14688 Burning candle
14689 \end_layout
14690
14691 \end_inset
14692 </cell>
14693 <cell alignment="left" valignment="top" usebox="none">
14694 \begin_inset Text
14695
14696 \begin_layout Plain Layout
14697
14698 \size small
14699 -
14700 \end_layout
14701
14702 \end_inset
14703 </cell>
14704 </row>
14705 <row interlinespace="default">
14706 <cell alignment="left" valignment="top" usebox="none">
14707 \begin_inset Text
14708
14709 \begin_layout Plain Layout
14710
14711 \size small
14712 Drop down/up
14713 \end_layout
14714
14715 \end_inset
14716 </cell>
14717 <cell alignment="left" valignment="top" usebox="none">
14718 \begin_inset Text
14719
14720 \begin_layout Plain Layout
14721
14722 \size small
14723 Normal/reversed rain drop
14724 \end_layout
14725
14726 \end_inset
14727 </cell>
14728 <cell alignment="left" valignment="top" usebox="none">
14729 \begin_inset Text
14730
14731 \begin_layout Plain Layout
14732
14733 \size small
14734 Fragile, calculation might fail
14735 \end_layout
14736
14737 \end_inset
14738 </cell>
14739 </row>
14740 <row interlinespace="default">
14741 <cell alignment="left" valignment="top" usebox="none">
14742 \begin_inset Text
14743
14744 \begin_layout Plain Layout
14745
14746 \size small
14747 \SpecialChar TeX
14748
14749 \end_layout
14750
14751 \end_inset
14752 </cell>
14753 <cell alignment="left" valignment="top" usebox="none">
14754 \begin_inset Text
14755
14756 \begin_layout Plain Layout
14757
14758 \size small
14759 The \SpecialChar TeX
14760  logo
14761 \end_layout
14762
14763 \end_inset
14764 </cell>
14765 <cell alignment="left" valignment="top" usebox="none">
14766 \begin_inset Text
14767
14768 \begin_layout Plain Layout
14769
14770 \size small
14771 -
14772 \end_layout
14773
14774 \end_inset
14775 </cell>
14776 </row>
14777 <row interlinespace="default">
14778 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14779 \begin_inset Text
14780
14781 \begin_layout Plain Layout
14782
14783 \size small
14784 Triangle up/down/
14785 \begin_inset Newline newline
14786 \end_inset
14787
14788 left/right
14789 \end_layout
14790
14791 \end_inset
14792 </cell>
14793 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14794 \begin_inset Text
14795
14796 \begin_layout Plain Layout
14797
14798 \size small
14799 Triangles in different orientations
14800 \end_layout
14801
14802 \end_inset
14803 </cell>
14804 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
14805 \begin_inset Text
14806
14807 \begin_layout Plain Layout
14808
14809 \size small
14810 -
14811 \end_layout
14812
14813 \end_inset
14814 </cell>
14815 </row>
14816 </lyxtabular>
14817
14818 \end_inset
14819
14820
14821 \end_layout
14822
14823 \begin_layout Standard
14824 To use a shape for your paragraph, simply select it in \SpecialChar LyX
14825 's pull-down box
14826  for environments in the toolbar.
14827 \end_layout
14828
14829 \begin_layout Standard
14830 \begin_inset Newpage newpage
14831 \end_inset
14832
14833
14834 \end_layout
14835
14836 \begin_layout Standard
14837 Here is an example paragraph in the shape of a nut:
14838 \end_layout
14839
14840 \begin_layout Standard
14841 \begin_inset VSpace bigskip
14842 \end_inset
14843
14844
14845 \end_layout
14846
14847 \begin_layout Nut
14848
14849 \lang latin
14850 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14851  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14852  voluptua.
14853  At vero eos et accusam et justo duo dolores et ea rebum.
14854  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14855  sit amet.
14856  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14857  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14858  voluptua.
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 \begin_inset Note Greyedout
14870 status open
14871
14872 \begin_layout Plain Layout
14873
14874 \series bold
14875 Note
14876 \series default
14877
14878 \family sans
14879 shapepar
14880 \family default
14881  paragraphs cannot run over a page break.
14882 \end_layout
14883
14884 \end_inset
14885
14886
14887 \end_layout
14888
14889 \begin_layout Standard
14890 \begin_inset VSpace bigskip
14891 \end_inset
14892
14893
14894 \end_layout
14895
14896 \begin_layout Standard
14897 The package 
14898 \begin_inset Flex Code
14899 status collapsed
14900
14901 \begin_layout Plain Layout
14902 shapepar
14903 \end_layout
14904
14905 \end_inset
14906
14907  takes care that the shape will always be preserved, no matter how much
14908  text is in the paragraph.
14909  Therefore the paragraph size changes with the amount of contained text.
14910  This can lead to paragraph sizes exceeding the page margins.
14911  To demonstrate the size scaling, here is the same example paragraph but
14912  with twice as much text:
14913 \end_layout
14914
14915 \begin_layout Standard
14916 \begin_inset Newpage newpage
14917 \end_inset
14918
14919
14920 \end_layout
14921
14922 \begin_layout Nut
14923
14924 \lang latin
14925 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14926  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14927  voluptua.
14928  At vero eos et accusam et justo duo dolores et ea rebum.
14929  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14930  sit amet.
14931  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14932  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14933  voluptua.
14934  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14935  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14936  voluptua.
14937  At vero eos et accusam et justo duo dolores et ea rebum.
14938  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
14939  sit amet.
14940  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
14941  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
14942  voluptua.
14943 \end_layout
14944
14945 \begin_layout Standard
14946 \begin_inset VSpace bigskip
14947 \end_inset
14948
14949
14950 \end_layout
14951
14952 \begin_layout Standard
14953 An exception is the shape 
14954 \family sans
14955 CDlabel
14956 \family default
14957 .
14958  It cannot be scaled because it must fit the size of a CD/DVD.
14959  Therefore the amount of text that fits into the shape is limited.
14960 \begin_inset Newline newline
14961 \end_inset
14962
14963 The 
14964 \family sans
14965 drop
14966 \family default
14967  shapes and the 
14968 \family sans
14969 circle
14970 \family default
14971  shape are fragile, meaning that the calculation of their size can fail,
14972  depending on the amount of text.
14973  You will then get the \SpecialChar LaTeX
14974  error 
14975 \begin_inset Quotes eld
14976 \end_inset
14977
14978 Arithmetic overflow
14979 \begin_inset Quotes erd
14980 \end_inset
14981
14982 .
14983  In this case one can try to remove or add some text; if nothing works one
14984  has to use another shape.
14985 \end_layout
14986
14987 \begin_layout Standard
14988 \begin_inset VSpace bigskip
14989 \end_inset
14990
14991
14992 \end_layout
14993
14994 \begin_layout Standard
14995 For shapes with tips you will maybe see that \SpecialChar LaTeX
14996 's hyphenation routine fails
14997  for text in the tips.
14998  Therefore it is often necessary to add hyphenation points 
14999 \family sans
15000 (
15001 \begin_inset Info
15002 type  "shortcut"
15003 arg   "specialchar-insert hyphenation"
15004 \end_inset
15005
15006
15007 \family default
15008 ) to the corresponding text parts.
15009 \end_layout
15010
15011 \begin_layout Standard
15012 \begin_inset VSpace bigskip
15013 \end_inset
15014
15015
15016 \end_layout
15017
15018 \begin_layout Standard
15019 Shapepar paragraphs are either always centered or placed on the page so
15020  that their left border touches the left page margin.
15021  You can therefore not use the paragraph dialog to align such paragraphs.
15022  A solution is to put the paragraph into a minipage or parbox and align
15023  the box.
15024  The problem is hereby to find the right width for the box.
15025  Because if it is too wide and you center the box, the paragraph is not
15026  centered too because it sticks at the left side of the box.
15027  So you might have to play a bit with the width until it fits.
15028  Here are two heart-shaped paragraphs, the first one is not aligned, the
15029  second one is right-aligned:
15030 \end_layout
15031
15032 \begin_layout Standard
15033 \begin_inset Newpage newpage
15034 \end_inset
15035
15036
15037 \end_layout
15038
15039 \begin_layout Heart
15040 \noindent
15041
15042 \lang latin
15043 Lo\SpecialChar softhyphen
15044 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15045  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15046  voluptua.
15047  At vero eos et accusam et justo duo dolores et ea rebum.
15048  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15049  sit amet.
15050 \end_layout
15051
15052 \begin_layout Standard
15053 \begin_inset VSpace bigskip
15054 \end_inset
15055
15056
15057 \end_layout
15058
15059 \begin_layout Standard
15060 \noindent
15061 \align right
15062 \begin_inset Box Frameless
15063 position "t"
15064 hor_pos "c"
15065 has_inner_box 1
15066 inner_pos "t"
15067 use_parbox 1
15068 use_makebox 0
15069 width "42col%"
15070 special "none"
15071 height "1in"
15072 height_special "totalheight"
15073 thickness "0.4pt"
15074 separation "3pt"
15075 shadowsize "4pt"
15076 framecolor "black"
15077 backgroundcolor "none"
15078 status open
15079
15080 \begin_layout Heart
15081 \noindent
15082
15083 \lang latin
15084 Lo\SpecialChar softhyphen
15085 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15086  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15087  voluptua.
15088  At vero eos et accusam et justo duo dolores et ea rebum.
15089  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15090  sit amet.
15091 \end_layout
15092
15093 \end_inset
15094
15095
15096 \end_layout
15097
15098 \begin_layout Subsubsection
15099 Custom shapes
15100 \end_layout
15101
15102 \begin_layout Standard
15103 You can define any shape you want.
15104  Doing this manually is a lot of work because every coordinate must be specified.
15105  But there is a way to let the computer calculate the coordinates:
15106 \end_layout
15107
15108 \begin_layout Enumerate
15109 Install the program 
15110 \begin_inset CommandInset href
15111 LatexCommand href
15112 name "Jpgfdraw"
15113 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
15114 literal "false"
15115
15116 \end_inset
15117
15118 .
15119 \end_layout
15120
15121 \begin_layout Enumerate
15122 In 
15123 \family sans
15124 Jpgfdraw
15125 \family default
15126  go to the menu 
15127 \family sans
15128 TeX/LaTeX\SpecialChar menuseparator
15129 Settings\SpecialChar menuseparator
15130 Set Normal Size
15131 \family default
15132  and select the font size you are using in your document.
15133  For example this document uses the size 12
15134 \begin_inset space \thinspace{}
15135 \end_inset
15136
15137 pt.
15138 \end_layout
15139
15140 \begin_layout Enumerate
15141 Draw a shape.
15142 \end_layout
15143
15144 \begin_layout Enumerate
15145 Use the menu 
15146 \family sans
15147 TeX/LaTeX\SpecialChar menuseparator
15148 Shapepar
15149 \family default
15150  to export the shape to coordinates.
15151  In the appearing dialog use either the outline of your shape for the coordinate
15152 s or the path itself.
15153 \begin_inset Foot
15154 status collapsed
15155
15156 \begin_layout Plain Layout
15157 For more information see 
15158 \begin_inset CommandInset href
15159 LatexCommand href
15160 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
15161 literal "false"
15162
15163 \end_inset
15164
15165
15166 \end_layout
15167
15168 \end_inset
15169
15170
15171 \end_layout
15172
15173 \begin_layout Standard
15174 The coordinates are written into a \SpecialChar TeX
15175  file.
15176  To use it for your \SpecialChar LyX
15177  document
15178 \end_layout
15179
15180 \begin_layout Enumerate
15181 Place the cursor before the first character of your paragraph (or into a
15182  new empty one).
15183 \end_layout
15184
15185 \begin_layout Enumerate
15186 Open in \SpecialChar LyX
15187  the menu 
15188 \family sans
15189 Insert\SpecialChar menuseparator
15190 File\SpecialChar menuseparator
15191 Child
15192 \begin_inset space ~
15193 \end_inset
15194
15195 Document
15196 \family default
15197 , select the file and use 
15198 \family sans
15199 Input
15200 \family default
15201  as 
15202 \family sans
15203 Include Type.
15204 \end_layout
15205
15206 \begin_layout Standard
15207 \begin_inset VSpace defskip
15208 \end_inset
15209
15210
15211 \end_layout
15212
15213 \begin_layout Standard
15214 \begin_inset Note Greyedout
15215 status open
15216
15217 \begin_layout Plain Layout
15218
15219 \series bold
15220 Note
15221 \series default
15222 : The changed shape only applies to the current paragraph; everything is
15223  reset to normal for the next paragraph.
15224  Therefore the shape definition file must be input into every paragraph
15225  with the desired shape.
15226 \end_layout
15227
15228 \end_inset
15229
15230
15231 \end_layout
15232
15233 \begin_layout Standard
15234 \begin_inset VSpace bigskip
15235 \end_inset
15236
15237
15238 \end_layout
15239
15240 \begin_layout Standard
15241 Here is an example:
15242 \end_layout
15243
15244 \begin_layout Standard
15245 \begin_inset VSpace bigskip
15246 \end_inset
15247
15248
15249 \end_layout
15250
15251 \begin_layout Standard
15252 \begin_inset CommandInset include
15253 LatexCommand input
15254 filename "SpecialParagraphShape.tex"
15255 literal "true"
15256
15257 \end_inset
15258
15259
15260 \lang latin
15261 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15262  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15263  voluptua.
15264  At vero eos et accusam et justo duo dolores et ea rebum.
15265  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15266  sit amet.
15267  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15268  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15269  voluptua.
15270 \end_layout
15271
15272 \begin_layout Standard
15273 \begin_inset VSpace bigskip
15274 \end_inset
15275
15276
15277 \end_layout
15278
15279 \begin_layout Standard
15280
15281 \series bold
15282 A tip:
15283 \series default
15284  to draw complexer shapes in 
15285 \family sans
15286 Jpgfdraw
15287 \family default
15288  you can draw the shape in a program of your choice and import the resulting
15289  image to 
15290 \family sans
15291 Jpgfdraw
15292 \family default
15293 .
15294  Then you only need to draw a line or spline along the outline of the image.
15295 \end_layout
15296
15297 \begin_layout Standard
15298 \begin_inset VSpace bigskip
15299 \end_inset
15300
15301
15302 \end_layout
15303
15304 \begin_layout Standard
15305 The module 
15306 \family sans
15307 Custom paragraph shapes
15308 \family default
15309  also provides the two commands 
15310 \family sans
15311 shapepar
15312 \family default
15313  and 
15314 \family sans
15315 Shapepar
15316 \family default
15317  which can be used to define custom shapes coordinate by coordinate.
15318 \begin_inset Foot
15319 status collapsed
15320
15321 \begin_layout Plain Layout
15322 These commands are internally used for all shapes described here.
15323 \end_layout
15324
15325 \end_inset
15326
15327  For information how these styles are used and about further customization
15328  possibilities, have a look at the 
15329 \begin_inset CommandInset href
15330 LatexCommand href
15331 name "documentation"
15332 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
15333 literal "false"
15334
15335 \end_inset
15336
15337  of the package 
15338 \begin_inset Flex Code
15339 status collapsed
15340
15341 \begin_layout Plain Layout
15342 shapepar
15343 \end_layout
15344
15345 \end_inset
15346
15347 .
15348 \end_layout
15349
15350 \begin_layout Chapter
15351
15352 \change_deleted 564990737 1671304317
15353 Customizing 
15354 \change_unchanged
15355 Bibliograph
15356 \change_inserted 564990737 1671304322
15357 y
15358 \change_deleted 564990737 1671304331
15359 ies with Bib\SpecialChar TeX
15360  or Biblatex
15361 \change_unchanged
15362
15363 \end_layout
15364
15365 \begin_layout Standard
15366 The most basic information about how to use Bib\SpecialChar TeX
15367  or 
15368 \family sans
15369 Biblatex
15370 \family default
15371  with \SpecialChar LyX
15372  is contained in the section 
15373 \emph on
15374 Bibliography databases
15375 \emph default
15376  of the 
15377 \emph on
15378 User's Guide
15379 \emph default
15380 .
15381  The following subsections explain special bibliography features supported
15382  by \SpecialChar LyX
15383 .
15384 \end_layout
15385
15386 \begin_layout Section
15387 Alternative Citation Styles
15388 \end_layout
15389
15390 \begin_layout Standard
15391 Standard Bib\SpecialChar TeX
15392  uses numbers (e.
15393 \begin_inset space \thinspace{}
15394 \end_inset
15395
15396 g.
15397 \begin_inset space \space{}
15398 \end_inset
15399
15400
15401 \begin_inset Quotes eld
15402 \end_inset
15403
15404 [12]
15405 \begin_inset Quotes erd
15406 \end_inset
15407
15408 ) to refer to a cited work.
15409  However, in many scientific disciplines, other citation styles are in use.
15410  The most common one is the author-year style (e.
15411 \begin_inset space \thinspace{}
15412 \end_inset
15413
15414 g.
15415 \begin_inset space \space{}
15416 \end_inset
15417
15418
15419 \begin_inset Quotes eld
15420 \end_inset
15421
15422 Knuth 1984a
15423 \begin_inset Quotes erd
15424 \end_inset
15425
15426 ).
15427  \SpecialChar LyX
15428  supports three packages that provide this style, 
15429 \begin_inset Flex Code
15430 status collapsed
15431
15432 \begin_layout Plain Layout
15433 biblatex
15434 \end_layout
15435
15436 \end_inset
15437
15438
15439 \begin_inset Flex Code
15440 status collapsed
15441
15442 \begin_layout Plain Layout
15443 natbib
15444 \end_layout
15445
15446 \end_inset
15447
15448 , and 
15449 \begin_inset Flex Code
15450 status collapsed
15451
15452 \begin_layout Plain Layout
15453 jurabib
15454 \end_layout
15455
15456 \end_inset
15457
15458 .
15459  Each of these packages has their pros and cons, which cannot be listed
15460  in detail.
15461  If you only want to have simple author-year (or author-numerical) style,
15462  or if you want to use one of the countless style files for 
15463 \begin_inset Flex Code
15464 status collapsed
15465
15466 \begin_layout Plain Layout
15467 natbib
15468 \end_layout
15469
15470 \end_inset
15471
15472 , then the established 
15473 \begin_inset Flex Code
15474 status collapsed
15475
15476 \begin_layout Plain Layout
15477 natbib
15478 \end_layout
15479
15480 \end_inset
15481
15482  package is probably your choice.
15483  If you look for specific citation styles common in law studies, you might
15484  consider the 
15485 \begin_inset Flex Code
15486 status collapsed
15487
15488 \begin_layout Plain Layout
15489 jurabib
15490 \end_layout
15491
15492 \end_inset
15493
15494  package.
15495  If you want to have full control over the formatting or look for advanced
15496  features such as ibidem, footnote citations, full title citations, advanced
15497  date formats (such as 400 BC) or full localization to other languages than
15498  English, you should definitely consider 
15499 \begin_inset Flex Code
15500 status collapsed
15501
15502 \begin_layout Plain Layout
15503 biblatex
15504 \end_layout
15505
15506 \end_inset
15507
15508 , which exceeds all other packages in terms of features, but is also quite
15509  heavy and more resource-hungry.
15510 \end_layout
15511
15512 \begin_layout Standard
15513 The handling of these packages in \SpecialChar LyX
15514  is basically the same.
15515  Go to 
15516 \begin_inset Flex Noun
15517 status collapsed
15518
15519 \begin_layout Plain Layout
15520 Document\SpecialChar menuseparator
15521 Settings
15522 \end_layout
15523
15524 \end_inset
15525
15526  and select under 
15527 \begin_inset Flex Noun
15528 status collapsed
15529
15530 \begin_layout Plain Layout
15531 Bibliography
15532 \end_layout
15533
15534 \end_inset
15535
15536  the 
15537 \begin_inset Flex Noun
15538 status collapsed
15539
15540 \begin_layout Plain Layout
15541 Style Format
15542 \end_layout
15543
15544 \end_inset
15545
15546  
15547 \begin_inset Flex Noun
15548 status collapsed
15549
15550 \begin_layout Plain Layout
15551 Basic (BibTeX)
15552 \end_layout
15553
15554 \end_inset
15555
15556
15557 \begin_inset Flex Noun
15558 status collapsed
15559
15560 \begin_layout Plain Layout
15561 Biblatex
15562 \end_layout
15563
15564 \end_inset
15565
15566
15567 \begin_inset Flex Noun
15568 status collapsed
15569
15570 \begin_layout Plain Layout
15571 Biblatex (Natbib mode)
15572 \end_layout
15573
15574 \end_inset
15575
15576
15577 \begin_inset Flex Noun
15578 status collapsed
15579
15580 \begin_layout Plain Layout
15581 Natbib (BibTeX)
15582 \end_layout
15583
15584 \end_inset
15585
15586  or 
15587 \begin_inset Flex Noun
15588 status collapsed
15589
15590 \begin_layout Plain Layout
15591 Jurabib (BibTeX)
15592 \end_layout
15593
15594 \end_inset
15595
15596  (see sec.
15597 \begin_inset space ~
15598 \end_inset
15599
15600 6.5.3 in the User's Guide for more information on these choices).
15601  With all these packages, you will get some extra features in the citation
15602  dialog and you can select the style of the reference (
15603 \begin_inset Quotes eld
15604 \end_inset
15605
15606 Knuth 1984
15607 \begin_inset Quotes erd
15608 \end_inset
15609
15610
15611 \begin_inset Quotes eld
15612 \end_inset
15613
15614 Knuth (1984)
15615 \begin_inset Quotes erd
15616 \end_inset
15617
15618
15619 \begin_inset Quotes eld
15620 \end_inset
15621
15622 Knuth, 1984
15623 \begin_inset Quotes erd
15624 \end_inset
15625
15626
15627 \begin_inset Quotes eld
15628 \end_inset
15629
15630 1984
15631 \begin_inset Quotes erd
15632 \end_inset
15633
15634  etc.).
15635  Note that either package needs specifically designed style files.
15636  They all ship their own, but there are lots of additional style files,
15637  and there is even an interactive style file builder
15638 \begin_inset Foot
15639 status collapsed
15640
15641 \begin_layout Plain Layout
15642 See 
15643 \begin_inset Flex URL
15644 status open
15645
15646 \begin_layout Plain Layout
15647
15648 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
15649 \end_layout
15650
15651 \end_inset
15652
15653
15654 \end_layout
15655
15656 \end_inset
15657
15658  for 
15659 \begin_inset Flex Code
15660 status collapsed
15661
15662 \begin_layout Plain Layout
15663 natbib
15664 \end_layout
15665
15666 \end_inset
15667
15668 .
15669 \end_layout
15670
15671 \begin_layout Section
15672 Subdivided Bibliographies
15673 \end_layout
15674
15675 \begin_layout Standard
15676 Sometimes you might need to divide your bibliography into several sections.
15677  If you are for instance a historian, the possibility to separate sources
15678  and scientific works is most likely a 
15679 \begin_inset Quotes eld
15680 \end_inset
15681
15682 must have
15683 \begin_inset Quotes erd
15684 \end_inset
15685
15686 .
15687  Unfortunately, Bib\SpecialChar TeX
15688  itself does not allow you to do this.
15689  But with the help of some \SpecialChar LaTeX
15690  packages, Bib\SpecialChar TeX
15691  can be extended to fit your needs.
15692 \end_layout
15693
15694 \begin_layout Standard
15695 \SpecialChar LyX
15696  provides native support for one of these packages, 
15697 \family typewriter
15698 bibtopic
15699 \family default
15700 .
15701 \begin_inset Foot
15702 status collapsed
15703
15704 \begin_layout Plain Layout
15705 Available from 
15706 \begin_inset Flex URL
15707 status open
15708
15709 \begin_layout Plain Layout
15710
15711 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
15712 \end_layout
15713
15714 \end_inset
15715
15716
15717 \end_layout
15718
15719 \end_inset
15720
15721  The advantage of this package (compared to other packages such as 
15722 \family typewriter
15723 multibib
15724 \family default
15725 ) is that you don't need to define new citation commands.
15726  Instead, you need to prepare different bibliographic databases which include
15727  the entries for the different sections of the bibliography.
15728  For example: If you want to divide your bibliography into the sections
15729  
15730 \begin_inset Quotes eld
15731 \end_inset
15732
15733 Sources
15734 \begin_inset Quotes erd
15735 \end_inset
15736
15737  and 
15738 \begin_inset Quotes eld
15739 \end_inset
15740
15741 Scientific works
15742 \begin_inset Quotes erd
15743 \end_inset
15744
15745 , you first need to create two bibliographic databases, e.
15746 \begin_inset space \thinspace{}
15747 \end_inset
15748
15749 g.
15750 \begin_inset space \space{}
15751 \end_inset
15752
15753
15754 \begin_inset Flex Code
15755 status collapsed
15756
15757 \begin_layout Plain Layout
15758 sources.bib
15759 \end_layout
15760
15761 \end_inset
15762
15763  and 
15764 \begin_inset Flex Code
15765 status collapsed
15766
15767 \begin_layout Plain Layout
15768 scientific.bib
15769 \end_layout
15770
15771 \end_inset
15772
15773 .
15774  
15775 \end_layout
15776
15777 \begin_layout Standard
15778 Go to 
15779 \begin_inset Flex Noun
15780 status collapsed
15781
15782 \begin_layout Plain Layout
15783 Document\SpecialChar menuseparator
15784 Settings
15785 \end_layout
15786
15787 \end_inset
15788
15789  and check under 
15790 \begin_inset Flex Noun
15791 status collapsed
15792
15793 \begin_layout Plain Layout
15794 Bibliography
15795 \end_layout
15796
15797 \end_inset
15798
15799  the option 
15800 \begin_inset Flex Noun
15801 status collapsed
15802
15803 \begin_layout Plain Layout
15804 Subdivided bibliography
15805 \end_layout
15806
15807 \end_inset
15808
15809 .
15810  Now you can insert multiple Bib\SpecialChar TeX
15811  bibliographies, one for each section of
15812  your bibliography.
15813  Returning to our example: Insert the Bib\SpecialChar TeX
15814  bibliography 
15815 \begin_inset Flex Code
15816 status collapsed
15817
15818 \begin_layout Plain Layout
15819 sources.bib
15820 \end_layout
15821
15822 \end_inset
15823
15824  and a second one for the database 
15825 \begin_inset Flex Code
15826 status collapsed
15827
15828 \begin_layout Plain Layout
15829 scientific.bib
15830 \end_layout
15831
15832 \end_inset
15833
15834 .
15835  You are free to use the same or different styles for each section.
15836  Additionally, you can choose if the bibliography section should contain
15837  
15838 \begin_inset Quotes eld
15839 \end_inset
15840
15841 all cited references
15842 \begin_inset Quotes erd
15843 \end_inset
15844
15845  of the specified database(s) (which is the default), 
15846 \begin_inset Quotes eld
15847 \end_inset
15848
15849 all uncited references
15850 \begin_inset Quotes erd
15851 \end_inset
15852
15853  or even 
15854 \begin_inset Quotes eld
15855 \end_inset
15856
15857 all references
15858 \begin_inset Quotes erd
15859 \end_inset
15860
15861 .
15862  This might be useful if you would like to separate your bibliography into
15863  three sections: 
15864 \begin_inset Quotes eld
15865 \end_inset
15866
15867 Cited sources
15868 \begin_inset Quotes erd
15869 \end_inset
15870
15871
15872 \begin_inset Quotes eld
15873 \end_inset
15874
15875 Uncited sources
15876 \begin_inset Quotes erd
15877 \end_inset
15878
15879 , and 
15880 \begin_inset Quotes eld
15881 \end_inset
15882
15883 Scientific works
15884 \begin_inset Quotes erd
15885 \end_inset
15886
15887 .
15888  The titles for the sections can be added as ordinary sections or subsections.
15889  Since 
15890 \begin_inset Flex Code
15891 status collapsed
15892
15893 \begin_layout Plain Layout
15894 bibtopic
15895 \end_layout
15896
15897 \end_inset
15898
15899  removes the bibliography title, you have to manually re-add that, too (as
15900  a chapter* or section*, for instance).
15901 \end_layout
15902
15903 \begin_layout Standard
15904 With 
15905 \family sans
15906 Biblatex
15907 \family default
15908 , the procedure is a bit different.
15909  Since 
15910 \family typewriter
15911 bibtopic
15912 \family default
15913  does not work with 
15914 \family sans
15915 Biblatex
15916 \family default
15917 , the aforementioned 
15918 \begin_inset Flex Noun
15919 status collapsed
15920
15921 \begin_layout Plain Layout
15922 Subdivided bibliography
15923 \end_layout
15924
15925 \end_inset
15926
15927  option is disabled if you use 
15928 \family sans
15929 Biblatex
15930 \family default
15931 .
15932  However, 
15933 \family sans
15934 Biblatex
15935 \family default
15936  provides its own means to generate subdivided bibliographies.
15937  You can either add keywords to bibliography entries via the 
15938 \begin_inset Flex Code
15939 status collapsed
15940
15941 \begin_layout Plain Layout
15942 keywords
15943 \end_layout
15944
15945 \end_inset
15946
15947  entry option and then filter bibliography sections by keyword (by adding
15948  
15949 \begin_inset Flex Code
15950 status collapsed
15951
15952 \begin_layout Plain Layout
15953 keyword=mykeyword
15954 \end_layout
15955
15956 \end_inset
15957
15958  to the 
15959 \begin_inset Flex Noun
15960 status collapsed
15961
15962 \begin_layout Plain Layout
15963 Options
15964 \end_layout
15965
15966 \end_inset
15967
15968  field of the dialog that opens if you left-click on the 
15969 \begin_inset Flex Noun
15970 status collapsed
15971
15972 \begin_layout Plain Layout
15973 Biblatex Generated Bibliography
15974 \end_layout
15975
15976 \end_inset
15977
15978  button), or you can filter by entry types (such as 
15979 \emph on
15980 book
15981 \emph default
15982  or 
15983 \emph on
15984 article
15985 \emph default
15986 ) by entering e.
15987 \begin_inset space \thinspace{}
15988 \end_inset
15989
15990 g.
15991  
15992 \begin_inset Flex Code
15993 status collapsed
15994
15995 \begin_layout Plain Layout
15996 type=book
15997 \end_layout
15998
15999 \end_inset
16000
16001  or 
16002 \begin_inset Flex Code
16003 status collapsed
16004
16005 \begin_layout Plain Layout
16006 nottype=collection
16007 \end_layout
16008
16009 \end_inset
16010
16011  to the mentioned 
16012 \begin_inset Flex Noun
16013 status collapsed
16014
16015 \begin_layout Plain Layout
16016 Options
16017 \end_layout
16018
16019 \end_inset
16020
16021  field, or you can create so-called 
16022 \begin_inset Quotes eld
16023 \end_inset
16024
16025 Bibliography Categories
16026 \begin_inset Quotes erd
16027 \end_inset
16028
16029  to which you can assign individual entries.
16030  Please refer to the Biblatex manual, section 
16031 \emph on
16032 Subdivided Bibliographies
16033 \emph default
16034 , for details.
16035 \end_layout
16036
16037 \begin_layout Section
16038 Multiple Bibliographies
16039 \begin_inset CommandInset label
16040 LatexCommand label
16041 name "subsec:Multiple-Bibliographies"
16042
16043 \end_inset
16044
16045
16046 \end_layout
16047
16048 \begin_layout Standard
16049 Multiple bibliographies, e.
16050 \begin_inset space \thinspace{}
16051 \end_inset
16052
16053 g.
16054 \begin_inset space \space{}
16055 \end_inset
16056
16057 a bibliography for each part, chapter, section, subsection or child (sub-documen
16058 t) of the document, are also supported by \SpecialChar LyX
16059 .
16060  In order to enable it, go to 
16061 \begin_inset Flex Noun
16062 status collapsed
16063
16064 \begin_layout Plain Layout
16065 Document\SpecialChar menuseparator
16066 Settings\SpecialChar menuseparator
16067 Bibliography
16068 \end_layout
16069
16070 \end_inset
16071
16072  and select the relevant unit (e.
16073 \begin_inset space \thinspace{}
16074 \end_inset
16075
16076 g., 
16077 \begin_inset Quotes eld
16078 \end_inset
16079
16080 per section
16081 \begin_inset Quotes erd
16082 \end_inset
16083
16084 ) in the 
16085 \begin_inset Flex Noun
16086 status collapsed
16087
16088 \begin_layout Plain Layout
16089 Multiple Bibliographies
16090 \end_layout
16091
16092 \end_inset
16093
16094  combo box.
16095  Then add a Bib(la)\SpecialChar TeX
16096  bibliography to each unit (e.
16097 \begin_inset space \thinspace{}
16098 \end_inset
16099
16100 g., section) of your document.
16101  In the output, a separate bibliography, containing only the references
16102  done in the current unit is generated.
16103 \end_layout
16104
16105 \begin_layout Standard
16106 If you use Bib\SpecialChar TeX
16107 , either the 
16108 \begin_inset Flex Code
16109 status collapsed
16110
16111 \begin_layout Plain Layout
16112 chapterbib
16113 \end_layout
16114
16115 \end_inset
16116
16117  or the 
16118 \begin_inset Flex Code
16119 status collapsed
16120
16121 \begin_layout Plain Layout
16122 bibtopic
16123 \end_layout
16124
16125 \end_inset
16126
16127  package is used to create multiple bibliographies.
16128  The former package is used if you select 
16129 \begin_inset Quotes eld
16130 \end_inset
16131
16132 per child document
16133 \begin_inset Quotes erd
16134 \end_inset
16135
16136  and do 
16137 \emph on
16138 not
16139 \emph default
16140  check 
16141 \begin_inset Flex Noun
16142 status collapsed
16143
16144 \begin_layout Plain Layout
16145 Sectioned Bibliography
16146 \end_layout
16147
16148 \end_inset
16149
16150 .
16151  In all other cases, 
16152 \begin_inset Flex Code
16153 status collapsed
16154
16155 \begin_layout Plain Layout
16156 bibtopic
16157 \end_layout
16158
16159 \end_inset
16160
16161  is used.
16162 \begin_inset Foot
16163 status collapsed
16164
16165 \begin_layout Plain Layout
16166 An alternative approach, if you are willing to use some 
16167 \begin_inset Flex Noun
16168 status collapsed
16169
16170 \begin_layout Plain Layout
16171 \SpecialChar TeX
16172  Code
16173 \end_layout
16174
16175 \end_inset
16176
16177  (see section
16178 \begin_inset space ~
16179 \end_inset
16180
16181
16182 \begin_inset CommandInset ref
16183 LatexCommand ref
16184 reference "sec:Inserting-TeX-Code"
16185
16186 \end_inset
16187
16188 ), is to use the 
16189 \begin_inset Flex Code
16190 status collapsed
16191
16192 \begin_layout Plain Layout
16193 bibunits
16194 \end_layout
16195
16196 \end_inset
16197
16198  package.
16199 \end_layout
16200
16201 \end_inset
16202
16203  If 
16204 \begin_inset Flex Code
16205 status collapsed
16206
16207 \begin_layout Plain Layout
16208 bibtopic
16209 \end_layout
16210
16211 \end_inset
16212
16213  is used, \SpecialChar LyX
16214  encloses the specified units in 
16215 \begin_inset Flex Code
16216 status collapsed
16217
16218 \begin_layout Plain Layout
16219 bibtopic
16220 \end_layout
16221
16222 \end_inset
16223
16224 's 
16225 \begin_inset Flex Code
16226 status collapsed
16227
16228 \begin_layout Plain Layout
16229
16230 \backslash
16231 begin{btUnit}
16232 \end_layout
16233
16234 \end_inset
16235
16236  and 
16237 \begin_inset Flex Code
16238 status collapsed
16239
16240 \begin_layout Plain Layout
16241
16242 \backslash
16243 end{btUnit}
16244 \end_layout
16245
16246 \end_inset
16247
16248  in order to create the units.
16249  Note that this approach has some limitations.
16250  First, every citation reference has to be inside some 
16251 \begin_inset Flex Code
16252 status collapsed
16253
16254 \begin_layout Plain Layout
16255 btUnit
16256 \end_layout
16257
16258 \end_inset
16259
16260 .
16261  So citations outside a defined unit (e.
16262 \begin_inset space \thinspace{}
16263 \end_inset
16264
16265 g., before the first section if you use 
16266 \begin_inset Quotes eld
16267 \end_inset
16268
16269 by section
16270 \begin_inset Quotes erd
16271 \end_inset
16272
16273 ) will appear as 
16274 \begin_inset Quotes eld
16275 \end_inset
16276
16277 ???
16278 \begin_inset Quotes erd
16279 \end_inset
16280
16281 .
16282  You can also create your own units by entering 
16283 \begin_inset Flex Code
16284 status collapsed
16285
16286 \begin_layout Plain Layout
16287
16288 \backslash
16289 begin{btUnit}
16290 \end_layout
16291
16292 \end_inset
16293
16294  and 
16295 \begin_inset Flex Code
16296 status collapsed
16297
16298 \begin_layout Plain Layout
16299
16300 \backslash
16301 end{btUnit}
16302 \end_layout
16303
16304 \end_inset
16305
16306  as \SpecialChar TeX
16307  code (for instance to work around the mentioned limitation).
16308  Note, though, that 
16309 \begin_inset Flex Code
16310 status collapsed
16311
16312 \begin_layout Plain Layout
16313 btUnit
16314 \end_layout
16315
16316 \end_inset
16317
16318 s cannot be nested.
16319  A second limitation is that 
16320 \begin_inset Flex Code
16321 status collapsed
16322
16323 \begin_layout Plain Layout
16324 bibtopic
16325 \end_layout
16326
16327 \end_inset
16328
16329  always processes all references of a bibliography database, even if they
16330  are not cited.
16331  This can result in odd labels (e.
16332 \begin_inset space \thinspace{}
16333 \end_inset
16334
16335 g.
16336  
16337 \begin_inset Quotes eld
16338 \end_inset
16339
16340 Miller 2014b
16341 \begin_inset Quotes erd
16342 \end_inset
16343
16344  if two works of this author from 2014 are in the database, even if only
16345  one is cited).
16346 \end_layout
16347
16348 \begin_layout Standard
16349 If you use 
16350 \family sans
16351 Biblatex
16352 \family default
16353 , the 
16354 \begin_inset Flex Code
16355 status collapsed
16356
16357 \begin_layout Plain Layout
16358 refsection
16359 \end_layout
16360
16361 \end_inset
16362
16363  option is used instead.
16364  If you need specific units, you can start them with the \SpecialChar TeX
16365  code 
16366 \begin_inset Flex Code
16367 status collapsed
16368
16369 \begin_layout Plain Layout
16370
16371 \backslash
16372 newrefsection
16373 \end_layout
16374
16375 \end_inset
16376
16377  or 
16378 \begin_inset Flex Code
16379 status collapsed
16380
16381 \begin_layout Plain Layout
16382
16383 \backslash
16384 newrefsegment
16385 \end_layout
16386
16387 \end_inset
16388
16389 , respectively.
16390  If you also want to control the end of the unit, use the environment 
16391 \begin_inset Flex Code
16392 status collapsed
16393
16394 \begin_layout Plain Layout
16395
16396 \backslash
16397 begin{refsection}
16398 \end_layout
16399
16400 \end_inset
16401
16402  \SpecialChar ldots
16403  
16404 \begin_inset Flex Code
16405 status collapsed
16406
16407 \begin_layout Plain Layout
16408
16409 \backslash
16410 end{refsection}
16411 \end_layout
16412
16413 \end_inset
16414
16415  instead.
16416  Note, though, that 
16417 \begin_inset Flex Code
16418 status collapsed
16419
16420 \begin_layout Plain Layout
16421 refsection
16422 \end_layout
16423
16424 \end_inset
16425
16426 s cannot be nested.
16427  In addition to the individual bibliography of the current unit, 
16428 \family sans
16429 Biblatex
16430 \family default
16431  also provides an easy way to output all bibliographies, subsequently, at
16432  one place (e.
16433 \begin_inset space \thinspace{}
16434 \end_inset
16435
16436 g., at the end of the document).
16437  Select 
16438 \begin_inset Quotes eld
16439 \end_inset
16440
16441 all reference units
16442 \begin_inset Quotes erd
16443 \end_inset
16444
16445  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
16446  this.
16447  Please refer to the 
16448 \family sans
16449 Biblatex
16450 \family default
16451  manual for more information on this topic.
16452 \end_layout
16453
16454 \begin_layout Chapter
16455
16456 \change_deleted 564990737 1671355654
16457 Itemize 
16458 \change_unchanged
16459 Bullet
16460 \change_inserted 564990737 1671355667
16461 s
16462 \change_deleted 564990737 1671355661
16463  Selection
16464 \change_inserted 564990737 1671355684
16465
16466 \begin_inset CommandInset label
16467 LatexCommand label
16468 name "chap:bullets"
16469
16470 \end_inset
16471
16472
16473 \change_deleted 564990737 1671355684
16474
16475 \begin_inset CommandInset label
16476 LatexCommand label
16477 name "sec:bullet"
16478
16479 \end_inset
16480
16481
16482 \change_unchanged
16483
16484 \end_layout
16485
16486 \begin_layout Standard
16487 by
16488 \noun on
16489  Allan Rae
16490 \end_layout
16491
16492 \begin_layout Section
16493 Introduction
16494 \end_layout
16495
16496 \begin_layout Standard
16497 \SpecialChar LyX
16498  provides 216 bullet shapes that can be accessed from a simple dialog.
16499  Using this dialog you can easily specify what bullet shape to use at each
16500  level of an itemized list.
16501  These settings are document-wide so you won't be able to specify different
16502  sets of bullets for different paragraphs.
16503 \begin_inset Foot
16504 status collapsed
16505
16506 \begin_layout Plain Layout
16507 Well, actually you can but you'll have to do it by hand.
16508 \end_layout
16509
16510 \end_inset
16511
16512
16513 \end_layout
16514
16515 \begin_layout Section
16516 How it looks
16517 \end_layout
16518
16519 \begin_layout Standard
16520 Open the dialog by selecting the 
16521 \begin_inset Flex Noun
16522 status collapsed
16523
16524 \begin_layout Plain Layout
16525 Document\SpecialChar menuseparator
16526 Settings
16527 \end_layout
16528
16529 \end_inset
16530
16531  menu item and then select the 
16532 \begin_inset Flex Noun
16533 status collapsed
16534
16535 \begin_layout Plain Layout
16536 Bullets
16537 \end_layout
16538
16539 \end_inset
16540
16541  tab.
16542 \end_layout
16543
16544 \begin_layout Standard
16545 The dialog provides you with a table of bullet shapes.
16546  A column of buttons on the left of the table provides access to the six
16547  different panels of bullet shapes.
16548  The row of buttons across the top is used to select which bullet depth
16549  you are changing.
16550
16551 \change_deleted 244031559 1603875981
16552  A text entry under the table shows the currently selected bullet shape's
16553  \SpecialChar LaTeX
16554  equivalent and this can be edited if desired.
16555  If you do modify the text you will also need to specify any needed packages
16556  in the \SpecialChar LaTeX
16557  preamble.
16558 \change_unchanged
16559
16560 \end_layout
16561
16562 \begin_layout Standard
16563 The six panels are divided up by the packages they require.
16564  The following table shows the mappings from button name to \SpecialChar LaTeX
16565  package.
16566 \end_layout
16567
16568 \begin_layout Standard
16569 \align center
16570 \begin_inset Tabular
16571 <lyxtabular version="3" rows="7" columns="2">
16572 <features tabularvalignment="middle">
16573 <column alignment="center" valignment="top" width="0pt">
16574 <column alignment="center" valignment="top" width="0pt">
16575 <row>
16576 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16577 \begin_inset Text
16578
16579 \begin_layout Plain Layout
16580
16581 \family roman
16582 \series medium
16583 \shape up
16584 \size normal
16585 \emph off
16586 \bar no
16587 \noun off
16588 \color none
16589 Button
16590 \end_layout
16591
16592 \end_inset
16593 </cell>
16594 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16595 \begin_inset Text
16596
16597 \begin_layout Plain Layout
16598
16599 \family roman
16600 \series medium
16601 \shape up
16602 \size normal
16603 \emph off
16604 \bar no
16605 \noun off
16606 \color none
16607 Packages Required
16608 \end_layout
16609
16610 \end_inset
16611 </cell>
16612 </row>
16613 <row>
16614 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16615 \begin_inset Text
16616
16617 \begin_layout Plain Layout
16618
16619 \family sans
16620 \series medium
16621 \shape up
16622 \size normal
16623 \emph off
16624 \bar no
16625 \noun off
16626 \color none
16627 Standard
16628 \end_layout
16629
16630 \end_inset
16631 </cell>
16632 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16633 \begin_inset Text
16634
16635 \begin_layout Plain Layout
16636
16637 \series medium
16638 \shape up
16639 \size normal
16640 \emph off
16641 \bar no
16642 \noun off
16643 \color none
16644 base \SpecialChar LaTeX
16645
16646 \end_layout
16647
16648 \end_inset
16649 </cell>
16650 </row>
16651 <row>
16652 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16653 \begin_inset Text
16654
16655 \begin_layout Plain Layout
16656
16657 \family sans
16658 \series medium
16659 \shape up
16660 \size normal
16661 \emph off
16662 \bar no
16663 \noun off
16664 \color none
16665 Maths
16666 \end_layout
16667
16668 \end_inset
16669 </cell>
16670 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16671 \begin_inset Text
16672
16673 \begin_layout Plain Layout
16674
16675 \family typewriter
16676 \series medium
16677 \shape up
16678 \size normal
16679 \emph off
16680 \bar no
16681 \noun off
16682 \color none
16683 amssymb.sty
16684 \end_layout
16685
16686 \end_inset
16687 </cell>
16688 </row>
16689 <row>
16690 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16691 \begin_inset Text
16692
16693 \begin_layout Plain Layout
16694
16695 \family sans
16696 \series medium
16697 \shape up
16698 \size normal
16699 \emph off
16700 \bar no
16701 \noun off
16702 \color none
16703 Ding1
16704 \end_layout
16705
16706 \end_inset
16707 </cell>
16708 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16709 \begin_inset Text
16710
16711 \begin_layout Plain Layout
16712
16713 \family typewriter
16714 \series medium
16715 \shape up
16716 \size normal
16717 \emph off
16718 \bar no
16719 \noun off
16720 \color none
16721 pifont.sty
16722 \end_layout
16723
16724 \end_inset
16725 </cell>
16726 </row>
16727 <row>
16728 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16729 \begin_inset Text
16730
16731 \begin_layout Plain Layout
16732
16733 \family sans
16734 \series medium
16735 \shape up
16736 \size normal
16737 \emph off
16738 \bar no
16739 \noun off
16740 \color none
16741 Ding2
16742 \end_layout
16743
16744 \end_inset
16745 </cell>
16746 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16747 \begin_inset Text
16748
16749 \begin_layout Plain Layout
16750
16751 \family typewriter
16752 \series medium
16753 \shape up
16754 \size normal
16755 \emph off
16756 \bar no
16757 \noun off
16758 \color none
16759 pifont.sty
16760 \end_layout
16761
16762 \end_inset
16763 </cell>
16764 </row>
16765 <row>
16766 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16767 \begin_inset Text
16768
16769 \begin_layout Plain Layout
16770
16771 \family sans
16772 \series medium
16773 \shape up
16774 \size normal
16775 \emph off
16776 \bar no
16777 \noun off
16778 \color none
16779 Ding3
16780 \end_layout
16781
16782 \end_inset
16783 </cell>
16784 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16785 \begin_inset Text
16786
16787 \begin_layout Plain Layout
16788
16789 \family typewriter
16790 \series medium
16791 \shape up
16792 \size normal
16793 \emph off
16794 \bar no
16795 \noun off
16796 \color none
16797 pifont.sty
16798 \end_layout
16799
16800 \end_inset
16801 </cell>
16802 </row>
16803 <row>
16804 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16805 \begin_inset Text
16806
16807 \begin_layout Plain Layout
16808
16809 \family sans
16810 \series medium
16811 \shape up
16812 \size normal
16813 \emph off
16814 \bar no
16815 \noun off
16816 \color none
16817 Ding4
16818 \end_layout
16819
16820 \end_inset
16821 </cell>
16822 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16823 \begin_inset Text
16824
16825 \begin_layout Plain Layout
16826
16827 \family typewriter
16828 \series medium
16829 \shape up
16830 \size normal
16831 \emph off
16832 \bar no
16833 \noun off
16834 \color none
16835 pifont.sty
16836 \end_layout
16837
16838 \end_inset
16839 </cell>
16840 </row>
16841 </lyxtabular>
16842
16843 \end_inset
16844
16845
16846 \end_layout
16847
16848 \begin_layout Standard
16849 \SpecialChar LyX
16850  doesn't stop you using bullets from packages you don't have.
16851  If you get errors from \SpecialChar LaTeX
16852  when you try to view or print the file, then it
16853  is likely you are missing a package.
16854 \begin_inset Foot
16855 status collapsed
16856
16857 \begin_layout Plain Layout
16858 \SpecialChar LyX
16859  doesn't restrict your use since you may be editing locally and exporting
16860  elsewhere.
16861 \end_layout
16862
16863 \end_inset
16864
16865
16866 \end_layout
16867
16868 \begin_layout Section
16869 How to use it
16870 \end_layout
16871
16872 \begin_layout Standard
16873 Select which bullet depth you want to change then select the bullet shape
16874  and size.
16875  Any changes will not be visible in \SpecialChar LyX
16876 , but are visible when viewing the document.
16877 \end_layout
16878
16879 \begin_layout Standard
16880 You can reset a bullet shape to the default simply by clicking your right
16881  mouse button on the appropriate bullet depth button.
16882 \begin_inset Foot
16883 status open
16884
16885 \begin_layout Plain Layout
16886 If you 
16887 \emph on
16888 really
16889 \emph default
16890  want to have multiple sets of paragraphs with different sets of bullets
16891  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
16892  code.
16893  The bullet selection dialog can help though because it provides you with
16894  the \SpecialChar LaTeX
16895  code for a wide range of bullet shapes.
16896  To make your own custom paragraphs you have the following options:
16897 \end_layout
16898
16899 \begin_layout Plain Layout
16900 \begin_inset ERT
16901 status open
16902
16903 \begin_layout Plain Layout
16904
16905
16906 \backslash
16907 let
16908 \backslash
16909 savelabelitemi=
16910 \backslash
16911 labelitemi
16912 \end_layout
16913
16914 \end_inset
16915
16916
16917 \end_layout
16918
16919 \begin_layout Plain Layout
16920 \begin_inset ERT
16921 status open
16922
16923 \begin_layout Plain Layout
16924
16925
16926 \backslash
16927 renewcommand
16928 \backslash
16929 labelitemi[0]{
16930 \backslash
16931 small
16932 \backslash
16933 (
16934 \backslash
16935 sharp
16936 \backslash
16937 )}
16938 \end_layout
16939
16940 \end_inset
16941
16942
16943 \end_layout
16944
16945 \begin_layout Itemize
16946 Use the \SpecialChar LaTeX
16947  command 
16948 \begin_inset Flex Code
16949 status collapsed
16950
16951 \begin_layout Plain Layout
16952
16953 \backslash
16954 renewcommand{}{}
16955 \end_layout
16956
16957 \end_inset
16958
16959  to specify a new bullet shape for a given depth.
16960  You'll also need to save the current bullet shape so you can restore it
16961  again afterwards.
16962  In this itemized list the following \SpecialChar LaTeX
16963  code was used to change the bullet
16964  used for the first depth.
16965 \end_layout
16966
16967 \begin_deeper
16968 \begin_layout LyX-Code
16969
16970 \backslash
16971 let
16972 \backslash
16973 savelabelitemi=
16974 \backslash
16975 labelitemi 
16976 \end_layout
16977
16978 \begin_layout LyX-Code
16979
16980 \backslash
16981 renewcommand
16982 \backslash
16983 labelitemi[0]{
16984 \backslash
16985 small
16986 \backslash
16987 (
16988 \backslash
16989 sharp
16990 \backslash
16991 )}
16992 \end_layout
16993
16994 \end_deeper
16995 \begin_layout Itemize
16996 Note that the itemize depth is specified in Roman numerals as part of the
16997  
16998 \family typewriter
16999
17000 \backslash
17001 labelitem
17002 \family default
17003  command.
17004 \end_layout
17005
17006 \begin_layout Itemize
17007 \begin_inset Argument item:1
17008 status open
17009
17010 \begin_layout Plain Layout
17011 \begin_inset ERT
17012 status open
17013
17014 \begin_layout Plain Layout
17015
17016
17017 \backslash
17018 (
17019 \backslash
17020 star
17021 \backslash
17022 )
17023 \end_layout
17024
17025 \end_inset
17026
17027
17028 \end_layout
17029
17030 \end_inset
17031
17032  Specify each individual entry by starting each item with the bullet shape
17033  enclosed in a 
17034 \begin_inset Quotes eld
17035 \end_inset
17036
17037 Custom Item
17038 \begin_inset Quotes erd
17039 \end_inset
17040
17041  inset (available at 
17042 \family sans
17043 Insert\SpecialChar menuseparator
17044 Custom Item
17045 \family default
17046 ) and set as 
17047 \begin_inset Flex Noun
17048 status collapsed
17049
17050 \begin_layout Plain Layout
17051 \SpecialChar TeX
17052  Code
17053 \end_layout
17054
17055 \end_inset
17056
17057 .
17058  For example, this item was started with 
17059 \begin_inset Flex Code
17060 status collapsed
17061
17062 \begin_layout Plain Layout
17063
17064 \backslash
17065 (
17066 \backslash
17067 star
17068 \backslash
17069 )
17070 \end_layout
17071
17072 \end_inset
17073
17074 .
17075 \end_layout
17076
17077 \begin_layout Plain Layout
17078 \begin_inset ERT
17079 status open
17080
17081 \begin_layout Plain Layout
17082
17083
17084 \backslash
17085 renewcommand
17086 \backslash
17087 labelitemi[0]{
17088 \backslash
17089 savelabelitemi}
17090 \end_layout
17091
17092 \end_inset
17093
17094
17095 \end_layout
17096
17097 \begin_layout Plain Layout
17098 You'll also need to revert the labelitem back to its previous setting for
17099  the global bullet shape settings to remain in effect.
17100  The way used here was:
17101 \end_layout
17102
17103 \begin_layout LyX-Code
17104
17105 \backslash
17106 renewcommand
17107 \backslash
17108 labelitemi[0]{
17109 \backslash
17110 savelabelitemi}
17111 \end_layout
17112
17113 \end_inset
17114
17115
17116 \end_layout
17117
17118 \begin_layout Chapter
17119 Supplemental Tools
17120 \end_layout
17121
17122 \begin_layout Section
17123 Multipart Documents
17124 \end_layout
17125
17126 \begin_layout Subsection
17127 General Operation
17128 \end_layout
17129
17130 \begin_layout Standard
17131 When you are working on a large file with many sections, it is often convenient
17132  to break up the document into several files, or perhaps you have something
17133  where a table may change from time to time, but the preceding text does
17134  not.
17135  In these cases, you should seriously consider using multipart documents.
17136  For example, scientific papers often have five major sections: the introduction
17137 , observations, results, discussion, and conclusion.
17138  Each of these could be its own separate \SpecialChar LyX
17139  file, with one 
17140 \begin_inset Quotes eld
17141 \end_inset
17142
17143 master
17144 \begin_inset Quotes erd
17145 \end_inset
17146
17147  file which contains the title, authors, abstract, references, etc., plus
17148  the five included files.
17149  It is important to note that each of these files is a full \SpecialChar LyX
17150  file which
17151  can be formatted and printed on its own, as well as included in a master
17152  file.
17153  Each of these files must have the same document class, however—don't attempt
17154  to mix book classes with article classes.
17155  You may also include \SpecialChar LaTeX
17156  files; however, these files must not have their own
17157  preamble (i.
17158 \begin_inset space \thinspace{}
17159 \end_inset
17160
17161 e.
17162 \begin_inset space \space{}
17163 \end_inset
17164
17165 everything up to and including the 
17166 \begin_inset Flex Code
17167 status collapsed
17168
17169 \begin_layout Plain Layout
17170
17171 \backslash
17172 begin{document}
17173 \end_layout
17174
17175 \end_inset
17176
17177  line as well as the 
17178 \begin_inset Flex Code
17179 status collapsed
17180
17181 \begin_layout Plain Layout
17182
17183 \backslash
17184 end{document}
17185 \end_layout
17186
17187 \end_inset
17188
17189  line must be deleted) or else errors will be generated when you try to
17190  make a DVI file.
17191 \end_layout
17192
17193 \begin_layout Standard
17194 \SpecialChar LyX
17195  allows you to include files quite easily with 
17196 \begin_inset Flex Noun
17197 status collapsed
17198
17199 \begin_layout Plain Layout
17200 Insert\SpecialChar menuseparator
17201 Child
17202 \begin_inset space ~
17203 \end_inset
17204
17205 Document
17206 \end_layout
17207
17208 \end_inset
17209
17210 .
17211  When you click on this selection a small box is inserted into the file
17212  at the current cursor location.
17213  Clicking on the box raises a dialog which allows you to select the file
17214  to be included, and the method of its inclusion.
17215  
17216 \end_layout
17217
17218 \begin_layout Standard
17219 The file selection box should by now be obvious.
17220  The three inclusion methods are 
17221 \begin_inset Quotes eld
17222 \end_inset
17223
17224 include
17225 \begin_inset Quotes erd
17226 \end_inset
17227
17228
17229 \begin_inset Quotes eld
17230 \end_inset
17231
17232 input
17233 \begin_inset Quotes erd
17234 \end_inset
17235
17236 , and 
17237 \begin_inset Quotes eld
17238 \end_inset
17239
17240 verbatim
17241 \begin_inset Quotes erd
17242 \end_inset
17243
17244 .
17245  The methods 
17246 \begin_inset Quotes eld
17247 \end_inset
17248
17249 include
17250 \begin_inset Quotes erd
17251 \end_inset
17252
17253  and 
17254 \begin_inset Quotes eld
17255 \end_inset
17256
17257 input
17258 \begin_inset Quotes erd
17259 \end_inset
17260
17261  are similar in many ways, but there are also some notable differences:
17262 \end_layout
17263
17264 \begin_layout Enumerate
17265 Files that are 
17266 \begin_inset Quotes eld
17267 \end_inset
17268
17269 included
17270 \begin_inset Quotes erd
17271 \end_inset
17272
17273  are typeset beginning on a new page, while files that are 
17274 \begin_inset Quotes eld
17275 \end_inset
17276
17277 inputted
17278 \begin_inset Quotes erd
17279 \end_inset
17280
17281  are typeset starting on the current page.
17282 \end_layout
17283
17284 \begin_layout Enumerate
17285 \begin_inset Quotes eld
17286 \end_inset
17287
17288 Included
17289 \begin_inset Quotes erd
17290 \end_inset
17291
17292  files cannot themselves 
17293 \begin_inset Quotes eld
17294 \end_inset
17295
17296 include
17297 \begin_inset Quotes erd
17298 \end_inset
17299
17300  further files (
17301 \begin_inset Quotes eld
17302 \end_inset
17303
17304 grandchilds
17305 \begin_inset Quotes erd
17306 \end_inset
17307
17308 ).
17309  With 
17310 \begin_inset Quotes eld
17311 \end_inset
17312
17313 input
17314 \begin_inset Quotes erd
17315 \end_inset
17316
17317 , on the other hand, infinite sub-inputting is possible.
17318 \end_layout
17319
17320 \begin_layout Enumerate
17321 \begin_inset Quotes eld
17322 \end_inset
17323
17324 Include
17325 \begin_inset Quotes erd
17326 \end_inset
17327
17328  allow for the output of only selected 
17329 \begin_inset Quotes eld
17330 \end_inset
17331
17332 included
17333 \begin_inset Quotes erd
17334 \end_inset
17335
17336  files, while maintaining the actual counters (pagination etc.) and references
17337  (please refer to the section 
17338 \emph on
17339 Child
17340 \begin_inset space ~
17341 \end_inset
17342
17343 Documents
17344 \emph default
17345  of the 
17346 \emph on
17347 Embedded
17348 \begin_inset space ~
17349 \end_inset
17350
17351 Objects
17352 \emph default
17353  manual for details).
17354 \end_layout
17355
17356 \begin_layout Standard
17357 Hence, 
17358 \begin_inset Quotes eld
17359 \end_inset
17360
17361 include
17362 \begin_inset Quotes erd
17363 \end_inset
17364
17365  is the preferred method for chapters that are outsourced to child documents,
17366  while 
17367 \begin_inset Quotes eld
17368 \end_inset
17369
17370 input
17371 \begin_inset Quotes erd
17372 \end_inset
17373
17374  is more suitable for arbitrary file inheritance.
17375 \end_layout
17376
17377 \begin_layout Standard
17378
17379 \begin_inset Quotes eld
17380 \end_inset
17381
17382 verbatim
17383 \begin_inset Quotes erd
17384 \end_inset
17385
17386  included file allows you to include a file typeset exactly as it appears
17387  in the file, i.
17388 \begin_inset space \thinspace{}
17389 \end_inset
17390
17391 e.
17392 \begin_inset space \space{}
17393 \end_inset
17394
17395 in 
17396 \begin_inset Flex Code
17397 status collapsed
17398
17399 \begin_layout Plain Layout
17400 verbatim
17401 \end_layout
17402
17403 \end_inset
17404
17405  mode, with the characters set in a fixed-width typewriter font.
17406  Normally, spaces in this file are invisible, though two consecutive spaces
17407  are conserved, unlike \SpecialChar LyX
17408 's normal treatment of spaces.
17409  However, setting the 
17410 \begin_inset Flex Noun
17411 status collapsed
17412
17413 \begin_layout Plain Layout
17414 Mark
17415 \begin_inset space ~
17416 \end_inset
17417
17418 spaces
17419 \begin_inset space ~
17420 \end_inset
17421
17422 in
17423 \begin_inset space ~
17424 \end_inset
17425
17426 output
17427 \end_layout
17428
17429 \end_inset
17430
17431  checkbox typesets a mark to unambiguously define the presence of a space.
17432  
17433 \end_layout
17434
17435 \begin_layout Standard
17436 Generally, the master file is converted into a full \SpecialChar LaTeX
17437  file before typesetting,
17438  while the included files are converted to \SpecialChar LaTeX
17439  files that do not have all the
17440  preamble information.
17441 \end_layout
17442
17443 \begin_layout Subsection
17444 Cross-References Between Files
17445 \end_layout
17446
17447 \begin_layout Standard
17448 \begin_inset Box Shadowbox
17449 position "t"
17450 hor_pos "c"
17451 has_inner_box 1
17452 inner_pos "t"
17453 use_parbox 0
17454 use_makebox 0
17455 width "100col%"
17456 special "none"
17457 height "1in"
17458 height_special "totalheight"
17459 thickness "0.4pt"
17460 separation "3pt"
17461 shadowsize "4pt"
17462 framecolor "black"
17463 backgroundcolor "none"
17464 status open
17465
17466 \begin_layout Plain Layout
17467 This section is somewhat out of date.
17468  Need to describe default master documents and how children are opened when
17469  the master is.
17470  [[FIXME]]
17471 \end_layout
17472
17473 \end_inset
17474
17475
17476 \end_layout
17477
17478 \begin_layout Standard
17479 It is possible to set up cross-references between the different files.
17480  First, open all the files in question: let's call them A and B in a two
17481  file example, where B is included in A.
17482  Let's say you insert a label in A, then want to reference it in B.
17483  Open the cross-reference dialog whilst in document B, and you can select
17484  the 
17485 \begin_inset Quotes eld
17486 \end_inset
17487
17488 buffer
17489 \begin_inset Quotes erd
17490 \end_inset
17491
17492  to use.
17493 \end_layout
17494
17495 \begin_layout Subsection
17496 Bibliography Lists in all Subdocuments
17497 \end_layout
17498
17499 \begin_layout Standard
17500 If you work with child documents, you might want to have only one main bibliogra
17501 phy at the end, but still be able to have a selected bibliography for the
17502  child if you output it on its own.
17503  Here is how to achieve this.
17504 \end_layout
17505
17506 \begin_layout Standard
17507 For the main document, you just insert a bibliography inset at the place
17508  where the main bibliography has to appear (within the master file or within
17509  a child).
17510  If the bibliography inset is in the master file, the references will be
17511  inherited by all children, so they are available in the citation dialog
17512  within each child.
17513 \end_layout
17514
17515 \begin_layout Standard
17516 For child-specific bibliographies, insert bibliography insets within the
17517  child documents, at the place where the bibliography should appear when
17518  the child is compiled separately.
17519  However, the trick is to insert them into a branch (
17520 \family sans
17521 Insert\SpecialChar menuseparator
17522 Branch\SpecialChar menuseparator
17523 Insert New Branch...
17524 \family default
17525 ), e.
17526 \begin_inset space \thinspace{}
17527 \end_inset
17528
17529 g.
17530  called 
17531 \begin_inset Quotes eld
17532 \end_inset
17533
17534 Childonly
17535 \begin_inset Quotes erd
17536 \end_inset
17537
17538 .
17539  Within the children, activate the branch (
17540 \family sans
17541 Document\SpecialChar menuseparator
17542 Settings...\SpecialChar menuseparator
17543 Branches
17544 \family default
17545 ).
17546  Within the master, deactivate the branch (
17547 \family sans
17548 Document\SpecialChar menuseparator
17549 Settings...\SpecialChar menuseparator
17550 Branches
17551 \family default
17552 ).
17553  Now the child's bibliography will be ignored by the master, but considered
17554  by the child.
17555 \end_layout
17556
17557 \begin_layout Standard
17558 If you need multiple bibliographies (e.
17559 \begin_inset space \thinspace{}
17560 \end_inset
17561
17562 g., one per child in the 
17563 \emph on
17564 main document
17565 \emph default
17566 ), please refer to sec.
17567 \begin_inset space ~
17568 \end_inset
17569
17570
17571 \begin_inset CommandInset ref
17572 LatexCommand ref
17573 reference "subsec:Multiple-Bibliographies"
17574
17575 \end_inset
17576
17577 .
17578 \end_layout
17579
17580 \begin_layout Section
17581 \SpecialChar LyX
17582  Archives
17583 \end_layout
17584
17585 \begin_layout Standard
17586 Users sometimes need to be able to 
17587 \begin_inset Quotes eld
17588 \end_inset
17589
17590 bundle
17591 \begin_inset Quotes erd
17592 \end_inset
17593
17594  a \SpecialChar LyX
17595  file together with all the images (and other files) on which it depends,
17596  either for sending to a publisher or for sharing with a co-author.
17597  \SpecialChar LyX
17598  includes a Python script (
17599 \begin_inset Flex Code
17600 status collapsed
17601
17602 \begin_layout Plain Layout
17603 lyxpak.py
17604 \end_layout
17605
17606 \end_inset
17607
17608 ) that automates this process.
17609  To use it, you must have either the 
17610 \begin_inset Flex Code
17611 status collapsed
17612
17613 \begin_layout Plain Layout
17614 zipfile
17615 \end_layout
17616
17617 \end_inset
17618
17619  or 
17620 \begin_inset Flex Code
17621 status collapsed
17622
17623 \begin_layout Plain Layout
17624 tarfile
17625 \end_layout
17626
17627 \end_inset
17628
17629  python modules installed on your system.
17630  By default, the script prefers the 
17631 \begin_inset Flex Code
17632 status collapsed
17633
17634 \begin_layout Plain Layout
17635 gzip
17636 \end_layout
17637
17638 \end_inset
17639
17640 -compressed 
17641 \begin_inset Flex Code
17642 status collapsed
17643
17644 \begin_layout Plain Layout
17645 tar
17646 \end_layout
17647
17648 \end_inset
17649
17650  format on Unix-like systems and the 
17651 \begin_inset Flex Code
17652 status collapsed
17653
17654 \begin_layout Plain Layout
17655 zip
17656 \end_layout
17657
17658 \end_inset
17659
17660  format on Windows.
17661 \end_layout
17662
17663 \begin_layout Standard
17664 \SpecialChar LyX
17665 's configuration process will set the script up to export a `\SpecialChar LyX
17666  Archive',
17667  and this format will then be available under 
17668 \begin_inset Flex Code
17669 status collapsed
17670
17671 \begin_layout Plain Layout
17672 File\SpecialChar menuseparator
17673 Export
17674 \end_layout
17675
17676 \end_inset
17677
17678 .
17679 \end_layout
17680
17681 \begin_layout Standard
17682 Independently of the platform, the generation of a particular archive format
17683  can be forced by adding either the 
17684 \begin_inset Flex Code
17685 status collapsed
17686
17687 \begin_layout Plain Layout
17688 -t
17689 \end_layout
17690
17691 \end_inset
17692
17693  (for the 
17694 \begin_inset Flex Code
17695 status collapsed
17696
17697 \begin_layout Plain Layout
17698 tar
17699 \end_layout
17700
17701 \end_inset
17702
17703  format) or 
17704 \begin_inset Flex Code
17705 status collapsed
17706
17707 \begin_layout Plain Layout
17708 -z
17709 \end_layout
17710
17711 \end_inset
17712
17713  (for the 
17714 \begin_inset Flex Code
17715 status collapsed
17716
17717 \begin_layout Plain Layout
17718 zip
17719 \end_layout
17720
17721 \end_inset
17722
17723  format) switch to the 
17724 \begin_inset Flex Code
17725 status collapsed
17726
17727 \begin_layout Plain Layout
17728 \SpecialChar LyX
17729 \SpecialChar menuseparator
17730 \SpecialChar LyX
17731  Archive
17732 \end_layout
17733
17734 \end_inset
17735
17736  converter in 
17737 \begin_inset Flex Code
17738 status collapsed
17739
17740 \begin_layout Plain Layout
17741 Tools\SpecialChar menuseparator
17742 Preferences\SpecialChar menuseparator
17743 File Handling\SpecialChar menuseparator
17744 Converters
17745 \end_layout
17746
17747 \end_inset
17748
17749 .
17750  (Make sure you add the switch after the script name, not before it.)
17751 \end_layout
17752
17753 \begin_layout Section
17754 Fancy Headers and Footers
17755 \end_layout
17756
17757 \begin_layout Standard
17758 The default page layout is rather plain; for an 
17759 \begin_inset Flex Code
17760 status collapsed
17761
17762 \begin_layout Plain Layout
17763 article
17764 \end_layout
17765
17766 \end_inset
17767
17768  document class, all you get is a centered page number at the bottom of
17769  the page.
17770  This document uses KOMA-script's book class, so it appears to be a bit
17771  fancier.
17772  But to really put on a show, you need to set the document page style to
17773  
17774 \begin_inset Quotes eld
17775 \end_inset
17776
17777 fancy
17778 \begin_inset Quotes erd
17779 \end_inset
17780
17781 , as mentioned in the 
17782 \emph on
17783 User Guide
17784 \emph default
17785 .
17786  This section describes the \SpecialChar LaTeX
17787  code you need to insert in your \SpecialChar LaTeX
17788  preamble in
17789  order to get the desired effects.
17790 \end_layout
17791
17792 \begin_layout Standard
17793 For more information on fancy headers, see the 
17794 \begin_inset Flex Code
17795 status collapsed
17796
17797 \begin_layout Plain Layout
17798 fancyhdr
17799 \end_layout
17800
17801 \end_inset
17802
17803  package documentation.
17804  (
17805 \begin_inset Flex URL
17806 status collapsed
17807
17808 \begin_layout Plain Layout
17809
17810 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
17811 \end_layout
17812
17813 \end_inset
17814
17815 )
17816 \end_layout
17817
17818 \begin_layout Standard
17819 The page header is divided into three fields, not surprisingly labeled 
17820 \begin_inset Quotes eld
17821 \end_inset
17822
17823 left
17824 \begin_inset Quotes erd
17825 \end_inset
17826
17827
17828 \begin_inset Quotes eld
17829 \end_inset
17830
17831 center
17832 \begin_inset Quotes erd
17833 \end_inset
17834
17835 , and 
17836 \begin_inset Quotes eld
17837 \end_inset
17838
17839 right
17840 \begin_inset Quotes erd
17841 \end_inset
17842
17843 .
17844  The footer is also divided into these three fields.
17845  The \SpecialChar LaTeX
17846  commands to set these fields in the simplest manner are 
17847 \begin_inset Flex Code
17848 status collapsed
17849
17850 \begin_layout Plain Layout
17851
17852 \backslash
17853 lhead
17854 \end_layout
17855
17856 \end_inset
17857
17858
17859 \begin_inset Flex Code
17860 status collapsed
17861
17862 \begin_layout Plain Layout
17863
17864 \backslash
17865 chead
17866 \end_layout
17867
17868 \end_inset
17869
17870
17871 \begin_inset Flex Code
17872 status collapsed
17873
17874 \begin_layout Plain Layout
17875
17876 \backslash
17877 rhead
17878 \end_layout
17879
17880 \end_inset
17881
17882
17883 \begin_inset Flex Code
17884 status collapsed
17885
17886 \begin_layout Plain Layout
17887
17888 \backslash
17889 lfoot
17890 \end_layout
17891
17892 \end_inset
17893
17894 , etc.
17895  Suppose you wish to put your name in the upper left hand corner of each
17896  page.
17897  Simply insert the following command in the preamble: 
17898 \end_layout
17899
17900 \begin_layout Standard
17901
17902 \family typewriter
17903
17904 \backslash
17905 lhead{John Q.
17906  DocWriter}
17907 \end_layout
17908
17909 \begin_layout Standard
17910 You will now see your name in the upper left.
17911  If a field has a default entry that you would like to get rid of (often
17912  the page number appears in the central footer) simply include a command
17913  with a blank argument, e.
17914 \begin_inset space \thinspace{}
17915 \end_inset
17916
17917 g.:
17918 \end_layout
17919
17920 \begin_layout Standard
17921
17922 \family typewriter
17923
17924 \backslash
17925 cfoot{}
17926 \end_layout
17927
17928 \begin_layout Standard
17929 Let's get really fancy: lets put the section number with the word 
17930 \begin_inset Quotes eld
17931 \end_inset
17932
17933 Section
17934 \begin_inset Quotes erd
17935 \end_inset
17936
17937  (e.
17938 \begin_inset space \thinspace{}
17939 \end_inset
17940
17941 g.
17942 \begin_inset space \space{}
17943 \end_inset
17944
17945 Section 3) in the upper left, the page number (e.
17946 \begin_inset space \thinspace{}
17947 \end_inset
17948
17949 g.
17950 \begin_inset space \space{}
17951 \end_inset
17952
17953 Page 4) in the upper right, your name in the lower left, and the date in
17954  the lower right.
17955  The following commands should now appear in the preamble:
17956 \end_layout
17957
17958 \begin_layout Standard
17959
17960 \family typewriter
17961
17962 \backslash
17963 lhead{Section 
17964 \backslash
17965 thesection}
17966 \end_layout
17967
17968 \begin_layout Standard
17969
17970 \family typewriter
17971
17972 \backslash
17973 chead{}
17974 \end_layout
17975
17976 \begin_layout Standard
17977
17978 \family typewriter
17979
17980 \backslash
17981 rhead{Page 
17982 \backslash
17983 thepage}
17984 \end_layout
17985
17986 \begin_layout Standard
17987
17988 \family typewriter
17989
17990 \backslash
17991 lfoot{John Q.
17992  DocWriter}
17993 \end_layout
17994
17995 \begin_layout Standard
17996
17997 \family typewriter
17998
17999 \backslash
18000 cfoot{}
18001 \end_layout
18002
18003 \begin_layout Standard
18004
18005 \family typewriter
18006
18007 \backslash
18008 rfoot{
18009 \backslash
18010 today}
18011 \end_layout
18012
18013 \begin_layout Standard
18014 The commands 
18015 \begin_inset Flex Code
18016 status collapsed
18017
18018 \begin_layout Plain Layout
18019
18020 \backslash
18021 thesection
18022 \end_layout
18023
18024 \end_inset
18025
18026  and 
18027 \begin_inset Flex Code
18028 status collapsed
18029
18030 \begin_layout Plain Layout
18031
18032 \backslash
18033 thepage
18034 \end_layout
18035
18036 \end_inset
18037
18038  access \SpecialChar LaTeX
18039 's section and page counters, and so print out the current section
18040  and page number.
18041  
18042 \begin_inset Flex Code
18043 status collapsed
18044
18045 \begin_layout Plain Layout
18046
18047 \backslash
18048 today
18049 \end_layout
18050
18051 \end_inset
18052
18053  simply prints out today's date.
18054 \end_layout
18055
18056 \begin_layout Standard
18057 The thicknesses of the horizontal rules drawn beneath the header and above
18058  the footer can also be modified.
18059  If you don't want one of the rules, set its thickness to 0.
18060  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
18061  Use commands
18062 \family typewriter
18063  
18064 \family default
18065 like 
18066 \begin_inset Flex Code
18067 status collapsed
18068
18069 \begin_layout Plain Layout
18070
18071 \backslash
18072 renewcommand{
18073 \backslash
18074 headrulewidth}{0.4pt}
18075 \end_layout
18076
18077 \end_inset
18078
18079  and 
18080 \begin_inset Flex Code
18081 status collapsed
18082
18083 \begin_layout Plain Layout
18084
18085 \backslash
18086 renewcommand{
18087 \backslash
18088 footrulewidth}{0.4pt}
18089 \end_layout
18090
18091 \end_inset
18092
18093  to set the thicknesses.
18094 \end_layout
18095
18096 \begin_layout Standard
18097 You can switch the header/footer settings on and off for individual pages
18098  using commands like 
18099 \begin_inset Flex Code
18100 status collapsed
18101
18102 \begin_layout Plain Layout
18103
18104 \backslash
18105 thispagestyle{empty}
18106 \end_layout
18107
18108 \end_inset
18109
18110
18111 \begin_inset Flex Code
18112 status collapsed
18113
18114 \begin_layout Plain Layout
18115
18116 \backslash
18117 thispagestyle{plain}
18118 \end_layout
18119
18120 \end_inset
18121
18122 , and 
18123 \begin_inset Flex Code
18124 status collapsed
18125
18126 \begin_layout Plain Layout
18127
18128 \backslash
18129 thispagestyle{fancy}
18130 \end_layout
18131
18132 \end_inset
18133
18134 .
18135  Simply insert them in the text on the page you want changed and mark them
18136  as \SpecialChar TeX
18137  code.
18138  In fact, title pages are marked as plain by default, while following pages
18139  are marked fancy when using the global fancy setting.
18140 \end_layout
18141
18142 \begin_layout Standard
18143 As a final example, it is possible to include an image in the header or
18144  footer.
18145  Suppose you want to put a company logo in the upper lefthand corner.
18146  You might try something like
18147 \end_layout
18148
18149 \begin_layout Standard
18150
18151 \family typewriter
18152
18153 \backslash
18154 lhead{
18155 \backslash
18156 resizebox{1in}{!}{
18157 \backslash
18158 includegraphics{logo.eps}}}
18159 \end_layout
18160
18161 \begin_layout Standard
18162 \noindent
18163 (you may need to preface this with 
18164 \begin_inset Flex Code
18165 status collapsed
18166
18167 \begin_layout Plain Layout
18168
18169 \backslash
18170 usepackage{graphics}
18171 \end_layout
18172
18173 \end_inset
18174
18175  if you don't include graphics elsewhere in your document).
18176 \end_layout
18177
18178 \begin_layout Chapter
18179 \SpecialChar LyX
18180  and the World Wide Web
18181 \end_layout
18182
18183 \begin_layout Standard
18184 \SpecialChar LyX
18185  has long supported the export of documents to various web-friendly formats,
18186  such as HTML.
18187  Before version 2.0, however, HTML export was always accomplished by the
18188  use of external converters.
18189 \begin_inset Foot
18190 status collapsed
18191
18192 \begin_layout Plain Layout
18193 For details on the use of external converters with \SpecialChar LyX
18194 , see the 
18195 \emph on
18196 Converters
18197 \emph default
18198  section of the Customization manual.
18199 \end_layout
18200
18201 \end_inset
18202
18203  These fall into two large groups: there are converters that use \SpecialChar LaTeX
18204  as an
18205  intermediate format, such as 
18206 \begin_inset Flex Code
18207 status collapsed
18208
18209 \begin_layout Plain Layout
18210 htlatex
18211 \end_layout
18212
18213 \end_inset
18214
18215
18216 \begin_inset Flex Code
18217 status collapsed
18218
18219 \begin_layout Plain Layout
18220 html2latex
18221 \end_layout
18222
18223 \end_inset
18224
18225 , and 
18226 \begin_inset Flex Code
18227 status collapsed
18228
18229 \begin_layout Plain Layout
18230 plastex
18231 \end_layout
18232
18233 \end_inset
18234
18235 , relying upon \SpecialChar LyX
18236  to produce the \SpecialChar LaTeX
18237 ; and there is a converter that works directly
18238  on \SpecialChar LyX
18239  files, 
18240 \begin_inset Flex Code
18241 status collapsed
18242
18243 \begin_layout Plain Layout
18244 e\SpecialChar LyX
18245 er
18246 \end_layout
18247
18248 \end_inset
18249
18250 .
18251  All of these have different advantages and disadvantages.
18252  
18253 \end_layout
18254
18255 \begin_layout Standard
18256 The \SpecialChar LaTeX
18257 -based converters have the advantage that, in principle, they know everythin
18258 g about the exported document that \SpecialChar LaTeX
18259  does.
18260  Such converters do not care, for example, if a certain block of code was
18261  produced by \SpecialChar LyX
18262  or was Evil Red Text.
18263  These converters know about 
18264 \begin_inset Flex Code
18265 status collapsed
18266
18267 \begin_layout Plain Layout
18268 aux
18269 \end_layout
18270
18271 \end_inset
18272
18273  files, counters, and references, and can often make use of the 
18274 \begin_inset Flex Code
18275 status collapsed
18276
18277 \begin_layout Plain Layout
18278 bbl
18279 \end_layout
18280
18281 \end_inset
18282
18283  files generated by Bib\SpecialChar TeX
18284 .
18285  On the other hand, \SpecialChar LaTeX
18286  is a very hard language to parse—it is sometimes said
18287  that only \SpecialChar TeX
18288  itself understands \SpecialChar TeX
18289 —and \SpecialChar LaTeX
18290 -based converters will often choke on
18291  what seem to be quite simple constructs; complex ones can throw them completely
18292 , and as of this writing, for example, the 
18293 \emph on
18294 Embedded Objects
18295 \emph default
18296  manual will not export with 
18297 \begin_inset Flex Code
18298 status collapsed
18299
18300 \begin_layout Plain Layout
18301 htlatex
18302 \end_layout
18303
18304 \end_inset
18305
18306 , though the others will.
18307  The other issue concerns how math is handled.
18308  These converters typically convert the formulae into little pictures that
18309  are then linked from the HTML document.
18310  Since these are actually generated by \SpecialChar LaTeX
18311 , they are accurate.
18312  But they do not scale well, and just getting them to look as if they are
18313  actually meant to be in your document—so that the font sizes seem to be
18314  roughly the same—can be a challenge.
18315 \end_layout
18316
18317 \begin_layout Standard
18318 Alex Fernandez's 
18319 \begin_inset Flex Code
18320 status collapsed
18321
18322 \begin_layout Plain Layout
18323 e\SpecialChar LyX
18324 er
18325 \end_layout
18326
18327 \end_inset
18328
18329  (
18330 \begin_inset CommandInset href
18331 LatexCommand href
18332 name "http://pinchito.es/elyxer/"
18333 target "http://pinchito.es/elyxer/"
18334 literal "false"
18335
18336 \end_inset
18337
18338 ) solves some of these problems.
18339  In particular, the formulae it produces scale perfectly, since it renders
18340  math using a combination of HTML and CSS rather than converting the formulae
18341  to images.
18342  But even moderately complex formula are rendered less well than with 
18343 \begin_inset Flex Code
18344 status collapsed
18345
18346 \begin_layout Plain Layout
18347 htlatex
18348 \end_layout
18349
18350 \end_inset
18351
18352 ; this reflects the limitations of HTML.
18353 \begin_inset Foot
18354 status collapsed
18355
18356 \begin_layout Plain Layout
18357 That said, 
18358 \begin_inset Flex Code
18359 status collapsed
18360
18361 \begin_layout Plain Layout
18362 e\SpecialChar LyX
18363 er
18364 \end_layout
18365
18366 \end_inset
18367
18368  can also use jsMath and MathJax for equations, but this setting is only
18369  available globally and requires one to have access to a server that runs
18370  the backend.
18371 \end_layout
18372
18373 \end_inset
18374
18375  More importantly (as of version 1.1.1, at least), 
18376 \begin_inset Flex Code
18377 status collapsed
18378
18379 \begin_layout Plain Layout
18380 e\SpecialChar LyX
18381 er
18382 \end_layout
18383
18384 \end_inset
18385
18386  has limited support for math macros and no support for user-defined paragraph
18387  or character styles.
18388  These limitations make 
18389 \begin_inset Flex Code
18390 status collapsed
18391
18392 \begin_layout Plain Layout
18393 e\SpecialChar LyX
18394 er
18395 \end_layout
18396
18397 \end_inset
18398
18399  unsuitable for many of the documents \SpecialChar LyX
18400  users produce.
18401  In principle, of course, these problems could be solved, but the \SpecialChar LyX
18402  developers
18403  have decided to follow a different path and have made \SpecialChar LyX
18404  itself capable of
18405  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
18406 , DocBook, and plaintext.
18407 \end_layout
18408
18409 \begin_layout Standard
18410 As of this writing, XHTML output remains under development and should probably
18411  be regarded as 
18412 \begin_inset Quotes eld
18413 \end_inset
18414
18415 experimental
18416 \begin_inset Quotes erd
18417 \end_inset
18418
18419 .
18420 \begin_inset Foot
18421 status collapsed
18422
18423 \begin_layout Plain Layout
18424 The file 
18425 \begin_inset Flex Code
18426 status collapsed
18427
18428 \begin_layout Plain Layout
18429 development/HTML/HTML.notes
18430 \end_layout
18431
18432 \end_inset
18433
18434 , which can be found in the \SpecialChar LyX
18435  source tree or 
18436 \begin_inset CommandInset href
18437 LatexCommand href
18438 name "accessed online"
18439 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
18440 literal "false"
18441
18442 \end_inset
18443
18444 , usually contains up-to-date information about the state of XHTML output.
18445  See also the list of XHTML bugs on 
18446 \begin_inset CommandInset href
18447 LatexCommand href
18448 name "the bug tracker"
18449 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"
18450 literal "false"
18451
18452 \end_inset
18453
18454 .
18455 \end_layout
18456
18457 \end_inset
18458
18459  Still, the developers have chosen this approach because it has several
18460  potential advantages over the other two.
18461 \end_layout
18462
18463 \begin_layout Standard
18464 These advantages are primarily due to the fact that the XHTML output routines,
18465  since they are part of \SpecialChar LyX
18466 , know everything \SpecialChar LyX
18467  knows about the document being
18468  exported.
18469 \begin_inset Foot
18470 status collapsed
18471
18472 \begin_layout Plain Layout
18473 Another advantage is that, since these routines are internal to \SpecialChar LyX
18474 , they are
18475  immune to changes in \SpecialChar LyX
18476 's file format, or to changes in the semantics of
18477  existing insets.
18478 \end_layout
18479
18480 \end_inset
18481
18482  So they know about the table of contents (as displayed in the outline),
18483  about the counters associated with different paragraph styles, and about
18484  user-defined styles.
18485  The XHTML output routines know what \SpecialChar LyX
18486  knows about internationalization,
18487  too, so they will output 
18488 \begin_inset Quotes eld
18489 \end_inset
18490
18491 Chapter 1
18492 \begin_inset Quotes erd
18493 \end_inset
18494
18495  or 
18496 \begin_inset Quotes eld
18497 \end_inset
18498
18499
18500 \lang ngerman
18501 Kapitel
18502 \lang english
18503  1
18504 \begin_inset Quotes erd
18505 \end_inset
18506
18507 , depending upon the language in effect at the time.
18508  
18509 \end_layout
18510
18511 \begin_layout Standard
18512 Quite generally, the output routines know what \SpecialChar LyX
18513  knows about document layout,
18514  that is, about how the document is to be rendered on screen.
18515  We use this information when we output the document as XHTML.
18516  In particular, \SpecialChar LyX
18517  
18518 \emph on
18519 automatically
18520 \emph default
18521  generates CSS style information corresponding to the layout information
18522  it uses to render the document on screen: if section headings are supposed
18523  to be sans-serif and bold as seen in \SpecialChar LyX
18524 , then (by default) they will be sans-seri
18525 f and bold when viewed in a web browser, too.
18526  And this is true not just for pre-defined styles, like Section, but for
18527  any style, including user-defined styles.
18528  Indeed, the XHTML output routines make no distinction between user-defined
18529  paragraph and 
18530 \change_deleted 244031559 1603876931
18531 character
18532 \change_inserted 244031559 1603876940
18533 text
18534 \change_unchanged
18535  styles and \SpecialChar LyX
18536 's own pre-defined styles: in each case, everything \SpecialChar LyX
18537  knows about
18538  the styles is contained in the layout files.
18539  And much the same is true as regards pre-defined textual insets, such as
18540  footnotes, and various custom insets.
18541  
18542 \end_layout
18543
18544 \begin_layout Standard
18545 The result is that XHTML output can be customized and extended in exactly
18546  the same way \SpecialChar LaTeX
18547  output can be customized and extended: through layout files
18548  and modules.
18549  See chapter five of the 
18550 \emph on
18551 Customization 
18552 \emph default
18553 manual for the details.
18554 \end_layout
18555
18556 \begin_layout Standard
18557 The remainder of this chapter contains more detailed information on XHTML
18558  output, its limitations, and ways to work around those limitations.
18559 \end_layout
18560
18561 \begin_layout Section
18562 Math Output in XHTML
18563 \end_layout
18564
18565 \begin_layout Standard
18566 \SpecialChar LyX
18567  offers four choices for how math is rendered.
18568  These have various advantages and disadvantages:
18569 \end_layout
18570
18571 \begin_layout Itemize
18572 MathML
18573 \begin_inset Newline newline
18574 \end_inset
18575
18576 MathML is a dialect of XML designed specifically for mathematics on the
18577  web, and it typically renders very well in browsers that support it.
18578  The disadvantage is that not all browsers support MathML, and support is
18579  not complete even in the Gecko-based browsers, such as Firefox.
18580 \begin_inset Newline newline
18581 \end_inset
18582
18583 If \SpecialChar LyX
18584  is unable to render a formula as MathML—for example, if the formula
18585  uses the 
18586 \begin_inset Flex Code
18587 status collapsed
18588
18589 \begin_layout Plain Layout
18590 xymatrix
18591 \end_layout
18592
18593 \end_inset
18594
18595  package or ERT—then it will instead output the formula as an image.
18596  
18597 \end_layout
18598
18599 \begin_layout Itemize
18600 HTML
18601 \begin_inset Newline newline
18602 \end_inset
18603
18604 As mentioned above, 
18605 \begin_inset Flex Code
18606 status collapsed
18607
18608 \begin_layout Plain Layout
18609 elyxer
18610 \end_layout
18611
18612 \end_inset
18613
18614  outputs math as HTML, styled by CSS.
18615 \begin_inset Foot
18616 status collapsed
18617
18618 \begin_layout Plain Layout
18619 \SpecialChar LyX
18620  has borrowed some of the CSS for its HTML output from 
18621 \begin_inset Flex Code
18622 status collapsed
18623
18624 \begin_layout Plain Layout
18625 elyxer
18626 \end_layout
18627
18628 \end_inset
18629
18630 .
18631 \end_layout
18632
18633 \end_inset
18634
18635  For simple formulae, this can work quite well, though with more complicated
18636  formulae it tends to break down.
18637  Still, this method has the advantage that it is very widely supported and
18638  so it may be appropriate for documents that contain only a little, fairly
18639  simple math.
18640 \begin_inset Newline newline
18641 \end_inset
18642
18643 If Lyx is unable to render a formula as HTML—for example, if the formula
18644  uses the 
18645 \begin_inset Flex Code
18646 status collapsed
18647
18648 \begin_layout Plain Layout
18649 xymatrix
18650 \end_layout
18651
18652 \end_inset
18653
18654  package or ERT—then it will instead output the formula as an image.
18655  
18656 \end_layout
18657
18658 \begin_layout Itemize
18659 Images
18660 \begin_inset Newline newline
18661 \end_inset
18662
18663 Like 
18664 \begin_inset Flex Code
18665 status collapsed
18666
18667 \begin_layout Plain Layout
18668 htlatex
18669 \end_layout
18670
18671 \end_inset
18672
18673 , \SpecialChar LyX
18674  will output formulae as images, the very same images, in fact, that are
18675  used for instant preview.
18676 \begin_inset Foot
18677 status collapsed
18678
18679 \begin_layout Plain Layout
18680 Instant preview does 
18681 \emph on
18682 not 
18683 \emph default
18684 have to be on for images to be output, however.
18685 \end_layout
18686
18687 \end_inset
18688
18689  The advantage to this method is that the images are simply generated by
18690  \SpecialChar LaTeX
18691 , so they are very accurate.
18692  The disadvantage, as mentioned earlier, is that these are bitmapped images,
18693  so they do not scale terribly well, and one cannot copy them, etc.
18694 \begin_inset Newline newline
18695 \end_inset
18696
18697 The size of the images can be controlled by setting the 
18698 \begin_inset Quotes eld
18699 \end_inset
18700
18701 Math Images Scaling
18702 \begin_inset Quotes erd
18703 \end_inset
18704
18705  parameter under 
18706 \begin_inset Flex Noun
18707 status collapsed
18708
18709 \begin_layout Plain Layout
18710 Document\SpecialChar menuseparator
18711 Settings\SpecialChar menuseparator
18712 Formats
18713 \end_layout
18714
18715 \end_inset
18716
18717 .
18718 \begin_inset Foot
18719 status collapsed
18720
18721 \begin_layout Plain Layout
18722 For those who want to know, this controls the resolution of the image in
18723  dots per inch and is based upon a default of 75 dpi.
18724 \end_layout
18725
18726 \end_inset
18727
18728
18729 \begin_inset Newline newline
18730 \end_inset
18731
18732 If \SpecialChar LyX
18733  for some reason fails to create an image for a formula (e.g., if a required
18734  \SpecialChar LaTeX
18735  package is not installed), then it will fall back to outputing the raw
18736  \SpecialChar LaTeX
18737 .
18738 \end_layout
18739
18740 \begin_layout Itemize
18741 \SpecialChar LaTeX
18742
18743 \begin_inset Newline newline
18744 \end_inset
18745
18746 Finally, \SpecialChar LyX
18747  will happily output math as \SpecialChar LaTeX
18748 .
18749  As well as being the output of last resort, this method can be used with
18750  such tools as 
18751 \begin_inset CommandInset href
18752 LatexCommand href
18753 name "jsMath"
18754 target "http://www.math.union.edu/~dpvc/jsMath/"
18755 literal "false"
18756
18757 \end_inset
18758
18759 , which uses JavaScript to render \SpecialChar LaTeX
18760  embedded in HTML documents.
18761  \SpecialChar LyX
18762  wraps the \SpecialChar LaTeX
18763  in either a 
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768 span
18769 \end_layout
18770
18771 \end_inset
18772
18773  (for inline formulas) or 
18774 \begin_inset Flex Code
18775 status collapsed
18776
18777 \begin_layout Plain Layout
18778 div
18779 \end_layout
18780
18781 \end_inset
18782
18783  (for displayed formulas) with 
18784 \begin_inset Flex Code
18785 status collapsed
18786
18787 \begin_layout Plain Layout
18788 class='math'
18789 \end_layout
18790
18791 \end_inset
18792
18793 , as is required for jsMath.
18794 \end_layout
18795
18796 \begin_layout Standard
18797 One of these output methods must be selected under 
18798 \begin_inset Flex Noun
18799 status collapsed
18800
18801 \begin_layout Plain Layout
18802 Document\SpecialChar menuseparator
18803 Settings\SpecialChar menuseparator
18804 Formats
18805 \end_layout
18806
18807 \end_inset
18808
18809 .
18810  By default, \SpecialChar LyX
18811  outputs MathML.
18812  This is a document-wide setting, therefore.
18813 \end_layout
18814
18815 \begin_layout Standard
18816 Eventually, \SpecialChar LyX
18817  will offer the user the option to select an alternate output
18818  method for a particular inset, say, one that isn't being rendered very
18819  well by MathML.
18820 \begin_inset Foot
18821 status collapsed
18822
18823 \begin_layout Plain Layout
18824 That said, since \SpecialChar LyX
18825  falls back to images if the inset contains ERT, then one
18826  can force output as an image by putting some harmless ERT into the math,
18827  for example: 
18828 \begin_inset Formula $a=b\relax$
18829 \end_inset
18830
18831 .
18832 \end_layout
18833
18834 \end_inset
18835
18836
18837 \end_layout
18838
18839 \begin_layout Section
18840 Bibliography and Citations
18841 \end_layout
18842
18843 \begin_layout Standard
18844 XHTML output fully supports bibliographies and citations.
18845  
18846 \end_layout
18847
18848 \begin_layout Standard
18849 Citation labels are generated by the same machinery that generates \SpecialChar LyX
18850 's on-screen
18851  labels, so the labels will look in the output much as they do in \SpecialChar LyX
18852 , though
18853  better.
18854  If you are using numerical citations, then \SpecialChar LyX
18855  will output numerical labels,
18856  such as [1] or [17], rather than simply showing the citation key in square
18857  brackets, as it does on-screen.
18858  If you are using author-year citations, then \SpecialChar LyX
18859  will add lowercase letters
18860  to the years, just as Bib\SpecialChar TeX
18861  does, if it finds more than one citation for
18862  a given author-year combination.
18863  The labels will be printed with the bibliography entries.
18864  Note that there is, at present, no way to customize the appearance of the
18865  labels, for example, to choose between square brackets and parentheses.
18866 \end_layout
18867
18868 \begin_layout Standard
18869 Bibliography output is handled by the same machinery that handles the presentati
18870 on of reference information in the citation dialog, so you will see in the
18871  XHTML output pretty much what you would see if you were to look at a given
18872  entry in the citation dialog.
18873  The formatting can be customized in your layout file or, preferably, in
18874  a module.
18875  See the 
18876 \emph on
18877 Customization
18878 \emph default
18879  manual for the details.
18880 \end_layout
18881
18882 \begin_layout Standard
18883 The main defect at present is that cross-referenced information is printed
18884  with every entry with which it is associated.
18885  So you can see things like this:
18886 \end_layout
18887
18888 \begin_layout Quote
18889 Jason Stanley, 
18890 \begin_inset Quotes eld
18891 \end_inset
18892
18893 Context and Logical Form
18894 \begin_inset Quotes erd
18895 \end_inset
18896
18897 , in 
18898 \emph on
18899 Language in Context: Selected Essays
18900 \emph default
18901  (Oxford: Oxford University Press, 2007), pp.
18902  30–68.
18903 \end_layout
18904
18905 \begin_layout Quote
18906 Jason Stanley, 
18907 \begin_inset Quotes eld
18908 \end_inset
18909
18910 Semantics in Context
18911 \begin_inset Quotes erd
18912 \end_inset
18913
18914 , in 
18915 \emph on
18916 Language in Context: Selected Essays
18917 \emph default
18918  (Oxford: Oxford University Press, 2007), pp.
18919  201–30.
18920 \end_layout
18921
18922 \begin_layout Standard
18923 This should be fixed before long.
18924 \end_layout
18925
18926 \begin_layout Standard
18927 There is no support at present for sectioned bibliographies.
18928  If you have multiple bibliographies, then \SpecialChar LyX
18929  will print the same bibliography
18930  over and over.
18931 \end_layout
18932
18933 \begin_layout Section
18934 Indexes
18935 \end_layout
18936
18937 \begin_layout Standard
18938 \SpecialChar LyX
18939  will happily export indexes as XHTML, but with certain limitations at the
18940  moment.
18941 \end_layout
18942
18943 \begin_layout Standard
18944 Index export will be most reliable when you do not attempt to use the fancy
18945  constructs that are described in the section on indexes in the 
18946 \emph on
18947 User's Guide
18948 \emph default
18949 .
18950 \begin_inset Foot
18951 status collapsed
18952
18953 \begin_layout Plain Layout
18954 The main issue here is that \SpecialChar LyX
18955  itself does not really handle these.
18956  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
18957 .
18958 \end_layout
18959
18960 \end_inset
18961
18962  We'll describe how they are handled using the subsection headings from
18963  that section.
18964 \end_layout
18965
18966 \begin_layout Itemize
18967 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
18968  makes an effort to support these,
18969  but the entries must be separated by 
18970 \begin_inset Quotes eld
18971 \end_inset
18972
18973  ! 
18974 \begin_inset Quotes erd
18975 \end_inset
18976
18977 , that is, there must be spaces around the exclamation point.
18978  This is because it is otherwise too difficult to check for escaped exclamation
18979  points, ones in math, and so forth.
18980 \end_layout
18981
18982 \begin_layout Itemize
18983 Page Ranges: There is no support at all for page ranges, since these make
18984  no sense with XHMTL.
18985  Instead, you will just get two index entries, one at either end.
18986 \end_layout
18987
18988 \begin_layout Itemize
18989 Cross-referencing: There is no support for cross-referencing.
18990  If \SpecialChar LyX
18991  finds an entry containing the 
18992 \begin_inset Quotes eld
18993 \end_inset
18994
18995 |see\SpecialChar ldots
18996
18997 \begin_inset Quotes erd
18998 \end_inset
18999
19000  construct, it is just dropped, and the rest is treated as an ordinary index
19001  entry.
19002 \end_layout
19003
19004 \begin_layout Itemize
19005 Index Entry Order: \SpecialChar LyX
19006  does support attempts to fix the sorting order.
19007  It will take what is before the first `@' it finds and use that for sorting,
19008  taking what follows the first `@' to be the actual entry.
19009  At present, \SpecialChar LyX
19010  does not check for escaped `@', so do not try to index email
19011  addresses.
19012 \end_layout
19013
19014 \begin_layout Itemize
19015 Index Entry Layout: You can format entries by using the text style dialog,
19016  or by using any other method available within \SpecialChar LyX
19017  itself.
19018  There is no support for constructs like: 
19019 \begin_inset Quotes eld
19020 \end_inset
19021
19022 entry|textbf
19023 \begin_inset Quotes erd
19024 \end_inset
19025
19026 .
19027  Indeed, if \SpecialChar LyX
19028  finds a pipe symbol, `|', in an entry, it will delete it and
19029  everything that follows it.
19030 \end_layout
19031
19032 \begin_layout Itemize
19033 Multiple Indexes: There is no support for multiple indexes.
19034  Rather, all index entries will be printed as one large index.
19035  To avoid our printing several versions of the index, we print only the
19036  main index, so make sure you have one.
19037 \end_layout
19038
19039 \begin_layout Section
19040 Nomenclature and Glossary
19041 \end_layout
19042
19043 \begin_layout Standard
19044 There is at present no support for glossaries.
19045  Adding it would be fairly trivial, and welcome.
19046 \end_layout
19047
19048 \begin_layout Chapter
19049
19050 \change_inserted 1075283030 1616534180
19051 DocBook Output
19052 \end_layout
19053
19054 \begin_layout Standard
19055
19056 \change_inserted 1075283030 1616534386
19057 Apart from HTML, \SpecialChar LyX
19058  can generate documents in the DocBook XML vocabulary.
19059  With versions 2.3 and before, only select templates could be used to generate
19060  DocBook documents (only version 4).
19061  Starting with \SpecialChar LyX
19062  2.4, most \SpecialChar LyX
19063  layouts can generate valid DocBook documents (only
19064  version 5).
19065  This feature is built into \SpecialChar LyX
19066  and does not require the use of external tools.
19067 \end_layout
19068
19069 \begin_layout Standard
19070
19071 \change_inserted 1075283030 1616534437
19072 The result is that the DocBook output can be customized and extended in
19073  exactly the same way \SpecialChar LaTeX
19074  output can be customized and extended: through layout
19075  files and modules.
19076  See chapter five of the 
19077 \emph on
19078 Customization 
19079 \emph default
19080 manual for the details.
19081 \end_layout
19082
19083 \begin_layout Standard
19084
19085 \change_inserted 1075283030 1616534475
19086 Most \SpecialChar LyX
19087  features are supported with DocBook, like math output.
19088 \end_layout
19089
19090 \begin_layout Itemize
19091
19092 \change_inserted 1075283030 1616534741
19093 Math output is performed mostly in MathML (the major exception being constructio
19094 ns not supported by \SpecialChar LyX
19095 , i.e.
19096  ERTs).
19097  All formulae are also available in raw \SpecialChar TeX
19098  in the DocBook output for further
19099  processing.
19100 \end_layout
19101
19102 \begin_layout Itemize
19103
19104 \change_inserted 1075283030 1616534852
19105 Bibliographies and citations are implemented, including with an external
19106  BibTeX file.
19107  Bibliography entries are not prerendered when the detailed information
19108  are available, but rather output with the standard DocBook constructs.
19109  The external DocBook processor is expected to handle the rendering of entries.
19110 \end_layout
19111
19112 \begin_layout Itemize
19113
19114 \change_inserted 1075283030 1616534863
19115 Indexes are supported, including multiple indices.
19116  Grouping (with 
19117 \family typewriter
19118 !
19119 \family default
19120 ), page ranges, and cross-references (
19121 \family typewriter
19122 |see
19123 \family default
19124 ) are supported, with the exception of the same symbols escaped.
19125  Entry order (
19126 \family typewriter
19127 @
19128 \family default
19129 ) and layout (
19130 \family typewriter
19131 |mathbf
19132 \family default
19133 ) are not supported.
19134  There is no support for escaping of index entries.
19135 \end_layout
19136
19137 \begin_layout Itemize
19138
19139 \change_inserted 1075283030 1616534884
19140 Glossaries are implemented.
19141 \end_layout
19142
19143 \begin_layout Standard
19144
19145 \change_inserted 1075283030 1616534894
19146 Two major parameters can be set at the document level.
19147 \end_layout
19148
19149 \begin_layout Itemize
19150
19151 \change_inserted 1075283030 1616534948
19152 Format for tables: \SpecialChar LyX
19153  can generate tables either as HTML (default value) or
19154  CALS, depending on the user's requirements.
19155  Most DocBook processors accept both formats.
19156 \end_layout
19157
19158 \begin_layout Itemize
19159
19160 \change_inserted 1075283030 1616535006
19161 MathML prefix: in DocBook, MathML is included within its own name space,
19162  unlike HTML.
19163  The implication is that there must be an indication of the tags belonging
19164  to the MathML standard.
19165  Three choices are offered: 
19166 \end_layout
19167
19168 \begin_deeper
19169 \begin_layout Itemize
19170
19171 \change_inserted 1075283030 1616535044
19172 Inline: the MathML name space is defined for each formula (using the 
19173 \family typewriter
19174 xmlns
19175 \family default
19176  attribute on each formula)
19177 \end_layout
19178
19179 \begin_layout Itemize
19180
19181 \change_inserted 1075283030 1616535090
19182 With the 
19183 \family typewriter
19184 m
19185 \family default
19186  prefix (default): the MathML name space is defined at the document level
19187  (using the 
19188 \family typewriter
19189 xmlns:m
19190 \family default
19191  attribute on the root element).
19192  Each MathML is prefixed with 
19193 \family typewriter
19194 m
19195 \family default
19196 : for instance, 
19197 \family typewriter
19198 m:math
19199 \end_layout
19200
19201 \begin_layout Itemize
19202
19203 \change_inserted 1075283030 1616620405
19204 With the 
19205 \family typewriter
19206 mml
19207 \family default
19208  prefix: similar to the 
19209 \family typewriter
19210 m
19211 \family default
19212  option, but with 
19213 \family typewriter
19214 mml
19215 \end_layout
19216
19217 \begin_layout Standard
19218
19219 \change_inserted 1075283030 1616620470
19220 This option is especially useful if you want \SpecialChar LyX
19221  to match your personal style
19222  or to work with buggy software that only accepts one prefix for MathML.
19223 \change_unchanged
19224
19225 \end_layout
19226
19227 \end_deeper
19228 \begin_layout Chapter
19229 The \SpecialChar LyX
19230  Server
19231 \end_layout
19232
19233 \begin_layout Section
19234 Introduction
19235 \end_layout
19236
19237 \begin_layout Standard
19238 The `\SpecialChar LyX
19239  server' allows other programs to talk to \SpecialChar LyX
19240 , invoke \SpecialChar LyX
19241  commands, and retrieve
19242  information about the \SpecialChar LyX
19243  internal state.
19244  This is only intended for advanced users, but they should find it useful.
19245  It is by writing to the \SpecialChar LyX
19246  server, for example, that bibliography managers,
19247  such as JabRef, are able to 
19248 \begin_inset Quotes eld
19249 \end_inset
19250
19251 push
19252 \begin_inset Quotes erd
19253 \end_inset
19254
19255  citations to \SpecialChar LyX
19256 .
19257 \end_layout
19258
19259 \begin_layout Section
19260 Starting the \SpecialChar LyX
19261  Server
19262 \begin_inset CommandInset label
19263 LatexCommand label
19264 name "sec:Starting-the-Server"
19265
19266 \end_inset
19267
19268
19269 \end_layout
19270
19271 \begin_layout Standard
19272 The \SpecialChar LyX
19273  server works through the use of a pair of named pipes.
19274  These are usually located in 
19275 \begin_inset Flex Code
19276 status collapsed
19277
19278 \begin_layout Plain Layout
19279 UserDir
19280 \end_layout
19281
19282 \end_inset
19283
19284 , (except on Windows, where 
19285 \emph on
19286 local
19287 \emph default
19288  named pipes are special objects located in 
19289 \begin_inset Flex Code
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293
19294 \backslash
19295
19296 \backslash
19297 .
19298 \backslash
19299 pipe
19300 \end_layout
19301
19302 \end_inset
19303
19304 ) and have the names 
19305 \begin_inset Quotes eld
19306 \end_inset
19307
19308
19309 \begin_inset Flex Code
19310 status collapsed
19311
19312 \begin_layout Plain Layout
19313 lyxpipe.in
19314 \end_layout
19315
19316 \end_inset
19317
19318
19319 \begin_inset Quotes erd
19320 \end_inset
19321
19322  and 
19323 \begin_inset Quotes eld
19324 \end_inset
19325
19326
19327 \begin_inset Flex Code
19328 status collapsed
19329
19330 \begin_layout Plain Layout
19331 lyxpipe.out
19332 \end_layout
19333
19334 \end_inset
19335
19336
19337 \begin_inset Quotes erd
19338 \end_inset
19339
19340 .
19341  External programs write into 
19342 \begin_inset Flex Code
19343 status collapsed
19344
19345 \begin_layout Plain Layout
19346 lyxpipe.in
19347 \end_layout
19348
19349 \end_inset
19350
19351  and read back data from 
19352 \begin_inset Flex Code
19353 status collapsed
19354
19355 \begin_layout Plain Layout
19356 lyxpipe.out
19357 \end_layout
19358
19359 \end_inset
19360
19361 .
19362  The stem of the pipe names can be defined in the 
19363 \begin_inset Flex Noun
19364 status collapsed
19365
19366 \begin_layout Plain Layout
19367 Tools\SpecialChar menuseparator
19368 Preferences
19369 \end_layout
19370
19371 \end_inset
19372
19373  dialog, for example 
19374 \begin_inset Flex Code
19375 status collapsed
19376
19377 \begin_layout Plain Layout
19378 "/home/myhome/lyxpipe"
19379 \end_layout
19380
19381 \end_inset
19382
19383 , or 
19384 \begin_inset Flex Code
19385 status collapsed
19386
19387 \begin_layout Plain Layout
19388 "
19389 \backslash
19390
19391 \backslash
19392 .
19393 \backslash
19394 pipe
19395 \backslash
19396 lyxpipe"
19397 \end_layout
19398
19399 \end_inset
19400
19401  on Windows (where any working path instead of lyxpipe can be used, for
19402  example 
19403 \begin_inset Flex Code
19404 status collapsed
19405
19406 \begin_layout Plain Layout
19407 "
19408 \backslash
19409
19410 \backslash
19411 .
19412 \backslash
19413 pipe
19414 \backslash
19415 my
19416 \backslash
19417 lyx
19418 \backslash
19419 pipe"
19420 \end_layout
19421
19422 \end_inset
19423
19424  would also work).
19425  You 
19426 \emph on
19427 must
19428 \emph default
19429  configure this manually in order for the server to start.
19430 \end_layout
19431
19432 \begin_layout Standard
19433 \SpecialChar LyX
19434  will add the '
19435 \begin_inset Flex Code
19436 status collapsed
19437
19438 \begin_layout Plain Layout
19439 .in
19440 \end_layout
19441
19442 \end_inset
19443
19444 ' and '
19445 \begin_inset Flex Code
19446 status collapsed
19447
19448 \begin_layout Plain Layout
19449 .out
19450 \end_layout
19451
19452 \end_inset
19453
19454 ' to create the pipes.
19455  If one of the pipes already exists, \SpecialChar LyX
19456  will assume that another \SpecialChar LyX
19457  process
19458  is already running and will not start the server.
19459  On POSIX (Unix like) systems, if for some other reason, an unused 
19460 \begin_inset Quotes eld
19461 \end_inset
19462
19463 stale
19464 \begin_inset Quotes erd
19465 \end_inset
19466
19467  pipe is left in existence when \SpecialChar LyX
19468  closes, then \SpecialChar LyX
19469  will try to delete it.
19470  If this fails for some reason, you will need to delete the pipes manually
19471  and then restart \SpecialChar LyX
19472 .
19473  On Windows, pipes are deleted by the OS on program termination or crash,
19474  so 
19475 \begin_inset Quotes eld
19476 \end_inset
19477
19478 stale
19479 \begin_inset Quotes erd
19480 \end_inset
19481
19482  pipes should not be possible.
19483 \end_layout
19484
19485 \begin_layout Standard
19486 To have several \SpecialChar LyX
19487  processes with servers at the same time, you have to use
19488  different configurations, perhaps by using separate user directories, each
19489  with its own 
19490 \begin_inset Flex Code
19491 status collapsed
19492
19493 \begin_layout Plain Layout
19494 preferences
19495 \end_layout
19496
19497 \end_inset
19498
19499  file, for each process.
19500 \end_layout
19501
19502 \begin_layout Standard
19503 If you are developing a client program, you might find it useful to enable
19504  debugging information from the \SpecialChar LyX
19505  server.
19506  Do this by starting \SpecialChar LyX
19507  as 
19508 \begin_inset Flex Code
19509 status collapsed
19510
19511 \begin_layout Plain Layout
19512 lyx -dbg lyxserver
19513 \end_layout
19514
19515 \end_inset
19516
19517 .
19518 \end_layout
19519
19520 \begin_layout Standard
19521 You can find a complete example client written in C++ in the source distribution
19522  as 
19523 \begin_inset Flex Code
19524 status collapsed
19525
19526 \begin_layout Plain Layout
19527 development/lyxserver/server_monitor.cpp
19528 \end_layout
19529
19530 \end_inset
19531
19532 .
19533 \end_layout
19534
19535 \begin_layout Standard
19536 Another useful tool is the command-line based client found in 
19537 \begin_inset Flex Code
19538 status collapsed
19539
19540 \begin_layout Plain Layout
19541 src/client/lyxclient
19542 \end_layout
19543
19544 \end_inset
19545
19546 .
19547 \end_layout
19548
19549 \begin_layout Section
19550 Normal communication
19551 \end_layout
19552
19553 \begin_layout Standard
19554 To issue a \SpecialChar LyX
19555  call, the client writes a line of ASCII text into the input
19556  pipe.
19557  This line has the following format:
19558 \end_layout
19559
19560 \begin_layout Quote
19561 LYXCMD:
19562 \emph on
19563 clientname
19564 \emph default
19565 :
19566 \emph on
19567 function
19568 \emph default
19569 :
19570 \emph on
19571 argument
19572 \end_layout
19573
19574 \begin_layout Description
19575 clientname is a name that the client can choose arbitrarily.
19576  Its only use is that \SpecialChar LyX
19577  will echo it if it sends an answer—so a client can
19578  dispatch results from different requesters.
19579 \end_layout
19580
19581 \begin_layout Description
19582 function is the function you want \SpecialChar LyX
19583  to perform.
19584  It is the same as the commands you'd use in the minibuffer.
19585 \end_layout
19586
19587 \begin_layout Description
19588 argument is an optional argument which is meaningful only to some functions
19589  (for instance, the 
19590 \begin_inset Quotes eld
19591 \end_inset
19592
19593 self-insert
19594 \begin_inset Quotes erd
19595 \end_inset
19596
19597  LFUN will insert the argument as text at the cursor position).
19598 \end_layout
19599
19600 \begin_layout Standard
19601 The answer from \SpecialChar LyX
19602  will arrive in the output pipe and be of the form
19603 \end_layout
19604
19605 \begin_layout Quote
19606 INFO:
19607 \emph on
19608 clientname
19609 \emph default
19610 :
19611 \emph on
19612 function
19613 \emph default
19614 :
19615 \emph on
19616 data
19617 \end_layout
19618
19619 \begin_layout Standard
19620 where 
19621 \emph on
19622 clientname
19623 \emph default
19624  and 
19625 \emph on
19626 function
19627 \emph default
19628  are just echoed from the command request, while 
19629 \emph on
19630 data
19631 \emph default
19632  is more or less useful information filled according to how the command
19633  execution worked out.
19634  Some commands, such as 
19635 \begin_inset Quotes eld
19636 \end_inset
19637
19638 font-state
19639 \begin_inset Quotes erd
19640 \end_inset
19641
19642 , will return information about the internal state of \SpecialChar LyX
19643 , while other will
19644  return an empty data-response.
19645  This means that the command execution went fine.
19646 \end_layout
19647
19648 \begin_layout Standard
19649 In case of errors, the response from \SpecialChar LyX
19650  will have this form
19651 \end_layout
19652
19653 \begin_layout Quote
19654 ERROR:
19655 \emph on
19656 clientname
19657 \emph default
19658 :
19659 \emph on
19660 function
19661 \emph default
19662 :
19663 \emph on
19664 error message
19665 \end_layout
19666
19667 \begin_layout Standard
19668 where the 
19669 \emph on
19670 error message
19671 \emph default
19672  should contain an explanation of why the command failed.
19673 \end_layout
19674
19675 \begin_layout Standard
19676 Examples:
19677 \end_layout
19678
19679 \begin_layout LyX-Code
19680 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
19681 \begin_inset Newline newline
19682 \end_inset
19683
19684 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
19685 \begin_inset Newline newline
19686 \end_inset
19687
19688 read a <~/.lyxpipe.out
19689 \begin_inset Newline newline
19690 \end_inset
19691
19692 echo $a
19693 \end_layout
19694
19695 \begin_layout Subsection
19696 AppleScript (Mac OS X)
19697 \end_layout
19698
19699 \begin_layout Standard
19700 Since \SpecialChar LyX
19701  2.1, \SpecialChar LyX
19702  supports basic interactions with AppleScript for normal communicatio
19703 n through the command run.
19704  This command takes a direct argument (the 
19705 \series bold
19706 function
19707 \series default
19708  to perform) and an optional argument.
19709  It either returns the output of the function or triggers an error with
19710  the error message and code.
19711 \end_layout
19712
19713 \begin_layout Standard
19714 Example:
19715 \end_layout
19716
19717 \begin_layout LyX-Code
19718 tell application "\SpecialChar LyX
19719 "
19720 \end_layout
19721
19722 \begin_layout LyX-Code
19723   try
19724 \end_layout
19725
19726 \begin_layout LyX-Code
19727     -- Stores the current file name into f
19728 \end_layout
19729
19730 \begin_layout LyX-Code
19731     set f to (run "server-get-filename" with argument "")
19732 \end_layout
19733
19734 \begin_layout LyX-Code
19735     on error the error_message number the error_number
19736 \end_layout
19737
19738 \begin_layout LyX-Code
19739       display dialog "Error: " & the error_number & ".
19740  " ¬
19741 \end_layout
19742
19743 \begin_layout LyX-Code
19744               & the error_message buttons {"OK"} default button 1
19745 \end_layout
19746
19747 \begin_layout LyX-Code
19748   end try
19749 \end_layout
19750
19751 \begin_layout LyX-Code
19752 end tell
19753 \end_layout
19754
19755 \begin_layout Section
19756 Notification
19757 \end_layout
19758
19759 \begin_layout Standard
19760 \SpecialChar LyX
19761  can notify clients of events going on asynchronously.
19762  Currently it will only do this if the user binds a key sequence with the
19763  function 
19764 \begin_inset Quotes eld
19765 \end_inset
19766
19767 notify
19768 \begin_inset Quotes erd
19769 \end_inset
19770
19771 .
19772  The format of the string \SpecialChar LyX
19773  sends is as follows:
19774 \end_layout
19775
19776 \begin_layout Quote
19777 \begin_inset Flex Code
19778 status collapsed
19779
19780 \begin_layout Plain Layout
19781 NOTIFY:
19782 \end_layout
19783
19784 \end_inset
19785
19786
19787 \emph on
19788 key-sequence
19789 \end_layout
19790
19791 \begin_layout Standard
19792 where 
19793 \emph on
19794 key-sequence
19795 \emph default
19796  is the printed representation of the key sequence that was actually typed
19797  by the user.
19798 \end_layout
19799
19800 \begin_layout Standard
19801 This mechanism can be used to extend \SpecialChar LyX
19802 's command set and implement macros.
19803  Bind some key sequence to 
19804 \begin_inset Quotes eld
19805 \end_inset
19806
19807 notify
19808 \begin_inset Quotes erd
19809 \end_inset
19810
19811 .
19812  Then start a client that listens on the output pipe, dispatches the command
19813  according to the sequence, and starts a function that may use \SpecialChar LyX
19814  calls and
19815  \SpecialChar LyX
19816  requests to issue a command or a series of commands to \SpecialChar LyX
19817 .
19818 \end_layout
19819
19820 \begin_layout Section
19821 The simple \SpecialChar LyX
19822  Server Protocol
19823 \end_layout
19824
19825 \begin_layout Standard
19826 \SpecialChar LyX
19827  implements a simple protocol that can be used for session management.
19828  All messages are of the form
19829 \end_layout
19830
19831 \begin_layout Quote
19832 LYXSRV:
19833 \emph on
19834 clientname
19835 \emph default
19836 :
19837 \emph on
19838 protocol message
19839 \end_layout
19840
19841 \begin_layout Standard
19842 where 
19843 \emph on
19844 protocol message
19845 \emph default
19846  can be 
19847 \begin_inset Quotes eld
19848 \end_inset
19849
19850 hello
19851 \begin_inset Quotes erd
19852 \end_inset
19853
19854  or 
19855 \begin_inset Quotes eld
19856 \end_inset
19857
19858 bye
19859 \begin_inset Quotes erd
19860 \end_inset
19861
19862 .
19863  If 
19864 \begin_inset Quotes eld
19865 \end_inset
19866
19867 hello
19868 \begin_inset Quotes erd
19869 \end_inset
19870
19871  is received from a client, \SpecialChar LyX
19872  will report back to inform the client that
19873  it's listening to it's messages, while 
19874 \begin_inset Quotes eld
19875 \end_inset
19876
19877 bye
19878 \begin_inset Quotes erd
19879 \end_inset
19880
19881  sent from \SpecialChar LyX
19882  will inform clients that \SpecialChar LyX
19883  is closing.
19884 \end_layout
19885
19886 \begin_layout Section
19887 Reverse DVI/PDF search
19888 \end_layout
19889
19890 \begin_layout Standard
19891 Some DVI/PDF viewers
19892 \begin_inset Foot
19893 status collapsed
19894
19895 \begin_layout Plain Layout
19896 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
19897  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
19898 \end_layout
19899
19900 \end_inset
19901
19902  provide 
19903 \emph on
19904 reverse search
19905 \emph default
19906  facility (also called 
19907 \emph on
19908 inverse search
19909 \emph default
19910 ).
19911  This means that you can tell \SpecialChar LyX
19912  to put the cursor to a specific line in the
19913  document by clicking at the respective position in the DVI/PDF output.
19914  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
19915 .
19916  This is done via the \SpecialChar LyX
19917  server either by using the named pipe (
19918 \emph on
19919 lyxpipe
19920 \emph default
19921 ), or the UNIX domain socket (
19922 \emph on
19923 lyxsocket
19924 \emph default
19925 ) that \SpecialChar LyX
19926  creates in its temporary directory (this is the way the 
19927 \begin_inset Flex Code
19928 status collapsed
19929
19930 \begin_layout Plain Layout
19931 lyxclient
19932 \end_layout
19933
19934 \end_inset
19935
19936  program communicates with \SpecialChar LyX
19937 ).
19938  In some cases, you need a helper script that mediates between the viewer
19939  and \SpecialChar LyX
19940 , in others, the viewer can communicate with \SpecialChar LyX
19941  directly.
19942  This depends on the selected viewer and on your operating system.
19943  The same applies to the way viewers need to be configured and the way the
19944  reverse search is actually performed.
19945  In what follows, we will thus describe how to setup reverse search for
19946  specific viewers.
19947  Before we turn to this, though, we will explain what needs to be done generally
19948  to enable reverse search in the DVI/PDF output.
19949 \end_layout
19950
19951 \begin_layout Subsection
19952 Automatic setup
19953 \begin_inset CommandInset label
19954 LatexCommand label
19955 name "subsec:rev-search"
19956
19957 \end_inset
19958
19959
19960 \end_layout
19961
19962 \begin_layout Standard
19963 In most cases \SpecialChar LyX
19964  will do the work for you by pressing the following button
19965  in the toolbar: 
19966 \begin_inset Info
19967 type  "icon"
19968 arg   "buffer-toggle-output-sync"
19969 \end_inset
19970
19971 .
19972  Alternatively, you can also enable the feature by checking 
19973 \family sans
19974 Synchronize with Output
19975 \family default
19976  in 
19977 \begin_inset Flex Noun
19978 status collapsed
19979
19980 \begin_layout Plain Layout
19981 Document\SpecialChar menuseparator
19982 Settings\SpecialChar menuseparator
19983 Formats
19984 \end_layout
19985
19986 \end_inset
19987
19988 .
19989  In such a case \SpecialChar LyX
19990  will automatically insert the necessary Sync\SpecialChar TeX
19991  macro (for
19992  PDF) or load the srcltx package (for DVI) respectively.
19993  This option can be easily reached also on 
19994 \begin_inset Flex Code
19995 status collapsed
19996
19997 \begin_layout Plain Layout
19998 View/Update
19999 \end_layout
20000
20001 \end_inset
20002
20003  Toolbar.
20004 \end_layout
20005
20006 \begin_layout Standard
20007 If you need a different setting, you can select or input a custom macro
20008  from the drop down box just below 
20009 \begin_inset Flex Noun
20010 status collapsed
20011
20012 \begin_layout Plain Layout
20013 Document\SpecialChar menuseparator
20014 Settings\SpecialChar menuseparator
20015 Output\SpecialChar menuseparator
20016 Synchronize with Output
20017 \end_layout
20018
20019 \end_inset
20020
20021 .
20022 \end_layout
20023
20024 \begin_layout Standard
20025 Note that the method 
20026 \begin_inset Flex Code
20027 status collapsed
20028
20029 \begin_layout Plain Layout
20030
20031 \backslash
20032 synctex=1
20033 \end_layout
20034
20035 \end_inset
20036
20037  enables gzip compression.
20038  If your viewer does not support it, you should instead use 
20039 \begin_inset Flex Code
20040 status collapsed
20041
20042 \begin_layout Plain Layout
20043
20044 \backslash
20045 synctex=-1
20046 \end_layout
20047
20048 \end_inset
20049
20050 .
20051 \end_layout
20052
20053 \begin_layout Standard
20054 Please also note that including the 
20055 \begin_inset Flex Code
20056 status collapsed
20057
20058 \begin_layout Plain Layout
20059 srcltx
20060 \end_layout
20061
20062 \end_inset
20063
20064  package or 
20065 \begin_inset Flex Code
20066 status collapsed
20067
20068 \begin_layout Plain Layout
20069 src-specials
20070 \end_layout
20071
20072 \end_inset
20073
20074  sometimes has an undesired impact on the typesetting.
20075  Thus, you should switch output synchronization off for the final typesetting
20076  if you use the 
20077 \begin_inset Flex Code
20078 status collapsed
20079
20080 \begin_layout Plain Layout
20081 srcltx
20082 \end_layout
20083
20084 \end_inset
20085
20086  package or 
20087 \begin_inset Flex Code
20088 status collapsed
20089
20090 \begin_layout Plain Layout
20091 src-specials
20092 \end_layout
20093
20094 \end_inset
20095
20096 .
20097  
20098 \end_layout
20099
20100 \begin_layout Standard
20101 In case you need some more special settings that are not covered by the
20102  automatic settings, read the next section about how to set up output synchroniz
20103 ation manually.
20104  If the automatic setup suits your needs, you can readily jump to section
20105 \begin_inset space ~
20106 \end_inset
20107
20108
20109 \begin_inset CommandInset ref
20110 LatexCommand ref
20111 reference "subsec:configuring-viewers"
20112
20113 \end_inset
20114
20115 , where the necessary configuration steps in your viewer – needed both with
20116  the automatic and the manual setup – are described.
20117 \end_layout
20118
20119 \begin_layout Subsection
20120 Manual setup
20121 \end_layout
20122
20123 \begin_layout Standard
20124 \SpecialChar LaTeX
20125  provides several different methods for reverse search.
20126  Some are built-in in the 
20127 \begin_inset Flex Code
20128 status collapsed
20129
20130 \begin_layout Plain Layout
20131 latex/pdflatex
20132 \end_layout
20133
20134 \end_inset
20135
20136  program, some are provided by external packages.
20137  Your choice depends on whether your \SpecialChar LaTeX
20138  distribution already provides a given
20139  method (the built-in methods are rather new) and whether your viewer can
20140  cope with it.
20141  The available methods are described in the following.
20142 \end_layout
20143
20144 \begin_layout Subsubsection*
20145 Built-in DVI-search via src-specials (DVI only) 
20146 \end_layout
20147
20148 \begin_layout Standard
20149 This method provides the DVI file with the necessary information for reverse
20150  search.
20151  It is available in \SpecialChar LaTeX
20152  since quite some time (any somewhat recent \SpecialChar LaTeX
20153  distribution
20154  should include it), and it works reliably.
20155  To enable it, change the 
20156 \begin_inset Flex Noun
20157 status collapsed
20158
20159 \begin_layout Plain Layout
20160 La
20161 \family sans
20162 TeX
20163 \family default
20164  (plain)->DVI
20165 \end_layout
20166
20167 \end_inset
20168
20169  or 
20170 \begin_inset Flex Noun
20171 status collapsed
20172
20173 \begin_layout Plain Layout
20174 La
20175 \family sans
20176 TeX
20177 \family default
20178  (plain)->DraftDVI
20179 \end_layout
20180
20181 \end_inset
20182
20183  converter in 
20184 \begin_inset Flex Noun
20185 status collapsed
20186
20187 \begin_layout Plain Layout
20188 Preferences\SpecialChar menuseparator
20189 File Handling\SpecialChar menuseparator
20190 Converters
20191 \end_layout
20192
20193 \end_inset
20194
20195  to 
20196 \begin_inset Flex Code
20197 status collapsed
20198
20199 \begin_layout Plain Layout
20200 latex -src-specials $$i
20201 \end_layout
20202
20203 \end_inset
20204
20205 .
20206  If this doesn't work, check if your \SpecialChar TeX
20207  engine needs different options (the
20208  syntax might differ in some distributions).
20209 \end_layout
20210
20211 \begin_layout Subsubsection*
20212 External Packages (PDFSync and scrltx) 
20213 \end_layout
20214
20215 \begin_layout Standard
20216 The packages 
20217 \emph on
20218 pdfsync
20219 \emph default
20220  and 
20221 \emph on
20222 scrltx
20223 \emph default
20224  provide reverse search facility for PDF output (via pdflatex) and DVI output,
20225  respectively.
20226  In order to enable it, load the packages in the \SpecialChar LyX
20227  preamble: 
20228 \end_layout
20229
20230 \begin_layout Itemize
20231 \begin_inset Flex Code
20232 status collapsed
20233
20234 \begin_layout Plain Layout
20235
20236 \backslash
20237 usepackage{pdfsync}
20238 \end_layout
20239
20240 \end_inset
20241
20242  for reverse PDF search,
20243 \end_layout
20244
20245 \begin_layout Itemize
20246 \begin_inset Flex Code
20247 status collapsed
20248
20249 \begin_layout Plain Layout
20250
20251 \backslash
20252 usepackage[active]{srcltx}
20253 \end_layout
20254
20255 \end_inset
20256
20257  for reverse DVI search.
20258 \end_layout
20259
20260 \begin_layout Standard
20261 If you want to be able to perform both DVI and PDF reverse searches, you
20262  can also insert in the preamble the following lines
20263 \end_layout
20264
20265 \begin_layout LyX-Code
20266
20267 \backslash
20268 usepackage{ifpdf}
20269 \begin_inset Newline newline
20270 \end_inset
20271
20272
20273 \backslash
20274 ifpdf
20275 \begin_inset Newline newline
20276 \end_inset
20277
20278   
20279 \backslash
20280 usepackage{pdfsync}
20281 \begin_inset Newline newline
20282 \end_inset
20283
20284
20285 \backslash
20286 else
20287 \begin_inset Newline newline
20288 \end_inset
20289
20290   
20291 \backslash
20292 usepackage[active]{srcltx}
20293 \begin_inset Newline newline
20294 \end_inset
20295
20296
20297 \backslash
20298 fi
20299 \end_layout
20300
20301 \begin_layout Standard
20302 This way, you can preview the file as either DVI or PDF (pdflatex) and the
20303  right package will be used.
20304 \end_layout
20305
20306 \begin_layout Standard
20307 Note that PDFSync might affect the output layout of your document.
20308  It is therefore advised to disable PDFsync for final documents.
20309 \end_layout
20310
20311 \begin_layout Subsubsection*
20312 Built-in reverse search via Sync\SpecialChar TeX
20313  (DVI and PDF) 
20314 \end_layout
20315
20316 \begin_layout Standard
20317 Recent versions of 
20318 \begin_inset Flex Code
20319 status collapsed
20320
20321 \begin_layout Plain Layout
20322 (pdf)latex
20323 \end_layout
20324
20325 \end_inset
20326
20327  have built-in support for both PDF and DVI reverse search.
20328  This so-called 
20329 \emph on
20330 Sync\SpecialChar TeX
20331
20332 \emph default
20333  facility is basically the result of the integration of the PDFSync package
20334  to the pdftex program and its merge with the 
20335 \emph on
20336 scr-specials
20337 \emph default
20338  approach.
20339  You need at least \SpecialChar TeX
20340 Live 2008 or a recent Mik\SpecialChar TeX
20341  distribution in order to use
20342  it.
20343 \begin_inset Foot
20344 status collapsed
20345
20346 \begin_layout Plain Layout
20347 For some reason, Mik\SpecialChar TeX
20348  does not understand/obey the command \SpecialChar LyX
20349  inserts into
20350  the preamble when you check the "Enable Forward/Reverse Search" button
20351  in the toolbar and does not generate the necessary info.
20352 \end_layout
20353
20354 \begin_layout Plain Layout
20355 The generation of the required info can be forced by changing the converter
20356  "\SpecialChar LaTeX
20357  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
20358  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
20359  the -synctex=1 switch).
20360 \end_layout
20361
20362 \end_inset
20363
20364  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
20365  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
20366  already provide Sync\SpecialChar TeX
20367  support.
20368 \end_layout
20369
20370 \begin_layout Standard
20371 To enable Sync\SpecialChar TeX
20372  for DVI output, change the 
20373 \begin_inset Flex Noun
20374 status collapsed
20375
20376 \begin_layout Plain Layout
20377 La
20378 \family sans
20379 TeX
20380 \family default
20381  (plain) -> DVI
20382 \end_layout
20383
20384 \end_inset
20385
20386  or 
20387 \begin_inset Flex Noun
20388 status collapsed
20389
20390 \begin_layout Plain Layout
20391 La
20392 \family sans
20393 TeX
20394 \family default
20395  (plain) -> DraftDVI
20396 \end_layout
20397
20398 \end_inset
20399
20400  converter in 
20401 \begin_inset Flex Noun
20402 status collapsed
20403
20404 \begin_layout Plain Layout
20405 Preferences\SpecialChar menuseparator
20406 File Handling\SpecialChar menuseparator
20407 Converters
20408 \end_layout
20409
20410 \end_inset
20411
20412  to 
20413 \begin_inset Flex Code
20414 status collapsed
20415
20416 \begin_layout Plain Layout
20417 latex -synctex=1 $$i
20418 \end_layout
20419
20420 \end_inset
20421
20422 , and for PDF output, change the 
20423 \begin_inset Flex Noun
20424 status collapsed
20425
20426 \begin_layout Plain Layout
20427 La
20428 \family sans
20429 TeX
20430 \family default
20431  (pdflatex) -> PDF (pdflatex)
20432 \end_layout
20433
20434 \end_inset
20435
20436  converter to 
20437 \begin_inset Flex Code
20438 status collapsed
20439
20440 \begin_layout Plain Layout
20441 pdflatex -synctex=1 $$i
20442 \end_layout
20443
20444 \end_inset
20445
20446 .
20447  Should your viewer not be considered in the following description, or in
20448  case of missing success, please check the documentation of your viewer
20449  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
20450 .
20451 \begin_inset Foot
20452 status collapsed
20453
20454 \begin_layout Plain Layout
20455 Note that the option 
20456 \begin_inset Flex Code
20457 status collapsed
20458
20459 \begin_layout Plain Layout
20460 -synctex=1
20461 \end_layout
20462
20463 \end_inset
20464
20465  option enables gzip compression.
20466  If your viewer does not support it, you should instead use 
20467 \begin_inset Flex Code
20468 status collapsed
20469
20470 \begin_layout Plain Layout
20471 -synctex=-1
20472 \end_layout
20473
20474 \end_inset
20475
20476 .
20477 \end_layout
20478
20479 \end_inset
20480
20481
20482 \end_layout
20483
20484 \begin_layout Subsection
20485 Configuring and using specific viewers
20486 \begin_inset CommandInset label
20487 LatexCommand label
20488 name "subsec:configuring-viewers"
20489
20490 \end_inset
20491
20492
20493 \end_layout
20494
20495 \begin_layout Subsubsection*
20496 Xdvi (all platforms)
20497 \end_layout
20498
20499 \begin_layout Standard
20500 If you use 
20501 \begin_inset Flex Code
20502 status collapsed
20503
20504 \begin_layout Plain Layout
20505 xdvi
20506 \end_layout
20507
20508 \end_inset
20509
20510 , you don't need to do anything else for performing a reverse DVI search,
20511  as \SpecialChar LyX
20512  already provides the necessary hooks for automatically using the 
20513 \begin_inset Flex Code
20514 status collapsed
20515
20516 \begin_layout Plain Layout
20517 lyxclient
20518 \end_layout
20519
20520 \end_inset
20521
20522  program.
20523  Just setup your document as described above (reverse search is triggered
20524  by Ctrl-click or Alt-click on Mac OSX, respectively).
20525 \end_layout
20526
20527 \begin_layout Standard
20528 However, if for whatever reason you want to use the named pipe instead of
20529  the socket for communicating with \SpecialChar LyX
20530 , simply change the DVI viewer in 
20531 \begin_inset Flex Noun
20532 status collapsed
20533
20534 \begin_layout Plain Layout
20535 Preferences\SpecialChar menuseparator
20536 File Handling\SpecialChar menuseparator
20537 File formats
20538 \end_layout
20539
20540 \end_inset
20541
20542  to
20543 \begin_inset Foot
20544 status collapsed
20545
20546 \begin_layout Plain Layout
20547 On Mac OSX you have to use 
20548 \begin_inset Flex Code
20549 status collapsed
20550
20551 \begin_layout Plain Layout
20552 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
20553 \end_layout
20554
20555 \end_inset
20556
20557
20558 \end_layout
20559
20560 \end_inset
20561
20562  
20563 \begin_inset Flex Code
20564 status collapsed
20565
20566 \begin_layout Plain Layout
20567 xdvi -editor "lyxeditor.sh %f %l"
20568 \end_layout
20569
20570 \end_inset
20571
20572 , where 
20573 \begin_inset Flex Code
20574 status collapsed
20575
20576 \begin_layout Plain Layout
20577 lyxeditor.sh
20578 \end_layout
20579
20580 \end_inset
20581
20582  is a suitable script.
20583  For example, a minimal shell script is the following one:
20584 \end_layout
20585
20586 \begin_layout LyX-Code
20587 #!/bin/sh
20588 \begin_inset Newline newline
20589 \end_inset
20590
20591 LYXPIPE="/path/to/lyxpipe"
20592 \begin_inset Newline newline
20593 \end_inset
20594
20595 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
20596 \begin_inset Newline newline
20597 \end_inset
20598
20599 echo "$COMMAND" > "${LYXPIPE}".in || exit
20600 \begin_inset Newline newline
20601 \end_inset
20602
20603 read TMP < "${LYXPIPE}".out || exit
20604 \end_layout
20605
20606 \begin_layout Standard
20607 where 
20608 \begin_inset Flex Code
20609 status collapsed
20610
20611 \begin_layout Plain Layout
20612 /path/to/lyxpipe
20613 \end_layout
20614
20615 \end_inset
20616
20617  is the LyXServer pipe path specified in 
20618 \begin_inset Flex Noun
20619 status collapsed
20620
20621 \begin_layout Plain Layout
20622 Preferences\SpecialChar menuseparator
20623 Paths
20624 \end_layout
20625
20626 \end_inset
20627
20628 .
20629 \begin_inset Foot
20630 status collapsed
20631
20632 \begin_layout Plain Layout
20633 In the 
20634 \begin_inset Flex Code
20635 status collapsed
20636
20637 \begin_layout Plain Layout
20638 development/tools
20639 \end_layout
20640
20641 \end_inset
20642
20643  folder of a source distribution you can find a 
20644 \begin_inset Flex Code
20645 status collapsed
20646
20647 \begin_layout Plain Layout
20648 lyxeditor
20649 \end_layout
20650
20651 \end_inset
20652
20653  script which is able to locate the 
20654 \emph on
20655 lyxpipe
20656 \emph default
20657  based on your preferences.
20658 \end_layout
20659
20660 \end_inset
20661
20662
20663 \end_layout
20664
20665 \begin_layout Subsubsection*
20666 MacDviX (Mac OSX)
20667 \end_layout
20668
20669 \begin_layout Standard
20670 At the end of 
20671 \begin_inset Flex Code
20672 status collapsed
20673
20674 \begin_layout Plain Layout
20675 /Applications/MacDviX_Folder/calleditor.script
20676 \end_layout
20677
20678 \end_inset
20679
20680 , add the following lines:
20681 \end_layout
20682
20683 \begin_layout LyX-Code
20684 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
20685 \begin_inset Newline newline
20686 \end_inset
20687
20688 exit 1
20689 \end_layout
20690
20691 \begin_layout Standard
20692 Modify the lines accordingly if you install \SpecialChar LyX
20693  somewhere else than in the
20694  Applications folder.
20695 \end_layout
20696
20697 \begin_layout Standard
20698 Reverse search is triggered by Alt-click (OPTION-click).
20699 \end_layout
20700
20701 \begin_layout Subsubsection*
20702 Skim (Mac OSX)
20703 \end_layout
20704
20705 \begin_layout Standard
20706 Enter 
20707 \begin_inset Flex Code
20708 status collapsed
20709
20710 \begin_layout Plain Layout
20711 open -a Skim.app $$i
20712 \end_layout
20713
20714 \end_inset
20715
20716  to the viewer setting in 
20717 \begin_inset Flex Noun
20718 status collapsed
20719
20720 \begin_layout Plain Layout
20721 Preferences\SpecialChar menuseparator
20722 File Handling\SpecialChar menuseparator
20723 File formats\SpecialChar menuseparator
20724 PDF (pdflatex)
20725 \end_layout
20726
20727 \end_inset
20728
20729 , and then in 
20730 \begin_inset Flex Noun
20731 status collapsed
20732
20733 \begin_layout Plain Layout
20734 Skim\SpecialChar menuseparator
20735 Preferences\SpecialChar menuseparator
20736 Sync
20737 \end_layout
20738
20739 \end_inset
20740
20741  choose 
20742 \begin_inset Flex Noun
20743 status collapsed
20744
20745 \begin_layout Plain Layout
20746 custom
20747 \end_layout
20748
20749 \end_inset
20750
20751  preset and enter command 
20752 \begin_inset Flex Noun
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 /Applications/\SpecialChar LyX
20757 .app/Contents/MacOS/lyxeditor
20758 \end_layout
20759
20760 \end_inset
20761
20762 .
20763 \end_layout
20764
20765 \begin_layout Standard
20766 Reverse search is triggered by COMMAND-SHIFT-click
20767 \end_layout
20768
20769 \begin_layout Subsubsection*
20770 Evince (GNOME)
20771 \end_layout
20772
20773 \begin_layout Standard
20774 Reverse search with evince does not work out of the box, but it can be achieved
20775  by means of some third party helper scripts.
20776  Please refer to 
20777 \begin_inset CommandInset href
20778 LatexCommand href
20779 target "https://wiki.lyx.org/LyX/SyncTeX"
20780 literal "false"
20781
20782 \end_inset
20783
20784  for details.
20785 \end_layout
20786
20787 \begin_layout Subsubsection*
20788 Okular (KDE)
20789 \end_layout
20790
20791 \begin_layout Standard
20792 Go to 
20793 \begin_inset Flex Noun
20794 status collapsed
20795
20796 \begin_layout Plain Layout
20797 Settings\SpecialChar menuseparator
20798 Configure Okular\SpecialChar menuseparator
20799 Editor
20800 \end_layout
20801
20802 \end_inset
20803
20804  and select LyX
20805 \begin_inset Quotes erd
20806 \end_inset
20807
20808  as editor.
20809  This inserts the appropriate command (
20810 \begin_inset Flex Code
20811 status collapsed
20812
20813 \begin_layout Plain Layout
20814 lyxclient -g %f %l
20815 \end_layout
20816
20817 \end_inset
20818
20819 ).
20820 \end_layout
20821
20822 \begin_layout Standard
20823 Reverse search is triggered by SHIFT-click.
20824
20825 \change_inserted -712698321 1578211026
20826  Note that this only works if Okular is in 
20827 \begin_inset Quotes eld
20828 \end_inset
20829
20830 Browse
20831 \begin_inset Quotes erd
20832 \end_inset
20833
20834  mode (i.
20835 \begin_inset space \thinspace{}
20836 \end_inset
20837
20838 e., the hand symbol is clicked).
20839 \change_unchanged
20840
20841 \end_layout
20842
20843 \begin_layout Subsubsection*
20844 Qpdfview (Unix)
20845 \end_layout
20846
20847 \begin_layout Standard
20848 Qpdfview supports Sync\SpecialChar TeX
20849  since version 0.3.5.
20850  Go to 
20851 \begin_inset Flex Noun
20852 status collapsed
20853
20854 \begin_layout Plain Layout
20855 Edit\SpecialChar menuseparator
20856 Settings\SpecialChar menuseparator
20857 Behavior
20858 \end_layout
20859
20860 \end_inset
20861
20862 , click on the input field of the 
20863 \begin_inset Quotes eld
20864 \end_inset
20865
20866 Source editor
20867 \begin_inset Quotes erd
20868 \end_inset
20869
20870  item and add the command 
20871 \begin_inset Flex Code
20872 status collapsed
20873
20874 \begin_layout Plain Layout
20875 lyxclient -g %1 %2
20876 \end_layout
20877
20878 \end_inset
20879
20880 .
20881 \end_layout
20882
20883 \begin_layout Standard
20884 Reverse search is triggered by double-click or, in more recent versions,
20885  by context menu.
20886 \end_layout
20887
20888 \begin_layout Subsubsection*
20889 YAP (Windows)
20890 \end_layout
20891
20892 \begin_layout Standard
20893 Launch yap, choose its 
20894 \begin_inset Flex Noun
20895 status collapsed
20896
20897 \begin_layout Plain Layout
20898 View\SpecialChar menuseparator
20899 Options
20900 \end_layout
20901
20902 \end_inset
20903
20904  menu and select the 
20905 \begin_inset Quotes eld
20906 \end_inset
20907
20908 Inverse DVI Search
20909 \begin_inset Quotes erd
20910 \end_inset
20911
20912  tab.
20913  Click on the 
20914 \begin_inset Quotes eld
20915 \end_inset
20916
20917 New\SpecialChar ldots
20918
20919 \begin_inset Quotes erd
20920 \end_inset
20921
20922  button and, in the window that opens, enter 
20923 \begin_inset Quotes eld
20924 \end_inset
20925
20926 \SpecialChar LyX
20927  Editor
20928 \begin_inset Quotes erd
20929 \end_inset
20930
20931  (or any other name you like) in the 
20932 \begin_inset Quotes eld
20933 \end_inset
20934
20935 Name:
20936 \begin_inset Quotes erd
20937 \end_inset
20938
20939  field.
20940  Now click on the button labeled 
20941 \begin_inset Quotes eld
20942 \end_inset
20943
20944 \SpecialChar ldots
20945
20946 \begin_inset Quotes erd
20947 \end_inset
20948
20949  to open a file dialog and navigate to the directory containing the batch
20950  file 
20951 \begin_inset Flex Code
20952 status collapsed
20953
20954 \begin_layout Plain Layout
20955 lyxeditor.bat
20956 \end_layout
20957
20958 \end_inset
20959
20960  (see below).
20961  Select 
20962 \begin_inset Flex Code
20963 status collapsed
20964
20965 \begin_layout Plain Layout
20966 lyxeditor.bat
20967 \end_layout
20968
20969 \end_inset
20970
20971  and then specify the program arguments as 
20972 \begin_inset Flex Code
20973 status collapsed
20974
20975 \begin_layout Plain Layout
20976 %f %l
20977 \end_layout
20978
20979 \end_inset
20980
20981 .
20982  The 
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 lyxeditor.bat
20988 \end_layout
20989
20990 \end_inset
20991
20992  wrapper is used for communicating with \SpecialChar LyX
20993  through the 
20994 \emph on
20995 lyxpipe
20996 \emph default
20997  and is as follows:
20998 \end_layout
20999
21000 \begin_layout LyX-Code
21001 @echo off
21002 \begin_inset Newline newline
21003 \end_inset
21004
21005 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
21006 \backslash
21007
21008 \backslash
21009 .
21010 \backslash
21011 pipe
21012 \backslash
21013 lyxpipe.in
21014 \begin_inset Newline newline
21015 \end_inset
21016
21017 type 
21018 \backslash
21019
21020 \backslash
21021 .
21022 \backslash
21023 pipe
21024 \backslash
21025 lyxpipe.out
21026 \end_layout
21027
21028 \begin_layout Standard
21029 Make sure that the \SpecialChar LyX
21030 Server pipe path you specified in \SpecialChar LyX
21031  is 
21032 \begin_inset Flex Code
21033 status collapsed
21034
21035 \begin_layout Plain Layout
21036
21037 \backslash
21038
21039 \backslash
21040 .
21041 \backslash
21042 pipe
21043 \backslash
21044 lyxpipe
21045 \end_layout
21046
21047 \end_inset
21048
21049 , otherwise change the 
21050 \begin_inset Flex Code
21051 status collapsed
21052
21053 \begin_layout Plain Layout
21054 lyxeditor.bat
21055 \end_layout
21056
21057 \end_inset
21058
21059  wrapper accordingly.
21060 \end_layout
21061
21062 \begin_layout Standard
21063 In yap, reverse search is triggered by double-click.
21064 \end_layout
21065
21066 \begin_layout Subsubsection*
21067 SumatraPDF (Windows)
21068 \end_layout
21069
21070 \begin_layout Standard
21071 In order to use SumatraPDF for inverse search, enter 
21072 \begin_inset Flex Code
21073 status collapsed
21074
21075 \begin_layout Plain Layout
21076 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
21077 \end_layout
21078
21079 \end_inset
21080
21081  in the viewer setting in 
21082 \begin_inset Flex Noun
21083 status collapsed
21084
21085 \begin_layout Plain Layout
21086 Preferences\SpecialChar menuseparator
21087 File Handling\SpecialChar menuseparator
21088 File formats\SpecialChar menuseparator
21089 PDF (pdflatex)
21090 \end_layout
21091
21092 \end_inset
21093
21094 , where 
21095 \begin_inset Flex Code
21096 status collapsed
21097
21098 \begin_layout Plain Layout
21099 lyxeditor.bat
21100 \end_layout
21101
21102 \end_inset
21103
21104  is the previous wrapper.
21105  If SumatraPDF.exe is not in your command PATH, use its full file name.
21106 \end_layout
21107
21108 \begin_layout Standard
21109 Reverse search is triggered by double-click.
21110 \end_layout
21111
21112 \begin_layout Subsubsection*
21113 YAP (Cygwin)
21114 \end_layout
21115
21116 \begin_layout Standard
21117 First of all, make sure that yap is your default DVI viewer in the Windows
21118  environment, then launch it, choose its 
21119 \begin_inset Flex Noun
21120 status collapsed
21121
21122 \begin_layout Plain Layout
21123 View\SpecialChar menuseparator
21124 Options
21125 \end_layout
21126
21127 \end_inset
21128
21129  menu and select the 
21130 \begin_inset Quotes eld
21131 \end_inset
21132
21133 Inverse DVI Search
21134 \begin_inset Quotes erd
21135 \end_inset
21136
21137  tab.
21138  Click on the 
21139 \begin_inset Quotes eld
21140 \end_inset
21141
21142 New\SpecialChar ldots
21143
21144 \begin_inset Quotes erd
21145 \end_inset
21146
21147  button and, in the window that opens, enter 
21148 \begin_inset Quotes eld
21149 \end_inset
21150
21151 \SpecialChar LyX
21152  Editor
21153 \begin_inset Quotes erd
21154 \end_inset
21155
21156  (or any other name you like) in the 
21157 \begin_inset Quotes eld
21158 \end_inset
21159
21160 Name:
21161 \begin_inset Quotes erd
21162 \end_inset
21163
21164  field.
21165  Now click on the button labeled 
21166 \begin_inset Quotes eld
21167 \end_inset
21168
21169 \SpecialChar ldots
21170
21171 \begin_inset Quotes erd
21172 \end_inset
21173
21174  to open a file dialog and navigate to the directory containing the 
21175 \begin_inset Flex Code
21176 status collapsed
21177
21178 \begin_layout Plain Layout
21179 lyxeditor.exe
21180 \end_layout
21181
21182 \end_inset
21183
21184  program (which is installed by default on Cygwin along with the \SpecialChar LyX
21185  executable).
21186  Select 
21187 \begin_inset Flex Code
21188 status collapsed
21189
21190 \begin_layout Plain Layout
21191 lyxeditor.exe
21192 \end_layout
21193
21194 \end_inset
21195
21196  and then specify the program arguments as 
21197 \begin_inset Flex Code
21198 status collapsed
21199
21200 \begin_layout Plain Layout
21201 -g %f %l
21202 \end_layout
21203
21204 \end_inset
21205
21206 .
21207  In this way, you will be using the 
21208 \emph on
21209 lyxsocket
21210 \emph default
21211  for communicating with \SpecialChar LyX
21212 .
21213  If, for whatever reason, you want to use the 
21214 \emph on
21215 lyxpipe
21216 \emph default
21217 , omit the 
21218 \begin_inset Flex Code
21219 status collapsed
21220
21221 \begin_layout Plain Layout
21222 -g
21223 \end_layout
21224
21225 \end_inset
21226
21227  option and be sure to specify the \SpecialChar LyX
21228 Server pipe path in the \SpecialChar LyX
21229  preferences.
21230 \end_layout
21231
21232 \begin_layout Standard
21233 In yap, reverse search is triggered by double-click.
21234 \end_layout
21235
21236 \begin_layout Subsubsection*
21237 SumatraPDF (Cygwin)
21238 \end_layout
21239
21240 \begin_layout Standard
21241 In order to use SumatraPDF for inverse search, enter 
21242 \begin_inset Flex Code
21243 status collapsed
21244
21245 \begin_layout Plain Layout
21246 SumatraPDF -inverse-search "lyxeditor -g %f %l"
21247 \end_layout
21248
21249 \end_inset
21250
21251  in the viewer setting in 
21252 \begin_inset Flex Noun
21253 status collapsed
21254
21255 \begin_layout Plain Layout
21256 Preferences\SpecialChar menuseparator
21257 File Handling\SpecialChar menuseparator
21258 File formats\SpecialChar menuseparator
21259 PDF (pdflatex)
21260 \end_layout
21261
21262 \end_inset
21263
21264 .
21265  If SumatraPDF.exe is not in your command PATH, use its full posix path.
21266  The 
21267 \begin_inset Flex Code
21268 status collapsed
21269
21270 \begin_layout Plain Layout
21271 -g
21272 \end_layout
21273
21274 \end_inset
21275
21276  enables communication via the 
21277 \emph on
21278 lyxsocket
21279 \emph default
21280 .
21281  Again, omit the 
21282 \begin_inset Flex Code
21283 status collapsed
21284
21285 \begin_layout Plain Layout
21286 -g
21287 \end_layout
21288
21289 \end_inset
21290
21291  option if you want to use the 
21292 \emph on
21293 lyxpipe
21294 \emph default
21295 , and be sure to specify the \SpecialChar LyX
21296 Server pipe path in the \SpecialChar LyX
21297  preferences.
21298 \end_layout
21299
21300 \begin_layout Standard
21301 Reverse search is triggered by double-click.
21302 \end_layout
21303
21304 \begin_layout Section
21305 Forward search
21306 \end_layout
21307
21308 \begin_layout Standard
21309 Forward search is, as the name implies, in a sense the 
21310 \begin_inset Quotes eld
21311 \end_inset
21312
21313 opposite
21314 \begin_inset Quotes erd
21315 \end_inset
21316
21317  of reverse search.
21318  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
21319 .
21320  If forward search is set up (as described in what follows), you can put
21321  the cursor anywhere in your \SpecialChar LyX
21322  document, and hit 
21323 \begin_inset Flex Noun
21324 status collapsed
21325
21326 \begin_layout Plain Layout
21327 Navigate\SpecialChar menuseparator
21328 Forward search
21329 \end_layout
21330
21331 \end_inset
21332
21333  (or select 
21334 \begin_inset Flex Noun
21335 status collapsed
21336
21337 \begin_layout Plain Layout
21338 Forward search
21339 \end_layout
21340
21341 \end_inset
21342
21343  in the context menu via right mouse click), and then the viewer will jump
21344  to that position as well.
21345  This implies, of course, that your viewer supports this function.
21346 \end_layout
21347
21348 \begin_layout Standard
21349 To make forward search possible, you first need to provide the generated
21350  output PDF/DVI file with additional information about the \SpecialChar TeX
21351  sources.
21352  This can be done via the methods described in the section 
21353 \begin_inset CommandInset ref
21354 LatexCommand ref
21355 reference "subsec:rev-search"
21356
21357 \end_inset
21358
21359 .
21360 \end_layout
21361
21362 \begin_layout Standard
21363 Additionally, you need to configure \SpecialChar LyX
21364  for using your viewers in 
21365 \begin_inset Flex Noun
21366 status collapsed
21367
21368 \begin_layout Plain Layout
21369 Tools\SpecialChar menuseparator
21370 Preferences\SpecialChar menuseparator
21371 Output\SpecialChar menuseparator
21372 General
21373 \end_layout
21374
21375 \end_inset
21376
21377 .
21378  We provide a range of tested configurations for some viewers, which you
21379  can select from the drop down list.
21380  If none of these configurations suits you, you have to find out and enter
21381  a suitable configuration yourself.
21382  The definition syntax uses the following placeholders:
21383 \end_layout
21384
21385 \begin_layout Itemize
21386 \noindent
21387 \begin_inset Flex Code
21388 status collapsed
21389
21390 \begin_layout Plain Layout
21391 $$n
21392 \end_layout
21393
21394 \end_inset
21395
21396 : row number
21397 \end_layout
21398
21399 \begin_layout Itemize
21400 \noindent
21401 \begin_inset Flex Code
21402 status collapsed
21403
21404 \begin_layout Plain Layout
21405 $$t
21406 \end_layout
21407
21408 \end_inset
21409
21410 : name of the (temporary) exported .tex file (without path)
21411 \end_layout
21412
21413 \begin_layout Itemize
21414 \noindent
21415 \begin_inset Flex Code
21416 status collapsed
21417
21418 \begin_layout Plain Layout
21419 $$f
21420 \end_layout
21421
21422 \end_inset
21423
21424 : name of the (temporary) exported .tex file (including path)
21425 \end_layout
21426
21427 \begin_layout Itemize
21428 \noindent
21429 \begin_inset Flex Code
21430 status collapsed
21431
21432 \begin_layout Plain Layout
21433 $$o
21434 \end_layout
21435
21436 \end_inset
21437
21438 : name of the exported output file (either dvi or pdf, depending on which
21439  one exists in the temporary directory)
21440 \end_layout
21441
21442 \begin_layout Standard
21443 Note that only some of the viewers provide full and usable forward search
21444  functionality out of the box, among them yap, xdvi, okular
21445 \begin_inset Foot
21446 status collapsed
21447
21448 \begin_layout Plain Layout
21449 You might want to set 
21450 \begin_inset Flex Code
21451 status collapsed
21452
21453 \begin_layout Plain Layout
21454 okular --unique
21455 \end_layout
21456
21457 \end_inset
21458
21459  in 
21460 \begin_inset Flex Noun
21461 status collapsed
21462
21463 \begin_layout Plain Layout
21464 Tools\SpecialChar menuseparator
21465 Preferences\SpecialChar menuseparator
21466 File Handling\SpecialChar menuseparator
21467 File
21468 \begin_inset space ~
21469 \end_inset
21470
21471 Formats
21472 \end_layout
21473
21474 \end_inset
21475
21476
21477 \end_layout
21478
21479 \end_inset
21480
21481 , qpdfview, and SumatraPDF
21482 \begin_inset Foot
21483 status collapsed
21484
21485 \begin_layout Plain Layout
21486 SumatraPDF can also use DDE commands through the external program CMCDDE
21487  — downloadable from 
21488 \begin_inset CommandInset href
21489 LatexCommand href
21490 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
21491 literal "false"
21492
21493 \end_inset
21494
21495
21496 \end_layout
21497
21498 \end_inset
21499
21500 .
21501  Others, such as evince
21502 \begin_inset Foot
21503 status collapsed
21504
21505 \begin_layout Plain Layout
21506 Forward search with evince can be achieved by means of third party helper
21507  scripts.
21508  Please refer to 
21509 \begin_inset CommandInset href
21510 LatexCommand href
21511 target "https://wiki.lyx.org/LyX/SyncTeX"
21512 literal "false"
21513
21514 \end_inset
21515
21516  for details.
21517 \end_layout
21518
21519 \end_inset
21520
21521 , require some extra tools in order to use forward search.
21522  While many of the widespread PDF viewers (most notably Adobe Reader) do
21523  not support forward search at all, some other viewers – e.
21524 \begin_inset space \thinspace{}
21525 \end_inset
21526
21527 g.
21528  xpdf – allow at least to reload the document and jump to a specific page
21529  of the file, so you can at least navigate 
21530 \begin_inset Quotes eld
21531 \end_inset
21532
21533 near
21534 \begin_inset Quotes erd
21535 \end_inset
21536
21537 .
21538  This latter functionality is provided by an external call of synctex (see
21539  the predefined example configurations).
21540  
21541 \end_layout
21542
21543 \begin_layout Standard
21544 Forward search works both with DVI and PDF output.
21545  \SpecialChar LyX
21546  simply checks which preview format you have used before (i.
21547 \begin_inset space \thinspace{}
21548 \end_inset
21549
21550 e., which format is already there in the temporary directory) and chooses
21551  the appropriate configuration for the respective format.
21552 \end_layout
21553
21554 \begin_layout Chapter
21555
21556 \change_deleted 564990737 1671097409
21557 Special Document Classes
21558 \change_unchanged
21559
21560 \end_layout
21561
21562 \begin_layout Section
21563
21564 \change_deleted 564990737 1669742044
21565 A&A Paper
21566 \end_layout
21567
21568 \begin_layout Standard
21569
21570 \change_deleted 564990737 1669742044
21571 by 
21572 \noun on
21573 Peter Sütterlin
21574 \end_layout
21575
21576 \begin_layout Subsection
21577
21578 \change_deleted 564990737 1669742044
21579 Introduction
21580 \end_layout
21581
21582 \begin_layout Standard
21583
21584 \change_deleted 564990737 1669742044
21585 This section describes how \SpecialChar LyX
21586  can be used to write articles for submission
21587  to the scientific journal 
21588 \emph on
21589 Astronomy and Astrophysics
21590 \emph default
21591  (
21592 \begin_inset Flex URL
21593 status collapsed
21594
21595 \begin_layout Plain Layout
21596
21597 https://www.aanda.org/
21598 \end_layout
21599
21600 \end_inset
21601
21602 ) using Version 5.01 of the document class 
21603 \family typewriter
21604 aa.cls
21605 \family default
21606 .
21607  This package can be downloaded from the ftp site
21608 \end_layout
21609
21610 \begin_layout Standard
21611
21612 \change_deleted 564990737 1669742044
21613 \begin_inset VSpace medskip
21614 \end_inset
21615
21616
21617 \end_layout
21618
21619 \begin_layout Standard
21620 \align center
21621
21622 \change_deleted 564990737 1669742044
21623 \begin_inset Flex URL
21624 status collapsed
21625
21626 \begin_layout Plain Layout
21627
21628 ftp://ftp.edpsciences.org/pub/aa/readme.html
21629 \end_layout
21630
21631 \end_inset
21632
21633
21634 \end_layout
21635
21636 \begin_layout Standard
21637
21638 \change_deleted 564990737 1669742044
21639 \begin_inset VSpace medskip
21640 \end_inset
21641
21642
21643 \end_layout
21644
21645 \begin_layout Standard
21646
21647 \change_deleted 564990737 1669742044
21648 A manual comes together with that package, and this text is not meant to
21649  replace the original manual but is merely a short guide in how to realize
21650  the correct form of your paper.
21651  
21652 \end_layout
21653
21654 \begin_layout Standard
21655
21656 \change_deleted 564990737 1669742044
21657 Please note that the publisher of the journal was changed from Springer
21658  to EDP Sciences starting January 1, 2001.
21659  That change involved also some slight changes to the style files, namely
21660  the removal of the thesaurus command.
21661  The \SpecialChar LyX
21662  class aa supports the newest version of these style files, V 5.01.
21663  If you have an older version installed, please upgrade.
21664  For compatibility, the old (version 4) layout has been kept as 
21665 \family sans
21666 article (A&A V4)
21667 \family default
21668 .
21669  Please refer to the comments in 
21670 \family typewriter
21671 \SpecialChar LyX
21672 Dir/layouts/aapaper.layout
21673 \family default
21674 .
21675 \end_layout
21676
21677 \begin_layout Subsection
21678
21679 \change_deleted 564990737 1669742044
21680 Getting started
21681 \end_layout
21682
21683 \begin_layout Standard
21684
21685 \change_deleted 564990737 1669742044
21686 It is recommended you start from the example template distributed with \SpecialChar LyX
21687 .
21688  If you are not using a template, note the following settings:
21689 \end_layout
21690
21691 \begin_layout Itemize
21692
21693 \change_deleted 564990737 1669742044
21694 Select 
21695 \family sans
21696 article (A&A)
21697 \family default
21698  in the 
21699 \family sans
21700 Document\SpecialChar menuseparator
21701 Settings
21702 \family default
21703  dialog (OK, that one was obvious).
21704 \end_layout
21705
21706 \begin_layout Itemize
21707
21708 \change_deleted 564990737 1669742044
21709 Don't change the option 
21710 \family sans
21711 Page
21712 \begin_inset space ~
21713 \end_inset
21714
21715 style
21716 \family default
21717 : Leave it set to 
21718 \family sans
21719 default
21720 \family default
21721 .
21722  The whole layout is done by the macros, you shouldn't change anything.
21723 \end_layout
21724
21725 \begin_layout Subsection
21726
21727 \change_deleted 564990737 1669742044
21728 The header block
21729 \end_layout
21730
21731 \begin_layout Standard
21732
21733 \change_deleted 564990737 1669742044
21734 First thing to enter is the header information.
21735  It consists of seven entries, of which some are optional.
21736  They are
21737 \end_layout
21738
21739 \begin_layout Itemize
21740
21741 \change_deleted 564990737 1669742044
21742
21743 \family sans
21744 Title
21745 \family default
21746 : [required] 
21747 \end_layout
21748
21749 \begin_layout Itemize
21750
21751 \change_deleted 564990737 1669742044
21752
21753 \family sans
21754 Subtitle
21755 \family default
21756 : [optional] 
21757 \end_layout
21758
21759 \begin_layout Itemize
21760
21761 \change_deleted 564990737 1669742044
21762
21763 \family sans
21764 Author
21765 \family default
21766 : [required]
21767 \end_layout
21768
21769 \begin_layout Itemize
21770
21771 \change_deleted 564990737 1669742044
21772
21773 \family sans
21774 Address
21775 \family default
21776 : [required]
21777 \end_layout
21778
21779 \begin_layout Itemize
21780
21781 \change_deleted 564990737 1669742044
21782
21783 \family sans
21784 Offprints
21785 \family default
21786 : [optional] if more than one author: whom to contact for offprint requests.
21787 \end_layout
21788
21789 \begin_layout Itemize
21790
21791 \change_deleted 564990737 1669742044
21792
21793 \family sans
21794 Mail
21795 \family default
21796 : [optional] mail address for contacts.
21797 \end_layout
21798
21799 \begin_layout Itemize
21800
21801 \change_deleted 564990737 1669742044
21802
21803 \family sans
21804 Date
21805 \family default
21806 : [required].
21807  Suggested format is 
21808 \family typewriter
21809 Received: <date>; Accepted <date> 
21810 \end_layout
21811
21812 \begin_layout Standard
21813
21814 \change_deleted 564990737 1669742044
21815 There is no need to issue the 
21816 \family typewriter
21817
21818 \backslash
21819 maketitle
21820 \family default
21821  command, this is done automatically by \SpecialChar LyX
21822  when the header is finished.
21823  Although the order of the single header entries doesn't matter it is advised
21824  to keep the above sequence, just to get the best optics and meets the layout
21825  of the real document.
21826 \end_layout
21827
21828 \begin_layout Standard
21829
21830 \change_deleted 564990737 1669742044
21831 If you want to place footnotes in the header block, e.
21832 \begin_inset space \thinspace{}
21833 \end_inset
21834
21835 g.
21836 \begin_inset space \space{}
21837 \end_inset
21838
21839 to state your present address, just use the standard footnote via the menu
21840  
21841 \family sans
21842 Insert\SpecialChar menuseparator
21843 Footnote.
21844
21845 \family default
21846  \SpecialChar LyX
21847  will automagically use the term 
21848 \family typewriter
21849
21850 \backslash
21851 thanks{}
21852 \family default
21853  in that case.
21854 \end_layout
21855
21856 \begin_layout Standard
21857
21858 \change_deleted 564990737 1669742044
21859 Under 
21860 \family sans
21861 Edit\SpecialChar menuseparator
21862 Text Style
21863 \family default
21864 , you'll find two insets which are relevant for the titling:
21865 \end_layout
21866
21867 \begin_layout Itemize
21868
21869 \change_deleted 564990737 1669742044
21870
21871 \family sans
21872 Institute
21873 \family typewriter
21874  
21875 \family default
21876 to mark corresponding author\SpecialChar breakableslash
21877 institute pairs.
21878  The institutes are numbered sequentially as they appear in the 
21879 \family sans
21880 Address
21881 \family default
21882  field, so you have to put a marker to each author.
21883 \end_layout
21884
21885 \begin_layout Itemize
21886
21887 \change_deleted 564990737 1669742044
21888
21889 \family sans
21890 Email
21891 \family default
21892  to supply an email address for fast contact.
21893 \end_layout
21894
21895 \begin_layout Standard
21896
21897 \change_deleted 564990737 1669742044
21898 In addition to these topics, the macros use one additional \SpecialChar LaTeX
21899  command that
21900  has no counterpart in \SpecialChar LyX
21901 :
21902 \end_layout
21903
21904 \begin_layout Itemize
21905
21906 \change_deleted 564990737 1669742044
21907
21908 \family typewriter
21909
21910 \backslash
21911 and
21912 \family default
21913  to separate different names for more than one author and institute, respectivel
21914 y.
21915 \end_layout
21916
21917 \begin_layout Standard
21918
21919 \change_deleted 564990737 1669742044
21920 The appropriate command has to be entered in \SpecialChar LyX
21921  and marked as \SpecialChar LaTeX
21922  code.
21923  See the examples.
21924  
21925 \end_layout
21926
21927 \begin_layout Subsection
21928
21929 \change_deleted 564990737 1669742044
21930 The abstract
21931 \end_layout
21932
21933 \begin_layout Standard
21934
21935 \change_deleted 564990737 1669742044
21936 The abstract should immediately follow the header block.
21937  With version 5 the abstract environment was changed to a command, and there
21938  is now a restriction to only one paragraph.
21939  In addition, it should contain an entry with the keywords.
21940  This is done via the paragraph style 
21941 \family sans
21942 Keywords
21943 \family default
21944 .
21945  Refer to the example paper.
21946 \end_layout
21947
21948 \begin_layout Subsection
21949
21950 \change_deleted 564990737 1669742044
21951 Supported environments
21952 \end_layout
21953
21954 \begin_layout Standard
21955
21956 \change_deleted 564990737 1669742044
21957 The A&A paper layout supports the following environments for structuring
21958  your text:
21959 \end_layout
21960
21961 \begin_layout Itemize
21962
21963 \change_deleted 564990737 1669742044
21964
21965 \family sans
21966 Standard
21967 \end_layout
21968
21969 \begin_layout Itemize
21970
21971 \change_deleted 564990737 1669742044
21972
21973 \family sans
21974 Section
21975 \end_layout
21976
21977 \begin_layout Itemize
21978
21979 \change_deleted 564990737 1669742044
21980
21981 \family sans
21982 Subsection
21983 \end_layout
21984
21985 \begin_layout Itemize
21986
21987 \change_deleted 564990737 1669742044
21988
21989 \family sans
21990 Subsubsection
21991 \end_layout
21992
21993 \begin_layout Itemize
21994
21995 \change_deleted 564990737 1669742044
21996
21997 \family sans
21998 Itemize
21999 \end_layout
22000
22001 \begin_layout Itemize
22002
22003 \change_deleted 564990737 1669742044
22004
22005 \family sans
22006 Enumerate
22007 \end_layout
22008
22009 \begin_layout Itemize
22010
22011 \change_deleted 564990737 1669742044
22012
22013 \family sans
22014 Description
22015 \end_layout
22016
22017 \begin_layout Itemize
22018
22019 \change_deleted 564990737 1669742044
22020
22021 \family sans
22022 Caption
22023 \end_layout
22024
22025 \begin_layout Itemize
22026
22027 \change_deleted 564990737 1669742044
22028
22029 \family sans
22030 Abstract
22031 \end_layout
22032
22033 \begin_layout Itemize
22034
22035 \change_deleted 564990737 1669742044
22036
22037 \family sans
22038 Acknowledgment
22039 \end_layout
22040
22041 \begin_layout Itemize
22042
22043 \change_deleted 564990737 1669742044
22044
22045 \family sans
22046 Bibliography
22047 \end_layout
22048
22049 \begin_layout Itemize
22050
22051 \change_deleted 564990737 1669742044
22052
22053 \family sans
22054 \SpecialChar LaTeX
22055
22056 \end_layout
22057
22058 \begin_layout Subsection
22059
22060 \change_deleted 564990737 1669742044
22061 Commands not supported by \SpecialChar LyX
22062
22063 \end_layout
22064
22065 \begin_layout Standard
22066
22067 \change_deleted 564990737 1669742044
22068 Some commands are not yet supported by the 
22069 \family sans
22070 paper (A&A)
22071 \family default
22072  layout for \SpecialChar LyX
22073 .
22074  Some have already been mentioned.
22075  For the sake of completeness, they are listed all together here:
22076 \end_layout
22077
22078 \begin_layout Itemize
22079
22080 \change_deleted 564990737 1669742044
22081
22082 \family typewriter
22083
22084 \backslash
22085 and
22086 \end_layout
22087
22088 \begin_layout Itemize
22089
22090 \change_deleted 564990737 1669742044
22091
22092 \family typewriter
22093
22094 \backslash
22095 authorrunning
22096 \end_layout
22097
22098 \begin_layout Itemize
22099
22100 \change_deleted 564990737 1669742044
22101
22102 \family typewriter
22103
22104 \backslash
22105 object{}
22106 \end_layout
22107
22108 \begin_layout Itemize
22109
22110 \change_deleted 564990737 1669742044
22111
22112 \family typewriter
22113
22114 \backslash
22115 titlerunning{}
22116 \end_layout
22117
22118 \begin_layout Standard
22119
22120 \change_deleted 564990737 1669742044
22121 If you want to use any of these commands, you have to enter them yourself.
22122  
22123 \series bold
22124 Do not forget to mark them as \SpecialChar LaTeX
22125  code!
22126 \end_layout
22127
22128 \begin_layout Subsection
22129
22130 \change_deleted 564990737 1669742044
22131 Figure and Table Floats
22132 \end_layout
22133
22134 \begin_layout Standard
22135
22136 \change_deleted 564990737 1669742044
22137 \SpecialChar LyX
22138  provides support for the necessary float environments 
22139 \family sans
22140 figure, figure*, table
22141 \family default
22142  and 
22143 \family sans
22144 table*
22145 \family default
22146 , therefore we won't tell much about it here.
22147  Refer to the 
22148 \emph on
22149 User's
22150 \begin_inset space ~
22151 \end_inset
22152
22153 Guide
22154 \emph default
22155 .
22156  Just remember that tables should be left-aligned.
22157  For that, select the table and change the alignment in 
22158 \family sans
22159 Edit\SpecialChar menuseparator
22160 Paragraph
22161 \begin_inset space ~
22162 \end_inset
22163
22164 Settings.
22165 \end_layout
22166
22167 \begin_layout Standard
22168
22169 \change_deleted 564990737 1669742044
22170 There is only one special thing: the figures with caption besides the figure.
22171  To create such a figure, you have to do the following:
22172 \end_layout
22173
22174 \begin_layout Enumerate
22175
22176 \change_deleted 564990737 1669742044
22177 Create a wide figure float: 
22178 \family sans
22179 Insert\SpecialChar menuseparator
22180 Float\SpecialChar menuseparator
22181 Figure
22182 \family default
22183 , then right click in the figure and select 
22184 \family sans
22185 Span
22186 \begin_inset space ~
22187 \end_inset
22188
22189 columns
22190 \family default
22191 .
22192 \end_layout
22193
22194 \begin_layout Enumerate
22195
22196 \change_deleted 564990737 1669742044
22197 Enter your caption text.
22198 \end_layout
22199
22200 \begin_layout Enumerate
22201
22202 \change_deleted 564990737 1669742044
22203 Press 
22204 \family sans
22205 Return
22206 \family default
22207  to move the cursor above the caption.
22208 \end_layout
22209
22210 \begin_layout Enumerate
22211
22212 \change_deleted 564990737 1669742044
22213 Insert your figure
22214 \end_layout
22215
22216 \begin_layout Enumerate
22217
22218 \change_deleted 564990737 1669742044
22219 Position the cursor behind the figure and insert a horizontal fill: 
22220 \family sans
22221 Insert\SpecialChar menuseparator
22222 Special
22223 \begin_inset space ~
22224 \end_inset
22225
22226 Character\SpecialChar menuseparator
22227 Horizontal
22228 \begin_inset space ~
22229 \end_inset
22230
22231 Fill
22232 \family default
22233 .
22234 \end_layout
22235
22236 \begin_layout Enumerate
22237
22238 \change_deleted 564990737 1669742044
22239 Switch to \SpecialChar LaTeX
22240  mode: 
22241 \family sans
22242 M-c
22243 \begin_inset space ~
22244 \end_inset
22245
22246 t
22247 \family default
22248 .
22249 \end_layout
22250
22251 \begin_layout Enumerate
22252
22253 \change_deleted 564990737 1669742044
22254 Enter 
22255 \family typewriter
22256
22257 \backslash
22258 parbox[b]{55mm}{
22259 \family default
22260 .
22261  
22262 \series bold
22263 Do not close the brace!
22264 \end_layout
22265
22266 \begin_layout Enumerate
22267
22268 \change_deleted 564990737 1669742044
22269 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
22270  mode and insert
22271  the closing brace: 
22272 \family sans
22273 M-c
22274 \begin_inset space ~
22275 \end_inset
22276
22277 t
22278 \family default
22279  
22280 \family typewriter
22281 }
22282 \family default
22283 .
22284 \end_layout
22285
22286 \begin_layout Standard
22287
22288 \change_deleted 564990737 1669742044
22289 Also, refer to the figures in the example paper.
22290 \end_layout
22291
22292 \begin_layout Subsection
22293
22294 \change_deleted 564990737 1669742044
22295 Referee layout
22296 \end_layout
22297
22298 \begin_layout Standard
22299
22300 \change_deleted 564990737 1669742044
22301 For submission, the paper has to be formated in a special double-spacing
22302  layout.
22303  For this purpose, you have to give the option 
22304 \family typewriter
22305 referee
22306 \family default
22307  to the document class.
22308  This must be done using the custom class options field in the 
22309 \family sans
22310 Document\SpecialChar menuseparator
22311 Settings
22312 \family default
22313  dialog.
22314  Just enter the string 
22315 \family typewriter
22316 referee
22317 \family default
22318  there.
22319 \end_layout
22320
22321 \begin_layout Subsection
22322
22323 \change_deleted 564990737 1669742044
22324 The example paper
22325 \end_layout
22326
22327 \begin_layout Standard
22328
22329 \change_deleted 564990737 1669742044
22330 The 
22331 \family sans
22332 Examples
22333 \family default
22334  directory contains an example paper written with \SpecialChar LyX
22335 .
22336  It is the example paper from the original macro package, translated to
22337  \SpecialChar LyX
22338 .
22339  Use it for inspiration, and compare the original \SpecialChar LaTeX
22340  code with \SpecialChar LyX
22341  way of writing.
22342 \end_layout
22343
22344 \begin_layout Section
22345
22346 \change_deleted 564990737 1671097429
22347 Dinbrief
22348 \end_layout
22349
22350 \begin_layout Standard
22351
22352 \change_deleted 564990737 1671097429
22353 The document class 
22354 \family sans
22355 dinbrief
22356 \family default
22357  can be used to type letters according to German conventions.
22358  A template file is included in 
22359 \family typewriter
22360 .../lyx/share/templates
22361 \family default
22362  for you to use as a starting point.
22363 \end_layout
22364
22365 \begin_layout Section
22366
22367 \change_deleted 564990737 1671097429
22368 Elsevier Journals
22369 \end_layout
22370
22371 \begin_layout Standard
22372
22373 \change_deleted 564990737 1671097429
22374 See the \SpecialChar LyX
22375  template file 
22376 \family typewriter
22377 elsarticle.lyx
22378 \family default
22379 .
22380  It contains all infos you need.
22381 \end_layout
22382
22383 \begin_layout Section
22384
22385 \change_deleted 564990737 1669755802
22386 ijmpc and ijmpd
22387 \end_layout
22388
22389 \begin_layout Standard
22390
22391 \change_deleted 564990737 1669755802
22392 by 
22393 \noun on
22394 Panayotis Papasotiriou
22395 \end_layout
22396
22397 \begin_layout Subsection
22398
22399 \change_deleted 564990737 1669755802
22400 Overview
22401 \end_layout
22402
22403 \begin_layout Standard
22404
22405 \change_deleted 564990737 1669755802
22406 The ijmpc package is a set of macros that facilitates electronic manuscript
22407  submission to the 
22408 \emph on
22409 International Journal of Modern Physics C
22410 \emph default
22411 .
22412  Similarly, the ijmpd package is for creating manuscripts to be submitted
22413  to the 
22414 \emph on
22415 International Journal of Modern Physics D
22416 \emph default
22417 .
22418  Both journals are published by World Scientific.
22419  The corresponding document classes are named 
22420 \family typewriter
22421 ws-ijmpc.cls
22422 \family default
22423  and 
22424 \family typewriter
22425 ws-ijmpd.cls
22426 \family default
22427 , respectively.
22428  These files, together with instructions for the authors, can be downloaded
22429  from the sites 
22430 \begin_inset Flex URL
22431 status collapsed
22432
22433 \begin_layout Plain Layout
22434
22435 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
22436 \end_layout
22437
22438 \end_inset
22439
22440  and 
22441 \begin_inset Flex URL
22442 status collapsed
22443
22444 \begin_layout Plain Layout
22445
22446 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
22447 \end_layout
22448
22449 \end_inset
22450
22451 .
22452  Both packages are modified versions of the standard 
22453 \begin_inset Quotes eld
22454 \end_inset
22455
22456 article
22457 \begin_inset Quotes erd
22458 \end_inset
22459
22460  package, and they are almost (but not exactly) identical.
22461  Most of their features are supported by \SpecialChar LyX
22462 .
22463  I have used \SpecialChar LyX
22464  successfully to write articles submitted to both journals
22465  without any problem.
22466 \end_layout
22467
22468 \begin_layout Subsection
22469
22470 \change_deleted 564990737 1669755802
22471 Writing a paper
22472 \end_layout
22473
22474 \begin_layout Standard
22475
22476 \change_deleted 564990737 1669755802
22477 As usual, the easiest way to write a paper is to start with a template.
22478  Click on 
22479 \family sans
22480 File\SpecialChar menuseparator
22481 New from
22482 \family default
22483  
22484 \family sans
22485 Template
22486 \family default
22487 , then choose the 
22488 \family typewriter
22489 ijmpc.lyx
22490 \family default
22491  or 
22492 \family typewriter
22493 ijmpd.lyx
22494 \family default
22495  template.
22496  This will give an (almost) empty document that includes the most common
22497  fields found in a manuscript.
22498  Simply overwrite the existing text (including the brackets, 
22499 \family typewriter
22500 <>
22501 \family default
22502 ) with your text.
22503  You should keep in mind the following remarks.
22504 \end_layout
22505
22506 \begin_layout Enumerate
22507
22508 \change_deleted 564990737 1669755802
22509 \SpecialChar LyX
22510  won't let you change the font size and the page style of the document,
22511  because such modifications are not allowed by both packages.
22512 \end_layout
22513
22514 \begin_layout Enumerate
22515
22516 \change_deleted 564990737 1669755802
22517 The language of the document should not be changed.
22518  Before previewing your paper, be sure that the babel package is not used.
22519  To do this, click on 
22520 \begin_inset Info
22521 type  "menu"
22522 arg   "dialog-show document"
22523 \end_inset
22524
22525  
22526 \family sans
22527 \SpecialChar menuseparator
22528 Language
22529 \family default
22530 , and select 
22531 \begin_inset Quotes eld
22532 \end_inset
22533
22534 None
22535 \begin_inset Quotes erd
22536 \end_inset
22537
22538  as 
22539 \family sans
22540 Language Package
22541 \family default
22542 .
22543 \end_layout
22544
22545 \begin_layout Enumerate
22546
22547 \change_deleted 564990737 1669755802
22548 The 
22549 \begin_inset Quotes eld
22550 \end_inset
22551
22552 Keywords
22553 \begin_inset Quotes erd
22554 \end_inset
22555
22556  style must be used to define keywords.
22557 \end_layout
22558
22559 \begin_layout Enumerate
22560
22561 \change_deleted 564990737 1669755802
22562 The ijmpc package provides a style named 
22563 \begin_inset Quotes eld
22564 \end_inset
22565
22566 Classification Codes
22567 \begin_inset Quotes erd
22568 \end_inset
22569
22570 , which can be used to define classification codes, such as PACS numbers.
22571  Note that this facility is not supported by the ijmpd package.
22572 \end_layout
22573
22574 \begin_layout Enumerate
22575
22576 \change_deleted 564990737 1669755802
22577 Several new environments are available: 
22578 \begin_inset Quotes eld
22579 \end_inset
22580
22581 Definition
22582 \begin_inset Quotes erd
22583 \end_inset
22584
22585
22586 \begin_inset Quotes eld
22587 \end_inset
22588
22589 Step
22590 \begin_inset Quotes erd
22591 \end_inset
22592
22593
22594 \begin_inset Quotes eld
22595 \end_inset
22596
22597 Example
22598 \begin_inset Quotes erd
22599 \end_inset
22600
22601
22602 \begin_inset Quotes eld
22603 \end_inset
22604
22605 Remark
22606 \begin_inset Quotes erd
22607 \end_inset
22608
22609
22610 \begin_inset Quotes eld
22611 \end_inset
22612
22613 Notation
22614 \begin_inset Quotes erd
22615 \end_inset
22616
22617
22618 \begin_inset Quotes eld
22619 \end_inset
22620
22621 Theorem
22622 \begin_inset Quotes erd
22623 \end_inset
22624
22625
22626 \begin_inset Quotes eld
22627 \end_inset
22628
22629 Proof
22630 \begin_inset Quotes erd
22631 \end_inset
22632
22633
22634 \begin_inset Quotes eld
22635 \end_inset
22636
22637 Corollary
22638 \begin_inset Quotes erd
22639 \end_inset
22640
22641
22642 \begin_inset Quotes eld
22643 \end_inset
22644
22645 Lemma
22646 \begin_inset Quotes erd
22647 \end_inset
22648
22649
22650 \begin_inset Quotes eld
22651 \end_inset
22652
22653 Proposition
22654 \begin_inset Quotes erd
22655 \end_inset
22656
22657
22658 \begin_inset Quotes eld
22659 \end_inset
22660
22661 Prop
22662 \begin_inset Quotes erd
22663 \end_inset
22664
22665
22666 \begin_inset Quotes eld
22667 \end_inset
22668
22669 Question
22670 \begin_inset Quotes erd
22671 \end_inset
22672
22673
22674 \begin_inset Quotes eld
22675 \end_inset
22676
22677 Claim
22678 \begin_inset Quotes erd
22679 \end_inset
22680
22681 , and 
22682 \begin_inset Quotes eld
22683 \end_inset
22684
22685 Conjecture
22686 \begin_inset Quotes erd
22687 \end_inset
22688
22689 .
22690  Their use is more or less obvious.
22691  \SpecialChar LyX
22692  supports all these environments; it will use the proper label, text style,
22693  and numbering scheme for each of them.
22694 \end_layout
22695
22696 \begin_layout Enumerate
22697
22698 \change_deleted 564990737 1669755802
22699 Both packages use basic citations; the natbib package should not be used.
22700  In \SpecialChar LyX
22701 , citation references are shown as usual; in the output, citations are
22702  shown as superscripts.
22703  If you want to use a citation as normal text, you should use the 
22704 \family typewriter
22705 refcite
22706 \family default
22707  command, e.
22708 \begin_inset space \thinspace{}
22709 \end_inset
22710
22711 g.
22712 \begin_inset space \space{}
22713 \end_inset
22714
22715
22716 \begin_inset Quotes eld
22717 \end_inset
22718
22719 See Ref.
22720 \begin_inset space \space{}
22721 \end_inset
22722
22723
22724 \family typewriter
22725
22726 \backslash
22727 refcite{key}
22728 \family default
22729
22730 \begin_inset Quotes erd
22731 \end_inset
22732
22733 .
22734 \end_layout
22735
22736 \begin_layout Enumerate
22737
22738 \change_deleted 564990737 1669755802
22739 There is no 
22740 \begin_inset Quotes eld
22741 \end_inset
22742
22743 Acknowledgments
22744 \begin_inset Quotes erd
22745 \end_inset
22746
22747  section in both packages.
22748  To put acknowledgments, just use the 
22749 \begin_inset Quotes eld
22750 \end_inset
22751
22752 Section*
22753 \begin_inset Quotes erd
22754 \end_inset
22755
22756  environment.
22757 \end_layout
22758
22759 \begin_layout Enumerate
22760
22761 \change_deleted 564990737 1669755802
22762 Appendices may be added to the paper, 
22763 \emph on
22764 after
22765 \emph default
22766  the Acknowledgments and 
22767 \shape italic
22768 before
22769 \shape default
22770  the References.
22771  \SpecialChar LyX
22772  provides a special environment, called 
22773 \begin_inset Quotes eld
22774 \end_inset
22775
22776 Appendices Section
22777 \begin_inset Quotes erd
22778 \end_inset
22779
22780  which marks the beginning of the appendices.
22781  This environment should be left blank; it just sends a \SpecialChar LaTeX
22782  command, but nothing
22783  is really printed.
22784  In \SpecialChar LyX
22785 , the word 
22786 \begin_inset Quotes eld
22787 \end_inset
22788
22789 Appendix
22790 \begin_inset Quotes erd
22791 \end_inset
22792
22793  is printed with blue letters, as a signal that all sections after that
22794  point are appendices.
22795  To write an appendix, use the 
22796 \begin_inset Quotes eld
22797 \end_inset
22798
22799 Appendix
22800 \begin_inset Quotes erd
22801 \end_inset
22802
22803  environment.
22804  \SpecialChar LyX
22805  will number each appendix with capital letters, as required by both journals.
22806  Note that 
22807 \begin_inset Quotes eld
22808 \end_inset
22809
22810 Appendices Section
22811 \begin_inset Quotes erd
22812 \end_inset
22813
22814  
22815 \emph on
22816 must
22817 \emph default
22818  be present before the first appendix; if not, all appendices will be numbered
22819  as normal sections in the output.
22820 \end_layout
22821
22822 \begin_layout Enumerate
22823
22824 \change_deleted 564990737 1669755802
22825 The ijmpc and the ijmpd packages use the 
22826 \family typewriter
22827 tbl
22828 \family default
22829  command to implement table captions.
22830  As a result, a table created by \SpecialChar LyX
22831  is printed correctly, but its caption
22832  is ignored.
22833  However, you can use some \SpecialChar TeX
22834  code to overcome this problem, so that captions
22835  are printed as expected.
22836  To do so, create a float table as usual, remove the caption, and replace
22837  it with the \SpecialChar TeX
22838  code 
22839 \family typewriter
22840
22841 \backslash
22842 tbl{
22843 \emph on
22844 your table caption
22845 \emph default
22846 }{
22847 \family default
22848  (sic); you must also the \SpecialChar TeX
22849  code 
22850 \family typewriter
22851 }
22852 \family default
22853  immediately after the tabular material.
22854  Study the example table included in the template files to see how this
22855  trick is implemented.
22856  Alternatively, If you need table captions, you should implement the whole
22857  table float in a 
22858 \family typewriter
22859 .tex
22860 \family default
22861  file, then include this file to the \SpecialChar LyX
22862  document (
22863 \family sans
22864 Insert\SpecialChar menuseparator
22865 File\SpecialChar menuseparator
22866 Child
22867 \begin_inset space ~
22868 \end_inset
22869
22870 Document
22871 \family default
22872 ).
22873  Details on how to create a table float can be found in the files 
22874 \family typewriter
22875 ws-ijmpc.tex
22876 \family default
22877  and 
22878 \family typewriter
22879 ws-ijmpd.tex
22880 \family default
22881 , included in the corresponding packages.
22882 \end_layout
22883
22884 \begin_layout Subsection
22885
22886 \change_deleted 564990737 1669755802
22887 Preparing a paper for submission
22888 \end_layout
22889
22890 \begin_layout Standard
22891
22892 \change_deleted 564990737 1669755802
22893 Before you submit your paper you must export the \SpecialChar LyX
22894  document as a \SpecialChar LaTeX
22895  file (
22896 \family sans
22897 File\SpecialChar menuseparator
22898 Export\SpecialChar menuseparator
22899 \SpecialChar LaTeX
22900
22901 \family default
22902 )
22903 \begin_inset Foot
22904 status open
22905
22906 \begin_layout Plain Layout
22907 Actually you have the choice between \SpecialChar LaTeX
22908  (plain) and pdflatex.
22909  If you intend to use pdflatex to prepare the paper, you should use the
22910  pdflatex option so that included graphics are converted to PDF format,
22911  ready for use by pdflatex.
22912 \end_layout
22913
22914 \end_inset
22915
22916 , then make the following changes to the resulting 
22917 \family typewriter
22918 .tex
22919 \family default
22920  file.
22921 \end_layout
22922
22923 \begin_layout Enumerate
22924
22925 \change_deleted 564990737 1669755802
22926 Remove the comment lines before the 
22927 \family typewriter
22928
22929 \backslash
22930 documentclass
22931 \family default
22932  command.
22933 \end_layout
22934
22935 \begin_layout Enumerate
22936
22937 \change_deleted 564990737 1669755802
22938 Remove everything between (and including) the 
22939 \family typewriter
22940
22941 \backslash
22942 makeatletter
22943 \family default
22944  and 
22945 \family typewriter
22946
22947 \backslash
22948 makeatother
22949 \family default
22950  commands, except for any commands you specifically put into the \SpecialChar LaTeX
22951  preamble.
22952 \end_layout
22953
22954 \begin_layout Standard
22955
22956 \change_deleted 564990737 1669755802
22957 The modified 
22958 \family typewriter
22959 .tex
22960 \family default
22961  file should be saved and processed through \SpecialChar LaTeX
22962  as many times as necessary.
22963  You may also want to check the resulting 
22964 \family typewriter
22965 .dvi
22966 \family default
22967  document.
22968 \change_unchanged
22969
22970 \end_layout
22971
22972 \begin_layout Section
22973
22974 \change_deleted 564990737 1669801478
22975 iopart
22976 \end_layout
22977
22978 \begin_layout Standard
22979
22980 \change_deleted 564990737 1669801478
22981 by 
22982 \noun on
22983 Uwe Stöhr
22984 \end_layout
22985
22986 \begin_layout Subsection
22987
22988 \change_deleted 564990737 1669801478
22989 Overview
22990 \end_layout
22991
22992 \begin_layout Standard
22993
22994 \change_deleted 564990737 1669801478
22995 The iopart package provides a document class to create electronic manuscript
22996  submission to the journals published by the Institute of Physics.
22997  Instructions for the authors how to create a paper using the iopart class
22998  can be downloaded together with the iopart package from the site 
22999 \begin_inset Flex URL
23000 status collapsed
23001
23002 \begin_layout Plain Layout
23003
23004 ftp://ftp.iop.org/pub/journals/latex2e
23005 \end_layout
23006
23007 \end_inset
23008
23009 .
23010 \end_layout
23011
23012 \begin_layout Subsection
23013
23014 \change_deleted 564990737 1669801478
23015 Writing a paper
23016 \end_layout
23017
23018 \begin_layout Standard
23019
23020 \change_deleted 564990737 1669801478
23021 The easiest way to write a paper is to start with the template 
23022 \emph on
23023 IOP-article.lyx
23024 \emph default
23025  that is available via 
23026 \family sans
23027 File\SpecialChar menuseparator
23028 New From Template
23029 \family default
23030  The template explains how to use the special text environments.
23031  Here are the most important advices:
23032 \end_layout
23033
23034 \begin_layout Itemize
23035
23036 \change_deleted 564990737 1669801478
23037 To be able to compile your document to a PDF, PS, or DVI, ensure that the
23038  no AMS packages are loaded in 
23039 \family sans
23040 Document\SpecialChar menuseparator
23041 Settings\SpecialChar menuseparator
23042 Math Options
23043 \family default
23044 !
23045 \end_layout
23046
23047 \begin_layout Itemize
23048
23049 \change_deleted 564990737 1669801478
23050
23051 \size normal
23052 The title environment defines the kind of your paper.
23053  So use one of the following environments for the title:
23054 \end_layout
23055
23056 \begin_deeper
23057 \begin_layout Itemize
23058
23059 \change_deleted 564990737 1669801478
23060
23061 \family sans
23062 \size normal
23063 Title
23064 \family default
23065  for a Paper
23066 \end_layout
23067
23068 \begin_layout Itemize
23069
23070 \change_deleted 564990737 1669801478
23071
23072 \family sans
23073 \size normal
23074 Review
23075 \family default
23076  for a Review
23077 \end_layout
23078
23079 \begin_layout Itemize
23080
23081 \change_deleted 564990737 1669801478
23082
23083 \family sans
23084 \size normal
23085 Topical
23086 \family default
23087  for a Topical review
23088 \end_layout
23089
23090 \begin_layout Itemize
23091
23092 \change_deleted 564990737 1669801478
23093
23094 \family sans
23095 \size normal
23096 Comment
23097 \family default
23098  for a Comment
23099 \end_layout
23100
23101 \begin_layout Itemize
23102
23103 \change_deleted 564990737 1669801478
23104
23105 \family sans
23106 \size normal
23107 Note
23108 \family default
23109  for a Note
23110 \end_layout
23111
23112 \begin_layout Itemize
23113
23114 \change_deleted 564990737 1669801478
23115
23116 \family sans
23117 \size normal
23118 Paper
23119 \family default
23120  for a Paper (same as Title)
23121 \end_layout
23122
23123 \begin_layout Itemize
23124
23125 \change_deleted 564990737 1669801478
23126
23127 \family sans
23128 \size normal
23129 Prelim
23130 \family default
23131  for a Preliminary communication
23132 \end_layout
23133
23134 \begin_layout Itemize
23135
23136 \change_deleted 564990737 1669801478
23137
23138 \family sans
23139 \size normal
23140 Rapid
23141 \family default
23142  for a Rapid communication
23143 \end_layout
23144
23145 \begin_layout Itemize
23146
23147 \change_deleted 564990737 1669801478
23148
23149 \family sans
23150 \size normal
23151 Letter
23152 \family default
23153  for a Letter to the editor
23154 \end_layout
23155
23156 \end_deeper
23157 \begin_layout Itemize
23158
23159 \change_deleted 564990737 1669801478
23160
23161 \size normal
23162 All title environments except of 
23163 \family sans
23164 Letter
23165 \family default
23166  can have an optional short title.
23167 \end_layout
23168
23169 \begin_layout Itemize
23170
23171 \change_deleted 564990737 1669801478
23172 There is a general title environment 
23173 \family sans
23174 Article
23175 \family default
23176  which is not directly supported by \SpecialChar LyX
23177 .
23178  This can be used as \SpecialChar TeX
23179  code when your document doesn't fit into one of the
23180  other title types.
23181 \end_layout
23182
23183 \begin_layout Standard
23184
23185 \change_deleted 564990737 1669801478
23186 For more informations like hints for special table and formula formatting,
23187  look at the IOP author guidelines.
23188 \change_unchanged
23189
23190 \end_layout
23191
23192 \begin_layout Section
23193
23194 \change_deleted 564990737 1670317155
23195 Kluwer
23196 \end_layout
23197
23198 \begin_layout Standard
23199
23200 \change_deleted 564990737 1670317155
23201 by 
23202 \noun on
23203 Panayotis Papasotiriou
23204 \end_layout
23205
23206 \begin_layout Subsection
23207
23208 \change_deleted 564990737 1670317155
23209 Overview
23210 \end_layout
23211
23212 \begin_layout Standard
23213
23214 \change_deleted 564990737 1670317155
23215 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
23216  that facilitates electronic manuscript submission to the journals they
23217  publish.
23218  Most known of them (at least in my domain of interest) are 
23219 \emph on
23220 Astrophysics and Space Science
23221 \emph default
23222  and 
23223 \emph on
23224 Solar Physics
23225 \emph default
23226 , but there are many others (see a complete list at 
23227 \begin_inset Flex URL
23228 status collapsed
23229
23230 \begin_layout Plain Layout
23231
23232 http://www.wkap.nl/jrnllist.htm/JRNLHOME
23233 \end_layout
23234
23235 \end_inset
23236
23237 ).
23238  The Kluwer package may be downloaded from the site 
23239 \begin_inset Flex URL
23240 status collapsed
23241
23242 \begin_layout Plain Layout
23243
23244 http://www.wkap.nl/kaphtml.htm/STYLEFILES
23245 \end_layout
23246
23247 \end_inset
23248
23249 .
23250  A complete user guide is contained in that package (but it can also be
23251  downloaded separately).
23252 \end_layout
23253
23254 \begin_layout Standard
23255
23256 \change_deleted 564990737 1670317155
23257 \SpecialChar LyX
23258  supports many features of the package but not everything.
23259  However, the \SpecialChar TeX
23260  code needed is reduced to some 
23261 \begin_inset Quotes eld
23262 \end_inset
23263
23264 peculiar
23265 \begin_inset Quotes erd
23266 \end_inset
23267
23268  commands of the package (see
23269 \begin_inset space ~
23270 \end_inset
23271
23272
23273 \begin_inset CommandInset ref
23274 LatexCommand ref
23275 reference "subsec:kluwer_peculiarities"
23276
23277 \end_inset
23278
23279 ).
23280  I have recently used \SpecialChar LyX
23281  to write an article submitted to the 
23282 \emph on
23283 Astrophysics and Space Science
23284 \emph default
23285  without any problem.
23286 \end_layout
23287
23288 \begin_layout Subsection
23289
23290 \change_deleted 564990737 1670317155
23291 Writing a paper
23292 \end_layout
23293
23294 \begin_layout Standard
23295
23296 \change_deleted 564990737 1670317155
23297 The easiest way to write a paper is to start with the Kluwer template file.
23298  Click on 
23299 \family sans
23300 File\SpecialChar menuseparator
23301 New from
23302 \family default
23303  
23304 \family sans
23305 Template
23306 \family default
23307 , then choose the 
23308 \family typewriter
23309 kluwer.lyx
23310 \family default
23311  template.
23312  This will give an (almost) empty document that includes the most common
23313  fields found in a manuscript and a short description of their use.
23314  As in most templates, simply overwrite the existing text (including the
23315  brackets, 
23316 \family typewriter
23317 <>
23318 \family default
23319 ) with the correct information.
23320 \end_layout
23321
23322 \begin_layout Subsection
23323
23324 \change_deleted 564990737 1670317155
23325 Preparing a paper for submission
23326 \end_layout
23327
23328 \begin_layout Standard
23329
23330 \change_deleted 564990737 1670317155
23331 As in the AAS\SpecialChar TeX
23332  package, before you submit your paper to a journal you must
23333  
23334 \begin_inset Quotes eld
23335 \end_inset
23336
23337 postprocess
23338 \begin_inset Quotes erd
23339 \end_inset
23340
23341  it as follows.
23342 \end_layout
23343
23344 \begin_layout Enumerate
23345
23346 \change_deleted 564990737 1670317155
23347 Export your paper as a \SpecialChar LaTeX
23348  file.
23349  To do this, click on 
23350 \family sans
23351 File\SpecialChar menuseparator
23352 Export\SpecialChar menuseparator
23353 \SpecialChar LaTeX
23354
23355 \family default
23356 .
23357  
23358 \end_layout
23359
23360 \begin_layout Enumerate
23361
23362 \change_deleted 564990737 1670317155
23363 Edit the resulting 
23364 \family typewriter
23365 .tex
23366 \family default
23367  file with a text editor and make the following changes
23368 \end_layout
23369
23370 \begin_deeper
23371 \begin_layout Enumerate
23372
23373 \change_deleted 564990737 1670317155
23374 remove the comment lines before the 
23375 \family typewriter
23376
23377 \backslash
23378 documentclass
23379 \family default
23380  command,
23381 \end_layout
23382
23383 \begin_layout Enumerate
23384
23385 \change_deleted 564990737 1670317155
23386 remove everything between (and including) the 
23387 \family typewriter
23388
23389 \backslash
23390 makeatletter
23391 \family default
23392  and 
23393 \family typewriter
23394
23395 \backslash
23396 makeatother
23397 \family default
23398  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23399  preamble.
23400 \end_layout
23401
23402 \begin_layout Standard
23403
23404 \change_deleted 564990737 1670317155
23405 Save the resulting 
23406 \family typewriter
23407 .tex
23408 \family default
23409  file.
23410 \end_layout
23411
23412 \end_deeper
23413 \begin_layout Enumerate
23414
23415 \change_deleted 564990737 1670317155
23416 Run the 
23417 \family typewriter
23418 .tex
23419 \family default
23420  file through \SpecialChar LaTeX
23421  as many times as necessary (usually up to three).
23422 \end_layout
23423
23424 \begin_layout Enumerate
23425
23426 \change_deleted 564990737 1670317155
23427 View the resulting 
23428 \family typewriter
23429 .dvi
23430 \family default
23431  document using, e.
23432 \begin_inset space \thinspace{}
23433 \end_inset
23434
23435 g.
23436 \begin_inset space \space{}
23437 \end_inset
23438
23439
23440 \family sans
23441 xdvi
23442 \family default
23443 , and check if everything is OK (it should, if you didn't make any mistake).
23444 \end_layout
23445
23446 \begin_layout Subsection
23447
23448 \change_deleted 564990737 1670317155
23449 \begin_inset Quotes eld
23450 \end_inset
23451
23452 Peculiarities
23453 \begin_inset Quotes erd
23454 \end_inset
23455
23456  of the Kluwer package
23457 \begin_inset CommandInset label
23458 LatexCommand label
23459 name "subsec:kluwer_peculiarities"
23460
23461 \end_inset
23462
23463
23464 \end_layout
23465
23466 \begin_layout Standard
23467
23468 \change_deleted 564990737 1670317155
23469 The Kluwer package has the following 
23470 \begin_inset Quotes eld
23471 \end_inset
23472
23473 peculiarities
23474 \begin_inset Quotes erd
23475 \end_inset
23476
23477 .
23478 \end_layout
23479
23480 \begin_layout Enumerate
23481
23482 \change_deleted 564990737 1670317155
23483 It is possible to write multiple articles in the same \SpecialChar LaTeX
23484  file
23485 \begin_inset Foot
23486 status collapsed
23487
23488 \begin_layout Plain Layout
23489 I can't imagine any good reason to do this.
23490 \end_layout
23491
23492 \end_inset
23493
23494 .
23495  Each article must be included in the environment 
23496 \begin_inset Quotes eld
23497 \end_inset
23498
23499 article
23500 \begin_inset Quotes erd
23501 \end_inset
23502
23503 .
23504  Unfortunately, this environment cannot be omitted, even if you write just
23505  one article.
23506  Therefore, each article starts with the command 
23507 \family typewriter
23508
23509 \backslash
23510 begin{article}
23511 \family default
23512  and, obviously, ends with the command 
23513 \family typewriter
23514
23515 \backslash
23516 end{article}
23517 \family default
23518 .
23519  Although this can be implemented in \SpecialChar LyX
23520 , I didn't included it, since it looks
23521  ugly and can confuse the novice user.
23522  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
23523  code (the
23524  well-known 
23525 \begin_inset Quotes eld
23526 \end_inset
23527
23528 \SpecialChar TeX
23529  code
23530 \begin_inset Quotes erd
23531 \end_inset
23532
23533 ).
23534 \end_layout
23535
23536 \begin_layout Enumerate
23537
23538 \change_deleted 564990737 1670317155
23539 Information given at the beginning of the article (i.
23540 \begin_inset space \thinspace{}
23541 \end_inset
23542
23543 e.
23544 \begin_inset space \space{}
23545 \end_inset
23546
23547 title, subtitle, author, institution, running title, running author, abstract
23548  and keywords) must be included in an environment called 
23549 \begin_inset Quotes eld
23550 \end_inset
23551
23552 opening
23553 \begin_inset Quotes erd
23554 \end_inset
23555
23556 .
23557  This is not implemented in \SpecialChar LyX
23558 , so you must enter title, subtitle etc.
23559 \begin_inset space ~
23560 \end_inset
23561
23562 between two \SpecialChar TeX
23563  code lines (
23564 \family typewriter
23565
23566 \backslash
23567 begin{opening}
23568 \family default
23569  and 
23570 \family typewriter
23571
23572 \backslash
23573 end{opening}
23574 \family default
23575 ).
23576 \end_layout
23577
23578 \begin_layout Enumerate
23579
23580 \change_deleted 564990737 1670317155
23581 According to the user manual, the label of each bibliography item must be
23582  written as 
23583 \family typewriter
23584
23585 \backslash
23586 protect
23587 \backslash
23588 citeauthoryear{
23589 \family default
23590 \emph on
23591 author(s)
23592 \family typewriter
23593 \emph default
23594 }{
23595 \family default
23596 \emph on
23597 year
23598 \family typewriter
23599 \emph default
23600 }
23601 \family default
23602 .
23603 \end_layout
23604
23605 \begin_layout Standard
23606
23607 \change_deleted 564990737 1670317155
23608 The 
23609 \family typewriter
23610 kluwer.lyx
23611 \family default
23612  template takes care of all these 
23613 \begin_inset Quotes eld
23614 \end_inset
23615
23616 peculiarities
23617 \begin_inset Quotes erd
23618 \end_inset
23619
23620 .
23621  If you start a new paper using this template you don't need to do anything
23622  special.
23623  Just 
23624 \end_layout
23625
23626 \begin_layout Enumerate
23627
23628 \change_deleted 564990737 1670317155
23629 don't delete the \SpecialChar TeX
23630  code included in the template, and
23631 \end_layout
23632
23633 \begin_layout Enumerate
23634
23635 \change_deleted 564990737 1670317155
23636 copy the example bibliography item included in the template and modify it
23637  as necessary to enter new bibliography items.
23638 \end_layout
23639
23640 \begin_layout Section
23641
23642 \change_deleted 564990737 1671097446
23643 Paper
23644 \end_layout
23645
23646 \begin_layout Standard
23647
23648 \change_deleted 564990737 1671097446
23649 The document class 
23650 \family sans
23651 paper
23652 \family default
23653  provides an alternative to the standard 
23654 \family sans
23655 article
23656 \family default
23657  class.
23658  It provides similar functionality, but you might prefer this layout with
23659  sans serif sections, headings, and more.
23660 \end_layout
23661
23662 \begin_layout Section
23663
23664 \change_deleted 564990737 1671097446
23665 Springer Journals (
23666 \family sans
23667 svjour
23668 \family default
23669 )
23670 \end_layout
23671
23672 \begin_layout Standard
23673
23674 \change_deleted 564990737 1671097446
23675 by 
23676 \noun on
23677 Martin Vermeer
23678 \end_layout
23679
23680 \begin_layout Subsection
23681
23682 \change_deleted 564990737 1671097446
23683 Description
23684 \end_layout
23685
23686 \begin_layout Standard
23687
23688 \change_deleted 564990737 1671097446
23689 These are the layout files for some of the journal formats used by Springer
23690  Verlag and listed on 
23691 \begin_inset Flex URL
23692 status collapsed
23693
23694 \begin_layout Plain Layout
23695
23696 http://www.springer.de/author/tex/help-journals.html
23697 \end_layout
23698
23699 \end_inset
23700
23701 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
23702  now!).
23703  It is a modular system: the things common to all journals are implemented
23704  in 
23705 \family typewriter
23706 svjour.inc
23707 \family default
23708 , which journal-specific layout files (such as, e.
23709 \begin_inset space \thinspace{}
23710 \end_inset
23711
23712 g.
23713 \begin_inset space \space{}
23714 \end_inset
23715
23716
23717 \family typewriter
23718 svjog.layout
23719 \family default
23720  for Journal of Geodesy) can include.
23721 \end_layout
23722
23723 \begin_layout Standard
23724
23725 \change_deleted 564990737 1671097446
23726 This means that implementing support for any other Springer journal on this
23727  list is as simple as writing your own 
23728 \family typewriter
23729 sv
23730 \family default
23731 <myjournal>
23732 \family typewriter
23733 .layout
23734 \family default
23735  file following the outline given in 
23736 \family typewriter
23737 svjog.layout
23738 \family default
23739 .
23740  
23741 \end_layout
23742
23743 \begin_layout Standard
23744
23745 \change_deleted 564990737 1671097446
23746 It is reasonably well tested only for the Journal of Geodesy.
23747  
23748 \family typewriter
23749 svjour
23750 \family default
23751  and 
23752 \family typewriter
23753 svjog
23754 \family default
23755  come with the standard \SpecialChar LyX
23756  distribution.
23757  Install the relevant class file (downloaded from Springer) in a proper
23758  directory, reconfigure \SpecialChar LaTeX
23759  (in the te\SpecialChar TeX
23760  case by running 
23761 \family typewriter
23762 texhash
23763 \family default
23764 , as root if necessary — doesn't \SpecialChar LyX
23765  take care of this?), reconfigure \SpecialChar LyX
23766  and
23767  it should work.
23768 \end_layout
23769
23770 \begin_layout Subsection
23771
23772 \change_deleted 564990737 1671097446
23773 New styles
23774 \end_layout
23775
23776 \begin_layout Standard
23777
23778 \change_deleted 564990737 1671097446
23779 A large number of theorem-like styles — 
23780 \family sans
23781 Claim, Conjecture,
23782 \family default
23783  
23784 \family sans
23785 \SpecialChar ldots
23786 Theorem
23787 \family default
23788 .
23789 \end_layout
23790
23791 \begin_layout Standard
23792
23793 \change_deleted 564990737 1671097446
23794
23795 \family sans
23796 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
23797 _Title, Author_Running, Institute,
23798  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
23799 \family default
23800 .
23801  See the Springer class file documentation for details.
23802 \end_layout
23803
23804 \begin_layout Subsection
23805
23806 \change_deleted 564990737 1671097446
23807 Supported journals
23808 \end_layout
23809
23810 \begin_layout Itemize
23811
23812 \change_deleted 564990737 1671097446
23813
23814 \emph on
23815 Journal of Geodesy
23816 \emph default
23817
23818 \family typewriter
23819 svjog.layout
23820 \family default
23821  — Martin Vermeer
23822 \end_layout
23823
23824 \begin_layout Itemize
23825
23826 \change_deleted 564990737 1671097446
23827
23828 \emph on
23829 Probability Theory and Related Fields
23830 \emph default
23831
23832 \family typewriter
23833 svprobth.layout
23834 \family default
23835  — Jean-Marc Lasgouttes
23836 \end_layout
23837
23838 \begin_layout Standard
23839
23840 \change_deleted 564990737 1671097446
23841 Add your own, it isn't so hard!
23842 \end_layout
23843
23844 \begin_layout Subsection
23845
23846 \change_deleted 564990737 1671097446
23847 Credits
23848 \end_layout
23849
23850 \begin_layout Standard
23851
23852 \change_deleted 564990737 1671097446
23853 These files are partly based on the older 
23854 \family typewriter
23855 ejour2.layout
23856 \family default
23857 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
23858  2.09 style
23859  file from Springer.
23860  All this, and the 
23861 \family typewriter
23862 ejour2
23863 \family default
23864  layout, are now defunct.
23865  Jean-Marc Lasgouttes helped out big in making me find my way around the
23866  \SpecialChar LyX
23867  layout file mechanism.
23868 \end_layout
23869
23870 \begin_layout Subsection
23871
23872 \change_deleted 564990737 1671097446
23873 Bugs
23874 \end_layout
23875
23876 \begin_layout Standard
23877
23878 \change_deleted 564990737 1671097446
23879 Probably.
23880  But probably less than in the old hacked-\SpecialChar LaTeX
23881  
23882 \family typewriter
23883 ejour2
23884 \family default
23885 .
23886 \end_layout
23887
23888 \begin_layout Chapter
23889 \SpecialChar LyX
23890  Features needing Extra Software
23891 \end_layout
23892
23893 \begin_layout Section
23894 Checking \SpecialChar TeX
23895
23896 \end_layout
23897
23898 \begin_layout Standard
23899 by 
23900 \noun on
23901 Asger Alstrup
23902 \end_layout
23903
23904 \begin_layout Subsection
23905 Introduction
23906 \end_layout
23907
23908 \begin_layout Standard
23909 If you have the 
23910 \family typewriter
23911 chktex
23912 \family default
23913  program installed
23914 \begin_inset Foot
23915 status collapsed
23916
23917 \begin_layout Plain Layout
23918
23919 \family typewriter
23920 chktex
23921 \family default
23922  is not yet available when you are using the \SpecialChar LaTeX
23923  distribution MiK\SpecialChar TeX
23924 .
23925 \end_layout
23926
23927 \end_inset
23928
23929 , you'll find in the 
23930 \family sans
23931 Tools
23932 \family default
23933  menu the entry: 
23934 \family sans
23935 Check
23936 \begin_inset space ~
23937 \end_inset
23938
23939 TeX
23940 \family default
23941 .
23942  You can get 
23943 \family typewriter
23944 chktex
23945 \family default
23946  from CTAN,
23947 \begin_inset Newline newline
23948 \end_inset
23949
23950
23951 \begin_inset CommandInset href
23952 LatexCommand href
23953 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
23954 literal "false"
23955
23956 \end_inset
23957
23958 .
23959 \end_layout
23960
23961 \begin_layout Standard
23962 The 
23963 \family sans
23964 Chk\SpecialChar TeX
23965
23966 \family default
23967  package is a program that was written by 
23968 \begin_inset Flex Noun
23969 status collapsed
23970
23971 \begin_layout Plain Layout
23972 Jens T.
23973 \begin_inset space ~
23974 \end_inset
23975
23976 Berger Thielemann
23977 \end_layout
23978
23979 \end_inset
23980
23981  in frustration because some constructs in \SpecialChar LaTeX
23982  are sometimes non-intuitive,
23983  and easy to forget.
23984  The program runs over your \SpecialChar LaTeX
23985  file, checks the integrity of the file, and
23986  flags some common errors.
23987  In other technical words, it is 
23988 \family typewriter
23989 lint
23990 \family default
23991  for \SpecialChar LaTeX
23992 .
23993 \end_layout
23994
23995 \begin_layout Standard
23996 Well, what is a syntax checker doing in \SpecialChar LyX
23997  which is supposed to produce correct
23998  \SpecialChar LaTeX
23999  anyways? The answer is simple: Just as 
24000 \family typewriter
24001 Lint
24002 \family default
24003  not only checks the 
24004 \emph on
24005 syntax
24006 \emph default
24007  of C programs, but also does 
24008 \emph on
24009 semantic
24010 \emph default
24011  checks for type-errors, 
24012 \family sans
24013 Chk\SpecialChar TeX
24014
24015 \family default
24016  catches some common 
24017 \emph on
24018 typographic
24019 \emph default
24020  errors, in addition to the syntactical ones.
24021  Specifically, 
24022 \family sans
24023 Chk\SpecialChar TeX
24024
24025 \family default
24026  is capable of detecting several common errors, such as
24027 \end_layout
24028
24029 \begin_layout Itemize
24030 Ellipsis detection:
24031 \begin_inset Newline newline
24032 \end_inset
24033
24034 Use \SpecialChar ldots
24035  instead of ...
24036 \end_layout
24037
24038 \begin_layout Itemize
24039 No space in front of/after parenthesis:
24040 \begin_inset Newline newline
24041 \end_inset
24042
24043 ( wrong spacing )
24044 \end_layout
24045
24046 \begin_layout Itemize
24047 Enforcement of normal space after common abbreviations:
24048 \begin_inset Newline newline
24049 \end_inset
24050
24051 e.
24052 \begin_inset space \thinspace{}
24053 \end_inset
24054
24055 g.
24056 \begin_inset space \space{}
24057 \end_inset
24058
24059 is too wide spacing.
24060 \end_layout
24061
24062 \begin_layout Itemize
24063 Enforcement of end-of-sentence space when the last sentence ends with a
24064  capital letter:
24065 \begin_inset Newline newline
24066 \end_inset
24067
24068 This is a TEST.
24069  And this is wrong spacing.
24070 \end_layout
24071
24072 \begin_layout Itemize
24073 Space in front of labels and similar commands:
24074 \begin_inset Newline newline
24075 \end_inset
24076
24077 The label should stick right up to the text to avoid falling to a wrong
24078  page.
24079  
24080 \begin_inset CommandInset label
24081 LatexCommand label
24082 name "sec:chktex"
24083
24084 \end_inset
24085
24086  
24087 \begin_inset Foot
24088 status collapsed
24089
24090 \begin_layout Plain Layout
24091 This footnote is in danger of falling off to a wrong page
24092 \end_layout
24093
24094 \end_inset
24095
24096  The label is separated too much.
24097 \end_layout
24098
24099 \begin_layout Itemize
24100 Space in front of references, instead of hard spaces:
24101 \begin_inset Newline newline
24102 \end_inset
24103
24104 If you have bad luck, the text will break right between the referenced text
24105  and reference number, and that's a pity.
24106  See section 
24107 \begin_inset CommandInset ref
24108 LatexCommand ref
24109 reference "sec:chktex"
24110
24111 \end_inset
24112
24113 .
24114 \end_layout
24115
24116 \begin_layout Itemize
24117 Use of 
24118 \begin_inset Quotes eld
24119 \end_inset
24120
24121 x
24122 \begin_inset Quotes erd
24123 \end_inset
24124
24125  instead of 
24126 \begin_inset Formula $\times$
24127 \end_inset
24128
24129  between numbers:
24130 \begin_inset Newline newline
24131 \end_inset
24132
24133 2x2 looks cheap compared to 
24134 \begin_inset Formula $2\times2$
24135 \end_inset
24136
24137 .
24138 \end_layout
24139
24140 \begin_layout Standard
24141 and more \SpecialChar ldots
24142  It is an invaluable tool when you are 
24143 \begin_inset Quotes eld
24144 \end_inset
24145
24146 finishing up
24147 \begin_inset Quotes erd
24148 \end_inset
24149
24150  your document before printing, and you should run it right after the obligatory
24151  spelling check, and before you go fine tuning the typesetting.
24152 \end_layout
24153
24154 \begin_layout Subsection
24155 How to use it
24156 \end_layout
24157
24158 \begin_layout Standard
24159 If you have the program installed, usage is as simple as choosing 
24160 \family sans
24161 Tools\SpecialChar menuseparator
24162 Check
24163 \begin_inset space ~
24164 \end_inset
24165
24166 TeX
24167 \family default
24168 .
24169  This will make \SpecialChar LyX
24170  generate a \SpecialChar LaTeX
24171  file of your document, start 
24172 \family sans
24173 Chk\SpecialChar TeX
24174
24175 \family default
24176  to check it, and then make \SpecialChar LyX
24177  insert 
24178 \begin_inset Quotes eld
24179 \end_inset
24180
24181 error boxes
24182 \begin_inset Quotes erd
24183 \end_inset
24184
24185  with the warnings from 
24186 \family sans
24187 Chk\SpecialChar TeX
24188
24189 \family default
24190 , if there were any.
24191  The warnings will be placed close to the point of the mistake, and you
24192  can quickly find them by using the 
24193 \family sans
24194 Navigate\SpecialChar menuseparator
24195 Error
24196 \family default
24197  menu item, or the shortcut key 
24198 \family sans
24199 C-g
24200 \family default
24201  from the default 
24202 \family typewriter
24203 cua
24204 \family default
24205  bind file.
24206  Open the error boxes by clicking on them with the mouse, or use the shortcut
24207  key 
24208 \family sans
24209 C-i
24210 \family default
24211  from 
24212 \family typewriter
24213 cua
24214 \family default
24215  bindings, or the corresponding 
24216 \family sans
24217 C-o
24218 \family default
24219  for the alternate 
24220 \family typewriter
24221 emacs
24222 \family default
24223  bind file.
24224  Read the warning and correct the mistake, if it is a mistake.
24225  If you have trouble understanding what the warning is about, you can safely
24226  ignore it.
24227  Remember that there is a hidden layer between the document on screen and
24228  the technical details in invoking 
24229 \family sans
24230 Chk\SpecialChar TeX
24231
24232 \family default
24233 , and this gap can make some warnings seem arcane or just plain silly.
24234 \end_layout
24235
24236 \begin_layout Standard
24237 This document is an excellent testing bed for the feature, and it should
24238  provide quite a few warnings for you to fiddle with.
24239  Since computers are only so smart, expect most of the warnings to be false
24240  alarms, though.
24241 \end_layout
24242
24243 \begin_layout Subsection
24244 How to fine tune it
24245 \end_layout
24246
24247 \begin_layout Standard
24248 Sometimes, you'll find that 
24249 \family sans
24250 Chk\SpecialChar TeX
24251
24252 \family default
24253  makes more noise than suits your mood.
24254  Then you can choose not to use it, wait until your mood changes, or try
24255  to customize 
24256 \family sans
24257 Chk\SpecialChar TeX
24258
24259 \family default
24260  to get better along with you.
24261 \end_layout
24262
24263 \begin_layout Standard
24264 Although 
24265 \family sans
24266 Chk\SpecialChar TeX
24267
24268 \family default
24269  
24270 \emph on
24271 is
24272 \emph default
24273  very configurable and extensible, you should not expect to solve all problems
24274  with 
24275 \family sans
24276 Chk\SpecialChar TeX
24277
24278 \family default
24279  in \SpecialChar LyX
24280  this way.
24281  Since \SpecialChar LyX
24282  has to generate a somewhat special \SpecialChar LaTeX
24283  file to be able to match the
24284  line numbers from the 
24285 \family sans
24286 Chk\SpecialChar TeX
24287
24288 \family default
24289  output
24290 \begin_inset Foot
24291 status collapsed
24292
24293 \begin_layout Plain Layout
24294 You can inspect the specific output from 
24295 \family sans
24296 chktex
24297 \family default
24298  by using 
24299 \family sans
24300 Document\SpecialChar menuseparator
24301 \SpecialChar LaTeX
24302
24303 \begin_inset space ~
24304 \end_inset
24305
24306 Log
24307 \family default
24308  right after a 
24309 \family sans
24310 chktex
24311 \family default
24312  run.
24313 \end_layout
24314
24315 \end_inset
24316
24317  to the internal document structure, some of the warnings will not appear
24318  correctly.
24319  There are two things you can do about this:
24320 \end_layout
24321
24322 \begin_layout Itemize
24323 Fine tune the 
24324 \family sans
24325 Chk\SpecialChar TeX
24326
24327 \family default
24328  invocation command line in 
24329 \begin_inset Flex Noun
24330 status collapsed
24331
24332 \begin_layout Plain Layout
24333 Tools\SpecialChar menuseparator
24334 Preferences\SpecialChar menuseparator
24335 Output\SpecialChar menuseparator
24336 LaTeX\SpecialChar menuseparator
24337 CheckTeX command
24338 \end_layout
24339
24340 \end_inset
24341
24342 , or the global 
24343 \family sans
24344 Chk\SpecialChar TeX
24345
24346 \family default
24347  installation configuration file (usually with the file 
24348 \family typewriter
24349 chktexrc
24350 \family default
24351 ).
24352  See below to learn what warnings can be enabled and disabled on the command
24353  line.
24354 \end_layout
24355
24356 \begin_layout Itemize
24357 Export your document as a raw \SpecialChar LaTeX
24358  file using 
24359 \family sans
24360 File\SpecialChar menuseparator
24361 Export\SpecialChar menuseparator
24362 \SpecialChar LaTeX
24363
24364 \family default
24365  and run 
24366 \family typewriter
24367 chktex
24368 \family default
24369  manually on that.
24370  Invoked in this way, it can be a hassle to find the corresponding place
24371  in the document inside \SpecialChar LyX
24372 , but with a little patience, you should be able
24373  to do it.
24374 \end_layout
24375
24376 \begin_layout Standard
24377 Here follows the warning messages that can be enabled and disabled in 
24378 \family sans
24379 Preferences
24380 \family default
24381 .
24382  Use 
24383 \family typewriter
24384 -n#
24385 \family default
24386  to disable a warning, and 
24387 \family typewriter
24388 -w#
24389 \family default
24390  to enable a warning.
24391  The emphasized entries are disabled by default, because the default is
24392  "
24393 \family typewriter
24394 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
24395 \family default
24396 ".
24397 \end_layout
24398
24399 \begin_layout Standard
24400 Notice that you should only use the options that enable and disable warnings,
24401  because \SpecialChar LyX
24402  relies on some of the other command line parameters to be set
24403  in a specific way to have a chance to communicate with 
24404 \family typewriter
24405 chktex
24406 \family default
24407 .
24408 \end_layout
24409
24410 \begin_layout Enumerate
24411
24412 \size small
24413 \emph on
24414 Command terminated with space.
24415 \end_layout
24416
24417 \begin_layout Enumerate
24418
24419 \size small
24420 Non-breaking space (
24421 \begin_inset Quotes eld
24422 \end_inset
24423
24424
24425 \family typewriter
24426 ~
24427 \family default
24428
24429 \begin_inset Quotes erd
24430 \end_inset
24431
24432 ) should have been used.
24433 \end_layout
24434
24435 \begin_layout Enumerate
24436
24437 \size small
24438 \emph on
24439 You should enclose the previous parenthesis with 
24440 \begin_inset Quotes eld
24441 \end_inset
24442
24443
24444 \family typewriter
24445 {}
24446 \family default
24447
24448 \begin_inset Quotes erd
24449 \end_inset
24450
24451 .
24452 \end_layout
24453
24454 \begin_layout Enumerate
24455
24456 \size small
24457 Italic correction (
24458 \begin_inset Quotes eld
24459 \end_inset
24460
24461
24462 \family typewriter
24463
24464 \backslash
24465 /
24466 \family default
24467
24468 \begin_inset Quotes erd
24469 \end_inset
24470
24471 ) found in non-italic buffer.
24472 \end_layout
24473
24474 \begin_layout Enumerate
24475
24476 \size small
24477 Italic correction (
24478 \begin_inset Quotes eld
24479 \end_inset
24480
24481
24482 \family typewriter
24483
24484 \backslash
24485 /
24486 \family default
24487
24488 \begin_inset Quotes erd
24489 \end_inset
24490
24491 ) found more than once.
24492 \end_layout
24493
24494 \begin_layout Enumerate
24495
24496 \size small
24497 \emph on
24498 No italic correction (
24499 \begin_inset Quotes eld
24500 \end_inset
24501
24502
24503 \family typewriter
24504
24505 \backslash
24506 /
24507 \family default
24508
24509 \begin_inset Quotes erd
24510 \end_inset
24511
24512 ) found.
24513 \end_layout
24514
24515 \begin_layout Enumerate
24516
24517 \size small
24518 Accent command 
24519 \begin_inset Quotes eld
24520 \end_inset
24521
24522
24523 \family typewriter
24524 cmd
24525 \family default
24526
24527 \begin_inset Quotes erd
24528 \end_inset
24529
24530  needs use of 
24531 \begin_inset Quotes eld
24532 \end_inset
24533
24534
24535 \family typewriter
24536 cmd
24537 \family default
24538
24539 \begin_inset Quotes erd
24540 \end_inset
24541
24542 .
24543 \end_layout
24544
24545 \begin_layout Enumerate
24546
24547 \size small
24548 Wrong length of dash may have been used.
24549 \end_layout
24550
24551 \begin_layout Enumerate
24552
24553 \size small
24554 \emph on
24555 \begin_inset Quotes eld
24556 \end_inset
24557
24558
24559 \family typewriter
24560 %s
24561 \family default
24562
24563 \begin_inset Quotes erd
24564 \end_inset
24565
24566  expected, found 
24567 \begin_inset Quotes eld
24568 \end_inset
24569
24570
24571 \family typewriter
24572 %s
24573 \family default
24574
24575 \begin_inset Quotes erd
24576 \end_inset
24577
24578 .
24579 \end_layout
24580
24581 \begin_layout Enumerate
24582
24583 \size small
24584 Solo 
24585 \begin_inset Quotes eld
24586 \end_inset
24587
24588
24589 \family typewriter
24590 %s
24591 \family default
24592
24593 \begin_inset Quotes erd
24594 \end_inset
24595
24596  found.
24597 \end_layout
24598
24599 \begin_layout Enumerate
24600
24601 \size small
24602 You should use 
24603 \begin_inset Quotes eld
24604 \end_inset
24605
24606
24607 \family typewriter
24608 %s
24609 \family default
24610
24611 \begin_inset Quotes erd
24612 \end_inset
24613
24614  to achieve an ellipsis.
24615 \end_layout
24616
24617 \begin_layout Enumerate
24618
24619 \size small
24620 Inter-word spacing (
24621 \begin_inset Quotes eld
24622 \end_inset
24623
24624
24625 \family typewriter
24626
24627 \backslash
24628
24629 \family default
24630  
24631 \begin_inset Quotes eld
24632 \end_inset
24633
24634 ) should perhaps be used.
24635 \end_layout
24636
24637 \begin_layout Enumerate
24638
24639 \size small
24640 Inter-sentence spacing (
24641 \begin_inset Quotes eld
24642 \end_inset
24643
24644
24645 \family typewriter
24646
24647 \backslash
24648 @
24649 \family default
24650
24651 \begin_inset Quotes erd
24652 \end_inset
24653
24654 ) should perhaps be used.
24655 \end_layout
24656
24657 \begin_layout Enumerate
24658
24659 \size small
24660 Could not find argument for command.
24661 \end_layout
24662
24663 \begin_layout Enumerate
24664
24665 \size small
24666 No match found for 
24667 \begin_inset Quotes eld
24668 \end_inset
24669
24670
24671 \family typewriter
24672 %s
24673 \family default
24674
24675 \begin_inset Quotes erd
24676 \end_inset
24677
24678 .
24679 \end_layout
24680
24681 \begin_layout Enumerate
24682
24683 \size small
24684 Math mode still on at end of \SpecialChar LaTeX
24685  file.
24686 \end_layout
24687
24688 \begin_layout Enumerate
24689
24690 \size small
24691 Number of 
24692 \begin_inset Quotes eld
24693 \end_inset
24694
24695
24696 \family typewriter
24697 char
24698 \family default
24699
24700 \begin_inset Quotes erd
24701 \end_inset
24702
24703  doesn't match the number of 
24704 \begin_inset Quotes eld
24705 \end_inset
24706
24707
24708 \family typewriter
24709 char
24710 \family default
24711
24712 \begin_inset Quotes erd
24713 \end_inset
24714
24715 .
24716 \end_layout
24717
24718 \begin_layout Enumerate
24719
24720 \size small
24721 You should use either 
24722 \family typewriter
24723
24724 \begin_inset Quotes eld
24725 \end_inset
24726
24727
24728 \family default
24729  or 
24730 \family typewriter
24731
24732 \begin_inset Quotes erd
24733 \end_inset
24734
24735
24736 \family default
24737  as an alternative to 
24738 \begin_inset Quotes eld
24739 \end_inset
24740
24741
24742 \family typewriter
24743 "
24744 \family default
24745
24746 \begin_inset Quotes erd
24747 \end_inset
24748
24749 .
24750 \end_layout
24751
24752 \begin_layout Enumerate
24753
24754 \size small
24755 You should use "
24756 \family typewriter
24757 '
24758 \family default
24759 " (ASCII 39) instead of "
24760 \family typewriter
24761 ´
24762 \family default
24763 " (ASCII 180).
24764 \end_layout
24765
24766 \begin_layout Enumerate
24767
24768 \size small
24769 User-specified pattern found.
24770 \end_layout
24771
24772 \begin_layout Enumerate
24773
24774 \size small
24775 This command might not be intended.
24776 \end_layout
24777
24778 \begin_layout Enumerate
24779
24780 \size small
24781 \emph on
24782 Comment displayed.
24783 \end_layout
24784
24785 \begin_layout Enumerate
24786
24787 \size small
24788 Either 
24789 \family typewriter
24790 ''
24791 \backslash
24792 ,'
24793 \family default
24794  or 
24795 \family typewriter
24796 '
24797 \backslash
24798 ,''
24799 \family default
24800  will look better.
24801 \end_layout
24802
24803 \begin_layout Enumerate
24804
24805 \size small
24806 Delete this space to maintain correct page references.
24807 \end_layout
24808
24809 \begin_layout Enumerate
24810
24811 \size small
24812 \emph on
24813 You might wish to put this between a pair of 
24814 \begin_inset Quotes eld
24815 \end_inset
24816
24817
24818 \family typewriter
24819 {}
24820 \family default
24821
24822 \begin_inset Quotes erd
24823 \end_inset
24824
24825 .
24826 \end_layout
24827
24828 \begin_layout Enumerate
24829
24830 \size small
24831 You ought to remove spaces in front of punctuation.
24832 \end_layout
24833
24834 \begin_layout Enumerate
24835
24836 \size small
24837 Could not execute \SpecialChar LaTeX
24838  command.
24839 \end_layout
24840
24841 \begin_layout Enumerate
24842
24843 \size small
24844 Don't use 
24845 \family typewriter
24846
24847 \backslash
24848 /
24849 \family default
24850  in front of small punctuation.
24851 \end_layout
24852
24853 \begin_layout Enumerate
24854
24855 \family typewriter
24856 \size small
24857 $
24858 \backslash
24859 times$
24860 \family default
24861  may look prettier here.
24862 \end_layout
24863
24864 \begin_layout Enumerate
24865
24866 \size small
24867 \emph on
24868 Multiple spaces detected in output.
24869 \end_layout
24870
24871 \begin_layout Enumerate
24872
24873 \size small
24874 This text may be ignored.
24875 \end_layout
24876
24877 \begin_layout Enumerate
24878
24879 \size small
24880 Use 
24881 \family typewriter
24882
24883 \begin_inset Quotes eld
24884 \end_inset
24885
24886
24887 \family default
24888  to begin quotation, not 
24889 \family typewriter
24890 '
24891 \family default
24892 .
24893 \end_layout
24894
24895 \begin_layout Enumerate
24896
24897 \size small
24898 Use 
24899 \family typewriter
24900 '
24901 \family default
24902  to end quotation, not 
24903 \family typewriter
24904
24905 \begin_inset Quotes eld
24906 \end_inset
24907
24908
24909 \family default
24910 .
24911 \end_layout
24912
24913 \begin_layout Enumerate
24914
24915 \size small
24916 Don't mix quotes.
24917 \end_layout
24918
24919 \begin_layout Enumerate
24920
24921 \size small
24922 You should perhaps use 
24923 \begin_inset Quotes eld
24924 \end_inset
24925
24926
24927 \family typewriter
24928 cmd
24929 \family default
24930
24931 \begin_inset Quotes erd
24932 \end_inset
24933
24934  instead.
24935 \end_layout
24936
24937 \begin_layout Enumerate
24938
24939 \size small
24940 You should put a space in front of/after parenthesis.
24941 \end_layout
24942
24943 \begin_layout Enumerate
24944
24945 \size small
24946 You should avoid spaces in front of/after parenthesis.
24947 \end_layout
24948
24949 \begin_layout Enumerate
24950
24951 \size small
24952 \emph on
24953 You should not use punctuation in front of/after quotes.
24954 \end_layout
24955
24956 \begin_layout Enumerate
24957
24958 \size small
24959 Double space found.
24960 \end_layout
24961
24962 \begin_layout Enumerate
24963
24964 \size small
24965 You should put punctuation outside inner/inside display math mode.
24966 \end_layout
24967
24968 \begin_layout Enumerate
24969
24970 \size small
24971 You ought to not use primitive \SpecialChar TeX
24972  in \SpecialChar LaTeX
24973  code.
24974 \end_layout
24975
24976 \begin_layout Enumerate
24977
24978 \size small
24979 You should remove spaces in front of 
24980 \begin_inset Quotes eld
24981 \end_inset
24982
24983
24984 \family typewriter
24985 %s
24986 \family default
24987
24988 \begin_inset Quotes erd
24989 \end_inset
24990
24991
24992 \end_layout
24993
24994 \begin_layout Enumerate
24995
24996 \size small
24997 \begin_inset Quotes eld
24998 \end_inset
24999
25000
25001 \family typewriter
25002 %s
25003 \family default
25004
25005 \begin_inset Quotes erd
25006 \end_inset
25007
25008  is normally not followed by 
25009 \begin_inset Quotes eld
25010 \end_inset
25011
25012
25013 \family typewriter
25014 %c
25015 \family default
25016
25017 \begin_inset Quotes erd
25018 \end_inset
25019
25020 .
25021 \end_layout
25022
25023 \begin_layout Standard
25024 In later versions of \SpecialChar LyX
25025 , we hope to provide a more complete interface to this
25026  tool (and it's smaller cousin 
25027 \family typewriter
25028 lacheck
25029 \family default
25030 ) to exploit the full power of it.
25031  But it's not exactly useless as it is now: go try it on one of your existing
25032  documents of a certain length and be surprised.
25033 \end_layout
25034
25035 \begin_layout Section
25036 Version Control in \SpecialChar LyX
25037
25038 \end_layout
25039
25040 \begin_layout Standard
25041 by
25042 \noun on
25043  Lars Gullik Bjønnes 
25044 \noun default
25045 and 
25046 \noun on
25047 Pavel Sanda
25048 \end_layout
25049
25050 \begin_layout Subsection
25051 Introduction
25052 \end_layout
25053
25054 \begin_layout Standard
25055 \SpecialChar LyX
25056  supports some of the most basic RCS/CVS/SVN/GIT commands.
25057  If you need something a bit more sophisticated you will have to do that
25058  manually in a terminal.
25059 \end_layout
25060
25061 \begin_layout Standard
25062 Also note that CVS support is not as good as subversion support, so we advise
25063  using SVN instead.
25064  A good place to start learning Subversion is the SVN Book
25065 \begin_inset Foot
25066 status collapsed
25067
25068 \begin_layout Plain Layout
25069 \begin_inset CommandInset href
25070 LatexCommand href
25071 target "http://svnbook.red-bean.com/"
25072 literal "false"
25073
25074 \end_inset
25075
25076
25077 \end_layout
25078
25079 \end_inset
25080
25081 .
25082  In the case of RCS you should read 
25083 \begin_inset Quotes eld
25084 \end_inset
25085
25086 rcsintro
25087 \begin_inset Quotes erd
25088 \end_inset
25089
25090  (a man file, read it with 
25091 \family typewriter
25092 man rcsintro
25093 \family default
25094 ).
25095  This file describes all the basic features of RCS.
25096  You should especially notice the comment about a RCS directory, and the
25097  notion of a master RCS file (the file ending in 
25098 \family typewriter
25099 ,v
25100 \family default
25101 ).
25102 \end_layout
25103
25104 \begin_layout Standard
25105 Before you begin to use the version control features in \SpecialChar LyX
25106 , you should be
25107  familiar with RCS/CVS/SVN/GIT usage.
25108  The implementation in \SpecialChar LyX
25109  assumes a recent version of the GNU RCS or CVS/SVN
25110  package — no guarantees are made for older versions.
25111  Most of the log messages are not currently displayed after operations —
25112  you can check them in the Messages pane if you are unsure.
25113  Regular users of version control will appreciate the VC toolbar, which
25114  can be enabled via 
25115 \family sans
25116 View\SpecialChar menuseparator
25117 Toolbars\SpecialChar menuseparator
25118 Version
25119 \begin_inset space ~
25120 \end_inset
25121
25122 Control
25123 \family default
25124 .
25125 \end_layout
25126
25127 \begin_layout Standard
25128 For introducing your own external commands consult 
25129 \begin_inset Flex Code
25130 status collapsed
25131
25132 \begin_layout Plain Layout
25133 vc-command
25134 \end_layout
25135
25136 \end_inset
25137
25138  in the manual 
25139 \emph on
25140 \SpecialChar LyX
25141  Functions
25142 \emph default
25143 .
25144 \end_layout
25145
25146 \begin_layout Standard
25147 It is strongly recommended to store documents in uncompressed format if
25148  using version control (uncheck 
25149 \family sans
25150 Document\SpecialChar menuseparator
25151 Compressed
25152 \family default
25153  if it is checked): Uncompressed LyX documents are text files and therefore
25154  for merging two different versions by version control systems.
25155  Compressed LyX documents are binary files, which cannot be merged by version
25156  control systems.
25157 \end_layout
25158
25159 \begin_layout Subsection
25160 RCS commands in \SpecialChar LyX
25161
25162 \end_layout
25163
25164 \begin_layout Standard
25165 The following sections describe the RCS commands supported by \SpecialChar LyX
25166 .
25167  You can find them in the 
25168 \family sans
25169 File\SpecialChar menuseparator
25170 Version
25171 \begin_inset space ~
25172 \end_inset
25173
25174 Control
25175 \family default
25176  submenu.
25177  \SpecialChar LyX
25178  was tested against RCS 5.7/5.8.
25179 \end_layout
25180
25181 \begin_layout Subsubsection
25182
25183 \family sans
25184 Register
25185 \end_layout
25186
25187 \begin_layout Standard
25188 If your document is not under revision control, this is the only item shown
25189  in the menu.
25190  And if it is under revision control, the 
25191 \family sans
25192 Register
25193 \family default
25194  item is not visible.
25195  
25196 \end_layout
25197
25198 \begin_layout Standard
25199 This command registers your document with RCS (unless you are under the
25200  directory managed by CVS)\SpecialChar endofsentence
25201  You are asked interactively to supply an initial
25202  description of the document.
25203  The document is now set in Read-Only mode and you have to 
25204 \family sans
25205 Check
25206 \begin_inset space ~
25207 \end_inset
25208
25209 Out
25210 \begin_inset space ~
25211 \end_inset
25212
25213 For
25214 \begin_inset space ~
25215 \end_inset
25216
25217 Edit
25218 \family default
25219 , before making any changes to it.
25220  A document under revision control has a 
25221 \begin_inset Quotes eld
25222 \end_inset
25223
25224 [RCS:<version> <locker>]
25225 \begin_inset Quotes erd
25226 \end_inset
25227
25228  item tagged to the filename in the minibuffer.
25229 \end_layout
25230
25231 \begin_layout Standard
25232 RCS command that is run:
25233 \end_layout
25234
25235 \begin_layout LyX-Code
25236
25237 \family typewriter
25238 ci -q -u -i -t-"<initial description>" <file-name>
25239 \end_layout
25240
25241 \begin_layout Standard
25242 Read 
25243 \family typewriter
25244 man ci
25245 \family default
25246  to understand the switches.
25247  
25248 \end_layout
25249
25250 \begin_layout Subsubsection
25251
25252 \family sans
25253 Check In Changes
25254 \end_layout
25255
25256 \begin_layout Standard
25257 When you are finished editing a file, you check in your changes.
25258  When you do this, you are asked for a description of the changes.
25259  This is stored in the history log.
25260  The version number is bumped, your changes are applied to the master RCS
25261  file, the document is unlocked and set to Read-Only mode.
25262 \end_layout
25263
25264 \begin_layout Itemize
25265 RCS command: 
25266 \family typewriter
25267 ci -q -u -m"<description>" <file-name>
25268 \end_layout
25269
25270 \begin_layout Subsubsection
25271
25272 \family sans
25273 Check Out For Edit
25274 \end_layout
25275
25276 \begin_layout Standard
25277 By doing this you lock the document so that only you can edit it.
25278  This will also make the document Read-Write only for you.
25279  You will usually continue editing for a while and when you are finished
25280  you check in your changes.
25281  The status line is changed to reflect that you have locked the file.
25282 \end_layout
25283
25284 \begin_layout Itemize
25285 RCS command: 
25286 \family typewriter
25287 co -q -l <file-name>
25288 \end_layout
25289
25290 \begin_layout Subsubsection
25291
25292 \family sans
25293 Revert To Repository Version
25294 \end_layout
25295
25296 \begin_layout Standard
25297 This will discard all changes made to the document since the last check
25298  in.
25299  You get a warning before changes are discarded.
25300 \end_layout
25301
25302 \begin_layout Itemize
25303 RCS command: 
25304 \family typewriter
25305 co -f -u<version> <file-name>
25306 \end_layout
25307
25308 \begin_layout Subsubsection
25309
25310 \family sans
25311 Copy
25312 \end_layout
25313
25314 \begin_layout Standard
25315 This will create a copy of the current document.
25316  Since RCS does not support copy operations natively, the version history
25317  is not preserved, and the copy is added as a new file.
25318  It requires a clean document without any changes since the last checkin.
25319  You are asked for a file name and a description of the copy operation.
25320  After that the copy is created, both locally and in the repository.
25321  If the parent directories of the copied and original document differ, all
25322  relative paths of included files of the copy are adjusted (like in 
25323 \family sans
25324 File\SpecialChar menuseparator
25325 Save As
25326 \family default
25327 \SpecialChar ldots
25328 ).
25329  Finally, the copy is loaded instead of the original document.
25330 \end_layout
25331
25332 \begin_layout Labeling
25333 \labelwidthstring 00.00.0000
25334 RCS
25335 \begin_inset space ~
25336 \end_inset
25337
25338 commands: 
25339 \begin_inset space ~
25340 \end_inset
25341
25342
25343 \begin_inset Newline newline
25344 \end_inset
25345
25346 Copy 
25347 \begin_inset Flex Code
25348 status collapsed
25349
25350 \begin_layout Plain Layout
25351
25352 \family typewriter
25353 \begin_inset Quotes qld
25354 \end_inset
25355
25356 <file-name>
25357 \begin_inset Quotes qld
25358 \end_inset
25359
25360
25361 \end_layout
25362
25363 \end_inset
25364
25365  to 
25366 \begin_inset Flex Code
25367 status collapsed
25368
25369 \begin_layout Plain Layout
25370
25371 \family typewriter
25372 \begin_inset Quotes qld
25373 \end_inset
25374
25375 <new-file-name>
25376 \begin_inset Quotes qld
25377 \end_inset
25378
25379
25380 \end_layout
25381
25382 \end_inset
25383
25384
25385 \begin_inset Newline newline
25386 \end_inset
25387
25388
25389 \begin_inset Flex Code
25390 status collapsed
25391
25392 \begin_layout Plain Layout
25393 ci -q -u 
25394 \family typewriter
25395 -i 
25396 \begin_inset Quotes qld
25397 \end_inset
25398
25399 <new-file-name>
25400 \begin_inset Quotes qld
25401 \end_inset
25402
25403
25404 \end_layout
25405
25406 \end_inset
25407
25408
25409 \end_layout
25410
25411 \begin_layout Subsubsection
25412
25413 \family sans
25414 Undo Last Checkin
25415 \end_layout
25416
25417 \begin_layout Standard
25418 This makes as if the last check in never happened.
25419  No changes are made to the document loaded into \SpecialChar LyX
25420 , but the last version
25421  is removed from the master RCS file.
25422 \end_layout
25423
25424 \begin_layout Itemize
25425 RCS command: 
25426 \family typewriter
25427 rcs -o<version> <file-name>
25428 \end_layout
25429
25430 \begin_layout Subsubsection
25431
25432 \family sans
25433 Show History
25434 \end_layout
25435
25436 \begin_layout Standard
25437 This shows the complete history of the RCS document.
25438  The output of 
25439 \family typewriter
25440 rlog <file-name>
25441 \family default
25442  is shown in a browser.
25443  See 
25444 \family typewriter
25445 man rlog
25446 \family default
25447  for more info.
25448 \end_layout
25449
25450 \begin_layout Subsubsection
25451 Revision info
25452 \end_layout
25453
25454 \begin_layout Standard
25455 \SpecialChar LyX
25456  supports RCS version number, author name, date and time of last commit.
25457  All those are extracted from 
25458 \family typewriter
25459 rlog -r <file-name>
25460 \family default
25461 .
25462  See 
25463 \begin_inset CommandInset ref
25464 LatexCommand ref
25465 reference "subsec:VCS-Revision-Information"
25466
25467 \end_inset
25468
25469  for details.
25470 \end_layout
25471
25472 \begin_layout Subsection
25473 CVS commands in \SpecialChar LyX
25474
25475 \end_layout
25476
25477 \begin_layout Standard
25478 A subset of CVS operations is supported by \SpecialChar LyX
25479 .
25480  You can find the commands in the 
25481 \family sans
25482 File\SpecialChar menuseparator
25483 Version
25484 \begin_inset space ~
25485 \end_inset
25486
25487 Control
25488 \family default
25489  submenu.
25490  The version control system SVN is more powerful, so please use it instead
25491  of CVS if possible.
25492 \end_layout
25493
25494 \begin_layout Subsubsection
25495
25496 \family sans
25497 General CVS usage
25498 \end_layout
25499
25500 \begin_layout Standard
25501 If you start from scratch with CVS you have to create your repository and
25502  checkout the working copy with external tools.
25503  If you're using a client-server setup you may need to login before doing
25504  the first repository checkout.
25505 \end_layout
25506
25507 \begin_layout Standard
25508 If your documents are under revision control and others are using the same
25509  repository problems arise when different changes to the same document at
25510  the same location happen.
25511  Standard CVS repositories don't operate with a file locking mechanism.
25512  This may be surprising, but conflicts only occur if people disagree on
25513  the proper content of the same part of a document.
25514  So, if co-workers are used to communicate regularly, these conflicts occur
25515  rarely.
25516  If they don't communicate they have a fundamental problem anyway.
25517  Nevertheless some people like to work with so called 
25518 \begin_inset Quotes eld
25519 \end_inset
25520
25521 reserved checkouts
25522 \begin_inset Quotes erd
25523 \end_inset
25524
25525 .
25526  If they do so the working copy of all files is readonly when checked out
25527  first and the user starts editing after using a special command to make
25528  the working copy writable.
25529  When the changes are checked in the working copy returns to readonly state.
25530  With \SpecialChar LyX
25531  one has to edit the 
25532 \begin_inset Flex Code
25533 status collapsed
25534
25535 \begin_layout Plain Layout
25536 .cvsrc
25537 \end_layout
25538
25539 \end_inset
25540
25541  file and add the line 
25542 \begin_inset Flex Code
25543 status collapsed
25544
25545 \begin_layout Plain Layout
25546 cvs -r
25547 \end_layout
25548
25549 \end_inset
25550
25551  to work with reserved checkouts.
25552  The benefit is the possibility to see who is using a writable copy of some
25553  document.
25554  It's not guaranteed only one user makes a copy writable.
25555 \end_layout
25556
25557 \begin_layout Standard
25558 \SpecialChar LyX
25559  tries to guess if you're using reserved or non-reserved checkouts.
25560  If your working copy is readonly or it is writable and an additional copy
25561  of your document exists in the CVS/Base sub-directory a reserved otherwise
25562  a non-reserved checkout is assumed.
25563  When a reserved checkout is detected you have to use 
25564 \begin_inset Flex Noun
25565 status collapsed
25566
25567 \begin_layout Plain Layout
25568 Check Out
25569 \end_layout
25570
25571 \end_inset
25572
25573  to make your working copy writable if it's readonly.
25574  After doing so the 
25575 \begin_inset Flex Noun
25576 status collapsed
25577
25578 \begin_layout Plain Layout
25579 Check In
25580 \end_layout
25581
25582 \end_inset
25583
25584  operation is possible and that makes your working copy readonly again after
25585  transferring your changes to the repository.
25586 \end_layout
25587
25588 \begin_layout Standard
25589 More information about CVS can be found here 
25590 \begin_inset Flex URL
25591 status collapsed
25592
25593 \begin_layout Plain Layout
25594
25595 http://www.nongnu.org/cvs
25596 \end_layout
25597
25598 \end_inset
25599
25600  and here 
25601 \begin_inset Flex URL
25602 status collapsed
25603
25604 \begin_layout Plain Layout
25605
25606 http://ximbiot.com/cvs
25607 \end_layout
25608
25609 \end_inset
25610
25611 .
25612 \end_layout
25613
25614 \begin_layout Standard
25615 Read 
25616 \family typewriter
25617 man cvs
25618 \family default
25619  to understand the sub-commands and the switches mentioned below.
25620 \end_layout
25621
25622 \begin_layout Subsubsection
25623
25624 \family sans
25625 Register
25626 \end_layout
25627
25628 \begin_layout Standard
25629 If your document is not under revision control, this is the only item shown
25630  in the menu.
25631  And if it is under revision control, the 
25632 \family sans
25633 Register
25634 \family default
25635  item is not visible.
25636  
25637 \end_layout
25638
25639 \begin_layout Standard
25640 This command registers in CVS your document 
25641 \begin_inset Flex Strong
25642 status collapsed
25643
25644 \begin_layout Plain Layout
25645
25646 \emph on
25647 only
25648 \end_layout
25649
25650 \end_inset
25651
25652  in the case you have already the documents directory under CVS control
25653  (in particular 
25654 \family typewriter
25655 CVS/Entries
25656 \family default
25657  file exists).
25658  This means you have to create or checkout the archive by yourself using
25659  external tools.
25660  (In case you forget that step \SpecialChar LyX
25661  registers the document with RCS.)
25662 \end_layout
25663
25664 \begin_layout Standard
25665 Then you are asked interactively to supply an initial description of the
25666  document.
25667  Don't forget that registered file is not yet checked in.
25668 \end_layout
25669
25670 \begin_layout Standard
25671 CVS command that is run: 
25672 \family typewriter
25673 cvs -q add -m"<entered message>" "<file-name>"
25674 \end_layout
25675
25676 \begin_layout Standard
25677 The term 
25678 \family typewriter
25679 "<file-name>"
25680 \family default
25681  above and for all other CVS commands is an abbreviation for 
25682 \begin_inset Quotes eld
25683 \end_inset
25684
25685 change the current working directory to file location and use the file name
25686  without path component as argument
25687 \begin_inset Quotes erd
25688 \end_inset
25689
25690 .
25691 \end_layout
25692
25693 \begin_layout Subsubsection
25694
25695 \family sans
25696 Check In Changes
25697 \end_layout
25698
25699 \begin_layout Standard
25700 When you are finished editing a file, you commit your changes.
25701  When you do this and you had changed the document, you are asked for a
25702  description of the changes.
25703  After that changes are written to the repository.
25704  In case you didn't change the document and a reserved checkout is detected
25705  the reservation made on 
25706 \begin_inset Flex Noun
25707 status collapsed
25708
25709 \begin_layout Plain Layout
25710 Check Out
25711 \end_layout
25712
25713 \end_inset
25714
25715  is undone.
25716 \end_layout
25717
25718 \begin_layout Labeling
25719 \labelwidthstring 00.00.0000
25720 CVS
25721 \begin_inset space ~
25722 \end_inset
25723
25724 command: 
25725 \begin_inset space ~
25726 \end_inset
25727
25728
25729 \begin_inset Newline newline
25730 \end_inset
25731
25732
25733 \begin_inset Flex Code
25734 status collapsed
25735
25736 \begin_layout Plain Layout
25737 cvs 
25738 \family typewriter
25739 -q commit -m"<description>" "<file-name>"
25740 \end_layout
25741
25742 \end_inset
25743
25744  or
25745 \begin_inset Newline newline
25746 \end_inset
25747
25748
25749 \begin_inset Flex Code
25750 status collapsed
25751
25752 \begin_layout Plain Layout
25753 cvs -q unedit 
25754 \family typewriter
25755 "<file-name>"
25756 \end_layout
25757
25758 \end_inset
25759
25760
25761 \end_layout
25762
25763 \begin_layout Subsubsection
25764
25765 \family sans
25766 Check Out Changes
25767 \end_layout
25768
25769 \begin_layout Standard
25770 When you are sharing a repository with others, you may have to incorporate
25771  their changes into your working copy.
25772 \end_layout
25773
25774 \begin_layout Standard
25775 CVS command: 
25776 \family typewriter
25777 cvs -q update "<file-name>"
25778 \end_layout
25779
25780 \begin_layout Standard
25781 If a readonly checkout is detected the working copy is made writable and
25782  reserved.
25783 \end_layout
25784
25785 \begin_layout Standard
25786 CVS command: 
25787 \family typewriter
25788 cvs -q edit "<file-name>"
25789 \end_layout
25790
25791 \begin_layout Subsubsection
25792
25793 \family sans
25794 Revert To Repository Version
25795 \end_layout
25796
25797 \begin_layout Standard
25798 This will discard all changes made to the document since the last check
25799  in.
25800  You get a warning before changes are discarded.
25801  Firstly the file is deleted, secondly CVS update command is run.
25802 \end_layout
25803
25804 \begin_layout Standard
25805 CVS command: 
25806 \family typewriter
25807 cvs -q update "<file-name>"
25808 \end_layout
25809
25810 \begin_layout Standard
25811 If a reserved checkout is detected and the working copy has no changes only
25812  the reservation is undone.
25813 \end_layout
25814
25815 \begin_layout Standard
25816 CVS command: 
25817 \family typewriter
25818 cvs -q unedit "<file-name>"
25819 \end_layout
25820
25821 \begin_layout Subsubsection
25822
25823 \family sans
25824 Copy
25825 \end_layout
25826
25827 \begin_layout Standard
25828 This will create a copy of the current document.
25829  Since CVS does not support copy operations natively, the version history
25830  is not preserved, and the copy is added as a new file.
25831  It requires a clean document without any changes since the last checkin.
25832  You are asked for a file name and a description of the copy operation.
25833  After that the copy is created, both locally and in the repository.
25834  If the parent directories of the copied and original document differ, all
25835  relative paths of included files of the copy are adjusted (like in 
25836 \family sans
25837 File\SpecialChar menuseparator
25838 Save As
25839 \family default
25840 \SpecialChar ldots
25841 ).
25842  Finally, the copy is loaded instead of the original document.
25843 \end_layout
25844
25845 \begin_layout Labeling
25846 \labelwidthstring 00.00.0000
25847 CVS
25848 \begin_inset space ~
25849 \end_inset
25850
25851 commands: 
25852 \begin_inset space ~
25853 \end_inset
25854
25855
25856 \begin_inset Newline newline
25857 \end_inset
25858
25859 Copy 
25860 \begin_inset Flex Code
25861 status collapsed
25862
25863 \begin_layout Plain Layout
25864 "<file-name>"
25865 \end_layout
25866
25867 \end_inset
25868
25869  to 
25870 \begin_inset Flex Code
25871 status collapsed
25872
25873 \begin_layout Plain Layout
25874 "<new-file-name>"
25875 \end_layout
25876
25877 \end_inset
25878
25879
25880 \begin_inset Newline newline
25881 \end_inset
25882
25883
25884 \begin_inset Flex Code
25885 status collapsed
25886
25887 \begin_layout Plain Layout
25888 cvs -q add "<new-file-name>"
25889 \end_layout
25890
25891 \end_inset
25892
25893
25894 \end_layout
25895
25896 \begin_layout Subsubsection
25897
25898 \family sans
25899 Rename
25900 \end_layout
25901
25902 \begin_layout Standard
25903 This will rename the current document.
25904  Since CVS does not support rename operations natively, the version history
25905  is not preserved, the renamed document is added as a new file, and the
25906  original document is deleted.
25907  It requires a clean document without any changes since the last checkin.
25908  You are asked for a file name and a description of the rename operation.
25909  After that the document is renamed, both locally and in the repository.
25910  If the parent directories of the new and old file names differ, all relative
25911  paths of included files are adjusted (like in 
25912 \family sans
25913 File\SpecialChar menuseparator
25914 Save As
25915 \family default
25916 \SpecialChar ldots
25917 ).
25918  Finally, the document is reloaded using the new name.
25919 \end_layout
25920
25921 \begin_layout Labeling
25922 \labelwidthstring 00.00.0000
25923 CVS
25924 \begin_inset space ~
25925 \end_inset
25926
25927 commands: 
25928 \begin_inset space ~
25929 \end_inset
25930
25931
25932 \begin_inset Newline newline
25933 \end_inset
25934
25935 Rename 
25936 \begin_inset Flex Code
25937 status collapsed
25938
25939 \begin_layout Plain Layout
25940 "<file-name>"
25941 \end_layout
25942
25943 \end_inset
25944
25945  to 
25946 \begin_inset Flex Code
25947 status collapsed
25948
25949 \begin_layout Plain Layout
25950 "<new-file-name>"
25951 \end_layout
25952
25953 \end_inset
25954
25955
25956 \begin_inset Newline newline
25957 \end_inset
25958
25959
25960 \begin_inset Flex Code
25961 status collapsed
25962
25963 \begin_layout Plain Layout
25964 cvs -q add "<new-file-name>"
25965 \end_layout
25966
25967 \end_inset
25968
25969
25970 \begin_inset Newline newline
25971 \end_inset
25972
25973
25974 \begin_inset Flex Code
25975 status collapsed
25976
25977 \begin_layout Plain Layout
25978 cvs -q remove "<file-name>"
25979 \end_layout
25980
25981 \end_inset
25982
25983
25984 \end_layout
25985
25986 \begin_layout Subsubsection
25987 Update of the local directory checkout from repository
25988 \end_layout
25989
25990 \begin_layout Standard
25991 Once your documents gets more complex, containing sub-documents and pictures,
25992  including external 
25993 \begin_inset Flex Code
25994 status collapsed
25995
25996 \begin_layout Plain Layout
25997 .tex
25998 \end_layout
25999
26000 \end_inset
26001
26002  files and so on using version control becomes more complicated.
26003  \SpecialChar LyX
26004  supports updating the whole tree in which resides the document.
26005  This become especially useful once you cooperate with people which neither
26006  have detailed knowledge about CVS usage nor they have ambition to commit
26007  additional material to the repository.
26008  You have to organize the files structure so that all external files are
26009  in the same directory or subdirectories of the document.
26010  It's good practice anyway to store multipart documents in an extra directory.
26011 \end_layout
26012
26013 \begin_layout Standard
26014 The 
26015 \begin_inset Flex Code
26016 status collapsed
26017
26018 \begin_layout Plain Layout
26019 Update local directory from repository
26020 \end_layout
26021
26022 \end_inset
26023
26024  command updates the whole directory.
26025  If local changes are detected user is warned before update starts.
26026  In case of merge conflicts both versions of the conflicting document parts
26027  are placed in the final document.
26028  You have to review and correct the result of the merge.
26029  You'll find the conflicts enclosed in pairs of 
26030 \begin_inset Flex Code
26031 status collapsed
26032
26033 \begin_layout Plain Layout
26034 <<<<<<<
26035 \end_layout
26036
26037 \end_inset
26038
26039  and 
26040 \begin_inset Flex Code
26041 status collapsed
26042
26043 \begin_layout Plain Layout
26044 >>>>>>>
26045 \end_layout
26046
26047 \end_inset
26048
26049  separated by 
26050 \begin_inset Flex Code
26051 status collapsed
26052
26053 \begin_layout Plain Layout
26054 =======
26055 \end_layout
26056
26057 \end_inset
26058
26059 .
26060  The first part is your version as before the update operation with the
26061  document name prepended.
26062  The second one is the repository version with the version number after
26063  the sequence of 
26064 \begin_inset Flex Code
26065 status collapsed
26066
26067 \begin_layout Plain Layout
26068 >
26069 \end_layout
26070
26071 \end_inset
26072
26073  signs.
26074 \end_layout
26075
26076 \begin_layout Labeling
26077 \labelwidthstring 00.00.0000
26078 CVS
26079 \begin_inset space ~
26080 \end_inset
26081
26082 commands: 
26083 \begin_inset space ~
26084 \end_inset
26085
26086
26087 \begin_inset Newline newline
26088 \end_inset
26089
26090
26091 \begin_inset Flex Code
26092 status collapsed
26093
26094 \begin_layout Plain Layout
26095 cd $path; cvs diff 
26096 \family typewriter
26097 "."
26098 \end_layout
26099
26100 \end_inset
26101
26102  (Ask if changes are detected.)
26103 \begin_inset Newline newline
26104 \end_inset
26105
26106
26107 \begin_inset Flex Code
26108 status collapsed
26109
26110 \begin_layout Plain Layout
26111 cd $path; cvs -q update 
26112 \family typewriter
26113 "."
26114 \end_layout
26115
26116 \end_inset
26117
26118
26119 \end_layout
26120
26121 \begin_layout Standard
26122 where 
26123 \begin_inset Flex Code
26124 status collapsed
26125
26126 \begin_layout Plain Layout
26127 $path
26128 \end_layout
26129
26130 \end_inset
26131
26132  stands for the path to the document.
26133 \end_layout
26134
26135 \begin_layout Subsubsection
26136
26137 \family sans
26138 Show History
26139 \end_layout
26140
26141 \begin_layout Standard
26142 This shows the complete history of the CVS document.
26143  The output of 
26144 \family typewriter
26145 cvs log "<file-name>"
26146 \family default
26147  is shown in a browser.
26148 \end_layout
26149
26150 \begin_layout Subsubsection
26151 Revision info
26152 \end_layout
26153
26154 \begin_layout Standard
26155 \SpecialChar LyX
26156  supports CVS version number, author name, date and time of last commit.
26157  All those are extracted from 
26158 \family typewriter
26159 cvs log -r <file-name>
26160 \family default
26161 .
26162  See 
26163 \begin_inset CommandInset ref
26164 LatexCommand ref
26165 reference "subsec:VCS-Revision-Information"
26166
26167 \end_inset
26168
26169  for details.
26170 \end_layout
26171
26172 \begin_layout Subsection
26173 SVN commands in \SpecialChar LyX
26174
26175 \end_layout
26176
26177 \begin_layout Standard
26178 SVN is now partially supported by \SpecialChar LyX
26179 .
26180  You can find the commands in the 
26181 \family sans
26182 File\SpecialChar menuseparator
26183 Version
26184 \begin_inset space ~
26185 \end_inset
26186
26187 Control
26188 \family default
26189  submenu.
26190  Please note that if you use password protected access to repository via
26191  ssh, you will be asked in terminal window.
26192  \SpecialChar LyX
26193  was tested against SVN 1.5, 1.6, 1.7 and 1.8
26194 \begin_inset Foot
26195 status collapsed
26196
26197 \begin_layout Plain Layout
26198 Most of the commands will work with 1.4 too, see 
26199 \begin_inset CommandInset ref
26200 LatexCommand ref
26201 reference "subsec:SVN-Repo-Update"
26202
26203 \end_inset
26204
26205 .
26206  There seems to be currently unresolved permissions problem under SVN 1.8
26207  with reverting changes when file is locked.
26208 \end_layout
26209
26210 \end_inset
26211
26212
26213 \end_layout
26214
26215 \begin_layout Subsubsection
26216
26217 \family sans
26218 Register
26219 \end_layout
26220
26221 \begin_layout Standard
26222 If your document is not under revision control, this is the only item shown
26223  in the menu.
26224  And if it is under revision control, the 
26225 \family sans
26226 Register
26227 \family default
26228  item is not visible.
26229 \end_layout
26230
26231 \begin_layout Standard
26232 This command registers in SVN your document ONLY in case you have already
26233  the documents directory under SVN control (in particular 
26234 \family typewriter
26235 .svn/entries
26236 \family default
26237  file exists).
26238  This means you have to checkout the archive by yourself.
26239 \end_layout
26240
26241 \begin_layout Standard
26242 Then you are asked interactively to supply an initial description of the
26243  document.
26244  Don't forget that registered file is not yet commited.
26245 \end_layout
26246
26247 \begin_layout Standard
26248 SVN command that is run: 
26249 \family typewriter
26250 svn add -q 
26251 \begin_inset Quotes qld
26252 \end_inset
26253
26254 <file-name>
26255 \begin_inset Quotes qld
26256 \end_inset
26257
26258
26259 \end_layout
26260
26261 \begin_layout Standard
26262 Read 
26263 \family typewriter
26264 man svn
26265 \family default
26266  to understand the switches.
26267 \end_layout
26268
26269 \begin_layout Subsubsection
26270
26271 \family sans
26272 Check In Changes
26273 \end_layout
26274
26275 \begin_layout Standard
26276 When you are finished editing a file, you commit your changes.
26277  When you do this, you are asked for a description of the changes.
26278  After that changes are commited.
26279 \end_layout
26280
26281 \begin_layout Standard
26282 SVN command:
26283 \begin_inset Foot
26284 status collapsed
26285
26286 \begin_layout Plain Layout
26287 In case locking is not enabled.
26288  See Section 
26289 \begin_inset CommandInset ref
26290 LatexCommand ref
26291 reference "subsec:SVN-File-Locking"
26292
26293 \end_inset
26294
26295 .
26296 \end_layout
26297
26298 \end_inset
26299
26300  
26301 \family typewriter
26302 svn commit -q -m"<description>" <file-name>
26303 \end_layout
26304
26305 \begin_layout Subsubsection
26306
26307 \family sans
26308 Check Out For Edit
26309 \end_layout
26310
26311 \begin_layout Standard
26312 Updates the changes of this file from the repository.
26313  Be sure you understand SVN merging and conflicts resolving before using
26314  this function, because all conflicts has to be resolved manually by you!
26315 \end_layout
26316
26317 \begin_layout Standard
26318 SVN command:
26319 \begin_inset Foot
26320 status collapsed
26321
26322 \begin_layout Plain Layout
26323 Ditto.
26324 \end_layout
26325
26326 \end_inset
26327
26328  
26329 \family typewriter
26330 svn update --non-interactive 
26331 \begin_inset Quotes qld
26332 \end_inset
26333
26334 <file-name>
26335 \begin_inset Quotes qld
26336 \end_inset
26337
26338
26339 \end_layout
26340
26341 \begin_layout Subsubsection
26342
26343 \family sans
26344 Revert To Repository Version
26345 \end_layout
26346
26347 \begin_layout Standard
26348 This will discard all changes made to the document since the last check
26349  in.
26350  You get a warning before changes are discarded.
26351 \end_layout
26352
26353 \begin_layout Standard
26354 SVN command: 
26355 \family typewriter
26356 svn revert -q 
26357 \begin_inset Quotes qld
26358 \end_inset
26359
26360 <file-name>
26361 \begin_inset Quotes qld
26362 \end_inset
26363
26364
26365 \end_layout
26366
26367 \begin_layout Subsubsection
26368
26369 \family sans
26370 Copy
26371 \end_layout
26372
26373 \begin_layout Standard
26374 This will create a copy of the current document including the version history.
26375  It requires a clean document without any changes since the last checkin.
26376  You are asked for a file name and a description of the copy operation.
26377  After that the copy is created, both locally and in the repository.
26378  If the parent directories of the copied and original document differ, all
26379  relative paths of included files of the copy are adjusted (like in 
26380 \family sans
26381 File\SpecialChar menuseparator
26382 Save As
26383 \family default
26384 \SpecialChar ldots
26385 ).
26386  Finally, the copy is loaded instead of the original document.
26387 \end_layout
26388
26389 \begin_layout Labeling
26390 \labelwidthstring 00.00.0000
26391 SVN
26392 \begin_inset space ~
26393 \end_inset
26394
26395 commands: 
26396 \begin_inset space ~
26397 \end_inset
26398
26399
26400 \begin_inset Newline newline
26401 \end_inset
26402
26403
26404 \begin_inset Flex Code
26405 status collapsed
26406
26407 \begin_layout Plain Layout
26408 svn copy -q 
26409 \family typewriter
26410
26411 \begin_inset Quotes qld
26412 \end_inset
26413
26414 <file-name>
26415 \begin_inset Quotes qld
26416 \end_inset
26417
26418  
26419 \begin_inset Quotes qld
26420 \end_inset
26421
26422 <new-file-name>
26423 \begin_inset Quotes qld
26424 \end_inset
26425
26426
26427 \end_layout
26428
26429 \end_inset
26430
26431
26432 \begin_inset Newline newline
26433 \end_inset
26434
26435
26436 \begin_inset Flex Code
26437 status collapsed
26438
26439 \begin_layout Plain Layout
26440 svn commit
26441 \end_layout
26442
26443 \end_inset
26444
26445
26446 \end_layout
26447
26448 \begin_layout Subsubsection
26449
26450 \family sans
26451 Rename
26452 \end_layout
26453
26454 \begin_layout Standard
26455 This will rename the current document including the version history.
26456  It requires a clean document without any changes since the last checkin.
26457  You are asked for a file name and a description of the rename operation.
26458  After that the document is renamed, both locally and in the repository.
26459  If the parent directories of the new and old file names differ, all relative
26460  paths of included files are adjusted (like in 
26461 \family sans
26462 File\SpecialChar menuseparator
26463 Save As
26464 \family default
26465 \SpecialChar ldots
26466 ).
26467  Finally, the document is reloaded using the new name.
26468 \end_layout
26469
26470 \begin_layout Labeling
26471 \labelwidthstring 00.00.0000
26472 SVN
26473 \begin_inset space ~
26474 \end_inset
26475
26476 commands: 
26477 \begin_inset space ~
26478 \end_inset
26479
26480
26481 \begin_inset Newline newline
26482 \end_inset
26483
26484
26485 \begin_inset Flex Code
26486 status collapsed
26487
26488 \begin_layout Plain Layout
26489 svn move -q 
26490 \family typewriter
26491
26492 \begin_inset Quotes qld
26493 \end_inset
26494
26495 <file-name>
26496 \begin_inset Quotes qld
26497 \end_inset
26498
26499  
26500 \begin_inset Quotes qld
26501 \end_inset
26502
26503 <new-file-name>
26504 \begin_inset Quotes qld
26505 \end_inset
26506
26507
26508 \end_layout
26509
26510 \end_inset
26511
26512
26513 \begin_inset Newline newline
26514 \end_inset
26515
26516
26517 \begin_inset Flex Code
26518 status collapsed
26519
26520 \begin_layout Plain Layout
26521 svn commit
26522 \end_layout
26523
26524 \end_inset
26525
26526
26527 \end_layout
26528
26529 \begin_layout Subsubsection
26530 \begin_inset CommandInset label
26531 LatexCommand label
26532 name "subsec:SVN-Repo-Update"
26533
26534 \end_inset
26535
26536 Update of the local directory checkout from repository
26537 \begin_inset Foot
26538 status collapsed
26539
26540 \begin_layout Plain Layout
26541 Note that this command will work only with subversion 
26542 \begin_inset Formula $\geqq1.5$
26543 \end_inset
26544
26545
26546 \end_layout
26547
26548 \end_inset
26549
26550
26551 \end_layout
26552
26553 \begin_layout Standard
26554 All the commands above have one shortcoming – they deal with the current
26555  document only.
26556  Once your document contains pictures, includes external 
26557 \begin_inset Flex Code
26558 status collapsed
26559
26560 \begin_layout Plain Layout
26561 .tex
26562 \end_layout
26563
26564 \end_inset
26565
26566  files and so on administration becomes more complicated.
26567  \SpecialChar LyX
26568  now supports updating the whole tree in which resides the document
26569 \begin_inset Foot
26570 status collapsed
26571
26572 \begin_layout Plain Layout
26573 One need to organize the files structure so that all external files are
26574  in the same directory or subdirectories of the document.
26575  
26576 \end_layout
26577
26578 \end_inset
26579
26580 .
26581  This become especially useful once you cooperate with people which neither
26582  know about subversion management nor they have ambition to commit additional
26583  material to the repository.
26584  
26585 \end_layout
26586
26587 \begin_layout Standard
26588 \begin_inset Flex Code
26589 status collapsed
26590
26591 \begin_layout Plain Layout
26592 Update local directory from repository
26593 \end_layout
26594
26595 \end_inset
26596
26597  command updates the whole directory and in case of merge conflicts local
26598  version of the files are left, so no unintended data loss occurs.
26599  If local changes are detected user is warned before update starts.
26600 \end_layout
26601
26602 \begin_layout Labeling
26603 \labelwidthstring 00.00.0000
26604 SVN
26605 \begin_inset space ~
26606 \end_inset
26607
26608 commands: 
26609 \begin_inset space ~
26610 \end_inset
26611
26612
26613 \begin_inset Newline newline
26614 \end_inset
26615
26616
26617 \begin_inset Flex Code
26618 status collapsed
26619
26620 \begin_layout Plain Layout
26621 svn diff $path
26622 \end_layout
26623
26624 \end_inset
26625
26626  (Ask if changes are detected.)
26627 \begin_inset Newline newline
26628 \end_inset
26629
26630
26631 \begin_inset Flex Code
26632 status collapsed
26633
26634 \begin_layout Plain Layout
26635 svn update --accept mine-full $path
26636 \end_layout
26637
26638 \end_inset
26639
26640
26641 \end_layout
26642
26643 \begin_layout Standard
26644 where 
26645 \begin_inset Flex Code
26646 status collapsed
26647
26648 \begin_layout Plain Layout
26649 $path
26650 \end_layout
26651
26652 \end_inset
26653
26654  stands for the path to the document.
26655 \end_layout
26656
26657 \begin_layout Subsubsection
26658
26659 \family sans
26660 Show History
26661 \end_layout
26662
26663 \begin_layout Standard
26664 This shows the complete history of the SVN document.
26665  The output of 
26666 \family typewriter
26667 svn log 
26668 \begin_inset Quotes qld
26669 \end_inset
26670
26671 <file-name>
26672 \begin_inset Quotes qld
26673 \end_inset
26674
26675
26676 \family default
26677  is shown in a browser.
26678 \end_layout
26679
26680 \begin_layout Subsubsection
26681 File Locking
26682 \begin_inset CommandInset label
26683 LatexCommand label
26684 name "subsec:SVN-File-Locking"
26685
26686 \end_inset
26687
26688
26689 \end_layout
26690
26691 \begin_layout Standard
26692 The file exchange through various revision control systems brings the problem
26693  of merge conflicts in case two different users try to edit the same (parts
26694  of) document.
26695  When such a conflict happens it needs manual resolving and one reasonable
26696  alternative is to provide some kind of locking mechanism, which guarantees
26697  that only one user is allowed to edit file at the given time.
26698 \end_layout
26699
26700 \begin_layout Standard
26701 SVN has two such mechanisms to provide mutual exclusivity for file access
26702  – locks and automatic setting of write permissions (see sec.
26703  
26704 \begin_inset CommandInset ref
26705 LatexCommand ref
26706 reference "subsec:Automatical-Locking-Property"
26707
26708 \end_inset
26709
26710 ) based on 
26711 \begin_inset Flex Code
26712 status collapsed
26713
26714 \begin_layout Plain Layout
26715 svn:needs-lock
26716 \end_layout
26717
26718 \end_inset
26719
26720  file svn property
26721 \begin_inset Foot
26722 status collapsed
26723
26724 \begin_layout Plain Layout
26725 \begin_inset Flex URL
26726 status open
26727
26728 \begin_layout Plain Layout
26729
26730 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
26731 \end_layout
26732
26733 \end_inset
26734
26735
26736 \end_layout
26737
26738 \end_inset
26739
26740 .
26741  If this property is detected for a given document \SpecialChar LyX
26742  starts to use SVN locks
26743  for document editing automatically and the whole check-in/out mechanism
26744  switches to the same regimen as for RCS.
26745  This in particular means there are two different modes of file use in \SpecialChar LyX
26746 :
26747 \end_layout
26748
26749 \begin_layout Itemize
26750 Unlocked state.
26751  The loaded file is in the read-only mode.
26752  For editing on needs to check-out.
26753  
26754 \emph on
26755 Check-out
26756 \emph default
26757  consists of updating from the repository and gaining write lock.
26758  If the lock is not possible to obtain, we remain in unlocked state.
26759 \end_layout
26760
26761 \begin_layout Itemize
26762 Locked state.
26763  The loaded file is in the 
26764 \begin_inset Quotes els
26765 \end_inset
26766
26767 normal
26768 \begin_inset Quotes ers
26769 \end_inset
26770
26771  edit mode.
26772  No other user is allowed to edit the file.
26773  
26774 \emph on
26775 Check-in
26776 \emph default
26777  consists of commiting changes and releasing write-lock.
26778  If no changes have been made to the document, no commit will be produced
26779 \begin_inset Foot
26780 status collapsed
26781
26782 \begin_layout Plain Layout
26783 Don't be puzzled by the fact that you will be asked for commit message anyway.
26784 \end_layout
26785
26786 \end_inset
26787
26788  and only the write-lock will be released.
26789 \end_layout
26790
26791 \begin_layout Standard
26792 SVN commands:
26793 \end_layout
26794
26795 \begin_layout Labeling
26796 \labelwidthstring 00.00.0000
26797 Check-in:
26798 \family typewriter
26799  svn commit -q -m"<description>" "<file-name>"
26800 \begin_inset Newline newline
26801 \end_inset
26802
26803 svn unlock "<file-name>"
26804 \end_layout
26805
26806 \begin_layout Labeling
26807 \labelwidthstring 00.00.0000
26808 Check-out: 
26809 \family typewriter
26810 svn update "<file-name>"
26811 \begin_inset Newline newline
26812 \end_inset
26813
26814 svn lock "<file-name>"
26815 \end_layout
26816
26817 \begin_layout Subsubsection
26818
26819 \family typewriter
26820 \begin_inset CommandInset label
26821 LatexCommand label
26822 name "subsec:Automatical-Locking-Property"
26823
26824 \end_inset
26825
26826
26827 \family default
26828 Automatic Locking Property
26829 \end_layout
26830
26831 \begin_layout Standard
26832 The above mentioned automatic setting of write permissions of the .lyx file
26833  can be set through
26834 \family sans
26835  File\SpecialChar menuseparator
26836 Version
26837 \begin_inset space ~
26838 \end_inset
26839
26840 Control\SpecialChar menuseparator
26841 Use Locking Property
26842 \family default
26843 .
26844  This command is active only when the file is not locked on the svn server
26845  (i.e.
26846  you need to check-out before proceeding).
26847 \end_layout
26848
26849 \begin_layout Labeling
26850 \labelwidthstring 00.00.0000
26851 SVN
26852 \begin_inset space ~
26853 \end_inset
26854
26855 commands:
26856 \end_layout
26857
26858 \begin_layout Labeling
26859 \labelwidthstring 00.00.0000
26860 Set:
26861 \family typewriter
26862  svn propset svn:needs-lock ON "<file-name>"
26863 \end_layout
26864
26865 \begin_layout Labeling
26866 \labelwidthstring 00.00.0000
26867 Unset: 
26868 \family typewriter
26869 svn propdel svn:needs-lock "<file-name>"
26870 \end_layout
26871
26872 \begin_layout Subsubsection
26873 \begin_inset CommandInset label
26874 LatexCommand label
26875 name "subsec:VCS-Revision-Information"
26876
26877 \end_inset
26878
26879 Revision Information in Documents
26880 \end_layout
26881
26882 \begin_layout Standard
26883 There are more possibilities how to activate revision information in our
26884  document.
26885 \end_layout
26886
26887 \begin_layout Itemize
26888 \SpecialChar LyX
26889  supports directly:
26890 \end_layout
26891
26892 \begin_deeper
26893 \begin_layout Itemize
26894 tree revision information (
26895 \begin_inset Flex Code
26896 status collapsed
26897
26898 \begin_layout Plain Layout
26899 vcs-tree-revision
26900 \end_layout
26901
26902 \end_inset
26903
26904 ).
26905  The result is the output of the 
26906 \begin_inset Flex Code
26907 status collapsed
26908
26909 \begin_layout Plain Layout
26910 svnversion
26911 \end_layout
26912
26913 \end_inset
26914
26915  command, the following table gives you an idea, how to read the results.
26916 \end_layout
26917
26918 \begin_layout Standard
26919 \align center
26920 \begin_inset Tabular
26921 <lyxtabular version="3" rows="6" columns="2">
26922 <features tabularvalignment="middle">
26923 <column alignment="left" valignment="top">
26924 <column alignment="left" valignment="top">
26925 <row>
26926 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
26927 \begin_inset Text
26928
26929 \begin_layout Plain Layout
26930
26931 \series bold
26932 Output
26933 \end_layout
26934
26935 \end_inset
26936 </cell>
26937 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
26938 \begin_inset Text
26939
26940 \begin_layout Plain Layout
26941
26942 \series bold
26943 Meaning
26944 \end_layout
26945
26946 \end_inset
26947 </cell>
26948 </row>
26949 <row>
26950 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26951 \begin_inset Text
26952
26953 \begin_layout Plain Layout
26954 4123:4168
26955 \end_layout
26956
26957 \end_inset
26958 </cell>
26959 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26960 \begin_inset Text
26961
26962 \begin_layout Plain Layout
26963 mixed revision working copy
26964 \end_layout
26965
26966 \end_inset
26967 </cell>
26968 </row>
26969 <row>
26970 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26971 \begin_inset Text
26972
26973 \begin_layout Plain Layout
26974 4168M
26975 \end_layout
26976
26977 \end_inset
26978 </cell>
26979 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
26980 \begin_inset Text
26981
26982 \begin_layout Plain Layout
26983 modified working copy
26984 \end_layout
26985
26986 \end_inset
26987 </cell>
26988 </row>
26989 <row>
26990 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
26991 \begin_inset Text
26992
26993 \begin_layout Plain Layout
26994 4123S
26995 \end_layout
26996
26997 \end_inset
26998 </cell>
26999 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27000 \begin_inset Text
27001
27002 \begin_layout Plain Layout
27003 switched working copy
27004 \end_layout
27005
27006 \end_inset
27007 </cell>
27008 </row>
27009 <row>
27010 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27011 \begin_inset Text
27012
27013 \begin_layout Plain Layout
27014 4123P
27015 \end_layout
27016
27017 \end_inset
27018 </cell>
27019 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27020 \begin_inset Text
27021
27022 \begin_layout Plain Layout
27023 partial working copy, from a sparse checkout
27024 \end_layout
27025
27026 \end_inset
27027 </cell>
27028 </row>
27029 <row>
27030 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27031 \begin_inset Text
27032
27033 \begin_layout Plain Layout
27034 4123:4168MS
27035 \end_layout
27036
27037 \end_inset
27038 </cell>
27039 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27040 \begin_inset Text
27041
27042 \begin_layout Plain Layout
27043 mixed revision, modified, switched working copy
27044 \end_layout
27045
27046 \end_inset
27047 </cell>
27048 </row>
27049 </lyxtabular>
27050
27051 \end_inset
27052
27053
27054 \end_layout
27055
27056 \begin_layout Itemize
27057 file revision information.
27058  The result comes from parsing the output of 
27059 \begin_inset Flex Code
27060 status collapsed
27061
27062 \begin_layout Plain Layout
27063 svn
27064 \begin_inset space ~
27065 \end_inset
27066
27067 info
27068 \begin_inset space ~
27069 \end_inset
27070
27071 --xml
27072 \begin_inset space ~
27073 \end_inset
27074
27075 file.lyx
27076 \end_layout
27077
27078 \end_inset
27079
27080 .
27081  Supported flags are:
27082 \end_layout
27083
27084 \begin_deeper
27085 \begin_layout Itemize
27086 version number of the last commit (
27087 \begin_inset Flex Code
27088 status collapsed
27089
27090 \begin_layout Plain Layout
27091 vcs-revision
27092 \end_layout
27093
27094 \end_inset
27095
27096 )
27097 \end_layout
27098
27099 \begin_layout Itemize
27100 author of the last commit (
27101 \begin_inset Flex Code
27102 status collapsed
27103
27104 \begin_layout Plain Layout
27105 vcs-author
27106 \end_layout
27107
27108 \end_inset
27109
27110 )
27111 \end_layout
27112
27113 \begin_layout Itemize
27114 date of the last commit (
27115 \begin_inset Flex Code
27116 status collapsed
27117
27118 \begin_layout Plain Layout
27119 vcs-date
27120 \end_layout
27121
27122 \end_inset
27123
27124 )
27125 \end_layout
27126
27127 \begin_layout Itemize
27128 time of the last commit (
27129 \begin_inset Flex Code
27130 status collapsed
27131
27132 \begin_layout Plain Layout
27133 vcs-time
27134 \end_layout
27135
27136 \end_inset
27137
27138 )
27139 \end_layout
27140
27141 \end_deeper
27142 \begin_layout Standard
27143 You can obtain this info via InsetInfo (
27144 \change_inserted 5863208 1564400022
27145
27146 \lang american
27147 Insert\SpecialChar menuseparator
27148 Field\SpecialChar menuseparator
27149 Version Control Revision
27150 \change_deleted 5863208 1564399852
27151
27152 \lang english
27153 e.g.
27154  
27155 \begin_inset Flex Code
27156 status collapsed
27157
27158 \begin_layout Plain Layout
27159 info-insert buffer vcs-date
27160 \end_layout
27161
27162 \end_inset
27163
27164
27165 \change_unchanged
27166 ).
27167  The information will be available only when you have the file stored under
27168  svn managment (i.e.
27169  the 
27170 \begin_inset Flex Code
27171 status collapsed
27172
27173 \begin_layout Plain Layout
27174 .svn
27175 \end_layout
27176
27177 \end_inset
27178
27179  directory is available with your document).
27180 \end_layout
27181
27182 \end_deeper
27183 \begin_layout Itemize
27184 Another—a hacking one—possibility is to use svn keywords
27185 \begin_inset Foot
27186 status collapsed
27187
27188 \begin_layout Plain Layout
27189 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
27190 \end_layout
27191
27192 \end_inset
27193
27194 .
27195  In short – you set file keywords property (e.g.
27196  
27197 \family sans
27198 svn propset svn:keywords 'Rev' file.lyx
27199 \family default
27200 ) and then paste keyword \SpecialChar TeX
27201  code
27202 \begin_inset Foot
27203 status collapsed
27204
27205 \begin_layout Plain Layout
27206 This is an easy way how to ensure that \SpecialChar LyX
27207  won't break the line in the middle
27208  of keyword tag.
27209 \end_layout
27210
27211 \end_inset
27212
27213  tag in your document (e.g.
27214  
27215 \begin_inset Flex Code
27216 status collapsed
27217
27218 \begin_layout Plain Layout
27219 $Rev$
27220 \end_layout
27221
27222 \end_inset
27223
27224 ).
27225  This way svn client will automatically substitute revision number (e.g.
27226  
27227 \begin_inset Flex Code
27228 status collapsed
27229
27230 \begin_layout Plain Layout
27231 $Rev: 59 $
27232 \end_layout
27233
27234 \end_inset
27235
27236 ) after each update and commit.
27237  There are more problems with this approach.
27238  Firstly, the '$' character is used in \SpecialChar TeX
27239  world for math equations, so any
27240  occurence of math formula 
27241 \begin_inset Formula $Rev$
27242 \end_inset
27243
27244  become 
27245 \begin_inset Formula $Rev:59$
27246 \end_inset
27247
27248  in your \SpecialChar LyX
27249  document.
27250  Similarly for other keywords like Id, Date, Author, etc.
27251  Secondly svn output is dependent on your locales, so its very easy that
27252  svn would produce some problematic strings once Date is used.
27253  Thirdly you get the whole 'Rev: 59' string in your document instead of
27254  the plain number.
27255  Until subversion implements user's custom keywords it will be hard to use
27256  this approach reliably or let \SpecialChar LyX
27257  to support it directly.
27258 \end_layout
27259
27260 \begin_layout Subsection
27261 SVN and Windows Environment
27262 \end_layout
27263
27264 \begin_layout Quote
27265 My inclination is to say that if the user cannot figure out the command
27266  line operations on their own fairly quickly, they would be well advised
27267  to use TortoiseSVN.
27268  —P.
27269  A.
27270  Rubin
27271 \end_layout
27272
27273 \begin_layout Subsubsection
27274 Preparation
27275 \end_layout
27276
27277 \begin_layout Standard
27278 In addition to installing \SpecialChar LyX
27279 , and having access to a Subversion repository,
27280  the user will need to install the Subversion client program.
27281  A Windows installer for the client program is available from 
27282 \begin_inset CommandInset href
27283 LatexCommand href
27284 name "CollabNet"
27285 target "http://www.collab.net/nonav/downloads/subversion/"
27286 literal "false"
27287
27288 \end_inset
27289
27290 .
27291  The user may also want to install 
27292 \begin_inset CommandInset href
27293 LatexCommand href
27294 name "TortoiseSVN"
27295 target "http://tortoisesvn.tigris.org/"
27296 literal "false"
27297
27298 \end_inset
27299
27300 , which integrates Subversion operations into the context (rightclick) menu
27301  of Windows Explorer.
27302  Operations done outside \SpecialChar LyX
27303  will typically be more convenient using the Explorer
27304  context menu.
27305  Note that TortoiseSVN is not a replacement for the client program, which
27306  is what \SpecialChar LyX
27307  itself will use.
27308 \end_layout
27309
27310 \begin_layout Subsubsection
27311 Bringing a document under Subversion control
27312 \end_layout
27313
27314 \begin_layout Standard
27315 Before a \SpecialChar LyX
27316  document can be brought under version control in Subversion, its
27317  parent directory needs to be under version control.
27318  If the document is being added to a project already in the repository,
27319  this is accomplished by checking the project out to the directory where
27320  the new document will be placed.
27321  If the project itself is not yet under version control (for instance, if
27322  this document starts a new project), the directory must be imported into
27323  the repository.
27324  This is done outside \SpecialChar LyX
27325 .
27326  Both import and checkout are easily accomplished from the Explorer context
27327  menu using TortoiseSVN, or alternatively can be done using the command
27328  line client at a DOS prompt.
27329  The procedure for importing the project using TortoiseSVN is described
27330  below, assuming an existing repository and a new project being started
27331  in 
27332 \family typewriter
27333 C:
27334 \backslash
27335 new project
27336 \family default
27337 .
27338  For information on using the Subversion client program, run 
27339 \family typewriter
27340 svn --help 
27341 \family default
27342 in a DOS shell.
27343 \end_layout
27344
27345 \begin_layout Enumerate
27346 Locate 
27347 \family typewriter
27348 C:
27349 \backslash
27350 new project 
27351 \family default
27352 in Windows Explorer, right click it, and select 
27353 \family sans
27354 TortoiseSVN\SpecialChar menuseparator
27355 Repo-browser
27356 \family default
27357 .
27358  If necessary, adjust the URL for the repository, then click OK.
27359 \end_layout
27360
27361 \begin_layout Enumerate
27362 Right click the level of the repository under which you want to place the
27363  new project folder (typically the top level) and click 
27364 \family sans
27365 Create folder
27366 \family default
27367  Supply a name for the project folder and click OK.
27368  Add a message for the log file if desired, then click OK again.
27369  The new project folder should appear in the repository.
27370  Finally, click OK again to exit the repository browser.
27371 \end_layout
27372
27373 \begin_layout Enumerate
27374 Once again right click 
27375 \family typewriter
27376 C:
27377 \backslash
27378 new project
27379 \family default
27380 , this time selecting SVN Checkout\SpecialChar ldots
27381  Select the URL of the project folder
27382  you just created in the repository, and set the checkout directory to 
27383 \family typewriter
27384 C:
27385 \backslash
27386 new project.
27387
27388 \family default
27389  Click OK.
27390  You will be warned about a non-empty folder; click OK to proceed.
27391  You should now have a 
27392 \family typewriter
27393 .svn
27394 \family default
27395  directory under 
27396 \family typewriter
27397 C:
27398 \backslash
27399 new project.
27400 \end_layout
27401
27402 \begin_layout Enumerate
27403 Create or open your document in \SpecialChar LyX
27404  and click 
27405 \family sans
27406 File\SpecialChar menuseparator
27407 Version
27408 \begin_inset space ~
27409 \end_inset
27410
27411 Control\SpecialChar menuseparator
27412 Register.
27413  
27414 \family default
27415 Add a log message and click OK to commit the document to version control.
27416 \end_layout
27417
27418 \begin_layout Standard
27419 From this point onward, you should have full functionality in the 
27420 \family sans
27421 File\SpecialChar menuseparator
27422 Version
27423 \begin_inset space ~
27424 \end_inset
27425
27426 Control
27427 \family default
27428  menu.
27429  You also have the option of checking the document in and out, viewing its
27430  history, etc.
27431  using the TortoiseSVN context menu in Windows Explorer or the Subversion
27432  client program from a command prompt.
27433 \end_layout
27434
27435 \begin_layout Subsubsection
27436 SSH tunnel used with SVN under Windows
27437 \end_layout
27438
27439 \begin_layout Standard
27440 Compared with Linux setting up an svn client to communicate over ssh under
27441  Windows is a rather troublesome task.
27442  We will at least offer some hints how to setup the client side but prior
27443  knowledge about ssh and the Windows command line is needed, also be prepared
27444  for a great deal of frustration\SpecialChar ldots
27445
27446 \end_layout
27447
27448 \begin_layout Enumerate
27449 Get an svn client for windows, as described in the previous sections.
27450  When it is a fresh install run some svn command (e.g.
27451  
27452 \begin_inset Flex Code
27453 status collapsed
27454
27455 \begin_layout Plain Layout
27456 svn --version
27457 \end_layout
27458
27459 \end_inset
27460
27461 ) to create config files, which you will need to change later on.
27462 \end_layout
27463
27464 \begin_layout Enumerate
27465 Choose an ssh client for Windows.
27466  There are several possibilities, we will use the one from Putty tools
27467 \begin_inset Foot
27468 status collapsed
27469
27470 \begin_layout Plain Layout
27471 \begin_inset Flex URL
27472 status collapsed
27473
27474 \begin_layout Plain Layout
27475
27476 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
27477 \end_layout
27478
27479 \end_inset
27480
27481
27482 \end_layout
27483
27484 \end_inset
27485
27486 .
27487  You will need to set the connection up so that the client doesn't ask for
27488  any password from you.
27489  To keep things easy we will use only keys without any additional password
27490  protection etc.
27491 \end_layout
27492
27493 \begin_deeper
27494 \begin_layout Enumerate
27495 Generate keys by 
27496 \begin_inset Flex Code
27497 status collapsed
27498
27499 \begin_layout Plain Layout
27500 puttygen
27501 \end_layout
27502
27503 \end_inset
27504
27505 .
27506  Save your private .ppk key file and put the public one on the server side.
27507  If the SVN server runs on Linux, note that the format of the public key
27508  is not compatible with Linux openssh and you will need to direcly copy-paste
27509  the key from the 
27510 \begin_inset Quotes eld
27511 \end_inset
27512
27513
27514 \emph on
27515 Public key for pasting into OpenSSH authorized_keys file
27516 \emph default
27517 :
27518 \begin_inset Quotes erd
27519 \end_inset
27520
27521  edit field into the server's 
27522 \begin_inset Flex Code
27523 status collapsed
27524
27525 \begin_layout Plain Layout
27526 ~/.ssh/authorized_keys
27527 \end_layout
27528
27529 \end_inset
27530
27531  / 
27532 \begin_inset Flex Code
27533 status collapsed
27534
27535 \begin_layout Plain Layout
27536 authorized_keys2
27537 \end_layout
27538
27539 \end_inset
27540
27541  file.
27542 \end_layout
27543
27544 \begin_layout Enumerate
27545 Get the Putty's 
27546 \begin_inset Flex Code
27547 status collapsed
27548
27549 \begin_layout Plain Layout
27550 plink
27551 \end_layout
27552
27553 \end_inset
27554
27555 .
27556  In the SVN config file
27557 \begin_inset Foot
27558 status collapsed
27559
27560 \begin_layout Plain Layout
27561 Exact path depends on Windows version, usually somewhere around 
27562 \begin_inset Flex Code
27563 status collapsed
27564
27565 \begin_layout Plain Layout
27566 c:
27567 \backslash
27568 Documents and Settings
27569 \backslash
27570 user
27571 \backslash
27572 Application Data
27573 \backslash
27574 Subversion
27575 \backslash
27576 config
27577 \end_layout
27578
27579 \end_inset
27580
27581  / 
27582 \begin_inset Flex Code
27583 status collapsed
27584
27585 \begin_layout Plain Layout
27586 AppData
27587 \backslash
27588 Roaming
27589 \backslash
27590 Subversion
27591 \end_layout
27592
27593 \end_inset
27594
27595 .
27596 \end_layout
27597
27598 \end_inset
27599
27600 , section [tunnels], setup ssh command, e.g.
27601  
27602 \begin_inset Flex Code
27603 status collapsed
27604
27605 \begin_layout Plain Layout
27606 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
27607 \end_layout
27608
27609 \end_inset
27610
27611 .
27612 \begin_inset Foot
27613 status collapsed
27614
27615 \begin_layout Plain Layout
27616 It will usually take a lot of time to get exact command right and it depends
27617  on many things.
27618  For example do not have some remote server saved as a default session in
27619  Putty etc.
27620  If things fail, try to connect via plink without SVN first.
27621 \end_layout
27622
27623 \end_inset
27624
27625
27626 \end_layout
27627
27628 \end_deeper
27629 \begin_layout Enumerate
27630 Checkout the SVN archive, e.
27631 \begin_inset space \thinspace{}
27632 \end_inset
27633
27634 g.
27635 \begin_inset Newline newline
27636 \end_inset
27637
27638
27639 \begin_inset Flex Code
27640 status collapsed
27641
27642 \begin_layout Plain Layout
27643 svn co svn+ssh://user@server/repository_path
27644 \end_layout
27645
27646 \end_inset
27647
27648 .
27649 \end_layout
27650
27651 \begin_layout Subsubsection
27652 End-of-Line Conversions
27653 \end_layout
27654
27655 \begin_layout Standard
27656 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
27657  will
27658  use different line endings inside the .lyx files.
27659  This is not a problem as far as \SpecialChar LyX
27660  functionality is concerned, but the commit
27661  diffs will be huge and merge-conflicts prone.
27662  Fortunately SVN itself knows
27663 \begin_inset Foot
27664 status collapsed
27665
27666 \begin_layout Plain Layout
27667 \begin_inset Flex URL
27668 status collapsed
27669
27670 \begin_layout Plain Layout
27671
27672 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
27673 \end_layout
27674
27675 \end_inset
27676
27677
27678 \end_layout
27679
27680 \end_inset
27681
27682  how to deal with CR/LF problems when switching .lyx files to the 
27683 \begin_inset Flex Code
27684 status collapsed
27685
27686 \begin_layout Plain Layout
27687 native
27688 \end_layout
27689
27690 \end_inset
27691
27692  mode.
27693 \begin_inset Foot
27694 status collapsed
27695
27696 \begin_layout Plain Layout
27697 For the lazy guys: 
27698 \begin_inset Flex Code
27699 status collapsed
27700
27701 \begin_layout Plain Layout
27702 svn propset svn:eol-style native FILE_NAME
27703 \end_layout
27704
27705 \end_inset
27706
27707
27708 \end_layout
27709
27710 \end_inset
27711
27712
27713 \end_layout
27714
27715 \begin_layout Subsection
27716 GIT commands in \SpecialChar LyX
27717
27718 \end_layout
27719
27720 \begin_layout Standard
27721 A minimal subset of GIT commands is now supported by \SpecialChar LyX
27722 .
27723  You can find the commands in the 
27724 \family sans
27725 File\SpecialChar menuseparator
27726 Version
27727 \begin_inset space ~
27728 \end_inset
27729
27730 Control
27731 \family default
27732  submenu.
27733  Please note that if you use password protected access to repository via
27734  ssh, you will be asked in terminal window.
27735  \SpecialChar LyX
27736  was tested against GIT 1.7.
27737 \begin_inset Foot
27738 status collapsed
27739
27740 \begin_layout Plain Layout
27741 Windows users please note that you need to ensure that git is on the path.
27742  This can be set from within \SpecialChar LyX
27743  at 
27744 \family sans
27745 Tools\SpecialChar menuseparator
27746 Preferences\SpecialChar menuseparator
27747 Paths\SpecialChar menuseparator
27748 PATH prefix
27749 \family default
27750 .
27751 \end_layout
27752
27753 \end_inset
27754
27755
27756 \end_layout
27757
27758 \begin_layout Standard
27759 One big difference of GIT and the other supported version control systems
27760  is the distributed nature of GIT: With traditional version control systems
27761  there is one central server which hosts the repository.
27762  Users commit their changes to the server, and get updates made by other
27763  users from it.
27764  With GIT, users commit to a local repository.
27765  The local repository can be synchronized with one or more remote repositories
27766  using the 
27767 \begin_inset Flex Code
27768 status collapsed
27769
27770 \begin_layout Plain Layout
27771 pull
27772 \end_layout
27773
27774 \end_inset
27775
27776  and 
27777 \begin_inset Flex Code
27778 status collapsed
27779
27780 \begin_layout Plain Layout
27781 push
27782 \end_layout
27783
27784 \end_inset
27785
27786  GIT commands.
27787  \SpecialChar LyX
27788  does not interact in any way with remote GIT repositories.
27789  It works exclusively with the local repository in a very similar way as
27790  with a central CVS or SVN repository.
27791  If you use remote GIT repositories you need to do the 
27792 \begin_inset Flex Code
27793 status collapsed
27794
27795 \begin_layout Plain Layout
27796 pull
27797 \end_layout
27798
27799 \end_inset
27800
27801  and 
27802 \begin_inset Flex Code
27803 status collapsed
27804
27805 \begin_layout Plain Layout
27806 push
27807 \end_layout
27808
27809 \end_inset
27810
27811  operations with your favourite GIT client.
27812 \end_layout
27813
27814 \begin_layout Subsubsection
27815
27816 \family sans
27817 Register
27818 \end_layout
27819
27820 \begin_layout Standard
27821 If your document is not under revision control, this is the only item shown
27822  in the menu.
27823  And if it is under revision control, the 
27824 \family sans
27825 Register
27826 \family default
27827  item is not visible.
27828 \end_layout
27829
27830 \begin_layout Standard
27831 This command registers in GIT your document ONLY in case you have already
27832  the documents directory under GIT control (in particular 
27833 \family typewriter
27834 .git/index
27835 \family default
27836  file exists).
27837  This means you have to checkout the archive by yourself.
27838 \end_layout
27839
27840 \begin_layout Standard
27841 Then you are asked interactively to supply an initial description of the
27842  document.
27843  Don't forget that registered file is not yet committed.
27844 \end_layout
27845
27846 \begin_layout Standard
27847 GIT command that is run: 
27848 \family typewriter
27849 git add 
27850 \begin_inset Quotes qld
27851 \end_inset
27852
27853 <file-name>
27854 \begin_inset Quotes qld
27855 \end_inset
27856
27857
27858 \end_layout
27859
27860 \begin_layout Standard
27861 Read 
27862 \family typewriter
27863 man git
27864 \family default
27865  to understand the switches.
27866 \end_layout
27867
27868 \begin_layout Subsubsection
27869
27870 \family sans
27871 Check In Changes
27872 \end_layout
27873
27874 \begin_layout Standard
27875 When you are finished editing a file, you commit your changes.
27876  When you do this, you are asked for a description of the changes.
27877  After that changes are committed.
27878 \end_layout
27879
27880 \begin_layout Standard
27881 GIT command: 
27882 \family typewriter
27883 git commit -q -m"<description>" <file-name>
27884 \end_layout
27885
27886 \begin_layout Subsubsection
27887
27888 \family sans
27889 Revert To Repository Version
27890 \end_layout
27891
27892 \begin_layout Standard
27893 This will discard all changes made to the document since the last check
27894  in.
27895  You get a warning before changes are discarded.
27896 \end_layout
27897
27898 \begin_layout Standard
27899 GIT command: 
27900 \family typewriter
27901 git checkout -q 
27902 \begin_inset Quotes qld
27903 \end_inset
27904
27905 <file-name>
27906 \begin_inset Quotes qld
27907 \end_inset
27908
27909
27910 \end_layout
27911
27912 \begin_layout Subsubsection
27913
27914 \family sans
27915 Rename
27916 \end_layout
27917
27918 \begin_layout Standard
27919 This will rename the current document including the version history.
27920  It requires a clean document without any changes since the last checkin.
27921  You are asked for a file name and a description of the rename operation.
27922  After that the document is renamed, both locally and in the repository.
27923  If the parent directories of the new and old file names differ, all relative
27924  paths of included files are adjusted (like in 
27925 \family sans
27926 File\SpecialChar menuseparator
27927 Save As
27928 \family default
27929 \SpecialChar ldots
27930 ).
27931  Finally, the document is reloaded using the new name.
27932 \end_layout
27933
27934 \begin_layout Labeling
27935 \labelwidthstring 00.00.0000
27936 GIT
27937 \begin_inset space ~
27938 \end_inset
27939
27940 commands: 
27941 \begin_inset space ~
27942 \end_inset
27943
27944
27945 \begin_inset Newline newline
27946 \end_inset
27947
27948
27949 \begin_inset Flex Code
27950 status collapsed
27951
27952 \begin_layout Plain Layout
27953 git mv 
27954 \family typewriter
27955
27956 \begin_inset Quotes qld
27957 \end_inset
27958
27959 <file-name>
27960 \begin_inset Quotes qld
27961 \end_inset
27962
27963  
27964 \begin_inset Quotes qld
27965 \end_inset
27966
27967 <new-file-name>
27968 \begin_inset Quotes qld
27969 \end_inset
27970
27971
27972 \end_layout
27973
27974 \end_inset
27975
27976
27977 \begin_inset Newline newline
27978 \end_inset
27979
27980
27981 \begin_inset Flex Code
27982 status collapsed
27983
27984 \begin_layout Plain Layout
27985 git commit
27986 \end_layout
27987
27988 \end_inset
27989
27990
27991 \end_layout
27992
27993 \begin_layout Subsubsection
27994
27995 \family sans
27996 Show History
27997 \end_layout
27998
27999 \begin_layout Standard
28000 This shows the complete history of the GIT document.
28001  The output of 
28002 \family typewriter
28003 git log 
28004 \begin_inset Quotes qld
28005 \end_inset
28006
28007 <file-name>
28008 \begin_inset Quotes qld
28009 \end_inset
28010
28011
28012 \family default
28013  is shown in a browser.
28014 \end_layout
28015
28016 \begin_layout Subsubsection
28017 Version Info
28018 \end_layout
28019
28020 \begin_layout Standard
28021 \SpecialChar LyX
28022  supports GIT hash number of the last commit to the file, 
28023 \change_inserted 1119979965 1564297456
28024 its abbreviated form, 
28025 \change_unchanged
28026 author name, date and time of last commit.
28027  All those are extracted from 
28028 \family typewriter
28029 git log -n 1 --pretty=format:%H%n
28030 \change_inserted 1119979965 1564297427
28031 %h%n
28032 \change_unchanged
28033 %an%n%ai
28034 \family default
28035 .
28036  Tree version information is obtained via 
28037 \family typewriter
28038 git describe --abbrev --dirty --long
28039 \family default
28040 .
28041  See 
28042 \begin_inset CommandInset ref
28043 LatexCommand ref
28044 reference "subsec:VCS-Revision-Information"
28045
28046 \end_inset
28047
28048  for other details.
28049 \end_layout
28050
28051 \begin_layout Subsection
28052 Further tuning
28053 \end_layout
28054
28055 \begin_layout Standard
28056 With the recent addition of the 
28057 \begin_inset Flex Code
28058 status collapsed
28059
28060 \begin_layout Plain Layout
28061 vc-command
28062 \end_layout
28063
28064 \end_inset
28065
28066  function \SpecialChar LyX
28067  power users are allowed to create their own commands for revision
28068  control.
28069 \end_layout
28070
28071 \begin_layout Standard
28072 As an example you can see how two TortoiseSVN commands could be integrated
28073  directly:
28074 \end_layout
28075
28076 \begin_layout Description
28077 Commit: 
28078 \begin_inset Flex Code
28079 status collapsed
28080
28081 \begin_layout Plain Layout
28082 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
28083 \end_layout
28084
28085 \end_inset
28086
28087
28088 \end_layout
28089
28090 \begin_layout Description
28091 Revert: 
28092 \begin_inset Flex Code
28093 status collapsed
28094
28095 \begin_layout Plain Layout
28096 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
28097 \end_layout
28098
28099 \end_inset
28100
28101
28102 \end_layout
28103
28104 \begin_layout Subsection
28105 Version control and Document comparison
28106 \end_layout
28107
28108 \begin_layout Standard
28109 One of the typical uses of version control is to inspect the changes between
28110  revisions, usually by creating 
28111 \begin_inset Flex Code
28112 status collapsed
28113
28114 \begin_layout Plain Layout
28115 diff
28116 \end_layout
28117
28118 \end_inset
28119
28120  dumps.
28121  While this is useful for plain text files, it is much less useful in the
28122  case of \SpecialChar LyX
28123  files, which have more a complicated structure.
28124  Hence we provide binding to the Document comparison feature.
28125  There are two ways of calling this feature – either by direct call of 
28126 \begin_inset Flex Code
28127 status collapsed
28128
28129 \begin_layout Plain Layout
28130 vc-compare
28131 \end_layout
28132
28133 \end_inset
28134
28135  \SpecialChar LyX
28136  function (for details see \SpecialChar LyX
28137  functions manual) or by the toolbar icon 
28138 \begin_inset Info
28139 type  "icon"
28140 arg   "vc-compare"
28141 \end_inset
28142
28143  or the menu item 
28144 \begin_inset Info
28145 type  "menu"
28146 arg   "vc-compare"
28147 \end_inset
28148
28149 , respectively.
28150  One can either compare two chosen revisions of the document or he can simply
28151  compare the current version of edited text with older revisions (where
28152  '
28153 \begin_inset Flex Noun
28154 status collapsed
28155
28156 \begin_layout Plain Layout
28157 0
28158 \end_layout
28159
28160 \end_inset
28161
28162 ' revisions back means comparison of the edited file with last commited
28163  revision).
28164  
28165 \end_layout
28166
28167 \begin_layout Standard
28168 This feature is supported for SVN and RCS though due to the more complicated
28169  versioning scheme of RCS there is a constraint – when addressing the revisions
28170  in dialog, numbers always point to the last number in RCS revision number,
28171  i.e.
28172  '35' in '1.2.35'.
28173  We don't currently support GIT addressing of revisions, one can just compare
28174  edited document with its revision X steps backs, where X is addressed as
28175  
28176 \begin_inset Flex Code
28177 status collapsed
28178
28179 \begin_layout Plain Layout
28180 HEAD~X
28181 \end_layout
28182
28183 \end_inset
28184
28185 .
28186 \end_layout
28187
28188 \begin_layout Section
28189 Literate Programming
28190 \end_layout
28191
28192 \begin_layout Standard
28193 Updated by 
28194 \noun on
28195 Kayvan Sylvan 
28196 \noun default
28197 (kayvan@sylvan.com)
28198 \noun on
28199
28200 \noun default
28201 original documentation written by 
28202 \noun on
28203 Edmar Wienskoski Jr.
28204
28205 \noun default
28206  (edmar-w-jr@technologist.com)
28207 \end_layout
28208
28209 \begin_layout Subsection
28210 Introduction
28211 \end_layout
28212
28213 \begin_layout Standard
28214 The main purpose of this documentation is to show you how to use \SpecialChar LyX
28215  for literate
28216  programming, where it is assumed that you are familiar with this programming
28217  technique, and know what 
28218 \begin_inset Quotes eld
28219 \end_inset
28220
28221 tangling
28222 \begin_inset Quotes erd
28223 \end_inset
28224
28225  and 
28226 \begin_inset Quotes eld
28227 \end_inset
28228
28229 weaving
28230 \begin_inset Quotes erd
28231 \end_inset
28232
28233  means.
28234  If that is not the case, please follow the web links provided in the following
28235  sections.
28236  There is a lot of good documentation out there covering old development
28237  history to the latest tools tips.
28238 \end_layout
28239
28240 \begin_layout Standard
28241 It is also assumed that you are familiar with \SpecialChar LyX
28242  itself to a point that you
28243  are comfortable changing your \SpecialChar LyX
28244  preferences, and X resources file.
28245  If that is not the case please refer to other \SpecialChar LyX
28246  documentation to cover your
28247  specific needs.
28248 \end_layout
28249
28250 \begin_layout Subsection
28251 Literate Programming
28252 \end_layout
28253
28254 \begin_layout Standard
28255 From the Literate Programming FAQ: 
28256 \end_layout
28257
28258 \begin_layout Quotation
28259 Literate programming is the combination of documentation and source together
28260  in a fashion suited for reading by human beings.
28261  In fact, literate programs should be enjoyable reading, even inviting!
28262  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
28263  and documentation in a single file.
28264  Literate programming tools then parse the file to produce either readable
28265  documentation or compilable source.
28266  The WEB style of literate programming was created by D.
28267 \begin_inset space \thinspace{}
28268 \end_inset
28269
28270 E.
28271  Knuth during the development of his \SpecialChar TeX
28272  typesetting software.
28273  
28274 \end_layout
28275
28276 \begin_layout Standard
28277 Another excerpt says:
28278 \end_layout
28279
28280 \begin_layout Quotation
28281
28282 \emph on
28283 How is literate programming different from verbose commenting?
28284 \end_layout
28285
28286 \begin_layout Quotation
28287 There are three distinguishing characteristics.
28288  In order of importance, they are: 
28289 \end_layout
28290
28291 \begin_deeper
28292 \begin_layout Itemize
28293 flexible order of elaboration 
28294 \end_layout
28295
28296 \begin_layout Itemize
28297 automatic support for browsing 
28298 \end_layout
28299
28300 \begin_layout Itemize
28301 typeset documentation, especially diagrams and mathematics 
28302 \end_layout
28303
28304 \end_deeper
28305 \begin_layout Standard
28306 Now that I sparked your curiosity, take a look in the references.
28307 \end_layout
28308
28309 \begin_layout Subsubsection
28310 References
28311 \end_layout
28312
28313 \begin_layout Standard
28314 The complete Literate Programming FAQ can be found at:
28315 \end_layout
28316
28317 \begin_layout Quote
28318 Literate Programming FAQ 
28319 \begin_inset Flex URL
28320 status open
28321
28322 \begin_layout Plain Layout
28323
28324 http://www.literateprogramming.com/lpfaq.pdf
28325 \end_layout
28326
28327 \end_inset
28328
28329
28330 \end_layout
28331
28332 \begin_layout Standard
28333 The FAQ lists 23 (twenty three!) different literate programming tools.
28334  Where some are specialized or 
28335 \begin_inset Quotes eld
28336 \end_inset
28337
28338 tailored
28339 \begin_inset Quotes erd
28340 \end_inset
28341
28342  for particular programming languages, while other have general scope.
28343  I selected 
28344 \noun on
28345 Noweb
28346 \noun default
28347  for my own use for several reasons:
28348 \end_layout
28349
28350 \begin_layout Itemize
28351 It can generate the documentation either in \SpecialChar LaTeX
28352  or HTML.
28353 \end_layout
28354
28355 \begin_layout Itemize
28356 It has a open architecture, i.
28357 \begin_inset space \thinspace{}
28358 \end_inset
28359
28360 e.
28361 \begin_inset space \space{}
28362 \end_inset
28363
28364 it is easy to plug in new filters
28365 \begin_inset Foot
28366 status collapsed
28367
28368 \begin_layout Plain Layout
28369
28370 \emph on
28371 Filters 
28372 \emph default
28373 are programs that read a given data stream and output a manipulated data
28374  stream.
28375  That way, a WEB file (consisting of literate code) can be turned into a
28376  file consisting only of C program code or \SpecialChar LaTeX
28377  code.
28378 \end_layout
28379
28380 \end_inset
28381
28382  and to perform special processing that you may need.
28383  
28384 \end_layout
28385
28386 \begin_layout Itemize
28387 There is a good selection of filters available already (the HTML is one
28388  of them).
28389 \end_layout
28390
28391 \begin_layout Itemize
28392 It is free.
28393 \end_layout
28394
28395 \begin_layout Standard
28396 The Noweb web page can be found at: 
28397 \end_layout
28398
28399 \begin_layout Quote
28400 Noweb home page 
28401 \begin_inset Flex URL
28402 status collapsed
28403
28404 \begin_layout Plain Layout
28405
28406 https://www.cs.tufts.edu/~nr/noweb/
28407 \end_layout
28408
28409 \end_inset
28410
28411
28412 \end_layout
28413
28414 \begin_layout Standard
28415 Starting from there you can reach many other interesting links and even
28416  some literate program examples.
28417 \end_layout
28418
28419 \begin_layout Subsection
28420 \SpecialChar LyX
28421  and Literate Programming with Noweb
28422 \end_layout
28423
28424 \begin_layout Standard
28425 The \SpecialChar LyX
28426  support for Literate Programming is provided by using the generic \SpecialChar LyX
28427
28428  converters mechanism.
28429  This support is provided in a 
28430 \begin_inset Quotes eld
28431 \end_inset
28432
28433 Noweb independent
28434 \begin_inset Quotes erd
28435 \end_inset
28436
28437  way, i.
28438 \begin_inset space \thinspace{}
28439 \end_inset
28440
28441 e.
28442 \begin_inset space \space{}
28443 \end_inset
28444
28445 you will be able to use this new \SpecialChar LyX
28446  feature with some other literate programming
28447  tool of your choice by just changing your \SpecialChar LyX
28448  preferences.
28449 \end_layout
28450
28451 \begin_layout Subsubsection
28452 Generating documents and code (weaving and tangling)
28453 \end_layout
28454
28455 \begin_layout Paragraph
28456 Using the noweb module
28457 \end_layout
28458
28459 \begin_layout Standard
28460 If you have installed Noweb and \SpecialChar LyX
28461  successfully, whenever you open a new document,
28462  after you have chosen its document class, use the 
28463 \family sans
28464 Document\SpecialChar menuseparator
28465 Settings
28466 \family default
28467  menu to add the 
28468 \begin_inset Quotes eld
28469 \end_inset
28470
28471 noweb
28472 \begin_inset Quotes erd
28473 \end_inset
28474
28475  module.
28476  If Noweb is correctly installed, when you click on the 
28477 \begin_inset Quotes eld
28478 \end_inset
28479
28480 Modules
28481 \begin_inset Quotes erd
28482 \end_inset
28483
28484  link, you will see the 
28485 \begin_inset Quotes eld
28486 \end_inset
28487
28488 noweb
28489 \begin_inset Quotes erd
28490 \end_inset
28491
28492  module in the available list and you can add it to your document.
28493 \end_layout
28494
28495 \begin_layout Paragraph
28496 Typing code in
28497 \end_layout
28498
28499 \begin_layout Standard
28500 \SpecialChar LyX
28501  enables you to write code with a custom inset named 
28502 \begin_inset Flex Noun
28503 status collapsed
28504
28505 \begin_layout Plain Layout
28506 Chunk
28507 \end_layout
28508
28509 \end_inset
28510
28511 .
28512  Noweb delimits chunks like this:
28513 \end_layout
28514
28515 \begin_layout LyX-Code
28516 <<My code>>=
28517 \end_layout
28518
28519 \begin_layout LyX-Code
28520   code
28521 \end_layout
28522
28523 \begin_layout LyX-Code
28524   more code
28525 \end_layout
28526
28527 \begin_layout LyX-Code
28528   even more code
28529 \end_layout
28530
28531 \begin_layout LyX-Code
28532   @
28533 \end_layout
28534
28535 \begin_layout Standard
28536 The problem is that whatever is written in between the << and the 
28537 \family typewriter
28538 @
28539 \family default
28540  must be taken literally, i.
28541 \begin_inset space \thinspace{}
28542 \end_inset
28543
28544 e.
28545 \begin_inset space \space{}
28546 \end_inset
28547
28548 \SpecialChar LyX
28549  should be prevented from making any special interpretation of what has
28550  been written.
28551  This is also handled by 
28552 \begin_inset Flex Noun
28553 status collapsed
28554
28555 \begin_layout Plain Layout
28556 Chunk
28557 \end_layout
28558
28559 \end_inset
28560
28561 , that works like a normal text inset but has a free spacing capability.
28562 \end_layout
28563
28564 \begin_layout Standard
28565 As a special note, you can also use the 
28566 \begin_inset Quotes eld
28567 \end_inset
28568
28569 %def
28570 \begin_inset Quotes erd
28571 \end_inset
28572
28573  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
28574 rence:
28575 \end_layout
28576
28577 \begin_layout LyX-Code
28578 <<My chunk>>=
28579 \end_layout
28580
28581 \begin_layout LyX-Code
28582 def some_function(args):
28583 \end_layout
28584
28585 \begin_layout LyX-Code
28586    "This is the doc string for this function."
28587 \end_layout
28588
28589 \begin_layout LyX-Code
28590    print "My args: ", args
28591 \end_layout
28592
28593 \begin_layout LyX-Code
28594 @ %def some_function
28595 \end_layout
28596
28597 \begin_layout Standard
28598 For an example of this usage and the resulting cross-reference output, look
28599  at the Literate python program in 
28600 \emph on
28601 LIBDIR/examples/listerrors.lyx
28602 \emph default
28603  which should make this all clear.
28604 \end_layout
28605
28606 \begin_layout Paragraph
28607 Generating the documentation
28608 \end_layout
28609
28610 \begin_layout Standard
28611 At this point you already have a new document file with a proper document
28612  class, and with some code and text on it.
28613  How do I print it? The answer is simple, you select 
28614 \family sans
28615 View\SpecialChar menuseparator
28616 DVI,
28617 \family default
28618  etc.
28619  Just like you would do for a plain document.
28620  No special procedure is required.
28621 \end_layout
28622
28623 \begin_layout Standard
28624 To help orientate you, I will now explain what happens inside \SpecialChar LyX
28625 :
28626 \end_layout
28627
28628 \begin_layout Enumerate
28629 When the 
28630 \family sans
28631 Update\SpecialChar menuseparator
28632 DVI
28633 \family default
28634  menu option is chosen, a \SpecialChar LaTeX
28635  file is generated.
28636  
28637 \end_layout
28638
28639 \begin_deeper
28640 \begin_layout Standard
28641 If the document is of any literate class the generated file will be named
28642  with an extension name defined by the 
28643 \begin_inset Quotes eld
28644 \end_inset
28645
28646 literate
28647 \begin_inset Quotes erd
28648 \end_inset
28649
28650  format (defined in the Preferences panel), otherwise the file will have
28651  the usual 
28652 \family typewriter
28653 .tex
28654 \family default
28655  extension.
28656 \end_layout
28657
28658 \end_deeper
28659 \begin_layout Enumerate
28660 Note that the only difference so far is in the name of the file, no special
28661  processing is required by \SpecialChar LyX
28662 .
28663  Given that you formatted the code using the 
28664 \begin_inset Flex Noun
28665 status collapsed
28666
28667 \begin_layout Plain Layout
28668 Chunk
28669 \end_layout
28670
28671 \end_inset
28672
28673  inset that, by itself, takes care of the business.
28674 \end_layout
28675
28676 \begin_layout Enumerate
28677 If the document is of any literate class \SpecialChar LyX
28678  will then use the internal \SpecialChar LyX
28679  to
28680  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
28681  converter
28682 \begin_inset Foot
28683 status collapsed
28684
28685 \begin_layout Plain Layout
28686 The converters are defined in the 
28687 \family sans
28688 Tools\SpecialChar menuseparator
28689 Preferences
28690 \family default
28691  panel, under the 
28692 \begin_inset Quotes eld
28693 \end_inset
28694
28695 Conversion
28696 \begin_inset Quotes erd
28697 \end_inset
28698
28699  tab.
28700  See section 
28701 \emph on
28702 Converters
28703 \emph default
28704  of the 
28705 \emph on
28706 Customization
28707 \emph default
28708  manual for general information about converters.
28709 \end_layout
28710
28711 \end_inset
28712
28713  to generate the \SpecialChar LaTeX
28714  file.
28715 \end_layout
28716
28717 \begin_deeper
28718 \begin_layout Standard
28719 Otherwise it will just skip this step.
28720 \end_layout
28721
28722 \end_deeper
28723 \begin_layout Enumerate
28724 Finally, \SpecialChar LaTeX
28725  is invoked and the regular post processing continues as in a plain
28726  document.
28727 \end_layout
28728
28729 \begin_layout Standard
28730 Independence from a particular 
28731 \begin_inset Quotes eld
28732 \end_inset
28733
28734 literate tool
28735 \begin_inset Quotes erd
28736 \end_inset
28737
28738  is easily achieved by changing the commands that are run by the various
28739  converters.
28740 \end_layout
28741
28742 \begin_layout Paragraph
28743 Generating the code
28744 \end_layout
28745
28746 \begin_layout Standard
28747 When the build menu option is chosen or the corresponding button in the
28748  toolbar is pressed, a \SpecialChar LaTeX
28749  file is generated just like step 1 above.
28750  Next, \SpecialChar LyX
28751  invokes the 
28752 \family typewriter
28753 Noweb->Program
28754 \family default
28755  converter.
28756  This converter needs to be defined by the user and is not installed by
28757  default, though the Program format is.
28758  This converter (like any other converter) will have two parts:
28759 \end_layout
28760
28761 \begin_layout Enumerate
28762 The converter program itself.
28763  This program performs the conversion from the one format to the other (in
28764  this case, from the Noweb format to the Program pseudo-format).
28765 \end_layout
28766
28767 \begin_layout Enumerate
28768 The error log parser.
28769  This is a program whose sole purpose is to rewrite error messages in a
28770  format that \SpecialChar LyX
28771  understands.
28772  This makes it possible for \SpecialChar LyX
28773  to place error boxes in the right places in
28774  the file buffer.
28775 \end_layout
28776
28777 \begin_layout Standard
28778 The first part, the 
28779 \begin_inset Quotes eld
28780 \end_inset
28781
28782 Converter
28783 \begin_inset Quotes erd
28784 \end_inset
28785
28786  setting, should be set to
28787 \end_layout
28788
28789 \begin_layout LyX-Code
28790
28791 \family typewriter
28792 build-script $$i
28793 \family default
28794  $$r
28795 \end_layout
28796
28797 \begin_layout Standard
28798 This basically means that \SpecialChar LyX
28799  will call 
28800 \begin_inset Quotes eld
28801 \end_inset
28802
28803 build-script
28804 \begin_inset Quotes erd
28805 \end_inset
28806
28807  (a program or script) with the name of the Noweb file (normally a file
28808  in the \SpecialChar LyX
28809  temp directory) and the directory path of the original \SpecialChar LyX
28810  file.
28811  
28812 \end_layout
28813
28814 \begin_layout Standard
28815 This is an implementation of 
28816 \begin_inset Quotes eld
28817 \end_inset
28818
28819 build-script
28820 \begin_inset Quotes erd
28821 \end_inset
28822
28823  that you can place in a directory on your path:
28824 \end_layout
28825
28826 \begin_layout LyX-Code
28827
28828 \family sans
28829 #!/bin/sh
28830 \end_layout
28831
28832 \begin_layout LyX-Code
28833
28834 \family sans
28835 #
28836 \end_layout
28837
28838 \begin_layout LyX-Code
28839
28840 \family sans
28841 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
28842 \end_layout
28843
28844 \begin_layout Standard
28845 The next part of the converter setting is the 
28846 \begin_inset Quotes eld
28847 \end_inset
28848
28849 Flags
28850 \begin_inset Quotes erd
28851 \end_inset
28852
28853  which is to be set to
28854 \end_layout
28855
28856 \begin_layout LyX-Code
28857
28858 \family typewriter
28859 parselog=$$s/scripts/listerrors
28860 \end_layout
28861
28862 \begin_layout Standard
28863 This will run any errors that are generated by the 
28864 \begin_inset Quotes eld
28865 \end_inset
28866
28867 build-script
28868 \begin_inset Quotes erd
28869 \end_inset
28870
28871  process through the 
28872 \begin_inset Quotes eld
28873 \end_inset
28874
28875 listerrors
28876 \begin_inset Quotes erd
28877 \end_inset
28878
28879  program.
28880 \end_layout
28881
28882 \begin_layout Standard
28883 The build will normally take place in \SpecialChar LyX
28884 's temporary directory, so the files
28885  produced by the conversion will be in that directory.
28886  \SpecialChar LyX
28887  will copy out what it regards as the `main' file, but the 
28888 \family typewriter
28889 Noweb->Program
28890 \family default
28891  conversion may produce several files, and so most of these would then be
28892  deleted when \SpecialChar LyX
28893  was closed.
28894  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
28895  the build-script chunk can place the generated files in that location.
28896 \end_layout
28897
28898 \begin_layout Paragraph
28899 Build instructions in the document
28900 \end_layout
28901
28902 \begin_layout Standard
28903 The last piece of the integration between \SpecialChar LyX
28904  and noweb is the 
28905 \begin_inset Quotes eld
28906 \end_inset
28907
28908 build-script
28909 \begin_inset Quotes erd
28910 \end_inset
28911
28912  chunk.
28913  Generally, the instructions for building your program should be embedded
28914  in a chunk of its own.
28915  The noweb-specific 
28916 \begin_inset Quotes eld
28917 \end_inset
28918
28919 build-script
28920 \begin_inset Quotes erd
28921 \end_inset
28922
28923  above uses the notangle command to look for this chunk (called 
28924 \begin_inset Quotes eld
28925 \end_inset
28926
28927 build-script
28928 \begin_inset Quotes erd
28929 \end_inset
28930
28931 ) and runs its contents through 
28932 \begin_inset Quotes eld
28933 \end_inset
28934
28935 sh
28936 \begin_inset Quotes erd
28937 \end_inset
28938
28939 .
28940 \end_layout
28941
28942 \begin_layout Standard
28943 Typically, such a chunk would look something like this:
28944 \end_layout
28945
28946 \begin_layout LyX-Code
28947 <<build-script>>=
28948 \end_layout
28949
28950 \begin_layout LyX-Code
28951 #!/bin/sh
28952 \begin_inset Newline newline
28953 \end_inset
28954
28955 if [ -z "${NOWEB_SOURCE}" ]
28956 \begin_inset Newline newline
28957 \end_inset
28958
28959 then
28960 \end_layout
28961
28962 \begin_layout LyX-Code
28963 NOWEB_SOURCE=myfile.nw
28964 \begin_inset Newline newline
28965 \end_inset
28966
28967 fi
28968 \begin_inset Newline newline
28969 \end_inset
28970
28971 [...
28972  code to extract files ...
28973  use NOWEB_OUTPUT_DIR here ...]
28974 \begin_inset Newline newline
28975 \end_inset
28976
28977 [...
28978  code to compile files ...]
28979 \begin_inset Newline newline
28980 \end_inset
28981
28982 @
28983 \end_layout
28984
28985 \begin_layout Standard
28986 Look in 
28987 \emph on
28988 LIBDIR/examples/listerrors.lyx
28989 \emph default
28990  or in 
28991 \emph on
28992 LIBDIR/examples/Literate.lyx
28993 \emph default
28994  which implement two versions of the 
28995 \begin_inset Quotes eld
28996 \end_inset
28997
28998 listerrors
28999 \begin_inset Quotes erd
29000 \end_inset
29001
29002  program for some illustrations of how all of these pieces go together or
29003  in 
29004 \emph on
29005 LIBDIR/examples/noweb2lyx.lyx.
29006
29007 \emph default
29008  Interestingly, these three files show off the language-indepence of the
29009  \SpecialChar LyX
29010  literate programming support since they are written in Python, C and Perl
29011  respectively.
29012 \end_layout
29013
29014 \begin_layout Subsubsection
29015 Configuring \SpecialChar LyX
29016
29017 \end_layout
29018
29019 \begin_layout Standard
29020 All the Literate Programming support is configured by the 
29021 \family sans
29022 Tools\SpecialChar menuseparator
29023 Preferences
29024 \family default
29025  panel in the 
29026 \begin_inset Quotes eld
29027 \end_inset
29028
29029 File Handling
29030 \begin_inset Quotes erd
29031 \end_inset
29032
29033  tab.
29034  The important parts are:
29035 \end_layout
29036
29037 \begin_layout Description
29038 the
29039 \begin_inset space ~
29040 \end_inset
29041
29042
29043 \begin_inset Quotes eld
29044 \end_inset
29045
29046 NoWeb
29047 \begin_inset Quotes erd
29048 \end_inset
29049
29050
29051 \begin_inset space ~
29052 \end_inset
29053
29054 format Set up via the File Formats tab, this is where the Noweb-specific
29055  pieces are set up.
29056  The 
29057 \family sans
29058 GUI Name
29059 \family default
29060  is set to 
29061 \family typewriter
29062 NoWeb
29063 \family default
29064 , the file extension is set to 
29065 \family typewriter
29066 .nw
29067 \family default
29068 .
29069  This tells \SpecialChar LyX
29070  to create a file with a 
29071 \family typewriter
29072 .nw
29073 \family default
29074  extension in the first step of the conversion process.
29075 \end_layout
29076
29077 \begin_layout Description
29078 the
29079 \begin_inset space ~
29080 \end_inset
29081
29082
29083 \family sans
29084 Program
29085 \family default
29086
29087 \begin_inset space ~
29088 \end_inset
29089
29090 format This is an empty format whose sole purpose is to be the endpoint
29091  of a conversion (which then allows us to set up a converter for it).
29092 \end_layout
29093
29094 \begin_layout Description
29095
29096 \family sans
29097 NoWeb
29098 \family default
29099 ->
29100 \family sans
29101 \SpecialChar LaTeX
29102
29103 \family default
29104  This converter performs the 
29105 \begin_inset Quotes eld
29106 \end_inset
29107
29108 weaving
29109 \begin_inset Quotes erd
29110 \end_inset
29111
29112  of the literate document.
29113  For Noweb, it is set to 
29114 \begin_inset Quotes eld
29115 \end_inset
29116
29117
29118 \family typewriter
29119 noweave -delay -index $$i > $$o
29120 \family default
29121
29122 \begin_inset Quotes erd
29123 \end_inset
29124
29125
29126 \end_layout
29127
29128 \begin_layout Description
29129
29130 \family sans
29131 NoWeb
29132 \family default
29133 ->
29134 \family sans
29135 Program
29136 \family default
29137  This performs the 
29138 \begin_inset Quotes eld
29139 \end_inset
29140
29141 tangling step
29142 \begin_inset Quotes erd
29143 \end_inset
29144
29145 .
29146  As stated above, the Converter is set to 
29147 \begin_inset Quotes eld
29148 \end_inset
29149
29150
29151 \family typewriter
29152 build-script $$i
29153 \family default
29154  $$r
29155 \begin_inset Quotes erd
29156 \end_inset
29157
29158 , with Flags set to
29159 \begin_inset Newline newline
29160 \end_inset
29161
29162
29163 \begin_inset Quotes eld
29164 \end_inset
29165
29166
29167 \family typewriter
29168 parselog=$$s/scripts/listerrors
29169 \family default
29170
29171 \begin_inset Quotes erd
29172 \end_inset
29173
29174 .
29175 \end_layout
29176
29177 \begin_layout Subsubsection
29178 Debug extensions
29179 \end_layout
29180
29181 \begin_layout Standard
29182 There is also a new function implemented in the \SpecialChar LyX
29183  server, the 
29184 \begin_inset Quotes eld
29185 \end_inset
29186
29187 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
29188  
29189 \end_layout
29190
29191 \begin_layout Standard
29192 When debugging code with ddd/gdb, it is possible to invoke a text editor
29193  at the current execution position with a single key stroke.
29194  The default ddd configuration for that is shift-ctrl-V.
29195  It happens that you can define the editor command line invocation in ddd
29196  by accessing the 
29197 \family sans
29198 Edit\SpecialChar menuseparator
29199 Preferences\SpecialChar menuseparator
29200 Helpers
29201 \family default
29202  dialog and changing the "Edit Sources" entry.
29203 \end_layout
29204
29205 \begin_layout Standard
29206 I take advantage of the newly created \SpecialChar LyX
29207  server function and this ddd feature,
29208  and set 
29209 \begin_inset Quotes eld
29210 \end_inset
29211
29212 Edit Sources
29213 \begin_inset Quotes erd
29214 \end_inset
29215
29216  to:
29217 \end_layout
29218
29219 \begin_layout LyX-Code
29220 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
29221 \end_layout
29222
29223 \begin_layout Standard
29224 With this, whenever you are using ddd and find a point in the program that
29225  you want to edit, you just press shift-ctrl-V (in the ddd window), and
29226  ddd will forward this information to \SpecialChar LyX
29227  through the \SpecialChar LyX
29228  server and then the
29229  \SpecialChar LyX
29230  window will show the same file with the cursor at the same position ddd
29231  was pointing to.
29232  No more guessing or long scrolling to locate a point in the program back
29233  from debugging !
29234 \end_layout
29235
29236 \begin_layout Standard
29237 Note however that you must enable the \SpecialChar LyX
29238  server to get this feature working
29239  (it is disabled by default).
29240  Sec.
29241 \begin_inset space ~
29242 \end_inset
29243
29244
29245 \begin_inset CommandInset ref
29246 LatexCommand ref
29247 reference "sec:Starting-the-Server"
29248
29249 \end_inset
29250
29251  explains how to do that.
29252 \end_layout
29253
29254 \begin_layout Subsubsection
29255 Toolbar extensions
29256 \end_layout
29257
29258 \begin_layout Standard
29259 There are six new buttons that can be added to your \SpecialChar LyX
29260  toolbar.
29261  Four of these buttons are short cuts to layout styles: 
29262 \family sans
29263 Standard
29264 \family default
29265
29266 \family sans
29267 Section
29268 \family default
29269
29270 \family sans
29271 \SpecialChar LaTeX
29272
29273 \family default
29274 , and 
29275 \family sans
29276 \SpecialChar LyX
29277 -Code
29278 \family default
29279 , one for the custom inset 
29280 \family sans
29281 Chunk
29282 \family default
29283 .
29284  The last one is a short cut to the 
29285 \begin_inset Quotes eld
29286 \end_inset
29287
29288 Build Program
29289 \begin_inset Quotes erd
29290 \end_inset
29291
29292  File menu entry.
29293  
29294 \end_layout
29295
29296 \begin_layout Standard
29297 \SpecialChar LyX
29298  has a range of buttons that are available for tool bar customization.
29299  In my toolbar I like to combine the six short cuts above with two more:
29300  One for 
29301 \family sans
29302 Document
29303 \family default
29304 \SpecialChar menuseparator
29305
29306 \family sans
29307 Update
29308 \family default
29309 \SpecialChar menuseparator
29310
29311 \family sans
29312 DVI
29313 \family default
29314  and the other for 
29315 \family sans
29316 Document\SpecialChar menuseparator
29317 View\SpecialChar menuseparator
29318 DVI
29319 \family default
29320  File menu entries.
29321  Here is how it looks like:
29322 \end_layout
29323
29324 \begin_layout LyX-Code
29325 Toolbar
29326 \end_layout
29327
29328 \begin_layout LyX-Code
29329   Layouts
29330 \end_layout
29331
29332 \begin_layout LyX-Code
29333   Icon "layout Standard"
29334 \end_layout
29335
29336 \begin_layout LyX-Code
29337   Icon "layout Section"
29338 \end_layout
29339
29340 \begin_layout LyX-Code
29341   Icon "layout \SpecialChar LaTeX
29342 "
29343 \end_layout
29344
29345 \begin_layout LyX-Code
29346   Icon "layout \SpecialChar LyX
29347 -Code"
29348 \end_layout
29349
29350 \begin_layout LyX-Code
29351   Icon "flex.insert Chunk"
29352 \end_layout
29353
29354 \begin_layout LyX-Code
29355   Separator
29356 \end_layout
29357
29358 \begin_layout LyX-Code
29359   Icon "buffer-view"
29360 \end_layout
29361
29362 \begin_layout LyX-Code
29363   Icon "buffer-typeset"
29364 \end_layout
29365
29366 \begin_layout LyX-Code
29367   Icon "build-program"
29368 \end_layout
29369
29370 \begin_layout LyX-Code
29371   Separator
29372 \end_layout
29373
29374 \begin_layout LyX-Code
29375 .
29376 \end_layout
29377
29378 \begin_layout LyX-Code
29379 .
29380 \end_layout
29381
29382 \begin_layout LyX-Code
29383 .
29384 \end_layout
29385
29386 \begin_layout LyX-Code
29387 End
29388 \end_layout
29389
29390 \begin_layout Subsubsection
29391 Colors customization
29392 \end_layout
29393
29394 \begin_layout Standard
29395 There are a number of colors in \SpecialChar LyX
29396  that can be customized in 
29397 \family sans
29398 Preferences
29399 \family default
29400 .
29401  One of the things that bothers people is the \SpecialChar LaTeX
29402  font color.
29403  The default color is red, since the chunks uses \SpecialChar LaTeX
29404  font, and there is a lot
29405  of chunks in literate documents, you may get tired of seeing everything
29406  in red.
29407  You can change it by going to the tabs 
29408 \family sans
29409 Look&Feel
29410 \family default
29411
29412 \family sans
29413 Colors.
29414 \end_layout
29415
29416 \begin_layout Standard
29417 The next thing is the visible presence of the newline character in the screen.
29418  You can choose the color of this particular character and make it blend
29419  in the background.
29420  I recommend you choosing a color that is close to the background but not
29421  equal, that way you still can see it is there, but it is not bothering
29422  you anymore.
29423 \end_layout
29424
29425 \begin_layout Subsection
29426 \SpecialChar LyX
29427  and knitr/Sweave
29428 \end_layout
29429
29430 \begin_layout Standard
29431 Support for 
29432 \family sans
29433 knitr
29434 \family default
29435  and 
29436 \family sans
29437 Sweave
29438 \family default
29439  is documented in the 
29440 \emph on
29441 knitr.lyx
29442 \emph default
29443  example file and in the Sweave manual (menu 
29444 \family sans
29445 Help\SpecialChar menuseparator
29446 Specific Manuals
29447 \family default
29448 ).
29449 \end_layout
29450
29451 \begin_layout Chapter
29452
29453 \change_deleted 564990737 1671355343
29454 Special features
29455 \end_layout
29456
29457 \begin_layout Standard
29458
29459 \change_deleted 564990737 1671355343
29460 You can do everything with \SpecialChar LyX
29461  that you can do with \SpecialChar LaTeX
29462 .
29463  However, \SpecialChar LyX
29464  cannot support every \SpecialChar LaTeX
29465  feature directly.
29466  But you can always use \SpecialChar TeX
29467  Code.
29468  This chapter shows you some more special things you might want to use.
29469  For other special things you can do with figures, tables, floats, boxes
29470  and notes, have a look at the 
29471 \emph on
29472 Embedded
29473 \begin_inset space ~
29474 \end_inset
29475
29476 Objects
29477 \emph default
29478  manual.
29479 \change_unchanged
29480
29481 \end_layout
29482
29483 \end_body
29484 \end_document