]> git.lyx.org Git - lyx.git/blob - lib/doc/Additional.lyx
Update references to example files in Additional.lyx to match the 2.4 examples interface.
[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 \change_deleted 564990737 1671617922
4647  
4648 \emph on
4649 koma-letter2
4650 \change_unchanged
4651
4652 \emph default
4653  template 
4654 \change_deleted 564990737 1671617938
4655 that is included in \SpecialChar LyX
4656  for examples
4657 \change_inserted 564990737 1671617997
4658  in 
4659 \family sans
4660 \bar under
4661 \lang american
4662 F
4663 \bar default
4664 ile\SpecialChar menuseparator
4665 New
4666 \begin_inset space ~
4667 \end_inset
4668
4669 fro
4670 \bar under
4671 m
4672 \bar default
4673
4674 \begin_inset space ~
4675 \end_inset
4676
4677 Template\SpecialChar menuseparator
4678 Letters
4679 \lang english
4680 \SpecialChar menuseparator
4681 KOMA-Script Letter (V.2)
4682 \change_unchanged
4683
4684 \family default
4685 .
4686  A detailed description is to be found in the Koma-Script documentation
4687  (
4688 \emph on
4689 scrguide
4690 \emph default
4691 ).
4692 \end_layout
4693
4694 \begin_layout Subsubsection
4695 Problems
4696 \end_layout
4697
4698 \begin_layout Standard
4699 Visualizing the Koma-Script document classes in \SpecialChar LyX
4700 , the \SpecialChar LyX
4701  internals cause some
4702  problems.
4703 \end_layout
4704
4705 \begin_layout Itemize
4706 The chapter number of a 
4707 \family sans
4708 Chapter
4709 \family default
4710  type appears on a line of its own above the chapter heading instead of
4711  appearing in the same line ahead of it.
4712  The cause for that is the \SpecialChar LyX
4713  internal behavior for the labeltype 
4714 \family sans
4715 Counter_Chapter
4716 \family default
4717  in the layout file.
4718 \end_layout
4719
4720 \begin_layout Itemize
4721 The headings of the types 
4722 \family sans
4723 Addchap
4724 \family default
4725  and 
4726 \family sans
4727 Addsec
4728 \family default
4729  are only put in the 
4730 \begin_inset Quotes eld
4731 \end_inset
4732
4733 true
4734 \begin_inset Quotes erd
4735 \end_inset
4736
4737  \SpecialChar LaTeX
4738  table of contents, but not in the \SpecialChar LyX
4739  table of contents (
4740 \family sans
4741 Document\SpecialChar menuseparator
4742 Table
4743 \begin_inset space ~
4744 \end_inset
4745
4746 of
4747 \begin_inset space ~
4748 \end_inset
4749
4750 Contents
4751 \family default
4752 ).
4753 \end_layout
4754
4755 \begin_layout Itemize
4756 The paragraphs in a 
4757 \emph on
4758 letter
4759 \emph default
4760  document class appear in a skip separation mode, not indented.
4761  This is the standard behavior, no special \SpecialChar LaTeX
4762  commands are needed for that.
4763  But in the 
4764 \family sans
4765 Document\SpecialChar menuseparator
4766 Settings
4767 \family default
4768  dialog the corresponding radio button indicates 
4769 \family sans
4770 Indent
4771 \family default
4772 .
4773  A 
4774 \family sans
4775 Skip
4776 \family default
4777  value always has the effect that extra \SpecialChar LaTeX
4778  commands are inserted in the document
4779  to produce the gap, which is not what is wanted in this case.
4780 \end_layout
4781
4782 \begin_layout Subsection
4783
4784 \change_inserted 564990737 1670924924
4785 Polish M.
4786 \begin_inset space \thinspace{}
4787 \end_inset
4788
4789 W.
4790 \begin_inset space \space{}
4791 \end_inset
4792
4793 collection
4794 \change_deleted 564990737 1670924933
4795 Article (mwart), book (mwbk) and report (mwrep)
4796 \begin_inset Argument status
4797 status collapsed
4798
4799 \begin_layout Plain Layout
4800 The 
4801 \family typewriter
4802 mw
4803 \family default
4804  Classes
4805 \end_layout
4806
4807 \end_inset
4808
4809
4810 \change_unchanged
4811
4812 \end_layout
4813
4814 \begin_layout Standard
4815 by 
4816 \noun on
4817 Tomasz Luczak
4818 \end_layout
4819
4820 \begin_layout Standard
4821 The \SpecialChar LyX
4822  document classes 
4823 \emph on
4824 article (mwart)
4825 \emph default
4826
4827 \emph on
4828 report (mwrep)
4829 \emph default
4830  and 
4831 \emph on
4832 book
4833 \emph default
4834  
4835 \emph on
4836 (mwbk)
4837 \emph default
4838  correspond to the \SpecialChar LaTeX
4839  document classes 
4840 \family typewriter
4841 mwart.cls
4842 \family default
4843
4844 \family typewriter
4845 mwrep.cls
4846 \family default
4847  and 
4848 \family typewriter
4849 mwbk.cls
4850 \family default
4851 , resp.
4852  They are replacements for the standard document classes 
4853 \family typewriter
4854 article.cls
4855 \family default
4856
4857 \family typewriter
4858 report.cls
4859 \family default
4860  and 
4861 \family typewriter
4862 book.cls
4863 \family default
4864 , resp., and fit better to Polish typography conventions in a number of points.
4865  
4866 \end_layout
4867
4868 \begin_layout Standard
4869 Basic differences:
4870 \end_layout
4871
4872 \begin_layout Itemize
4873 Unnumbered titles (with star, e.
4874 \begin_inset space \thinspace{}
4875 \end_inset
4876
4877 g.
4878 \begin_inset space \space{}
4879 \end_inset
4880
4881
4882 \family sans
4883 Section*
4884 \family default
4885 ) are added into table of contents,
4886 \end_layout
4887
4888 \begin_layout Itemize
4889 Additional page styles:
4890 \end_layout
4891
4892 \begin_deeper
4893 \begin_layout Description
4894 uheadings header with separated lines,
4895 \end_layout
4896
4897 \begin_layout Description
4898 myheadings custom header, contents headers via commands: 
4899 \family typewriter
4900
4901 \backslash
4902 markright
4903 \family default
4904  and 
4905 \family typewriter
4906
4907 \backslash
4908 markboth
4909 \family default
4910 ,
4911 \end_layout
4912
4913 \begin_layout Description
4914 myuheadings custom header with separated lines,
4915 \end_layout
4916
4917 \begin_layout Description
4918 outer page number is placed on outer side of page
4919 \end_layout
4920
4921 \end_deeper
4922 \begin_layout Itemize
4923 Options 
4924 \end_layout
4925
4926 \begin_deeper
4927 \begin_layout Description
4928 rmheadings serif titles — default,
4929 \end_layout
4930
4931 \begin_layout Description
4932 sfheadings sansserif titles,
4933 \end_layout
4934
4935 \begin_layout Description
4936 authortitle on title page first placed is author next title — default,
4937 \end_layout
4938
4939 \begin_layout Description
4940 titleauthor on title page first placed is title next author,
4941 \end_layout
4942
4943 \begin_layout Description
4944 withmarginpar reserve place on page for margins.
4945 \end_layout
4946
4947 \end_deeper
4948 \begin_layout Section
4949
4950 \change_inserted 564990737 1670439534
4951 Articles
4952 \end_layout
4953
4954 \begin_layout Standard
4955
4956 \change_inserted 564990737 1670794710
4957 See also the document classes in the Collections (section
4958 \begin_inset space ~
4959 \end_inset
4960
4961
4962 \begin_inset CommandInset ref
4963 LatexCommand ref
4964 reference "sec:Collections"
4965
4966 \end_inset
4967
4968 ).
4969 \end_layout
4970
4971 \begin_layout Subsection
4972
4973 \change_inserted 564990737 1670794716
4974
4975 \lang american
4976 A&A Paper
4977 \end_layout
4978
4979 \begin_layout Standard
4980
4981 \change_inserted 564990737 1670794716
4982
4983 \lang american
4984 Original by 
4985 \noun on
4986 Peter Sütterlin
4987 \noun default
4988 ; updated by the \SpecialChar LyX
4989  Team
4990 \end_layout
4991
4992 \begin_layout Subsubsection
4993
4994 \change_inserted 564990737 1670794716
4995
4996 \lang american
4997 Introduction
4998 \end_layout
4999
5000 \begin_layout Standard
5001
5002 \change_inserted 564990737 1670794716
5003
5004 \lang american
5005 This section describes how \SpecialChar LyX
5006  can be used to write articles for submission
5007  to the scientific journal 
5008 \emph on
5009 Astronomy and Astrophysics
5010 \emph default
5011  (
5012 \begin_inset CommandInset href
5013 LatexCommand href
5014 name "aa-package"
5015 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
5016 literal "false"
5017
5018 \end_inset
5019
5020 ) using Version 9.1 of the document class 
5021 \family typewriter
5022 aa.cls
5023 \family default
5024 ; information about it is available at 
5025 \begin_inset Flex URL
5026 status collapsed
5027
5028 \begin_layout Plain Layout
5029
5030 \change_inserted 564990737 1670794716
5031
5032 https://www.aanda.org/for-authors/latex-issues/texnical-background-information
5033 \change_unchanged
5034
5035 \end_layout
5036
5037 \end_inset
5038
5039 .
5040 \end_layout
5041
5042 \begin_layout Standard
5043
5044 \change_inserted 564990737 1670794716
5045
5046 \lang american
5047 A manual comes together with the package and should be consulted before
5048  installing this document class as described in the 
5049 \emph on
5050 Installing New Document Classe
5051 \emph default
5052 s section of the 
5053 \emph on
5054 Customization
5055 \emph default
5056  manual.
5057  
5058 \end_layout
5059
5060 \begin_layout Standard
5061
5062 \change_inserted 564990737 1670794716
5063
5064 \lang american
5065 \begin_inset Note Greyedout
5066 status open
5067
5068 \begin_layout Plain Layout
5069
5070 \change_inserted 564990737 1670794716
5071
5072 \lang american
5073 Please note that the publisher of the journal was changed from Springer
5074  to EDP Sciences starting January 1, 2001.
5075  That change also involved some slight changes to the style files, namely
5076  the removal of the thesaurus command.
5077  If you have an older version installed, please upgrade.
5078  For information about compatibility with the old (version 4) layout, please
5079  refer to the comments in 
5080 \family typewriter
5081 \SpecialChar LyX
5082 Dir/layouts/aapaper.layout
5083 \family default
5084 .
5085 \end_layout
5086
5087 \end_inset
5088
5089
5090 \end_layout
5091
5092 \begin_layout Subsubsection
5093
5094 \change_inserted 564990737 1670794716
5095
5096 \lang american
5097 Getting started
5098 \end_layout
5099
5100 \begin_layout Standard
5101
5102 \change_inserted 564990737 1671617129
5103
5104 \lang american
5105 It is recommended you start from the template in the menu 
5106 \family sans
5107 \bar under
5108 F
5109 \bar default
5110 ile\SpecialChar menuseparator
5111 New
5112 \begin_inset space ~
5113 \end_inset
5114
5115 fro
5116 \bar under
5117 m
5118 \bar default
5119
5120 \begin_inset space ~
5121 \end_inset
5122
5123 Template
5124 \lang english
5125 \SpecialChar menuseparator
5126 Articles\SpecialChar menuseparator
5127 Astronomy & Astrophysics
5128 \family default
5129 \lang american
5130 .
5131  If you are not using the template, note the following settings:
5132 \end_layout
5133
5134 \begin_layout Itemize
5135
5136 \change_inserted 564990737 1670794716
5137
5138 \lang american
5139 Select 
5140 \family sans
5141 article (A&A)
5142 \family default
5143  in the 
5144 \family sans
5145 \bar under
5146 D
5147 \bar default
5148 ocument\SpecialChar menuseparator
5149
5150 \bar under
5151 S
5152 \bar default
5153 ettings\SpecialChar menuseparator
5154 Document
5155 \begin_inset space ~
5156 \end_inset
5157
5158 Class
5159 \family default
5160  dialog (OK, that one was obvious).
5161 \end_layout
5162
5163 \begin_layout Itemize
5164
5165 \change_inserted 564990737 1670794716
5166
5167 \lang american
5168 Don't change the 
5169 \family sans
5170 Headings
5171 \begin_inset space ~
5172 \end_inset
5173
5174
5175 \bar under
5176 s
5177 \bar default
5178 tyle
5179 \family default
5180  in the 
5181 \family sans
5182 Page
5183 \begin_inset space ~
5184 \end_inset
5185
5186 Layout
5187 \family default
5188  dialog: leave it set to 
5189 \family sans
5190 Default
5191 \family default
5192 .
5193  The whole layout is done by the macros, you shouldn't change anything.
5194 \end_layout
5195
5196 \begin_layout Subsubsection
5197
5198 \change_inserted 564990737 1670794716
5199
5200 \lang american
5201 The header block
5202 \end_layout
5203
5204 \begin_layout Standard
5205
5206 \change_inserted 564990737 1670794716
5207
5208 \lang american
5209 First thing to enter is the header information.
5210  It consists of five entries, of which one is optional.
5211  They are
5212 \end_layout
5213
5214 \begin_layout Itemize
5215
5216 \change_inserted 564990737 1670794716
5217
5218 \family sans
5219 \lang american
5220 Title
5221 \family default
5222 : [required] 
5223 \end_layout
5224
5225 \begin_layout Itemize
5226
5227 \change_inserted 564990737 1670794716
5228
5229 \family sans
5230 \lang american
5231 Subtitle
5232 \family default
5233 : [optional] 
5234 \end_layout
5235
5236 \begin_layout Itemize
5237
5238 \change_inserted 564990737 1670794716
5239
5240 \family sans
5241 \lang american
5242 Author
5243 \family default
5244 : [required]
5245 \end_layout
5246
5247 \begin_layout Itemize
5248
5249 \change_inserted 564990737 1670794716
5250
5251 \family typewriter
5252 \lang american
5253 Institute
5254 \family default
5255 : [required]
5256 \end_layout
5257
5258 \begin_layout Itemize
5259
5260 \change_inserted 564990737 1670794716
5261
5262 \family sans
5263 \lang american
5264 Date
5265 \family default
5266 : [required].
5267  Suggested format is 
5268 \family typewriter
5269 Received: <date>; Accepted <date> 
5270 \end_layout
5271
5272 \begin_layout Standard
5273
5274 \change_inserted 564990737 1670794716
5275
5276 \lang american
5277 Although the order of the single header entries doesn't matter it is advised
5278  to keep the above sequence, just to get the best optics and meets the layout
5279  of the real document.
5280 \end_layout
5281
5282 \begin_layout Standard
5283
5284 \change_inserted 564990737 1670794716
5285
5286 \lang american
5287 If you want to place footnotes in the header block, e.
5288 \begin_inset space \thinspace{}
5289 \end_inset
5290
5291 g.
5292 \begin_inset space \space{}
5293 \end_inset
5294
5295 to state your present address, just use the standard footnote via the menu
5296  
5297 \family sans
5298 \bar under
5299 I
5300 \bar default
5301 nsert\SpecialChar menuseparator
5302
5303 \bar under
5304 F
5305 \bar default
5306 ootnote.
5307
5308 \family default
5309  \SpecialChar LyX
5310  will automagically use the term 
5311 \family typewriter
5312
5313 \backslash
5314 thanks{}
5315 \family default
5316  in that case.
5317 \end_layout
5318
5319 \begin_layout Standard
5320
5321 \change_inserted 564990737 1670794716
5322
5323 \lang american
5324 In addition to these topics, the macros use three additional \SpecialChar LaTeX
5325  commands that
5326  have no counterpart in \SpecialChar LyX
5327 :
5328 \end_layout
5329
5330 \begin_layout Itemize
5331
5332 \change_inserted 564990737 1670794716
5333
5334 \family typewriter
5335 \lang american
5336
5337 \backslash
5338 and
5339 \family default
5340  to separate different names for more than one author and institute, respectivel
5341 y.
5342 \end_layout
5343
5344 \begin_layout Itemize
5345
5346 \change_inserted 564990737 1670794716
5347
5348 \family typewriter
5349 \lang american
5350
5351 \backslash
5352 inst{<nr>}
5353 \family default
5354  to mark corresponding author/institute pairs.
5355  The institutes are numbered sequentially as they appear in the 
5356 \family sans
5357 Institute
5358 \family default
5359  field, so you have to put a marker to each author.
5360 \end_layout
5361
5362 \begin_layout Itemize
5363
5364 \change_inserted 564990737 1670794716
5365
5366 \family typewriter
5367 \lang american
5368
5369 \backslash
5370 email{address}
5371 \family default
5372  to supply an email address for fast contact.
5373 \end_layout
5374
5375 \begin_layout Standard
5376
5377 \change_inserted 564990737 1671642374
5378
5379 \lang american
5380 In all cases, the appropriate command has to be entered as \SpecialChar TeX
5381  code in \SpecialChar LyX
5382 .
5383  See the examples in the template and in 
5384 \family sans
5385 \lang british
5386 File\SpecialChar menuseparator
5387 Open Example\SpecialChar menuseparator
5388 Articles\SpecialChar menuseparator
5389 Astronomy & Astrophysics
5390 \family default
5391 \lang american
5392 .
5393 \change_unchanged
5394
5395 \end_layout
5396
5397 \begin_layout Subsubsection
5398
5399 \change_inserted 564990737 1670794716
5400
5401 \lang american
5402 The abstract
5403 \end_layout
5404
5405 \begin_layout Standard
5406
5407 \change_inserted 564990737 1670794716
5408
5409 \lang american
5410 The abstract should immediately follow the header block and must contain
5411  five tokens: 
5412 \family typewriter
5413
5414 \backslash
5415 abstract{}{}{}{}{}
5416 \family default
5417  
5418 \end_layout
5419
5420 \begin_layout Enumerate
5421
5422 \change_inserted 564990737 1670794716
5423
5424 \family typewriter
5425 \lang american
5426 context heading
5427 \family default
5428  (optional) {} leave it empty if necessary 
5429 \end_layout
5430
5431 \begin_layout Enumerate
5432
5433 \change_inserted 564990737 1670794716
5434
5435 \family typewriter
5436 \lang american
5437 aims heading
5438 \family default
5439  (mandatory) {} 
5440 \end_layout
5441
5442 \begin_layout Enumerate
5443
5444 \change_inserted 564990737 1670794716
5445
5446 \family typewriter
5447 \lang american
5448 methods heading
5449 \family default
5450  (mandatory) {} 
5451 \end_layout
5452
5453 \begin_layout Enumerate
5454
5455 \change_inserted 564990737 1670794716
5456
5457 \family typewriter
5458 \lang american
5459 results heading
5460 \family default
5461  (mandatory) {} 
5462 \end_layout
5463
5464 \begin_layout Enumerate
5465
5466 \change_inserted 564990737 1670794716
5467
5468 \family typewriter
5469 \lang american
5470 conclusions heading
5471 \family default
5472  (optional) {} leave it empty if necessary 
5473 \end_layout
5474
5475 \begin_layout Standard
5476
5477 \change_inserted 564990737 1670794716
5478
5479 \lang american
5480 (NB.
5481  This structure not shown in 
5482 \emph on
5483 aa_sample.lyx.
5484 \emph default
5485 )
5486 \end_layout
5487
5488 \begin_layout Subsubsection
5489
5490 \change_inserted 564990737 1670794716
5491
5492 \lang american
5493 Supported environments
5494 \end_layout
5495
5496 \begin_layout Standard
5497
5498 \change_inserted 564990737 1670794716
5499
5500 \lang american
5501 The A&A paper layout supports the following environments for structuring
5502  your text:
5503 \end_layout
5504
5505 \begin_layout Itemize
5506
5507 \change_inserted 564990737 1670794716
5508
5509 \family sans
5510 \lang american
5511 Standard
5512 \end_layout
5513
5514 \begin_layout Itemize
5515
5516 \change_inserted 564990737 1670794716
5517
5518 \family sans
5519 \lang american
5520 Section
5521 \end_layout
5522
5523 \begin_layout Itemize
5524
5525 \change_inserted 564990737 1670794716
5526
5527 \family sans
5528 \lang american
5529 Subsection
5530 \end_layout
5531
5532 \begin_layout Itemize
5533
5534 \change_inserted 564990737 1670794716
5535
5536 \family sans
5537 \lang american
5538 Subsubsection
5539 \end_layout
5540
5541 \begin_layout Itemize
5542
5543 \change_inserted 564990737 1670794716
5544
5545 \family sans
5546 \lang american
5547 Itemize
5548 \end_layout
5549
5550 \begin_layout Itemize
5551
5552 \change_inserted 564990737 1670794716
5553
5554 \family sans
5555 \lang american
5556 Enumerate
5557 \end_layout
5558
5559 \begin_layout Itemize
5560
5561 \change_inserted 564990737 1670794716
5562
5563 \family sans
5564 \lang american
5565 Description
5566 \end_layout
5567
5568 \begin_layout Itemize
5569
5570 \change_inserted 564990737 1670794716
5571
5572 \family sans
5573 \lang american
5574 Caption
5575 \end_layout
5576
5577 \begin_layout Itemize
5578
5579 \change_inserted 564990737 1670794716
5580
5581 \family sans
5582 \lang american
5583 Abstract
5584 \end_layout
5585
5586 \begin_layout Itemize
5587
5588 \change_inserted 564990737 1670794716
5589
5590 \family sans
5591 \lang american
5592 Acknowledgment
5593 \end_layout
5594
5595 \begin_layout Itemize
5596
5597 \change_inserted 564990737 1670794716
5598
5599 \family sans
5600 \lang american
5601 Bibliography
5602 \end_layout
5603
5604 \begin_layout Itemize
5605
5606 \change_inserted 564990737 1670794716
5607
5608 \family sans
5609 \lang american
5610 \SpecialChar LaTeX
5611
5612 \end_layout
5613
5614 \begin_layout Subsubsection
5615
5616 \change_inserted 564990737 1670794716
5617
5618 \lang american
5619 Commands not supported by \SpecialChar LyX
5620
5621 \end_layout
5622
5623 \begin_layout Standard
5624
5625 \change_inserted 564990737 1670794716
5626
5627 \lang american
5628 Some commands are not yet supported by the 
5629 \family sans
5630 paper (A&A)
5631 \family default
5632  layout for \SpecialChar LyX
5633 .
5634  Some have already been mentioned.
5635  For the sake of completeness, they are listed all together here:
5636 \end_layout
5637
5638 \begin_layout Itemize
5639
5640 \change_inserted 564990737 1670794716
5641
5642 \family typewriter
5643 \lang american
5644
5645 \backslash
5646 and
5647 \end_layout
5648
5649 \begin_layout Itemize
5650
5651 \change_inserted 564990737 1670794716
5652
5653 \family typewriter
5654 \lang american
5655
5656 \backslash
5657 email
5658 \end_layout
5659
5660 \begin_layout Itemize
5661
5662 \change_inserted 564990737 1670794716
5663
5664 \family typewriter
5665 \lang american
5666
5667 \backslash
5668 inst{}
5669 \end_layout
5670
5671 \begin_layout Itemize
5672
5673 \change_inserted 564990737 1670794716
5674
5675 \family typewriter
5676 \lang american
5677
5678 \backslash
5679 keywords{}
5680 \end_layout
5681
5682 \begin_layout Itemize
5683
5684 \change_inserted 564990737 1670794716
5685
5686 \family typewriter
5687 \lang american
5688
5689 \backslash
5690 object{}
5691 \end_layout
5692
5693 \begin_layout Standard
5694
5695 \change_inserted 564990737 1670794716
5696
5697 \lang american
5698 If you want to use any of these commands, you have to enter them yourself.
5699  
5700 \family typewriter
5701 Do not forget to use
5702 \family sans
5703  
5704 \bar under
5705 I
5706 \bar default
5707 nsert\SpecialChar menuseparator
5708 \SpecialChar TeX
5709
5710 \begin_inset space ~
5711 \end_inset
5712
5713 Code
5714 \family default
5715 \series bold
5716 !
5717 \end_layout
5718
5719 \begin_layout Subsubsection
5720
5721 \change_inserted 564990737 1670794716
5722
5723 \lang american
5724 Figure and Table Floats
5725 \end_layout
5726
5727 \begin_layout Standard
5728
5729 \change_inserted 564990737 1670794716
5730
5731 \lang american
5732 \SpecialChar LyX
5733  provides support for the necessary float environments 
5734 \family sans
5735 figure, figure*, table
5736 \family default
5737  and 
5738 \family sans
5739 table*
5740 \family default
5741 , therefore we won't tell much about it here.
5742  Refer to the 
5743 \emph on
5744 User's
5745 \begin_inset space ~
5746 \end_inset
5747
5748 Guide
5749 \emph default
5750 .
5751  Just remember that tables should be left-aligned.
5752  For that, select the table and change the alignment in 
5753 \family sans
5754 \bar under
5755 E
5756 \bar default
5757 dit\SpecialChar menuseparator
5758
5759 \bar under
5760 P
5761 \bar default
5762 aragraph
5763 \begin_inset space ~
5764 \end_inset
5765
5766 Settings.
5767 \end_layout
5768
5769 \begin_layout Standard
5770
5771 \change_inserted 564990737 1670794716
5772
5773 \lang american
5774 There is only one special thing: the figures with a caption beside the figure.
5775  To create such a figure, you have to do the following:
5776 \end_layout
5777
5778 \begin_layout Enumerate
5779
5780 \change_inserted 564990737 1670794716
5781
5782 \lang american
5783 Create a wide figure float: 
5784 \family sans
5785 \bar under
5786 I
5787 \bar default
5788 nsert\SpecialChar menuseparator
5789 Flo
5790 \bar under
5791 a
5792 \bar default
5793 t\SpecialChar menuseparator
5794 Figure
5795 \family default
5796 , then, from within the float, use the menu 
5797 \family sans
5798 \bar under
5799 E
5800 \bar default
5801 dit\SpecialChar menuseparator
5802 Flo
5803 \bar under
5804 a
5805 \bar default
5806 t
5807 \begin_inset space ~
5808 \end_inset
5809
5810 Settings
5811 \family default
5812  and check 
5813 \family sans
5814 \bar under
5815 S
5816 \bar default
5817 pan
5818 \begin_inset space ~
5819 \end_inset
5820
5821 columns
5822 \family default
5823  in the 
5824 \family sans
5825 float
5826 \family default
5827  dialog.
5828 \end_layout
5829
5830 \begin_layout Enumerate
5831
5832 \change_inserted 564990737 1670794716
5833
5834 \lang american
5835 Enter your caption text.
5836 \end_layout
5837
5838 \begin_layout Enumerate
5839
5840 \change_inserted 564990737 1670794716
5841
5842 \lang american
5843 Press 
5844 \family sans
5845 Return
5846 \family default
5847  to move the cursor above the caption.
5848 \end_layout
5849
5850 \begin_layout Enumerate
5851
5852 \change_inserted 564990737 1670794716
5853
5854 \lang american
5855 Insert your figure
5856 \end_layout
5857
5858 \begin_layout Enumerate
5859
5860 \change_inserted 564990737 1670794716
5861
5862 \lang american
5863 Position the cursor after the figure and insert a horizontal fill by using
5864  the menu: 
5865 \family sans
5866 \bar under
5867 I
5868 \bar default
5869 nsert\SpecialChar menuseparator
5870 F
5871 \bar under
5872 o
5873 \bar default
5874 rmatting\SpecialChar menuseparator
5875 H
5876 \bar under
5877 o
5878 \bar default
5879 rizontal
5880 \begin_inset space ~
5881 \end_inset
5882
5883 Space
5884 \family default
5885  to open the 
5886 \family sans
5887 space
5888 \family default
5889  dialog and select the 
5890 \family sans
5891 Horizontal fill
5892 \family default
5893  option from the 
5894 \family sans
5895 \bar under
5896 S
5897 \bar default
5898 pacing
5899 \family default
5900  pull-down menu.
5901 \end_layout
5902
5903 \begin_layout Enumerate
5904
5905 \change_inserted 564990737 1670794716
5906
5907 \lang american
5908 Switch to \SpecialChar LaTeX
5909  mode: 
5910 \family sans
5911 M-c
5912 \begin_inset space ~
5913 \end_inset
5914
5915 t
5916 \family default
5917 .
5918 \end_layout
5919
5920 \begin_layout Enumerate
5921
5922 \change_inserted 564990737 1670794716
5923
5924 \lang american
5925 Enter 
5926 \family typewriter
5927
5928 \backslash
5929 parbox[b]{55mm}{
5930 \family default
5931  
5932 \emph on
5933 Do not close the brace!
5934 \end_layout
5935
5936 \begin_layout Enumerate
5937
5938 \change_inserted 564990737 1670794716
5939
5940 \lang american
5941 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
5942  mode and insert
5943  the closing brace: 
5944 \family sans
5945 M-c
5946 \begin_inset space ~
5947 \end_inset
5948
5949 t
5950 \family default
5951  
5952 \family typewriter
5953 }
5954 \family default
5955 .
5956 \end_layout
5957
5958 \begin_layout Standard
5959
5960 \change_inserted 564990737 1671642458
5961
5962 \lang american
5963 Also, refer to the figures in the file in 
5964 \family sans
5965 \lang british
5966 File\SpecialChar menuseparator
5967 Open Example\SpecialChar menuseparator
5968 Articles\SpecialChar menuseparator
5969 Astronomy & Astrophysics
5970 \family default
5971 \lang american
5972 .
5973 \end_layout
5974
5975 \begin_layout Subsubsection
5976
5977 \change_inserted 564990737 1670794716
5978
5979 \lang american
5980 Referee layout
5981 \end_layout
5982
5983 \begin_layout Standard
5984
5985 \change_inserted 564990737 1670794716
5986
5987 \lang american
5988 For submission, the paper has to be formatted in a special double-spacing
5989  layout.
5990  For this purpose, you have to add the option 
5991 \family typewriter
5992 referee
5993 \family default
5994  to the 
5995 \family sans
5996 Cus
5997 \bar under
5998 t
5999 \bar default
6000 om Class
6001 \begin_inset space ~
6002 \end_inset
6003
6004 options
6005 \family default
6006  in the 
6007 \family sans
6008 \bar under
6009 D
6010 \bar default
6011 ocument\SpecialChar menuseparator
6012
6013 \bar under
6014 S
6015 \bar default
6016 ettings\SpecialChar menuseparator
6017 Document
6018 \begin_inset space ~
6019 \end_inset
6020
6021 Class
6022 \family default
6023  dialog.
6024  
6025 \end_layout
6026
6027 \begin_layout Subsubsection
6028
6029 \change_inserted 564990737 1670794716
6030
6031 \lang american
6032 The example paper
6033 \end_layout
6034
6035 \begin_layout Standard
6036
6037 \change_inserted 564990737 1671642520
6038
6039 \lang american
6040 The example in 
6041 \family sans
6042 \lang british
6043 File\SpecialChar menuseparator
6044 Open Example\SpecialChar menuseparator
6045 Articles\SpecialChar menuseparator
6046 Astronomy & Astrophysics
6047 \family default
6048 \lang american
6049  was written with \SpecialChar LyX
6050 .
6051  It is the example paper from the original macro package, 
6052 \family typewriter
6053 aa.dem
6054 \family default
6055  in the 
6056 \begin_inset CommandInset href
6057 LatexCommand href
6058 name "aa-package"
6059 target "http://ftp.edpsciences.org/pub/aa/aa-package.zip"
6060 literal "false"
6061
6062 \end_inset
6063
6064 , but translated to \SpecialChar LyX
6065  using the older unstructured abstract type.
6066  Use it for inspiration, and compare the \SpecialChar LaTeX
6067  code in 
6068 \family typewriter
6069 aa.dem
6070 \family default
6071  with the \SpecialChar LyX
6072  way of writing.
6073 \end_layout
6074
6075 \begin_layout Subsection
6076 AAS\SpecialChar TeX
6077
6078 \end_layout
6079
6080 \begin_layout Standard
6081 by 
6082 \noun on
6083 Mike Ressler
6084 \end_layout
6085
6086 \begin_layout Subsubsection
6087 Introduction
6088 \end_layout
6089
6090 \begin_layout Standard
6091 AAS\SpecialChar TeX
6092  is a set of macros produced by the American Astronomical Society to
6093  facilitate electronic manuscript submission to the three journals they
6094  publish: the Astrophysical Journal (including the Letters and Supplement),
6095  the Astronomical Journal, and the Publications of the Astronomical Society
6096  of the Pacific.
6097  \SpecialChar LyX
6098  has proven to be an excellent tool for generating these documents, especially
6099  given its equation, citation, and figure handling capabilities.
6100  \SpecialChar LyX
6101  requires version 5.0 (or higher) of these macros; preferably 6.0, which
6102  is the version described here, or higher.
6103  Versions prior to 5.0 are intended for use with \SpecialChar LaTeX
6104 2.09 and are fundamentally
6105  incompatible with \SpecialChar LyX
6106 .
6107  The AAS\SpecialChar TeX
6108  package may be downloaded from the AAS\SpecialChar TeX
6109  Web site
6110 \end_layout
6111
6112 \begin_layout Standard
6113 \begin_inset VSpace medskip
6114 \end_inset
6115
6116
6117 \end_layout
6118
6119 \begin_layout Standard
6120 \align center
6121 \begin_inset Flex URL
6122 status collapsed
6123
6124 \begin_layout Plain Layout
6125
6126 https://aas.org/aastex/aastex-downloads
6127 \end_layout
6128
6129 \end_inset
6130
6131
6132 \end_layout
6133
6134 \begin_layout Standard
6135 \begin_inset VSpace medskip
6136 \end_inset
6137
6138
6139 \end_layout
6140
6141 \begin_layout Standard
6142 A complete user guide is contained in that package and you should familiarize
6143  yourself with it thoroughly before embarking on writing a paper in \SpecialChar LyX
6144 .
6145  \SpecialChar LyX
6146  will not reduce the need to figure out all the AAS\SpecialChar TeX
6147  commands, it will only
6148  reduce the drudgery of typing everything in.
6149  It is your responsibility to ensure that the final exported \SpecialChar LaTeX
6150  document conforms
6151  completely to the requirements of the journal to which you are submitting
6152  your paper.
6153 \end_layout
6154
6155 \begin_layout Subsubsection
6156 Starting a New Paper
6157 \end_layout
6158
6159 \begin_layout Standard
6160 I strongly suggest that you start with the AAS\SpecialChar TeX
6161  template file.
6162  Click on 
6163 \family sans
6164 File\SpecialChar menuseparator
6165 New from
6166 \family default
6167  
6168 \family sans
6169 Template
6170 \change_inserted 564990737 1671617265
6171 \SpecialChar menuseparator
6172 Articles\SpecialChar menuseparator
6173 American Astronomical Society
6174 \change_deleted 564990737 1671617310
6175
6176 \family default
6177 , enter the new file name, then choose the 
6178 \family typewriter
6179 aastex6.lyx
6180 \family default
6181  template
6182 \change_unchanged
6183 .
6184  This will show the most common fields found in a manuscript.
6185  Simply overwrite the existing text (including the brackets, 
6186 \family typewriter
6187 <>
6188 \family default
6189 ) with the correct information.
6190  Many of the AAS\SpecialChar TeX
6191  commands and environments can be implemented directly in
6192  \SpecialChar LyX
6193 , but some cannot.
6194  For commands such as these, the \SpecialChar LaTeX
6195  code must be entered directly and marked
6196  as such.
6197  Such commands are referred to as \SpecialChar TeX
6198  code, or Evil Red Text.
6199  I tried to minimize the amount of \SpecialChar TeX
6200  code needed in an AAS\SpecialChar TeX
6201  document.
6202 \end_layout
6203
6204 \begin_layout Subsubsection
6205 Finishing Your Paper
6206 \end_layout
6207
6208 \begin_layout Standard
6209 When the paper is finished to your satisfaction and previews/prints correctly,
6210  there are a few 
6211 \begin_inset Quotes eld
6212 \end_inset
6213
6214 postprocessing
6215 \begin_inset Quotes erd
6216 \end_inset
6217
6218  actions which need to be done before you submit it to the journals.
6219  
6220 \end_layout
6221
6222 \begin_layout Enumerate
6223 Export your paper as a \SpecialChar LaTeX
6224  file (
6225 \family sans
6226 File\SpecialChar menuseparator
6227 Export\SpecialChar menuseparator
6228 \SpecialChar LaTeX
6229
6230 \family default
6231 ).
6232  
6233 \end_layout
6234
6235 \begin_layout Enumerate
6236 Edit the resulting 
6237 \family typewriter
6238 .tex
6239 \family default
6240  file with your favorite text editor
6241 \end_layout
6242
6243 \begin_deeper
6244 \begin_layout Enumerate
6245 remove the comment lines before the 
6246 \family typewriter
6247
6248 \backslash
6249 documentclass
6250 \family default
6251  command
6252 \end_layout
6253
6254 \begin_layout Enumerate
6255 remove the 
6256 \family typewriter
6257
6258 \backslash
6259 usepackage...{fontenc}
6260 \family default
6261  line if it appears (usually just after 
6262 \family typewriter
6263
6264 \backslash
6265 documentclass
6266 \family default
6267 }; also remove the 
6268 \family typewriter
6269
6270 \backslash
6271 secnumdepth
6272 \family default
6273  line if it appears.
6274 \end_layout
6275
6276 \begin_layout Enumerate
6277 remove everything between (and including) the 
6278 \family typewriter
6279
6280 \backslash
6281 makeatletter
6282 \family default
6283  and 
6284 \family typewriter
6285
6286 \backslash
6287 makeatother
6288 \family default
6289  commands, except for any commands you specifically put into the \SpecialChar LaTeX
6290  preamble
6291  (which should appear immediately after the 
6292 \begin_inset Quotes eld
6293 \end_inset
6294
6295 User specified \SpecialChar LaTeX
6296  commands
6297 \begin_inset Quotes erd
6298 \end_inset
6299
6300  comment in the 
6301 \family typewriter
6302 .tex
6303 \family default
6304  file).
6305 \end_layout
6306
6307 \end_deeper
6308 \begin_layout Enumerate
6309 Run the resulting file through \SpecialChar LaTeX
6310  to make sure it still processes correctly.
6311 \end_layout
6312
6313 \begin_layout Enumerate
6314 Reread the journal requirements to make sure your filenames and formats
6315  are correct.
6316 \end_layout
6317
6318 \begin_layout Enumerate
6319 Submit it.
6320 \end_layout
6321
6322 \begin_layout Subsubsection
6323 Comments On Specific Commands
6324 \end_layout
6325
6326 \begin_layout Standard
6327 I will not describe the detailed usage of the individual AAS\SpecialChar TeX
6328  commands: the
6329  AAS\SpecialChar TeX
6330  User Guide (
6331 \family typewriter
6332 aasguide.tex
6333 \family default
6334 ) gives a good description of each.
6335  Thus it's probably easiest for me to go down the list as found in the guide
6336  and offer comments where necessary.
6337  So let's begin \SpecialChar ldots
6338
6339 \end_layout
6340
6341 \begin_layout Paragraph
6342 Things that work as expected
6343 \end_layout
6344
6345 \begin_layout Standard
6346 Because they work as you might expect, I simply list them and the section
6347  they are found in: 
6348 \family typewriter
6349
6350 \backslash
6351 documentclass
6352 \family default
6353  (2.1.1), 
6354 \family typewriter
6355
6356 \backslash
6357 begin{document}
6358 \family default
6359  (2.2), 
6360 \family typewriter
6361
6362 \backslash
6363 title
6364 \family default
6365  (2.3), 
6366 \family typewriter
6367
6368 \backslash
6369 author
6370 \family default
6371  (2.3), 
6372 \family typewriter
6373
6374 \backslash
6375 affil
6376 \family default
6377  (2.3), 
6378 \family typewriter
6379
6380 \backslash
6381 abstract
6382 \family default
6383  (2.4), 
6384 \family typewriter
6385
6386 \backslash
6387 keywords
6388 \family default
6389  (2.5), 
6390 \family typewriter
6391
6392 \backslash
6393 section
6394 \family default
6395  (2.7), 
6396 \family typewriter
6397
6398 \backslash
6399 subsection
6400 \family default
6401  (2.7), 
6402 \family typewriter
6403
6404 \backslash
6405 subsubsection
6406 \family default
6407  (2.7), 
6408 \family typewriter
6409
6410 \backslash
6411 paragraph
6412 \family default
6413  (2.7), 
6414 \family typewriter
6415
6416 \backslash
6417 facility
6418 \family default
6419  (2.10), 
6420 \family typewriter
6421
6422 \backslash
6423 begin{displaymath}
6424 \family default
6425  (2.12), 
6426 \family typewriter
6427
6428 \backslash
6429 begin{equation}
6430 \family default
6431  (2.12), 
6432 \family typewriter
6433
6434 \backslash
6435 begin{eqnarray}
6436 \family default
6437  (2.12), 
6438 \family typewriter
6439
6440 \backslash
6441 begin{mathletters}
6442 \family default
6443  (2.12), 
6444 \family typewriter
6445
6446 \backslash
6447 begin{thebibliography}
6448 \family default
6449  (2.13.1), 
6450 \family typewriter
6451
6452 \backslash
6453 bibitem
6454 \family default
6455  (2.13.2), all the cite commands and their variations (2.13.2), the generic
6456  graphicx figure commands (2.14.1), 
6457 \family typewriter
6458
6459 \backslash
6460 begin{table}
6461 \family default
6462  (2.15.4), 
6463 \family typewriter
6464
6465 \backslash
6466 begin{tabular}
6467 \family default
6468  (2.15.4), 
6469 \family typewriter
6470
6471 \backslash
6472 caption
6473 \family default
6474  (2.15.4), 
6475 \family typewriter
6476
6477 \backslash
6478 label
6479 \family default
6480  (2.15.4, amongst other places), 
6481 \family typewriter
6482
6483 \backslash
6484 tablerefs
6485 \family default
6486  (2.15.5), 
6487 \family typewriter
6488
6489 \backslash
6490 tablecomments
6491 \family default
6492  (2.15.5), 
6493 \family typewriter
6494
6495 \backslash
6496 url
6497 \family default
6498  (2.17.4), 
6499 \family typewriter
6500
6501 \backslash
6502 end{document}
6503 \family default
6504  (2.18).
6505 \end_layout
6506
6507 \begin_layout Standard
6508 The following style options also work correctly: 
6509 \family typewriter
6510 longabstract
6511 \family default
6512  (2.4), 
6513 \family typewriter
6514 preprint
6515 \family default
6516  (3.2.1), 
6517 \family typewriter
6518 preprint2
6519 \family default
6520  (3.2.2), 
6521 \family typewriter
6522 eqsecnum
6523 \family default
6524  (3.3), 
6525 \family typewriter
6526 flushrt
6527 \family default
6528  (3.4).
6529  Simply put them in the 
6530 \family sans
6531 Options
6532 \family default
6533  box in 
6534 \family sans
6535 Layout\SpecialChar menuseparator
6536 Document
6537 \family default
6538 .
6539 \end_layout
6540
6541 \begin_layout Paragraph
6542 Things that work, but require more comment
6543 \end_layout
6544
6545 \begin_layout Standard
6546 The following items work, but require a little more discussion:
6547 \end_layout
6548
6549 \begin_layout Itemize
6550 These items are reserved for use by the journal editors, but you can put
6551  them into the \SpecialChar LaTeX
6552  preamble if you feel compelled to do so: 
6553 \family typewriter
6554
6555 \backslash
6556 received
6557 \family default
6558
6559 \family typewriter
6560
6561 \backslash
6562 revised
6563 \family default
6564
6565 \family typewriter
6566
6567 \backslash
6568 accepted
6569 \family default
6570
6571 \family typewriter
6572
6573 \backslash
6574 ccc
6575 \family default
6576
6577 \family typewriter
6578
6579 \backslash
6580 cpright
6581 \family default
6582  (all from 2.1.3)
6583 \end_layout
6584
6585 \begin_layout Itemize
6586 These items may be placed in the \SpecialChar LaTeX
6587  preamble, and are included as blanks in
6588  the template file: 
6589 \family typewriter
6590
6591 \backslash
6592 slugcomment
6593 \family default
6594  (2.1.4), 
6595 \family typewriter
6596
6597 \backslash
6598 shorttitle
6599 \family default
6600  (2.1.5), 
6601 \family typewriter
6602
6603 \backslash
6604 shortauthors
6605 \family default
6606  (2.1.5)
6607 \end_layout
6608
6609 \begin_layout Itemize
6610
6611 \family typewriter
6612
6613 \backslash
6614 email
6615 \family default
6616  (2.3) – can only be used 
6617 \begin_inset Quotes eld
6618 \end_inset
6619
6620 standalone
6621 \begin_inset Quotes erd
6622 \end_inset
6623
6624 , not in the middle of a paragraph.
6625  Use \SpecialChar TeX
6626  code if you need to embed it.
6627 \end_layout
6628
6629 \begin_layout Itemize
6630
6631 \family typewriter
6632
6633 \backslash
6634 and
6635 \family default
6636  (2.3) – will have extra {} after it.
6637  This should not cause an error.
6638 \end_layout
6639
6640 \begin_layout Itemize
6641
6642 \family typewriter
6643
6644 \backslash
6645 notetoeditor
6646 \family default
6647  (2.6) – can only be used 
6648 \begin_inset Quotes eld
6649 \end_inset
6650
6651 standalone
6652 \begin_inset Quotes erd
6653 \end_inset
6654
6655 , not in the middle of a paragraph.
6656  Use \SpecialChar TeX
6657  code if you need to embed it.
6658 \end_layout
6659
6660 \begin_layout Itemize
6661
6662 \family typewriter
6663
6664 \backslash
6665 placetable
6666 \family default
6667  (2.8) – can't insert a cross-reference tag, you must type the tag name by
6668  hand
6669 \end_layout
6670
6671 \begin_layout Itemize
6672
6673 \family typewriter
6674
6675 \backslash
6676 placefigure
6677 \family default
6678  (2.8) – same as for 
6679 \family typewriter
6680
6681 \backslash
6682 placetable
6683 \end_layout
6684
6685 \begin_layout Itemize
6686
6687 \family typewriter
6688
6689 \backslash
6690 acknowledgements
6691 \family default
6692  (2.9) – will have extra {} after it.
6693  This should not cause an error.
6694 \end_layout
6695
6696 \begin_layout Itemize
6697
6698 \family typewriter
6699
6700 \backslash
6701 appendix
6702 \family default
6703  (2.11) – will have extra {} after it.
6704  This should not cause an error.
6705 \end_layout
6706
6707 \begin_layout Itemize
6708
6709 \family typewriter
6710
6711 \backslash
6712 figcaption
6713 \family default
6714  (2.14.2) – you can insert an optional filename argument by placing the cursor
6715  at the beginning of the text and selecting 
6716 \family sans
6717 Insert\SpecialChar menuseparator
6718 Short Title
6719 \family default
6720 .
6721  
6722 \begin_inset Quotes eld
6723 \end_inset
6724
6725 Short Title
6726 \begin_inset Quotes erd
6727 \end_inset
6728
6729  inserts an optional argument of the type needed by 
6730 \family typewriter
6731
6732 \backslash
6733 figcaption
6734 \family default
6735 .
6736  Hopefully it will be renamed someday.
6737 \end_layout
6738
6739 \begin_layout Itemize
6740
6741 \family typewriter
6742
6743 \backslash
6744 objectname
6745 \family default
6746  (2.17.1) – same as 
6747 \family typewriter
6748
6749 \backslash
6750 figcaption
6751 \family default
6752  for the catalog ID optional parameter
6753 \end_layout
6754
6755 \begin_layout Itemize
6756
6757 \family typewriter
6758
6759 \backslash
6760 dataset
6761 \family default
6762  (2.17.1) – same as 
6763 \family typewriter
6764
6765 \backslash
6766 figcaption
6767 \family default
6768  for the catalog ID optional parameter
6769 \end_layout
6770
6771 \begin_layout Paragraph
6772 Things not implemented, use \SpecialChar TeX
6773  code
6774 \end_layout
6775
6776 \begin_layout Standard
6777
6778 \family typewriter
6779
6780 \backslash
6781 eqnum
6782 \family default
6783  (2.12), 
6784 \family typewriter
6785
6786 \backslash
6787 setcounter{equation}
6788 \family default
6789  (2.12), Journal name abbreviations (2.13.4), 
6790 \family typewriter
6791
6792 \backslash
6793 figurenum
6794 \family default
6795  (2.14.1), 
6796 \family typewriter
6797
6798 \backslash
6799 epsscale
6800 \family default
6801  (2.14.1), 
6802 \family typewriter
6803
6804 \backslash
6805 plotone
6806 \family default
6807  (2.14.1), 
6808 \family typewriter
6809
6810 \backslash
6811 plottwo
6812 \family default
6813  (2.14.1), 
6814 \family typewriter
6815
6816 \backslash
6817 tablenum
6818 \family default
6819  (2.15.4), 
6820 \family typewriter
6821
6822 \backslash
6823 tableline
6824 \family default
6825  (2.15.4, insert it as the first element in the lefthand cell after where
6826  you want it.
6827  Don't use any of \SpecialChar LyX
6828 's rules in the table), 
6829 \family typewriter
6830
6831 \backslash
6832 tablenotemark
6833 \family default
6834  (2.15.5), 
6835 \family typewriter
6836
6837 \backslash
6838 tablenotetext
6839 \family default
6840  (2.15.5), much of Misc (2.17, except 
6841 \family typewriter
6842
6843 \backslash
6844 objectname
6845 \family default
6846
6847 \family typewriter
6848
6849 \backslash
6850 dataset
6851 \family default
6852
6853 \family typewriter
6854
6855 \backslash
6856 url
6857 \family default
6858 , and 
6859 \family typewriter
6860
6861 \backslash
6862 email
6863 \family default
6864 ; see above), 
6865 \family typewriter
6866
6867 \backslash
6868 singlespace
6869 \family default
6870  (3.1), 
6871 \family typewriter
6872
6873 \backslash
6874 doublespace
6875 \family default
6876  (3.1), 
6877 \family typewriter
6878
6879 \backslash
6880 onecolumn
6881 \family default
6882  (3.2), 
6883 \family typewriter
6884
6885 \backslash
6886 twocolumn
6887 \family default
6888  (3.2)
6889 \end_layout
6890
6891 \begin_layout Paragraph
6892 Things that cannot be implemented
6893 \end_layout
6894
6895 \begin_layout Standard
6896 \SpecialChar ldots
6897  at least in any meaningful sort of way, so I suggest ignoring them.
6898  They are the references environment (2.13.3), and the deluxetable environment
6899  (2.15).
6900  If you really, really need to use deluxetable, I suggest editing it in
6901  a separate file with a text editor, then using 
6902 \family sans
6903 Insert\SpecialChar menuseparator
6904 Child
6905 \begin_inset space ~
6906 \end_inset
6907
6908 Document
6909 \family default
6910  to include it in your \SpecialChar LyX
6911  document.
6912  See 
6913 \change_deleted 564990737 1671642564
6914 the 
6915 \family typewriter
6916 aas_sample.lyx
6917 \family default
6918  file to see
6919 \change_inserted 564990737 1671642618
6920
6921 \family sans
6922 \lang british
6923 File\SpecialChar menuseparator
6924 Open Example\SpecialChar menuseparator
6925 Articles\SpecialChar menuseparator
6926 American Astronomical Society
6927 \change_unchanged
6928
6929 \family default
6930 \lang english
6931  
6932 \change_inserted 564990737 1671642621
6933 for 
6934 \change_unchanged
6935 an example of this.
6936 \end_layout
6937
6938 \begin_layout Subsubsection
6939 FAQs, Tips, Tricks, and Other Ruminations
6940 \end_layout
6941
6942 \begin_layout Paragraph
6943 Getting \SpecialChar LyX
6944  and AAS\SpecialChar TeX
6945  to cooperate
6946 \end_layout
6947
6948 \begin_layout Standard
6949 It can be a bit tricky to get \SpecialChar LyX
6950  to recognize a new layout and document class.
6951  When all else fails, do this:
6952 \end_layout
6953
6954 \begin_layout Enumerate
6955 Make certain that \SpecialChar LaTeX
6956  can find AAS\SpecialChar TeX
6957 .
6958  Copy sample.tex (and perhaps table.tex) from the AAS\SpecialChar TeX
6959  distribution into a
6960  directory completely unrelated to \SpecialChar LaTeX
6961  or AAS\SpecialChar TeX
6962  and run \SpecialChar LaTeX
6963  on 
6964 \family typewriter
6965 sample.tex
6966 \family default
6967 .
6968 \end_layout
6969
6970 \begin_layout Enumerate
6971 Make certain that 
6972 \family typewriter
6973 aastex.layout
6974 \family default
6975  appears in \SpecialChar LyX
6976 's 
6977 \family typewriter
6978 layouts
6979 \family default
6980  folder
6981 \end_layout
6982
6983 \begin_layout Enumerate
6984 Rerun 
6985 \family sans
6986 Tools\SpecialChar menuseparator
6987 Reconfigure
6988 \family default
6989  in \SpecialChar LyX
6990 , then restart \SpecialChar LyX
6991 .
6992 \end_layout
6993
6994 \begin_layout Enumerate
6995 Open a regular new file, not from a template.
6996  Does AAS\SpecialChar TeX
6997  appear in the class list in 
6998 \family sans
6999 Document\SpecialChar menuseparator
7000 Settings
7001 \family default
7002 ?
7003 \end_layout
7004
7005 \begin_layout Standard
7006 If you get a warning from an existing AAS\SpecialChar TeX
7007  document about not being able
7008  to find the AAS\SpecialChar TeX
7009  layout or a message about 
7010 \begin_inset Quotes eld
7011 \end_inset
7012
7013 You should not mix title layouts with normal ones
7014 \begin_inset Quotes erd
7015 \end_inset
7016
7017 , things haven't been installed correctly.
7018 \end_layout
7019
7020 \begin_layout Paragraph
7021 \SpecialChar LaTeX
7022  error processing a table 
7023 \end_layout
7024
7025 \begin_layout Standard
7026 \SpecialChar LyX
7027 , by default, attempts to center the table caption/title.
7028  This seems to produce a bad interaction in AAS\SpecialChar TeX
7029  so you should click somewhere
7030  in the caption/title, then select 
7031 \family sans
7032 Edit\SpecialChar menuseparator
7033 Paragraph
7034 \begin_inset space ~
7035 \end_inset
7036
7037 Settings
7038 \family default
7039 , then set the 
7040 \family sans
7041 Alignment
7042 \family default
7043  to 
7044 \family sans
7045 Block
7046 \family default
7047 .
7048  This took care of it for me.
7049 \end_layout
7050
7051 \begin_layout Paragraph
7052 References
7053 \end_layout
7054
7055 \begin_layout Standard
7056 A couple of things: 1) I have noticed some funny spacing in the reference
7057  entries in the text.
7058  When you enter the bibliography item data, make sure their is 
7059 \emph on
7060 no
7061 \emph default
7062  space between the last author and the parenthesis setting off the year;
7063  
7064 \emph on
7065 e.
7066 \begin_inset space \thinspace{}
7067 \end_inset
7068
7069 g.
7070 \begin_inset space \space{}
7071 \end_inset
7072
7073
7074 \emph default
7075 type 
7076 \family typewriter
7077 Ressler(1992)
7078 \family default
7079 , not 
7080 \family typewriter
7081 Ressler (1992)
7082 \family default
7083 .
7084  2) Entering the references at all is not obvious.
7085  The easiest thing is to start typing your first reference at the end of
7086  the document, then mark it as type 
7087 \family sans
7088 References
7089 \family default
7090 .
7091  That will put a small gray box in front of what you just typed.
7092  Click on the box to fill in the rest of the information.
7093  For new references, go to the end of an existing reference and press return.
7094  That will create a new line with its own box, etc.
7095 \end_layout
7096
7097 \begin_layout Paragraph
7098 Including EPS files
7099 \end_layout
7100
7101 \begin_layout Standard
7102 Even though AAS\SpecialChar TeX
7103  provides its own figure commands (
7104 \family typewriter
7105
7106 \backslash
7107 plotone
7108 \family default
7109 , for example), I much prefer \SpecialChar LaTeX
7110 's standard figure commands (with the default
7111  graphicx).
7112  You can insert the 
7113 \family typewriter
7114
7115 \backslash
7116 plotone
7117 \family default
7118 , etc.
7119 \begin_inset space ~
7120 \end_inset
7121
7122 commands as \SpecialChar TeX
7123  code into a Figure Float box if you desire, but I never have
7124  much luck getting the layout right.
7125  With the standard graphics, \SpecialChar LyX
7126  will insert a 
7127 \family typewriter
7128
7129 \backslash
7130 usepackage{graphicx}
7131 \family default
7132  command into the \SpecialChar LaTeX
7133  preamble and handle the figures in the standard \SpecialChar LaTeX2e
7134  way,
7135  interspersing the figures in the text.
7136  I believe ApJ accepts figures exactly this way now; AJ might still use
7137  the 
7138 \begin_inset Quotes eld
7139 \end_inset
7140
7141 stack everything at the end
7142 \begin_inset Quotes erd
7143 \end_inset
7144
7145  technique.
7146 \end_layout
7147
7148 \begin_layout Paragraph
7149 Things I could have done, but didn't
7150 \end_layout
7151
7152 \begin_layout Standard
7153 There are a few 
7154 \begin_inset Quotes eld
7155 \end_inset
7156
7157 pretty
7158 \begin_inset Quotes erd
7159 \end_inset
7160
7161  things I could have implemented, but chose not to.
7162  For instance, I saw no point in double-spacing the text in the \SpecialChar LyX
7163  window,
7164  even though it is double-spaced in the paper manuscript.
7165  Also, I chose not to make separate layouts for the preprint and preprint2
7166  styles.
7167  Since I assume you will spend most of your time in the plain manuscript
7168  mode anyway, I decided not to chew up more disk space with this.
7169  
7170 \end_layout
7171
7172 \begin_layout Subsubsection
7173 Final Caveat
7174 \end_layout
7175
7176 \begin_layout Standard
7177 Your mileage may vary.
7178  I've now had papers published by both ApJ and AJ that have had 98% of the
7179  effort done in \SpecialChar LyX
7180 ; the last 2% was the \SpecialChar LaTeX
7181  post-processing and a few cleanups.
7182  I have had no trouble with the submission process, and I'm sure the journals
7183  were never aware that there might be a difference.
7184  So, go forth and publish!
7185 \end_layout
7186
7187 \begin_layout Subsection
7188
7189 \change_inserted 564990737 1671442131
7190
7191 \lang american
7192 Chess
7193 \end_layout
7194
7195 \begin_layout Standard
7196
7197 \change_inserted 564990737 1671642768
7198
7199 \lang american
7200 The document class 
7201 \family sans
7202 article
7203 \begin_inset space \thinspace{}
7204 \end_inset
7205
7206 (Chess)
7207 \family default
7208  uses the 
7209 \family typewriter
7210 article.cls
7211 \family default
7212  document class together with the style 
7213 \family sans
7214 lyxskak.sty
7215 \family default
7216  to facilitate the description of chess games.
7217  See 
7218 \family sans
7219 \lang british
7220 File\SpecialChar menuseparator
7221 Open Example
7222 \lang english
7223 \SpecialChar menuseparator
7224 Articles\SpecialChar menuseparator
7225 Chess
7226 \family default
7227 \lang american
7228  where you will find 
7229 \family sans
7230 \lang english
7231 Game 1
7232 \family default
7233 \lang american
7234  and 
7235 \family sans
7236 \lang english
7237 Game 2
7238 \family default
7239 \lang american
7240 .
7241 \end_layout
7242
7243 \begin_layout Subsection
7244
7245 \change_inserted 564990737 1671042028
7246
7247 \lang american
7248 Elsevier
7249 \end_layout
7250
7251 \begin_layout Standard
7252
7253 \change_inserted 564990737 1671617396
7254
7255 \lang american
7256 The document class 
7257 \family sans
7258 article
7259 \begin_inset space \thinspace{}
7260 \end_inset
7261
7262 (Elsevier)
7263 \family default
7264  provides the 
7265 \family typewriter
7266 elsarticle.cls
7267 \family default
7268  document class.
7269  This provides the following additional environments: 
7270 \family sans
7271 Title
7272 \begin_inset space ~
7273 \end_inset
7274
7275 footnote
7276 \family default
7277
7278 \family sans
7279 Author
7280 \begin_inset space ~
7281 \end_inset
7282
7283 footnote
7284 \family default
7285
7286 \family sans
7287 Corresponding
7288 \begin_inset space ~
7289 \end_inset
7290
7291 author
7292 \family default
7293
7294 \family sans
7295 Address
7296 \family default
7297
7298 \family sans
7299 Email
7300 \family default
7301  and 
7302 \family sans
7303 Keywords
7304 \family default
7305 .
7306  A template is available in the menu 
7307 \family sans
7308 \bar under
7309 F
7310 \bar default
7311 ile\SpecialChar menuseparator
7312 New
7313 \begin_inset space ~
7314 \end_inset
7315
7316 fro
7317 \bar under
7318 m
7319 \bar default
7320
7321 \begin_inset space ~
7322 \end_inset
7323
7324 Template
7325 \lang english
7326 \SpecialChar menuseparator
7327 Articles\SpecialChar menuseparator
7328 Elsevier
7329 \family default
7330 \lang american
7331 .
7332  It has been customized with further environments and contains all the informati
7333 on you may need.
7334  However, the documentation is also available from 
7335 \begin_inset CommandInset href
7336 LatexCommand href
7337 name "CTAN"
7338 target "http://mirrors.ctan.org/macros/latex/contrib/elsarticle/doc/elsdoc.pdf"
7339 literal "false"
7340
7341 \end_inset
7342
7343 .
7344 \end_layout
7345
7346 \begin_layout Subsection
7347
7348 \change_inserted 564990737 1671042046
7349
7350 \lang american
7351 Paper
7352 \end_layout
7353
7354 \begin_layout Standard
7355
7356 \change_inserted 564990737 1671042046
7357
7358 \lang american
7359 The document class 
7360 \family sans
7361 article
7362 \begin_inset space \thinspace{}
7363 \end_inset
7364
7365 (paper)
7366 \family default
7367  provides an alternative to the 
7368 \family typewriter
7369 article.cls
7370 \family default
7371  document class.
7372  It provides similar functionality, but you might prefer this layout with
7373  sans serif sections, headings, and more.
7374 \end_layout
7375
7376 \begin_layout Subsection
7377 Rev\SpecialChar TeX
7378 4
7379 \end_layout
7380
7381 \begin_layout Standard
7382 by 
7383 \noun on
7384 Amir Karger
7385 \end_layout
7386
7387 \begin_layout Standard
7388 \begin_inset VSpace bigskip
7389 \end_inset
7390
7391
7392 \end_layout
7393
7394 \begin_layout Standard
7395 \noindent
7396 The 
7397 \family sans
7398 Revtex
7399 \begin_inset space ~
7400 \end_inset
7401
7402 4
7403 \family default
7404  textclass works with the American Physical Sociey's Rev\SpecialChar TeX
7405  4.0 (the 
7406 \begin_inset Formula $\beta$
7407 \end_inset
7408
7409  release of May, 1999) class.
7410 \end_layout
7411
7412 \begin_layout Standard
7413 \SpecialChar LyX
7414  has a 
7415 \family sans
7416 Revtex
7417 \family default
7418  textclass, which works with Rev\SpecialChar TeX
7419  3.1.
7420  However, v3.1 is basically obsolete, as it works with \SpecialChar LaTeX
7421  2.09.
7422  That means that it doesn't interact very well with \SpecialChar LyX
7423 , which requires \SpecialChar LaTeX2e
7424 , although
7425  it has been kludged to work.
7426  Since Rev\SpecialChar TeX
7427  4.0 has been designed to work much more cleanly with \SpecialChar LaTeX2e
7428 , \SpecialChar LyX
7429  with the
7430  
7431 \family sans
7432 Rev\SpecialChar TeX
7433
7434 \begin_inset space ~
7435 \end_inset
7436
7437 4
7438 \family default
7439  textclass should also be pretty easy to use.
7440 \end_layout
7441
7442 \begin_layout Standard
7443 These documents are supposed to be used in 
7444 \emph on
7445 addition
7446 \emph default
7447  to the Rev\SpecialChar TeX
7448  4.0 documents, so we don't describe any of the special Rev\SpecialChar TeX
7449  macros,
7450  and assume you'll know what to put in the preamble if necessary.
7451 \end_layout
7452
7453 \begin_layout Subsubsection
7454 Installation
7455 \end_layout
7456
7457 \begin_layout Standard
7458 All you need to do is install Rev\SpecialChar TeX
7459  4, as described in the package's README
7460  file.
7461  The package can be found at The Rev\SpecialChar TeX
7462  4 Web Site 
7463 \begin_inset Flex URL
7464 status collapsed
7465
7466 \begin_layout Plain Layout
7467
7468 http://publish.aps.org/revtex4/
7469 \end_layout
7470
7471 \end_inset
7472
7473 .
7474  Install it somewhere that \SpecialChar LaTeX
7475  can see it.
7476  Test it by trying to \SpecialChar LaTeX
7477  a short Rev\SpecialChar TeX
7478  4 document in some random directory (i.
7479 \begin_inset space \thinspace{}
7480 \end_inset
7481
7482 e.
7483 \begin_inset space \space{}
7484 \end_inset
7485
7486 not the directory where you installed the class file.) Then, if you reconfigure
7487  \SpecialChar LyX
7488 , it will find the class file and let you use the Rev\SpecialChar TeX
7489 4 textclass.
7490 \end_layout
7491
7492 \begin_layout Standard
7493 Probably the easiest way to get started is either to import a Rev\SpecialChar TeX
7494  4 document
7495  using 
7496 \family typewriter
7497 tex2lyx
7498 \family default
7499 , or to use the 
7500 \family sans
7501 Revtex
7502 \begin_inset space ~
7503 \end_inset
7504
7505 4
7506 \family default
7507  template, found in the templates directory.
7508 \end_layout
7509
7510 \begin_layout Subsubsection
7511 Preamble Matter
7512 \end_layout
7513
7514 \begin_layout Standard
7515 Optional arguments to 
7516 \family typewriter
7517
7518 \backslash
7519 documentclass
7520 \family default
7521 , like 
7522 \begin_inset Quotes eld
7523 \end_inset
7524
7525 preprint
7526 \begin_inset Quotes erd
7527 \end_inset
7528
7529  and 
7530 \begin_inset Quotes eld
7531 \end_inset
7532
7533 aps
7534 \begin_inset Quotes erd
7535 \end_inset
7536
7537 , go in the 
7538 \family sans
7539 Extra
7540 \begin_inset space ~
7541 \end_inset
7542
7543 Options
7544 \family default
7545  field in the 
7546 \family sans
7547 Document
7548 \begin_inset space ~
7549 \end_inset
7550
7551 Layout
7552 \family default
7553  dialog, as usual.
7554  Remember that in Rev\SpecialChar TeX
7555 , at least one optional argument is required! 
7556 \end_layout
7557
7558 \begin_layout Standard
7559 Other preamble matter, like 
7560 \family typewriter
7561
7562 \backslash
7563 draft
7564 \family default
7565  etc.
7566 \begin_inset space ~
7567 \end_inset
7568
7569 goes in the 
7570 \family sans
7571 \SpecialChar LaTeX
7572
7573 \begin_inset space ~
7574 \end_inset
7575
7576 Preamble
7577 \family default
7578  dialog, also as usual.
7579 \end_layout
7580
7581 \begin_layout Subsubsection
7582 Layouts
7583 \end_layout
7584
7585 \begin_layout Standard
7586 The layouts basically correspond to the commands in Rev\SpecialChar TeX
7587 4.0.
7588  For example, the Email layout corresponds to 
7589 \family typewriter
7590
7591 \backslash
7592 email{}
7593 \family default
7594 .
7595  Note that (at least as of Rev\SpecialChar TeX
7596  4.0 Beta), the 
7597 \family sans
7598 Address
7599 \family default
7600  and 
7601 \family sans
7602 Affiliation
7603 \family default
7604  layouts are exactly equivalent, so you shouldn't need to use both.
7605 \begin_inset Foot
7606 status collapsed
7607
7608 \begin_layout Plain Layout
7609 In case you're curious, both were included so that 
7610 \family typewriter
7611 tex2lyx
7612 \family default
7613  would be able to translate both 
7614 \family typewriter
7615
7616 \backslash
7617 address
7618 \family default
7619  and 
7620 \family typewriter
7621
7622 \backslash
7623 affiliation
7624 \family default
7625 .
7626 \end_layout
7627
7628 \end_inset
7629
7630
7631 \end_layout
7632
7633 \begin_layout Subsubsection
7634 Important Notes
7635 \end_layout
7636
7637 \begin_layout Standard
7638 There are a couple of important unique aspects of Rev\SpecialChar TeX
7639  4 which might cause
7640  bugs that will be even more confusing in \SpecialChar LyX
7641 .
7642 \end_layout
7643
7644 \begin_layout Standard
7645 In Rev\SpecialChar TeX
7646 , the 
7647 \family typewriter
7648
7649 \backslash
7650 thanks
7651 \family default
7652  command goes 
7653 \emph on
7654 outside
7655 \emph default
7656  the 
7657 \family typewriter
7658
7659 \backslash
7660 author
7661 \family default
7662  command.
7663  The \SpecialChar LyX
7664  equivalent is that there is a separate Thanks layout.
7665  Do 
7666 \emph on
7667 not
7668 \emph default
7669  write footnotes in the 
7670 \family sans
7671 Author
7672 \family default
7673  layout, or weird things may happen.
7674  See the Rev\SpecialChar TeX
7675  4 documentation for more details.
7676 \end_layout
7677
7678 \begin_layout Standard
7679 Also, the 
7680 \family sans
7681 Author
7682 \begin_inset space ~
7683 \end_inset
7684
7685 Email
7686 \family default
7687
7688 \family sans
7689 Author
7690 \begin_inset space ~
7691 \end_inset
7692
7693 URL
7694 \family default
7695 , and 
7696 \family sans
7697 Thanks
7698 \family default
7699  layouts must be placed 
7700 \emph on
7701 in between
7702 \emph default
7703  the 
7704 \family sans
7705 Author
7706 \family default
7707  layout and the corresponding 
7708 \family sans
7709 Address
7710 \family default
7711  (or equivalent 
7712 \family sans
7713 Affiliation
7714 \family default
7715 ) layout.
7716  If you put the 
7717 \family sans
7718 Thanks
7719 \family default
7720  after the 
7721 \family sans
7722 Address
7723 \family default
7724 , the \SpecialChar LaTeX
7725  won't compile.
7726 \end_layout
7727
7728 \begin_layout Subsection
7729
7730 \change_inserted 564990737 1671042072
7731
7732 \lang american
7733 Springer Journals
7734 \end_layout
7735
7736 \begin_layout Standard
7737
7738 \change_inserted 564990737 1671042072
7739
7740 \lang american
7741 All the 
7742 \family sans
7743 svj*
7744 \family default
7745  classes were replaced in 2013 with a completely new 
7746 \family sans
7747 sr-vorl.cls
7748 \family default
7749 .
7750  This package provides a \SpecialChar LaTeX
7751  class and templates for books to be published
7752  at Springer Gabler Research, Springer Vieweg Research, Springer Spektrum
7753  Research, Springer VS Research, or Springer VS Forschung.
7754  The documentation is available in German from 
7755 \begin_inset CommandInset href
7756 LatexCommand href
7757 name "CTAN"
7758 target "http://mirrors.ctan.org/macros/latex/contrib/springer/sr-vorl/sr-vorl.pdf"
7759 literal "false"
7760
7761 \end_inset
7762
7763 .
7764 \end_layout
7765
7766 \begin_layout Section
7767
7768 \change_inserted 564990737 1670439560
7769 Books
7770 \end_layout
7771
7772 \begin_layout Standard
7773
7774 \change_inserted 564990737 1670439581
7775 See also the document classes in the Collections (section
7776 \begin_inset space ~
7777 \end_inset
7778
7779
7780 \begin_inset CommandInset ref
7781 LatexCommand ref
7782 reference "sec:Collections"
7783
7784 \end_inset
7785
7786 ).
7787 \end_layout
7788
7789 \begin_layout Subsection
7790 Memoir
7791 \end_layout
7792
7793 \begin_layout Standard
7794 By 
7795 \noun on
7796 Jürgen Spitzmüller
7797 \end_layout
7798
7799 \begin_layout Subsubsection
7800 Overview
7801 \end_layout
7802
7803 \begin_layout Standard
7804 Memoir is a very powerful and constantly evolving class.
7805  It has been designed with regard to fictional and non-fictional literature.
7806  Its aim is to let the user have maximum control over the typesetting of
7807  his document.
7808  Memoir is based on the standard book class, but it can also emulate the
7809  article class (see below).
7810 \end_layout
7811
7812 \begin_layout Standard
7813 Peter Wilson, the developer of Memoir, is known as the author of lots of
7814  useful packages in the \SpecialChar LaTeX
7815  world.
7816  Most of them have been merged with Memoir.
7817  Therefore, it is much easier to layout the table of contents, appendices,
7818  chapter designs and such.
7819  \SpecialChar LyX
7820 , though, does not support all of these goodies natively.
7821  Some of them might be added to forthcoming releases
7822 \begin_inset Foot
7823 status collapsed
7824
7825 \begin_layout Plain Layout
7826 You are invited to send suggestions to 
7827 \begin_inset Flex URL
7828 status collapsed
7829
7830 \begin_layout Plain Layout
7831
7832 lyx-devel@lists.lyx.org
7833 \end_layout
7834
7835 \end_inset
7836
7837 .
7838 \end_layout
7839
7840 \end_inset
7841
7842 , lots will probably never be supported, due to the limitations of \SpecialChar LyX
7843 's framework.
7844  Of course you can still use all features with the help of some native \SpecialChar LaTeX
7845
7846  commands (\SpecialChar TeX
7847  code
7848 \begin_inset Foot
7849 status collapsed
7850
7851 \begin_layout Plain Layout
7852 Cf.
7853 \begin_inset ERT
7854 status collapsed
7855
7856 \begin_layout Plain Layout
7857
7858
7859 \backslash
7860  
7861 \end_layout
7862
7863 \end_inset
7864
7865 section
7866 \begin_inset space ~
7867 \end_inset
7868
7869
7870 \begin_inset CommandInset ref
7871 LatexCommand ref
7872 reference "sec:Inserting-TeX-Code"
7873
7874 \end_inset
7875
7876  for details.
7877 \end_layout
7878
7879 \end_inset
7880
7881 ).
7882  In this section, we can only list those features that are natively supported
7883  by \SpecialChar LyX
7884 .
7885  For detailed descriptions (and for the rest of features) we recommend you
7886  have a look at the detailed manual of the Memoir class
7887 \begin_inset Foot
7888 status collapsed
7889
7890 \begin_layout Plain Layout
7891 Cf.
7892 \begin_inset ERT
7893 status collapsed
7894
7895 \begin_layout Plain Layout
7896
7897
7898 \backslash
7899  
7900 \end_layout
7901
7902 \end_inset
7903
7904
7905 \begin_inset Flex URL
7906 status collapsed
7907
7908 \begin_layout Plain Layout
7909
7910 CTAN:/macros/latex/memoir/memman.pdf
7911 \end_layout
7912
7913 \end_inset
7914
7915 .
7916 \end_layout
7917
7918 \end_inset
7919
7920 , which is not only a user guide for the class, but also both a comprehensive
7921  description on good typesetting and a superb example for good typesetting
7922  itself.
7923 \end_layout
7924
7925 \begin_layout Subsubsection
7926 Basic features and restrictions
7927 \end_layout
7928
7929 \begin_layout Standard
7930 Memoir supports basically all features of the standard book classes.
7931  There are, however, some differences, as follows:
7932 \end_layout
7933
7934 \begin_layout Description
7935 Font
7936 \begin_inset space ~
7937 \end_inset
7938
7939 sizes: Memoir has a broader range of font sizes: 9, 10, 11, 12, 14, 17
7940 \end_layout
7941
7942 \begin_layout Description
7943 Page
7944 \begin_inset space ~
7945 \end_inset
7946
7947 style: The fancy page style is not supported, due to a command clash between
7948  Memoir and the fancyhdr package (they both define a command with the same
7949  name, which confuses \SpecialChar LaTeX
7950 ).
7951  Instead, Memoir comes with a number of its own page styles (see 
7952 \family sans
7953 Document\SpecialChar menuseparator
7954 Settings\SpecialChar menuseparator
7955 Page
7956 \begin_inset space ~
7957 \end_inset
7958
7959 Style
7960 \family default
7961 ).
7962  If you want to use these for the chapter pages, you have to use the command
7963  
7964 \family typewriter
7965
7966 \backslash
7967 chapterstyle
7968 \family default
7969  in the main text or in preamble (e.
7970 \begin_inset space \thinspace{}
7971 \end_inset
7972
7973 g.
7974 \begin_inset space \space{}
7975 \end_inset
7976
7977
7978 \family typewriter
7979
7980 \backslash
7981 chapterstyle{companion}
7982 \family default
7983 ).
7984 \end_layout
7985
7986 \begin_layout Description
7987 Sectioning: Sectionings (chapter, section, subsection etc.) come with an
7988  optional argument in the standard classes.
7989  With this, you can specify an alternative version of the title for the
7990  table of contents and the headers (for instance, if the title is too long).
7991  In \SpecialChar LyX
7992 , you can do this via 
7993 \family sans
7994 Insert\SpecialChar menuseparator
7995 Short
7996 \begin_inset space ~
7997 \end_inset
7998
7999 Title
8000 \family default
8001  at the beginning of a chapter/section.
8002  Memoir features a second optional argument and thus separates the table
8003  of contents from the header.
8004  You can define three variants of a title with this: one for the main text,
8005  one for the table of contents, and one for the headers.
8006  \SpecialChar LyX
8007  makes these available in form of specific 
8008 \family sans
8009 Short Title
8010 \family default
8011  variants in the 
8012 \family sans
8013 Insert
8014 \family default
8015  menu.
8016 \end_layout
8017
8018 \begin_layout Description
8019 TOC/LOT/LOF: In the standard classes (and in many other classes), the table
8020  of contents, the list of figures and the list of table start a new page
8021  automatically.
8022  Memoir does not follow this route.
8023  You have to insert a page break yourself, if you want to have one.
8024 \end_layout
8025
8026 \begin_layout Description
8027 Titlepage: For some unknown reason, Memoir uses pagination on the title
8028  page (in the standard classes, title pages are 
8029 \begin_inset Quotes eld
8030 \end_inset
8031
8032 empty
8033 \begin_inset Quotes erd
8034 \end_inset
8035
8036 ).
8037  If you want an empty title page, type 
8038 \family typewriter
8039
8040 \backslash
8041 aliaspagestyle{title}{empty}
8042 \family default
8043  in the preamble.
8044 \end_layout
8045
8046 \begin_layout Description
8047 Article: With the class option 
8048 \emph on
8049 article
8050 \emph default
8051  (to be inserted in 
8052 \family sans
8053 Document\SpecialChar menuseparator
8054 Settings\SpecialChar menuseparator
8055 Class Settings\SpecialChar menuseparator
8056 Custom
8057 \begin_inset space ~
8058 \end_inset
8059
8060 Options
8061 \family default
8062 ), you can emulate article style.
8063  That is, counters (footnotes, figures, tables etc.) will not be reset on
8064  new chapters, chapters don't start a new page (but are—in contrary to 
8065 \begin_inset Quotes eld
8066 \end_inset
8067
8068 real
8069 \begin_inset Quotes erd
8070 \end_inset
8071
8072  article classes—still allowed), parts, though, use their own page, as in
8073  book.
8074 \end_layout
8075
8076 \begin_layout Description
8077 Oldfontcommands: By default, Memoir does not allow the use of the deprecated
8078  font commands, which have been used in the old \SpecialChar LaTeX
8079  version 2.09 (e.
8080 \begin_inset space \thinspace{}
8081 \end_inset
8082
8083 g.
8084 \begin_inset space \space{}
8085 \end_inset
8086
8087
8088 \family typewriter
8089
8090 \backslash
8091 rm
8092 \family default
8093
8094 \family typewriter
8095
8096 \backslash
8097 it
8098 \family default
8099 ).
8100  It produces an error and stops \SpecialChar LaTeX
8101  whenever such a command appears.
8102  The class option 
8103 \emph on
8104 oldfontcommands
8105 \emph default
8106  reallows the commands and spits out warnings instead (which does at least
8107  not stop \SpecialChar LaTeX
8108 ).
8109  Since a lot of packages and particularly Bib\SpecialChar TeX
8110  style files are still using
8111  those commands, we have decided to use this option by default.
8112 \end_layout
8113
8114 \begin_layout Subsubsection
8115 Extra features
8116 \end_layout
8117
8118 \begin_layout Standard
8119 We will only describe the features supported by \SpecialChar LyX
8120  (which is not much currently).
8121  Please consult the Memoir manual
8122 \begin_inset Foot
8123 status collapsed
8124
8125 \begin_layout Plain Layout
8126 Cf.
8127 \begin_inset ERT
8128 status collapsed
8129
8130 \begin_layout Plain Layout
8131
8132
8133 \backslash
8134  
8135 \end_layout
8136
8137 \end_inset
8138
8139
8140 \begin_inset Flex URL
8141 status collapsed
8142
8143 \begin_layout Plain Layout
8144
8145 CTAN:/macros/latex/memoir/memman.pdf
8146 \end_layout
8147
8148 \end_inset
8149
8150 .
8151 \end_layout
8152
8153 \end_inset
8154
8155  for details.
8156 \end_layout
8157
8158 \begin_layout Description
8159 Abstract: You may wonder why an abstract is an extra feature.
8160  Well, it is in book class.
8161  Usually books don't have abstracts.
8162  Memoir, however, has.
8163  You can use it wherever and how often you like.
8164 \end_layout
8165
8166 \begin_layout Description
8167 Chapterprecis: You may know this older typesetting style: The contents of
8168  a chapter are summarized below the title and also in the table of contents
8169  (e.
8170 \begin_inset space \thinspace{}
8171 \end_inset
8172
8173 g.
8174 \begin_inset space \space{}
8175 \end_inset
8176
8177
8178 \emph on
8179 Our hero arrives in Troia; he loses some friends; he finds others
8180 \emph default
8181 ).
8182  Chapterprecis does exactly this.
8183  It is therefore only sensible below a chapter.
8184 \end_layout
8185
8186 \begin_layout Description
8187 Epigraph: An epigraph is a smart slogan or motto at the beginning of a chapter.
8188  The epigraph environment provides an elegant way of typesetting such a
8189  motto.
8190  The motto itself (text) and its (optional) author (source) are divided
8191  by a short line.
8192  The author (source) can be inserted via 
8193 \family sans
8194 Insert\SpecialChar menuseparator
8195 Epigraph Source
8196 \family default
8197 \emph on
8198 .
8199 \end_layout
8200
8201 \begin_layout Description
8202 Poemtitle: Memoir has lots of possibilities to typeset poetry (up to very
8203  complex figurative poems).
8204  \SpecialChar LyX
8205  can only support a few of them.
8206  One is poemtitle, which is a centered title for poems, which will also
8207  be added to the table of contents (verse is the standard environment for
8208  poems.
8209  Memoir has some enhanced versions of verse, but you need to use \SpecialChar TeX
8210  code,
8211  because they have to be nested inside regular verse environments, which
8212  is not possible with \SpecialChar LyX
8213 ).
8214 \end_layout
8215
8216 \begin_layout Description
8217 Poemtitle*: Same as poemtitle, but it adds no entry to the table of contents.
8218 \end_layout
8219
8220 \begin_layout Subsection
8221
8222 \change_inserted 564990737 1671442175
8223
8224 \lang american
8225 Recipe Book
8226 \end_layout
8227
8228 \begin_layout Standard
8229
8230 \change_inserted 564990737 1671442175
8231
8232 \lang american
8233 The document class 
8234 \family typewriter
8235 RecipeBook.cls
8236 \family default
8237  uses the 
8238 \family sans
8239 book
8240 \begin_inset space \thinspace{}
8241 \end_inset
8242
8243 (KOMA-Script)
8244 \family default
8245  document class but adds two environments:
8246 \end_layout
8247
8248 \begin_layout Description
8249
8250 \change_inserted 564990737 1671442175
8251
8252 \lang american
8253 Recipe a numbered section environment at the 
8254 \family typewriter
8255 Subsubsection
8256 \family default
8257  level which generates a bold centered heading above a double horizontal
8258  rule
8259 \end_layout
8260
8261 \begin_layout Description
8262
8263 \change_inserted 564990737 1671442175
8264
8265 \lang american
8266 Ingredients a 
8267 \family typewriter
8268 Description
8269 \family default
8270  environment where 
8271 \series bold
8272 \emph on
8273 Ingredients
8274 \series default
8275 \emph default
8276  are what are being described and the environment ends with a horizontal
8277  rule.
8278 \end_layout
8279
8280 \begin_layout Standard
8281
8282 \change_inserted 564990737 1671642866
8283
8284 \family sans
8285 \lang british
8286 File\SpecialChar menuseparator
8287 Open Example\SpecialChar menuseparator
8288 Books\SpecialChar menuseparator
8289 Recipe Book
8290 \family default
8291 \lang american
8292  illustrates its use.
8293 \end_layout
8294
8295 \begin_layout Standard
8296
8297 \change_inserted 564990737 1671442175
8298
8299 \lang american
8300 It is designed for typesetting one or two recipes per page, with dimensions
8301  of 5.5
8302 \begin_inset Quotes qrd
8303 \end_inset
8304
8305  x 8.5
8306 \begin_inset Quotes qrd
8307 \end_inset
8308
8309 .
8310  The hyperlinked table of contents (ToC) and page numbers make browsing
8311  recipes convenient, and the pages can be joined together or printed 2 per
8312  page to normal letterpaper easily.
8313  The size was chosen to work in half-page 3-ring binder cover sheets, because
8314  un-laminated paper just doesn't last in the kitchen.
8315 \end_layout
8316
8317 \begin_layout Standard
8318
8319 \change_inserted 564990737 1671442175
8320
8321 \lang american
8322 The half-letter pages can be printed two per page using your printer driver,
8323  or bound together using 
8324 \family typewriter
8325 pdfjam --nup 2x1 --papersize '{11in,8.5in}'
8326 \family default
8327  
8328 \family typewriter
8329 Recipes.pdf
8330 \family default
8331  where 
8332 \family typewriter
8333 Recipes.pdf
8334 \family default
8335  is the compiled version of your recipes.
8336 \end_layout
8337
8338 \begin_layout Section
8339
8340 \change_inserted 564990737 1671442207
8341 Curricula vitarum
8342 \end_layout
8343
8344 \begin_layout Subsection
8345
8346 \change_inserted 564990737 1671442208
8347
8348 \lang american
8349 Europass
8350 \end_layout
8351
8352 \begin_layout Standard
8353
8354 \change_inserted 564990737 1671642942
8355
8356 \lang american
8357 The document class 
8358 \family sans
8359 curriculum
8360 \begin_inset space \space{}
8361 \end_inset
8362
8363 vitae
8364 \begin_inset space \thinspace{}
8365 \end_inset
8366
8367 (Europass)
8368 \family default
8369  provides the 
8370 \family typewriter
8371 europasscv.cls
8372 \family default
8373  document class, an unofficial implementation of the ‘Europass CV’ recommended
8374  by the European Commission in 2013.
8375  
8376 \family sans
8377 \lang british
8378 File\SpecialChar menuseparator
8379 Open Example\SpecialChar menuseparator
8380 Curricula Vitae\SpecialChar menuseparator
8381 Europass CV (2013)
8382 \family default
8383 \lang american
8384  offers guidance on its use.
8385  Its documentation is available from 
8386 \begin_inset CommandInset href
8387 LatexCommand href
8388 name "CTAN"
8389 target "http://mirrors.ctan.org/macros/latex/contrib/europasscv/europasscv.pdf"
8390 literal "false"
8391
8392 \end_inset
8393
8394 .
8395 \end_layout
8396
8397 \begin_layout Subsection
8398
8399 \change_inserted 564990737 1671442208
8400
8401 \lang american
8402 European
8403 \end_layout
8404
8405 \begin_layout Standard
8406
8407 \change_inserted 564990737 1671642984
8408
8409 \lang american
8410 The document class 
8411 \family sans
8412 curriculum
8413 \begin_inset space \space{}
8414 \end_inset
8415
8416 vitae
8417 \begin_inset space \thinspace{}
8418 \end_inset
8419
8420 (Europe)
8421 \family default
8422  provides the 
8423 \family typewriter
8424 europecv.cls
8425 \family default
8426  document class, an unofficial implementation of the “Europass CV” recommended
8427  by the European Commission in 2002.
8428  
8429 \family sans
8430 \lang british
8431 File\SpecialChar menuseparator
8432 Open Example\SpecialChar menuseparator
8433 Curricula Vitae\SpecialChar menuseparator
8434 Europe CV
8435 \family default
8436 \lang american
8437  offers guidance on its use.
8438  Its documentation is available from 
8439 \begin_inset CommandInset href
8440 LatexCommand href
8441 name "CTAN"
8442 target "http://mirrors.ctan.org/macros/latex/contrib/europecv/europecv.pdf"
8443 literal "false"
8444
8445 \end_inset
8446
8447 .
8448 \end_layout
8449
8450 \begin_layout Subsection
8451
8452 \change_inserted 564990737 1671442208
8453
8454 \lang american
8455 Modern
8456 \end_layout
8457
8458 \begin_layout Standard
8459
8460 \change_inserted 564990737 1671643003
8461
8462 \lang american
8463 The document class 
8464 \family sans
8465 curriculum
8466 \begin_inset space \space{}
8467 \end_inset
8468
8469 vitae
8470 \begin_inset space \thinspace{}
8471 \end_inset
8472
8473 (modern)
8474 \family default
8475  provides the 
8476 \family typewriter
8477 moderncv.cls
8478 \family default
8479  document class.
8480  This allows the creation of customizable CVs.
8481  
8482 \family sans
8483 \lang british
8484 File\SpecialChar menuseparator
8485 Open Example\SpecialChar menuseparator
8486 Curricula Vitae\SpecialChar menuseparator
8487 Modern CV
8488 \family default
8489 \lang american
8490  offers guidance on its use.
8491  Its documentation is available from 
8492 \begin_inset CommandInset href
8493 LatexCommand href
8494 name "CTAN"
8495 target "http://mirrors.ctan.org/macros/latex/contrib/moderncv/manual/moderncv_userguide.pdf"
8496 literal "false"
8497
8498 \end_inset
8499
8500 .
8501 \end_layout
8502
8503 \begin_layout Subsection
8504
8505 \change_inserted 564990737 1671442208
8506
8507 \lang american
8508 Simple
8509 \end_layout
8510
8511 \begin_layout Standard
8512
8513 \change_inserted 564990737 1671643024
8514
8515 \lang american
8516 The document class 
8517 \family sans
8518 curriculum
8519 \begin_inset space \space{}
8520 \end_inset
8521
8522 vitae
8523 \begin_inset space \thinspace{}
8524 \end_inset
8525
8526 (simple)
8527 \family default
8528  provides the 
8529 \family typewriter
8530 simplecv.cls
8531 \family default
8532  document class, originally developed for use with \SpecialChar LyX
8533 .
8534  
8535 \family sans
8536 \lang british
8537 File\SpecialChar menuseparator
8538 Open Example\SpecialChar menuseparator
8539 Curricula Vitae\SpecialChar menuseparator
8540 Simple CV
8541 \family default
8542 \lang american
8543  offers guidance on its use.
8544  Its documentation is available from 
8545 \begin_inset CommandInset href
8546 LatexCommand href
8547 name "CTAN"
8548 target "http://mirrors.ctan.org/macros/latex/contrib/simplecv/simplecv.pdf"
8549 literal "false"
8550
8551 \end_inset
8552
8553
8554 \end_layout
8555
8556 \begin_layout Section
8557
8558 \change_inserted 564990737 1671041968
8559 Letters
8560 \end_layout
8561
8562 \begin_layout Subsection
8563
8564 \change_inserted 564990737 1671041970
8565
8566 \lang american
8567 Din-Brief
8568 \end_layout
8569
8570 \begin_layout Standard
8571
8572 \change_inserted 564990737 1671617528
8573
8574 \lang american
8575 The document class 
8576 \family sans
8577 Din-Brief
8578 \family default
8579  provides the 
8580 \family typewriter
8581 dinbrief.cls
8582 \family default
8583  document class for writing letters according to the 
8584 \emph on
8585 Deutsches Institut für Normung
8586 \emph default
8587  conventions.
8588  The file in the menu 
8589 \family sans
8590 \bar under
8591 F
8592 \bar default
8593 ile\SpecialChar menuseparator
8594 New
8595 \begin_inset space ~
8596 \end_inset
8597
8598 fro
8599 \bar under
8600 m
8601 \bar default
8602
8603 \begin_inset space ~
8604 \end_inset
8605
8606 Template\SpecialChar menuseparator
8607 Letters\SpecialChar menuseparator
8608 DIN-Brief
8609 \family default
8610  offers guidance on its use.
8611  The documentation is available from 
8612 \begin_inset CommandInset href
8613 LatexCommand href
8614 name "CTAN"
8615 target "http://mirrors.ctan.org/macros/latex/contrib/dinbrief/liesmich"
8616 literal "false"
8617
8618 \end_inset
8619
8620 .
8621 \end_layout
8622
8623 \begin_layout Subsection
8624
8625 \change_inserted 564990737 1671458835
8626
8627 \lang american
8628 letter
8629 \end_layout
8630
8631 \begin_layout Standard
8632
8633 \change_inserted 564990737 1671617591
8634
8635 \lang american
8636 The document class 
8637 \family sans
8638 letter
8639 \family default
8640  provides the 
8641 \family sans
8642 letter.cls
8643 \family default
8644  document class for English letters and to create mailing labels.
8645  The file in the menu 
8646 \family sans
8647 \bar under
8648 F
8649 \bar default
8650 ile\SpecialChar menuseparator
8651 New
8652 \begin_inset space ~
8653 \end_inset
8654
8655 fro
8656 \bar under
8657 m
8658 \bar default
8659
8660 \begin_inset space ~
8661 \end_inset
8662
8663 Template\SpecialChar menuseparator
8664 Letters\SpecialChar menuseparator
8665 Letter (Standard Class)
8666 \family default
8667  offers guidance on its use.
8668 \end_layout
8669
8670 \begin_layout Section
8671
8672 \change_inserted 564990737 1670439660
8673 Presentations
8674 \end_layout
8675
8676 \begin_layout Subsection
8677
8678 \change_inserted 564990737 1671458922
8679
8680 \lang american
8681 Beamer
8682 \end_layout
8683
8684 \begin_layout Standard
8685
8686 \change_inserted 564990737 1671617655
8687
8688 \lang american
8689 The document class 
8690 \family sans
8691 presentation
8692 \begin_inset space \thinspace{}
8693 \end_inset
8694
8695 (beamer)
8696 \family default
8697  uses the 
8698 \family typewriter
8699 beamer.cls
8700 \family default
8701  document class for creating presentations.
8702  The file in the menu 
8703 \family sans
8704 \bar under
8705 F
8706 \bar default
8707 ile\SpecialChar menuseparator
8708 New
8709 \begin_inset space ~
8710 \end_inset
8711
8712 fro
8713 \bar under
8714 m
8715 \bar default
8716
8717 \begin_inset space ~
8718 \end_inset
8719
8720 Template\SpecialChar menuseparator
8721 Presentations\SpecialChar menuseparator
8722 Beamer
8723 \family default
8724  offers guidance on its use.
8725  The documentation is available from 
8726 \begin_inset CommandInset href
8727 LatexCommand href
8728 name "CTAN"
8729 target "http://mirrors.ctan.org/macros/latex/contrib/beamer/doc/beameruserguide.pdf"
8730 literal "false"
8731
8732 \end_inset
8733
8734 .
8735 \end_layout
8736
8737 \begin_layout Subsection
8738 Foils [aka 
8739 \family sans
8740 Foil\SpecialChar TeX
8741
8742 \family default
8743 ]
8744 \begin_inset CommandInset label
8745 LatexCommand label
8746 name "sec:foiltex"
8747
8748 \end_inset
8749
8750
8751 \end_layout
8752
8753 \begin_layout Standard
8754 by 
8755 \noun on
8756 Allan Rae
8757 \end_layout
8758
8759 \begin_layout Subsubsection
8760 Introduction
8761 \end_layout
8762
8763 \begin_layout Standard
8764 This section describes how to use \SpecialChar LyX
8765  to make slides for overhead projectors.
8766  There are two document classes that can do this: the default slides class
8767  and the 
8768 \family sans
8769 Foil\SpecialChar TeX
8770
8771 \family default
8772  slides class.
8773  This section documents the latter.
8774 \end_layout
8775
8776 \begin_layout Standard
8777 I'm going to say this again, nice and clear, so that there's no misunderstanding
8778 :
8779 \end_layout
8780
8781 \begin_layout Standard
8782 \begin_inset VSpace bigskip
8783 \end_inset
8784
8785
8786 \end_layout
8787
8788 \begin_layout Standard
8789 \align center
8790
8791 \size large
8792 This section documents the class 
8793 \begin_inset Quotes eld
8794 \end_inset
8795
8796
8797 \family sans
8798 FoilTeX
8799 \family default
8800
8801 \begin_inset Quotes erd
8802 \end_inset
8803
8804  
8805 \emph on
8806 only.
8807 \end_layout
8808
8809 \begin_layout Standard
8810 \begin_inset VSpace bigskip
8811 \end_inset
8812
8813
8814 \end_layout
8815
8816 \begin_layout Standard
8817 If you're looking for the documentation for 
8818 \begin_inset Quotes eld
8819 \end_inset
8820
8821
8822 \family sans
8823 slides (default)
8824 \family default
8825
8826 \begin_inset Quotes erd
8827 \end_inset
8828
8829 , check out section
8830 \begin_inset space ~
8831 \end_inset
8832
8833
8834 \begin_inset CommandInset ref
8835 LatexCommand ref
8836 reference "sec:slitex"
8837
8838 \end_inset
8839
8840 .
8841  If your machine doesn't have the 
8842 \family sans
8843 foils
8844 \family default
8845  class 
8846 \family sans
8847 FoilTeX
8848 \family default
8849  installed, you'll probably have to use the default 
8850 \family sans
8851 slides
8852 \family default
8853  class, which isn't quite as good as 
8854 \family sans
8855 foils.
8856 \end_layout
8857
8858 \begin_layout Standard
8859 The 
8860 \family sans
8861 foils
8862 \family default
8863  class is designed for use with version
8864 \begin_inset space ~
8865 \end_inset
8866
8867 2.1 of the 
8868 \family sans
8869 foils.cls
8870 \family default
8871  \SpecialChar LaTeX
8872  class file which is now an integral part of \SpecialChar LaTeX2e
8873 .
8874 \end_layout
8875
8876 \begin_layout Subsubsection
8877 Getting Started
8878 \end_layout
8879
8880 \begin_layout Standard
8881 Obviously, to use this document class, you need to select 
8882 \family sans
8883 FoilTeX
8884 \family default
8885  from the 
8886 \family sans
8887 Class
8888 \family default
8889  entry in the 
8890 \family sans
8891 Document
8892 \begin_inset space ~
8893 \end_inset
8894
8895 Layout
8896 \family default
8897  dialog.
8898  There are some settings in the 
8899 \family sans
8900 Document
8901 \begin_inset space ~
8902 \end_inset
8903
8904 Layout
8905 \family default
8906  dialog that you should know about that are specific to this class:
8907 \end_layout
8908
8909 \begin_layout Itemize
8910 Don't change the options 
8911 \family sans
8912 Sides
8913 \family default
8914  and 
8915 \family sans
8916 Columns
8917 \family default
8918  on the 
8919 \family sans
8920 Document
8921 \begin_inset space ~
8922 \end_inset
8923
8924 Layout
8925 \family default
8926  dialog.
8927  They're ignored by the 
8928 \family sans
8929 foils
8930 \family default
8931  class.
8932 \end_layout
8933
8934 \begin_layout Itemize
8935 The default font size is 20
8936 \begin_inset space \thinspace{}
8937 \end_inset
8938
8939 pt with the other options being 17
8940 \begin_inset space \thinspace{}
8941 \end_inset
8942
8943 pt, 25
8944 \begin_inset space \thinspace{}
8945 \end_inset
8946
8947 pt and 30
8948 \begin_inset space \thinspace{}
8949 \end_inset
8950
8951 pt.
8952 \end_layout
8953
8954 \begin_layout Itemize
8955 The default font is 
8956 \family sans
8957 sans
8958 \family default
8959  
8960 \family sans
8961 serif
8962 \family default
8963  but all math equations are still typeset in the usual roman font.
8964 \end_layout
8965
8966 \begin_layout Itemize
8967
8968 \family sans
8969 Foil\SpecialChar TeX
8970
8971 \family default
8972  supports A4 and Letter paper sizes as well as a special size for working
8973  with 35
8974 \begin_inset space \thinspace{}
8975 \end_inset
8976
8977 mm slides.
8978  It doesn't support A5, B5, legal or executive paper sizes.
8979 \end_layout
8980
8981 \begin_layout Itemize
8982 Don't bother changing the 
8983 \family sans
8984 Float Placement
8985 \family default
8986  settings because they are ignored anyway.
8987  All floats appear where they are defined in the text.
8988 \end_layout
8989
8990 \begin_layout Itemize
8991 The 
8992 \family sans
8993 Pagestyle
8994 \family default
8995  setting behaves a bit differently for this class.
8996  
8997 \family sans
8998 Foil\SpecialChar TeX
8999
9000 \family default
9001  provides extensive footer and header capabilities including a user-defined
9002  logo.
9003  See section
9004 \begin_inset space ~
9005 \end_inset
9006
9007
9008 \begin_inset CommandInset ref
9009 LatexCommand ref
9010 reference "sec:foilfoot"
9011
9012 \end_inset
9013
9014  for more details.
9015  The title page is treated differently to all other pages in the document
9016  and is 
9017 \emph on
9018 always
9019 \emph default
9020  unnumbered and 
9021 \emph on
9022 always
9023 \emph default
9024  has the logo centered at the bottom of the page (if one is defined).
9025  The possible page style choices and what they do are as follows:
9026 \end_layout
9027
9028 \begin_deeper
9029 \begin_layout Labeling
9030 \labelwidthstring MMMMMMM
9031
9032 \family sans
9033 \series bold
9034 empty
9035 \family default
9036 \series default
9037  The final output contains no page numbers, or other headers or footers
9038  (except footnotes of course).
9039  
9040 \end_layout
9041
9042 \begin_layout Labeling
9043 \labelwidthstring MMMMMMM
9044
9045 \family sans
9046 \series bold
9047 plain
9048 \family default
9049 \series default
9050  The final output contains page numbers centered at the bottom of the page.
9051  No other headings or footers (other than footnotes).
9052 \end_layout
9053
9054 \begin_layout Labeling
9055 \labelwidthstring MMMMMMM
9056
9057 \series bold
9058 foilheadings
9059 \series default
9060  Page numbers in lower right corner.
9061  Additional headers and footers are also shown.
9062  This is also the default.
9063 \end_layout
9064
9065 \begin_layout Labeling
9066 \labelwidthstring MMMMMMM
9067
9068 \series bold
9069 fancy
9070 \series default
9071  Gives you access to the 
9072 \family sans
9073 fancyheadings
9074 \family default
9075  package although its use with 
9076 \family sans
9077 Foil\SpecialChar TeX
9078
9079 \family default
9080  is discouraged by the writer of the 
9081 \family sans
9082 Foil\SpecialChar TeX
9083
9084 \family default
9085  package because of some potential page layout clashes.
9086 \end_layout
9087
9088 \end_deeper
9089 \begin_layout Paragraph
9090 Extra Options
9091 \end_layout
9092
9093 \begin_layout Standard
9094 The following options may be used in the extra class options in the 
9095 \family sans
9096 Document\SpecialChar menuseparator
9097 Settings
9098 \family default
9099  dialog.
9100 \end_layout
9101
9102 \begin_layout Labeling
9103 \labelwidthstring MMMMMMx
9104
9105 \series bold
9106 35mmSlide
9107 \series default
9108  This sets up the page layout for 7.33
9109 \begin_inset space \thinspace{}
9110 \end_inset
9111
9112 in by 11
9113 \begin_inset space \thinspace{}
9114 \end_inset
9115
9116 in paper, which is about the same aspect ratio as a 35
9117 \begin_inset space \thinspace{}
9118 \end_inset
9119
9120 mm slide, making it a bit easier to work with this medium.
9121 \end_layout
9122
9123 \begin_layout Labeling
9124 \labelwidthstring MMMMMMx
9125
9126 \series bold
9127 headrule
9128 \series default
9129  Places a rule across the page below the header on every page except the
9130  title page.
9131 \end_layout
9132
9133 \begin_layout Labeling
9134 \labelwidthstring MMMMMMx
9135
9136 \series bold
9137 footrule
9138 \series default
9139  Places a rule across the page above the footer on every page except the
9140  title page.
9141 \end_layout
9142
9143 \begin_layout Labeling
9144 \labelwidthstring MMMMMMx
9145
9146 \series bold
9147 dvips
9148 \series default
9149  This is automatically set each time you create a new 
9150 \family sans
9151 foils
9152 \family default
9153  document.
9154  This option tells 
9155 \family sans
9156 Foil\SpecialChar TeX
9157
9158 \family default
9159  to use the dvips driver to rotate those pages that are set as landscape
9160  foils.
9161 \end_layout
9162
9163 \begin_layout Labeling
9164 \labelwidthstring MMMMMMx
9165
9166 \series bold
9167 landscape
9168 \series default
9169  Simply changes the page dimensions to those of a landscape page but doesn't
9170  do any rotation.
9171  Thus if you use this option you need to use an external program to rotate
9172  each page or feed your paper through your printer as landscape.
9173  Note that this option effectively reverses the roles of the 
9174 \family sans
9175 Foilhead
9176 \family default
9177  and 
9178 \family sans
9179 Rotatefoilhead
9180 \family default
9181  environments (don't worry these are described in the next section).
9182 \end_layout
9183
9184 \begin_layout Labeling
9185 \labelwidthstring MMMMMMx
9186
9187 \series bold
9188 leqno
9189 \series default
9190  Equation numbers on the left.
9191 \end_layout
9192
9193 \begin_layout Labeling
9194 \labelwidthstring MMMMMMx
9195
9196 \series bold
9197 fleqn
9198 \series default
9199  Flush-left equations.
9200 \end_layout
9201
9202 \begin_layout Subsubsection
9203 Supported Environments
9204 \end_layout
9205
9206 \begin_layout Standard
9207 Most of the environments commonly supported in other classes are also supported
9208  by the 
9209 \family sans
9210 foils
9211 \family default
9212  class.
9213  There are several additional environments provided by 
9214 \family sans
9215 Foil\SpecialChar TeX
9216
9217 \family default
9218  as well as a couple added by \SpecialChar LyX
9219 .
9220  The following environments are shared with other classes:
9221 \end_layout
9222
9223 \begin_layout Standard
9224 \begin_inset Flex Multiple Columns
9225 status open
9226
9227 \begin_layout Itemize
9228
9229 \family sans
9230 Standard
9231 \end_layout
9232
9233 \begin_layout Itemize
9234
9235 \family sans
9236 Itemize
9237 \end_layout
9238
9239 \begin_layout Itemize
9240
9241 \family sans
9242 Enumerate
9243 \end_layout
9244
9245 \begin_layout Itemize
9246
9247 \family sans
9248 Description
9249 \end_layout
9250
9251 \begin_layout Itemize
9252
9253 \family sans
9254 List
9255 \end_layout
9256
9257 \begin_layout Itemize
9258
9259 \family sans
9260 \SpecialChar LyX
9261 -Code
9262 \end_layout
9263
9264 \begin_layout Itemize
9265
9266 \family sans
9267 Verse
9268 \end_layout
9269
9270 \begin_layout Itemize
9271
9272 \family sans
9273 Quote
9274 \end_layout
9275
9276 \begin_layout Itemize
9277
9278 \family sans
9279 Quotation
9280 \end_layout
9281
9282 \begin_layout Itemize
9283
9284 \family sans
9285 TitleAuthor
9286 \end_layout
9287
9288 \begin_layout Itemize
9289
9290 \family sans
9291 Date
9292 \end_layout
9293
9294 \begin_layout Itemize
9295
9296 \family sans
9297 Abstract
9298 \end_layout
9299
9300 \begin_layout Itemize
9301
9302 \family sans
9303 Bibliography
9304 \end_layout
9305
9306 \begin_layout Itemize
9307
9308 \family sans
9309 Address
9310 \end_layout
9311
9312 \begin_layout Itemize
9313
9314 \family sans
9315 RightAddress
9316 \end_layout
9317
9318 \end_inset
9319
9320
9321 \end_layout
9322
9323 \begin_layout Standard
9324 That is, all the major environments apart from the sectioning environments.
9325  Since foils are essentially self-contained sections, with a title and body,
9326  
9327 \family sans
9328 Foil\SpecialChar TeX
9329
9330 \family default
9331  provides specific commands for starting new foils and these are:
9332 \end_layout
9333
9334 \begin_layout Itemize
9335
9336 \family sans
9337 Foilhead
9338 \end_layout
9339
9340 \begin_layout Itemize
9341
9342 \family sans
9343 Rotatefoilhead
9344 \end_layout
9345
9346 \begin_layout Standard
9347 \SpecialChar LyX
9348  also provides slightly modified versions of these two environments called:
9349 \end_layout
9350
9351 \begin_layout Itemize
9352
9353 \family sans
9354 ShortFoilhead
9355 \end_layout
9356
9357 \begin_layout Itemize
9358
9359 \family sans
9360 ShortRotatefoilhead
9361 \end_layout
9362
9363 \begin_layout Standard
9364 and the differences will be explained in the next section.
9365 \end_layout
9366
9367 \begin_layout Standard
9368 Since foils are often used in presenting ideas or new theorems and such
9369  
9370 \family sans
9371 Foil\SpecialChar TeX
9372
9373 \family default
9374  also provides a comprehensive box of goodies for presenting them:
9375 \end_layout
9376
9377 \begin_layout Standard
9378 \begin_inset Flex Multiple Columns
9379 status open
9380
9381 \begin_layout Itemize
9382
9383 \family sans
9384 Theorem
9385 \end_layout
9386
9387 \begin_layout Itemize
9388
9389 \family sans
9390 Lemma
9391 \end_layout
9392
9393 \begin_layout Itemize
9394
9395 \family sans
9396 Corollary
9397 \end_layout
9398
9399 \begin_layout Itemize
9400
9401 \family sans
9402 Proposition
9403 \end_layout
9404
9405 \begin_layout Itemize
9406
9407 \family sans
9408 Definition
9409 \end_layout
9410
9411 \begin_layout Itemize
9412
9413 \family sans
9414 Proof
9415 \end_layout
9416
9417 \begin_layout Itemize
9418
9419 \family sans
9420 Theorem*
9421 \end_layout
9422
9423 \begin_layout Itemize
9424
9425 \family sans
9426 Lemma*
9427 \end_layout
9428
9429 \begin_layout Itemize
9430
9431 \family sans
9432 Corollary*
9433 \end_layout
9434
9435 \begin_layout Itemize
9436
9437 \family sans
9438 Proposition*
9439 \end_layout
9440
9441 \begin_layout Itemize
9442
9443 \family sans
9444 Definition*
9445 \end_layout
9446
9447 \end_inset
9448
9449
9450 \end_layout
9451
9452 \begin_layout Standard
9453 The starred versions are unnumbered while the unstarred versions are numbered.
9454  There are also two list environments added by \SpecialChar LyX
9455  and these are:
9456 \end_layout
9457
9458 \begin_layout Itemize
9459
9460 \family sans
9461 TickList
9462 \end_layout
9463
9464 \begin_layout Itemize
9465
9466 \family sans
9467 CrossList
9468 \end_layout
9469
9470 \begin_layout Standard
9471
9472 \family sans
9473 Foil\SpecialChar TeX
9474
9475 \family default
9476  provides some powerful header and footer capabilities that are best set
9477  in the preamble although they may be set at any point in a document.
9478  If you want to change these settings in your document the best place to
9479  do so is at the very top of a foil, i.
9480 \begin_inset space \thinspace{}
9481 \end_inset
9482
9483 e.
9484 \emph on
9485
9486 \begin_inset space \space{}
9487 \end_inset
9488
9489
9490 \emph default
9491 straight after the foilhead.
9492 \end_layout
9493
9494 \begin_layout Standard
9495 For this purpose, the following command styles are provided [
9496 \shape smallcaps
9497 Martin Vermeer
9498 \shape default
9499 ]:
9500 \end_layout
9501
9502 \begin_layout Standard
9503 \begin_inset Flex Multiple Columns
9504 status open
9505
9506 \begin_layout Itemize
9507
9508 \family sans
9509 My
9510 \begin_inset space ~
9511 \end_inset
9512
9513 Logo
9514 \end_layout
9515
9516 \begin_layout Itemize
9517
9518 \family sans
9519 Restriction
9520 \end_layout
9521
9522 \begin_layout Itemize
9523
9524 \family sans
9525 Right
9526 \begin_inset space ~
9527 \end_inset
9528
9529 Footer
9530 \end_layout
9531
9532 \begin_layout Itemize
9533
9534 \family sans
9535 Right
9536 \begin_inset space ~
9537 \end_inset
9538
9539 Header
9540 \end_layout
9541
9542 \begin_layout Itemize
9543
9544 \family sans
9545 Left
9546 \begin_inset space ~
9547 \end_inset
9548
9549 Header
9550 \end_layout
9551
9552 \begin_deeper
9553 \begin_layout Plain Layout
9554 \begin_inset space ~
9555 \end_inset
9556
9557
9558 \end_layout
9559
9560 \end_deeper
9561 \end_inset
9562
9563
9564 \end_layout
9565
9566 \begin_layout Standard
9567 There are also a few commands provided by 
9568 \family sans
9569 Foil\SpecialChar TeX
9570
9571 \family default
9572  that aren't directly supported by \SpecialChar LyX
9573  but I'll tell you what they do and how
9574  to use them in section
9575 \begin_inset space ~
9576 \end_inset
9577
9578
9579 \begin_inset CommandInset ref
9580 LatexCommand ref
9581 reference "sec:unsuppfoils"
9582
9583 \end_inset
9584
9585 .
9586 \end_layout
9587
9588 \begin_layout Subsubsection
9589 Building a Set of Foils
9590 \end_layout
9591
9592 \begin_layout Standard
9593 This section will give a simple introduction to using the different environments
9594  to build a set of foils.
9595  If you want to see an example set of foils, take a look at 
9596 \change_deleted 564990737 1671643085
9597 the 
9598 \family typewriter
9599 Foils.lyx
9600 \family default
9601  file you find in \SpecialChar LyX
9602 's 
9603 \family typewriter
9604 examples
9605 \family default
9606  folder
9607 \change_inserted 564990737 1671643099
9608
9609 \family sans
9610 \lang british
9611 File\SpecialChar menuseparator
9612 Open Example
9613 \lang english
9614 \SpecialChar menuseparator
9615 Presentations\SpecialChar menuseparator
9616 Foils
9617 \change_unchanged
9618
9619 \family default
9620 .
9621 \end_layout
9622
9623 \begin_layout Paragraph
9624 Give It a Title Page
9625 \end_layout
9626
9627 \begin_layout Standard
9628 Unlike other classes that provide 
9629 \family sans
9630 Title
9631 \family default
9632
9633 \family sans
9634 Author
9635 \family default
9636
9637 \family sans
9638 Date
9639 \family default
9640  and 
9641 \family sans
9642 Abstract
9643 \family default
9644  environments, 
9645 \family sans
9646 foils
9647 \family default
9648  creates the title on a page of its own.
9649  If you leave out the 
9650 \family sans
9651 Date
9652 \family default
9653  environment \SpecialChar LaTeX
9654  will substitute the current date (every time you regenerate
9655  the output).
9656 \end_layout
9657
9658 \begin_layout Paragraph
9659 Start a New Foil
9660 \end_layout
9661
9662 \begin_layout Standard
9663 As I mentioned earlier, there are four ways of starting a new foil.
9664  For portrait foils you should use 
9665 \family sans
9666 Foilhead
9667 \family default
9668  or 
9669 \family sans
9670 ShortFoilhead.
9671
9672 \family default
9673  The difference between these two environments is the amount of space between
9674  the title of the foil (the foilhead) and the body of the foil.
9675 \end_layout
9676
9677 \begin_layout Standard
9678 Landscape foils are generated using the 
9679 \family sans
9680 Rotatefoilhead
9681 \family default
9682  and 
9683 \family sans
9684 ShortRotatefoilhead
9685 \family default
9686  environments.
9687  Again the only difference is the spacing between foilhead and body.
9688  Both of the short versions have 0.5
9689 \begin_inset space ~
9690 \end_inset
9691
9692 inches less separation between the foilhead and the body.
9693  
9694 \end_layout
9695
9696 \begin_layout Standard
9697 One problem with the support for landscape foils is the requirement that
9698  you have to use the 
9699 \family typewriter
9700 dvips
9701 \family default
9702  driver to generate the PostScript output otherwise the foils won't be rotated.
9703  It is possible to get landscape foils even if you haven't got the 
9704 \family typewriter
9705 dvips
9706 \family default
9707  driver provided you can feed your foils sideways through your printer ;-)
9708 \end_layout
9709
9710 \begin_layout Paragraph
9711 Theorems, Lemmas, Proofs and more
9712 \end_layout
9713
9714 \begin_layout Standard
9715 You can't have two of the same type of these environments directly following
9716  each other.
9717  If you use a normal paragraph break, , you will just be extending the previous
9718  environment as if you had merged the two environments together.
9719  Rather than that, you need to insert a so-called separator.
9720  Please refer to the section entitled 
9721 \emph on
9722 Separate Nestings
9723 \emph default
9724  in the 
9725 \emph on
9726 User's Guide
9727 \emph default
9728 .
9729 \end_layout
9730
9731 \begin_layout Paragraph
9732 Lists
9733 \end_layout
9734
9735 \begin_layout Standard
9736 You get all the commonly supported list styles found in other classes as
9737  well as two new ones.
9738  I'll only describe the new ones here.
9739  If you want to find out more about the other list environments check out
9740  the 
9741 \emph on
9742 User's Guide.
9743
9744 \emph default
9745  If you intend to use itemized lists you might also want to read about the
9746  
9747 \family sans
9748 Itemize
9749 \begin_inset space ~
9750 \end_inset
9751
9752 Bullet
9753 \begin_inset space ~
9754 \end_inset
9755
9756 Selection
9757 \family default
9758  dialog described above in section
9759 \begin_inset space ~
9760 \end_inset
9761
9762
9763 \change_inserted 564990737 1671355684
9764
9765 \begin_inset CommandInset ref
9766 LatexCommand ref
9767 reference "chap:bullets"
9768
9769 \end_inset
9770
9771
9772 \change_deleted 564990737 1671355684
9773
9774 \begin_inset CommandInset ref
9775 LatexCommand ref
9776 reference "sec:bullet"
9777
9778 \end_inset
9779
9780
9781 \change_unchanged
9782 .
9783 \end_layout
9784
9785 \begin_layout Standard
9786 The two new list styles, 
9787 \family sans
9788 TickList
9789 \family default
9790  and 
9791 \family sans
9792 CrossList
9793 \family default
9794 , are designed to make it easier for you to create lists of do's and don'ts
9795  or right and wrong by providing dedicated environments that use a tick
9796  or a cross as the label of the list.
9797  These lists are in fact dedicated variants of the 
9798 \family sans
9799 Itemize
9800 \family default
9801  environment.
9802  They do however require that you have the 
9803 \family typewriter
9804 psnfss
9805 \family default
9806  packages installed.
9807 \end_layout
9808
9809 \begin_layout Paragraph
9810 Figures and Tables
9811 \end_layout
9812
9813 \begin_layout Standard
9814
9815 \family sans
9816 Foil\SpecialChar TeX
9817
9818 \family default
9819  redefines the floating tables and figures so that they appear exactly where
9820  they are in the text rather than pushing them to the top of the page or
9821  to some user specified location.
9822  In fact if you change the float placement settings they are simply ignored.
9823 \end_layout
9824
9825 \begin_layout Paragraph
9826 Page Headers and Footers
9827 \begin_inset CommandInset label
9828 LatexCommand label
9829 name "sec:foilfoot"
9830
9831 \end_inset
9832
9833
9834 \end_layout
9835
9836 \begin_layout Standard
9837
9838 \family sans
9839 My
9840 \begin_inset space ~
9841 \end_inset
9842
9843 Logo
9844 \family default
9845  and 
9846 \family sans
9847 Restriction
9848 \family default
9849  are two commands used to control the left-footer text string.
9850  The first is meant to allow you to include a graphic logo on your foils
9851  and defaults to 
9852 \begin_inset Quotes eld
9853 \end_inset
9854
9855 -Typeset by 
9856 \family sans
9857 Foil\SpecialChar TeX
9858
9859 \family default
9860 -
9861 \begin_inset Quotes erd
9862 \end_inset
9863
9864 .
9865  While the second is meant to provide a classification for the audience,
9866  
9867 \emph on
9868 e.
9869 \begin_inset space \thinspace{}
9870 \end_inset
9871
9872 g.
9873 \emph default
9874
9875 \begin_inset space \space{}
9876 \end_inset
9877
9878 Confidential.
9879  It is empty by default.
9880 \end_layout
9881
9882 \begin_layout Standard
9883 The remaining page corners can be filled by 
9884 \family sans
9885 Right
9886 \begin_inset space ~
9887 \end_inset
9888
9889 Footer
9890 \family default
9891  (which defaults to page numbers), 
9892 \family sans
9893 Right
9894 \begin_inset space ~
9895 \end_inset
9896
9897 Header
9898 \family default
9899  (top right) and 
9900 \family sans
9901 Left
9902 \begin_inset space ~
9903 \end_inset
9904
9905 Header
9906 \family default
9907  (top left).
9908 \end_layout
9909
9910 \begin_layout Subsubsection
9911 Unsupported 
9912 \family sans
9913 Foil\SpecialChar TeX
9914
9915 \family default
9916  Goodies
9917 \begin_inset CommandInset label
9918 LatexCommand label
9919 name "sec:unsuppfoils"
9920
9921 \end_inset
9922
9923
9924 \end_layout
9925
9926 \begin_layout Standard
9927 All the commands mentioned below need to be set in a 
9928 \family sans
9929 \SpecialChar LaTeX
9930
9931 \family default
9932  environment or as 
9933 \family sans
9934 \SpecialChar TeX
9935
9936 \family default
9937  within another environment.
9938 \end_layout
9939
9940 \begin_layout Paragraph
9941 Lengths
9942 \end_layout
9943
9944 \begin_layout Standard
9945 All lengths are adjusted using the 
9946 \family typewriter
9947
9948 \backslash
9949 setlength{
9950 \family default
9951 \emph on
9952 lengthname
9953 \family typewriter
9954 \emph default
9955 }{
9956 \family default
9957 \emph on
9958 newlength
9959 \family typewriter
9960 \emph default
9961 }
9962 \family default
9963  command.
9964  Where 
9965 \emph on
9966 lengthname
9967 \emph default
9968  should be replaced by the name given to the length you want to change and
9969  
9970 \emph on
9971 newlength
9972 \emph default
9973  is the length value.
9974  All lengths should be specified in units of length such as inches (
9975 \family typewriter
9976 in
9977 \family default
9978 ), millimeters (
9979 \family typewriter
9980 mm
9981 \family default
9982 ) or points (
9983 \family typewriter
9984 pt
9985 \family default
9986 ) or relative to some document or font-based length such as 
9987 \family typewriter
9988
9989 \backslash
9990 textwidth
9991 \family default
9992 .
9993  
9994 \end_layout
9995
9996 \begin_layout Standard
9997 It's possible to change the spacing between a foilhead and the body of the
9998  foil by adjusting the length specified by 
9999 \family typewriter
10000
10001 \backslash
10002 foilheadskip
10003 \family default
10004 .
10005  For example, to make 
10006 \emph on
10007 all
10008 \emph default
10009  foilheads 0.5
10010 \begin_inset space \space{}
10011 \end_inset
10012
10013 in closer to their bodies put the following in the preamble: 
10014 \family typewriter
10015
10016 \backslash
10017 setlength{
10018 \backslash
10019 foilheadskip}{-0.5in}
10020 \end_layout
10021
10022 \begin_layout Standard
10023 The spacings around floats can be adjusted by setting these lengths:
10024 \end_layout
10025
10026 \begin_layout Labeling
10027 \labelwidthstring MMMMMMMMMMM
10028
10029 \family typewriter
10030
10031 \backslash
10032 abovefloatskip
10033 \family default
10034  Separation between the text and the top of the float
10035 \end_layout
10036
10037 \begin_layout Labeling
10038 \labelwidthstring MMMMMMMMMMM
10039
10040 \family typewriter
10041
10042 \backslash
10043 abovecaptionskip
10044 \family default
10045  Separation between the float and the caption
10046 \end_layout
10047
10048 \begin_layout Labeling
10049 \labelwidthstring MMMMMMMMMMM
10050
10051 \family typewriter
10052
10053 \backslash
10054 belowcaptionskip
10055 \family default
10056  Separation between the caption and the following text
10057 \end_layout
10058
10059 \begin_layout Labeling
10060 \labelwidthstring MMMMMMMMMMM
10061
10062 \family typewriter
10063
10064 \backslash
10065 captionwidth
10066 \family default
10067  You can make the captions narrower than the surrounding text by adjusting
10068  this length.
10069  Best done relative to 
10070 \family typewriter
10071
10072 \backslash
10073 textwidth
10074 \family default
10075 .
10076 \end_layout
10077
10078 \begin_layout Standard
10079 There are also several title page related lengths that you may find useful
10080  if you have a long title or several authors:
10081 \end_layout
10082
10083 \begin_layout Labeling
10084 \labelwidthstring MMMMMMMMMMM
10085
10086 \family typewriter
10087
10088 \backslash
10089 abovetitleskip
10090 \family default
10091  Separation from headers to 
10092 \family sans
10093 Title
10094 \end_layout
10095
10096 \begin_layout Labeling
10097 \labelwidthstring MMMMMMMMMMM
10098
10099 \family typewriter
10100
10101 \backslash
10102 titleauthorskip
10103 \family default
10104  between 
10105 \family sans
10106 Title
10107 \family default
10108  and 
10109 \family sans
10110 Author
10111 \family default
10112  environments
10113 \end_layout
10114
10115 \begin_layout Labeling
10116 \labelwidthstring MMMMMMMMMMM
10117
10118 \family typewriter
10119
10120 \backslash
10121 authorauthorskip
10122 \family default
10123  between multiple 
10124 \family sans
10125 Author
10126 \family default
10127  lines
10128 \end_layout
10129
10130 \begin_layout Labeling
10131 \labelwidthstring MMMMMMMMMMM
10132
10133 \family typewriter
10134
10135 \backslash
10136 authordateskip
10137 \family default
10138  between the 
10139 \family sans
10140 Author
10141 \family default
10142  and the 
10143 \family sans
10144 Date
10145 \end_layout
10146
10147 \begin_layout Labeling
10148 \labelwidthstring MMMMMMMMMMM
10149
10150 \family typewriter
10151
10152 \backslash
10153 dateabstractskip
10154 \family default
10155  between the 
10156 \family sans
10157 Date
10158 \family default
10159  and the 
10160 \family sans
10161 Abstract
10162 \end_layout
10163
10164 \begin_layout Standard
10165 The last length related command affects all the list environments.
10166  If you place 
10167 \family typewriter
10168
10169 \backslash
10170 zerolistvertdimens
10171 \family default
10172  
10173 \emph on
10174 inside
10175 \emph default
10176  a list environment then all the vertical spacing between the list items
10177  is removed.
10178  Note that this is a command not a length so it doesn't require 
10179 \family typewriter
10180
10181 \backslash
10182 setlength
10183 \family default
10184  like the stuff mentioned above.
10185 \end_layout
10186
10187 \begin_layout Paragraph
10188 Headers and Footers
10189 \end_layout
10190
10191 \begin_layout Standard
10192 The 
10193 \family typewriter
10194
10195 \backslash
10196 LogoOn
10197 \family default
10198  and 
10199 \family typewriter
10200
10201 \backslash
10202 LogoOff
10203 \family default
10204  commands control whether the logo in the 
10205 \family sans
10206 MyLogo
10207 \family default
10208  definition appear on a given page.
10209  If you put 
10210 \family typewriter
10211
10212 \backslash
10213 LogoOff
10214 \family default
10215  in the preamble then none of the foils will have the logo on them.
10216  If you don't want the logo on a particular page place the 
10217 \family typewriter
10218
10219 \backslash
10220 LogoOff
10221 \family default
10222  directly after the foilhead of that page and the 
10223 \family typewriter
10224
10225 \backslash
10226 LogoOn
10227 \family default
10228  directly after the next foilhead.
10229 \end_layout
10230
10231 \begin_layout Standard
10232 If you decide to use the 
10233 \family sans
10234 fancy
10235 \family default
10236  page style setting in the 
10237 \family sans
10238 Document
10239 \begin_inset space ~
10240 \end_inset
10241
10242 Layout
10243 \family default
10244  dialog you should probably add 
10245 \family typewriter
10246
10247 \backslash
10248 let
10249 \backslash
10250 headwidth
10251 \backslash
10252 textwidth
10253 \family default
10254  to your preamble so headers and footers on landscape pages are correctly
10255  placed when rotated.
10256  This is due to some clashes between the page layouts provided by the 
10257 \family sans
10258 fancyheadings
10259 \family default
10260  package and the 
10261 \family sans
10262 foils
10263 \family default
10264  class.
10265 \end_layout
10266
10267 \begin_layout Subsection
10268
10269 \change_inserted 564990737 1671459032
10270
10271 \lang american
10272 Powerdot
10273 \end_layout
10274
10275 \begin_layout Standard
10276
10277 \change_inserted 564990737 1671643165
10278
10279 \lang american
10280 The document class 
10281 \family sans
10282 presentation
10283 \begin_inset space \thinspace{}
10284 \end_inset
10285
10286 (powerdot)
10287 \family default
10288  uses the 
10289 \family typewriter
10290 powerdot.cls
10291 \family default
10292  document class for creating presentations.
10293  
10294 \family sans
10295 \lang british
10296 File\SpecialChar menuseparator
10297 Open Example\SpecialChar menuseparator
10298 Presentations\SpecialChar menuseparator
10299 Powerdot
10300 \family default
10301 \lang american
10302  offers guidance on its use.
10303  The documentation is available from 
10304 \begin_inset CommandInset href
10305 LatexCommand href
10306 name "CTAN"
10307 target "http://mirrors.ctan.org/macros/latex/contrib/powerdot/doc/powerdot.pdf"
10308 literal "false"
10309
10310 \end_inset
10311
10312 .
10313 \end_layout
10314
10315 \begin_layout Subsection
10316
10317 \change_inserted 564990737 1671459032
10318
10319 \lang american
10320 \begin_inset CommandInset label
10321 LatexCommand label
10322 name "subsec:Seminar"
10323
10324 \end_inset
10325
10326
10327 \family sans
10328 Seminar
10329 \end_layout
10330
10331 \begin_layout Standard
10332
10333 \change_inserted 564990737 1671643194
10334
10335 \lang american
10336 The document class 
10337 \family sans
10338 presentations
10339 \begin_inset space \thinspace{}
10340 \end_inset
10341
10342 (seminar)
10343 \family default
10344  uses the 
10345 \family typewriter
10346 seminar.cls
10347 \family default
10348  document class for creating presentations.
10349  
10350 \family sans
10351 \lang british
10352 File\SpecialChar menuseparator
10353 Open Example\SpecialChar menuseparator
10354 Presentations\SpecialChar menuseparator
10355 Seminar
10356 \family default
10357 \lang american
10358  offers guidance on its use.
10359  The documentation is available from 
10360 \begin_inset CommandInset href
10361 LatexCommand href
10362 name "CTAN"
10363 target "http://mirrors.ctan.org/macros/latex/contrib/seminar/doc/seminar-doc.pdf"
10364 literal "false"
10365
10366 \end_inset
10367
10368 .
10369 \end_layout
10370
10371 \begin_layout Subsection
10372 Slides [aka 
10373 \noun on
10374 Sli\SpecialChar TeX
10375
10376 \noun default
10377 ]
10378 \begin_inset CommandInset label
10379 LatexCommand label
10380 name "sec:slitex"
10381
10382 \end_inset
10383
10384
10385 \end_layout
10386
10387 \begin_layout Standard
10388 by 
10389 \noun on
10390 John Weiss
10391 \noun default
10392  
10393 \end_layout
10394
10395 \begin_layout Subsubsection
10396 Introduction
10397 \end_layout
10398
10399 \begin_layout Standard
10400 This section describes how to use \SpecialChar LyX
10401  to make slides for overhead projectors.
10402  There are two document classes that can do this: the default slides class
10403  and the 
10404 \family sans
10405 Foil\SpecialChar TeX
10406
10407 \family default
10408  slides class.
10409  This section documents the former.
10410 \end_layout
10411
10412 \begin_layout Standard
10413 I'm going to say this again, nice and clear, so that there's no misunderstanding
10414 :
10415 \end_layout
10416
10417 \begin_layout Standard
10418 \begin_inset VSpace bigskip
10419 \end_inset
10420
10421
10422 \end_layout
10423
10424 \begin_layout Standard
10425 \align center
10426
10427 \size large
10428 This section documents the class 
10429 \begin_inset Quotes eld
10430 \end_inset
10431
10432
10433 \family sans
10434 slides (default)
10435 \family default
10436
10437 \begin_inset Quotes erd
10438 \end_inset
10439
10440  
10441 \emph on
10442 only.
10443 \end_layout
10444
10445 \begin_layout Standard
10446 \begin_inset VSpace bigskip
10447 \end_inset
10448
10449
10450 \end_layout
10451
10452 \begin_layout Standard
10453 If you're looking for the documentation for 
10454 \begin_inset Quotes eld
10455 \end_inset
10456
10457
10458 \family sans
10459 slides (Foil\SpecialChar TeX
10460 )
10461 \family default
10462
10463 \begin_inset Quotes erd
10464 \end_inset
10465
10466 , check out section
10467 \begin_inset space ~
10468 \end_inset
10469
10470
10471 \begin_inset CommandInset ref
10472 LatexCommand ref
10473 reference "sec:foiltex"
10474
10475 \end_inset
10476
10477 .
10478  The 
10479 \family sans
10480 foils
10481 \family default
10482  class [
10483 \begin_inset Quotes eld
10484 \end_inset
10485
10486
10487 \family sans
10488 slides (Foil\SpecialChar TeX
10489 )
10490 \family default
10491
10492 \begin_inset Quotes erd
10493 \end_inset
10494
10495 ] is actually somewhat better than the default 
10496 \family sans
10497 slides
10498 \family default
10499  class,
10500 \begin_inset Foot
10501 status collapsed
10502
10503 \begin_layout Plain Layout
10504 \SpecialChar ldots
10505 or so I've been told repeatedly by its advocates.
10506  Having never used it, I have no idea if this claim is true or not.
10507 \end_layout
10508
10509 \end_inset
10510
10511  which this section documents.
10512 \end_layout
10513
10514 \begin_layout Standard
10515 This class is the \SpecialChar LaTeX2e
10516  improvement of the old 
10517 \noun on
10518 Sli\SpecialChar TeX
10519
10520 \noun default
10521  package.
10522  Every \SpecialChar LaTeX2e
10523  distribution includes this class [which I'll just refer to as 
10524 \begin_inset Quotes eld
10525 \end_inset
10526
10527
10528 \family sans
10529 slides
10530 \family default
10531
10532 \begin_inset Quotes erd
10533 \end_inset
10534
10535  from now on], so you're bound to have it.
10536  As I noted earlier, there are other classes, such as 
10537 \family sans
10538 foils
10539 \family default
10540 , which also produce slides for overhead projectors and do a better job
10541  at it.
10542  However, there are some things which 
10543 \family sans
10544 slides
10545 \family default
10546  can do which the others can't, such as generate overlays.
10547  Read on to learn more!
10548 \end_layout
10549
10550 \begin_layout Subsubsection
10551 Getting Started
10552 \begin_inset CommandInset label
10553 LatexCommand label
10554 name "sec:slidesetup"
10555
10556 \end_inset
10557
10558
10559 \end_layout
10560
10561 \begin_layout Standard
10562 Obviously, to use this document class, you need to select 
10563 \begin_inset Quotes eld
10564 \end_inset
10565
10566
10567 \family sans
10568 slides (default)
10569 \family default
10570
10571 \begin_inset Quotes erd
10572 \end_inset
10573
10574  from the class list in the 
10575 \family sans
10576 Document\SpecialChar menuseparator
10577 Settings
10578 \family default
10579  dialog.
10580  There are some other special things you should know about this class:
10581 \end_layout
10582
10583 \begin_layout Itemize
10584 Don't bother changing the options 
10585 \family sans
10586 Sides and Columns
10587 \family default
10588 .
10589  They're not supported by the 
10590 \family sans
10591 slides
10592 \family default
10593  class, anyways.
10594 \end_layout
10595
10596 \begin_layout Itemize
10597 The option 
10598 \family sans
10599 Page
10600 \begin_inset space ~
10601 \end_inset
10602
10603 style
10604 \family default
10605  behaves a bit differently for this class.
10606  The possible choices and what they do are as follows:
10607 \end_layout
10608
10609 \begin_deeper
10610 \begin_layout Description
10611
10612 \family sans
10613 plain
10614 \family default
10615  The final output contains page numbers in the lower right corner.
10616 \end_layout
10617
10618 \begin_layout Description
10619
10620 \family sans
10621 headings
10622 \family default
10623  Like 
10624 \family sans
10625 plain
10626 \family default
10627 , but also prints out any time markers you've put in.
10628  This is the default.
10629 \end_layout
10630
10631 \begin_layout Description
10632
10633 \family sans
10634 empty
10635 \family default
10636  The final output contains no page numbers, time markers, or alignment markers.
10637 \end_layout
10638
10639 \end_deeper
10640 \begin_layout Itemize
10641 The 
10642 \family sans
10643 slides
10644 \family default
10645  class has an extra option: 
10646 \family typewriter
10647 clock
10648 \family default
10649 .
10650  To use it, put 
10651 \begin_inset Quotes eld
10652 \end_inset
10653
10654
10655 \family typewriter
10656 clock
10657 \family default
10658
10659 \begin_inset Quotes erd
10660 \end_inset
10661
10662  in the extra class options.
10663 \end_layout
10664
10665 \begin_deeper
10666 \begin_layout Standard
10667 Using this options allows you to add time markers to 
10668 \family sans
10669 Note
10670 \family default
10671 s.
10672  See section
10673 \begin_inset space ~
10674 \end_inset
10675
10676
10677 \begin_inset CommandInset ref
10678 LatexCommand ref
10679 reference "sec:slideNote"
10680
10681 \end_inset
10682
10683  for more details.
10684 \end_layout
10685
10686 \end_deeper
10687 \begin_layout Standard
10688 You can also use the template file
10689 \change_deleted 564990737 1671617694
10690  
10691 \begin_inset Quotes eld
10692 \end_inset
10693
10694
10695 \family typewriter
10696 slides.lyx
10697 \family default
10698
10699 \begin_inset Quotes erd
10700 \end_inset
10701
10702
10703 \change_unchanged
10704  to automatically set up a document to use the 
10705 \family sans
10706 slides
10707 \family default
10708  class 
10709 \change_deleted 564990737 1671617699
10710 [
10711 \change_unchanged
10712 using 
10713 \family sans
10714 File\SpecialChar menuseparator
10715 New
10716 \begin_inset space ~
10717 \end_inset
10718
10719 from
10720 \begin_inset space ~
10721 \end_inset
10722
10723 Template
10724 \change_inserted 564990737 1671617723
10725 \SpecialChar menuseparator
10726 Presentations\SpecialChar menuseparator
10727 Slides
10728 \change_unchanged
10729
10730 \family default
10731  to open your new document
10732 \change_deleted 564990737 1671617728
10733 ]
10734 \change_unchanged
10735 .
10736  The template file also contains some examples of the special paragraph
10737  environments used by this class.
10738  I'll describe those next.
10739 \end_layout
10740
10741 \begin_layout Subsubsection
10742 Paragraph Environments
10743 \end_layout
10744
10745 \begin_layout Paragraph
10746 Supported Environments
10747 \end_layout
10748
10749 \begin_layout Standard
10750 The first thing you'll notice when you start up a new 
10751 \family sans
10752 slides
10753 \family default
10754  document is the font size and type: it's the equivalent of the size 
10755 \begin_inset Quotes eld
10756 \end_inset
10757
10758
10759 \family sans
10760 Largest
10761 \family default
10762
10763 \begin_inset Quotes erd
10764 \end_inset
10765
10766  in the 
10767 \family sans
10768 Sans
10769 \begin_inset space ~
10770 \end_inset
10771
10772 Serif
10773 \family default
10774  font.
10775  This is also what's used in the output.
10776  Think of this as a 
10777 \begin_inset Quotes eld
10778 \end_inset
10779
10780 visual cue
10781 \begin_inset Quotes erd
10782 \end_inset
10783
10784  to remind you that this is a slide.
10785  Your final slides will use a larger font; ergo, you'll have less space.
10786  Of course, the larger default screen font isn't WYSIWYG, only a reminder.
10787 \end_layout
10788
10789 \begin_layout Standard
10790 The next thing that becomes obvious is the changes to the paragraph environment
10791  pull-down box [at the far-left end of the toolbar].
10792  Most of the paragraph environments you're used to seeing are missing.
10793  There are also five new ones.
10794  That's because the 
10795 \family sans
10796 slides
10797 \family default
10798  class itself only supports certain paragraph environments:
10799 \end_layout
10800
10801 \begin_layout Itemize
10802
10803 \family sans
10804 Standard
10805 \end_layout
10806
10807 \begin_layout Itemize
10808
10809 \family sans
10810 Itemize
10811 \end_layout
10812
10813 \begin_layout Itemize
10814
10815 \family sans
10816 Enumerate
10817 \end_layout
10818
10819 \begin_layout Itemize
10820
10821 \family sans
10822 Description
10823 \end_layout
10824
10825 \begin_layout Itemize
10826
10827 \family sans
10828 List
10829 \end_layout
10830
10831 \begin_layout Itemize
10832
10833 \family sans
10834 Quotation
10835 \end_layout
10836
10837 \begin_layout Itemize
10838
10839 \family sans
10840 Quote
10841 \end_layout
10842
10843 \begin_layout Itemize
10844
10845 \family sans
10846 Verse
10847 \end_layout
10848
10849 \begin_layout Itemize
10850
10851 \family sans
10852 Caption
10853 \end_layout
10854
10855 \begin_layout Itemize
10856
10857 \family sans
10858 \SpecialChar LyX
10859 -Code
10860 \end_layout
10861
10862 \begin_layout Standard
10863 All of the other standard environments, including the section-heading environmen
10864 ts, aren't used in the 
10865 \family sans
10866 slides
10867 \family default
10868  class.
10869 \end_layout
10870
10871 \begin_layout Standard
10872 On the other hand, you'll notice the following new environments:
10873 \end_layout
10874
10875 \begin_layout Itemize
10876
10877 \family sans
10878 Slide
10879 \end_layout
10880
10881 \begin_layout Itemize
10882
10883 \family sans
10884 Overlay
10885 \end_layout
10886
10887 \begin_layout Itemize
10888
10889 \family sans
10890 Note
10891 \end_layout
10892
10893 \begin_layout Itemize
10894
10895 \family sans
10896 InvisibleText
10897 \end_layout
10898
10899 \begin_layout Itemize
10900
10901 \family sans
10902 VisibleText
10903 \end_layout
10904
10905 \begin_layout Standard
10906 These five are kind of quirky, due to a 
10907 \begin_inset Quotes eld
10908 \end_inset
10909
10910 feature
10911 \begin_inset Quotes erd
10912 \end_inset
10913
10914  in \SpecialChar LyX
10915 .
10916  You see, \SpecialChar LyX
10917  doesn't permit you to nest any other paragraph environment into
10918  an empty environment.
10919  Now, that's fine and dandy, but it means that you wouldn't be able to start
10920  a slide with anything except plain text.
10921  To deal with this, I've performed a little 
10922 \begin_inset Quotes eld
10923 \end_inset
10924
10925 \SpecialChar LaTeX
10926  magic.
10927 \begin_inset Quotes erd
10928 \end_inset
10929
10930  
10931 \end_layout
10932
10933 \begin_layout Paragraph
10934 Quirks of the New Environments
10935 \begin_inset CommandInset label
10936 LatexCommand label
10937 name "sec:slideQuirk"
10938
10939 \end_inset
10940
10941
10942 \end_layout
10943
10944 \begin_layout Standard
10945 All five of the new paragraph environments are somewhat quirky due to inherent
10946  limitiations in the current version of \SpecialChar LyX
10947 .
10948  As I just mentioned, \SpecialChar LyX
10949  forbids environments that begin with another environment.
10950  To get around this, the 
10951 \family sans
10952 Slide
10953 \family default
10954  environment isn't a paragraph environment as described in the 
10955 \emph on
10956 User's Guide
10957 \emph default
10958 .
10959  
10960 \end_layout
10961
10962 \begin_layout Standard
10963 You should consider 
10964 \family sans
10965 Slide
10966 \family default
10967
10968 \family sans
10969 Overlay
10970 \family default
10971 , and 
10972 \family sans
10973 Note
10974 \family default
10975  to be 
10976 \begin_inset Quotes eld
10977 \end_inset
10978
10979 pseudo-environments.
10980 \begin_inset Quotes erd
10981 \end_inset
10982
10983  They look like a section heading or a 
10984 \begin_inset Quotes eld
10985 \end_inset
10986
10987
10988 \family sans
10989 Caption
10990 \family default
10991 ,
10992 \begin_inset Quotes erd
10993 \end_inset
10994
10995  but really begin a [and, if necessary, end the previous] paragraph environment.
10996  Likewise, treat 
10997 \family sans
10998 InvisibleText
10999 \family default
11000  and 
11001 \family sans
11002 VisibleText
11003 \family default
11004  as 
11005 \begin_inset Quotes eld
11006 \end_inset
11007
11008 pseudo-commands.
11009 \begin_inset Quotes erd
11010 \end_inset
11011
11012  These two perform some action.
11013 \end_layout
11014
11015 \begin_layout Standard
11016 A common feature of all five environments, 
11017 \family sans
11018 Slide
11019 \family default
11020
11021 \family sans
11022 Overlay
11023 \family default
11024
11025 \family sans
11026 Note
11027 \family default
11028
11029 \family sans
11030 InvisibleText
11031 \family default
11032  and 
11033 \family sans
11034 VisibleText
11035 \family default
11036 , is a rather long-ish label.
11037  The text following this label — ordinarily the contents of the paragraph
11038  environment — is utterly irrelevant for 
11039 \family sans
11040 Slide
11041 \family default
11042
11043 \family sans
11044 Overlay
11045 \family default
11046
11047 \family sans
11048 Note
11049 \family default
11050
11051 \family sans
11052 InvisibleText
11053 \family default
11054  and 
11055 \family sans
11056 VisibleText
11057 \family default
11058 .
11059  \SpecialChar LyX
11060  completely ignores it.
11061  In fact, you can leave these five environments completely empty.
11062  
11063 \end_layout
11064
11065 \begin_layout Standard
11066 While you don't 
11067 \emph on
11068 have
11069 \emph default
11070  to put any text after the rather long-ish label, you might want to.
11071  This could be a short description of the contents of the 
11072 \family sans
11073 Slide
11074 \family default
11075 , for example.
11076  In that case, enter your descriptive comment and hit 
11077 \family sans
11078 Return
11079 \family default
11080  as you normally would.
11081 \end_layout
11082
11083 \begin_layout Standard
11084 If, on the other hand, you don't want to enter any descriptive text, you'll
11085  hit another \SpecialChar LyX
11086  quirk.
11087  \SpecialChar LyX
11088 , like nature, abhors a vacuum, and will not let you start a new paragraph
11089  environment until you put something in the old one.
11090  So, do this:
11091 \end_layout
11092
11093 \begin_layout Itemize
11094 Start entering the text that will 
11095 \emph on
11096 follow
11097 \emph default
11098  the new 
11099 \family sans
11100 Slide
11101 \family default
11102
11103 \family sans
11104 Overlay
11105 \family default
11106
11107 \family sans
11108 Note
11109 \family default
11110
11111 \family sans
11112 InvisibleText
11113 \family default
11114  or 
11115 \family sans
11116 VisibleText
11117 \family default
11118 .
11119  
11120 \end_layout
11121
11122 \begin_layout Itemize
11123 Now move to the beginning of that paragraph.
11124  
11125 \end_layout
11126
11127 \begin_layout Itemize
11128 Next, hit 
11129 \family sans
11130 Return
11131 \family default
11132 .
11133  
11134 \end_layout
11135
11136 \begin_layout Itemize
11137 Finally, change this new, empty paragraph to a 
11138 \family sans
11139 Slide
11140 \family default
11141
11142 \family sans
11143 Overlay
11144 \family default
11145
11146 \family sans
11147 Note
11148 \family default
11149
11150 \family sans
11151 InvisibleText
11152 \family default
11153  or 
11154 \family sans
11155 VisibleText
11156 \family default
11157 .
11158  
11159 \end_layout
11160
11161 \begin_layout Standard
11162 Some future version of \SpecialChar LyX
11163  will, hopefully, resolve this quirkiness\SpecialChar ldots
11164
11165 \end_layout
11166
11167 \begin_layout Subsubsection
11168 Making a Presentation with 
11169 \family sans
11170 Slide
11171 \family default
11172
11173 \family sans
11174 Overlay
11175 \family default
11176  and 
11177 \family sans
11178 Note
11179 \end_layout
11180
11181 \begin_layout Paragraph
11182 Using the 
11183 \family sans
11184 Slide
11185 \family default
11186  Environment
11187 \end_layout
11188
11189 \begin_layout Standard
11190 If you're expecting this section to teach you how to actually make a presentatio
11191 n, you'll be sorely disappointed.
11192  Naturally, I'll describe all of the ways the 
11193 \family sans
11194 slides
11195 \family default
11196  class can assist you in preparing the materials for a presentation.
11197  Filling in the contents, however, is up to you.
11198  [Then again, that 
11199 \emph on
11200 is
11201 \emph default
11202  the \SpecialChar LyX
11203  philosophy.]
11204 \end_layout
11205
11206 \begin_layout Standard
11207 Choosing the 
11208 \family sans
11209 Slide
11210 \family default
11211  environment [in the manner described in section
11212 \begin_inset space ~
11213 \end_inset
11214
11215
11216 \begin_inset CommandInset ref
11217 LatexCommand ref
11218 reference "sec:slideQuirk"
11219
11220 \end_inset
11221
11222 ] tells \SpecialChar LyX
11223  to begin a new slide [duh].
11224  The label for this environment/
11225 \begin_inset Quotes erd
11226 \end_inset
11227
11228 pseudo-command
11229 \begin_inset Quotes erd
11230 \end_inset
11231
11232  is an 
11233 \begin_inset Quotes eld
11234 \end_inset
11235
11236 ASCII line,
11237 \begin_inset Quotes erd
11238 \end_inset
11239
11240  in cool blue, followed by the label, 
11241 \begin_inset Quotes eld
11242 \end_inset
11243
11244 NewSlide:
11245 \begin_inset Quotes erd
11246 \end_inset
11247
11248 .
11249  Any text or paragraph environments that follow this one go on the new slide.
11250  It's that simple.
11251 \end_layout
11252
11253 \begin_layout Standard
11254 Slides are probably the only time you'll need to forcibly end pages in \SpecialChar LyX
11255
11256  (this can be specified in the 
11257 \family sans
11258 Paragraph Layout
11259 \family default
11260  dialog).
11261  In fact, you'll want to, once you finish entering the contents of one slide.
11262  If you've entered more text than can physically fit on a slide, the extra
11263  overflows onto a new slide.
11264  I don't recommend doing this, however, since the overflow slide won't have
11265  any page number on it.
11266  Furthermore, it may interfere with any 
11267 \family sans
11268 Overlay
11269 \family default
11270  you've made to accompany the oversized 
11271 \family sans
11272 Slide
11273 \family default
11274 .
11275 \end_layout
11276
11277 \begin_layout Standard
11278 The 
11279 \family sans
11280 Overlay
11281 \family default
11282  and 
11283 \family sans
11284 Note
11285 \family default
11286  environments work the same way as the 
11287 \family sans
11288 Slide
11289 \family default
11290  environment.
11291  They both create an 
11292 \begin_inset Quotes eld
11293 \end_inset
11294
11295 ASCII line
11296 \begin_inset Quotes erd
11297 \end_inset
11298
11299  followed by a label [
11300 \begin_inset Quotes eld
11301 \end_inset
11302
11303 NewOverlay:
11304 \begin_inset Quotes erd
11305 \end_inset
11306
11307  and 
11308 \begin_inset Quotes eld
11309 \end_inset
11310
11311 NewNote:
11312 \begin_inset Quotes erd
11313 \end_inset
11314
11315 , respectively].
11316  The color is a stunning magenta instead of blue, and the 
11317 \begin_inset Quotes eld
11318 \end_inset
11319
11320 ASCII line
11321 \begin_inset Quotes erd
11322 \end_inset
11323
11324  will look different, in style and in length.
11325  The label fonts of all three also differ from one another.
11326 \end_layout
11327
11328 \begin_layout Standard
11329 As with a 
11330 \family sans
11331 Slide
11332 \family default
11333 , if the contents of a 
11334 \family sans
11335 Note
11336 \family default
11337  or 
11338 \family sans
11339 Overlay
11340 \family default
11341  exceed the physical size of a slide or sheet of paper, the extra will overflow
11342  onto a new sheet.
11343  Again, you should avoid this.
11344  It defeats the whole purpose of 
11345 \family sans
11346 Note
11347 \family default
11348 s and 
11349 \family sans
11350 Overlay
11351 \family default
11352 s.
11353 \end_layout
11354
11355 \begin_layout Paragraph
11356 Using 
11357 \family sans
11358 Overlay
11359 \family default
11360  with 
11361 \family sans
11362 Slide
11363 \end_layout
11364
11365 \begin_layout Standard
11366 The idea behind an 
11367 \family sans
11368 Overlay
11369 \family default
11370  is a slide that sits atop another slide.
11371  Perhaps you wish to discuss a figure on the main 
11372 \family sans
11373 Slide
11374 \family default
11375  before displaying the text associated with it.
11376  One way to accomplish this is tape a flap of dark paper over the part of
11377  the 
11378 \family sans
11379 Slide
11380 \family default
11381  you want to display later.
11382  This method fails, however, if you wish to overlap one graph with another,
11383  for example.
11384  You would then have to fumble while speaking to align the two separate,
11385  overlapping 
11386 \family sans
11387 Slide
11388 \family default
11389 s to align the two graphs.
11390  The use of an 
11391 \family sans
11392 Overlay
11393 \family default
11394  environment in both cases makes life much easier.
11395 \end_layout
11396
11397 \begin_layout Standard
11398 Each 
11399 \family sans
11400 Overlay
11401 \family default
11402  receives the page number of its 
11403 \begin_inset Quotes eld
11404 \end_inset
11405
11406 parent
11407 \begin_inset Quotes erd
11408 \end_inset
11409
11410  
11411 \family sans
11412 Slide
11413 \family default
11414 , appended by 
11415 \begin_inset Quotes eld
11416 \end_inset
11417
11418
11419 \family typewriter
11420 -a
11421 \family default
11422
11423 \begin_inset Quotes erd
11424 \end_inset
11425
11426 .
11427 \begin_inset Foot
11428 status collapsed
11429
11430 \begin_layout Plain Layout
11431 Presumably, mutliple 
11432 \family sans
11433 Overlay
11434 \family default
11435 s would have 
11436 \begin_inset Quotes eld
11437 \end_inset
11438
11439
11440 \family typewriter
11441 -a
11442 \family default
11443
11444 \begin_inset Quotes erd
11445 \end_inset
11446
11447
11448 \begin_inset Quotes eld
11449 \end_inset
11450
11451
11452 \family typewriter
11453 -b
11454 \family default
11455
11456 \begin_inset Quotes erd
11457 \end_inset
11458
11459
11460 \begin_inset Quotes eld
11461 \end_inset
11462
11463
11464 \family typewriter
11465 -c
11466 \family default
11467
11468 \begin_inset Quotes erd
11469 \end_inset
11470
11471 , etc.
11472 \begin_inset space ~
11473 \end_inset
11474
11475 appended to the page number of the parent 
11476 \family sans
11477 Slide
11478 \family default
11479 .
11480  
11481 \end_layout
11482
11483 \end_inset
11484
11485  Clearly, you want the contents of both the 
11486 \family sans
11487 Slide
11488 \family default
11489  and the 
11490 \family sans
11491 Overlay
11492 \family default
11493  to each fit on a single physical slide! You should probably consider an
11494  
11495 \family sans
11496 Overlay
11497 \family default
11498  as 
11499 \begin_inset Quotes eld
11500 \end_inset
11501
11502 part of
11503 \begin_inset Quotes erd
11504 \end_inset
11505
11506  a 
11507 \family sans
11508 Slide
11509 \family default
11510 .
11511  Indeed, the \SpecialChar LyX
11512  
11513 \family sans
11514 slides
11515 \family default
11516  class provides a visual cue for this: the label at the start of an 
11517 \family sans
11518 Overlay
11519 \family default
11520  is shorter than that at the start of a 
11521 \family sans
11522 Slide
11523 \family default
11524 .
11525  Lastly, when you generate printable output, you'll find alignment markers
11526  in all four corners of both the 
11527 \family sans
11528 Overlay
11529 \family default
11530  page and its parent 
11531 \family sans
11532 Slide
11533 \family default
11534 .
11535  These will assist you in lining up the two physical slides.
11536 \end_layout
11537
11538 \begin_layout Standard
11539 The major problem in overlaying two slides is aligning the contents of the
11540  two transparencies.
11541  How much space should you leave for that graph on the second slide? Worse
11542  still, what if you want a graph and a sentence on second slide, but there
11543  is text on the main transparency that goes in between them? You could try
11544  and insert vertical space of the right size.
11545  The better way is to use 
11546 \family sans
11547 InvisibleText
11548 \family default
11549  and 
11550 \family sans
11551 VisibleText
11552 \family default
11553 .
11554 \end_layout
11555
11556 \begin_layout Standard
11557 As their names imply, 
11558 \family sans
11559 InvisibleText
11560 \family default
11561  and 
11562 \family sans
11563 VisibleText
11564 \family default
11565  are two command-like paragraph environments that make all subsequent text
11566  invisible and visible, respectively.
11567  Note from section
11568 \begin_inset space ~
11569 \end_inset
11570
11571
11572 \begin_inset CommandInset ref
11573 LatexCommand ref
11574 reference "sec:slideQuirk"
11575
11576 \end_inset
11577
11578  that you don't place anything 
11579 \emph on
11580 into
11581 \emph default
11582  these two environments, however.
11583  When you create an 
11584 \family sans
11585 InvisibleText
11586 \family default
11587 , it inserts a centered, sky-blue label into the page reading 
11588 \begin_inset Quotes eld
11589 \end_inset
11590
11591 <Invisible Text Follows>
11592 \begin_inset Quotes erd
11593 \end_inset
11594
11595 .
11596  For paragraphs following this label, the parts of the 
11597 \family sans
11598 Slide
11599 \family default
11600  [or 
11601 \family sans
11602 Overlay
11603 \family default
11604 ; it doesn't matter which] where they would be contain instead blank space.
11605  
11606 \end_layout
11607
11608 \begin_layout Standard
11609 For 
11610 \family sans
11611 VisibleText
11612 \family default
11613 , the corresponding centered label is 
11614 \begin_inset Quotes eld
11615 \end_inset
11616
11617 <Visible Text Follows>
11618 \begin_inset Quotes erd
11619 \end_inset
11620
11621  in blazing green.
11622  Paragraphs following this label behave normally.
11623  Note that the beginning of a new 
11624 \family sans
11625 Slide
11626 \family default
11627
11628 \family sans
11629 Overlay
11630 \family default
11631 , or 
11632 \family sans
11633 Note
11634 \family default
11635  automatically shuts off an 
11636 \family sans
11637 InvisibleText
11638 \family default
11639 .
11640  It's therefore not necessary to use 
11641 \family sans
11642 VisibleText
11643 \family default
11644  at the end of a 
11645 \family sans
11646 Slide
11647 \family default
11648 .
11649 \end_layout
11650
11651 \begin_layout Standard
11652 By now, it should be obvious how to create overlay transparencies using
11653  the proper combination of 
11654 \family sans
11655 InvisibleText
11656 \family default
11657  and 
11658 \family sans
11659 VisibleText
11660 \family default
11661  on a 
11662 \family sans
11663 Slide
11664 \family default
11665  and 
11666 \family sans
11667 Overlay
11668 \family default
11669 :
11670 \end_layout
11671
11672 \begin_layout Enumerate
11673 Create a 
11674 \family sans
11675 Slide
11676 \family default
11677 , including everything that will appear on it, whether on the main slide
11678  or on the 
11679 \family sans
11680 Overlay
11681 \family default
11682 .
11683 \end_layout
11684
11685 \begin_layout Enumerate
11686 Before each figure or paragraph that will appear only on the 
11687 \family sans
11688 Overlay
11689 \family default
11690 , insert an 
11691 \family sans
11692 InvisibleText
11693 \family default
11694  environment.
11695  If necessary, insert a 
11696 \family sans
11697 VisibleText
11698 \family default
11699  environment after the 
11700 \family sans
11701 Overlay
11702 \family default
11703 -only text.
11704 \end_layout
11705
11706 \begin_layout Enumerate
11707 Start an 
11708 \family sans
11709 Overlay
11710 \family default
11711  immediately following the 
11712 \family sans
11713 Slide
11714 \family default
11715 .
11716 \end_layout
11717
11718 \begin_layout Enumerate
11719 Copy the contents of this 
11720 \family sans
11721 Slide
11722 \family default
11723  into the 
11724 \family sans
11725 Overlay
11726 \family default
11727 .
11728 \end_layout
11729
11730 \begin_layout Enumerate
11731 Within the 
11732 \family sans
11733 Overlay
11734 \family default
11735 , change all of the 
11736 \family sans
11737 InvisibleText
11738 \family default
11739  lines to 
11740 \family sans
11741 VisibleText
11742 \family default
11743  and vice-versa.
11744 \end_layout
11745
11746 \begin_layout Standard
11747 That's it.
11748  You've just made an 
11749 \family sans
11750 Overlay
11751 \family default
11752 .
11753 \end_layout
11754
11755 \begin_layout Standard
11756 There's one problem with the way I've designed the \SpecialChar LyX
11757  
11758 \family sans
11759 slides
11760 \family default
11761  class: you can't make text in the middle of a paragraph invisible, nor
11762  make text in the middle of an invisible paragraph visible again.
11763  To accomplish this feat, you'll need to use some inlined \SpecialChar LaTeX
11764  codes.
11765 \begin_inset Foot
11766 status collapsed
11767
11768 \begin_layout Plain Layout
11769 The commands of interest are: 
11770 \end_layout
11771
11772 \begin_layout Itemize
11773
11774 \family typewriter
11775 {
11776 \backslash
11777 invisible \SpecialChar ldots
11778  }
11779 \end_layout
11780
11781 \begin_layout Itemize
11782
11783 \family typewriter
11784 {
11785 \backslash
11786 visible \SpecialChar ldots
11787  }
11788 \end_layout
11789
11790 \begin_layout Plain Layout
11791 \SpecialChar ldots
11792 and need to be marked as \SpecialChar TeX
11793 .
11794  The text whose 
11795 \begin_inset Quotes eld
11796 \end_inset
11797
11798 visibility
11799 \begin_inset Quotes erd
11800 \end_inset
11801
11802  you wish to change goes in between the brackets [and after the 
11803 \family typewriter
11804
11805 \backslash
11806 invisible
11807 \family default
11808  or 
11809 \family typewriter
11810
11811 \backslash
11812 visible
11813 \family default
11814  command].
11815  If you don't know how to mark text as \SpecialChar TeX
11816 , see the appropriate section of
11817  the 
11818 \emph on
11819 User's Guide
11820 \emph default
11821 .
11822 \end_layout
11823
11824 \end_inset
11825
11826
11827 \end_layout
11828
11829 \begin_layout Paragraph
11830 Using 
11831 \family sans
11832 Note
11833 \family default
11834  with 
11835 \family sans
11836 Slide
11837 \family default
11838
11839 \begin_inset CommandInset label
11840 LatexCommand label
11841 name "sec:slideNote"
11842
11843 \end_inset
11844
11845
11846 \end_layout
11847
11848 \begin_layout Standard
11849 Like an 
11850 \family sans
11851 Overlay
11852 \family default
11853 , a 
11854 \family sans
11855 Note
11856 \family default
11857  is associated with a 
11858 \begin_inset Quotes eld
11859 \end_inset
11860
11861 parent
11862 \begin_inset Quotes erd
11863 \end_inset
11864
11865  
11866 \family sans
11867 Slide
11868 \family default
11869 .
11870  Here, too, the \SpecialChar LyX
11871  
11872 \family sans
11873 slides
11874 \family default
11875  class provides visual cues.
11876  The label for a 
11877 \family sans
11878 Note
11879 \family default
11880  is shorter than that of a 
11881 \family sans
11882 Slide
11883 \family default
11884  [yet longer than that of an 
11885 \family sans
11886 Overlay
11887 \family default
11888 ] and, like the label of an 
11889 \family sans
11890 Overlay
11891 \family default
11892  is shockingly magenta.
11893  Additionally, the printed 
11894 \family sans
11895 Note
11896 \family default
11897  has the page number of its 
11898 \begin_inset Quotes eld
11899 \end_inset
11900
11901 parent
11902 \begin_inset Quotes erd
11903 \end_inset
11904
11905  
11906 \family sans
11907 Slide
11908 \family default
11909 , appended by 
11910 \begin_inset Quotes eld
11911 \end_inset
11912
11913
11914 \family typewriter
11915 -
11916 \family default
11917 1
11918 \begin_inset Quotes erd
11919 \end_inset
11920
11921
11922 \begin_inset Quotes eld
11923 \end_inset
11924
11925
11926 \family typewriter
11927 -
11928 \family default
11929 2
11930 \begin_inset Quotes erd
11931 \end_inset
11932
11933
11934 \begin_inset Quotes eld
11935 \end_inset
11936
11937
11938 \family typewriter
11939 -
11940 \family default
11941 3
11942 \begin_inset Quotes erd
11943 \end_inset
11944
11945 , etc.
11946  You can have multiple 
11947 \family sans
11948 Note
11949 \family default
11950 s associated with a single 
11951 \family sans
11952 Slide
11953 \family default
11954 , and, as with 
11955 \family sans
11956 Slide
11957 \family default
11958  and 
11959 \family sans
11960 Overlay
11961 \family default
11962 , you'll probably want to break up long 
11963 \family sans
11964 Note
11965 \family default
11966 s so that they fit on a single sheet of paper.
11967 \end_layout
11968
11969 \begin_layout Standard
11970 The purpose of a 
11971 \family sans
11972 Note
11973 \family default
11974  is obvious: it contains anything additional you might want to say about
11975  a 
11976 \family sans
11977 Slide
11978 \family default
11979 .
11980  It could also be used as a sheet of reminders for a particular 
11981 \family sans
11982 Slide
11983 \family default
11984 .
11985  In the case of the latter, you might want to make use of time markers.
11986  Currently, the \SpecialChar LyX
11987  
11988 \family sans
11989 slides
11990 \family default
11991  class has no 
11992 \begin_inset Quotes eld
11993 \end_inset
11994
11995 native
11996 \begin_inset Quotes erd
11997 \end_inset
11998
11999  support for time markers, a 
12000 \noun on
12001 Sli\SpecialChar TeX
12002
12003 \noun default
12004  feature.
12005  So, you'll have to resort to using the \SpecialChar LaTeX
12006  codes.
12007 \end_layout
12008
12009 \begin_layout Standard
12010 To use time markers, you'll need to specify the extra class option 
12011 \begin_inset Quotes eld
12012 \end_inset
12013
12014
12015 \family typewriter
12016 clock
12017 \family default
12018
12019 \begin_inset Quotes erd
12020 \end_inset
12021
12022  [see section
12023 \begin_inset space ~
12024 \end_inset
12025
12026
12027 \begin_inset CommandInset ref
12028 LatexCommand ref
12029 reference "sec:slidesetup"
12030
12031 \end_inset
12032
12033 ].
12034  This option turns on timing marks, which will appear in the lower-left-hand
12035  corner of every 
12036 \family sans
12037 Note
12038 \family default
12039  you generate.
12040  To set what appears in the time marker, you use the \SpecialChar LaTeX
12041  commands 
12042 \begin_inset Quotes eld
12043 \end_inset
12044
12045
12046 \family typewriter
12047
12048 \backslash
12049 settime{}
12050 \family default
12051
12052 \begin_inset Quotes erd
12053 \end_inset
12054
12055  and 
12056 \begin_inset Quotes eld
12057 \end_inset
12058
12059
12060 \family typewriter
12061
12062 \backslash
12063 addtime{}
12064 \family default
12065
12066 \begin_inset Quotes erd
12067 \end_inset
12068
12069 .
12070  The arguments of both commands are time measured in seconds.
12071  
12072 \begin_inset Quotes eld
12073 \end_inset
12074
12075
12076 \family typewriter
12077
12078 \backslash
12079 settime{}
12080 \family default
12081
12082 \begin_inset Quotes erd
12083 \end_inset
12084
12085  sets the time marker to a given time.
12086  
12087 \begin_inset Quotes eld
12088 \end_inset
12089
12090
12091 \family typewriter
12092
12093 \backslash
12094 addtime{}
12095 \family default
12096
12097 \begin_inset Quotes erd
12098 \end_inset
12099
12100  increments the time marker by the specified amount.
12101  Using time markers and 
12102 \family sans
12103 Note
12104 \family default
12105 s in this fashion, you can remind yourself how much time to spend on a particula
12106
12107 \family sans
12108 Slide
12109 \family default
12110 .
12111 \end_layout
12112
12113 \begin_layout Standard
12114 There's one last feature to describe.
12115  Clearly, you'd like to print out all of your 
12116 \family sans
12117 Slide
12118 \family default
12119 s and 
12120 \family sans
12121 Overlay
12122 \family default
12123 s on transparencies while printing all of your 
12124 \family sans
12125 Note
12126 \family default
12127 s on plain paper.
12128  However, a 
12129 \family sans
12130 Note
12131 \family default
12132  
12133 \emph on
12134 must
12135 \emph default
12136  follow the 
12137 \family sans
12138 Slide
12139 \family default
12140  with which it is associated.
12141  What's a person to do?
12142 \end_layout
12143
12144 \begin_layout Standard
12145 Luckily, there are two \SpecialChar LaTeX
12146  commands that allow you to select what to print
12147  out.
12148  Both must be placed into the preamble of your document.
12149  The command 
12150 \begin_inset Quotes eld
12151 \end_inset
12152
12153
12154 \family typewriter
12155
12156 \backslash
12157 onlyslides{
12158 \backslash
12159 slides}
12160 \family default
12161
12162 \begin_inset Quotes erd
12163 \end_inset
12164
12165  will cause the output to contain only the 
12166 \family sans
12167 Slide
12168 \family default
12169 s and 
12170 \family sans
12171 Overlay
12172 \family default
12173 s.
12174  Correspondingly, the command 
12175 \begin_inset Quotes eld
12176 \end_inset
12177
12178
12179 \family typewriter
12180
12181 \backslash
12182 onlynotes{
12183 \backslash
12184 notes}
12185 \family default
12186
12187 \begin_inset Quotes erd
12188 \end_inset
12189
12190  prevents the output of anything but 
12191 \family sans
12192 Note
12193 \family default
12194 s.
12195  I'd advise placing both commands in the preamble and initially comment
12196  both out.
12197  You can then preview your entire presentation as you write.
12198  When you're done writing, you can then uncomment one of the two to select
12199  what you want to print.
12200  I like to uncomment 
12201 \begin_inset Quotes eld
12202 \end_inset
12203
12204
12205 \family typewriter
12206
12207 \backslash
12208 onlyslides{
12209 \backslash
12210 slides}
12211 \family default
12212
12213 \begin_inset Quotes erd
12214 \end_inset
12215
12216  , print to a file with 
12217 \begin_inset Quotes eld
12218 \end_inset
12219
12220
12221 \family typewriter
12222 -slides
12223 \family default
12224
12225 \begin_inset Quotes erd
12226 \end_inset
12227
12228  in its name, comment it back out, then uncomment 
12229 \begin_inset Quotes eld
12230 \end_inset
12231
12232
12233 \family typewriter
12234
12235 \backslash
12236 onlynotes{
12237 \backslash
12238 notes}
12239 \family default
12240
12241 \begin_inset Quotes erd
12242 \end_inset
12243
12244  and print to a 
12245 \begin_inset Quotes eld
12246 \end_inset
12247
12248
12249 \family typewriter
12250 *-notes.ps
12251 \family default
12252
12253 \begin_inset Quotes erd
12254 \end_inset
12255
12256  file.
12257  I can then send either file to a printer, loading transparencies or plain
12258  paper as appropriate.
12259 \end_layout
12260
12261 \begin_layout Standard
12262 You can also provide other arguments to the 
12263 \begin_inset Quotes eld
12264 \end_inset
12265
12266
12267 \family typewriter
12268
12269 \backslash
12270 onlyslides{}
12271 \family default
12272
12273 \begin_inset Quotes erd
12274 \end_inset
12275
12276  and 
12277 \begin_inset Quotes eld
12278 \end_inset
12279
12280
12281 \family typewriter
12282
12283 \backslash
12284 onlynotes{}
12285 \family default
12286
12287 \begin_inset Quotes erd
12288 \end_inset
12289
12290  commands.
12291  See a good \SpecialChar LaTeX
12292  book for details.
12293 \end_layout
12294
12295 \begin_layout Subsubsection
12296 The 
12297 \family sans
12298 slides
12299 \family default
12300  Class Template File
12301 \end_layout
12302
12303 \begin_layout Standard
12304 I have also provided a template file
12305 \change_deleted 564990737 1671617750
12306
12307 \begin_inset Quotes eld
12308 \end_inset
12309
12310
12311 \family typewriter
12312 slides.lyx
12313 \family default
12314
12315 \begin_inset Quotes erd
12316 \end_inset
12317
12318 ,
12319 \change_unchanged
12320  with the 
12321 \family sans
12322 slides
12323 \family default
12324  class.
12325  To use it, begin your new presentation with 
12326 \family sans
12327 File\SpecialChar menuseparator
12328 New
12329 \begin_inset space ~
12330 \end_inset
12331
12332 from
12333 \begin_inset space ~
12334 \end_inset
12335
12336 Template
12337 \change_inserted 564990737 1671616988
12338 \SpecialChar menuseparator
12339 Presentations\SpecialChar menuseparator
12340 Slides
12341 \change_unchanged
12342
12343 \family default
12344 .
12345  Your new \SpecialChar LyX
12346  presentation file will contain an example 
12347 \family sans
12348 Slide
12349 \family default
12350  – 
12351 \family sans
12352 Overlay
12353 \family default
12354  – 
12355 \family sans
12356 Note
12357 \family default
12358  triplet.
12359  The 
12360 \family sans
12361 Slide
12362 \family default
12363  and 
12364 \family sans
12365 Overlay
12366 \family default
12367  additionally contain an example of the use of 
12368 \family sans
12369 InvisibleText
12370 \family default
12371  and 
12372 \family sans
12373 VisibleText
12374 \family default
12375 .
12376  Lastly, the preamble will contain:
12377 \end_layout
12378
12379 \begin_layout LyX-Code
12380 % Uncomment to print out only slides and overlays
12381 \end_layout
12382
12383 \begin_layout LyX-Code
12384 %
12385 \end_layout
12386
12387 \begin_layout LyX-Code
12388 %
12389 \backslash
12390 onlyslides{
12391 \backslash
12392 slides}
12393 \begin_inset Newline newline
12394 \end_inset
12395
12396  
12397 \end_layout
12398
12399 \begin_layout LyX-Code
12400 % Uncomment to print out only notes
12401 \end_layout
12402
12403 \begin_layout LyX-Code
12404 %
12405 \end_layout
12406
12407 \begin_layout LyX-Code
12408 %
12409 \backslash
12410 onlynotes{
12411 \backslash
12412 notes}
12413 \end_layout
12414
12415 \begin_layout Standard
12416 One final thing: I created this class to support the \SpecialChar LaTeX2e
12417  
12418 \begin_inset Quotes eld
12419 \end_inset
12420
12421
12422 \noun on
12423 Sli\SpecialChar TeX
12424
12425 \noun default
12426  emulation
12427 \begin_inset Quotes erd
12428 \end_inset
12429
12430  class, one of the built-in \SpecialChar LaTeX2e
12431  classes.
12432  Neither I nor the rest of the \SpecialChar LyX
12433  Team endorse or oppose the use of this built-in
12434  slide class.
12435  It's here if you want it or need it.
12436  There exist other \SpecialChar LaTeX2e
12437  classes for creating presentations, such as the 
12438 \family sans
12439 Foils
12440 \family default
12441  class [see section
12442 \begin_inset space ~
12443 \end_inset
12444
12445
12446 \begin_inset CommandInset ref
12447 LatexCommand ref
12448 reference "sec:foiltex"
12449
12450 \end_inset
12451
12452 ] or the 
12453 \begin_inset Quotes eld
12454 \end_inset
12455
12456
12457 \family typewriter
12458 seminar
12459 \family default
12460
12461 \begin_inset Quotes erd
12462 \end_inset
12463
12464  package [present on some \SpecialChar TeX
12465  distributions].
12466  The latter is not yet supported under \SpecialChar LyX
12467 .
12468 \begin_inset Foot
12469 status collapsed
12470
12471 \begin_layout Plain Layout
12472 Perhaps you can take on the task\SpecialChar ldots
12473
12474 \end_layout
12475
12476 \end_inset
12477
12478  I know nothing about these other classes.
12479  Try them out to see what sort of alternative they provide.
12480 \end_layout
12481
12482 \begin_layout Section
12483
12484 \change_inserted 564990737 1670439661
12485 Reports
12486 \end_layout
12487
12488 \begin_layout Subsection
12489
12490 \change_inserted 564990737 1670439661
12491 report
12492 \end_layout
12493
12494 \begin_layout Standard
12495
12496 \change_inserted 564990737 1670439661
12497 The document class 
12498 \family sans
12499 report
12500 \family default
12501  provides the 
12502 \family sans
12503 report.cls
12504 \family default
12505  document class for preparing reports.
12506  Like the 
12507 \family sans
12508 book
12509 \family default
12510  document class, this provides parts, chapters and sections but does not
12511  provide the paragraph styles needed for a book; like the 
12512 \family sans
12513 article
12514 \family default
12515  document class, it provides the abstract paragraph style.
12516  In two-sided mode, it does not start a new chapter on the right hand page.
12517 \end_layout
12518
12519 \begin_layout Standard
12520
12521 \change_inserted 564990737 1670439674
12522 The remaining 
12523 \family sans
12524 report
12525 \family default
12526  document classes are described in the Collections (section
12527 \begin_inset space ~
12528 \end_inset
12529
12530
12531 \begin_inset CommandInset ref
12532 LatexCommand ref
12533 reference "sec:Collections"
12534
12535 \end_inset
12536
12537 ).
12538 \end_layout
12539
12540 \begin_layout Section
12541
12542 \change_inserted 564990737 1670439674
12543 Scripts (drama)
12544 \end_layout
12545
12546 \begin_layout Subsection
12547 Broadway
12548 \end_layout
12549
12550 \begin_layout Standard
12551 by 
12552 \shape smallcaps
12553 Garst Reese
12554 \end_layout
12555
12556 \begin_layout Subsubsection
12557 Introduction
12558 \end_layout
12559
12560 \begin_layout Standard
12561 Broadway is for writing plays.
12562  The format is more decorative than Hollywood, and much less standardized.
12563  This format should be suitable for workshops.
12564 \end_layout
12565
12566 \begin_layout Subsubsection
12567 Special problems
12568 \end_layout
12569
12570 \begin_layout Standard
12571 The same as in Hollywood.
12572 \end_layout
12573
12574 \begin_layout Subsubsection
12575 Special features
12576 \end_layout
12577
12578 \begin_layout Standard
12579 Insert the 
12580 \family sans
12581 Speaker
12582 \family default
12583  names as labels then cross-reference the label to insert the name.
12584  The cross-reference dialog will show the current cast of characters.
12585 \end_layout
12586
12587 \begin_layout Subsubsection
12588 Paper size and Margins
12589 \end_layout
12590
12591 \begin_layout Standard
12592 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12593 \end_layout
12594
12595 \begin_layout Subsubsection
12596 Environments
12597 \end_layout
12598
12599 \begin_layout Standard
12600 The following environments are available.
12601  You can use broadway.bind to get the bind keys shown at the right.
12602 \end_layout
12603
12604 \begin_layout Itemize
12605
12606 \family sans
12607 Standard
12608 \begin_inset Newline newline
12609 \end_inset
12610
12611
12612 \family default
12613 You should not have to use this, but it is here for anything that does not
12614  fit otherwise.
12615 \end_layout
12616
12617 \begin_layout Itemize
12618
12619 \family sans
12620 Narrative
12621 \begin_inset space \hfill{}
12622 \end_inset
12623
12624 M-z n
12625 \begin_inset Newline newline
12626 \end_inset
12627
12628
12629 \family default
12630 Used to describe stage setting and the action.
12631  First use of speaker names in all CAPs.
12632 \end_layout
12633
12634 \begin_layout Itemize
12635
12636 \family sans
12637 ACT
12638 \begin_inset space \hfill{}
12639 \end_inset
12640
12641 M-z a
12642 \begin_inset Newline newline
12643 \end_inset
12644
12645
12646 \family default
12647 Automatically numbered.
12648  On screen it will be arabic, but will print as Roman.
12649 \end_layout
12650
12651 \begin_layout Itemize
12652
12653 \family sans
12654 ACT*
12655 \begin_inset space \hfill{}
12656 \end_inset
12657
12658 M-z S at
12659 \begin_inset Newline newline
12660 \end_inset
12661
12662
12663 \family default
12664 Subtitle for 
12665 \family sans
12666 ACT.
12667
12668 \family default
12669  It is just centered text.
12670 \end_layout
12671
12672 \begin_layout Itemize
12673
12674 \family sans
12675 SCENE
12676 \begin_inset space \hfill{}
12677 \end_inset
12678
12679 M-z S-S
12680 \begin_inset Newline newline
12681 \end_inset
12682
12683
12684 \family default
12685 Not automatically numbered.
12686  You supply the number.
12687  This is because I couldn't figure out how.
12688 \end_layout
12689
12690 \begin_layout Itemize
12691
12692 \family sans
12693 AT_RISE:
12694 \begin_inset space \hfill{}
12695 \end_inset
12696
12697 M-z S-R
12698 \begin_inset Newline newline
12699 \end_inset
12700
12701
12702 \family default
12703 A special case of Narrative to describe the setting and action as the curtain
12704  rises.
12705 \end_layout
12706
12707 \begin_layout Itemize
12708
12709 \family sans
12710 Speaker
12711 \begin_inset space \hfill{}
12712 \end_inset
12713
12714 M-z s
12715 \begin_inset Newline newline
12716 \end_inset
12717
12718
12719 \family default
12720 The speaker's (actor's) title, centered in all CAPS.
12721 \end_layout
12722
12723 \begin_layout Itemize
12724
12725 \family sans
12726 Parenthetical
12727 \begin_inset space \hfill{}
12728 \end_inset
12729
12730 M-z p
12731 \begin_inset Newline newline
12732 \end_inset
12733
12734
12735 \family default
12736 Instructions to the speaker.
12737  The parentheses are automatically inserted.
12738  The ( will appear on screen, but both will be in the printed play.
12739  This environment is only used within 
12740 \family sans
12741 Dialogue
12742 \family default
12743 .
12744 \end_layout
12745
12746 \begin_layout Itemize
12747
12748 \family sans
12749 Dialogue
12750 \begin_inset space \hfill{}
12751 \end_inset
12752
12753 M-z d
12754 \begin_inset Newline newline
12755 \end_inset
12756
12757
12758 \family default
12759 What the Speaker says.
12760 \end_layout
12761
12762 \begin_layout Itemize
12763
12764 \family sans
12765 CURTAIN
12766 \begin_inset space \hfill{}
12767 \end_inset
12768
12769 M-z S-C
12770 \begin_inset Newline newline
12771 \end_inset
12772
12773
12774 \family default
12775 The curtain comes down.
12776 \end_layout
12777
12778 \begin_layout Itemize
12779
12780 \family sans
12781 Title
12782 \begin_inset space \hfill{}
12783 \end_inset
12784
12785 M-z S-T
12786 \end_layout
12787
12788 \begin_layout Itemize
12789
12790 \family sans
12791 Author
12792 \begin_inset space \hfill{}
12793 \end_inset
12794
12795 M-z S-A
12796 \end_layout
12797
12798 \begin_layout Itemize
12799
12800 \family sans
12801 Right_Address
12802 \begin_inset space \hfill{}
12803 \end_inset
12804
12805 M-z r
12806 \end_layout
12807
12808 \begin_layout Standard
12809 Hello there.
12810 \end_layout
12811
12812 \begin_layout Subsection
12813 Hollywood (Hollywood spec scripts)
12814 \end_layout
12815
12816 \begin_layout Standard
12817 by 
12818 \shape smallcaps
12819 Garst Reese
12820 \end_layout
12821
12822 \begin_layout Subsubsection
12823 Introduction
12824 \end_layout
12825
12826 \begin_layout Standard
12827 Getting the format of a Hollywood script right is a 
12828 \begin_inset Quotes eld
12829 \end_inset
12830
12831 rite of passage.
12832 \begin_inset Quotes erd
12833 \end_inset
12834
12835  It is designed to make the readers focus on content and to be easy and
12836  familiar for the actors to read.
12837  Each page of a script should be one minute of film.
12838  Nothing goes in a script that you cannot see or hear on screen.
12839  The courier 12 pt font should be used throughout.
12840  No italics.
12841 \end_layout
12842
12843 \begin_layout Subsubsection
12844 Special problems
12845 \end_layout
12846
12847 \begin_layout Standard
12848 Speakers' lines should NEVER break in mid-sentence.
12849  If a speaker's lines continue over a page break, repeat the 
12850 \family sans
12851 Speaker
12852 \family default
12853  title followed by (Cont'd).
12854 \end_layout
12855
12856 \begin_layout Subsubsection
12857 Special features
12858 \end_layout
12859
12860 \begin_layout Standard
12861 Insert the 
12862 \family sans
12863 Speaker
12864 \family default
12865  names as labels then cross-reference the label to insert the name.
12866  The cross-reference dialog will show the current cast of characters.
12867  You can use this to insert the speaker name in narratives also.
12868 \end_layout
12869
12870 \begin_layout Subsubsection
12871 Paper size and Margins
12872 \end_layout
12873
12874 \begin_layout Standard
12875 USLetter, left 1.6in, right 0.75in, top 0.5in, bottom 0.75in
12876 \end_layout
12877
12878 \begin_layout Subsubsection
12879 Environments
12880 \end_layout
12881
12882 \begin_layout Standard
12883 The following environments are available.
12884  You can use hollywood.bind to get the bind keys shown at the right.
12885 \end_layout
12886
12887 \begin_layout Itemize
12888
12889 \family sans
12890 Standard
12891 \begin_inset Newline newline
12892 \end_inset
12893
12894
12895 \family default
12896 Used where nothing else works.
12897  Try to avoid it.
12898 \end_layout
12899
12900 \begin_layout Itemize
12901
12902 \family sans
12903 FADE_IN
12904 \family default
12905 :
12906 \begin_inset space \hfill{}
12907 \end_inset
12908
12909
12910 \family sans
12911 M-z S-I
12912 \family default
12913
12914 \begin_inset Newline newline
12915 \end_inset
12916
12917 Usually followed by something like 
12918 \begin_inset Quotes eld
12919 \end_inset
12920
12921 on Sally waking up.
12922 \begin_inset Quotes erd
12923 \end_inset
12924
12925
12926 \end_layout
12927
12928 \begin_layout Itemize
12929
12930 \family sans
12931 INT:
12932 \begin_inset space \hfill{}
12933 \end_inset
12934
12935 M-z i
12936 \begin_inset Newline newline
12937 \end_inset
12938
12939
12940 \family default
12941 Introduces a new INTERIOR camera set-up.
12942  Always followed by DAY or NIGHT, or something similar to define the lighting
12943  required.
12944  Everthing on this line in CAPS.
12945 \end_layout
12946
12947 \begin_layout Itemize
12948
12949 \family sans
12950 EXT:
12951 \begin_inset space \hfill{}
12952 \end_inset
12953
12954 M-z e
12955 \begin_inset Newline newline
12956 \end_inset
12957
12958
12959 \family default
12960 Introduces a new EXTERIOR camera set-up.
12961  Everthing on this line in CAPS.
12962 \end_layout
12963
12964 \begin_layout Itemize
12965
12966 \family sans
12967 Speaker
12968 \begin_inset space \hfill{}
12969 \end_inset
12970
12971 M-z s
12972 \begin_inset Newline newline
12973 \end_inset
12974
12975
12976 \family default
12977 The character speaking.
12978 \end_layout
12979
12980 \begin_layout Itemize
12981
12982 \family sans
12983 Parenthetical
12984 \begin_inset space \hfill{}
12985 \end_inset
12986
12987 M-z p
12988 \begin_inset Newline newline
12989 \end_inset
12990
12991
12992 \family default
12993 Instructions to the speaker.
12994  The () are automatically inserted.
12995 \end_layout
12996
12997 \begin_layout Itemize
12998
12999 \family sans
13000 Dialogue
13001 \begin_inset space \hfill{}
13002 \end_inset
13003
13004 M-z d
13005 \begin_inset Newline newline
13006 \end_inset
13007
13008
13009 \family default
13010 What the 
13011 \family sans
13012 Speaker
13013 \family default
13014  says.
13015 \end_layout
13016
13017 \begin_layout Itemize
13018
13019 \family sans
13020 Transition
13021 \begin_inset space \hfill{}
13022 \end_inset
13023
13024 M-z t
13025 \begin_inset Newline newline
13026 \end_inset
13027
13028
13029 \family default
13030 Camera movement instruction.
13031  e.
13032 \begin_inset space \thinspace{}
13033 \end_inset
13034
13035 g.
13036 \begin_inset space \space{}
13037 \end_inset
13038
13039 CUT TO:
13040 \end_layout
13041
13042 \begin_layout Itemize
13043
13044 \family sans
13045 FADE OUT:
13046 \begin_inset space \hfill{}
13047 \end_inset
13048
13049 M-z S-I
13050 \end_layout
13051
13052 \begin_layout Itemize
13053
13054 \family sans
13055 Author
13056 \begin_inset space \hfill{}
13057 \end_inset
13058
13059 M-z S-A
13060 \end_layout
13061
13062 \begin_layout Itemize
13063
13064 \family sans
13065 Title
13066 \begin_inset space \hfill{}
13067 \end_inset
13068
13069 M-z S-T
13070 \end_layout
13071
13072 \begin_layout Itemize
13073
13074 \family sans
13075 Right_Address
13076 \begin_inset space \hfill{}
13077 \end_inset
13078
13079 M-z r
13080 \end_layout
13081
13082 \begin_layout Subsubsection
13083 Script jargon
13084 \end_layout
13085
13086 \begin_layout Itemize
13087 (O.S) — off screen
13088 \end_layout
13089
13090 \begin_layout Itemize
13091 (V.0) — voice over
13092 \end_layout
13093
13094 \begin_layout Itemize
13095 b.
13096 \begin_inset space \thinspace{}
13097 \end_inset
13098
13099 g.
13100  — background
13101 \end_layout
13102
13103 \begin_layout Itemize
13104 C.U.
13105  — close-up
13106 \end_layout
13107
13108 \begin_layout Itemize
13109 PAN — camera movement
13110 \end_layout
13111
13112 \begin_layout Itemize
13113 INSERT — cut to close-up of
13114 \end_layout
13115
13116 \begin_layout Chapter
13117
13118 \change_inserted 564990737 1671185876
13119 Modules
13120 \end_layout
13121
13122 \begin_layout Section
13123 Multiple Text Columns
13124 \end_layout
13125
13126 \begin_layout Standard
13127 This feature is independent of the option 
13128 \family sans
13129 Two-column document
13130 \family default
13131  in the document settings under 
13132 \family sans
13133 Text Layout
13134 \family default
13135 .
13136  If you want to have 2
13137 \begin_inset space ~
13138 \end_inset
13139
13140 columns for the whole document, it is recommended to use the 
13141 \family sans
13142 Two-column document
13143 \family default
13144  option.
13145  For all other cases use this feature.
13146 \end_layout
13147
13148 \begin_layout Standard
13149 To use multiple text columns in your document, you have to load the module
13150  
13151 \family sans
13152 Multiple Columns
13153 \family default
13154  (menu 
13155 \family sans
13156 Document\SpecialChar menuseparator
13157 Settings\SpecialChar menuseparator
13158 Modules
13159 \family default
13160 ) and must have the \SpecialChar LaTeX
13161 -package 
13162 \begin_inset Flex Code
13163 status collapsed
13164
13165 \begin_layout Plain Layout
13166 multicol
13167 \end_layout
13168
13169 \end_inset
13170
13171  installed.
13172 \end_layout
13173
13174 \begin_layout Standard
13175 Footnotes within multiple columns will be placed at the bottom of the page
13176  and not under each column.
13177  Within the different columns you can use everything, with the limitation
13178  that for floats you need to use the float option 
13179 \family sans
13180 Span columns
13181 \family default
13182 .
13183 \end_layout
13184
13185 \begin_layout Subsection
13186 Basics
13187 \end_layout
13188
13189 \begin_layout Standard
13190 If you want to have 2
13191 \begin_inset space ~
13192 \end_inset
13193
13194 columns in your text, insert a multicolumn inset via the menu 
13195 \family sans
13196 Insert\SpecialChar menuseparator
13197 Custom
13198 \begin_inset space ~
13199 \end_inset
13200
13201 Insets\SpecialChar menuseparator
13202 Multiple
13203 \begin_inset space ~
13204 \end_inset
13205
13206 Columns
13207 \family default
13208  where the columns should start.
13209  Write all text that should be printed in 2
13210 \begin_inset space ~
13211 \end_inset
13212
13213 columns into this inset.
13214 \end_layout
13215
13216 \begin_layout Standard
13217 Here is an example:
13218 \end_layout
13219
13220 \begin_layout Standard
13221 \noindent
13222 \begin_inset Flex Multiple Columns
13223 status open
13224
13225 \begin_layout Plain Layout
13226 \noindent
13227
13228 \series bold
13229 \size small
13230 The Adventure of the Empty House
13231 \series default
13232
13233 \begin_inset Newline newline
13234 \end_inset
13235
13236 by Sir Arthur Conan Doyle
13237 \end_layout
13238
13239 \begin_layout Plain Layout
13240
13241 \size small
13242 It was in the spring of the year 1894 that all London was interested, and
13243  the fashionable world dismayed, by the murder of the Honourable Ronald
13244  Adair under most unusual and inexplicable circumstances.
13245  The public has already learned those particulars of the crime which came
13246  out in the police investigation, but a good deal was suppressed upon that
13247  occasion, since the case for the prosecution was so overwhelmingly strong
13248  that it was not necessary to bring forward all the facts.
13249  Only now, at the end of nearly ten years, am I allowed to supply those
13250  missing links which make up the whole of that remarkable chain.
13251  The crime was of interest in itself, but that interest was as nothing to
13252  me compared to the inconceivable sequel, which afforded me the greatest
13253  shock and surprise of any event in my adventurous life.
13254  Even now, after this long interval, I find myself thrilling as I think
13255  of it, and feeling once more that sudden flood of joy, amazement, and increduli
13256 ty which utterly submerged my mind.
13257  Let me say to that public, which has shown some interest in those glimpses
13258  which I have occasionally given them of the thoughts and actions of a very
13259  remarkable man, that they are not to blame me if I have not shared my knowledge
13260  with them, for I should have considered it my first duty to do so, had
13261  I not been barred by a positive prohibition from his own lips, which was
13262  only withdrawn upon the third of last month.
13263 \end_layout
13264
13265 \end_inset
13266
13267
13268 \end_layout
13269
13270 \begin_layout Standard
13271 To get 3 or more columns, set the cursor into the multicolumn inset and
13272  use the menu 
13273 \family sans
13274 Insert\SpecialChar menuseparator
13275 Number
13276 \begin_inset space ~
13277 \end_inset
13278
13279 of
13280 \begin_inset space ~
13281 \end_inset
13282
13283 Columns
13284 \family default
13285 .
13286  The number of the desired columns is written into that inset (for 3
13287 \begin_inset space ~
13288 \end_inset
13289
13290 columns write 
13291 \begin_inset Quotes eld
13292 \end_inset
13293
13294 3
13295 \begin_inset Quotes erd
13296 \end_inset
13297
13298 ).
13299 \begin_inset Newline newline
13300 \end_inset
13301
13302 Here is an example with 3
13303 \begin_inset space ~
13304 \end_inset
13305
13306 columns:
13307 \end_layout
13308
13309 \begin_layout Standard
13310 \begin_inset Flex Multiple Columns
13311 status open
13312
13313 \begin_layout Plain Layout
13314
13315 \size footnotesize
13316 \begin_inset Argument 1
13317 status open
13318
13319 \begin_layout Plain Layout
13320
13321 3
13322 \end_layout
13323
13324 \end_inset
13325
13326 It can be imagined that my close intimacy with Sherlock Holmes had interested
13327  me deeply in crime, and that after his disappearance I never failed to
13328  read with care the various problems which came before the public.
13329  And I even attempted, more than once, for my own private satisfaction,
13330  to employ his methods in their solution, though with indifferent success.
13331  There was none, however, which appealed to me like this tragedy of Ronald
13332  Adair.
13333  As I read the evidence at the inquest, which led up to a verdict of willful
13334  murder against some person or persons unknown, I realized more clearly
13335  than I had ever done the loss which the community had sustained by the
13336  death of Sherlock Holmes.
13337  There were points about this strange business which would, I was sure,
13338  have specially appealed to him, and the efforts of the police would have
13339  been supplemented, or more probably anticipated, by the trained observation
13340  and the alert mind of the first criminal agent in Europe.
13341  All day, as I drove upon my round, I turned over the case in my mind and
13342  found no explanation which appeared to me to be adequate.
13343  At the risk of telling a twice-told tale, I will recapitulate the facts
13344  as they were known to the public at the conclusion of the inquest.
13345 \end_layout
13346
13347 \end_inset
13348
13349
13350 \end_layout
13351
13352 \begin_layout Standard
13353 You can have up to 10
13354 \begin_inset space ~
13355 \end_inset
13356
13357 columns if you want to, but that might not be very pleasant for the readers
13358  of your document.
13359 \end_layout
13360
13361 \begin_layout Standard
13362 \begin_inset Newpage newpage
13363 \end_inset
13364
13365
13366 \end_layout
13367
13368 \begin_layout Subsection
13369 Columns inside Columns
13370 \end_layout
13371
13372 \begin_layout Standard
13373 You can also have columns inside columns:
13374 \end_layout
13375
13376 \begin_layout Standard
13377 \begin_inset Flex Multiple Columns
13378 status open
13379
13380 \begin_layout Plain Layout
13381
13382 \size footnotesize
13383 The Honourable Ronald Adair was the second son of the Earl of Maynooth,
13384  at that time governor of one of the Australian colonies.
13385  Adair's mother had returned from Australia to undergo the operation for
13386  cataract, and she, her son Ronald, and her daughter Hilda were living together
13387  at 427 Park Lane.
13388 \end_layout
13389
13390 \begin_layout Plain Layout
13391 \begin_inset Flex Multiple Columns
13392 status open
13393
13394 \begin_layout Plain Layout
13395
13396 \size footnotesize
13397 The youth moved in the best society
13398 \begin_inset space ~
13399 \end_inset
13400
13401 – had, so far as was known, no enemies and no particular vices.
13402  He had been engaged to Miss Edith Woodley, of Carstairs, but the engagement
13403  had been broken off by mutual consent some months before, and there was
13404  no sign that it had left any very profound feeling behind it.
13405  For the rest {sic} the man's life moved in a narrow and conventional circle,
13406  for his habits were quiet and his nature unemotional.
13407  Yet it was upon this easy-going young aristocrat that death came, in most
13408  strange and unexpected form, between the hours of ten and eleven-twenty
13409  on the night of March 30, 1894.
13410 \end_layout
13411
13412 \end_inset
13413
13414
13415 \end_layout
13416
13417 \begin_layout Plain Layout
13418
13419 \size footnotesize
13420 Ronald Adair was fond of cards
13421 \begin_inset space ~
13422 \end_inset
13423
13424 – playing continually, but never for such stakes as would hurt him.
13425  He was a member of the Baldwin, the Cavendish, and the Bagatelle card clubs.
13426  It was shown that, after dinner on the day of his death, he had played
13427  a rubber of whist at the latter club.
13428  He had also played there in the afternoon.
13429
13430 \size default
13431  
13432 \size footnotesize
13433 The evidence of those who had played with him
13434 \begin_inset space ~
13435 \end_inset
13436
13437 – Mr.
13438  Murray, Sir John Hardy, and Colonel Moran
13439 \begin_inset space ~
13440 \end_inset
13441
13442 – showed that the game was whist, and that there was a fairly equal fall
13443  of the cards.
13444  Adair might have lost five pounds, but not more.
13445  His fortune was a considerable one, and such a loss could not in any way
13446  affect him.
13447  He had played nearly every day at one club or other, but he was a cautious
13448  player, and usually rose a winner.
13449  It came out in evidence that, in partnership with Colonel Moran, he had
13450  actually won as much as four hundred and twenty pounds in a sitting, some
13451  weeks before, from Godfrey Milner and Lord Balmoral.
13452  So much for his recent history as it came out at the inquest.
13453 \end_layout
13454
13455 \end_inset
13456
13457
13458 \end_layout
13459
13460 \begin_layout Subsection
13461 Advanced Examples
13462 \end_layout
13463
13464 \begin_layout Standard
13465 The examples in this section show some more special features of multiple
13466  columns.
13467 \end_layout
13468
13469 \begin_layout Standard
13470 For more features of multiple columns, have a look at the 
13471 \begin_inset CommandInset href
13472 LatexCommand href
13473 name "documentation"
13474 target "http://mirror.ctan.org/macros/latex/required/tools/multicol.pdf"
13475 literal "false"
13476
13477 \end_inset
13478
13479  of the \SpecialChar LaTeX
13480 -package 
13481 \begin_inset Flex Code
13482 status collapsed
13483
13484 \begin_layout Plain Layout
13485 multicol
13486 \end_layout
13487
13488 \end_inset
13489
13490 .
13491 \end_layout
13492
13493 \begin_layout Subsubsection
13494 Preface
13495 \end_layout
13496
13497 \begin_layout Standard
13498 To add a preface text for multiple columns, set the cursor into the multicolumn
13499  inset and use the menu 
13500 \family sans
13501 Insert\SpecialChar menuseparator
13502 Preface
13503 \family default
13504 .
13505  Write your preface text into that inset.
13506 \begin_inset Newline newline
13507 \end_inset
13508
13509 This is an example with some preface text:
13510 \end_layout
13511
13512 \begin_layout Standard
13513 \begin_inset VSpace bigskip
13514 \end_inset
13515
13516
13517 \end_layout
13518
13519 \begin_layout Standard
13520 \begin_inset Flex Multiple Columns
13521 status open
13522
13523 \begin_layout Plain Layout
13524 \begin_inset Argument 2
13525 status open
13526
13527 \begin_layout Plain Layout
13528 And the story continues and continues and continues and continues\SpecialChar ldots
13529
13530 \end_layout
13531
13532 \end_inset
13533
13534
13535 \size small
13536 On the evening of the crime, he returned from the club exactly at ten.
13537  His mother and sister were out spending the evening with a relation.
13538  The servant deposed that she heard him enter the front room on the second
13539  floor, generally used as his sitting-room.
13540  She had lit a fire there, and as it smoked she had opened the window.
13541  No sound was heard from the room until eleven-twenty, the hour of the return
13542  of Lady Maynooth and her daughter.
13543  Desiring to say good-night, she attempted to enter her son's room.
13544  The door was locked on the inside, and no answer could be got to their
13545  cries and knocking.
13546  Help was obtained, and the door forced.
13547  The unfortunate young man was found lying near the table.
13548  His head had been horribly mutilated by an expanding revolver bullet, but
13549  no weapon of any sort was to be found in the room.
13550 \end_layout
13551
13552 \end_inset
13553
13554
13555 \end_layout
13556
13557 \begin_layout Standard
13558 You can also use a section heading as the preface if you use a section command
13559  as \SpecialChar TeX
13560  Code.
13561  For example the command
13562 \end_layout
13563
13564 \begin_layout LyX-Code
13565
13566 \backslash
13567 subsection{subsection title}
13568 \end_layout
13569
13570 \begin_layout Standard
13571 creates a subsection.
13572  In this example the preface is a subsubsection:
13573 \end_layout
13574
13575 \begin_layout Standard
13576 \begin_inset Flex Multiple Columns
13577 status open
13578
13579 \begin_layout Plain Layout
13580 \begin_inset Argument 2
13581 status open
13582
13583 \begin_layout Plain Layout
13584 \begin_inset ERT
13585 status collapsed
13586
13587 \begin_layout Plain Layout
13588
13589
13590 \backslash
13591 subsubsection{
13592 \end_layout
13593
13594 \end_inset
13595
13596 This is a subsubsection heading as a preface
13597 \begin_inset ERT
13598 status collapsed
13599
13600 \begin_layout Plain Layout
13601
13602 }
13603 \end_layout
13604
13605 \end_inset
13606
13607
13608 \end_layout
13609
13610 \end_inset
13611
13612
13613 \size small
13614 A minute examination of the circumstances served only to make the case more
13615  complex.
13616  In the first place, no reason could be given why the young man should have
13617  fastened the door upon the inside.
13618  There was the possibility that the murderer had done this, and had afterwards
13619  escaped by the window.
13620  The drop was at least twenty feet, however, and a bed of crocuses in full
13621  bloom lay beneath.
13622  Neither the flowers nor the earth showed any sign of having been disturbed,
13623  nor were there any marks upon the narrow strip of grass which separated
13624  the house from the road.
13625  Apparently, therefore, it was the young man himself who had fastened the
13626  door.
13627  But how did he come by his death? No one could have climbed up to the window
13628  without leaving traces.
13629  Suppose a man had fired through the window, he would indeed be a remarkable
13630  shot who could with a revolver inflict so deadly a wound.
13631  Again, Park Lane is a frequented thoroughfare; there is a cab stand within
13632  a hundred yards of the house.
13633  No one had heard a shot.
13634 \end_layout
13635
13636 \end_inset
13637
13638
13639 \end_layout
13640
13641 \begin_layout Standard
13642 If there is less vertical space than 6
13643 \begin_inset space ~
13644 \end_inset
13645
13646 text lines is left on the page at the beginning of the multiple columns,
13647  a page break will be inserted before the multiple columns.
13648  Depending on the number of lines of the preface text, you might want to
13649  change this space.
13650  This is done by setting the cursor into the mulitcolumn inset behind the
13651  preface (if there is any) and using the menu 
13652 \family sans
13653 Insert\SpecialChar menuseparator
13654 Space
13655 \begin_inset space ~
13656 \end_inset
13657
13658 Before
13659 \begin_inset space ~
13660 \end_inset
13661
13662 Page
13663 \begin_inset space ~
13664 \end_inset
13665
13666 Break
13667 \family default
13668 .
13669  Insert into that inset the amount of space like e.
13670 \begin_inset space \thinspace{}
13671 \end_inset
13672
13673 g.
13674 \begin_inset space \space{}
13675 \end_inset
13676
13677
13678 \begin_inset Quotes eld
13679 \end_inset
13680
13681 5cm
13682 \begin_inset Quotes erd
13683 \end_inset
13684
13685 .
13686 \begin_inset Newline newline
13687 \end_inset
13688
13689 In this example the space is set to 7
13690 \begin_inset space ~
13691 \end_inset
13692
13693 text lines by using 
13694 \begin_inset Flex Code
13695 status collapsed
13696
13697 \begin_layout Plain Layout
13698 7
13699 \backslash
13700 baselineskip
13701 \end_layout
13702
13703 \end_inset
13704
13705  (where the command 
13706 \begin_inset Flex Code
13707 status collapsed
13708
13709 \begin_layout Plain Layout
13710
13711 \backslash
13712 baselineskip
13713 \end_layout
13714
13715 \end_inset
13716
13717  needs to be inserted as \SpecialChar TeX
13718  code):
13719 \end_layout
13720
13721 \begin_layout Standard
13722 \begin_inset Flex Multiple Columns
13723 status open
13724
13725 \begin_layout Plain Layout
13726 \begin_inset Argument 3
13727 status open
13728
13729 \begin_layout Plain Layout
13730 7
13731 \begin_inset ERT
13732 status collapsed
13733
13734 \begin_layout Plain Layout
13735
13736
13737 \backslash
13738 baselineskip
13739 \end_layout
13740
13741 \end_inset
13742
13743
13744 \end_layout
13745
13746 \end_inset
13747
13748
13749 \size small
13750 On the evening of the crime, he returned from the club exactly at ten.
13751  His mother and sister were out spending the evening with a relation.
13752  The servant deposed that she heard him enter the front room on the second
13753  floor, generally used as his sitting-room.
13754  She had lit a fire there, and as it smoked she had opened the window.
13755  No sound was heard from the room until eleven-twenty, the hour of the return
13756  of Lady Maynooth and her daughter.
13757  Desiring to say good-night, she attempted to enter her son's room.
13758  The door was locked on the inside, and no answer could be got to their
13759  cries and knocking.
13760  Help was obtained, and the door forced.
13761  The unfortunate young man was found lying near the table.
13762  His head had been horribly mutilated by an expanding revolver bullet, but
13763  no weapon of any sort was to be found in the room.
13764 \end_layout
13765
13766 \end_inset
13767
13768
13769 \end_layout
13770
13771 \begin_layout Subsubsection
13772 Surrounding Space
13773 \end_layout
13774
13775 \begin_layout Standard
13776 The amount of space before and after multiple columns can be changed by
13777  changing the length 
13778 \begin_inset Flex Code
13779 status collapsed
13780
13781 \begin_layout Plain Layout
13782
13783 \backslash
13784 multicolsep
13785 \end_layout
13786
13787 \end_inset
13788
13789 .
13790  For example the command
13791 \end_layout
13792
13793 \begin_layout LyX-Code
13794
13795 \backslash
13796 setlength{
13797 \backslash
13798 multicolsep}{3cm}
13799 \end_layout
13800
13801 \begin_layout Standard
13802 in \SpecialChar TeX
13803  Code changes its value to 3
13804 \begin_inset space \thinspace{}
13805 \end_inset
13806
13807 cm.
13808  The change must be made before the multiple columns' start.
13809  The predefined value is 13
13810 \begin_inset space \thinspace{}
13811 \end_inset
13812
13813 pt.
13814 \end_layout
13815
13816 \begin_layout Standard
13817 For this example 
13818 \begin_inset Flex Code
13819 status collapsed
13820
13821 \begin_layout Plain Layout
13822
13823 \backslash
13824 multicolsep
13825 \end_layout
13826
13827 \end_inset
13828
13829  was set to 2.5
13830 \begin_inset space \thinspace{}
13831 \end_inset
13832
13833 cm:
13834 \end_layout
13835
13836 \begin_layout Standard
13837 \begin_inset ERT
13838 status open
13839
13840 \begin_layout Plain Layout
13841
13842
13843 \backslash
13844 setlength{
13845 \backslash
13846 multicolsep}{2.5cm}
13847 \end_layout
13848
13849 \end_inset
13850
13851
13852 \end_layout
13853
13854 \begin_layout Standard
13855 \begin_inset Flex Multiple Columns
13856 status open
13857
13858 \begin_layout Plain Layout
13859
13860 \size small
13861 All day I turned these facts over in my mind, endeavouring to hit upon some
13862  theory which could reconcile them all, and to find that line of least resistanc
13863 e which my poor friend had declared to be the starting-point of every investigat
13864 ion.
13865  I confess that I made little progress.
13866  In the evening I strolled across the Park, and found myself about six o'clock
13867  at the Oxford Street end of Park Lane.
13868  A group of loafers upon the pavements, all staring up at a particular window,
13869  directed me to the house which I had come to see.
13870  A tall, thin man with coloured glasses, whom I strongly suspected of being
13871  a plain-clothes detective, was pointing out some theory of his own, while
13872  the others crowded round to listen to what he said.
13873  I got as near him as I could, but his observations seemed to me to be absurd,
13874  so I withdrew again in some disgust.
13875  As I did so I struck against an elderly, deformed man, who had been behind
13876  me, and I knocked down several books which he was carrying.
13877 \end_layout
13878
13879 \end_inset
13880
13881
13882 \end_layout
13883
13884 \begin_layout Standard
13885 \begin_inset Note Greyedout
13886 status open
13887
13888 \begin_layout Plain Layout
13889
13890 \series bold
13891 Note:
13892 \series default
13893  The values you set with 
13894 \begin_inset Flex Code
13895 status collapsed
13896
13897 \begin_layout Plain Layout
13898
13899 \backslash
13900 setlength
13901 \end_layout
13902
13903 \end_inset
13904
13905  will be used for all following multiple columns until you change them again.
13906 \end_layout
13907
13908 \end_inset
13909
13910
13911 \end_layout
13912
13913 \begin_layout Standard
13914 \begin_inset ERT
13915 status collapsed
13916
13917 \begin_layout Plain Layout
13918
13919
13920 \backslash
13921 setlength{
13922 \backslash
13923 multicolsep}{13pt}
13924 \end_layout
13925
13926 \end_inset
13927
13928
13929 \begin_inset Note Note
13930 status collapsed
13931
13932 \begin_layout Plain Layout
13933 go back to the default
13934 \end_layout
13935
13936 \end_inset
13937
13938
13939 \end_layout
13940
13941 \begin_layout Standard
13942 \begin_inset Newpage newpage
13943 \end_inset
13944
13945
13946 \end_layout
13947
13948 \begin_layout Subsubsection
13949 Column Breaks
13950 \end_layout
13951
13952 \begin_layout Standard
13953 A column break can be forced by inserting the command 
13954 \begin_inset Flex Code
13955 status collapsed
13956
13957 \begin_layout Plain Layout
13958
13959 \backslash
13960 columnbreak{}
13961 \end_layout
13962
13963 \end_inset
13964
13965  as \SpecialChar TeX
13966  Code to that position in the text where the column should be broken.
13967  Note that this leads in most cases to whitespace in the text.
13968 \begin_inset Newline newline
13969 \end_inset
13970
13971 Here is an example:
13972 \end_layout
13973
13974 \begin_layout Standard
13975 \begin_inset Flex Multiple Columns
13976 status open
13977
13978 \begin_layout Plain Layout
13979
13980 \size small
13981 \begin_inset Quotes eld
13982 \end_inset
13983
13984 You're surprised to see me, sir,
13985 \begin_inset Quotes erd
13986 \end_inset
13987
13988  said he, in a strange, croaking voice.
13989 \end_layout
13990
13991 \begin_layout Plain Layout
13992
13993 \size small
13994 I acknowledged that I was.
13995 \end_layout
13996
13997 \begin_layout Plain Layout
13998
13999 \size small
14000 \begin_inset Quotes eld
14001 \end_inset
14002
14003 Well, I've a conscience, sir, and when I chanced to see you go into this
14004  house, as I came hobbling after you, I thought to myself, I'll just step
14005  in and see that kind gentleman, and tell him that if I was a bit gruff
14006  in my manner there was not any harm meant, and that I am much obliged to
14007  him for picking up my books.
14008 \begin_inset Quotes erd
14009 \end_inset
14010
14011
14012 \end_layout
14013
14014 \begin_layout Plain Layout
14015
14016 \size small
14017 \begin_inset Quotes eld
14018 \end_inset
14019
14020 You make too much of a trifle,
14021 \begin_inset Quotes erd
14022 \end_inset
14023
14024  said I.
14025  
14026 \begin_inset Quotes eld
14027 \end_inset
14028
14029 May I ask how you knew who I was?
14030 \begin_inset Quotes erd
14031 \end_inset
14032
14033  AFTER THIS SENTENCE THE COLUMN BREAK IS FORCED.
14034 \begin_inset ERT
14035 status collapsed
14036
14037 \begin_layout Plain Layout
14038
14039
14040 \backslash
14041 columnbreak{}
14042 \end_layout
14043
14044 \end_inset
14045
14046
14047 \end_layout
14048
14049 \begin_layout Plain Layout
14050
14051 \size small
14052 \begin_inset Quotes eld
14053 \end_inset
14054
14055 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14056  you'll find my little bookshop at the corner of Church Street, and very
14057  happy to see you, I am sure.
14058  Maybe you collect yourself, sir.
14059  Here's 
14060 \noun on
14061 British
14062 \begin_inset space ~
14063 \end_inset
14064
14065 Birds
14066 \noun default
14067 , and 
14068 \noun on
14069 Catullus
14070 \noun default
14071 , and 
14072 \noun on
14073 The Holy War
14074 \noun default
14075
14076 \begin_inset space ~
14077 \end_inset
14078
14079 – a bargain, every one of them.
14080  With five volumes you could just fill that gap on that second shelf.
14081  It looks untidy, does it not, sir?
14082 \begin_inset Quotes erd
14083 \end_inset
14084
14085
14086 \end_layout
14087
14088 \end_inset
14089
14090
14091 \end_layout
14092
14093 \begin_layout Subsubsection
14094 Column Separation
14095 \end_layout
14096
14097 \begin_layout Standard
14098 The width of the columns is automatically calculated, but you can modify
14099  the space between the columns.
14100  This is done by changing the length 
14101 \begin_inset Flex Code
14102 status collapsed
14103
14104 \begin_layout Plain Layout
14105
14106 \backslash
14107 columnsep
14108 \end_layout
14109
14110 \end_inset
14111
14112 .
14113  Its predefined value is 10
14114 \begin_inset space \thinspace{}
14115 \end_inset
14116
14117 pt.
14118  Here is an example where 
14119 \begin_inset Flex Code
14120 status collapsed
14121
14122 \begin_layout Plain Layout
14123
14124 \backslash
14125 columnsep
14126 \end_layout
14127
14128 \end_inset
14129
14130  is set to 3
14131 \begin_inset space \thinspace{}
14132 \end_inset
14133
14134 cm:
14135 \end_layout
14136
14137 \begin_layout Standard
14138 \begin_inset ERT
14139 status open
14140
14141 \begin_layout Plain Layout
14142
14143
14144 \backslash
14145 setlength{
14146 \backslash
14147 columnsep}{3cm}
14148 \end_layout
14149
14150 \end_inset
14151
14152
14153 \end_layout
14154
14155 \begin_layout Standard
14156 \begin_inset Flex Multiple Columns
14157 status open
14158
14159 \begin_layout Plain Layout
14160
14161 \size small
14162 My observations of No.
14163 \begin_inset space \space{}
14164 \end_inset
14165
14166 427 Park Lane did little to clear up the problem in which I was interested.
14167  The house was separated from the street by a low wall and railing, the
14168  whole not more than five feet high.
14169  It was perfectly easy, therefore, for anyone to get into the garden, but
14170  the window was entirely inaccessible, since there was no water pipe or
14171  anything which could help the most active man to climb it.
14172  More puzzled than ever, I retraced my steps to Kensington.
14173  I had not been in my study five minutes when the maid entered to say that
14174  a person desired to see me.
14175  To my astonishment it was none other than my strange old book collector,
14176  his sharp, wizened face peering out from a frame of white hair, and his
14177  precious volumes, a dozen of them at least, wedged under his right arm.
14178 \end_layout
14179
14180 \end_inset
14181
14182
14183 \end_layout
14184
14185 \begin_layout Standard
14186 \begin_inset ERT
14187 status collapsed
14188
14189 \begin_layout Plain Layout
14190
14191
14192 \backslash
14193 setlength{
14194 \backslash
14195 columnsep}{10pt}
14196 \end_layout
14197
14198 \end_inset
14199
14200
14201 \begin_inset Note Note
14202 status collapsed
14203
14204 \begin_layout Plain Layout
14205 go back to the default
14206 \end_layout
14207
14208 \end_inset
14209
14210
14211 \end_layout
14212
14213 \begin_layout Subsubsection
14214 Vertical Lines
14215 \end_layout
14216
14217 \begin_layout Standard
14218 Between the columns a rule with a width of the length 
14219 \begin_inset Flex Code
14220 status collapsed
14221
14222 \begin_layout Plain Layout
14223
14224 \backslash
14225 columnseprule
14226 \end_layout
14227
14228 \end_inset
14229
14230  is placed.
14231  If this rule width is set to 0
14232 \begin_inset space \thinspace{}
14233 \end_inset
14234
14235 pt (this is the default), the rule is suppressed.
14236  In the following example the rule is 2
14237 \begin_inset space \thinspace{}
14238 \end_inset
14239
14240 pt wide:
14241 \end_layout
14242
14243 \begin_layout Standard
14244 \begin_inset ERT
14245 status open
14246
14247 \begin_layout Plain Layout
14248
14249
14250 \backslash
14251 setlength{
14252 \backslash
14253 columnseprule}{2pt}
14254 \end_layout
14255
14256 \end_inset
14257
14258
14259 \end_layout
14260
14261 \begin_layout Standard
14262 \begin_inset Flex Multiple Columns
14263 status open
14264
14265 \begin_layout Plain Layout
14266
14267 \size small
14268 \begin_inset Quotes eld
14269 \end_inset
14270
14271 You're surprised to see me, sir,
14272 \begin_inset Quotes erd
14273 \end_inset
14274
14275  said he, in a strange, croaking voice.
14276 \end_layout
14277
14278 \begin_layout Plain Layout
14279
14280 \size small
14281 I acknowledged that I was.
14282 \end_layout
14283
14284 \begin_layout Plain Layout
14285
14286 \size small
14287 \begin_inset Quotes eld
14288 \end_inset
14289
14290 Well, I've a conscience, sir, and when I chanced to see you go into this
14291  house, as I came hobbling after you, I thought to myself, I'll just step
14292  in and see that kind gentleman, and tell him that if I was a bit gruff
14293  in my manner there was not any harm meant, and that I am much obliged to
14294  him for picking up my books.
14295 \begin_inset Quotes erd
14296 \end_inset
14297
14298
14299 \end_layout
14300
14301 \begin_layout Plain Layout
14302
14303 \size small
14304 \begin_inset Quotes eld
14305 \end_inset
14306
14307 You make too much of a trifle,
14308 \begin_inset Quotes erd
14309 \end_inset
14310
14311  said I.
14312  
14313 \begin_inset Quotes eld
14314 \end_inset
14315
14316 May I ask how you knew who I was?
14317 \begin_inset Quotes erd
14318 \end_inset
14319
14320
14321 \end_layout
14322
14323 \begin_layout Plain Layout
14324
14325 \size small
14326 \begin_inset Quotes eld
14327 \end_inset
14328
14329 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14330  you'll find my little bookshop at the corner of Church Street, and very
14331  happy to see you, I am sure.
14332  Maybe you collect yourself, sir.
14333  Here's 
14334 \noun on
14335 British
14336 \begin_inset space ~
14337 \end_inset
14338
14339 Birds
14340 \noun default
14341 , and 
14342 \noun on
14343 Catullus
14344 \noun default
14345 , and 
14346 \noun on
14347 The Holy War
14348 \noun default
14349
14350 \begin_inset space ~
14351 \end_inset
14352
14353 – a bargain, every one of them.
14354  With five volumes you could just fill that gap on that second shelf.
14355  It looks untidy, does it not, sir?
14356 \begin_inset Quotes erd
14357 \end_inset
14358
14359
14360 \end_layout
14361
14362 \end_inset
14363
14364
14365 \end_layout
14366
14367 \begin_layout Standard
14368 \begin_inset VSpace defskip
14369 \end_inset
14370
14371
14372 \end_layout
14373
14374 \begin_layout Standard
14375 The rule can be colored by redefining the command 
14376 \begin_inset Flex Code
14377 status collapsed
14378
14379 \begin_layout Plain Layout
14380
14381 \backslash
14382 columnseprulecolor
14383 \end_layout
14384
14385 \end_inset
14386
14387 .
14388  This is done by inserting the command
14389 \end_layout
14390
14391 \begin_layout LyX-Code
14392
14393 \backslash
14394 renewcommand{
14395 \backslash
14396 columnseprulecolor}{
14397 \backslash
14398 color{red}}
14399 \end_layout
14400
14401 \begin_layout Standard
14402 as \SpecialChar TeX
14403  Code before the multicolumn inset.
14404  Replace 
14405 \begin_inset Flex Code
14406 status collapsed
14407
14408 \begin_layout Plain Layout
14409 red
14410 \end_layout
14411
14412 \end_inset
14413
14414  in this command by a color of your choice.
14415  You can use all pre- and self-defined colors.
14416  See the 
14417 \emph on
14418 EmbeddedObjects
14419 \emph default
14420  manual, section 
14421 \emph on
14422 Colored
14423 \begin_inset space ~
14424 \end_inset
14425
14426 Tables
14427 \emph default
14428  for more information about pre- and self-defined colors.
14429  To go back to the default color insert the command
14430 \end_layout
14431
14432 \begin_layout LyX-Code
14433
14434 \backslash
14435 renewcommand{
14436 \backslash
14437 columnseprulecolor}{
14438 \backslash
14439 normalcolor}
14440 \end_layout
14441
14442 \begin_layout Standard
14443 Here is the example with a cyan rule and 1
14444 \begin_inset space \thinspace{}
14445 \end_inset
14446
14447 cm column separation:
14448 \end_layout
14449
14450 \begin_layout Standard
14451 \begin_inset ERT
14452 status open
14453
14454 \begin_layout Plain Layout
14455
14456
14457 \backslash
14458 setlength{
14459 \backslash
14460 columnsep}{1cm}
14461 \end_layout
14462
14463 \begin_layout Plain Layout
14464
14465
14466 \backslash
14467 renewcommand{
14468 \backslash
14469 columnseprulecolor}{
14470 \backslash
14471 color{cyan}}
14472 \end_layout
14473
14474 \end_inset
14475
14476
14477 \end_layout
14478
14479 \begin_layout Standard
14480 \begin_inset Flex Multiple Columns
14481 status open
14482
14483 \begin_layout Plain Layout
14484
14485 \size small
14486 \begin_inset Quotes eld
14487 \end_inset
14488
14489 You're surprised to see me, sir,
14490 \begin_inset Quotes erd
14491 \end_inset
14492
14493  said he, in a strange, croaking voice.
14494 \end_layout
14495
14496 \begin_layout Plain Layout
14497
14498 \size small
14499 I acknowledged that I was.
14500 \end_layout
14501
14502 \begin_layout Plain Layout
14503
14504 \size small
14505 \begin_inset Quotes eld
14506 \end_inset
14507
14508 Well, I've a conscience, sir, and when I chanced to see you go into this
14509  house, as I came hobbling after you, I thought to myself, I'll just step
14510  in and see that kind gentleman, and tell him that if I was a bit gruff
14511  in my manner there was not any harm meant, and that I am much obliged to
14512  him for picking up my books.
14513 \begin_inset Quotes erd
14514 \end_inset
14515
14516
14517 \end_layout
14518
14519 \begin_layout Plain Layout
14520
14521 \size small
14522 \begin_inset Quotes eld
14523 \end_inset
14524
14525 You make too much of a trifle,
14526 \begin_inset Quotes erd
14527 \end_inset
14528
14529  said I.
14530  
14531 \begin_inset Quotes eld
14532 \end_inset
14533
14534 May I ask how you knew who I was?
14535 \begin_inset Quotes erd
14536 \end_inset
14537
14538
14539 \end_layout
14540
14541 \begin_layout Plain Layout
14542
14543 \size small
14544 \begin_inset Quotes eld
14545 \end_inset
14546
14547 Well, sir, if it isn't too great a liberty, I am a neighbour of yours, for
14548  you'll find my little bookshop at the corner of Church Street, and very
14549  happy to see you, I am sure.
14550  Maybe you collect yourself, sir.
14551  Here's 
14552 \noun on
14553 British
14554 \begin_inset space ~
14555 \end_inset
14556
14557 Birds
14558 \noun default
14559 , and 
14560 \noun on
14561 Catullus
14562 \noun default
14563 , and 
14564 \noun on
14565 The Holy War
14566 \noun default
14567
14568 \begin_inset space ~
14569 \end_inset
14570
14571 – a bargain, every one of them.
14572  With five volumes you could just fill that gap on that second shelf.
14573  It looks untidy, does it not, sir?
14574 \begin_inset Quotes erd
14575 \end_inset
14576
14577
14578 \end_layout
14579
14580 \end_inset
14581
14582
14583 \end_layout
14584
14585 \begin_layout Standard
14586 \begin_inset ERT
14587 status collapsed
14588
14589 \begin_layout Plain Layout
14590
14591
14592 \backslash
14593 setlength{
14594 \backslash
14595 columnseprule}{0pt}
14596 \end_layout
14597
14598 \begin_layout Plain Layout
14599
14600
14601 \backslash
14602 renewcommand{
14603 \backslash
14604 columnseprulecolor}{
14605 \backslash
14606 normalcolor}
14607 \end_layout
14608
14609 \end_inset
14610
14611
14612 \begin_inset Note Note
14613 status collapsed
14614
14615 \begin_layout Plain Layout
14616 go back to the default
14617 \end_layout
14618
14619 \end_inset
14620
14621
14622 \end_layout
14623
14624 \begin_layout Section
14625
14626 \change_inserted 564990737 1671270380
14627 Paragraph Styles
14628 \end_layout
14629
14630 \begin_layout Subsection
14631
14632 \change_inserted 564990737 1671270398
14633 Custom
14634 \change_deleted 564990737 1671270396
14635 Non-standard
14636 \change_unchanged
14637  Paragraph Shapes
14638 \end_layout
14639
14640 \begin_layout Standard
14641 \noindent
14642 \SpecialChar LaTeX
14643  as well as any other text processor uses by default rectangular paragraphs.
14644  For special cases like for example posters, invitation cards or poems you
14645  can modify the paragraph shape to one of your choice.
14646  This can be done by using the \SpecialChar LaTeX
14647 -package 
14648 \begin_inset Flex Code
14649 status collapsed
14650
14651 \begin_layout Plain Layout
14652 shapepar
14653 \end_layout
14654
14655 \end_inset
14656
14657  which is loaded by using in the document settings the module 
14658 \family sans
14659 Custom paragraph shapes
14660 \family default
14661 .
14662 \end_layout
14663
14664 \begin_layout Subsubsection
14665 Predefined shapes
14666 \end_layout
14667
14668 \begin_layout Standard
14669
14670 \series bold
14671 shapepar
14672 \series default
14673  provides the following shapes:
14674 \end_layout
14675
14676 \begin_layout Standard
14677 \begin_inset Tabular
14678 <lyxtabular version="3" rows="13" columns="3">
14679 <features booktabs="true" islongtable="true" longtabularalignment="center">
14680 <column alignment="left" valignment="middle" width="16col%">
14681 <column alignment="left" valignment="middle" width="40col%">
14682 <column alignment="left" valignment="middle" width="35col%">
14683 <row endhead="true">
14684 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14685 \begin_inset Text
14686
14687 \begin_layout Plain Layout
14688
14689 \series bold
14690 \size small
14691 Name
14692 \end_layout
14693
14694 \end_inset
14695 </cell>
14696 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
14697 \begin_inset Text
14698
14699 \begin_layout Plain Layout
14700
14701 \series bold
14702 \size small
14703 Description
14704 \end_layout
14705
14706 \end_inset
14707 </cell>
14708 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
14709 \begin_inset Text
14710
14711 \begin_layout Plain Layout
14712
14713 \series bold
14714 \size small
14715 Annotation
14716 \end_layout
14717
14718 \end_inset
14719 </cell>
14720 </row>
14721 <row interlinespace="default">
14722 <cell alignment="left" valignment="top" usebox="none">
14723 \begin_inset Text
14724
14725 \begin_layout Plain Layout
14726
14727 \size small
14728 CDlabel
14729 \end_layout
14730
14731 \end_inset
14732 </cell>
14733 <cell alignment="left" valignment="top" usebox="none">
14734 \begin_inset Text
14735
14736 \begin_layout Plain Layout
14737
14738 \size small
14739 Circle with circular hole (in the size of a CD/DVD)
14740 \end_layout
14741
14742 \end_inset
14743 </cell>
14744 <cell alignment="left" valignment="top" usebox="none">
14745 \begin_inset Text
14746
14747 \begin_layout Plain Layout
14748
14749 \size small
14750 Cannot be scaled, take care there is not too much text
14751 \end_layout
14752
14753 \end_inset
14754 </cell>
14755 </row>
14756 <row interlinespace="default">
14757 <cell alignment="left" valignment="top" usebox="none">
14758 \begin_inset Text
14759
14760 \begin_layout Plain Layout
14761
14762 \size small
14763 Circle
14764 \end_layout
14765
14766 \end_inset
14767 </cell>
14768 <cell alignment="left" valignment="top" usebox="none">
14769 \begin_inset Text
14770
14771 \begin_layout Plain Layout
14772
14773 \size small
14774 Circle
14775 \end_layout
14776
14777 \end_inset
14778 </cell>
14779 <cell alignment="left" valignment="top" usebox="none">
14780 \begin_inset Text
14781
14782 \begin_layout Plain Layout
14783
14784 \size small
14785 Fragile, calculation might fail
14786 \end_layout
14787
14788 \end_inset
14789 </cell>
14790 </row>
14791 <row interlinespace="default">
14792 <cell alignment="left" valignment="top" usebox="none">
14793 \begin_inset Text
14794
14795 \begin_layout Plain Layout
14796
14797 \size small
14798 Diamond
14799 \end_layout
14800
14801 \end_inset
14802 </cell>
14803 <cell alignment="left" valignment="top" usebox="none">
14804 \begin_inset Text
14805
14806 \begin_layout Plain Layout
14807
14808 \size small
14809 Rhomboid (symbolizing a 
14810 \begin_inset Quotes eld
14811 \end_inset
14812
14813 diamond
14814 \begin_inset Quotes erd
14815 \end_inset
14816
14817 )
14818 \end_layout
14819
14820 \end_inset
14821 </cell>
14822 <cell alignment="left" valignment="top" usebox="none">
14823 \begin_inset Text
14824
14825 \begin_layout Plain Layout
14826
14827 \size small
14828 -
14829 \end_layout
14830
14831 \end_inset
14832 </cell>
14833 </row>
14834 <row interlinespace="default">
14835 <cell alignment="left" valignment="top" usebox="none">
14836 \begin_inset Text
14837
14838 \begin_layout Plain Layout
14839
14840 \size small
14841 Heart
14842 \end_layout
14843
14844 \end_inset
14845 </cell>
14846 <cell alignment="left" valignment="top" usebox="none">
14847 \begin_inset Text
14848
14849 \begin_layout Plain Layout
14850
14851 \size small
14852 Heart-like shape
14853 \end_layout
14854
14855 \end_inset
14856 </cell>
14857 <cell alignment="left" valignment="top" usebox="none">
14858 \begin_inset Text
14859
14860 \begin_layout Plain Layout
14861
14862 \size small
14863 -
14864 \end_layout
14865
14866 \end_inset
14867 </cell>
14868 </row>
14869 <row interlinespace="default">
14870 <cell alignment="left" valignment="top" usebox="none">
14871 \begin_inset Text
14872
14873 \begin_layout Plain Layout
14874
14875 \size small
14876 Hexagon
14877 \end_layout
14878
14879 \end_inset
14880 </cell>
14881 <cell alignment="left" valignment="top" usebox="none">
14882 \begin_inset Text
14883
14884 \begin_layout Plain Layout
14885
14886 \size small
14887 Hexagon
14888 \end_layout
14889
14890 \end_inset
14891 </cell>
14892 <cell alignment="left" valignment="top" usebox="none">
14893 \begin_inset Text
14894
14895 \begin_layout Plain Layout
14896
14897 \size small
14898 -
14899 \end_layout
14900
14901 \end_inset
14902 </cell>
14903 </row>
14904 <row interlinespace="default">
14905 <cell alignment="left" valignment="top" usebox="none">
14906 \begin_inset Text
14907
14908 \begin_layout Plain Layout
14909
14910 \size small
14911 Nut
14912 \end_layout
14913
14914 \end_inset
14915 </cell>
14916 <cell alignment="left" valignment="top" usebox="none">
14917 \begin_inset Text
14918
14919 \begin_layout Plain Layout
14920
14921 \size small
14922 Nut for bolt (hexagon with circular hole)
14923 \end_layout
14924
14925 \end_inset
14926 </cell>
14927 <cell alignment="left" valignment="top" usebox="none">
14928 \begin_inset Text
14929
14930 \begin_layout Plain Layout
14931
14932 \size small
14933 -
14934 \end_layout
14935
14936 \end_inset
14937 </cell>
14938 </row>
14939 <row interlinespace="default">
14940 <cell alignment="left" valignment="top" usebox="none">
14941 \begin_inset Text
14942
14943 \begin_layout Plain Layout
14944
14945 \size small
14946 Square
14947 \end_layout
14948
14949 \end_inset
14950 </cell>
14951 <cell alignment="left" valignment="top" usebox="none">
14952 \begin_inset Text
14953
14954 \begin_layout Plain Layout
14955
14956 \size small
14957 Square
14958 \end_layout
14959
14960 \end_inset
14961 </cell>
14962 <cell alignment="left" valignment="top" usebox="none">
14963 \begin_inset Text
14964
14965 \begin_layout Plain Layout
14966
14967 \size small
14968 -
14969 \end_layout
14970
14971 \end_inset
14972 </cell>
14973 </row>
14974 <row interlinespace="default">
14975 <cell alignment="left" valignment="top" usebox="none">
14976 \begin_inset Text
14977
14978 \begin_layout Plain Layout
14979
14980 \size small
14981 Star
14982 \end_layout
14983
14984 \end_inset
14985 </cell>
14986 <cell alignment="left" valignment="top" usebox="none">
14987 \begin_inset Text
14988
14989 \begin_layout Plain Layout
14990
14991 \size small
14992 Five-point star
14993 \end_layout
14994
14995 \end_inset
14996 </cell>
14997 <cell alignment="left" valignment="top" usebox="none">
14998 \begin_inset Text
14999
15000 \begin_layout Plain Layout
15001
15002 \size small
15003 -
15004 \end_layout
15005
15006 \end_inset
15007 </cell>
15008 </row>
15009 <row interlinespace="default">
15010 <cell alignment="left" valignment="top" usebox="none">
15011 \begin_inset Text
15012
15013 \begin_layout Plain Layout
15014
15015 \size small
15016 Candle
15017 \end_layout
15018
15019 \end_inset
15020 </cell>
15021 <cell alignment="left" valignment="top" usebox="none">
15022 \begin_inset Text
15023
15024 \begin_layout Plain Layout
15025
15026 \size small
15027 Burning candle
15028 \end_layout
15029
15030 \end_inset
15031 </cell>
15032 <cell alignment="left" valignment="top" usebox="none">
15033 \begin_inset Text
15034
15035 \begin_layout Plain Layout
15036
15037 \size small
15038 -
15039 \end_layout
15040
15041 \end_inset
15042 </cell>
15043 </row>
15044 <row interlinespace="default">
15045 <cell alignment="left" valignment="top" usebox="none">
15046 \begin_inset Text
15047
15048 \begin_layout Plain Layout
15049
15050 \size small
15051 Drop down/up
15052 \end_layout
15053
15054 \end_inset
15055 </cell>
15056 <cell alignment="left" valignment="top" usebox="none">
15057 \begin_inset Text
15058
15059 \begin_layout Plain Layout
15060
15061 \size small
15062 Normal/reversed rain drop
15063 \end_layout
15064
15065 \end_inset
15066 </cell>
15067 <cell alignment="left" valignment="top" usebox="none">
15068 \begin_inset Text
15069
15070 \begin_layout Plain Layout
15071
15072 \size small
15073 Fragile, calculation might fail
15074 \end_layout
15075
15076 \end_inset
15077 </cell>
15078 </row>
15079 <row interlinespace="default">
15080 <cell alignment="left" valignment="top" usebox="none">
15081 \begin_inset Text
15082
15083 \begin_layout Plain Layout
15084
15085 \size small
15086 \SpecialChar TeX
15087
15088 \end_layout
15089
15090 \end_inset
15091 </cell>
15092 <cell alignment="left" valignment="top" usebox="none">
15093 \begin_inset Text
15094
15095 \begin_layout Plain Layout
15096
15097 \size small
15098 The \SpecialChar TeX
15099  logo
15100 \end_layout
15101
15102 \end_inset
15103 </cell>
15104 <cell alignment="left" valignment="top" usebox="none">
15105 \begin_inset Text
15106
15107 \begin_layout Plain Layout
15108
15109 \size small
15110 -
15111 \end_layout
15112
15113 \end_inset
15114 </cell>
15115 </row>
15116 <row interlinespace="default">
15117 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15118 \begin_inset Text
15119
15120 \begin_layout Plain Layout
15121
15122 \size small
15123 Triangle up/down/
15124 \begin_inset Newline newline
15125 \end_inset
15126
15127 left/right
15128 \end_layout
15129
15130 \end_inset
15131 </cell>
15132 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15133 \begin_inset Text
15134
15135 \begin_layout Plain Layout
15136
15137 \size small
15138 Triangles in different orientations
15139 \end_layout
15140
15141 \end_inset
15142 </cell>
15143 <cell alignment="left" valignment="top" bottomline="true" usebox="none">
15144 \begin_inset Text
15145
15146 \begin_layout Plain Layout
15147
15148 \size small
15149 -
15150 \end_layout
15151
15152 \end_inset
15153 </cell>
15154 </row>
15155 </lyxtabular>
15156
15157 \end_inset
15158
15159
15160 \end_layout
15161
15162 \begin_layout Standard
15163 To use a shape for your paragraph, simply select it in \SpecialChar LyX
15164 's pull-down box
15165  for environments in the toolbar.
15166 \end_layout
15167
15168 \begin_layout Standard
15169 \begin_inset Newpage newpage
15170 \end_inset
15171
15172
15173 \end_layout
15174
15175 \begin_layout Standard
15176 Here is an example paragraph in the shape of a nut:
15177 \end_layout
15178
15179 \begin_layout Standard
15180 \begin_inset VSpace bigskip
15181 \end_inset
15182
15183
15184 \end_layout
15185
15186 \begin_layout Nut
15187
15188 \lang latin
15189 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15190  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15191  voluptua.
15192  At vero eos et accusam et justo duo dolores et ea rebum.
15193  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15194  sit amet.
15195  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15196  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15197  voluptua.
15198 \end_layout
15199
15200 \begin_layout Standard
15201 \begin_inset VSpace bigskip
15202 \end_inset
15203
15204
15205 \end_layout
15206
15207 \begin_layout Standard
15208 \begin_inset Note Greyedout
15209 status open
15210
15211 \begin_layout Plain Layout
15212
15213 \series bold
15214 Note
15215 \series default
15216
15217 \family sans
15218 shapepar
15219 \family default
15220  paragraphs cannot run over a page break.
15221 \end_layout
15222
15223 \end_inset
15224
15225
15226 \end_layout
15227
15228 \begin_layout Standard
15229 \begin_inset VSpace bigskip
15230 \end_inset
15231
15232
15233 \end_layout
15234
15235 \begin_layout Standard
15236 The package 
15237 \begin_inset Flex Code
15238 status collapsed
15239
15240 \begin_layout Plain Layout
15241 shapepar
15242 \end_layout
15243
15244 \end_inset
15245
15246  takes care that the shape will always be preserved, no matter how much
15247  text is in the paragraph.
15248  Therefore the paragraph size changes with the amount of contained text.
15249  This can lead to paragraph sizes exceeding the page margins.
15250  To demonstrate the size scaling, here is the same example paragraph but
15251  with twice as much text:
15252 \end_layout
15253
15254 \begin_layout Standard
15255 \begin_inset Newpage newpage
15256 \end_inset
15257
15258
15259 \end_layout
15260
15261 \begin_layout Nut
15262
15263 \lang latin
15264 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15265  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15266  voluptua.
15267  At vero eos et accusam et justo duo dolores et ea rebum.
15268  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15269  sit amet.
15270  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15271  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15272  voluptua.
15273  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15274  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15275  voluptua.
15276  At vero eos et accusam et justo duo dolores et ea rebum.
15277  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15278  sit amet.
15279  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15280  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15281  voluptua.
15282 \end_layout
15283
15284 \begin_layout Standard
15285 \begin_inset VSpace bigskip
15286 \end_inset
15287
15288
15289 \end_layout
15290
15291 \begin_layout Standard
15292 An exception is the shape 
15293 \family sans
15294 CDlabel
15295 \family default
15296 .
15297  It cannot be scaled because it must fit the size of a CD/DVD.
15298  Therefore the amount of text that fits into the shape is limited.
15299 \begin_inset Newline newline
15300 \end_inset
15301
15302 The 
15303 \family sans
15304 drop
15305 \family default
15306  shapes and the 
15307 \family sans
15308 circle
15309 \family default
15310  shape are fragile, meaning that the calculation of their size can fail,
15311  depending on the amount of text.
15312  You will then get the \SpecialChar LaTeX
15313  error 
15314 \begin_inset Quotes eld
15315 \end_inset
15316
15317 Arithmetic overflow
15318 \begin_inset Quotes erd
15319 \end_inset
15320
15321 .
15322  In this case one can try to remove or add some text; if nothing works one
15323  has to use another shape.
15324 \end_layout
15325
15326 \begin_layout Standard
15327 \begin_inset VSpace bigskip
15328 \end_inset
15329
15330
15331 \end_layout
15332
15333 \begin_layout Standard
15334 For shapes with tips you will maybe see that \SpecialChar LaTeX
15335 's hyphenation routine fails
15336  for text in the tips.
15337  Therefore it is often necessary to add hyphenation points 
15338 \family sans
15339 (
15340 \begin_inset Info
15341 type  "shortcut"
15342 arg   "specialchar-insert hyphenation"
15343 \end_inset
15344
15345
15346 \family default
15347 ) to the corresponding text parts.
15348 \end_layout
15349
15350 \begin_layout Standard
15351 \begin_inset VSpace bigskip
15352 \end_inset
15353
15354
15355 \end_layout
15356
15357 \begin_layout Standard
15358 Shapepar paragraphs are either always centered or placed on the page so
15359  that their left border touches the left page margin.
15360  You can therefore not use the paragraph dialog to align such paragraphs.
15361  A solution is to put the paragraph into a minipage or parbox and align
15362  the box.
15363  The problem is hereby to find the right width for the box.
15364  Because if it is too wide and you center the box, the paragraph is not
15365  centered too because it sticks at the left side of the box.
15366  So you might have to play a bit with the width until it fits.
15367  Here are two heart-shaped paragraphs, the first one is not aligned, the
15368  second one is right-aligned:
15369 \end_layout
15370
15371 \begin_layout Standard
15372 \begin_inset Newpage newpage
15373 \end_inset
15374
15375
15376 \end_layout
15377
15378 \begin_layout Heart
15379 \noindent
15380
15381 \lang latin
15382 Lo\SpecialChar softhyphen
15383 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15384  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15385  voluptua.
15386  At vero eos et accusam et justo duo dolores et ea rebum.
15387  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15388  sit amet.
15389 \end_layout
15390
15391 \begin_layout Standard
15392 \begin_inset VSpace bigskip
15393 \end_inset
15394
15395
15396 \end_layout
15397
15398 \begin_layout Standard
15399 \noindent
15400 \align right
15401 \begin_inset Box Frameless
15402 position "t"
15403 hor_pos "c"
15404 has_inner_box 1
15405 inner_pos "t"
15406 use_parbox 1
15407 use_makebox 0
15408 width "42col%"
15409 special "none"
15410 height "1in"
15411 height_special "totalheight"
15412 thickness "0.4pt"
15413 separation "3pt"
15414 shadowsize "4pt"
15415 framecolor "black"
15416 backgroundcolor "none"
15417 status open
15418
15419 \begin_layout Heart
15420 \noindent
15421
15422 \lang latin
15423 Lo\SpecialChar softhyphen
15424 rem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15425  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15426  voluptua.
15427  At vero eos et accusam et justo duo dolores et ea rebum.
15428  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15429  sit amet.
15430 \end_layout
15431
15432 \end_inset
15433
15434
15435 \end_layout
15436
15437 \begin_layout Subsubsection
15438 Custom shapes
15439 \end_layout
15440
15441 \begin_layout Standard
15442 You can define any shape you want.
15443  Doing this manually is a lot of work because every coordinate must be specified.
15444  But there is a way to let the computer calculate the coordinates:
15445 \end_layout
15446
15447 \begin_layout Enumerate
15448 Install the program 
15449 \begin_inset CommandInset href
15450 LatexCommand href
15451 name "Jpgfdraw"
15452 target "https://www.ctan.org/tex-archive/graphics/jpgfdraw"
15453 literal "false"
15454
15455 \end_inset
15456
15457 .
15458 \end_layout
15459
15460 \begin_layout Enumerate
15461 In 
15462 \family sans
15463 Jpgfdraw
15464 \family default
15465  go to the menu 
15466 \family sans
15467 TeX/LaTeX\SpecialChar menuseparator
15468 Settings\SpecialChar menuseparator
15469 Set Normal Size
15470 \family default
15471  and select the font size you are using in your document.
15472  For example this document uses the size 12
15473 \begin_inset space \thinspace{}
15474 \end_inset
15475
15476 pt.
15477 \end_layout
15478
15479 \begin_layout Enumerate
15480 Draw a shape.
15481 \end_layout
15482
15483 \begin_layout Enumerate
15484 Use the menu 
15485 \family sans
15486 TeX/LaTeX\SpecialChar menuseparator
15487 Shapepar
15488 \family default
15489  to export the shape to coordinates.
15490  In the appearing dialog use either the outline of your shape for the coordinate
15491 s or the path itself.
15492 \begin_inset Foot
15493 status collapsed
15494
15495 \begin_layout Plain Layout
15496 For more information see 
15497 \begin_inset CommandInset href
15498 LatexCommand href
15499 target "http://www.dickimaw-books.com/apps/jpgfdraw/manual/shapepar.html"
15500 literal "false"
15501
15502 \end_inset
15503
15504
15505 \end_layout
15506
15507 \end_inset
15508
15509
15510 \end_layout
15511
15512 \begin_layout Standard
15513 The coordinates are written into a \SpecialChar TeX
15514  file.
15515  To use it for your \SpecialChar LyX
15516  document
15517 \end_layout
15518
15519 \begin_layout Enumerate
15520 Place the cursor before the first character of your paragraph (or into a
15521  new empty one).
15522 \end_layout
15523
15524 \begin_layout Enumerate
15525 Open in \SpecialChar LyX
15526  the menu 
15527 \family sans
15528 Insert\SpecialChar menuseparator
15529 File\SpecialChar menuseparator
15530 Child
15531 \begin_inset space ~
15532 \end_inset
15533
15534 Document
15535 \family default
15536 , select the file and use 
15537 \family sans
15538 Input
15539 \family default
15540  as 
15541 \family sans
15542 Include Type.
15543 \end_layout
15544
15545 \begin_layout Standard
15546 \begin_inset VSpace defskip
15547 \end_inset
15548
15549
15550 \end_layout
15551
15552 \begin_layout Standard
15553 \begin_inset Note Greyedout
15554 status open
15555
15556 \begin_layout Plain Layout
15557
15558 \series bold
15559 Note
15560 \series default
15561 : The changed shape only applies to the current paragraph; everything is
15562  reset to normal for the next paragraph.
15563  Therefore the shape definition file must be input into every paragraph
15564  with the desired shape.
15565 \end_layout
15566
15567 \end_inset
15568
15569
15570 \end_layout
15571
15572 \begin_layout Standard
15573 \begin_inset VSpace bigskip
15574 \end_inset
15575
15576
15577 \end_layout
15578
15579 \begin_layout Standard
15580 Here is an example:
15581 \end_layout
15582
15583 \begin_layout Standard
15584 \begin_inset VSpace bigskip
15585 \end_inset
15586
15587
15588 \end_layout
15589
15590 \begin_layout Standard
15591 \begin_inset CommandInset include
15592 LatexCommand input
15593 filename "SpecialParagraphShape.tex"
15594 literal "true"
15595
15596 \end_inset
15597
15598
15599 \lang latin
15600 Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15601  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15602  voluptua.
15603  At vero eos et accusam et justo duo dolores et ea rebum.
15604  Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor
15605  sit amet.
15606  Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy
15607  eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam
15608  voluptua.
15609 \end_layout
15610
15611 \begin_layout Standard
15612 \begin_inset VSpace bigskip
15613 \end_inset
15614
15615
15616 \end_layout
15617
15618 \begin_layout Standard
15619
15620 \series bold
15621 A tip:
15622 \series default
15623  to draw complexer shapes in 
15624 \family sans
15625 Jpgfdraw
15626 \family default
15627  you can draw the shape in a program of your choice and import the resulting
15628  image to 
15629 \family sans
15630 Jpgfdraw
15631 \family default
15632 .
15633  Then you only need to draw a line or spline along the outline of the image.
15634 \end_layout
15635
15636 \begin_layout Standard
15637 \begin_inset VSpace bigskip
15638 \end_inset
15639
15640
15641 \end_layout
15642
15643 \begin_layout Standard
15644 The module 
15645 \family sans
15646 Custom paragraph shapes
15647 \family default
15648  also provides the two commands 
15649 \family sans
15650 shapepar
15651 \family default
15652  and 
15653 \family sans
15654 Shapepar
15655 \family default
15656  which can be used to define custom shapes coordinate by coordinate.
15657 \begin_inset Foot
15658 status collapsed
15659
15660 \begin_layout Plain Layout
15661 These commands are internally used for all shapes described here.
15662 \end_layout
15663
15664 \end_inset
15665
15666  For information how these styles are used and about further customization
15667  possibilities, have a look at the 
15668 \begin_inset CommandInset href
15669 LatexCommand href
15670 name "documentation"
15671 target "https://www.ctan.org/tex-archive/macros/latex/contrib/shapepar/shapepar.pdf"
15672 literal "false"
15673
15674 \end_inset
15675
15676  of the package 
15677 \begin_inset Flex Code
15678 status collapsed
15679
15680 \begin_layout Plain Layout
15681 shapepar
15682 \end_layout
15683
15684 \end_inset
15685
15686 .
15687 \end_layout
15688
15689 \begin_layout Chapter
15690
15691 \change_deleted 564990737 1671304317
15692 Customizing 
15693 \change_unchanged
15694 Bibliograph
15695 \change_inserted 564990737 1671304322
15696 y
15697 \change_deleted 564990737 1671304331
15698 ies with Bib\SpecialChar TeX
15699  or Biblatex
15700 \change_unchanged
15701
15702 \end_layout
15703
15704 \begin_layout Standard
15705 The most basic information about how to use Bib\SpecialChar TeX
15706  or 
15707 \family sans
15708 Biblatex
15709 \family default
15710  with \SpecialChar LyX
15711  is contained in the section 
15712 \emph on
15713 Bibliography databases
15714 \emph default
15715  of the 
15716 \emph on
15717 User's Guide
15718 \emph default
15719 .
15720  The following subsections explain special bibliography features supported
15721  by \SpecialChar LyX
15722 .
15723 \end_layout
15724
15725 \begin_layout Section
15726 Alternative Citation Styles
15727 \end_layout
15728
15729 \begin_layout Standard
15730 Standard Bib\SpecialChar TeX
15731  uses numbers (e.
15732 \begin_inset space \thinspace{}
15733 \end_inset
15734
15735 g.
15736 \begin_inset space \space{}
15737 \end_inset
15738
15739
15740 \begin_inset Quotes eld
15741 \end_inset
15742
15743 [12]
15744 \begin_inset Quotes erd
15745 \end_inset
15746
15747 ) to refer to a cited work.
15748  However, in many scientific disciplines, other citation styles are in use.
15749  The most common one is the author-year style (e.
15750 \begin_inset space \thinspace{}
15751 \end_inset
15752
15753 g.
15754 \begin_inset space \space{}
15755 \end_inset
15756
15757
15758 \begin_inset Quotes eld
15759 \end_inset
15760
15761 Knuth 1984a
15762 \begin_inset Quotes erd
15763 \end_inset
15764
15765 ).
15766  \SpecialChar LyX
15767  supports three packages that provide this style, 
15768 \begin_inset Flex Code
15769 status collapsed
15770
15771 \begin_layout Plain Layout
15772 biblatex
15773 \end_layout
15774
15775 \end_inset
15776
15777
15778 \begin_inset Flex Code
15779 status collapsed
15780
15781 \begin_layout Plain Layout
15782 natbib
15783 \end_layout
15784
15785 \end_inset
15786
15787 , and 
15788 \begin_inset Flex Code
15789 status collapsed
15790
15791 \begin_layout Plain Layout
15792 jurabib
15793 \end_layout
15794
15795 \end_inset
15796
15797 .
15798  Each of these packages has their pros and cons, which cannot be listed
15799  in detail.
15800  If you only want to have simple author-year (or author-numerical) style,
15801  or if you want to use one of the countless style files for 
15802 \begin_inset Flex Code
15803 status collapsed
15804
15805 \begin_layout Plain Layout
15806 natbib
15807 \end_layout
15808
15809 \end_inset
15810
15811 , then the established 
15812 \begin_inset Flex Code
15813 status collapsed
15814
15815 \begin_layout Plain Layout
15816 natbib
15817 \end_layout
15818
15819 \end_inset
15820
15821  package is probably your choice.
15822  If you look for specific citation styles common in law studies, you might
15823  consider the 
15824 \begin_inset Flex Code
15825 status collapsed
15826
15827 \begin_layout Plain Layout
15828 jurabib
15829 \end_layout
15830
15831 \end_inset
15832
15833  package.
15834  If you want to have full control over the formatting or look for advanced
15835  features such as ibidem, footnote citations, full title citations, advanced
15836  date formats (such as 400 BC) or full localization to other languages than
15837  English, you should definitely consider 
15838 \begin_inset Flex Code
15839 status collapsed
15840
15841 \begin_layout Plain Layout
15842 biblatex
15843 \end_layout
15844
15845 \end_inset
15846
15847 , which exceeds all other packages in terms of features, but is also quite
15848  heavy and more resource-hungry.
15849 \end_layout
15850
15851 \begin_layout Standard
15852 The handling of these packages in \SpecialChar LyX
15853  is basically the same.
15854  Go to 
15855 \begin_inset Flex Noun
15856 status collapsed
15857
15858 \begin_layout Plain Layout
15859 Document\SpecialChar menuseparator
15860 Settings
15861 \end_layout
15862
15863 \end_inset
15864
15865  and select under 
15866 \begin_inset Flex Noun
15867 status collapsed
15868
15869 \begin_layout Plain Layout
15870 Bibliography
15871 \end_layout
15872
15873 \end_inset
15874
15875  the 
15876 \begin_inset Flex Noun
15877 status collapsed
15878
15879 \begin_layout Plain Layout
15880 Style Format
15881 \end_layout
15882
15883 \end_inset
15884
15885  
15886 \begin_inset Flex Noun
15887 status collapsed
15888
15889 \begin_layout Plain Layout
15890 Basic (BibTeX)
15891 \end_layout
15892
15893 \end_inset
15894
15895
15896 \begin_inset Flex Noun
15897 status collapsed
15898
15899 \begin_layout Plain Layout
15900 Biblatex
15901 \end_layout
15902
15903 \end_inset
15904
15905
15906 \begin_inset Flex Noun
15907 status collapsed
15908
15909 \begin_layout Plain Layout
15910 Biblatex (Natbib mode)
15911 \end_layout
15912
15913 \end_inset
15914
15915
15916 \begin_inset Flex Noun
15917 status collapsed
15918
15919 \begin_layout Plain Layout
15920 Natbib (BibTeX)
15921 \end_layout
15922
15923 \end_inset
15924
15925  or 
15926 \begin_inset Flex Noun
15927 status collapsed
15928
15929 \begin_layout Plain Layout
15930 Jurabib (BibTeX)
15931 \end_layout
15932
15933 \end_inset
15934
15935  (see sec.
15936 \begin_inset space ~
15937 \end_inset
15938
15939 6.5.3 in the User's Guide for more information on these choices).
15940  With all these packages, you will get some extra features in the citation
15941  dialog and you can select the style of the reference (
15942 \begin_inset Quotes eld
15943 \end_inset
15944
15945 Knuth 1984
15946 \begin_inset Quotes erd
15947 \end_inset
15948
15949
15950 \begin_inset Quotes eld
15951 \end_inset
15952
15953 Knuth (1984)
15954 \begin_inset Quotes erd
15955 \end_inset
15956
15957
15958 \begin_inset Quotes eld
15959 \end_inset
15960
15961 Knuth, 1984
15962 \begin_inset Quotes erd
15963 \end_inset
15964
15965
15966 \begin_inset Quotes eld
15967 \end_inset
15968
15969 1984
15970 \begin_inset Quotes erd
15971 \end_inset
15972
15973  etc.).
15974  Note that either package needs specifically designed style files.
15975  They all ship their own, but there are lots of additional style files,
15976  and there is even an interactive style file builder
15977 \begin_inset Foot
15978 status collapsed
15979
15980 \begin_layout Plain Layout
15981 See 
15982 \begin_inset Flex URL
15983 status open
15984
15985 \begin_layout Plain Layout
15986
15987 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/custom-bib/
15988 \end_layout
15989
15990 \end_inset
15991
15992
15993 \end_layout
15994
15995 \end_inset
15996
15997  for 
15998 \begin_inset Flex Code
15999 status collapsed
16000
16001 \begin_layout Plain Layout
16002 natbib
16003 \end_layout
16004
16005 \end_inset
16006
16007 .
16008 \end_layout
16009
16010 \begin_layout Section
16011 Subdivided Bibliographies
16012 \end_layout
16013
16014 \begin_layout Standard
16015 Sometimes you might need to divide your bibliography into several sections.
16016  If you are for instance a historian, the possibility to separate sources
16017  and scientific works is most likely a 
16018 \begin_inset Quotes eld
16019 \end_inset
16020
16021 must have
16022 \begin_inset Quotes erd
16023 \end_inset
16024
16025 .
16026  Unfortunately, Bib\SpecialChar TeX
16027  itself does not allow you to do this.
16028  But with the help of some \SpecialChar LaTeX
16029  packages, Bib\SpecialChar TeX
16030  can be extended to fit your needs.
16031 \end_layout
16032
16033 \begin_layout Standard
16034 \SpecialChar LyX
16035  provides native support for one of these packages, 
16036 \family typewriter
16037 bibtopic
16038 \family default
16039 .
16040 \begin_inset Foot
16041 status collapsed
16042
16043 \begin_layout Plain Layout
16044 Available from 
16045 \begin_inset Flex URL
16046 status open
16047
16048 \begin_layout Plain Layout
16049
16050 ftp://ctan.tug.org/tex-archive/macros/latex/contrib/bibtopic/
16051 \end_layout
16052
16053 \end_inset
16054
16055
16056 \end_layout
16057
16058 \end_inset
16059
16060  The advantage of this package (compared to other packages such as 
16061 \family typewriter
16062 multibib
16063 \family default
16064 ) is that you don't need to define new citation commands.
16065  Instead, you need to prepare different bibliographic databases which include
16066  the entries for the different sections of the bibliography.
16067  For example: If you want to divide your bibliography into the sections
16068  
16069 \begin_inset Quotes eld
16070 \end_inset
16071
16072 Sources
16073 \begin_inset Quotes erd
16074 \end_inset
16075
16076  and 
16077 \begin_inset Quotes eld
16078 \end_inset
16079
16080 Scientific works
16081 \begin_inset Quotes erd
16082 \end_inset
16083
16084 , you first need to create two bibliographic databases, e.
16085 \begin_inset space \thinspace{}
16086 \end_inset
16087
16088 g.
16089 \begin_inset space \space{}
16090 \end_inset
16091
16092
16093 \begin_inset Flex Code
16094 status collapsed
16095
16096 \begin_layout Plain Layout
16097 sources.bib
16098 \end_layout
16099
16100 \end_inset
16101
16102  and 
16103 \begin_inset Flex Code
16104 status collapsed
16105
16106 \begin_layout Plain Layout
16107 scientific.bib
16108 \end_layout
16109
16110 \end_inset
16111
16112 .
16113  
16114 \end_layout
16115
16116 \begin_layout Standard
16117 Go to 
16118 \begin_inset Flex Noun
16119 status collapsed
16120
16121 \begin_layout Plain Layout
16122 Document\SpecialChar menuseparator
16123 Settings
16124 \end_layout
16125
16126 \end_inset
16127
16128  and check under 
16129 \begin_inset Flex Noun
16130 status collapsed
16131
16132 \begin_layout Plain Layout
16133 Bibliography
16134 \end_layout
16135
16136 \end_inset
16137
16138  the option 
16139 \begin_inset Flex Noun
16140 status collapsed
16141
16142 \begin_layout Plain Layout
16143 Subdivided bibliography
16144 \end_layout
16145
16146 \end_inset
16147
16148 .
16149  Now you can insert multiple Bib\SpecialChar TeX
16150  bibliographies, one for each section of
16151  your bibliography.
16152  Returning to our example: Insert the Bib\SpecialChar TeX
16153  bibliography 
16154 \begin_inset Flex Code
16155 status collapsed
16156
16157 \begin_layout Plain Layout
16158 sources.bib
16159 \end_layout
16160
16161 \end_inset
16162
16163  and a second one for the database 
16164 \begin_inset Flex Code
16165 status collapsed
16166
16167 \begin_layout Plain Layout
16168 scientific.bib
16169 \end_layout
16170
16171 \end_inset
16172
16173 .
16174  You are free to use the same or different styles for each section.
16175  Additionally, you can choose if the bibliography section should contain
16176  
16177 \begin_inset Quotes eld
16178 \end_inset
16179
16180 all cited references
16181 \begin_inset Quotes erd
16182 \end_inset
16183
16184  of the specified database(s) (which is the default), 
16185 \begin_inset Quotes eld
16186 \end_inset
16187
16188 all uncited references
16189 \begin_inset Quotes erd
16190 \end_inset
16191
16192  or even 
16193 \begin_inset Quotes eld
16194 \end_inset
16195
16196 all references
16197 \begin_inset Quotes erd
16198 \end_inset
16199
16200 .
16201  This might be useful if you would like to separate your bibliography into
16202  three sections: 
16203 \begin_inset Quotes eld
16204 \end_inset
16205
16206 Cited sources
16207 \begin_inset Quotes erd
16208 \end_inset
16209
16210
16211 \begin_inset Quotes eld
16212 \end_inset
16213
16214 Uncited sources
16215 \begin_inset Quotes erd
16216 \end_inset
16217
16218 , and 
16219 \begin_inset Quotes eld
16220 \end_inset
16221
16222 Scientific works
16223 \begin_inset Quotes erd
16224 \end_inset
16225
16226 .
16227  The titles for the sections can be added as ordinary sections or subsections.
16228  Since 
16229 \begin_inset Flex Code
16230 status collapsed
16231
16232 \begin_layout Plain Layout
16233 bibtopic
16234 \end_layout
16235
16236 \end_inset
16237
16238  removes the bibliography title, you have to manually re-add that, too (as
16239  a chapter* or section*, for instance).
16240 \end_layout
16241
16242 \begin_layout Standard
16243 With 
16244 \family sans
16245 Biblatex
16246 \family default
16247 , the procedure is a bit different.
16248  Since 
16249 \family typewriter
16250 bibtopic
16251 \family default
16252  does not work with 
16253 \family sans
16254 Biblatex
16255 \family default
16256 , the aforementioned 
16257 \begin_inset Flex Noun
16258 status collapsed
16259
16260 \begin_layout Plain Layout
16261 Subdivided bibliography
16262 \end_layout
16263
16264 \end_inset
16265
16266  option is disabled if you use 
16267 \family sans
16268 Biblatex
16269 \family default
16270 .
16271  However, 
16272 \family sans
16273 Biblatex
16274 \family default
16275  provides its own means to generate subdivided bibliographies.
16276  You can either add keywords to bibliography entries via the 
16277 \begin_inset Flex Code
16278 status collapsed
16279
16280 \begin_layout Plain Layout
16281 keywords
16282 \end_layout
16283
16284 \end_inset
16285
16286  entry option and then filter bibliography sections by keyword (by adding
16287  
16288 \begin_inset Flex Code
16289 status collapsed
16290
16291 \begin_layout Plain Layout
16292 keyword=mykeyword
16293 \end_layout
16294
16295 \end_inset
16296
16297  to the 
16298 \begin_inset Flex Noun
16299 status collapsed
16300
16301 \begin_layout Plain Layout
16302 Options
16303 \end_layout
16304
16305 \end_inset
16306
16307  field of the dialog that opens if you left-click on the 
16308 \begin_inset Flex Noun
16309 status collapsed
16310
16311 \begin_layout Plain Layout
16312 Biblatex Generated Bibliography
16313 \end_layout
16314
16315 \end_inset
16316
16317  button), or you can filter by entry types (such as 
16318 \emph on
16319 book
16320 \emph default
16321  or 
16322 \emph on
16323 article
16324 \emph default
16325 ) by entering e.
16326 \begin_inset space \thinspace{}
16327 \end_inset
16328
16329 g.
16330  
16331 \begin_inset Flex Code
16332 status collapsed
16333
16334 \begin_layout Plain Layout
16335 type=book
16336 \end_layout
16337
16338 \end_inset
16339
16340  or 
16341 \begin_inset Flex Code
16342 status collapsed
16343
16344 \begin_layout Plain Layout
16345 nottype=collection
16346 \end_layout
16347
16348 \end_inset
16349
16350  to the mentioned 
16351 \begin_inset Flex Noun
16352 status collapsed
16353
16354 \begin_layout Plain Layout
16355 Options
16356 \end_layout
16357
16358 \end_inset
16359
16360  field, or you can create so-called 
16361 \begin_inset Quotes eld
16362 \end_inset
16363
16364 Bibliography Categories
16365 \begin_inset Quotes erd
16366 \end_inset
16367
16368  to which you can assign individual entries.
16369  Please refer to the Biblatex manual, section 
16370 \emph on
16371 Subdivided Bibliographies
16372 \emph default
16373 , for details.
16374 \end_layout
16375
16376 \begin_layout Section
16377 Multiple Bibliographies
16378 \begin_inset CommandInset label
16379 LatexCommand label
16380 name "subsec:Multiple-Bibliographies"
16381
16382 \end_inset
16383
16384
16385 \end_layout
16386
16387 \begin_layout Standard
16388 Multiple bibliographies, e.
16389 \begin_inset space \thinspace{}
16390 \end_inset
16391
16392 g.
16393 \begin_inset space \space{}
16394 \end_inset
16395
16396 a bibliography for each part, chapter, section, subsection or child (sub-documen
16397 t) of the document, are also supported by \SpecialChar LyX
16398 .
16399  In order to enable it, go to 
16400 \begin_inset Flex Noun
16401 status collapsed
16402
16403 \begin_layout Plain Layout
16404 Document\SpecialChar menuseparator
16405 Settings\SpecialChar menuseparator
16406 Bibliography
16407 \end_layout
16408
16409 \end_inset
16410
16411  and select the relevant unit (e.
16412 \begin_inset space \thinspace{}
16413 \end_inset
16414
16415 g., 
16416 \begin_inset Quotes eld
16417 \end_inset
16418
16419 per section
16420 \begin_inset Quotes erd
16421 \end_inset
16422
16423 ) in the 
16424 \begin_inset Flex Noun
16425 status collapsed
16426
16427 \begin_layout Plain Layout
16428 Multiple Bibliographies
16429 \end_layout
16430
16431 \end_inset
16432
16433  combo box.
16434  Then add a Bib(la)\SpecialChar TeX
16435  bibliography to each unit (e.
16436 \begin_inset space \thinspace{}
16437 \end_inset
16438
16439 g., section) of your document.
16440  In the output, a separate bibliography, containing only the references
16441  done in the current unit is generated.
16442 \end_layout
16443
16444 \begin_layout Standard
16445 If you use Bib\SpecialChar TeX
16446 , either the 
16447 \begin_inset Flex Code
16448 status collapsed
16449
16450 \begin_layout Plain Layout
16451 chapterbib
16452 \end_layout
16453
16454 \end_inset
16455
16456  or the 
16457 \begin_inset Flex Code
16458 status collapsed
16459
16460 \begin_layout Plain Layout
16461 bibtopic
16462 \end_layout
16463
16464 \end_inset
16465
16466  package is used to create multiple bibliographies.
16467  The former package is used if you select 
16468 \begin_inset Quotes eld
16469 \end_inset
16470
16471 per child document
16472 \begin_inset Quotes erd
16473 \end_inset
16474
16475  and do 
16476 \emph on
16477 not
16478 \emph default
16479  check 
16480 \begin_inset Flex Noun
16481 status collapsed
16482
16483 \begin_layout Plain Layout
16484 Sectioned Bibliography
16485 \end_layout
16486
16487 \end_inset
16488
16489 .
16490  In all other cases, 
16491 \begin_inset Flex Code
16492 status collapsed
16493
16494 \begin_layout Plain Layout
16495 bibtopic
16496 \end_layout
16497
16498 \end_inset
16499
16500  is used.
16501 \begin_inset Foot
16502 status collapsed
16503
16504 \begin_layout Plain Layout
16505 An alternative approach, if you are willing to use some 
16506 \begin_inset Flex Noun
16507 status collapsed
16508
16509 \begin_layout Plain Layout
16510 \SpecialChar TeX
16511  Code
16512 \end_layout
16513
16514 \end_inset
16515
16516  (see section
16517 \begin_inset space ~
16518 \end_inset
16519
16520
16521 \begin_inset CommandInset ref
16522 LatexCommand ref
16523 reference "sec:Inserting-TeX-Code"
16524
16525 \end_inset
16526
16527 ), is to use the 
16528 \begin_inset Flex Code
16529 status collapsed
16530
16531 \begin_layout Plain Layout
16532 bibunits
16533 \end_layout
16534
16535 \end_inset
16536
16537  package.
16538 \end_layout
16539
16540 \end_inset
16541
16542  If 
16543 \begin_inset Flex Code
16544 status collapsed
16545
16546 \begin_layout Plain Layout
16547 bibtopic
16548 \end_layout
16549
16550 \end_inset
16551
16552  is used, \SpecialChar LyX
16553  encloses the specified units in 
16554 \begin_inset Flex Code
16555 status collapsed
16556
16557 \begin_layout Plain Layout
16558 bibtopic
16559 \end_layout
16560
16561 \end_inset
16562
16563 's 
16564 \begin_inset Flex Code
16565 status collapsed
16566
16567 \begin_layout Plain Layout
16568
16569 \backslash
16570 begin{btUnit}
16571 \end_layout
16572
16573 \end_inset
16574
16575  and 
16576 \begin_inset Flex Code
16577 status collapsed
16578
16579 \begin_layout Plain Layout
16580
16581 \backslash
16582 end{btUnit}
16583 \end_layout
16584
16585 \end_inset
16586
16587  in order to create the units.
16588  Note that this approach has some limitations.
16589  First, every citation reference has to be inside some 
16590 \begin_inset Flex Code
16591 status collapsed
16592
16593 \begin_layout Plain Layout
16594 btUnit
16595 \end_layout
16596
16597 \end_inset
16598
16599 .
16600  So citations outside a defined unit (e.
16601 \begin_inset space \thinspace{}
16602 \end_inset
16603
16604 g., before the first section if you use 
16605 \begin_inset Quotes eld
16606 \end_inset
16607
16608 by section
16609 \begin_inset Quotes erd
16610 \end_inset
16611
16612 ) will appear as 
16613 \begin_inset Quotes eld
16614 \end_inset
16615
16616 ???
16617 \begin_inset Quotes erd
16618 \end_inset
16619
16620 .
16621  You can also create your own units by entering 
16622 \begin_inset Flex Code
16623 status collapsed
16624
16625 \begin_layout Plain Layout
16626
16627 \backslash
16628 begin{btUnit}
16629 \end_layout
16630
16631 \end_inset
16632
16633  and 
16634 \begin_inset Flex Code
16635 status collapsed
16636
16637 \begin_layout Plain Layout
16638
16639 \backslash
16640 end{btUnit}
16641 \end_layout
16642
16643 \end_inset
16644
16645  as \SpecialChar TeX
16646  code (for instance to work around the mentioned limitation).
16647  Note, though, that 
16648 \begin_inset Flex Code
16649 status collapsed
16650
16651 \begin_layout Plain Layout
16652 btUnit
16653 \end_layout
16654
16655 \end_inset
16656
16657 s cannot be nested.
16658  A second limitation is that 
16659 \begin_inset Flex Code
16660 status collapsed
16661
16662 \begin_layout Plain Layout
16663 bibtopic
16664 \end_layout
16665
16666 \end_inset
16667
16668  always processes all references of a bibliography database, even if they
16669  are not cited.
16670  This can result in odd labels (e.
16671 \begin_inset space \thinspace{}
16672 \end_inset
16673
16674 g.
16675  
16676 \begin_inset Quotes eld
16677 \end_inset
16678
16679 Miller 2014b
16680 \begin_inset Quotes erd
16681 \end_inset
16682
16683  if two works of this author from 2014 are in the database, even if only
16684  one is cited).
16685 \end_layout
16686
16687 \begin_layout Standard
16688 If you use 
16689 \family sans
16690 Biblatex
16691 \family default
16692 , the 
16693 \begin_inset Flex Code
16694 status collapsed
16695
16696 \begin_layout Plain Layout
16697 refsection
16698 \end_layout
16699
16700 \end_inset
16701
16702  option is used instead.
16703  If you need specific units, you can start them with the \SpecialChar TeX
16704  code 
16705 \begin_inset Flex Code
16706 status collapsed
16707
16708 \begin_layout Plain Layout
16709
16710 \backslash
16711 newrefsection
16712 \end_layout
16713
16714 \end_inset
16715
16716  or 
16717 \begin_inset Flex Code
16718 status collapsed
16719
16720 \begin_layout Plain Layout
16721
16722 \backslash
16723 newrefsegment
16724 \end_layout
16725
16726 \end_inset
16727
16728 , respectively.
16729  If you also want to control the end of the unit, use the environment 
16730 \begin_inset Flex Code
16731 status collapsed
16732
16733 \begin_layout Plain Layout
16734
16735 \backslash
16736 begin{refsection}
16737 \end_layout
16738
16739 \end_inset
16740
16741  \SpecialChar ldots
16742  
16743 \begin_inset Flex Code
16744 status collapsed
16745
16746 \begin_layout Plain Layout
16747
16748 \backslash
16749 end{refsection}
16750 \end_layout
16751
16752 \end_inset
16753
16754  instead.
16755  Note, though, that 
16756 \begin_inset Flex Code
16757 status collapsed
16758
16759 \begin_layout Plain Layout
16760 refsection
16761 \end_layout
16762
16763 \end_inset
16764
16765 s cannot be nested.
16766  In addition to the individual bibliography of the current unit, 
16767 \family sans
16768 Biblatex
16769 \family default
16770  also provides an easy way to output all bibliographies, subsequently, at
16771  one place (e.
16772 \begin_inset space \thinspace{}
16773 \end_inset
16774
16775 g., at the end of the document).
16776  Select 
16777 \begin_inset Quotes eld
16778 \end_inset
16779
16780 all reference units
16781 \begin_inset Quotes erd
16782 \end_inset
16783
16784  from the Content combo box of the Bib(la)TeX inset dialog in order to achieve
16785  this.
16786  Please refer to the 
16787 \family sans
16788 Biblatex
16789 \family default
16790  manual for more information on this topic.
16791 \end_layout
16792
16793 \begin_layout Chapter
16794
16795 \change_deleted 564990737 1671355654
16796 Itemize 
16797 \change_unchanged
16798 Bullet
16799 \change_inserted 564990737 1671355667
16800 s
16801 \change_deleted 564990737 1671355661
16802  Selection
16803 \change_inserted 564990737 1671355684
16804
16805 \begin_inset CommandInset label
16806 LatexCommand label
16807 name "chap:bullets"
16808
16809 \end_inset
16810
16811
16812 \change_deleted 564990737 1671355684
16813
16814 \begin_inset CommandInset label
16815 LatexCommand label
16816 name "sec:bullet"
16817
16818 \end_inset
16819
16820
16821 \change_unchanged
16822
16823 \end_layout
16824
16825 \begin_layout Standard
16826 by
16827 \noun on
16828  Allan Rae
16829 \end_layout
16830
16831 \begin_layout Section
16832 Introduction
16833 \end_layout
16834
16835 \begin_layout Standard
16836 \SpecialChar LyX
16837  provides 216 bullet shapes that can be accessed from a simple dialog.
16838  Using this dialog you can easily specify what bullet shape to use at each
16839  level of an itemized list.
16840  These settings are document-wide so you won't be able to specify different
16841  sets of bullets for different paragraphs.
16842 \begin_inset Foot
16843 status collapsed
16844
16845 \begin_layout Plain Layout
16846 Well, actually you can but you'll have to do it by hand.
16847 \end_layout
16848
16849 \end_inset
16850
16851
16852 \end_layout
16853
16854 \begin_layout Section
16855 How it looks
16856 \end_layout
16857
16858 \begin_layout Standard
16859 Open the dialog by selecting the 
16860 \begin_inset Flex Noun
16861 status collapsed
16862
16863 \begin_layout Plain Layout
16864 Document\SpecialChar menuseparator
16865 Settings
16866 \end_layout
16867
16868 \end_inset
16869
16870  menu item and then select the 
16871 \begin_inset Flex Noun
16872 status collapsed
16873
16874 \begin_layout Plain Layout
16875 Bullets
16876 \end_layout
16877
16878 \end_inset
16879
16880  tab.
16881 \end_layout
16882
16883 \begin_layout Standard
16884 The dialog provides you with a table of bullet shapes.
16885  A column of buttons on the left of the table provides access to the six
16886  different panels of bullet shapes.
16887  The row of buttons across the top is used to select which bullet depth
16888  you are changing.
16889
16890 \change_deleted 244031559 1603875981
16891  A text entry under the table shows the currently selected bullet shape's
16892  \SpecialChar LaTeX
16893  equivalent and this can be edited if desired.
16894  If you do modify the text you will also need to specify any needed packages
16895  in the \SpecialChar LaTeX
16896  preamble.
16897 \change_unchanged
16898
16899 \end_layout
16900
16901 \begin_layout Standard
16902 The six panels are divided up by the packages they require.
16903  The following table shows the mappings from button name to \SpecialChar LaTeX
16904  package.
16905 \end_layout
16906
16907 \begin_layout Standard
16908 \align center
16909 \begin_inset Tabular
16910 <lyxtabular version="3" rows="7" columns="2">
16911 <features tabularvalignment="middle">
16912 <column alignment="center" valignment="top" width="0pt">
16913 <column alignment="center" valignment="top" width="0pt">
16914 <row>
16915 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
16916 \begin_inset Text
16917
16918 \begin_layout Plain Layout
16919
16920 \family roman
16921 \series medium
16922 \shape up
16923 \size normal
16924 \emph off
16925 \bar no
16926 \noun off
16927 \color none
16928 Button
16929 \end_layout
16930
16931 \end_inset
16932 </cell>
16933 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
16934 \begin_inset Text
16935
16936 \begin_layout Plain Layout
16937
16938 \family roman
16939 \series medium
16940 \shape up
16941 \size normal
16942 \emph off
16943 \bar no
16944 \noun off
16945 \color none
16946 Packages Required
16947 \end_layout
16948
16949 \end_inset
16950 </cell>
16951 </row>
16952 <row>
16953 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16954 \begin_inset Text
16955
16956 \begin_layout Plain Layout
16957
16958 \family sans
16959 \series medium
16960 \shape up
16961 \size normal
16962 \emph off
16963 \bar no
16964 \noun off
16965 \color none
16966 Standard
16967 \end_layout
16968
16969 \end_inset
16970 </cell>
16971 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
16972 \begin_inset Text
16973
16974 \begin_layout Plain Layout
16975
16976 \series medium
16977 \shape up
16978 \size normal
16979 \emph off
16980 \bar no
16981 \noun off
16982 \color none
16983 base \SpecialChar LaTeX
16984
16985 \end_layout
16986
16987 \end_inset
16988 </cell>
16989 </row>
16990 <row>
16991 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
16992 \begin_inset Text
16993
16994 \begin_layout Plain Layout
16995
16996 \family sans
16997 \series medium
16998 \shape up
16999 \size normal
17000 \emph off
17001 \bar no
17002 \noun off
17003 \color none
17004 Maths
17005 \end_layout
17006
17007 \end_inset
17008 </cell>
17009 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17010 \begin_inset Text
17011
17012 \begin_layout Plain Layout
17013
17014 \family typewriter
17015 \series medium
17016 \shape up
17017 \size normal
17018 \emph off
17019 \bar no
17020 \noun off
17021 \color none
17022 amssymb.sty
17023 \end_layout
17024
17025 \end_inset
17026 </cell>
17027 </row>
17028 <row>
17029 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17030 \begin_inset Text
17031
17032 \begin_layout Plain Layout
17033
17034 \family sans
17035 \series medium
17036 \shape up
17037 \size normal
17038 \emph off
17039 \bar no
17040 \noun off
17041 \color none
17042 Ding1
17043 \end_layout
17044
17045 \end_inset
17046 </cell>
17047 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17048 \begin_inset Text
17049
17050 \begin_layout Plain Layout
17051
17052 \family typewriter
17053 \series medium
17054 \shape up
17055 \size normal
17056 \emph off
17057 \bar no
17058 \noun off
17059 \color none
17060 pifont.sty
17061 \end_layout
17062
17063 \end_inset
17064 </cell>
17065 </row>
17066 <row>
17067 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17068 \begin_inset Text
17069
17070 \begin_layout Plain Layout
17071
17072 \family sans
17073 \series medium
17074 \shape up
17075 \size normal
17076 \emph off
17077 \bar no
17078 \noun off
17079 \color none
17080 Ding2
17081 \end_layout
17082
17083 \end_inset
17084 </cell>
17085 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17086 \begin_inset Text
17087
17088 \begin_layout Plain Layout
17089
17090 \family typewriter
17091 \series medium
17092 \shape up
17093 \size normal
17094 \emph off
17095 \bar no
17096 \noun off
17097 \color none
17098 pifont.sty
17099 \end_layout
17100
17101 \end_inset
17102 </cell>
17103 </row>
17104 <row>
17105 <cell alignment="center" valignment="top" topline="true" leftline="true" usebox="none">
17106 \begin_inset Text
17107
17108 \begin_layout Plain Layout
17109
17110 \family sans
17111 \series medium
17112 \shape up
17113 \size normal
17114 \emph off
17115 \bar no
17116 \noun off
17117 \color none
17118 Ding3
17119 \end_layout
17120
17121 \end_inset
17122 </cell>
17123 <cell alignment="center" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
17124 \begin_inset Text
17125
17126 \begin_layout Plain Layout
17127
17128 \family typewriter
17129 \series medium
17130 \shape up
17131 \size normal
17132 \emph off
17133 \bar no
17134 \noun off
17135 \color none
17136 pifont.sty
17137 \end_layout
17138
17139 \end_inset
17140 </cell>
17141 </row>
17142 <row>
17143 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
17144 \begin_inset Text
17145
17146 \begin_layout Plain Layout
17147
17148 \family sans
17149 \series medium
17150 \shape up
17151 \size normal
17152 \emph off
17153 \bar no
17154 \noun off
17155 \color none
17156 Ding4
17157 \end_layout
17158
17159 \end_inset
17160 </cell>
17161 <cell alignment="center" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
17162 \begin_inset Text
17163
17164 \begin_layout Plain Layout
17165
17166 \family typewriter
17167 \series medium
17168 \shape up
17169 \size normal
17170 \emph off
17171 \bar no
17172 \noun off
17173 \color none
17174 pifont.sty
17175 \end_layout
17176
17177 \end_inset
17178 </cell>
17179 </row>
17180 </lyxtabular>
17181
17182 \end_inset
17183
17184
17185 \end_layout
17186
17187 \begin_layout Standard
17188 \SpecialChar LyX
17189  doesn't stop you using bullets from packages you don't have.
17190  If you get errors from \SpecialChar LaTeX
17191  when you try to view or print the file, then it
17192  is likely you are missing a package.
17193 \begin_inset Foot
17194 status collapsed
17195
17196 \begin_layout Plain Layout
17197 \SpecialChar LyX
17198  doesn't restrict your use since you may be editing locally and exporting
17199  elsewhere.
17200 \end_layout
17201
17202 \end_inset
17203
17204
17205 \end_layout
17206
17207 \begin_layout Section
17208 How to use it
17209 \end_layout
17210
17211 \begin_layout Standard
17212 Select which bullet depth you want to change then select the bullet shape
17213  and size.
17214  Any changes will not be visible in \SpecialChar LyX
17215 , but are visible when viewing the document.
17216 \end_layout
17217
17218 \begin_layout Standard
17219 You can reset a bullet shape to the default simply by clicking your right
17220  mouse button on the appropriate bullet depth button.
17221 \begin_inset Foot
17222 status open
17223
17224 \begin_layout Plain Layout
17225 If you 
17226 \emph on
17227 really
17228 \emph default
17229  want to have multiple sets of paragraphs with different sets of bullets
17230  in each, then you're going to have to get your hands dirty with \SpecialChar TeX
17231  code.
17232  The bullet selection dialog can help though because it provides you with
17233  the \SpecialChar LaTeX
17234  code for a wide range of bullet shapes.
17235  To make your own custom paragraphs you have the following options:
17236 \end_layout
17237
17238 \begin_layout Plain Layout
17239 \begin_inset ERT
17240 status open
17241
17242 \begin_layout Plain Layout
17243
17244
17245 \backslash
17246 let
17247 \backslash
17248 savelabelitemi=
17249 \backslash
17250 labelitemi
17251 \end_layout
17252
17253 \end_inset
17254
17255
17256 \end_layout
17257
17258 \begin_layout Plain Layout
17259 \begin_inset ERT
17260 status open
17261
17262 \begin_layout Plain Layout
17263
17264
17265 \backslash
17266 renewcommand
17267 \backslash
17268 labelitemi[0]{
17269 \backslash
17270 small
17271 \backslash
17272 (
17273 \backslash
17274 sharp
17275 \backslash
17276 )}
17277 \end_layout
17278
17279 \end_inset
17280
17281
17282 \end_layout
17283
17284 \begin_layout Itemize
17285 Use the \SpecialChar LaTeX
17286  command 
17287 \begin_inset Flex Code
17288 status collapsed
17289
17290 \begin_layout Plain Layout
17291
17292 \backslash
17293 renewcommand{}{}
17294 \end_layout
17295
17296 \end_inset
17297
17298  to specify a new bullet shape for a given depth.
17299  You'll also need to save the current bullet shape so you can restore it
17300  again afterwards.
17301  In this itemized list the following \SpecialChar LaTeX
17302  code was used to change the bullet
17303  used for the first depth.
17304 \end_layout
17305
17306 \begin_deeper
17307 \begin_layout LyX-Code
17308
17309 \backslash
17310 let
17311 \backslash
17312 savelabelitemi=
17313 \backslash
17314 labelitemi 
17315 \end_layout
17316
17317 \begin_layout LyX-Code
17318
17319 \backslash
17320 renewcommand
17321 \backslash
17322 labelitemi[0]{
17323 \backslash
17324 small
17325 \backslash
17326 (
17327 \backslash
17328 sharp
17329 \backslash
17330 )}
17331 \end_layout
17332
17333 \end_deeper
17334 \begin_layout Itemize
17335 Note that the itemize depth is specified in Roman numerals as part of the
17336  
17337 \family typewriter
17338
17339 \backslash
17340 labelitem
17341 \family default
17342  command.
17343 \end_layout
17344
17345 \begin_layout Itemize
17346 \begin_inset Argument item:1
17347 status open
17348
17349 \begin_layout Plain Layout
17350 \begin_inset ERT
17351 status open
17352
17353 \begin_layout Plain Layout
17354
17355
17356 \backslash
17357 (
17358 \backslash
17359 star
17360 \backslash
17361 )
17362 \end_layout
17363
17364 \end_inset
17365
17366
17367 \end_layout
17368
17369 \end_inset
17370
17371  Specify each individual entry by starting each item with the bullet shape
17372  enclosed in a 
17373 \begin_inset Quotes eld
17374 \end_inset
17375
17376 Custom Item
17377 \begin_inset Quotes erd
17378 \end_inset
17379
17380  inset (available at 
17381 \family sans
17382 Insert\SpecialChar menuseparator
17383 Custom Item
17384 \family default
17385 ) and set as 
17386 \begin_inset Flex Noun
17387 status collapsed
17388
17389 \begin_layout Plain Layout
17390 \SpecialChar TeX
17391  Code
17392 \end_layout
17393
17394 \end_inset
17395
17396 .
17397  For example, this item was started with 
17398 \begin_inset Flex Code
17399 status collapsed
17400
17401 \begin_layout Plain Layout
17402
17403 \backslash
17404 (
17405 \backslash
17406 star
17407 \backslash
17408 )
17409 \end_layout
17410
17411 \end_inset
17412
17413 .
17414 \end_layout
17415
17416 \begin_layout Plain Layout
17417 \begin_inset ERT
17418 status open
17419
17420 \begin_layout Plain Layout
17421
17422
17423 \backslash
17424 renewcommand
17425 \backslash
17426 labelitemi[0]{
17427 \backslash
17428 savelabelitemi}
17429 \end_layout
17430
17431 \end_inset
17432
17433
17434 \end_layout
17435
17436 \begin_layout Plain Layout
17437 You'll also need to revert the labelitem back to its previous setting for
17438  the global bullet shape settings to remain in effect.
17439  The way used here was:
17440 \end_layout
17441
17442 \begin_layout LyX-Code
17443
17444 \backslash
17445 renewcommand
17446 \backslash
17447 labelitemi[0]{
17448 \backslash
17449 savelabelitemi}
17450 \end_layout
17451
17452 \end_inset
17453
17454
17455 \end_layout
17456
17457 \begin_layout Chapter
17458 Supplemental Tools
17459 \end_layout
17460
17461 \begin_layout Section
17462 Multipart Documents
17463 \end_layout
17464
17465 \begin_layout Subsection
17466 General Operation
17467 \end_layout
17468
17469 \begin_layout Standard
17470 When you are working on a large file with many sections, it is often convenient
17471  to break up the document into several files, or perhaps you have something
17472  where a table may change from time to time, but the preceding text does
17473  not.
17474  In these cases, you should seriously consider using multipart documents.
17475  For example, scientific papers often have five major sections: the introduction
17476 , observations, results, discussion, and conclusion.
17477  Each of these could be its own separate \SpecialChar LyX
17478  file, with one 
17479 \begin_inset Quotes eld
17480 \end_inset
17481
17482 master
17483 \begin_inset Quotes erd
17484 \end_inset
17485
17486  file which contains the title, authors, abstract, references, etc., plus
17487  the five included files.
17488  It is important to note that each of these files is a full \SpecialChar LyX
17489  file which
17490  can be formatted and printed on its own, as well as included in a master
17491  file.
17492  Each of these files must have the same document class, however—don't attempt
17493  to mix book classes with article classes.
17494  You may also include \SpecialChar LaTeX
17495  files; however, these files must not have their own
17496  preamble (i.
17497 \begin_inset space \thinspace{}
17498 \end_inset
17499
17500 e.
17501 \begin_inset space \space{}
17502 \end_inset
17503
17504 everything up to and including the 
17505 \begin_inset Flex Code
17506 status collapsed
17507
17508 \begin_layout Plain Layout
17509
17510 \backslash
17511 begin{document}
17512 \end_layout
17513
17514 \end_inset
17515
17516  line as well as the 
17517 \begin_inset Flex Code
17518 status collapsed
17519
17520 \begin_layout Plain Layout
17521
17522 \backslash
17523 end{document}
17524 \end_layout
17525
17526 \end_inset
17527
17528  line must be deleted) or else errors will be generated when you try to
17529  make a DVI file.
17530 \end_layout
17531
17532 \begin_layout Standard
17533 \SpecialChar LyX
17534  allows you to include files quite easily with 
17535 \begin_inset Flex Noun
17536 status collapsed
17537
17538 \begin_layout Plain Layout
17539 Insert\SpecialChar menuseparator
17540 Child
17541 \begin_inset space ~
17542 \end_inset
17543
17544 Document
17545 \end_layout
17546
17547 \end_inset
17548
17549 .
17550  When you click on this selection a small box is inserted into the file
17551  at the current cursor location.
17552  Clicking on the box raises a dialog which allows you to select the file
17553  to be included, and the method of its inclusion.
17554  
17555 \end_layout
17556
17557 \begin_layout Standard
17558 The file selection box should by now be obvious.
17559  The three inclusion methods are 
17560 \begin_inset Quotes eld
17561 \end_inset
17562
17563 include
17564 \begin_inset Quotes erd
17565 \end_inset
17566
17567
17568 \begin_inset Quotes eld
17569 \end_inset
17570
17571 input
17572 \begin_inset Quotes erd
17573 \end_inset
17574
17575 , and 
17576 \begin_inset Quotes eld
17577 \end_inset
17578
17579 verbatim
17580 \begin_inset Quotes erd
17581 \end_inset
17582
17583 .
17584  The methods 
17585 \begin_inset Quotes eld
17586 \end_inset
17587
17588 include
17589 \begin_inset Quotes erd
17590 \end_inset
17591
17592  and 
17593 \begin_inset Quotes eld
17594 \end_inset
17595
17596 input
17597 \begin_inset Quotes erd
17598 \end_inset
17599
17600  are similar in many ways, but there are also some notable differences:
17601 \end_layout
17602
17603 \begin_layout Enumerate
17604 Files that are 
17605 \begin_inset Quotes eld
17606 \end_inset
17607
17608 included
17609 \begin_inset Quotes erd
17610 \end_inset
17611
17612  are typeset beginning on a new page, while files that are 
17613 \begin_inset Quotes eld
17614 \end_inset
17615
17616 inputted
17617 \begin_inset Quotes erd
17618 \end_inset
17619
17620  are typeset starting on the current page.
17621 \end_layout
17622
17623 \begin_layout Enumerate
17624 \begin_inset Quotes eld
17625 \end_inset
17626
17627 Included
17628 \begin_inset Quotes erd
17629 \end_inset
17630
17631  files cannot themselves 
17632 \begin_inset Quotes eld
17633 \end_inset
17634
17635 include
17636 \begin_inset Quotes erd
17637 \end_inset
17638
17639  further files (
17640 \begin_inset Quotes eld
17641 \end_inset
17642
17643 grandchilds
17644 \begin_inset Quotes erd
17645 \end_inset
17646
17647 ).
17648  With 
17649 \begin_inset Quotes eld
17650 \end_inset
17651
17652 input
17653 \begin_inset Quotes erd
17654 \end_inset
17655
17656 , on the other hand, infinite sub-inputting is possible.
17657 \end_layout
17658
17659 \begin_layout Enumerate
17660 \begin_inset Quotes eld
17661 \end_inset
17662
17663 Include
17664 \begin_inset Quotes erd
17665 \end_inset
17666
17667  allow for the output of only selected 
17668 \begin_inset Quotes eld
17669 \end_inset
17670
17671 included
17672 \begin_inset Quotes erd
17673 \end_inset
17674
17675  files, while maintaining the actual counters (pagination etc.) and references
17676  (please refer to the section 
17677 \emph on
17678 Child
17679 \begin_inset space ~
17680 \end_inset
17681
17682 Documents
17683 \emph default
17684  of the 
17685 \emph on
17686 Embedded
17687 \begin_inset space ~
17688 \end_inset
17689
17690 Objects
17691 \emph default
17692  manual for details).
17693 \end_layout
17694
17695 \begin_layout Standard
17696 Hence, 
17697 \begin_inset Quotes eld
17698 \end_inset
17699
17700 include
17701 \begin_inset Quotes erd
17702 \end_inset
17703
17704  is the preferred method for chapters that are outsourced to child documents,
17705  while 
17706 \begin_inset Quotes eld
17707 \end_inset
17708
17709 input
17710 \begin_inset Quotes erd
17711 \end_inset
17712
17713  is more suitable for arbitrary file inheritance.
17714 \end_layout
17715
17716 \begin_layout Standard
17717
17718 \begin_inset Quotes eld
17719 \end_inset
17720
17721 verbatim
17722 \begin_inset Quotes erd
17723 \end_inset
17724
17725  included file allows you to include a file typeset exactly as it appears
17726  in the file, i.
17727 \begin_inset space \thinspace{}
17728 \end_inset
17729
17730 e.
17731 \begin_inset space \space{}
17732 \end_inset
17733
17734 in 
17735 \begin_inset Flex Code
17736 status collapsed
17737
17738 \begin_layout Plain Layout
17739 verbatim
17740 \end_layout
17741
17742 \end_inset
17743
17744  mode, with the characters set in a fixed-width typewriter font.
17745  Normally, spaces in this file are invisible, though two consecutive spaces
17746  are conserved, unlike \SpecialChar LyX
17747 's normal treatment of spaces.
17748  However, setting the 
17749 \begin_inset Flex Noun
17750 status collapsed
17751
17752 \begin_layout Plain Layout
17753 Mark
17754 \begin_inset space ~
17755 \end_inset
17756
17757 spaces
17758 \begin_inset space ~
17759 \end_inset
17760
17761 in
17762 \begin_inset space ~
17763 \end_inset
17764
17765 output
17766 \end_layout
17767
17768 \end_inset
17769
17770  checkbox typesets a mark to unambiguously define the presence of a space.
17771  
17772 \end_layout
17773
17774 \begin_layout Standard
17775 Generally, the master file is converted into a full \SpecialChar LaTeX
17776  file before typesetting,
17777  while the included files are converted to \SpecialChar LaTeX
17778  files that do not have all the
17779  preamble information.
17780 \end_layout
17781
17782 \begin_layout Subsection
17783 Cross-References Between Files
17784 \end_layout
17785
17786 \begin_layout Standard
17787 \begin_inset Box Shadowbox
17788 position "t"
17789 hor_pos "c"
17790 has_inner_box 1
17791 inner_pos "t"
17792 use_parbox 0
17793 use_makebox 0
17794 width "100col%"
17795 special "none"
17796 height "1in"
17797 height_special "totalheight"
17798 thickness "0.4pt"
17799 separation "3pt"
17800 shadowsize "4pt"
17801 framecolor "black"
17802 backgroundcolor "none"
17803 status open
17804
17805 \begin_layout Plain Layout
17806 This section is somewhat out of date.
17807  Need to describe default master documents and how children are opened when
17808  the master is.
17809  [[FIXME]]
17810 \end_layout
17811
17812 \end_inset
17813
17814
17815 \end_layout
17816
17817 \begin_layout Standard
17818 It is possible to set up cross-references between the different files.
17819  First, open all the files in question: let's call them A and B in a two
17820  file example, where B is included in A.
17821  Let's say you insert a label in A, then want to reference it in B.
17822  Open the cross-reference dialog whilst in document B, and you can select
17823  the 
17824 \begin_inset Quotes eld
17825 \end_inset
17826
17827 buffer
17828 \begin_inset Quotes erd
17829 \end_inset
17830
17831  to use.
17832 \end_layout
17833
17834 \begin_layout Subsection
17835 Bibliography Lists in all Subdocuments
17836 \end_layout
17837
17838 \begin_layout Standard
17839 If you work with child documents, you might want to have only one main bibliogra
17840 phy at the end, but still be able to have a selected bibliography for the
17841  child if you output it on its own.
17842  Here is how to achieve this.
17843 \end_layout
17844
17845 \begin_layout Standard
17846 For the main document, you just insert a bibliography inset at the place
17847  where the main bibliography has to appear (within the master file or within
17848  a child).
17849  If the bibliography inset is in the master file, the references will be
17850  inherited by all children, so they are available in the citation dialog
17851  within each child.
17852 \end_layout
17853
17854 \begin_layout Standard
17855 For child-specific bibliographies, insert bibliography insets within the
17856  child documents, at the place where the bibliography should appear when
17857  the child is compiled separately.
17858  However, the trick is to insert them into a branch (
17859 \family sans
17860 Insert\SpecialChar menuseparator
17861 Branch\SpecialChar menuseparator
17862 Insert New Branch...
17863 \family default
17864 ), e.
17865 \begin_inset space \thinspace{}
17866 \end_inset
17867
17868 g.
17869  called 
17870 \begin_inset Quotes eld
17871 \end_inset
17872
17873 Childonly
17874 \begin_inset Quotes erd
17875 \end_inset
17876
17877 .
17878  Within the children, activate the branch (
17879 \family sans
17880 Document\SpecialChar menuseparator
17881 Settings...\SpecialChar menuseparator
17882 Branches
17883 \family default
17884 ).
17885  Within the master, deactivate the branch (
17886 \family sans
17887 Document\SpecialChar menuseparator
17888 Settings...\SpecialChar menuseparator
17889 Branches
17890 \family default
17891 ).
17892  Now the child's bibliography will be ignored by the master, but considered
17893  by the child.
17894 \end_layout
17895
17896 \begin_layout Standard
17897 If you need multiple bibliographies (e.
17898 \begin_inset space \thinspace{}
17899 \end_inset
17900
17901 g., one per child in the 
17902 \emph on
17903 main document
17904 \emph default
17905 ), please refer to sec.
17906 \begin_inset space ~
17907 \end_inset
17908
17909
17910 \begin_inset CommandInset ref
17911 LatexCommand ref
17912 reference "subsec:Multiple-Bibliographies"
17913
17914 \end_inset
17915
17916 .
17917 \end_layout
17918
17919 \begin_layout Section
17920 \SpecialChar LyX
17921  Archives
17922 \end_layout
17923
17924 \begin_layout Standard
17925 Users sometimes need to be able to 
17926 \begin_inset Quotes eld
17927 \end_inset
17928
17929 bundle
17930 \begin_inset Quotes erd
17931 \end_inset
17932
17933  a \SpecialChar LyX
17934  file together with all the images (and other files) on which it depends,
17935  either for sending to a publisher or for sharing with a co-author.
17936  \SpecialChar LyX
17937  includes a Python script (
17938 \begin_inset Flex Code
17939 status collapsed
17940
17941 \begin_layout Plain Layout
17942 lyxpak.py
17943 \end_layout
17944
17945 \end_inset
17946
17947 ) that automates this process.
17948  To use it, you must have either the 
17949 \begin_inset Flex Code
17950 status collapsed
17951
17952 \begin_layout Plain Layout
17953 zipfile
17954 \end_layout
17955
17956 \end_inset
17957
17958  or 
17959 \begin_inset Flex Code
17960 status collapsed
17961
17962 \begin_layout Plain Layout
17963 tarfile
17964 \end_layout
17965
17966 \end_inset
17967
17968  python modules installed on your system.
17969  By default, the script prefers the 
17970 \begin_inset Flex Code
17971 status collapsed
17972
17973 \begin_layout Plain Layout
17974 gzip
17975 \end_layout
17976
17977 \end_inset
17978
17979 -compressed 
17980 \begin_inset Flex Code
17981 status collapsed
17982
17983 \begin_layout Plain Layout
17984 tar
17985 \end_layout
17986
17987 \end_inset
17988
17989  format on Unix-like systems and the 
17990 \begin_inset Flex Code
17991 status collapsed
17992
17993 \begin_layout Plain Layout
17994 zip
17995 \end_layout
17996
17997 \end_inset
17998
17999  format on Windows.
18000 \end_layout
18001
18002 \begin_layout Standard
18003 \SpecialChar LyX
18004 's configuration process will set the script up to export a `\SpecialChar LyX
18005  Archive',
18006  and this format will then be available under 
18007 \begin_inset Flex Code
18008 status collapsed
18009
18010 \begin_layout Plain Layout
18011 File\SpecialChar menuseparator
18012 Export
18013 \end_layout
18014
18015 \end_inset
18016
18017 .
18018 \end_layout
18019
18020 \begin_layout Standard
18021 Independently of the platform, the generation of a particular archive format
18022  can be forced by adding either the 
18023 \begin_inset Flex Code
18024 status collapsed
18025
18026 \begin_layout Plain Layout
18027 -t
18028 \end_layout
18029
18030 \end_inset
18031
18032  (for the 
18033 \begin_inset Flex Code
18034 status collapsed
18035
18036 \begin_layout Plain Layout
18037 tar
18038 \end_layout
18039
18040 \end_inset
18041
18042  format) or 
18043 \begin_inset Flex Code
18044 status collapsed
18045
18046 \begin_layout Plain Layout
18047 -z
18048 \end_layout
18049
18050 \end_inset
18051
18052  (for the 
18053 \begin_inset Flex Code
18054 status collapsed
18055
18056 \begin_layout Plain Layout
18057 zip
18058 \end_layout
18059
18060 \end_inset
18061
18062  format) switch to the 
18063 \begin_inset Flex Code
18064 status collapsed
18065
18066 \begin_layout Plain Layout
18067 \SpecialChar LyX
18068 \SpecialChar menuseparator
18069 \SpecialChar LyX
18070  Archive
18071 \end_layout
18072
18073 \end_inset
18074
18075  converter in 
18076 \begin_inset Flex Code
18077 status collapsed
18078
18079 \begin_layout Plain Layout
18080 Tools\SpecialChar menuseparator
18081 Preferences\SpecialChar menuseparator
18082 File Handling\SpecialChar menuseparator
18083 Converters
18084 \end_layout
18085
18086 \end_inset
18087
18088 .
18089  (Make sure you add the switch after the script name, not before it.)
18090 \end_layout
18091
18092 \begin_layout Section
18093 Fancy Headers and Footers
18094 \end_layout
18095
18096 \begin_layout Standard
18097 The default page layout is rather plain; for an 
18098 \begin_inset Flex Code
18099 status collapsed
18100
18101 \begin_layout Plain Layout
18102 article
18103 \end_layout
18104
18105 \end_inset
18106
18107  document class, all you get is a centered page number at the bottom of
18108  the page.
18109  This document uses KOMA-script's book class, so it appears to be a bit
18110  fancier.
18111  But to really put on a show, you need to set the document page style to
18112  
18113 \begin_inset Quotes eld
18114 \end_inset
18115
18116 fancy
18117 \begin_inset Quotes erd
18118 \end_inset
18119
18120 , as mentioned in the 
18121 \emph on
18122 User Guide
18123 \emph default
18124 .
18125  This section describes the \SpecialChar LaTeX
18126  code you need to insert in your \SpecialChar LaTeX
18127  preamble in
18128  order to get the desired effects.
18129 \end_layout
18130
18131 \begin_layout Standard
18132 For more information on fancy headers, see the 
18133 \begin_inset Flex Code
18134 status collapsed
18135
18136 \begin_layout Plain Layout
18137 fancyhdr
18138 \end_layout
18139
18140 \end_inset
18141
18142  package documentation.
18143  (
18144 \begin_inset Flex URL
18145 status collapsed
18146
18147 \begin_layout Plain Layout
18148
18149 https://www.ctan.org/tex-archive/help/Catalogue/entries/fancyhdr.html
18150 \end_layout
18151
18152 \end_inset
18153
18154 )
18155 \end_layout
18156
18157 \begin_layout Standard
18158 The page header is divided into three fields, not surprisingly labeled 
18159 \begin_inset Quotes eld
18160 \end_inset
18161
18162 left
18163 \begin_inset Quotes erd
18164 \end_inset
18165
18166
18167 \begin_inset Quotes eld
18168 \end_inset
18169
18170 center
18171 \begin_inset Quotes erd
18172 \end_inset
18173
18174 , and 
18175 \begin_inset Quotes eld
18176 \end_inset
18177
18178 right
18179 \begin_inset Quotes erd
18180 \end_inset
18181
18182 .
18183  The footer is also divided into these three fields.
18184  The \SpecialChar LaTeX
18185  commands to set these fields in the simplest manner are 
18186 \begin_inset Flex Code
18187 status collapsed
18188
18189 \begin_layout Plain Layout
18190
18191 \backslash
18192 lhead
18193 \end_layout
18194
18195 \end_inset
18196
18197
18198 \begin_inset Flex Code
18199 status collapsed
18200
18201 \begin_layout Plain Layout
18202
18203 \backslash
18204 chead
18205 \end_layout
18206
18207 \end_inset
18208
18209
18210 \begin_inset Flex Code
18211 status collapsed
18212
18213 \begin_layout Plain Layout
18214
18215 \backslash
18216 rhead
18217 \end_layout
18218
18219 \end_inset
18220
18221
18222 \begin_inset Flex Code
18223 status collapsed
18224
18225 \begin_layout Plain Layout
18226
18227 \backslash
18228 lfoot
18229 \end_layout
18230
18231 \end_inset
18232
18233 , etc.
18234  Suppose you wish to put your name in the upper left hand corner of each
18235  page.
18236  Simply insert the following command in the preamble: 
18237 \end_layout
18238
18239 \begin_layout Standard
18240
18241 \family typewriter
18242
18243 \backslash
18244 lhead{John Q.
18245  DocWriter}
18246 \end_layout
18247
18248 \begin_layout Standard
18249 You will now see your name in the upper left.
18250  If a field has a default entry that you would like to get rid of (often
18251  the page number appears in the central footer) simply include a command
18252  with a blank argument, e.
18253 \begin_inset space \thinspace{}
18254 \end_inset
18255
18256 g.:
18257 \end_layout
18258
18259 \begin_layout Standard
18260
18261 \family typewriter
18262
18263 \backslash
18264 cfoot{}
18265 \end_layout
18266
18267 \begin_layout Standard
18268 Let's get really fancy: lets put the section number with the word 
18269 \begin_inset Quotes eld
18270 \end_inset
18271
18272 Section
18273 \begin_inset Quotes erd
18274 \end_inset
18275
18276  (e.
18277 \begin_inset space \thinspace{}
18278 \end_inset
18279
18280 g.
18281 \begin_inset space \space{}
18282 \end_inset
18283
18284 Section 3) in the upper left, the page number (e.
18285 \begin_inset space \thinspace{}
18286 \end_inset
18287
18288 g.
18289 \begin_inset space \space{}
18290 \end_inset
18291
18292 Page 4) in the upper right, your name in the lower left, and the date in
18293  the lower right.
18294  The following commands should now appear in the preamble:
18295 \end_layout
18296
18297 \begin_layout Standard
18298
18299 \family typewriter
18300
18301 \backslash
18302 lhead{Section 
18303 \backslash
18304 thesection}
18305 \end_layout
18306
18307 \begin_layout Standard
18308
18309 \family typewriter
18310
18311 \backslash
18312 chead{}
18313 \end_layout
18314
18315 \begin_layout Standard
18316
18317 \family typewriter
18318
18319 \backslash
18320 rhead{Page 
18321 \backslash
18322 thepage}
18323 \end_layout
18324
18325 \begin_layout Standard
18326
18327 \family typewriter
18328
18329 \backslash
18330 lfoot{John Q.
18331  DocWriter}
18332 \end_layout
18333
18334 \begin_layout Standard
18335
18336 \family typewriter
18337
18338 \backslash
18339 cfoot{}
18340 \end_layout
18341
18342 \begin_layout Standard
18343
18344 \family typewriter
18345
18346 \backslash
18347 rfoot{
18348 \backslash
18349 today}
18350 \end_layout
18351
18352 \begin_layout Standard
18353 The commands 
18354 \begin_inset Flex Code
18355 status collapsed
18356
18357 \begin_layout Plain Layout
18358
18359 \backslash
18360 thesection
18361 \end_layout
18362
18363 \end_inset
18364
18365  and 
18366 \begin_inset Flex Code
18367 status collapsed
18368
18369 \begin_layout Plain Layout
18370
18371 \backslash
18372 thepage
18373 \end_layout
18374
18375 \end_inset
18376
18377  access \SpecialChar LaTeX
18378 's section and page counters, and so print out the current section
18379  and page number.
18380  
18381 \begin_inset Flex Code
18382 status collapsed
18383
18384 \begin_layout Plain Layout
18385
18386 \backslash
18387 today
18388 \end_layout
18389
18390 \end_inset
18391
18392  simply prints out today's date.
18393 \end_layout
18394
18395 \begin_layout Standard
18396 The thicknesses of the horizontal rules drawn beneath the header and above
18397  the footer can also be modified.
18398  If you don't want one of the rules, set its thickness to 0.
18399  The header rule has a default thickness of 0.4pt, the footer rule is 0pt.
18400  Use commands
18401 \family typewriter
18402  
18403 \family default
18404 like 
18405 \begin_inset Flex Code
18406 status collapsed
18407
18408 \begin_layout Plain Layout
18409
18410 \backslash
18411 renewcommand{
18412 \backslash
18413 headrulewidth}{0.4pt}
18414 \end_layout
18415
18416 \end_inset
18417
18418  and 
18419 \begin_inset Flex Code
18420 status collapsed
18421
18422 \begin_layout Plain Layout
18423
18424 \backslash
18425 renewcommand{
18426 \backslash
18427 footrulewidth}{0.4pt}
18428 \end_layout
18429
18430 \end_inset
18431
18432  to set the thicknesses.
18433 \end_layout
18434
18435 \begin_layout Standard
18436 You can switch the header/footer settings on and off for individual pages
18437  using commands like 
18438 \begin_inset Flex Code
18439 status collapsed
18440
18441 \begin_layout Plain Layout
18442
18443 \backslash
18444 thispagestyle{empty}
18445 \end_layout
18446
18447 \end_inset
18448
18449
18450 \begin_inset Flex Code
18451 status collapsed
18452
18453 \begin_layout Plain Layout
18454
18455 \backslash
18456 thispagestyle{plain}
18457 \end_layout
18458
18459 \end_inset
18460
18461 , and 
18462 \begin_inset Flex Code
18463 status collapsed
18464
18465 \begin_layout Plain Layout
18466
18467 \backslash
18468 thispagestyle{fancy}
18469 \end_layout
18470
18471 \end_inset
18472
18473 .
18474  Simply insert them in the text on the page you want changed and mark them
18475  as \SpecialChar TeX
18476  code.
18477  In fact, title pages are marked as plain by default, while following pages
18478  are marked fancy when using the global fancy setting.
18479 \end_layout
18480
18481 \begin_layout Standard
18482 As a final example, it is possible to include an image in the header or
18483  footer.
18484  Suppose you want to put a company logo in the upper lefthand corner.
18485  You might try something like
18486 \end_layout
18487
18488 \begin_layout Standard
18489
18490 \family typewriter
18491
18492 \backslash
18493 lhead{
18494 \backslash
18495 resizebox{1in}{!}{
18496 \backslash
18497 includegraphics{logo.eps}}}
18498 \end_layout
18499
18500 \begin_layout Standard
18501 \noindent
18502 (you may need to preface this with 
18503 \begin_inset Flex Code
18504 status collapsed
18505
18506 \begin_layout Plain Layout
18507
18508 \backslash
18509 usepackage{graphics}
18510 \end_layout
18511
18512 \end_inset
18513
18514  if you don't include graphics elsewhere in your document).
18515 \end_layout
18516
18517 \begin_layout Chapter
18518 \SpecialChar LyX
18519  and the World Wide Web
18520 \end_layout
18521
18522 \begin_layout Standard
18523 \SpecialChar LyX
18524  has long supported the export of documents to various web-friendly formats,
18525  such as HTML.
18526  Before version 2.0, however, HTML export was always accomplished by the
18527  use of external converters.
18528 \begin_inset Foot
18529 status collapsed
18530
18531 \begin_layout Plain Layout
18532 For details on the use of external converters with \SpecialChar LyX
18533 , see the 
18534 \emph on
18535 Converters
18536 \emph default
18537  section of the Customization manual.
18538 \end_layout
18539
18540 \end_inset
18541
18542  These fall into two large groups: there are converters that use \SpecialChar LaTeX
18543  as an
18544  intermediate format, such as 
18545 \begin_inset Flex Code
18546 status collapsed
18547
18548 \begin_layout Plain Layout
18549 htlatex
18550 \end_layout
18551
18552 \end_inset
18553
18554
18555 \begin_inset Flex Code
18556 status collapsed
18557
18558 \begin_layout Plain Layout
18559 html2latex
18560 \end_layout
18561
18562 \end_inset
18563
18564 , and 
18565 \begin_inset Flex Code
18566 status collapsed
18567
18568 \begin_layout Plain Layout
18569 plastex
18570 \end_layout
18571
18572 \end_inset
18573
18574 , relying upon \SpecialChar LyX
18575  to produce the \SpecialChar LaTeX
18576 ; and there is a converter that works directly
18577  on \SpecialChar LyX
18578  files, 
18579 \begin_inset Flex Code
18580 status collapsed
18581
18582 \begin_layout Plain Layout
18583 e\SpecialChar LyX
18584 er
18585 \end_layout
18586
18587 \end_inset
18588
18589 .
18590  All of these have different advantages and disadvantages.
18591  
18592 \end_layout
18593
18594 \begin_layout Standard
18595 The \SpecialChar LaTeX
18596 -based converters have the advantage that, in principle, they know everythin
18597 g about the exported document that \SpecialChar LaTeX
18598  does.
18599  Such converters do not care, for example, if a certain block of code was
18600  produced by \SpecialChar LyX
18601  or was Evil Red Text.
18602  These converters know about 
18603 \begin_inset Flex Code
18604 status collapsed
18605
18606 \begin_layout Plain Layout
18607 aux
18608 \end_layout
18609
18610 \end_inset
18611
18612  files, counters, and references, and can often make use of the 
18613 \begin_inset Flex Code
18614 status collapsed
18615
18616 \begin_layout Plain Layout
18617 bbl
18618 \end_layout
18619
18620 \end_inset
18621
18622  files generated by Bib\SpecialChar TeX
18623 .
18624  On the other hand, \SpecialChar LaTeX
18625  is a very hard language to parse—it is sometimes said
18626  that only \SpecialChar TeX
18627  itself understands \SpecialChar TeX
18628 —and \SpecialChar LaTeX
18629 -based converters will often choke on
18630  what seem to be quite simple constructs; complex ones can throw them completely
18631 , and as of this writing, for example, the 
18632 \emph on
18633 Embedded Objects
18634 \emph default
18635  manual will not export with 
18636 \begin_inset Flex Code
18637 status collapsed
18638
18639 \begin_layout Plain Layout
18640 htlatex
18641 \end_layout
18642
18643 \end_inset
18644
18645 , though the others will.
18646  The other issue concerns how math is handled.
18647  These converters typically convert the formulae into little pictures that
18648  are then linked from the HTML document.
18649  Since these are actually generated by \SpecialChar LaTeX
18650 , they are accurate.
18651  But they do not scale well, and just getting them to look as if they are
18652  actually meant to be in your document—so that the font sizes seem to be
18653  roughly the same—can be a challenge.
18654 \end_layout
18655
18656 \begin_layout Standard
18657 Alex Fernandez's 
18658 \begin_inset Flex Code
18659 status collapsed
18660
18661 \begin_layout Plain Layout
18662 e\SpecialChar LyX
18663 er
18664 \end_layout
18665
18666 \end_inset
18667
18668  (
18669 \begin_inset CommandInset href
18670 LatexCommand href
18671 name "http://pinchito.es/elyxer/"
18672 target "http://pinchito.es/elyxer/"
18673 literal "false"
18674
18675 \end_inset
18676
18677 ) solves some of these problems.
18678  In particular, the formulae it produces scale perfectly, since it renders
18679  math using a combination of HTML and CSS rather than converting the formulae
18680  to images.
18681  But even moderately complex formula are rendered less well than with 
18682 \begin_inset Flex Code
18683 status collapsed
18684
18685 \begin_layout Plain Layout
18686 htlatex
18687 \end_layout
18688
18689 \end_inset
18690
18691 ; this reflects the limitations of HTML.
18692 \begin_inset Foot
18693 status collapsed
18694
18695 \begin_layout Plain Layout
18696 That said, 
18697 \begin_inset Flex Code
18698 status collapsed
18699
18700 \begin_layout Plain Layout
18701 e\SpecialChar LyX
18702 er
18703 \end_layout
18704
18705 \end_inset
18706
18707  can also use jsMath and MathJax for equations, but this setting is only
18708  available globally and requires one to have access to a server that runs
18709  the backend.
18710 \end_layout
18711
18712 \end_inset
18713
18714  More importantly (as of version 1.1.1, at least), 
18715 \begin_inset Flex Code
18716 status collapsed
18717
18718 \begin_layout Plain Layout
18719 e\SpecialChar LyX
18720 er
18721 \end_layout
18722
18723 \end_inset
18724
18725  has limited support for math macros and no support for user-defined paragraph
18726  or character styles.
18727  These limitations make 
18728 \begin_inset Flex Code
18729 status collapsed
18730
18731 \begin_layout Plain Layout
18732 e\SpecialChar LyX
18733 er
18734 \end_layout
18735
18736 \end_inset
18737
18738  unsuitable for many of the documents \SpecialChar LyX
18739  users produce.
18740  In principle, of course, these problems could be solved, but the \SpecialChar LyX
18741  developers
18742  have decided to follow a different path and have made \SpecialChar LyX
18743  itself capable of
18744  writing XHTML, just as it is capable of writing \SpecialChar LaTeX
18745 , DocBook, and plaintext.
18746 \end_layout
18747
18748 \begin_layout Standard
18749 As of this writing, XHTML output remains under development and should probably
18750  be regarded as 
18751 \begin_inset Quotes eld
18752 \end_inset
18753
18754 experimental
18755 \begin_inset Quotes erd
18756 \end_inset
18757
18758 .
18759 \begin_inset Foot
18760 status collapsed
18761
18762 \begin_layout Plain Layout
18763 The file 
18764 \begin_inset Flex Code
18765 status collapsed
18766
18767 \begin_layout Plain Layout
18768 development/HTML/HTML.notes
18769 \end_layout
18770
18771 \end_inset
18772
18773 , which can be found in the \SpecialChar LyX
18774  source tree or 
18775 \begin_inset CommandInset href
18776 LatexCommand href
18777 name "accessed online"
18778 target "https://www.lyx.org/trac/browser/lyxgit/development/HTML/HTML.notes?rev=master"
18779 literal "false"
18780
18781 \end_inset
18782
18783 , usually contains up-to-date information about the state of XHTML output.
18784  See also the list of XHTML bugs on 
18785 \begin_inset CommandInset href
18786 LatexCommand href
18787 name "the bug tracker"
18788 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"
18789 literal "false"
18790
18791 \end_inset
18792
18793 .
18794 \end_layout
18795
18796 \end_inset
18797
18798  Still, the developers have chosen this approach because it has several
18799  potential advantages over the other two.
18800 \end_layout
18801
18802 \begin_layout Standard
18803 These advantages are primarily due to the fact that the XHTML output routines,
18804  since they are part of \SpecialChar LyX
18805 , know everything \SpecialChar LyX
18806  knows about the document being
18807  exported.
18808 \begin_inset Foot
18809 status collapsed
18810
18811 \begin_layout Plain Layout
18812 Another advantage is that, since these routines are internal to \SpecialChar LyX
18813 , they are
18814  immune to changes in \SpecialChar LyX
18815 's file format, or to changes in the semantics of
18816  existing insets.
18817 \end_layout
18818
18819 \end_inset
18820
18821  So they know about the table of contents (as displayed in the outline),
18822  about the counters associated with different paragraph styles, and about
18823  user-defined styles.
18824  The XHTML output routines know what \SpecialChar LyX
18825  knows about internationalization,
18826  too, so they will output 
18827 \begin_inset Quotes eld
18828 \end_inset
18829
18830 Chapter 1
18831 \begin_inset Quotes erd
18832 \end_inset
18833
18834  or 
18835 \begin_inset Quotes eld
18836 \end_inset
18837
18838
18839 \lang ngerman
18840 Kapitel
18841 \lang english
18842  1
18843 \begin_inset Quotes erd
18844 \end_inset
18845
18846 , depending upon the language in effect at the time.
18847  
18848 \end_layout
18849
18850 \begin_layout Standard
18851 Quite generally, the output routines know what \SpecialChar LyX
18852  knows about document layout,
18853  that is, about how the document is to be rendered on screen.
18854  We use this information when we output the document as XHTML.
18855  In particular, \SpecialChar LyX
18856  
18857 \emph on
18858 automatically
18859 \emph default
18860  generates CSS style information corresponding to the layout information
18861  it uses to render the document on screen: if section headings are supposed
18862  to be sans-serif and bold as seen in \SpecialChar LyX
18863 , then (by default) they will be sans-seri
18864 f and bold when viewed in a web browser, too.
18865  And this is true not just for pre-defined styles, like Section, but for
18866  any style, including user-defined styles.
18867  Indeed, the XHTML output routines make no distinction between user-defined
18868  paragraph and 
18869 \change_deleted 244031559 1603876931
18870 character
18871 \change_inserted 244031559 1603876940
18872 text
18873 \change_unchanged
18874  styles and \SpecialChar LyX
18875 's own pre-defined styles: in each case, everything \SpecialChar LyX
18876  knows about
18877  the styles is contained in the layout files.
18878  And much the same is true as regards pre-defined textual insets, such as
18879  footnotes, and various custom insets.
18880  
18881 \end_layout
18882
18883 \begin_layout Standard
18884 The result is that XHTML output can be customized and extended in exactly
18885  the same way \SpecialChar LaTeX
18886  output can be customized and extended: through layout files
18887  and modules.
18888  See chapter five of the 
18889 \emph on
18890 Customization 
18891 \emph default
18892 manual for the details.
18893 \end_layout
18894
18895 \begin_layout Standard
18896 The remainder of this chapter contains more detailed information on XHTML
18897  output, its limitations, and ways to work around those limitations.
18898 \end_layout
18899
18900 \begin_layout Section
18901 Math Output in XHTML
18902 \end_layout
18903
18904 \begin_layout Standard
18905 \SpecialChar LyX
18906  offers four choices for how math is rendered.
18907  These have various advantages and disadvantages:
18908 \end_layout
18909
18910 \begin_layout Itemize
18911 MathML
18912 \begin_inset Newline newline
18913 \end_inset
18914
18915 MathML is a dialect of XML designed specifically for mathematics on the
18916  web, and it typically renders very well in browsers that support it.
18917  The disadvantage is that not all browsers support MathML, and support is
18918  not complete even in the Gecko-based browsers, such as Firefox.
18919 \begin_inset Newline newline
18920 \end_inset
18921
18922 If \SpecialChar LyX
18923  is unable to render a formula as MathML—for example, if the formula
18924  uses the 
18925 \begin_inset Flex Code
18926 status collapsed
18927
18928 \begin_layout Plain Layout
18929 xymatrix
18930 \end_layout
18931
18932 \end_inset
18933
18934  package or ERT—then it will instead output the formula as an image.
18935  
18936 \end_layout
18937
18938 \begin_layout Itemize
18939 HTML
18940 \begin_inset Newline newline
18941 \end_inset
18942
18943 As mentioned above, 
18944 \begin_inset Flex Code
18945 status collapsed
18946
18947 \begin_layout Plain Layout
18948 elyxer
18949 \end_layout
18950
18951 \end_inset
18952
18953  outputs math as HTML, styled by CSS.
18954 \begin_inset Foot
18955 status collapsed
18956
18957 \begin_layout Plain Layout
18958 \SpecialChar LyX
18959  has borrowed some of the CSS for its HTML output from 
18960 \begin_inset Flex Code
18961 status collapsed
18962
18963 \begin_layout Plain Layout
18964 elyxer
18965 \end_layout
18966
18967 \end_inset
18968
18969 .
18970 \end_layout
18971
18972 \end_inset
18973
18974  For simple formulae, this can work quite well, though with more complicated
18975  formulae it tends to break down.
18976  Still, this method has the advantage that it is very widely supported and
18977  so it may be appropriate for documents that contain only a little, fairly
18978  simple math.
18979 \begin_inset Newline newline
18980 \end_inset
18981
18982 If Lyx is unable to render a formula as HTML—for example, if the formula
18983  uses the 
18984 \begin_inset Flex Code
18985 status collapsed
18986
18987 \begin_layout Plain Layout
18988 xymatrix
18989 \end_layout
18990
18991 \end_inset
18992
18993  package or ERT—then it will instead output the formula as an image.
18994  
18995 \end_layout
18996
18997 \begin_layout Itemize
18998 Images
18999 \begin_inset Newline newline
19000 \end_inset
19001
19002 Like 
19003 \begin_inset Flex Code
19004 status collapsed
19005
19006 \begin_layout Plain Layout
19007 htlatex
19008 \end_layout
19009
19010 \end_inset
19011
19012 , \SpecialChar LyX
19013  will output formulae as images, the very same images, in fact, that are
19014  used for instant preview.
19015 \begin_inset Foot
19016 status collapsed
19017
19018 \begin_layout Plain Layout
19019 Instant preview does 
19020 \emph on
19021 not 
19022 \emph default
19023 have to be on for images to be output, however.
19024 \end_layout
19025
19026 \end_inset
19027
19028  The advantage to this method is that the images are simply generated by
19029  \SpecialChar LaTeX
19030 , so they are very accurate.
19031  The disadvantage, as mentioned earlier, is that these are bitmapped images,
19032  so they do not scale terribly well, and one cannot copy them, etc.
19033 \begin_inset Newline newline
19034 \end_inset
19035
19036 The size of the images can be controlled by setting the 
19037 \begin_inset Quotes eld
19038 \end_inset
19039
19040 Math Images Scaling
19041 \begin_inset Quotes erd
19042 \end_inset
19043
19044  parameter under 
19045 \begin_inset Flex Noun
19046 status collapsed
19047
19048 \begin_layout Plain Layout
19049 Document\SpecialChar menuseparator
19050 Settings\SpecialChar menuseparator
19051 Formats
19052 \end_layout
19053
19054 \end_inset
19055
19056 .
19057 \begin_inset Foot
19058 status collapsed
19059
19060 \begin_layout Plain Layout
19061 For those who want to know, this controls the resolution of the image in
19062  dots per inch and is based upon a default of 75 dpi.
19063 \end_layout
19064
19065 \end_inset
19066
19067
19068 \begin_inset Newline newline
19069 \end_inset
19070
19071 If \SpecialChar LyX
19072  for some reason fails to create an image for a formula (e.g., if a required
19073  \SpecialChar LaTeX
19074  package is not installed), then it will fall back to outputing the raw
19075  \SpecialChar LaTeX
19076 .
19077 \end_layout
19078
19079 \begin_layout Itemize
19080 \SpecialChar LaTeX
19081
19082 \begin_inset Newline newline
19083 \end_inset
19084
19085 Finally, \SpecialChar LyX
19086  will happily output math as \SpecialChar LaTeX
19087 .
19088  As well as being the output of last resort, this method can be used with
19089  such tools as 
19090 \begin_inset CommandInset href
19091 LatexCommand href
19092 name "jsMath"
19093 target "http://www.math.union.edu/~dpvc/jsMath/"
19094 literal "false"
19095
19096 \end_inset
19097
19098 , which uses JavaScript to render \SpecialChar LaTeX
19099  embedded in HTML documents.
19100  \SpecialChar LyX
19101  wraps the \SpecialChar LaTeX
19102  in either a 
19103 \begin_inset Flex Code
19104 status collapsed
19105
19106 \begin_layout Plain Layout
19107 span
19108 \end_layout
19109
19110 \end_inset
19111
19112  (for inline formulas) or 
19113 \begin_inset Flex Code
19114 status collapsed
19115
19116 \begin_layout Plain Layout
19117 div
19118 \end_layout
19119
19120 \end_inset
19121
19122  (for displayed formulas) with 
19123 \begin_inset Flex Code
19124 status collapsed
19125
19126 \begin_layout Plain Layout
19127 class='math'
19128 \end_layout
19129
19130 \end_inset
19131
19132 , as is required for jsMath.
19133 \end_layout
19134
19135 \begin_layout Standard
19136 One of these output methods must be selected under 
19137 \begin_inset Flex Noun
19138 status collapsed
19139
19140 \begin_layout Plain Layout
19141 Document\SpecialChar menuseparator
19142 Settings\SpecialChar menuseparator
19143 Formats
19144 \end_layout
19145
19146 \end_inset
19147
19148 .
19149  By default, \SpecialChar LyX
19150  outputs MathML.
19151  This is a document-wide setting, therefore.
19152 \end_layout
19153
19154 \begin_layout Standard
19155 Eventually, \SpecialChar LyX
19156  will offer the user the option to select an alternate output
19157  method for a particular inset, say, one that isn't being rendered very
19158  well by MathML.
19159 \begin_inset Foot
19160 status collapsed
19161
19162 \begin_layout Plain Layout
19163 That said, since \SpecialChar LyX
19164  falls back to images if the inset contains ERT, then one
19165  can force output as an image by putting some harmless ERT into the math,
19166  for example: 
19167 \begin_inset Formula $a=b\relax$
19168 \end_inset
19169
19170 .
19171 \end_layout
19172
19173 \end_inset
19174
19175
19176 \end_layout
19177
19178 \begin_layout Section
19179 Bibliography and Citations
19180 \end_layout
19181
19182 \begin_layout Standard
19183 XHTML output fully supports bibliographies and citations.
19184  
19185 \end_layout
19186
19187 \begin_layout Standard
19188 Citation labels are generated by the same machinery that generates \SpecialChar LyX
19189 's on-screen
19190  labels, so the labels will look in the output much as they do in \SpecialChar LyX
19191 , though
19192  better.
19193  If you are using numerical citations, then \SpecialChar LyX
19194  will output numerical labels,
19195  such as [1] or [17], rather than simply showing the citation key in square
19196  brackets, as it does on-screen.
19197  If you are using author-year citations, then \SpecialChar LyX
19198  will add lowercase letters
19199  to the years, just as Bib\SpecialChar TeX
19200  does, if it finds more than one citation for
19201  a given author-year combination.
19202  The labels will be printed with the bibliography entries.
19203  Note that there is, at present, no way to customize the appearance of the
19204  labels, for example, to choose between square brackets and parentheses.
19205 \end_layout
19206
19207 \begin_layout Standard
19208 Bibliography output is handled by the same machinery that handles the presentati
19209 on of reference information in the citation dialog, so you will see in the
19210  XHTML output pretty much what you would see if you were to look at a given
19211  entry in the citation dialog.
19212  The formatting can be customized in your layout file or, preferably, in
19213  a module.
19214  See the 
19215 \emph on
19216 Customization
19217 \emph default
19218  manual for the details.
19219 \end_layout
19220
19221 \begin_layout Standard
19222 The main defect at present is that cross-referenced information is printed
19223  with every entry with which it is associated.
19224  So you can see things like this:
19225 \end_layout
19226
19227 \begin_layout Quote
19228 Jason Stanley, 
19229 \begin_inset Quotes eld
19230 \end_inset
19231
19232 Context and Logical Form
19233 \begin_inset Quotes erd
19234 \end_inset
19235
19236 , in 
19237 \emph on
19238 Language in Context: Selected Essays
19239 \emph default
19240  (Oxford: Oxford University Press, 2007), pp.
19241  30–68.
19242 \end_layout
19243
19244 \begin_layout Quote
19245 Jason Stanley, 
19246 \begin_inset Quotes eld
19247 \end_inset
19248
19249 Semantics in Context
19250 \begin_inset Quotes erd
19251 \end_inset
19252
19253 , in 
19254 \emph on
19255 Language in Context: Selected Essays
19256 \emph default
19257  (Oxford: Oxford University Press, 2007), pp.
19258  201–30.
19259 \end_layout
19260
19261 \begin_layout Standard
19262 This should be fixed before long.
19263 \end_layout
19264
19265 \begin_layout Standard
19266 There is no support at present for sectioned bibliographies.
19267  If you have multiple bibliographies, then \SpecialChar LyX
19268  will print the same bibliography
19269  over and over.
19270 \end_layout
19271
19272 \begin_layout Section
19273 Indexes
19274 \end_layout
19275
19276 \begin_layout Standard
19277 \SpecialChar LyX
19278  will happily export indexes as XHTML, but with certain limitations at the
19279  moment.
19280 \end_layout
19281
19282 \begin_layout Standard
19283 Index export will be most reliable when you do not attempt to use the fancy
19284  constructs that are described in the section on indexes in the 
19285 \emph on
19286 User's Guide
19287 \emph default
19288 .
19289 \begin_inset Foot
19290 status collapsed
19291
19292 \begin_layout Plain Layout
19293 The main issue here is that \SpecialChar LyX
19294  itself does not really handle these.
19295  It just lets you enter what you would have to enter in raw \SpecialChar LaTeX
19296 .
19297 \end_layout
19298
19299 \end_inset
19300
19301  We'll describe how they are handled using the subsection headings from
19302  that section.
19303 \end_layout
19304
19305 \begin_layout Itemize
19306 Grouping Index Entries (aka, sub-entries): \SpecialChar LyX
19307  makes an effort to support these,
19308  but the entries must be separated by 
19309 \begin_inset Quotes eld
19310 \end_inset
19311
19312  ! 
19313 \begin_inset Quotes erd
19314 \end_inset
19315
19316 , that is, there must be spaces around the exclamation point.
19317  This is because it is otherwise too difficult to check for escaped exclamation
19318  points, ones in math, and so forth.
19319 \end_layout
19320
19321 \begin_layout Itemize
19322 Page Ranges: There is no support at all for page ranges, since these make
19323  no sense with XHMTL.
19324  Instead, you will just get two index entries, one at either end.
19325 \end_layout
19326
19327 \begin_layout Itemize
19328 Cross-referencing: There is no support for cross-referencing.
19329  If \SpecialChar LyX
19330  finds an entry containing the 
19331 \begin_inset Quotes eld
19332 \end_inset
19333
19334 |see\SpecialChar ldots
19335
19336 \begin_inset Quotes erd
19337 \end_inset
19338
19339  construct, it is just dropped, and the rest is treated as an ordinary index
19340  entry.
19341 \end_layout
19342
19343 \begin_layout Itemize
19344 Index Entry Order: \SpecialChar LyX
19345  does support attempts to fix the sorting order.
19346  It will take what is before the first `@' it finds and use that for sorting,
19347  taking what follows the first `@' to be the actual entry.
19348  At present, \SpecialChar LyX
19349  does not check for escaped `@', so do not try to index email
19350  addresses.
19351 \end_layout
19352
19353 \begin_layout Itemize
19354 Index Entry Layout: You can format entries by using the text style dialog,
19355  or by using any other method available within \SpecialChar LyX
19356  itself.
19357  There is no support for constructs like: 
19358 \begin_inset Quotes eld
19359 \end_inset
19360
19361 entry|textbf
19362 \begin_inset Quotes erd
19363 \end_inset
19364
19365 .
19366  Indeed, if \SpecialChar LyX
19367  finds a pipe symbol, `|', in an entry, it will delete it and
19368  everything that follows it.
19369 \end_layout
19370
19371 \begin_layout Itemize
19372 Multiple Indexes: There is no support for multiple indexes.
19373  Rather, all index entries will be printed as one large index.
19374  To avoid our printing several versions of the index, we print only the
19375  main index, so make sure you have one.
19376 \end_layout
19377
19378 \begin_layout Section
19379 Nomenclature and Glossary
19380 \end_layout
19381
19382 \begin_layout Standard
19383 There is at present no support for glossaries.
19384  Adding it would be fairly trivial, and welcome.
19385 \end_layout
19386
19387 \begin_layout Chapter
19388
19389 \change_inserted 1075283030 1616534180
19390 DocBook Output
19391 \end_layout
19392
19393 \begin_layout Standard
19394
19395 \change_inserted 1075283030 1616534386
19396 Apart from HTML, \SpecialChar LyX
19397  can generate documents in the DocBook XML vocabulary.
19398  With versions 2.3 and before, only select templates could be used to generate
19399  DocBook documents (only version 4).
19400  Starting with \SpecialChar LyX
19401  2.4, most \SpecialChar LyX
19402  layouts can generate valid DocBook documents (only
19403  version 5).
19404  This feature is built into \SpecialChar LyX
19405  and does not require the use of external tools.
19406 \end_layout
19407
19408 \begin_layout Standard
19409
19410 \change_inserted 1075283030 1616534437
19411 The result is that the DocBook output can be customized and extended in
19412  exactly the same way \SpecialChar LaTeX
19413  output can be customized and extended: through layout
19414  files and modules.
19415  See chapter five of the 
19416 \emph on
19417 Customization 
19418 \emph default
19419 manual for the details.
19420 \end_layout
19421
19422 \begin_layout Standard
19423
19424 \change_inserted 1075283030 1616534475
19425 Most \SpecialChar LyX
19426  features are supported with DocBook, like math output.
19427 \end_layout
19428
19429 \begin_layout Itemize
19430
19431 \change_inserted 1075283030 1616534741
19432 Math output is performed mostly in MathML (the major exception being constructio
19433 ns not supported by \SpecialChar LyX
19434 , i.e.
19435  ERTs).
19436  All formulae are also available in raw \SpecialChar TeX
19437  in the DocBook output for further
19438  processing.
19439 \end_layout
19440
19441 \begin_layout Itemize
19442
19443 \change_inserted 1075283030 1616534852
19444 Bibliographies and citations are implemented, including with an external
19445  BibTeX file.
19446  Bibliography entries are not prerendered when the detailed information
19447  are available, but rather output with the standard DocBook constructs.
19448  The external DocBook processor is expected to handle the rendering of entries.
19449 \end_layout
19450
19451 \begin_layout Itemize
19452
19453 \change_inserted 1075283030 1616534863
19454 Indexes are supported, including multiple indices.
19455  Grouping (with 
19456 \family typewriter
19457 !
19458 \family default
19459 ), page ranges, and cross-references (
19460 \family typewriter
19461 |see
19462 \family default
19463 ) are supported, with the exception of the same symbols escaped.
19464  Entry order (
19465 \family typewriter
19466 @
19467 \family default
19468 ) and layout (
19469 \family typewriter
19470 |mathbf
19471 \family default
19472 ) are not supported.
19473  There is no support for escaping of index entries.
19474 \end_layout
19475
19476 \begin_layout Itemize
19477
19478 \change_inserted 1075283030 1616534884
19479 Glossaries are implemented.
19480 \end_layout
19481
19482 \begin_layout Standard
19483
19484 \change_inserted 1075283030 1616534894
19485 Two major parameters can be set at the document level.
19486 \end_layout
19487
19488 \begin_layout Itemize
19489
19490 \change_inserted 1075283030 1616534948
19491 Format for tables: \SpecialChar LyX
19492  can generate tables either as HTML (default value) or
19493  CALS, depending on the user's requirements.
19494  Most DocBook processors accept both formats.
19495 \end_layout
19496
19497 \begin_layout Itemize
19498
19499 \change_inserted 1075283030 1616535006
19500 MathML prefix: in DocBook, MathML is included within its own name space,
19501  unlike HTML.
19502  The implication is that there must be an indication of the tags belonging
19503  to the MathML standard.
19504  Three choices are offered: 
19505 \end_layout
19506
19507 \begin_deeper
19508 \begin_layout Itemize
19509
19510 \change_inserted 1075283030 1616535044
19511 Inline: the MathML name space is defined for each formula (using the 
19512 \family typewriter
19513 xmlns
19514 \family default
19515  attribute on each formula)
19516 \end_layout
19517
19518 \begin_layout Itemize
19519
19520 \change_inserted 1075283030 1616535090
19521 With the 
19522 \family typewriter
19523 m
19524 \family default
19525  prefix (default): the MathML name space is defined at the document level
19526  (using the 
19527 \family typewriter
19528 xmlns:m
19529 \family default
19530  attribute on the root element).
19531  Each MathML is prefixed with 
19532 \family typewriter
19533 m
19534 \family default
19535 : for instance, 
19536 \family typewriter
19537 m:math
19538 \end_layout
19539
19540 \begin_layout Itemize
19541
19542 \change_inserted 1075283030 1616620405
19543 With the 
19544 \family typewriter
19545 mml
19546 \family default
19547  prefix: similar to the 
19548 \family typewriter
19549 m
19550 \family default
19551  option, but with 
19552 \family typewriter
19553 mml
19554 \end_layout
19555
19556 \begin_layout Standard
19557
19558 \change_inserted 1075283030 1616620470
19559 This option is especially useful if you want \SpecialChar LyX
19560  to match your personal style
19561  or to work with buggy software that only accepts one prefix for MathML.
19562 \change_unchanged
19563
19564 \end_layout
19565
19566 \end_deeper
19567 \begin_layout Chapter
19568 The \SpecialChar LyX
19569  Server
19570 \end_layout
19571
19572 \begin_layout Section
19573 Introduction
19574 \end_layout
19575
19576 \begin_layout Standard
19577 The `\SpecialChar LyX
19578  server' allows other programs to talk to \SpecialChar LyX
19579 , invoke \SpecialChar LyX
19580  commands, and retrieve
19581  information about the \SpecialChar LyX
19582  internal state.
19583  This is only intended for advanced users, but they should find it useful.
19584  It is by writing to the \SpecialChar LyX
19585  server, for example, that bibliography managers,
19586  such as JabRef, are able to 
19587 \begin_inset Quotes eld
19588 \end_inset
19589
19590 push
19591 \begin_inset Quotes erd
19592 \end_inset
19593
19594  citations to \SpecialChar LyX
19595 .
19596 \end_layout
19597
19598 \begin_layout Section
19599 Starting the \SpecialChar LyX
19600  Server
19601 \begin_inset CommandInset label
19602 LatexCommand label
19603 name "sec:Starting-the-Server"
19604
19605 \end_inset
19606
19607
19608 \end_layout
19609
19610 \begin_layout Standard
19611 The \SpecialChar LyX
19612  server works through the use of a pair of named pipes.
19613  These are usually located in 
19614 \begin_inset Flex Code
19615 status collapsed
19616
19617 \begin_layout Plain Layout
19618 UserDir
19619 \end_layout
19620
19621 \end_inset
19622
19623 , (except on Windows, where 
19624 \emph on
19625 local
19626 \emph default
19627  named pipes are special objects located in 
19628 \begin_inset Flex Code
19629 status collapsed
19630
19631 \begin_layout Plain Layout
19632
19633 \backslash
19634
19635 \backslash
19636 .
19637 \backslash
19638 pipe
19639 \end_layout
19640
19641 \end_inset
19642
19643 ) and have the names 
19644 \begin_inset Quotes eld
19645 \end_inset
19646
19647
19648 \begin_inset Flex Code
19649 status collapsed
19650
19651 \begin_layout Plain Layout
19652 lyxpipe.in
19653 \end_layout
19654
19655 \end_inset
19656
19657
19658 \begin_inset Quotes erd
19659 \end_inset
19660
19661  and 
19662 \begin_inset Quotes eld
19663 \end_inset
19664
19665
19666 \begin_inset Flex Code
19667 status collapsed
19668
19669 \begin_layout Plain Layout
19670 lyxpipe.out
19671 \end_layout
19672
19673 \end_inset
19674
19675
19676 \begin_inset Quotes erd
19677 \end_inset
19678
19679 .
19680  External programs write into 
19681 \begin_inset Flex Code
19682 status collapsed
19683
19684 \begin_layout Plain Layout
19685 lyxpipe.in
19686 \end_layout
19687
19688 \end_inset
19689
19690  and read back data from 
19691 \begin_inset Flex Code
19692 status collapsed
19693
19694 \begin_layout Plain Layout
19695 lyxpipe.out
19696 \end_layout
19697
19698 \end_inset
19699
19700 .
19701  The stem of the pipe names can be defined in the 
19702 \begin_inset Flex Noun
19703 status collapsed
19704
19705 \begin_layout Plain Layout
19706 Tools\SpecialChar menuseparator
19707 Preferences
19708 \end_layout
19709
19710 \end_inset
19711
19712  dialog, for example 
19713 \begin_inset Flex Code
19714 status collapsed
19715
19716 \begin_layout Plain Layout
19717 "/home/myhome/lyxpipe"
19718 \end_layout
19719
19720 \end_inset
19721
19722 , or 
19723 \begin_inset Flex Code
19724 status collapsed
19725
19726 \begin_layout Plain Layout
19727 "
19728 \backslash
19729
19730 \backslash
19731 .
19732 \backslash
19733 pipe
19734 \backslash
19735 lyxpipe"
19736 \end_layout
19737
19738 \end_inset
19739
19740  on Windows (where any working path instead of lyxpipe can be used, for
19741  example 
19742 \begin_inset Flex Code
19743 status collapsed
19744
19745 \begin_layout Plain Layout
19746 "
19747 \backslash
19748
19749 \backslash
19750 .
19751 \backslash
19752 pipe
19753 \backslash
19754 my
19755 \backslash
19756 lyx
19757 \backslash
19758 pipe"
19759 \end_layout
19760
19761 \end_inset
19762
19763  would also work).
19764  You 
19765 \emph on
19766 must
19767 \emph default
19768  configure this manually in order for the server to start.
19769 \end_layout
19770
19771 \begin_layout Standard
19772 \SpecialChar LyX
19773  will add the '
19774 \begin_inset Flex Code
19775 status collapsed
19776
19777 \begin_layout Plain Layout
19778 .in
19779 \end_layout
19780
19781 \end_inset
19782
19783 ' and '
19784 \begin_inset Flex Code
19785 status collapsed
19786
19787 \begin_layout Plain Layout
19788 .out
19789 \end_layout
19790
19791 \end_inset
19792
19793 ' to create the pipes.
19794  If one of the pipes already exists, \SpecialChar LyX
19795  will assume that another \SpecialChar LyX
19796  process
19797  is already running and will not start the server.
19798  On POSIX (Unix like) systems, if for some other reason, an unused 
19799 \begin_inset Quotes eld
19800 \end_inset
19801
19802 stale
19803 \begin_inset Quotes erd
19804 \end_inset
19805
19806  pipe is left in existence when \SpecialChar LyX
19807  closes, then \SpecialChar LyX
19808  will try to delete it.
19809  If this fails for some reason, you will need to delete the pipes manually
19810  and then restart \SpecialChar LyX
19811 .
19812  On Windows, pipes are deleted by the OS on program termination or crash,
19813  so 
19814 \begin_inset Quotes eld
19815 \end_inset
19816
19817 stale
19818 \begin_inset Quotes erd
19819 \end_inset
19820
19821  pipes should not be possible.
19822 \end_layout
19823
19824 \begin_layout Standard
19825 To have several \SpecialChar LyX
19826  processes with servers at the same time, you have to use
19827  different configurations, perhaps by using separate user directories, each
19828  with its own 
19829 \begin_inset Flex Code
19830 status collapsed
19831
19832 \begin_layout Plain Layout
19833 preferences
19834 \end_layout
19835
19836 \end_inset
19837
19838  file, for each process.
19839 \end_layout
19840
19841 \begin_layout Standard
19842 If you are developing a client program, you might find it useful to enable
19843  debugging information from the \SpecialChar LyX
19844  server.
19845  Do this by starting \SpecialChar LyX
19846  as 
19847 \begin_inset Flex Code
19848 status collapsed
19849
19850 \begin_layout Plain Layout
19851 lyx -dbg lyxserver
19852 \end_layout
19853
19854 \end_inset
19855
19856 .
19857 \end_layout
19858
19859 \begin_layout Standard
19860 You can find a complete example client written in C++ in the source distribution
19861  as 
19862 \begin_inset Flex Code
19863 status collapsed
19864
19865 \begin_layout Plain Layout
19866 development/lyxserver/server_monitor.cpp
19867 \end_layout
19868
19869 \end_inset
19870
19871 .
19872 \end_layout
19873
19874 \begin_layout Standard
19875 Another useful tool is the command-line based client found in 
19876 \begin_inset Flex Code
19877 status collapsed
19878
19879 \begin_layout Plain Layout
19880 src/client/lyxclient
19881 \end_layout
19882
19883 \end_inset
19884
19885 .
19886 \end_layout
19887
19888 \begin_layout Section
19889 Normal communication
19890 \end_layout
19891
19892 \begin_layout Standard
19893 To issue a \SpecialChar LyX
19894  call, the client writes a line of ASCII text into the input
19895  pipe.
19896  This line has the following format:
19897 \end_layout
19898
19899 \begin_layout Quote
19900 LYXCMD:
19901 \emph on
19902 clientname
19903 \emph default
19904 :
19905 \emph on
19906 function
19907 \emph default
19908 :
19909 \emph on
19910 argument
19911 \end_layout
19912
19913 \begin_layout Description
19914 clientname is a name that the client can choose arbitrarily.
19915  Its only use is that \SpecialChar LyX
19916  will echo it if it sends an answer—so a client can
19917  dispatch results from different requesters.
19918 \end_layout
19919
19920 \begin_layout Description
19921 function is the function you want \SpecialChar LyX
19922  to perform.
19923  It is the same as the commands you'd use in the minibuffer.
19924 \end_layout
19925
19926 \begin_layout Description
19927 argument is an optional argument which is meaningful only to some functions
19928  (for instance, the 
19929 \begin_inset Quotes eld
19930 \end_inset
19931
19932 self-insert
19933 \begin_inset Quotes erd
19934 \end_inset
19935
19936  LFUN will insert the argument as text at the cursor position).
19937 \end_layout
19938
19939 \begin_layout Standard
19940 The answer from \SpecialChar LyX
19941  will arrive in the output pipe and be of the form
19942 \end_layout
19943
19944 \begin_layout Quote
19945 INFO:
19946 \emph on
19947 clientname
19948 \emph default
19949 :
19950 \emph on
19951 function
19952 \emph default
19953 :
19954 \emph on
19955 data
19956 \end_layout
19957
19958 \begin_layout Standard
19959 where 
19960 \emph on
19961 clientname
19962 \emph default
19963  and 
19964 \emph on
19965 function
19966 \emph default
19967  are just echoed from the command request, while 
19968 \emph on
19969 data
19970 \emph default
19971  is more or less useful information filled according to how the command
19972  execution worked out.
19973  Some commands, such as 
19974 \begin_inset Quotes eld
19975 \end_inset
19976
19977 font-state
19978 \begin_inset Quotes erd
19979 \end_inset
19980
19981 , will return information about the internal state of \SpecialChar LyX
19982 , while other will
19983  return an empty data-response.
19984  This means that the command execution went fine.
19985 \end_layout
19986
19987 \begin_layout Standard
19988 In case of errors, the response from \SpecialChar LyX
19989  will have this form
19990 \end_layout
19991
19992 \begin_layout Quote
19993 ERROR:
19994 \emph on
19995 clientname
19996 \emph default
19997 :
19998 \emph on
19999 function
20000 \emph default
20001 :
20002 \emph on
20003 error message
20004 \end_layout
20005
20006 \begin_layout Standard
20007 where the 
20008 \emph on
20009 error message
20010 \emph default
20011  should contain an explanation of why the command failed.
20012 \end_layout
20013
20014 \begin_layout Standard
20015 Examples:
20016 \end_layout
20017
20018 \begin_layout LyX-Code
20019 echo "LYXCMD:test:beginning-of-buffer:" >~/.lyxpipe.in
20020 \begin_inset Newline newline
20021 \end_inset
20022
20023 echo "LYXCMD:test:get-xy:" >~/.lyxpipe.in
20024 \begin_inset Newline newline
20025 \end_inset
20026
20027 read a <~/.lyxpipe.out
20028 \begin_inset Newline newline
20029 \end_inset
20030
20031 echo $a
20032 \end_layout
20033
20034 \begin_layout Subsection
20035 AppleScript (Mac OS X)
20036 \end_layout
20037
20038 \begin_layout Standard
20039 Since \SpecialChar LyX
20040  2.1, \SpecialChar LyX
20041  supports basic interactions with AppleScript for normal communicatio
20042 n through the command run.
20043  This command takes a direct argument (the 
20044 \series bold
20045 function
20046 \series default
20047  to perform) and an optional argument.
20048  It either returns the output of the function or triggers an error with
20049  the error message and code.
20050 \end_layout
20051
20052 \begin_layout Standard
20053 Example:
20054 \end_layout
20055
20056 \begin_layout LyX-Code
20057 tell application "\SpecialChar LyX
20058 "
20059 \end_layout
20060
20061 \begin_layout LyX-Code
20062   try
20063 \end_layout
20064
20065 \begin_layout LyX-Code
20066     -- Stores the current file name into f
20067 \end_layout
20068
20069 \begin_layout LyX-Code
20070     set f to (run "server-get-filename" with argument "")
20071 \end_layout
20072
20073 \begin_layout LyX-Code
20074     on error the error_message number the error_number
20075 \end_layout
20076
20077 \begin_layout LyX-Code
20078       display dialog "Error: " & the error_number & ".
20079  " ¬
20080 \end_layout
20081
20082 \begin_layout LyX-Code
20083               & the error_message buttons {"OK"} default button 1
20084 \end_layout
20085
20086 \begin_layout LyX-Code
20087   end try
20088 \end_layout
20089
20090 \begin_layout LyX-Code
20091 end tell
20092 \end_layout
20093
20094 \begin_layout Section
20095 Notification
20096 \end_layout
20097
20098 \begin_layout Standard
20099 \SpecialChar LyX
20100  can notify clients of events going on asynchronously.
20101  Currently it will only do this if the user binds a key sequence with the
20102  function 
20103 \begin_inset Quotes eld
20104 \end_inset
20105
20106 notify
20107 \begin_inset Quotes erd
20108 \end_inset
20109
20110 .
20111  The format of the string \SpecialChar LyX
20112  sends is as follows:
20113 \end_layout
20114
20115 \begin_layout Quote
20116 \begin_inset Flex Code
20117 status collapsed
20118
20119 \begin_layout Plain Layout
20120 NOTIFY:
20121 \end_layout
20122
20123 \end_inset
20124
20125
20126 \emph on
20127 key-sequence
20128 \end_layout
20129
20130 \begin_layout Standard
20131 where 
20132 \emph on
20133 key-sequence
20134 \emph default
20135  is the printed representation of the key sequence that was actually typed
20136  by the user.
20137 \end_layout
20138
20139 \begin_layout Standard
20140 This mechanism can be used to extend \SpecialChar LyX
20141 's command set and implement macros.
20142  Bind some key sequence to 
20143 \begin_inset Quotes eld
20144 \end_inset
20145
20146 notify
20147 \begin_inset Quotes erd
20148 \end_inset
20149
20150 .
20151  Then start a client that listens on the output pipe, dispatches the command
20152  according to the sequence, and starts a function that may use \SpecialChar LyX
20153  calls and
20154  \SpecialChar LyX
20155  requests to issue a command or a series of commands to \SpecialChar LyX
20156 .
20157 \end_layout
20158
20159 \begin_layout Section
20160 The simple \SpecialChar LyX
20161  Server Protocol
20162 \end_layout
20163
20164 \begin_layout Standard
20165 \SpecialChar LyX
20166  implements a simple protocol that can be used for session management.
20167  All messages are of the form
20168 \end_layout
20169
20170 \begin_layout Quote
20171 LYXSRV:
20172 \emph on
20173 clientname
20174 \emph default
20175 :
20176 \emph on
20177 protocol message
20178 \end_layout
20179
20180 \begin_layout Standard
20181 where 
20182 \emph on
20183 protocol message
20184 \emph default
20185  can be 
20186 \begin_inset Quotes eld
20187 \end_inset
20188
20189 hello
20190 \begin_inset Quotes erd
20191 \end_inset
20192
20193  or 
20194 \begin_inset Quotes eld
20195 \end_inset
20196
20197 bye
20198 \begin_inset Quotes erd
20199 \end_inset
20200
20201 .
20202  If 
20203 \begin_inset Quotes eld
20204 \end_inset
20205
20206 hello
20207 \begin_inset Quotes erd
20208 \end_inset
20209
20210  is received from a client, \SpecialChar LyX
20211  will report back to inform the client that
20212  it's listening to it's messages, while 
20213 \begin_inset Quotes eld
20214 \end_inset
20215
20216 bye
20217 \begin_inset Quotes erd
20218 \end_inset
20219
20220  sent from \SpecialChar LyX
20221  will inform clients that \SpecialChar LyX
20222  is closing.
20223 \end_layout
20224
20225 \begin_layout Section
20226 Reverse DVI/PDF search
20227 \end_layout
20228
20229 \begin_layout Standard
20230 Some DVI/PDF viewers
20231 \begin_inset Foot
20232 status collapsed
20233
20234 \begin_layout Plain Layout
20235 The following viewers offer the reverse PDF search feature: Okular on KDE/Linux,
20236  Qpdfview on Unix, Skim on Mac OSX and SumatraPDF on Windows.
20237 \end_layout
20238
20239 \end_inset
20240
20241  provide 
20242 \emph on
20243 reverse search
20244 \emph default
20245  facility (also called 
20246 \emph on
20247 inverse search
20248 \emph default
20249 ).
20250  This means that you can tell \SpecialChar LyX
20251  to put the cursor to a specific line in the
20252  document by clicking at the respective position in the DVI/PDF output.
20253  To achieve this, the viewer must be able to communicate with \SpecialChar LyX
20254 .
20255  This is done via the \SpecialChar LyX
20256  server either by using the named pipe (
20257 \emph on
20258 lyxpipe
20259 \emph default
20260 ), or the UNIX domain socket (
20261 \emph on
20262 lyxsocket
20263 \emph default
20264 ) that \SpecialChar LyX
20265  creates in its temporary directory (this is the way the 
20266 \begin_inset Flex Code
20267 status collapsed
20268
20269 \begin_layout Plain Layout
20270 lyxclient
20271 \end_layout
20272
20273 \end_inset
20274
20275  program communicates with \SpecialChar LyX
20276 ).
20277  In some cases, you need a helper script that mediates between the viewer
20278  and \SpecialChar LyX
20279 , in others, the viewer can communicate with \SpecialChar LyX
20280  directly.
20281  This depends on the selected viewer and on your operating system.
20282  The same applies to the way viewers need to be configured and the way the
20283  reverse search is actually performed.
20284  In what follows, we will thus describe how to setup reverse search for
20285  specific viewers.
20286  Before we turn to this, though, we will explain what needs to be done generally
20287  to enable reverse search in the DVI/PDF output.
20288 \end_layout
20289
20290 \begin_layout Subsection
20291 Automatic setup
20292 \begin_inset CommandInset label
20293 LatexCommand label
20294 name "subsec:rev-search"
20295
20296 \end_inset
20297
20298
20299 \end_layout
20300
20301 \begin_layout Standard
20302 In most cases \SpecialChar LyX
20303  will do the work for you by pressing the following button
20304  in the toolbar: 
20305 \begin_inset Info
20306 type  "icon"
20307 arg   "buffer-toggle-output-sync"
20308 \end_inset
20309
20310 .
20311  Alternatively, you can also enable the feature by checking 
20312 \family sans
20313 Synchronize with Output
20314 \family default
20315  in 
20316 \begin_inset Flex Noun
20317 status collapsed
20318
20319 \begin_layout Plain Layout
20320 Document\SpecialChar menuseparator
20321 Settings\SpecialChar menuseparator
20322 Formats
20323 \end_layout
20324
20325 \end_inset
20326
20327 .
20328  In such a case \SpecialChar LyX
20329  will automatically insert the necessary Sync\SpecialChar TeX
20330  macro (for
20331  PDF) or load the srcltx package (for DVI) respectively.
20332  This option can be easily reached also on 
20333 \begin_inset Flex Code
20334 status collapsed
20335
20336 \begin_layout Plain Layout
20337 View/Update
20338 \end_layout
20339
20340 \end_inset
20341
20342  Toolbar.
20343 \end_layout
20344
20345 \begin_layout Standard
20346 If you need a different setting, you can select or input a custom macro
20347  from the drop down box just below 
20348 \begin_inset Flex Noun
20349 status collapsed
20350
20351 \begin_layout Plain Layout
20352 Document\SpecialChar menuseparator
20353 Settings\SpecialChar menuseparator
20354 Output\SpecialChar menuseparator
20355 Synchronize with Output
20356 \end_layout
20357
20358 \end_inset
20359
20360 .
20361 \end_layout
20362
20363 \begin_layout Standard
20364 Note that the method 
20365 \begin_inset Flex Code
20366 status collapsed
20367
20368 \begin_layout Plain Layout
20369
20370 \backslash
20371 synctex=1
20372 \end_layout
20373
20374 \end_inset
20375
20376  enables gzip compression.
20377  If your viewer does not support it, you should instead use 
20378 \begin_inset Flex Code
20379 status collapsed
20380
20381 \begin_layout Plain Layout
20382
20383 \backslash
20384 synctex=-1
20385 \end_layout
20386
20387 \end_inset
20388
20389 .
20390 \end_layout
20391
20392 \begin_layout Standard
20393 Please also note that including the 
20394 \begin_inset Flex Code
20395 status collapsed
20396
20397 \begin_layout Plain Layout
20398 srcltx
20399 \end_layout
20400
20401 \end_inset
20402
20403  package or 
20404 \begin_inset Flex Code
20405 status collapsed
20406
20407 \begin_layout Plain Layout
20408 src-specials
20409 \end_layout
20410
20411 \end_inset
20412
20413  sometimes has an undesired impact on the typesetting.
20414  Thus, you should switch output synchronization off for the final typesetting
20415  if you use the 
20416 \begin_inset Flex Code
20417 status collapsed
20418
20419 \begin_layout Plain Layout
20420 srcltx
20421 \end_layout
20422
20423 \end_inset
20424
20425  package or 
20426 \begin_inset Flex Code
20427 status collapsed
20428
20429 \begin_layout Plain Layout
20430 src-specials
20431 \end_layout
20432
20433 \end_inset
20434
20435 .
20436  
20437 \end_layout
20438
20439 \begin_layout Standard
20440 In case you need some more special settings that are not covered by the
20441  automatic settings, read the next section about how to set up output synchroniz
20442 ation manually.
20443  If the automatic setup suits your needs, you can readily jump to section
20444 \begin_inset space ~
20445 \end_inset
20446
20447
20448 \begin_inset CommandInset ref
20449 LatexCommand ref
20450 reference "subsec:configuring-viewers"
20451
20452 \end_inset
20453
20454 , where the necessary configuration steps in your viewer – needed both with
20455  the automatic and the manual setup – are described.
20456 \end_layout
20457
20458 \begin_layout Subsection
20459 Manual setup
20460 \end_layout
20461
20462 \begin_layout Standard
20463 \SpecialChar LaTeX
20464  provides several different methods for reverse search.
20465  Some are built-in in the 
20466 \begin_inset Flex Code
20467 status collapsed
20468
20469 \begin_layout Plain Layout
20470 latex/pdflatex
20471 \end_layout
20472
20473 \end_inset
20474
20475  program, some are provided by external packages.
20476  Your choice depends on whether your \SpecialChar LaTeX
20477  distribution already provides a given
20478  method (the built-in methods are rather new) and whether your viewer can
20479  cope with it.
20480  The available methods are described in the following.
20481 \end_layout
20482
20483 \begin_layout Subsubsection*
20484 Built-in DVI-search via src-specials (DVI only) 
20485 \end_layout
20486
20487 \begin_layout Standard
20488 This method provides the DVI file with the necessary information for reverse
20489  search.
20490  It is available in \SpecialChar LaTeX
20491  since quite some time (any somewhat recent \SpecialChar LaTeX
20492  distribution
20493  should include it), and it works reliably.
20494  To enable it, change the 
20495 \begin_inset Flex Noun
20496 status collapsed
20497
20498 \begin_layout Plain Layout
20499 La
20500 \family sans
20501 TeX
20502 \family default
20503  (plain)->DVI
20504 \end_layout
20505
20506 \end_inset
20507
20508  or 
20509 \begin_inset Flex Noun
20510 status collapsed
20511
20512 \begin_layout Plain Layout
20513 La
20514 \family sans
20515 TeX
20516 \family default
20517  (plain)->DraftDVI
20518 \end_layout
20519
20520 \end_inset
20521
20522  converter in 
20523 \begin_inset Flex Noun
20524 status collapsed
20525
20526 \begin_layout Plain Layout
20527 Preferences\SpecialChar menuseparator
20528 File Handling\SpecialChar menuseparator
20529 Converters
20530 \end_layout
20531
20532 \end_inset
20533
20534  to 
20535 \begin_inset Flex Code
20536 status collapsed
20537
20538 \begin_layout Plain Layout
20539 latex -src-specials $$i
20540 \end_layout
20541
20542 \end_inset
20543
20544 .
20545  If this doesn't work, check if your \SpecialChar TeX
20546  engine needs different options (the
20547  syntax might differ in some distributions).
20548 \end_layout
20549
20550 \begin_layout Subsubsection*
20551 External Packages (PDFSync and scrltx) 
20552 \end_layout
20553
20554 \begin_layout Standard
20555 The packages 
20556 \emph on
20557 pdfsync
20558 \emph default
20559  and 
20560 \emph on
20561 scrltx
20562 \emph default
20563  provide reverse search facility for PDF output (via pdflatex) and DVI output,
20564  respectively.
20565  In order to enable it, load the packages in the \SpecialChar LyX
20566  preamble: 
20567 \end_layout
20568
20569 \begin_layout Itemize
20570 \begin_inset Flex Code
20571 status collapsed
20572
20573 \begin_layout Plain Layout
20574
20575 \backslash
20576 usepackage{pdfsync}
20577 \end_layout
20578
20579 \end_inset
20580
20581  for reverse PDF search,
20582 \end_layout
20583
20584 \begin_layout Itemize
20585 \begin_inset Flex Code
20586 status collapsed
20587
20588 \begin_layout Plain Layout
20589
20590 \backslash
20591 usepackage[active]{srcltx}
20592 \end_layout
20593
20594 \end_inset
20595
20596  for reverse DVI search.
20597 \end_layout
20598
20599 \begin_layout Standard
20600 If you want to be able to perform both DVI and PDF reverse searches, you
20601  can also insert in the preamble the following lines
20602 \end_layout
20603
20604 \begin_layout LyX-Code
20605
20606 \backslash
20607 usepackage{ifpdf}
20608 \begin_inset Newline newline
20609 \end_inset
20610
20611
20612 \backslash
20613 ifpdf
20614 \begin_inset Newline newline
20615 \end_inset
20616
20617   
20618 \backslash
20619 usepackage{pdfsync}
20620 \begin_inset Newline newline
20621 \end_inset
20622
20623
20624 \backslash
20625 else
20626 \begin_inset Newline newline
20627 \end_inset
20628
20629   
20630 \backslash
20631 usepackage[active]{srcltx}
20632 \begin_inset Newline newline
20633 \end_inset
20634
20635
20636 \backslash
20637 fi
20638 \end_layout
20639
20640 \begin_layout Standard
20641 This way, you can preview the file as either DVI or PDF (pdflatex) and the
20642  right package will be used.
20643 \end_layout
20644
20645 \begin_layout Standard
20646 Note that PDFSync might affect the output layout of your document.
20647  It is therefore advised to disable PDFsync for final documents.
20648 \end_layout
20649
20650 \begin_layout Subsubsection*
20651 Built-in reverse search via Sync\SpecialChar TeX
20652  (DVI and PDF) 
20653 \end_layout
20654
20655 \begin_layout Standard
20656 Recent versions of 
20657 \begin_inset Flex Code
20658 status collapsed
20659
20660 \begin_layout Plain Layout
20661 (pdf)latex
20662 \end_layout
20663
20664 \end_inset
20665
20666  have built-in support for both PDF and DVI reverse search.
20667  This so-called 
20668 \emph on
20669 Sync\SpecialChar TeX
20670
20671 \emph default
20672  facility is basically the result of the integration of the PDFSync package
20673  to the pdftex program and its merge with the 
20674 \emph on
20675 scr-specials
20676 \emph default
20677  approach.
20678  You need at least \SpecialChar TeX
20679 Live 2008 or a recent Mik\SpecialChar TeX
20680  distribution in order to use
20681  it.
20682 \begin_inset Foot
20683 status collapsed
20684
20685 \begin_layout Plain Layout
20686 For some reason, Mik\SpecialChar TeX
20687  does not understand/obey the command \SpecialChar LyX
20688  inserts into
20689  the preamble when you check the "Enable Forward/Reverse Search" button
20690  in the toolbar and does not generate the necessary info.
20691 \end_layout
20692
20693 \begin_layout Plain Layout
20694 The generation of the required info can be forced by changing the converter
20695  "\SpecialChar LaTeX
20696  (pdflatex) -> PDF (pdflatex)" in Preferences->File handling->Converters
20697  from the default "pdflatex $$i" to "pdflatex -synctex=1 $$i" (i.e., by adding
20698  the -synctex=1 switch).
20699 \end_layout
20700
20701 \end_inset
20702
20703  Also note that only a few PDF viewers (such as Okular and Qpdfview on Unix,
20704  Skim on the Mac, SumatraPDF on Windows; see the next section for details)
20705  already provide Sync\SpecialChar TeX
20706  support.
20707 \end_layout
20708
20709 \begin_layout Standard
20710 To enable Sync\SpecialChar TeX
20711  for DVI output, change the 
20712 \begin_inset Flex Noun
20713 status collapsed
20714
20715 \begin_layout Plain Layout
20716 La
20717 \family sans
20718 TeX
20719 \family default
20720  (plain) -> DVI
20721 \end_layout
20722
20723 \end_inset
20724
20725  or 
20726 \begin_inset Flex Noun
20727 status collapsed
20728
20729 \begin_layout Plain Layout
20730 La
20731 \family sans
20732 TeX
20733 \family default
20734  (plain) -> DraftDVI
20735 \end_layout
20736
20737 \end_inset
20738
20739  converter in 
20740 \begin_inset Flex Noun
20741 status collapsed
20742
20743 \begin_layout Plain Layout
20744 Preferences\SpecialChar menuseparator
20745 File Handling\SpecialChar menuseparator
20746 Converters
20747 \end_layout
20748
20749 \end_inset
20750
20751  to 
20752 \begin_inset Flex Code
20753 status collapsed
20754
20755 \begin_layout Plain Layout
20756 latex -synctex=1 $$i
20757 \end_layout
20758
20759 \end_inset
20760
20761 , and for PDF output, change the 
20762 \begin_inset Flex Noun
20763 status collapsed
20764
20765 \begin_layout Plain Layout
20766 La
20767 \family sans
20768 TeX
20769 \family default
20770  (pdflatex) -> PDF (pdflatex)
20771 \end_layout
20772
20773 \end_inset
20774
20775  converter to 
20776 \begin_inset Flex Code
20777 status collapsed
20778
20779 \begin_layout Plain Layout
20780 pdflatex -synctex=1 $$i
20781 \end_layout
20782
20783 \end_inset
20784
20785 .
20786  Should your viewer not be considered in the following description, or in
20787  case of missing success, please check the documentation of your viewer
20788  whether the viewer needs to be configured for the use with Sync\SpecialChar TeX
20789 .
20790 \begin_inset Foot
20791 status collapsed
20792
20793 \begin_layout Plain Layout
20794 Note that the option 
20795 \begin_inset Flex Code
20796 status collapsed
20797
20798 \begin_layout Plain Layout
20799 -synctex=1
20800 \end_layout
20801
20802 \end_inset
20803
20804  option enables gzip compression.
20805  If your viewer does not support it, you should instead use 
20806 \begin_inset Flex Code
20807 status collapsed
20808
20809 \begin_layout Plain Layout
20810 -synctex=-1
20811 \end_layout
20812
20813 \end_inset
20814
20815 .
20816 \end_layout
20817
20818 \end_inset
20819
20820
20821 \end_layout
20822
20823 \begin_layout Subsection
20824 Configuring and using specific viewers
20825 \begin_inset CommandInset label
20826 LatexCommand label
20827 name "subsec:configuring-viewers"
20828
20829 \end_inset
20830
20831
20832 \end_layout
20833
20834 \begin_layout Subsubsection*
20835 Xdvi (all platforms)
20836 \end_layout
20837
20838 \begin_layout Standard
20839 If you use 
20840 \begin_inset Flex Code
20841 status collapsed
20842
20843 \begin_layout Plain Layout
20844 xdvi
20845 \end_layout
20846
20847 \end_inset
20848
20849 , you don't need to do anything else for performing a reverse DVI search,
20850  as \SpecialChar LyX
20851  already provides the necessary hooks for automatically using the 
20852 \begin_inset Flex Code
20853 status collapsed
20854
20855 \begin_layout Plain Layout
20856 lyxclient
20857 \end_layout
20858
20859 \end_inset
20860
20861  program.
20862  Just setup your document as described above (reverse search is triggered
20863  by Ctrl-click or Alt-click on Mac OSX, respectively).
20864 \end_layout
20865
20866 \begin_layout Standard
20867 However, if for whatever reason you want to use the named pipe instead of
20868  the socket for communicating with \SpecialChar LyX
20869 , simply change the DVI viewer in 
20870 \begin_inset Flex Noun
20871 status collapsed
20872
20873 \begin_layout Plain Layout
20874 Preferences\SpecialChar menuseparator
20875 File Handling\SpecialChar menuseparator
20876 File formats
20877 \end_layout
20878
20879 \end_inset
20880
20881  to
20882 \begin_inset Foot
20883 status collapsed
20884
20885 \begin_layout Plain Layout
20886 On Mac OSX you have to use 
20887 \begin_inset Flex Code
20888 status collapsed
20889
20890 \begin_layout Plain Layout
20891 DISPLAY=:0.0 xdvi -editor "lyxeditor.sh %f %l"
20892 \end_layout
20893
20894 \end_inset
20895
20896
20897 \end_layout
20898
20899 \end_inset
20900
20901  
20902 \begin_inset Flex Code
20903 status collapsed
20904
20905 \begin_layout Plain Layout
20906 xdvi -editor "lyxeditor.sh %f %l"
20907 \end_layout
20908
20909 \end_inset
20910
20911 , where 
20912 \begin_inset Flex Code
20913 status collapsed
20914
20915 \begin_layout Plain Layout
20916 lyxeditor.sh
20917 \end_layout
20918
20919 \end_inset
20920
20921  is a suitable script.
20922  For example, a minimal shell script is the following one:
20923 \end_layout
20924
20925 \begin_layout LyX-Code
20926 #!/bin/sh
20927 \begin_inset Newline newline
20928 \end_inset
20929
20930 LYXPIPE="/path/to/lyxpipe"
20931 \begin_inset Newline newline
20932 \end_inset
20933
20934 COMMAND="LYXCMD:revdvi:server-goto-file-row:$1 $2"
20935 \begin_inset Newline newline
20936 \end_inset
20937
20938 echo "$COMMAND" > "${LYXPIPE}".in || exit
20939 \begin_inset Newline newline
20940 \end_inset
20941
20942 read TMP < "${LYXPIPE}".out || exit
20943 \end_layout
20944
20945 \begin_layout Standard
20946 where 
20947 \begin_inset Flex Code
20948 status collapsed
20949
20950 \begin_layout Plain Layout
20951 /path/to/lyxpipe
20952 \end_layout
20953
20954 \end_inset
20955
20956  is the LyXServer pipe path specified in 
20957 \begin_inset Flex Noun
20958 status collapsed
20959
20960 \begin_layout Plain Layout
20961 Preferences\SpecialChar menuseparator
20962 Paths
20963 \end_layout
20964
20965 \end_inset
20966
20967 .
20968 \begin_inset Foot
20969 status collapsed
20970
20971 \begin_layout Plain Layout
20972 In the 
20973 \begin_inset Flex Code
20974 status collapsed
20975
20976 \begin_layout Plain Layout
20977 development/tools
20978 \end_layout
20979
20980 \end_inset
20981
20982  folder of a source distribution you can find a 
20983 \begin_inset Flex Code
20984 status collapsed
20985
20986 \begin_layout Plain Layout
20987 lyxeditor
20988 \end_layout
20989
20990 \end_inset
20991
20992  script which is able to locate the 
20993 \emph on
20994 lyxpipe
20995 \emph default
20996  based on your preferences.
20997 \end_layout
20998
20999 \end_inset
21000
21001
21002 \end_layout
21003
21004 \begin_layout Subsubsection*
21005 MacDviX (Mac OSX)
21006 \end_layout
21007
21008 \begin_layout Standard
21009 At the end of 
21010 \begin_inset Flex Code
21011 status collapsed
21012
21013 \begin_layout Plain Layout
21014 /Applications/MacDviX_Folder/calleditor.script
21015 \end_layout
21016
21017 \end_inset
21018
21019 , add the following lines:
21020 \end_layout
21021
21022 \begin_layout LyX-Code
21023 /Applications/LyX.app/Contents/MacOS/lyxeditor "$2" $1
21024 \begin_inset Newline newline
21025 \end_inset
21026
21027 exit 1
21028 \end_layout
21029
21030 \begin_layout Standard
21031 Modify the lines accordingly if you install \SpecialChar LyX
21032  somewhere else than in the
21033  Applications folder.
21034 \end_layout
21035
21036 \begin_layout Standard
21037 Reverse search is triggered by Alt-click (OPTION-click).
21038 \end_layout
21039
21040 \begin_layout Subsubsection*
21041 Skim (Mac OSX)
21042 \end_layout
21043
21044 \begin_layout Standard
21045 Enter 
21046 \begin_inset Flex Code
21047 status collapsed
21048
21049 \begin_layout Plain Layout
21050 open -a Skim.app $$i
21051 \end_layout
21052
21053 \end_inset
21054
21055  to the viewer setting in 
21056 \begin_inset Flex Noun
21057 status collapsed
21058
21059 \begin_layout Plain Layout
21060 Preferences\SpecialChar menuseparator
21061 File Handling\SpecialChar menuseparator
21062 File formats\SpecialChar menuseparator
21063 PDF (pdflatex)
21064 \end_layout
21065
21066 \end_inset
21067
21068 , and then in 
21069 \begin_inset Flex Noun
21070 status collapsed
21071
21072 \begin_layout Plain Layout
21073 Skim\SpecialChar menuseparator
21074 Preferences\SpecialChar menuseparator
21075 Sync
21076 \end_layout
21077
21078 \end_inset
21079
21080  choose 
21081 \begin_inset Flex Noun
21082 status collapsed
21083
21084 \begin_layout Plain Layout
21085 custom
21086 \end_layout
21087
21088 \end_inset
21089
21090  preset and enter command 
21091 \begin_inset Flex Noun
21092 status collapsed
21093
21094 \begin_layout Plain Layout
21095 /Applications/\SpecialChar LyX
21096 .app/Contents/MacOS/lyxeditor
21097 \end_layout
21098
21099 \end_inset
21100
21101 .
21102 \end_layout
21103
21104 \begin_layout Standard
21105 Reverse search is triggered by COMMAND-SHIFT-click
21106 \end_layout
21107
21108 \begin_layout Subsubsection*
21109 Evince (GNOME)
21110 \end_layout
21111
21112 \begin_layout Standard
21113 Reverse search with evince does not work out of the box, but it can be achieved
21114  by means of some third party helper scripts.
21115  Please refer to 
21116 \begin_inset CommandInset href
21117 LatexCommand href
21118 target "https://wiki.lyx.org/LyX/SyncTeX"
21119 literal "false"
21120
21121 \end_inset
21122
21123  for details.
21124 \end_layout
21125
21126 \begin_layout Subsubsection*
21127 Okular (KDE)
21128 \end_layout
21129
21130 \begin_layout Standard
21131 Go to 
21132 \begin_inset Flex Noun
21133 status collapsed
21134
21135 \begin_layout Plain Layout
21136 Settings\SpecialChar menuseparator
21137 Configure Okular\SpecialChar menuseparator
21138 Editor
21139 \end_layout
21140
21141 \end_inset
21142
21143  and select LyX
21144 \begin_inset Quotes erd
21145 \end_inset
21146
21147  as editor.
21148  This inserts the appropriate command (
21149 \begin_inset Flex Code
21150 status collapsed
21151
21152 \begin_layout Plain Layout
21153 lyxclient -g %f %l
21154 \end_layout
21155
21156 \end_inset
21157
21158 ).
21159 \end_layout
21160
21161 \begin_layout Standard
21162 Reverse search is triggered by SHIFT-click.
21163
21164 \change_inserted -712698321 1578211026
21165  Note that this only works if Okular is in 
21166 \begin_inset Quotes eld
21167 \end_inset
21168
21169 Browse
21170 \begin_inset Quotes erd
21171 \end_inset
21172
21173  mode (i.
21174 \begin_inset space \thinspace{}
21175 \end_inset
21176
21177 e., the hand symbol is clicked).
21178 \change_unchanged
21179
21180 \end_layout
21181
21182 \begin_layout Subsubsection*
21183 Qpdfview (Unix)
21184 \end_layout
21185
21186 \begin_layout Standard
21187 Qpdfview supports Sync\SpecialChar TeX
21188  since version 0.3.5.
21189  Go to 
21190 \begin_inset Flex Noun
21191 status collapsed
21192
21193 \begin_layout Plain Layout
21194 Edit\SpecialChar menuseparator
21195 Settings\SpecialChar menuseparator
21196 Behavior
21197 \end_layout
21198
21199 \end_inset
21200
21201 , click on the input field of the 
21202 \begin_inset Quotes eld
21203 \end_inset
21204
21205 Source editor
21206 \begin_inset Quotes erd
21207 \end_inset
21208
21209  item and add the command 
21210 \begin_inset Flex Code
21211 status collapsed
21212
21213 \begin_layout Plain Layout
21214 lyxclient -g %1 %2
21215 \end_layout
21216
21217 \end_inset
21218
21219 .
21220 \end_layout
21221
21222 \begin_layout Standard
21223 Reverse search is triggered by double-click or, in more recent versions,
21224  by context menu.
21225 \end_layout
21226
21227 \begin_layout Subsubsection*
21228 YAP (Windows)
21229 \end_layout
21230
21231 \begin_layout Standard
21232 Launch yap, choose its 
21233 \begin_inset Flex Noun
21234 status collapsed
21235
21236 \begin_layout Plain Layout
21237 View\SpecialChar menuseparator
21238 Options
21239 \end_layout
21240
21241 \end_inset
21242
21243  menu and select the 
21244 \begin_inset Quotes eld
21245 \end_inset
21246
21247 Inverse DVI Search
21248 \begin_inset Quotes erd
21249 \end_inset
21250
21251  tab.
21252  Click on the 
21253 \begin_inset Quotes eld
21254 \end_inset
21255
21256 New\SpecialChar ldots
21257
21258 \begin_inset Quotes erd
21259 \end_inset
21260
21261  button and, in the window that opens, enter 
21262 \begin_inset Quotes eld
21263 \end_inset
21264
21265 \SpecialChar LyX
21266  Editor
21267 \begin_inset Quotes erd
21268 \end_inset
21269
21270  (or any other name you like) in the 
21271 \begin_inset Quotes eld
21272 \end_inset
21273
21274 Name:
21275 \begin_inset Quotes erd
21276 \end_inset
21277
21278  field.
21279  Now click on the button labeled 
21280 \begin_inset Quotes eld
21281 \end_inset
21282
21283 \SpecialChar ldots
21284
21285 \begin_inset Quotes erd
21286 \end_inset
21287
21288  to open a file dialog and navigate to the directory containing the batch
21289  file 
21290 \begin_inset Flex Code
21291 status collapsed
21292
21293 \begin_layout Plain Layout
21294 lyxeditor.bat
21295 \end_layout
21296
21297 \end_inset
21298
21299  (see below).
21300  Select 
21301 \begin_inset Flex Code
21302 status collapsed
21303
21304 \begin_layout Plain Layout
21305 lyxeditor.bat
21306 \end_layout
21307
21308 \end_inset
21309
21310  and then specify the program arguments as 
21311 \begin_inset Flex Code
21312 status collapsed
21313
21314 \begin_layout Plain Layout
21315 %f %l
21316 \end_layout
21317
21318 \end_inset
21319
21320 .
21321  The 
21322 \begin_inset Flex Code
21323 status collapsed
21324
21325 \begin_layout Plain Layout
21326 lyxeditor.bat
21327 \end_layout
21328
21329 \end_inset
21330
21331  wrapper is used for communicating with \SpecialChar LyX
21332  through the 
21333 \emph on
21334 lyxpipe
21335 \emph default
21336  and is as follows:
21337 \end_layout
21338
21339 \begin_layout LyX-Code
21340 @echo off
21341 \begin_inset Newline newline
21342 \end_inset
21343
21344 echo LYXCMD:revdvi:server-goto-file-row:%~1 %2> 
21345 \backslash
21346
21347 \backslash
21348 .
21349 \backslash
21350 pipe
21351 \backslash
21352 lyxpipe.in
21353 \begin_inset Newline newline
21354 \end_inset
21355
21356 type 
21357 \backslash
21358
21359 \backslash
21360 .
21361 \backslash
21362 pipe
21363 \backslash
21364 lyxpipe.out
21365 \end_layout
21366
21367 \begin_layout Standard
21368 Make sure that the \SpecialChar LyX
21369 Server pipe path you specified in \SpecialChar LyX
21370  is 
21371 \begin_inset Flex Code
21372 status collapsed
21373
21374 \begin_layout Plain Layout
21375
21376 \backslash
21377
21378 \backslash
21379 .
21380 \backslash
21381 pipe
21382 \backslash
21383 lyxpipe
21384 \end_layout
21385
21386 \end_inset
21387
21388 , otherwise change the 
21389 \begin_inset Flex Code
21390 status collapsed
21391
21392 \begin_layout Plain Layout
21393 lyxeditor.bat
21394 \end_layout
21395
21396 \end_inset
21397
21398  wrapper accordingly.
21399 \end_layout
21400
21401 \begin_layout Standard
21402 In yap, reverse search is triggered by double-click.
21403 \end_layout
21404
21405 \begin_layout Subsubsection*
21406 SumatraPDF (Windows)
21407 \end_layout
21408
21409 \begin_layout Standard
21410 In order to use SumatraPDF for inverse search, enter 
21411 \begin_inset Flex Code
21412 status collapsed
21413
21414 \begin_layout Plain Layout
21415 SumatraPDF -inverse-search "lyxeditor.bat "%f" %l"
21416 \end_layout
21417
21418 \end_inset
21419
21420  in the viewer setting in 
21421 \begin_inset Flex Noun
21422 status collapsed
21423
21424 \begin_layout Plain Layout
21425 Preferences\SpecialChar menuseparator
21426 File Handling\SpecialChar menuseparator
21427 File formats\SpecialChar menuseparator
21428 PDF (pdflatex)
21429 \end_layout
21430
21431 \end_inset
21432
21433 , where 
21434 \begin_inset Flex Code
21435 status collapsed
21436
21437 \begin_layout Plain Layout
21438 lyxeditor.bat
21439 \end_layout
21440
21441 \end_inset
21442
21443  is the previous wrapper.
21444  If SumatraPDF.exe is not in your command PATH, use its full file name.
21445 \end_layout
21446
21447 \begin_layout Standard
21448 Reverse search is triggered by double-click.
21449 \end_layout
21450
21451 \begin_layout Subsubsection*
21452 YAP (Cygwin)
21453 \end_layout
21454
21455 \begin_layout Standard
21456 First of all, make sure that yap is your default DVI viewer in the Windows
21457  environment, then launch it, choose its 
21458 \begin_inset Flex Noun
21459 status collapsed
21460
21461 \begin_layout Plain Layout
21462 View\SpecialChar menuseparator
21463 Options
21464 \end_layout
21465
21466 \end_inset
21467
21468  menu and select the 
21469 \begin_inset Quotes eld
21470 \end_inset
21471
21472 Inverse DVI Search
21473 \begin_inset Quotes erd
21474 \end_inset
21475
21476  tab.
21477  Click on the 
21478 \begin_inset Quotes eld
21479 \end_inset
21480
21481 New\SpecialChar ldots
21482
21483 \begin_inset Quotes erd
21484 \end_inset
21485
21486  button and, in the window that opens, enter 
21487 \begin_inset Quotes eld
21488 \end_inset
21489
21490 \SpecialChar LyX
21491  Editor
21492 \begin_inset Quotes erd
21493 \end_inset
21494
21495  (or any other name you like) in the 
21496 \begin_inset Quotes eld
21497 \end_inset
21498
21499 Name:
21500 \begin_inset Quotes erd
21501 \end_inset
21502
21503  field.
21504  Now click on the button labeled 
21505 \begin_inset Quotes eld
21506 \end_inset
21507
21508 \SpecialChar ldots
21509
21510 \begin_inset Quotes erd
21511 \end_inset
21512
21513  to open a file dialog and navigate to the directory containing the 
21514 \begin_inset Flex Code
21515 status collapsed
21516
21517 \begin_layout Plain Layout
21518 lyxeditor.exe
21519 \end_layout
21520
21521 \end_inset
21522
21523  program (which is installed by default on Cygwin along with the \SpecialChar LyX
21524  executable).
21525  Select 
21526 \begin_inset Flex Code
21527 status collapsed
21528
21529 \begin_layout Plain Layout
21530 lyxeditor.exe
21531 \end_layout
21532
21533 \end_inset
21534
21535  and then specify the program arguments as 
21536 \begin_inset Flex Code
21537 status collapsed
21538
21539 \begin_layout Plain Layout
21540 -g %f %l
21541 \end_layout
21542
21543 \end_inset
21544
21545 .
21546  In this way, you will be using the 
21547 \emph on
21548 lyxsocket
21549 \emph default
21550  for communicating with \SpecialChar LyX
21551 .
21552  If, for whatever reason, you want to use the 
21553 \emph on
21554 lyxpipe
21555 \emph default
21556 , omit the 
21557 \begin_inset Flex Code
21558 status collapsed
21559
21560 \begin_layout Plain Layout
21561 -g
21562 \end_layout
21563
21564 \end_inset
21565
21566  option and be sure to specify the \SpecialChar LyX
21567 Server pipe path in the \SpecialChar LyX
21568  preferences.
21569 \end_layout
21570
21571 \begin_layout Standard
21572 In yap, reverse search is triggered by double-click.
21573 \end_layout
21574
21575 \begin_layout Subsubsection*
21576 SumatraPDF (Cygwin)
21577 \end_layout
21578
21579 \begin_layout Standard
21580 In order to use SumatraPDF for inverse search, enter 
21581 \begin_inset Flex Code
21582 status collapsed
21583
21584 \begin_layout Plain Layout
21585 SumatraPDF -inverse-search "lyxeditor -g %f %l"
21586 \end_layout
21587
21588 \end_inset
21589
21590  in the viewer setting in 
21591 \begin_inset Flex Noun
21592 status collapsed
21593
21594 \begin_layout Plain Layout
21595 Preferences\SpecialChar menuseparator
21596 File Handling\SpecialChar menuseparator
21597 File formats\SpecialChar menuseparator
21598 PDF (pdflatex)
21599 \end_layout
21600
21601 \end_inset
21602
21603 .
21604  If SumatraPDF.exe is not in your command PATH, use its full posix path.
21605  The 
21606 \begin_inset Flex Code
21607 status collapsed
21608
21609 \begin_layout Plain Layout
21610 -g
21611 \end_layout
21612
21613 \end_inset
21614
21615  enables communication via the 
21616 \emph on
21617 lyxsocket
21618 \emph default
21619 .
21620  Again, omit the 
21621 \begin_inset Flex Code
21622 status collapsed
21623
21624 \begin_layout Plain Layout
21625 -g
21626 \end_layout
21627
21628 \end_inset
21629
21630  option if you want to use the 
21631 \emph on
21632 lyxpipe
21633 \emph default
21634 , and be sure to specify the \SpecialChar LyX
21635 Server pipe path in the \SpecialChar LyX
21636  preferences.
21637 \end_layout
21638
21639 \begin_layout Standard
21640 Reverse search is triggered by double-click.
21641 \end_layout
21642
21643 \begin_layout Section
21644 Forward search
21645 \end_layout
21646
21647 \begin_layout Standard
21648 Forward search is, as the name implies, in a sense the 
21649 \begin_inset Quotes eld
21650 \end_inset
21651
21652 opposite
21653 \begin_inset Quotes erd
21654 \end_inset
21655
21656  of reverse search.
21657  It allows you to let the viewer jump to a given position from within \SpecialChar LyX
21658 .
21659  If forward search is set up (as described in what follows), you can put
21660  the cursor anywhere in your \SpecialChar LyX
21661  document, and hit 
21662 \begin_inset Flex Noun
21663 status collapsed
21664
21665 \begin_layout Plain Layout
21666 Navigate\SpecialChar menuseparator
21667 Forward search
21668 \end_layout
21669
21670 \end_inset
21671
21672  (or select 
21673 \begin_inset Flex Noun
21674 status collapsed
21675
21676 \begin_layout Plain Layout
21677 Forward search
21678 \end_layout
21679
21680 \end_inset
21681
21682  in the context menu via right mouse click), and then the viewer will jump
21683  to that position as well.
21684  This implies, of course, that your viewer supports this function.
21685 \end_layout
21686
21687 \begin_layout Standard
21688 To make forward search possible, you first need to provide the generated
21689  output PDF/DVI file with additional information about the \SpecialChar TeX
21690  sources.
21691  This can be done via the methods described in the section 
21692 \begin_inset CommandInset ref
21693 LatexCommand ref
21694 reference "subsec:rev-search"
21695
21696 \end_inset
21697
21698 .
21699 \end_layout
21700
21701 \begin_layout Standard
21702 Additionally, you need to configure \SpecialChar LyX
21703  for using your viewers in 
21704 \begin_inset Flex Noun
21705 status collapsed
21706
21707 \begin_layout Plain Layout
21708 Tools\SpecialChar menuseparator
21709 Preferences\SpecialChar menuseparator
21710 Output\SpecialChar menuseparator
21711 General
21712 \end_layout
21713
21714 \end_inset
21715
21716 .
21717  We provide a range of tested configurations for some viewers, which you
21718  can select from the drop down list.
21719  If none of these configurations suits you, you have to find out and enter
21720  a suitable configuration yourself.
21721  The definition syntax uses the following placeholders:
21722 \end_layout
21723
21724 \begin_layout Itemize
21725 \noindent
21726 \begin_inset Flex Code
21727 status collapsed
21728
21729 \begin_layout Plain Layout
21730 $$n
21731 \end_layout
21732
21733 \end_inset
21734
21735 : row number
21736 \end_layout
21737
21738 \begin_layout Itemize
21739 \noindent
21740 \begin_inset Flex Code
21741 status collapsed
21742
21743 \begin_layout Plain Layout
21744 $$t
21745 \end_layout
21746
21747 \end_inset
21748
21749 : name of the (temporary) exported .tex file (without path)
21750 \end_layout
21751
21752 \begin_layout Itemize
21753 \noindent
21754 \begin_inset Flex Code
21755 status collapsed
21756
21757 \begin_layout Plain Layout
21758 $$f
21759 \end_layout
21760
21761 \end_inset
21762
21763 : name of the (temporary) exported .tex file (including path)
21764 \end_layout
21765
21766 \begin_layout Itemize
21767 \noindent
21768 \begin_inset Flex Code
21769 status collapsed
21770
21771 \begin_layout Plain Layout
21772 $$o
21773 \end_layout
21774
21775 \end_inset
21776
21777 : name of the exported output file (either dvi or pdf, depending on which
21778  one exists in the temporary directory)
21779 \end_layout
21780
21781 \begin_layout Standard
21782 Note that only some of the viewers provide full and usable forward search
21783  functionality out of the box, among them yap, xdvi, okular
21784 \begin_inset Foot
21785 status collapsed
21786
21787 \begin_layout Plain Layout
21788 You might want to set 
21789 \begin_inset Flex Code
21790 status collapsed
21791
21792 \begin_layout Plain Layout
21793 okular --unique
21794 \end_layout
21795
21796 \end_inset
21797
21798  in 
21799 \begin_inset Flex Noun
21800 status collapsed
21801
21802 \begin_layout Plain Layout
21803 Tools\SpecialChar menuseparator
21804 Preferences\SpecialChar menuseparator
21805 File Handling\SpecialChar menuseparator
21806 File
21807 \begin_inset space ~
21808 \end_inset
21809
21810 Formats
21811 \end_layout
21812
21813 \end_inset
21814
21815
21816 \end_layout
21817
21818 \end_inset
21819
21820 , qpdfview, and SumatraPDF
21821 \begin_inset Foot
21822 status collapsed
21823
21824 \begin_layout Plain Layout
21825 SumatraPDF can also use DDE commands through the external program CMCDDE
21826  — downloadable from 
21827 \begin_inset CommandInset href
21828 LatexCommand href
21829 target "http://www.istri.fr/spip/zip/CMCDDE.zip"
21830 literal "false"
21831
21832 \end_inset
21833
21834
21835 \end_layout
21836
21837 \end_inset
21838
21839 .
21840  Others, such as evince
21841 \begin_inset Foot
21842 status collapsed
21843
21844 \begin_layout Plain Layout
21845 Forward search with evince can be achieved by means of third party helper
21846  scripts.
21847  Please refer to 
21848 \begin_inset CommandInset href
21849 LatexCommand href
21850 target "https://wiki.lyx.org/LyX/SyncTeX"
21851 literal "false"
21852
21853 \end_inset
21854
21855  for details.
21856 \end_layout
21857
21858 \end_inset
21859
21860 , require some extra tools in order to use forward search.
21861  While many of the widespread PDF viewers (most notably Adobe Reader) do
21862  not support forward search at all, some other viewers – e.
21863 \begin_inset space \thinspace{}
21864 \end_inset
21865
21866 g.
21867  xpdf – allow at least to reload the document and jump to a specific page
21868  of the file, so you can at least navigate 
21869 \begin_inset Quotes eld
21870 \end_inset
21871
21872 near
21873 \begin_inset Quotes erd
21874 \end_inset
21875
21876 .
21877  This latter functionality is provided by an external call of synctex (see
21878  the predefined example configurations).
21879  
21880 \end_layout
21881
21882 \begin_layout Standard
21883 Forward search works both with DVI and PDF output.
21884  \SpecialChar LyX
21885  simply checks which preview format you have used before (i.
21886 \begin_inset space \thinspace{}
21887 \end_inset
21888
21889 e., which format is already there in the temporary directory) and chooses
21890  the appropriate configuration for the respective format.
21891 \end_layout
21892
21893 \begin_layout Chapter
21894
21895 \change_deleted 564990737 1671097409
21896 Special Document Classes
21897 \change_unchanged
21898
21899 \end_layout
21900
21901 \begin_layout Section
21902
21903 \change_deleted 564990737 1669742044
21904 A&A Paper
21905 \end_layout
21906
21907 \begin_layout Standard
21908
21909 \change_deleted 564990737 1669742044
21910 by 
21911 \noun on
21912 Peter Sütterlin
21913 \end_layout
21914
21915 \begin_layout Subsection
21916
21917 \change_deleted 564990737 1669742044
21918 Introduction
21919 \end_layout
21920
21921 \begin_layout Standard
21922
21923 \change_deleted 564990737 1669742044
21924 This section describes how \SpecialChar LyX
21925  can be used to write articles for submission
21926  to the scientific journal 
21927 \emph on
21928 Astronomy and Astrophysics
21929 \emph default
21930  (
21931 \begin_inset Flex URL
21932 status collapsed
21933
21934 \begin_layout Plain Layout
21935
21936 https://www.aanda.org/
21937 \end_layout
21938
21939 \end_inset
21940
21941 ) using Version 5.01 of the document class 
21942 \family typewriter
21943 aa.cls
21944 \family default
21945 .
21946  This package can be downloaded from the ftp site
21947 \end_layout
21948
21949 \begin_layout Standard
21950
21951 \change_deleted 564990737 1669742044
21952 \begin_inset VSpace medskip
21953 \end_inset
21954
21955
21956 \end_layout
21957
21958 \begin_layout Standard
21959 \align center
21960
21961 \change_deleted 564990737 1669742044
21962 \begin_inset Flex URL
21963 status collapsed
21964
21965 \begin_layout Plain Layout
21966
21967 ftp://ftp.edpsciences.org/pub/aa/readme.html
21968 \end_layout
21969
21970 \end_inset
21971
21972
21973 \end_layout
21974
21975 \begin_layout Standard
21976
21977 \change_deleted 564990737 1669742044
21978 \begin_inset VSpace medskip
21979 \end_inset
21980
21981
21982 \end_layout
21983
21984 \begin_layout Standard
21985
21986 \change_deleted 564990737 1669742044
21987 A manual comes together with that package, and this text is not meant to
21988  replace the original manual but is merely a short guide in how to realize
21989  the correct form of your paper.
21990  
21991 \end_layout
21992
21993 \begin_layout Standard
21994
21995 \change_deleted 564990737 1669742044
21996 Please note that the publisher of the journal was changed from Springer
21997  to EDP Sciences starting January 1, 2001.
21998  That change involved also some slight changes to the style files, namely
21999  the removal of the thesaurus command.
22000  The \SpecialChar LyX
22001  class aa supports the newest version of these style files, V 5.01.
22002  If you have an older version installed, please upgrade.
22003  For compatibility, the old (version 4) layout has been kept as 
22004 \family sans
22005 article (A&A V4)
22006 \family default
22007 .
22008  Please refer to the comments in 
22009 \family typewriter
22010 \SpecialChar LyX
22011 Dir/layouts/aapaper.layout
22012 \family default
22013 .
22014 \end_layout
22015
22016 \begin_layout Subsection
22017
22018 \change_deleted 564990737 1669742044
22019 Getting started
22020 \end_layout
22021
22022 \begin_layout Standard
22023
22024 \change_deleted 564990737 1669742044
22025 It is recommended you start from the example template distributed with \SpecialChar LyX
22026 .
22027  If you are not using a template, note the following settings:
22028 \end_layout
22029
22030 \begin_layout Itemize
22031
22032 \change_deleted 564990737 1669742044
22033 Select 
22034 \family sans
22035 article (A&A)
22036 \family default
22037  in the 
22038 \family sans
22039 Document\SpecialChar menuseparator
22040 Settings
22041 \family default
22042  dialog (OK, that one was obvious).
22043 \end_layout
22044
22045 \begin_layout Itemize
22046
22047 \change_deleted 564990737 1669742044
22048 Don't change the option 
22049 \family sans
22050 Page
22051 \begin_inset space ~
22052 \end_inset
22053
22054 style
22055 \family default
22056 : Leave it set to 
22057 \family sans
22058 default
22059 \family default
22060 .
22061  The whole layout is done by the macros, you shouldn't change anything.
22062 \end_layout
22063
22064 \begin_layout Subsection
22065
22066 \change_deleted 564990737 1669742044
22067 The header block
22068 \end_layout
22069
22070 \begin_layout Standard
22071
22072 \change_deleted 564990737 1669742044
22073 First thing to enter is the header information.
22074  It consists of seven entries, of which some are optional.
22075  They are
22076 \end_layout
22077
22078 \begin_layout Itemize
22079
22080 \change_deleted 564990737 1669742044
22081
22082 \family sans
22083 Title
22084 \family default
22085 : [required] 
22086 \end_layout
22087
22088 \begin_layout Itemize
22089
22090 \change_deleted 564990737 1669742044
22091
22092 \family sans
22093 Subtitle
22094 \family default
22095 : [optional] 
22096 \end_layout
22097
22098 \begin_layout Itemize
22099
22100 \change_deleted 564990737 1669742044
22101
22102 \family sans
22103 Author
22104 \family default
22105 : [required]
22106 \end_layout
22107
22108 \begin_layout Itemize
22109
22110 \change_deleted 564990737 1669742044
22111
22112 \family sans
22113 Address
22114 \family default
22115 : [required]
22116 \end_layout
22117
22118 \begin_layout Itemize
22119
22120 \change_deleted 564990737 1669742044
22121
22122 \family sans
22123 Offprints
22124 \family default
22125 : [optional] if more than one author: whom to contact for offprint requests.
22126 \end_layout
22127
22128 \begin_layout Itemize
22129
22130 \change_deleted 564990737 1669742044
22131
22132 \family sans
22133 Mail
22134 \family default
22135 : [optional] mail address for contacts.
22136 \end_layout
22137
22138 \begin_layout Itemize
22139
22140 \change_deleted 564990737 1669742044
22141
22142 \family sans
22143 Date
22144 \family default
22145 : [required].
22146  Suggested format is 
22147 \family typewriter
22148 Received: <date>; Accepted <date> 
22149 \end_layout
22150
22151 \begin_layout Standard
22152
22153 \change_deleted 564990737 1669742044
22154 There is no need to issue the 
22155 \family typewriter
22156
22157 \backslash
22158 maketitle
22159 \family default
22160  command, this is done automatically by \SpecialChar LyX
22161  when the header is finished.
22162  Although the order of the single header entries doesn't matter it is advised
22163  to keep the above sequence, just to get the best optics and meets the layout
22164  of the real document.
22165 \end_layout
22166
22167 \begin_layout Standard
22168
22169 \change_deleted 564990737 1669742044
22170 If you want to place footnotes in the header block, e.
22171 \begin_inset space \thinspace{}
22172 \end_inset
22173
22174 g.
22175 \begin_inset space \space{}
22176 \end_inset
22177
22178 to state your present address, just use the standard footnote via the menu
22179  
22180 \family sans
22181 Insert\SpecialChar menuseparator
22182 Footnote.
22183
22184 \family default
22185  \SpecialChar LyX
22186  will automagically use the term 
22187 \family typewriter
22188
22189 \backslash
22190 thanks{}
22191 \family default
22192  in that case.
22193 \end_layout
22194
22195 \begin_layout Standard
22196
22197 \change_deleted 564990737 1669742044
22198 Under 
22199 \family sans
22200 Edit\SpecialChar menuseparator
22201 Text Style
22202 \family default
22203 , you'll find two insets which are relevant for the titling:
22204 \end_layout
22205
22206 \begin_layout Itemize
22207
22208 \change_deleted 564990737 1669742044
22209
22210 \family sans
22211 Institute
22212 \family typewriter
22213  
22214 \family default
22215 to mark corresponding author\SpecialChar breakableslash
22216 institute pairs.
22217  The institutes are numbered sequentially as they appear in the 
22218 \family sans
22219 Address
22220 \family default
22221  field, so you have to put a marker to each author.
22222 \end_layout
22223
22224 \begin_layout Itemize
22225
22226 \change_deleted 564990737 1669742044
22227
22228 \family sans
22229 Email
22230 \family default
22231  to supply an email address for fast contact.
22232 \end_layout
22233
22234 \begin_layout Standard
22235
22236 \change_deleted 564990737 1669742044
22237 In addition to these topics, the macros use one additional \SpecialChar LaTeX
22238  command that
22239  has no counterpart in \SpecialChar LyX
22240 :
22241 \end_layout
22242
22243 \begin_layout Itemize
22244
22245 \change_deleted 564990737 1669742044
22246
22247 \family typewriter
22248
22249 \backslash
22250 and
22251 \family default
22252  to separate different names for more than one author and institute, respectivel
22253 y.
22254 \end_layout
22255
22256 \begin_layout Standard
22257
22258 \change_deleted 564990737 1669742044
22259 The appropriate command has to be entered in \SpecialChar LyX
22260  and marked as \SpecialChar LaTeX
22261  code.
22262  See the examples.
22263  
22264 \end_layout
22265
22266 \begin_layout Subsection
22267
22268 \change_deleted 564990737 1669742044
22269 The abstract
22270 \end_layout
22271
22272 \begin_layout Standard
22273
22274 \change_deleted 564990737 1669742044
22275 The abstract should immediately follow the header block.
22276  With version 5 the abstract environment was changed to a command, and there
22277  is now a restriction to only one paragraph.
22278  In addition, it should contain an entry with the keywords.
22279  This is done via the paragraph style 
22280 \family sans
22281 Keywords
22282 \family default
22283 .
22284  Refer to the example paper.
22285 \end_layout
22286
22287 \begin_layout Subsection
22288
22289 \change_deleted 564990737 1669742044
22290 Supported environments
22291 \end_layout
22292
22293 \begin_layout Standard
22294
22295 \change_deleted 564990737 1669742044
22296 The A&A paper layout supports the following environments for structuring
22297  your text:
22298 \end_layout
22299
22300 \begin_layout Itemize
22301
22302 \change_deleted 564990737 1669742044
22303
22304 \family sans
22305 Standard
22306 \end_layout
22307
22308 \begin_layout Itemize
22309
22310 \change_deleted 564990737 1669742044
22311
22312 \family sans
22313 Section
22314 \end_layout
22315
22316 \begin_layout Itemize
22317
22318 \change_deleted 564990737 1669742044
22319
22320 \family sans
22321 Subsection
22322 \end_layout
22323
22324 \begin_layout Itemize
22325
22326 \change_deleted 564990737 1669742044
22327
22328 \family sans
22329 Subsubsection
22330 \end_layout
22331
22332 \begin_layout Itemize
22333
22334 \change_deleted 564990737 1669742044
22335
22336 \family sans
22337 Itemize
22338 \end_layout
22339
22340 \begin_layout Itemize
22341
22342 \change_deleted 564990737 1669742044
22343
22344 \family sans
22345 Enumerate
22346 \end_layout
22347
22348 \begin_layout Itemize
22349
22350 \change_deleted 564990737 1669742044
22351
22352 \family sans
22353 Description
22354 \end_layout
22355
22356 \begin_layout Itemize
22357
22358 \change_deleted 564990737 1669742044
22359
22360 \family sans
22361 Caption
22362 \end_layout
22363
22364 \begin_layout Itemize
22365
22366 \change_deleted 564990737 1669742044
22367
22368 \family sans
22369 Abstract
22370 \end_layout
22371
22372 \begin_layout Itemize
22373
22374 \change_deleted 564990737 1669742044
22375
22376 \family sans
22377 Acknowledgment
22378 \end_layout
22379
22380 \begin_layout Itemize
22381
22382 \change_deleted 564990737 1669742044
22383
22384 \family sans
22385 Bibliography
22386 \end_layout
22387
22388 \begin_layout Itemize
22389
22390 \change_deleted 564990737 1669742044
22391
22392 \family sans
22393 \SpecialChar LaTeX
22394
22395 \end_layout
22396
22397 \begin_layout Subsection
22398
22399 \change_deleted 564990737 1669742044
22400 Commands not supported by \SpecialChar LyX
22401
22402 \end_layout
22403
22404 \begin_layout Standard
22405
22406 \change_deleted 564990737 1669742044
22407 Some commands are not yet supported by the 
22408 \family sans
22409 paper (A&A)
22410 \family default
22411  layout for \SpecialChar LyX
22412 .
22413  Some have already been mentioned.
22414  For the sake of completeness, they are listed all together here:
22415 \end_layout
22416
22417 \begin_layout Itemize
22418
22419 \change_deleted 564990737 1669742044
22420
22421 \family typewriter
22422
22423 \backslash
22424 and
22425 \end_layout
22426
22427 \begin_layout Itemize
22428
22429 \change_deleted 564990737 1669742044
22430
22431 \family typewriter
22432
22433 \backslash
22434 authorrunning
22435 \end_layout
22436
22437 \begin_layout Itemize
22438
22439 \change_deleted 564990737 1669742044
22440
22441 \family typewriter
22442
22443 \backslash
22444 object{}
22445 \end_layout
22446
22447 \begin_layout Itemize
22448
22449 \change_deleted 564990737 1669742044
22450
22451 \family typewriter
22452
22453 \backslash
22454 titlerunning{}
22455 \end_layout
22456
22457 \begin_layout Standard
22458
22459 \change_deleted 564990737 1669742044
22460 If you want to use any of these commands, you have to enter them yourself.
22461  
22462 \series bold
22463 Do not forget to mark them as \SpecialChar LaTeX
22464  code!
22465 \end_layout
22466
22467 \begin_layout Subsection
22468
22469 \change_deleted 564990737 1669742044
22470 Figure and Table Floats
22471 \end_layout
22472
22473 \begin_layout Standard
22474
22475 \change_deleted 564990737 1669742044
22476 \SpecialChar LyX
22477  provides support for the necessary float environments 
22478 \family sans
22479 figure, figure*, table
22480 \family default
22481  and 
22482 \family sans
22483 table*
22484 \family default
22485 , therefore we won't tell much about it here.
22486  Refer to the 
22487 \emph on
22488 User's
22489 \begin_inset space ~
22490 \end_inset
22491
22492 Guide
22493 \emph default
22494 .
22495  Just remember that tables should be left-aligned.
22496  For that, select the table and change the alignment in 
22497 \family sans
22498 Edit\SpecialChar menuseparator
22499 Paragraph
22500 \begin_inset space ~
22501 \end_inset
22502
22503 Settings.
22504 \end_layout
22505
22506 \begin_layout Standard
22507
22508 \change_deleted 564990737 1669742044
22509 There is only one special thing: the figures with caption besides the figure.
22510  To create such a figure, you have to do the following:
22511 \end_layout
22512
22513 \begin_layout Enumerate
22514
22515 \change_deleted 564990737 1669742044
22516 Create a wide figure float: 
22517 \family sans
22518 Insert\SpecialChar menuseparator
22519 Float\SpecialChar menuseparator
22520 Figure
22521 \family default
22522 , then right click in the figure and select 
22523 \family sans
22524 Span
22525 \begin_inset space ~
22526 \end_inset
22527
22528 columns
22529 \family default
22530 .
22531 \end_layout
22532
22533 \begin_layout Enumerate
22534
22535 \change_deleted 564990737 1669742044
22536 Enter your caption text.
22537 \end_layout
22538
22539 \begin_layout Enumerate
22540
22541 \change_deleted 564990737 1669742044
22542 Press 
22543 \family sans
22544 Return
22545 \family default
22546  to move the cursor above the caption.
22547 \end_layout
22548
22549 \begin_layout Enumerate
22550
22551 \change_deleted 564990737 1669742044
22552 Insert your figure
22553 \end_layout
22554
22555 \begin_layout Enumerate
22556
22557 \change_deleted 564990737 1669742044
22558 Position the cursor behind the figure and insert a horizontal fill: 
22559 \family sans
22560 Insert\SpecialChar menuseparator
22561 Special
22562 \begin_inset space ~
22563 \end_inset
22564
22565 Character\SpecialChar menuseparator
22566 Horizontal
22567 \begin_inset space ~
22568 \end_inset
22569
22570 Fill
22571 \family default
22572 .
22573 \end_layout
22574
22575 \begin_layout Enumerate
22576
22577 \change_deleted 564990737 1669742044
22578 Switch to \SpecialChar LaTeX
22579  mode: 
22580 \family sans
22581 M-c
22582 \begin_inset space ~
22583 \end_inset
22584
22585 t
22586 \family default
22587 .
22588 \end_layout
22589
22590 \begin_layout Enumerate
22591
22592 \change_deleted 564990737 1669742044
22593 Enter 
22594 \family typewriter
22595
22596 \backslash
22597 parbox[b]{55mm}{
22598 \family default
22599 .
22600  
22601 \series bold
22602 Do not close the brace!
22603 \end_layout
22604
22605 \begin_layout Enumerate
22606
22607 \change_deleted 564990737 1669742044
22608 Position the cursor behind the caption text, switch to \SpecialChar LaTeX
22609  mode and insert
22610  the closing brace: 
22611 \family sans
22612 M-c
22613 \begin_inset space ~
22614 \end_inset
22615
22616 t
22617 \family default
22618  
22619 \family typewriter
22620 }
22621 \family default
22622 .
22623 \end_layout
22624
22625 \begin_layout Standard
22626
22627 \change_deleted 564990737 1669742044
22628 Also, refer to the figures in the example paper.
22629 \end_layout
22630
22631 \begin_layout Subsection
22632
22633 \change_deleted 564990737 1669742044
22634 Referee layout
22635 \end_layout
22636
22637 \begin_layout Standard
22638
22639 \change_deleted 564990737 1669742044
22640 For submission, the paper has to be formated in a special double-spacing
22641  layout.
22642  For this purpose, you have to give the option 
22643 \family typewriter
22644 referee
22645 \family default
22646  to the document class.
22647  This must be done using the custom class options field in the 
22648 \family sans
22649 Document\SpecialChar menuseparator
22650 Settings
22651 \family default
22652  dialog.
22653  Just enter the string 
22654 \family typewriter
22655 referee
22656 \family default
22657  there.
22658 \end_layout
22659
22660 \begin_layout Subsection
22661
22662 \change_deleted 564990737 1669742044
22663 The example paper
22664 \end_layout
22665
22666 \begin_layout Standard
22667
22668 \change_deleted 564990737 1669742044
22669 The 
22670 \family sans
22671 Examples
22672 \family default
22673  directory contains an example paper written with \SpecialChar LyX
22674 .
22675  It is the example paper from the original macro package, translated to
22676  \SpecialChar LyX
22677 .
22678  Use it for inspiration, and compare the original \SpecialChar LaTeX
22679  code with \SpecialChar LyX
22680  way of writing.
22681 \end_layout
22682
22683 \begin_layout Section
22684
22685 \change_deleted 564990737 1671097429
22686 Dinbrief
22687 \end_layout
22688
22689 \begin_layout Standard
22690
22691 \change_deleted 564990737 1671097429
22692 The document class 
22693 \family sans
22694 dinbrief
22695 \family default
22696  can be used to type letters according to German conventions.
22697  A template file is included in 
22698 \family typewriter
22699 .../lyx/share/templates
22700 \family default
22701  for you to use as a starting point.
22702 \end_layout
22703
22704 \begin_layout Section
22705
22706 \change_deleted 564990737 1671097429
22707 Elsevier Journals
22708 \end_layout
22709
22710 \begin_layout Standard
22711
22712 \change_deleted 564990737 1671097429
22713 See the \SpecialChar LyX
22714  template file 
22715 \family typewriter
22716 elsarticle.lyx
22717 \family default
22718 .
22719  It contains all infos you need.
22720 \end_layout
22721
22722 \begin_layout Section
22723
22724 \change_deleted 564990737 1669755802
22725 ijmpc and ijmpd
22726 \end_layout
22727
22728 \begin_layout Standard
22729
22730 \change_deleted 564990737 1669755802
22731 by 
22732 \noun on
22733 Panayotis Papasotiriou
22734 \end_layout
22735
22736 \begin_layout Subsection
22737
22738 \change_deleted 564990737 1669755802
22739 Overview
22740 \end_layout
22741
22742 \begin_layout Standard
22743
22744 \change_deleted 564990737 1669755802
22745 The ijmpc package is a set of macros that facilitates electronic manuscript
22746  submission to the 
22747 \emph on
22748 International Journal of Modern Physics C
22749 \emph default
22750 .
22751  Similarly, the ijmpd package is for creating manuscripts to be submitted
22752  to the 
22753 \emph on
22754 International Journal of Modern Physics D
22755 \emph default
22756 .
22757  Both journals are published by World Scientific.
22758  The corresponding document classes are named 
22759 \family typewriter
22760 ws-ijmpc.cls
22761 \family default
22762  and 
22763 \family typewriter
22764 ws-ijmpd.cls
22765 \family default
22766 , respectively.
22767  These files, together with instructions for the authors, can be downloaded
22768  from the sites 
22769 \begin_inset Flex URL
22770 status collapsed
22771
22772 \begin_layout Plain Layout
22773
22774 http://www.worldscinet.com/ijmpc/mkt/guidelines.shtml
22775 \end_layout
22776
22777 \end_inset
22778
22779  and 
22780 \begin_inset Flex URL
22781 status collapsed
22782
22783 \begin_layout Plain Layout
22784
22785 http://www.worldscinet.com/ijmpd/mkt/guidelines.shtml
22786 \end_layout
22787
22788 \end_inset
22789
22790 .
22791  Both packages are modified versions of the standard 
22792 \begin_inset Quotes eld
22793 \end_inset
22794
22795 article
22796 \begin_inset Quotes erd
22797 \end_inset
22798
22799  package, and they are almost (but not exactly) identical.
22800  Most of their features are supported by \SpecialChar LyX
22801 .
22802  I have used \SpecialChar LyX
22803  successfully to write articles submitted to both journals
22804  without any problem.
22805 \end_layout
22806
22807 \begin_layout Subsection
22808
22809 \change_deleted 564990737 1669755802
22810 Writing a paper
22811 \end_layout
22812
22813 \begin_layout Standard
22814
22815 \change_deleted 564990737 1669755802
22816 As usual, the easiest way to write a paper is to start with a template.
22817  Click on 
22818 \family sans
22819 File\SpecialChar menuseparator
22820 New from
22821 \family default
22822  
22823 \family sans
22824 Template
22825 \family default
22826 , then choose the 
22827 \family typewriter
22828 ijmpc.lyx
22829 \family default
22830  or 
22831 \family typewriter
22832 ijmpd.lyx
22833 \family default
22834  template.
22835  This will give an (almost) empty document that includes the most common
22836  fields found in a manuscript.
22837  Simply overwrite the existing text (including the brackets, 
22838 \family typewriter
22839 <>
22840 \family default
22841 ) with your text.
22842  You should keep in mind the following remarks.
22843 \end_layout
22844
22845 \begin_layout Enumerate
22846
22847 \change_deleted 564990737 1669755802
22848 \SpecialChar LyX
22849  won't let you change the font size and the page style of the document,
22850  because such modifications are not allowed by both packages.
22851 \end_layout
22852
22853 \begin_layout Enumerate
22854
22855 \change_deleted 564990737 1669755802
22856 The language of the document should not be changed.
22857  Before previewing your paper, be sure that the babel package is not used.
22858  To do this, click on 
22859 \begin_inset Info
22860 type  "menu"
22861 arg   "dialog-show document"
22862 \end_inset
22863
22864  
22865 \family sans
22866 \SpecialChar menuseparator
22867 Language
22868 \family default
22869 , and select 
22870 \begin_inset Quotes eld
22871 \end_inset
22872
22873 None
22874 \begin_inset Quotes erd
22875 \end_inset
22876
22877  as 
22878 \family sans
22879 Language Package
22880 \family default
22881 .
22882 \end_layout
22883
22884 \begin_layout Enumerate
22885
22886 \change_deleted 564990737 1669755802
22887 The 
22888 \begin_inset Quotes eld
22889 \end_inset
22890
22891 Keywords
22892 \begin_inset Quotes erd
22893 \end_inset
22894
22895  style must be used to define keywords.
22896 \end_layout
22897
22898 \begin_layout Enumerate
22899
22900 \change_deleted 564990737 1669755802
22901 The ijmpc package provides a style named 
22902 \begin_inset Quotes eld
22903 \end_inset
22904
22905 Classification Codes
22906 \begin_inset Quotes erd
22907 \end_inset
22908
22909 , which can be used to define classification codes, such as PACS numbers.
22910  Note that this facility is not supported by the ijmpd package.
22911 \end_layout
22912
22913 \begin_layout Enumerate
22914
22915 \change_deleted 564990737 1669755802
22916 Several new environments are available: 
22917 \begin_inset Quotes eld
22918 \end_inset
22919
22920 Definition
22921 \begin_inset Quotes erd
22922 \end_inset
22923
22924
22925 \begin_inset Quotes eld
22926 \end_inset
22927
22928 Step
22929 \begin_inset Quotes erd
22930 \end_inset
22931
22932
22933 \begin_inset Quotes eld
22934 \end_inset
22935
22936 Example
22937 \begin_inset Quotes erd
22938 \end_inset
22939
22940
22941 \begin_inset Quotes eld
22942 \end_inset
22943
22944 Remark
22945 \begin_inset Quotes erd
22946 \end_inset
22947
22948
22949 \begin_inset Quotes eld
22950 \end_inset
22951
22952 Notation
22953 \begin_inset Quotes erd
22954 \end_inset
22955
22956
22957 \begin_inset Quotes eld
22958 \end_inset
22959
22960 Theorem
22961 \begin_inset Quotes erd
22962 \end_inset
22963
22964
22965 \begin_inset Quotes eld
22966 \end_inset
22967
22968 Proof
22969 \begin_inset Quotes erd
22970 \end_inset
22971
22972
22973 \begin_inset Quotes eld
22974 \end_inset
22975
22976 Corollary
22977 \begin_inset Quotes erd
22978 \end_inset
22979
22980
22981 \begin_inset Quotes eld
22982 \end_inset
22983
22984 Lemma
22985 \begin_inset Quotes erd
22986 \end_inset
22987
22988
22989 \begin_inset Quotes eld
22990 \end_inset
22991
22992 Proposition
22993 \begin_inset Quotes erd
22994 \end_inset
22995
22996
22997 \begin_inset Quotes eld
22998 \end_inset
22999
23000 Prop
23001 \begin_inset Quotes erd
23002 \end_inset
23003
23004
23005 \begin_inset Quotes eld
23006 \end_inset
23007
23008 Question
23009 \begin_inset Quotes erd
23010 \end_inset
23011
23012
23013 \begin_inset Quotes eld
23014 \end_inset
23015
23016 Claim
23017 \begin_inset Quotes erd
23018 \end_inset
23019
23020 , and 
23021 \begin_inset Quotes eld
23022 \end_inset
23023
23024 Conjecture
23025 \begin_inset Quotes erd
23026 \end_inset
23027
23028 .
23029  Their use is more or less obvious.
23030  \SpecialChar LyX
23031  supports all these environments; it will use the proper label, text style,
23032  and numbering scheme for each of them.
23033 \end_layout
23034
23035 \begin_layout Enumerate
23036
23037 \change_deleted 564990737 1669755802
23038 Both packages use basic citations; the natbib package should not be used.
23039  In \SpecialChar LyX
23040 , citation references are shown as usual; in the output, citations are
23041  shown as superscripts.
23042  If you want to use a citation as normal text, you should use the 
23043 \family typewriter
23044 refcite
23045 \family default
23046  command, e.
23047 \begin_inset space \thinspace{}
23048 \end_inset
23049
23050 g.
23051 \begin_inset space \space{}
23052 \end_inset
23053
23054
23055 \begin_inset Quotes eld
23056 \end_inset
23057
23058 See Ref.
23059 \begin_inset space \space{}
23060 \end_inset
23061
23062
23063 \family typewriter
23064
23065 \backslash
23066 refcite{key}
23067 \family default
23068
23069 \begin_inset Quotes erd
23070 \end_inset
23071
23072 .
23073 \end_layout
23074
23075 \begin_layout Enumerate
23076
23077 \change_deleted 564990737 1669755802
23078 There is no 
23079 \begin_inset Quotes eld
23080 \end_inset
23081
23082 Acknowledgments
23083 \begin_inset Quotes erd
23084 \end_inset
23085
23086  section in both packages.
23087  To put acknowledgments, just use the 
23088 \begin_inset Quotes eld
23089 \end_inset
23090
23091 Section*
23092 \begin_inset Quotes erd
23093 \end_inset
23094
23095  environment.
23096 \end_layout
23097
23098 \begin_layout Enumerate
23099
23100 \change_deleted 564990737 1669755802
23101 Appendices may be added to the paper, 
23102 \emph on
23103 after
23104 \emph default
23105  the Acknowledgments and 
23106 \shape italic
23107 before
23108 \shape default
23109  the References.
23110  \SpecialChar LyX
23111  provides a special environment, called 
23112 \begin_inset Quotes eld
23113 \end_inset
23114
23115 Appendices Section
23116 \begin_inset Quotes erd
23117 \end_inset
23118
23119  which marks the beginning of the appendices.
23120  This environment should be left blank; it just sends a \SpecialChar LaTeX
23121  command, but nothing
23122  is really printed.
23123  In \SpecialChar LyX
23124 , the word 
23125 \begin_inset Quotes eld
23126 \end_inset
23127
23128 Appendix
23129 \begin_inset Quotes erd
23130 \end_inset
23131
23132  is printed with blue letters, as a signal that all sections after that
23133  point are appendices.
23134  To write an appendix, use the 
23135 \begin_inset Quotes eld
23136 \end_inset
23137
23138 Appendix
23139 \begin_inset Quotes erd
23140 \end_inset
23141
23142  environment.
23143  \SpecialChar LyX
23144  will number each appendix with capital letters, as required by both journals.
23145  Note that 
23146 \begin_inset Quotes eld
23147 \end_inset
23148
23149 Appendices Section
23150 \begin_inset Quotes erd
23151 \end_inset
23152
23153  
23154 \emph on
23155 must
23156 \emph default
23157  be present before the first appendix; if not, all appendices will be numbered
23158  as normal sections in the output.
23159 \end_layout
23160
23161 \begin_layout Enumerate
23162
23163 \change_deleted 564990737 1669755802
23164 The ijmpc and the ijmpd packages use the 
23165 \family typewriter
23166 tbl
23167 \family default
23168  command to implement table captions.
23169  As a result, a table created by \SpecialChar LyX
23170  is printed correctly, but its caption
23171  is ignored.
23172  However, you can use some \SpecialChar TeX
23173  code to overcome this problem, so that captions
23174  are printed as expected.
23175  To do so, create a float table as usual, remove the caption, and replace
23176  it with the \SpecialChar TeX
23177  code 
23178 \family typewriter
23179
23180 \backslash
23181 tbl{
23182 \emph on
23183 your table caption
23184 \emph default
23185 }{
23186 \family default
23187  (sic); you must also the \SpecialChar TeX
23188  code 
23189 \family typewriter
23190 }
23191 \family default
23192  immediately after the tabular material.
23193  Study the example table included in the template files to see how this
23194  trick is implemented.
23195  Alternatively, If you need table captions, you should implement the whole
23196  table float in a 
23197 \family typewriter
23198 .tex
23199 \family default
23200  file, then include this file to the \SpecialChar LyX
23201  document (
23202 \family sans
23203 Insert\SpecialChar menuseparator
23204 File\SpecialChar menuseparator
23205 Child
23206 \begin_inset space ~
23207 \end_inset
23208
23209 Document
23210 \family default
23211 ).
23212  Details on how to create a table float can be found in the files 
23213 \family typewriter
23214 ws-ijmpc.tex
23215 \family default
23216  and 
23217 \family typewriter
23218 ws-ijmpd.tex
23219 \family default
23220 , included in the corresponding packages.
23221 \end_layout
23222
23223 \begin_layout Subsection
23224
23225 \change_deleted 564990737 1669755802
23226 Preparing a paper for submission
23227 \end_layout
23228
23229 \begin_layout Standard
23230
23231 \change_deleted 564990737 1669755802
23232 Before you submit your paper you must export the \SpecialChar LyX
23233  document as a \SpecialChar LaTeX
23234  file (
23235 \family sans
23236 File\SpecialChar menuseparator
23237 Export\SpecialChar menuseparator
23238 \SpecialChar LaTeX
23239
23240 \family default
23241 )
23242 \begin_inset Foot
23243 status open
23244
23245 \begin_layout Plain Layout
23246 Actually you have the choice between \SpecialChar LaTeX
23247  (plain) and pdflatex.
23248  If you intend to use pdflatex to prepare the paper, you should use the
23249  pdflatex option so that included graphics are converted to PDF format,
23250  ready for use by pdflatex.
23251 \end_layout
23252
23253 \end_inset
23254
23255 , then make the following changes to the resulting 
23256 \family typewriter
23257 .tex
23258 \family default
23259  file.
23260 \end_layout
23261
23262 \begin_layout Enumerate
23263
23264 \change_deleted 564990737 1669755802
23265 Remove the comment lines before the 
23266 \family typewriter
23267
23268 \backslash
23269 documentclass
23270 \family default
23271  command.
23272 \end_layout
23273
23274 \begin_layout Enumerate
23275
23276 \change_deleted 564990737 1669755802
23277 Remove everything between (and including) the 
23278 \family typewriter
23279
23280 \backslash
23281 makeatletter
23282 \family default
23283  and 
23284 \family typewriter
23285
23286 \backslash
23287 makeatother
23288 \family default
23289  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23290  preamble.
23291 \end_layout
23292
23293 \begin_layout Standard
23294
23295 \change_deleted 564990737 1669755802
23296 The modified 
23297 \family typewriter
23298 .tex
23299 \family default
23300  file should be saved and processed through \SpecialChar LaTeX
23301  as many times as necessary.
23302  You may also want to check the resulting 
23303 \family typewriter
23304 .dvi
23305 \family default
23306  document.
23307 \change_unchanged
23308
23309 \end_layout
23310
23311 \begin_layout Section
23312
23313 \change_deleted 564990737 1669801478
23314 iopart
23315 \end_layout
23316
23317 \begin_layout Standard
23318
23319 \change_deleted 564990737 1669801478
23320 by 
23321 \noun on
23322 Uwe Stöhr
23323 \end_layout
23324
23325 \begin_layout Subsection
23326
23327 \change_deleted 564990737 1669801478
23328 Overview
23329 \end_layout
23330
23331 \begin_layout Standard
23332
23333 \change_deleted 564990737 1669801478
23334 The iopart package provides a document class to create electronic manuscript
23335  submission to the journals published by the Institute of Physics.
23336  Instructions for the authors how to create a paper using the iopart class
23337  can be downloaded together with the iopart package from the site 
23338 \begin_inset Flex URL
23339 status collapsed
23340
23341 \begin_layout Plain Layout
23342
23343 ftp://ftp.iop.org/pub/journals/latex2e
23344 \end_layout
23345
23346 \end_inset
23347
23348 .
23349 \end_layout
23350
23351 \begin_layout Subsection
23352
23353 \change_deleted 564990737 1669801478
23354 Writing a paper
23355 \end_layout
23356
23357 \begin_layout Standard
23358
23359 \change_deleted 564990737 1669801478
23360 The easiest way to write a paper is to start with the template 
23361 \emph on
23362 IOP-article.lyx
23363 \emph default
23364  that is available via 
23365 \family sans
23366 File\SpecialChar menuseparator
23367 New From Template
23368 \family default
23369  The template explains how to use the special text environments.
23370  Here are the most important advices:
23371 \end_layout
23372
23373 \begin_layout Itemize
23374
23375 \change_deleted 564990737 1669801478
23376 To be able to compile your document to a PDF, PS, or DVI, ensure that the
23377  no AMS packages are loaded in 
23378 \family sans
23379 Document\SpecialChar menuseparator
23380 Settings\SpecialChar menuseparator
23381 Math Options
23382 \family default
23383 !
23384 \end_layout
23385
23386 \begin_layout Itemize
23387
23388 \change_deleted 564990737 1669801478
23389
23390 \size normal
23391 The title environment defines the kind of your paper.
23392  So use one of the following environments for the title:
23393 \end_layout
23394
23395 \begin_deeper
23396 \begin_layout Itemize
23397
23398 \change_deleted 564990737 1669801478
23399
23400 \family sans
23401 \size normal
23402 Title
23403 \family default
23404  for a Paper
23405 \end_layout
23406
23407 \begin_layout Itemize
23408
23409 \change_deleted 564990737 1669801478
23410
23411 \family sans
23412 \size normal
23413 Review
23414 \family default
23415  for a Review
23416 \end_layout
23417
23418 \begin_layout Itemize
23419
23420 \change_deleted 564990737 1669801478
23421
23422 \family sans
23423 \size normal
23424 Topical
23425 \family default
23426  for a Topical review
23427 \end_layout
23428
23429 \begin_layout Itemize
23430
23431 \change_deleted 564990737 1669801478
23432
23433 \family sans
23434 \size normal
23435 Comment
23436 \family default
23437  for a Comment
23438 \end_layout
23439
23440 \begin_layout Itemize
23441
23442 \change_deleted 564990737 1669801478
23443
23444 \family sans
23445 \size normal
23446 Note
23447 \family default
23448  for a Note
23449 \end_layout
23450
23451 \begin_layout Itemize
23452
23453 \change_deleted 564990737 1669801478
23454
23455 \family sans
23456 \size normal
23457 Paper
23458 \family default
23459  for a Paper (same as Title)
23460 \end_layout
23461
23462 \begin_layout Itemize
23463
23464 \change_deleted 564990737 1669801478
23465
23466 \family sans
23467 \size normal
23468 Prelim
23469 \family default
23470  for a Preliminary communication
23471 \end_layout
23472
23473 \begin_layout Itemize
23474
23475 \change_deleted 564990737 1669801478
23476
23477 \family sans
23478 \size normal
23479 Rapid
23480 \family default
23481  for a Rapid communication
23482 \end_layout
23483
23484 \begin_layout Itemize
23485
23486 \change_deleted 564990737 1669801478
23487
23488 \family sans
23489 \size normal
23490 Letter
23491 \family default
23492  for a Letter to the editor
23493 \end_layout
23494
23495 \end_deeper
23496 \begin_layout Itemize
23497
23498 \change_deleted 564990737 1669801478
23499
23500 \size normal
23501 All title environments except of 
23502 \family sans
23503 Letter
23504 \family default
23505  can have an optional short title.
23506 \end_layout
23507
23508 \begin_layout Itemize
23509
23510 \change_deleted 564990737 1669801478
23511 There is a general title environment 
23512 \family sans
23513 Article
23514 \family default
23515  which is not directly supported by \SpecialChar LyX
23516 .
23517  This can be used as \SpecialChar TeX
23518  code when your document doesn't fit into one of the
23519  other title types.
23520 \end_layout
23521
23522 \begin_layout Standard
23523
23524 \change_deleted 564990737 1669801478
23525 For more informations like hints for special table and formula formatting,
23526  look at the IOP author guidelines.
23527 \change_unchanged
23528
23529 \end_layout
23530
23531 \begin_layout Section
23532
23533 \change_deleted 564990737 1670317155
23534 Kluwer
23535 \end_layout
23536
23537 \begin_layout Standard
23538
23539 \change_deleted 564990737 1670317155
23540 by 
23541 \noun on
23542 Panayotis Papasotiriou
23543 \end_layout
23544
23545 \begin_layout Subsection
23546
23547 \change_deleted 564990737 1670317155
23548 Overview
23549 \end_layout
23550
23551 \begin_layout Standard
23552
23553 \change_deleted 564990737 1670317155
23554 The Kluwer package is a set of macros produced by Kluwer Academic Publishers
23555  that facilitates electronic manuscript submission to the journals they
23556  publish.
23557  Most known of them (at least in my domain of interest) are 
23558 \emph on
23559 Astrophysics and Space Science
23560 \emph default
23561  and 
23562 \emph on
23563 Solar Physics
23564 \emph default
23565 , but there are many others (see a complete list at 
23566 \begin_inset Flex URL
23567 status collapsed
23568
23569 \begin_layout Plain Layout
23570
23571 http://www.wkap.nl/jrnllist.htm/JRNLHOME
23572 \end_layout
23573
23574 \end_inset
23575
23576 ).
23577  The Kluwer package may be downloaded from the site 
23578 \begin_inset Flex URL
23579 status collapsed
23580
23581 \begin_layout Plain Layout
23582
23583 http://www.wkap.nl/kaphtml.htm/STYLEFILES
23584 \end_layout
23585
23586 \end_inset
23587
23588 .
23589  A complete user guide is contained in that package (but it can also be
23590  downloaded separately).
23591 \end_layout
23592
23593 \begin_layout Standard
23594
23595 \change_deleted 564990737 1670317155
23596 \SpecialChar LyX
23597  supports many features of the package but not everything.
23598  However, the \SpecialChar TeX
23599  code needed is reduced to some 
23600 \begin_inset Quotes eld
23601 \end_inset
23602
23603 peculiar
23604 \begin_inset Quotes erd
23605 \end_inset
23606
23607  commands of the package (see
23608 \begin_inset space ~
23609 \end_inset
23610
23611
23612 \begin_inset CommandInset ref
23613 LatexCommand ref
23614 reference "subsec:kluwer_peculiarities"
23615
23616 \end_inset
23617
23618 ).
23619  I have recently used \SpecialChar LyX
23620  to write an article submitted to the 
23621 \emph on
23622 Astrophysics and Space Science
23623 \emph default
23624  without any problem.
23625 \end_layout
23626
23627 \begin_layout Subsection
23628
23629 \change_deleted 564990737 1670317155
23630 Writing a paper
23631 \end_layout
23632
23633 \begin_layout Standard
23634
23635 \change_deleted 564990737 1670317155
23636 The easiest way to write a paper is to start with the Kluwer template file.
23637  Click on 
23638 \family sans
23639 File\SpecialChar menuseparator
23640 New from
23641 \family default
23642  
23643 \family sans
23644 Template
23645 \family default
23646 , then choose the 
23647 \family typewriter
23648 kluwer.lyx
23649 \family default
23650  template.
23651  This will give an (almost) empty document that includes the most common
23652  fields found in a manuscript and a short description of their use.
23653  As in most templates, simply overwrite the existing text (including the
23654  brackets, 
23655 \family typewriter
23656 <>
23657 \family default
23658 ) with the correct information.
23659 \end_layout
23660
23661 \begin_layout Subsection
23662
23663 \change_deleted 564990737 1670317155
23664 Preparing a paper for submission
23665 \end_layout
23666
23667 \begin_layout Standard
23668
23669 \change_deleted 564990737 1670317155
23670 As in the AAS\SpecialChar TeX
23671  package, before you submit your paper to a journal you must
23672  
23673 \begin_inset Quotes eld
23674 \end_inset
23675
23676 postprocess
23677 \begin_inset Quotes erd
23678 \end_inset
23679
23680  it as follows.
23681 \end_layout
23682
23683 \begin_layout Enumerate
23684
23685 \change_deleted 564990737 1670317155
23686 Export your paper as a \SpecialChar LaTeX
23687  file.
23688  To do this, click on 
23689 \family sans
23690 File\SpecialChar menuseparator
23691 Export\SpecialChar menuseparator
23692 \SpecialChar LaTeX
23693
23694 \family default
23695 .
23696  
23697 \end_layout
23698
23699 \begin_layout Enumerate
23700
23701 \change_deleted 564990737 1670317155
23702 Edit the resulting 
23703 \family typewriter
23704 .tex
23705 \family default
23706  file with a text editor and make the following changes
23707 \end_layout
23708
23709 \begin_deeper
23710 \begin_layout Enumerate
23711
23712 \change_deleted 564990737 1670317155
23713 remove the comment lines before the 
23714 \family typewriter
23715
23716 \backslash
23717 documentclass
23718 \family default
23719  command,
23720 \end_layout
23721
23722 \begin_layout Enumerate
23723
23724 \change_deleted 564990737 1670317155
23725 remove everything between (and including) the 
23726 \family typewriter
23727
23728 \backslash
23729 makeatletter
23730 \family default
23731  and 
23732 \family typewriter
23733
23734 \backslash
23735 makeatother
23736 \family default
23737  commands, except for any commands you specifically put into the \SpecialChar LaTeX
23738  preamble.
23739 \end_layout
23740
23741 \begin_layout Standard
23742
23743 \change_deleted 564990737 1670317155
23744 Save the resulting 
23745 \family typewriter
23746 .tex
23747 \family default
23748  file.
23749 \end_layout
23750
23751 \end_deeper
23752 \begin_layout Enumerate
23753
23754 \change_deleted 564990737 1670317155
23755 Run the 
23756 \family typewriter
23757 .tex
23758 \family default
23759  file through \SpecialChar LaTeX
23760  as many times as necessary (usually up to three).
23761 \end_layout
23762
23763 \begin_layout Enumerate
23764
23765 \change_deleted 564990737 1670317155
23766 View the resulting 
23767 \family typewriter
23768 .dvi
23769 \family default
23770  document using, e.
23771 \begin_inset space \thinspace{}
23772 \end_inset
23773
23774 g.
23775 \begin_inset space \space{}
23776 \end_inset
23777
23778
23779 \family sans
23780 xdvi
23781 \family default
23782 , and check if everything is OK (it should, if you didn't make any mistake).
23783 \end_layout
23784
23785 \begin_layout Subsection
23786
23787 \change_deleted 564990737 1670317155
23788 \begin_inset Quotes eld
23789 \end_inset
23790
23791 Peculiarities
23792 \begin_inset Quotes erd
23793 \end_inset
23794
23795  of the Kluwer package
23796 \begin_inset CommandInset label
23797 LatexCommand label
23798 name "subsec:kluwer_peculiarities"
23799
23800 \end_inset
23801
23802
23803 \end_layout
23804
23805 \begin_layout Standard
23806
23807 \change_deleted 564990737 1670317155
23808 The Kluwer package has the following 
23809 \begin_inset Quotes eld
23810 \end_inset
23811
23812 peculiarities
23813 \begin_inset Quotes erd
23814 \end_inset
23815
23816 .
23817 \end_layout
23818
23819 \begin_layout Enumerate
23820
23821 \change_deleted 564990737 1670317155
23822 It is possible to write multiple articles in the same \SpecialChar LaTeX
23823  file
23824 \begin_inset Foot
23825 status collapsed
23826
23827 \begin_layout Plain Layout
23828 I can't imagine any good reason to do this.
23829 \end_layout
23830
23831 \end_inset
23832
23833 .
23834  Each article must be included in the environment 
23835 \begin_inset Quotes eld
23836 \end_inset
23837
23838 article
23839 \begin_inset Quotes erd
23840 \end_inset
23841
23842 .
23843  Unfortunately, this environment cannot be omitted, even if you write just
23844  one article.
23845  Therefore, each article starts with the command 
23846 \family typewriter
23847
23848 \backslash
23849 begin{article}
23850 \family default
23851  and, obviously, ends with the command 
23852 \family typewriter
23853
23854 \backslash
23855 end{article}
23856 \family default
23857 .
23858  Although this can be implemented in \SpecialChar LyX
23859 , I didn't included it, since it looks
23860  ugly and can confuse the novice user.
23861  Therefore, you need to enter them directly and mark them as \SpecialChar LaTeX
23862  code (the
23863  well-known 
23864 \begin_inset Quotes eld
23865 \end_inset
23866
23867 \SpecialChar TeX
23868  code
23869 \begin_inset Quotes erd
23870 \end_inset
23871
23872 ).
23873 \end_layout
23874
23875 \begin_layout Enumerate
23876
23877 \change_deleted 564990737 1670317155
23878 Information given at the beginning of the article (i.
23879 \begin_inset space \thinspace{}
23880 \end_inset
23881
23882 e.
23883 \begin_inset space \space{}
23884 \end_inset
23885
23886 title, subtitle, author, institution, running title, running author, abstract
23887  and keywords) must be included in an environment called 
23888 \begin_inset Quotes eld
23889 \end_inset
23890
23891 opening
23892 \begin_inset Quotes erd
23893 \end_inset
23894
23895 .
23896  This is not implemented in \SpecialChar LyX
23897 , so you must enter title, subtitle etc.
23898 \begin_inset space ~
23899 \end_inset
23900
23901 between two \SpecialChar TeX
23902  code lines (
23903 \family typewriter
23904
23905 \backslash
23906 begin{opening}
23907 \family default
23908  and 
23909 \family typewriter
23910
23911 \backslash
23912 end{opening}
23913 \family default
23914 ).
23915 \end_layout
23916
23917 \begin_layout Enumerate
23918
23919 \change_deleted 564990737 1670317155
23920 According to the user manual, the label of each bibliography item must be
23921  written as 
23922 \family typewriter
23923
23924 \backslash
23925 protect
23926 \backslash
23927 citeauthoryear{
23928 \family default
23929 \emph on
23930 author(s)
23931 \family typewriter
23932 \emph default
23933 }{
23934 \family default
23935 \emph on
23936 year
23937 \family typewriter
23938 \emph default
23939 }
23940 \family default
23941 .
23942 \end_layout
23943
23944 \begin_layout Standard
23945
23946 \change_deleted 564990737 1670317155
23947 The 
23948 \family typewriter
23949 kluwer.lyx
23950 \family default
23951  template takes care of all these 
23952 \begin_inset Quotes eld
23953 \end_inset
23954
23955 peculiarities
23956 \begin_inset Quotes erd
23957 \end_inset
23958
23959 .
23960  If you start a new paper using this template you don't need to do anything
23961  special.
23962  Just 
23963 \end_layout
23964
23965 \begin_layout Enumerate
23966
23967 \change_deleted 564990737 1670317155
23968 don't delete the \SpecialChar TeX
23969  code included in the template, and
23970 \end_layout
23971
23972 \begin_layout Enumerate
23973
23974 \change_deleted 564990737 1670317155
23975 copy the example bibliography item included in the template and modify it
23976  as necessary to enter new bibliography items.
23977 \end_layout
23978
23979 \begin_layout Section
23980
23981 \change_deleted 564990737 1671097446
23982 Paper
23983 \end_layout
23984
23985 \begin_layout Standard
23986
23987 \change_deleted 564990737 1671097446
23988 The document class 
23989 \family sans
23990 paper
23991 \family default
23992  provides an alternative to the standard 
23993 \family sans
23994 article
23995 \family default
23996  class.
23997  It provides similar functionality, but you might prefer this layout with
23998  sans serif sections, headings, and more.
23999 \end_layout
24000
24001 \begin_layout Section
24002
24003 \change_deleted 564990737 1671097446
24004 Springer Journals (
24005 \family sans
24006 svjour
24007 \family default
24008 )
24009 \end_layout
24010
24011 \begin_layout Standard
24012
24013 \change_deleted 564990737 1671097446
24014 by 
24015 \noun on
24016 Martin Vermeer
24017 \end_layout
24018
24019 \begin_layout Subsection
24020
24021 \change_deleted 564990737 1671097446
24022 Description
24023 \end_layout
24024
24025 \begin_layout Standard
24026
24027 \change_deleted 564990737 1671097446
24028 These are the layout files for some of the journal formats used by Springer
24029  Verlag and listed on 
24030 \begin_inset Flex URL
24031 status collapsed
24032
24033 \begin_layout Plain Layout
24034
24035 http://www.springer.de/author/tex/help-journals.html
24036 \end_layout
24037
24038 \end_inset
24039
24040 , where you should also go to fetch the class files (yes, these are \SpecialChar LaTeX2e
24041  now!).
24042  It is a modular system: the things common to all journals are implemented
24043  in 
24044 \family typewriter
24045 svjour.inc
24046 \family default
24047 , which journal-specific layout files (such as, e.
24048 \begin_inset space \thinspace{}
24049 \end_inset
24050
24051 g.
24052 \begin_inset space \space{}
24053 \end_inset
24054
24055
24056 \family typewriter
24057 svjog.layout
24058 \family default
24059  for Journal of Geodesy) can include.
24060 \end_layout
24061
24062 \begin_layout Standard
24063
24064 \change_deleted 564990737 1671097446
24065 This means that implementing support for any other Springer journal on this
24066  list is as simple as writing your own 
24067 \family typewriter
24068 sv
24069 \family default
24070 <myjournal>
24071 \family typewriter
24072 .layout
24073 \family default
24074  file following the outline given in 
24075 \family typewriter
24076 svjog.layout
24077 \family default
24078 .
24079  
24080 \end_layout
24081
24082 \begin_layout Standard
24083
24084 \change_deleted 564990737 1671097446
24085 It is reasonably well tested only for the Journal of Geodesy.
24086  
24087 \family typewriter
24088 svjour
24089 \family default
24090  and 
24091 \family typewriter
24092 svjog
24093 \family default
24094  come with the standard \SpecialChar LyX
24095  distribution.
24096  Install the relevant class file (downloaded from Springer) in a proper
24097  directory, reconfigure \SpecialChar LaTeX
24098  (in the te\SpecialChar TeX
24099  case by running 
24100 \family typewriter
24101 texhash
24102 \family default
24103 , as root if necessary — doesn't \SpecialChar LyX
24104  take care of this?), reconfigure \SpecialChar LyX
24105  and
24106  it should work.
24107 \end_layout
24108
24109 \begin_layout Subsection
24110
24111 \change_deleted 564990737 1671097446
24112 New styles
24113 \end_layout
24114
24115 \begin_layout Standard
24116
24117 \change_deleted 564990737 1671097446
24118 A large number of theorem-like styles — 
24119 \family sans
24120 Claim, Conjecture,
24121 \family default
24122  
24123 \family sans
24124 \SpecialChar ldots
24125 Theorem
24126 \family default
24127 .
24128 \end_layout
24129
24130 \begin_layout Standard
24131
24132 \change_deleted 564990737 1671097446
24133
24134 \family sans
24135 Headnote, Dedication, Subtitle, Running_\SpecialChar LaTeX
24136 _Title, Author_Running, Institute,
24137  Mail, Offprints, Keywords, Acknowledgements, Acknowledgement
24138 \family default
24139 .
24140  See the Springer class file documentation for details.
24141 \end_layout
24142
24143 \begin_layout Subsection
24144
24145 \change_deleted 564990737 1671097446
24146 Supported journals
24147 \end_layout
24148
24149 \begin_layout Itemize
24150
24151 \change_deleted 564990737 1671097446
24152
24153 \emph on
24154 Journal of Geodesy
24155 \emph default
24156
24157 \family typewriter
24158 svjog.layout
24159 \family default
24160  — Martin Vermeer
24161 \end_layout
24162
24163 \begin_layout Itemize
24164
24165 \change_deleted 564990737 1671097446
24166
24167 \emph on
24168 Probability Theory and Related Fields
24169 \emph default
24170
24171 \family typewriter
24172 svprobth.layout
24173 \family default
24174  — Jean-Marc Lasgouttes
24175 \end_layout
24176
24177 \begin_layout Standard
24178
24179 \change_deleted 564990737 1671097446
24180 Add your own, it isn't so hard!
24181 \end_layout
24182
24183 \begin_layout Subsection
24184
24185 \change_deleted 564990737 1671097446
24186 Credits
24187 \end_layout
24188
24189 \begin_layout Standard
24190
24191 \change_deleted 564990737 1671097446
24192 These files are partly based on the older 
24193 \family typewriter
24194 ejour2.layout
24195 \family default
24196 , which was again based on a tinkered-with version of an old \SpecialChar LaTeX
24197  2.09 style
24198  file from Springer.
24199  All this, and the 
24200 \family typewriter
24201 ejour2
24202 \family default
24203  layout, are now defunct.
24204  Jean-Marc Lasgouttes helped out big in making me find my way around the
24205  \SpecialChar LyX
24206  layout file mechanism.
24207 \end_layout
24208
24209 \begin_layout Subsection
24210
24211 \change_deleted 564990737 1671097446
24212 Bugs
24213 \end_layout
24214
24215 \begin_layout Standard
24216
24217 \change_deleted 564990737 1671097446
24218 Probably.
24219  But probably less than in the old hacked-\SpecialChar LaTeX
24220  
24221 \family typewriter
24222 ejour2
24223 \family default
24224 .
24225 \end_layout
24226
24227 \begin_layout Chapter
24228 \SpecialChar LyX
24229  Features needing Extra Software
24230 \end_layout
24231
24232 \begin_layout Section
24233 Checking \SpecialChar TeX
24234
24235 \end_layout
24236
24237 \begin_layout Standard
24238 by 
24239 \noun on
24240 Asger Alstrup
24241 \end_layout
24242
24243 \begin_layout Subsection
24244 Introduction
24245 \end_layout
24246
24247 \begin_layout Standard
24248 If you have the 
24249 \family typewriter
24250 chktex
24251 \family default
24252  program installed
24253 \begin_inset Foot
24254 status collapsed
24255
24256 \begin_layout Plain Layout
24257
24258 \family typewriter
24259 chktex
24260 \family default
24261  is not yet available when you are using the \SpecialChar LaTeX
24262  distribution MiK\SpecialChar TeX
24263 .
24264 \end_layout
24265
24266 \end_inset
24267
24268 , you'll find in the 
24269 \family sans
24270 Tools
24271 \family default
24272  menu the entry: 
24273 \family sans
24274 Check
24275 \begin_inset space ~
24276 \end_inset
24277
24278 TeX
24279 \family default
24280 .
24281  You can get 
24282 \family typewriter
24283 chktex
24284 \family default
24285  from CTAN,
24286 \begin_inset Newline newline
24287 \end_inset
24288
24289
24290 \begin_inset CommandInset href
24291 LatexCommand href
24292 target "https://www.ctan.org/tex-archive/help/Catalogue/entries/chktex.html"
24293 literal "false"
24294
24295 \end_inset
24296
24297 .
24298 \end_layout
24299
24300 \begin_layout Standard
24301 The 
24302 \family sans
24303 Chk\SpecialChar TeX
24304
24305 \family default
24306  package is a program that was written by 
24307 \begin_inset Flex Noun
24308 status collapsed
24309
24310 \begin_layout Plain Layout
24311 Jens T.
24312 \begin_inset space ~
24313 \end_inset
24314
24315 Berger Thielemann
24316 \end_layout
24317
24318 \end_inset
24319
24320  in frustration because some constructs in \SpecialChar LaTeX
24321  are sometimes non-intuitive,
24322  and easy to forget.
24323  The program runs over your \SpecialChar LaTeX
24324  file, checks the integrity of the file, and
24325  flags some common errors.
24326  In other technical words, it is 
24327 \family typewriter
24328 lint
24329 \family default
24330  for \SpecialChar LaTeX
24331 .
24332 \end_layout
24333
24334 \begin_layout Standard
24335 Well, what is a syntax checker doing in \SpecialChar LyX
24336  which is supposed to produce correct
24337  \SpecialChar LaTeX
24338  anyways? The answer is simple: Just as 
24339 \family typewriter
24340 Lint
24341 \family default
24342  not only checks the 
24343 \emph on
24344 syntax
24345 \emph default
24346  of C programs, but also does 
24347 \emph on
24348 semantic
24349 \emph default
24350  checks for type-errors, 
24351 \family sans
24352 Chk\SpecialChar TeX
24353
24354 \family default
24355  catches some common 
24356 \emph on
24357 typographic
24358 \emph default
24359  errors, in addition to the syntactical ones.
24360  Specifically, 
24361 \family sans
24362 Chk\SpecialChar TeX
24363
24364 \family default
24365  is capable of detecting several common errors, such as
24366 \end_layout
24367
24368 \begin_layout Itemize
24369 Ellipsis detection:
24370 \begin_inset Newline newline
24371 \end_inset
24372
24373 Use \SpecialChar ldots
24374  instead of ...
24375 \end_layout
24376
24377 \begin_layout Itemize
24378 No space in front of/after parenthesis:
24379 \begin_inset Newline newline
24380 \end_inset
24381
24382 ( wrong spacing )
24383 \end_layout
24384
24385 \begin_layout Itemize
24386 Enforcement of normal space after common abbreviations:
24387 \begin_inset Newline newline
24388 \end_inset
24389
24390 e.
24391 \begin_inset space \thinspace{}
24392 \end_inset
24393
24394 g.
24395 \begin_inset space \space{}
24396 \end_inset
24397
24398 is too wide spacing.
24399 \end_layout
24400
24401 \begin_layout Itemize
24402 Enforcement of end-of-sentence space when the last sentence ends with a
24403  capital letter:
24404 \begin_inset Newline newline
24405 \end_inset
24406
24407 This is a TEST.
24408  And this is wrong spacing.
24409 \end_layout
24410
24411 \begin_layout Itemize
24412 Space in front of labels and similar commands:
24413 \begin_inset Newline newline
24414 \end_inset
24415
24416 The label should stick right up to the text to avoid falling to a wrong
24417  page.
24418  
24419 \begin_inset CommandInset label
24420 LatexCommand label
24421 name "sec:chktex"
24422
24423 \end_inset
24424
24425  
24426 \begin_inset Foot
24427 status collapsed
24428
24429 \begin_layout Plain Layout
24430 This footnote is in danger of falling off to a wrong page
24431 \end_layout
24432
24433 \end_inset
24434
24435  The label is separated too much.
24436 \end_layout
24437
24438 \begin_layout Itemize
24439 Space in front of references, instead of hard spaces:
24440 \begin_inset Newline newline
24441 \end_inset
24442
24443 If you have bad luck, the text will break right between the referenced text
24444  and reference number, and that's a pity.
24445  See section 
24446 \begin_inset CommandInset ref
24447 LatexCommand ref
24448 reference "sec:chktex"
24449
24450 \end_inset
24451
24452 .
24453 \end_layout
24454
24455 \begin_layout Itemize
24456 Use of 
24457 \begin_inset Quotes eld
24458 \end_inset
24459
24460 x
24461 \begin_inset Quotes erd
24462 \end_inset
24463
24464  instead of 
24465 \begin_inset Formula $\times$
24466 \end_inset
24467
24468  between numbers:
24469 \begin_inset Newline newline
24470 \end_inset
24471
24472 2x2 looks cheap compared to 
24473 \begin_inset Formula $2\times2$
24474 \end_inset
24475
24476 .
24477 \end_layout
24478
24479 \begin_layout Standard
24480 and more \SpecialChar ldots
24481  It is an invaluable tool when you are 
24482 \begin_inset Quotes eld
24483 \end_inset
24484
24485 finishing up
24486 \begin_inset Quotes erd
24487 \end_inset
24488
24489  your document before printing, and you should run it right after the obligatory
24490  spelling check, and before you go fine tuning the typesetting.
24491 \end_layout
24492
24493 \begin_layout Subsection
24494 How to use it
24495 \end_layout
24496
24497 \begin_layout Standard
24498 If you have the program installed, usage is as simple as choosing 
24499 \family sans
24500 Tools\SpecialChar menuseparator
24501 Check
24502 \begin_inset space ~
24503 \end_inset
24504
24505 TeX
24506 \family default
24507 .
24508  This will make \SpecialChar LyX
24509  generate a \SpecialChar LaTeX
24510  file of your document, start 
24511 \family sans
24512 Chk\SpecialChar TeX
24513
24514 \family default
24515  to check it, and then make \SpecialChar LyX
24516  insert 
24517 \begin_inset Quotes eld
24518 \end_inset
24519
24520 error boxes
24521 \begin_inset Quotes erd
24522 \end_inset
24523
24524  with the warnings from 
24525 \family sans
24526 Chk\SpecialChar TeX
24527
24528 \family default
24529 , if there were any.
24530  The warnings will be placed close to the point of the mistake, and you
24531  can quickly find them by using the 
24532 \family sans
24533 Navigate\SpecialChar menuseparator
24534 Error
24535 \family default
24536  menu item, or the shortcut key 
24537 \family sans
24538 C-g
24539 \family default
24540  from the default 
24541 \family typewriter
24542 cua
24543 \family default
24544  bind file.
24545  Open the error boxes by clicking on them with the mouse, or use the shortcut
24546  key 
24547 \family sans
24548 C-i
24549 \family default
24550  from 
24551 \family typewriter
24552 cua
24553 \family default
24554  bindings, or the corresponding 
24555 \family sans
24556 C-o
24557 \family default
24558  for the alternate 
24559 \family typewriter
24560 emacs
24561 \family default
24562  bind file.
24563  Read the warning and correct the mistake, if it is a mistake.
24564  If you have trouble understanding what the warning is about, you can safely
24565  ignore it.
24566  Remember that there is a hidden layer between the document on screen and
24567  the technical details in invoking 
24568 \family sans
24569 Chk\SpecialChar TeX
24570
24571 \family default
24572 , and this gap can make some warnings seem arcane or just plain silly.
24573 \end_layout
24574
24575 \begin_layout Standard
24576 This document is an excellent testing bed for the feature, and it should
24577  provide quite a few warnings for you to fiddle with.
24578  Since computers are only so smart, expect most of the warnings to be false
24579  alarms, though.
24580 \end_layout
24581
24582 \begin_layout Subsection
24583 How to fine tune it
24584 \end_layout
24585
24586 \begin_layout Standard
24587 Sometimes, you'll find that 
24588 \family sans
24589 Chk\SpecialChar TeX
24590
24591 \family default
24592  makes more noise than suits your mood.
24593  Then you can choose not to use it, wait until your mood changes, or try
24594  to customize 
24595 \family sans
24596 Chk\SpecialChar TeX
24597
24598 \family default
24599  to get better along with you.
24600 \end_layout
24601
24602 \begin_layout Standard
24603 Although 
24604 \family sans
24605 Chk\SpecialChar TeX
24606
24607 \family default
24608  
24609 \emph on
24610 is
24611 \emph default
24612  very configurable and extensible, you should not expect to solve all problems
24613  with 
24614 \family sans
24615 Chk\SpecialChar TeX
24616
24617 \family default
24618  in \SpecialChar LyX
24619  this way.
24620  Since \SpecialChar LyX
24621  has to generate a somewhat special \SpecialChar LaTeX
24622  file to be able to match the
24623  line numbers from the 
24624 \family sans
24625 Chk\SpecialChar TeX
24626
24627 \family default
24628  output
24629 \begin_inset Foot
24630 status collapsed
24631
24632 \begin_layout Plain Layout
24633 You can inspect the specific output from 
24634 \family sans
24635 chktex
24636 \family default
24637  by using 
24638 \family sans
24639 Document\SpecialChar menuseparator
24640 \SpecialChar LaTeX
24641
24642 \begin_inset space ~
24643 \end_inset
24644
24645 Log
24646 \family default
24647  right after a 
24648 \family sans
24649 chktex
24650 \family default
24651  run.
24652 \end_layout
24653
24654 \end_inset
24655
24656  to the internal document structure, some of the warnings will not appear
24657  correctly.
24658  There are two things you can do about this:
24659 \end_layout
24660
24661 \begin_layout Itemize
24662 Fine tune the 
24663 \family sans
24664 Chk\SpecialChar TeX
24665
24666 \family default
24667  invocation command line in 
24668 \begin_inset Flex Noun
24669 status collapsed
24670
24671 \begin_layout Plain Layout
24672 Tools\SpecialChar menuseparator
24673 Preferences\SpecialChar menuseparator
24674 Output\SpecialChar menuseparator
24675 LaTeX\SpecialChar menuseparator
24676 CheckTeX command
24677 \end_layout
24678
24679 \end_inset
24680
24681 , or the global 
24682 \family sans
24683 Chk\SpecialChar TeX
24684
24685 \family default
24686  installation configuration file (usually with the file 
24687 \family typewriter
24688 chktexrc
24689 \family default
24690 ).
24691  See below to learn what warnings can be enabled and disabled on the command
24692  line.
24693 \end_layout
24694
24695 \begin_layout Itemize
24696 Export your document as a raw \SpecialChar LaTeX
24697  file using 
24698 \family sans
24699 File\SpecialChar menuseparator
24700 Export\SpecialChar menuseparator
24701 \SpecialChar LaTeX
24702
24703 \family default
24704  and run 
24705 \family typewriter
24706 chktex
24707 \family default
24708  manually on that.
24709  Invoked in this way, it can be a hassle to find the corresponding place
24710  in the document inside \SpecialChar LyX
24711 , but with a little patience, you should be able
24712  to do it.
24713 \end_layout
24714
24715 \begin_layout Standard
24716 Here follows the warning messages that can be enabled and disabled in 
24717 \family sans
24718 Preferences
24719 \family default
24720 .
24721  Use 
24722 \family typewriter
24723 -n#
24724 \family default
24725  to disable a warning, and 
24726 \family typewriter
24727 -w#
24728 \family default
24729  to enable a warning.
24730  The emphasized entries are disabled by default, because the default is
24731  "
24732 \family typewriter
24733 chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38
24734 \family default
24735 ".
24736 \end_layout
24737
24738 \begin_layout Standard
24739 Notice that you should only use the options that enable and disable warnings,
24740  because \SpecialChar LyX
24741  relies on some of the other command line parameters to be set
24742  in a specific way to have a chance to communicate with 
24743 \family typewriter
24744 chktex
24745 \family default
24746 .
24747 \end_layout
24748
24749 \begin_layout Enumerate
24750
24751 \size small
24752 \emph on
24753 Command terminated with space.
24754 \end_layout
24755
24756 \begin_layout Enumerate
24757
24758 \size small
24759 Non-breaking space (
24760 \begin_inset Quotes eld
24761 \end_inset
24762
24763
24764 \family typewriter
24765 ~
24766 \family default
24767
24768 \begin_inset Quotes erd
24769 \end_inset
24770
24771 ) should have been used.
24772 \end_layout
24773
24774 \begin_layout Enumerate
24775
24776 \size small
24777 \emph on
24778 You should enclose the previous parenthesis with 
24779 \begin_inset Quotes eld
24780 \end_inset
24781
24782
24783 \family typewriter
24784 {}
24785 \family default
24786
24787 \begin_inset Quotes erd
24788 \end_inset
24789
24790 .
24791 \end_layout
24792
24793 \begin_layout Enumerate
24794
24795 \size small
24796 Italic correction (
24797 \begin_inset Quotes eld
24798 \end_inset
24799
24800
24801 \family typewriter
24802
24803 \backslash
24804 /
24805 \family default
24806
24807 \begin_inset Quotes erd
24808 \end_inset
24809
24810 ) found in non-italic buffer.
24811 \end_layout
24812
24813 \begin_layout Enumerate
24814
24815 \size small
24816 Italic correction (
24817 \begin_inset Quotes eld
24818 \end_inset
24819
24820
24821 \family typewriter
24822
24823 \backslash
24824 /
24825 \family default
24826
24827 \begin_inset Quotes erd
24828 \end_inset
24829
24830 ) found more than once.
24831 \end_layout
24832
24833 \begin_layout Enumerate
24834
24835 \size small
24836 \emph on
24837 No italic correction (
24838 \begin_inset Quotes eld
24839 \end_inset
24840
24841
24842 \family typewriter
24843
24844 \backslash
24845 /
24846 \family default
24847
24848 \begin_inset Quotes erd
24849 \end_inset
24850
24851 ) found.
24852 \end_layout
24853
24854 \begin_layout Enumerate
24855
24856 \size small
24857 Accent command 
24858 \begin_inset Quotes eld
24859 \end_inset
24860
24861
24862 \family typewriter
24863 cmd
24864 \family default
24865
24866 \begin_inset Quotes erd
24867 \end_inset
24868
24869  needs use of 
24870 \begin_inset Quotes eld
24871 \end_inset
24872
24873
24874 \family typewriter
24875 cmd
24876 \family default
24877
24878 \begin_inset Quotes erd
24879 \end_inset
24880
24881 .
24882 \end_layout
24883
24884 \begin_layout Enumerate
24885
24886 \size small
24887 Wrong length of dash may have been used.
24888 \end_layout
24889
24890 \begin_layout Enumerate
24891
24892 \size small
24893 \emph on
24894 \begin_inset Quotes eld
24895 \end_inset
24896
24897
24898 \family typewriter
24899 %s
24900 \family default
24901
24902 \begin_inset Quotes erd
24903 \end_inset
24904
24905  expected, found 
24906 \begin_inset Quotes eld
24907 \end_inset
24908
24909
24910 \family typewriter
24911 %s
24912 \family default
24913
24914 \begin_inset Quotes erd
24915 \end_inset
24916
24917 .
24918 \end_layout
24919
24920 \begin_layout Enumerate
24921
24922 \size small
24923 Solo 
24924 \begin_inset Quotes eld
24925 \end_inset
24926
24927
24928 \family typewriter
24929 %s
24930 \family default
24931
24932 \begin_inset Quotes erd
24933 \end_inset
24934
24935  found.
24936 \end_layout
24937
24938 \begin_layout Enumerate
24939
24940 \size small
24941 You should use 
24942 \begin_inset Quotes eld
24943 \end_inset
24944
24945
24946 \family typewriter
24947 %s
24948 \family default
24949
24950 \begin_inset Quotes erd
24951 \end_inset
24952
24953  to achieve an ellipsis.
24954 \end_layout
24955
24956 \begin_layout Enumerate
24957
24958 \size small
24959 Inter-word spacing (
24960 \begin_inset Quotes eld
24961 \end_inset
24962
24963
24964 \family typewriter
24965
24966 \backslash
24967
24968 \family default
24969  
24970 \begin_inset Quotes eld
24971 \end_inset
24972
24973 ) should perhaps be used.
24974 \end_layout
24975
24976 \begin_layout Enumerate
24977
24978 \size small
24979 Inter-sentence spacing (
24980 \begin_inset Quotes eld
24981 \end_inset
24982
24983
24984 \family typewriter
24985
24986 \backslash
24987 @
24988 \family default
24989
24990 \begin_inset Quotes erd
24991 \end_inset
24992
24993 ) should perhaps be used.
24994 \end_layout
24995
24996 \begin_layout Enumerate
24997
24998 \size small
24999 Could not find argument for command.
25000 \end_layout
25001
25002 \begin_layout Enumerate
25003
25004 \size small
25005 No match found for 
25006 \begin_inset Quotes eld
25007 \end_inset
25008
25009
25010 \family typewriter
25011 %s
25012 \family default
25013
25014 \begin_inset Quotes erd
25015 \end_inset
25016
25017 .
25018 \end_layout
25019
25020 \begin_layout Enumerate
25021
25022 \size small
25023 Math mode still on at end of \SpecialChar LaTeX
25024  file.
25025 \end_layout
25026
25027 \begin_layout Enumerate
25028
25029 \size small
25030 Number of 
25031 \begin_inset Quotes eld
25032 \end_inset
25033
25034
25035 \family typewriter
25036 char
25037 \family default
25038
25039 \begin_inset Quotes erd
25040 \end_inset
25041
25042  doesn't match the number of 
25043 \begin_inset Quotes eld
25044 \end_inset
25045
25046
25047 \family typewriter
25048 char
25049 \family default
25050
25051 \begin_inset Quotes erd
25052 \end_inset
25053
25054 .
25055 \end_layout
25056
25057 \begin_layout Enumerate
25058
25059 \size small
25060 You should use either 
25061 \family typewriter
25062
25063 \begin_inset Quotes eld
25064 \end_inset
25065
25066
25067 \family default
25068  or 
25069 \family typewriter
25070
25071 \begin_inset Quotes erd
25072 \end_inset
25073
25074
25075 \family default
25076  as an alternative to 
25077 \begin_inset Quotes eld
25078 \end_inset
25079
25080
25081 \family typewriter
25082 "
25083 \family default
25084
25085 \begin_inset Quotes erd
25086 \end_inset
25087
25088 .
25089 \end_layout
25090
25091 \begin_layout Enumerate
25092
25093 \size small
25094 You should use "
25095 \family typewriter
25096 '
25097 \family default
25098 " (ASCII 39) instead of "
25099 \family typewriter
25100 ´
25101 \family default
25102 " (ASCII 180).
25103 \end_layout
25104
25105 \begin_layout Enumerate
25106
25107 \size small
25108 User-specified pattern found.
25109 \end_layout
25110
25111 \begin_layout Enumerate
25112
25113 \size small
25114 This command might not be intended.
25115 \end_layout
25116
25117 \begin_layout Enumerate
25118
25119 \size small
25120 \emph on
25121 Comment displayed.
25122 \end_layout
25123
25124 \begin_layout Enumerate
25125
25126 \size small
25127 Either 
25128 \family typewriter
25129 ''
25130 \backslash
25131 ,'
25132 \family default
25133  or 
25134 \family typewriter
25135 '
25136 \backslash
25137 ,''
25138 \family default
25139  will look better.
25140 \end_layout
25141
25142 \begin_layout Enumerate
25143
25144 \size small
25145 Delete this space to maintain correct page references.
25146 \end_layout
25147
25148 \begin_layout Enumerate
25149
25150 \size small
25151 \emph on
25152 You might wish to put this between a pair of 
25153 \begin_inset Quotes eld
25154 \end_inset
25155
25156
25157 \family typewriter
25158 {}
25159 \family default
25160
25161 \begin_inset Quotes erd
25162 \end_inset
25163
25164 .
25165 \end_layout
25166
25167 \begin_layout Enumerate
25168
25169 \size small
25170 You ought to remove spaces in front of punctuation.
25171 \end_layout
25172
25173 \begin_layout Enumerate
25174
25175 \size small
25176 Could not execute \SpecialChar LaTeX
25177  command.
25178 \end_layout
25179
25180 \begin_layout Enumerate
25181
25182 \size small
25183 Don't use 
25184 \family typewriter
25185
25186 \backslash
25187 /
25188 \family default
25189  in front of small punctuation.
25190 \end_layout
25191
25192 \begin_layout Enumerate
25193
25194 \family typewriter
25195 \size small
25196 $
25197 \backslash
25198 times$
25199 \family default
25200  may look prettier here.
25201 \end_layout
25202
25203 \begin_layout Enumerate
25204
25205 \size small
25206 \emph on
25207 Multiple spaces detected in output.
25208 \end_layout
25209
25210 \begin_layout Enumerate
25211
25212 \size small
25213 This text may be ignored.
25214 \end_layout
25215
25216 \begin_layout Enumerate
25217
25218 \size small
25219 Use 
25220 \family typewriter
25221
25222 \begin_inset Quotes eld
25223 \end_inset
25224
25225
25226 \family default
25227  to begin quotation, not 
25228 \family typewriter
25229 '
25230 \family default
25231 .
25232 \end_layout
25233
25234 \begin_layout Enumerate
25235
25236 \size small
25237 Use 
25238 \family typewriter
25239 '
25240 \family default
25241  to end quotation, not 
25242 \family typewriter
25243
25244 \begin_inset Quotes eld
25245 \end_inset
25246
25247
25248 \family default
25249 .
25250 \end_layout
25251
25252 \begin_layout Enumerate
25253
25254 \size small
25255 Don't mix quotes.
25256 \end_layout
25257
25258 \begin_layout Enumerate
25259
25260 \size small
25261 You should perhaps use 
25262 \begin_inset Quotes eld
25263 \end_inset
25264
25265
25266 \family typewriter
25267 cmd
25268 \family default
25269
25270 \begin_inset Quotes erd
25271 \end_inset
25272
25273  instead.
25274 \end_layout
25275
25276 \begin_layout Enumerate
25277
25278 \size small
25279 You should put a space in front of/after parenthesis.
25280 \end_layout
25281
25282 \begin_layout Enumerate
25283
25284 \size small
25285 You should avoid spaces in front of/after parenthesis.
25286 \end_layout
25287
25288 \begin_layout Enumerate
25289
25290 \size small
25291 \emph on
25292 You should not use punctuation in front of/after quotes.
25293 \end_layout
25294
25295 \begin_layout Enumerate
25296
25297 \size small
25298 Double space found.
25299 \end_layout
25300
25301 \begin_layout Enumerate
25302
25303 \size small
25304 You should put punctuation outside inner/inside display math mode.
25305 \end_layout
25306
25307 \begin_layout Enumerate
25308
25309 \size small
25310 You ought to not use primitive \SpecialChar TeX
25311  in \SpecialChar LaTeX
25312  code.
25313 \end_layout
25314
25315 \begin_layout Enumerate
25316
25317 \size small
25318 You should remove spaces in front of 
25319 \begin_inset Quotes eld
25320 \end_inset
25321
25322
25323 \family typewriter
25324 %s
25325 \family default
25326
25327 \begin_inset Quotes erd
25328 \end_inset
25329
25330
25331 \end_layout
25332
25333 \begin_layout Enumerate
25334
25335 \size small
25336 \begin_inset Quotes eld
25337 \end_inset
25338
25339
25340 \family typewriter
25341 %s
25342 \family default
25343
25344 \begin_inset Quotes erd
25345 \end_inset
25346
25347  is normally not followed by 
25348 \begin_inset Quotes eld
25349 \end_inset
25350
25351
25352 \family typewriter
25353 %c
25354 \family default
25355
25356 \begin_inset Quotes erd
25357 \end_inset
25358
25359 .
25360 \end_layout
25361
25362 \begin_layout Standard
25363 In later versions of \SpecialChar LyX
25364 , we hope to provide a more complete interface to this
25365  tool (and it's smaller cousin 
25366 \family typewriter
25367 lacheck
25368 \family default
25369 ) to exploit the full power of it.
25370  But it's not exactly useless as it is now: go try it on one of your existing
25371  documents of a certain length and be surprised.
25372 \end_layout
25373
25374 \begin_layout Section
25375 Version Control in \SpecialChar LyX
25376
25377 \end_layout
25378
25379 \begin_layout Standard
25380 by
25381 \noun on
25382  Lars Gullik Bjønnes 
25383 \noun default
25384 and 
25385 \noun on
25386 Pavel Sanda
25387 \end_layout
25388
25389 \begin_layout Subsection
25390 Introduction
25391 \end_layout
25392
25393 \begin_layout Standard
25394 \SpecialChar LyX
25395  supports some of the most basic RCS/CVS/SVN/GIT commands.
25396  If you need something a bit more sophisticated you will have to do that
25397  manually in a terminal.
25398 \end_layout
25399
25400 \begin_layout Standard
25401 Also note that CVS support is not as good as subversion support, so we advise
25402  using SVN instead.
25403  A good place to start learning Subversion is the SVN Book
25404 \begin_inset Foot
25405 status collapsed
25406
25407 \begin_layout Plain Layout
25408 \begin_inset CommandInset href
25409 LatexCommand href
25410 target "http://svnbook.red-bean.com/"
25411 literal "false"
25412
25413 \end_inset
25414
25415
25416 \end_layout
25417
25418 \end_inset
25419
25420 .
25421  In the case of RCS you should read 
25422 \begin_inset Quotes eld
25423 \end_inset
25424
25425 rcsintro
25426 \begin_inset Quotes erd
25427 \end_inset
25428
25429  (a man file, read it with 
25430 \family typewriter
25431 man rcsintro
25432 \family default
25433 ).
25434  This file describes all the basic features of RCS.
25435  You should especially notice the comment about a RCS directory, and the
25436  notion of a master RCS file (the file ending in 
25437 \family typewriter
25438 ,v
25439 \family default
25440 ).
25441 \end_layout
25442
25443 \begin_layout Standard
25444 Before you begin to use the version control features in \SpecialChar LyX
25445 , you should be
25446  familiar with RCS/CVS/SVN/GIT usage.
25447  The implementation in \SpecialChar LyX
25448  assumes a recent version of the GNU RCS or CVS/SVN
25449  package — no guarantees are made for older versions.
25450  Most of the log messages are not currently displayed after operations —
25451  you can check them in the Messages pane if you are unsure.
25452  Regular users of version control will appreciate the VC toolbar, which
25453  can be enabled via 
25454 \family sans
25455 View\SpecialChar menuseparator
25456 Toolbars\SpecialChar menuseparator
25457 Version
25458 \begin_inset space ~
25459 \end_inset
25460
25461 Control
25462 \family default
25463 .
25464 \end_layout
25465
25466 \begin_layout Standard
25467 For introducing your own external commands consult 
25468 \begin_inset Flex Code
25469 status collapsed
25470
25471 \begin_layout Plain Layout
25472 vc-command
25473 \end_layout
25474
25475 \end_inset
25476
25477  in the manual 
25478 \emph on
25479 \SpecialChar LyX
25480  Functions
25481 \emph default
25482 .
25483 \end_layout
25484
25485 \begin_layout Standard
25486 It is strongly recommended to store documents in uncompressed format if
25487  using version control (uncheck 
25488 \family sans
25489 Document\SpecialChar menuseparator
25490 Compressed
25491 \family default
25492  if it is checked): Uncompressed LyX documents are text files and therefore
25493  for merging two different versions by version control systems.
25494  Compressed LyX documents are binary files, which cannot be merged by version
25495  control systems.
25496 \end_layout
25497
25498 \begin_layout Subsection
25499 RCS commands in \SpecialChar LyX
25500
25501 \end_layout
25502
25503 \begin_layout Standard
25504 The following sections describe the RCS commands supported by \SpecialChar LyX
25505 .
25506  You can find them in the 
25507 \family sans
25508 File\SpecialChar menuseparator
25509 Version
25510 \begin_inset space ~
25511 \end_inset
25512
25513 Control
25514 \family default
25515  submenu.
25516  \SpecialChar LyX
25517  was tested against RCS 5.7/5.8.
25518 \end_layout
25519
25520 \begin_layout Subsubsection
25521
25522 \family sans
25523 Register
25524 \end_layout
25525
25526 \begin_layout Standard
25527 If your document is not under revision control, this is the only item shown
25528  in the menu.
25529  And if it is under revision control, the 
25530 \family sans
25531 Register
25532 \family default
25533  item is not visible.
25534  
25535 \end_layout
25536
25537 \begin_layout Standard
25538 This command registers your document with RCS (unless you are under the
25539  directory managed by CVS)\SpecialChar endofsentence
25540  You are asked interactively to supply an initial
25541  description of the document.
25542  The document is now set in Read-Only mode and you have to 
25543 \family sans
25544 Check
25545 \begin_inset space ~
25546 \end_inset
25547
25548 Out
25549 \begin_inset space ~
25550 \end_inset
25551
25552 For
25553 \begin_inset space ~
25554 \end_inset
25555
25556 Edit
25557 \family default
25558 , before making any changes to it.
25559  A document under revision control has a 
25560 \begin_inset Quotes eld
25561 \end_inset
25562
25563 [RCS:<version> <locker>]
25564 \begin_inset Quotes erd
25565 \end_inset
25566
25567  item tagged to the filename in the minibuffer.
25568 \end_layout
25569
25570 \begin_layout Standard
25571 RCS command that is run:
25572 \end_layout
25573
25574 \begin_layout LyX-Code
25575
25576 \family typewriter
25577 ci -q -u -i -t-"<initial description>" <file-name>
25578 \end_layout
25579
25580 \begin_layout Standard
25581 Read 
25582 \family typewriter
25583 man ci
25584 \family default
25585  to understand the switches.
25586  
25587 \end_layout
25588
25589 \begin_layout Subsubsection
25590
25591 \family sans
25592 Check In Changes
25593 \end_layout
25594
25595 \begin_layout Standard
25596 When you are finished editing a file, you check in your changes.
25597  When you do this, you are asked for a description of the changes.
25598  This is stored in the history log.
25599  The version number is bumped, your changes are applied to the master RCS
25600  file, the document is unlocked and set to Read-Only mode.
25601 \end_layout
25602
25603 \begin_layout Itemize
25604 RCS command: 
25605 \family typewriter
25606 ci -q -u -m"<description>" <file-name>
25607 \end_layout
25608
25609 \begin_layout Subsubsection
25610
25611 \family sans
25612 Check Out For Edit
25613 \end_layout
25614
25615 \begin_layout Standard
25616 By doing this you lock the document so that only you can edit it.
25617  This will also make the document Read-Write only for you.
25618  You will usually continue editing for a while and when you are finished
25619  you check in your changes.
25620  The status line is changed to reflect that you have locked the file.
25621 \end_layout
25622
25623 \begin_layout Itemize
25624 RCS command: 
25625 \family typewriter
25626 co -q -l <file-name>
25627 \end_layout
25628
25629 \begin_layout Subsubsection
25630
25631 \family sans
25632 Revert To Repository Version
25633 \end_layout
25634
25635 \begin_layout Standard
25636 This will discard all changes made to the document since the last check
25637  in.
25638  You get a warning before changes are discarded.
25639 \end_layout
25640
25641 \begin_layout Itemize
25642 RCS command: 
25643 \family typewriter
25644 co -f -u<version> <file-name>
25645 \end_layout
25646
25647 \begin_layout Subsubsection
25648
25649 \family sans
25650 Copy
25651 \end_layout
25652
25653 \begin_layout Standard
25654 This will create a copy of the current document.
25655  Since RCS does not support copy operations natively, the version history
25656  is not preserved, and the copy is added as a new file.
25657  It requires a clean document without any changes since the last checkin.
25658  You are asked for a file name and a description of the copy operation.
25659  After that the copy is created, both locally and in the repository.
25660  If the parent directories of the copied and original document differ, all
25661  relative paths of included files of the copy are adjusted (like in 
25662 \family sans
25663 File\SpecialChar menuseparator
25664 Save As
25665 \family default
25666 \SpecialChar ldots
25667 ).
25668  Finally, the copy is loaded instead of the original document.
25669 \end_layout
25670
25671 \begin_layout Labeling
25672 \labelwidthstring 00.00.0000
25673 RCS
25674 \begin_inset space ~
25675 \end_inset
25676
25677 commands: 
25678 \begin_inset space ~
25679 \end_inset
25680
25681
25682 \begin_inset Newline newline
25683 \end_inset
25684
25685 Copy 
25686 \begin_inset Flex Code
25687 status collapsed
25688
25689 \begin_layout Plain Layout
25690
25691 \family typewriter
25692 \begin_inset Quotes qld
25693 \end_inset
25694
25695 <file-name>
25696 \begin_inset Quotes qld
25697 \end_inset
25698
25699
25700 \end_layout
25701
25702 \end_inset
25703
25704  to 
25705 \begin_inset Flex Code
25706 status collapsed
25707
25708 \begin_layout Plain Layout
25709
25710 \family typewriter
25711 \begin_inset Quotes qld
25712 \end_inset
25713
25714 <new-file-name>
25715 \begin_inset Quotes qld
25716 \end_inset
25717
25718
25719 \end_layout
25720
25721 \end_inset
25722
25723
25724 \begin_inset Newline newline
25725 \end_inset
25726
25727
25728 \begin_inset Flex Code
25729 status collapsed
25730
25731 \begin_layout Plain Layout
25732 ci -q -u 
25733 \family typewriter
25734 -i 
25735 \begin_inset Quotes qld
25736 \end_inset
25737
25738 <new-file-name>
25739 \begin_inset Quotes qld
25740 \end_inset
25741
25742
25743 \end_layout
25744
25745 \end_inset
25746
25747
25748 \end_layout
25749
25750 \begin_layout Subsubsection
25751
25752 \family sans
25753 Undo Last Checkin
25754 \end_layout
25755
25756 \begin_layout Standard
25757 This makes as if the last check in never happened.
25758  No changes are made to the document loaded into \SpecialChar LyX
25759 , but the last version
25760  is removed from the master RCS file.
25761 \end_layout
25762
25763 \begin_layout Itemize
25764 RCS command: 
25765 \family typewriter
25766 rcs -o<version> <file-name>
25767 \end_layout
25768
25769 \begin_layout Subsubsection
25770
25771 \family sans
25772 Show History
25773 \end_layout
25774
25775 \begin_layout Standard
25776 This shows the complete history of the RCS document.
25777  The output of 
25778 \family typewriter
25779 rlog <file-name>
25780 \family default
25781  is shown in a browser.
25782  See 
25783 \family typewriter
25784 man rlog
25785 \family default
25786  for more info.
25787 \end_layout
25788
25789 \begin_layout Subsubsection
25790 Revision info
25791 \end_layout
25792
25793 \begin_layout Standard
25794 \SpecialChar LyX
25795  supports RCS version number, author name, date and time of last commit.
25796  All those are extracted from 
25797 \family typewriter
25798 rlog -r <file-name>
25799 \family default
25800 .
25801  See 
25802 \begin_inset CommandInset ref
25803 LatexCommand ref
25804 reference "subsec:VCS-Revision-Information"
25805
25806 \end_inset
25807
25808  for details.
25809 \end_layout
25810
25811 \begin_layout Subsection
25812 CVS commands in \SpecialChar LyX
25813
25814 \end_layout
25815
25816 \begin_layout Standard
25817 A subset of CVS operations is supported by \SpecialChar LyX
25818 .
25819  You can find the commands in the 
25820 \family sans
25821 File\SpecialChar menuseparator
25822 Version
25823 \begin_inset space ~
25824 \end_inset
25825
25826 Control
25827 \family default
25828  submenu.
25829  The version control system SVN is more powerful, so please use it instead
25830  of CVS if possible.
25831 \end_layout
25832
25833 \begin_layout Subsubsection
25834
25835 \family sans
25836 General CVS usage
25837 \end_layout
25838
25839 \begin_layout Standard
25840 If you start from scratch with CVS you have to create your repository and
25841  checkout the working copy with external tools.
25842  If you're using a client-server setup you may need to login before doing
25843  the first repository checkout.
25844 \end_layout
25845
25846 \begin_layout Standard
25847 If your documents are under revision control and others are using the same
25848  repository problems arise when different changes to the same document at
25849  the same location happen.
25850  Standard CVS repositories don't operate with a file locking mechanism.
25851  This may be surprising, but conflicts only occur if people disagree on
25852  the proper content of the same part of a document.
25853  So, if co-workers are used to communicate regularly, these conflicts occur
25854  rarely.
25855  If they don't communicate they have a fundamental problem anyway.
25856  Nevertheless some people like to work with so called 
25857 \begin_inset Quotes eld
25858 \end_inset
25859
25860 reserved checkouts
25861 \begin_inset Quotes erd
25862 \end_inset
25863
25864 .
25865  If they do so the working copy of all files is readonly when checked out
25866  first and the user starts editing after using a special command to make
25867  the working copy writable.
25868  When the changes are checked in the working copy returns to readonly state.
25869  With \SpecialChar LyX
25870  one has to edit the 
25871 \begin_inset Flex Code
25872 status collapsed
25873
25874 \begin_layout Plain Layout
25875 .cvsrc
25876 \end_layout
25877
25878 \end_inset
25879
25880  file and add the line 
25881 \begin_inset Flex Code
25882 status collapsed
25883
25884 \begin_layout Plain Layout
25885 cvs -r
25886 \end_layout
25887
25888 \end_inset
25889
25890  to work with reserved checkouts.
25891  The benefit is the possibility to see who is using a writable copy of some
25892  document.
25893  It's not guaranteed only one user makes a copy writable.
25894 \end_layout
25895
25896 \begin_layout Standard
25897 \SpecialChar LyX
25898  tries to guess if you're using reserved or non-reserved checkouts.
25899  If your working copy is readonly or it is writable and an additional copy
25900  of your document exists in the CVS/Base sub-directory a reserved otherwise
25901  a non-reserved checkout is assumed.
25902  When a reserved checkout is detected you have to use 
25903 \begin_inset Flex Noun
25904 status collapsed
25905
25906 \begin_layout Plain Layout
25907 Check Out
25908 \end_layout
25909
25910 \end_inset
25911
25912  to make your working copy writable if it's readonly.
25913  After doing so the 
25914 \begin_inset Flex Noun
25915 status collapsed
25916
25917 \begin_layout Plain Layout
25918 Check In
25919 \end_layout
25920
25921 \end_inset
25922
25923  operation is possible and that makes your working copy readonly again after
25924  transferring your changes to the repository.
25925 \end_layout
25926
25927 \begin_layout Standard
25928 More information about CVS can be found here 
25929 \begin_inset Flex URL
25930 status collapsed
25931
25932 \begin_layout Plain Layout
25933
25934 http://www.nongnu.org/cvs
25935 \end_layout
25936
25937 \end_inset
25938
25939  and here 
25940 \begin_inset Flex URL
25941 status collapsed
25942
25943 \begin_layout Plain Layout
25944
25945 http://ximbiot.com/cvs
25946 \end_layout
25947
25948 \end_inset
25949
25950 .
25951 \end_layout
25952
25953 \begin_layout Standard
25954 Read 
25955 \family typewriter
25956 man cvs
25957 \family default
25958  to understand the sub-commands and the switches mentioned below.
25959 \end_layout
25960
25961 \begin_layout Subsubsection
25962
25963 \family sans
25964 Register
25965 \end_layout
25966
25967 \begin_layout Standard
25968 If your document is not under revision control, this is the only item shown
25969  in the menu.
25970  And if it is under revision control, the 
25971 \family sans
25972 Register
25973 \family default
25974  item is not visible.
25975  
25976 \end_layout
25977
25978 \begin_layout Standard
25979 This command registers in CVS your document 
25980 \begin_inset Flex Strong
25981 status collapsed
25982
25983 \begin_layout Plain Layout
25984
25985 \emph on
25986 only
25987 \end_layout
25988
25989 \end_inset
25990
25991  in the case you have already the documents directory under CVS control
25992  (in particular 
25993 \family typewriter
25994 CVS/Entries
25995 \family default
25996  file exists).
25997  This means you have to create or checkout the archive by yourself using
25998  external tools.
25999  (In case you forget that step \SpecialChar LyX
26000  registers the document with RCS.)
26001 \end_layout
26002
26003 \begin_layout Standard
26004 Then you are asked interactively to supply an initial description of the
26005  document.
26006  Don't forget that registered file is not yet checked in.
26007 \end_layout
26008
26009 \begin_layout Standard
26010 CVS command that is run: 
26011 \family typewriter
26012 cvs -q add -m"<entered message>" "<file-name>"
26013 \end_layout
26014
26015 \begin_layout Standard
26016 The term 
26017 \family typewriter
26018 "<file-name>"
26019 \family default
26020  above and for all other CVS commands is an abbreviation for 
26021 \begin_inset Quotes eld
26022 \end_inset
26023
26024 change the current working directory to file location and use the file name
26025  without path component as argument
26026 \begin_inset Quotes erd
26027 \end_inset
26028
26029 .
26030 \end_layout
26031
26032 \begin_layout Subsubsection
26033
26034 \family sans
26035 Check In Changes
26036 \end_layout
26037
26038 \begin_layout Standard
26039 When you are finished editing a file, you commit your changes.
26040  When you do this and you had changed the document, you are asked for a
26041  description of the changes.
26042  After that changes are written to the repository.
26043  In case you didn't change the document and a reserved checkout is detected
26044  the reservation made on 
26045 \begin_inset Flex Noun
26046 status collapsed
26047
26048 \begin_layout Plain Layout
26049 Check Out
26050 \end_layout
26051
26052 \end_inset
26053
26054  is undone.
26055 \end_layout
26056
26057 \begin_layout Labeling
26058 \labelwidthstring 00.00.0000
26059 CVS
26060 \begin_inset space ~
26061 \end_inset
26062
26063 command: 
26064 \begin_inset space ~
26065 \end_inset
26066
26067
26068 \begin_inset Newline newline
26069 \end_inset
26070
26071
26072 \begin_inset Flex Code
26073 status collapsed
26074
26075 \begin_layout Plain Layout
26076 cvs 
26077 \family typewriter
26078 -q commit -m"<description>" "<file-name>"
26079 \end_layout
26080
26081 \end_inset
26082
26083  or
26084 \begin_inset Newline newline
26085 \end_inset
26086
26087
26088 \begin_inset Flex Code
26089 status collapsed
26090
26091 \begin_layout Plain Layout
26092 cvs -q unedit 
26093 \family typewriter
26094 "<file-name>"
26095 \end_layout
26096
26097 \end_inset
26098
26099
26100 \end_layout
26101
26102 \begin_layout Subsubsection
26103
26104 \family sans
26105 Check Out Changes
26106 \end_layout
26107
26108 \begin_layout Standard
26109 When you are sharing a repository with others, you may have to incorporate
26110  their changes into your working copy.
26111 \end_layout
26112
26113 \begin_layout Standard
26114 CVS command: 
26115 \family typewriter
26116 cvs -q update "<file-name>"
26117 \end_layout
26118
26119 \begin_layout Standard
26120 If a readonly checkout is detected the working copy is made writable and
26121  reserved.
26122 \end_layout
26123
26124 \begin_layout Standard
26125 CVS command: 
26126 \family typewriter
26127 cvs -q edit "<file-name>"
26128 \end_layout
26129
26130 \begin_layout Subsubsection
26131
26132 \family sans
26133 Revert To Repository Version
26134 \end_layout
26135
26136 \begin_layout Standard
26137 This will discard all changes made to the document since the last check
26138  in.
26139  You get a warning before changes are discarded.
26140  Firstly the file is deleted, secondly CVS update command is run.
26141 \end_layout
26142
26143 \begin_layout Standard
26144 CVS command: 
26145 \family typewriter
26146 cvs -q update "<file-name>"
26147 \end_layout
26148
26149 \begin_layout Standard
26150 If a reserved checkout is detected and the working copy has no changes only
26151  the reservation is undone.
26152 \end_layout
26153
26154 \begin_layout Standard
26155 CVS command: 
26156 \family typewriter
26157 cvs -q unedit "<file-name>"
26158 \end_layout
26159
26160 \begin_layout Subsubsection
26161
26162 \family sans
26163 Copy
26164 \end_layout
26165
26166 \begin_layout Standard
26167 This will create a copy of the current document.
26168  Since CVS does not support copy operations natively, the version history
26169  is not preserved, and the copy is added as a new file.
26170  It requires a clean document without any changes since the last checkin.
26171  You are asked for a file name and a description of the copy operation.
26172  After that the copy is created, both locally and in the repository.
26173  If the parent directories of the copied and original document differ, all
26174  relative paths of included files of the copy are adjusted (like in 
26175 \family sans
26176 File\SpecialChar menuseparator
26177 Save As
26178 \family default
26179 \SpecialChar ldots
26180 ).
26181  Finally, the copy is loaded instead of the original document.
26182 \end_layout
26183
26184 \begin_layout Labeling
26185 \labelwidthstring 00.00.0000
26186 CVS
26187 \begin_inset space ~
26188 \end_inset
26189
26190 commands: 
26191 \begin_inset space ~
26192 \end_inset
26193
26194
26195 \begin_inset Newline newline
26196 \end_inset
26197
26198 Copy 
26199 \begin_inset Flex Code
26200 status collapsed
26201
26202 \begin_layout Plain Layout
26203 "<file-name>"
26204 \end_layout
26205
26206 \end_inset
26207
26208  to 
26209 \begin_inset Flex Code
26210 status collapsed
26211
26212 \begin_layout Plain Layout
26213 "<new-file-name>"
26214 \end_layout
26215
26216 \end_inset
26217
26218
26219 \begin_inset Newline newline
26220 \end_inset
26221
26222
26223 \begin_inset Flex Code
26224 status collapsed
26225
26226 \begin_layout Plain Layout
26227 cvs -q add "<new-file-name>"
26228 \end_layout
26229
26230 \end_inset
26231
26232
26233 \end_layout
26234
26235 \begin_layout Subsubsection
26236
26237 \family sans
26238 Rename
26239 \end_layout
26240
26241 \begin_layout Standard
26242 This will rename the current document.
26243  Since CVS does not support rename operations natively, the version history
26244  is not preserved, the renamed document is added as a new file, and the
26245  original document is deleted.
26246  It requires a clean document without any changes since the last checkin.
26247  You are asked for a file name and a description of the rename operation.
26248  After that the document is renamed, both locally and in the repository.
26249  If the parent directories of the new and old file names differ, all relative
26250  paths of included files are adjusted (like in 
26251 \family sans
26252 File\SpecialChar menuseparator
26253 Save As
26254 \family default
26255 \SpecialChar ldots
26256 ).
26257  Finally, the document is reloaded using the new name.
26258 \end_layout
26259
26260 \begin_layout Labeling
26261 \labelwidthstring 00.00.0000
26262 CVS
26263 \begin_inset space ~
26264 \end_inset
26265
26266 commands: 
26267 \begin_inset space ~
26268 \end_inset
26269
26270
26271 \begin_inset Newline newline
26272 \end_inset
26273
26274 Rename 
26275 \begin_inset Flex Code
26276 status collapsed
26277
26278 \begin_layout Plain Layout
26279 "<file-name>"
26280 \end_layout
26281
26282 \end_inset
26283
26284  to 
26285 \begin_inset Flex Code
26286 status collapsed
26287
26288 \begin_layout Plain Layout
26289 "<new-file-name>"
26290 \end_layout
26291
26292 \end_inset
26293
26294
26295 \begin_inset Newline newline
26296 \end_inset
26297
26298
26299 \begin_inset Flex Code
26300 status collapsed
26301
26302 \begin_layout Plain Layout
26303 cvs -q add "<new-file-name>"
26304 \end_layout
26305
26306 \end_inset
26307
26308
26309 \begin_inset Newline newline
26310 \end_inset
26311
26312
26313 \begin_inset Flex Code
26314 status collapsed
26315
26316 \begin_layout Plain Layout
26317 cvs -q remove "<file-name>"
26318 \end_layout
26319
26320 \end_inset
26321
26322
26323 \end_layout
26324
26325 \begin_layout Subsubsection
26326 Update of the local directory checkout from repository
26327 \end_layout
26328
26329 \begin_layout Standard
26330 Once your documents gets more complex, containing sub-documents and pictures,
26331  including external 
26332 \begin_inset Flex Code
26333 status collapsed
26334
26335 \begin_layout Plain Layout
26336 .tex
26337 \end_layout
26338
26339 \end_inset
26340
26341  files and so on using version control becomes more complicated.
26342  \SpecialChar LyX
26343  supports updating the whole tree in which resides the document.
26344  This become especially useful once you cooperate with people which neither
26345  have detailed knowledge about CVS usage nor they have ambition to commit
26346  additional material to the repository.
26347  You have to organize the files structure so that all external files are
26348  in the same directory or subdirectories of the document.
26349  It's good practice anyway to store multipart documents in an extra directory.
26350 \end_layout
26351
26352 \begin_layout Standard
26353 The 
26354 \begin_inset Flex Code
26355 status collapsed
26356
26357 \begin_layout Plain Layout
26358 Update local directory from repository
26359 \end_layout
26360
26361 \end_inset
26362
26363  command updates the whole directory.
26364  If local changes are detected user is warned before update starts.
26365  In case of merge conflicts both versions of the conflicting document parts
26366  are placed in the final document.
26367  You have to review and correct the result of the merge.
26368  You'll find the conflicts enclosed in pairs of 
26369 \begin_inset Flex Code
26370 status collapsed
26371
26372 \begin_layout Plain Layout
26373 <<<<<<<
26374 \end_layout
26375
26376 \end_inset
26377
26378  and 
26379 \begin_inset Flex Code
26380 status collapsed
26381
26382 \begin_layout Plain Layout
26383 >>>>>>>
26384 \end_layout
26385
26386 \end_inset
26387
26388  separated by 
26389 \begin_inset Flex Code
26390 status collapsed
26391
26392 \begin_layout Plain Layout
26393 =======
26394 \end_layout
26395
26396 \end_inset
26397
26398 .
26399  The first part is your version as before the update operation with the
26400  document name prepended.
26401  The second one is the repository version with the version number after
26402  the sequence of 
26403 \begin_inset Flex Code
26404 status collapsed
26405
26406 \begin_layout Plain Layout
26407 >
26408 \end_layout
26409
26410 \end_inset
26411
26412  signs.
26413 \end_layout
26414
26415 \begin_layout Labeling
26416 \labelwidthstring 00.00.0000
26417 CVS
26418 \begin_inset space ~
26419 \end_inset
26420
26421 commands: 
26422 \begin_inset space ~
26423 \end_inset
26424
26425
26426 \begin_inset Newline newline
26427 \end_inset
26428
26429
26430 \begin_inset Flex Code
26431 status collapsed
26432
26433 \begin_layout Plain Layout
26434 cd $path; cvs diff 
26435 \family typewriter
26436 "."
26437 \end_layout
26438
26439 \end_inset
26440
26441  (Ask if changes are detected.)
26442 \begin_inset Newline newline
26443 \end_inset
26444
26445
26446 \begin_inset Flex Code
26447 status collapsed
26448
26449 \begin_layout Plain Layout
26450 cd $path; cvs -q update 
26451 \family typewriter
26452 "."
26453 \end_layout
26454
26455 \end_inset
26456
26457
26458 \end_layout
26459
26460 \begin_layout Standard
26461 where 
26462 \begin_inset Flex Code
26463 status collapsed
26464
26465 \begin_layout Plain Layout
26466 $path
26467 \end_layout
26468
26469 \end_inset
26470
26471  stands for the path to the document.
26472 \end_layout
26473
26474 \begin_layout Subsubsection
26475
26476 \family sans
26477 Show History
26478 \end_layout
26479
26480 \begin_layout Standard
26481 This shows the complete history of the CVS document.
26482  The output of 
26483 \family typewriter
26484 cvs log "<file-name>"
26485 \family default
26486  is shown in a browser.
26487 \end_layout
26488
26489 \begin_layout Subsubsection
26490 Revision info
26491 \end_layout
26492
26493 \begin_layout Standard
26494 \SpecialChar LyX
26495  supports CVS version number, author name, date and time of last commit.
26496  All those are extracted from 
26497 \family typewriter
26498 cvs log -r <file-name>
26499 \family default
26500 .
26501  See 
26502 \begin_inset CommandInset ref
26503 LatexCommand ref
26504 reference "subsec:VCS-Revision-Information"
26505
26506 \end_inset
26507
26508  for details.
26509 \end_layout
26510
26511 \begin_layout Subsection
26512 SVN commands in \SpecialChar LyX
26513
26514 \end_layout
26515
26516 \begin_layout Standard
26517 SVN is now partially supported by \SpecialChar LyX
26518 .
26519  You can find the commands in the 
26520 \family sans
26521 File\SpecialChar menuseparator
26522 Version
26523 \begin_inset space ~
26524 \end_inset
26525
26526 Control
26527 \family default
26528  submenu.
26529  Please note that if you use password protected access to repository via
26530  ssh, you will be asked in terminal window.
26531  \SpecialChar LyX
26532  was tested against SVN 1.5, 1.6, 1.7 and 1.8
26533 \begin_inset Foot
26534 status collapsed
26535
26536 \begin_layout Plain Layout
26537 Most of the commands will work with 1.4 too, see 
26538 \begin_inset CommandInset ref
26539 LatexCommand ref
26540 reference "subsec:SVN-Repo-Update"
26541
26542 \end_inset
26543
26544 .
26545  There seems to be currently unresolved permissions problem under SVN 1.8
26546  with reverting changes when file is locked.
26547 \end_layout
26548
26549 \end_inset
26550
26551
26552 \end_layout
26553
26554 \begin_layout Subsubsection
26555
26556 \family sans
26557 Register
26558 \end_layout
26559
26560 \begin_layout Standard
26561 If your document is not under revision control, this is the only item shown
26562  in the menu.
26563  And if it is under revision control, the 
26564 \family sans
26565 Register
26566 \family default
26567  item is not visible.
26568 \end_layout
26569
26570 \begin_layout Standard
26571 This command registers in SVN your document ONLY in case you have already
26572  the documents directory under SVN control (in particular 
26573 \family typewriter
26574 .svn/entries
26575 \family default
26576  file exists).
26577  This means you have to checkout the archive by yourself.
26578 \end_layout
26579
26580 \begin_layout Standard
26581 Then you are asked interactively to supply an initial description of the
26582  document.
26583  Don't forget that registered file is not yet commited.
26584 \end_layout
26585
26586 \begin_layout Standard
26587 SVN command that is run: 
26588 \family typewriter
26589 svn add -q 
26590 \begin_inset Quotes qld
26591 \end_inset
26592
26593 <file-name>
26594 \begin_inset Quotes qld
26595 \end_inset
26596
26597
26598 \end_layout
26599
26600 \begin_layout Standard
26601 Read 
26602 \family typewriter
26603 man svn
26604 \family default
26605  to understand the switches.
26606 \end_layout
26607
26608 \begin_layout Subsubsection
26609
26610 \family sans
26611 Check In Changes
26612 \end_layout
26613
26614 \begin_layout Standard
26615 When you are finished editing a file, you commit your changes.
26616  When you do this, you are asked for a description of the changes.
26617  After that changes are commited.
26618 \end_layout
26619
26620 \begin_layout Standard
26621 SVN command:
26622 \begin_inset Foot
26623 status collapsed
26624
26625 \begin_layout Plain Layout
26626 In case locking is not enabled.
26627  See Section 
26628 \begin_inset CommandInset ref
26629 LatexCommand ref
26630 reference "subsec:SVN-File-Locking"
26631
26632 \end_inset
26633
26634 .
26635 \end_layout
26636
26637 \end_inset
26638
26639  
26640 \family typewriter
26641 svn commit -q -m"<description>" <file-name>
26642 \end_layout
26643
26644 \begin_layout Subsubsection
26645
26646 \family sans
26647 Check Out For Edit
26648 \end_layout
26649
26650 \begin_layout Standard
26651 Updates the changes of this file from the repository.
26652  Be sure you understand SVN merging and conflicts resolving before using
26653  this function, because all conflicts has to be resolved manually by you!
26654 \end_layout
26655
26656 \begin_layout Standard
26657 SVN command:
26658 \begin_inset Foot
26659 status collapsed
26660
26661 \begin_layout Plain Layout
26662 Ditto.
26663 \end_layout
26664
26665 \end_inset
26666
26667  
26668 \family typewriter
26669 svn update --non-interactive 
26670 \begin_inset Quotes qld
26671 \end_inset
26672
26673 <file-name>
26674 \begin_inset Quotes qld
26675 \end_inset
26676
26677
26678 \end_layout
26679
26680 \begin_layout Subsubsection
26681
26682 \family sans
26683 Revert To Repository Version
26684 \end_layout
26685
26686 \begin_layout Standard
26687 This will discard all changes made to the document since the last check
26688  in.
26689  You get a warning before changes are discarded.
26690 \end_layout
26691
26692 \begin_layout Standard
26693 SVN command: 
26694 \family typewriter
26695 svn revert -q 
26696 \begin_inset Quotes qld
26697 \end_inset
26698
26699 <file-name>
26700 \begin_inset Quotes qld
26701 \end_inset
26702
26703
26704 \end_layout
26705
26706 \begin_layout Subsubsection
26707
26708 \family sans
26709 Copy
26710 \end_layout
26711
26712 \begin_layout Standard
26713 This will create a copy of the current document including the version history.
26714  It requires a clean document without any changes since the last checkin.
26715  You are asked for a file name and a description of the copy operation.
26716  After that the copy is created, both locally and in the repository.
26717  If the parent directories of the copied and original document differ, all
26718  relative paths of included files of the copy are adjusted (like in 
26719 \family sans
26720 File\SpecialChar menuseparator
26721 Save As
26722 \family default
26723 \SpecialChar ldots
26724 ).
26725  Finally, the copy is loaded instead of the original document.
26726 \end_layout
26727
26728 \begin_layout Labeling
26729 \labelwidthstring 00.00.0000
26730 SVN
26731 \begin_inset space ~
26732 \end_inset
26733
26734 commands: 
26735 \begin_inset space ~
26736 \end_inset
26737
26738
26739 \begin_inset Newline newline
26740 \end_inset
26741
26742
26743 \begin_inset Flex Code
26744 status collapsed
26745
26746 \begin_layout Plain Layout
26747 svn copy -q 
26748 \family typewriter
26749
26750 \begin_inset Quotes qld
26751 \end_inset
26752
26753 <file-name>
26754 \begin_inset Quotes qld
26755 \end_inset
26756
26757  
26758 \begin_inset Quotes qld
26759 \end_inset
26760
26761 <new-file-name>
26762 \begin_inset Quotes qld
26763 \end_inset
26764
26765
26766 \end_layout
26767
26768 \end_inset
26769
26770
26771 \begin_inset Newline newline
26772 \end_inset
26773
26774
26775 \begin_inset Flex Code
26776 status collapsed
26777
26778 \begin_layout Plain Layout
26779 svn commit
26780 \end_layout
26781
26782 \end_inset
26783
26784
26785 \end_layout
26786
26787 \begin_layout Subsubsection
26788
26789 \family sans
26790 Rename
26791 \end_layout
26792
26793 \begin_layout Standard
26794 This will rename the current document including the version history.
26795  It requires a clean document without any changes since the last checkin.
26796  You are asked for a file name and a description of the rename operation.
26797  After that the document is renamed, both locally and in the repository.
26798  If the parent directories of the new and old file names differ, all relative
26799  paths of included files are adjusted (like in 
26800 \family sans
26801 File\SpecialChar menuseparator
26802 Save As
26803 \family default
26804 \SpecialChar ldots
26805 ).
26806  Finally, the document is reloaded using the new name.
26807 \end_layout
26808
26809 \begin_layout Labeling
26810 \labelwidthstring 00.00.0000
26811 SVN
26812 \begin_inset space ~
26813 \end_inset
26814
26815 commands: 
26816 \begin_inset space ~
26817 \end_inset
26818
26819
26820 \begin_inset Newline newline
26821 \end_inset
26822
26823
26824 \begin_inset Flex Code
26825 status collapsed
26826
26827 \begin_layout Plain Layout
26828 svn move -q 
26829 \family typewriter
26830
26831 \begin_inset Quotes qld
26832 \end_inset
26833
26834 <file-name>
26835 \begin_inset Quotes qld
26836 \end_inset
26837
26838  
26839 \begin_inset Quotes qld
26840 \end_inset
26841
26842 <new-file-name>
26843 \begin_inset Quotes qld
26844 \end_inset
26845
26846
26847 \end_layout
26848
26849 \end_inset
26850
26851
26852 \begin_inset Newline newline
26853 \end_inset
26854
26855
26856 \begin_inset Flex Code
26857 status collapsed
26858
26859 \begin_layout Plain Layout
26860 svn commit
26861 \end_layout
26862
26863 \end_inset
26864
26865
26866 \end_layout
26867
26868 \begin_layout Subsubsection
26869 \begin_inset CommandInset label
26870 LatexCommand label
26871 name "subsec:SVN-Repo-Update"
26872
26873 \end_inset
26874
26875 Update of the local directory checkout from repository
26876 \begin_inset Foot
26877 status collapsed
26878
26879 \begin_layout Plain Layout
26880 Note that this command will work only with subversion 
26881 \begin_inset Formula $\geqq1.5$
26882 \end_inset
26883
26884
26885 \end_layout
26886
26887 \end_inset
26888
26889
26890 \end_layout
26891
26892 \begin_layout Standard
26893 All the commands above have one shortcoming – they deal with the current
26894  document only.
26895  Once your document contains pictures, includes external 
26896 \begin_inset Flex Code
26897 status collapsed
26898
26899 \begin_layout Plain Layout
26900 .tex
26901 \end_layout
26902
26903 \end_inset
26904
26905  files and so on administration becomes more complicated.
26906  \SpecialChar LyX
26907  now supports updating the whole tree in which resides the document
26908 \begin_inset Foot
26909 status collapsed
26910
26911 \begin_layout Plain Layout
26912 One need to organize the files structure so that all external files are
26913  in the same directory or subdirectories of the document.
26914  
26915 \end_layout
26916
26917 \end_inset
26918
26919 .
26920  This become especially useful once you cooperate with people which neither
26921  know about subversion management nor they have ambition to commit additional
26922  material to the repository.
26923  
26924 \end_layout
26925
26926 \begin_layout Standard
26927 \begin_inset Flex Code
26928 status collapsed
26929
26930 \begin_layout Plain Layout
26931 Update local directory from repository
26932 \end_layout
26933
26934 \end_inset
26935
26936  command updates the whole directory and in case of merge conflicts local
26937  version of the files are left, so no unintended data loss occurs.
26938  If local changes are detected user is warned before update starts.
26939 \end_layout
26940
26941 \begin_layout Labeling
26942 \labelwidthstring 00.00.0000
26943 SVN
26944 \begin_inset space ~
26945 \end_inset
26946
26947 commands: 
26948 \begin_inset space ~
26949 \end_inset
26950
26951
26952 \begin_inset Newline newline
26953 \end_inset
26954
26955
26956 \begin_inset Flex Code
26957 status collapsed
26958
26959 \begin_layout Plain Layout
26960 svn diff $path
26961 \end_layout
26962
26963 \end_inset
26964
26965  (Ask if changes are detected.)
26966 \begin_inset Newline newline
26967 \end_inset
26968
26969
26970 \begin_inset Flex Code
26971 status collapsed
26972
26973 \begin_layout Plain Layout
26974 svn update --accept mine-full $path
26975 \end_layout
26976
26977 \end_inset
26978
26979
26980 \end_layout
26981
26982 \begin_layout Standard
26983 where 
26984 \begin_inset Flex Code
26985 status collapsed
26986
26987 \begin_layout Plain Layout
26988 $path
26989 \end_layout
26990
26991 \end_inset
26992
26993  stands for the path to the document.
26994 \end_layout
26995
26996 \begin_layout Subsubsection
26997
26998 \family sans
26999 Show History
27000 \end_layout
27001
27002 \begin_layout Standard
27003 This shows the complete history of the SVN document.
27004  The output of 
27005 \family typewriter
27006 svn log 
27007 \begin_inset Quotes qld
27008 \end_inset
27009
27010 <file-name>
27011 \begin_inset Quotes qld
27012 \end_inset
27013
27014
27015 \family default
27016  is shown in a browser.
27017 \end_layout
27018
27019 \begin_layout Subsubsection
27020 File Locking
27021 \begin_inset CommandInset label
27022 LatexCommand label
27023 name "subsec:SVN-File-Locking"
27024
27025 \end_inset
27026
27027
27028 \end_layout
27029
27030 \begin_layout Standard
27031 The file exchange through various revision control systems brings the problem
27032  of merge conflicts in case two different users try to edit the same (parts
27033  of) document.
27034  When such a conflict happens it needs manual resolving and one reasonable
27035  alternative is to provide some kind of locking mechanism, which guarantees
27036  that only one user is allowed to edit file at the given time.
27037 \end_layout
27038
27039 \begin_layout Standard
27040 SVN has two such mechanisms to provide mutual exclusivity for file access
27041  – locks and automatic setting of write permissions (see sec.
27042  
27043 \begin_inset CommandInset ref
27044 LatexCommand ref
27045 reference "subsec:Automatical-Locking-Property"
27046
27047 \end_inset
27048
27049 ) based on 
27050 \begin_inset Flex Code
27051 status collapsed
27052
27053 \begin_layout Plain Layout
27054 svn:needs-lock
27055 \end_layout
27056
27057 \end_inset
27058
27059  file svn property
27060 \begin_inset Foot
27061 status collapsed
27062
27063 \begin_layout Plain Layout
27064 \begin_inset Flex URL
27065 status open
27066
27067 \begin_layout Plain Layout
27068
27069 http://svnbook.red-bean.com/en/1.2/svn.advanced.locking.html
27070 \end_layout
27071
27072 \end_inset
27073
27074
27075 \end_layout
27076
27077 \end_inset
27078
27079 .
27080  If this property is detected for a given document \SpecialChar LyX
27081  starts to use SVN locks
27082  for document editing automatically and the whole check-in/out mechanism
27083  switches to the same regimen as for RCS.
27084  This in particular means there are two different modes of file use in \SpecialChar LyX
27085 :
27086 \end_layout
27087
27088 \begin_layout Itemize
27089 Unlocked state.
27090  The loaded file is in the read-only mode.
27091  For editing on needs to check-out.
27092  
27093 \emph on
27094 Check-out
27095 \emph default
27096  consists of updating from the repository and gaining write lock.
27097  If the lock is not possible to obtain, we remain in unlocked state.
27098 \end_layout
27099
27100 \begin_layout Itemize
27101 Locked state.
27102  The loaded file is in the 
27103 \begin_inset Quotes els
27104 \end_inset
27105
27106 normal
27107 \begin_inset Quotes ers
27108 \end_inset
27109
27110  edit mode.
27111  No other user is allowed to edit the file.
27112  
27113 \emph on
27114 Check-in
27115 \emph default
27116  consists of commiting changes and releasing write-lock.
27117  If no changes have been made to the document, no commit will be produced
27118 \begin_inset Foot
27119 status collapsed
27120
27121 \begin_layout Plain Layout
27122 Don't be puzzled by the fact that you will be asked for commit message anyway.
27123 \end_layout
27124
27125 \end_inset
27126
27127  and only the write-lock will be released.
27128 \end_layout
27129
27130 \begin_layout Standard
27131 SVN commands:
27132 \end_layout
27133
27134 \begin_layout Labeling
27135 \labelwidthstring 00.00.0000
27136 Check-in:
27137 \family typewriter
27138  svn commit -q -m"<description>" "<file-name>"
27139 \begin_inset Newline newline
27140 \end_inset
27141
27142 svn unlock "<file-name>"
27143 \end_layout
27144
27145 \begin_layout Labeling
27146 \labelwidthstring 00.00.0000
27147 Check-out: 
27148 \family typewriter
27149 svn update "<file-name>"
27150 \begin_inset Newline newline
27151 \end_inset
27152
27153 svn lock "<file-name>"
27154 \end_layout
27155
27156 \begin_layout Subsubsection
27157
27158 \family typewriter
27159 \begin_inset CommandInset label
27160 LatexCommand label
27161 name "subsec:Automatical-Locking-Property"
27162
27163 \end_inset
27164
27165
27166 \family default
27167 Automatic Locking Property
27168 \end_layout
27169
27170 \begin_layout Standard
27171 The above mentioned automatic setting of write permissions of the .lyx file
27172  can be set through
27173 \family sans
27174  File\SpecialChar menuseparator
27175 Version
27176 \begin_inset space ~
27177 \end_inset
27178
27179 Control\SpecialChar menuseparator
27180 Use Locking Property
27181 \family default
27182 .
27183  This command is active only when the file is not locked on the svn server
27184  (i.e.
27185  you need to check-out before proceeding).
27186 \end_layout
27187
27188 \begin_layout Labeling
27189 \labelwidthstring 00.00.0000
27190 SVN
27191 \begin_inset space ~
27192 \end_inset
27193
27194 commands:
27195 \end_layout
27196
27197 \begin_layout Labeling
27198 \labelwidthstring 00.00.0000
27199 Set:
27200 \family typewriter
27201  svn propset svn:needs-lock ON "<file-name>"
27202 \end_layout
27203
27204 \begin_layout Labeling
27205 \labelwidthstring 00.00.0000
27206 Unset: 
27207 \family typewriter
27208 svn propdel svn:needs-lock "<file-name>"
27209 \end_layout
27210
27211 \begin_layout Subsubsection
27212 \begin_inset CommandInset label
27213 LatexCommand label
27214 name "subsec:VCS-Revision-Information"
27215
27216 \end_inset
27217
27218 Revision Information in Documents
27219 \end_layout
27220
27221 \begin_layout Standard
27222 There are more possibilities how to activate revision information in our
27223  document.
27224 \end_layout
27225
27226 \begin_layout Itemize
27227 \SpecialChar LyX
27228  supports directly:
27229 \end_layout
27230
27231 \begin_deeper
27232 \begin_layout Itemize
27233 tree revision information (
27234 \begin_inset Flex Code
27235 status collapsed
27236
27237 \begin_layout Plain Layout
27238 vcs-tree-revision
27239 \end_layout
27240
27241 \end_inset
27242
27243 ).
27244  The result is the output of the 
27245 \begin_inset Flex Code
27246 status collapsed
27247
27248 \begin_layout Plain Layout
27249 svnversion
27250 \end_layout
27251
27252 \end_inset
27253
27254  command, the following table gives you an idea, how to read the results.
27255 \end_layout
27256
27257 \begin_layout Standard
27258 \align center
27259 \begin_inset Tabular
27260 <lyxtabular version="3" rows="6" columns="2">
27261 <features tabularvalignment="middle">
27262 <column alignment="left" valignment="top">
27263 <column alignment="left" valignment="top">
27264 <row>
27265 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27266 \begin_inset Text
27267
27268 \begin_layout Plain Layout
27269
27270 \series bold
27271 Output
27272 \end_layout
27273
27274 \end_inset
27275 </cell>
27276 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27277 \begin_inset Text
27278
27279 \begin_layout Plain Layout
27280
27281 \series bold
27282 Meaning
27283 \end_layout
27284
27285 \end_inset
27286 </cell>
27287 </row>
27288 <row>
27289 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27290 \begin_inset Text
27291
27292 \begin_layout Plain Layout
27293 4123:4168
27294 \end_layout
27295
27296 \end_inset
27297 </cell>
27298 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27299 \begin_inset Text
27300
27301 \begin_layout Plain Layout
27302 mixed revision working copy
27303 \end_layout
27304
27305 \end_inset
27306 </cell>
27307 </row>
27308 <row>
27309 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27310 \begin_inset Text
27311
27312 \begin_layout Plain Layout
27313 4168M
27314 \end_layout
27315
27316 \end_inset
27317 </cell>
27318 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27319 \begin_inset Text
27320
27321 \begin_layout Plain Layout
27322 modified working copy
27323 \end_layout
27324
27325 \end_inset
27326 </cell>
27327 </row>
27328 <row>
27329 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27330 \begin_inset Text
27331
27332 \begin_layout Plain Layout
27333 4123S
27334 \end_layout
27335
27336 \end_inset
27337 </cell>
27338 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27339 \begin_inset Text
27340
27341 \begin_layout Plain Layout
27342 switched working copy
27343 \end_layout
27344
27345 \end_inset
27346 </cell>
27347 </row>
27348 <row>
27349 <cell alignment="left" valignment="top" topline="true" leftline="true" usebox="none">
27350 \begin_inset Text
27351
27352 \begin_layout Plain Layout
27353 4123P
27354 \end_layout
27355
27356 \end_inset
27357 </cell>
27358 <cell alignment="left" valignment="top" topline="true" leftline="true" rightline="true" usebox="none">
27359 \begin_inset Text
27360
27361 \begin_layout Plain Layout
27362 partial working copy, from a sparse checkout
27363 \end_layout
27364
27365 \end_inset
27366 </cell>
27367 </row>
27368 <row>
27369 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" usebox="none">
27370 \begin_inset Text
27371
27372 \begin_layout Plain Layout
27373 4123:4168MS
27374 \end_layout
27375
27376 \end_inset
27377 </cell>
27378 <cell alignment="left" valignment="top" topline="true" bottomline="true" leftline="true" rightline="true" usebox="none">
27379 \begin_inset Text
27380
27381 \begin_layout Plain Layout
27382 mixed revision, modified, switched working copy
27383 \end_layout
27384
27385 \end_inset
27386 </cell>
27387 </row>
27388 </lyxtabular>
27389
27390 \end_inset
27391
27392
27393 \end_layout
27394
27395 \begin_layout Itemize
27396 file revision information.
27397  The result comes from parsing the output of 
27398 \begin_inset Flex Code
27399 status collapsed
27400
27401 \begin_layout Plain Layout
27402 svn
27403 \begin_inset space ~
27404 \end_inset
27405
27406 info
27407 \begin_inset space ~
27408 \end_inset
27409
27410 --xml
27411 \begin_inset space ~
27412 \end_inset
27413
27414 file.lyx
27415 \end_layout
27416
27417 \end_inset
27418
27419 .
27420  Supported flags are:
27421 \end_layout
27422
27423 \begin_deeper
27424 \begin_layout Itemize
27425 version number of the last commit (
27426 \begin_inset Flex Code
27427 status collapsed
27428
27429 \begin_layout Plain Layout
27430 vcs-revision
27431 \end_layout
27432
27433 \end_inset
27434
27435 )
27436 \end_layout
27437
27438 \begin_layout Itemize
27439 author of the last commit (
27440 \begin_inset Flex Code
27441 status collapsed
27442
27443 \begin_layout Plain Layout
27444 vcs-author
27445 \end_layout
27446
27447 \end_inset
27448
27449 )
27450 \end_layout
27451
27452 \begin_layout Itemize
27453 date of the last commit (
27454 \begin_inset Flex Code
27455 status collapsed
27456
27457 \begin_layout Plain Layout
27458 vcs-date
27459 \end_layout
27460
27461 \end_inset
27462
27463 )
27464 \end_layout
27465
27466 \begin_layout Itemize
27467 time of the last commit (
27468 \begin_inset Flex Code
27469 status collapsed
27470
27471 \begin_layout Plain Layout
27472 vcs-time
27473 \end_layout
27474
27475 \end_inset
27476
27477 )
27478 \end_layout
27479
27480 \end_deeper
27481 \begin_layout Standard
27482 You can obtain this info via InsetInfo (
27483 \change_inserted 5863208 1564400022
27484
27485 \lang american
27486 Insert\SpecialChar menuseparator
27487 Field\SpecialChar menuseparator
27488 Version Control Revision
27489 \change_deleted 5863208 1564399852
27490
27491 \lang english
27492 e.g.
27493  
27494 \begin_inset Flex Code
27495 status collapsed
27496
27497 \begin_layout Plain Layout
27498 info-insert buffer vcs-date
27499 \end_layout
27500
27501 \end_inset
27502
27503
27504 \change_unchanged
27505 ).
27506  The information will be available only when you have the file stored under
27507  svn managment (i.e.
27508  the 
27509 \begin_inset Flex Code
27510 status collapsed
27511
27512 \begin_layout Plain Layout
27513 .svn
27514 \end_layout
27515
27516 \end_inset
27517
27518  directory is available with your document).
27519 \end_layout
27520
27521 \end_deeper
27522 \begin_layout Itemize
27523 Another—a hacking one—possibility is to use svn keywords
27524 \begin_inset Foot
27525 status collapsed
27526
27527 \begin_layout Plain Layout
27528 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html
27529 \end_layout
27530
27531 \end_inset
27532
27533 .
27534  In short – you set file keywords property (e.g.
27535  
27536 \family sans
27537 svn propset svn:keywords 'Rev' file.lyx
27538 \family default
27539 ) and then paste keyword \SpecialChar TeX
27540  code
27541 \begin_inset Foot
27542 status collapsed
27543
27544 \begin_layout Plain Layout
27545 This is an easy way how to ensure that \SpecialChar LyX
27546  won't break the line in the middle
27547  of keyword tag.
27548 \end_layout
27549
27550 \end_inset
27551
27552  tag in your document (e.g.
27553  
27554 \begin_inset Flex Code
27555 status collapsed
27556
27557 \begin_layout Plain Layout
27558 $Rev$
27559 \end_layout
27560
27561 \end_inset
27562
27563 ).
27564  This way svn client will automatically substitute revision number (e.g.
27565  
27566 \begin_inset Flex Code
27567 status collapsed
27568
27569 \begin_layout Plain Layout
27570 $Rev: 59 $
27571 \end_layout
27572
27573 \end_inset
27574
27575 ) after each update and commit.
27576  There are more problems with this approach.
27577  Firstly, the '$' character is used in \SpecialChar TeX
27578  world for math equations, so any
27579  occurence of math formula 
27580 \begin_inset Formula $Rev$
27581 \end_inset
27582
27583  become 
27584 \begin_inset Formula $Rev:59$
27585 \end_inset
27586
27587  in your \SpecialChar LyX
27588  document.
27589  Similarly for other keywords like Id, Date, Author, etc.
27590  Secondly svn output is dependent on your locales, so its very easy that
27591  svn would produce some problematic strings once Date is used.
27592  Thirdly you get the whole 'Rev: 59' string in your document instead of
27593  the plain number.
27594  Until subversion implements user's custom keywords it will be hard to use
27595  this approach reliably or let \SpecialChar LyX
27596  to support it directly.
27597 \end_layout
27598
27599 \begin_layout Subsection
27600 SVN and Windows Environment
27601 \end_layout
27602
27603 \begin_layout Quote
27604 My inclination is to say that if the user cannot figure out the command
27605  line operations on their own fairly quickly, they would be well advised
27606  to use TortoiseSVN.
27607  —P.
27608  A.
27609  Rubin
27610 \end_layout
27611
27612 \begin_layout Subsubsection
27613 Preparation
27614 \end_layout
27615
27616 \begin_layout Standard
27617 In addition to installing \SpecialChar LyX
27618 , and having access to a Subversion repository,
27619  the user will need to install the Subversion client program.
27620  A Windows installer for the client program is available from 
27621 \begin_inset CommandInset href
27622 LatexCommand href
27623 name "CollabNet"
27624 target "http://www.collab.net/nonav/downloads/subversion/"
27625 literal "false"
27626
27627 \end_inset
27628
27629 .
27630  The user may also want to install 
27631 \begin_inset CommandInset href
27632 LatexCommand href
27633 name "TortoiseSVN"
27634 target "http://tortoisesvn.tigris.org/"
27635 literal "false"
27636
27637 \end_inset
27638
27639 , which integrates Subversion operations into the context (rightclick) menu
27640  of Windows Explorer.
27641  Operations done outside \SpecialChar LyX
27642  will typically be more convenient using the Explorer
27643  context menu.
27644  Note that TortoiseSVN is not a replacement for the client program, which
27645  is what \SpecialChar LyX
27646  itself will use.
27647 \end_layout
27648
27649 \begin_layout Subsubsection
27650 Bringing a document under Subversion control
27651 \end_layout
27652
27653 \begin_layout Standard
27654 Before a \SpecialChar LyX
27655  document can be brought under version control in Subversion, its
27656  parent directory needs to be under version control.
27657  If the document is being added to a project already in the repository,
27658  this is accomplished by checking the project out to the directory where
27659  the new document will be placed.
27660  If the project itself is not yet under version control (for instance, if
27661  this document starts a new project), the directory must be imported into
27662  the repository.
27663  This is done outside \SpecialChar LyX
27664 .
27665  Both import and checkout are easily accomplished from the Explorer context
27666  menu using TortoiseSVN, or alternatively can be done using the command
27667  line client at a DOS prompt.
27668  The procedure for importing the project using TortoiseSVN is described
27669  below, assuming an existing repository and a new project being started
27670  in 
27671 \family typewriter
27672 C:
27673 \backslash
27674 new project
27675 \family default
27676 .
27677  For information on using the Subversion client program, run 
27678 \family typewriter
27679 svn --help 
27680 \family default
27681 in a DOS shell.
27682 \end_layout
27683
27684 \begin_layout Enumerate
27685 Locate 
27686 \family typewriter
27687 C:
27688 \backslash
27689 new project 
27690 \family default
27691 in Windows Explorer, right click it, and select 
27692 \family sans
27693 TortoiseSVN\SpecialChar menuseparator
27694 Repo-browser
27695 \family default
27696 .
27697  If necessary, adjust the URL for the repository, then click OK.
27698 \end_layout
27699
27700 \begin_layout Enumerate
27701 Right click the level of the repository under which you want to place the
27702  new project folder (typically the top level) and click 
27703 \family sans
27704 Create folder
27705 \family default
27706  Supply a name for the project folder and click OK.
27707  Add a message for the log file if desired, then click OK again.
27708  The new project folder should appear in the repository.
27709  Finally, click OK again to exit the repository browser.
27710 \end_layout
27711
27712 \begin_layout Enumerate
27713 Once again right click 
27714 \family typewriter
27715 C:
27716 \backslash
27717 new project
27718 \family default
27719 , this time selecting SVN Checkout\SpecialChar ldots
27720  Select the URL of the project folder
27721  you just created in the repository, and set the checkout directory to 
27722 \family typewriter
27723 C:
27724 \backslash
27725 new project.
27726
27727 \family default
27728  Click OK.
27729  You will be warned about a non-empty folder; click OK to proceed.
27730  You should now have a 
27731 \family typewriter
27732 .svn
27733 \family default
27734  directory under 
27735 \family typewriter
27736 C:
27737 \backslash
27738 new project.
27739 \end_layout
27740
27741 \begin_layout Enumerate
27742 Create or open your document in \SpecialChar LyX
27743  and click 
27744 \family sans
27745 File\SpecialChar menuseparator
27746 Version
27747 \begin_inset space ~
27748 \end_inset
27749
27750 Control\SpecialChar menuseparator
27751 Register.
27752  
27753 \family default
27754 Add a log message and click OK to commit the document to version control.
27755 \end_layout
27756
27757 \begin_layout Standard
27758 From this point onward, you should have full functionality in the 
27759 \family sans
27760 File\SpecialChar menuseparator
27761 Version
27762 \begin_inset space ~
27763 \end_inset
27764
27765 Control
27766 \family default
27767  menu.
27768  You also have the option of checking the document in and out, viewing its
27769  history, etc.
27770  using the TortoiseSVN context menu in Windows Explorer or the Subversion
27771  client program from a command prompt.
27772 \end_layout
27773
27774 \begin_layout Subsubsection
27775 SSH tunnel used with SVN under Windows
27776 \end_layout
27777
27778 \begin_layout Standard
27779 Compared with Linux setting up an svn client to communicate over ssh under
27780  Windows is a rather troublesome task.
27781  We will at least offer some hints how to setup the client side but prior
27782  knowledge about ssh and the Windows command line is needed, also be prepared
27783  for a great deal of frustration\SpecialChar ldots
27784
27785 \end_layout
27786
27787 \begin_layout Enumerate
27788 Get an svn client for windows, as described in the previous sections.
27789  When it is a fresh install run some svn command (e.g.
27790  
27791 \begin_inset Flex Code
27792 status collapsed
27793
27794 \begin_layout Plain Layout
27795 svn --version
27796 \end_layout
27797
27798 \end_inset
27799
27800 ) to create config files, which you will need to change later on.
27801 \end_layout
27802
27803 \begin_layout Enumerate
27804 Choose an ssh client for Windows.
27805  There are several possibilities, we will use the one from Putty tools
27806 \begin_inset Foot
27807 status collapsed
27808
27809 \begin_layout Plain Layout
27810 \begin_inset Flex URL
27811 status collapsed
27812
27813 \begin_layout Plain Layout
27814
27815 http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html
27816 \end_layout
27817
27818 \end_inset
27819
27820
27821 \end_layout
27822
27823 \end_inset
27824
27825 .
27826  You will need to set the connection up so that the client doesn't ask for
27827  any password from you.
27828  To keep things easy we will use only keys without any additional password
27829  protection etc.
27830 \end_layout
27831
27832 \begin_deeper
27833 \begin_layout Enumerate
27834 Generate keys by 
27835 \begin_inset Flex Code
27836 status collapsed
27837
27838 \begin_layout Plain Layout
27839 puttygen
27840 \end_layout
27841
27842 \end_inset
27843
27844 .
27845  Save your private .ppk key file and put the public one on the server side.
27846  If the SVN server runs on Linux, note that the format of the public key
27847  is not compatible with Linux openssh and you will need to direcly copy-paste
27848  the key from the 
27849 \begin_inset Quotes eld
27850 \end_inset
27851
27852
27853 \emph on
27854 Public key for pasting into OpenSSH authorized_keys file
27855 \emph default
27856 :
27857 \begin_inset Quotes erd
27858 \end_inset
27859
27860  edit field into the server's 
27861 \begin_inset Flex Code
27862 status collapsed
27863
27864 \begin_layout Plain Layout
27865 ~/.ssh/authorized_keys
27866 \end_layout
27867
27868 \end_inset
27869
27870  / 
27871 \begin_inset Flex Code
27872 status collapsed
27873
27874 \begin_layout Plain Layout
27875 authorized_keys2
27876 \end_layout
27877
27878 \end_inset
27879
27880  file.
27881 \end_layout
27882
27883 \begin_layout Enumerate
27884 Get the Putty's 
27885 \begin_inset Flex Code
27886 status collapsed
27887
27888 \begin_layout Plain Layout
27889 plink
27890 \end_layout
27891
27892 \end_inset
27893
27894 .
27895  In the SVN config file
27896 \begin_inset Foot
27897 status collapsed
27898
27899 \begin_layout Plain Layout
27900 Exact path depends on Windows version, usually somewhere around 
27901 \begin_inset Flex Code
27902 status collapsed
27903
27904 \begin_layout Plain Layout
27905 c:
27906 \backslash
27907 Documents and Settings
27908 \backslash
27909 user
27910 \backslash
27911 Application Data
27912 \backslash
27913 Subversion
27914 \backslash
27915 config
27916 \end_layout
27917
27918 \end_inset
27919
27920  / 
27921 \begin_inset Flex Code
27922 status collapsed
27923
27924 \begin_layout Plain Layout
27925 AppData
27926 \backslash
27927 Roaming
27928 \backslash
27929 Subversion
27930 \end_layout
27931
27932 \end_inset
27933
27934 .
27935 \end_layout
27936
27937 \end_inset
27938
27939 , section [tunnels], setup ssh command, e.g.
27940  
27941 \begin_inset Flex Code
27942 status collapsed
27943
27944 \begin_layout Plain Layout
27945 ssh=c:/path/plink.exe -i c:/path/private_key.ppk
27946 \end_layout
27947
27948 \end_inset
27949
27950 .
27951 \begin_inset Foot
27952 status collapsed
27953
27954 \begin_layout Plain Layout
27955 It will usually take a lot of time to get exact command right and it depends
27956  on many things.
27957  For example do not have some remote server saved as a default session in
27958  Putty etc.
27959  If things fail, try to connect via plink without SVN first.
27960 \end_layout
27961
27962 \end_inset
27963
27964
27965 \end_layout
27966
27967 \end_deeper
27968 \begin_layout Enumerate
27969 Checkout the SVN archive, e.
27970 \begin_inset space \thinspace{}
27971 \end_inset
27972
27973 g.
27974 \begin_inset Newline newline
27975 \end_inset
27976
27977
27978 \begin_inset Flex Code
27979 status collapsed
27980
27981 \begin_layout Plain Layout
27982 svn co svn+ssh://user@server/repository_path
27983 \end_layout
27984
27985 \end_inset
27986
27987 .
27988 \end_layout
27989
27990 \begin_layout Subsubsection
27991 End-of-Line Conversions
27992 \end_layout
27993
27994 \begin_layout Standard
27995 When the collaborators are mixing Linux and Windows environments, \SpecialChar LyX
27996  will
27997  use different line endings inside the .lyx files.
27998  This is not a problem as far as \SpecialChar LyX
27999  functionality is concerned, but the commit
28000  diffs will be huge and merge-conflicts prone.
28001  Fortunately SVN itself knows
28002 \begin_inset Foot
28003 status collapsed
28004
28005 \begin_layout Plain Layout
28006 \begin_inset Flex URL
28007 status collapsed
28008
28009 \begin_layout Plain Layout
28010
28011 http://svnbook.red-bean.com/en/1.4/svn.advanced.props.file-portability.html
28012 \end_layout
28013
28014 \end_inset
28015
28016
28017 \end_layout
28018
28019 \end_inset
28020
28021  how to deal with CR/LF problems when switching .lyx files to the 
28022 \begin_inset Flex Code
28023 status collapsed
28024
28025 \begin_layout Plain Layout
28026 native
28027 \end_layout
28028
28029 \end_inset
28030
28031  mode.
28032 \begin_inset Foot
28033 status collapsed
28034
28035 \begin_layout Plain Layout
28036 For the lazy guys: 
28037 \begin_inset Flex Code
28038 status collapsed
28039
28040 \begin_layout Plain Layout
28041 svn propset svn:eol-style native FILE_NAME
28042 \end_layout
28043
28044 \end_inset
28045
28046
28047 \end_layout
28048
28049 \end_inset
28050
28051
28052 \end_layout
28053
28054 \begin_layout Subsection
28055 GIT commands in \SpecialChar LyX
28056
28057 \end_layout
28058
28059 \begin_layout Standard
28060 A minimal subset of GIT commands is now supported by \SpecialChar LyX
28061 .
28062  You can find the commands in the 
28063 \family sans
28064 File\SpecialChar menuseparator
28065 Version
28066 \begin_inset space ~
28067 \end_inset
28068
28069 Control
28070 \family default
28071  submenu.
28072  Please note that if you use password protected access to repository via
28073  ssh, you will be asked in terminal window.
28074  \SpecialChar LyX
28075  was tested against GIT 1.7.
28076 \begin_inset Foot
28077 status collapsed
28078
28079 \begin_layout Plain Layout
28080 Windows users please note that you need to ensure that git is on the path.
28081  This can be set from within \SpecialChar LyX
28082  at 
28083 \family sans
28084 Tools\SpecialChar menuseparator
28085 Preferences\SpecialChar menuseparator
28086 Paths\SpecialChar menuseparator
28087 PATH prefix
28088 \family default
28089 .
28090 \end_layout
28091
28092 \end_inset
28093
28094
28095 \end_layout
28096
28097 \begin_layout Standard
28098 One big difference of GIT and the other supported version control systems
28099  is the distributed nature of GIT: With traditional version control systems
28100  there is one central server which hosts the repository.
28101  Users commit their changes to the server, and get updates made by other
28102  users from it.
28103  With GIT, users commit to a local repository.
28104  The local repository can be synchronized with one or more remote repositories
28105  using the 
28106 \begin_inset Flex Code
28107 status collapsed
28108
28109 \begin_layout Plain Layout
28110 pull
28111 \end_layout
28112
28113 \end_inset
28114
28115  and 
28116 \begin_inset Flex Code
28117 status collapsed
28118
28119 \begin_layout Plain Layout
28120 push
28121 \end_layout
28122
28123 \end_inset
28124
28125  GIT commands.
28126  \SpecialChar LyX
28127  does not interact in any way with remote GIT repositories.
28128  It works exclusively with the local repository in a very similar way as
28129  with a central CVS or SVN repository.
28130  If you use remote GIT repositories you need to do the 
28131 \begin_inset Flex Code
28132 status collapsed
28133
28134 \begin_layout Plain Layout
28135 pull
28136 \end_layout
28137
28138 \end_inset
28139
28140  and 
28141 \begin_inset Flex Code
28142 status collapsed
28143
28144 \begin_layout Plain Layout
28145 push
28146 \end_layout
28147
28148 \end_inset
28149
28150  operations with your favourite GIT client.
28151 \end_layout
28152
28153 \begin_layout Subsubsection
28154
28155 \family sans
28156 Register
28157 \end_layout
28158
28159 \begin_layout Standard
28160 If your document is not under revision control, this is the only item shown
28161  in the menu.
28162  And if it is under revision control, the 
28163 \family sans
28164 Register
28165 \family default
28166  item is not visible.
28167 \end_layout
28168
28169 \begin_layout Standard
28170 This command registers in GIT your document ONLY in case you have already
28171  the documents directory under GIT control (in particular 
28172 \family typewriter
28173 .git/index
28174 \family default
28175  file exists).
28176  This means you have to checkout the archive by yourself.
28177 \end_layout
28178
28179 \begin_layout Standard
28180 Then you are asked interactively to supply an initial description of the
28181  document.
28182  Don't forget that registered file is not yet committed.
28183 \end_layout
28184
28185 \begin_layout Standard
28186 GIT command that is run: 
28187 \family typewriter
28188 git add 
28189 \begin_inset Quotes qld
28190 \end_inset
28191
28192 <file-name>
28193 \begin_inset Quotes qld
28194 \end_inset
28195
28196
28197 \end_layout
28198
28199 \begin_layout Standard
28200 Read 
28201 \family typewriter
28202 man git
28203 \family default
28204  to understand the switches.
28205 \end_layout
28206
28207 \begin_layout Subsubsection
28208
28209 \family sans
28210 Check In Changes
28211 \end_layout
28212
28213 \begin_layout Standard
28214 When you are finished editing a file, you commit your changes.
28215  When you do this, you are asked for a description of the changes.
28216  After that changes are committed.
28217 \end_layout
28218
28219 \begin_layout Standard
28220 GIT command: 
28221 \family typewriter
28222 git commit -q -m"<description>" <file-name>
28223 \end_layout
28224
28225 \begin_layout Subsubsection
28226
28227 \family sans
28228 Revert To Repository Version
28229 \end_layout
28230
28231 \begin_layout Standard
28232 This will discard all changes made to the document since the last check
28233  in.
28234  You get a warning before changes are discarded.
28235 \end_layout
28236
28237 \begin_layout Standard
28238 GIT command: 
28239 \family typewriter
28240 git checkout -q 
28241 \begin_inset Quotes qld
28242 \end_inset
28243
28244 <file-name>
28245 \begin_inset Quotes qld
28246 \end_inset
28247
28248
28249 \end_layout
28250
28251 \begin_layout Subsubsection
28252
28253 \family sans
28254 Rename
28255 \end_layout
28256
28257 \begin_layout Standard
28258 This will rename the current document including the version history.
28259  It requires a clean document without any changes since the last checkin.
28260  You are asked for a file name and a description of the rename operation.
28261  After that the document is renamed, both locally and in the repository.
28262  If the parent directories of the new and old file names differ, all relative
28263  paths of included files are adjusted (like in 
28264 \family sans
28265 File\SpecialChar menuseparator
28266 Save As
28267 \family default
28268 \SpecialChar ldots
28269 ).
28270  Finally, the document is reloaded using the new name.
28271 \end_layout
28272
28273 \begin_layout Labeling
28274 \labelwidthstring 00.00.0000
28275 GIT
28276 \begin_inset space ~
28277 \end_inset
28278
28279 commands: 
28280 \begin_inset space ~
28281 \end_inset
28282
28283
28284 \begin_inset Newline newline
28285 \end_inset
28286
28287
28288 \begin_inset Flex Code
28289 status collapsed
28290
28291 \begin_layout Plain Layout
28292 git mv 
28293 \family typewriter
28294
28295 \begin_inset Quotes qld
28296 \end_inset
28297
28298 <file-name>
28299 \begin_inset Quotes qld
28300 \end_inset
28301
28302  
28303 \begin_inset Quotes qld
28304 \end_inset
28305
28306 <new-file-name>
28307 \begin_inset Quotes qld
28308 \end_inset
28309
28310
28311 \end_layout
28312
28313 \end_inset
28314
28315
28316 \begin_inset Newline newline
28317 \end_inset
28318
28319
28320 \begin_inset Flex Code
28321 status collapsed
28322
28323 \begin_layout Plain Layout
28324 git commit
28325 \end_layout
28326
28327 \end_inset
28328
28329
28330 \end_layout
28331
28332 \begin_layout Subsubsection
28333
28334 \family sans
28335 Show History
28336 \end_layout
28337
28338 \begin_layout Standard
28339 This shows the complete history of the GIT document.
28340  The output of 
28341 \family typewriter
28342 git log 
28343 \begin_inset Quotes qld
28344 \end_inset
28345
28346 <file-name>
28347 \begin_inset Quotes qld
28348 \end_inset
28349
28350
28351 \family default
28352  is shown in a browser.
28353 \end_layout
28354
28355 \begin_layout Subsubsection
28356 Version Info
28357 \end_layout
28358
28359 \begin_layout Standard
28360 \SpecialChar LyX
28361  supports GIT hash number of the last commit to the file, 
28362 \change_inserted 1119979965 1564297456
28363 its abbreviated form, 
28364 \change_unchanged
28365 author name, date and time of last commit.
28366  All those are extracted from 
28367 \family typewriter
28368 git log -n 1 --pretty=format:%H%n
28369 \change_inserted 1119979965 1564297427
28370 %h%n
28371 \change_unchanged
28372 %an%n%ai
28373 \family default
28374 .
28375  Tree version information is obtained via 
28376 \family typewriter
28377 git describe --abbrev --dirty --long
28378 \family default
28379 .
28380  See 
28381 \begin_inset CommandInset ref
28382 LatexCommand ref
28383 reference "subsec:VCS-Revision-Information"
28384
28385 \end_inset
28386
28387  for other details.
28388 \end_layout
28389
28390 \begin_layout Subsection
28391 Further tuning
28392 \end_layout
28393
28394 \begin_layout Standard
28395 With the recent addition of the 
28396 \begin_inset Flex Code
28397 status collapsed
28398
28399 \begin_layout Plain Layout
28400 vc-command
28401 \end_layout
28402
28403 \end_inset
28404
28405  function \SpecialChar LyX
28406  power users are allowed to create their own commands for revision
28407  control.
28408 \end_layout
28409
28410 \begin_layout Standard
28411 As an example you can see how two TortoiseSVN commands could be integrated
28412  directly:
28413 \end_layout
28414
28415 \begin_layout Description
28416 Commit: 
28417 \begin_inset Flex Code
28418 status collapsed
28419
28420 \begin_layout Plain Layout
28421 vc-command DR "." "TortoiseProc /command:commit /path:$$p"
28422 \end_layout
28423
28424 \end_inset
28425
28426
28427 \end_layout
28428
28429 \begin_layout Description
28430 Revert: 
28431 \begin_inset Flex Code
28432 status collapsed
28433
28434 \begin_layout Plain Layout
28435 vc-command DR "." "TortoiseProc /command:revert /path:$$p"
28436 \end_layout
28437
28438 \end_inset
28439
28440
28441 \end_layout
28442
28443 \begin_layout Subsection
28444 Version control and Document comparison
28445 \end_layout
28446
28447 \begin_layout Standard
28448 One of the typical uses of version control is to inspect the changes between
28449  revisions, usually by creating 
28450 \begin_inset Flex Code
28451 status collapsed
28452
28453 \begin_layout Plain Layout
28454 diff
28455 \end_layout
28456
28457 \end_inset
28458
28459  dumps.
28460  While this is useful for plain text files, it is much less useful in the
28461  case of \SpecialChar LyX
28462  files, which have more a complicated structure.
28463  Hence we provide binding to the Document comparison feature.
28464  There are two ways of calling this feature – either by direct call of 
28465 \begin_inset Flex Code
28466 status collapsed
28467
28468 \begin_layout Plain Layout
28469 vc-compare
28470 \end_layout
28471
28472 \end_inset
28473
28474  \SpecialChar LyX
28475  function (for details see \SpecialChar LyX
28476  functions manual) or by the toolbar icon 
28477 \begin_inset Info
28478 type  "icon"
28479 arg   "vc-compare"
28480 \end_inset
28481
28482  or the menu item 
28483 \begin_inset Info
28484 type  "menu"
28485 arg   "vc-compare"
28486 \end_inset
28487
28488 , respectively.
28489  One can either compare two chosen revisions of the document or he can simply
28490  compare the current version of edited text with older revisions (where
28491  '
28492 \begin_inset Flex Noun
28493 status collapsed
28494
28495 \begin_layout Plain Layout
28496 0
28497 \end_layout
28498
28499 \end_inset
28500
28501 ' revisions back means comparison of the edited file with last commited
28502  revision).
28503  
28504 \end_layout
28505
28506 \begin_layout Standard
28507 This feature is supported for SVN and RCS though due to the more complicated
28508  versioning scheme of RCS there is a constraint – when addressing the revisions
28509  in dialog, numbers always point to the last number in RCS revision number,
28510  i.e.
28511  '35' in '1.2.35'.
28512  We don't currently support GIT addressing of revisions, one can just compare
28513  edited document with its revision X steps backs, where X is addressed as
28514  
28515 \begin_inset Flex Code
28516 status collapsed
28517
28518 \begin_layout Plain Layout
28519 HEAD~X
28520 \end_layout
28521
28522 \end_inset
28523
28524 .
28525 \end_layout
28526
28527 \begin_layout Section
28528 Literate Programming
28529 \end_layout
28530
28531 \begin_layout Standard
28532 Updated by 
28533 \noun on
28534 Kayvan Sylvan 
28535 \noun default
28536 (kayvan@sylvan.com)
28537 \noun on
28538
28539 \noun default
28540 original documentation written by 
28541 \noun on
28542 Edmar Wienskoski Jr.
28543
28544 \noun default
28545  (edmar-w-jr@technologist.com)
28546 \end_layout
28547
28548 \begin_layout Subsection
28549 Introduction
28550 \end_layout
28551
28552 \begin_layout Standard
28553 The main purpose of this documentation is to show you how to use \SpecialChar LyX
28554  for literate
28555  programming, where it is assumed that you are familiar with this programming
28556  technique, and know what 
28557 \begin_inset Quotes eld
28558 \end_inset
28559
28560 tangling
28561 \begin_inset Quotes erd
28562 \end_inset
28563
28564  and 
28565 \begin_inset Quotes eld
28566 \end_inset
28567
28568 weaving
28569 \begin_inset Quotes erd
28570 \end_inset
28571
28572  means.
28573  If that is not the case, please follow the web links provided in the following
28574  sections.
28575  There is a lot of good documentation out there covering old development
28576  history to the latest tools tips.
28577 \end_layout
28578
28579 \begin_layout Standard
28580 It is also assumed that you are familiar with \SpecialChar LyX
28581  itself to a point that you
28582  are comfortable changing your \SpecialChar LyX
28583  preferences, and X resources file.
28584  If that is not the case please refer to other \SpecialChar LyX
28585  documentation to cover your
28586  specific needs.
28587 \end_layout
28588
28589 \begin_layout Subsection
28590 Literate Programming
28591 \end_layout
28592
28593 \begin_layout Standard
28594 From the Literate Programming FAQ: 
28595 \end_layout
28596
28597 \begin_layout Quotation
28598 Literate programming is the combination of documentation and source together
28599  in a fashion suited for reading by human beings.
28600  In fact, literate programs should be enjoyable reading, even inviting!
28601  (Sorry Bob, I couldn't resist!) In general, literate programs combine source
28602  and documentation in a single file.
28603  Literate programming tools then parse the file to produce either readable
28604  documentation or compilable source.
28605  The WEB style of literate programming was created by D.
28606 \begin_inset space \thinspace{}
28607 \end_inset
28608
28609 E.
28610  Knuth during the development of his \SpecialChar TeX
28611  typesetting software.
28612  
28613 \end_layout
28614
28615 \begin_layout Standard
28616 Another excerpt says:
28617 \end_layout
28618
28619 \begin_layout Quotation
28620
28621 \emph on
28622 How is literate programming different from verbose commenting?
28623 \end_layout
28624
28625 \begin_layout Quotation
28626 There are three distinguishing characteristics.
28627  In order of importance, they are: 
28628 \end_layout
28629
28630 \begin_deeper
28631 \begin_layout Itemize
28632 flexible order of elaboration 
28633 \end_layout
28634
28635 \begin_layout Itemize
28636 automatic support for browsing 
28637 \end_layout
28638
28639 \begin_layout Itemize
28640 typeset documentation, especially diagrams and mathematics 
28641 \end_layout
28642
28643 \end_deeper
28644 \begin_layout Standard
28645 Now that I sparked your curiosity, take a look in the references.
28646 \end_layout
28647
28648 \begin_layout Subsubsection
28649 References
28650 \end_layout
28651
28652 \begin_layout Standard
28653 The complete Literate Programming FAQ can be found at:
28654 \end_layout
28655
28656 \begin_layout Quote
28657 Literate Programming FAQ 
28658 \begin_inset Flex URL
28659 status open
28660
28661 \begin_layout Plain Layout
28662
28663 http://www.literateprogramming.com/lpfaq.pdf
28664 \end_layout
28665
28666 \end_inset
28667
28668
28669 \end_layout
28670
28671 \begin_layout Standard
28672 The FAQ lists 23 (twenty three!) different literate programming tools.
28673  Where some are specialized or 
28674 \begin_inset Quotes eld
28675 \end_inset
28676
28677 tailored
28678 \begin_inset Quotes erd
28679 \end_inset
28680
28681  for particular programming languages, while other have general scope.
28682  I selected 
28683 \noun on
28684 Noweb
28685 \noun default
28686  for my own use for several reasons:
28687 \end_layout
28688
28689 \begin_layout Itemize
28690 It can generate the documentation either in \SpecialChar LaTeX
28691  or HTML.
28692 \end_layout
28693
28694 \begin_layout Itemize
28695 It has a open architecture, i.
28696 \begin_inset space \thinspace{}
28697 \end_inset
28698
28699 e.
28700 \begin_inset space \space{}
28701 \end_inset
28702
28703 it is easy to plug in new filters
28704 \begin_inset Foot
28705 status collapsed
28706
28707 \begin_layout Plain Layout
28708
28709 \emph on
28710 Filters 
28711 \emph default
28712 are programs that read a given data stream and output a manipulated data
28713  stream.
28714  That way, a WEB file (consisting of literate code) can be turned into a
28715  file consisting only of C program code or \SpecialChar LaTeX
28716  code.
28717 \end_layout
28718
28719 \end_inset
28720
28721  and to perform special processing that you may need.
28722  
28723 \end_layout
28724
28725 \begin_layout Itemize
28726 There is a good selection of filters available already (the HTML is one
28727  of them).
28728 \end_layout
28729
28730 \begin_layout Itemize
28731 It is free.
28732 \end_layout
28733
28734 \begin_layout Standard
28735 The Noweb web page can be found at: 
28736 \end_layout
28737
28738 \begin_layout Quote
28739 Noweb home page 
28740 \begin_inset Flex URL
28741 status collapsed
28742
28743 \begin_layout Plain Layout
28744
28745 https://www.cs.tufts.edu/~nr/noweb/
28746 \end_layout
28747
28748 \end_inset
28749
28750
28751 \end_layout
28752
28753 \begin_layout Standard
28754 Starting from there you can reach many other interesting links and even
28755  some literate program examples.
28756 \end_layout
28757
28758 \begin_layout Subsection
28759 \SpecialChar LyX
28760  and Literate Programming with Noweb
28761 \end_layout
28762
28763 \begin_layout Standard
28764 The \SpecialChar LyX
28765  support for Literate Programming is provided by using the generic \SpecialChar LyX
28766
28767  converters mechanism.
28768  This support is provided in a 
28769 \begin_inset Quotes eld
28770 \end_inset
28771
28772 Noweb independent
28773 \begin_inset Quotes erd
28774 \end_inset
28775
28776  way, i.
28777 \begin_inset space \thinspace{}
28778 \end_inset
28779
28780 e.
28781 \begin_inset space \space{}
28782 \end_inset
28783
28784 you will be able to use this new \SpecialChar LyX
28785  feature with some other literate programming
28786  tool of your choice by just changing your \SpecialChar LyX
28787  preferences.
28788 \end_layout
28789
28790 \begin_layout Subsubsection
28791 Generating documents and code (weaving and tangling)
28792 \end_layout
28793
28794 \begin_layout Paragraph
28795 Using the noweb module
28796 \end_layout
28797
28798 \begin_layout Standard
28799 If you have installed Noweb and \SpecialChar LyX
28800  successfully, whenever you open a new document,
28801  after you have chosen its document class, use the 
28802 \family sans
28803 Document\SpecialChar menuseparator
28804 Settings
28805 \family default
28806  menu to add the 
28807 \begin_inset Quotes eld
28808 \end_inset
28809
28810 noweb
28811 \begin_inset Quotes erd
28812 \end_inset
28813
28814  module.
28815  If Noweb is correctly installed, when you click on the 
28816 \begin_inset Quotes eld
28817 \end_inset
28818
28819 Modules
28820 \begin_inset Quotes erd
28821 \end_inset
28822
28823  link, you will see the 
28824 \begin_inset Quotes eld
28825 \end_inset
28826
28827 noweb
28828 \begin_inset Quotes erd
28829 \end_inset
28830
28831  module in the available list and you can add it to your document.
28832 \end_layout
28833
28834 \begin_layout Paragraph
28835 Typing code in
28836 \end_layout
28837
28838 \begin_layout Standard
28839 \SpecialChar LyX
28840  enables you to write code with a custom inset named 
28841 \begin_inset Flex Noun
28842 status collapsed
28843
28844 \begin_layout Plain Layout
28845 Chunk
28846 \end_layout
28847
28848 \end_inset
28849
28850 .
28851  Noweb delimits chunks like this:
28852 \end_layout
28853
28854 \begin_layout LyX-Code
28855 <<My code>>=
28856 \end_layout
28857
28858 \begin_layout LyX-Code
28859   code
28860 \end_layout
28861
28862 \begin_layout LyX-Code
28863   more code
28864 \end_layout
28865
28866 \begin_layout LyX-Code
28867   even more code
28868 \end_layout
28869
28870 \begin_layout LyX-Code
28871   @
28872 \end_layout
28873
28874 \begin_layout Standard
28875 The problem is that whatever is written in between the << and the 
28876 \family typewriter
28877 @
28878 \family default
28879  must be taken literally, i.
28880 \begin_inset space \thinspace{}
28881 \end_inset
28882
28883 e.
28884 \begin_inset space \space{}
28885 \end_inset
28886
28887 \SpecialChar LyX
28888  should be prevented from making any special interpretation of what has
28889  been written.
28890  This is also handled by 
28891 \begin_inset Flex Noun
28892 status collapsed
28893
28894 \begin_layout Plain Layout
28895 Chunk
28896 \end_layout
28897
28898 \end_inset
28899
28900 , that works like a normal text inset but has a free spacing capability.
28901 \end_layout
28902
28903 \begin_layout Standard
28904 As a special note, you can also use the 
28905 \begin_inset Quotes eld
28906 \end_inset
28907
28908 %def
28909 \begin_inset Quotes erd
28910 \end_inset
28911
28912  construct of Noweb in your chunks to add items to Noweb's identifier cross-refe
28913 rence:
28914 \end_layout
28915
28916 \begin_layout LyX-Code
28917 <<My chunk>>=
28918 \end_layout
28919
28920 \begin_layout LyX-Code
28921 def some_function(args):
28922 \end_layout
28923
28924 \begin_layout LyX-Code
28925    "This is the doc string for this function."
28926 \end_layout
28927
28928 \begin_layout LyX-Code
28929    print "My args: ", args
28930 \end_layout
28931
28932 \begin_layout LyX-Code
28933 @ %def some_function
28934 \end_layout
28935
28936 \begin_layout Standard
28937 For an example of this usage and the resulting cross-reference output, look
28938  at the Literate python program in 
28939 \emph on
28940 LIBDIR/examples/listerrors.lyx
28941 \emph default
28942  which should make this all clear.
28943 \end_layout
28944
28945 \begin_layout Paragraph
28946 Generating the documentation
28947 \end_layout
28948
28949 \begin_layout Standard
28950 At this point you already have a new document file with a proper document
28951  class, and with some code and text on it.
28952  How do I print it? The answer is simple, you select 
28953 \family sans
28954 View\SpecialChar menuseparator
28955 DVI,
28956 \family default
28957  etc.
28958  Just like you would do for a plain document.
28959  No special procedure is required.
28960 \end_layout
28961
28962 \begin_layout Standard
28963 To help orientate you, I will now explain what happens inside \SpecialChar LyX
28964 :
28965 \end_layout
28966
28967 \begin_layout Enumerate
28968 When the 
28969 \family sans
28970 Update\SpecialChar menuseparator
28971 DVI
28972 \family default
28973  menu option is chosen, a \SpecialChar LaTeX
28974  file is generated.
28975  
28976 \end_layout
28977
28978 \begin_deeper
28979 \begin_layout Standard
28980 If the document is of any literate class the generated file will be named
28981  with an extension name defined by the 
28982 \begin_inset Quotes eld
28983 \end_inset
28984
28985 literate
28986 \begin_inset Quotes erd
28987 \end_inset
28988
28989  format (defined in the Preferences panel), otherwise the file will have
28990  the usual 
28991 \family typewriter
28992 .tex
28993 \family default
28994  extension.
28995 \end_layout
28996
28997 \end_deeper
28998 \begin_layout Enumerate
28999 Note that the only difference so far is in the name of the file, no special
29000  processing is required by \SpecialChar LyX
29001 .
29002  Given that you formatted the code using the 
29003 \begin_inset Flex Noun
29004 status collapsed
29005
29006 \begin_layout Plain Layout
29007 Chunk
29008 \end_layout
29009
29010 \end_inset
29011
29012  inset that, by itself, takes care of the business.
29013 \end_layout
29014
29015 \begin_layout Enumerate
29016 If the document is of any literate class \SpecialChar LyX
29017  will then use the internal \SpecialChar LyX
29018  to
29019  Noweb converter, followed by the Noweb to \SpecialChar LaTeX
29020  converter
29021 \begin_inset Foot
29022 status collapsed
29023
29024 \begin_layout Plain Layout
29025 The converters are defined in the 
29026 \family sans
29027 Tools\SpecialChar menuseparator
29028 Preferences
29029 \family default
29030  panel, under the 
29031 \begin_inset Quotes eld
29032 \end_inset
29033
29034 Conversion
29035 \begin_inset Quotes erd
29036 \end_inset
29037
29038  tab.
29039  See section 
29040 \emph on
29041 Converters
29042 \emph default
29043  of the 
29044 \emph on
29045 Customization
29046 \emph default
29047  manual for general information about converters.
29048 \end_layout
29049
29050 \end_inset
29051
29052  to generate the \SpecialChar LaTeX
29053  file.
29054 \end_layout
29055
29056 \begin_deeper
29057 \begin_layout Standard
29058 Otherwise it will just skip this step.
29059 \end_layout
29060
29061 \end_deeper
29062 \begin_layout Enumerate
29063 Finally, \SpecialChar LaTeX
29064  is invoked and the regular post processing continues as in a plain
29065  document.
29066 \end_layout
29067
29068 \begin_layout Standard
29069 Independence from a particular 
29070 \begin_inset Quotes eld
29071 \end_inset
29072
29073 literate tool
29074 \begin_inset Quotes erd
29075 \end_inset
29076
29077  is easily achieved by changing the commands that are run by the various
29078  converters.
29079 \end_layout
29080
29081 \begin_layout Paragraph
29082 Generating the code
29083 \end_layout
29084
29085 \begin_layout Standard
29086 When the build menu option is chosen or the corresponding button in the
29087  toolbar is pressed, a \SpecialChar LaTeX
29088  file is generated just like step 1 above.
29089  Next, \SpecialChar LyX
29090  invokes the 
29091 \family typewriter
29092 Noweb->Program
29093 \family default
29094  converter.
29095  This converter needs to be defined by the user and is not installed by
29096  default, though the Program format is.
29097  This converter (like any other converter) will have two parts:
29098 \end_layout
29099
29100 \begin_layout Enumerate
29101 The converter program itself.
29102  This program performs the conversion from the one format to the other (in
29103  this case, from the Noweb format to the Program pseudo-format).
29104 \end_layout
29105
29106 \begin_layout Enumerate
29107 The error log parser.
29108  This is a program whose sole purpose is to rewrite error messages in a
29109  format that \SpecialChar LyX
29110  understands.
29111  This makes it possible for \SpecialChar LyX
29112  to place error boxes in the right places in
29113  the file buffer.
29114 \end_layout
29115
29116 \begin_layout Standard
29117 The first part, the 
29118 \begin_inset Quotes eld
29119 \end_inset
29120
29121 Converter
29122 \begin_inset Quotes erd
29123 \end_inset
29124
29125  setting, should be set to
29126 \end_layout
29127
29128 \begin_layout LyX-Code
29129
29130 \family typewriter
29131 build-script $$i
29132 \family default
29133  $$r
29134 \end_layout
29135
29136 \begin_layout Standard
29137 This basically means that \SpecialChar LyX
29138  will call 
29139 \begin_inset Quotes eld
29140 \end_inset
29141
29142 build-script
29143 \begin_inset Quotes erd
29144 \end_inset
29145
29146  (a program or script) with the name of the Noweb file (normally a file
29147  in the \SpecialChar LyX
29148  temp directory) and the directory path of the original \SpecialChar LyX
29149  file.
29150  
29151 \end_layout
29152
29153 \begin_layout Standard
29154 This is an implementation of 
29155 \begin_inset Quotes eld
29156 \end_inset
29157
29158 build-script
29159 \begin_inset Quotes erd
29160 \end_inset
29161
29162  that you can place in a directory on your path:
29163 \end_layout
29164
29165 \begin_layout LyX-Code
29166
29167 \family sans
29168 #!/bin/sh
29169 \end_layout
29170
29171 \begin_layout LyX-Code
29172
29173 \family sans
29174 #
29175 \end_layout
29176
29177 \begin_layout LyX-Code
29178
29179 \family sans
29180 notangle -Rbuild-script $1 | env NOWEB_SOURCE=$1 NOWEB_OUTPUT_DIR=$2 sh
29181 \end_layout
29182
29183 \begin_layout Standard
29184 The next part of the converter setting is the 
29185 \begin_inset Quotes eld
29186 \end_inset
29187
29188 Flags
29189 \begin_inset Quotes erd
29190 \end_inset
29191
29192  which is to be set to
29193 \end_layout
29194
29195 \begin_layout LyX-Code
29196
29197 \family typewriter
29198 parselog=$$s/scripts/listerrors
29199 \end_layout
29200
29201 \begin_layout Standard
29202 This will run any errors that are generated by the 
29203 \begin_inset Quotes eld
29204 \end_inset
29205
29206 build-script
29207 \begin_inset Quotes erd
29208 \end_inset
29209
29210  process through the 
29211 \begin_inset Quotes eld
29212 \end_inset
29213
29214 listerrors
29215 \begin_inset Quotes erd
29216 \end_inset
29217
29218  program.
29219 \end_layout
29220
29221 \begin_layout Standard
29222 The build will normally take place in \SpecialChar LyX
29223 's temporary directory, so the files
29224  produced by the conversion will be in that directory.
29225  \SpecialChar LyX
29226  will copy out what it regards as the `main' file, but the 
29227 \family typewriter
29228 Noweb->Program
29229 \family default
29230  conversion may produce several files, and so most of these would then be
29231  deleted when \SpecialChar LyX
29232  was closed.
29233  This is why we pass in the NOWEB_OUTPUT_DIR environment variable so that
29234  the build-script chunk can place the generated files in that location.
29235 \end_layout
29236
29237 \begin_layout Paragraph
29238 Build instructions in the document
29239 \end_layout
29240
29241 \begin_layout Standard
29242 The last piece of the integration between \SpecialChar LyX
29243  and noweb is the 
29244 \begin_inset Quotes eld
29245 \end_inset
29246
29247 build-script
29248 \begin_inset Quotes erd
29249 \end_inset
29250
29251  chunk.
29252  Generally, the instructions for building your program should be embedded
29253  in a chunk of its own.
29254  The noweb-specific 
29255 \begin_inset Quotes eld
29256 \end_inset
29257
29258 build-script
29259 \begin_inset Quotes erd
29260 \end_inset
29261
29262  above uses the notangle command to look for this chunk (called 
29263 \begin_inset Quotes eld
29264 \end_inset
29265
29266 build-script
29267 \begin_inset Quotes erd
29268 \end_inset
29269
29270 ) and runs its contents through 
29271 \begin_inset Quotes eld
29272 \end_inset
29273
29274 sh
29275 \begin_inset Quotes erd
29276 \end_inset
29277
29278 .
29279 \end_layout
29280
29281 \begin_layout Standard
29282 Typically, such a chunk would look something like this:
29283 \end_layout
29284
29285 \begin_layout LyX-Code
29286 <<build-script>>=
29287 \end_layout
29288
29289 \begin_layout LyX-Code
29290 #!/bin/sh
29291 \begin_inset Newline newline
29292 \end_inset
29293
29294 if [ -z "${NOWEB_SOURCE}" ]
29295 \begin_inset Newline newline
29296 \end_inset
29297
29298 then
29299 \end_layout
29300
29301 \begin_layout LyX-Code
29302 NOWEB_SOURCE=myfile.nw
29303 \begin_inset Newline newline
29304 \end_inset
29305
29306 fi
29307 \begin_inset Newline newline
29308 \end_inset
29309
29310 [...
29311  code to extract files ...
29312  use NOWEB_OUTPUT_DIR here ...]
29313 \begin_inset Newline newline
29314 \end_inset
29315
29316 [...
29317  code to compile files ...]
29318 \begin_inset Newline newline
29319 \end_inset
29320
29321 @
29322 \end_layout
29323
29324 \begin_layout Standard
29325 Look in 
29326 \emph on
29327 LIBDIR/examples/listerrors.lyx
29328 \emph default
29329  or in 
29330 \emph on
29331 LIBDIR/examples/Literate.lyx
29332 \emph default
29333  which implement two versions of the 
29334 \begin_inset Quotes eld
29335 \end_inset
29336
29337 listerrors
29338 \begin_inset Quotes erd
29339 \end_inset
29340
29341  program for some illustrations of how all of these pieces go together or
29342  in 
29343 \emph on
29344 LIBDIR/examples/noweb2lyx.lyx.
29345
29346 \emph default
29347  Interestingly, these three files show off the language-indepence of the
29348  \SpecialChar LyX
29349  literate programming support since they are written in Python, C and Perl
29350  respectively.
29351 \end_layout
29352
29353 \begin_layout Subsubsection
29354 Configuring \SpecialChar LyX
29355
29356 \end_layout
29357
29358 \begin_layout Standard
29359 All the Literate Programming support is configured by the 
29360 \family sans
29361 Tools\SpecialChar menuseparator
29362 Preferences
29363 \family default
29364  panel in the 
29365 \begin_inset Quotes eld
29366 \end_inset
29367
29368 File Handling
29369 \begin_inset Quotes erd
29370 \end_inset
29371
29372  tab.
29373  The important parts are:
29374 \end_layout
29375
29376 \begin_layout Description
29377 the
29378 \begin_inset space ~
29379 \end_inset
29380
29381
29382 \begin_inset Quotes eld
29383 \end_inset
29384
29385 NoWeb
29386 \begin_inset Quotes erd
29387 \end_inset
29388
29389
29390 \begin_inset space ~
29391 \end_inset
29392
29393 format Set up via the File Formats tab, this is where the Noweb-specific
29394  pieces are set up.
29395  The 
29396 \family sans
29397 GUI Name
29398 \family default
29399  is set to 
29400 \family typewriter
29401 NoWeb
29402 \family default
29403 , the file extension is set to 
29404 \family typewriter
29405 .nw
29406 \family default
29407 .
29408  This tells \SpecialChar LyX
29409  to create a file with a 
29410 \family typewriter
29411 .nw
29412 \family default
29413  extension in the first step of the conversion process.
29414 \end_layout
29415
29416 \begin_layout Description
29417 the
29418 \begin_inset space ~
29419 \end_inset
29420
29421
29422 \family sans
29423 Program
29424 \family default
29425
29426 \begin_inset space ~
29427 \end_inset
29428
29429 format This is an empty format whose sole purpose is to be the endpoint
29430  of a conversion (which then allows us to set up a converter for it).
29431 \end_layout
29432
29433 \begin_layout Description
29434
29435 \family sans
29436 NoWeb
29437 \family default
29438 ->
29439 \family sans
29440 \SpecialChar LaTeX
29441
29442 \family default
29443  This converter performs the 
29444 \begin_inset Quotes eld
29445 \end_inset
29446
29447 weaving
29448 \begin_inset Quotes erd
29449 \end_inset
29450
29451  of the literate document.
29452  For Noweb, it is set to 
29453 \begin_inset Quotes eld
29454 \end_inset
29455
29456
29457 \family typewriter
29458 noweave -delay -index $$i > $$o
29459 \family default
29460
29461 \begin_inset Quotes erd
29462 \end_inset
29463
29464
29465 \end_layout
29466
29467 \begin_layout Description
29468
29469 \family sans
29470 NoWeb
29471 \family default
29472 ->
29473 \family sans
29474 Program
29475 \family default
29476  This performs the 
29477 \begin_inset Quotes eld
29478 \end_inset
29479
29480 tangling step
29481 \begin_inset Quotes erd
29482 \end_inset
29483
29484 .
29485  As stated above, the Converter is set to 
29486 \begin_inset Quotes eld
29487 \end_inset
29488
29489
29490 \family typewriter
29491 build-script $$i
29492 \family default
29493  $$r
29494 \begin_inset Quotes erd
29495 \end_inset
29496
29497 , with Flags set to
29498 \begin_inset Newline newline
29499 \end_inset
29500
29501
29502 \begin_inset Quotes eld
29503 \end_inset
29504
29505
29506 \family typewriter
29507 parselog=$$s/scripts/listerrors
29508 \family default
29509
29510 \begin_inset Quotes erd
29511 \end_inset
29512
29513 .
29514 \end_layout
29515
29516 \begin_layout Subsubsection
29517 Debug extensions
29518 \end_layout
29519
29520 \begin_layout Standard
29521 There is also a new function implemented in the \SpecialChar LyX
29522  server, the 
29523 \begin_inset Quotes eld
29524 \end_inset
29525
29526 server-goto-file-row" function, to be used with ddd/gdb or other debugger.
29527  
29528 \end_layout
29529
29530 \begin_layout Standard
29531 When debugging code with ddd/gdb, it is possible to invoke a text editor
29532  at the current execution position with a single key stroke.
29533  The default ddd configuration for that is shift-ctrl-V.
29534  It happens that you can define the editor command line invocation in ddd
29535  by accessing the 
29536 \family sans
29537 Edit\SpecialChar menuseparator
29538 Preferences\SpecialChar menuseparator
29539 Helpers
29540 \family default
29541  dialog and changing the "Edit Sources" entry.
29542 \end_layout
29543
29544 \begin_layout Standard
29545 I take advantage of the newly created \SpecialChar LyX
29546  server function and this ddd feature,
29547  and set 
29548 \begin_inset Quotes eld
29549 \end_inset
29550
29551 Edit Sources
29552 \begin_inset Quotes erd
29553 \end_inset
29554
29555  to:
29556 \end_layout
29557
29558 \begin_layout LyX-Code
29559 echo "LYXCMD:monitor:server-goto-file-row:@FILE@ @LINE@" >~/.lyxpipe.in
29560 \end_layout
29561
29562 \begin_layout Standard
29563 With this, whenever you are using ddd and find a point in the program that
29564  you want to edit, you just press shift-ctrl-V (in the ddd window), and
29565  ddd will forward this information to \SpecialChar LyX
29566  through the \SpecialChar LyX
29567  server and then the
29568  \SpecialChar LyX
29569  window will show the same file with the cursor at the same position ddd
29570  was pointing to.
29571  No more guessing or long scrolling to locate a point in the program back
29572  from debugging !
29573 \end_layout
29574
29575 \begin_layout Standard
29576 Note however that you must enable the \SpecialChar LyX
29577  server to get this feature working
29578  (it is disabled by default).
29579  Sec.
29580 \begin_inset space ~
29581 \end_inset
29582
29583
29584 \begin_inset CommandInset ref
29585 LatexCommand ref
29586 reference "sec:Starting-the-Server"
29587
29588 \end_inset
29589
29590  explains how to do that.
29591 \end_layout
29592
29593 \begin_layout Subsubsection
29594 Toolbar extensions
29595 \end_layout
29596
29597 \begin_layout Standard
29598 There are six new buttons that can be added to your \SpecialChar LyX
29599  toolbar.
29600  Four of these buttons are short cuts to layout styles: 
29601 \family sans
29602 Standard
29603 \family default
29604
29605 \family sans
29606 Section
29607 \family default
29608
29609 \family sans
29610 \SpecialChar LaTeX
29611
29612 \family default
29613 , and 
29614 \family sans
29615 \SpecialChar LyX
29616 -Code
29617 \family default
29618 , one for the custom inset 
29619 \family sans
29620 Chunk
29621 \family default
29622 .
29623  The last one is a short cut to the 
29624 \begin_inset Quotes eld
29625 \end_inset
29626
29627 Build Program
29628 \begin_inset Quotes erd
29629 \end_inset
29630
29631  File menu entry.
29632  
29633 \end_layout
29634
29635 \begin_layout Standard
29636 \SpecialChar LyX
29637  has a range of buttons that are available for tool bar customization.
29638  In my toolbar I like to combine the six short cuts above with two more:
29639  One for 
29640 \family sans
29641 Document
29642 \family default
29643 \SpecialChar menuseparator
29644
29645 \family sans
29646 Update
29647 \family default
29648 \SpecialChar menuseparator
29649
29650 \family sans
29651 DVI
29652 \family default
29653  and the other for 
29654 \family sans
29655 Document\SpecialChar menuseparator
29656 View\SpecialChar menuseparator
29657 DVI
29658 \family default
29659  File menu entries.
29660  Here is how it looks like:
29661 \end_layout
29662
29663 \begin_layout LyX-Code
29664 Toolbar
29665 \end_layout
29666
29667 \begin_layout LyX-Code
29668   Layouts
29669 \end_layout
29670
29671 \begin_layout LyX-Code
29672   Icon "layout Standard"
29673 \end_layout
29674
29675 \begin_layout LyX-Code
29676   Icon "layout Section"
29677 \end_layout
29678
29679 \begin_layout LyX-Code
29680   Icon "layout \SpecialChar LaTeX
29681 "
29682 \end_layout
29683
29684 \begin_layout LyX-Code
29685   Icon "layout \SpecialChar LyX
29686 -Code"
29687 \end_layout
29688
29689 \begin_layout LyX-Code
29690   Icon "flex.insert Chunk"
29691 \end_layout
29692
29693 \begin_layout LyX-Code
29694   Separator
29695 \end_layout
29696
29697 \begin_layout LyX-Code
29698   Icon "buffer-view"
29699 \end_layout
29700
29701 \begin_layout LyX-Code
29702   Icon "buffer-typeset"
29703 \end_layout
29704
29705 \begin_layout LyX-Code
29706   Icon "build-program"
29707 \end_layout
29708
29709 \begin_layout LyX-Code
29710   Separator
29711 \end_layout
29712
29713 \begin_layout LyX-Code
29714 .
29715 \end_layout
29716
29717 \begin_layout LyX-Code
29718 .
29719 \end_layout
29720
29721 \begin_layout LyX-Code
29722 .
29723 \end_layout
29724
29725 \begin_layout LyX-Code
29726 End
29727 \end_layout
29728
29729 \begin_layout Subsubsection
29730 Colors customization
29731 \end_layout
29732
29733 \begin_layout Standard
29734 There are a number of colors in \SpecialChar LyX
29735  that can be customized in 
29736 \family sans
29737 Preferences
29738 \family default
29739 .
29740  One of the things that bothers people is the \SpecialChar LaTeX
29741  font color.
29742  The default color is red, since the chunks uses \SpecialChar LaTeX
29743  font, and there is a lot
29744  of chunks in literate documents, you may get tired of seeing everything
29745  in red.
29746  You can change it by going to the tabs 
29747 \family sans
29748 Look&Feel
29749 \family default
29750
29751 \family sans
29752 Colors.
29753 \end_layout
29754
29755 \begin_layout Standard
29756 The next thing is the visible presence of the newline character in the screen.
29757  You can choose the color of this particular character and make it blend
29758  in the background.
29759  I recommend you choosing a color that is close to the background but not
29760  equal, that way you still can see it is there, but it is not bothering
29761  you anymore.
29762 \end_layout
29763
29764 \begin_layout Subsection
29765 \SpecialChar LyX
29766  and knitr/Sweave
29767 \end_layout
29768
29769 \begin_layout Standard
29770 Support for 
29771 \family sans
29772 knitr
29773 \family default
29774  and 
29775 \family sans
29776 Sweave
29777 \family default
29778  is documented in 
29779 \change_deleted 564990737 1671643409
29780 the 
29781 \emph on
29782 knitr.lyx
29783 \emph default
29784  example file
29785 \change_inserted 564990737 1671643443
29786
29787 \family sans
29788 \lang british
29789 File\SpecialChar menuseparator
29790 Open Example\SpecialChar menuseparator
29791 Modules\SpecialChar menuseparator
29792 Rnw (knitr)
29793 \change_unchanged
29794
29795 \family default
29796 \lang english
29797  and in 
29798 \change_deleted 564990737 1671643461
29799 the Sweave manual (menu 
29800 \family sans
29801 Help\SpecialChar menuseparator
29802 Specific Manuals
29803 \family default
29804 )
29805 \change_inserted 564990737 1671643461
29806
29807 \family sans
29808 \lang british
29809 Help\SpecialChar menuseparator
29810 Specific Manuals\SpecialChar menuseparator
29811 Sweave
29812 \change_unchanged
29813
29814 \family default
29815 \lang english
29816 .
29817 \end_layout
29818
29819 \begin_layout Chapter
29820
29821 \change_deleted 564990737 1671355343
29822 Special features
29823 \end_layout
29824
29825 \begin_layout Standard
29826
29827 \change_deleted 564990737 1671355343
29828 You can do everything with \SpecialChar LyX
29829  that you can do with \SpecialChar LaTeX
29830 .
29831  However, \SpecialChar LyX
29832  cannot support every \SpecialChar LaTeX
29833  feature directly.
29834  But you can always use \SpecialChar TeX
29835  Code.
29836  This chapter shows you some more special things you might want to use.
29837  For other special things you can do with figures, tables, floats, boxes
29838  and notes, have a look at the 
29839 \emph on
29840 Embedded
29841 \begin_inset space ~
29842 \end_inset
29843
29844 Objects
29845 \emph default
29846  manual.
29847 \change_unchanged
29848
29849 \end_layout
29850
29851 \end_body
29852 \end_document